33973 lines
4.7 MiB
33973 lines
4.7 MiB
var KF=Object.defineProperty;var zF=(Im,A_,Nm)=>A_ in Im?KF(Im,A_,{enumerable:!0,configurable:!0,writable:!0,value:Nm}):Im[A_]=Nm;var Nv=(Im,A_,Nm)=>(zF(Im,typeof A_!="symbol"?A_+"":A_,Nm),Nm);(function(){"use strict";class Im{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(n){setTimeout(()=>{throw n.stack?Cg.isErrorNoTelemetry(n)?new Cg(n.message+`
|
|
|
|
`+n.stack):new Error(n.message+`
|
|
|
|
`+n.stack):n},0)}}emit(n){this.listeners.forEach(f=>{f(n)})}onUnexpectedError(n){this.unexpectedErrorHandler(n),this.emit(n)}onUnexpectedExternalError(n){this.unexpectedErrorHandler(n)}}const A_=new Im;function Nm(e){GI(e)||A_.onUnexpectedError(e)}function BT(e){if(e instanceof Error){const{name:n,message:f}=e,d=e.stacktrace||e.stack;return{$isError:!0,name:n,message:f,stack:d,noTelemetry:Cg.isErrorNoTelemetry(e)}}return e}const Zb="Canceled";function GI(e){return e instanceof BI?!0:e instanceof Error&&e.name===Zb&&e.message===Zb}class BI extends Error{constructor(){super(Zb),this.name=this.message}}class Cg extends Error{constructor(n){super(n),this.name="ErrorNoTelemetry"}static fromError(n){if(n instanceof Cg)return n;const f=new Cg;return f.message=n.message,f.stack=n.stack,f}static isErrorNoTelemetry(n){return n.name==="ErrorNoTelemetry"}}function UI(e){const n=this;let f=!1,d;return function(){return f||(f=!0,d=e.apply(n,arguments)),d}}var qh;(function(e){function n(x){return x&&typeof x=="object"&&typeof x[Symbol.iterator]=="function"}e.is=n;const f=Object.freeze([]);function d(){return f}e.empty=d;function*a(x){yield x}e.single=a;function p(x){return x||f}e.from=p;function N(x){return!x||x[Symbol.iterator]().next().done===!0}e.isEmpty=N;function H(x){return x[Symbol.iterator]().next().value}e.first=H;function h(x,w){for(const K of x)if(w(K))return!0;return!1}e.some=h;function v(x,w){for(const K of x)if(w(K))return K}e.find=v;function*A(x,w){for(const K of x)w(K)&&(yield K)}e.filter=A;function*q(x,w){let K=0;for(const Z of x)yield w(Z,K++)}e.map=q;function*ie(...x){for(const w of x)for(const K of w)yield K}e.concat=ie;function*b(x){for(const w of x)for(const K of w)yield K}e.concatNested=b;function P(x,w,K){let Z=K;for(const ne of x)Z=w(Z,ne);return Z}e.reduce=P;function S(x,w){let K=0;for(const Z of x)w(Z,K++)}e.forEach=S;function*B(x,w,K=x.length){for(w<0&&(w+=x.length),K<0?K+=x.length:K>x.length&&(K=x.length);w<K;w++)yield x[w]}e.slice=B;function J(x,w=Number.POSITIVE_INFINITY){const K=[];if(w===0)return[K,x];const Z=x[Symbol.iterator]();for(let ne=0;ne<w;ne++){const R=Z.next();if(R.done)return[K,e.empty()];K.push(R.value)}return[K,{[Symbol.iterator](){return Z}}]}e.consume=J;function k(x){return J(x)[0]}e.collect=k;function M(x,w,K=(Z,ne)=>Z===ne){const Z=x[Symbol.iterator](),ne=w[Symbol.iterator]();for(;;){const R=Z.next(),Y=ne.next();if(R.done!==Y.done)return!1;if(R.done)return!0;if(!K(R.value,Y.value))return!1}}e.equals=M})(qh||(qh={}));function qF(e){return e}function XF(e,n){}class VI extends Error{constructor(n){super(`Encountered errors while disposing of store. Errors: [${n.join(", ")}]`),this.errors=n}}function UT(e){if(qh.is(e)){const n=[];for(const f of e)if(f)try{f.dispose()}catch(d){n.push(d)}if(n.length===1)throw n[0];if(n.length>1)throw new VI(n);return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function WI(...e){return Xh(()=>UT(e))}function Xh(e){return{dispose:UI(()=>{e()})}}class km{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{UT(this._toDispose.values())}finally{this._toDispose.clear()}}add(n){if(!n)return n;if(n===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?km.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(n),n}}km.DISABLE_DISPOSED_WARNING=!1;class $b{constructor(){this._store=new km,this._store}dispose(){this._store.dispose()}_register(n){if(n===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(n)}}$b.None=Object.freeze({dispose(){}});class jI{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1}set(n){let f=n;return this.unset=()=>f=void 0,this.isset=()=>f!==void 0,this.dispose=()=>{f&&(f(),f=void 0)},this}}class al{constructor(n){this.element=n,this.next=al.Undefined,this.prev=al.Undefined}}al.Undefined=new al(void 0);class Yh{constructor(){this._first=al.Undefined,this._last=al.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===al.Undefined}clear(){let n=this._first;for(;n!==al.Undefined;){const f=n.next;n.prev=al.Undefined,n.next=al.Undefined,n=f}this._first=al.Undefined,this._last=al.Undefined,this._size=0}unshift(n){return this._insert(n,!1)}push(n){return this._insert(n,!0)}_insert(n,f){const d=new al(n);if(this._first===al.Undefined)this._first=d,this._last=d;else if(f){const p=this._last;this._last=d,d.prev=p,p.next=d}else{const p=this._first;this._first=d,d.next=p,p.prev=d}this._size+=1;let a=!1;return()=>{a||(a=!0,this._remove(d))}}shift(){if(this._first!==al.Undefined){const n=this._first.element;return this._remove(this._first),n}}pop(){if(this._last!==al.Undefined){const n=this._last.element;return this._remove(this._last),n}}_remove(n){if(n.prev!==al.Undefined&&n.next!==al.Undefined){const f=n.prev;f.next=n.next,n.next.prev=f}else n.prev===al.Undefined&&n.next===al.Undefined?(this._first=al.Undefined,this._last=al.Undefined):n.next===al.Undefined?(this._last=this._last.prev,this._last.next=al.Undefined):n.prev===al.Undefined&&(this._first=this._first.next,this._first.prev=al.Undefined);this._size-=1}*[Symbol.iterator](){let n=this._first;for(;n!==al.Undefined;)yield n.element,n=n.next}}let HI=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function JI(e,n){let f;return n.length===0?f=e:f=e.replace(/\{(\d+)\}/g,(d,a)=>{const p=a[0],N=n[p];let H=d;return typeof N=="string"?H=N:(typeof N=="number"||typeof N=="boolean"||N===void 0||N===null)&&(H=String(N)),H}),HI&&(f="\uFF3B"+f.replace(/[aouei]/g,"$&$&")+"\uFF3D"),f}function KI(e,n,...f){return JI(n,f)}function YF(e){}var eE;const kv="en";let rE=!1,tE=!1,nE=!1,VT=!1,Qh,aE=kv,zI,q_;const su=typeof self=="object"?self:typeof global=="object"?global:{};let lu;typeof su.vscode<"u"&&typeof su.vscode.process<"u"?lu=su.vscode.process:typeof process<"u"&&(lu=process);const qI=typeof((eE=lu==null?void 0:lu.versions)===null||eE===void 0?void 0:eE.electron)=="string"&&(lu==null?void 0:lu.type)==="renderer";if(typeof navigator=="object"&&!qI)q_=navigator.userAgent,rE=q_.indexOf("Windows")>=0,tE=q_.indexOf("Macintosh")>=0,(q_.indexOf("Macintosh")>=0||q_.indexOf("iPad")>=0||q_.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,nE=q_.indexOf("Linux")>=0,VT=!0,KI({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Qh=kv,aE=Qh;else if(typeof lu=="object"){rE=lu.platform==="win32",tE=lu.platform==="darwin",nE=lu.platform==="linux",nE&&!!lu.env.SNAP&&lu.env.SNAP_REVISION,lu.env.CI||lu.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Qh=kv,aE=kv;const e=lu.env.VSCODE_NLS_CONFIG;if(e)try{const n=JSON.parse(e),f=n.availableLanguages["*"];Qh=n.locale,aE=f||kv,zI=n._translationsConfigFile}catch{}}else console.error("Unable to resolve platform.");const Ov=rE,XI=tE;VT&&su.importScripts;const Kp=q_,YI=typeof su.postMessage=="function"&&!su.importScripts;(()=>{if(YI){const e=[];su.addEventListener("message",f=>{if(f.data&&f.data.vscodeScheduleAsyncWork)for(let d=0,a=e.length;d<a;d++){const p=e[d];if(p.id===f.data.vscodeScheduleAsyncWork){e.splice(d,1),p.callback();return}}});let n=0;return f=>{const d=++n;e.push({id:d,callback:f}),su.postMessage({vscodeScheduleAsyncWork:d},"*")}}return e=>setTimeout(e)})();const QI=!!(Kp&&Kp.indexOf("Chrome")>=0);Kp&&Kp.indexOf("Firefox")>=0,!QI&&Kp&&Kp.indexOf("Safari")>=0,Kp&&Kp.indexOf("Edg/")>=0,Kp&&Kp.indexOf("Android")>=0;const ZI=su.performance&&typeof su.performance.now=="function";class Zh{constructor(n){this._highResolution=ZI&&n,this._startTime=this._now(),this._stopTime=-1}static create(n=!0){return new Zh(n)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?su.performance.now():Date.now()}}var iE;(function(e){e.None=()=>$b.None;function n(K){return(Z,ne=null,R)=>{let Y=!1,U;return U=K($=>{if(!Y)return U?U.dispose():Y=!0,Z.call(ne,$)},null,R),Y&&U.dispose(),U}}e.once=n;function f(K,Z,ne){return h((R,Y=null,U)=>K($=>R.call(Y,Z($)),null,U),ne)}e.map=f;function d(K,Z,ne){return h((R,Y=null,U)=>K($=>{Z($),R.call(Y,$)},null,U),ne)}e.forEach=d;function a(K,Z,ne){return h((R,Y=null,U)=>K($=>Z($)&&R.call(Y,$),null,U),ne)}e.filter=a;function p(K){return K}e.signal=p;function N(...K){return(Z,ne=null,R)=>WI(...K.map(Y=>Y(U=>Z.call(ne,U),null,R)))}e.any=N;function H(K,Z,ne,R){let Y=ne;return f(K,U=>(Y=Z(Y,U),Y),R)}e.reduce=H;function h(K,Z){let ne;const R={onFirstListenerAdd(){ne=K(Y.fire,Y)},onLastListenerRemove(){ne==null||ne.dispose()}},Y=new zp(R);return Z==null||Z.add(Y),Y.event}function v(K,Z,ne=100,R=!1,Y,U){let $,T,I,y=0;const D={leakWarningThreshold:Y,onFirstListenerAdd(){$=K(m=>{y++,T=Z(T,m),R&&!I&&(C.fire(T),T=void 0),clearTimeout(I),I=setTimeout(()=>{const u=T;T=void 0,I=void 0,(!R||y>1)&&C.fire(u),y=0},ne)})},onLastListenerRemove(){$.dispose()}},C=new zp(D);return U==null||U.add(C),C.event}e.debounce=v;function A(K,Z=(R,Y)=>R===Y,ne){let R=!0,Y;return a(K,U=>{const $=R||!Z(U,Y);return R=!1,Y=U,$},ne)}e.latch=A;function q(K,Z,ne){return[e.filter(K,Z,ne),e.filter(K,R=>!Z(R),ne)]}e.split=q;function ie(K,Z=!1,ne=[]){let R=ne.slice(),Y=K(T=>{R?R.push(T):$.fire(T)});const U=()=>{R==null||R.forEach(T=>$.fire(T)),R=null},$=new zp({onFirstListenerAdd(){Y||(Y=K(T=>$.fire(T)))},onFirstListenerDidAdd(){R&&(Z?setTimeout(U):U())},onLastListenerRemove(){Y&&Y.dispose(),Y=null}});return $.event}e.buffer=ie;class b{constructor(Z){this.event=Z,this.disposables=new km}map(Z){return new b(f(this.event,Z,this.disposables))}forEach(Z){return new b(d(this.event,Z,this.disposables))}filter(Z){return new b(a(this.event,Z,this.disposables))}reduce(Z,ne){return new b(H(this.event,Z,ne,this.disposables))}latch(){return new b(A(this.event,void 0,this.disposables))}debounce(Z,ne=100,R=!1,Y){return new b(v(this.event,Z,ne,R,Y,this.disposables))}on(Z,ne,R){return this.event(Z,ne,R)}once(Z,ne,R){return n(this.event)(Z,ne,R)}dispose(){this.disposables.dispose()}}function P(K){return new b(K)}e.chain=P;function S(K,Z,ne=R=>R){const R=(...T)=>$.fire(ne(...T)),Y=()=>K.on(Z,R),U=()=>K.removeListener(Z,R),$=new zp({onFirstListenerAdd:Y,onLastListenerRemove:U});return $.event}e.fromNodeEventEmitter=S;function B(K,Z,ne=R=>R){const R=(...T)=>$.fire(ne(...T)),Y=()=>K.addEventListener(Z,R),U=()=>K.removeEventListener(Z,R),$=new zp({onFirstListenerAdd:Y,onLastListenerRemove:U});return $.event}e.fromDOMEventEmitter=B;function J(K){return new Promise(Z=>n(K)(Z))}e.toPromise=J;function k(K,Z){return Z(void 0),K(ne=>Z(ne))}e.runAndSubscribe=k;function M(K,Z){let ne=null;function R(U){ne==null||ne.dispose(),ne=new km,Z(U,ne)}R(void 0);const Y=K(U=>R(U));return Xh(()=>{Y.dispose(),ne==null||ne.dispose()})}e.runAndSubscribeWithStore=M;class x{constructor(Z,ne){this.obs=Z,this._counter=0,this._hasChanged=!1;const R={onFirstListenerAdd:()=>{Z.addObserver(this)},onLastListenerRemove:()=>{Z.removeObserver(this)}};this.emitter=new zp(R),ne&&ne.add(this.emitter)}beginUpdate(Z){this._counter++}handleChange(Z,ne){this._hasChanged=!0}endUpdate(Z){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function w(K,Z){return new x(K,Z).emitter.event}e.fromObservable=w})(iE||(iE={}));class $h{constructor(n){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${n}_${$h._idPool++}`}start(n){this._stopWatch=new Zh(!0),this._listenerCount=n}stop(){if(this._stopWatch){const n=this._stopWatch.elapsed();this._elapsedOverall+=n,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${n.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}$h._idPool=0;class oE{constructor(n){this.value=n}static create(){var n;return new oE((n=new Error().stack)!==null&&n!==void 0?n:"")}print(){console.warn(this.value.split(`
|
|
`).slice(2).join(`
|
|
`))}}class $I{constructor(n,f,d){this.callback=n,this.callbackThis=f,this.stack=d,this.subscription=new jI}invoke(n){this.callback.call(this.callbackThis,n)}}class zp{constructor(n){var f,d;this._disposed=!1,this._options=n,this._leakageMon=void 0,this._perfMon=!((f=this._options)===null||f===void 0)&&f._profName?new $h(this._options._profName):void 0,this._deliveryQueue=(d=this._options)===null||d===void 0?void 0:d.deliveryQueue}dispose(){var n,f,d,a;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),(n=this._deliveryQueue)===null||n===void 0||n.clear(this),(d=(f=this._options)===null||f===void 0?void 0:f.onLastListenerRemove)===null||d===void 0||d.call(f),(a=this._leakageMon)===null||a===void 0||a.dispose())}get event(){return this._event||(this._event=(n,f,d)=>{var a,p,N;this._listeners||(this._listeners=new Yh);const H=this._listeners.isEmpty();H&&((a=this._options)===null||a===void 0?void 0:a.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this);let h,v;this._leakageMon&&this._listeners.size>=30&&(v=oE.create(),h=this._leakageMon.check(v,this._listeners.size+1));const A=new $I(n,f,v),q=this._listeners.push(A);H&&((p=this._options)===null||p===void 0?void 0:p.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),!((N=this._options)===null||N===void 0)&&N.onListenerDidAdd&&this._options.onListenerDidAdd(this,n,f);const ie=A.subscription.set(()=>{h==null||h(),this._disposed||(q(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return d instanceof km?d.add(ie):Array.isArray(d)&&d.push(ie),ie}),this._event}fire(n){var f,d;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new rN);for(const a of this._listeners)this._deliveryQueue.push(this,a,n);(f=this._perfMon)===null||f===void 0||f.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(d=this._perfMon)===null||d===void 0||d.stop()}}}class eN{constructor(){this._queue=new Yh}get size(){return this._queue.size}push(n,f,d){this._queue.push(new tN(n,f,d))}clear(n){const f=new Yh;for(const d of this._queue)d.emitter!==n&&f.push(d);this._queue=f}deliver(){for(;this._queue.size>0;){const n=this._queue.shift();try{n.listener.invoke(n.event)}catch(f){Nm(f)}}}}class rN extends eN{clear(n){this._queue.clear()}}class tN{constructor(n,f,d){this.emitter=n,this.listener=f,this.event=d}}function nN(e){let n=[],f=Object.getPrototypeOf(e);for(;Object.prototype!==f;)n=n.concat(Object.getOwnPropertyNames(f)),f=Object.getPrototypeOf(f);return n}function sE(e){const n=[];for(const f of nN(e))typeof e[f]=="function"&&n.push(f);return n}function aN(e,n){const f=a=>function(){const p=Array.prototype.slice.call(arguments,0);return n(a,p)},d={};for(const a of e)d[a]=f(a);return d}function iN(e,n="Unreachable"){throw new Error(n)}class oN{constructor(n){this.fn=n,this.lastCache=void 0,this.lastArgKey=void 0}get(n){const f=JSON.stringify(n);return this.lastArgKey!==f&&(this.lastArgKey=f,this.lastCache=this.fn(n)),this.lastCache}}class WT{constructor(n){this.executor=n,this._didRun=!1}hasValue(){return this._didRun}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(n){this._error=n}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var jT;function sN(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function lN(e){return e.split(/\r\n|\r|\n/)}function cN(e){for(let n=0,f=e.length;n<f;n++){const d=e.charCodeAt(n);if(d!==32&&d!==9)return n}return-1}function uN(e,n=e.length-1){for(let f=n;f>=0;f--){const d=e.charCodeAt(f);if(d!==32&&d!==9)return f}return-1}function HT(e){return e>=65&&e<=90}function lE(e){return 55296<=e&&e<=56319}function fN(e){return 56320<=e&&e<=57343}function dN(e,n){return(e-55296<<10)+(n-56320)+65536}function pN(e,n,f){const d=e.charCodeAt(f);if(lE(d)&&f+1<n){const a=e.charCodeAt(f+1);if(fN(a))return dN(d,a)}return d}const _N=/^[\t\n\r\x20-\x7E]*$/;function mN(e){return _N.test(e)}class Id{constructor(n){this.confusableDictionary=n}static getInstance(n){return Id.cache.get(Array.from(n))}static getLocales(){return Id._locales.getValue()}isAmbiguous(n){return this.confusableDictionary.has(n)}getPrimaryConfusable(n){return this.confusableDictionary.get(n)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}jT=Id,Id.ambiguousCharacterData=new WT(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),Id.cache=new oN(e=>{function n(v){const A=new Map;for(let q=0;q<v.length;q+=2)A.set(v[q],v[q+1]);return A}function f(v,A){const q=new Map(v);for(const[ie,b]of A)q.set(ie,b);return q}function d(v,A){if(!v)return A;const q=new Map;for(const[ie,b]of v)A.has(ie)&&q.set(ie,b);return q}const a=jT.ambiguousCharacterData.getValue();let p=e.filter(v=>!v.startsWith("_")&&v in a);p.length===0&&(p=["_default"]);let N;for(const v of p){const A=n(a[v]);N=d(N,A)}const H=n(a._common),h=f(H,N);return new Id(h)}),Id._locales=new WT(()=>Object.keys(Id.ambiguousCharacterData.getValue()).filter(e=>!e.startsWith("_")));class X_{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(X_.getRawData())),this._data}static isInvisibleCharacter(n){return X_.getData().has(n)}static get codePoints(){return X_.getData()}}X_._data=void 0;const gN="$initialize";class vN{constructor(n,f,d,a){this.vsWorker=n,this.req=f,this.method=d,this.args=a,this.type=0}}class JT{constructor(n,f,d,a){this.vsWorker=n,this.seq=f,this.res=d,this.err=a,this.type=1}}class hN{constructor(n,f,d,a){this.vsWorker=n,this.req=f,this.eventName=d,this.arg=a,this.type=2}}class yN{constructor(n,f,d){this.vsWorker=n,this.req=f,this.event=d,this.type=3}}class bN{constructor(n,f){this.vsWorker=n,this.req=f,this.type=4}}class EN{constructor(n){this._workerId=-1,this._handler=n,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(n){this._workerId=n}sendMessage(n,f){const d=String(++this._lastSentReq);return new Promise((a,p)=>{this._pendingReplies[d]={resolve:a,reject:p},this._send(new vN(this._workerId,d,n,f))})}listen(n,f){let d=null;const a=new zp({onFirstListenerAdd:()=>{d=String(++this._lastSentReq),this._pendingEmitters.set(d,a),this._send(new hN(this._workerId,d,n,f))},onLastListenerRemove:()=>{this._pendingEmitters.delete(d),this._send(new bN(this._workerId,d)),d=null}});return a.event}handleMessage(n){!n||!n.vsWorker||this._workerId!==-1&&n.vsWorker!==this._workerId||this._handleMessage(n)}_handleMessage(n){switch(n.type){case 1:return this._handleReplyMessage(n);case 0:return this._handleRequestMessage(n);case 2:return this._handleSubscribeEventMessage(n);case 3:return this._handleEventMessage(n);case 4:return this._handleUnsubscribeEventMessage(n)}}_handleReplyMessage(n){if(!this._pendingReplies[n.seq]){console.warn("Got reply to unknown seq");return}const f=this._pendingReplies[n.seq];if(delete this._pendingReplies[n.seq],n.err){let d=n.err;n.err.$isError&&(d=new Error,d.name=n.err.name,d.message=n.err.message,d.stack=n.err.stack),f.reject(d);return}f.resolve(n.res)}_handleRequestMessage(n){const f=n.req;this._handler.handleMessage(n.method,n.args).then(a=>{this._send(new JT(this._workerId,f,a,void 0))},a=>{a.detail instanceof Error&&(a.detail=BT(a.detail)),this._send(new JT(this._workerId,f,void 0,BT(a)))})}_handleSubscribeEventMessage(n){const f=n.req,d=this._handler.handleEvent(n.eventName,n.arg)(a=>{this._send(new yN(this._workerId,f,a))});this._pendingEvents.set(f,d)}_handleEventMessage(n){if(!this._pendingEmitters.has(n.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(n.req).fire(n.event)}_handleUnsubscribeEventMessage(n){if(!this._pendingEvents.has(n.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(n.req).dispose(),this._pendingEvents.delete(n.req)}_send(n){const f=[];if(n.type===0)for(let d=0;d<n.args.length;d++)n.args[d]instanceof ArrayBuffer&&f.push(n.args[d]);else n.type===1&&n.res instanceof ArrayBuffer&&f.push(n.res);this._handler.sendMessage(n,f)}}function KT(e){return e[0]==="o"&&e[1]==="n"&&HT(e.charCodeAt(2))}function zT(e){return/^onDynamic/.test(e)&&HT(e.charCodeAt(9))}function TN(e,n,f){const d=N=>function(){const H=Array.prototype.slice.call(arguments,0);return n(N,H)},a=N=>function(H){return f(N,H)},p={};for(const N of e){if(zT(N)){p[N]=a(N);continue}if(KT(N)){p[N]=f(N,void 0);continue}p[N]=d(N)}return p}class SN{constructor(n,f){this._requestHandlerFactory=f,this._requestHandler=null,this._protocol=new EN({sendMessage:(d,a)=>{n(d,a)},handleMessage:(d,a)=>this._handleMessage(d,a),handleEvent:(d,a)=>this._handleEvent(d,a)})}onmessage(n){this._protocol.handleMessage(n)}_handleMessage(n,f){if(n===gN)return this.initialize(f[0],f[1],f[2],f[3]);if(!this._requestHandler||typeof this._requestHandler[n]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+n));try{return Promise.resolve(this._requestHandler[n].apply(this._requestHandler,f))}catch(d){return Promise.reject(d)}}_handleEvent(n,f){if(!this._requestHandler)throw new Error("Missing requestHandler");if(zT(n)){const d=this._requestHandler[n].call(this._requestHandler,f);if(typeof d!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);return d}if(KT(n)){const d=this._requestHandler[n];if(typeof d!="function")throw new Error(`Missing event ${n} on request handler.`);return d}throw new Error(`Malformed event name ${n}`)}initialize(n,f,d,a){this._protocol.setWorkerId(n);const H=TN(a,(h,v)=>this._protocol.sendMessage(h,v),(h,v)=>this._protocol.listen(h,v));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(H),Promise.resolve(sE(this._requestHandler))):(f&&(typeof f.baseUrl<"u"&&delete f.baseUrl,typeof f.paths<"u"&&typeof f.paths.vs<"u"&&delete f.paths.vs,typeof f.trustedTypesPolicy!==void 0&&delete f.trustedTypesPolicy,f.catchError=!0,su.require.config(f)),new Promise((h,v)=>{const A=su.require;A([d],q=>{if(this._requestHandler=q.create(H),!this._requestHandler){v(new Error("No RequestHandler!"));return}h(sE(this._requestHandler))},v)}))}}class Y_{constructor(n,f,d,a){this.originalStart=n,this.originalLength=f,this.modifiedStart=d,this.modifiedLength=a}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function qT(e,n){return(n<<5)-n+e|0}function DN(e,n){n=qT(149417,n);for(let f=0,d=e.length;f<d;f++)n=qT(e.charCodeAt(f),n);return n}class XT{constructor(n){this.source=n}getElements(){const n=this.source,f=new Int32Array(n.length);for(let d=0,a=n.length;d<a;d++)f[d]=n.charCodeAt(d);return f}}function LN(e,n,f){return new Q_(new XT(e),new XT(n)).ComputeDiff(f).changes}class xg{static Assert(n,f){if(!n)throw new Error(f)}}class Ig{static Copy(n,f,d,a,p){for(let N=0;N<p;N++)d[a+N]=n[f+N]}static Copy2(n,f,d,a,p){for(let N=0;N<p;N++)d[a+N]=n[f+N]}}class YT{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 Y_(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(n,f){this.m_originalStart=Math.min(this.m_originalStart,n),this.m_modifiedStart=Math.min(this.m_modifiedStart,f),this.m_originalCount++}AddModifiedElement(n,f){this.m_originalStart=Math.min(this.m_originalStart,n),this.m_modifiedStart=Math.min(this.m_modifiedStart,f),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 Q_{constructor(n,f,d=null){this.ContinueProcessingPredicate=d,this._originalSequence=n,this._modifiedSequence=f;const[a,p,N]=Q_._getElements(n),[H,h,v]=Q_._getElements(f);this._hasStrings=N&&v,this._originalStringElements=a,this._originalElementsOrHash=p,this._modifiedStringElements=H,this._modifiedElementsOrHash=h,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(n){return n.length>0&&typeof n[0]=="string"}static _getElements(n){const f=n.getElements();if(Q_._isStringArray(f)){const d=new Int32Array(f.length);for(let a=0,p=f.length;a<p;a++)d[a]=DN(f[a],0);return[f,d,!0]}return f instanceof Int32Array?[[],f,!1]:[[],new Int32Array(f),!1]}ElementsAreEqual(n,f){return this._originalElementsOrHash[n]!==this._modifiedElementsOrHash[f]?!1:this._hasStrings?this._originalStringElements[n]===this._modifiedStringElements[f]:!0}ElementsAreStrictEqual(n,f){if(!this.ElementsAreEqual(n,f))return!1;const d=Q_._getStrictElement(this._originalSequence,n),a=Q_._getStrictElement(this._modifiedSequence,f);return d===a}static _getStrictElement(n,f){return typeof n.getStrictElement=="function"?n.getStrictElement(f):null}OriginalElementsAreEqual(n,f){return this._originalElementsOrHash[n]!==this._originalElementsOrHash[f]?!1:this._hasStrings?this._originalStringElements[n]===this._originalStringElements[f]:!0}ModifiedElementsAreEqual(n,f){return this._modifiedElementsOrHash[n]!==this._modifiedElementsOrHash[f]?!1:this._hasStrings?this._modifiedStringElements[n]===this._modifiedStringElements[f]:!0}ComputeDiff(n){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,n)}_ComputeDiff(n,f,d,a,p){const N=[!1];let H=this.ComputeDiffRecursive(n,f,d,a,N);return p&&(H=this.PrettifyChanges(H)),{quitEarly:N[0],changes:H}}ComputeDiffRecursive(n,f,d,a,p){for(p[0]=!1;n<=f&&d<=a&&this.ElementsAreEqual(n,d);)n++,d++;for(;f>=n&&a>=d&&this.ElementsAreEqual(f,a);)f--,a--;if(n>f||d>a){let q;return d<=a?(xg.Assert(n===f+1,"originalStart should only be one more than originalEnd"),q=[new Y_(n,0,d,a-d+1)]):n<=f?(xg.Assert(d===a+1,"modifiedStart should only be one more than modifiedEnd"),q=[new Y_(n,f-n+1,d,0)]):(xg.Assert(n===f+1,"originalStart should only be one more than originalEnd"),xg.Assert(d===a+1,"modifiedStart should only be one more than modifiedEnd"),q=[]),q}const N=[0],H=[0],h=this.ComputeRecursionPoint(n,f,d,a,N,H,p),v=N[0],A=H[0];if(h!==null)return h;if(!p[0]){const q=this.ComputeDiffRecursive(n,v,d,A,p);let ie=[];return p[0]?ie=[new Y_(v+1,f-(v+1)+1,A+1,a-(A+1)+1)]:ie=this.ComputeDiffRecursive(v+1,f,A+1,a,p),this.ConcatenateChanges(q,ie)}return[new Y_(n,f-n+1,d,a-d+1)]}WALKTRACE(n,f,d,a,p,N,H,h,v,A,q,ie,b,P,S,B,J,k){let M=null,x=null,w=new YT,K=f,Z=d,ne=b[0]-B[0]-a,R=-1073741824,Y=this.m_forwardHistory.length-1;do{const U=ne+n;U===K||U<Z&&v[U-1]<v[U+1]?(q=v[U+1],P=q-ne-a,q<R&&w.MarkNextChange(),R=q,w.AddModifiedElement(q+1,P),ne=U+1-n):(q=v[U-1]+1,P=q-ne-a,q<R&&w.MarkNextChange(),R=q-1,w.AddOriginalElement(q,P+1),ne=U-1-n),Y>=0&&(v=this.m_forwardHistory[Y],n=v[0],K=1,Z=v.length-1)}while(--Y>=-1);if(M=w.getReverseChanges(),k[0]){let U=b[0]+1,$=B[0]+1;if(M!==null&&M.length>0){const T=M[M.length-1];U=Math.max(U,T.getOriginalEnd()),$=Math.max($,T.getModifiedEnd())}x=[new Y_(U,ie-U+1,$,S-$+1)]}else{w=new YT,K=N,Z=H,ne=b[0]-B[0]-h,R=1073741824,Y=J?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const U=ne+p;U===K||U<Z&&A[U-1]>=A[U+1]?(q=A[U+1]-1,P=q-ne-h,q>R&&w.MarkNextChange(),R=q+1,w.AddOriginalElement(q+1,P+1),ne=U+1-p):(q=A[U-1],P=q-ne-h,q>R&&w.MarkNextChange(),R=q,w.AddModifiedElement(q+1,P+1),ne=U-1-p),Y>=0&&(A=this.m_reverseHistory[Y],p=A[0],K=1,Z=A.length-1)}while(--Y>=-1);x=w.getChanges()}return this.ConcatenateChanges(M,x)}ComputeRecursionPoint(n,f,d,a,p,N,H){let h=0,v=0,A=0,q=0,ie=0,b=0;n--,d--,p[0]=0,N[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const P=f-n+(a-d),S=P+1,B=new Int32Array(S),J=new Int32Array(S),k=a-d,M=f-n,x=n-d,w=f-a,Z=(M-k)%2===0;B[k]=n,J[M]=f,H[0]=!1;for(let ne=1;ne<=P/2+1;ne++){let R=0,Y=0;A=this.ClipDiagonalBound(k-ne,ne,k,S),q=this.ClipDiagonalBound(k+ne,ne,k,S);for(let $=A;$<=q;$+=2){$===A||$<q&&B[$-1]<B[$+1]?h=B[$+1]:h=B[$-1]+1,v=h-($-k)-x;const T=h;for(;h<f&&v<a&&this.ElementsAreEqual(h+1,v+1);)h++,v++;if(B[$]=h,h+v>R+Y&&(R=h,Y=v),!Z&&Math.abs($-M)<=ne-1&&h>=J[$])return p[0]=h,N[0]=v,T<=J[$]&&1447>0&&ne<=1447+1?this.WALKTRACE(k,A,q,x,M,ie,b,w,B,J,h,f,p,v,a,N,Z,H):null}const U=(R-n+(Y-d)-ne)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(R,U))return H[0]=!0,p[0]=R,N[0]=Y,U>0&&1447>0&&ne<=1447+1?this.WALKTRACE(k,A,q,x,M,ie,b,w,B,J,h,f,p,v,a,N,Z,H):(n++,d++,[new Y_(n,f-n+1,d,a-d+1)]);ie=this.ClipDiagonalBound(M-ne,ne,M,S),b=this.ClipDiagonalBound(M+ne,ne,M,S);for(let $=ie;$<=b;$+=2){$===ie||$<b&&J[$-1]>=J[$+1]?h=J[$+1]-1:h=J[$-1],v=h-($-M)-w;const T=h;for(;h>n&&v>d&&this.ElementsAreEqual(h,v);)h--,v--;if(J[$]=h,Z&&Math.abs($-k)<=ne&&h<=B[$])return p[0]=h,N[0]=v,T>=B[$]&&1447>0&&ne<=1447+1?this.WALKTRACE(k,A,q,x,M,ie,b,w,B,J,h,f,p,v,a,N,Z,H):null}if(ne<=1447){let $=new Int32Array(q-A+2);$[0]=k-A+1,Ig.Copy2(B,A,$,1,q-A+1),this.m_forwardHistory.push($),$=new Int32Array(b-ie+2),$[0]=M-ie+1,Ig.Copy2(J,ie,$,1,b-ie+1),this.m_reverseHistory.push($)}}return this.WALKTRACE(k,A,q,x,M,ie,b,w,B,J,h,f,p,v,a,N,Z,H)}PrettifyChanges(n){for(let f=0;f<n.length;f++){const d=n[f],a=f<n.length-1?n[f+1].originalStart:this._originalElementsOrHash.length,p=f<n.length-1?n[f+1].modifiedStart:this._modifiedElementsOrHash.length,N=d.originalLength>0,H=d.modifiedLength>0;for(;d.originalStart+d.originalLength<a&&d.modifiedStart+d.modifiedLength<p&&(!N||this.OriginalElementsAreEqual(d.originalStart,d.originalStart+d.originalLength))&&(!H||this.ModifiedElementsAreEqual(d.modifiedStart,d.modifiedStart+d.modifiedLength));){const v=this.ElementsAreStrictEqual(d.originalStart,d.modifiedStart);if(this.ElementsAreStrictEqual(d.originalStart+d.originalLength,d.modifiedStart+d.modifiedLength)&&!v)break;d.originalStart++,d.modifiedStart++}const h=[null];if(f<n.length-1&&this.ChangesOverlap(n[f],n[f+1],h)){n[f]=h[0],n.splice(f+1,1),f--;continue}}for(let f=n.length-1;f>=0;f--){const d=n[f];let a=0,p=0;if(f>0){const q=n[f-1];a=q.originalStart+q.originalLength,p=q.modifiedStart+q.modifiedLength}const N=d.originalLength>0,H=d.modifiedLength>0;let h=0,v=this._boundaryScore(d.originalStart,d.originalLength,d.modifiedStart,d.modifiedLength);for(let q=1;;q++){const ie=d.originalStart-q,b=d.modifiedStart-q;if(ie<a||b<p||N&&!this.OriginalElementsAreEqual(ie,ie+d.originalLength)||H&&!this.ModifiedElementsAreEqual(b,b+d.modifiedLength))break;const S=(ie===a&&b===p?5:0)+this._boundaryScore(ie,d.originalLength,b,d.modifiedLength);S>v&&(v=S,h=q)}d.originalStart-=h,d.modifiedStart-=h;const A=[null];if(f>0&&this.ChangesOverlap(n[f-1],n[f],A)){n[f-1]=A[0],n.splice(f,1),f++;continue}}if(this._hasStrings)for(let f=1,d=n.length;f<d;f++){const a=n[f-1],p=n[f],N=p.originalStart-a.originalStart-a.originalLength,H=a.originalStart,h=p.originalStart+p.originalLength,v=h-H,A=a.modifiedStart,q=p.modifiedStart+p.modifiedLength,ie=q-A;if(N<5&&v<20&&ie<20){const b=this._findBetterContiguousSequence(H,v,A,ie,N);if(b){const[P,S]=b;(P!==a.originalStart+a.originalLength||S!==a.modifiedStart+a.modifiedLength)&&(a.originalLength=P-a.originalStart,a.modifiedLength=S-a.modifiedStart,p.originalStart=P+N,p.modifiedStart=S+N,p.originalLength=h-p.originalStart,p.modifiedLength=q-p.modifiedStart)}}}return n}_findBetterContiguousSequence(n,f,d,a,p){if(f<p||a<p)return null;const N=n+f-p+1,H=d+a-p+1;let h=0,v=0,A=0;for(let q=n;q<N;q++)for(let ie=d;ie<H;ie++){const b=this._contiguousSequenceScore(q,ie,p);b>0&&b>h&&(h=b,v=q,A=ie)}return h>0?[v,A]:null}_contiguousSequenceScore(n,f,d){let a=0;for(let p=0;p<d;p++){if(!this.ElementsAreEqual(n+p,f+p))return 0;a+=this._originalStringElements[n+p].length}return a}_OriginalIsBoundary(n){return n<=0||n>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[n])}_OriginalRegionIsBoundary(n,f){if(this._OriginalIsBoundary(n)||this._OriginalIsBoundary(n-1))return!0;if(f>0){const d=n+f;if(this._OriginalIsBoundary(d-1)||this._OriginalIsBoundary(d))return!0}return!1}_ModifiedIsBoundary(n){return n<=0||n>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[n])}_ModifiedRegionIsBoundary(n,f){if(this._ModifiedIsBoundary(n)||this._ModifiedIsBoundary(n-1))return!0;if(f>0){const d=n+f;if(this._ModifiedIsBoundary(d-1)||this._ModifiedIsBoundary(d))return!0}return!1}_boundaryScore(n,f,d,a){const p=this._OriginalRegionIsBoundary(n,f)?1:0,N=this._ModifiedRegionIsBoundary(d,a)?1:0;return p+N}ConcatenateChanges(n,f){const d=[];if(n.length===0||f.length===0)return f.length>0?f:n;if(this.ChangesOverlap(n[n.length-1],f[0],d)){const a=new Array(n.length+f.length-1);return Ig.Copy(n,0,a,0,n.length-1),a[n.length-1]=d[0],Ig.Copy(f,1,a,n.length,f.length-1),a}else{const a=new Array(n.length+f.length);return Ig.Copy(n,0,a,0,n.length),Ig.Copy(f,0,a,n.length,f.length),a}}ChangesOverlap(n,f,d){if(xg.Assert(n.originalStart<=f.originalStart,"Left change is not less than or equal to right change"),xg.Assert(n.modifiedStart<=f.modifiedStart,"Left change is not less than or equal to right change"),n.originalStart+n.originalLength>=f.originalStart||n.modifiedStart+n.modifiedLength>=f.modifiedStart){const a=n.originalStart;let p=n.originalLength;const N=n.modifiedStart;let H=n.modifiedLength;return n.originalStart+n.originalLength>=f.originalStart&&(p=f.originalStart+f.originalLength-n.originalStart),n.modifiedStart+n.modifiedLength>=f.modifiedStart&&(H=f.modifiedStart+f.modifiedLength-n.modifiedStart),d[0]=new Y_(a,p,N,H),!0}else return d[0]=null,!1}ClipDiagonalBound(n,f,d,a){if(n>=0&&n<a)return n;const p=d,N=a-d-1,H=f%2===0;if(n<0){const h=p%2===0;return H===h?0:1}else{const h=N%2===0;return H===h?a-1:a-2}}}let Ng;if(typeof su.vscode<"u"&&typeof su.vscode.process<"u"){const e=su.vscode.process;Ng={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"?Ng={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Ng={get platform(){return Ov?"win32":XI?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const cE=Ng.cwd,AN=Ng.env,Om=Ng.platform,CN=65,xN=97,IN=90,NN=122,Z_=46,Wc=47,pf=92,$_=58,kN=63;class QT extends Error{constructor(n,f,d){let a;typeof f=="string"&&f.indexOf("not ")===0?(a="must not be",f=f.replace(/^not /,"")):a="must be";const p=n.indexOf(".")!==-1?"property":"argument";let N=`The "${n}" ${p} ${a} of type ${f}`;N+=`. Received type ${typeof d}`,super(N),this.code="ERR_INVALID_ARG_TYPE"}}function Kl(e,n){if(typeof e!="string")throw new QT(n,"string",e)}function Zo(e){return e===Wc||e===pf}function uE(e){return e===Wc}function em(e){return e>=CN&&e<=IN||e>=xN&&e<=NN}function ey(e,n,f,d){let a="",p=0,N=-1,H=0,h=0;for(let v=0;v<=e.length;++v){if(v<e.length)h=e.charCodeAt(v);else{if(d(h))break;h=Wc}if(d(h)){if(!(N===v-1||H===1))if(H===2){if(a.length<2||p!==2||a.charCodeAt(a.length-1)!==Z_||a.charCodeAt(a.length-2)!==Z_){if(a.length>2){const A=a.lastIndexOf(f);A===-1?(a="",p=0):(a=a.slice(0,A),p=a.length-1-a.lastIndexOf(f)),N=v,H=0;continue}else if(a.length!==0){a="",p=0,N=v,H=0;continue}}n&&(a+=a.length>0?`${f}..`:"..",p=2)}else a.length>0?a+=`${f}${e.slice(N+1,v)}`:a=e.slice(N+1,v),p=v-N-1;N=v,H=0}else h===Z_&&H!==-1?++H:H=-1}return a}function ZT(e,n){if(n===null||typeof n!="object")throw new QT("pathObject","Object",n);const f=n.dir||n.root,d=n.base||`${n.name||""}${n.ext||""}`;return f?f===n.root?`${f}${d}`:`${f}${e}${d}`:d}const Yu={resolve(...e){let n="",f="",d=!1;for(let a=e.length-1;a>=-1;a--){let p;if(a>=0){if(p=e[a],Kl(p,"path"),p.length===0)continue}else n.length===0?p=cE():(p=AN[`=${n}`]||cE(),(p===void 0||p.slice(0,2).toLowerCase()!==n.toLowerCase()&&p.charCodeAt(2)===pf)&&(p=`${n}\\`));const N=p.length;let H=0,h="",v=!1;const A=p.charCodeAt(0);if(N===1)Zo(A)&&(H=1,v=!0);else if(Zo(A))if(v=!0,Zo(p.charCodeAt(1))){let q=2,ie=q;for(;q<N&&!Zo(p.charCodeAt(q));)q++;if(q<N&&q!==ie){const b=p.slice(ie,q);for(ie=q;q<N&&Zo(p.charCodeAt(q));)q++;if(q<N&&q!==ie){for(ie=q;q<N&&!Zo(p.charCodeAt(q));)q++;(q===N||q!==ie)&&(h=`\\\\${b}\\${p.slice(ie,q)}`,H=q)}}}else H=1;else em(A)&&p.charCodeAt(1)===$_&&(h=p.slice(0,2),H=2,N>2&&Zo(p.charCodeAt(2))&&(v=!0,H=3));if(h.length>0)if(n.length>0){if(h.toLowerCase()!==n.toLowerCase())continue}else n=h;if(d){if(n.length>0)break}else if(f=`${p.slice(H)}\\${f}`,d=v,v&&n.length>0)break}return f=ey(f,!d,"\\",Zo),d?`${n}\\${f}`:`${n}${f}`||"."},normalize(e){Kl(e,"path");const n=e.length;if(n===0)return".";let f=0,d,a=!1;const p=e.charCodeAt(0);if(n===1)return uE(p)?"\\":e;if(Zo(p))if(a=!0,Zo(e.charCodeAt(1))){let H=2,h=H;for(;H<n&&!Zo(e.charCodeAt(H));)H++;if(H<n&&H!==h){const v=e.slice(h,H);for(h=H;H<n&&Zo(e.charCodeAt(H));)H++;if(H<n&&H!==h){for(h=H;H<n&&!Zo(e.charCodeAt(H));)H++;if(H===n)return`\\\\${v}\\${e.slice(h)}\\`;H!==h&&(d=`\\\\${v}\\${e.slice(h,H)}`,f=H)}}}else f=1;else em(p)&&e.charCodeAt(1)===$_&&(d=e.slice(0,2),f=2,n>2&&Zo(e.charCodeAt(2))&&(a=!0,f=3));let N=f<n?ey(e.slice(f),!a,"\\",Zo):"";return N.length===0&&!a&&(N="."),N.length>0&&Zo(e.charCodeAt(n-1))&&(N+="\\"),d===void 0?a?`\\${N}`:N:a?`${d}\\${N}`:`${d}${N}`},isAbsolute(e){Kl(e,"path");const n=e.length;if(n===0)return!1;const f=e.charCodeAt(0);return Zo(f)||n>2&&em(f)&&e.charCodeAt(1)===$_&&Zo(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let n,f;for(let p=0;p<e.length;++p){const N=e[p];Kl(N,"path"),N.length>0&&(n===void 0?n=f=N:n+=`\\${N}`)}if(n===void 0)return".";let d=!0,a=0;if(typeof f=="string"&&Zo(f.charCodeAt(0))){++a;const p=f.length;p>1&&Zo(f.charCodeAt(1))&&(++a,p>2&&(Zo(f.charCodeAt(2))?++a:d=!1))}if(d){for(;a<n.length&&Zo(n.charCodeAt(a));)a++;a>=2&&(n=`\\${n.slice(a)}`)}return Yu.normalize(n)},relative(e,n){if(Kl(e,"from"),Kl(n,"to"),e===n)return"";const f=Yu.resolve(e),d=Yu.resolve(n);if(f===d||(e=f.toLowerCase(),n=d.toLowerCase(),e===n))return"";let a=0;for(;a<e.length&&e.charCodeAt(a)===pf;)a++;let p=e.length;for(;p-1>a&&e.charCodeAt(p-1)===pf;)p--;const N=p-a;let H=0;for(;H<n.length&&n.charCodeAt(H)===pf;)H++;let h=n.length;for(;h-1>H&&n.charCodeAt(h-1)===pf;)h--;const v=h-H,A=N<v?N:v;let q=-1,ie=0;for(;ie<A;ie++){const P=e.charCodeAt(a+ie);if(P!==n.charCodeAt(H+ie))break;P===pf&&(q=ie)}if(ie!==A){if(q===-1)return d}else{if(v>A){if(n.charCodeAt(H+ie)===pf)return d.slice(H+ie+1);if(ie===2)return d.slice(H+ie)}N>A&&(e.charCodeAt(a+ie)===pf?q=ie:ie===2&&(q=3)),q===-1&&(q=0)}let b="";for(ie=a+q+1;ie<=p;++ie)(ie===p||e.charCodeAt(ie)===pf)&&(b+=b.length===0?"..":"\\..");return H+=q,b.length>0?`${b}${d.slice(H,h)}`:(d.charCodeAt(H)===pf&&++H,d.slice(H,h))},toNamespacedPath(e){if(typeof e!="string")return e;if(e.length===0)return"";const n=Yu.resolve(e);if(n.length<=2)return e;if(n.charCodeAt(0)===pf){if(n.charCodeAt(1)===pf){const f=n.charCodeAt(2);if(f!==kN&&f!==Z_)return`\\\\?\\UNC\\${n.slice(2)}`}}else if(em(n.charCodeAt(0))&&n.charCodeAt(1)===$_&&n.charCodeAt(2)===pf)return`\\\\?\\${n}`;return e},dirname(e){Kl(e,"path");const n=e.length;if(n===0)return".";let f=-1,d=0;const a=e.charCodeAt(0);if(n===1)return Zo(a)?e:".";if(Zo(a)){if(f=d=1,Zo(e.charCodeAt(1))){let H=2,h=H;for(;H<n&&!Zo(e.charCodeAt(H));)H++;if(H<n&&H!==h){for(h=H;H<n&&Zo(e.charCodeAt(H));)H++;if(H<n&&H!==h){for(h=H;H<n&&!Zo(e.charCodeAt(H));)H++;if(H===n)return e;H!==h&&(f=d=H+1)}}}}else em(a)&&e.charCodeAt(1)===$_&&(f=n>2&&Zo(e.charCodeAt(2))?3:2,d=f);let p=-1,N=!0;for(let H=n-1;H>=d;--H)if(Zo(e.charCodeAt(H))){if(!N){p=H;break}}else N=!1;if(p===-1){if(f===-1)return".";p=f}return e.slice(0,p)},basename(e,n){n!==void 0&&Kl(n,"ext"),Kl(e,"path");let f=0,d=-1,a=!0,p;if(e.length>=2&&em(e.charCodeAt(0))&&e.charCodeAt(1)===$_&&(f=2),n!==void 0&&n.length>0&&n.length<=e.length){if(n===e)return"";let N=n.length-1,H=-1;for(p=e.length-1;p>=f;--p){const h=e.charCodeAt(p);if(Zo(h)){if(!a){f=p+1;break}}else H===-1&&(a=!1,H=p+1),N>=0&&(h===n.charCodeAt(N)?--N===-1&&(d=p):(N=-1,d=H))}return f===d?d=H:d===-1&&(d=e.length),e.slice(f,d)}for(p=e.length-1;p>=f;--p)if(Zo(e.charCodeAt(p))){if(!a){f=p+1;break}}else d===-1&&(a=!1,d=p+1);return d===-1?"":e.slice(f,d)},extname(e){Kl(e,"path");let n=0,f=-1,d=0,a=-1,p=!0,N=0;e.length>=2&&e.charCodeAt(1)===$_&&em(e.charCodeAt(0))&&(n=d=2);for(let H=e.length-1;H>=n;--H){const h=e.charCodeAt(H);if(Zo(h)){if(!p){d=H+1;break}continue}a===-1&&(p=!1,a=H+1),h===Z_?f===-1?f=H:N!==1&&(N=1):f!==-1&&(N=-1)}return f===-1||a===-1||N===0||N===1&&f===a-1&&f===d+1?"":e.slice(f,a)},format:ZT.bind(null,"\\"),parse(e){Kl(e,"path");const n={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return n;const f=e.length;let d=0,a=e.charCodeAt(0);if(f===1)return Zo(a)?(n.root=n.dir=e,n):(n.base=n.name=e,n);if(Zo(a)){if(d=1,Zo(e.charCodeAt(1))){let q=2,ie=q;for(;q<f&&!Zo(e.charCodeAt(q));)q++;if(q<f&&q!==ie){for(ie=q;q<f&&Zo(e.charCodeAt(q));)q++;if(q<f&&q!==ie){for(ie=q;q<f&&!Zo(e.charCodeAt(q));)q++;q===f?d=q:q!==ie&&(d=q+1)}}}}else if(em(a)&&e.charCodeAt(1)===$_){if(f<=2)return n.root=n.dir=e,n;if(d=2,Zo(e.charCodeAt(2))){if(f===3)return n.root=n.dir=e,n;d=3}}d>0&&(n.root=e.slice(0,d));let p=-1,N=d,H=-1,h=!0,v=e.length-1,A=0;for(;v>=d;--v){if(a=e.charCodeAt(v),Zo(a)){if(!h){N=v+1;break}continue}H===-1&&(h=!1,H=v+1),a===Z_?p===-1?p=v:A!==1&&(A=1):p!==-1&&(A=-1)}return H!==-1&&(p===-1||A===0||A===1&&p===H-1&&p===N+1?n.base=n.name=e.slice(N,H):(n.name=e.slice(N,p),n.base=e.slice(N,H),n.ext=e.slice(p,H))),N>0&&N!==d?n.dir=e.slice(0,N-1):n.dir=n.root,n},sep:"\\",delimiter:";",win32:null,posix:null},_f={resolve(...e){let n="",f=!1;for(let d=e.length-1;d>=-1&&!f;d--){const a=d>=0?e[d]:cE();Kl(a,"path"),a.length!==0&&(n=`${a}/${n}`,f=a.charCodeAt(0)===Wc)}return n=ey(n,!f,"/",uE),f?`/${n}`:n.length>0?n:"."},normalize(e){if(Kl(e,"path"),e.length===0)return".";const n=e.charCodeAt(0)===Wc,f=e.charCodeAt(e.length-1)===Wc;return e=ey(e,!n,"/",uE),e.length===0?n?"/":f?"./":".":(f&&(e+="/"),n?`/${e}`:e)},isAbsolute(e){return Kl(e,"path"),e.length>0&&e.charCodeAt(0)===Wc},join(...e){if(e.length===0)return".";let n;for(let f=0;f<e.length;++f){const d=e[f];Kl(d,"path"),d.length>0&&(n===void 0?n=d:n+=`/${d}`)}return n===void 0?".":_f.normalize(n)},relative(e,n){if(Kl(e,"from"),Kl(n,"to"),e===n||(e=_f.resolve(e),n=_f.resolve(n),e===n))return"";const f=1,d=e.length,a=d-f,p=1,N=n.length-p,H=a<N?a:N;let h=-1,v=0;for(;v<H;v++){const q=e.charCodeAt(f+v);if(q!==n.charCodeAt(p+v))break;q===Wc&&(h=v)}if(v===H)if(N>H){if(n.charCodeAt(p+v)===Wc)return n.slice(p+v+1);if(v===0)return n.slice(p+v)}else a>H&&(e.charCodeAt(f+v)===Wc?h=v:v===0&&(h=0));let A="";for(v=f+h+1;v<=d;++v)(v===d||e.charCodeAt(v)===Wc)&&(A+=A.length===0?"..":"/..");return`${A}${n.slice(p+h)}`},toNamespacedPath(e){return e},dirname(e){if(Kl(e,"path"),e.length===0)return".";const n=e.charCodeAt(0)===Wc;let f=-1,d=!0;for(let a=e.length-1;a>=1;--a)if(e.charCodeAt(a)===Wc){if(!d){f=a;break}}else d=!1;return f===-1?n?"/":".":n&&f===1?"//":e.slice(0,f)},basename(e,n){n!==void 0&&Kl(n,"ext"),Kl(e,"path");let f=0,d=-1,a=!0,p;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n===e)return"";let N=n.length-1,H=-1;for(p=e.length-1;p>=0;--p){const h=e.charCodeAt(p);if(h===Wc){if(!a){f=p+1;break}}else H===-1&&(a=!1,H=p+1),N>=0&&(h===n.charCodeAt(N)?--N===-1&&(d=p):(N=-1,d=H))}return f===d?d=H:d===-1&&(d=e.length),e.slice(f,d)}for(p=e.length-1;p>=0;--p)if(e.charCodeAt(p)===Wc){if(!a){f=p+1;break}}else d===-1&&(a=!1,d=p+1);return d===-1?"":e.slice(f,d)},extname(e){Kl(e,"path");let n=-1,f=0,d=-1,a=!0,p=0;for(let N=e.length-1;N>=0;--N){const H=e.charCodeAt(N);if(H===Wc){if(!a){f=N+1;break}continue}d===-1&&(a=!1,d=N+1),H===Z_?n===-1?n=N:p!==1&&(p=1):n!==-1&&(p=-1)}return n===-1||d===-1||p===0||p===1&&n===d-1&&n===f+1?"":e.slice(n,d)},format:ZT.bind(null,"/"),parse(e){Kl(e,"path");const n={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return n;const f=e.charCodeAt(0)===Wc;let d;f?(n.root="/",d=1):d=0;let a=-1,p=0,N=-1,H=!0,h=e.length-1,v=0;for(;h>=d;--h){const A=e.charCodeAt(h);if(A===Wc){if(!H){p=h+1;break}continue}N===-1&&(H=!1,N=h+1),A===Z_?a===-1?a=h:v!==1&&(v=1):a!==-1&&(v=-1)}if(N!==-1){const A=p===0&&f?1:p;a===-1||v===0||v===1&&a===N-1&&a===p+1?n.base=n.name=e.slice(A,N):(n.name=e.slice(A,a),n.base=e.slice(A,N),n.ext=e.slice(a,N))}return p>0?n.dir=e.slice(0,p-1):f&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};_f.win32=Yu.win32=Yu,_f.posix=Yu.posix=_f,Om==="win32"?Yu.normalize:_f.normalize,Om==="win32"?Yu.resolve:_f.resolve,Om==="win32"?Yu.relative:_f.relative,Om==="win32"?Yu.dirname:_f.dirname,Om==="win32"?Yu.basename:_f.basename,Om==="win32"?Yu.extname:_f.extname,Om==="win32"?Yu.sep:_f.sep;const ON=/^\w[\w\d+.-]*$/,RN=/^\//,wN=/^\/\//;function $T(e,n){if(!e.scheme&&n)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!ON.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!RN.test(e.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(wN.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function PN(e,n){return!e&&!n?"file":e}function MN(e,n){switch(e){case"https":case"http":case"file":n?n[0]!==hp&&(n=hp+n):n=hp;break}return n}const fl="",hp="/",FN=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Rm{constructor(n,f,d,a,p,N=!1){typeof n=="object"?(this.scheme=n.scheme||fl,this.authority=n.authority||fl,this.path=n.path||fl,this.query=n.query||fl,this.fragment=n.fragment||fl):(this.scheme=PN(n,N),this.authority=f||fl,this.path=MN(this.scheme,d||fl),this.query=a||fl,this.fragment=p||fl,$T(this,N))}static isUri(n){return n instanceof Rm?!0:n?typeof n.authority=="string"&&typeof n.fragment=="string"&&typeof n.path=="string"&&typeof n.query=="string"&&typeof n.scheme=="string"&&typeof n.fsPath=="string"&&typeof n.with=="function"&&typeof n.toString=="function":!1}get fsPath(){return fE(this,!1)}with(n){if(!n)return this;let{scheme:f,authority:d,path:a,query:p,fragment:N}=n;return f===void 0?f=this.scheme:f===null&&(f=fl),d===void 0?d=this.authority:d===null&&(d=fl),a===void 0?a=this.path:a===null&&(a=fl),p===void 0?p=this.query:p===null&&(p=fl),N===void 0?N=this.fragment:N===null&&(N=fl),f===this.scheme&&d===this.authority&&a===this.path&&p===this.query&&N===this.fragment?this:new kg(f,d,a,p,N)}static parse(n,f=!1){const d=FN.exec(n);return d?new kg(d[2]||fl,ry(d[4]||fl),ry(d[5]||fl),ry(d[7]||fl),ry(d[9]||fl),f):new kg(fl,fl,fl,fl,fl)}static file(n){let f=fl;if(Ov&&(n=n.replace(/\\/g,hp)),n[0]===hp&&n[1]===hp){const d=n.indexOf(hp,2);d===-1?(f=n.substring(2),n=hp):(f=n.substring(2,d),n=n.substring(d)||hp)}return new kg("file",f,n,fl,fl)}static from(n){const f=new kg(n.scheme,n.authority,n.path,n.query,n.fragment);return $T(f,!0),f}static joinPath(n,...f){if(!n.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let d;return Ov&&n.scheme==="file"?d=Rm.file(Yu.join(fE(n,!0),...f)).path:d=_f.join(n.path,...f),n.with({path:d})}toString(n=!1){return dE(this,n)}toJSON(){return this}static revive(n){if(n){if(n instanceof Rm)return n;{const f=new kg(n);return f._formatted=n.external,f._fsPath=n._sep===eS?n.fsPath:null,f}}else return n}}const eS=Ov?1:void 0;class kg extends Rm{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=fE(this,!1)),this._fsPath}toString(n=!1){return n?dE(this,!0):(this._formatted||(this._formatted=dE(this,!1)),this._formatted)}toJSON(){const n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=eS),this._formatted&&(n.external=this._formatted),this.path&&(n.path=this.path),this.scheme&&(n.scheme=this.scheme),this.authority&&(n.authority=this.authority),this.query&&(n.query=this.query),this.fragment&&(n.fragment=this.fragment),n}}const rS={[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 tS(e,n){let f,d=-1;for(let a=0;a<e.length;a++){const p=e.charCodeAt(a);if(p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===45||p===46||p===95||p===126||n&&p===47)d!==-1&&(f+=encodeURIComponent(e.substring(d,a)),d=-1),f!==void 0&&(f+=e.charAt(a));else{f===void 0&&(f=e.substr(0,a));const N=rS[p];N!==void 0?(d!==-1&&(f+=encodeURIComponent(e.substring(d,a)),d=-1),f+=N):d===-1&&(d=a)}}return d!==-1&&(f+=encodeURIComponent(e.substring(d))),f!==void 0?f:e}function GN(e){let n;for(let f=0;f<e.length;f++){const d=e.charCodeAt(f);d===35||d===63?(n===void 0&&(n=e.substr(0,f)),n+=rS[d]):n!==void 0&&(n+=e[f])}return n!==void 0?n:e}function fE(e,n){let f;return e.authority&&e.path.length>1&&e.scheme==="file"?f=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?n?f=e.path.substr(1):f=e.path[1].toLowerCase()+e.path.substr(2):f=e.path,Ov&&(f=f.replace(/\//g,"\\")),f}function dE(e,n){const f=n?GN:tS;let d="",{scheme:a,authority:p,path:N,query:H,fragment:h}=e;if(a&&(d+=a,d+=":"),(p||a==="file")&&(d+=hp,d+=hp),p){let v=p.indexOf("@");if(v!==-1){const A=p.substr(0,v);p=p.substr(v+1),v=A.indexOf(":"),v===-1?d+=f(A,!1):(d+=f(A.substr(0,v),!1),d+=":",d+=f(A.substr(v+1),!1)),d+="@"}p=p.toLowerCase(),v=p.indexOf(":"),v===-1?d+=f(p,!1):(d+=f(p.substr(0,v),!1),d+=p.substr(v))}if(N){if(N.length>=3&&N.charCodeAt(0)===47&&N.charCodeAt(2)===58){const v=N.charCodeAt(1);v>=65&&v<=90&&(N=`/${String.fromCharCode(v+32)}:${N.substr(3)}`)}else if(N.length>=2&&N.charCodeAt(1)===58){const v=N.charCodeAt(0);v>=65&&v<=90&&(N=`${String.fromCharCode(v+32)}:${N.substr(2)}`)}d+=f(N,!0)}return H&&(d+="?",d+=f(H,!1)),h&&(d+="#",d+=n?h:tS(h,!1)),d}function nS(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+nS(e.substr(3)):e}}const aS=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ry(e){return e.match(aS)?e.replace(aS,n=>nS(n)):e}class mf{constructor(n,f){this.lineNumber=n,this.column=f}with(n=this.lineNumber,f=this.column){return n===this.lineNumber&&f===this.column?this:new mf(n,f)}delta(n=0,f=0){return this.with(this.lineNumber+n,this.column+f)}equals(n){return mf.equals(this,n)}static equals(n,f){return!n&&!f?!0:!!n&&!!f&&n.lineNumber===f.lineNumber&&n.column===f.column}isBefore(n){return mf.isBefore(this,n)}static isBefore(n,f){return n.lineNumber<f.lineNumber?!0:f.lineNumber<n.lineNumber?!1:n.column<f.column}isBeforeOrEqual(n){return mf.isBeforeOrEqual(this,n)}static isBeforeOrEqual(n,f){return n.lineNumber<f.lineNumber?!0:f.lineNumber<n.lineNumber?!1:n.column<=f.column}static compare(n,f){const d=n.lineNumber|0,a=f.lineNumber|0;if(d===a){const p=n.column|0,N=f.column|0;return p-N}return d-a}clone(){return new mf(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(n){return new mf(n.lineNumber,n.column)}static isIPosition(n){return n&&typeof n.lineNumber=="number"&&typeof n.column=="number"}}class yl{constructor(n,f,d,a){n>d||n===d&&f>a?(this.startLineNumber=d,this.startColumn=a,this.endLineNumber=n,this.endColumn=f):(this.startLineNumber=n,this.startColumn=f,this.endLineNumber=d,this.endColumn=a)}isEmpty(){return yl.isEmpty(this)}static isEmpty(n){return n.startLineNumber===n.endLineNumber&&n.startColumn===n.endColumn}containsPosition(n){return yl.containsPosition(this,n)}static containsPosition(n,f){return!(f.lineNumber<n.startLineNumber||f.lineNumber>n.endLineNumber||f.lineNumber===n.startLineNumber&&f.column<n.startColumn||f.lineNumber===n.endLineNumber&&f.column>n.endColumn)}static strictContainsPosition(n,f){return!(f.lineNumber<n.startLineNumber||f.lineNumber>n.endLineNumber||f.lineNumber===n.startLineNumber&&f.column<=n.startColumn||f.lineNumber===n.endLineNumber&&f.column>=n.endColumn)}containsRange(n){return yl.containsRange(this,n)}static containsRange(n,f){return!(f.startLineNumber<n.startLineNumber||f.endLineNumber<n.startLineNumber||f.startLineNumber>n.endLineNumber||f.endLineNumber>n.endLineNumber||f.startLineNumber===n.startLineNumber&&f.startColumn<n.startColumn||f.endLineNumber===n.endLineNumber&&f.endColumn>n.endColumn)}strictContainsRange(n){return yl.strictContainsRange(this,n)}static strictContainsRange(n,f){return!(f.startLineNumber<n.startLineNumber||f.endLineNumber<n.startLineNumber||f.startLineNumber>n.endLineNumber||f.endLineNumber>n.endLineNumber||f.startLineNumber===n.startLineNumber&&f.startColumn<=n.startColumn||f.endLineNumber===n.endLineNumber&&f.endColumn>=n.endColumn)}plusRange(n){return yl.plusRange(this,n)}static plusRange(n,f){let d,a,p,N;return f.startLineNumber<n.startLineNumber?(d=f.startLineNumber,a=f.startColumn):f.startLineNumber===n.startLineNumber?(d=f.startLineNumber,a=Math.min(f.startColumn,n.startColumn)):(d=n.startLineNumber,a=n.startColumn),f.endLineNumber>n.endLineNumber?(p=f.endLineNumber,N=f.endColumn):f.endLineNumber===n.endLineNumber?(p=f.endLineNumber,N=Math.max(f.endColumn,n.endColumn)):(p=n.endLineNumber,N=n.endColumn),new yl(d,a,p,N)}intersectRanges(n){return yl.intersectRanges(this,n)}static intersectRanges(n,f){let d=n.startLineNumber,a=n.startColumn,p=n.endLineNumber,N=n.endColumn;const H=f.startLineNumber,h=f.startColumn,v=f.endLineNumber,A=f.endColumn;return d<H?(d=H,a=h):d===H&&(a=Math.max(a,h)),p>v?(p=v,N=A):p===v&&(N=Math.min(N,A)),d>p||d===p&&a>N?null:new yl(d,a,p,N)}equalsRange(n){return yl.equalsRange(this,n)}static equalsRange(n,f){return!!n&&!!f&&n.startLineNumber===f.startLineNumber&&n.startColumn===f.startColumn&&n.endLineNumber===f.endLineNumber&&n.endColumn===f.endColumn}getEndPosition(){return yl.getEndPosition(this)}static getEndPosition(n){return new mf(n.endLineNumber,n.endColumn)}getStartPosition(){return yl.getStartPosition(this)}static getStartPosition(n){return new mf(n.startLineNumber,n.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(n,f){return new yl(this.startLineNumber,this.startColumn,n,f)}setStartPosition(n,f){return new yl(n,f,this.endLineNumber,this.endColumn)}collapseToStart(){return yl.collapseToStart(this)}static collapseToStart(n){return new yl(n.startLineNumber,n.startColumn,n.startLineNumber,n.startColumn)}static fromPositions(n,f=n){return new yl(n.lineNumber,n.column,f.lineNumber,f.column)}static lift(n){return n?new yl(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):null}static isIRange(n){return n&&typeof n.startLineNumber=="number"&&typeof n.startColumn=="number"&&typeof n.endLineNumber=="number"&&typeof n.endColumn=="number"}static areIntersectingOrTouching(n,f){return!(n.endLineNumber<f.startLineNumber||n.endLineNumber===f.startLineNumber&&n.endColumn<f.startColumn||f.endLineNumber<n.startLineNumber||f.endLineNumber===n.startLineNumber&&f.endColumn<n.startColumn)}static areIntersecting(n,f){return!(n.endLineNumber<f.startLineNumber||n.endLineNumber===f.startLineNumber&&n.endColumn<=f.startColumn||f.endLineNumber<n.startLineNumber||f.endLineNumber===n.startLineNumber&&f.endColumn<=n.startColumn)}static compareRangesUsingStarts(n,f){if(n&&f){const p=n.startLineNumber|0,N=f.startLineNumber|0;if(p===N){const H=n.startColumn|0,h=f.startColumn|0;if(H===h){const v=n.endLineNumber|0,A=f.endLineNumber|0;if(v===A){const q=n.endColumn|0,ie=f.endColumn|0;return q-ie}return v-A}return H-h}return p-N}return(n?1:0)-(f?1:0)}static compareRangesUsingEnds(n,f){return n.endLineNumber===f.endLineNumber?n.endColumn===f.endColumn?n.startLineNumber===f.startLineNumber?n.startColumn-f.startColumn:n.startLineNumber-f.startLineNumber:n.endColumn-f.endColumn:n.endLineNumber-f.endLineNumber}static spansMultipleLines(n){return n.endLineNumber>n.startLineNumber}toJSON(){return this}}const BN=3;function iS(e,n,f,d){return new Q_(e,n,f).ComputeDiff(d)}class oS{constructor(n){const f=[],d=[];for(let a=0,p=n.length;a<p;a++)f[a]=pE(n[a],1),d[a]=_E(n[a],1);this.lines=n,this._startColumns=f,this._endColumns=d}getElements(){const n=[];for(let f=0,d=this.lines.length;f<d;f++)n[f]=this.lines[f].substring(this._startColumns[f]-1,this._endColumns[f]-1);return n}getStrictElement(n){return this.lines[n]}getStartLineNumber(n){return n+1}getEndLineNumber(n){return n+1}createCharSequence(n,f,d){const a=[],p=[],N=[];let H=0;for(let h=f;h<=d;h++){const v=this.lines[h],A=n?this._startColumns[h]:1,q=n?this._endColumns[h]:v.length+1;for(let ie=A;ie<q;ie++)a[H]=v.charCodeAt(ie-1),p[H]=h+1,N[H]=ie,H++;!n&&h<d&&(a[H]=10,p[H]=h+1,N[H]=v.length+1,H++)}return new UN(a,p,N)}}class UN{constructor(n,f,d){this._charCodes=n,this._lineNumbers=f,this._columns=d}toString(){return"["+this._charCodes.map((n,f)=>(n===10?"\\n":String.fromCharCode(n))+`-(${this._lineNumbers[f]},${this._columns[f]})`).join(", ")+"]"}_assertIndex(n,f){if(n<0||n>=f.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(n){return n>0&&n===this._lineNumbers.length?this.getEndLineNumber(n-1):(this._assertIndex(n,this._lineNumbers),this._lineNumbers[n])}getEndLineNumber(n){return n===-1?this.getStartLineNumber(n+1):(this._assertIndex(n,this._lineNumbers),this._charCodes[n]===10?this._lineNumbers[n]+1:this._lineNumbers[n])}getStartColumn(n){return n>0&&n===this._columns.length?this.getEndColumn(n-1):(this._assertIndex(n,this._columns),this._columns[n])}getEndColumn(n){return n===-1?this.getStartColumn(n+1):(this._assertIndex(n,this._columns),this._charCodes[n]===10?1:this._columns[n]+1)}}class Rv{constructor(n,f,d,a,p,N,H,h){this.originalStartLineNumber=n,this.originalStartColumn=f,this.originalEndLineNumber=d,this.originalEndColumn=a,this.modifiedStartLineNumber=p,this.modifiedStartColumn=N,this.modifiedEndLineNumber=H,this.modifiedEndColumn=h}static createFromDiffChange(n,f,d){const a=f.getStartLineNumber(n.originalStart),p=f.getStartColumn(n.originalStart),N=f.getEndLineNumber(n.originalStart+n.originalLength-1),H=f.getEndColumn(n.originalStart+n.originalLength-1),h=d.getStartLineNumber(n.modifiedStart),v=d.getStartColumn(n.modifiedStart),A=d.getEndLineNumber(n.modifiedStart+n.modifiedLength-1),q=d.getEndColumn(n.modifiedStart+n.modifiedLength-1);return new Rv(a,p,N,H,h,v,A,q)}}function VN(e){if(e.length<=1)return e;const n=[e[0]];let f=n[0];for(let d=1,a=e.length;d<a;d++){const p=e[d],N=p.originalStart-(f.originalStart+f.originalLength),H=p.modifiedStart-(f.modifiedStart+f.modifiedLength);Math.min(N,H)<BN?(f.originalLength=p.originalStart+p.originalLength-f.originalStart,f.modifiedLength=p.modifiedStart+p.modifiedLength-f.modifiedStart):(n.push(p),f=p)}return n}class wv{constructor(n,f,d,a,p){this.originalStartLineNumber=n,this.originalEndLineNumber=f,this.modifiedStartLineNumber=d,this.modifiedEndLineNumber=a,this.charChanges=p}static createFromDiffResult(n,f,d,a,p,N,H){let h,v,A,q,ie;if(f.originalLength===0?(h=d.getStartLineNumber(f.originalStart)-1,v=0):(h=d.getStartLineNumber(f.originalStart),v=d.getEndLineNumber(f.originalStart+f.originalLength-1)),f.modifiedLength===0?(A=a.getStartLineNumber(f.modifiedStart)-1,q=0):(A=a.getStartLineNumber(f.modifiedStart),q=a.getEndLineNumber(f.modifiedStart+f.modifiedLength-1)),N&&f.originalLength>0&&f.originalLength<20&&f.modifiedLength>0&&f.modifiedLength<20&&p()){const b=d.createCharSequence(n,f.originalStart,f.originalStart+f.originalLength-1),P=a.createCharSequence(n,f.modifiedStart,f.modifiedStart+f.modifiedLength-1);if(b.getElements().length>0&&P.getElements().length>0){let S=iS(b,P,p,!0).changes;H&&(S=VN(S)),ie=[];for(let B=0,J=S.length;B<J;B++)ie.push(Rv.createFromDiffChange(S[B],b,P))}}return new wv(h,v,A,q,ie)}}class WN{constructor(n,f,d){this.shouldComputeCharChanges=d.shouldComputeCharChanges,this.shouldPostProcessCharChanges=d.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=d.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=d.shouldMakePrettyDiff,this.originalLines=n,this.modifiedLines=f,this.original=new oS(n),this.modified=new oS(f),this.continueLineDiff=sS(d.maxComputationTime),this.continueCharDiff=sS(d.maxComputationTime===0?0:Math.min(d.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 n=iS(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),f=n.changes,d=n.quitEarly;if(this.shouldIgnoreTrimWhitespace){const H=[];for(let h=0,v=f.length;h<v;h++)H.push(wv.createFromDiffResult(this.shouldIgnoreTrimWhitespace,f[h],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:d,changes:H}}const a=[];let p=0,N=0;for(let H=-1,h=f.length;H<h;H++){const v=H+1<h?f[H+1]:null,A=v?v.originalStart:this.originalLines.length,q=v?v.modifiedStart:this.modifiedLines.length;for(;p<A&&N<q;){const ie=this.originalLines[p],b=this.modifiedLines[N];if(ie!==b){{let P=pE(ie,1),S=pE(b,1);for(;P>1&&S>1;){const B=ie.charCodeAt(P-2),J=b.charCodeAt(S-2);if(B!==J)break;P--,S--}(P>1||S>1)&&this._pushTrimWhitespaceCharChange(a,p+1,1,P,N+1,1,S)}{let P=_E(ie,1),S=_E(b,1);const B=ie.length+1,J=b.length+1;for(;P<B&&S<J;){const k=ie.charCodeAt(P-1),M=ie.charCodeAt(S-1);if(k!==M)break;P++,S++}(P<B||S<J)&&this._pushTrimWhitespaceCharChange(a,p+1,P,B,N+1,S,J)}}p++,N++}v&&(a.push(wv.createFromDiffResult(this.shouldIgnoreTrimWhitespace,v,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),p+=v.originalLength,N+=v.modifiedLength)}return{quitEarly:d,changes:a}}_pushTrimWhitespaceCharChange(n,f,d,a,p,N,H){if(this._mergeTrimWhitespaceCharChange(n,f,d,a,p,N,H))return;let h;this.shouldComputeCharChanges&&(h=[new Rv(f,d,f,a,p,N,p,H)]),n.push(new wv(f,f,p,p,h))}_mergeTrimWhitespaceCharChange(n,f,d,a,p,N,H){const h=n.length;if(h===0)return!1;const v=n[h-1];return v.originalEndLineNumber===0||v.modifiedEndLineNumber===0?!1:v.originalEndLineNumber+1===f&&v.modifiedEndLineNumber+1===p?(v.originalEndLineNumber=f,v.modifiedEndLineNumber=p,this.shouldComputeCharChanges&&v.charChanges&&v.charChanges.push(new Rv(f,d,f,a,p,N,p,H)),!0):!1}}function pE(e,n){const f=cN(e);return f===-1?n:f+1}function _E(e,n){const f=uN(e);return f===-1?n:f+2}function sS(e){if(e===0)return()=>!0;const n=Date.now();return()=>Date.now()-n<e}var lS;(function(e){function n(a){return a<0}e.isLessThan=n;function f(a){return a>0}e.isGreaterThan=f;function d(a){return a===0}e.isNeitherLessOrGreaterThan=d,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(lS||(lS={}));function cS(e){return e<0?0:e>255?255:e|0}function Og(e){return e<0?0:e>4294967295?4294967295:e|0}class jN{constructor(n){this.values=n,this.prefixSum=new Uint32Array(n.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(n,f){n=Og(n);const d=this.values,a=this.prefixSum,p=f.length;return p===0?!1:(this.values=new Uint32Array(d.length+p),this.values.set(d.subarray(0,n),0),this.values.set(d.subarray(n),n+p),this.values.set(f,n),n-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=n-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(a.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(n,f){return n=Og(n),f=Og(f),this.values[n]===f?!1:(this.values[n]=f,n-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=n-1),!0)}removeValues(n,f){n=Og(n),f=Og(f);const d=this.values,a=this.prefixSum;if(n>=d.length)return!1;const p=d.length-n;return f>=p&&(f=p),f===0?!1:(this.values=new Uint32Array(d.length-f),this.values.set(d.subarray(0,n),0),this.values.set(d.subarray(n+f),n),this.prefixSum=new Uint32Array(this.values.length),n-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=n-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(a.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(n){return n<0?0:(n=Og(n),this._getPrefixSum(n))}_getPrefixSum(n){if(n<=this.prefixSumValidIndex[0])return this.prefixSum[n];let f=this.prefixSumValidIndex[0]+1;f===0&&(this.prefixSum[0]=this.values[0],f++),n>=this.values.length&&(n=this.values.length-1);for(let d=f;d<=n;d++)this.prefixSum[d]=this.prefixSum[d-1]+this.values[d];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],n),this.prefixSum[n]}getIndexOf(n){n=Math.floor(n),this.getTotalSum();let f=0,d=this.values.length-1,a=0,p=0,N=0;for(;f<=d;)if(a=f+(d-f)/2|0,p=this.prefixSum[a],N=p-this.values[a],n<N)d=a-1;else if(n>=p)f=a+1;else break;return new HN(a,n-N)}}class HN{constructor(n,f){this.index=n,this.remainder=f,this._prefixSumIndexOfResultBrand=void 0,this.index=n,this.remainder=f}}class JN{constructor(n,f,d,a){this._uri=n,this._lines=f,this._eol=d,this._versionId=a,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(n){n.eol&&n.eol!==this._eol&&(this._eol=n.eol,this._lineStarts=null);const f=n.changes;for(const d of f)this._acceptDeleteRange(d.range),this._acceptInsertText(new mf(d.range.startLineNumber,d.range.startColumn),d.text);this._versionId=n.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const n=this._eol.length,f=this._lines.length,d=new Uint32Array(f);for(let a=0;a<f;a++)d[a]=this._lines[a].length+n;this._lineStarts=new jN(d)}}_setLineText(n,f){this._lines[n]=f,this._lineStarts&&this._lineStarts.setValue(n,this._lines[n].length+this._eol.length)}_acceptDeleteRange(n){if(n.startLineNumber===n.endLineNumber){if(n.startColumn===n.endColumn)return;this._setLineText(n.startLineNumber-1,this._lines[n.startLineNumber-1].substring(0,n.startColumn-1)+this._lines[n.startLineNumber-1].substring(n.endColumn-1));return}this._setLineText(n.startLineNumber-1,this._lines[n.startLineNumber-1].substring(0,n.startColumn-1)+this._lines[n.endLineNumber-1].substring(n.endColumn-1)),this._lines.splice(n.startLineNumber,n.endLineNumber-n.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(n.startLineNumber,n.endLineNumber-n.startLineNumber)}_acceptInsertText(n,f){if(f.length===0)return;const d=lN(f);if(d.length===1){this._setLineText(n.lineNumber-1,this._lines[n.lineNumber-1].substring(0,n.column-1)+d[0]+this._lines[n.lineNumber-1].substring(n.column-1));return}d[d.length-1]+=this._lines[n.lineNumber-1].substring(n.column-1),this._setLineText(n.lineNumber-1,this._lines[n.lineNumber-1].substring(0,n.column-1)+d[0]);const a=new Uint32Array(d.length-1);for(let p=1;p<d.length;p++)this._lines.splice(n.lineNumber+p-1,0,d[p]),a[p-1]=d[p].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(n.lineNumber,a)}}const KN="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function zN(e=""){let n="(-?\\d*\\.\\d\\w*)|([^";for(const f of KN)e.indexOf(f)>=0||(n+="\\"+f);return n+="\\s]+)",new RegExp(n,"g")}const uS=zN();function qN(e){let n=uS;if(e&&e instanceof RegExp)if(e.global)n=e;else{let f="g";e.ignoreCase&&(f+="i"),e.multiline&&(f+="m"),e.unicode&&(f+="u"),n=new RegExp(e.source,f)}return n.lastIndex=0,n}const fS=new Yh;fS.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function mE(e,n,f,d,a){if(a||(a=qh.first(fS)),f.length>a.maxLen){let v=e-a.maxLen/2;return v<0?v=0:d+=v,f=f.substring(v,e+a.maxLen/2),mE(e,n,f,d,a)}const p=Date.now(),N=e-1-d;let H=-1,h=null;for(let v=1;!(Date.now()-p>=a.timeBudget);v++){const A=N-a.windowSize*v;n.lastIndex=Math.max(0,A);const q=XN(n,f,N,H);if(!q&&h||(h=q,A<=0))break;H=A}if(h){const v={word:h[0],startColumn:d+1+h.index,endColumn:d+1+h.index+h[0].length};return n.lastIndex=0,v}return null}function XN(e,n,f,d){let a;for(;a=e.exec(n);){const p=a.index||0;if(p<=f&&e.lastIndex>=f)return a;if(d>0&&p>d)return null}return null}class gE{constructor(n){const f=cS(n);this._defaultValue=f,this._asciiMap=gE._createAsciiMap(f),this._map=new Map}static _createAsciiMap(n){const f=new Uint8Array(256);for(let d=0;d<256;d++)f[d]=n;return f}set(n,f){const d=cS(f);n>=0&&n<256?this._asciiMap[n]=d:this._map.set(n,d)}get(n){return n>=0&&n<256?this._asciiMap[n]:this._map.get(n)||this._defaultValue}}class YN{constructor(n,f,d){const a=new Uint8Array(n*f);for(let p=0,N=n*f;p<N;p++)a[p]=d;this._data=a,this.rows=n,this.cols=f}get(n,f){return this._data[n*this.cols+f]}set(n,f,d){this._data[n*this.cols+f]=d}}class QN{constructor(n){let f=0,d=0;for(let p=0,N=n.length;p<N;p++){const[H,h,v]=n[p];h>f&&(f=h),H>d&&(d=H),v>d&&(d=v)}f++,d++;const a=new YN(d,f,0);for(let p=0,N=n.length;p<N;p++){const[H,h,v]=n[p];a.set(H,h,v)}this._states=a,this._maxCharCode=f}nextState(n,f){return f<0||f>=this._maxCharCode?0:this._states.get(n,f)}}let vE=null;function ZN(){return vE===null&&(vE=new QN([[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]])),vE}let Pv=null;function $N(){if(Pv===null){Pv=new gE(0);const e=` <>'"\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 f=0;f<e.length;f++)Pv.set(e.charCodeAt(f),1);const n=".,;:";for(let f=0;f<n.length;f++)Pv.set(n.charCodeAt(f),2)}return Pv}class ty{static _createLink(n,f,d,a,p){let N=p-1;do{const H=f.charCodeAt(N);if(n.get(H)!==2)break;N--}while(N>a);if(a>0){const H=f.charCodeAt(a-1),h=f.charCodeAt(N);(H===40&&h===41||H===91&&h===93||H===123&&h===125)&&N--}return{range:{startLineNumber:d,startColumn:a+1,endLineNumber:d,endColumn:N+2},url:f.substring(a,N+1)}}static computeLinks(n,f=ZN()){const d=$N(),a=[];for(let p=1,N=n.getLineCount();p<=N;p++){const H=n.getLineContent(p),h=H.length;let v=0,A=0,q=0,ie=1,b=!1,P=!1,S=!1,B=!1;for(;v<h;){let J=!1;const k=H.charCodeAt(v);if(ie===13){let M;switch(k){case 40:b=!0,M=0;break;case 41:M=b?0:1;break;case 91:S=!0,P=!0,M=0;break;case 93:S=!1,M=P?0:1;break;case 123:B=!0,M=0;break;case 125:M=B?0:1;break;case 39:M=q===39?1:0;break;case 34:M=q===34?1:0;break;case 96:M=q===96?1:0;break;case 42:M=q===42?1:0;break;case 124:M=q===124?1:0;break;case 32:M=S?0:1;break;default:M=d.get(k)}M===1&&(a.push(ty._createLink(d,H,p,A,v)),J=!0)}else if(ie===12){let M;k===91?(P=!0,M=0):M=d.get(k),M===1?J=!0:ie=13}else ie=f.nextState(ie,k),ie===0&&(J=!0);J&&(ie=1,b=!1,P=!1,B=!1,A=v+1,q=k),v++}ie===13&&a.push(ty._createLink(d,H,p,A,h))}return a}}function ek(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:ty.computeLinks(e)}class hE{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(n,f,d,a,p){if(n&&f){const N=this.doNavigateValueSet(f,p);if(N)return{range:n,value:N}}if(d&&a){const N=this.doNavigateValueSet(a,p);if(N)return{range:d,value:N}}return null}doNavigateValueSet(n,f){const d=this.numberReplace(n,f);return d!==null?d:this.textReplace(n,f)}numberReplace(n,f){const d=Math.pow(10,n.length-(n.lastIndexOf(".")+1));let a=Number(n);const p=parseFloat(n);return!isNaN(a)&&!isNaN(p)&&a===p?a===0&&!f?null:(a=Math.floor(a*d),a+=f?d:-d,String(a/d)):null}textReplace(n,f){return this.valueSetsReplace(this._defaultValueSet,n,f)}valueSetsReplace(n,f,d){let a=null;for(let p=0,N=n.length;a===null&&p<N;p++)a=this.valueSetReplace(n[p],f,d);return a}valueSetReplace(n,f,d){let a=n.indexOf(f);return a>=0?(a+=d?1:-1,a<0?a=n.length-1:a%=n.length,n[a]):null}}hE.INSTANCE=new hE;const dS=Object.freeze(function(e,n){const f=setTimeout(e.bind(n),0);return{dispose(){clearTimeout(f)}}});var ny;(function(e){function n(f){return f===e.None||f===e.Cancelled||f instanceof ay?!0:!f||typeof f!="object"?!1:typeof f.isCancellationRequested=="boolean"&&typeof f.onCancellationRequested=="function"}e.isCancellationToken=n,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:iE.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:dS})})(ny||(ny={}));class ay{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?dS:(this._emitter||(this._emitter=new zp),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class rk{constructor(n){this._token=void 0,this._parentListener=void 0,this._parentListener=n&&n.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new ay),this._token}cancel(){this._token?this._token instanceof ay&&this._token.cancel():this._token=ny.Cancelled}dispose(n=!1){n&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof ay&&this._token.dispose():this._token=ny.None}}class yE{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(n,f){this._keyCodeToStr[n]=f,this._strToKeyCode[f.toLowerCase()]=n}keyCodeToStr(n){return this._keyCodeToStr[n]}strToKeyCode(n){return this._strToKeyCode[n.toLowerCase()]||0}}const iy=new yE,bE=new yE,EE=new yE,tk=new Array(230),nk=Object.create(null),ak=Object.create(null);(function(){const e="",n=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],f=[],d=[];for(const a of n){const[p,N,H,h,v,A,q,ie,b,P]=a;if(d[H]||(d[H]=!0,nk[h]=H,ak[h.toLowerCase()]=H),!f[v]){if(f[v]=!0,!A)throw new Error(`String representation missing for key code ${v} around scan code ${h}`);iy.define(v,A),bE.define(v,b||A),EE.define(v,P||b||A)}q&&(tk[q]=v)}})();var pS;(function(e){function n(H){return iy.keyCodeToStr(H)}e.toString=n;function f(H){return iy.strToKeyCode(H)}e.fromString=f;function d(H){return bE.keyCodeToStr(H)}e.toUserSettingsUS=d;function a(H){return EE.keyCodeToStr(H)}e.toUserSettingsGeneral=a;function p(H){return bE.strToKeyCode(H)||EE.strToKeyCode(H)}e.fromUserSettings=p;function N(H){if(H>=93&&H<=108)return null;switch(H){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return iy.keyCodeToStr(H)}e.toElectronAccelerator=N})(pS||(pS={}));function ik(e,n){const f=(n&65535)<<16>>>0;return(e|f)>>>0}class Qf extends yl{constructor(n,f,d,a){super(n,f,d,a),this.selectionStartLineNumber=n,this.selectionStartColumn=f,this.positionLineNumber=d,this.positionColumn=a}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(n){return Qf.selectionsEqual(this,n)}static selectionsEqual(n,f){return n.selectionStartLineNumber===f.selectionStartLineNumber&&n.selectionStartColumn===f.selectionStartColumn&&n.positionLineNumber===f.positionLineNumber&&n.positionColumn===f.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(n,f){return this.getDirection()===0?new Qf(this.startLineNumber,this.startColumn,n,f):new Qf(n,f,this.startLineNumber,this.startColumn)}getPosition(){return new mf(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new mf(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(n,f){return this.getDirection()===0?new Qf(n,f,this.endLineNumber,this.endColumn):new Qf(this.endLineNumber,this.endColumn,n,f)}static fromPositions(n,f=n){return new Qf(n.lineNumber,n.column,f.lineNumber,f.column)}static fromRange(n,f){return f===0?new Qf(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):new Qf(n.endLineNumber,n.endColumn,n.startLineNumber,n.startColumn)}static liftSelection(n){return new Qf(n.selectionStartLineNumber,n.selectionStartColumn,n.positionLineNumber,n.positionColumn)}static selectionsArrEqual(n,f){if(n&&!f||!n&&f)return!1;if(!n&&!f)return!0;if(n.length!==f.length)return!1;for(let d=0,a=n.length;d<a;d++)if(!this.selectionsEqual(n[d],f[d]))return!1;return!0}static isISelection(n){return n&&typeof n.selectionStartLineNumber=="number"&&typeof n.selectionStartColumn=="number"&&typeof n.positionLineNumber=="number"&&typeof n.positionColumn=="number"}static createWithDirection(n,f,d,a,p){return p===0?new Qf(n,f,d,a):new Qf(d,a,n,f)}}class ae{constructor(n,f,d){this.id=n,this.definition=f,this.description=d,ae._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return ae._allCodicons}}ae._allCodicons=[],ae.add=new ae("add",{fontCharacter:"\\ea60"}),ae.plus=new ae("plus",ae.add.definition),ae.gistNew=new ae("gist-new",ae.add.definition),ae.repoCreate=new ae("repo-create",ae.add.definition),ae.lightbulb=new ae("lightbulb",{fontCharacter:"\\ea61"}),ae.lightBulb=new ae("light-bulb",{fontCharacter:"\\ea61"}),ae.repo=new ae("repo",{fontCharacter:"\\ea62"}),ae.repoDelete=new ae("repo-delete",{fontCharacter:"\\ea62"}),ae.gistFork=new ae("gist-fork",{fontCharacter:"\\ea63"}),ae.repoForked=new ae("repo-forked",{fontCharacter:"\\ea63"}),ae.gitPullRequest=new ae("git-pull-request",{fontCharacter:"\\ea64"}),ae.gitPullRequestAbandoned=new ae("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),ae.recordKeys=new ae("record-keys",{fontCharacter:"\\ea65"}),ae.keyboard=new ae("keyboard",{fontCharacter:"\\ea65"}),ae.tag=new ae("tag",{fontCharacter:"\\ea66"}),ae.tagAdd=new ae("tag-add",{fontCharacter:"\\ea66"}),ae.tagRemove=new ae("tag-remove",{fontCharacter:"\\ea66"}),ae.person=new ae("person",{fontCharacter:"\\ea67"}),ae.personFollow=new ae("person-follow",{fontCharacter:"\\ea67"}),ae.personOutline=new ae("person-outline",{fontCharacter:"\\ea67"}),ae.personFilled=new ae("person-filled",{fontCharacter:"\\ea67"}),ae.gitBranch=new ae("git-branch",{fontCharacter:"\\ea68"}),ae.gitBranchCreate=new ae("git-branch-create",{fontCharacter:"\\ea68"}),ae.gitBranchDelete=new ae("git-branch-delete",{fontCharacter:"\\ea68"}),ae.sourceControl=new ae("source-control",{fontCharacter:"\\ea68"}),ae.mirror=new ae("mirror",{fontCharacter:"\\ea69"}),ae.mirrorPublic=new ae("mirror-public",{fontCharacter:"\\ea69"}),ae.star=new ae("star",{fontCharacter:"\\ea6a"}),ae.starAdd=new ae("star-add",{fontCharacter:"\\ea6a"}),ae.starDelete=new ae("star-delete",{fontCharacter:"\\ea6a"}),ae.starEmpty=new ae("star-empty",{fontCharacter:"\\ea6a"}),ae.comment=new ae("comment",{fontCharacter:"\\ea6b"}),ae.commentAdd=new ae("comment-add",{fontCharacter:"\\ea6b"}),ae.alert=new ae("alert",{fontCharacter:"\\ea6c"}),ae.warning=new ae("warning",{fontCharacter:"\\ea6c"}),ae.search=new ae("search",{fontCharacter:"\\ea6d"}),ae.searchSave=new ae("search-save",{fontCharacter:"\\ea6d"}),ae.logOut=new ae("log-out",{fontCharacter:"\\ea6e"}),ae.signOut=new ae("sign-out",{fontCharacter:"\\ea6e"}),ae.logIn=new ae("log-in",{fontCharacter:"\\ea6f"}),ae.signIn=new ae("sign-in",{fontCharacter:"\\ea6f"}),ae.eye=new ae("eye",{fontCharacter:"\\ea70"}),ae.eyeUnwatch=new ae("eye-unwatch",{fontCharacter:"\\ea70"}),ae.eyeWatch=new ae("eye-watch",{fontCharacter:"\\ea70"}),ae.circleFilled=new ae("circle-filled",{fontCharacter:"\\ea71"}),ae.primitiveDot=new ae("primitive-dot",{fontCharacter:"\\ea71"}),ae.closeDirty=new ae("close-dirty",{fontCharacter:"\\ea71"}),ae.debugBreakpoint=new ae("debug-breakpoint",{fontCharacter:"\\ea71"}),ae.debugBreakpointDisabled=new ae("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),ae.debugHint=new ae("debug-hint",{fontCharacter:"\\ea71"}),ae.primitiveSquare=new ae("primitive-square",{fontCharacter:"\\ea72"}),ae.edit=new ae("edit",{fontCharacter:"\\ea73"}),ae.pencil=new ae("pencil",{fontCharacter:"\\ea73"}),ae.info=new ae("info",{fontCharacter:"\\ea74"}),ae.issueOpened=new ae("issue-opened",{fontCharacter:"\\ea74"}),ae.gistPrivate=new ae("gist-private",{fontCharacter:"\\ea75"}),ae.gitForkPrivate=new ae("git-fork-private",{fontCharacter:"\\ea75"}),ae.lock=new ae("lock",{fontCharacter:"\\ea75"}),ae.mirrorPrivate=new ae("mirror-private",{fontCharacter:"\\ea75"}),ae.close=new ae("close",{fontCharacter:"\\ea76"}),ae.removeClose=new ae("remove-close",{fontCharacter:"\\ea76"}),ae.x=new ae("x",{fontCharacter:"\\ea76"}),ae.repoSync=new ae("repo-sync",{fontCharacter:"\\ea77"}),ae.sync=new ae("sync",{fontCharacter:"\\ea77"}),ae.clone=new ae("clone",{fontCharacter:"\\ea78"}),ae.desktopDownload=new ae("desktop-download",{fontCharacter:"\\ea78"}),ae.beaker=new ae("beaker",{fontCharacter:"\\ea79"}),ae.microscope=new ae("microscope",{fontCharacter:"\\ea79"}),ae.vm=new ae("vm",{fontCharacter:"\\ea7a"}),ae.deviceDesktop=new ae("device-desktop",{fontCharacter:"\\ea7a"}),ae.file=new ae("file",{fontCharacter:"\\ea7b"}),ae.fileText=new ae("file-text",{fontCharacter:"\\ea7b"}),ae.more=new ae("more",{fontCharacter:"\\ea7c"}),ae.ellipsis=new ae("ellipsis",{fontCharacter:"\\ea7c"}),ae.kebabHorizontal=new ae("kebab-horizontal",{fontCharacter:"\\ea7c"}),ae.mailReply=new ae("mail-reply",{fontCharacter:"\\ea7d"}),ae.reply=new ae("reply",{fontCharacter:"\\ea7d"}),ae.organization=new ae("organization",{fontCharacter:"\\ea7e"}),ae.organizationFilled=new ae("organization-filled",{fontCharacter:"\\ea7e"}),ae.organizationOutline=new ae("organization-outline",{fontCharacter:"\\ea7e"}),ae.newFile=new ae("new-file",{fontCharacter:"\\ea7f"}),ae.fileAdd=new ae("file-add",{fontCharacter:"\\ea7f"}),ae.newFolder=new ae("new-folder",{fontCharacter:"\\ea80"}),ae.fileDirectoryCreate=new ae("file-directory-create",{fontCharacter:"\\ea80"}),ae.trash=new ae("trash",{fontCharacter:"\\ea81"}),ae.trashcan=new ae("trashcan",{fontCharacter:"\\ea81"}),ae.history=new ae("history",{fontCharacter:"\\ea82"}),ae.clock=new ae("clock",{fontCharacter:"\\ea82"}),ae.folder=new ae("folder",{fontCharacter:"\\ea83"}),ae.fileDirectory=new ae("file-directory",{fontCharacter:"\\ea83"}),ae.symbolFolder=new ae("symbol-folder",{fontCharacter:"\\ea83"}),ae.logoGithub=new ae("logo-github",{fontCharacter:"\\ea84"}),ae.markGithub=new ae("mark-github",{fontCharacter:"\\ea84"}),ae.github=new ae("github",{fontCharacter:"\\ea84"}),ae.terminal=new ae("terminal",{fontCharacter:"\\ea85"}),ae.console=new ae("console",{fontCharacter:"\\ea85"}),ae.repl=new ae("repl",{fontCharacter:"\\ea85"}),ae.zap=new ae("zap",{fontCharacter:"\\ea86"}),ae.symbolEvent=new ae("symbol-event",{fontCharacter:"\\ea86"}),ae.error=new ae("error",{fontCharacter:"\\ea87"}),ae.stop=new ae("stop",{fontCharacter:"\\ea87"}),ae.variable=new ae("variable",{fontCharacter:"\\ea88"}),ae.symbolVariable=new ae("symbol-variable",{fontCharacter:"\\ea88"}),ae.array=new ae("array",{fontCharacter:"\\ea8a"}),ae.symbolArray=new ae("symbol-array",{fontCharacter:"\\ea8a"}),ae.symbolModule=new ae("symbol-module",{fontCharacter:"\\ea8b"}),ae.symbolPackage=new ae("symbol-package",{fontCharacter:"\\ea8b"}),ae.symbolNamespace=new ae("symbol-namespace",{fontCharacter:"\\ea8b"}),ae.symbolObject=new ae("symbol-object",{fontCharacter:"\\ea8b"}),ae.symbolMethod=new ae("symbol-method",{fontCharacter:"\\ea8c"}),ae.symbolFunction=new ae("symbol-function",{fontCharacter:"\\ea8c"}),ae.symbolConstructor=new ae("symbol-constructor",{fontCharacter:"\\ea8c"}),ae.symbolBoolean=new ae("symbol-boolean",{fontCharacter:"\\ea8f"}),ae.symbolNull=new ae("symbol-null",{fontCharacter:"\\ea8f"}),ae.symbolNumeric=new ae("symbol-numeric",{fontCharacter:"\\ea90"}),ae.symbolNumber=new ae("symbol-number",{fontCharacter:"\\ea90"}),ae.symbolStructure=new ae("symbol-structure",{fontCharacter:"\\ea91"}),ae.symbolStruct=new ae("symbol-struct",{fontCharacter:"\\ea91"}),ae.symbolParameter=new ae("symbol-parameter",{fontCharacter:"\\ea92"}),ae.symbolTypeParameter=new ae("symbol-type-parameter",{fontCharacter:"\\ea92"}),ae.symbolKey=new ae("symbol-key",{fontCharacter:"\\ea93"}),ae.symbolText=new ae("symbol-text",{fontCharacter:"\\ea93"}),ae.symbolReference=new ae("symbol-reference",{fontCharacter:"\\ea94"}),ae.goToFile=new ae("go-to-file",{fontCharacter:"\\ea94"}),ae.symbolEnum=new ae("symbol-enum",{fontCharacter:"\\ea95"}),ae.symbolValue=new ae("symbol-value",{fontCharacter:"\\ea95"}),ae.symbolRuler=new ae("symbol-ruler",{fontCharacter:"\\ea96"}),ae.symbolUnit=new ae("symbol-unit",{fontCharacter:"\\ea96"}),ae.activateBreakpoints=new ae("activate-breakpoints",{fontCharacter:"\\ea97"}),ae.archive=new ae("archive",{fontCharacter:"\\ea98"}),ae.arrowBoth=new ae("arrow-both",{fontCharacter:"\\ea99"}),ae.arrowDown=new ae("arrow-down",{fontCharacter:"\\ea9a"}),ae.arrowLeft=new ae("arrow-left",{fontCharacter:"\\ea9b"}),ae.arrowRight=new ae("arrow-right",{fontCharacter:"\\ea9c"}),ae.arrowSmallDown=new ae("arrow-small-down",{fontCharacter:"\\ea9d"}),ae.arrowSmallLeft=new ae("arrow-small-left",{fontCharacter:"\\ea9e"}),ae.arrowSmallRight=new ae("arrow-small-right",{fontCharacter:"\\ea9f"}),ae.arrowSmallUp=new ae("arrow-small-up",{fontCharacter:"\\eaa0"}),ae.arrowUp=new ae("arrow-up",{fontCharacter:"\\eaa1"}),ae.bell=new ae("bell",{fontCharacter:"\\eaa2"}),ae.bold=new ae("bold",{fontCharacter:"\\eaa3"}),ae.book=new ae("book",{fontCharacter:"\\eaa4"}),ae.bookmark=new ae("bookmark",{fontCharacter:"\\eaa5"}),ae.debugBreakpointConditionalUnverified=new ae("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),ae.debugBreakpointConditional=new ae("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),ae.debugBreakpointConditionalDisabled=new ae("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),ae.debugBreakpointDataUnverified=new ae("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),ae.debugBreakpointData=new ae("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),ae.debugBreakpointDataDisabled=new ae("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),ae.debugBreakpointLogUnverified=new ae("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),ae.debugBreakpointLog=new ae("debug-breakpoint-log",{fontCharacter:"\\eaab"}),ae.debugBreakpointLogDisabled=new ae("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),ae.briefcase=new ae("briefcase",{fontCharacter:"\\eaac"}),ae.broadcast=new ae("broadcast",{fontCharacter:"\\eaad"}),ae.browser=new ae("browser",{fontCharacter:"\\eaae"}),ae.bug=new ae("bug",{fontCharacter:"\\eaaf"}),ae.calendar=new ae("calendar",{fontCharacter:"\\eab0"}),ae.caseSensitive=new ae("case-sensitive",{fontCharacter:"\\eab1"}),ae.check=new ae("check",{fontCharacter:"\\eab2"}),ae.checklist=new ae("checklist",{fontCharacter:"\\eab3"}),ae.chevronDown=new ae("chevron-down",{fontCharacter:"\\eab4"}),ae.dropDownButton=new ae("drop-down-button",ae.chevronDown.definition),ae.chevronLeft=new ae("chevron-left",{fontCharacter:"\\eab5"}),ae.chevronRight=new ae("chevron-right",{fontCharacter:"\\eab6"}),ae.chevronUp=new ae("chevron-up",{fontCharacter:"\\eab7"}),ae.chromeClose=new ae("chrome-close",{fontCharacter:"\\eab8"}),ae.chromeMaximize=new ae("chrome-maximize",{fontCharacter:"\\eab9"}),ae.chromeMinimize=new ae("chrome-minimize",{fontCharacter:"\\eaba"}),ae.chromeRestore=new ae("chrome-restore",{fontCharacter:"\\eabb"}),ae.circleOutline=new ae("circle-outline",{fontCharacter:"\\eabc"}),ae.debugBreakpointUnverified=new ae("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),ae.circleSlash=new ae("circle-slash",{fontCharacter:"\\eabd"}),ae.circuitBoard=new ae("circuit-board",{fontCharacter:"\\eabe"}),ae.clearAll=new ae("clear-all",{fontCharacter:"\\eabf"}),ae.clippy=new ae("clippy",{fontCharacter:"\\eac0"}),ae.closeAll=new ae("close-all",{fontCharacter:"\\eac1"}),ae.cloudDownload=new ae("cloud-download",{fontCharacter:"\\eac2"}),ae.cloudUpload=new ae("cloud-upload",{fontCharacter:"\\eac3"}),ae.code=new ae("code",{fontCharacter:"\\eac4"}),ae.collapseAll=new ae("collapse-all",{fontCharacter:"\\eac5"}),ae.colorMode=new ae("color-mode",{fontCharacter:"\\eac6"}),ae.commentDiscussion=new ae("comment-discussion",{fontCharacter:"\\eac7"}),ae.compareChanges=new ae("compare-changes",{fontCharacter:"\\eafd"}),ae.creditCard=new ae("credit-card",{fontCharacter:"\\eac9"}),ae.dash=new ae("dash",{fontCharacter:"\\eacc"}),ae.dashboard=new ae("dashboard",{fontCharacter:"\\eacd"}),ae.database=new ae("database",{fontCharacter:"\\eace"}),ae.debugContinue=new ae("debug-continue",{fontCharacter:"\\eacf"}),ae.debugDisconnect=new ae("debug-disconnect",{fontCharacter:"\\ead0"}),ae.debugPause=new ae("debug-pause",{fontCharacter:"\\ead1"}),ae.debugRestart=new ae("debug-restart",{fontCharacter:"\\ead2"}),ae.debugStart=new ae("debug-start",{fontCharacter:"\\ead3"}),ae.debugStepInto=new ae("debug-step-into",{fontCharacter:"\\ead4"}),ae.debugStepOut=new ae("debug-step-out",{fontCharacter:"\\ead5"}),ae.debugStepOver=new ae("debug-step-over",{fontCharacter:"\\ead6"}),ae.debugStop=new ae("debug-stop",{fontCharacter:"\\ead7"}),ae.debug=new ae("debug",{fontCharacter:"\\ead8"}),ae.deviceCameraVideo=new ae("device-camera-video",{fontCharacter:"\\ead9"}),ae.deviceCamera=new ae("device-camera",{fontCharacter:"\\eada"}),ae.deviceMobile=new ae("device-mobile",{fontCharacter:"\\eadb"}),ae.diffAdded=new ae("diff-added",{fontCharacter:"\\eadc"}),ae.diffIgnored=new ae("diff-ignored",{fontCharacter:"\\eadd"}),ae.diffModified=new ae("diff-modified",{fontCharacter:"\\eade"}),ae.diffRemoved=new ae("diff-removed",{fontCharacter:"\\eadf"}),ae.diffRenamed=new ae("diff-renamed",{fontCharacter:"\\eae0"}),ae.diff=new ae("diff",{fontCharacter:"\\eae1"}),ae.discard=new ae("discard",{fontCharacter:"\\eae2"}),ae.editorLayout=new ae("editor-layout",{fontCharacter:"\\eae3"}),ae.emptyWindow=new ae("empty-window",{fontCharacter:"\\eae4"}),ae.exclude=new ae("exclude",{fontCharacter:"\\eae5"}),ae.extensions=new ae("extensions",{fontCharacter:"\\eae6"}),ae.eyeClosed=new ae("eye-closed",{fontCharacter:"\\eae7"}),ae.fileBinary=new ae("file-binary",{fontCharacter:"\\eae8"}),ae.fileCode=new ae("file-code",{fontCharacter:"\\eae9"}),ae.fileMedia=new ae("file-media",{fontCharacter:"\\eaea"}),ae.filePdf=new ae("file-pdf",{fontCharacter:"\\eaeb"}),ae.fileSubmodule=new ae("file-submodule",{fontCharacter:"\\eaec"}),ae.fileSymlinkDirectory=new ae("file-symlink-directory",{fontCharacter:"\\eaed"}),ae.fileSymlinkFile=new ae("file-symlink-file",{fontCharacter:"\\eaee"}),ae.fileZip=new ae("file-zip",{fontCharacter:"\\eaef"}),ae.files=new ae("files",{fontCharacter:"\\eaf0"}),ae.filter=new ae("filter",{fontCharacter:"\\eaf1"}),ae.flame=new ae("flame",{fontCharacter:"\\eaf2"}),ae.foldDown=new ae("fold-down",{fontCharacter:"\\eaf3"}),ae.foldUp=new ae("fold-up",{fontCharacter:"\\eaf4"}),ae.fold=new ae("fold",{fontCharacter:"\\eaf5"}),ae.folderActive=new ae("folder-active",{fontCharacter:"\\eaf6"}),ae.folderOpened=new ae("folder-opened",{fontCharacter:"\\eaf7"}),ae.gear=new ae("gear",{fontCharacter:"\\eaf8"}),ae.gift=new ae("gift",{fontCharacter:"\\eaf9"}),ae.gistSecret=new ae("gist-secret",{fontCharacter:"\\eafa"}),ae.gist=new ae("gist",{fontCharacter:"\\eafb"}),ae.gitCommit=new ae("git-commit",{fontCharacter:"\\eafc"}),ae.gitCompare=new ae("git-compare",{fontCharacter:"\\eafd"}),ae.gitMerge=new ae("git-merge",{fontCharacter:"\\eafe"}),ae.githubAction=new ae("github-action",{fontCharacter:"\\eaff"}),ae.githubAlt=new ae("github-alt",{fontCharacter:"\\eb00"}),ae.globe=new ae("globe",{fontCharacter:"\\eb01"}),ae.grabber=new ae("grabber",{fontCharacter:"\\eb02"}),ae.graph=new ae("graph",{fontCharacter:"\\eb03"}),ae.gripper=new ae("gripper",{fontCharacter:"\\eb04"}),ae.heart=new ae("heart",{fontCharacter:"\\eb05"}),ae.home=new ae("home",{fontCharacter:"\\eb06"}),ae.horizontalRule=new ae("horizontal-rule",{fontCharacter:"\\eb07"}),ae.hubot=new ae("hubot",{fontCharacter:"\\eb08"}),ae.inbox=new ae("inbox",{fontCharacter:"\\eb09"}),ae.issueClosed=new ae("issue-closed",{fontCharacter:"\\eba4"}),ae.issueReopened=new ae("issue-reopened",{fontCharacter:"\\eb0b"}),ae.issues=new ae("issues",{fontCharacter:"\\eb0c"}),ae.italic=new ae("italic",{fontCharacter:"\\eb0d"}),ae.jersey=new ae("jersey",{fontCharacter:"\\eb0e"}),ae.json=new ae("json",{fontCharacter:"\\eb0f"}),ae.kebabVertical=new ae("kebab-vertical",{fontCharacter:"\\eb10"}),ae.key=new ae("key",{fontCharacter:"\\eb11"}),ae.law=new ae("law",{fontCharacter:"\\eb12"}),ae.lightbulbAutofix=new ae("lightbulb-autofix",{fontCharacter:"\\eb13"}),ae.linkExternal=new ae("link-external",{fontCharacter:"\\eb14"}),ae.link=new ae("link",{fontCharacter:"\\eb15"}),ae.listOrdered=new ae("list-ordered",{fontCharacter:"\\eb16"}),ae.listUnordered=new ae("list-unordered",{fontCharacter:"\\eb17"}),ae.liveShare=new ae("live-share",{fontCharacter:"\\eb18"}),ae.loading=new ae("loading",{fontCharacter:"\\eb19"}),ae.location=new ae("location",{fontCharacter:"\\eb1a"}),ae.mailRead=new ae("mail-read",{fontCharacter:"\\eb1b"}),ae.mail=new ae("mail",{fontCharacter:"\\eb1c"}),ae.markdown=new ae("markdown",{fontCharacter:"\\eb1d"}),ae.megaphone=new ae("megaphone",{fontCharacter:"\\eb1e"}),ae.mention=new ae("mention",{fontCharacter:"\\eb1f"}),ae.milestone=new ae("milestone",{fontCharacter:"\\eb20"}),ae.mortarBoard=new ae("mortar-board",{fontCharacter:"\\eb21"}),ae.move=new ae("move",{fontCharacter:"\\eb22"}),ae.multipleWindows=new ae("multiple-windows",{fontCharacter:"\\eb23"}),ae.mute=new ae("mute",{fontCharacter:"\\eb24"}),ae.noNewline=new ae("no-newline",{fontCharacter:"\\eb25"}),ae.note=new ae("note",{fontCharacter:"\\eb26"}),ae.octoface=new ae("octoface",{fontCharacter:"\\eb27"}),ae.openPreview=new ae("open-preview",{fontCharacter:"\\eb28"}),ae.package_=new ae("package",{fontCharacter:"\\eb29"}),ae.paintcan=new ae("paintcan",{fontCharacter:"\\eb2a"}),ae.pin=new ae("pin",{fontCharacter:"\\eb2b"}),ae.play=new ae("play",{fontCharacter:"\\eb2c"}),ae.run=new ae("run",{fontCharacter:"\\eb2c"}),ae.plug=new ae("plug",{fontCharacter:"\\eb2d"}),ae.preserveCase=new ae("preserve-case",{fontCharacter:"\\eb2e"}),ae.preview=new ae("preview",{fontCharacter:"\\eb2f"}),ae.project=new ae("project",{fontCharacter:"\\eb30"}),ae.pulse=new ae("pulse",{fontCharacter:"\\eb31"}),ae.question=new ae("question",{fontCharacter:"\\eb32"}),ae.quote=new ae("quote",{fontCharacter:"\\eb33"}),ae.radioTower=new ae("radio-tower",{fontCharacter:"\\eb34"}),ae.reactions=new ae("reactions",{fontCharacter:"\\eb35"}),ae.references=new ae("references",{fontCharacter:"\\eb36"}),ae.refresh=new ae("refresh",{fontCharacter:"\\eb37"}),ae.regex=new ae("regex",{fontCharacter:"\\eb38"}),ae.remoteExplorer=new ae("remote-explorer",{fontCharacter:"\\eb39"}),ae.remote=new ae("remote",{fontCharacter:"\\eb3a"}),ae.remove=new ae("remove",{fontCharacter:"\\eb3b"}),ae.replaceAll=new ae("replace-all",{fontCharacter:"\\eb3c"}),ae.replace=new ae("replace",{fontCharacter:"\\eb3d"}),ae.repoClone=new ae("repo-clone",{fontCharacter:"\\eb3e"}),ae.repoForcePush=new ae("repo-force-push",{fontCharacter:"\\eb3f"}),ae.repoPull=new ae("repo-pull",{fontCharacter:"\\eb40"}),ae.repoPush=new ae("repo-push",{fontCharacter:"\\eb41"}),ae.report=new ae("report",{fontCharacter:"\\eb42"}),ae.requestChanges=new ae("request-changes",{fontCharacter:"\\eb43"}),ae.rocket=new ae("rocket",{fontCharacter:"\\eb44"}),ae.rootFolderOpened=new ae("root-folder-opened",{fontCharacter:"\\eb45"}),ae.rootFolder=new ae("root-folder",{fontCharacter:"\\eb46"}),ae.rss=new ae("rss",{fontCharacter:"\\eb47"}),ae.ruby=new ae("ruby",{fontCharacter:"\\eb48"}),ae.saveAll=new ae("save-all",{fontCharacter:"\\eb49"}),ae.saveAs=new ae("save-as",{fontCharacter:"\\eb4a"}),ae.save=new ae("save",{fontCharacter:"\\eb4b"}),ae.screenFull=new ae("screen-full",{fontCharacter:"\\eb4c"}),ae.screenNormal=new ae("screen-normal",{fontCharacter:"\\eb4d"}),ae.searchStop=new ae("search-stop",{fontCharacter:"\\eb4e"}),ae.server=new ae("server",{fontCharacter:"\\eb50"}),ae.settingsGear=new ae("settings-gear",{fontCharacter:"\\eb51"}),ae.settings=new ae("settings",{fontCharacter:"\\eb52"}),ae.shield=new ae("shield",{fontCharacter:"\\eb53"}),ae.smiley=new ae("smiley",{fontCharacter:"\\eb54"}),ae.sortPrecedence=new ae("sort-precedence",{fontCharacter:"\\eb55"}),ae.splitHorizontal=new ae("split-horizontal",{fontCharacter:"\\eb56"}),ae.splitVertical=new ae("split-vertical",{fontCharacter:"\\eb57"}),ae.squirrel=new ae("squirrel",{fontCharacter:"\\eb58"}),ae.starFull=new ae("star-full",{fontCharacter:"\\eb59"}),ae.starHalf=new ae("star-half",{fontCharacter:"\\eb5a"}),ae.symbolClass=new ae("symbol-class",{fontCharacter:"\\eb5b"}),ae.symbolColor=new ae("symbol-color",{fontCharacter:"\\eb5c"}),ae.symbolCustomColor=new ae("symbol-customcolor",{fontCharacter:"\\eb5c"}),ae.symbolConstant=new ae("symbol-constant",{fontCharacter:"\\eb5d"}),ae.symbolEnumMember=new ae("symbol-enum-member",{fontCharacter:"\\eb5e"}),ae.symbolField=new ae("symbol-field",{fontCharacter:"\\eb5f"}),ae.symbolFile=new ae("symbol-file",{fontCharacter:"\\eb60"}),ae.symbolInterface=new ae("symbol-interface",{fontCharacter:"\\eb61"}),ae.symbolKeyword=new ae("symbol-keyword",{fontCharacter:"\\eb62"}),ae.symbolMisc=new ae("symbol-misc",{fontCharacter:"\\eb63"}),ae.symbolOperator=new ae("symbol-operator",{fontCharacter:"\\eb64"}),ae.symbolProperty=new ae("symbol-property",{fontCharacter:"\\eb65"}),ae.wrench=new ae("wrench",{fontCharacter:"\\eb65"}),ae.wrenchSubaction=new ae("wrench-subaction",{fontCharacter:"\\eb65"}),ae.symbolSnippet=new ae("symbol-snippet",{fontCharacter:"\\eb66"}),ae.tasklist=new ae("tasklist",{fontCharacter:"\\eb67"}),ae.telescope=new ae("telescope",{fontCharacter:"\\eb68"}),ae.textSize=new ae("text-size",{fontCharacter:"\\eb69"}),ae.threeBars=new ae("three-bars",{fontCharacter:"\\eb6a"}),ae.thumbsdown=new ae("thumbsdown",{fontCharacter:"\\eb6b"}),ae.thumbsup=new ae("thumbsup",{fontCharacter:"\\eb6c"}),ae.tools=new ae("tools",{fontCharacter:"\\eb6d"}),ae.triangleDown=new ae("triangle-down",{fontCharacter:"\\eb6e"}),ae.triangleLeft=new ae("triangle-left",{fontCharacter:"\\eb6f"}),ae.triangleRight=new ae("triangle-right",{fontCharacter:"\\eb70"}),ae.triangleUp=new ae("triangle-up",{fontCharacter:"\\eb71"}),ae.twitter=new ae("twitter",{fontCharacter:"\\eb72"}),ae.unfold=new ae("unfold",{fontCharacter:"\\eb73"}),ae.unlock=new ae("unlock",{fontCharacter:"\\eb74"}),ae.unmute=new ae("unmute",{fontCharacter:"\\eb75"}),ae.unverified=new ae("unverified",{fontCharacter:"\\eb76"}),ae.verified=new ae("verified",{fontCharacter:"\\eb77"}),ae.versions=new ae("versions",{fontCharacter:"\\eb78"}),ae.vmActive=new ae("vm-active",{fontCharacter:"\\eb79"}),ae.vmOutline=new ae("vm-outline",{fontCharacter:"\\eb7a"}),ae.vmRunning=new ae("vm-running",{fontCharacter:"\\eb7b"}),ae.watch=new ae("watch",{fontCharacter:"\\eb7c"}),ae.whitespace=new ae("whitespace",{fontCharacter:"\\eb7d"}),ae.wholeWord=new ae("whole-word",{fontCharacter:"\\eb7e"}),ae.window=new ae("window",{fontCharacter:"\\eb7f"}),ae.wordWrap=new ae("word-wrap",{fontCharacter:"\\eb80"}),ae.zoomIn=new ae("zoom-in",{fontCharacter:"\\eb81"}),ae.zoomOut=new ae("zoom-out",{fontCharacter:"\\eb82"}),ae.listFilter=new ae("list-filter",{fontCharacter:"\\eb83"}),ae.listFlat=new ae("list-flat",{fontCharacter:"\\eb84"}),ae.listSelection=new ae("list-selection",{fontCharacter:"\\eb85"}),ae.selection=new ae("selection",{fontCharacter:"\\eb85"}),ae.listTree=new ae("list-tree",{fontCharacter:"\\eb86"}),ae.debugBreakpointFunctionUnverified=new ae("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),ae.debugBreakpointFunction=new ae("debug-breakpoint-function",{fontCharacter:"\\eb88"}),ae.debugBreakpointFunctionDisabled=new ae("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),ae.debugStackframeActive=new ae("debug-stackframe-active",{fontCharacter:"\\eb89"}),ae.circleSmallFilled=new ae("circle-small-filled",{fontCharacter:"\\eb8a"}),ae.debugStackframeDot=new ae("debug-stackframe-dot",ae.circleSmallFilled.definition),ae.debugStackframe=new ae("debug-stackframe",{fontCharacter:"\\eb8b"}),ae.debugStackframeFocused=new ae("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),ae.debugBreakpointUnsupported=new ae("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),ae.symbolString=new ae("symbol-string",{fontCharacter:"\\eb8d"}),ae.debugReverseContinue=new ae("debug-reverse-continue",{fontCharacter:"\\eb8e"}),ae.debugStepBack=new ae("debug-step-back",{fontCharacter:"\\eb8f"}),ae.debugRestartFrame=new ae("debug-restart-frame",{fontCharacter:"\\eb90"}),ae.callIncoming=new ae("call-incoming",{fontCharacter:"\\eb92"}),ae.callOutgoing=new ae("call-outgoing",{fontCharacter:"\\eb93"}),ae.menu=new ae("menu",{fontCharacter:"\\eb94"}),ae.expandAll=new ae("expand-all",{fontCharacter:"\\eb95"}),ae.feedback=new ae("feedback",{fontCharacter:"\\eb96"}),ae.groupByRefType=new ae("group-by-ref-type",{fontCharacter:"\\eb97"}),ae.ungroupByRefType=new ae("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),ae.account=new ae("account",{fontCharacter:"\\eb99"}),ae.bellDot=new ae("bell-dot",{fontCharacter:"\\eb9a"}),ae.debugConsole=new ae("debug-console",{fontCharacter:"\\eb9b"}),ae.library=new ae("library",{fontCharacter:"\\eb9c"}),ae.output=new ae("output",{fontCharacter:"\\eb9d"}),ae.runAll=new ae("run-all",{fontCharacter:"\\eb9e"}),ae.syncIgnored=new ae("sync-ignored",{fontCharacter:"\\eb9f"}),ae.pinned=new ae("pinned",{fontCharacter:"\\eba0"}),ae.githubInverted=new ae("github-inverted",{fontCharacter:"\\eba1"}),ae.debugAlt=new ae("debug-alt",{fontCharacter:"\\eb91"}),ae.serverProcess=new ae("server-process",{fontCharacter:"\\eba2"}),ae.serverEnvironment=new ae("server-environment",{fontCharacter:"\\eba3"}),ae.pass=new ae("pass",{fontCharacter:"\\eba4"}),ae.stopCircle=new ae("stop-circle",{fontCharacter:"\\eba5"}),ae.playCircle=new ae("play-circle",{fontCharacter:"\\eba6"}),ae.record=new ae("record",{fontCharacter:"\\eba7"}),ae.debugAltSmall=new ae("debug-alt-small",{fontCharacter:"\\eba8"}),ae.vmConnect=new ae("vm-connect",{fontCharacter:"\\eba9"}),ae.cloud=new ae("cloud",{fontCharacter:"\\ebaa"}),ae.merge=new ae("merge",{fontCharacter:"\\ebab"}),ae.exportIcon=new ae("export",{fontCharacter:"\\ebac"}),ae.graphLeft=new ae("graph-left",{fontCharacter:"\\ebad"}),ae.magnet=new ae("magnet",{fontCharacter:"\\ebae"}),ae.notebook=new ae("notebook",{fontCharacter:"\\ebaf"}),ae.redo=new ae("redo",{fontCharacter:"\\ebb0"}),ae.checkAll=new ae("check-all",{fontCharacter:"\\ebb1"}),ae.pinnedDirty=new ae("pinned-dirty",{fontCharacter:"\\ebb2"}),ae.passFilled=new ae("pass-filled",{fontCharacter:"\\ebb3"}),ae.circleLargeFilled=new ae("circle-large-filled",{fontCharacter:"\\ebb4"}),ae.circleLargeOutline=new ae("circle-large-outline",{fontCharacter:"\\ebb5"}),ae.combine=new ae("combine",{fontCharacter:"\\ebb6"}),ae.gather=new ae("gather",{fontCharacter:"\\ebb6"}),ae.table=new ae("table",{fontCharacter:"\\ebb7"}),ae.variableGroup=new ae("variable-group",{fontCharacter:"\\ebb8"}),ae.typeHierarchy=new ae("type-hierarchy",{fontCharacter:"\\ebb9"}),ae.typeHierarchySub=new ae("type-hierarchy-sub",{fontCharacter:"\\ebba"}),ae.typeHierarchySuper=new ae("type-hierarchy-super",{fontCharacter:"\\ebbb"}),ae.gitPullRequestCreate=new ae("git-pull-request-create",{fontCharacter:"\\ebbc"}),ae.runAbove=new ae("run-above",{fontCharacter:"\\ebbd"}),ae.runBelow=new ae("run-below",{fontCharacter:"\\ebbe"}),ae.notebookTemplate=new ae("notebook-template",{fontCharacter:"\\ebbf"}),ae.debugRerun=new ae("debug-rerun",{fontCharacter:"\\ebc0"}),ae.workspaceTrusted=new ae("workspace-trusted",{fontCharacter:"\\ebc1"}),ae.workspaceUntrusted=new ae("workspace-untrusted",{fontCharacter:"\\ebc2"}),ae.workspaceUnspecified=new ae("workspace-unspecified",{fontCharacter:"\\ebc3"}),ae.terminalCmd=new ae("terminal-cmd",{fontCharacter:"\\ebc4"}),ae.terminalDebian=new ae("terminal-debian",{fontCharacter:"\\ebc5"}),ae.terminalLinux=new ae("terminal-linux",{fontCharacter:"\\ebc6"}),ae.terminalPowershell=new ae("terminal-powershell",{fontCharacter:"\\ebc7"}),ae.terminalTmux=new ae("terminal-tmux",{fontCharacter:"\\ebc8"}),ae.terminalUbuntu=new ae("terminal-ubuntu",{fontCharacter:"\\ebc9"}),ae.terminalBash=new ae("terminal-bash",{fontCharacter:"\\ebca"}),ae.arrowSwap=new ae("arrow-swap",{fontCharacter:"\\ebcb"}),ae.copy=new ae("copy",{fontCharacter:"\\ebcc"}),ae.personAdd=new ae("person-add",{fontCharacter:"\\ebcd"}),ae.filterFilled=new ae("filter-filled",{fontCharacter:"\\ebce"}),ae.wand=new ae("wand",{fontCharacter:"\\ebcf"}),ae.debugLineByLine=new ae("debug-line-by-line",{fontCharacter:"\\ebd0"}),ae.inspect=new ae("inspect",{fontCharacter:"\\ebd1"}),ae.layers=new ae("layers",{fontCharacter:"\\ebd2"}),ae.layersDot=new ae("layers-dot",{fontCharacter:"\\ebd3"}),ae.layersActive=new ae("layers-active",{fontCharacter:"\\ebd4"}),ae.compass=new ae("compass",{fontCharacter:"\\ebd5"}),ae.compassDot=new ae("compass-dot",{fontCharacter:"\\ebd6"}),ae.compassActive=new ae("compass-active",{fontCharacter:"\\ebd7"}),ae.azure=new ae("azure",{fontCharacter:"\\ebd8"}),ae.issueDraft=new ae("issue-draft",{fontCharacter:"\\ebd9"}),ae.gitPullRequestClosed=new ae("git-pull-request-closed",{fontCharacter:"\\ebda"}),ae.gitPullRequestDraft=new ae("git-pull-request-draft",{fontCharacter:"\\ebdb"}),ae.debugAll=new ae("debug-all",{fontCharacter:"\\ebdc"}),ae.debugCoverage=new ae("debug-coverage",{fontCharacter:"\\ebdd"}),ae.runErrors=new ae("run-errors",{fontCharacter:"\\ebde"}),ae.folderLibrary=new ae("folder-library",{fontCharacter:"\\ebdf"}),ae.debugContinueSmall=new ae("debug-continue-small",{fontCharacter:"\\ebe0"}),ae.beakerStop=new ae("beaker-stop",{fontCharacter:"\\ebe1"}),ae.graphLine=new ae("graph-line",{fontCharacter:"\\ebe2"}),ae.graphScatter=new ae("graph-scatter",{fontCharacter:"\\ebe3"}),ae.pieChart=new ae("pie-chart",{fontCharacter:"\\ebe4"}),ae.bracket=new ae("bracket",ae.json.definition),ae.bracketDot=new ae("bracket-dot",{fontCharacter:"\\ebe5"}),ae.bracketError=new ae("bracket-error",{fontCharacter:"\\ebe6"}),ae.lockSmall=new ae("lock-small",{fontCharacter:"\\ebe7"}),ae.azureDevops=new ae("azure-devops",{fontCharacter:"\\ebe8"}),ae.verifiedFilled=new ae("verified-filled",{fontCharacter:"\\ebe9"}),ae.newLine=new ae("newline",{fontCharacter:"\\ebea"}),ae.layout=new ae("layout",{fontCharacter:"\\ebeb"}),ae.layoutActivitybarLeft=new ae("layout-activitybar-left",{fontCharacter:"\\ebec"}),ae.layoutActivitybarRight=new ae("layout-activitybar-right",{fontCharacter:"\\ebed"}),ae.layoutPanelLeft=new ae("layout-panel-left",{fontCharacter:"\\ebee"}),ae.layoutPanelCenter=new ae("layout-panel-center",{fontCharacter:"\\ebef"}),ae.layoutPanelJustify=new ae("layout-panel-justify",{fontCharacter:"\\ebf0"}),ae.layoutPanelRight=new ae("layout-panel-right",{fontCharacter:"\\ebf1"}),ae.layoutPanel=new ae("layout-panel",{fontCharacter:"\\ebf2"}),ae.layoutSidebarLeft=new ae("layout-sidebar-left",{fontCharacter:"\\ebf3"}),ae.layoutSidebarRight=new ae("layout-sidebar-right",{fontCharacter:"\\ebf4"}),ae.layoutStatusbar=new ae("layout-statusbar",{fontCharacter:"\\ebf5"}),ae.layoutMenubar=new ae("layout-menubar",{fontCharacter:"\\ebf6"}),ae.layoutCentered=new ae("layout-centered",{fontCharacter:"\\ebf7"}),ae.layoutSidebarRightOff=new ae("layout-sidebar-right-off",{fontCharacter:"\\ec00"}),ae.layoutPanelOff=new ae("layout-panel-off",{fontCharacter:"\\ec01"}),ae.layoutSidebarLeftOff=new ae("layout-sidebar-left-off",{fontCharacter:"\\ec02"}),ae.target=new ae("target",{fontCharacter:"\\ebf8"}),ae.indent=new ae("indent",{fontCharacter:"\\ebf9"}),ae.recordSmall=new ae("record-small",{fontCharacter:"\\ebfa"}),ae.errorSmall=new ae("error-small",{fontCharacter:"\\ebfb"}),ae.arrowCircleDown=new ae("arrow-circle-down",{fontCharacter:"\\ebfc"}),ae.arrowCircleLeft=new ae("arrow-circle-left",{fontCharacter:"\\ebfd"}),ae.arrowCircleRight=new ae("arrow-circle-right",{fontCharacter:"\\ebfe"}),ae.arrowCircleUp=new ae("arrow-circle-up",{fontCharacter:"\\ebff"}),ae.heartFilled=new ae("heart-filled",{fontCharacter:"\\ec04"}),ae.map=new ae("map",{fontCharacter:"\\ec05"}),ae.mapFilled=new ae("map-filled",{fontCharacter:"\\ec06"}),ae.circleSmall=new ae("circle-small",{fontCharacter:"\\ec07"}),ae.bellSlash=new ae("bell-slash",{fontCharacter:"\\ec08"}),ae.bellSlashDot=new ae("bell-slash-dot",{fontCharacter:"\\ec09"}),ae.commentUnresolved=new ae("comment-unresolved",{fontCharacter:"\\ec0a"}),ae.gitPullRequestGoToChanges=new ae("git-pull-request-go-to-changes",{fontCharacter:"\\ec0b"}),ae.gitPullRequestNewChanges=new ae("git-pull-request-new-changes",{fontCharacter:"\\ec0c"}),ae.dialogError=new ae("dialog-error",ae.error.definition),ae.dialogWarning=new ae("dialog-warning",ae.warning.definition),ae.dialogInfo=new ae("dialog-info",ae.info.definition),ae.dialogClose=new ae("dialog-close",ae.close.definition),ae.treeItemExpanded=new ae("tree-item-expanded",ae.chevronDown.definition),ae.treeFilterOnTypeOn=new ae("tree-filter-on-type-on",ae.listFilter.definition),ae.treeFilterOnTypeOff=new ae("tree-filter-on-type-off",ae.listSelection.definition),ae.treeFilterClear=new ae("tree-filter-clear",ae.close.definition),ae.treeItemLoading=new ae("tree-item-loading",ae.loading.definition),ae.menuSelection=new ae("menu-selection",ae.check.definition),ae.menuSubmenu=new ae("menu-submenu",ae.chevronRight.definition),ae.menuBarMore=new ae("menubar-more",ae.more.definition),ae.scrollbarButtonLeft=new ae("scrollbar-button-left",ae.triangleLeft.definition),ae.scrollbarButtonRight=new ae("scrollbar-button-right",ae.triangleRight.definition),ae.scrollbarButtonUp=new ae("scrollbar-button-up",ae.triangleUp.definition),ae.scrollbarButtonDown=new ae("scrollbar-button-down",ae.triangleDown.definition),ae.toolBarMore=new ae("toolbar-more",ae.more.definition),ae.quickInputBack=new ae("quick-input-back",ae.arrowLeft.definition);var _S;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const n=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function f(p){if(p instanceof ae)return["codicon","codicon-"+p.id];const N=n.exec(p.id);if(!N)return f(ae.error);const[,H,h]=N,v=["codicon","codicon-"+H];return h&&v.push("codicon-modifier-"+h.substr(1)),v}e.asClassNameArray=f;function d(p){return f(p).join(" ")}e.asClassName=d;function a(p){return"."+f(p).join(".")}e.asCSSSelector=a})(_S||(_S={}));var TE=function(e,n,f,d){function a(p){return p instanceof f?p:new f(function(N){N(p)})}return new(f||(f=Promise))(function(p,N){function H(A){try{v(d.next(A))}catch(q){N(q)}}function h(A){try{v(d.throw(A))}catch(q){N(q)}}function v(A){A.done?p(A.value):a(A.value).then(H,h)}v((d=d.apply(e,n||[])).next())})};class ok{constructor(){this._map=new Map,this._factories=new Map,this._onDidChange=new zp,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(n){this._onDidChange.fire({changedLanguages:n,changedColorMap:!1})}register(n,f){return this._map.set(n,f),this.fire([n]),Xh(()=>{this._map.get(n)===f&&(this._map.delete(n),this.fire([n]))})}registerFactory(n,f){var d;(d=this._factories.get(n))===null||d===void 0||d.dispose();const a=new sk(this,n,f);return this._factories.set(n,a),Xh(()=>{const p=this._factories.get(n);!p||p!==a||(this._factories.delete(n),p.dispose())})}getOrCreate(n){return TE(this,void 0,void 0,function*(){const f=this.get(n);if(f)return f;const d=this._factories.get(n);return!d||d.isResolved?null:(yield d.resolve(),this.get(n))})}get(n){return this._map.get(n)||null}isResolved(n){if(this.get(n))return!0;const d=this._factories.get(n);return!!(!d||d.isResolved)}setColorMap(n){this._colorMap=n,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class sk extends $b{constructor(n,f,d){super(),this._registry=n,this._languageId=f,this._factory=d,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return TE(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return TE(this,void 0,void 0,function*(){const n=yield Promise.resolve(this._factory.createTokenizationSupport());this._isResolved=!0,n&&!this._isDisposed&&this._register(this._registry.register(this._languageId,n))})}}class lk{constructor(n,f,d){this._tokenBrand=void 0,this.offset=n,this.type=f,this.language=d}toString(){return"("+this.offset+", "+this.type+")"}}var mS;(function(e){const n=new Map;n.set(0,ae.symbolMethod),n.set(1,ae.symbolFunction),n.set(2,ae.symbolConstructor),n.set(3,ae.symbolField),n.set(4,ae.symbolVariable),n.set(5,ae.symbolClass),n.set(6,ae.symbolStruct),n.set(7,ae.symbolInterface),n.set(8,ae.symbolModule),n.set(9,ae.symbolProperty),n.set(10,ae.symbolEvent),n.set(11,ae.symbolOperator),n.set(12,ae.symbolUnit),n.set(13,ae.symbolValue),n.set(15,ae.symbolEnum),n.set(14,ae.symbolConstant),n.set(15,ae.symbolEnum),n.set(16,ae.symbolEnumMember),n.set(17,ae.symbolKeyword),n.set(27,ae.symbolSnippet),n.set(18,ae.symbolText),n.set(19,ae.symbolColor),n.set(20,ae.symbolFile),n.set(21,ae.symbolReference),n.set(22,ae.symbolCustomColor),n.set(23,ae.symbolFolder),n.set(24,ae.symbolTypeParameter),n.set(25,ae.account),n.set(26,ae.issues);function f(p){let N=n.get(p);return N||(console.info("No codicon found for CompletionItemKind "+p),N=ae.symbolProperty),N}e.toIcon=f;const d=new Map;d.set("method",0),d.set("function",1),d.set("constructor",2),d.set("field",3),d.set("variable",4),d.set("class",5),d.set("struct",6),d.set("interface",7),d.set("module",8),d.set("property",9),d.set("event",10),d.set("operator",11),d.set("unit",12),d.set("value",13),d.set("constant",14),d.set("enum",15),d.set("enum-member",16),d.set("enumMember",16),d.set("keyword",17),d.set("snippet",27),d.set("text",18),d.set("color",19),d.set("file",20),d.set("reference",21),d.set("customcolor",22),d.set("folder",23),d.set("type-parameter",24),d.set("typeParameter",24),d.set("account",25),d.set("issue",26);function a(p,N){let H=d.get(p);return typeof H>"u"&&!N&&(H=9),H}e.fromString=a})(mS||(mS={}));var gS;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(gS||(gS={}));var vS;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(vS||(vS={}));var hS;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(hS||(hS={}));var yS;(function(e){const n=new Map;n.set(0,ae.symbolFile),n.set(1,ae.symbolModule),n.set(2,ae.symbolNamespace),n.set(3,ae.symbolPackage),n.set(4,ae.symbolClass),n.set(5,ae.symbolMethod),n.set(6,ae.symbolProperty),n.set(7,ae.symbolField),n.set(8,ae.symbolConstructor),n.set(9,ae.symbolEnum),n.set(10,ae.symbolInterface),n.set(11,ae.symbolFunction),n.set(12,ae.symbolVariable),n.set(13,ae.symbolConstant),n.set(14,ae.symbolString),n.set(15,ae.symbolNumber),n.set(16,ae.symbolBoolean),n.set(17,ae.symbolArray),n.set(18,ae.symbolObject),n.set(19,ae.symbolKey),n.set(20,ae.symbolNull),n.set(21,ae.symbolEnumMember),n.set(22,ae.symbolStruct),n.set(23,ae.symbolEvent),n.set(24,ae.symbolOperator),n.set(25,ae.symbolTypeParameter);function f(d){let a=n.get(d);return a||(console.info("No codicon found for SymbolKind "+d),a=ae.symbolProperty),a}e.toIcon=f})(yS||(yS={}));var bS;(function(e){function n(f){return!f||typeof f!="object"?!1:typeof f.id=="string"&&typeof f.title=="string"}e.is=n})(bS||(bS={}));var ES;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(ES||(ES={})),new ok;var TS;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(TS||(TS={}));var SS;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(SS||(SS={}));var DS;(function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(DS||(DS={}));var LS;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(LS||(LS={}));var AS;(function(e){e[e.Deprecated=1]="Deprecated"})(AS||(AS={}));var CS;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(CS||(CS={}));var xS;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(xS||(xS={}));var IS;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(IS||(IS={}));var NS;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(NS||(NS={}));var kS;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(kS||(kS={}));var OS;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(OS||(OS={}));var RS;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.dropIntoEditor=32]="dropIntoEditor",e[e.emptySelectionClipboard=33]="emptySelectionClipboard",e[e.experimental=34]="experimental",e[e.extraEditorClassName=35]="extraEditorClassName",e[e.fastScrollSensitivity=36]="fastScrollSensitivity",e[e.find=37]="find",e[e.fixedOverflowWidgets=38]="fixedOverflowWidgets",e[e.folding=39]="folding",e[e.foldingStrategy=40]="foldingStrategy",e[e.foldingHighlight=41]="foldingHighlight",e[e.foldingImportsByDefault=42]="foldingImportsByDefault",e[e.foldingMaximumRegions=43]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=44]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=45]="fontFamily",e[e.fontInfo=46]="fontInfo",e[e.fontLigatures=47]="fontLigatures",e[e.fontSize=48]="fontSize",e[e.fontWeight=49]="fontWeight",e[e.formatOnPaste=50]="formatOnPaste",e[e.formatOnType=51]="formatOnType",e[e.glyphMargin=52]="glyphMargin",e[e.gotoLocation=53]="gotoLocation",e[e.hideCursorInOverviewRuler=54]="hideCursorInOverviewRuler",e[e.hover=55]="hover",e[e.inDiffEditor=56]="inDiffEditor",e[e.inlineSuggest=57]="inlineSuggest",e[e.letterSpacing=58]="letterSpacing",e[e.lightbulb=59]="lightbulb",e[e.lineDecorationsWidth=60]="lineDecorationsWidth",e[e.lineHeight=61]="lineHeight",e[e.lineNumbers=62]="lineNumbers",e[e.lineNumbersMinChars=63]="lineNumbersMinChars",e[e.linkedEditing=64]="linkedEditing",e[e.links=65]="links",e[e.matchBrackets=66]="matchBrackets",e[e.minimap=67]="minimap",e[e.mouseStyle=68]="mouseStyle",e[e.mouseWheelScrollSensitivity=69]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=70]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=71]="multiCursorMergeOverlapping",e[e.multiCursorModifier=72]="multiCursorModifier",e[e.multiCursorPaste=73]="multiCursorPaste",e[e.occurrencesHighlight=74]="occurrencesHighlight",e[e.overviewRulerBorder=75]="overviewRulerBorder",e[e.overviewRulerLanes=76]="overviewRulerLanes",e[e.padding=77]="padding",e[e.parameterHints=78]="parameterHints",e[e.peekWidgetDefaultFocus=79]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=80]="definitionLinkOpensInPeek",e[e.quickSuggestions=81]="quickSuggestions",e[e.quickSuggestionsDelay=82]="quickSuggestionsDelay",e[e.readOnly=83]="readOnly",e[e.renameOnType=84]="renameOnType",e[e.renderControlCharacters=85]="renderControlCharacters",e[e.renderFinalNewline=86]="renderFinalNewline",e[e.renderLineHighlight=87]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=88]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=89]="renderValidationDecorations",e[e.renderWhitespace=90]="renderWhitespace",e[e.revealHorizontalRightPadding=91]="revealHorizontalRightPadding",e[e.roundedSelection=92]="roundedSelection",e[e.rulers=93]="rulers",e[e.scrollbar=94]="scrollbar",e[e.scrollBeyondLastColumn=95]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=96]="scrollBeyondLastLine",e[e.scrollPredominantAxis=97]="scrollPredominantAxis",e[e.selectionClipboard=98]="selectionClipboard",e[e.selectionHighlight=99]="selectionHighlight",e[e.selectOnLineNumbers=100]="selectOnLineNumbers",e[e.showFoldingControls=101]="showFoldingControls",e[e.showUnused=102]="showUnused",e[e.snippetSuggestions=103]="snippetSuggestions",e[e.smartSelect=104]="smartSelect",e[e.smoothScrolling=105]="smoothScrolling",e[e.stickyTabStops=106]="stickyTabStops",e[e.stopRenderingLineAfter=107]="stopRenderingLineAfter",e[e.suggest=108]="suggest",e[e.suggestFontSize=109]="suggestFontSize",e[e.suggestLineHeight=110]="suggestLineHeight",e[e.suggestOnTriggerCharacters=111]="suggestOnTriggerCharacters",e[e.suggestSelection=112]="suggestSelection",e[e.tabCompletion=113]="tabCompletion",e[e.tabIndex=114]="tabIndex",e[e.unicodeHighlighting=115]="unicodeHighlighting",e[e.unusualLineTerminators=116]="unusualLineTerminators",e[e.useShadowDOM=117]="useShadowDOM",e[e.useTabStops=118]="useTabStops",e[e.wordSeparators=119]="wordSeparators",e[e.wordWrap=120]="wordWrap",e[e.wordWrapBreakAfterCharacters=121]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=122]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=123]="wordWrapColumn",e[e.wordWrapOverride1=124]="wordWrapOverride1",e[e.wordWrapOverride2=125]="wordWrapOverride2",e[e.wrappingIndent=126]="wrappingIndent",e[e.wrappingStrategy=127]="wrappingStrategy",e[e.showDeprecated=128]="showDeprecated",e[e.inlayHints=129]="inlayHints",e[e.editorClassName=130]="editorClassName",e[e.pixelRatio=131]="pixelRatio",e[e.tabFocusMode=132]="tabFocusMode",e[e.layoutInfo=133]="layoutInfo",e[e.wrappingInfo=134]="wrappingInfo"})(RS||(RS={}));var wS;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(wS||(wS={}));var PS;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(PS||(PS={}));var MS;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(MS||(MS={}));var FS;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(FS||(FS={}));var GS;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(GS||(GS={}));var BS;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(BS||(BS={}));var SE;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.Clear=126]="Clear",e[e.MAX_VALUE=127]="MAX_VALUE"})(SE||(SE={}));var DE;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(DE||(DE={}));var LE;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(LE||(LE={}));var US;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(US||(US={}));var VS;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(VS||(VS={}));var WS;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(WS||(WS={}));var jS;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(jS||(jS={}));var HS;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(HS||(HS={}));var JS;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(JS||(JS={}));var KS;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(KS||(KS={}));var zS;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(zS||(zS={}));var qS;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(qS||(qS={}));var AE;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(AE||(AE={}));var XS;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(XS||(XS={}));var YS;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(YS||(YS={}));var QS;(function(e){e[e.Deprecated=1]="Deprecated"})(QS||(QS={}));var ZS;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(ZS||(ZS={}));var $S;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})($S||($S={}));var eD;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(eD||(eD={}));var rD;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(rD||(rD={}));class Mv{static chord(n,f){return ik(n,f)}}Mv.CtrlCmd=2048,Mv.Shift=1024,Mv.Alt=512,Mv.WinCtrl=256;function ck(){return{editor:void 0,languages:void 0,CancellationTokenSource:rk,Emitter:zp,KeyCode:SE,KeyMod:Mv,Position:mf,Range:yl,Selection:Qf,SelectionDirection:AE,MarkerSeverity:DE,MarkerTag:LE,Uri:Rm,Token:lk}}var tD;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(tD||(tD={}));var nD;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(nD||(nD={}));var aD;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(aD||(aD={}));function uk(e,n,f,d,a){if(d===0)return!0;const p=n.charCodeAt(d-1);if(e.get(p)!==0||p===13||p===10)return!0;if(a>0){const N=n.charCodeAt(d);if(e.get(N)!==0)return!0}return!1}function fk(e,n,f,d,a){if(d+a===f)return!0;const p=n.charCodeAt(d+a);if(e.get(p)!==0||p===13||p===10)return!0;if(a>0){const N=n.charCodeAt(d+a-1);if(e.get(N)!==0)return!0}return!1}function dk(e,n,f,d,a){return uk(e,n,f,d,a)&&fk(e,n,f,d,a)}class pk{constructor(n,f){this._wordSeparators=n,this._searchRegex=f,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(n){this._searchRegex.lastIndex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(n){const f=n.length;let d;do{if(this._prevMatchStartIndex+this._prevMatchLength===f||(d=this._searchRegex.exec(n),!d))return null;const a=d.index,p=d[0].length;if(a===this._prevMatchStartIndex&&p===this._prevMatchLength){if(p===0){pN(n,f,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=a,this._prevMatchLength=p,!this._wordSeparators||dk(this._wordSeparators,n,f,a,p))return d}while(d);return null}}class _k{static computeUnicodeHighlights(n,f,d){const a=d?d.startLineNumber:1,p=d?d.endLineNumber:n.getLineCount(),N=new iD(f),H=N.getCandidateCodePoints();let h;H==="allNonBasicAscii"?h=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):h=new RegExp(`${mk(Array.from(H))}`,"g");const v=new pk(null,h),A=[];let q=!1,ie,b=0,P=0,S=0;e:for(let B=a,J=p;B<=J;B++){const k=n.getLineContent(B),M=k.length;v.reset(0);do if(ie=v.next(k),ie){let x=ie.index,w=ie.index+ie[0].length;if(x>0){const R=k.charCodeAt(x-1);lE(R)&&x--}if(w+1<M){const R=k.charCodeAt(w-1);lE(R)&&w++}const K=k.substring(x,w),Z=mE(x+1,uS,k,0),ne=N.shouldHighlightNonBasicASCII(K,Z?Z.word:null);if(ne!==0){ne===3?b++:ne===2?P++:ne===1?S++:iN();const R=1e3;if(A.length>=R){q=!0;break e}A.push(new yl(B,x+1,B,w+1))}}while(ie)}return{ranges:A,hasMore:q,ambiguousCharacterCount:b,invisibleCharacterCount:P,nonBasicAsciiCharacterCount:S}}static computeUnicodeHighlightReason(n,f){const d=new iD(f);switch(d.shouldHighlightNonBasicASCII(n,null)){case 0:return null;case 2:return{kind:1};case 3:{const p=n.codePointAt(0),N=d.ambiguousCharacters.getPrimaryConfusable(p),H=Id.getLocales().filter(h=>!Id.getInstance(new Set([...f.allowedLocales,h])).isAmbiguous(p));return{kind:0,confusableWith:String.fromCodePoint(N),notAmbiguousInLocales:H}}case 1:return{kind:2}}}}function mk(e,n){return`[${sN(e.map(d=>String.fromCodePoint(d)).join(""))}]`}class iD{constructor(n){this.options=n,this.allowedCodePoints=new Set(n.allowedCodePoints),this.ambiguousCharacters=Id.getInstance(new Set(n.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const n=new Set;if(this.options.invisibleCharacters)for(const f of X_.codePoints)oD(String.fromCodePoint(f))||n.add(f);if(this.options.ambiguousCharacters)for(const f of this.ambiguousCharacters.getConfusableCodePoints())n.add(f);for(const f of this.allowedCodePoints)n.delete(f);return n}shouldHighlightNonBasicASCII(n,f){const d=n.codePointAt(0);if(this.allowedCodePoints.has(d))return 0;if(this.options.nonBasicASCII)return 1;let a=!1,p=!1;if(f)for(const N of f){const H=N.codePointAt(0),h=mN(N);a=a||h,!h&&!this.ambiguousCharacters.isAmbiguous(H)&&!X_.isInvisibleCharacter(H)&&(p=!0)}return!a&&p?0:this.options.invisibleCharacters&&!oD(n)&&X_.isInvisibleCharacter(d)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(d)?3:0}}function oD(e){return e===" "||e===`
|
|
`||e===" "}var wm=function(e,n,f,d){function a(p){return p instanceof f?p:new f(function(N){N(p)})}return new(f||(f=Promise))(function(p,N){function H(A){try{v(d.next(A))}catch(q){N(q)}}function h(A){try{v(d.throw(A))}catch(q){N(q)}}function v(A){A.done?p(A.value):a(A.value).then(H,h)}v((d=d.apply(e,n||[])).next())})};class gk extends JN{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(n){return this._lines[n-1]}getWordAtPosition(n,f){const d=mE(n.column,qN(f),this._lines[n.lineNumber-1],0);return d?new yl(n.lineNumber,d.startColumn,n.lineNumber,d.endColumn):null}words(n){const f=this._lines,d=this._wordenize.bind(this);let a=0,p="",N=0,H=[];return{*[Symbol.iterator](){for(;;)if(N<H.length){const h=p.substring(H[N].start,H[N].end);N+=1,yield h}else if(a<f.length)p=f[a],H=d(p,n),N=0,a+=1;else break}}}getLineWords(n,f){const d=this._lines[n-1],a=this._wordenize(d,f),p=[];for(const N of a)p.push({word:d.substring(N.start,N.end),startColumn:N.start+1,endColumn:N.end+1});return p}_wordenize(n,f){const d=[];let a;for(f.lastIndex=0;(a=f.exec(n))&&a[0].length!==0;)d.push({start:a.index,end:a.index+a[0].length});return d}getValueInRange(n){if(n=this._validateRange(n),n.startLineNumber===n.endLineNumber)return this._lines[n.startLineNumber-1].substring(n.startColumn-1,n.endColumn-1);const f=this._eol,d=n.startLineNumber-1,a=n.endLineNumber-1,p=[];p.push(this._lines[d].substring(n.startColumn-1));for(let N=d+1;N<a;N++)p.push(this._lines[N]);return p.push(this._lines[a].substring(0,n.endColumn-1)),p.join(f)}offsetAt(n){return n=this._validatePosition(n),this._ensureLineStarts(),this._lineStarts.getPrefixSum(n.lineNumber-2)+(n.column-1)}positionAt(n){n=Math.floor(n),n=Math.max(0,n),this._ensureLineStarts();const f=this._lineStarts.getIndexOf(n),d=this._lines[f.index].length;return{lineNumber:1+f.index,column:1+Math.min(f.remainder,d)}}_validateRange(n){const f=this._validatePosition({lineNumber:n.startLineNumber,column:n.startColumn}),d=this._validatePosition({lineNumber:n.endLineNumber,column:n.endColumn});return f.lineNumber!==n.startLineNumber||f.column!==n.startColumn||d.lineNumber!==n.endLineNumber||d.column!==n.endColumn?{startLineNumber:f.lineNumber,startColumn:f.column,endLineNumber:d.lineNumber,endColumn:d.column}:n}_validatePosition(n){if(!mf.isIPosition(n))throw new Error("bad position");let{lineNumber:f,column:d}=n,a=!1;if(f<1)f=1,d=1,a=!0;else if(f>this._lines.length)f=this._lines.length,d=this._lines[f-1].length+1,a=!0;else{const p=this._lines[f-1].length+1;d<1?(d=1,a=!0):d>p&&(d=p,a=!0)}return a?{lineNumber:f,column:d}:n}}class Pm{constructor(n,f){this._host=n,this._models=Object.create(null),this._foreignModuleFactory=f,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(n){return this._models[n]}_getModels(){const n=[];return Object.keys(this._models).forEach(f=>n.push(this._models[f])),n}acceptNewModel(n){this._models[n.url]=new gk(Rm.parse(n.url),n.lines,n.EOL,n.versionId)}acceptModelChanged(n,f){if(!this._models[n])return;this._models[n].onEvents(f)}acceptRemovedModel(n){!this._models[n]||delete this._models[n]}computeUnicodeHighlights(n,f,d){return wm(this,void 0,void 0,function*(){const a=this._getModel(n);return a?_k.computeUnicodeHighlights(a,f,d):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(n,f,d,a){return wm(this,void 0,void 0,function*(){const p=this._getModel(n),N=this._getModel(f);return!p||!N?null:Pm.computeDiff(p,N,d,a)})}static computeDiff(n,f,d,a){const p=n.getLinesContent(),N=f.getLinesContent(),h=new WN(p,N,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:d,shouldMakePrettyDiff:!0,maxComputationTime:a}).computeDiff(),v=h.changes.length>0?!1:this._modelsAreIdentical(n,f);return{quitEarly:h.quitEarly,identical:v,changes:h.changes}}static _modelsAreIdentical(n,f){const d=n.getLineCount(),a=f.getLineCount();if(d!==a)return!1;for(let p=1;p<=d;p++){const N=n.getLineContent(p),H=f.getLineContent(p);if(N!==H)return!1}return!0}computeMoreMinimalEdits(n,f){return wm(this,void 0,void 0,function*(){const d=this._getModel(n);if(!d)return f;const a=[];let p;f=f.slice(0).sort((N,H)=>{if(N.range&&H.range)return yl.compareRangesUsingStarts(N.range,H.range);const h=N.range?0:1,v=H.range?0:1;return h-v});for(let{range:N,text:H,eol:h}of f){if(typeof h=="number"&&(p=h),yl.isEmpty(N)&&!H)continue;const v=d.getValueInRange(N);if(H=H.replace(/\r\n|\n|\r/g,d.eol),v===H)continue;if(Math.max(H.length,v.length)>Pm._diffLimit){a.push({range:N,text:H});continue}const A=LN(v,H,!1),q=d.offsetAt(yl.lift(N).getStartPosition());for(const ie of A){const b=d.positionAt(q+ie.originalStart),P=d.positionAt(q+ie.originalStart+ie.originalLength),S={text:H.substr(ie.modifiedStart,ie.modifiedLength),range:{startLineNumber:b.lineNumber,startColumn:b.column,endLineNumber:P.lineNumber,endColumn:P.column}};d.getValueInRange(S.range)!==S.text&&a.push(S)}}return typeof p=="number"&&a.push({eol:p,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),a})}computeLinks(n){return wm(this,void 0,void 0,function*(){const f=this._getModel(n);return f?ek(f):null})}textualSuggest(n,f,d,a){return wm(this,void 0,void 0,function*(){const p=new Zh(!0),N=new RegExp(d,a),H=new Set;e:for(const h of n){const v=this._getModel(h);if(!!v){for(const A of v.words(N))if(!(A===f||!isNaN(Number(A)))&&(H.add(A),H.size>Pm._suggestionsLimit))break e}}return{words:Array.from(H),duration:p.elapsed()}})}computeWordRanges(n,f,d,a){return wm(this,void 0,void 0,function*(){const p=this._getModel(n);if(!p)return Object.create(null);const N=new RegExp(d,a),H=Object.create(null);for(let h=f.startLineNumber;h<f.endLineNumber;h++){const v=p.getLineWords(h,N);for(const A of v){if(!isNaN(Number(A.word)))continue;let q=H[A.word];q||(q=[],H[A.word]=q),q.push({startLineNumber:h,startColumn:A.startColumn,endLineNumber:h,endColumn:A.endColumn})}}return H})}navigateValueSet(n,f,d,a,p){return wm(this,void 0,void 0,function*(){const N=this._getModel(n);if(!N)return null;const H=new RegExp(a,p);f.startColumn===f.endColumn&&(f={startLineNumber:f.startLineNumber,startColumn:f.startColumn,endLineNumber:f.endLineNumber,endColumn:f.endColumn+1});const h=N.getValueInRange(f),v=N.getWordAtPosition({lineNumber:f.startLineNumber,column:f.startColumn},H);if(!v)return null;const A=N.getValueInRange(v);return hE.INSTANCE.navigateValueSet(f,h,v,A,d)})}loadForeignModule(n,f,d){const N={host:aN(d,(H,h)=>this._host.fhr(H,h)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(N,f),Promise.resolve(sE(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(n,f){if(!this._foreignModule||typeof this._foreignModule[n]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+n));try{return Promise.resolve(this._foreignModule[n].apply(this._foreignModule,f))}catch(d){return Promise.reject(d)}}}Pm._diffLimit=1e5,Pm._suggestionsLimit=1e4,typeof importScripts=="function"&&(su.monaco=ck());let CE=!1;function sD(e){if(CE)return;CE=!0;const n=new SN(f=>{self.postMessage(f)},f=>new Pm(f,e));self.onmessage=f=>{n.onmessage(f.data)}}self.onmessage=e=>{CE||sD(null)};/*!-----------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Version: 0.34.0(9d278685b078158491964f8fd7ac9628fffa0f30)
|
|
* Released under the MIT license
|
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
*-----------------------------------------------------------------------------*/var vk=Object.defineProperty,hk=(e,n)=>{for(var f in n)vk(e,f,{get:n[f],enumerable:!0})},lD={};hk(lD,{EndOfLineState:()=>Ek,IndentStyle:()=>Sk,ScriptKind:()=>Fm,ScriptTarget:()=>Dk,TokenClass:()=>Lk,createClassifier:()=>yk,createLanguageService:()=>fD,displayPartsToString:()=>bk,flattenDiagnosticMessageText:()=>Tk,typescript:()=>dD});var Gt=function(e,n,f){if(f||arguments.length===2)for(var d=0,a=n.length,p;d<a;d++)(p||!(d in n))&&(p||(p=Array.prototype.slice.call(n,0,d)),p[d]=n[d]);return e.concat(p||Array.prototype.slice.call(n))},Rn=function(){return Rn=Object.assign||function(e){for(var n,f=1,d=arguments.length;f<d;f++){n=arguments[f];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Rn.apply(this,arguments)},cD=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},Rg=function(e,n){var f={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},d,a,p,N;return N={next:H(0),throw:H(1),return:H(2)},typeof Symbol=="function"&&(N[Symbol.iterator]=function(){return this}),N;function H(v){return function(A){return h([v,A])}}function h(v){if(d)throw new TypeError("Generator is already executing.");for(;f;)try{if(d=1,a&&(p=v[0]&2?a.return:v[0]?a.throw||((p=a.return)&&p.call(a),0):a.next)&&!(p=p.call(a,v[1])).done)return p;switch(a=0,p&&(v=[v[0]&2,p.value]),v[0]){case 0:case 1:p=v;break;case 4:return f.label++,{value:v[1],done:!1};case 5:f.label++,a=v[1],v=[0];continue;case 7:v=f.ops.pop(),f.trys.pop();continue;default:if(p=f.trys,!(p=p.length>0&&p[p.length-1])&&(v[0]===6||v[0]===2)){f=0;continue}if(v[0]===3&&(!p||v[1]>p[0]&&v[1]<p[3])){f.label=v[1];break}if(v[0]===6&&f.label<p[1]){f.label=p[1],p=v;break}if(p&&f.label<p[2]){f.label=p[2],f.ops.push(v);break}p[2]&&f.ops.pop(),f.trys.pop();continue}v=n.call(e,f)}catch(A){v=[6,A],a=0}finally{d=p=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},uD=function(e,n){var f={};for(var d in e)Object.prototype.hasOwnProperty.call(e,d)&&n.indexOf(d)<0&&(f[d]=e[d]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,d=Object.getOwnPropertySymbols(e);a<d.length;a++)n.indexOf(d[a])<0&&Object.prototype.propertyIsEnumerable.call(e,d[a])&&(f[d[a]]=e[d[a]]);return f},Mm=function(){var e=function(n,f){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var p in a)Object.prototype.hasOwnProperty.call(a,p)&&(d[p]=a[p])},e(n,f)};return function(n,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");e(n,f);function d(){this.constructor=n}n.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}(),gr;(function(e){function n(){var P={};return P.prev=P,{head:P,tail:P,size:0}}function f(P,S){return{key:P,value:S,next:void 0,prev:void 0}}function d(P,S){return P===S||P!==P&&S!==S}function a(P){var S=P.prev;if(!S||S===P)throw new Error("Illegal state");return S}function p(P){for(;P;){var S=!P.prev;if(P=P.next,!S)return P}}function N(P,S){for(var B=P.tail;B!==P.head;B=a(B))if(d(B.key,S))return B}function H(P,S,B){var J=N(P,S);if(J){J.value=B;return}var k=f(S,B);return k.prev=P.tail,P.tail.next=k,P.tail=k,P.size++,k}function h(P,S){for(var B=P.tail;B!==P.head;B=a(B)){if(B.prev===void 0)throw new Error("Illegal state");if(d(B.key,S)){if(B.next)B.next.prev=B.prev;else{if(P.tail!==B)throw new Error("Illegal state");P.tail=B.prev}return B.prev.next=B.next,B.next=B.prev,B.prev=void 0,P.size--,B}}}function v(P){for(var S=P.tail;S!==P.head;){var B=a(S);S.next=P.head,S.prev=void 0,S=B}P.head.next=void 0,P.tail=P.head,P.size=0}function A(P,S){for(var B=P.head;B;)B=p(B),B&&S(B.value,B.key)}function q(P,S){if(P)for(var B=P.next();!B.done;B=P.next())S(B.value)}function ie(P,S){return{current:P.head,selector:S}}function b(P){return P.current=p(P.current),P.current?{value:P.selector(P.current.key,P.current.value),done:!1}:{value:void 0,done:!0}}(function(P){function S(J){var k=function(){function M(x,w){this._data=ie(x,w)}return M.prototype.next=function(){return b(this._data)},M}();return function(){function M(x){var w=this;this._mapData=n(),q(J(x),function(K){var Z=K[0],ne=K[1];return w.set(Z,ne)})}return Object.defineProperty(M.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),M.prototype.get=function(x){var w;return(w=N(this._mapData,x))===null||w===void 0?void 0:w.value},M.prototype.set=function(x,w){return H(this._mapData,x,w),this},M.prototype.has=function(x){return!!N(this._mapData,x)},M.prototype.delete=function(x){return!!h(this._mapData,x)},M.prototype.clear=function(){v(this._mapData)},M.prototype.keys=function(){return new k(this._mapData,function(x,w){return x})},M.prototype.values=function(){return new k(this._mapData,function(x,w){return w})},M.prototype.entries=function(){return new k(this._mapData,function(x,w){return[x,w]})},M.prototype.forEach=function(x){A(this._mapData,x)},M}()}P.createMapShim=S;function B(J){var k=function(){function M(x,w){this._data=ie(x,w)}return M.prototype.next=function(){return b(this._data)},M}();return function(){function M(x){var w=this;this._mapData=n(),q(J(x),function(K){return w.add(K)})}return Object.defineProperty(M.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),M.prototype.add=function(x){return H(this._mapData,x,x),this},M.prototype.has=function(x){return!!N(this._mapData,x)},M.prototype.delete=function(x){return!!h(this._mapData,x)},M.prototype.clear=function(){v(this._mapData)},M.prototype.keys=function(){return new k(this._mapData,function(x,w){return x})},M.prototype.values=function(){return new k(this._mapData,function(x,w){return w})},M.prototype.entries=function(){return new k(this._mapData,function(x,w){return[x,w]})},M.prototype.forEach=function(x){A(this._mapData,x)},M}()}P.createSetShim=B})(e.ShimCollections||(e.ShimCollections={}))})(gr||(gr={}));var gr;(function(e){e.versionMajorMinor="4.5",e.version="4.5.5",function(d){d[d.LessThan=-1]="LessThan",d[d.EqualTo=0]="EqualTo",d[d.GreaterThan=1]="GreaterThan"}(e.Comparison||(e.Comparison={}));var n;(function(d){function a(){return typeof Map<"u"&&"entries"in Map.prototype&&new Map([[0,0]]).size===1?Map:void 0}d.tryGetNativeMap=a;function p(){return typeof Set<"u"&&"entries"in Set.prototype&&new Set([0]).size===1?Set:void 0}d.tryGetNativeSet=p})(n||(n={})),e.Map=f("Map","tryGetNativeMap","createMapShim"),e.Set=f("Set","tryGetNativeSet","createSetShim");function f(d,a,p){var N,H=(N=n[a]())!==null&&N!==void 0?N:e.ShimCollections===null||e.ShimCollections===void 0?void 0:e.ShimCollections[p](e.getIterator);if(H)return H;throw new Error("TypeScript requires an environment that provides a compatible native ".concat(d," implementation."))}})(gr||(gr={}));var gr;(function(e){function n(se){if(se){if(et(se))return Ke(se);if(se instanceof e.Map)return se.entries();if(se instanceof e.Set)return se.values();throw new Error("Iteration not supported.")}}e.getIterator=n,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set;function f(){return new e.Map}e.createMap=f;function d(se){var Be=new e.Map;for(var er in se)Yr.call(se,er)&&Be.set(er,se[er]);return Be}e.createMapFromTemplate=d;function a(se){return se?se.length:0}e.length=a;function p(se,Be){if(se)for(var er=0;er<se.length;er++){var hr=Be(se[er],er);if(hr)return hr}}e.forEach=p;function N(se,Be){if(se)for(var er=se.length-1;er>=0;er--){var hr=Be(se[er],er);if(hr)return hr}}e.forEachRight=N;function H(se,Be){if(se!==void 0)for(var er=0;er<se.length;er++){var hr=Be(se[er],er);if(hr!==void 0)return hr}}e.firstDefined=H;function h(se,Be){for(;;){var er=se.next();if(er.done)return;var hr=Be(er.value);if(hr!==void 0)return hr}}e.firstDefinedIterator=h;function v(se,Be,er){var hr=er;if(se)for(var qr=se.next(),Dt=0;!qr.done;qr=se.next(),Dt++)hr=Be(hr,qr.value,Dt);return hr}e.reduceLeftIterator=v;function A(se,Be,er){var hr=[];e.Debug.assertEqual(se.length,Be.length);for(var qr=0;qr<se.length;qr++)hr.push(er(se[qr],Be[qr],qr));return hr}e.zipWith=A;function q(se,Be){e.Debug.assertEqual(se.length,Be.length);var er=0;return{next:function(){return er===se.length?{value:void 0,done:!0}:(er++,{value:[se[er-1],Be[er-1]],done:!1})}}}e.zipToIterator=q;function ie(se,Be){e.Debug.assert(se.length===Be.length);for(var er=new e.Map,hr=0;hr<se.length;++hr)er.set(se[hr],Be[hr]);return er}e.zipToMap=ie;function b(se,Be){if(se.length<=1)return se;for(var er=[],hr=0,qr=se.length;hr<qr;hr++)hr&&er.push(Be),er.push(se[hr]);return er}e.intersperse=b;function P(se,Be){if(se){for(var er=0;er<se.length;er++)if(!Be(se[er],er))return!1}return!0}e.every=P;function S(se,Be){for(var er=0;er<se.length;er++){var hr=se[er];if(Be(hr,er))return hr}}e.find=S;function B(se,Be){for(var er=se.length-1;er>=0;er--){var hr=se[er];if(Be(hr,er))return hr}}e.findLast=B;function J(se,Be,er){for(var hr=er||0;hr<se.length;hr++)if(Be(se[hr],hr))return hr;return-1}e.findIndex=J;function k(se,Be,er){for(var hr=er===void 0?se.length-1:er;hr>=0;hr--)if(Be(se[hr],hr))return hr;return-1}e.findLastIndex=k;function M(se,Be){for(var er=0;er<se.length;er++){var hr=Be(se[er],er);if(hr)return hr}return e.Debug.fail()}e.findMap=M;function x(se,Be,er){if(er===void 0&&(er=Jn),se)for(var hr=0,qr=se;hr<qr.length;hr++){var Dt=qr[hr];if(er(Dt,Be))return!0}return!1}e.contains=x;function w(se,Be,er){return er===void 0&&(er=Jn),se.length===Be.length&&se.every(function(hr,qr){return er(hr,Be[qr])})}e.arraysEqual=w;function K(se,Be,er){for(var hr=er||0;hr<se.length;hr++)if(x(Be,se.charCodeAt(hr)))return hr;return-1}e.indexOfAnyCharCode=K;function Z(se,Be){var er=0;if(se)for(var hr=0;hr<se.length;hr++){var qr=se[hr];Be(qr,hr)&&er++}return er}e.countWhere=Z;function ne(se,Be){if(se){for(var er=se.length,hr=0;hr<er&&Be(se[hr]);)hr++;if(hr<er){var qr=se.slice(0,hr);for(hr++;hr<er;){var Dt=se[hr];Be(Dt)&&qr.push(Dt),hr++}return qr}}return se}e.filter=ne;function R(se,Be){for(var er=0,hr=0;hr<se.length;hr++)Be(se[hr],hr,se)&&(se[er]=se[hr],er++);se.length=er}e.filterMutate=R;function Y(se){se.length=0}e.clear=Y;function U(se,Be){var er;if(se){er=[];for(var hr=0;hr<se.length;hr++)er.push(Be(se[hr],hr))}return er}e.map=U;function $(se,Be){return{next:function(){var er=se.next();return er.done?er:{value:Be(er.value),done:!1}}}}e.mapIterator=$;function T(se,Be){if(se)for(var er=0;er<se.length;er++){var hr=se[er],qr=Be(hr,er);if(hr!==qr){var Dt=se.slice(0,er);for(Dt.push(qr),er++;er<se.length;er++)Dt.push(Be(se[er],er));return Dt}}return se}e.sameMap=T;function I(se){for(var Be=[],er=0,hr=se;er<hr.length;er++){var qr=hr[er];qr&&(et(qr)?Lr(Be,qr):Be.push(qr))}return Be}e.flatten=I;function y(se,Be){var er;if(se)for(var hr=0;hr<se.length;hr++){var qr=Be(se[hr],hr);qr&&(et(qr)?er=Lr(er,qr):er=De(er,qr))}return er||e.emptyArray}e.flatMap=y;function D(se,Be){var er=[];if(se)for(var hr=0;hr<se.length;hr++){var qr=Be(se[hr],hr);qr&&(et(qr)?Lr(er,qr):er.push(qr))}return er}e.flatMapToMutable=D;function C(se,Be){var er=se.next();if(er.done)return e.emptyIterator;var hr=qr(er.value);return{next:function(){for(;;){var Dt=hr.next();if(!Dt.done)return Dt;var Jt=se.next();if(Jt.done)return Jt;hr=qr(Jt.value)}}};function qr(Dt){var Jt=Be(Dt);return Jt===void 0?e.emptyIterator:et(Jt)?Ke(Jt):Jt}}e.flatMapIterator=C;function m(se,Be){var er;if(se)for(var hr=0;hr<se.length;hr++){var qr=se[hr],Dt=Be(qr,hr);(er||qr!==Dt||et(Dt))&&(er||(er=se.slice(0,hr)),et(Dt)?Lr(er,Dt):er.push(Dt))}return er||se}e.sameFlatMap=m;function u(se,Be){for(var er=[],hr=0;hr<se.length;hr++){var qr=Be(se[hr],hr);if(qr===void 0)return;er.push(qr)}return er}e.mapAllOrFail=u;function g(se,Be){var er=[];if(se)for(var hr=0;hr<se.length;hr++){var qr=Be(se[hr],hr);qr!==void 0&&er.push(qr)}return er}e.mapDefined=g;function F(se,Be){return{next:function(){for(;;){var er=se.next();if(er.done)return er;var hr=Be(er.value);if(hr!==void 0)return{value:hr,done:!1}}}}}e.mapDefinedIterator=F;function te(se,Be){if(!!se){var er=new e.Map;return se.forEach(function(hr,qr){var Dt=Be(qr,hr);if(Dt!==void 0){var Jt=Dt[0],Sn=Dt[1];Jt!==void 0&&Sn!==void 0&&er.set(Jt,Sn)}}),er}}e.mapDefinedEntries=te;function ue(se,Be){if(se){var er=new e.Set;return se.forEach(function(hr){var qr=Be(hr);qr!==void 0&&er.add(qr)}),er}}e.mapDefinedValues=ue;function X(se,Be,er){if(se.has(Be))return se.get(Be);var hr=er();return se.set(Be,hr),hr}e.getOrUpdate=X;function j(se,Be){return se.has(Be)?!1:(se.add(Be),!0)}e.tryAddToSet=j,e.emptyIterator={next:function(){return{value:void 0,done:!0}}};function Se(se){var Be=!1;return{next:function(){var er=Be;return Be=!0,er?{value:void 0,done:!0}:{value:se,done:!1}}}}e.singleIterator=Se;function Ce(se,Be,er){var hr;if(se){hr=[];for(var qr=se.length,Dt=void 0,Jt=void 0,Sn=0,ta=0;Sn<qr;){for(;ta<qr;){var xa=se[ta];if(Jt=Be(xa,ta),ta===0)Dt=Jt;else if(Jt!==Dt)break;ta++}if(Sn<ta){var Di=er(se.slice(Sn,ta),Dt,Sn,ta);Di&&hr.push(Di),Sn=ta}Dt=Jt,ta++}}return hr}e.spanMap=Ce;function O(se,Be){if(!!se){var er=new e.Map;return se.forEach(function(hr,qr){var Dt=Be(qr,hr),Jt=Dt[0],Sn=Dt[1];er.set(Jt,Sn)}),er}}e.mapEntries=O;function Q(se,Be){if(se)if(Be)for(var er=0,hr=se;er<hr.length;er++){var qr=hr[er];if(Be(qr))return!0}else return se.length>0;return!1}e.some=Q;function V(se,Be,er){for(var hr,qr=0;qr<se.length;qr++)Be(se[qr])?hr=hr===void 0?qr:hr:hr!==void 0&&(er(hr,qr),hr=void 0);hr!==void 0&&er(hr,se.length)}e.getRangesWhere=V;function z(se,Be){return Q(Be)?Q(se)?Gt(Gt([],se,!0),Be,!0):Be:se}e.concatenate=z;function Te(se,Be){return Be}function ge(se){return se.map(Te)}e.indicesOf=ge;function ke(se,Be,er){var hr=ge(se);Cr(se,hr,er);for(var qr=se[hr[0]],Dt=[hr[0]],Jt=1;Jt<hr.length;Jt++){var Sn=hr[Jt],ta=se[Sn];Be(qr,ta)||(Dt.push(Sn),qr=ta)}return Dt.sort(),Dt.map(function(xa){return se[xa]})}function Me(se,Be){for(var er=[],hr=0,qr=se;hr<qr.length;hr++){var Dt=qr[hr];Er(er,Dt,Be)}return er}function Ie(se,Be,er){return se.length===0?[]:se.length===1?se.slice():er?ke(se,Be,er):Me(se,Be)}e.deduplicate=Ie;function Ge(se,Be){if(se.length===0)return e.emptyArray;for(var er=se[0],hr=[er],qr=1;qr<se.length;qr++){var Dt=se[qr];switch(Be(Dt,er)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}hr.push(er=Dt)}return hr}function he(se,Be,er){if(se.length===0){se.push(Be);return}var hr=Jr(se,Be,ht,er);hr<0&&se.splice(~hr,0,Be)}e.insertSorted=he;function ve(se,Be,er){return Ge(Or(se,Be),er||Be||dn)}e.sortAndDeduplicate=ve;function Ve(se,Be){if(se.length<2)return!0;for(var er=se[0],hr=0,qr=se.slice(1);hr<qr.length;hr++){var Dt=qr[hr];if(Be(er,Dt)===1)return!1;er=Dt}return!0}e.arrayIsSorted=Ve;function _e(se,Be,er){if(er===void 0&&(er=Jn),!se||!Be)return se===Be;if(se.length!==Be.length)return!1;for(var hr=0;hr<se.length;hr++)if(!er(se[hr],Be[hr],hr))return!1;return!0}e.arrayIsEqualTo=_e;function Le(se){var Be;if(se)for(var er=0;er<se.length;er++){var hr=se[er];(Be||!hr)&&(Be||(Be=se.slice(0,er)),hr&&Be.push(hr))}return Be||se}e.compact=Le;function qe(se,Be,er){if(!Be||!se||Be.length===0||se.length===0)return Be;var hr=[];e:for(var qr=0,Dt=0;Dt<Be.length;Dt++){Dt>0&&e.Debug.assertGreaterThanOrEqual(er(Be[Dt],Be[Dt-1]),0);r:for(var Jt=qr;qr<se.length;qr++)switch(qr>Jt&&e.Debug.assertGreaterThanOrEqual(er(se[qr],se[qr-1]),0),er(Be[Dt],se[qr])){case-1:hr.push(Be[Dt]);continue e;case 0:continue e;case 1:continue r}}return hr}e.relativeComplement=qe;function Xe(se,Be){for(var er=0,hr=0,qr=se;hr<qr.length;hr++){var Dt=qr[hr];er+=Dt[Be]}return er}e.sum=Xe;function De(se,Be){return Be===void 0?se:se===void 0?[Be]:(se.push(Be),se)}e.append=De;function Ae(se,Be){return se===void 0?Be:Be===void 0?se:et(se)?et(Be)?z(se,Be):De(se,Be):et(Be)?De(Be,se):[se,Be]}e.combine=Ae;function Ye(se,Be){return Be<0?se.length+Be:Be}function Lr(se,Be,er,hr){if(Be===void 0||Be.length===0)return se;if(se===void 0)return Be.slice(er,hr);er=er===void 0?0:Ye(Be,er),hr=hr===void 0?Be.length:Ye(Be,hr);for(var qr=er;qr<hr&&qr<Be.length;qr++)Be[qr]!==void 0&&se.push(Be[qr]);return se}e.addRange=Lr;function Er(se,Be,er){return x(se,Be,er)?!1:(se.push(Be),!0)}e.pushIfUnique=Er;function lr(se,Be,er){return se?(Er(se,Be,er),se):[Be]}e.appendIfUnique=lr;function Cr(se,Be,er){Be.sort(function(hr,qr){return er(se[hr],se[qr])||St(hr,qr)})}function Or(se,Be){return se.length===0?se:se.slice().sort(Be)}e.sort=Or;function Ke(se){var Be=0;return{next:function(){return Be===se.length?{value:void 0,done:!0}:(Be++,{value:se[Be-1],done:!1})}}}e.arrayIterator=Ke;function Pe(se){var Be=se.length;return{next:function(){return Be===0?{value:void 0,done:!0}:(Be--,{value:se[Be],done:!1})}}}e.arrayReverseIterator=Pe;function Hr(se,Be){var er=ge(se);return Cr(se,er,Be),er.map(function(hr){return se[hr]})}e.stableSort=Hr;function ur(se,Be,er,hr){for(;er<hr;){if(se[er]!==Be[er])return!1;er++}return!0}e.rangeEquals=ur;function vr(se,Be){if(se&&(Be=Ye(se,Be),Be<se.length))return se[Be]}e.elementAt=vr;function de(se){return se.length===0?void 0:se[0]}e.firstOrUndefined=de;function Fe(se){return e.Debug.assert(se.length!==0),se[0]}e.first=Fe;function $e(se){return se.length===0?void 0:se[se.length-1]}e.lastOrUndefined=$e;function Dr(se){return e.Debug.assert(se.length!==0),se[se.length-1]}e.last=Dr;function Fr(se){return se&&se.length===1?se[0]:void 0}e.singleOrUndefined=Fr;function He(se){return se&&se.length===1?se[0]:se}e.singleOrMany=He;function pr(se,Be,er){var hr=se.slice(0);return hr[Be]=er,hr}e.replaceElement=pr;function Jr(se,Be,er,hr,qr){return ze(se,er(Be),er,hr,qr)}e.binarySearch=Jr;function ze(se,Be,er,hr,qr){if(!Q(se))return-1;for(var Dt=qr||0,Jt=se.length-1;Dt<=Jt;){var Sn=Dt+(Jt-Dt>>1),ta=er(se[Sn],Sn);switch(hr(ta,Be)){case-1:Dt=Sn+1;break;case 0:return Sn;case 1:Jt=Sn-1;break}}return~Dt}e.binarySearchKey=ze;function Ar(se,Be,er,hr,qr){if(se&&se.length>0){var Dt=se.length;if(Dt>0){var Jt=hr===void 0||hr<0?0:hr,Sn=qr===void 0||Jt+qr>Dt-1?Dt-1:Jt+qr,ta=void 0;for(arguments.length<=2?(ta=se[Jt],Jt++):ta=er;Jt<=Sn;)ta=Be(ta,se[Jt],Jt),Jt++;return ta}}return er}e.reduceLeft=Ar;var Yr=Object.prototype.hasOwnProperty;function lt(se,Be){return Yr.call(se,Be)}e.hasProperty=lt;function tt(se,Be){return Yr.call(se,Be)?se[Be]:void 0}e.getProperty=tt;function Rt(se){var Be=[];for(var er in se)Yr.call(se,er)&&Be.push(er);return Be}e.getOwnKeys=Rt;function cn(se){var Be=[];do for(var er=Object.getOwnPropertyNames(se),hr=0,qr=er;hr<qr.length;hr++){var Dt=qr[hr];Er(Be,Dt)}while(se=Object.getPrototypeOf(se));return Be}e.getAllKeys=cn;function bn(se){var Be=[];for(var er in se)Yr.call(se,er)&&Be.push(se[er]);return Be}e.getOwnValues=bn;var In=Object.entries||function(se){for(var Be=Rt(se),er=Array(Be.length),hr=0;hr<Be.length;hr++)er[hr]=[Be[hr],se[Be[hr]]];return er};function zn(se){return se?In(se):[]}e.getEntries=zn;function ir(se,Be){for(var er=new Array(se),hr=0;hr<se;hr++)er[hr]=Be(hr);return er}e.arrayOf=ir;function Rr(se,Be){for(var er=[],hr=se.next();!hr.done;hr=se.next())er.push(Be?Be(hr.value):hr.value);return er}e.arrayFrom=Rr;function sr(se){for(var Be=[],er=1;er<arguments.length;er++)Be[er-1]=arguments[er];for(var hr=0,qr=Be;hr<qr.length;hr++){var Dt=qr[hr];if(Dt!==void 0)for(var Jt in Dt)lt(Dt,Jt)&&(se[Jt]=Dt[Jt])}return se}e.assign=sr;function ye(se,Be,er){if(er===void 0&&(er=Jn),se===Be)return!0;if(!se||!Be)return!1;for(var hr in se)if(Yr.call(se,hr)&&(!Yr.call(Be,hr)||!er(se[hr],Be[hr])))return!1;for(var hr in Be)if(Yr.call(Be,hr)&&!Yr.call(se,hr))return!1;return!0}e.equalOwnProperties=ye;function or(se,Be,er){er===void 0&&(er=ht);for(var hr=new e.Map,qr=0,Dt=se;qr<Dt.length;qr++){var Jt=Dt[qr],Sn=Be(Jt);Sn!==void 0&&hr.set(Sn,er(Jt))}return hr}e.arrayToMap=or;function fe(se,Be,er){er===void 0&&(er=ht);for(var hr=[],qr=0,Dt=se;qr<Dt.length;qr++){var Jt=Dt[qr];hr[Be(Jt)]=er(Jt)}return hr}e.arrayToNumericMap=fe;function je(se,Be,er){er===void 0&&(er=ht);for(var hr=Ze(),qr=0,Dt=se;qr<Dt.length;qr++){var Jt=Dt[qr];hr.add(Be(Jt),er(Jt))}return hr}e.arrayToMultiMap=je;function Ee(se,Be,er){return er===void 0&&(er=ht),Rr(je(se,Be).values(),er)}e.group=Ee;function We(se){var Be={};for(var er in se)Yr.call(se,er)&&(Be[er]=se[er]);return Be}e.clone=We;function ee(se,Be){var er={};for(var hr in Be)Yr.call(Be,hr)&&(er[hr]=Be[hr]);for(var hr in se)Yr.call(se,hr)&&(er[hr]=se[hr]);return er}e.extend=ee;function Ne(se,Be){for(var er in Be)Yr.call(Be,er)&&(se[er]=Be[er])}e.copyProperties=Ne;function me(se,Be){return Be?Be.bind(se):void 0}e.maybeBind=me;function Ze(){var se=new e.Map;return se.add=xr,se.remove=fr,se}e.createMultiMap=Ze;function xr(se,Be){var er=this.get(se);return er?er.push(Be):this.set(se,er=[Be]),er}function fr(se,Be){var er=this.get(se);er&&(to(er,Be),er.length||this.delete(se))}function dr(){return Ze()}e.createUnderscoreEscapedMultiMap=dr;function et(se){return Array.isArray?Array.isArray(se):se instanceof Array}e.isArray=et;function yt(se){return et(se)?se:[se]}e.toArray=yt;function Wr(se){return typeof se=="string"}e.isString=Wr;function tr(se){return typeof se=="number"}e.isNumber=tr;function Ir(se,Be){return se!==void 0&&Be(se)?se:void 0}e.tryCast=Ir;function kr(se,Be){return se!==void 0&&Be(se)?se:e.Debug.fail("Invalid cast. The supplied value ".concat(se," did not pass the test '").concat(e.Debug.getFunctionName(Be),"'."))}e.cast=kr;function zr(se){}e.noop=zr;function gt(){return!1}e.returnFalse=gt;function vt(){return!0}e.returnTrue=vt;function ut(){}e.returnUndefined=ut;function ht(se){return se}e.identity=ht;function xt(se){return se.toLowerCase()}e.toLowerCase=xt;var wt=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function Qt(se){return wt.test(se)?se.replace(wt,xt):se}e.toFileNameLowerCase=Qt;function mt(){throw new Error("Not implemented")}e.notImplemented=mt;function rn(se){var Be;return function(){return se&&(Be=se(),se=void 0),Be}}e.memoize=rn;function sa(se){var Be=new e.Map;return function(er){var hr="".concat(typeof er,":").concat(er),qr=Be.get(hr);return qr===void 0&&!Be.has(hr)&&(qr=se(er),Be.set(hr,qr)),qr}}e.memoizeOne=sa;function ba(se,Be,er,hr,qr){if(qr){for(var Dt=[],Jt=0;Jt<arguments.length;Jt++)Dt[Jt]=arguments[Jt];return function(Sn){return Ar(Dt,function(ta,xa){return xa(ta)},Sn)}}else return hr?function(Sn){return hr(er(Be(se(Sn))))}:er?function(Sn){return er(Be(se(Sn)))}:Be?function(Sn){return Be(se(Sn))}:se?function(Sn){return se(Sn)}:function(Sn){return Sn}}e.compose=ba,function(se){se[se.None=0]="None",se[se.Normal=1]="Normal",se[se.Aggressive=2]="Aggressive",se[se.VeryAggressive=3]="VeryAggressive"}(e.AssertionLevel||(e.AssertionLevel={}));function Jn(se,Be){return se===Be}e.equateValues=Jn;function na(se,Be){return se===Be||se!==void 0&&Be!==void 0&&se.toUpperCase()===Be.toUpperCase()}e.equateStringsCaseInsensitive=na;function Wn(se,Be){return Jn(se,Be)}e.equateStringsCaseSensitive=Wn;function en(se,Be){return se===Be?0:se===void 0?-1:Be===void 0?1:se<Be?-1:1}function St(se,Be){return en(se,Be)}e.compareValues=St;function Ut(se,Be){return St(se==null?void 0:se.start,Be==null?void 0:Be.start)||St(se==null?void 0:se.length,Be==null?void 0:Be.length)}e.compareTextSpans=Ut;function qt(se,Be,er){return er(se,Be)===-1?se:Be}e.min=qt;function Pn(se,Be){return se===Be?0:se===void 0?-1:Be===void 0?1:(se=se.toUpperCase(),Be=Be.toUpperCase(),se<Be?-1:se>Be?1:0)}e.compareStringsCaseInsensitive=Pn;function dn(se,Be){return en(se,Be)}e.compareStringsCaseSensitive=dn;function oa(se){return se?Pn:dn}e.getStringComparer=oa;var pt=function(){var se,Be,er=Sn();return ta;function hr(xa,Di,$a){if(xa===Di)return 0;if(xa===void 0)return-1;if(Di===void 0)return 1;var Ji=$a(xa,Di);return Ji<0?-1:Ji>0?1:0}function qr(xa){var Di=new Intl.Collator(xa,{usage:"sort",sensitivity:"variant"}).compare;return function($a,Ji){return hr($a,Ji,Di)}}function Dt(xa){if(xa!==void 0)return Jt();return function($a,Ji){return hr($a,Ji,Di)};function Di($a,Ji){return $a.localeCompare(Ji)}}function Jt(){return function($a,Ji){return hr($a,Ji,xa)};function xa($a,Ji){return Di($a.toUpperCase(),Ji.toUpperCase())||Di($a,Ji)}function Di($a,Ji){return $a<Ji?-1:$a>Ji?1:0}}function Sn(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?qr:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?Dt:Jt}function ta(xa){return xa===void 0?se||(se=er(xa)):xa==="en-US"?Be||(Be=er(xa)):er(xa)}}(),_t,Pt;function It(){return Pt}e.getUILocale=It;function rt(se){Pt!==se&&(Pt=se,_t=void 0)}e.setUILocale=rt;function Cn(se,Be){var er=_t||(_t=pt(Pt));return er(se,Be)}e.compareStringsCaseSensitiveUI=Cn;function Qn(se,Be,er,hr){return se===Be?0:se===void 0?-1:Be===void 0?1:hr(se[er],Be[er])}e.compareProperties=Qn;function Ra(se,Be){return St(se?1:0,Be?1:0)}e.compareBooleans=Ra;function Ci(se,Be,er){for(var hr=Math.min(2,Math.floor(se.length*.34)),qr=Math.floor(se.length*.4)+1,Dt,Jt=0,Sn=Be;Jt<Sn.length;Jt++){var ta=Sn[Jt],xa=er(ta);if(xa!==void 0&&Math.abs(xa.length-se.length)<=hr){if(xa===se||xa.length<3&&xa.toLowerCase()!==se.toLowerCase())continue;var Di=_i(se,xa,qr-.1);if(Di===void 0)continue;e.Debug.assert(Di<qr),qr=Di,Dt=ta}}return Dt}e.getSpellingSuggestion=Ci;function _i(se,Be,er){for(var hr=new Array(Be.length+1),qr=new Array(Be.length+1),Dt=er+.01,Jt=0;Jt<=Be.length;Jt++)hr[Jt]=Jt;for(var Jt=1;Jt<=se.length;Jt++){var Sn=se.charCodeAt(Jt-1),ta=Math.ceil(Jt>er?Jt-er:1),xa=Math.floor(Be.length>er+Jt?er+Jt:Be.length);qr[0]=Jt;for(var Di=Jt,$a=1;$a<ta;$a++)qr[$a]=Dt;for(var $a=ta;$a<=xa;$a++){var Ji=se[Jt-1].toLowerCase()===Be[$a-1].toLowerCase()?hr[$a-1]+.1:hr[$a-1]+2,So=Sn===Be.charCodeAt($a-1)?hr[$a-1]:Math.min(hr[$a]+1,qr[$a-1]+1,Ji);qr[$a]=So,Di=Math.min(Di,So)}for(var $a=xa+1;$a<=Be.length;$a++)qr[$a]=Dt;if(Di>er)return;var cs=hr;hr=qr,qr=cs}var bt=hr[Be.length];return bt>er?void 0:bt}function va(se,Be){var er=se.length-Be.length;return er>=0&&se.indexOf(Be,er)===er}e.endsWith=va;function yi(se,Be){return va(se,Be)?se.slice(0,se.length-Be.length):se}e.removeSuffix=yi;function ro(se,Be){return va(se,Be)?se.slice(0,se.length-Be.length):void 0}e.tryRemoveSuffix=ro;function Ka(se,Be){return se.indexOf(Be)!==-1}e.stringContains=Ka;function Pi(se){for(var Be=se.length,er=Be-1;er>0;er--){var hr=se.charCodeAt(er);if(hr>=48&&hr<=57)do--er,hr=se.charCodeAt(er);while(er>0&&hr>=48&&hr<=57);else if(er>4&&(hr===110||hr===78)){if(--er,hr=se.charCodeAt(er),hr!==105&&hr!==73||(--er,hr=se.charCodeAt(er),hr!==109&&hr!==77))break;--er,hr=se.charCodeAt(er)}else break;if(hr!==45&&hr!==46)break;Be=er}return Be===se.length?se:se.slice(0,Be)}e.removeMinAndVersionNumbers=Pi;function io(se,Be){for(var er=0;er<se.length;er++)if(se[er]===Be)return ji(se,er),!0;return!1}e.orderedRemoveItem=io;function ji(se,Be){for(var er=Be;er<se.length-1;er++)se[er]=se[er+1];se.pop()}e.orderedRemoveItemAt=ji;function Hi(se,Be){se[Be]=se[se.length-1],se.pop()}e.unorderedRemoveItemAt=Hi;function to(se,Be){return No(se,function(er){return er===Be})}e.unorderedRemoveItem=to;function No(se,Be){for(var er=0;er<se.length;er++)if(Be(se[er]))return Hi(se,er),!0;return!1}function lo(se){return se?ht:Qt}e.createGetCanonicalFileName=lo;function Lo(se){var Be=se.prefix,er=se.suffix;return"".concat(Be,"*").concat(er)}e.patternText=Lo;function Ha(se,Be){return e.Debug.assert(Zi(se,Be)),Be.substring(se.prefix.length,Be.length-se.suffix.length)}e.matchedText=Ha;function Yo(se,Be,er){for(var hr,qr=-1,Dt=0,Jt=se;Dt<Jt.length;Dt++){var Sn=Jt[Dt],ta=Be(Sn);Zi(ta,er)&&ta.prefix.length>qr&&(qr=ta.prefix.length,hr=Sn)}return hr}e.findBestPatternMatch=Yo;function co(se,Be){return se.lastIndexOf(Be,0)===0}e.startsWith=co;function za(se,Be){return co(se,Be)?se.substr(Be.length):se}e.removePrefix=za;function hi(se,Be,er){return er===void 0&&(er=ht),co(er(se),er(Be))?se.substring(Be.length):void 0}e.tryRemovePrefix=hi;function Zi(se,Be){var er=se.prefix,hr=se.suffix;return Be.length>=er.length+hr.length&&co(Be,er)&&va(Be,hr)}function Po(se,Be){return function(er){return se(er)&&Be(er)}}e.and=Po;function Mo(){for(var se=[],Be=0;Be<arguments.length;Be++)se[Be]=arguments[Be];return function(){for(var er=[],hr=0;hr<arguments.length;hr++)er[hr]=arguments[hr];for(var qr=0,Dt=se;qr<Dt.length;qr++){var Jt=Dt[qr];if(Jt.apply(void 0,er))return!0}return!1}}e.or=Mo;function Fo(se){return function(){for(var Be=[],er=0;er<arguments.length;er++)Be[er]=arguments[er];return!se.apply(void 0,Be)}}e.not=Fo;function zo(se){}e.assertType=zo;function Es(se){return se===void 0?void 0:[se]}e.singleElementArray=Es;function Cs(se,Be,er,hr,qr,Dt){Dt=Dt||zr;for(var Jt=0,Sn=0,ta=se.length,xa=Be.length,Di=!1;Jt<ta&&Sn<xa;){var $a=se[Jt],Ji=Be[Sn],So=er($a,Ji);So===-1?(hr($a),Jt++,Di=!0):So===1?(qr(Ji),Sn++,Di=!0):(Dt(Ji,$a),Jt++,Sn++)}for(;Jt<ta;)hr(se[Jt++]),Di=!0;for(;Sn<xa;)qr(Be[Sn++]),Di=!0;return Di}e.enumerateInsertsAndDeletes=Cs;function yr(se,Be){for(var er=Array(se),hr=0;hr<se;hr++)er[hr]=Be(hr);return er}e.fill=yr;function dt(se){var Be=[];return tn(se,Be,void 0,0),Be}e.cartesianProduct=dt;function tn(se,Be,er,hr){for(var qr=0,Dt=se[hr];qr<Dt.length;qr++){var Jt=Dt[qr],Sn=void 0;er?(Sn=er.slice(),Sn.push(Jt)):Sn=[Jt],hr===se.length-1?Be.push(Sn):tn(se,Be,Sn,hr+1)}}function Un(se,Be,er){return er===void 0&&(er=" "),Be<=se.length?se:er.repeat(Be-se.length)+se}e.padLeft=Un;function Oe(se,Be,er){return er===void 0&&(er=" "),Be<=se.length?se:se+er.repeat(Be-se.length)}e.padRight=Oe;function oe(se,Be){for(var er=se.length,hr=0;hr<er&&Be(se[hr]);)hr++;return se.slice(0,hr)}e.takeWhile=oe,e.trimString=String.prototype.trim?function(se){return se.trim()}:function(se){return e.trimStringEnd(e.trimStringStart(se))},e.trimStringEnd=String.prototype.trimEnd?function(se){return se.trimEnd()}:mr,e.trimStringStart=String.prototype.trimStart?function(se){return se.trimStart()}:function(se){return se.replace(/^\s+/g,"")};function mr(se){for(var Be=se.length-1;Be>=0&&e.isWhiteSpaceLike(se.charCodeAt(Be));)Be--;return se.slice(0,Be+1)}})(gr||(gr={}));var gr;(function(e){var n;(function(f){f[f.Off=0]="Off",f[f.Error=1]="Error",f[f.Warning=2]="Warning",f[f.Info=3]="Info",f[f.Verbose=4]="Verbose"})(n=e.LogLevel||(e.LogLevel={})),function(f){var d,a=0;f.currentLogLevel=n.Warning,f.isDebugging=!1;function p(){return d!=null?d:d=new e.Version(e.version)}f.getTypeScriptVersion=p;function N(lr){return f.currentLogLevel<=lr}f.shouldLog=N;function H(lr,Cr){f.loggingHost&&N(lr)&&f.loggingHost.log(lr,Cr)}function h(lr){H(n.Info,lr)}f.log=h,function(lr){function Cr(Hr){H(n.Error,Hr)}lr.error=Cr;function Or(Hr){H(n.Warning,Hr)}lr.warn=Or;function Ke(Hr){H(n.Info,Hr)}lr.log=Ke;function Pe(Hr){H(n.Verbose,Hr)}lr.trace=Pe}(h=f.log||(f.log={}));var v={};function A(){return a}f.getAssertionLevel=A;function q(lr){var Cr=a;if(a=lr,lr>Cr)for(var Or=0,Ke=e.getOwnKeys(v);Or<Ke.length;Or++){var Pe=Ke[Or],Hr=v[Pe];Hr!==void 0&&f[Pe]!==Hr.assertion&&lr>=Hr.level&&(f[Pe]=Hr,v[Pe]=void 0)}}f.setAssertionLevel=q;function ie(lr){return a>=lr}f.shouldAssert=ie;function b(lr,Cr){return ie(lr)?!0:(v[Cr]={level:lr,assertion:f[Cr]},f[Cr]=e.noop,!1)}function P(lr,Cr){var Or=new Error(lr?"Debug Failure. ".concat(lr):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Or,Cr||P),Or}f.fail=P;function S(lr,Cr,Or){return P("".concat(Cr||"Unexpected node.",`\r
|
|
Node `).concat(F(lr.kind)," was unexpected."),Or||S)}f.failBadSyntaxKind=S;function B(lr,Cr,Or,Ke){lr||(Cr=Cr?"False expression: ".concat(Cr):"False expression.",Or&&(Cr+=`\r
|
|
Verbose Debug Information: `+(typeof Or=="string"?Or:Or())),P(Cr,Ke||B))}f.assert=B;function J(lr,Cr,Or,Ke,Pe){if(lr!==Cr){var Hr=Or?Ke?"".concat(Or," ").concat(Ke):Or:"";P("Expected ".concat(lr," === ").concat(Cr,". ").concat(Hr),Pe||J)}}f.assertEqual=J;function k(lr,Cr,Or,Ke){lr>=Cr&&P("Expected ".concat(lr," < ").concat(Cr,". ").concat(Or||""),Ke||k)}f.assertLessThan=k;function M(lr,Cr,Or){lr>Cr&&P("Expected ".concat(lr," <= ").concat(Cr),Or||M)}f.assertLessThanOrEqual=M;function x(lr,Cr,Or){lr<Cr&&P("Expected ".concat(lr," >= ").concat(Cr),Or||x)}f.assertGreaterThanOrEqual=x;function w(lr,Cr,Or){lr==null&&P(Cr,Or||w)}f.assertIsDefined=w;function K(lr,Cr,Or){return w(lr,Cr,Or||K),lr}f.checkDefined=K,f.assertDefined=K;function Z(lr,Cr,Or){for(var Ke=0,Pe=lr;Ke<Pe.length;Ke++){var Hr=Pe[Ke];w(Hr,Cr,Or||Z)}}f.assertEachIsDefined=Z;function ne(lr,Cr,Or){return Z(lr,Cr,Or||ne),lr}f.checkEachDefined=ne,f.assertEachDefined=ne;function R(lr,Cr,Or){Cr===void 0&&(Cr="Illegal value:");var Ke=typeof lr=="object"&&e.hasProperty(lr,"kind")&&e.hasProperty(lr,"pos")&&F?"SyntaxKind: "+F(lr.kind):JSON.stringify(lr);return P("".concat(Cr," ").concat(Ke),Or||R)}f.assertNever=R;function Y(lr,Cr,Or,Ke){b(1,"assertEachNode")&&B(Cr===void 0||e.every(lr,Cr),Or||"Unexpected node.",function(){return"Node array did not pass test '".concat(C(Cr),"'.")},Ke||Y)}f.assertEachNode=Y;function U(lr,Cr,Or,Ke){b(1,"assertNode")&&B(lr!==void 0&&(Cr===void 0||Cr(lr)),Or||"Unexpected node.",function(){return"Node ".concat(F(lr==null?void 0:lr.kind)," did not pass test '").concat(C(Cr),"'.")},Ke||U)}f.assertNode=U;function $(lr,Cr,Or,Ke){b(1,"assertNotNode")&&B(lr===void 0||Cr===void 0||!Cr(lr),Or||"Unexpected node.",function(){return"Node ".concat(F(lr.kind)," should not have passed test '").concat(C(Cr),"'.")},Ke||$)}f.assertNotNode=$;function T(lr,Cr,Or,Ke){b(1,"assertOptionalNode")&&B(Cr===void 0||lr===void 0||Cr(lr),Or||"Unexpected node.",function(){return"Node ".concat(F(lr==null?void 0:lr.kind)," did not pass test '").concat(C(Cr),"'.")},Ke||T)}f.assertOptionalNode=T;function I(lr,Cr,Or,Ke){b(1,"assertOptionalToken")&&B(Cr===void 0||lr===void 0||lr.kind===Cr,Or||"Unexpected node.",function(){return"Node ".concat(F(lr==null?void 0:lr.kind)," was not a '").concat(F(Cr),"' token.")},Ke||I)}f.assertOptionalToken=I;function y(lr,Cr,Or){b(1,"assertMissingNode")&&B(lr===void 0,Cr||"Unexpected node.",function(){return"Node ".concat(F(lr.kind)," was unexpected'.")},Or||y)}f.assertMissingNode=y;function D(lr){}f.type=D;function C(lr){if(typeof lr!="function")return"";if(lr.hasOwnProperty("name"))return lr.name;var Cr=Function.prototype.toString.call(lr),Or=/^function\s+([\w\$]+)\s*\(/.exec(Cr);return Or?Or[1]:""}f.getFunctionName=C;function m(lr){return"{ name: ".concat(e.unescapeLeadingUnderscores(lr.escapedName),"; flags: ").concat(Ce(lr.flags),"; declarations: ").concat(e.map(lr.declarations,function(Cr){return F(Cr.kind)})," }")}f.formatSymbol=m;function u(lr,Cr,Or){lr===void 0&&(lr=0);var Ke=g(Cr);if(lr===0)return Ke.length>0&&Ke[0][0]===0?Ke[0][1]:"0";if(Or){for(var Pe="",Hr=lr,ur=0,vr=Ke;ur<vr.length;ur++){var de=vr[ur],Fe=de[0],$e=de[1];if(Fe>lr)break;Fe!==0&&Fe&lr&&(Pe="".concat(Pe).concat(Pe?"|":"").concat($e),Hr&=~Fe)}if(Hr===0)return Pe}else for(var Dr=0,Fr=Ke;Dr<Fr.length;Dr++){var He=Fr[Dr],Fe=He[0],$e=He[1];if(Fe===lr)return $e}return lr.toString()}f.formatEnum=u;function g(lr){var Cr=[];for(var Or in lr){var Ke=lr[Or];typeof Ke=="number"&&Cr.push([Ke,Or])}return e.stableSort(Cr,function(Pe,Hr){return e.compareValues(Pe[0],Hr[0])})}function F(lr){return u(lr,e.SyntaxKind,!1)}f.formatSyntaxKind=F;function te(lr){return u(lr,e.SnippetKind,!1)}f.formatSnippetKind=te;function ue(lr){return u(lr,e.NodeFlags,!0)}f.formatNodeFlags=ue;function X(lr){return u(lr,e.ModifierFlags,!0)}f.formatModifierFlags=X;function j(lr){return u(lr,e.TransformFlags,!0)}f.formatTransformFlags=j;function Se(lr){return u(lr,e.EmitFlags,!0)}f.formatEmitFlags=Se;function Ce(lr){return u(lr,e.SymbolFlags,!0)}f.formatSymbolFlags=Ce;function O(lr){return u(lr,e.TypeFlags,!0)}f.formatTypeFlags=O;function Q(lr){return u(lr,e.SignatureFlags,!0)}f.formatSignatureFlags=Q;function V(lr){return u(lr,e.ObjectFlags,!0)}f.formatObjectFlags=V;function z(lr){return u(lr,e.FlowFlags,!0)}f.formatFlowFlags=z;var Te=!1,ge;function ke(){if(qe(),!ge)throw new Error("Debugging helpers could not be loaded.");return ge}function Me(lr){return console.log(Ie(lr))}f.printControlFlowGraph=Me;function Ie(lr){return ke().formatControlFlowGraph(lr)}f.formatControlFlowGraph=Ie;var Ge;function he(lr){"__debugFlowFlags"in lr||Object.defineProperties(lr,{__tsDebuggerDisplay:{value:function(){var Cr=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",Or=this.flags&~(2048-1);return"".concat(Cr).concat(Or?" (".concat(z(Or),")"):"")}},__debugFlowFlags:{get:function(){return u(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return Ie(this)}}})}function ve(lr){Te&&(typeof Object.setPrototypeOf=="function"?(Ge||(Ge=Object.create(Object.prototype),he(Ge)),Object.setPrototypeOf(lr,Ge)):he(lr))}f.attachFlowNodeDebugInfo=ve;var Ve;function _e(lr){"__tsDebuggerDisplay"in lr||Object.defineProperties(lr,{__tsDebuggerDisplay:{value:function(Cr){return Cr=String(Cr).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(Cr)}}})}function Le(lr){Te&&(typeof Object.setPrototypeOf=="function"?(Ve||(Ve=Object.create(Array.prototype),_e(Ve)),Object.setPrototypeOf(lr,Ve)):_e(lr))}f.attachNodeArrayDebugInfo=Le;function qe(){if(Te)return;var lr,Cr;function Or(){return lr===void 0&&typeof WeakMap=="function"&&(lr=new WeakMap),lr}function Ke(){return Cr===void 0&&typeof WeakMap=="function"&&(Cr=new WeakMap),Cr}Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var $e=this.flags&33554432?"TransientSymbol":"Symbol",Dr=this.flags&-33554433;return"".concat($e," '").concat(e.symbolName(this),"'").concat(Dr?" (".concat(Ce(Dr),")"):"")}},__debugFlags:{get:function(){return Ce(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var $e=this.flags&98304?"NullableType":this.flags&384?"LiteralType ".concat(JSON.stringify(this.value)):this.flags&2048?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?"IntrinsicType ".concat(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",Dr=this.flags&524288?this.objectFlags&-1344:0;return"".concat($e).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(Dr?" (".concat(V(Dr),")"):"")}},__debugFlags:{get:function(){return O(this.flags)}},__debugObjectFlags:{get:function(){return this.flags&524288?V(this.objectFlags):""}},__debugTypeToString:{value:function(){var $e=Or(),Dr=$e==null?void 0:$e.get(this);return Dr===void 0&&(Dr=this.checker.typeToString(this),$e==null||$e.set(this,Dr)),Dr}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return Q(this.flags)}},__debugSignatureToString:{value:function(){var $e;return($e=this.checker)===null||$e===void 0?void 0:$e.signatureToString(this)}}});for(var Pe=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()],Hr=0,ur=Pe;Hr<ur.length;Hr++){var vr=ur[Hr];vr.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(vr.prototype,{__tsDebuggerDisplay:{value:function(){var $e=e.isGeneratedIdentifier(this)?"GeneratedIdentifier":e.isIdentifier(this)?"Identifier '".concat(e.idText(this),"'"):e.isPrivateIdentifier(this)?"PrivateIdentifier '".concat(e.idText(this),"'"):e.isStringLiteral(this)?"StringLiteral ".concat(JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")):e.isNumericLiteral(this)?"NumericLiteral ".concat(this.text):e.isBigIntLiteral(this)?"BigIntLiteral ".concat(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":F(this.kind);return"".concat($e).concat(this.flags?" (".concat(ue(this.flags),")"):"")}},__debugKind:{get:function(){return F(this.kind)}},__debugNodeFlags:{get:function(){return ue(this.flags)}},__debugModifierFlags:{get:function(){return X(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return j(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return Se(e.getEmitFlags(this))}},__debugGetText:{value:function($e){if(e.nodeIsSynthesized(this))return"";var Dr=Ke(),Fr=Dr==null?void 0:Dr.get(this);if(Fr===void 0){var He=e.getParseTreeNode(this),pr=He&&e.getSourceFileOfNode(He);Fr=pr?e.getSourceTextOfNodeFromSourceFile(pr,He,$e):"",Dr==null||Dr.set(this,Fr)}return Fr}}})}try{if(e.sys&&e.sys.require){var de=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),Fe=void 0;Fe.error||(Fe.module.init(e),ge=Fe.module)}}catch{}Te=!0}f.enableDebugInfo=qe;function Xe(lr,Cr,Or,Ke,Pe){var Hr=Cr?"DeprecationError: ":"DeprecationWarning: ";return Hr+="'".concat(lr,"' "),Hr+=Ke?"has been deprecated since v".concat(Ke):"is deprecated",Hr+=Cr?" and can no longer be used.":Or?" and will no longer be usable after v".concat(Or,"."):".",Hr+=Pe?" ".concat(e.formatStringFromArgs(Pe,[lr],0)):"",Hr}function De(lr,Cr,Or,Ke){var Pe=Xe(lr,!0,Cr,Or,Ke);return function(){throw new TypeError(Pe)}}function Ae(lr,Cr,Or,Ke){var Pe=!1;return function(){Pe||(h.warn(Xe(lr,!1,Cr,Or,Ke)),Pe=!0)}}function Ye(lr,Cr){var Or,Ke;Cr===void 0&&(Cr={});var Pe=typeof Cr.typeScriptVersion=="string"?new e.Version(Cr.typeScriptVersion):(Or=Cr.typeScriptVersion)!==null&&Or!==void 0?Or:p(),Hr=typeof Cr.errorAfter=="string"?new e.Version(Cr.errorAfter):Cr.errorAfter,ur=typeof Cr.warnAfter=="string"?new e.Version(Cr.warnAfter):Cr.warnAfter,vr=typeof Cr.since=="string"?new e.Version(Cr.since):(Ke=Cr.since)!==null&&Ke!==void 0?Ke:ur,de=Cr.error||Hr&&Pe.compareTo(Hr)<=0,Fe=!ur||Pe.compareTo(ur)>=0;return de?De(lr,Hr,vr,Cr.message):Fe?Ae(lr,Hr,vr,Cr.message):e.noop}function Lr(lr,Cr){return function(){return lr(),Cr.apply(this,arguments)}}function Er(lr,Cr){var Or=Ye(C(lr),Cr);return Lr(Or,lr)}f.deprecate=Er}(e.Debug||(e.Debug={}))})(gr||(gr={}));var gr;(function(e){var n=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,f=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,d=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,a=/^(0|[1-9]\d*)$/,p=function(){function Y(U,$,T,I,y){if($===void 0&&($=0),T===void 0&&(T=0),I===void 0&&(I=""),y===void 0&&(y=""),typeof U=="string"){var D=e.Debug.checkDefined(N(U),"Invalid version");U=D.major,$=D.minor,T=D.patch,I=D.prerelease,y=D.build}e.Debug.assert(U>=0,"Invalid argument: major"),e.Debug.assert($>=0,"Invalid argument: minor"),e.Debug.assert(T>=0,"Invalid argument: patch"),e.Debug.assert(!I||f.test(I),"Invalid argument: prerelease"),e.Debug.assert(!y||d.test(y),"Invalid argument: build"),this.major=U,this.minor=$,this.patch=T,this.prerelease=I?I.split("."):e.emptyArray,this.build=y?y.split("."):e.emptyArray}return Y.tryParse=function(U){var $=N(U);if(!!$){var T=$.major,I=$.minor,y=$.patch,D=$.prerelease,C=$.build;return new Y(T,I,y,D,C)}},Y.prototype.compareTo=function(U){return this===U?0:U===void 0?1:e.compareValues(this.major,U.major)||e.compareValues(this.minor,U.minor)||e.compareValues(this.patch,U.patch)||H(this.prerelease,U.prerelease)},Y.prototype.increment=function(U){switch(U){case"major":return new Y(this.major+1,0,0);case"minor":return new Y(this.major,this.minor+1,0);case"patch":return new Y(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(U)}},Y.prototype.toString=function(){var U="".concat(this.major,".").concat(this.minor,".").concat(this.patch);return e.some(this.prerelease)&&(U+="-".concat(this.prerelease.join("."))),e.some(this.build)&&(U+="+".concat(this.build.join("."))),U},Y.zero=new Y(0,0,0),Y}();e.Version=p;function N(Y){var U=n.exec(Y);if(!!U){var $=U[1],T=U[2],I=T===void 0?"0":T,y=U[3],D=y===void 0?"0":y,C=U[4],m=C===void 0?"":C,u=U[5],g=u===void 0?"":u;if(!(m&&!f.test(m))&&!(g&&!d.test(g)))return{major:parseInt($,10),minor:parseInt(I,10),patch:parseInt(D,10),prerelease:m,build:g}}}function H(Y,U){if(Y===U)return 0;if(Y.length===0)return U.length===0?0:1;if(U.length===0)return-1;for(var $=Math.min(Y.length,U.length),T=0;T<$;T++){var I=Y[T],y=U[T];if(I!==y){var D=a.test(I),C=a.test(y);if(D||C){if(D!==C)return D?-1:1;var m=e.compareValues(+I,+y);if(m)return m}else{var m=e.compareStringsCaseSensitive(I,y);if(m)return m}}}return e.compareValues(Y.length,U.length)}var h=function(){function Y(U){this._alternatives=U?e.Debug.checkDefined(P(U),"Invalid range spec."):e.emptyArray}return Y.tryParse=function(U){var $=P(U);if($){var T=new Y("");return T._alternatives=$,T}},Y.prototype.test=function(U){return typeof U=="string"&&(U=new p(U)),x(U,this._alternatives)},Y.prototype.toString=function(){return Z(this._alternatives)},Y}();e.VersionRange=h;var v=/\|\|/g,A=/\s+/g,q=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,ie=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,b=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function P(Y){for(var U=[],$=0,T=e.trimString(Y).split(v);$<T.length;$++){var I=T[$];if(!!I){var y=[];I=e.trimString(I);var D=ie.exec(I);if(D){if(!B(D[1],D[2],y))return}else for(var C=0,m=I.split(A);C<m.length;C++){var u=m[C],g=b.exec(e.trimString(u));if(!g||!J(g[1],g[2],y))return}U.push(y)}}return U}function S(Y){var U=q.exec(Y);if(!!U){var $=U[1],T=U[2],I=T===void 0?"*":T,y=U[3],D=y===void 0?"*":y,C=U[4],m=U[5],u=new p(k($)?0:parseInt($,10),k($)||k(I)?0:parseInt(I,10),k($)||k(I)||k(D)?0:parseInt(D,10),C,m);return{version:u,major:$,minor:I,patch:D}}}function B(Y,U,$){var T=S(Y);if(!T)return!1;var I=S(U);return I?(k(T.major)||$.push(M(">=",T.version)),k(I.major)||$.push(k(I.minor)?M("<",I.version.increment("major")):k(I.patch)?M("<",I.version.increment("minor")):M("<=",I.version)),!0):!1}function J(Y,U,$){var T=S(U);if(!T)return!1;var I=T.version,y=T.major,D=T.minor,C=T.patch;if(k(y))(Y==="<"||Y===">")&&$.push(M("<",p.zero));else switch(Y){case"~":$.push(M(">=",I)),$.push(M("<",I.increment(k(D)?"major":"minor")));break;case"^":$.push(M(">=",I)),$.push(M("<",I.increment(I.major>0||k(D)?"major":I.minor>0||k(C)?"minor":"patch")));break;case"<":case">=":$.push(M(Y,I));break;case"<=":case">":$.push(k(D)?M(Y==="<="?"<":">=",I.increment("major")):k(C)?M(Y==="<="?"<":">=",I.increment("minor")):M(Y,I));break;case"=":case void 0:k(D)||k(C)?($.push(M(">=",I)),$.push(M("<",I.increment(k(D)?"major":"minor")))):$.push(M("=",I));break;default:return!1}return!0}function k(Y){return Y==="*"||Y==="x"||Y==="X"}function M(Y,U){return{operator:Y,operand:U}}function x(Y,U){if(U.length===0)return!0;for(var $=0,T=U;$<T.length;$++){var I=T[$];if(w(Y,I))return!0}return!1}function w(Y,U){for(var $=0,T=U;$<T.length;$++){var I=T[$];if(!K(Y,I.operator,I.operand))return!1}return!0}function K(Y,U,$){var T=Y.compareTo($);switch(U){case"<":return T<0;case"<=":return T<=0;case">":return T>0;case">=":return T>=0;case"=":return T===0;default:return e.Debug.assertNever(U)}}function Z(Y){return e.map(Y,ne).join(" || ")||"*"}function ne(Y){return e.map(Y,R).join(" ")}function R(Y){return"".concat(Y.operator).concat(Y.operand)}})(gr||(gr={}));var gr;(function(e){function n(H,h){return typeof H=="object"&&typeof H.timeOrigin=="number"&&typeof H.mark=="function"&&typeof H.measure=="function"&&typeof H.now=="function"&&typeof h=="function"}function f(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&n(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function d(){if(typeof process<"u"&&process.nextTick&&!process.browser&&typeof module=="object"&&!1)try{var H,h,v,A;if(n(v,A))var q,ie}catch(b){}}var a=f()||d(),p=a==null?void 0:a.performance;function N(){return a}e.tryGetNativePerformanceHooks=N,e.timestamp=p?function(){return p.now()}:Date.now?Date.now:function(){return+new Date}})(gr||(gr={}));var gr;(function(e){(function(n){var f,d;function a(M,x,w,K){return M?p(x,w,K):n.nullTimer}n.createTimerIf=a;function p(M,x,w){var K=0;return{enter:Z,exit:ne};function Z(){++K===1&&q(x)}function ne(){--K===0?(q(w),ie(M,x,w)):K<0&&e.Debug.fail("enter/exit count does not match.")}}n.createTimer=p,n.nullTimer={enter:e.noop,exit:e.noop};var N=!1,H=e.timestamp(),h=new e.Map,v=new e.Map,A=new e.Map;function q(M){var x;if(N){var w=(x=v.get(M))!==null&&x!==void 0?x:0;v.set(M,w+1),h.set(M,e.timestamp()),d==null||d.mark(M)}}n.mark=q;function ie(M,x,w){var K,Z;if(N){var ne=(K=w!==void 0?h.get(w):void 0)!==null&&K!==void 0?K:e.timestamp(),R=(Z=x!==void 0?h.get(x):void 0)!==null&&Z!==void 0?Z:H,Y=A.get(M)||0;A.set(M,Y+(ne-R)),d==null||d.measure(M,x,w)}}n.measure=ie;function b(M){return v.get(M)||0}n.getCount=b;function P(M){return A.get(M)||0}n.getDuration=P;function S(M){A.forEach(function(x,w){return M(w,x)})}n.forEachMeasure=S;function B(){return N}n.isEnabled=B;function J(M){var x;return M===void 0&&(M=e.sys),N||(N=!0,f||(f=e.tryGetNativePerformanceHooks()),f&&(H=f.performance.timeOrigin,(f.shouldWriteNativeEvents||((x=M==null?void 0:M.cpuProfilingEnabled)===null||x===void 0?void 0:x.call(M))||(M==null?void 0:M.debugMode))&&(d=f.performance))),!0}n.enable=J;function k(){N&&(h.clear(),v.clear(),A.clear(),d=void 0,N=!1)}n.disable=k})(e.performance||(e.performance={}))})(gr||(gr={}));var gr;(function(e){var n,f={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},d;try{var a=(n=process.env.TS_ETW_MODULE_PATH)!==null&&n!==void 0?n:"./node_modules/@microsoft/typescript-etw";d=void 0}catch{d=void 0}e.perfLogger=d&&d.logEvent?d:f})(gr||(gr={}));var gr;(function(e){var n;(function(f){var d,a=0,p=0,N,H=[],h,v=[];function A(ne,R,Y){if(e.Debug.assert(!e.tracing,"Tracing already started"),d===void 0)try{d=void 0}catch(y){throw new Error(`tracing requires having fs
|
|
(original error: `.concat(y.message||y,")"))}N=ne,H.length=0,h===void 0&&(h=e.combinePaths(R,"legend.json")),d.existsSync(R)||d.mkdirSync(R,{recursive:!0});var U=N==="build"?".".concat(process.pid,"-").concat(++a):N==="server"?".".concat(process.pid):"",$=e.combinePaths(R,"trace".concat(U,".json")),T=e.combinePaths(R,"types".concat(U,".json"));v.push({configFilePath:Y,tracePath:$,typesPath:T}),p=d.openSync($,"w"),e.tracing=f;var I={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};d.writeSync(p,`[
|
|
`+[Rn({name:"process_name",args:{name:"tsc"}},I),Rn({name:"thread_name",args:{name:"Main"}},I),Rn(Rn({name:"TracingStartedInBrowser"},I),{cat:"disabled-by-default-devtools.timeline"})].map(function(y){return JSON.stringify(y)}).join(`,
|
|
`))}f.startTracing=A;function q(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!H.length==(N!=="server")),d.writeSync(p,`
|
|
]
|
|
`),d.closeSync(p),e.tracing=void 0,H.length?K(H):v[v.length-1].typesPath=void 0}f.stopTracing=q;function ie(ne){N!=="server"&&H.push(ne)}f.recordType=ie,function(ne){ne.Parse="parse",ne.Program="program",ne.Bind="bind",ne.Check="check",ne.CheckTypes="checkTypes",ne.Emit="emit",ne.Session="session"}(f.Phase||(f.Phase={}));function b(ne,R,Y){x("I",ne,R,Y,'"s":"g"')}f.instant=b;var P=[];function S(ne,R,Y,U){U===void 0&&(U=!1),U&&x("B",ne,R,Y),P.push({phase:ne,name:R,args:Y,time:1e3*e.timestamp(),separateBeginAndEnd:U})}f.push=S;function B(){e.Debug.assert(P.length>0),M(P.length-1,1e3*e.timestamp()),P.length--}f.pop=B;function J(){for(var ne=1e3*e.timestamp(),R=P.length-1;R>=0;R--)M(R,ne);P.length=0}f.popAll=J;var k=1e3*10;function M(ne,R){var Y=P[ne],U=Y.phase,$=Y.name,T=Y.args,I=Y.time,y=Y.separateBeginAndEnd;y?x("E",U,$,T,void 0,R):k-I%k<=R-I&&x("X",U,$,T,'"dur":'.concat(R-I),I)}function x(ne,R,Y,U,$,T){T===void 0&&(T=1e3*e.timestamp()),!(N==="server"&&R==="checkTypes")&&(e.performance.mark("beginTracing"),d.writeSync(p,`,
|
|
{"pid":1,"tid":1,"ph":"`.concat(ne,'","cat":"').concat(R,'","ts":').concat(T,',"name":"').concat(Y,'"')),$&&d.writeSync(p,",".concat($)),U&&d.writeSync(p,',"args":'.concat(JSON.stringify(U))),d.writeSync(p,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function w(ne){var R=e.getSourceFileOfNode(ne);return R?{path:R.path,start:Y(e.getLineAndCharacterOfPosition(R,ne.pos)),end:Y(e.getLineAndCharacterOfPosition(R,ne.end))}:void 0;function Y(U){return{line:U.line+1,character:U.character+1}}}function K(ne){var R,Y,U,$,T,I,y,D,C,m,u,g,F,te,ue,X,j,Se,Ce,O,Q,V;e.performance.mark("beginDumpTypes");var z=v[v.length-1].typesPath,Te=d.openSync(z,"w"),ge=new e.Map;d.writeSync(Te,"[");for(var ke=ne.length,Me=0;Me<ke;Me++){var Ie=ne[Me],Ge=Ie.objectFlags,he=(R=Ie.aliasSymbol)!==null&&R!==void 0?R:Ie.symbol,ve=void 0;if(Ge&16|Ie.flags&2944)try{ve=(Y=Ie.checker)===null||Y===void 0?void 0:Y.typeToString(Ie)}catch{ve=void 0}var Ve={};if(Ie.flags&8388608){var _e=Ie;Ve={indexedAccessObjectType:(U=_e.objectType)===null||U===void 0?void 0:U.id,indexedAccessIndexType:($=_e.indexType)===null||$===void 0?void 0:$.id}}var Le={};if(Ge&4){var qe=Ie;Le={instantiatedType:(T=qe.target)===null||T===void 0?void 0:T.id,typeArguments:(I=qe.resolvedTypeArguments)===null||I===void 0?void 0:I.map(function(Hr){return Hr.id}),referenceLocation:w(qe.node)}}var Xe={};if(Ie.flags&16777216){var De=Ie;Xe={conditionalCheckType:(y=De.checkType)===null||y===void 0?void 0:y.id,conditionalExtendsType:(D=De.extendsType)===null||D===void 0?void 0:D.id,conditionalTrueType:(m=(C=De.resolvedTrueType)===null||C===void 0?void 0:C.id)!==null&&m!==void 0?m:-1,conditionalFalseType:(g=(u=De.resolvedFalseType)===null||u===void 0?void 0:u.id)!==null&&g!==void 0?g:-1}}var Ae={};if(Ie.flags&33554432){var Ye=Ie;Ae={substitutionBaseType:(F=Ye.baseType)===null||F===void 0?void 0:F.id,substituteType:(te=Ye.substitute)===null||te===void 0?void 0:te.id}}var Lr={};if(Ge&1024){var Er=Ie;Lr={reverseMappedSourceType:(ue=Er.source)===null||ue===void 0?void 0:ue.id,reverseMappedMappedType:(X=Er.mappedType)===null||X===void 0?void 0:X.id,reverseMappedConstraintType:(j=Er.constraintType)===null||j===void 0?void 0:j.id}}var lr={};if(Ge&256){var Cr=Ie;lr={evolvingArrayElementType:Cr.elementType.id,evolvingArrayFinalType:(Se=Cr.finalArrayType)===null||Se===void 0?void 0:Se.id}}var Or=void 0,Ke=Ie.checker.getRecursionIdentity(Ie);Ke&&(Or=ge.get(Ke),Or||(Or=ge.size,ge.set(Ke,Or)));var Pe=Rn(Rn(Rn(Rn(Rn(Rn(Rn({id:Ie.id,intrinsicName:Ie.intrinsicName,symbolName:(he==null?void 0:he.escapedName)&&e.unescapeLeadingUnderscores(he.escapedName),recursionId:Or,isTuple:Ge&8?!0:void 0,unionTypes:Ie.flags&1048576?(Ce=Ie.types)===null||Ce===void 0?void 0:Ce.map(function(Hr){return Hr.id}):void 0,intersectionTypes:Ie.flags&2097152?Ie.types.map(function(Hr){return Hr.id}):void 0,aliasTypeArguments:(O=Ie.aliasTypeArguments)===null||O===void 0?void 0:O.map(function(Hr){return Hr.id}),keyofType:Ie.flags&4194304?(Q=Ie.type)===null||Q===void 0?void 0:Q.id:void 0},Ve),Le),Xe),Ae),Lr),lr),{destructuringPattern:w(Ie.pattern),firstDeclaration:w((V=he==null?void 0:he.declarations)===null||V===void 0?void 0:V[0]),flags:e.Debug.formatTypeFlags(Ie.flags).split("|"),display:ve});d.writeSync(Te,JSON.stringify(Pe)),Me<ke-1&&d.writeSync(Te,`,
|
|
`)}d.writeSync(Te,`]
|
|
`),d.closeSync(Te),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}function Z(){!h||d.writeFileSync(h,JSON.stringify(v))}f.dumpLegend=Z})(n||(n={})),e.startTracing=n.startTracing,e.dumpTracingLegend=n.dumpLegend})(gr||(gr={}));var gr;(function(e){(function(a){a[a.Unknown=0]="Unknown",a[a.EndOfFileToken=1]="EndOfFileToken",a[a.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",a[a.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",a[a.NewLineTrivia=4]="NewLineTrivia",a[a.WhitespaceTrivia=5]="WhitespaceTrivia",a[a.ShebangTrivia=6]="ShebangTrivia",a[a.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",a[a.NumericLiteral=8]="NumericLiteral",a[a.BigIntLiteral=9]="BigIntLiteral",a[a.StringLiteral=10]="StringLiteral",a[a.JsxText=11]="JsxText",a[a.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",a[a.RegularExpressionLiteral=13]="RegularExpressionLiteral",a[a.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",a[a.TemplateHead=15]="TemplateHead",a[a.TemplateMiddle=16]="TemplateMiddle",a[a.TemplateTail=17]="TemplateTail",a[a.OpenBraceToken=18]="OpenBraceToken",a[a.CloseBraceToken=19]="CloseBraceToken",a[a.OpenParenToken=20]="OpenParenToken",a[a.CloseParenToken=21]="CloseParenToken",a[a.OpenBracketToken=22]="OpenBracketToken",a[a.CloseBracketToken=23]="CloseBracketToken",a[a.DotToken=24]="DotToken",a[a.DotDotDotToken=25]="DotDotDotToken",a[a.SemicolonToken=26]="SemicolonToken",a[a.CommaToken=27]="CommaToken",a[a.QuestionDotToken=28]="QuestionDotToken",a[a.LessThanToken=29]="LessThanToken",a[a.LessThanSlashToken=30]="LessThanSlashToken",a[a.GreaterThanToken=31]="GreaterThanToken",a[a.LessThanEqualsToken=32]="LessThanEqualsToken",a[a.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",a[a.EqualsEqualsToken=34]="EqualsEqualsToken",a[a.ExclamationEqualsToken=35]="ExclamationEqualsToken",a[a.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",a[a.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",a[a.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",a[a.PlusToken=39]="PlusToken",a[a.MinusToken=40]="MinusToken",a[a.AsteriskToken=41]="AsteriskToken",a[a.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",a[a.SlashToken=43]="SlashToken",a[a.PercentToken=44]="PercentToken",a[a.PlusPlusToken=45]="PlusPlusToken",a[a.MinusMinusToken=46]="MinusMinusToken",a[a.LessThanLessThanToken=47]="LessThanLessThanToken",a[a.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",a[a.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",a[a.AmpersandToken=50]="AmpersandToken",a[a.BarToken=51]="BarToken",a[a.CaretToken=52]="CaretToken",a[a.ExclamationToken=53]="ExclamationToken",a[a.TildeToken=54]="TildeToken",a[a.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",a[a.BarBarToken=56]="BarBarToken",a[a.QuestionToken=57]="QuestionToken",a[a.ColonToken=58]="ColonToken",a[a.AtToken=59]="AtToken",a[a.QuestionQuestionToken=60]="QuestionQuestionToken",a[a.BacktickToken=61]="BacktickToken",a[a.HashToken=62]="HashToken",a[a.EqualsToken=63]="EqualsToken",a[a.PlusEqualsToken=64]="PlusEqualsToken",a[a.MinusEqualsToken=65]="MinusEqualsToken",a[a.AsteriskEqualsToken=66]="AsteriskEqualsToken",a[a.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",a[a.SlashEqualsToken=68]="SlashEqualsToken",a[a.PercentEqualsToken=69]="PercentEqualsToken",a[a.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",a[a.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",a[a.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",a[a.AmpersandEqualsToken=73]="AmpersandEqualsToken",a[a.BarEqualsToken=74]="BarEqualsToken",a[a.BarBarEqualsToken=75]="BarBarEqualsToken",a[a.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",a[a.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",a[a.CaretEqualsToken=78]="CaretEqualsToken",a[a.Identifier=79]="Identifier",a[a.PrivateIdentifier=80]="PrivateIdentifier",a[a.BreakKeyword=81]="BreakKeyword",a[a.CaseKeyword=82]="CaseKeyword",a[a.CatchKeyword=83]="CatchKeyword",a[a.ClassKeyword=84]="ClassKeyword",a[a.ConstKeyword=85]="ConstKeyword",a[a.ContinueKeyword=86]="ContinueKeyword",a[a.DebuggerKeyword=87]="DebuggerKeyword",a[a.DefaultKeyword=88]="DefaultKeyword",a[a.DeleteKeyword=89]="DeleteKeyword",a[a.DoKeyword=90]="DoKeyword",a[a.ElseKeyword=91]="ElseKeyword",a[a.EnumKeyword=92]="EnumKeyword",a[a.ExportKeyword=93]="ExportKeyword",a[a.ExtendsKeyword=94]="ExtendsKeyword",a[a.FalseKeyword=95]="FalseKeyword",a[a.FinallyKeyword=96]="FinallyKeyword",a[a.ForKeyword=97]="ForKeyword",a[a.FunctionKeyword=98]="FunctionKeyword",a[a.IfKeyword=99]="IfKeyword",a[a.ImportKeyword=100]="ImportKeyword",a[a.InKeyword=101]="InKeyword",a[a.InstanceOfKeyword=102]="InstanceOfKeyword",a[a.NewKeyword=103]="NewKeyword",a[a.NullKeyword=104]="NullKeyword",a[a.ReturnKeyword=105]="ReturnKeyword",a[a.SuperKeyword=106]="SuperKeyword",a[a.SwitchKeyword=107]="SwitchKeyword",a[a.ThisKeyword=108]="ThisKeyword",a[a.ThrowKeyword=109]="ThrowKeyword",a[a.TrueKeyword=110]="TrueKeyword",a[a.TryKeyword=111]="TryKeyword",a[a.TypeOfKeyword=112]="TypeOfKeyword",a[a.VarKeyword=113]="VarKeyword",a[a.VoidKeyword=114]="VoidKeyword",a[a.WhileKeyword=115]="WhileKeyword",a[a.WithKeyword=116]="WithKeyword",a[a.ImplementsKeyword=117]="ImplementsKeyword",a[a.InterfaceKeyword=118]="InterfaceKeyword",a[a.LetKeyword=119]="LetKeyword",a[a.PackageKeyword=120]="PackageKeyword",a[a.PrivateKeyword=121]="PrivateKeyword",a[a.ProtectedKeyword=122]="ProtectedKeyword",a[a.PublicKeyword=123]="PublicKeyword",a[a.StaticKeyword=124]="StaticKeyword",a[a.YieldKeyword=125]="YieldKeyword",a[a.AbstractKeyword=126]="AbstractKeyword",a[a.AsKeyword=127]="AsKeyword",a[a.AssertsKeyword=128]="AssertsKeyword",a[a.AssertKeyword=129]="AssertKeyword",a[a.AnyKeyword=130]="AnyKeyword",a[a.AsyncKeyword=131]="AsyncKeyword",a[a.AwaitKeyword=132]="AwaitKeyword",a[a.BooleanKeyword=133]="BooleanKeyword",a[a.ConstructorKeyword=134]="ConstructorKeyword",a[a.DeclareKeyword=135]="DeclareKeyword",a[a.GetKeyword=136]="GetKeyword",a[a.InferKeyword=137]="InferKeyword",a[a.IntrinsicKeyword=138]="IntrinsicKeyword",a[a.IsKeyword=139]="IsKeyword",a[a.KeyOfKeyword=140]="KeyOfKeyword",a[a.ModuleKeyword=141]="ModuleKeyword",a[a.NamespaceKeyword=142]="NamespaceKeyword",a[a.NeverKeyword=143]="NeverKeyword",a[a.ReadonlyKeyword=144]="ReadonlyKeyword",a[a.RequireKeyword=145]="RequireKeyword",a[a.NumberKeyword=146]="NumberKeyword",a[a.ObjectKeyword=147]="ObjectKeyword",a[a.SetKeyword=148]="SetKeyword",a[a.StringKeyword=149]="StringKeyword",a[a.SymbolKeyword=150]="SymbolKeyword",a[a.TypeKeyword=151]="TypeKeyword",a[a.UndefinedKeyword=152]="UndefinedKeyword",a[a.UniqueKeyword=153]="UniqueKeyword",a[a.UnknownKeyword=154]="UnknownKeyword",a[a.FromKeyword=155]="FromKeyword",a[a.GlobalKeyword=156]="GlobalKeyword",a[a.BigIntKeyword=157]="BigIntKeyword",a[a.OverrideKeyword=158]="OverrideKeyword",a[a.OfKeyword=159]="OfKeyword",a[a.QualifiedName=160]="QualifiedName",a[a.ComputedPropertyName=161]="ComputedPropertyName",a[a.TypeParameter=162]="TypeParameter",a[a.Parameter=163]="Parameter",a[a.Decorator=164]="Decorator",a[a.PropertySignature=165]="PropertySignature",a[a.PropertyDeclaration=166]="PropertyDeclaration",a[a.MethodSignature=167]="MethodSignature",a[a.MethodDeclaration=168]="MethodDeclaration",a[a.ClassStaticBlockDeclaration=169]="ClassStaticBlockDeclaration",a[a.Constructor=170]="Constructor",a[a.GetAccessor=171]="GetAccessor",a[a.SetAccessor=172]="SetAccessor",a[a.CallSignature=173]="CallSignature",a[a.ConstructSignature=174]="ConstructSignature",a[a.IndexSignature=175]="IndexSignature",a[a.TypePredicate=176]="TypePredicate",a[a.TypeReference=177]="TypeReference",a[a.FunctionType=178]="FunctionType",a[a.ConstructorType=179]="ConstructorType",a[a.TypeQuery=180]="TypeQuery",a[a.TypeLiteral=181]="TypeLiteral",a[a.ArrayType=182]="ArrayType",a[a.TupleType=183]="TupleType",a[a.OptionalType=184]="OptionalType",a[a.RestType=185]="RestType",a[a.UnionType=186]="UnionType",a[a.IntersectionType=187]="IntersectionType",a[a.ConditionalType=188]="ConditionalType",a[a.InferType=189]="InferType",a[a.ParenthesizedType=190]="ParenthesizedType",a[a.ThisType=191]="ThisType",a[a.TypeOperator=192]="TypeOperator",a[a.IndexedAccessType=193]="IndexedAccessType",a[a.MappedType=194]="MappedType",a[a.LiteralType=195]="LiteralType",a[a.NamedTupleMember=196]="NamedTupleMember",a[a.TemplateLiteralType=197]="TemplateLiteralType",a[a.TemplateLiteralTypeSpan=198]="TemplateLiteralTypeSpan",a[a.ImportType=199]="ImportType",a[a.ObjectBindingPattern=200]="ObjectBindingPattern",a[a.ArrayBindingPattern=201]="ArrayBindingPattern",a[a.BindingElement=202]="BindingElement",a[a.ArrayLiteralExpression=203]="ArrayLiteralExpression",a[a.ObjectLiteralExpression=204]="ObjectLiteralExpression",a[a.PropertyAccessExpression=205]="PropertyAccessExpression",a[a.ElementAccessExpression=206]="ElementAccessExpression",a[a.CallExpression=207]="CallExpression",a[a.NewExpression=208]="NewExpression",a[a.TaggedTemplateExpression=209]="TaggedTemplateExpression",a[a.TypeAssertionExpression=210]="TypeAssertionExpression",a[a.ParenthesizedExpression=211]="ParenthesizedExpression",a[a.FunctionExpression=212]="FunctionExpression",a[a.ArrowFunction=213]="ArrowFunction",a[a.DeleteExpression=214]="DeleteExpression",a[a.TypeOfExpression=215]="TypeOfExpression",a[a.VoidExpression=216]="VoidExpression",a[a.AwaitExpression=217]="AwaitExpression",a[a.PrefixUnaryExpression=218]="PrefixUnaryExpression",a[a.PostfixUnaryExpression=219]="PostfixUnaryExpression",a[a.BinaryExpression=220]="BinaryExpression",a[a.ConditionalExpression=221]="ConditionalExpression",a[a.TemplateExpression=222]="TemplateExpression",a[a.YieldExpression=223]="YieldExpression",a[a.SpreadElement=224]="SpreadElement",a[a.ClassExpression=225]="ClassExpression",a[a.OmittedExpression=226]="OmittedExpression",a[a.ExpressionWithTypeArguments=227]="ExpressionWithTypeArguments",a[a.AsExpression=228]="AsExpression",a[a.NonNullExpression=229]="NonNullExpression",a[a.MetaProperty=230]="MetaProperty",a[a.SyntheticExpression=231]="SyntheticExpression",a[a.TemplateSpan=232]="TemplateSpan",a[a.SemicolonClassElement=233]="SemicolonClassElement",a[a.Block=234]="Block",a[a.EmptyStatement=235]="EmptyStatement",a[a.VariableStatement=236]="VariableStatement",a[a.ExpressionStatement=237]="ExpressionStatement",a[a.IfStatement=238]="IfStatement",a[a.DoStatement=239]="DoStatement",a[a.WhileStatement=240]="WhileStatement",a[a.ForStatement=241]="ForStatement",a[a.ForInStatement=242]="ForInStatement",a[a.ForOfStatement=243]="ForOfStatement",a[a.ContinueStatement=244]="ContinueStatement",a[a.BreakStatement=245]="BreakStatement",a[a.ReturnStatement=246]="ReturnStatement",a[a.WithStatement=247]="WithStatement",a[a.SwitchStatement=248]="SwitchStatement",a[a.LabeledStatement=249]="LabeledStatement",a[a.ThrowStatement=250]="ThrowStatement",a[a.TryStatement=251]="TryStatement",a[a.DebuggerStatement=252]="DebuggerStatement",a[a.VariableDeclaration=253]="VariableDeclaration",a[a.VariableDeclarationList=254]="VariableDeclarationList",a[a.FunctionDeclaration=255]="FunctionDeclaration",a[a.ClassDeclaration=256]="ClassDeclaration",a[a.InterfaceDeclaration=257]="InterfaceDeclaration",a[a.TypeAliasDeclaration=258]="TypeAliasDeclaration",a[a.EnumDeclaration=259]="EnumDeclaration",a[a.ModuleDeclaration=260]="ModuleDeclaration",a[a.ModuleBlock=261]="ModuleBlock",a[a.CaseBlock=262]="CaseBlock",a[a.NamespaceExportDeclaration=263]="NamespaceExportDeclaration",a[a.ImportEqualsDeclaration=264]="ImportEqualsDeclaration",a[a.ImportDeclaration=265]="ImportDeclaration",a[a.ImportClause=266]="ImportClause",a[a.NamespaceImport=267]="NamespaceImport",a[a.NamedImports=268]="NamedImports",a[a.ImportSpecifier=269]="ImportSpecifier",a[a.ExportAssignment=270]="ExportAssignment",a[a.ExportDeclaration=271]="ExportDeclaration",a[a.NamedExports=272]="NamedExports",a[a.NamespaceExport=273]="NamespaceExport",a[a.ExportSpecifier=274]="ExportSpecifier",a[a.MissingDeclaration=275]="MissingDeclaration",a[a.ExternalModuleReference=276]="ExternalModuleReference",a[a.JsxElement=277]="JsxElement",a[a.JsxSelfClosingElement=278]="JsxSelfClosingElement",a[a.JsxOpeningElement=279]="JsxOpeningElement",a[a.JsxClosingElement=280]="JsxClosingElement",a[a.JsxFragment=281]="JsxFragment",a[a.JsxOpeningFragment=282]="JsxOpeningFragment",a[a.JsxClosingFragment=283]="JsxClosingFragment",a[a.JsxAttribute=284]="JsxAttribute",a[a.JsxAttributes=285]="JsxAttributes",a[a.JsxSpreadAttribute=286]="JsxSpreadAttribute",a[a.JsxExpression=287]="JsxExpression",a[a.CaseClause=288]="CaseClause",a[a.DefaultClause=289]="DefaultClause",a[a.HeritageClause=290]="HeritageClause",a[a.CatchClause=291]="CatchClause",a[a.AssertClause=292]="AssertClause",a[a.AssertEntry=293]="AssertEntry",a[a.PropertyAssignment=294]="PropertyAssignment",a[a.ShorthandPropertyAssignment=295]="ShorthandPropertyAssignment",a[a.SpreadAssignment=296]="SpreadAssignment",a[a.EnumMember=297]="EnumMember",a[a.UnparsedPrologue=298]="UnparsedPrologue",a[a.UnparsedPrepend=299]="UnparsedPrepend",a[a.UnparsedText=300]="UnparsedText",a[a.UnparsedInternalText=301]="UnparsedInternalText",a[a.UnparsedSyntheticReference=302]="UnparsedSyntheticReference",a[a.SourceFile=303]="SourceFile",a[a.Bundle=304]="Bundle",a[a.UnparsedSource=305]="UnparsedSource",a[a.InputFiles=306]="InputFiles",a[a.JSDocTypeExpression=307]="JSDocTypeExpression",a[a.JSDocNameReference=308]="JSDocNameReference",a[a.JSDocMemberName=309]="JSDocMemberName",a[a.JSDocAllType=310]="JSDocAllType",a[a.JSDocUnknownType=311]="JSDocUnknownType",a[a.JSDocNullableType=312]="JSDocNullableType",a[a.JSDocNonNullableType=313]="JSDocNonNullableType",a[a.JSDocOptionalType=314]="JSDocOptionalType",a[a.JSDocFunctionType=315]="JSDocFunctionType",a[a.JSDocVariadicType=316]="JSDocVariadicType",a[a.JSDocNamepathType=317]="JSDocNamepathType",a[a.JSDocComment=318]="JSDocComment",a[a.JSDocText=319]="JSDocText",a[a.JSDocTypeLiteral=320]="JSDocTypeLiteral",a[a.JSDocSignature=321]="JSDocSignature",a[a.JSDocLink=322]="JSDocLink",a[a.JSDocLinkCode=323]="JSDocLinkCode",a[a.JSDocLinkPlain=324]="JSDocLinkPlain",a[a.JSDocTag=325]="JSDocTag",a[a.JSDocAugmentsTag=326]="JSDocAugmentsTag",a[a.JSDocImplementsTag=327]="JSDocImplementsTag",a[a.JSDocAuthorTag=328]="JSDocAuthorTag",a[a.JSDocDeprecatedTag=329]="JSDocDeprecatedTag",a[a.JSDocClassTag=330]="JSDocClassTag",a[a.JSDocPublicTag=331]="JSDocPublicTag",a[a.JSDocPrivateTag=332]="JSDocPrivateTag",a[a.JSDocProtectedTag=333]="JSDocProtectedTag",a[a.JSDocReadonlyTag=334]="JSDocReadonlyTag",a[a.JSDocOverrideTag=335]="JSDocOverrideTag",a[a.JSDocCallbackTag=336]="JSDocCallbackTag",a[a.JSDocEnumTag=337]="JSDocEnumTag",a[a.JSDocParameterTag=338]="JSDocParameterTag",a[a.JSDocReturnTag=339]="JSDocReturnTag",a[a.JSDocThisTag=340]="JSDocThisTag",a[a.JSDocTypeTag=341]="JSDocTypeTag",a[a.JSDocTemplateTag=342]="JSDocTemplateTag",a[a.JSDocTypedefTag=343]="JSDocTypedefTag",a[a.JSDocSeeTag=344]="JSDocSeeTag",a[a.JSDocPropertyTag=345]="JSDocPropertyTag",a[a.SyntaxList=346]="SyntaxList",a[a.NotEmittedStatement=347]="NotEmittedStatement",a[a.PartiallyEmittedExpression=348]="PartiallyEmittedExpression",a[a.CommaListExpression=349]="CommaListExpression",a[a.MergeDeclarationMarker=350]="MergeDeclarationMarker",a[a.EndOfDeclarationMarker=351]="EndOfDeclarationMarker",a[a.SyntheticReferenceExpression=352]="SyntheticReferenceExpression",a[a.Count=353]="Count",a[a.FirstAssignment=63]="FirstAssignment",a[a.LastAssignment=78]="LastAssignment",a[a.FirstCompoundAssignment=64]="FirstCompoundAssignment",a[a.LastCompoundAssignment=78]="LastCompoundAssignment",a[a.FirstReservedWord=81]="FirstReservedWord",a[a.LastReservedWord=116]="LastReservedWord",a[a.FirstKeyword=81]="FirstKeyword",a[a.LastKeyword=159]="LastKeyword",a[a.FirstFutureReservedWord=117]="FirstFutureReservedWord",a[a.LastFutureReservedWord=125]="LastFutureReservedWord",a[a.FirstTypeNode=176]="FirstTypeNode",a[a.LastTypeNode=199]="LastTypeNode",a[a.FirstPunctuation=18]="FirstPunctuation",a[a.LastPunctuation=78]="LastPunctuation",a[a.FirstToken=0]="FirstToken",a[a.LastToken=159]="LastToken",a[a.FirstTriviaToken=2]="FirstTriviaToken",a[a.LastTriviaToken=7]="LastTriviaToken",a[a.FirstLiteralToken=8]="FirstLiteralToken",a[a.LastLiteralToken=14]="LastLiteralToken",a[a.FirstTemplateToken=14]="FirstTemplateToken",a[a.LastTemplateToken=17]="LastTemplateToken",a[a.FirstBinaryOperator=29]="FirstBinaryOperator",a[a.LastBinaryOperator=78]="LastBinaryOperator",a[a.FirstStatement=236]="FirstStatement",a[a.LastStatement=252]="LastStatement",a[a.FirstNode=160]="FirstNode",a[a.FirstJSDocNode=307]="FirstJSDocNode",a[a.LastJSDocNode=345]="LastJSDocNode",a[a.FirstJSDocTagNode=325]="FirstJSDocTagNode",a[a.LastJSDocTagNode=345]="LastJSDocTagNode",a[a.FirstContextualKeyword=126]="FirstContextualKeyword",a[a.LastContextualKeyword=159]="LastContextualKeyword"})(e.SyntaxKind||(e.SyntaxKind={})),function(a){a[a.None=0]="None",a[a.Let=1]="Let",a[a.Const=2]="Const",a[a.NestedNamespace=4]="NestedNamespace",a[a.Synthesized=8]="Synthesized",a[a.Namespace=16]="Namespace",a[a.OptionalChain=32]="OptionalChain",a[a.ExportContext=64]="ExportContext",a[a.ContainsThis=128]="ContainsThis",a[a.HasImplicitReturn=256]="HasImplicitReturn",a[a.HasExplicitReturn=512]="HasExplicitReturn",a[a.GlobalAugmentation=1024]="GlobalAugmentation",a[a.HasAsyncFunctions=2048]="HasAsyncFunctions",a[a.DisallowInContext=4096]="DisallowInContext",a[a.YieldContext=8192]="YieldContext",a[a.DecoratorContext=16384]="DecoratorContext",a[a.AwaitContext=32768]="AwaitContext",a[a.ThisNodeHasError=65536]="ThisNodeHasError",a[a.JavaScriptFile=131072]="JavaScriptFile",a[a.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",a[a.HasAggregatedChildData=524288]="HasAggregatedChildData",a[a.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",a[a.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",a[a.JSDoc=4194304]="JSDoc",a[a.Ambient=8388608]="Ambient",a[a.InWithStatement=16777216]="InWithStatement",a[a.JsonFile=33554432]="JsonFile",a[a.TypeCached=67108864]="TypeCached",a[a.Deprecated=134217728]="Deprecated",a[a.BlockScoped=3]="BlockScoped",a[a.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",a[a.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",a[a.ContextFlags=25358336]="ContextFlags",a[a.TypeExcludesFlags=40960]="TypeExcludesFlags",a[a.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags"}(e.NodeFlags||(e.NodeFlags={})),function(a){a[a.None=0]="None",a[a.Export=1]="Export",a[a.Ambient=2]="Ambient",a[a.Public=4]="Public",a[a.Private=8]="Private",a[a.Protected=16]="Protected",a[a.Static=32]="Static",a[a.Readonly=64]="Readonly",a[a.Abstract=128]="Abstract",a[a.Async=256]="Async",a[a.Default=512]="Default",a[a.Const=2048]="Const",a[a.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",a[a.Deprecated=8192]="Deprecated",a[a.Override=16384]="Override",a[a.HasComputedFlags=536870912]="HasComputedFlags",a[a.AccessibilityModifier=28]="AccessibilityModifier",a[a.ParameterPropertyModifier=16476]="ParameterPropertyModifier",a[a.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",a[a.TypeScriptModifier=18654]="TypeScriptModifier",a[a.ExportDefault=513]="ExportDefault",a[a.All=27647]="All"}(e.ModifierFlags||(e.ModifierFlags={})),function(a){a[a.None=0]="None",a[a.IntrinsicNamedElement=1]="IntrinsicNamedElement",a[a.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",a[a.IntrinsicElement=3]="IntrinsicElement"}(e.JsxFlags||(e.JsxFlags={})),function(a){a[a.Succeeded=1]="Succeeded",a[a.Failed=2]="Failed",a[a.Reported=4]="Reported",a[a.ReportsUnmeasurable=8]="ReportsUnmeasurable",a[a.ReportsUnreliable=16]="ReportsUnreliable",a[a.ReportsMask=24]="ReportsMask"}(e.RelationComparisonResult||(e.RelationComparisonResult={})),function(a){a[a.None=0]="None",a[a.Auto=1]="Auto",a[a.Loop=2]="Loop",a[a.Unique=3]="Unique",a[a.Node=4]="Node",a[a.KindMask=7]="KindMask",a[a.ReservedInNestedScopes=8]="ReservedInNestedScopes",a[a.Optimistic=16]="Optimistic",a[a.FileLevel=32]="FileLevel",a[a.AllowNameSubstitution=64]="AllowNameSubstitution"}(e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={})),function(a){a[a.None=0]="None",a[a.PrecedingLineBreak=1]="PrecedingLineBreak",a[a.PrecedingJSDocComment=2]="PrecedingJSDocComment",a[a.Unterminated=4]="Unterminated",a[a.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",a[a.Scientific=16]="Scientific",a[a.Octal=32]="Octal",a[a.HexSpecifier=64]="HexSpecifier",a[a.BinarySpecifier=128]="BinarySpecifier",a[a.OctalSpecifier=256]="OctalSpecifier",a[a.ContainsSeparator=512]="ContainsSeparator",a[a.UnicodeEscape=1024]="UnicodeEscape",a[a.ContainsInvalidEscape=2048]="ContainsInvalidEscape",a[a.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",a[a.NumericLiteralFlags=1008]="NumericLiteralFlags",a[a.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags"}(e.TokenFlags||(e.TokenFlags={})),function(a){a[a.Unreachable=1]="Unreachable",a[a.Start=2]="Start",a[a.BranchLabel=4]="BranchLabel",a[a.LoopLabel=8]="LoopLabel",a[a.Assignment=16]="Assignment",a[a.TrueCondition=32]="TrueCondition",a[a.FalseCondition=64]="FalseCondition",a[a.SwitchClause=128]="SwitchClause",a[a.ArrayMutation=256]="ArrayMutation",a[a.Call=512]="Call",a[a.ReduceLabel=1024]="ReduceLabel",a[a.Referenced=2048]="Referenced",a[a.Shared=4096]="Shared",a[a.Label=12]="Label",a[a.Condition=96]="Condition"}(e.FlowFlags||(e.FlowFlags={})),function(a){a[a.ExpectError=0]="ExpectError",a[a.Ignore=1]="Ignore"}(e.CommentDirectiveType||(e.CommentDirectiveType={}));var n=function(){function a(){}return a}();e.OperationCanceledException=n,function(a){a[a.RootFile=0]="RootFile",a[a.SourceFromProjectReference=1]="SourceFromProjectReference",a[a.OutputFromProjectReference=2]="OutputFromProjectReference",a[a.Import=3]="Import",a[a.ReferenceFile=4]="ReferenceFile",a[a.TypeReferenceDirective=5]="TypeReferenceDirective",a[a.LibFile=6]="LibFile",a[a.LibReferenceDirective=7]="LibReferenceDirective",a[a.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile"}(e.FileIncludeKind||(e.FileIncludeKind={})),function(a){a[a.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",a[a.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic"}(e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={})),function(a){a[a.Not=0]="Not",a[a.SafeModules=1]="SafeModules",a[a.Completely=2]="Completely"}(e.StructureIsReused||(e.StructureIsReused={})),function(a){a[a.Success=0]="Success",a[a.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",a[a.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",a[a.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",a[a.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",a[a.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped"}(e.ExitStatus||(e.ExitStatus={})),function(a){a[a.Ok=0]="Ok",a[a.NeedsOverride=1]="NeedsOverride",a[a.HasInvalidOverride=2]="HasInvalidOverride"}(e.MemberOverrideStatus||(e.MemberOverrideStatus={})),function(a){a[a.None=0]="None",a[a.Literal=1]="Literal",a[a.Subtype=2]="Subtype"}(e.UnionReduction||(e.UnionReduction={})),function(a){a[a.None=0]="None",a[a.Signature=1]="Signature",a[a.NoConstraints=2]="NoConstraints",a[a.Completions=4]="Completions",a[a.SkipBindingPatterns=8]="SkipBindingPatterns"}(e.ContextFlags||(e.ContextFlags={})),function(a){a[a.None=0]="None",a[a.NoTruncation=1]="NoTruncation",a[a.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",a[a.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",a[a.UseStructuralFallback=8]="UseStructuralFallback",a[a.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",a[a.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",a[a.UseFullyQualifiedType=64]="UseFullyQualifiedType",a[a.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",a[a.SuppressAnyReturnType=256]="SuppressAnyReturnType",a[a.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",a[a.MultilineObjectLiterals=1024]="MultilineObjectLiterals",a[a.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",a[a.UseTypeOfFunction=4096]="UseTypeOfFunction",a[a.OmitParameterModifiers=8192]="OmitParameterModifiers",a[a.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",a[a.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",a[a.NoTypeReduction=536870912]="NoTypeReduction",a[a.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",a[a.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",a[a.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",a[a.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",a[a.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",a[a.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",a[a.AllowEmptyTuple=524288]="AllowEmptyTuple",a[a.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",a[a.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",a[a.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",a[a.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",a[a.IgnoreErrors=70221824]="IgnoreErrors",a[a.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",a[a.InTypeAlias=8388608]="InTypeAlias",a[a.InInitialEntityName=16777216]="InInitialEntityName"}(e.NodeBuilderFlags||(e.NodeBuilderFlags={})),function(a){a[a.None=0]="None",a[a.NoTruncation=1]="NoTruncation",a[a.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",a[a.UseStructuralFallback=8]="UseStructuralFallback",a[a.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",a[a.UseFullyQualifiedType=64]="UseFullyQualifiedType",a[a.SuppressAnyReturnType=256]="SuppressAnyReturnType",a[a.MultilineObjectLiterals=1024]="MultilineObjectLiterals",a[a.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",a[a.UseTypeOfFunction=4096]="UseTypeOfFunction",a[a.OmitParameterModifiers=8192]="OmitParameterModifiers",a[a.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",a[a.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",a[a.NoTypeReduction=536870912]="NoTypeReduction",a[a.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",a[a.AddUndefined=131072]="AddUndefined",a[a.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",a[a.InArrayType=524288]="InArrayType",a[a.InElementType=2097152]="InElementType",a[a.InFirstTypeArgument=4194304]="InFirstTypeArgument",a[a.InTypeAlias=8388608]="InTypeAlias",a[a.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",a[a.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask"}(e.TypeFormatFlags||(e.TypeFormatFlags={})),function(a){a[a.None=0]="None",a[a.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",a[a.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",a[a.AllowAnyNodeKind=4]="AllowAnyNodeKind",a[a.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",a[a.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain"}(e.SymbolFormatFlags||(e.SymbolFormatFlags={})),function(a){a[a.Accessible=0]="Accessible",a[a.NotAccessible=1]="NotAccessible",a[a.CannotBeNamed=2]="CannotBeNamed"}(e.SymbolAccessibility||(e.SymbolAccessibility={})),function(a){a[a.UnionOrIntersection=0]="UnionOrIntersection",a[a.Spread=1]="Spread"}(e.SyntheticSymbolKind||(e.SyntheticSymbolKind={})),function(a){a[a.This=0]="This",a[a.Identifier=1]="Identifier",a[a.AssertsThis=2]="AssertsThis",a[a.AssertsIdentifier=3]="AssertsIdentifier"}(e.TypePredicateKind||(e.TypePredicateKind={})),function(a){a[a.Unknown=0]="Unknown",a[a.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",a[a.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",a[a.NumberLikeType=3]="NumberLikeType",a[a.BigIntLikeType=4]="BigIntLikeType",a[a.StringLikeType=5]="StringLikeType",a[a.BooleanType=6]="BooleanType",a[a.ArrayLikeType=7]="ArrayLikeType",a[a.ESSymbolType=8]="ESSymbolType",a[a.Promise=9]="Promise",a[a.TypeWithCallSignature=10]="TypeWithCallSignature",a[a.ObjectType=11]="ObjectType"}(e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={})),function(a){a[a.None=0]="None",a[a.FunctionScopedVariable=1]="FunctionScopedVariable",a[a.BlockScopedVariable=2]="BlockScopedVariable",a[a.Property=4]="Property",a[a.EnumMember=8]="EnumMember",a[a.Function=16]="Function",a[a.Class=32]="Class",a[a.Interface=64]="Interface",a[a.ConstEnum=128]="ConstEnum",a[a.RegularEnum=256]="RegularEnum",a[a.ValueModule=512]="ValueModule",a[a.NamespaceModule=1024]="NamespaceModule",a[a.TypeLiteral=2048]="TypeLiteral",a[a.ObjectLiteral=4096]="ObjectLiteral",a[a.Method=8192]="Method",a[a.Constructor=16384]="Constructor",a[a.GetAccessor=32768]="GetAccessor",a[a.SetAccessor=65536]="SetAccessor",a[a.Signature=131072]="Signature",a[a.TypeParameter=262144]="TypeParameter",a[a.TypeAlias=524288]="TypeAlias",a[a.ExportValue=1048576]="ExportValue",a[a.Alias=2097152]="Alias",a[a.Prototype=4194304]="Prototype",a[a.ExportStar=8388608]="ExportStar",a[a.Optional=16777216]="Optional",a[a.Transient=33554432]="Transient",a[a.Assignment=67108864]="Assignment",a[a.ModuleExports=134217728]="ModuleExports",a[a.All=67108863]="All",a[a.Enum=384]="Enum",a[a.Variable=3]="Variable",a[a.Value=111551]="Value",a[a.Type=788968]="Type",a[a.Namespace=1920]="Namespace",a[a.Module=1536]="Module",a[a.Accessor=98304]="Accessor",a[a.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",a[a.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",a[a.ParameterExcludes=111551]="ParameterExcludes",a[a.PropertyExcludes=0]="PropertyExcludes",a[a.EnumMemberExcludes=900095]="EnumMemberExcludes",a[a.FunctionExcludes=110991]="FunctionExcludes",a[a.ClassExcludes=899503]="ClassExcludes",a[a.InterfaceExcludes=788872]="InterfaceExcludes",a[a.RegularEnumExcludes=899327]="RegularEnumExcludes",a[a.ConstEnumExcludes=899967]="ConstEnumExcludes",a[a.ValueModuleExcludes=110735]="ValueModuleExcludes",a[a.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",a[a.MethodExcludes=103359]="MethodExcludes",a[a.GetAccessorExcludes=46015]="GetAccessorExcludes",a[a.SetAccessorExcludes=78783]="SetAccessorExcludes",a[a.TypeParameterExcludes=526824]="TypeParameterExcludes",a[a.TypeAliasExcludes=788968]="TypeAliasExcludes",a[a.AliasExcludes=2097152]="AliasExcludes",a[a.ModuleMember=2623475]="ModuleMember",a[a.ExportHasLocal=944]="ExportHasLocal",a[a.BlockScoped=418]="BlockScoped",a[a.PropertyOrAccessor=98308]="PropertyOrAccessor",a[a.ClassMember=106500]="ClassMember",a[a.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",a[a.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",a[a.Classifiable=2885600]="Classifiable",a[a.LateBindingContainer=6256]="LateBindingContainer"}(e.SymbolFlags||(e.SymbolFlags={})),function(a){a[a.Numeric=0]="Numeric",a[a.Literal=1]="Literal"}(e.EnumKind||(e.EnumKind={})),function(a){a[a.Instantiated=1]="Instantiated",a[a.SyntheticProperty=2]="SyntheticProperty",a[a.SyntheticMethod=4]="SyntheticMethod",a[a.Readonly=8]="Readonly",a[a.ReadPartial=16]="ReadPartial",a[a.WritePartial=32]="WritePartial",a[a.HasNonUniformType=64]="HasNonUniformType",a[a.HasLiteralType=128]="HasLiteralType",a[a.ContainsPublic=256]="ContainsPublic",a[a.ContainsProtected=512]="ContainsProtected",a[a.ContainsPrivate=1024]="ContainsPrivate",a[a.ContainsStatic=2048]="ContainsStatic",a[a.Late=4096]="Late",a[a.ReverseMapped=8192]="ReverseMapped",a[a.OptionalParameter=16384]="OptionalParameter",a[a.RestParameter=32768]="RestParameter",a[a.DeferredType=65536]="DeferredType",a[a.HasNeverType=131072]="HasNeverType",a[a.Mapped=262144]="Mapped",a[a.StripOptional=524288]="StripOptional",a[a.Unresolved=1048576]="Unresolved",a[a.Synthetic=6]="Synthetic",a[a.Discriminant=192]="Discriminant",a[a.Partial=48]="Partial"}(e.CheckFlags||(e.CheckFlags={})),function(a){a.Call="__call",a.Constructor="__constructor",a.New="__new",a.Index="__index",a.ExportStar="__export",a.Global="__global",a.Missing="__missing",a.Type="__type",a.Object="__object",a.JSXAttributes="__jsxAttributes",a.Class="__class",a.Function="__function",a.Computed="__computed",a.Resolving="__resolving__",a.ExportEquals="export=",a.Default="default",a.This="this"}(e.InternalSymbolName||(e.InternalSymbolName={})),function(a){a[a.TypeChecked=1]="TypeChecked",a[a.LexicalThis=2]="LexicalThis",a[a.CaptureThis=4]="CaptureThis",a[a.CaptureNewTarget=8]="CaptureNewTarget",a[a.SuperInstance=256]="SuperInstance",a[a.SuperStatic=512]="SuperStatic",a[a.ContextChecked=1024]="ContextChecked",a[a.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",a[a.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",a[a.CaptureArguments=8192]="CaptureArguments",a[a.EnumValuesComputed=16384]="EnumValuesComputed",a[a.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",a[a.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",a[a.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",a[a.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",a[a.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",a[a.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",a[a.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",a[a.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",a[a.AssignmentsMarked=8388608]="AssignmentsMarked",a[a.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",a[a.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",a[a.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",a[a.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer"}(e.NodeCheckFlags||(e.NodeCheckFlags={})),function(a){a[a.Any=1]="Any",a[a.Unknown=2]="Unknown",a[a.String=4]="String",a[a.Number=8]="Number",a[a.Boolean=16]="Boolean",a[a.Enum=32]="Enum",a[a.BigInt=64]="BigInt",a[a.StringLiteral=128]="StringLiteral",a[a.NumberLiteral=256]="NumberLiteral",a[a.BooleanLiteral=512]="BooleanLiteral",a[a.EnumLiteral=1024]="EnumLiteral",a[a.BigIntLiteral=2048]="BigIntLiteral",a[a.ESSymbol=4096]="ESSymbol",a[a.UniqueESSymbol=8192]="UniqueESSymbol",a[a.Void=16384]="Void",a[a.Undefined=32768]="Undefined",a[a.Null=65536]="Null",a[a.Never=131072]="Never",a[a.TypeParameter=262144]="TypeParameter",a[a.Object=524288]="Object",a[a.Union=1048576]="Union",a[a.Intersection=2097152]="Intersection",a[a.Index=4194304]="Index",a[a.IndexedAccess=8388608]="IndexedAccess",a[a.Conditional=16777216]="Conditional",a[a.Substitution=33554432]="Substitution",a[a.NonPrimitive=67108864]="NonPrimitive",a[a.TemplateLiteral=134217728]="TemplateLiteral",a[a.StringMapping=268435456]="StringMapping",a[a.AnyOrUnknown=3]="AnyOrUnknown",a[a.Nullable=98304]="Nullable",a[a.Literal=2944]="Literal",a[a.Unit=109440]="Unit",a[a.StringOrNumberLiteral=384]="StringOrNumberLiteral",a[a.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",a[a.DefinitelyFalsy=117632]="DefinitelyFalsy",a[a.PossiblyFalsy=117724]="PossiblyFalsy",a[a.Intrinsic=67359327]="Intrinsic",a[a.Primitive=131068]="Primitive",a[a.StringLike=402653316]="StringLike",a[a.NumberLike=296]="NumberLike",a[a.BigIntLike=2112]="BigIntLike",a[a.BooleanLike=528]="BooleanLike",a[a.EnumLike=1056]="EnumLike",a[a.ESSymbolLike=12288]="ESSymbolLike",a[a.VoidLike=49152]="VoidLike",a[a.DisjointDomains=469892092]="DisjointDomains",a[a.UnionOrIntersection=3145728]="UnionOrIntersection",a[a.StructuredType=3670016]="StructuredType",a[a.TypeVariable=8650752]="TypeVariable",a[a.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",a[a.InstantiablePrimitive=406847488]="InstantiablePrimitive",a[a.Instantiable=465829888]="Instantiable",a[a.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",a[a.ObjectFlagsType=3899393]="ObjectFlagsType",a[a.Simplifiable=25165824]="Simplifiable",a[a.Singleton=67358815]="Singleton",a[a.Narrowable=536624127]="Narrowable",a[a.IncludesMask=205258751]="IncludesMask",a[a.IncludesMissingType=262144]="IncludesMissingType",a[a.IncludesNonWideningType=4194304]="IncludesNonWideningType",a[a.IncludesWildcard=8388608]="IncludesWildcard",a[a.IncludesEmptyObject=16777216]="IncludesEmptyObject",a[a.IncludesInstantiable=33554432]="IncludesInstantiable",a[a.NotPrimitiveUnion=36323363]="NotPrimitiveUnion"}(e.TypeFlags||(e.TypeFlags={})),function(a){a[a.Class=1]="Class",a[a.Interface=2]="Interface",a[a.Reference=4]="Reference",a[a.Tuple=8]="Tuple",a[a.Anonymous=16]="Anonymous",a[a.Mapped=32]="Mapped",a[a.Instantiated=64]="Instantiated",a[a.ObjectLiteral=128]="ObjectLiteral",a[a.EvolvingArray=256]="EvolvingArray",a[a.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",a[a.ReverseMapped=1024]="ReverseMapped",a[a.JsxAttributes=2048]="JsxAttributes",a[a.MarkerType=4096]="MarkerType",a[a.JSLiteral=8192]="JSLiteral",a[a.FreshLiteral=16384]="FreshLiteral",a[a.ArrayLiteral=32768]="ArrayLiteral",a[a.PrimitiveUnion=65536]="PrimitiveUnion",a[a.ContainsWideningType=131072]="ContainsWideningType",a[a.ContainsObjectOrArrayLiteral=262144]="ContainsObjectOrArrayLiteral",a[a.NonInferrableType=524288]="NonInferrableType",a[a.CouldContainTypeVariablesComputed=1048576]="CouldContainTypeVariablesComputed",a[a.CouldContainTypeVariables=2097152]="CouldContainTypeVariables",a[a.ClassOrInterface=3]="ClassOrInterface",a[a.RequiresWidening=393216]="RequiresWidening",a[a.PropagatingFlags=917504]="PropagatingFlags",a[a.ObjectTypeKindMask=1343]="ObjectTypeKindMask",a[a.ContainsSpread=4194304]="ContainsSpread",a[a.ObjectRestType=8388608]="ObjectRestType",a[a.IsClassInstanceClone=16777216]="IsClassInstanceClone",a[a.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",a[a.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",a[a.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",a[a.IsGenericObjectType=8388608]="IsGenericObjectType",a[a.IsGenericIndexType=16777216]="IsGenericIndexType",a[a.IsGenericType=25165824]="IsGenericType",a[a.ContainsIntersections=33554432]="ContainsIntersections",a[a.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",a[a.IsNeverIntersection=67108864]="IsNeverIntersection"}(e.ObjectFlags||(e.ObjectFlags={})),function(a){a[a.Invariant=0]="Invariant",a[a.Covariant=1]="Covariant",a[a.Contravariant=2]="Contravariant",a[a.Bivariant=3]="Bivariant",a[a.Independent=4]="Independent",a[a.VarianceMask=7]="VarianceMask",a[a.Unmeasurable=8]="Unmeasurable",a[a.Unreliable=16]="Unreliable",a[a.AllowsStructuralFallback=24]="AllowsStructuralFallback"}(e.VarianceFlags||(e.VarianceFlags={})),function(a){a[a.Required=1]="Required",a[a.Optional=2]="Optional",a[a.Rest=4]="Rest",a[a.Variadic=8]="Variadic",a[a.Fixed=3]="Fixed",a[a.Variable=12]="Variable",a[a.NonRequired=14]="NonRequired",a[a.NonRest=11]="NonRest"}(e.ElementFlags||(e.ElementFlags={})),function(a){a[a.None=0]="None",a[a.IncludeUndefined=1]="IncludeUndefined",a[a.NoIndexSignatures=2]="NoIndexSignatures",a[a.Writing=4]="Writing",a[a.CacheSymbol=8]="CacheSymbol",a[a.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",a[a.ExpressionPosition=32]="ExpressionPosition",a[a.ReportDeprecated=64]="ReportDeprecated",a[a.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",a[a.Contextual=256]="Contextual",a[a.Persistent=1]="Persistent"}(e.AccessFlags||(e.AccessFlags={})),function(a){a[a.Component=0]="Component",a[a.Function=1]="Function",a[a.Mixed=2]="Mixed"}(e.JsxReferenceKind||(e.JsxReferenceKind={})),function(a){a[a.Call=0]="Call",a[a.Construct=1]="Construct"}(e.SignatureKind||(e.SignatureKind={})),function(a){a[a.None=0]="None",a[a.HasRestParameter=1]="HasRestParameter",a[a.HasLiteralTypes=2]="HasLiteralTypes",a[a.Abstract=4]="Abstract",a[a.IsInnerCallChain=8]="IsInnerCallChain",a[a.IsOuterCallChain=16]="IsOuterCallChain",a[a.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",a[a.PropagatingFlags=39]="PropagatingFlags",a[a.CallChainFlags=24]="CallChainFlags"}(e.SignatureFlags||(e.SignatureFlags={})),function(a){a[a.String=0]="String",a[a.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(a){a[a.Simple=0]="Simple",a[a.Array=1]="Array",a[a.Function=2]="Function",a[a.Composite=3]="Composite",a[a.Merged=4]="Merged"}(e.TypeMapKind||(e.TypeMapKind={})),function(a){a[a.NakedTypeVariable=1]="NakedTypeVariable",a[a.SpeculativeTuple=2]="SpeculativeTuple",a[a.SubstituteSource=4]="SubstituteSource",a[a.HomomorphicMappedType=8]="HomomorphicMappedType",a[a.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",a[a.MappedTypeConstraint=32]="MappedTypeConstraint",a[a.ContravariantConditional=64]="ContravariantConditional",a[a.ReturnType=128]="ReturnType",a[a.LiteralKeyof=256]="LiteralKeyof",a[a.NoConstraints=512]="NoConstraints",a[a.AlwaysStrict=1024]="AlwaysStrict",a[a.MaxValue=2048]="MaxValue",a[a.PriorityImpliesCombination=416]="PriorityImpliesCombination",a[a.Circularity=-1]="Circularity"}(e.InferencePriority||(e.InferencePriority={})),function(a){a[a.None=0]="None",a[a.NoDefault=1]="NoDefault",a[a.AnyDefault=2]="AnyDefault",a[a.SkippedGenericFunction=4]="SkippedGenericFunction"}(e.InferenceFlags||(e.InferenceFlags={})),function(a){a[a.False=0]="False",a[a.Unknown=1]="Unknown",a[a.Maybe=3]="Maybe",a[a.True=-1]="True"}(e.Ternary||(e.Ternary={})),function(a){a[a.None=0]="None",a[a.ExportsProperty=1]="ExportsProperty",a[a.ModuleExports=2]="ModuleExports",a[a.PrototypeProperty=3]="PrototypeProperty",a[a.ThisProperty=4]="ThisProperty",a[a.Property=5]="Property",a[a.Prototype=6]="Prototype",a[a.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",a[a.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",a[a.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"}(e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}));var f;(function(a){a[a.Warning=0]="Warning",a[a.Error=1]="Error",a[a.Suggestion=2]="Suggestion",a[a.Message=3]="Message"})(f=e.DiagnosticCategory||(e.DiagnosticCategory={}));function d(a,p){p===void 0&&(p=!0);var N=f[a.category];return p?N.toLowerCase():N}e.diagnosticCategoryName=d,function(a){a[a.Classic=1]="Classic",a[a.NodeJs=2]="NodeJs",a[a.Node12=3]="Node12",a[a.NodeNext=99]="NodeNext"}(e.ModuleResolutionKind||(e.ModuleResolutionKind={})),function(a){a[a.FixedPollingInterval=0]="FixedPollingInterval",a[a.PriorityPollingInterval=1]="PriorityPollingInterval",a[a.DynamicPriorityPolling=2]="DynamicPriorityPolling",a[a.FixedChunkSizePolling=3]="FixedChunkSizePolling",a[a.UseFsEvents=4]="UseFsEvents",a[a.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory"}(e.WatchFileKind||(e.WatchFileKind={})),function(a){a[a.UseFsEvents=0]="UseFsEvents",a[a.FixedPollingInterval=1]="FixedPollingInterval",a[a.DynamicPriorityPolling=2]="DynamicPriorityPolling",a[a.FixedChunkSizePolling=3]="FixedChunkSizePolling"}(e.WatchDirectoryKind||(e.WatchDirectoryKind={})),function(a){a[a.FixedInterval=0]="FixedInterval",a[a.PriorityInterval=1]="PriorityInterval",a[a.DynamicPriority=2]="DynamicPriority",a[a.FixedChunkSize=3]="FixedChunkSize"}(e.PollingWatchKind||(e.PollingWatchKind={})),function(a){a[a.None=0]="None",a[a.CommonJS=1]="CommonJS",a[a.AMD=2]="AMD",a[a.UMD=3]="UMD",a[a.System=4]="System",a[a.ES2015=5]="ES2015",a[a.ES2020=6]="ES2020",a[a.ES2022=7]="ES2022",a[a.ESNext=99]="ESNext",a[a.Node12=100]="Node12",a[a.NodeNext=199]="NodeNext"}(e.ModuleKind||(e.ModuleKind={})),function(a){a[a.None=0]="None",a[a.Preserve=1]="Preserve",a[a.React=2]="React",a[a.ReactNative=3]="ReactNative",a[a.ReactJSX=4]="ReactJSX",a[a.ReactJSXDev=5]="ReactJSXDev"}(e.JsxEmit||(e.JsxEmit={})),function(a){a[a.Remove=0]="Remove",a[a.Preserve=1]="Preserve",a[a.Error=2]="Error"}(e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={})),function(a){a[a.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",a[a.LineFeed=1]="LineFeed"}(e.NewLineKind||(e.NewLineKind={})),function(a){a[a.Unknown=0]="Unknown",a[a.JS=1]="JS",a[a.JSX=2]="JSX",a[a.TS=3]="TS",a[a.TSX=4]="TSX",a[a.External=5]="External",a[a.JSON=6]="JSON",a[a.Deferred=7]="Deferred"}(e.ScriptKind||(e.ScriptKind={})),function(a){a[a.ES3=0]="ES3",a[a.ES5=1]="ES5",a[a.ES2015=2]="ES2015",a[a.ES2016=3]="ES2016",a[a.ES2017=4]="ES2017",a[a.ES2018=5]="ES2018",a[a.ES2019=6]="ES2019",a[a.ES2020=7]="ES2020",a[a.ES2021=8]="ES2021",a[a.ESNext=99]="ESNext",a[a.JSON=100]="JSON",a[a.Latest=99]="Latest"}(e.ScriptTarget||(e.ScriptTarget={})),function(a){a[a.Standard=0]="Standard",a[a.JSX=1]="JSX"}(e.LanguageVariant||(e.LanguageVariant={})),function(a){a[a.None=0]="None",a[a.Recursive=1]="Recursive"}(e.WatchDirectoryFlags||(e.WatchDirectoryFlags={})),function(a){a[a.nullCharacter=0]="nullCharacter",a[a.maxAsciiCharacter=127]="maxAsciiCharacter",a[a.lineFeed=10]="lineFeed",a[a.carriageReturn=13]="carriageReturn",a[a.lineSeparator=8232]="lineSeparator",a[a.paragraphSeparator=8233]="paragraphSeparator",a[a.nextLine=133]="nextLine",a[a.space=32]="space",a[a.nonBreakingSpace=160]="nonBreakingSpace",a[a.enQuad=8192]="enQuad",a[a.emQuad=8193]="emQuad",a[a.enSpace=8194]="enSpace",a[a.emSpace=8195]="emSpace",a[a.threePerEmSpace=8196]="threePerEmSpace",a[a.fourPerEmSpace=8197]="fourPerEmSpace",a[a.sixPerEmSpace=8198]="sixPerEmSpace",a[a.figureSpace=8199]="figureSpace",a[a.punctuationSpace=8200]="punctuationSpace",a[a.thinSpace=8201]="thinSpace",a[a.hairSpace=8202]="hairSpace",a[a.zeroWidthSpace=8203]="zeroWidthSpace",a[a.narrowNoBreakSpace=8239]="narrowNoBreakSpace",a[a.ideographicSpace=12288]="ideographicSpace",a[a.mathematicalSpace=8287]="mathematicalSpace",a[a.ogham=5760]="ogham",a[a._=95]="_",a[a.$=36]="$",a[a._0=48]="_0",a[a._1=49]="_1",a[a._2=50]="_2",a[a._3=51]="_3",a[a._4=52]="_4",a[a._5=53]="_5",a[a._6=54]="_6",a[a._7=55]="_7",a[a._8=56]="_8",a[a._9=57]="_9",a[a.a=97]="a",a[a.b=98]="b",a[a.c=99]="c",a[a.d=100]="d",a[a.e=101]="e",a[a.f=102]="f",a[a.g=103]="g",a[a.h=104]="h",a[a.i=105]="i",a[a.j=106]="j",a[a.k=107]="k",a[a.l=108]="l",a[a.m=109]="m",a[a.n=110]="n",a[a.o=111]="o",a[a.p=112]="p",a[a.q=113]="q",a[a.r=114]="r",a[a.s=115]="s",a[a.t=116]="t",a[a.u=117]="u",a[a.v=118]="v",a[a.w=119]="w",a[a.x=120]="x",a[a.y=121]="y",a[a.z=122]="z",a[a.A=65]="A",a[a.B=66]="B",a[a.C=67]="C",a[a.D=68]="D",a[a.E=69]="E",a[a.F=70]="F",a[a.G=71]="G",a[a.H=72]="H",a[a.I=73]="I",a[a.J=74]="J",a[a.K=75]="K",a[a.L=76]="L",a[a.M=77]="M",a[a.N=78]="N",a[a.O=79]="O",a[a.P=80]="P",a[a.Q=81]="Q",a[a.R=82]="R",a[a.S=83]="S",a[a.T=84]="T",a[a.U=85]="U",a[a.V=86]="V",a[a.W=87]="W",a[a.X=88]="X",a[a.Y=89]="Y",a[a.Z=90]="Z",a[a.ampersand=38]="ampersand",a[a.asterisk=42]="asterisk",a[a.at=64]="at",a[a.backslash=92]="backslash",a[a.backtick=96]="backtick",a[a.bar=124]="bar",a[a.caret=94]="caret",a[a.closeBrace=125]="closeBrace",a[a.closeBracket=93]="closeBracket",a[a.closeParen=41]="closeParen",a[a.colon=58]="colon",a[a.comma=44]="comma",a[a.dot=46]="dot",a[a.doubleQuote=34]="doubleQuote",a[a.equals=61]="equals",a[a.exclamation=33]="exclamation",a[a.greaterThan=62]="greaterThan",a[a.hash=35]="hash",a[a.lessThan=60]="lessThan",a[a.minus=45]="minus",a[a.openBrace=123]="openBrace",a[a.openBracket=91]="openBracket",a[a.openParen=40]="openParen",a[a.percent=37]="percent",a[a.plus=43]="plus",a[a.question=63]="question",a[a.semicolon=59]="semicolon",a[a.singleQuote=39]="singleQuote",a[a.slash=47]="slash",a[a.tilde=126]="tilde",a[a.backspace=8]="backspace",a[a.formFeed=12]="formFeed",a[a.byteOrderMark=65279]="byteOrderMark",a[a.tab=9]="tab",a[a.verticalTab=11]="verticalTab"}(e.CharacterCodes||(e.CharacterCodes={})),function(a){a.Ts=".ts",a.Tsx=".tsx",a.Dts=".d.ts",a.Js=".js",a.Jsx=".jsx",a.Json=".json",a.TsBuildInfo=".tsbuildinfo",a.Mjs=".mjs",a.Mts=".mts",a.Dmts=".d.mts",a.Cjs=".cjs",a.Cts=".cts",a.Dcts=".d.cts"}(e.Extension||(e.Extension={})),function(a){a[a.None=0]="None",a[a.ContainsTypeScript=1]="ContainsTypeScript",a[a.ContainsJsx=2]="ContainsJsx",a[a.ContainsESNext=4]="ContainsESNext",a[a.ContainsES2021=8]="ContainsES2021",a[a.ContainsES2020=16]="ContainsES2020",a[a.ContainsES2019=32]="ContainsES2019",a[a.ContainsES2018=64]="ContainsES2018",a[a.ContainsES2017=128]="ContainsES2017",a[a.ContainsES2016=256]="ContainsES2016",a[a.ContainsES2015=512]="ContainsES2015",a[a.ContainsGenerator=1024]="ContainsGenerator",a[a.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",a[a.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",a[a.ContainsLexicalThis=8192]="ContainsLexicalThis",a[a.ContainsRestOrSpread=16384]="ContainsRestOrSpread",a[a.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",a[a.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",a[a.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",a[a.ContainsBindingPattern=262144]="ContainsBindingPattern",a[a.ContainsYield=524288]="ContainsYield",a[a.ContainsAwait=1048576]="ContainsAwait",a[a.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",a[a.ContainsDynamicImport=4194304]="ContainsDynamicImport",a[a.ContainsClassFields=8388608]="ContainsClassFields",a[a.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",a[a.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",a[a.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",a[a.HasComputedFlags=536870912]="HasComputedFlags",a[a.AssertTypeScript=1]="AssertTypeScript",a[a.AssertJsx=2]="AssertJsx",a[a.AssertESNext=4]="AssertESNext",a[a.AssertES2021=8]="AssertES2021",a[a.AssertES2020=16]="AssertES2020",a[a.AssertES2019=32]="AssertES2019",a[a.AssertES2018=64]="AssertES2018",a[a.AssertES2017=128]="AssertES2017",a[a.AssertES2016=256]="AssertES2016",a[a.AssertES2015=512]="AssertES2015",a[a.AssertGenerator=1024]="AssertGenerator",a[a.AssertDestructuringAssignment=2048]="AssertDestructuringAssignment",a[a.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",a[a.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",a[a.NodeExcludes=536870912]="NodeExcludes",a[a.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",a[a.FunctionExcludes=591310848]="FunctionExcludes",a[a.ConstructorExcludes=591306752]="ConstructorExcludes",a[a.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",a[a.PropertyExcludes=570433536]="PropertyExcludes",a[a.ClassExcludes=536940544]="ClassExcludes",a[a.ModuleExcludes=589443072]="ModuleExcludes",a[a.TypeExcludes=-2]="TypeExcludes",a[a.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",a[a.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",a[a.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",a[a.ParameterExcludes=536870912]="ParameterExcludes",a[a.CatchClauseExcludes=536903680]="CatchClauseExcludes",a[a.BindingPatternExcludes=536887296]="BindingPatternExcludes",a[a.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",a[a.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags"}(e.TransformFlags||(e.TransformFlags={})),function(a){a[a.TabStop=0]="TabStop",a[a.Placeholder=1]="Placeholder",a[a.Choice=2]="Choice",a[a.Variable=3]="Variable"}(e.SnippetKind||(e.SnippetKind={})),function(a){a[a.None=0]="None",a[a.SingleLine=1]="SingleLine",a[a.AdviseOnEmitNode=2]="AdviseOnEmitNode",a[a.NoSubstitution=4]="NoSubstitution",a[a.CapturesThis=8]="CapturesThis",a[a.NoLeadingSourceMap=16]="NoLeadingSourceMap",a[a.NoTrailingSourceMap=32]="NoTrailingSourceMap",a[a.NoSourceMap=48]="NoSourceMap",a[a.NoNestedSourceMaps=64]="NoNestedSourceMaps",a[a.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",a[a.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",a[a.NoTokenSourceMaps=384]="NoTokenSourceMaps",a[a.NoLeadingComments=512]="NoLeadingComments",a[a.NoTrailingComments=1024]="NoTrailingComments",a[a.NoComments=1536]="NoComments",a[a.NoNestedComments=2048]="NoNestedComments",a[a.HelperName=4096]="HelperName",a[a.ExportName=8192]="ExportName",a[a.LocalName=16384]="LocalName",a[a.InternalName=32768]="InternalName",a[a.Indented=65536]="Indented",a[a.NoIndentation=131072]="NoIndentation",a[a.AsyncFunctionBody=262144]="AsyncFunctionBody",a[a.ReuseTempVariableScope=524288]="ReuseTempVariableScope",a[a.CustomPrologue=1048576]="CustomPrologue",a[a.NoHoisting=2097152]="NoHoisting",a[a.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",a[a.Iterator=8388608]="Iterator",a[a.NoAsciiEscaping=16777216]="NoAsciiEscaping",a[a.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",a[a.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",a[a.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",a[a.Immutable=268435456]="Immutable",a[a.IndirectCall=536870912]="IndirectCall"}(e.EmitFlags||(e.EmitFlags={})),function(a){a[a.Extends=1]="Extends",a[a.Assign=2]="Assign",a[a.Rest=4]="Rest",a[a.Decorate=8]="Decorate",a[a.Metadata=16]="Metadata",a[a.Param=32]="Param",a[a.Awaiter=64]="Awaiter",a[a.Generator=128]="Generator",a[a.Values=256]="Values",a[a.Read=512]="Read",a[a.SpreadArray=1024]="SpreadArray",a[a.Await=2048]="Await",a[a.AsyncGenerator=4096]="AsyncGenerator",a[a.AsyncDelegator=8192]="AsyncDelegator",a[a.AsyncValues=16384]="AsyncValues",a[a.ExportStar=32768]="ExportStar",a[a.ImportStar=65536]="ImportStar",a[a.ImportDefault=131072]="ImportDefault",a[a.MakeTemplateObject=262144]="MakeTemplateObject",a[a.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",a[a.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",a[a.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",a[a.CreateBinding=4194304]="CreateBinding",a[a.FirstEmitHelper=1]="FirstEmitHelper",a[a.LastEmitHelper=4194304]="LastEmitHelper",a[a.ForOfIncludes=256]="ForOfIncludes",a[a.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",a[a.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",a[a.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",a[a.SpreadIncludes=1536]="SpreadIncludes"}(e.ExternalEmitHelpers||(e.ExternalEmitHelpers={})),function(a){a[a.SourceFile=0]="SourceFile",a[a.Expression=1]="Expression",a[a.IdentifierName=2]="IdentifierName",a[a.MappedTypeParameter=3]="MappedTypeParameter",a[a.Unspecified=4]="Unspecified",a[a.EmbeddedStatement=5]="EmbeddedStatement",a[a.JsxAttributeValue=6]="JsxAttributeValue"}(e.EmitHint||(e.EmitHint={})),function(a){a[a.Parentheses=1]="Parentheses",a[a.TypeAssertions=2]="TypeAssertions",a[a.NonNullAssertions=4]="NonNullAssertions",a[a.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",a[a.Assertions=6]="Assertions",a[a.All=15]="All",a[a.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion"}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),function(a){a[a.None=0]="None",a[a.InParameters=1]="InParameters",a[a.VariablesHoistedInParameters=2]="VariablesHoistedInParameters"}(e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={})),function(a){a.Prologue="prologue",a.EmitHelpers="emitHelpers",a.NoDefaultLib="no-default-lib",a.Reference="reference",a.Type="type",a.Lib="lib",a.Prepend="prepend",a.Text="text",a.Internal="internal"}(e.BundleFileSectionKind||(e.BundleFileSectionKind={})),function(a){a[a.None=0]="None",a[a.SingleLine=0]="SingleLine",a[a.MultiLine=1]="MultiLine",a[a.PreserveLines=2]="PreserveLines",a[a.LinesMask=3]="LinesMask",a[a.NotDelimited=0]="NotDelimited",a[a.BarDelimited=4]="BarDelimited",a[a.AmpersandDelimited=8]="AmpersandDelimited",a[a.CommaDelimited=16]="CommaDelimited",a[a.AsteriskDelimited=32]="AsteriskDelimited",a[a.DelimitersMask=60]="DelimitersMask",a[a.AllowTrailingComma=64]="AllowTrailingComma",a[a.Indented=128]="Indented",a[a.SpaceBetweenBraces=256]="SpaceBetweenBraces",a[a.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",a[a.Braces=1024]="Braces",a[a.Parenthesis=2048]="Parenthesis",a[a.AngleBrackets=4096]="AngleBrackets",a[a.SquareBrackets=8192]="SquareBrackets",a[a.BracketsMask=15360]="BracketsMask",a[a.OptionalIfUndefined=16384]="OptionalIfUndefined",a[a.OptionalIfEmpty=32768]="OptionalIfEmpty",a[a.Optional=49152]="Optional",a[a.PreferNewLine=65536]="PreferNewLine",a[a.NoTrailingNewLine=131072]="NoTrailingNewLine",a[a.NoInterveningComments=262144]="NoInterveningComments",a[a.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",a[a.SingleElement=1048576]="SingleElement",a[a.SpaceAfterList=2097152]="SpaceAfterList",a[a.Modifiers=262656]="Modifiers",a[a.HeritageClauses=512]="HeritageClauses",a[a.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",a[a.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",a[a.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",a[a.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",a[a.UnionTypeConstituents=516]="UnionTypeConstituents",a[a.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",a[a.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",a[a.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",a[a.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",a[a.ImportClauseEntries=526226]="ImportClauseEntries",a[a.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",a[a.CommaListElements=528]="CommaListElements",a[a.CallExpressionArguments=2576]="CallExpressionArguments",a[a.NewExpressionArguments=18960]="NewExpressionArguments",a[a.TemplateExpressionSpans=262144]="TemplateExpressionSpans",a[a.SingleLineBlockStatements=768]="SingleLineBlockStatements",a[a.MultiLineBlockStatements=129]="MultiLineBlockStatements",a[a.VariableDeclarationList=528]="VariableDeclarationList",a[a.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",a[a.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",a[a.ClassHeritageClauses=0]="ClassHeritageClauses",a[a.ClassMembers=129]="ClassMembers",a[a.InterfaceMembers=129]="InterfaceMembers",a[a.EnumMembers=145]="EnumMembers",a[a.CaseBlockClauses=129]="CaseBlockClauses",a[a.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",a[a.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",a[a.JsxElementAttributes=262656]="JsxElementAttributes",a[a.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",a[a.HeritageClauseTypes=528]="HeritageClauseTypes",a[a.SourceFileStatements=131073]="SourceFileStatements",a[a.Decorators=2146305]="Decorators",a[a.TypeArguments=53776]="TypeArguments",a[a.TypeParameters=53776]="TypeParameters",a[a.Parameters=2576]="Parameters",a[a.IndexSignatureParameters=8848]="IndexSignatureParameters",a[a.JSDocComment=33]="JSDocComment"}(e.ListFormat||(e.ListFormat={})),function(a){a[a.None=0]="None",a[a.TripleSlashXML=1]="TripleSlashXML",a[a.SingleLine=2]="SingleLine",a[a.MultiLine=4]="MultiLine",a[a.All=7]="All",a[a.Default=7]="Default"}(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}}})(gr||(gr={}));var gr;(function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var n="://",f=/\\/g;function d(ve){return ve===47||ve===92}e.isAnyDirectorySeparator=d;function a(ve){return B(ve)<0}e.isUrl=a;function p(ve){return B(ve)>0}e.isRootedDiskPath=p;function N(ve){var Ve=B(ve);return Ve>0&&Ve===ve.length}e.isDiskPathRoot=N;function H(ve){return B(ve)!==0}e.pathIsAbsolute=H;function h(ve){return/^\.\.?($|[\\/])/.test(ve)}e.pathIsRelative=h;function v(ve){return!H(ve)&&!h(ve)}e.pathIsBareSpecifier=v;function A(ve){return e.stringContains(M(ve),".")}e.hasExtension=A;function q(ve,Ve){return ve.length>Ve.length&&e.endsWith(ve,Ve)}e.fileExtensionIs=q;function ie(ve,Ve){for(var _e=0,Le=Ve;_e<Le.length;_e++){var qe=Le[_e];if(q(ve,qe))return!0}return!1}e.fileExtensionIsOneOf=ie;function b(ve){return ve.length>0&&d(ve.charCodeAt(ve.length-1))}e.hasTrailingDirectorySeparator=b;function P(ve){return ve>=97&&ve<=122||ve>=65&&ve<=90}function S(ve,Ve){var _e=ve.charCodeAt(Ve);if(_e===58)return Ve+1;if(_e===37&&ve.charCodeAt(Ve+1)===51){var Le=ve.charCodeAt(Ve+2);if(Le===97||Le===65)return Ve+3}return-1}function B(ve){if(!ve)return 0;var Ve=ve.charCodeAt(0);if(Ve===47||Ve===92){if(ve.charCodeAt(1)!==Ve)return 1;var _e=ve.indexOf(Ve===47?e.directorySeparator:e.altDirectorySeparator,2);return _e<0?ve.length:_e+1}if(P(Ve)&&ve.charCodeAt(1)===58){var Le=ve.charCodeAt(2);if(Le===47||Le===92)return 3;if(ve.length===2)return 2}var qe=ve.indexOf(n);if(qe!==-1){var Xe=qe+n.length,De=ve.indexOf(e.directorySeparator,Xe);if(De!==-1){var Ae=ve.slice(0,qe),Ye=ve.slice(Xe,De);if(Ae==="file"&&(Ye===""||Ye==="localhost")&&P(ve.charCodeAt(De+1))){var Lr=S(ve,De+2);if(Lr!==-1){if(ve.charCodeAt(Lr)===47)return~(Lr+1);if(Lr===ve.length)return~Lr}}return~(De+1)}return~ve.length}return 0}function J(ve){var Ve=B(ve);return Ve<0?~Ve:Ve}e.getRootLength=J;function k(ve){ve=Y(ve);var Ve=J(ve);return Ve===ve.length?ve:(ve=F(ve),ve.slice(0,Math.max(Ve,ve.lastIndexOf(e.directorySeparator))))}e.getDirectoryPath=k;function M(ve,Ve,_e){ve=Y(ve);var Le=J(ve);if(Le===ve.length)return"";ve=F(ve);var qe=ve.slice(Math.max(J(ve),ve.lastIndexOf(e.directorySeparator)+1)),Xe=Ve!==void 0&&_e!==void 0?K(qe,Ve,_e):void 0;return Xe?qe.slice(0,qe.length-Xe.length):qe}e.getBaseFileName=M;function x(ve,Ve,_e){if(e.startsWith(Ve,".")||(Ve="."+Ve),ve.length>=Ve.length&&ve.charCodeAt(ve.length-Ve.length)===46){var Le=ve.slice(ve.length-Ve.length);if(_e(Le,Ve))return Le}}function w(ve,Ve,_e){if(typeof Ve=="string")return x(ve,Ve,_e)||"";for(var Le=0,qe=Ve;Le<qe.length;Le++){var Xe=qe[Le],De=x(ve,Xe,_e);if(De)return De}return""}function K(ve,Ve,_e){if(Ve)return w(F(ve),Ve,_e?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var Le=M(ve),qe=Le.lastIndexOf(".");return qe>=0?Le.substring(qe):""}e.getAnyExtensionFromPath=K;function Z(ve,Ve){var _e=ve.substring(0,Ve),Le=ve.substring(Ve).split(e.directorySeparator);return Le.length&&!e.lastOrUndefined(Le)&&Le.pop(),Gt([_e],Le,!0)}function ne(ve,Ve){return Ve===void 0&&(Ve=""),ve=$(Ve,ve),Z(ve,J(ve))}e.getPathComponents=ne;function R(ve){if(ve.length===0)return"";var Ve=ve[0]&&te(ve[0]);return Ve+ve.slice(1).join(e.directorySeparator)}e.getPathFromPathComponents=R;function Y(ve){var Ve=ve.indexOf("\\");return Ve===-1?ve:(f.lastIndex=Ve,ve.replace(f,e.directorySeparator))}e.normalizeSlashes=Y;function U(ve){if(!e.some(ve))return[];for(var Ve=[ve[0]],_e=1;_e<ve.length;_e++){var Le=ve[_e];if(!!Le&&Le!=="."){if(Le===".."){if(Ve.length>1){if(Ve[Ve.length-1]!==".."){Ve.pop();continue}}else if(Ve[0])continue}Ve.push(Le)}}return Ve}e.reducePathComponents=U;function $(ve){for(var Ve=[],_e=1;_e<arguments.length;_e++)Ve[_e-1]=arguments[_e];ve&&(ve=Y(ve));for(var Le=0,qe=Ve;Le<qe.length;Le++){var Xe=qe[Le];!Xe||(Xe=Y(Xe),!ve||J(Xe)!==0?ve=Xe:ve=te(ve)+Xe)}return ve}e.combinePaths=$;function T(ve){for(var Ve=[],_e=1;_e<arguments.length;_e++)Ve[_e-1]=arguments[_e];return D(e.some(Ve)?$.apply(void 0,Gt([ve],Ve,!1)):Y(ve))}e.resolvePath=T;function I(ve,Ve){return U(ne(ve,Ve))}e.getNormalizedPathComponents=I;function y(ve,Ve){return R(I(ve,Ve))}e.getNormalizedAbsolutePath=y;function D(ve){if(ve=Y(ve),!j.test(ve))return ve;var Ve=ve.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(Ve!==ve&&(ve=Ve,!j.test(ve)))return ve;var _e=R(U(ne(ve)));return _e&&b(ve)?te(_e):_e}e.normalizePath=D;function C(ve){return ve.length===0?"":ve.slice(1).join(e.directorySeparator)}function m(ve,Ve){return C(I(ve,Ve))}e.getNormalizedAbsolutePathWithoutRoot=m;function u(ve,Ve,_e){var Le=p(ve)?D(ve):y(ve,Ve);return _e(Le)}e.toPath=u;function g(ve){ve=Y(ve);var Ve=U(ne(ve)),_e=Ve[0],Le=Ve.slice(1);if(Le.length){var qe=_e+Le.join(e.directorySeparator);return{path:b(ve)?te(qe):qe,parts:Le}}else return{path:_e,parts:Le}}e.normalizePathAndParts=g;function F(ve){return b(ve)?ve.substr(0,ve.length-1):ve}e.removeTrailingDirectorySeparator=F;function te(ve){return b(ve)?ve:ve+e.directorySeparator}e.ensureTrailingDirectorySeparator=te;function ue(ve){return!H(ve)&&!h(ve)?"./"+ve:ve}e.ensurePathIsNonModuleName=ue;function X(ve,Ve,_e,Le){var qe=_e!==void 0&&Le!==void 0?K(ve,_e,Le):K(ve);return qe?ve.slice(0,ve.length-qe.length)+(e.startsWith(Ve,".")?Ve:"."+Ve):ve}e.changeAnyExtension=X;var j=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function Se(ve,Ve,_e){if(ve===Ve)return 0;if(ve===void 0)return-1;if(Ve===void 0)return 1;var Le=ve.substring(0,J(ve)),qe=Ve.substring(0,J(Ve)),Xe=e.compareStringsCaseInsensitive(Le,qe);if(Xe!==0)return Xe;var De=ve.substring(Le.length),Ae=Ve.substring(qe.length);if(!j.test(De)&&!j.test(Ae))return _e(De,Ae);for(var Ye=U(ne(ve)),Lr=U(ne(Ve)),Er=Math.min(Ye.length,Lr.length),lr=1;lr<Er;lr++){var Cr=_e(Ye[lr],Lr[lr]);if(Cr!==0)return Cr}return e.compareValues(Ye.length,Lr.length)}function Ce(ve,Ve){return Se(ve,Ve,e.compareStringsCaseSensitive)}e.comparePathsCaseSensitive=Ce;function O(ve,Ve){return Se(ve,Ve,e.compareStringsCaseInsensitive)}e.comparePathsCaseInsensitive=O;function Q(ve,Ve,_e,Le){return typeof _e=="string"?(ve=$(_e,ve),Ve=$(_e,Ve)):typeof _e=="boolean"&&(Le=_e),Se(ve,Ve,e.getStringComparer(Le))}e.comparePaths=Q;function V(ve,Ve,_e,Le){if(typeof _e=="string"?(ve=$(_e,ve),Ve=$(_e,Ve)):typeof _e=="boolean"&&(Le=_e),ve===void 0||Ve===void 0)return!1;if(ve===Ve)return!0;var qe=U(ne(ve)),Xe=U(ne(Ve));if(Xe.length<qe.length)return!1;for(var De=Le?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,Ae=0;Ae<qe.length;Ae++){var Ye=Ae===0?e.equateStringsCaseInsensitive:De;if(!Ye(qe[Ae],Xe[Ae]))return!1}return!0}e.containsPath=V;function z(ve,Ve,_e){var Le=_e(ve),qe=_e(Ve);return e.startsWith(Le,qe+"/")||e.startsWith(Le,qe+"\\")}e.startsWithDirectory=z;function Te(ve,Ve,_e,Le){var qe=U(ne(ve)),Xe=U(ne(Ve)),De;for(De=0;De<qe.length&&De<Xe.length;De++){var Ae=Le(qe[De]),Ye=Le(Xe[De]),Lr=De===0?e.equateStringsCaseInsensitive:_e;if(!Lr(Ae,Ye))break}if(De===0)return Xe;for(var Er=Xe.slice(De),lr=[];De<qe.length;De++)lr.push("..");return Gt(Gt([""],lr,!0),Er,!0)}e.getPathComponentsRelativeTo=Te;function ge(ve,Ve,_e){e.Debug.assert(J(ve)>0==J(Ve)>0,"Paths must either both be absolute or both be relative");var Le=typeof _e=="function"?_e:e.identity,qe=typeof _e=="boolean"?_e:!1,Xe=Te(ve,Ve,qe?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,Le);return R(Xe)}e.getRelativePathFromDirectory=ge;function ke(ve,Ve,_e){return p(ve)?Ie(Ve,ve,Ve,_e,!1):ve}e.convertToRelativePath=ke;function Me(ve,Ve,_e){return ue(ge(k(ve),Ve,_e))}e.getRelativePathFromFile=Me;function Ie(ve,Ve,_e,Le,qe){var Xe=Te(T(_e,ve),T(_e,Ve),e.equateStringsCaseSensitive,Le),De=Xe[0];if(qe&&p(De)){var Ae=De.charAt(0)===e.directorySeparator?"file://":"file:///";Xe[0]=Ae+De}return R(Xe)}e.getRelativePathToDirectoryOrUrl=Ie;function Ge(ve,Ve){for(;;){var _e=Ve(ve);if(_e!==void 0)return _e;var Le=k(ve);if(Le===ve)return;ve=Le}}e.forEachAncestorDirectory=Ge;function he(ve){return e.endsWith(ve,"/node_modules")}e.isNodeModulesDirectory=he})(gr||(gr={}));var gr;(function(e){function n(U){for(var $=5381,T=0;T<U.length;T++)$=($<<5)+$+U.charCodeAt(T);return $.toString()}e.generateDjb2Hash=n;function f(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}e.setStackTraceLimit=f;var d;(function(U){U[U.Created=0]="Created",U[U.Changed=1]="Changed",U[U.Deleted=2]="Deleted"})(d=e.FileWatcherEventKind||(e.FileWatcherEventKind={}));var a;(function(U){U[U.High=2e3]="High",U[U.Medium=500]="Medium",U[U.Low=250]="Low"})(a=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0);function p(U,$){return U.getModifiedTime($)||e.missingFileModifiedTime}e.getModifiedTime=p;function N(U){var $;return $={},$[a.Low]=U.Low,$[a.Medium]=U.Medium,$[a.High]=U.High,$}var H={Low:32,Medium:64,High:256},h=N(H);e.unchangedPollThresholds=N(H);function v(U){if(!U.getEnvironmentVariable)return;var $=y("TSC_WATCH_POLLINGINTERVAL",a);h=D("TSC_WATCH_POLLINGCHUNKSIZE",H)||h,e.unchangedPollThresholds=D("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",H)||e.unchangedPollThresholds;function T(C,m){return U.getEnvironmentVariable("".concat(C,"_").concat(m.toUpperCase()))}function I(C){var m;return u("Low"),u("Medium"),u("High"),m;function u(g){var F=T(C,g);F&&((m||(m={}))[g]=Number(F))}}function y(C,m){var u=I(C);if(u)return g("Low"),g("Medium"),g("High"),!0;return!1;function g(F){m[F]=u[F]||m[F]}}function D(C,m){var u=I(C);return($||u)&&N(u?Rn(Rn({},m),u):m)}}e.setCustomPollingValues=v;function A(U,$,T,I,y){for(var D=T,C=$.length;I&&C;g(),C--){var m=$[T];if(m){if(m.isClosed){$[T]=void 0;continue}}else continue;I--;var u=S(m,p(U,m.fileName));if(m.isClosed){$[T]=void 0;continue}y==null||y(m,T,u),$[T]&&(D<T&&($[D]=m,$[T]=void 0),D++)}return T;function g(){T++,T===$.length&&(D<T&&($.length=D),T=0,D=0)}}function q(U){var $=[],T=[],I=m(a.Low),y=m(a.Medium),D=m(a.High);return C;function C(Ce,O,Q){var V={fileName:Ce,callback:O,unchangedPolls:0,mtime:p(U,Ce)};return $.push(V),ue(V,Q),{close:function(){V.isClosed=!0,e.unorderedRemoveItem($,V)}}}function m(Ce){var O=[];return O.pollingInterval=Ce,O.pollIndex=0,O.pollScheduled=!1,O}function u(Ce){Ce.pollIndex=F(Ce,Ce.pollingInterval,Ce.pollIndex,h[Ce.pollingInterval]),Ce.length?Se(Ce.pollingInterval):(e.Debug.assert(Ce.pollIndex===0),Ce.pollScheduled=!1)}function g(Ce){F(T,a.Low,0,T.length),u(Ce),!Ce.pollScheduled&&T.length&&Se(a.Low)}function F(Ce,O,Q,V){return A(U,Ce,Q,V,z);function z(Te,ge,ke){ke?(Te.unchangedPolls=0,Ce!==T&&(Ce[ge]=void 0,X(Te))):Te.unchangedPolls!==e.unchangedPollThresholds[O]?Te.unchangedPolls++:Ce===T?(Te.unchangedPolls=1,Ce[ge]=void 0,ue(Te,a.Low)):O!==a.High&&(Te.unchangedPolls++,Ce[ge]=void 0,ue(Te,O===a.Low?a.Medium:a.High))}}function te(Ce){switch(Ce){case a.Low:return I;case a.Medium:return y;case a.High:return D}}function ue(Ce,O){te(O).push(Ce),j(O)}function X(Ce){T.push(Ce),j(a.Low)}function j(Ce){te(Ce).pollScheduled||Se(Ce)}function Se(Ce){te(Ce).pollScheduled=U.setTimeout(Ce===a.Low?g:u,Ce,te(Ce))}}e.createDynamicPriorityPollingWatchFile=q;function ie(U,$){var T=e.createMultiMap(),I=new e.Map,y=e.createGetCanonicalFileName($);return D;function D(m,u,g,F){var te=y(m);T.add(te,u);var ue=e.getDirectoryPath(te)||".",X=I.get(ue)||C(e.getDirectoryPath(m)||".",ue,F);return X.referenceCount++,{close:function(){X.referenceCount===1?(X.close(),I.delete(ue)):X.referenceCount--,T.remove(te,u)}}}function C(m,u,g){var F=U(m,1,function(te,ue){if(!!e.isString(ue)){var X=e.getNormalizedAbsolutePath(ue,m),j=X&&T.get(y(X));if(j)for(var Se=0,Ce=j;Se<Ce.length;Se++){var O=Ce[Se];O(X,d.Changed)}}},!1,a.Medium,g);return F.referenceCount=0,I.set(u,F),F}}function b(U){var $=[],T=0,I;return y;function y(m,u){var g={fileName:m,callback:u,mtime:p(U,m)};return $.push(g),C(),{close:function(){g.isClosed=!0,e.unorderedRemoveItem($,g)}}}function D(){I=void 0,T=A(U,$,T,h[a.Low]),C()}function C(){!$.length||I||(I=U.setTimeout(D,a.High))}}function P(U,$){var T=new e.Map,I=e.createMultiMap(),y=e.createGetCanonicalFileName($);return function(D,C,m,u){var g=y(D),F=T.get(g);return F?F.refCount++:T.set(g,{watcher:U(D,function(te,ue){return e.forEach(I.get(g),function(X){return X(te,ue)})},m,u),refCount:1}),I.add(g,C),{close:function(){var te=e.Debug.checkDefined(T.get(g));I.remove(g,C),te.refCount--,!te.refCount&&(T.delete(g),e.closeFileWatcherOf(te))}}}}e.createSingleFileWatcherPerName=P;function S(U,$){var T=U.mtime.getTime(),I=$.getTime();return T!==I?(U.mtime=$,U.callback(U.fileName,B(T,I)),!0):!1}e.onWatchedFileStat=S;function B(U,$){return U===0?d.Created:$===0?d.Deleted:d.Changed}e.getFileWatcherEventKind=B,e.ignoredPaths=["/node_modules/.","/.git","/.#"],e.sysLog=e.noop;function J(U){e.sysLog=U}e.setSysLog=J;function k(U){var $=U.watchDirectory,T=U.useCaseSensitiveFileNames,I=U.getCurrentDirectory,y=U.getAccessibleSortedChildDirectories,D=U.directoryExists,C=U.realpath,m=U.setTimeout,u=U.clearTimeout,g=new e.Map,F=e.createMultiMap(),te=new e.Map,ue,X=e.getStringComparer(!T),j=e.createGetCanonicalFileName(T);return function(Me,Ie,Ge,he){return Ge?Se(Me,he,Ie):$(Me,Ie,Ge,he)};function Se(Me,Ie,Ge){var he=j(Me),ve=g.get(he);ve?ve.refCount++:(ve={watcher:$(Me,function(_e){ge(_e,Ie)||(Ie!=null&&Ie.synchronousWatchDirectory?(Ce(he,_e),Te(Me,he,Ie)):O(Me,he,_e,Ie))},!1,Ie),refCount:1,childWatches:e.emptyArray},g.set(he,ve),Te(Me,he,Ie));var Ve=Ge&&{dirName:Me,callback:Ge};return Ve&&F.add(he,Ve),{dirName:Me,close:function(){var _e=e.Debug.checkDefined(g.get(he));Ve&&F.remove(he,Ve),_e.refCount--,!_e.refCount&&(g.delete(he),e.closeFileWatcherOf(_e),_e.childWatches.forEach(e.closeFileWatcher))}}}function Ce(Me,Ie,Ge){var he,ve;e.isString(Ie)?he=Ie:ve=Ie,F.forEach(function(Ve,_e){var Le;if(!(ve&&ve.get(_e)===!0)&&(_e===Me||e.startsWith(Me,_e)&&Me[_e.length]===e.directorySeparator))if(ve)if(Ge){var qe=ve.get(_e);qe?(Le=qe).push.apply(Le,Ge):ve.set(_e,Ge.slice())}else ve.set(_e,!0);else Ve.forEach(function(Xe){var De=Xe.callback;return De(he)})})}function O(Me,Ie,Ge,he){var ve=g.get(Ie);if(ve&&D(Me)){Q(Me,Ie,Ge,he);return}Ce(Ie,Ge),z(ve)}function Q(Me,Ie,Ge,he){var ve=te.get(Ie);ve?ve.fileNames.push(Ge):te.set(Ie,{dirName:Me,options:he,fileNames:[Ge]}),ue&&(u(ue),ue=void 0),ue=m(V,1e3)}function V(){ue=void 0,e.sysLog("sysLog:: onTimerToUpdateChildWatches:: ".concat(te.size));for(var Me=e.timestamp(),Ie=new e.Map;!ue&&te.size;){var Ge=te.entries().next();e.Debug.assert(!Ge.done);var he=Ge.value,ve=he[0],Ve=he[1],_e=Ve.dirName,Le=Ve.options,qe=Ve.fileNames;te.delete(ve);var Xe=Te(_e,ve,Le);Ce(ve,Ie,Xe?void 0:qe)}e.sysLog("sysLog:: invokingWatchers:: Elapsed:: ".concat(e.timestamp()-Me,"ms:: ").concat(te.size)),F.forEach(function(Ae,Ye){var Lr=Ie.get(Ye);Lr&&Ae.forEach(function(Er){var lr=Er.callback,Cr=Er.dirName;e.isArray(Lr)?Lr.forEach(lr):lr(Cr)})});var De=e.timestamp()-Me;e.sysLog("sysLog:: Elapsed:: ".concat(De,"ms:: onTimerToUpdateChildWatches:: ").concat(te.size," ").concat(ue))}function z(Me){if(!!Me){var Ie=Me.childWatches;Me.childWatches=e.emptyArray;for(var Ge=0,he=Ie;Ge<he.length;Ge++){var ve=he[Ge];ve.close(),z(g.get(j(ve.dirName)))}}}function Te(Me,Ie,Ge){var he=g.get(Ie);if(!he)return!1;var ve,Ve=e.enumerateInsertsAndDeletes(D(Me)?e.mapDefined(y(Me),function(qe){var Xe=e.getNormalizedAbsolutePath(qe,Me);return!ge(Xe,Ge)&&X(Xe,e.normalizePath(C(Xe)))===0?Xe:void 0}):e.emptyArray,he.childWatches,function(qe,Xe){return X(qe,Xe.dirName)},_e,e.closeFileWatcher,Le);return he.childWatches=ve||e.emptyArray,Ve;function _e(qe){var Xe=Se(qe,Ge);Le(Xe)}function Le(qe){(ve||(ve=[])).push(qe)}}function ge(Me,Ie){return e.some(e.ignoredPaths,function(Ge){return ke(Me,Ge)})||w(Me,Ie,T,I)}function ke(Me,Ie){return e.stringContains(Me,Ie)?!0:T?!1:e.stringContains(j(Me),Ie)}}e.createDirectoryWatcherSupportingRecursive=k,function(U){U[U.File=0]="File",U[U.Directory=1]="Directory"}(e.FileSystemEntryKind||(e.FileSystemEntryKind={}));function M(U){return function($,T){return U(T===d.Changed?"change":"rename","")}}e.createFileWatcherCallback=M;function x(U,$,T){return function(I){I==="rename"?$(U,T(U)?d.Created:d.Deleted):$(U,d.Changed)}}function w(U,$,T,I){return(($==null?void 0:$.excludeDirectories)||($==null?void 0:$.excludeFiles))&&(e.matchesExclude(U,$==null?void 0:$.excludeFiles,T,I())||e.matchesExclude(U,$==null?void 0:$.excludeDirectories,T,I()))}function K(U,$,T,I,y){return function(D,C){if(D==="rename"){var m=C?e.normalizePath(e.combinePaths(U,C)):U;(!C||!w(m,T,I,y))&&$(m)}}}function Z(U){var $=U.pollingWatchFile,T=U.getModifiedTime,I=U.setTimeout,y=U.clearTimeout,D=U.fsWatch,C=U.fileExists,m=U.useCaseSensitiveFileNames,u=U.getCurrentDirectory,g=U.fsSupportsRecursiveFsWatch,F=U.directoryExists,te=U.getAccessibleSortedChildDirectories,ue=U.realpath,X=U.tscWatchFile,j=U.useNonPollingWatchers,Se=U.tscWatchDirectory,Ce=U.defaultWatchFileKind,O,Q,V,z;return{watchFile:Te,watchDirectory:Ge};function Te(Ve,_e,Le,qe){qe=Me(qe,j);var Xe=e.Debug.checkDefined(qe.watchFile);switch(Xe){case e.WatchFileKind.FixedPollingInterval:return $(Ve,_e,a.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return $(Ve,_e,Le,void 0);case e.WatchFileKind.DynamicPriorityPolling:return ge()(Ve,_e,Le,void 0);case e.WatchFileKind.FixedChunkSizePolling:return ke()(Ve,_e,void 0,void 0);case e.WatchFileKind.UseFsEvents:return D(Ve,0,x(Ve,_e,C),!1,Le,e.getFallbackOptions(qe));case e.WatchFileKind.UseFsEventsOnParentDirectory:return V||(V=ie(D,m)),V(Ve,_e,Le,e.getFallbackOptions(qe));default:e.Debug.assertNever(Xe)}}function ge(){return O||(O=q({getModifiedTime:T,setTimeout:I}))}function ke(){return Q||(Q=b({getModifiedTime:T,setTimeout:I}))}function Me(Ve,_e){if(Ve&&Ve.watchFile!==void 0)return Ve;switch(X){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return Ie(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,Ve);case"UseFsEventsWithFallbackDynamicPolling":return Ie(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,Ve);case"UseFsEventsOnParentDirectory":_e=!0;default:return _e?Ie(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,Ve):{watchFile:(Ce==null?void 0:Ce())||e.WatchFileKind.FixedPollingInterval}}}function Ie(Ve,_e,Le){var qe=Le==null?void 0:Le.fallbackPolling;return{watchFile:Ve,fallbackPolling:qe===void 0?_e:qe}}function Ge(Ve,_e,Le,qe){return g?D(Ve,1,K(Ve,_e,qe,m,u),Le,a.Medium,e.getFallbackOptions(qe)):(z||(z=k({useCaseSensitiveFileNames:m,getCurrentDirectory:u,directoryExists:F,getAccessibleSortedChildDirectories:te,watchDirectory:he,realpath:ue,setTimeout:I,clearTimeout:y})),z(Ve,_e,Le,qe))}function he(Ve,_e,Le,qe){e.Debug.assert(!Le);var Xe=ve(qe),De=e.Debug.checkDefined(Xe.watchDirectory);switch(De){case e.WatchDirectoryKind.FixedPollingInterval:return $(Ve,function(){return _e(Ve)},a.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return ge()(Ve,function(){return _e(Ve)},a.Medium,void 0);case e.WatchDirectoryKind.FixedChunkSizePolling:return ke()(Ve,function(){return _e(Ve)},void 0,void 0);case e.WatchDirectoryKind.UseFsEvents:return D(Ve,1,K(Ve,_e,qe,m,u),Le,a.Medium,e.getFallbackOptions(Xe));default:e.Debug.assertNever(De)}}function ve(Ve){if(Ve&&Ve.watchDirectory!==void 0)return Ve;switch(Se){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var _e=Ve==null?void 0:Ve.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:_e!==void 0?_e:void 0}}}}e.createSystemWatchFunctions=Z;function ne(U){var $=U.writeFile;U.writeFile=function(T,I,y){return e.writeFileEnsuringDirectories(T,I,!!y,function(D,C,m){return $.call(U,D,C,m)},function(D){return U.createDirectory(D)},function(D){return U.directoryExists(D)})}}e.patchWriteFileEnsuringDirectory=ne;function R(){if(!(typeof process>"u")){var U=process.version;if(!!U){var $=U.indexOf(".");if($!==-1)return parseInt(U.substring(1,$))}}}e.getNodeMajorVersion=R,e.sys=void 0;function Y(U){e.sys=U}e.setSys=Y,e.sys&&e.sys.getEnvironmentVariable&&(v(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)})(gr||(gr={}));var gr;(function(e){function n(f,d,a,p,N,H,h){return{code:f,category:d,key:a,message:p,reportsUnnecessary:N,elidedInCompatabilityPyramid:H,reportsDeprecated:h}}e.Diagnostics={Unterminated_string_literal:n(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:n(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:n(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:n(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:n(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:n(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:n(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:n(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:n(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:n(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:n(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:n(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:n(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:n(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:n(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:n(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:n(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:n(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_here:n(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:n(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."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:n(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:n(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:n(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:n(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:n(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:n(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:n(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:n(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:n(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:n(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:n(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:n(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:n(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:n(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:n(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:n(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:n(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:n(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:n(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:n(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:n(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:n(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:n(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:n(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:n(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:n(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:n(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:n(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:n(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:n(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:n(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:n(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:n(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:n(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:n(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:n(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:n(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:n(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:n(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:n(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:n(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:n(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:n(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:n(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:n(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:n(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:n(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:n(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:n(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:n(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:n(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:n(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:n(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:n(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:n(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:n(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:n(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:n(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:n(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:n(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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_not_allowed_in_an_ambient_context:n(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:n(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:n(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:n(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:n(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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_es2022_esnext_commonjs_amd_system_umd_node12_or_nodenext:n(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node12', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext:n(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext'."),Argument_of_dynamic_import_cannot_be_spread_element:n(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:n(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments."),String_literal_with_double_quotes_expected:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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_es2022_esnext_system_node12_or_nodenext:n(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node12', or 'nodenext'."),A_label_is_not_allowed_here:n(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:n(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:n(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:n(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:n(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:n(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:n(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:n(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:n(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:n(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:n(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:n(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:n(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:n(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:n(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:n(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:n(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:n(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:n(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:n(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_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:n(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:n(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:n(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:n(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:n(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:n(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:n(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:n(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:n(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:n(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:n(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:n(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_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:n(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:n(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:n(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:n(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:n(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:n(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:n(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:n(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:n(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:n(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:n(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:n(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:n(1444,e.DiagnosticCategory.Error,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:n(1446,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled:n(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:n(1449,e.DiagnosticCategory.Message,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:n(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:n(1451,e.DiagnosticCategory.Error,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:n(1470,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead:n(1471,e.DiagnosticCategory.Error,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead."),The_types_of_0_are_incompatible_between_these_types:n(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:n(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:n(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:n(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:n(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:n(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),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:n(2206,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:n(2207,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),Duplicate_identifier_0:n(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:n(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:n(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:n(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:n(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:n(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:n(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:n(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:n(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:n(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:n(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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_a_private_identifier_or_of_type_any_string_number_or_symbol:n(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360","The left-hand side of an 'in' expression must be a private identifier or of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_not_be_a_primitive:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:n(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:n(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:n(2375,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:n(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:n(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:n(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:n(2379,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:n(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"),Overload_signatures_must_all_be_exported_or_non_exported:n(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:n(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:n(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:n(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:n(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:n(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:n(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:n(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:n(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:n(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:n(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:n(2412,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:n(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:n(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:n(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:n(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:n(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:n(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:n(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:n(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:n(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:n(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:n(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:n(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:n(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:n(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:n(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:n(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:n(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:n(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:n(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:n(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:n(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:n(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:n(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:n(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:n(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:n(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:n(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:n(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:n(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'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:n(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:n(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:n(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:n(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:n(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:n(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."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:n(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:n(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),Index_signature_in_type_0_only_permits_reading:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:n(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:n(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:n(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:n(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),Cannot_assign_to_0_because_it_is_a_constant:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:n(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:n(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:n(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."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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}'."),JSX_expressions_must_have_one_parent_element:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:n(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:n(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:n(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:n(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:n(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:n(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:n(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:n(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:n(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:n(2820,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext:n(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_2821","Import assertions are only supported when the '--module' option is set to 'esnext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:n(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:n(2833,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Consider_adding_an_extension_to_the_import_path:n(2834,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Did_you_mean_0:n(2835,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean '{0}'?"),Import_declaration_0_is_using_private_name_1:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:n(4119,e.DiagnosticCategory.Error,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:n(4120,e.DiagnosticCategory.Error,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:n(4121,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:n(4122,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:n(4123,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:n(4124,e.DiagnosticCategory.Error,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:n(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:n(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:n(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:n(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:n(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:n(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:n(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:n(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:n(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:n(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:n(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:n(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:n(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:n(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:n(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:n(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:n(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:n(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:n(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:n(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:n(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:n(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:n(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:n(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:n(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:n(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:n(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:n(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:n(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:n(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:n(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:n(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:n(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:n(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:n(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:n(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:n(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:n(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:n(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:n(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:n(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:n(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:n(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:n(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:n(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:n(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:n(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:n(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:n(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:n(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:n(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:n(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:n(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:n(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:n(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:n(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:n(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:n(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}'."),Unable_to_open_file_0:n(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:n(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:n(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:n(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:n(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:n(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:n(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:n(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:n(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:n(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:n(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:n(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:n(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:n(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:n(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:n(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:n(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:n(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:n(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:n(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:n(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:n(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:n(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:n(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:n(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:n(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:n(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:n(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:n(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:n(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}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:n(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:n(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:n(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:n(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:n(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:n(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:n(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:n(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:n(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:n(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:n(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:n(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:n(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:n(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:n(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:n(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:n(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:n(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:n(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:n(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:n(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:n(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:n(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:n(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:n(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:n(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:n(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:n(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:n(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:n(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:n(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:n(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:n(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:n(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:n(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:n(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:n(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:n(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:n(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:n(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:n(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:n(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:n(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:n(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:n(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:n(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:n(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:n(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:n(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:n(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:n(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:n(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:n(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:n(6258,e.DiagnosticCategory.Error,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:n(6270,e.DiagnosticCategory.Message,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:n(6271,e.DiagnosticCategory.Message,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:n(6272,e.DiagnosticCategory.Message,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:n(6273,e.DiagnosticCategory.Message,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:n(6274,e.DiagnosticCategory.Message,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:n(6275,e.DiagnosticCategory.Message,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:n(6276,e.DiagnosticCategory.Message,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Enable_project_compilation:n(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:n(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:n(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:n(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:n(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:n(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."),Only_output_d_ts_files_and_not_JavaScript_files:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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_location_where_debugger_should_locate_map_files_instead_of_generated_locations:n(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_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use `outFile` instead."),Specify_an_output_folder_for_all_emitted_files:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:n(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files"),Specify_the_root_folder_within_your_source_files:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:n(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging"),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:n(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:n(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:n(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:n(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:n(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:n(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:n(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:n(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:n(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:n(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:n(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:n(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:n(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:n(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:n(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:n(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:n(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:n(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:n(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:n(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:n(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:n(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:n(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:n(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:n(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:n(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:n(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:n(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:n(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:n(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:n(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:n(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:n(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:n(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:n(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:n(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:n(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),Variable_0_implicitly_has_an_1_type:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:n(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:n(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:n(7058,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:n(7059,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:n(7060,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:n(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),JSON_imports_are_experimental_in_ES_module_mode_imports:n(7062,e.DiagnosticCategory.Error,"JSON_imports_are_experimental_in_ES_module_mode_imports_7062","JSON imports are experimental in ES module mode imports."),You_cannot_rename_this_element:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:n(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:n(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:n(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:n(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:n(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:n(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:n(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_ES_module:n(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:n(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:n(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:n(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:n(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:n(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:n(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:n(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:n(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:n(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:n(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:n(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013",`Import '{0}' from module "{1}"`),Change_0_to_1:n(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:n(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015",`Add '{0}' to existing import declaration from "{1}"`),Declare_property_0:n(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:n(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:n(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:n(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:n(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:n(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:n(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:n(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:n(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:n(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:n(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:n(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:n(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:n(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:n(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:n(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:n(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:n(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:n(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:n(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:n(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:n(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:n(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:n(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:n(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:n(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:n(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Convert_function_to_an_ES2015_class:n(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:n(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:n(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:n(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:n(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:n(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:n(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:n(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:n(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:n(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:n(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:n(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:n(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:n(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:n(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:n(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:n(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:n(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:n(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:n(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:n(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:n(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:n(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:n(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:n(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:n(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:n(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:n(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:n(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:n(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:n(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:n(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:n(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:n(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:n(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:n(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:n(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:n(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:n(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:n(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:n(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:n(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:n(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:n(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:n(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:n(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:n(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:n(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:n(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:n(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:n(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:n(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:n(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:n(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:n(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:n(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:n(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:n(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:n(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:n(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:n(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:n(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:n(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:n(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:n(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:n(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:n(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:n(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:n(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:n(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:n(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:n(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:n(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:n(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:n(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:n(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:n(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:n(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:n(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:n(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:n(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:n(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:n(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:n(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:n(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:n(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:n(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:n(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:n(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:n(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:n(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:n(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:n(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:n(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:n(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:n(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:n(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:n(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_function_expression_0_to_arrow_function:n(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:n(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:n(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:n(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:n(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:n(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:n(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:n(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:n(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:n(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:n(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:n(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:n(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:n(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:n(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:n(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:n(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:n(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:n(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:n(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:n(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:n(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:n(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:n(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:n(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:n(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:n(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:n(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:n(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:n(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:n(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:n(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:n(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:n(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:n(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:n(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:n(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:n(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:n(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:n(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:n(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:n(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:n(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:n(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:n(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:n(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:n(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:n(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:n(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:n(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:n(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:n(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:n(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:n(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:n(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:n(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:n(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:n(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:n(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:n(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:n(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:n(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:n(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:n(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:n(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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.")}})(gr||(gr={}));var gr;(function(e){var n;function f(Ae){return Ae>=79}e.tokenIsIdentifierOrKeyword=f;function d(Ae){return Ae===31||f(Ae)}e.tokenIsIdentifierOrKeywordOrGreaterThan=d,e.textToKeywordObj=(n={abstract:126,any:130,as:127,asserts:128,assert:129,bigint:157,boolean:133,break:81,case:82,catch:83,class:84,continue:86,const:85},n.constructor=134,n.debugger=87,n.declare=135,n.default=88,n.delete=89,n.do=90,n.else=91,n.enum=92,n.export=93,n.extends=94,n.false=95,n.finally=96,n.for=97,n.from=155,n.function=98,n.get=136,n.if=99,n.implements=117,n.import=100,n.in=101,n.infer=137,n.instanceof=102,n.interface=118,n.intrinsic=138,n.is=139,n.keyof=140,n.let=119,n.module=141,n.namespace=142,n.never=143,n.new=103,n.null=104,n.number=146,n.object=147,n.package=120,n.private=121,n.protected=122,n.public=123,n.override=158,n.readonly=144,n.require=145,n.global=156,n.return=105,n.set=148,n.static=124,n.string=149,n.super=106,n.switch=107,n.symbol=150,n.this=108,n.throw=109,n.true=110,n.try=111,n.type=151,n.typeof=112,n.undefined=152,n.unique=153,n.unknown=154,n.var=113,n.void=114,n.while=115,n.with=116,n.yield=125,n.async=131,n.await=132,n.of=159,n);var a=new e.Map(e.getEntries(e.textToKeywordObj)),p=new e.Map(e.getEntries(Rn(Rn({},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}))),N=[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],H=[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],h=[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],v=[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],A=[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],q=[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],ie=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,b=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function P(Ae,Ye){if(Ae<Ye[0])return!1;for(var Lr=0,Er=Ye.length,lr;Lr+1<Er;){if(lr=Lr+(Er-Lr)/2,lr-=lr%2,Ye[lr]<=Ae&&Ae<=Ye[lr+1])return!0;Ae<Ye[lr]?Er=lr:Lr=lr+2}return!1}function S(Ae,Ye){return Ye>=2?P(Ae,A):Ye===1?P(Ae,h):P(Ae,N)}e.isUnicodeIdentifierStart=S;function B(Ae,Ye){return Ye>=2?P(Ae,q):Ye===1?P(Ae,v):P(Ae,H)}function J(Ae){var Ye=[];return Ae.forEach(function(Lr,Er){Ye[Lr]=Er}),Ye}var k=J(p);function M(Ae){return k[Ae]}e.tokenToString=M;function x(Ae){return p.get(Ae)}e.stringToToken=x;function w(Ae){for(var Ye=new Array,Lr=0,Er=0;Lr<Ae.length;){var lr=Ae.charCodeAt(Lr);switch(Lr++,lr){case 13:Ae.charCodeAt(Lr)===10&&Lr++;case 10:Ye.push(Er),Er=Lr;break;default:lr>127&&y(lr)&&(Ye.push(Er),Er=Lr);break}}return Ye.push(Er),Ye}e.computeLineStarts=w;function K(Ae,Ye,Lr,Er){return Ae.getPositionOfLineAndCharacter?Ae.getPositionOfLineAndCharacter(Ye,Lr,Er):Z(ne(Ae),Ye,Lr,Ae.text,Er)}e.getPositionOfLineAndCharacter=K;function Z(Ae,Ye,Lr,Er,lr){(Ye<0||Ye>=Ae.length)&&(lr?Ye=Ye<0?0:Ye>=Ae.length?Ae.length-1:Ye:e.Debug.fail("Bad line number. Line: ".concat(Ye,", lineStarts.length: ").concat(Ae.length," , line map is correct? ").concat(Er!==void 0?e.arraysEqual(Ae,w(Er)):"unknown")));var Cr=Ae[Ye]+Lr;return lr?Cr>Ae[Ye+1]?Ae[Ye+1]:typeof Er=="string"&&Cr>Er.length?Er.length:Cr:(Ye<Ae.length-1?e.Debug.assert(Cr<Ae[Ye+1]):Er!==void 0&&e.Debug.assert(Cr<=Er.length),Cr)}e.computePositionOfLineAndCharacter=Z;function ne(Ae){return Ae.lineMap||(Ae.lineMap=w(Ae.text))}e.getLineStarts=ne;function R(Ae,Ye){var Lr=Y(Ae,Ye);return{line:Lr,character:Ye-Ae[Lr]}}e.computeLineAndCharacterOfPosition=R;function Y(Ae,Ye,Lr){var Er=e.binarySearch(Ae,Ye,e.identity,e.compareValues,Lr);return Er<0&&(Er=~Er-1,e.Debug.assert(Er!==-1,"position cannot precede the beginning of the file")),Er}e.computeLineOfPosition=Y;function U(Ae,Ye,Lr){if(Ye===Lr)return 0;var Er=ne(Ae),lr=Math.min(Ye,Lr),Cr=lr===Lr,Or=Cr?Ye:Lr,Ke=Y(Er,lr),Pe=Y(Er,Or,Ke);return Cr?Ke-Pe:Pe-Ke}e.getLinesBetweenPositions=U;function $(Ae,Ye){return R(ne(Ae),Ye)}e.getLineAndCharacterOfPosition=$;function T(Ae){return I(Ae)||y(Ae)}e.isWhiteSpaceLike=T;function I(Ae){return Ae===32||Ae===9||Ae===11||Ae===12||Ae===160||Ae===133||Ae===5760||Ae>=8192&&Ae<=8203||Ae===8239||Ae===8287||Ae===12288||Ae===65279}e.isWhiteSpaceSingleLine=I;function y(Ae){return Ae===10||Ae===13||Ae===8232||Ae===8233}e.isLineBreak=y;function D(Ae){return Ae>=48&&Ae<=57}function C(Ae){return D(Ae)||Ae>=65&&Ae<=70||Ae>=97&&Ae<=102}function m(Ae){return Ae<=1114111}function u(Ae){return Ae>=48&&Ae<=55}e.isOctalDigit=u;function g(Ae,Ye){var Lr=Ae.charCodeAt(Ye);switch(Lr){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 Ye===0;default:return Lr>127}}e.couldStartTrivia=g;function F(Ae,Ye,Lr,Er,lr){if(e.positionIsSynthesized(Ye))return Ye;for(var Cr=!1;;){var Or=Ae.charCodeAt(Ye);switch(Or){case 13:Ae.charCodeAt(Ye+1)===10&&Ye++;case 10:if(Ye++,Lr)return Ye;Cr=!!lr;continue;case 9:case 11:case 12:case 32:Ye++;continue;case 47:if(Er)break;if(Ae.charCodeAt(Ye+1)===47){for(Ye+=2;Ye<Ae.length&&!y(Ae.charCodeAt(Ye));)Ye++;Cr=!1;continue}if(Ae.charCodeAt(Ye+1)===42){for(Ye+=2;Ye<Ae.length;){if(Ae.charCodeAt(Ye)===42&&Ae.charCodeAt(Ye+1)===47){Ye+=2;break}Ye++}Cr=!1;continue}break;case 60:case 124:case 61:case 62:if(ue(Ae,Ye)){Ye=X(Ae,Ye),Cr=!1;continue}break;case 35:if(Ye===0&&Se(Ae,Ye)){Ye=Ce(Ae,Ye),Cr=!1;continue}break;case 42:if(Cr){Ye++,Cr=!1;continue}break;default:if(Or>127&&T(Or)){Ye++;continue}break}return Ye}}e.skipTrivia=F;var te=7;function ue(Ae,Ye){if(e.Debug.assert(Ye>=0),Ye===0||y(Ae.charCodeAt(Ye-1))){var Lr=Ae.charCodeAt(Ye);if(Ye+te<Ae.length){for(var Er=0;Er<te;Er++)if(Ae.charCodeAt(Ye+Er)!==Lr)return!1;return Lr===61||Ae.charCodeAt(Ye+te)===32}}return!1}function X(Ae,Ye,Lr){Lr&&Lr(e.Diagnostics.Merge_conflict_marker_encountered,Ye,te);var Er=Ae.charCodeAt(Ye),lr=Ae.length;if(Er===60||Er===62)for(;Ye<lr&&!y(Ae.charCodeAt(Ye));)Ye++;else for(e.Debug.assert(Er===124||Er===61);Ye<lr;){var Cr=Ae.charCodeAt(Ye);if((Cr===61||Cr===62)&&Cr!==Er&&ue(Ae,Ye))break;Ye++}return Ye}var j=/^#!.*/;function Se(Ae,Ye){return e.Debug.assert(Ye===0),j.test(Ae)}e.isShebangTrivia=Se;function Ce(Ae,Ye){var Lr=j.exec(Ae)[0];return Ye=Ye+Lr.length,Ye}e.scanShebangTrivia=Ce;function O(Ae,Ye,Lr,Er,lr,Cr,Or){var Ke,Pe,Hr,ur,vr=!1,de=Er,Fe=Or;if(Lr===0){de=!0;var $e=Ie(Ye);$e&&(Lr=$e.length)}e:for(;Lr>=0&&Lr<Ye.length;){var Dr=Ye.charCodeAt(Lr);switch(Dr){case 13:Ye.charCodeAt(Lr+1)===10&&Lr++;case 10:if(Lr++,Er)break e;de=!0,vr&&(ur=!0);continue;case 9:case 11:case 12:case 32:Lr++;continue;case 47:var Fr=Ye.charCodeAt(Lr+1),He=!1;if(Fr===47||Fr===42){var pr=Fr===47?2:3,Jr=Lr;if(Lr+=2,Fr===47)for(;Lr<Ye.length;){if(y(Ye.charCodeAt(Lr))){He=!0;break}Lr++}else for(;Lr<Ye.length;){if(Ye.charCodeAt(Lr)===42&&Ye.charCodeAt(Lr+1)===47){Lr+=2;break}Lr++}if(de){if(vr&&(Fe=lr(Ke,Pe,Hr,ur,Cr,Fe),!Ae&&Fe))return Fe;Ke=Jr,Pe=Lr,Hr=pr,ur=He,vr=!0}continue}break e;default:if(Dr>127&&T(Dr)){vr&&y(Dr)&&(ur=!0),Lr++;continue}break e}}return vr&&(Fe=lr(Ke,Pe,Hr,ur,Cr,Fe)),Fe}function Q(Ae,Ye,Lr,Er){return O(!1,Ae,Ye,!1,Lr,Er)}e.forEachLeadingCommentRange=Q;function V(Ae,Ye,Lr,Er){return O(!1,Ae,Ye,!0,Lr,Er)}e.forEachTrailingCommentRange=V;function z(Ae,Ye,Lr,Er,lr){return O(!0,Ae,Ye,!1,Lr,Er,lr)}e.reduceEachLeadingCommentRange=z;function Te(Ae,Ye,Lr,Er,lr){return O(!0,Ae,Ye,!0,Lr,Er,lr)}e.reduceEachTrailingCommentRange=Te;function ge(Ae,Ye,Lr,Er,lr,Cr){return Cr||(Cr=[]),Cr.push({kind:Lr,pos:Ae,end:Ye,hasTrailingNewLine:Er}),Cr}function ke(Ae,Ye){return z(Ae,Ye,ge,void 0,void 0)}e.getLeadingCommentRanges=ke;function Me(Ae,Ye){return Te(Ae,Ye,ge,void 0,void 0)}e.getTrailingCommentRanges=Me;function Ie(Ae){var Ye=j.exec(Ae);if(Ye)return Ye[0]}e.getShebang=Ie;function Ge(Ae,Ye){return Ae>=65&&Ae<=90||Ae>=97&&Ae<=122||Ae===36||Ae===95||Ae>127&&S(Ae,Ye)}e.isIdentifierStart=Ge;function he(Ae,Ye,Lr){return Ae>=65&&Ae<=90||Ae>=97&&Ae<=122||Ae>=48&&Ae<=57||Ae===36||Ae===95||(Lr===1?Ae===45||Ae===58:!1)||Ae>127&&B(Ae,Ye)}e.isIdentifierPart=he;function ve(Ae,Ye,Lr){var Er=_e(Ae,0);if(!Ge(Er,Ye))return!1;for(var lr=Le(Er);lr<Ae.length;lr+=Le(Er))if(!he(Er=_e(Ae,lr),Ye,Lr))return!1;return!0}e.isIdentifierText=ve;function Ve(Ae,Ye,Lr,Er,lr,Cr,Or){Lr===void 0&&(Lr=0);var Ke=Er,Pe,Hr,ur,vr,de,Fe,$e,Dr,Fr=0;sa(Ke,Cr,Or);var He={getStartPos:function(){return ur},getTextPos:function(){return Pe},getToken:function(){return de},getTokenPos:function(){return vr},getTokenText:function(){return Ke.substring(vr,Pe)},getTokenValue:function(){return Fe},hasUnicodeEscape:function(){return($e&1024)!==0},hasExtendedUnicodeEscape:function(){return($e&8)!==0},hasPrecedingLineBreak:function(){return($e&1)!==0},hasPrecedingJSDocComment:function(){return($e&2)!==0},isIdentifier:function(){return de===79||de>116},isReservedWord:function(){return de>=81&&de<=116},isUnterminated:function(){return($e&4)!==0},getCommentDirectives:function(){return Dr},getNumericLiteralFlags:function(){return $e&1008},getTokenFlags:function(){return $e},reScanGreaterToken:Ne,reScanAsteriskEqualsToken:me,reScanSlashToken:Ze,reScanTemplateToken:dr,reScanTemplateHeadOrNoSubstitutionTemplate:et,scanJsxIdentifier:zr,scanJsxAttributeValue:gt,reScanJsxAttributeValue:vt,reScanJsxToken:yt,reScanLessThanToken:Wr,reScanHashToken:tr,reScanQuestionToken:Ir,reScanInvalidIdentifier:We,scanJsxToken:kr,scanJsDocToken:ut,scan:Ee,getText:mt,clearCommentDirectives:rn,setText:sa,setScriptTarget:Jn,setLanguageVariant:na,setOnError:ba,setTextPos:Wn,setInJSDocType:en,tryScan:Qt,lookAhead:wt,scanRange:xt};return e.Debug.isDebugging&&Object.defineProperty(He,"__debugShowCurrentPositionInText",{get:function(){var St=He.getText();return St.slice(0,He.getStartPos())+"\u2551"+St.slice(He.getStartPos())}}),He;function pr(St,Ut,qt){if(Ut===void 0&&(Ut=Pe),lr){var Pn=Pe;Pe=Ut,lr(St,qt||0),Pe=Pn}}function Jr(){for(var St=Pe,Ut=!1,qt=!1,Pn="";;){var dn=Ke.charCodeAt(Pe);if(dn===95){$e|=512,Ut?(Ut=!1,qt=!0,Pn+=Ke.substring(St,Pe)):pr(qt?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,Pe,1),Pe++,St=Pe;continue}if(D(dn)){Ut=!0,qt=!1,Pe++;continue}break}return Ke.charCodeAt(Pe-1)===95&&pr(e.Diagnostics.Numeric_separators_are_not_allowed_here,Pe-1,1),Pn+Ke.substring(St,Pe)}function ze(){var St=Pe,Ut=Jr(),qt,Pn;Ke.charCodeAt(Pe)===46&&(Pe++,qt=Jr());var dn=Pe;if(Ke.charCodeAt(Pe)===69||Ke.charCodeAt(Pe)===101){Pe++,$e|=16,(Ke.charCodeAt(Pe)===43||Ke.charCodeAt(Pe)===45)&&Pe++;var oa=Pe,pt=Jr();pt?(Pn=Ke.substring(dn,oa)+pt,dn=Pe):pr(e.Diagnostics.Digit_expected)}var _t;if($e&512?(_t=Ut,qt&&(_t+="."+qt),Pn&&(_t+=Pn)):_t=Ke.substring(St,dn),qt!==void 0||$e&16)return Ar(St,qt===void 0&&!!($e&16)),{type:8,value:""+ +_t};Fe=_t;var Pt=je();return Ar(St),{type:Pt,value:Fe}}function Ar(St,Ut){if(!!Ge(_e(Ke,Pe),Ae)){var qt=Pe,Pn=ye().length;Pn===1&&Ke[qt]==="n"?pr(Ut?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,St,qt-St+1):(pr(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,qt,Pn),Pe=qt)}}function Yr(){for(var St=Pe;u(Ke.charCodeAt(Pe));)Pe++;return+Ke.substring(St,Pe)}function lt(St,Ut){var qt=Rt(St,!1,Ut);return qt?parseInt(qt,16):-1}function tt(St,Ut){return Rt(St,!0,Ut)}function Rt(St,Ut,qt){for(var Pn=[],dn=!1,oa=!1;Pn.length<St||Ut;){var pt=Ke.charCodeAt(Pe);if(qt&&pt===95){$e|=512,dn?(dn=!1,oa=!0):pr(oa?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,Pe,1),Pe++;continue}if(dn=qt,pt>=65&&pt<=70)pt+=97-65;else if(!(pt>=48&&pt<=57||pt>=97&&pt<=102))break;Pn.push(pt),Pe++,oa=!1}return Pn.length<St&&(Pn=[]),Ke.charCodeAt(Pe-1)===95&&pr(e.Diagnostics.Numeric_separators_are_not_allowed_here,Pe-1,1),String.fromCharCode.apply(String,Pn)}function cn(St){St===void 0&&(St=!1);var Ut=Ke.charCodeAt(Pe);Pe++;for(var qt="",Pn=Pe;;){if(Pe>=Hr){qt+=Ke.substring(Pn,Pe),$e|=4,pr(e.Diagnostics.Unterminated_string_literal);break}var dn=Ke.charCodeAt(Pe);if(dn===Ut){qt+=Ke.substring(Pn,Pe),Pe++;break}if(dn===92&&!St){qt+=Ke.substring(Pn,Pe),qt+=In(),Pn=Pe;continue}if(y(dn)&&!St){qt+=Ke.substring(Pn,Pe),$e|=4,pr(e.Diagnostics.Unterminated_string_literal);break}Pe++}return qt}function bn(St){var Ut=Ke.charCodeAt(Pe)===96;Pe++;for(var qt=Pe,Pn="",dn;;){if(Pe>=Hr){Pn+=Ke.substring(qt,Pe),$e|=4,pr(e.Diagnostics.Unterminated_template_literal),dn=Ut?14:17;break}var oa=Ke.charCodeAt(Pe);if(oa===96){Pn+=Ke.substring(qt,Pe),Pe++,dn=Ut?14:17;break}if(oa===36&&Pe+1<Hr&&Ke.charCodeAt(Pe+1)===123){Pn+=Ke.substring(qt,Pe),Pe+=2,dn=Ut?15:16;break}if(oa===92){Pn+=Ke.substring(qt,Pe),Pn+=In(St),qt=Pe;continue}if(oa===13){Pn+=Ke.substring(qt,Pe),Pe++,Pe<Hr&&Ke.charCodeAt(Pe)===10&&Pe++,Pn+=`
|
|
`,qt=Pe;continue}Pe++}return e.Debug.assert(dn!==void 0),Fe=Pn,dn}function In(St){var Ut=Pe;if(Pe++,Pe>=Hr)return pr(e.Diagnostics.Unexpected_end_of_text),"";var qt=Ke.charCodeAt(Pe);switch(Pe++,qt){case 48:return St&&Pe<Hr&&D(Ke.charCodeAt(Pe))?(Pe++,$e|=2048,Ke.substring(Ut,Pe)):"\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(St){for(var Pn=Pe;Pn<Pe+4;Pn++)if(Pn<Hr&&!C(Ke.charCodeAt(Pn))&&Ke.charCodeAt(Pn)!==123)return Pe=Pn,$e|=2048,Ke.substring(Ut,Pe)}if(Pe<Hr&&Ke.charCodeAt(Pe)===123){if(Pe++,St&&!C(Ke.charCodeAt(Pe)))return $e|=2048,Ke.substring(Ut,Pe);if(St){var dn=Pe,oa=tt(1,!1),pt=oa?parseInt(oa,16):-1;if(!m(pt)||Ke.charCodeAt(Pe)!==125)return $e|=2048,Ke.substring(Ut,Pe);Pe=dn}return $e|=8,ir()}return $e|=1024,zn(4);case 120:if(St)if(C(Ke.charCodeAt(Pe))){if(!C(Ke.charCodeAt(Pe+1)))return Pe++,$e|=2048,Ke.substring(Ut,Pe)}else return $e|=2048,Ke.substring(Ut,Pe);return zn(2);case 13:Pe<Hr&&Ke.charCodeAt(Pe)===10&&Pe++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(qt)}}function zn(St){var Ut=lt(St,!1);return Ut>=0?String.fromCharCode(Ut):(pr(e.Diagnostics.Hexadecimal_digit_expected),"")}function ir(){var St=tt(1,!1),Ut=St?parseInt(St,16):-1,qt=!1;return Ut<0?(pr(e.Diagnostics.Hexadecimal_digit_expected),qt=!0):Ut>1114111&&(pr(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),qt=!0),Pe>=Hr?(pr(e.Diagnostics.Unexpected_end_of_text),qt=!0):Ke.charCodeAt(Pe)===125?Pe++:(pr(e.Diagnostics.Unterminated_Unicode_escape_sequence),qt=!0),qt?"":De(Ut)}function Rr(){if(Pe+5<Hr&&Ke.charCodeAt(Pe+1)===117){var St=Pe;Pe+=2;var Ut=lt(4,!1);return Pe=St,Ut}return-1}function sr(){if(Ae>=2&&_e(Ke,Pe+1)===117&&_e(Ke,Pe+2)===123){var St=Pe;Pe+=3;var Ut=tt(1,!1),qt=Ut?parseInt(Ut,16):-1;return Pe=St,qt}return-1}function ye(){for(var St="",Ut=Pe;Pe<Hr;){var qt=_e(Ke,Pe);if(he(qt,Ae))Pe+=Le(qt);else if(qt===92){if(qt=sr(),qt>=0&&he(qt,Ae)){Pe+=3,$e|=8,St+=ir(),Ut=Pe;continue}if(qt=Rr(),!(qt>=0&&he(qt,Ae)))break;$e|=1024,St+=Ke.substring(Ut,Pe),St+=De(qt),Pe+=6,Ut=Pe}else break}return St+=Ke.substring(Ut,Pe),St}function or(){var St=Fe.length;if(St>=2&&St<=12){var Ut=Fe.charCodeAt(0);if(Ut>=97&&Ut<=122){var qt=a.get(Fe);if(qt!==void 0)return de=qt}}return de=79}function fe(St){for(var Ut="",qt=!1,Pn=!1;;){var dn=Ke.charCodeAt(Pe);if(dn===95){$e|=512,qt?(qt=!1,Pn=!0):pr(Pn?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,Pe,1),Pe++;continue}if(qt=!0,!D(dn)||dn-48>=St)break;Ut+=Ke[Pe],Pe++,Pn=!1}return Ke.charCodeAt(Pe-1)===95&&pr(e.Diagnostics.Numeric_separators_are_not_allowed_here,Pe-1,1),Ut}function je(){if(Ke.charCodeAt(Pe)===110)return Fe+="n",$e&384&&(Fe=e.parsePseudoBigInt(Fe)+"n"),Pe++,9;var St=$e&128?parseInt(Fe.slice(2),2):$e&256?parseInt(Fe.slice(2),8):+Fe;return Fe=""+St,8}function Ee(){var St;ur=Pe,$e=0;for(var Ut=!1;;){if(vr=Pe,Pe>=Hr)return de=1;var qt=_e(Ke,Pe);if(qt===35&&Pe===0&&Se(Ke,Pe)){if(Pe=Ce(Ke,Pe),Ye)continue;return de=6}switch(qt){case 10:case 13:if($e|=1,Ye){Pe++;continue}else return qt===13&&Pe+1<Hr&&Ke.charCodeAt(Pe+1)===10?Pe+=2:Pe++,de=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(Ye){Pe++;continue}else{for(;Pe<Hr&&I(Ke.charCodeAt(Pe));)Pe++;return de=5}case 33:return Ke.charCodeAt(Pe+1)===61?Ke.charCodeAt(Pe+2)===61?(Pe+=3,de=37):(Pe+=2,de=35):(Pe++,de=53);case 34:case 39:return Fe=cn(),de=10;case 96:return de=bn(!1);case 37:return Ke.charCodeAt(Pe+1)===61?(Pe+=2,de=69):(Pe++,de=44);case 38:return Ke.charCodeAt(Pe+1)===38?Ke.charCodeAt(Pe+2)===61?(Pe+=3,de=76):(Pe+=2,de=55):Ke.charCodeAt(Pe+1)===61?(Pe+=2,de=73):(Pe++,de=50);case 40:return Pe++,de=20;case 41:return Pe++,de=21;case 42:if(Ke.charCodeAt(Pe+1)===61)return Pe+=2,de=66;if(Ke.charCodeAt(Pe+1)===42)return Ke.charCodeAt(Pe+2)===61?(Pe+=3,de=67):(Pe+=2,de=42);if(Pe++,Fr&&!Ut&&$e&1){Ut=!0;continue}return de=41;case 43:return Ke.charCodeAt(Pe+1)===43?(Pe+=2,de=45):Ke.charCodeAt(Pe+1)===61?(Pe+=2,de=64):(Pe++,de=39);case 44:return Pe++,de=27;case 45:return Ke.charCodeAt(Pe+1)===45?(Pe+=2,de=46):Ke.charCodeAt(Pe+1)===61?(Pe+=2,de=65):(Pe++,de=40);case 46:return D(Ke.charCodeAt(Pe+1))?(Fe=ze().value,de=8):Ke.charCodeAt(Pe+1)===46&&Ke.charCodeAt(Pe+2)===46?(Pe+=3,de=25):(Pe++,de=24);case 47:if(Ke.charCodeAt(Pe+1)===47){for(Pe+=2;Pe<Hr&&!y(Ke.charCodeAt(Pe));)Pe++;if(Dr=xr(Dr,Ke.slice(vr,Pe),ie,vr),Ye)continue;return de=2}if(Ke.charCodeAt(Pe+1)===42){Pe+=2,Ke.charCodeAt(Pe)===42&&Ke.charCodeAt(Pe+1)!==47&&($e|=2);for(var Pn=!1,dn=vr;Pe<Hr;){var oa=Ke.charCodeAt(Pe);if(oa===42&&Ke.charCodeAt(Pe+1)===47){Pe+=2,Pn=!0;break}Pe++,y(oa)&&(dn=Pe,$e|=1)}if(Dr=xr(Dr,Ke.slice(dn,Pe),b,dn),Pn||pr(e.Diagnostics.Asterisk_Slash_expected),Ye)continue;return Pn||($e|=4),de=3}return Ke.charCodeAt(Pe+1)===61?(Pe+=2,de=68):(Pe++,de=43);case 48:if(Pe+2<Hr&&(Ke.charCodeAt(Pe+1)===88||Ke.charCodeAt(Pe+1)===120))return Pe+=2,Fe=tt(1,!0),Fe||(pr(e.Diagnostics.Hexadecimal_digit_expected),Fe="0"),Fe="0x"+Fe,$e|=64,de=je();if(Pe+2<Hr&&(Ke.charCodeAt(Pe+1)===66||Ke.charCodeAt(Pe+1)===98))return Pe+=2,Fe=fe(2),Fe||(pr(e.Diagnostics.Binary_digit_expected),Fe="0"),Fe="0b"+Fe,$e|=128,de=je();if(Pe+2<Hr&&(Ke.charCodeAt(Pe+1)===79||Ke.charCodeAt(Pe+1)===111))return Pe+=2,Fe=fe(8),Fe||(pr(e.Diagnostics.Octal_digit_expected),Fe="0"),Fe="0o"+Fe,$e|=256,de=je();if(Pe+1<Hr&&u(Ke.charCodeAt(Pe+1)))return Fe=""+Yr(),$e|=32,de=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return St=ze(),de=St.type,Fe=St.value,de;case 58:return Pe++,de=58;case 59:return Pe++,de=26;case 60:if(ue(Ke,Pe)){if(Pe=X(Ke,Pe,pr),Ye)continue;return de=7}return Ke.charCodeAt(Pe+1)===60?Ke.charCodeAt(Pe+2)===61?(Pe+=3,de=70):(Pe+=2,de=47):Ke.charCodeAt(Pe+1)===61?(Pe+=2,de=32):Lr===1&&Ke.charCodeAt(Pe+1)===47&&Ke.charCodeAt(Pe+2)!==42?(Pe+=2,de=30):(Pe++,de=29);case 61:if(ue(Ke,Pe)){if(Pe=X(Ke,Pe,pr),Ye)continue;return de=7}return Ke.charCodeAt(Pe+1)===61?Ke.charCodeAt(Pe+2)===61?(Pe+=3,de=36):(Pe+=2,de=34):Ke.charCodeAt(Pe+1)===62?(Pe+=2,de=38):(Pe++,de=63);case 62:if(ue(Ke,Pe)){if(Pe=X(Ke,Pe,pr),Ye)continue;return de=7}return Pe++,de=31;case 63:return Ke.charCodeAt(Pe+1)===46&&!D(Ke.charCodeAt(Pe+2))?(Pe+=2,de=28):Ke.charCodeAt(Pe+1)===63?Ke.charCodeAt(Pe+2)===61?(Pe+=3,de=77):(Pe+=2,de=60):(Pe++,de=57);case 91:return Pe++,de=22;case 93:return Pe++,de=23;case 94:return Ke.charCodeAt(Pe+1)===61?(Pe+=2,de=78):(Pe++,de=52);case 123:return Pe++,de=18;case 124:if(ue(Ke,Pe)){if(Pe=X(Ke,Pe,pr),Ye)continue;return de=7}return Ke.charCodeAt(Pe+1)===124?Ke.charCodeAt(Pe+2)===61?(Pe+=3,de=75):(Pe+=2,de=56):Ke.charCodeAt(Pe+1)===61?(Pe+=2,de=74):(Pe++,de=51);case 125:return Pe++,de=19;case 126:return Pe++,de=54;case 64:return Pe++,de=59;case 92:var pt=sr();if(pt>=0&&Ge(pt,Ae))return Pe+=3,$e|=8,Fe=ir()+ye(),de=or();var _t=Rr();return _t>=0&&Ge(_t,Ae)?(Pe+=6,$e|=1024,Fe=String.fromCharCode(_t)+ye(),de=or()):(pr(e.Diagnostics.Invalid_character),Pe++,de=0);case 35:return Pe!==0&&Ke[Pe+1]==="!"?(pr(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),Pe++,de=0):(Ge(_e(Ke,Pe+1),Ae)?(Pe++,ee(_e(Ke,Pe),Ae)):(Fe=String.fromCharCode(_e(Ke,Pe)),pr(e.Diagnostics.Invalid_character,Pe++,Le(qt))),de=80);default:var Pt=ee(qt,Ae);if(Pt)return de=Pt;if(I(qt)){Pe+=Le(qt);continue}else if(y(qt)){$e|=1,Pe+=Le(qt);continue}var It=Le(qt);return pr(e.Diagnostics.Invalid_character,Pe,It),Pe+=It,de=0}}}function We(){e.Debug.assert(de===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),Pe=vr=ur,$e=0;var St=_e(Ke,Pe),Ut=ee(St,99);return Ut?de=Ut:(Pe+=Le(St),de)}function ee(St,Ut){var qt=St;if(Ge(qt,Ut)){for(Pe+=Le(qt);Pe<Hr&&he(qt=_e(Ke,Pe),Ut);)Pe+=Le(qt);return Fe=Ke.substring(vr,Pe),qt===92&&(Fe+=ye()),or()}}function Ne(){if(de===31){if(Ke.charCodeAt(Pe)===62)return Ke.charCodeAt(Pe+1)===62?Ke.charCodeAt(Pe+2)===61?(Pe+=3,de=72):(Pe+=2,de=49):Ke.charCodeAt(Pe+1)===61?(Pe+=2,de=71):(Pe++,de=48);if(Ke.charCodeAt(Pe)===61)return Pe++,de=33}return de}function me(){return e.Debug.assert(de===66,"'reScanAsteriskEqualsToken' should only be called on a '*='"),Pe=vr+1,de=63}function Ze(){if(de===43||de===68){for(var St=vr+1,Ut=!1,qt=!1;;){if(St>=Hr){$e|=4,pr(e.Diagnostics.Unterminated_regular_expression_literal);break}var Pn=Ke.charCodeAt(St);if(y(Pn)){$e|=4,pr(e.Diagnostics.Unterminated_regular_expression_literal);break}if(Ut)Ut=!1;else if(Pn===47&&!qt){St++;break}else Pn===91?qt=!0:Pn===92?Ut=!0:Pn===93&&(qt=!1);St++}for(;St<Hr&&he(Ke.charCodeAt(St),Ae);)St++;Pe=St,Fe=Ke.substring(vr,Pe),de=13}return de}function xr(St,Ut,qt,Pn){var dn=fr(e.trimStringStart(Ut),qt);return dn===void 0?St:e.append(St,{range:{pos:Pn,end:Pe},type:dn})}function fr(St,Ut){var qt=Ut.exec(St);if(!!qt)switch(qt[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function dr(St){return e.Debug.assert(de===19,"'reScanTemplateToken' should only be called on a '}'"),Pe=vr,de=bn(St)}function et(){return Pe=vr,de=bn(!0)}function yt(St){return St===void 0&&(St=!0),Pe=vr=ur,de=kr(St)}function Wr(){return de===47?(Pe=vr+1,de=29):de}function tr(){return de===80?(Pe=vr+1,de=62):de}function Ir(){return e.Debug.assert(de===60,"'reScanQuestionToken' should only be called on a '??'"),Pe=vr+1,de=57}function kr(St){if(St===void 0&&(St=!0),ur=vr=Pe,Pe>=Hr)return de=1;var Ut=Ke.charCodeAt(Pe);if(Ut===60)return Ke.charCodeAt(Pe+1)===47?(Pe+=2,de=30):(Pe++,de=29);if(Ut===123)return Pe++,de=18;for(var qt=0;Pe<Hr&&(Ut=Ke.charCodeAt(Pe),Ut!==123);){if(Ut===60){if(ue(Ke,Pe))return Pe=X(Ke,Pe,pr),de=7;break}if(Ut===62&&pr(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,Pe,1),Ut===125&&pr(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,Pe,1),y(Ut)&&qt===0)qt=-1;else{if(!St&&y(Ut)&&qt>0)break;T(Ut)||(qt=Pe)}Pe++}return Fe=Ke.substring(ur,Pe),qt===-1?12:11}function zr(){if(f(de)){for(var St=!1;Pe<Hr;){var Ut=Ke.charCodeAt(Pe);if(Ut===45){Fe+="-",Pe++;continue}else if(Ut===58&&!St){Fe+=":",Pe++,St=!0,de=79;continue}var qt=Pe;if(Fe+=ye(),Pe===qt)break}Fe.slice(-1)===":"&&(Fe=Fe.slice(0,-1),Pe--)}return de}function gt(){switch(ur=Pe,Ke.charCodeAt(Pe)){case 34:case 39:return Fe=cn(!0),de=10;default:return Ee()}}function vt(){return Pe=vr=ur,gt()}function ut(){if(ur=vr=Pe,$e=0,Pe>=Hr)return de=1;var St=_e(Ke,Pe);switch(Pe+=Le(St),St){case 9:case 11:case 12:case 32:for(;Pe<Hr&&I(Ke.charCodeAt(Pe));)Pe++;return de=5;case 64:return de=59;case 13:Ke.charCodeAt(Pe)===10&&Pe++;case 10:return $e|=1,de=4;case 42:return de=41;case 123:return de=18;case 125:return de=19;case 91:return de=22;case 93:return de=23;case 60:return de=29;case 62:return de=31;case 61:return de=63;case 44:return de=27;case 46:return de=24;case 96:return de=61;case 35:return de=62;case 92:Pe--;var Ut=sr();if(Ut>=0&&Ge(Ut,Ae))return Pe+=3,$e|=8,Fe=ir()+ye(),de=or();var qt=Rr();return qt>=0&&Ge(qt,Ae)?(Pe+=6,$e|=1024,Fe=String.fromCharCode(qt)+ye(),de=or()):(Pe++,de=0)}if(Ge(St,Ae)){for(var Pn=St;Pe<Hr&&he(Pn=_e(Ke,Pe),Ae)||Ke.charCodeAt(Pe)===45;)Pe+=Le(Pn);return Fe=Ke.substring(vr,Pe),Pn===92&&(Fe+=ye()),de=or()}else return de=0}function ht(St,Ut){var qt=Pe,Pn=ur,dn=vr,oa=de,pt=Fe,_t=$e,Pt=St();return(!Pt||Ut)&&(Pe=qt,ur=Pn,vr=dn,de=oa,Fe=pt,$e=_t),Pt}function xt(St,Ut,qt){var Pn=Hr,dn=Pe,oa=ur,pt=vr,_t=de,Pt=Fe,It=$e,rt=Dr;sa(Ke,St,Ut);var Cn=qt();return Hr=Pn,Pe=dn,ur=oa,vr=pt,de=_t,Fe=Pt,$e=It,Dr=rt,Cn}function wt(St){return ht(St,!0)}function Qt(St){return ht(St,!1)}function mt(){return Ke}function rn(){Dr=void 0}function sa(St,Ut,qt){Ke=St||"",Hr=qt===void 0?Ke.length:Ut+qt,Wn(Ut||0)}function ba(St){lr=St}function Jn(St){Ae=St}function na(St){Lr=St}function Wn(St){e.Debug.assert(St>=0),Pe=St,ur=St,vr=St,de=0,Fe=void 0,$e=0}function en(St){Fr+=St?1:-1}}e.createScanner=Ve;var _e=String.prototype.codePointAt?function(Ae,Ye){return Ae.codePointAt(Ye)}:function(Ye,Lr){var Er=Ye.length;if(!(Lr<0||Lr>=Er)){var lr=Ye.charCodeAt(Lr);if(lr>=55296&&lr<=56319&&Er>Lr+1){var Cr=Ye.charCodeAt(Lr+1);if(Cr>=56320&&Cr<=57343)return(lr-55296)*1024+Cr-56320+65536}return lr}};function Le(Ae){return Ae>=65536?2:1}function qe(Ae){if(e.Debug.assert(0<=Ae&&Ae<=1114111),Ae<=65535)return String.fromCharCode(Ae);var Ye=Math.floor((Ae-65536)/1024)+55296,Lr=(Ae-65536)%1024+56320;return String.fromCharCode(Ye,Lr)}var Xe=String.fromCodePoint?function(Ae){return String.fromCodePoint(Ae)}:qe;function De(Ae){return Xe(Ae)}e.utf16EncodeAsString=De})(gr||(gr={}));var gr;(function(e){function n(Re){return e.pathIsRelative(Re)||e.isRootedDiskPath(Re)}e.isExternalModuleNameRelative=n;function f(Re){return e.sortAndDeduplicate(Re,e.compareDiagnostics)}e.sortAndDeduplicateDiagnostics=f;function d(Re){switch(e.getEmitScriptTarget(Re)){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=d;function a(Re){return Re.start+Re.length}e.textSpanEnd=a;function p(Re){return Re.length===0}e.textSpanIsEmpty=p;function N(Re,Qr){return Qr>=Re.start&&Qr<a(Re)}e.textSpanContainsPosition=N;function H(Re,Qr){return Qr>=Re.pos&&Qr<=Re.end}e.textRangeContainsPositionInclusive=H;function h(Re,Qr){return Qr.start>=Re.start&&a(Qr)<=a(Re)}e.textSpanContainsTextSpan=h;function v(Re,Qr){return A(Re,Qr)!==void 0}e.textSpanOverlapsWith=v;function A(Re,Qr){var vn=S(Re,Qr);return vn&&vn.length===0?void 0:vn}e.textSpanOverlap=A;function q(Re,Qr){return b(Re.start,Re.length,Qr.start,Qr.length)}e.textSpanIntersectsWithTextSpan=q;function ie(Re,Qr,vn){return b(Re.start,Re.length,Qr,vn)}e.textSpanIntersectsWith=ie;function b(Re,Qr,vn,Xn){var gi=Re+Qr,Ia=vn+Xn;return vn<=gi&&Ia>=Re}e.decodedTextSpanIntersectsWith=b;function P(Re,Qr){return Qr<=a(Re)&&Qr>=Re.start}e.textSpanIntersectsWithPosition=P;function S(Re,Qr){var vn=Math.max(Re.start,Qr.start),Xn=Math.min(a(Re),a(Qr));return vn<=Xn?J(vn,Xn):void 0}e.textSpanIntersection=S;function B(Re,Qr){if(Re<0)throw new Error("start < 0");if(Qr<0)throw new Error("length < 0");return{start:Re,length:Qr}}e.createTextSpan=B;function J(Re,Qr){return B(Re,Qr-Re)}e.createTextSpanFromBounds=J;function k(Re){return B(Re.span.start,Re.newLength)}e.textChangeRangeNewSpan=k;function M(Re){return p(Re.span)&&Re.newLength===0}e.textChangeRangeIsUnchanged=M;function x(Re,Qr){if(Qr<0)throw new Error("newLength < 0");return{span:Re,newLength:Qr}}e.createTextChangeRange=x,e.unchangedTextChangeRange=x(B(0,0),0);function w(Re){if(Re.length===0)return e.unchangedTextChangeRange;if(Re.length===1)return Re[0];for(var Qr=Re[0],vn=Qr.span.start,Xn=a(Qr.span),gi=vn+Qr.newLength,Ia=1;Ia<Re.length;Ia++){var oo=Re[Ia],Wo=vn,Nr=Xn,Us=gi,il=oo.span.start,Pl=a(oo.span),Co=il+oo.newLength;vn=Math.min(Wo,il),Xn=Math.max(Nr,Nr+(Pl-Us)),gi=Math.max(Co,Co+(Us-Pl))}return x(J(vn,Xn),gi-vn)}e.collapseTextChangeRangesAcrossMultipleVersions=w;function K(Re){if(Re&&Re.kind===162){for(var Qr=Re;Qr;Qr=Qr.parent)if(na(Qr)||oa(Qr)||Qr.kind===257)return Qr}}e.getTypeParameterOwner=K;function Z(Re,Qr){return e.hasSyntacticModifier(Re,16476)&&Qr.kind===170}e.isParameterPropertyDeclaration=Z;function ne(Re){return Ra(Re)?e.every(Re.elements,R):!1}e.isEmptyBindingPattern=ne;function R(Re){return e.isOmittedExpression(Re)?!0:ne(Re.name)}e.isEmptyBindingElement=R;function Y(Re){for(var Qr=Re.parent;e.isBindingElement(Qr.parent);)Qr=Qr.parent.parent;return Qr.parent}e.walkUpBindingElementsAndPatterns=Y;function U(Re,Qr){e.isBindingElement(Re)&&(Re=Y(Re));var vn=Qr(Re);return Re.kind===253&&(Re=Re.parent),Re&&Re.kind===254&&(vn|=Qr(Re),Re=Re.parent),Re&&Re.kind===236&&(vn|=Qr(Re)),vn}function $(Re){return U(Re,e.getEffectiveModifierFlags)}e.getCombinedModifierFlags=$;function T(Re){return U(Re,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc)}e.getCombinedNodeFlagsAlwaysIncludeJSDoc=T;function I(Re){return U(Re,function(Qr){return Qr.flags})}e.getCombinedNodeFlags=I,e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"];function y(Re,Qr,vn){var Xn=Re.toLowerCase(),gi=/^([a-z]+)([_\-]([a-z]+))?$/.exec(Xn);if(!gi){vn&&vn.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 Ia=gi[1],oo=gi[3];e.contains(e.supportedLocaleDirectories,Xn)&&!Wo(Ia,oo,vn)&&Wo(Ia,void 0,vn),e.setUILocale(Re);function Wo(Nr,Us,il){var Pl=e.normalizePath(Qr.getExecutingFilePath()),Co=e.getDirectoryPath(Pl),Vs=e.combinePaths(Co,Nr);if(Us&&(Vs=Vs+"-"+Us),Vs=Qr.resolvePath(e.combinePaths(Vs,"diagnosticMessages.generated.json")),!Qr.fileExists(Vs))return!1;var Ql="";try{Ql=Qr.readFile(Vs)}catch{return il&&il.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,Vs)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(Ql))}catch{return il&&il.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,Vs)),!1}return!0}}e.validateLocaleAndSetLanguage=y;function D(Re,Qr){if(Re)for(;Re.original!==void 0;)Re=Re.original;return!Qr||Qr(Re)?Re:void 0}e.getOriginalNode=D;function C(Re,Qr){for(;Re;){var vn=Qr(Re);if(vn==="quit")return;if(vn)return Re;Re=Re.parent}}e.findAncestor=C;function m(Re){return(Re.flags&8)===0}e.isParseTreeNode=m;function u(Re,Qr){if(Re===void 0||m(Re))return Re;for(Re=Re.original;Re;){if(m(Re))return!Qr||Qr(Re)?Re:void 0;Re=Re.original}}e.getParseTreeNode=u;function g(Re){return Re.length>=2&&Re.charCodeAt(0)===95&&Re.charCodeAt(1)===95?"_"+Re:Re}e.escapeLeadingUnderscores=g;function F(Re){var Qr=Re;return Qr.length>=3&&Qr.charCodeAt(0)===95&&Qr.charCodeAt(1)===95&&Qr.charCodeAt(2)===95?Qr.substr(1):Qr}e.unescapeLeadingUnderscores=F;function te(Re){return F(Re.escapedText)}e.idText=te;function ue(Re){return Re.valueDeclaration&&ht(Re.valueDeclaration)?te(Re.valueDeclaration.name):F(Re.escapedName)}e.symbolName=ue;function X(Re){var Qr=Re.parent.parent;if(!!Qr){if(Dt(Qr))return j(Qr);switch(Qr.kind){case 236:if(Qr.declarationList&&Qr.declarationList.declarations[0])return j(Qr.declarationList.declarations[0]);break;case 237:var vn=Qr.expression;switch(vn.kind===220&&vn.operatorToken.kind===63&&(vn=vn.left),vn.kind){case 205:return vn.name;case 206:var Xn=vn.argumentExpression;if(e.isIdentifier(Xn))return Xn}break;case 211:return j(Qr.expression);case 249:{if(Dt(Qr.statement)||za(Qr.statement))return j(Qr.statement);break}}}}function j(Re){var Qr=V(Re);return Qr&&e.isIdentifier(Qr)?Qr:void 0}function Se(Re,Qr){return!!(O(Re)&&e.isIdentifier(Re.name)&&te(Re.name)===te(Qr)||e.isVariableStatement(Re)&&e.some(Re.declarationList.declarations,function(vn){return Se(vn,Qr)}))}e.nodeHasName=Se;function Ce(Re){return Re.name||X(Re)}e.getNameOfJSDocTypedef=Ce;function O(Re){return!!Re.name}e.isNamedDeclaration=O;function Q(Re){switch(Re.kind){case 79:return Re;case 345:case 338:{var Qr=Re.name;if(Qr.kind===160)return Qr.right;break}case 207:case 220:{var vn=Re;switch(e.getAssignmentDeclarationKind(vn)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(vn.left);case 7:case 8:case 9:return vn.arguments[1];default:return}}case 343:return Ce(Re);case 337:return X(Re);case 270:{var Xn=Re.expression;return e.isIdentifier(Xn)?Xn:void 0}case 206:var gi=Re;if(e.isBindableStaticElementAccessExpression(gi))return gi.argumentExpression}return Re.name}e.getNonAssignedNameOfDeclaration=Q;function V(Re){if(Re!==void 0)return Q(Re)||(e.isFunctionExpression(Re)||e.isArrowFunction(Re)||e.isClassExpression(Re)?z(Re):void 0)}e.getNameOfDeclaration=V;function z(Re){if(Re.parent){if(e.isPropertyAssignment(Re.parent)||e.isBindingElement(Re.parent))return Re.parent.name;if(e.isBinaryExpression(Re.parent)&&Re===Re.parent.right){if(e.isIdentifier(Re.parent.left))return Re.parent.left;if(e.isAccessExpression(Re.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(Re.parent.left)}else if(e.isVariableDeclaration(Re.parent)&&e.isIdentifier(Re.parent.name))return Re.parent.name}else return}e.getAssignedName=z;function Te(Re,Qr){if(Re.name)if(e.isIdentifier(Re.name)){var vn=Re.name.escapedText;return $e(Re.parent,Qr).filter(function(Ia){return e.isJSDocParameterTag(Ia)&&e.isIdentifier(Ia.name)&&Ia.name.escapedText===vn})}else{var Xn=Re.parent.parameters.indexOf(Re);e.Debug.assert(Xn>-1,"Parameters should always be in their parents' parameter list");var gi=$e(Re.parent,Qr).filter(e.isJSDocParameterTag);if(Xn<gi.length)return[gi[Xn]]}return e.emptyArray}function ge(Re){return Te(Re,!1)}e.getJSDocParameterTags=ge;function ke(Re){return Te(Re,!0)}e.getJSDocParameterTagsNoCache=ke;function Me(Re,Qr){var vn=Re.name.escapedText;return $e(Re.parent,Qr).filter(function(Xn){return e.isJSDocTemplateTag(Xn)&&Xn.typeParameters.some(function(gi){return gi.name.escapedText===vn})})}function Ie(Re){return Me(Re,!1)}e.getJSDocTypeParameterTags=Ie;function Ge(Re){return Me(Re,!0)}e.getJSDocTypeParameterTagsNoCache=Ge;function he(Re){return!!He(Re,e.isJSDocParameterTag)}e.hasJSDocParameterTags=he;function ve(Re){return He(Re,e.isJSDocAugmentsTag)}e.getJSDocAugmentsTag=ve;function Ve(Re){return pr(Re,e.isJSDocImplementsTag)}e.getJSDocImplementsTags=Ve;function _e(Re){return He(Re,e.isJSDocClassTag)}e.getJSDocClassTag=_e;function Le(Re){return He(Re,e.isJSDocPublicTag)}e.getJSDocPublicTag=Le;function qe(Re){return He(Re,e.isJSDocPublicTag,!0)}e.getJSDocPublicTagNoCache=qe;function Xe(Re){return He(Re,e.isJSDocPrivateTag)}e.getJSDocPrivateTag=Xe;function De(Re){return He(Re,e.isJSDocPrivateTag,!0)}e.getJSDocPrivateTagNoCache=De;function Ae(Re){return He(Re,e.isJSDocProtectedTag)}e.getJSDocProtectedTag=Ae;function Ye(Re){return He(Re,e.isJSDocProtectedTag,!0)}e.getJSDocProtectedTagNoCache=Ye;function Lr(Re){return He(Re,e.isJSDocReadonlyTag)}e.getJSDocReadonlyTag=Lr;function Er(Re){return He(Re,e.isJSDocReadonlyTag,!0)}e.getJSDocReadonlyTagNoCache=Er;function lr(Re){return He(Re,e.isJSDocOverrideTag,!0)}e.getJSDocOverrideTagNoCache=lr;function Cr(Re){return He(Re,e.isJSDocDeprecatedTag)}e.getJSDocDeprecatedTag=Cr;function Or(Re){return He(Re,e.isJSDocDeprecatedTag,!0)}e.getJSDocDeprecatedTagNoCache=Or;function Ke(Re){return He(Re,e.isJSDocEnumTag)}e.getJSDocEnumTag=Ke;function Pe(Re){return He(Re,e.isJSDocThisTag)}e.getJSDocThisTag=Pe;function Hr(Re){return He(Re,e.isJSDocReturnTag)}e.getJSDocReturnTag=Hr;function ur(Re){return He(Re,e.isJSDocTemplateTag)}e.getJSDocTemplateTag=ur;function vr(Re){var Qr=He(Re,e.isJSDocTypeTag);if(Qr&&Qr.typeExpression&&Qr.typeExpression.type)return Qr}e.getJSDocTypeTag=vr;function de(Re){var Qr=He(Re,e.isJSDocTypeTag);return!Qr&&e.isParameter(Re)&&(Qr=e.find(ge(Re),function(vn){return!!vn.typeExpression})),Qr&&Qr.typeExpression&&Qr.typeExpression.type}e.getJSDocType=de;function Fe(Re){var Qr=Hr(Re);if(Qr&&Qr.typeExpression)return Qr.typeExpression.type;var vn=vr(Re);if(vn&&vn.typeExpression){var Xn=vn.typeExpression.type;if(e.isTypeLiteralNode(Xn)){var gi=e.find(Xn.members,e.isCallSignatureDeclaration);return gi&&gi.type}if(e.isFunctionTypeNode(Xn)||e.isJSDocFunctionType(Xn))return Xn.type}}e.getJSDocReturnType=Fe;function $e(Re,Qr){var vn=Re.jsDocCache;if(vn===void 0||Qr){var Xn=e.getJSDocCommentsAndTags(Re,Qr);e.Debug.assert(Xn.length<2||Xn[0]!==Xn[1]),vn=e.flatMap(Xn,function(gi){return e.isJSDoc(gi)?gi.tags:gi}),Qr||(Re.jsDocCache=vn)}return vn}function Dr(Re){return $e(Re,!1)}e.getJSDocTags=Dr;function Fr(Re){return $e(Re,!0)}e.getJSDocTagsNoCache=Fr;function He(Re,Qr,vn){return e.find($e(Re,vn),Qr)}function pr(Re,Qr){return Dr(Re).filter(Qr)}e.getAllJSDocTags=pr;function Jr(Re,Qr){return Dr(Re).filter(function(vn){return vn.kind===Qr})}e.getAllJSDocTagsOfKind=Jr;function ze(Re){return typeof Re=="string"?Re:Re==null?void 0:Re.map(function(Qr){return Qr.kind===319?Qr.text:"{@link ".concat(Qr.name?e.entityNameToString(Qr.name)+" ":"").concat(Qr.text,"}")}).join("")}e.getTextOfJSDocComment=ze;function Ar(Re){if(e.isJSDocSignature(Re))return e.emptyArray;if(e.isJSDocTypeAlias(Re))return e.Debug.assert(Re.parent.kind===318),e.flatMap(Re.parent.tags,function(Xn){return e.isJSDocTemplateTag(Xn)?Xn.typeParameters:void 0});if(Re.typeParameters)return Re.typeParameters;if(e.isInJSFile(Re)){var Qr=e.getJSDocTypeParameterDeclarations(Re);if(Qr.length)return Qr;var vn=de(Re);if(vn&&e.isFunctionTypeNode(vn)&&vn.typeParameters)return vn.typeParameters}return e.emptyArray}e.getEffectiveTypeParameterDeclarations=Ar;function Yr(Re){return Re.constraint?Re.constraint:e.isJSDocTemplateTag(Re.parent)&&Re===Re.parent.typeParameters[0]?Re.parent.constraint:void 0}e.getEffectiveConstraintOfTypeParameter=Yr;function lt(Re){return Re.kind===79||Re.kind===80}e.isMemberName=lt;function tt(Re){return Re.kind===172||Re.kind===171}e.isGetOrSetAccessorDeclaration=tt;function Rt(Re){return e.isPropertyAccessExpression(Re)&&!!(Re.flags&32)}e.isPropertyAccessChain=Rt;function cn(Re){return e.isElementAccessExpression(Re)&&!!(Re.flags&32)}e.isElementAccessChain=cn;function bn(Re){return e.isCallExpression(Re)&&!!(Re.flags&32)}e.isCallChain=bn;function In(Re){var Qr=Re.kind;return!!(Re.flags&32)&&(Qr===205||Qr===206||Qr===207||Qr===229)}e.isOptionalChain=In;function zn(Re){return In(Re)&&!e.isNonNullExpression(Re)&&!!Re.questionDotToken}e.isOptionalChainRoot=zn;function ir(Re){return zn(Re.parent)&&Re.parent.expression===Re}e.isExpressionOfOptionalChainRoot=ir;function Rr(Re){return!In(Re.parent)||zn(Re.parent)||Re!==Re.parent.expression}e.isOutermostOptionalChain=Rr;function sr(Re){return Re.kind===220&&Re.operatorToken.kind===60}e.isNullishCoalesce=sr;function ye(Re){return e.isTypeReferenceNode(Re)&&e.isIdentifier(Re.typeName)&&Re.typeName.escapedText==="const"&&!Re.typeArguments}e.isConstTypeReference=ye;function or(Re){return e.skipOuterExpressions(Re,8)}e.skipPartiallyEmittedExpressions=or;function fe(Re){return e.isNonNullExpression(Re)&&!!(Re.flags&32)}e.isNonNullChain=fe;function je(Re){return Re.kind===245||Re.kind===244}e.isBreakOrContinueStatement=je;function Ee(Re){return Re.kind===273||Re.kind===272}e.isNamedExportBindings=Ee;function We(Re){switch(Re.kind){case 300:case 301:return!0;default:return!1}}e.isUnparsedTextLike=We;function ee(Re){return We(Re)||Re.kind===298||Re.kind===302}e.isUnparsedNode=ee;function Ne(Re){return Re.kind===345||Re.kind===338}e.isJSDocPropertyLikeTag=Ne;function me(Re){return Ze(Re.kind)}e.isNode=me;function Ze(Re){return Re>=160}e.isNodeKind=Ze;function xr(Re){return Re>=0&&Re<=159}e.isTokenKind=xr;function fr(Re){return xr(Re.kind)}e.isToken=fr;function dr(Re){return Re.hasOwnProperty("pos")&&Re.hasOwnProperty("end")}e.isNodeArray=dr;function et(Re){return 8<=Re&&Re<=14}e.isLiteralKind=et;function yt(Re){return et(Re.kind)}e.isLiteralExpression=yt;function Wr(Re){return 14<=Re&&Re<=17}e.isTemplateLiteralKind=Wr;function tr(Re){return Wr(Re.kind)}e.isTemplateLiteralToken=tr;function Ir(Re){var Qr=Re.kind;return Qr===16||Qr===17}e.isTemplateMiddleOrTemplateTail=Ir;function kr(Re){return e.isImportSpecifier(Re)||e.isExportSpecifier(Re)}e.isImportOrExportSpecifier=kr;function zr(Re){switch(Re.kind){case 269:case 274:return Re.isTypeOnly||Re.parent.parent.isTypeOnly;case 267:return Re.parent.isTypeOnly;case 266:case 264:return Re.isTypeOnly;default:return!1}}e.isTypeOnlyImportOrExportDeclaration=zr;function gt(Re){return e.isStringLiteral(Re)||e.isIdentifier(Re)}e.isAssertionKey=gt;function vt(Re){return Re.kind===10||Wr(Re.kind)}e.isStringTextContainingNode=vt;function ut(Re){return e.isIdentifier(Re)&&(Re.autoGenerateFlags&7)>0}e.isGeneratedIdentifier=ut;function ht(Re){return(e.isPropertyDeclaration(Re)||_t(Re))&&e.isPrivateIdentifier(Re.name)}e.isPrivateIdentifierClassElementDeclaration=ht;function xt(Re){return e.isPropertyAccessExpression(Re)&&e.isPrivateIdentifier(Re.name)}e.isPrivateIdentifierPropertyAccessExpression=xt;function wt(Re){switch(Re){case 126:case 131:case 85:case 135:case 88:case 93:case 123:case 121:case 122:case 144:case 124:case 158:return!0}return!1}e.isModifierKind=wt;function Qt(Re){return!!(e.modifierToFlag(Re)&16476)}e.isParameterPropertyModifier=Qt;function mt(Re){return Qt(Re)||Re===124||Re===158}e.isClassMemberModifier=mt;function rn(Re){return wt(Re.kind)}e.isModifier=rn;function sa(Re){var Qr=Re.kind;return Qr===160||Qr===79}e.isEntityName=sa;function ba(Re){var Qr=Re.kind;return Qr===79||Qr===80||Qr===10||Qr===8||Qr===161}e.isPropertyName=ba;function Jn(Re){var Qr=Re.kind;return Qr===79||Qr===200||Qr===201}e.isBindingName=Jn;function na(Re){return!!Re&&qt(Re.kind)}e.isFunctionLike=na;function Wn(Re){return!!Re&&(qt(Re.kind)||e.isClassStaticBlockDeclaration(Re))}e.isFunctionLikeOrClassStaticBlockDeclaration=Wn;function en(Re){return Re&&Ut(Re.kind)}e.isFunctionLikeDeclaration=en;function St(Re){return Re.kind===110||Re.kind===95}e.isBooleanLiteral=St;function Ut(Re){switch(Re){case 255:case 168:case 170:case 171:case 172:case 212:case 213:return!0;default:return!1}}function qt(Re){switch(Re){case 167:case 173:case 321:case 174:case 175:case 178:case 315:case 179:return!0;default:return Ut(Re)}}e.isFunctionLikeKind=qt;function Pn(Re){return e.isSourceFile(Re)||e.isModuleBlock(Re)||e.isBlock(Re)&&na(Re.parent)}e.isFunctionOrModuleBlock=Pn;function dn(Re){var Qr=Re.kind;return Qr===170||Qr===166||Qr===168||Qr===171||Qr===172||Qr===175||Qr===169||Qr===233}e.isClassElement=dn;function oa(Re){return Re&&(Re.kind===256||Re.kind===225)}e.isClassLike=oa;function pt(Re){return Re&&(Re.kind===171||Re.kind===172)}e.isAccessor=pt;function _t(Re){switch(Re.kind){case 168:case 171:case 172:return!0;default:return!1}}e.isMethodOrAccessor=_t;function Pt(Re){var Qr=Re.kind;return Qr===174||Qr===173||Qr===165||Qr===167||Qr===175}e.isTypeElement=Pt;function It(Re){return Pt(Re)||dn(Re)}e.isClassOrTypeElement=It;function rt(Re){var Qr=Re.kind;return Qr===294||Qr===295||Qr===296||Qr===168||Qr===171||Qr===172}e.isObjectLiteralElementLike=rt;function Cn(Re){return e.isTypeNodeKind(Re.kind)}e.isTypeNode=Cn;function Qn(Re){switch(Re.kind){case 178:case 179:return!0}return!1}e.isFunctionOrConstructorTypeNode=Qn;function Ra(Re){if(Re){var Qr=Re.kind;return Qr===201||Qr===200}return!1}e.isBindingPattern=Ra;function Ci(Re){var Qr=Re.kind;return Qr===203||Qr===204}e.isAssignmentPattern=Ci;function _i(Re){var Qr=Re.kind;return Qr===202||Qr===226}e.isArrayBindingElement=_i;function va(Re){switch(Re.kind){case 253:case 163:case 202:return!0}return!1}e.isDeclarationBindingElement=va;function yi(Re){return ro(Re)||Pi(Re)}e.isBindingOrAssignmentPattern=yi;function ro(Re){switch(Re.kind){case 200:case 204:return!0}return!1}e.isObjectBindingOrAssignmentPattern=ro;function Ka(Re){switch(Re.kind){case 202:case 294:case 295:case 296:return!0}return!1}e.isObjectBindingOrAssignmentElement=Ka;function Pi(Re){switch(Re.kind){case 201:case 203:return!0}return!1}e.isArrayBindingOrAssignmentPattern=Pi;function io(Re){var Qr=Re.kind;return Qr===205||Qr===160||Qr===199}e.isPropertyAccessOrQualifiedNameOrImportTypeNode=io;function ji(Re){var Qr=Re.kind;return Qr===205||Qr===160}e.isPropertyAccessOrQualifiedName=ji;function Hi(Re){switch(Re.kind){case 279:case 278:case 207:case 208:case 209:case 164:return!0;default:return!1}}e.isCallLikeExpression=Hi;function to(Re){return Re.kind===207||Re.kind===208}e.isCallOrNewExpression=to;function No(Re){var Qr=Re.kind;return Qr===222||Qr===14}e.isTemplateLiteral=No;function lo(Re){return Lo(or(Re).kind)}e.isLeftHandSideExpression=lo;function Lo(Re){switch(Re){case 205:case 206:case 208:case 207:case 277:case 278:case 281:case 209:case 203:case 211:case 204:case 225:case 212:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 222:case 95:case 104:case 108:case 110:case 106:case 229:case 230:case 100:return!0;default:return!1}}function Ha(Re){return Yo(or(Re).kind)}e.isUnaryExpression=Ha;function Yo(Re){switch(Re){case 218:case 219:case 214:case 215:case 216:case 217:case 210:return!0;default:return Lo(Re)}}function co(Re){switch(Re.kind){case 219:return!0;case 218:return Re.operator===45||Re.operator===46;default:return!1}}e.isUnaryExpressionWithWrite=co;function za(Re){return hi(or(Re).kind)}e.isExpression=za;function hi(Re){switch(Re){case 221:case 223:case 213:case 220:case 224:case 228:case 226:case 349:case 348:return!0;default:return Yo(Re)}}function Zi(Re){var Qr=Re.kind;return Qr===210||Qr===228}e.isAssertionExpression=Zi;function Po(Re){return e.isNotEmittedStatement(Re)||e.isPartiallyEmittedExpression(Re)}e.isNotEmittedOrPartiallyEmittedNode=Po;function Mo(Re,Qr){switch(Re.kind){case 241:case 242:case 243:case 239:case 240:return!0;case 249:return Qr&&Mo(Re.statement,Qr)}return!1}e.isIterationStatement=Mo;function Fo(Re){return e.isExportAssignment(Re)||e.isExportDeclaration(Re)}e.isScopeMarker=Fo;function zo(Re){return e.some(Re,Fo)}e.hasScopeMarker=zo;function Es(Re){return!e.isAnyImportOrReExport(Re)&&!e.isExportAssignment(Re)&&!e.hasSyntacticModifier(Re,1)&&!e.isAmbientModule(Re)}e.needsScopeMarker=Es;function Cs(Re){return e.isAnyImportOrReExport(Re)||e.isExportAssignment(Re)||e.hasSyntacticModifier(Re,1)}e.isExternalModuleIndicator=Cs;function yr(Re){return Re.kind===242||Re.kind===243}e.isForInOrOfStatement=yr;function dt(Re){return e.isBlock(Re)||za(Re)}e.isConciseBody=dt;function tn(Re){return e.isBlock(Re)}e.isFunctionBody=tn;function Un(Re){return e.isVariableDeclarationList(Re)||za(Re)}e.isForInitializer=Un;function Oe(Re){var Qr=Re.kind;return Qr===261||Qr===260||Qr===79}e.isModuleBody=Oe;function oe(Re){var Qr=Re.kind;return Qr===261||Qr===260}e.isNamespaceBody=oe;function mr(Re){var Qr=Re.kind;return Qr===79||Qr===260}e.isJSDocNamespaceBody=mr;function se(Re){var Qr=Re.kind;return Qr===268||Qr===267}e.isNamedImportBindings=se;function Be(Re){return Re.kind===260||Re.kind===259}e.isModuleOrEnumDeclaration=Be;function er(Re){return Re===213||Re===202||Re===256||Re===225||Re===169||Re===170||Re===259||Re===297||Re===274||Re===255||Re===212||Re===171||Re===266||Re===264||Re===269||Re===257||Re===284||Re===168||Re===167||Re===260||Re===263||Re===267||Re===273||Re===163||Re===294||Re===166||Re===165||Re===172||Re===295||Re===258||Re===162||Re===253||Re===343||Re===336||Re===345}function hr(Re){return Re===255||Re===275||Re===256||Re===257||Re===258||Re===259||Re===260||Re===265||Re===264||Re===271||Re===270||Re===263}function qr(Re){return Re===245||Re===244||Re===252||Re===239||Re===237||Re===235||Re===242||Re===243||Re===241||Re===238||Re===249||Re===246||Re===248||Re===250||Re===251||Re===236||Re===240||Re===247||Re===347||Re===351||Re===350}function Dt(Re){return Re.kind===162?Re.parent&&Re.parent.kind!==342||e.isInJSFile(Re):er(Re.kind)}e.isDeclaration=Dt;function Jt(Re){return hr(Re.kind)}e.isDeclarationStatement=Jt;function Sn(Re){return qr(Re.kind)}e.isStatementButNotDeclaration=Sn;function ta(Re){var Qr=Re.kind;return qr(Qr)||hr(Qr)||xa(Re)}e.isStatement=ta;function xa(Re){return Re.kind!==234||Re.parent!==void 0&&(Re.parent.kind===251||Re.parent.kind===291)?!1:!e.isFunctionBlock(Re)}function Di(Re){var Qr=Re.kind;return qr(Qr)||hr(Qr)||Qr===234}e.isStatementOrBlock=Di;function $a(Re){var Qr=Re.kind;return Qr===276||Qr===160||Qr===79}e.isModuleReference=$a;function Ji(Re){var Qr=Re.kind;return Qr===108||Qr===79||Qr===205}e.isJsxTagNameExpression=Ji;function So(Re){var Qr=Re.kind;return Qr===277||Qr===287||Qr===278||Qr===11||Qr===281}e.isJsxChild=So;function cs(Re){var Qr=Re.kind;return Qr===284||Qr===286}e.isJsxAttributeLike=cs;function bt(Re){var Qr=Re.kind;return Qr===10||Qr===287}e.isStringLiteralOrJsxExpression=bt;function Mn(Re){var Qr=Re.kind;return Qr===279||Qr===278}e.isJsxOpeningLikeElement=Mn;function da(Re){var Qr=Re.kind;return Qr===288||Qr===289}e.isCaseOrDefaultClause=da;function ei(Re){return Re.kind>=307&&Re.kind<=345}e.isJSDocNode=ei;function bi(Re){return Re.kind===318||Re.kind===317||Re.kind===319||Zt(Re)||xi(Re)||e.isJSDocTypeLiteral(Re)||e.isJSDocSignature(Re)}e.isJSDocCommentContainingNode=bi;function xi(Re){return Re.kind>=325&&Re.kind<=345}e.isJSDocTag=xi;function ka(Re){return Re.kind===172}e.isSetAccessor=ka;function mi(Re){return Re.kind===171}e.isGetAccessor=mi;function Xi(Re){var Qr=Re.jsDoc;return!!Qr&&Qr.length>0}e.hasJSDocNodes=Xi;function Gi(Re){return!!Re.type}e.hasType=Gi;function Ro(Re){return!!Re.initializer}e.hasInitializer=Ro;function ko(Re){switch(Re.kind){case 253:case 163:case 202:case 165:case 166:case 294:case 297:return!0;default:return!1}}e.hasOnlyExpressionInitializer=ko;function es(Re){return Re.kind===284||Re.kind===286||rt(Re)}e.isObjectLiteralElement=es;function as(Re){return Re.kind===177||Re.kind===227}e.isTypeReferenceType=as;var pe=1073741823;function wr(Re){for(var Qr=pe,vn=0,Xn=Re;vn<Xn.length;vn++){var gi=Xn[vn];if(!!gi.length){for(var Ia=0;Ia<gi.length&&Ia<Qr&&e.isWhiteSpaceLike(gi.charCodeAt(Ia));Ia++);if(Ia<Qr&&(Qr=Ia),Qr===0)return 0}}return Qr===pe?void 0:Qr}e.guessIndentation=wr;function ft(Re){return Re.kind===10||Re.kind===14}e.isStringLiteralLike=ft;function Zt(Re){return Re.kind===322||Re.kind===323||Re.kind===324}e.isJSDocLinkLike=Zt})(gr||(gr={}));var gr;(function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6;function n(l,re){var cr=l.declarations;if(cr)for(var Vr=0,Nt=cr;Vr<Nt.length;Vr++){var xn=Nt[Vr];if(xn.kind===re)return xn}}e.getDeclarationOfKind=n;function f(){return new e.Map}e.createUnderscoreEscapedMap=f;function d(l){return!!l&&!!l.size}e.hasEntries=d;function a(l){var re=new e.Map;if(l)for(var cr=0,Vr=l;cr<Vr.length;cr++){var Nt=Vr[cr];re.set(Nt.escapedName,Nt)}return re}e.createSymbolTable=a;function p(l){return(l.flags&33554432)!==0}e.isTransientSymbol=p;var N=H();function H(){var l="",re=function(cr){return l+=cr};return{getText:function(){return l},write:re,rawWrite:re,writeKeyword:re,writeOperator:re,writePunctuation:re,writeSpace:re,writeStringLiteral:re,writeLiteral:re,writeParameter:re,writeProperty:re,writeSymbol:function(cr,Vr){return re(cr)},writeTrailingSemicolon:re,writeComment:re,getTextPos:function(){return l.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!l.length&&e.isWhiteSpaceLike(l.charCodeAt(l.length-1))},writeLine:function(){return l+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return l=""},trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}function h(l,re){return l.configFilePath!==re.configFilePath||v(l,re)}e.changesAffectModuleResolution=h;function v(l,re){return q(l,re,e.moduleResolutionOptionDeclarations)}e.optionsHaveModuleResolutionChanges=v;function A(l,re){return q(l,re,e.optionsAffectingProgramStructure)}e.changesAffectingProgramStructure=A;function q(l,re,cr){return l!==re&&cr.some(function(Vr){return!of(Bo(l,Vr),Bo(re,Vr))})}e.optionsHaveChanges=q;function ie(l,re){for(;;){var cr=re(l);if(cr==="quit")return;if(cr!==void 0)return cr;if(e.isSourceFile(l))return;l=l.parent}}e.forEachAncestor=ie;function b(l,re){for(var cr=l.entries(),Vr=cr.next();!Vr.done;Vr=cr.next()){var Nt=Vr.value,xn=Nt[0],Bn=Nt[1],ga=re(Bn,xn);if(ga)return ga}}e.forEachEntry=b;function P(l,re){for(var cr=l.keys(),Vr=cr.next();!Vr.done;Vr=cr.next()){var Nt=re(Vr.value);if(Nt)return Nt}}e.forEachKey=P;function S(l,re){l.forEach(function(cr,Vr){re.set(Vr,cr)})}e.copyEntries=S;function B(l){var re=N.getText();try{return l(N),N.getText()}finally{N.clear(),N.writeKeyword(re)}}e.usingSingleLineStringWriter=B;function J(l){return l.end-l.pos}e.getFullWidth=J;function k(l,re,cr){return l&&l.resolvedModules&&l.resolvedModules.get(re,cr)}e.getResolvedModule=k;function M(l,re,cr,Vr){l.resolvedModules||(l.resolvedModules=e.createModeAwareCache()),l.resolvedModules.set(re,Vr,cr)}e.setResolvedModule=M;function x(l,re,cr){l.resolvedTypeReferenceDirectiveNames||(l.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),l.resolvedTypeReferenceDirectiveNames.set(re,void 0,cr)}e.setResolvedTypeReferenceDirective=x;function w(l,re){return l.path===re.path&&!l.prepend==!re.prepend&&!l.circular==!re.circular}e.projectReferenceIsEqualTo=w;function K(l,re){return l.isExternalLibraryImport===re.isExternalLibraryImport&&l.extension===re.extension&&l.resolvedFileName===re.resolvedFileName&&l.originalPath===re.originalPath&&Z(l.packageId,re.packageId)}e.moduleResolutionIsEqualTo=K;function Z(l,re){return l===re||!!l&&!!re&&l.name===re.name&&l.subModuleName===re.subModuleName&&l.version===re.version}function ne(l){var re=l.name,cr=l.subModuleName,Vr=l.version,Nt=cr?"".concat(re,"/").concat(cr):re;return"".concat(Nt,"@").concat(Vr)}e.packageIdToString=ne;function R(l,re){return l.resolvedFileName===re.resolvedFileName&&l.primary===re.primary&&l.originalPath===re.originalPath}e.typeDirectiveIsEqualTo=R;function Y(l,re,cr,Vr,Nt){e.Debug.assert(l.length===re.length);for(var xn=0;xn<l.length;xn++){var Bn=re[xn],ga=cr&&cr.get(l[xn],Vr&&e.getModeForResolutionAtIndex(Vr,xn)),Ei=ga?!Bn||!Nt(ga,Bn):Bn;if(Ei)return!0}return!1}e.hasChangesInResolutions=Y;function U(l){return $(l),(l.flags&262144)!==0}e.containsParseError=U;function $(l){if(!(l.flags&524288)){var re=(l.flags&65536)!==0||e.forEachChild(l,U);re&&(l.flags|=262144),l.flags|=524288}}function T(l){for(;l&&l.kind!==303;)l=l.parent;return l}e.getSourceFileOfNode=T;function I(l){return T(l.valueDeclaration||Fe(l))}e.getSourceFileOfModule=I;function y(l){switch(l.kind){case 234:case 262:case 241:case 242:case 243:return!0}return!1}e.isStatementWithLocals=y;function D(l,re){return e.Debug.assert(l>=0),e.getLineStarts(re)[l]}e.getStartPositionOfLine=D;function C(l){var re=T(l),cr=e.getLineAndCharacterOfPosition(re,l.pos);return"".concat(re.fileName,"(").concat(cr.line+1,",").concat(cr.character+1,")")}e.nodePosToString=C;function m(l,re){e.Debug.assert(l>=0);var cr=e.getLineStarts(re),Vr=l,Nt=re.text;if(Vr+1===cr.length)return Nt.length-1;var xn=cr[Vr],Bn=cr[Vr+1]-1;for(e.Debug.assert(e.isLineBreak(Nt.charCodeAt(Bn)));xn<=Bn&&e.isLineBreak(Nt.charCodeAt(Bn));)Bn--;return Bn}e.getEndLinePosition=m;function u(l,re,cr){return!(cr&&cr(re))&&!l.identifiers.has(re)}e.isFileLevelUniqueName=u;function g(l){return l===void 0?!0:l.pos===l.end&&l.pos>=0&&l.kind!==1}e.nodeIsMissing=g;function F(l){return!g(l)}e.nodeIsPresent=F;function te(l,re,cr){if(re===void 0||re.length===0)return l;for(var Vr=0;Vr<l.length&&cr(l[Vr]);++Vr);return l.splice.apply(l,Gt([Vr,0],re,!1)),l}function ue(l,re,cr){if(re===void 0)return l;for(var Vr=0;Vr<l.length&&cr(l[Vr]);++Vr);return l.splice(Vr,0,re),l}function X(l){return zr(l)||!!(_e(l)&1048576)}function j(l,re){return te(l,re,zr)}e.insertStatementsAfterStandardPrologue=j;function Se(l,re){return te(l,re,X)}e.insertStatementsAfterCustomPrologue=Se;function Ce(l,re){return ue(l,re,zr)}e.insertStatementAfterStandardPrologue=Ce;function O(l,re){return ue(l,re,X)}e.insertStatementAfterCustomPrologue=O;function Q(l,re,cr){if(l.charCodeAt(re+1)===47&&re+2<cr&&l.charCodeAt(re+2)===47){var Vr=l.substring(re,cr);return!!(e.fullTripleSlashReferencePathRegEx.test(Vr)||e.fullTripleSlashAMDReferencePathRegEx.test(Vr)||Qt.test(Vr)||mt.test(Vr))}return!1}e.isRecognizedTripleSlashComment=Q;function V(l,re){return l.charCodeAt(re+1)===42&&l.charCodeAt(re+2)===33}e.isPinnedComment=V;function z(l,re){var cr=new e.Map(re.map(function(Bn){return["".concat(e.getLineAndCharacterOfPosition(l,Bn.range.end).line),Bn]})),Vr=new e.Map;return{getUnusedExpectations:Nt,markUsed:xn};function Nt(){return e.arrayFrom(cr.entries()).filter(function(Bn){var ga=Bn[0],Ei=Bn[1];return Ei.type===0&&!Vr.get(ga)}).map(function(Bn){Bn[0];var ga=Bn[1];return ga})}function xn(Bn){return cr.has("".concat(Bn))?(Vr.set("".concat(Bn),!0),!0):!1}}e.createCommentDirectivesMap=z;function Te(l,re,cr){return g(l)?l.pos:e.isJSDocNode(l)||l.kind===11?e.skipTrivia((re||T(l)).text,l.pos,!1,!0):cr&&e.hasJSDocNodes(l)?Te(l.jsDoc[0],re):l.kind===346&&l._children.length>0?Te(l._children[0],re,cr):e.skipTrivia((re||T(l)).text,l.pos,!1,!1,qr(l))}e.getTokenPosOfNode=Te;function ge(l,re){return g(l)||!l.decorators?Te(l,re):e.skipTrivia((re||T(l)).text,l.decorators.end)}e.getNonDecoratorTokenPosOfNode=ge;function ke(l,re,cr){return cr===void 0&&(cr=!1),Ge(l.text,re,cr)}e.getSourceTextOfNodeFromSourceFile=ke;function Me(l){return!!e.findAncestor(l,e.isJSDocTypeExpression)}function Ie(l){return!!(e.isExportDeclaration(l)&&l.exportClause&&e.isNamespaceExport(l.exportClause)&&l.exportClause.name.escapedText==="default")}e.isExportNamespaceAsDefaultDeclaration=Ie;function Ge(l,re,cr){if(cr===void 0&&(cr=!1),g(re))return"";var Vr=l.substring(cr?re.pos:e.skipTrivia(l,re.pos),re.end);return Me(re)&&(Vr=Vr.split(/\r\n|\n|\r/).map(function(Nt){return e.trimStringStart(Nt.replace(/^\s*\*/,""))}).join(`
|
|
`)),Vr}e.getTextOfNodeFromSourceText=Ge;function he(l,re){return re===void 0&&(re=!1),ke(T(l),l,re)}e.getTextOfNode=he;function ve(l){return l.pos}function Ve(l,re){return e.binarySearch(l,re,ve,e.compareValues)}e.indexOfNode=Ve;function _e(l){var re=l.emitNode;return re&&re.flags||0}e.getEmitFlags=_e;function Le(){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=Le,function(l){l[l.None=0]="None",l[l.NeverAsciiEscape=1]="NeverAsciiEscape",l[l.JsxAttributeEscape=2]="JsxAttributeEscape",l[l.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",l[l.AllowNumericSeparator=8]="AllowNumericSeparator"}(e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}));function qe(l,re,cr){var Vr;if(Xe(l,cr))return ke(re,l);switch(l.kind){case 10:{var Nt=cr&2?Mu:cr&1||_e(l)&16777216?Ru:Pu;return l.singleQuote?"'"+Nt(l.text,39)+"'":'"'+Nt(l.text,34)+'"'}case 14:case 15:case 16:case 17:{var Nt=cr&1||_e(l)&16777216?Ru:Pu,xn=(Vr=l.rawText)!==null&&Vr!==void 0?Vr:bf(Nt(l.text,96));switch(l.kind){case 14:return"`"+xn+"`";case 15:return"`"+xn+"${";case 16:return"}"+xn+"${";case 17:return"}"+xn+"`"}break}case 8:case 9:return l.text;case 13:return cr&4&&l.isUnterminated?l.text+(l.text.charCodeAt(l.text.length-1)===92?" /":"/"):l.text}return e.Debug.fail("Literal kind '".concat(l.kind,"' not accounted for."))}e.getLiteralText=qe;function Xe(l,re){return Fd(l)||!l.parent||re&4&&l.isUnterminated?!1:e.isNumericLiteral(l)&&l.numericLiteralFlags&512?!!(re&8):!e.isBigIntLiteral(l)}function De(l){return e.isString(l)?'"'+Pu(l)+'"':""+l}e.getTextOfConstantValue=De;function Ae(l){return e.getBaseFileName(l).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}e.makeIdentifierFromModuleName=Ae;function Ye(l){return(e.getCombinedNodeFlags(l)&3)!==0||Lr(l)}e.isBlockOrCatchScoped=Ye;function Lr(l){var re=Pd(l);return re.kind===253&&re.parent.kind===291}e.isCatchClauseVariableDeclarationOrBindingElement=Lr;function Er(l){return e.isModuleDeclaration(l)&&(l.name.kind===10||ur(l))}e.isAmbientModule=Er;function lr(l){return e.isModuleDeclaration(l)&&l.name.kind===10}e.isModuleWithStringLiteralName=lr;function Cr(l){return e.isModuleDeclaration(l)&&e.isStringLiteral(l.name)}e.isNonGlobalAmbientModule=Cr;function Or(l){return e.isModuleDeclaration(l)||e.isIdentifier(l)}e.isEffectiveModuleDeclaration=Or;function Ke(l){return Pe(l.valueDeclaration)}e.isShorthandAmbientModuleSymbol=Ke;function Pe(l){return!!l&&l.kind===260&&!l.body}function Hr(l){return l.kind===303||l.kind===260||e.isFunctionLikeOrClassStaticBlockDeclaration(l)}e.isBlockScopedContainerTopLevel=Hr;function ur(l){return!!(l.flags&1024)}e.isGlobalScopeAugmentation=ur;function vr(l){return Er(l)&&de(l)}e.isExternalModuleAugmentation=vr;function de(l){switch(l.parent.kind){case 303:return e.isExternalModule(l.parent);case 261:return Er(l.parent.parent)&&e.isSourceFile(l.parent.parent.parent)&&!e.isExternalModule(l.parent.parent.parent)}return!1}e.isModuleAugmentationExternal=de;function Fe(l){var re;return(re=l.declarations)===null||re===void 0?void 0:re.find(function(cr){return!vr(cr)&&!(e.isModuleDeclaration(cr)&&ur(cr))})}e.getNonAugmentationDeclaration=Fe;function $e(l){return l===e.ModuleKind.CommonJS||l===e.ModuleKind.Node12||l===e.ModuleKind.NodeNext}function Dr(l,re){return e.isExternalModule(l)||re.isolatedModules||$e(vd(re))&&!!l.commonJsModuleIndicator}e.isEffectiveExternalModule=Dr;function Fr(l,re){switch(l.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return l.isDeclarationFile?!1:pa(re,"alwaysStrict")||e.startsWithUseStrict(l.statements)?!0:e.isExternalModule(l)||re.isolatedModules?vd(re)>=e.ModuleKind.ES2015?!0:!re.noImplicitUseStrict:!1}e.isEffectiveStrictModeSourceFile=Fr;function He(l,re){switch(l.kind){case 303:case 262:case 291:case 260:case 241:case 242:case 243:case 170:case 168:case 171:case 172:case 255:case 212:case 213:case 166:case 169:return!0;case 234:return!e.isFunctionLikeOrClassStaticBlockDeclaration(re)}return!1}e.isBlockScope=He;function pr(l){switch(l.kind){case 336:case 343:case 321:return!0;default:return e.assertType(l),Jr(l)}}e.isDeclarationWithTypeParameters=pr;function Jr(l){switch(l.kind){case 173:case 174:case 167:case 175:case 178:case 179:case 315:case 256:case 225:case 257:case 258:case 342:case 255:case 168:case 170:case 171:case 172:case 212:case 213:return!0;default:return e.assertType(l),!1}}e.isDeclarationWithTypeParameterChildren=Jr;function ze(l){switch(l.kind){case 265:case 264:return!0;default:return!1}}e.isAnyImportSyntax=ze;function Ar(l){switch(l.kind){case 265:case 264:case 236:case 256:case 255:case 260:case 258:case 257:case 259:return!0;default:return!1}}e.isLateVisibilityPaintedStatement=Ar;function Yr(l){return lt(l)||e.isModuleDeclaration(l)||e.isImportTypeNode(l)||tr(l)}e.hasPossibleExternalModuleReference=Yr;function lt(l){return ze(l)||e.isExportDeclaration(l)}e.isAnyImportOrReExport=lt;function tt(l){return e.findAncestor(l.parent,function(re){return He(re,re.parent)})}e.getEnclosingBlockScopeContainer=tt;function Rt(l,re){for(var cr=tt(l);cr;)re(cr),cr=tt(cr)}e.forEachEnclosingBlockScopeContainer=Rt;function cn(l){return!l||J(l)===0?"(Missing)":he(l)}e.declarationNameToString=cn;function bn(l){return l.declaration?cn(l.declaration.parameters[0].name):void 0}e.getNameFromIndexInfo=bn;function In(l){return l.kind===161&&!ks(l.expression)}e.isComputedNonLiteralName=In;function zn(l){switch(l.kind){case 79:case 80:return l.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(l.text);case 161:return ks(l.expression)?e.escapeLeadingUnderscores(l.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(l)}}e.getTextOfPropertyName=zn;function ir(l){switch(l.kind){case 108:return"this";case 80:case 79:return J(l)===0?e.idText(l):he(l);case 160:return ir(l.left)+"."+ir(l.right);case 205:return e.isIdentifier(l.name)||e.isPrivateIdentifier(l.name)?ir(l.expression)+"."+ir(l.name):e.Debug.assertNever(l.name);case 309:return ir(l.left)+ir(l.right);default:return e.Debug.assertNever(l)}}e.entityNameToString=ir;function Rr(l,re,cr,Vr,Nt,xn){var Bn=T(l);return ye(Bn,l,re,cr,Vr,Nt,xn)}e.createDiagnosticForNode=Rr;function sr(l,re,cr,Vr,Nt,xn,Bn){var ga=e.skipTrivia(l.text,re.pos);return An(l,ga,re.end-ga,cr,Vr,Nt,xn,Bn)}e.createDiagnosticForNodeArray=sr;function ye(l,re,cr,Vr,Nt,xn,Bn){var ga=me(l,re);return An(l,ga.start,ga.length,cr,Vr,Nt,xn,Bn)}e.createDiagnosticForNodeInSourceFile=ye;function or(l,re,cr){var Vr=T(l),Nt=me(Vr,l);return je(Vr,Nt.start,Nt.length,re,cr)}e.createDiagnosticForNodeFromMessageChain=or;function fe(l,re,cr){e.Debug.assertGreaterThanOrEqual(re,0),e.Debug.assertGreaterThanOrEqual(cr,0),l&&(e.Debug.assertLessThanOrEqual(re,l.text.length),e.Debug.assertLessThanOrEqual(re+cr,l.text.length))}function je(l,re,cr,Vr,Nt){return fe(l,re,cr),{file:l,start:re,length:cr,code:Vr.code,category:Vr.category,messageText:Vr.next?Vr:Vr.messageText,relatedInformation:Nt}}e.createFileDiagnosticFromMessageChain=je;function Ee(l,re,cr){return{file:l,start:0,length:0,code:re.code,category:re.category,messageText:re.next?re:re.messageText,relatedInformation:cr}}e.createDiagnosticForFileFromMessageChain=Ee;function We(l,re,cr){return{file:l,start:re.pos,length:re.end-re.pos,code:cr.code,category:cr.category,messageText:cr.message}}e.createDiagnosticForRange=We;function ee(l,re){var cr=e.createScanner(l.languageVersion,!0,l.languageVariant,l.text,void 0,re);cr.scan();var Vr=cr.getTokenPos();return e.createTextSpanFromBounds(Vr,cr.getTextPos())}e.getSpanOfTokenAtPosition=ee;function Ne(l,re){var cr=e.skipTrivia(l.text,re.pos);if(re.body&&re.body.kind===234){var Vr=e.getLineAndCharacterOfPosition(l,re.body.pos).line,Nt=e.getLineAndCharacterOfPosition(l,re.body.end).line;if(Vr<Nt)return e.createTextSpan(cr,m(Vr,l)-cr+1)}return e.createTextSpanFromBounds(cr,re.end)}function me(l,re){var cr=re;switch(re.kind){case 303:var Vr=e.skipTrivia(l.text,0,!1);return Vr===l.text.length?e.createTextSpan(0,0):ee(l,Vr);case 253:case 202:case 256:case 225:case 257:case 260:case 259:case 297:case 255:case 212:case 168:case 171:case 172:case 258:case 166:case 165:case 267:cr=re.name;break;case 213:return Ne(l,re);case 288:case 289:var Nt=e.skipTrivia(l.text,re.pos),xn=re.statements.length>0?re.statements[0].pos:re.end;return e.createTextSpanFromBounds(Nt,xn)}if(cr===void 0)return ee(l,re.pos);e.Debug.assert(!e.isJSDoc(cr));var Bn=g(cr),ga=Bn||e.isJsxText(re)?cr.pos:e.skipTrivia(l.text,cr.pos);return Bn?(e.Debug.assert(ga===cr.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(ga===cr.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(ga>=cr.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(ga<=cr.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(ga,cr.end)}e.getErrorSpanForNode=me;function Ze(l){return(l.externalModuleIndicator||l.commonJsModuleIndicator)!==void 0}e.isExternalOrCommonJsModule=Ze;function xr(l){return l.scriptKind===6}e.isJsonSourceFile=xr;function fr(l){return!!(e.getCombinedModifierFlags(l)&2048)}e.isEnumConst=fr;function dr(l){return!!(e.getCombinedModifierFlags(l)&64&&!e.isParameterPropertyDeclaration(l,l.parent))}e.isDeclarationReadonly=dr;function et(l){return!!(e.getCombinedNodeFlags(l)&2)}e.isVarConst=et;function yt(l){return!!(e.getCombinedNodeFlags(l)&1)}e.isLet=yt;function Wr(l){return l.kind===207&&l.expression.kind===106}e.isSuperCall=Wr;function tr(l){return l.kind===207&&l.expression.kind===100}e.isImportCall=tr;function Ir(l){return e.isMetaProperty(l)&&l.keywordToken===100&&l.name.escapedText==="meta"}e.isImportMeta=Ir;function kr(l){return e.isImportTypeNode(l)&&e.isLiteralTypeNode(l.argument)&&e.isStringLiteral(l.argument.literal)}e.isLiteralImportTypeNode=kr;function zr(l){return l.kind===237&&l.expression.kind===10}e.isPrologueDirective=zr;function gt(l){return!!(_e(l)&1048576)}e.isCustomPrologue=gt;function vt(l){return gt(l)&&e.isFunctionDeclaration(l)}e.isHoistedFunction=vt;function ut(l){return e.isIdentifier(l.name)&&!l.initializer}function ht(l){return gt(l)&&e.isVariableStatement(l)&&e.every(l.declarationList.declarations,ut)}e.isHoistedVariableStatement=ht;function xt(l,re){return l.kind!==11?e.getLeadingCommentRanges(re.text,l.pos):void 0}e.getLeadingCommentRangesOfNode=xt;function wt(l,re){var cr=l.kind===163||l.kind===162||l.kind===212||l.kind===213||l.kind===211||l.kind===253?e.concatenate(e.getTrailingCommentRanges(re,l.pos),e.getLeadingCommentRanges(re,l.pos)):e.getLeadingCommentRanges(re,l.pos);return e.filter(cr,function(Vr){return re.charCodeAt(Vr.pos+1)===42&&re.charCodeAt(Vr.pos+2)===42&&re.charCodeAt(Vr.pos+3)!==47})}e.getJSDocCommentRanges=wt,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Qt=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var mt=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function rn(l){if(176<=l.kind&&l.kind<=199)return!0;switch(l.kind){case 130:case 154:case 146:case 157:case 149:case 133:case 150:case 147:case 152:case 143:return!0;case 114:return l.parent.kind!==216;case 227:return!bc(l);case 162:return l.parent.kind===194||l.parent.kind===189;case 79:(l.parent.kind===160&&l.parent.right===l||l.parent.kind===205&&l.parent.name===l)&&(l=l.parent),e.Debug.assert(l.kind===79||l.kind===160||l.kind===205,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 160:case 205:case 108:{var re=l.parent;if(re.kind===180)return!1;if(re.kind===199)return!re.isTypeOf;if(176<=re.kind&&re.kind<=199)return!0;switch(re.kind){case 227:return!bc(re);case 162:return l===re.constraint;case 342:return l===re.constraint;case 166:case 165:case 163:case 253:return l===re.type;case 255:case 212:case 213:case 170:case 168:case 167:case 171:case 172:return l===re.type;case 173:case 174:case 175:return l===re.type;case 210:return l===re.type;case 207:case 208:return e.contains(re.typeArguments,l);case 209:return!1}}}return!1}e.isPartOfTypeNode=rn;function sa(l,re){for(;l;){if(l.kind===re)return!0;l=l.parent}return!1}e.isChildOfNodeWithKind=sa;function ba(l,re){return cr(l);function cr(Vr){switch(Vr.kind){case 246:return re(Vr);case 262:case 234:case 238:case 239:case 240:case 241:case 242:case 243:case 247:case 248:case 288:case 289:case 249:case 251:case 291:return e.forEachChild(Vr,cr)}}}e.forEachReturnStatement=ba;function Jn(l,re){return cr(l);function cr(Vr){switch(Vr.kind){case 223:re(Vr);var Nt=Vr.expression;Nt&&cr(Nt);return;case 259:case 257:case 260:case 258:return;default:if(e.isFunctionLike(Vr)){if(Vr.name&&Vr.name.kind===161){cr(Vr.name.expression);return}}else rn(Vr)||e.forEachChild(Vr,cr)}}}e.forEachYieldExpression=Jn;function na(l){return l&&l.kind===182?l.elementType:l&&l.kind===177?e.singleOrUndefined(l.typeArguments):void 0}e.getRestParameterElementType=na;function Wn(l){switch(l.kind){case 257:case 256:case 225:case 181:return l.members;case 204:return l.properties}}e.getMembersOfDeclaration=Wn;function en(l){if(l)switch(l.kind){case 202:case 297:case 163:case 294:case 166:case 165:case 295:case 253:return!0}return!1}e.isVariableLike=en;function St(l){return en(l)||e.isAccessor(l)}e.isVariableLikeOrAccessor=St;function Ut(l){return l.parent.kind===254&&l.parent.parent.kind===236}e.isVariableDeclarationInVariableStatement=Ut;function qt(l){return e.isVariableDeclaration(l)?et(l)&&e.isIdentifier(l.name)&&Ut(l):e.isPropertyDeclaration(l)?If(l)&&zc(l):e.isPropertySignature(l)&&If(l)}e.isValidESSymbolDeclaration=qt;function Pn(l){switch(l.kind){case 168:case 167:case 170:case 171:case 172:case 255:case 212:return!0}return!1}e.introducesArgumentsExoticObject=Pn;function dn(l,re){for(;;){if(re&&re(l),l.statement.kind!==249)return l.statement;l=l.statement}}e.unwrapInnermostStatementOfLabel=dn;function oa(l){return l&&l.kind===234&&e.isFunctionLike(l.parent)}e.isFunctionBlock=oa;function pt(l){return l&&l.kind===168&&l.parent.kind===204}e.isObjectLiteralMethod=pt;function _t(l){return(l.kind===168||l.kind===171||l.kind===172)&&(l.parent.kind===204||l.parent.kind===225)}e.isObjectLiteralOrClassExpressionMethodOrAccessor=_t;function Pt(l){return l&&l.kind===1}e.isIdentifierTypePredicate=Pt;function It(l){return l&&l.kind===0}e.isThisTypePredicate=It;function rt(l,re,cr){return l.properties.filter(function(Vr){if(Vr.kind===294){var Nt=zn(Vr.name);return re===Nt||!!cr&&cr===Nt}return!1})}e.getPropertyAssignment=rt;function Cn(l,re,cr){return e.firstDefined(rt(l,re),function(Vr){return e.isArrayLiteralExpression(Vr.initializer)?e.find(Vr.initializer.elements,function(Nt){return e.isStringLiteral(Nt)&&Nt.text===cr}):void 0})}e.getPropertyArrayElementValue=Cn;function Qn(l){if(l&&l.statements.length){var re=l.statements[0].expression;return e.tryCast(re,e.isObjectLiteralExpression)}}e.getTsConfigObjectLiteralExpression=Qn;function Ra(l,re,cr){return e.firstDefined(Ci(l,re),function(Vr){return e.isArrayLiteralExpression(Vr.initializer)?e.find(Vr.initializer.elements,function(Nt){return e.isStringLiteral(Nt)&&Nt.text===cr}):void 0})}e.getTsConfigPropArrayElementValue=Ra;function Ci(l,re){var cr=Qn(l);return cr?rt(cr,re):e.emptyArray}e.getTsConfigPropArray=Ci;function _i(l){return e.findAncestor(l.parent,e.isFunctionLike)}e.getContainingFunction=_i;function va(l){return e.findAncestor(l.parent,e.isFunctionLikeDeclaration)}e.getContainingFunctionDeclaration=va;function yi(l){return e.findAncestor(l.parent,e.isClassLike)}e.getContainingClass=yi;function ro(l){return e.findAncestor(l.parent,function(re){return e.isClassLike(re)||e.isFunctionLike(re)?"quit":e.isClassStaticBlockDeclaration(re)})}e.getContainingClassStaticBlock=ro;function Ka(l){return e.findAncestor(l.parent,e.isFunctionLikeOrClassStaticBlockDeclaration)}e.getContainingFunctionOrClassStaticBlock=Ka;function Pi(l,re){for(e.Debug.assert(l.kind!==303);;){if(l=l.parent,!l)return e.Debug.fail();switch(l.kind){case 161:if(e.isClassLike(l.parent.parent))return l;l=l.parent;break;case 164:l.parent.kind===163&&e.isClassElement(l.parent.parent)?l=l.parent.parent:e.isClassElement(l.parent)&&(l=l.parent);break;case 213:if(!re)continue;case 255:case 212:case 260:case 169:case 166:case 165:case 168:case 167:case 170:case 171:case 172:case 173:case 174:case 175:case 259:case 303:return l}}}e.getThisContainer=Pi;function io(l){e.isIdentifier(l)&&(e.isClassDeclaration(l.parent)||e.isFunctionDeclaration(l.parent))&&l.parent.name===l&&(l=l.parent);var re=Pi(l,!0);return e.isSourceFile(re)}e.isInTopLevelContext=io;function ji(l){var re=Pi(l,!1);if(re)switch(re.kind){case 170:case 255:case 212:return re}}e.getNewTargetContainer=ji;function Hi(l,re){for(;;){if(l=l.parent,!l)return l;switch(l.kind){case 161:l=l.parent;break;case 255:case 212:case 213:if(!re)continue;case 166:case 165:case 168:case 167:case 170:case 171:case 172:case 169:return l;case 164:l.parent.kind===163&&e.isClassElement(l.parent.parent)?l=l.parent.parent:e.isClassElement(l.parent)&&(l=l.parent);break}}}e.getSuperContainer=Hi;function to(l){if(l.kind===212||l.kind===213){for(var re=l,cr=l.parent;cr.kind===211;)re=cr,cr=cr.parent;if(cr.kind===207&&cr.expression===re)return cr}}e.getImmediatelyInvokedFunctionExpression=to;function No(l){return l.kind===106||lo(l)}e.isSuperOrSuperProperty=No;function lo(l){var re=l.kind;return(re===205||re===206)&&l.expression.kind===106}e.isSuperProperty=lo;function Lo(l){var re=l.kind;return(re===205||re===206)&&l.expression.kind===108}e.isThisProperty=Lo;function Ha(l){var re;return!!l&&e.isVariableDeclaration(l)&&((re=l.initializer)===null||re===void 0?void 0:re.kind)===108}e.isThisInitializedDeclaration=Ha;function Yo(l){return!!l&&(e.isShorthandPropertyAssignment(l)||e.isPropertyAssignment(l))&&e.isBinaryExpression(l.parent.parent)&&l.parent.parent.operatorToken.kind===63&&l.parent.parent.right.kind===108}e.isThisInitializedObjectBindingExpression=Yo;function co(l){switch(l.kind){case 177:return l.typeName;case 227:return qc(l.expression)?l.expression:void 0;case 79:case 160:return l}}e.getEntityNameFromTypeNode=co;function za(l){switch(l.kind){case 209:return l.tag;case 279:case 278:return l.tagName;default:return l.expression}}e.getInvokedExpression=za;function hi(l,re,cr){if(e.isNamedDeclaration(l)&&e.isPrivateIdentifier(l.name))return!1;switch(l.kind){case 256:return!0;case 166:return re.kind===256;case 171:case 172:case 168:return l.body!==void 0&&re.kind===256;case 163:return re.body!==void 0&&(re.kind===170||re.kind===168||re.kind===172)&&cr.kind===256}return!1}e.nodeCanBeDecorated=hi;function Zi(l,re,cr){return l.decorators!==void 0&&hi(l,re,cr)}e.nodeIsDecorated=Zi;function Po(l,re,cr){return Zi(l,re,cr)||Mo(l,re)}e.nodeOrChildIsDecorated=Po;function Mo(l,re){switch(l.kind){case 256:return e.some(l.members,function(cr){return Po(cr,l,re)});case 168:case 172:case 170:return e.some(l.parameters,function(cr){return Zi(cr,l,re)});default:return!1}}e.childIsDecorated=Mo;function Fo(l){if(Zi(l))return!0;var re=Sf(l);return!!re&&Mo(re,l)}e.classOrConstructorParameterIsDecorated=Fo;function zo(l){var re=l.parent;return re.kind===279||re.kind===278||re.kind===280?re.tagName===l:!1}e.isJSXTagName=zo;function Es(l){switch(l.kind){case 106:case 104:case 110:case 95:case 13:case 203:case 204:case 205:case 206:case 207:case 208:case 209:case 228:case 210:case 229:case 211:case 212:case 225:case 213:case 216:case 214:case 215:case 218:case 219:case 220:case 221:case 224:case 222:case 226:case 277:case 278:case 281:case 223:case 217:case 230:return!0;case 160:for(;l.parent.kind===160;)l=l.parent;return l.parent.kind===180||e.isJSDocLinkLike(l.parent)||e.isJSDocNameReference(l.parent)||e.isJSDocMemberName(l.parent)||zo(l);case 309:for(;e.isJSDocMemberName(l.parent);)l=l.parent;return l.parent.kind===180||e.isJSDocLinkLike(l.parent)||e.isJSDocNameReference(l.parent)||e.isJSDocMemberName(l.parent)||zo(l);case 80:return e.isBinaryExpression(l.parent)&&l.parent.left===l&&l.parent.operatorToken.kind===101;case 79:if(l.parent.kind===180||e.isJSDocLinkLike(l.parent)||e.isJSDocNameReference(l.parent)||e.isJSDocMemberName(l.parent)||zo(l))return!0;case 8:case 9:case 10:case 14:case 108:return Cs(l);default:return!1}}e.isExpressionNode=Es;function Cs(l){var re=l.parent;switch(re.kind){case 253:case 163:case 166:case 165:case 297:case 294:case 202:return re.initializer===l;case 237:case 238:case 239:case 240:case 246:case 247:case 248:case 288:case 250:return re.expression===l;case 241:var cr=re;return cr.initializer===l&&cr.initializer.kind!==254||cr.condition===l||cr.incrementor===l;case 242:case 243:var Vr=re;return Vr.initializer===l&&Vr.initializer.kind!==254||Vr.expression===l;case 210:case 228:return l===re.expression;case 232:return l===re.expression;case 161:return l===re.expression;case 164:case 287:case 286:case 296:return!0;case 227:return re.expression===l&&bc(re);case 295:return re.objectAssignmentInitializer===l;default:return Es(re)}}e.isInExpressionContext=Cs;function yr(l){for(;l.kind===160||l.kind===79;)l=l.parent;return l.kind===180}e.isPartOfTypeQuery=yr;function dt(l){return e.isNamespaceExport(l)&&!!l.parent.moduleSpecifier}e.isNamespaceReexportDeclaration=dt;function tn(l){return l.kind===264&&l.moduleReference.kind===276}e.isExternalModuleImportEqualsDeclaration=tn;function Un(l){return e.Debug.assert(tn(l)),l.moduleReference.expression}e.getExternalModuleImportEqualsDeclarationExpression=Un;function Oe(l){return ta(l)&&ml(l.initializer).arguments[0]}e.getExternalModuleRequireArgument=Oe;function oe(l){return l.kind===264&&l.moduleReference.kind!==276}e.isInternalModuleImportEqualsDeclaration=oe;function mr(l){return Be(l)}e.isSourceFileJS=mr;function se(l){return!Be(l)}e.isSourceFileNotJS=se;function Be(l){return!!l&&!!(l.flags&131072)}e.isInJSFile=Be;function er(l){return!!l&&!!(l.flags&33554432)}e.isInJsonFile=er;function hr(l){return!xr(l)}e.isSourceFileNotJson=hr;function qr(l){return!!l&&!!(l.flags&4194304)}e.isInJSDoc=qr;function Dt(l){return e.isTypeReferenceNode(l)&&e.isIdentifier(l.typeName)&&l.typeName.escapedText==="Object"&&l.typeArguments&&l.typeArguments.length===2&&(l.typeArguments[0].kind===149||l.typeArguments[0].kind===146)}e.isJSDocIndexSignature=Dt;function Jt(l,re){if(l.kind!==207)return!1;var cr=l,Vr=cr.expression,Nt=cr.arguments;if(Vr.kind!==79||Vr.escapedText!=="require"||Nt.length!==1)return!1;var xn=Nt[0];return!re||e.isStringLiteralLike(xn)}e.isRequireCall=Jt;function Sn(l){return xa(l,!1)}e.isVariableDeclarationInitializedToRequire=Sn;function ta(l){return xa(l,!0)}e.isVariableDeclarationInitializedToBareOrAccessedRequire=ta;function xa(l,re){return l.kind===202&&(l=l.parent.parent),e.isVariableDeclaration(l)&&!!l.initializer&&Jt(re?ml(l.initializer):l.initializer,!0)}function Di(l){return e.isVariableStatement(l)&&l.declarationList.declarations.length>0&&e.every(l.declarationList.declarations,function(re){return Sn(re)})}e.isRequireVariableStatement=Di;function $a(l){return l===39||l===34}e.isSingleOrDoubleQuote=$a;function Ji(l,re){return ke(re,l).charCodeAt(0)===34}e.isStringDoubleQuoted=Ji;function So(l){return e.isBinaryExpression(l)||ul(l)||e.isIdentifier(l)||e.isCallExpression(l)}e.isAssignmentDeclaration=So;function cs(l){return Be(l)&&l.initializer&&e.isBinaryExpression(l.initializer)&&(l.initializer.operatorToken.kind===56||l.initializer.operatorToken.kind===60)&&l.name&&qc(l.name)&&mi(l.name,l.initializer.left)?l.initializer.right:l.initializer}e.getEffectiveInitializer=cs;function bt(l){var re=cs(l);return re&&ei(re,Ec(l.name))}e.getDeclaredExpandoInitializer=bt;function Mn(l,re){return e.forEach(l.properties,function(cr){return e.isPropertyAssignment(cr)&&e.isIdentifier(cr.name)&&cr.name.escapedText==="value"&&cr.initializer&&ei(cr.initializer,re)})}function da(l){if(l&&l.parent&&e.isBinaryExpression(l.parent)&&l.parent.operatorToken.kind===63){var re=Ec(l.parent.left);return ei(l.parent.right,re)||bi(l.parent.left,l.parent.right,re)}if(l&&e.isCallExpression(l)&&as(l)){var cr=Mn(l.arguments[2],l.arguments[1].text==="prototype");if(cr)return cr}}e.getAssignedExpandoInitializer=da;function ei(l,re){if(e.isCallExpression(l)){var cr=Si(l.expression);return cr.kind===212||cr.kind===213?l:void 0}if(l.kind===212||l.kind===225||l.kind===213||e.isObjectLiteralExpression(l)&&(l.properties.length===0||re))return l}e.getExpandoInitializer=ei;function bi(l,re,cr){var Vr=e.isBinaryExpression(re)&&(re.operatorToken.kind===56||re.operatorToken.kind===60)&&ei(re.right,cr);if(Vr&&mi(l,re.left))return Vr}function xi(l){var re=e.isVariableDeclaration(l.parent)?l.parent.name:e.isBinaryExpression(l.parent)&&l.parent.operatorToken.kind===63?l.parent.left:void 0;return re&&ei(l.right,Ec(re))&&qc(re)&&mi(re,l.left)}e.isDefaultedExpandoInitializer=xi;function ka(l){if(e.isBinaryExpression(l.parent)){var re=(l.parent.operatorToken.kind===56||l.parent.operatorToken.kind===60)&&e.isBinaryExpression(l.parent.parent)?l.parent.parent:l.parent;if(re.operatorToken.kind===63&&e.isIdentifier(re.left))return re.left}else if(e.isVariableDeclaration(l.parent))return l.parent.name}e.getNameOfExpando=ka;function mi(l,re){if($f(l)&&$f(re))return Od(l)===Od(re);if(e.isIdentifier(l)&&pe(re)&&(re.expression.kind===108||e.isIdentifier(re.expression)&&(re.expression.escapedText==="window"||re.expression.escapedText==="self"||re.expression.escapedText==="global"))){var cr=Qr(re);return e.isPrivateIdentifier(cr)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),mi(l,cr)}return pe(l)&&pe(re)?Ia(l)===Ia(re)&&mi(l.expression,re.expression):!1}e.isSameEntityName=mi;function Xi(l){for(;Xd(l,!0);)l=l.right;return l}e.getRightMostAssignedExpression=Xi;function Gi(l){return e.isIdentifier(l)&&l.escapedText==="exports"}e.isExportsIdentifier=Gi;function Ro(l){return e.isIdentifier(l)&&l.escapedText==="module"}e.isModuleIdentifier=Ro;function ko(l){return(e.isPropertyAccessExpression(l)||wr(l))&&Ro(l.expression)&&Ia(l)==="exports"}e.isModuleExportsAccessExpression=ko;function es(l){var re=vn(l);return re===5||Be(l)?re:0}e.getAssignmentDeclarationKind=es;function as(l){return e.length(l.arguments)===3&&e.isPropertyAccessExpression(l.expression)&&e.isIdentifier(l.expression.expression)&&e.idText(l.expression.expression)==="Object"&&e.idText(l.expression.name)==="defineProperty"&&ks(l.arguments[1])&&Re(l.arguments[0],!0)}e.isBindableObjectDefinePropertyCall=as;function pe(l){return e.isPropertyAccessExpression(l)||wr(l)}e.isLiteralLikeAccess=pe;function wr(l){return e.isElementAccessExpression(l)&&ks(l.argumentExpression)}e.isLiteralLikeElementAccess=wr;function ft(l,re){return e.isPropertyAccessExpression(l)&&(!re&&l.expression.kind===108||e.isIdentifier(l.name)&&Re(l.expression,!0))||Zt(l,re)}e.isBindableStaticAccessExpression=ft;function Zt(l,re){return wr(l)&&(!re&&l.expression.kind===108||qc(l.expression)||ft(l.expression,!0))}e.isBindableStaticElementAccessExpression=Zt;function Re(l,re){return qc(l)||ft(l,re)}e.isBindableStaticNameExpression=Re;function Qr(l){return e.isPropertyAccessExpression(l)?l.name:l.argumentExpression}e.getNameOrArgument=Qr;function vn(l){if(e.isCallExpression(l)){if(!as(l))return 0;var re=l.arguments[0];return Gi(re)||ko(re)?8:ft(re)&&Ia(re)==="prototype"?9:7}return l.operatorToken.kind!==63||!ul(l.left)||Xn(Xi(l))?0:Re(l.left.expression,!0)&&Ia(l.left)==="prototype"&&e.isObjectLiteralExpression(Wo(l))?6:oo(l.left)}function Xn(l){return e.isVoidExpression(l)&&e.isNumericLiteral(l.expression)&&l.expression.text==="0"}function gi(l){if(e.isPropertyAccessExpression(l))return l.name;var re=Si(l.argumentExpression);return e.isNumericLiteral(re)||e.isStringLiteralLike(re)?re:l}e.getElementOrPropertyAccessArgumentExpressionOrName=gi;function Ia(l){var re=gi(l);if(re){if(e.isIdentifier(re))return re.escapedText;if(e.isStringLiteralLike(re)||e.isNumericLiteral(re))return e.escapeLeadingUnderscores(re.text)}}e.getElementOrPropertyAccessName=Ia;function oo(l){if(l.expression.kind===108)return 4;if(ko(l))return 2;if(Re(l.expression,!0)){if(Ec(l.expression))return 3;for(var re=l;!e.isIdentifier(re.expression);)re=re.expression;var cr=re.expression;if((cr.escapedText==="exports"||cr.escapedText==="module"&&Ia(re)==="exports")&&ft(l))return 1;if(Re(l,!0)||e.isElementAccessExpression(l)&&kd(l))return 5}return 0}e.getAssignmentDeclarationPropertyAccessKind=oo;function Wo(l){for(;e.isBinaryExpression(l.right);)l=l.right;return l.right}e.getInitializerOfBinaryExpression=Wo;function Nr(l){return e.isBinaryExpression(l)&&es(l)===3}e.isPrototypePropertyAssignment=Nr;function Us(l){return Be(l)&&l.parent&&l.parent.kind===237&&(!e.isElementAccessExpression(l)||wr(l))&&!!e.getJSDocTypeTag(l.parent)}e.isSpecialPropertyDeclaration=Us;function il(l,re){var cr=l.valueDeclaration;(!cr||!(re.flags&8388608&&!(cr.flags&8388608))&&So(cr)&&!So(re)||cr.kind!==re.kind&&Or(cr))&&(l.valueDeclaration=re)}e.setValueDeclaration=il;function Pl(l){if(!l||!l.valueDeclaration)return!1;var re=l.valueDeclaration;return re.kind===255||e.isVariableDeclaration(re)&&re.initializer&&e.isFunctionLike(re.initializer)}e.isFunctionSymbol=Pl;function Co(l){var re,cr,Vr;switch(l.kind){case 253:return l.initializer.arguments[0].text;case 265:return(re=e.tryCast(l.moduleSpecifier,e.isStringLiteralLike))===null||re===void 0?void 0:re.text;case 264:return(Vr=e.tryCast((cr=e.tryCast(l.moduleReference,e.isExternalModuleReference))===null||cr===void 0?void 0:cr.expression,e.isStringLiteralLike))===null||Vr===void 0?void 0:Vr.text;default:e.Debug.assertNever(l)}}e.tryGetModuleSpecifierFromDeclaration=Co;function Vs(l){return Ql(l)||e.Debug.failBadSyntaxKind(l.parent)}e.importFromModuleSpecifier=Vs;function Ql(l){switch(l.parent.kind){case 265:case 271:return l.parent;case 276:return l.parent.parent;case 207:return tr(l.parent)||Jt(l.parent,!1)?l.parent:void 0;case 195:return e.Debug.assert(e.isStringLiteral(l)),e.tryCast(l.parent.parent,e.isImportTypeNode);default:return}}e.tryGetImportFromModuleSpecifier=Ql;function zl(l){switch(l.kind){case 265:case 271:return l.moduleSpecifier;case 264:return l.moduleReference.kind===276?l.moduleReference.expression:void 0;case 199:return kr(l)?l.argument.literal:void 0;case 207:return l.arguments[0];case 260:return l.name.kind===10?l.name:void 0;default:return e.Debug.assertNever(l)}}e.getExternalModuleName=zl;function uc(l){switch(l.kind){case 265:return l.importClause&&e.tryCast(l.importClause.namedBindings,e.isNamespaceImport);case 264:return l;case 271:return l.exportClause&&e.tryCast(l.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(l)}}e.getNamespaceDeclarationNode=uc;function cu(l){return l.kind===265&&!!l.importClause&&!!l.importClause.name}e.isDefaultImport=cu;function no(l,re){if(l.name){var cr=re(l);if(cr)return cr}if(l.namedBindings){var cr=e.isNamespaceImport(l.namedBindings)?re(l.namedBindings):e.forEach(l.namedBindings.elements,re);if(cr)return cr}}e.forEachImportClauseDeclaration=no;function ql(l){if(l)switch(l.kind){case 163:case 168:case 167:case 295:case 294:case 166:case 165:return l.questionToken!==void 0}return!1}e.hasQuestionToken=ql;function fc(l){var re=e.isJSDocFunctionType(l)?e.firstOrUndefined(l.parameters):void 0,cr=e.tryCast(re&&re.name,e.isIdentifier);return!!cr&&cr.escapedText==="new"}e.isJSDocConstructSignature=fc;function Ws(l){return l.kind===343||l.kind===336||l.kind===337}e.isJSDocTypeAlias=Ws;function xc(l){return Ws(l)||e.isTypeAliasDeclaration(l)}e.isTypeAlias=xc;function Ic(l){return e.isExpressionStatement(l)&&e.isBinaryExpression(l.expression)&&l.expression.operatorToken.kind===63?Xi(l.expression):void 0}function La(l){return e.isExpressionStatement(l)&&e.isBinaryExpression(l.expression)&&es(l.expression)!==0&&e.isBinaryExpression(l.expression.right)&&(l.expression.right.operatorToken.kind===56||l.expression.right.operatorToken.kind===60)?l.expression.right.right:void 0}function uu(l){switch(l.kind){case 236:var re=dc(l);return re&&re.initializer;case 166:return l.initializer;case 294:return l.initializer}}e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=uu;function dc(l){return e.isVariableStatement(l)?e.firstOrUndefined(l.declarationList.declarations):void 0}e.getSingleVariableOfVariableStatement=dc;function Nc(l){return e.isModuleDeclaration(l)&&l.body&&l.body.kind===260?l.body:void 0}function Pr(l,re){var cr;en(l)&&e.hasInitializer(l)&&e.hasJSDocNodes(l.initializer)&&(cr=e.addRange(cr,$r(l,e.last(l.initializer.jsDoc))));for(var Vr=l;Vr&&Vr.parent;){if(e.hasJSDocNodes(Vr)&&(cr=e.addRange(cr,$r(l,e.last(Vr.jsDoc)))),Vr.kind===163){cr=e.addRange(cr,(re?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(Vr));break}if(Vr.kind===162){cr=e.addRange(cr,(re?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(Vr));break}Vr=Kt(Vr)}return cr||e.emptyArray}e.getJSDocCommentsAndTags=Pr;function $r(l,re){if(e.isJSDoc(re)){var cr=e.filter(re.tags,function(Vr){return Lt(l,Vr)});return re.tags===cr?[re]:cr}return Lt(l,re)?[re]:void 0}function Lt(l,re){return!e.isJSDocTypeTag(re)||!re.parent||!e.isJSDoc(re.parent)||!e.isParenthesizedExpression(re.parent.parent)||re.parent.parent===l}function Kt(l){var re=l.parent;if(re.kind===294||re.kind===270||re.kind===166||re.kind===237&&l.kind===205||re.kind===246||Nc(re)||e.isBinaryExpression(l)&&l.operatorToken.kind===63)return re;if(re.parent&&(dc(re.parent)===l||e.isBinaryExpression(re)&&re.operatorToken.kind===63))return re.parent;if(re.parent&&re.parent.parent&&(dc(re.parent.parent)||uu(re.parent.parent)===l||La(re.parent.parent)))return re.parent.parent}e.getNextJSDocCommentLocation=Kt;function pn(l){if(l.symbol)return l.symbol;if(!!e.isIdentifier(l.name)){var re=l.name.escapedText,cr=kn(l);if(!!cr){var Vr=e.find(cr.parameters,function(Nt){return Nt.name.kind===79&&Nt.name.escapedText===re});return Vr&&Vr.symbol}}}e.getParameterSymbolFromJSDoc=pn;function fn(l){if(e.isJSDoc(l.parent)&&l.parent.tags){var re=e.find(l.parent.tags,Ws);if(re)return re}return kn(l)}e.getEffectiveContainerForJSDocTemplateTag=fn;function kn(l){var re=Kn(l);return re&&e.isFunctionLike(re)?re:void 0}e.getHostSignatureFromJSDoc=kn;function Kn(l){var re=Fa(l);if(re)return La(re)||Ic(re)||uu(re)||dc(re)||Nc(re)||re}e.getEffectiveJSDocHost=Kn;function Fa(l){var re=ua(l);if(!!re){var cr=re.parent;if(cr&&cr.jsDoc&&re===e.lastOrUndefined(cr.jsDoc))return cr}}e.getJSDocHost=Fa;function ua(l){return e.findAncestor(l.parent,e.isJSDoc)}e.getJSDocRoot=ua;function le(l){var re=l.name.escapedText,cr=l.parent.parent.parent.typeParameters;return cr&&e.find(cr,function(Vr){return Vr.name.escapedText===re})}e.getTypeParameterFromJsDoc=le;function rr(l){var re=e.lastOrUndefined(l.parameters);return!!re&&br(re)}e.hasRestParameter=rr;function br(l){var re=e.isJSDocParameterTag(l)?l.typeExpression&&l.typeExpression.type:l.type;return l.dotDotDotToken!==void 0||!!re&&re.kind===316}e.isRestParameter=br;function ct(l){return!!l.typeArguments}e.hasTypeArguments=ct,function(l){l[l.None=0]="None",l[l.Definite=1]="Definite",l[l.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={}));function jt(l){for(var re=l.parent;;){switch(re.kind){case 220:var cr=re.operatorToken.kind;return ac(cr)&&re.left===l?cr===63||du(cr)?1:2:0;case 218:case 219:var Vr=re.operator;return Vr===45||Vr===46?2:0;case 242:case 243:return re.initializer===l?1:0;case 211:case 203:case 224:case 229:l=re;break;case 296:l=re.parent;break;case 295:if(re.name!==l)return 0;l=re.parent;break;case 294:if(re.name===l)return 0;l=re.parent;break;default:return 0}re=l.parent}}e.getAssignmentTargetKind=jt;function yn(l){return jt(l)!==0}e.isAssignmentTarget=yn;function ha(l){switch(l.kind){case 234:case 236:case 247:case 238:case 248:case 262:case 288:case 289:case 249:case 241:case 242:case 243:case 239:case 240:case 251:case 291:return!0}return!1}e.isNodeWithPossibleHoistedDeclaration=ha;function ri(l){return e.isFunctionExpression(l)||e.isArrowFunction(l)||e.isMethodOrAccessor(l)||e.isFunctionDeclaration(l)||e.isConstructorDeclaration(l)}e.isValueSignatureDeclaration=ri;function Ta(l,re){for(;l&&l.kind===re;)l=l.parent;return l}function Ya(l){return Ta(l,190)}e.walkUpParenthesizedTypes=Ya;function fi(l){return Ta(l,211)}e.walkUpParenthesizedExpressions=fi;function ci(l){for(var re;l&&l.kind===190;)re=l,l=l.parent;return[re,l]}e.walkUpParenthesizedTypesAndGetParentAndChild=ci;function Si(l,re){var cr=re?17:1;return e.skipOuterExpressions(l,cr)}e.skipParentheses=Si;function Do(l){return l.kind!==205&&l.kind!==206?!1:(l=fi(l.parent),l&&l.kind===214)}e.isDeleteTarget=Do;function bo(l,re){for(;l;){if(l===re)return!0;l=l.parent}return!1}e.isNodeDescendantOf=bo;function Ns(l){return!e.isSourceFile(l)&&!e.isBindingPattern(l)&&e.isDeclaration(l.parent)&&l.parent.name===l}e.isDeclarationName=Ns;function Ys(l){var re=l.parent;switch(l.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(re))return re.parent;case 79:if(e.isDeclaration(re))return re.name===l?re:void 0;if(e.isQualifiedName(re)){var cr=re.parent;return e.isJSDocParameterTag(cr)&&cr.name===re?cr:void 0}else{var Vr=re.parent;return e.isBinaryExpression(Vr)&&es(Vr)!==0&&(Vr.left.symbol||Vr.symbol)&&e.getNameOfDeclaration(Vr)===l?Vr:void 0}case 80:return e.isDeclaration(re)&&re.name===l?re:void 0;default:return}}e.getDeclarationFromName=Ys;function Nu(l){return ks(l)&&l.parent.kind===161&&e.isDeclaration(l.parent.parent)}e.isLiteralComputedPropertyDeclarationName=Nu;function gf(l){var re=l.parent;switch(re.kind){case 166:case 165:case 168:case 167:case 171:case 172:case 297:case 294:case 205:return re.name===l;case 160:return re.right===l;case 202:case 269:return re.propertyName===l;case 274:case 284:return!0}return!1}e.isIdentifierName=gf;function Zl(l){return l.kind===264||l.kind===263||l.kind===266&&!!l.name||l.kind===267||l.kind===273||l.kind===269||l.kind===274||l.kind===270&&$l(l)||e.isBinaryExpression(l)&&es(l)===2&&$l(l)||e.isPropertyAccessExpression(l)&&e.isBinaryExpression(l.parent)&&l.parent.left===l&&l.parent.operatorToken.kind===63&&Mr(l.parent.right)||l.kind===295||l.kind===294&&Mr(l.initializer)}e.isAliasSymbolDeclaration=Zl;function jc(l){switch(l.parent.kind){case 266:case 269:case 267:case 274:case 270:case 264:return l.parent;case 160:do l=l.parent;while(l.parent.kind===160);return jc(l)}}e.getAliasDeclarationFromName=jc;function Mr(l){return qc(l)||e.isClassExpression(l)}e.isAliasableExpression=Mr;function $l(l){var re=pc(l);return Mr(re)}e.exportAssignmentIsAlias=$l;function pc(l){return e.isExportAssignment(l)?l.expression:l.right}e.getExportAssignmentExpression=pc;function ku(l){return l.kind===295?l.name:l.kind===294?l.initializer:l.parent.right}e.getPropertyAssignmentAliasLikeExpression=ku;function ol(l){var re=kc(l);if(re&&Be(l)){var cr=e.getJSDocAugmentsTag(l);if(cr)return cr.class}return re}e.getEffectiveBaseTypeNode=ol;function kc(l){var re=hf(l.heritageClauses,94);return re&&re.types.length>0?re.types[0]:void 0}e.getClassExtendsHeritageElement=kc;function vf(l){if(Be(l))return e.getJSDocImplementsTags(l).map(function(cr){return cr.class});var re=hf(l.heritageClauses,117);return re==null?void 0:re.types}e.getEffectiveImplementsTypeNodes=vf;function fo(l){return e.isInterfaceDeclaration(l)?Zf(l)||e.emptyArray:e.isClassLike(l)&&e.concatenate(e.singleElementArray(ol(l)),vf(l))||e.emptyArray}e.getAllSuperTypeNodes=fo;function Zf(l){var re=hf(l.heritageClauses,94);return re?re.types:void 0}e.getInterfaceBaseTypeNodes=Zf;function hf(l,re){if(l)for(var cr=0,Vr=l;cr<Vr.length;cr++){var Nt=Vr[cr];if(Nt.token===re)return Nt}}e.getHeritageClause=hf;function Nd(l,re){for(;l;){if(l.kind===re)return l;l=l.parent}}e.getAncestor=Nd;function _s(l){return 81<=l&&l<=159}e.isKeyword=_s;function Hc(l){return 126<=l&&l<=159}e.isContextualKeyword=Hc;function Jc(l){return _s(l)&&!Hc(l)}e.isNonContextualKeyword=Jc;function qp(l){return 117<=l&&l<=125}e.isFutureReservedKeyword=qp;function dl(l){var re=e.stringToToken(l);return re!==void 0&&Jc(re)}e.isStringANonContextualKeyword=dl;function Xp(l){var re=e.stringToToken(l);return re!==void 0&&_s(re)}e.isStringAKeyword=Xp;function Rs(l){var re=l.originalKeywordKind;return!!re&&!Hc(re)}e.isIdentifierANonContextualKeyword=Rs;function Ja(l){return 2<=l&&l<=7}e.isTrivia=Ja,function(l){l[l.Normal=0]="Normal",l[l.Generator=1]="Generator",l[l.Async=2]="Async",l[l.Invalid=4]="Invalid",l[l.AsyncGenerator=3]="AsyncGenerator"}(e.FunctionFlags||(e.FunctionFlags={}));function Zn(l){if(!l)return 4;var re=0;switch(l.kind){case 255:case 212:case 168:l.asteriskToken&&(re|=1);case 213:rc(l,256)&&(re|=2);break}return l.body||(re|=4),re}e.getFunctionFlags=Zn;function Oc(l){switch(l.kind){case 255:case 212:case 213:case 168:return l.body!==void 0&&l.asteriskToken===void 0&&rc(l,256)}return!1}e.isAsyncFunction=Oc;function ks(l){return e.isStringLiteralLike(l)||e.isNumericLiteral(l)}e.isStringOrNumericLiteralLike=ks;function yf(l){return e.isPrefixUnaryExpression(l)&&(l.operator===39||l.operator===40)&&e.isNumericLiteral(l.operand)}e.isSignedNumericLiteral=yf;function Ou(l){var re=e.getNameOfDeclaration(l);return!!re&&kd(re)}e.hasDynamicName=Ou;function kd(l){if(!(l.kind===161||l.kind===206))return!1;var re=e.isElementAccessExpression(l)?Si(l.argumentExpression):l.expression;return!ks(re)&&!yf(re)}e.isDynamicName=kd;function Uo(l){switch(l.kind){case 79:case 80:return l.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(l.text);case 161:var re=l.expression;return ks(re)?e.escapeLeadingUnderscores(re.text):yf(re)?re.operator===40?e.tokenToString(re.operator)+re.operand.text:re.operand.text:void 0;default:return e.Debug.assertNever(l)}}e.getPropertyNameForPropertyNameNode=Uo;function $f(l){switch(l.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}e.isPropertyNameLiteral=$f;function Od(l){return e.isMemberName(l)?e.idText(l):l.text}e.getTextOfIdentifierOrLiteral=Od;function Rd(l){return e.isMemberName(l)?l.escapedText:e.escapeLeadingUnderscores(l.text)}e.getEscapedTextOfIdentifierOrLiteral=Rd;function Yp(l){return"__@".concat(e.getSymbolId(l),"@").concat(l.escapedName)}e.getPropertyNameForUniqueESSymbol=Yp;function yp(l,re){return"__#".concat(e.getSymbolId(l),"@").concat(re)}e.getSymbolNameForPrivateIdentifier=yp;function Xl(l){return e.startsWith(l.escapedName,"__@")}e.isKnownSymbol=Xl;function C_(l){return e.startsWith(l.escapedName,"__#")}e.isPrivateIdentifierSymbol=C_;function ed(l){return l.kind===79&&l.escapedText==="Symbol"}e.isESSymbolIdentifier=ed;function bp(l){return l.escapedText==="push"||l.escapedText==="unshift"}e.isPushOrUnshiftIdentifier=bp;function wd(l){var re=Pd(l);return re.kind===163}e.isParameterDeclaration=wd;function Pd(l){for(;l.kind===202;)l=l.parent.parent;return l}e.getRootDeclaration=Pd;function Md(l){var re=l.kind;return re===170||re===212||re===255||re===213||re===168||re===171||re===172||re===260||re===303}e.nodeStartsNewLexicalEnvironment=Md;function Fd(l){return jg(l.pos)||jg(l.end)}e.nodeIsSynthesized=Fd;function Ep(l){return e.getParseTreeNode(l,e.isSourceFile)||l}e.getOriginalSourceFile=Ep,function(l){l[l.Left=0]="Left",l[l.Right=1]="Right"}(e.Associativity||(e.Associativity={}));function Qp(l){var re=Bd(l),cr=l.kind===208&&l.arguments!==void 0;return Gd(l.kind,re,cr)}e.getExpressionAssociativity=Qp;function Gd(l,re,cr){switch(l){case 208:return cr?0:1;case 218:case 215:case 216:case 214:case 217:case 221:case 223:return 1;case 220:switch(re){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=Gd;function Zp(l){var re=Bd(l),cr=l.kind===208&&l.arguments!==void 0;return fu(l.kind,re,cr)}e.getExpressionPrecedence=Zp;function Bd(l){return l.kind===220?l.operatorToken.kind:l.kind===218||l.kind===219?l.operator:l.kind}e.getOperator=Bd,function(l){l[l.Comma=0]="Comma",l[l.Spread=1]="Spread",l[l.Yield=2]="Yield",l[l.Assignment=3]="Assignment",l[l.Conditional=4]="Conditional",l[l.Coalesce=4]="Coalesce",l[l.LogicalOR=5]="LogicalOR",l[l.LogicalAND=6]="LogicalAND",l[l.BitwiseOR=7]="BitwiseOR",l[l.BitwiseXOR=8]="BitwiseXOR",l[l.BitwiseAND=9]="BitwiseAND",l[l.Equality=10]="Equality",l[l.Relational=11]="Relational",l[l.Shift=12]="Shift",l[l.Additive=13]="Additive",l[l.Multiplicative=14]="Multiplicative",l[l.Exponentiation=15]="Exponentiation",l[l.Unary=16]="Unary",l[l.Update=17]="Update",l[l.LeftHandSide=18]="LeftHandSide",l[l.Member=19]="Member",l[l.Primary=20]="Primary",l[l.Highest=20]="Highest",l[l.Lowest=0]="Lowest",l[l.Invalid=-1]="Invalid"}(e.OperatorPrecedence||(e.OperatorPrecedence={}));function fu(l,re,cr){switch(l){case 349:return 0;case 224:return 1;case 223:return 2;case 221:return 4;case 220:switch(re){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 _c(re)}case 210:case 229:case 218:case 215:case 216:case 214:case 217:return 16;case 219:return 17;case 207:return 18;case 208:return cr?19:18;case 209:case 205:case 206:case 230:return 19;case 228:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 203:case 204:case 212:case 213:case 225:case 13:case 14:case 222:case 211:case 226:case 277:case 278:case 281:return 20;default:return-1}}e.getOperatorPrecedence=fu;function _c(l){switch(l){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=_c;function mc(l){return e.filter(l,function(re){switch(re.kind){case 287:return!!re.expression;case 11:return!re.containsOnlyTriviaWhiteSpaces;default:return!0}})}e.getSemanticJsxChildren=mc;function ec(){var l=[],re=[],cr=new e.Map,Vr=!1;return{add:xn,lookup:Nt,getGlobalDiagnostics:Bn,getDiagnostics:ga};function Nt(Ei){var li;if(Ei.file?li=cr.get(Ei.file.fileName):li=l,!!li){var go=e.binarySearch(li,Ei,e.identity,mu);if(go>=0)return li[go]}}function xn(Ei){var li;Ei.file?(li=cr.get(Ei.file.fileName),li||(li=[],cr.set(Ei.file.fileName,li),e.insertSorted(re,Ei.file.fileName,e.compareStringsCaseSensitive))):(Vr&&(Vr=!1,l=l.slice()),li=l),e.insertSorted(li,Ei,rm)}function Bn(){return Vr=!0,l}function ga(Ei){if(Ei)return cr.get(Ei)||[];var li=e.flatMapToMutable(re,function(go){return cr.get(go)});return l.length&&li.unshift.apply(li,l),li}}e.createDiagnosticCollection=ec;var Ud=/\$\{/g;function bf(l){return l.replace(Ud,"\\${")}function Tp(l){return l&&!!(e.isNoSubstitutionTemplateLiteral(l)?l.templateFlags:l.head.templateFlags||e.some(l.templateSpans,function(re){return!!re.literal.templateFlags}))}e.hasInvalidEscape=Tp;var Sp=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ef=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,$p=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Vd=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 rd(l){var re=l.toString(16).toUpperCase(),cr=("0000"+re).slice(-4);return"\\u"+cr}function td(l,re,cr){if(l.charCodeAt(0)===0){var Vr=cr.charCodeAt(re+l.length);return Vr>=48&&Vr<=57?"\\x00":"\\0"}return Vd.get(l)||rd(l.charCodeAt(0))}function Ru(l,re){var cr=re===96?$p:re===39?Ef:Sp;return l.replace(cr,td)}e.escapeString=Ru;var wu=/[^\u0000-\u007F]/g;function Pu(l,re){return l=Ru(l,re),wu.test(l)?l.replace(wu,function(cr){return rd(cr.charCodeAt(0))}):l}e.escapeNonAsciiString=Pu;var js=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,gc=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,nd=new e.Map(e.getEntries({'"':""","'":"'"}));function x_(l){var re=l.toString(16).toUpperCase();return"&#x"+re+";"}function ad(l){return l.charCodeAt(0)===0?"�":nd.get(l)||x_(l.charCodeAt(0))}function Mu(l,re){var cr=re===39?gc:js;return l.replace(cr,ad)}e.escapeJsxAttributeString=Mu;function I_(l){var re=l.length;return re>=2&&l.charCodeAt(0)===l.charCodeAt(re-1)&&vc(l.charCodeAt(0))?l.substring(1,re-1):l}e.stripQuotes=I_;function vc(l){return l===39||l===34||l===96}function Ml(l){var re=l.charCodeAt(0);return re>=97&&re<=122||e.stringContains(l,"-")||e.stringContains(l,":")}e.isIntrinsicJsxName=Ml;var Sl=[""," "];function Fl(l){for(var re=Sl[1],cr=Sl.length;cr<=l;cr++)Sl.push(Sl[cr-1]+re);return Sl[l]}e.getIndentString=Fl;function pl(){return Sl[1].length}e.getIndentSize=pl;function Dp(l){var re,cr,Vr,Nt,xn,Bn=!1;function ga(Eo){var zu=e.computeLineStarts(Eo);zu.length>1?(Nt=Nt+zu.length-1,xn=re.length-Eo.length+e.last(zu),Vr=xn-re.length===0):Vr=!1}function Ei(Eo){Eo&&Eo.length&&(Vr&&(Eo=Fl(cr)+Eo,Vr=!1),re+=Eo,ga(Eo))}function li(Eo){Eo&&(Bn=!1),Ei(Eo)}function go(Eo){Eo&&(Bn=!0),Ei(Eo)}function wi(){re="",cr=0,Vr=!0,Nt=0,xn=0,Bn=!1}function Is(Eo){Eo!==void 0&&(re+=Eo,ga(Eo),Bn=!1)}function Ks(Eo){Eo&&Eo.length&&li(Eo)}function hs(Eo){(!Vr||Eo)&&(re+=l,Nt++,xn=re.length,Vr=!0,Bn=!1)}function ic(){return Vr?re.length:re.length+l.length}return wi(),{write:li,rawWrite:Is,writeLiteral:Ks,writeLine:hs,increaseIndent:function(){cr++},decreaseIndent:function(){cr--},getIndent:function(){return cr},getTextPos:function(){return re.length},getLine:function(){return Nt},getColumn:function(){return Vr?cr*pl():re.length-xn},getText:function(){return re},isAtStartOfLine:function(){return Vr},hasTrailingComment:function(){return Bn},hasTrailingWhitespace:function(){return!!re.length&&e.isWhiteSpaceLike(re.charCodeAt(re.length-1))},clear:wi,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:li,writeOperator:li,writeParameter:li,writeProperty:li,writePunctuation:li,writeSpace:li,writeStringLiteral:li,writeSymbol:function(Eo,zu){return li(Eo)},writeTrailingSemicolon:li,writeComment:go,getTextPosWithWriteLine:ic}}e.createTextWriter=Dp;function Tf(l){var re=!1;function cr(){re&&(l.writeTrailingSemicolon(";"),re=!1)}return Rn(Rn({},l),{writeTrailingSemicolon:function(){re=!0},writeLiteral:function(Vr){cr(),l.writeLiteral(Vr)},writeStringLiteral:function(Vr){cr(),l.writeStringLiteral(Vr)},writeSymbol:function(Vr,Nt){cr(),l.writeSymbol(Vr,Nt)},writePunctuation:function(Vr){cr(),l.writePunctuation(Vr)},writeKeyword:function(Vr){cr(),l.writeKeyword(Vr)},writeOperator:function(Vr){cr(),l.writeOperator(Vr)},writeParameter:function(Vr){cr(),l.writeParameter(Vr)},writeSpace:function(Vr){cr(),l.writeSpace(Vr)},writeProperty:function(Vr){cr(),l.writeProperty(Vr)},writeComment:function(Vr){cr(),l.writeComment(Vr)},writeLine:function(){cr(),l.writeLine()},increaseIndent:function(){cr(),l.increaseIndent()},decreaseIndent:function(){cr(),l.decreaseIndent()}})}e.getTrailingSemicolonDeferringWriter=Tf;function Wd(l){return l.useCaseSensitiveFileNames?l.useCaseSensitiveFileNames():!1}e.hostUsesCaseSensitiveFileNames=Wd;function id(l){return e.createGetCanonicalFileName(Wd(l))}e.hostGetCanonicalFileName=id;function mo(l,re,cr){return re.moduleName||ms(l,re.fileName,cr&&cr.fileName)}e.getResolvedExternalModuleName=mo;function Dl(l,re){return l.getCanonicalFileName(e.getNormalizedAbsolutePath(re,l.getCurrentDirectory()))}function wo(l,re,cr){var Vr=re.getExternalModuleFileFromDeclaration(cr);if(!(!Vr||Vr.isDeclarationFile)){var Nt=zl(cr);if(!(Nt&&e.isStringLiteralLike(Nt)&&!e.pathIsRelative(Nt.text)&&Dl(l,Vr.path).indexOf(Dl(l,e.ensureTrailingDirectorySeparator(l.getCommonSourceDirectory())))===-1))return mo(l,Vr)}}e.getExternalModuleNameFromDeclaration=wo;function ms(l,re,cr){var Vr=function(Ei){return l.getCanonicalFileName(Ei)},Nt=e.toPath(cr?e.getDirectoryPath(cr):l.getCommonSourceDirectory(),l.getCurrentDirectory(),Vr),xn=e.getNormalizedAbsolutePath(re,l.getCurrentDirectory()),Bn=e.getRelativePathToDirectoryOrUrl(Nt,xn,Nt,Vr,!1),ga=Wm(Bn);return cr?e.ensurePathIsNonModuleName(ga):ga}e.getExternalModuleNameFromPath=ms;function e_(l,re,cr){var Vr=re.getCompilerOptions(),Nt;return Vr.outDir?Nt=Wm(sl(l,re,Vr.outDir)):Nt=Wm(l),Nt+cr}e.getOwnEmitOutputFilePath=e_;function Yl(l,re){return od(l,re.getCompilerOptions(),re.getCurrentDirectory(),re.getCommonSourceDirectory(),function(cr){return re.getCanonicalFileName(cr)})}e.getDeclarationEmitOutputFilePath=Yl;function od(l,re,cr,Vr,Nt){var xn=re.declarationDir||re.outDir,Bn=xn?Dn(l,xn,cr,Vr,Nt):l,ga=Ln(Bn);return Wm(Bn)+ga}e.getDeclarationEmitOutputFilePathWorker=od;function Ln(l){return e.fileExtensionIsOneOf(l,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(l,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(l,[".json"])?".json.d.ts":".d.ts"}e.getDeclarationEmitExtensionForPath=Ln;function us(l){return l.outFile||l.out}e.outFile=us;function ii(l,re){var cr,Vr;if(!!l.paths)return(cr=l.baseUrl)!==null&&cr!==void 0?cr:e.Debug.checkDefined(l.pathsBasePath||((Vr=re.getCurrentDirectory)===null||Vr===void 0?void 0:Vr.call(re)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}e.getPathsBasePath=ii;function Rc(l,re,cr){var Vr=l.getCompilerOptions();if(us(Vr)){var Nt=vd(Vr),xn=Vr.emitDeclarationOnly||Nt===e.ModuleKind.AMD||Nt===e.ModuleKind.System;return e.filter(l.getSourceFiles(),function(ga){return(xn||!e.isExternalModule(ga))&&sd(ga,l,cr)})}else{var Bn=re===void 0?l.getSourceFiles():[re];return e.filter(Bn,function(ga){return sd(ga,l,cr)})}}e.getSourceFilesToEmit=Rc;function sd(l,re,cr){var Vr=re.getCompilerOptions();return!(Vr.noEmitForJsFiles&&mr(l))&&!l.isDeclarationFile&&!re.isSourceFileFromExternalLibrary(l)&&(cr||!(xr(l)&&re.getResolvedProjectReferenceToRedirect(l.fileName))&&!re.isSourceOfProjectReferenceRedirect(l.fileName))}e.sourceFileMayBeEmitted=sd;function sl(l,re,cr){return Dn(l,cr,re.getCurrentDirectory(),re.getCommonSourceDirectory(),function(Vr){return re.getCanonicalFileName(Vr)})}e.getSourceFilePathInNewDir=sl;function Dn(l,re,cr,Vr,Nt){var xn=e.getNormalizedAbsolutePath(l,cr),Bn=Nt(xn).indexOf(Nt(Vr))===0;return xn=Bn?xn.substring(Vr.length):xn,e.combinePaths(re,xn)}e.getSourceFilePathInNewDirWorker=Dn;function N_(l,re,cr,Vr,Nt,xn){l.writeFile(cr,Vr,Nt,function(Bn){re.add(nf(e.Diagnostics.Could_not_write_file_0_Colon_1,cr,Bn))},xn)}e.writeFile=N_;function rs(l,re,cr){if(l.length>e.getRootLength(l)&&!cr(l)){var Vr=e.getDirectoryPath(l);rs(Vr,re,cr),re(l)}}function fs(l,re,cr,Vr,Nt,xn){try{Vr(l,re,cr)}catch{rs(e.getDirectoryPath(e.normalizePath(l)),Nt,xn),Vr(l,re,cr)}}e.writeFileEnsuringDirectories=fs;function wc(l,re){var cr=e.getLineStarts(l);return e.computeLineOfPosition(cr,re)}e.getLineOfLocalPosition=wc;function Hs(l,re){return e.computeLineOfPosition(l,re)}e.getLineOfLocalPositionFromLineMap=Hs;function Sf(l){return e.find(l.members,function(re){return e.isConstructorDeclaration(re)&&F(re.body)})}e.getFirstConstructorWithBody=Sf;function ws(l){if(l&&l.parameters.length>0){var re=l.parameters.length===2&&Df(l.parameters[0]);return l.parameters[re?1:0]}}e.getSetAccessorValueParameter=ws;function Pc(l){var re=ws(l);return re&&re.type}e.getSetAccessorTypeAnnotationNode=Pc;function Qu(l){if(l.parameters.length&&!e.isJSDocSignature(l)){var re=l.parameters[0];if(Df(re))return re}}e.getThisParameter=Qu;function Df(l){return hc(l.name)}e.parameterIsThisKeyword=Df;function hc(l){return!!l&&l.kind===79&&ll(l)}e.isThisIdentifier=hc;function Lf(l){if(!hc(l))return!1;for(;e.isQualifiedName(l.parent)&&l.parent.left===l;)l=l.parent;return l.parent.kind===180}e.isThisInTypeQuery=Lf;function ll(l){return l.originalKeywordKind===108}e.identifierIsThisKeyword=ll;function r_(l,re){var cr,Vr,Nt,xn;return Ou(re)?(cr=re,re.kind===171?Nt=re:re.kind===172?xn=re:e.Debug.fail("Accessor has wrong kind")):e.forEach(l,function(Bn){if(e.isAccessor(Bn)&&Zu(Bn)===Zu(re)){var ga=Uo(Bn.name),Ei=Uo(re.name);ga===Ei&&(cr?Vr||(Vr=Bn):cr=Bn,Bn.kind===171&&!Nt&&(Nt=Bn),Bn.kind===172&&!xn&&(xn=Bn))}}),{firstAccessor:cr,secondAccessor:Vr,getAccessor:Nt,setAccessor:xn}}e.getAllAccessorDeclarations=r_;function Fu(l){if(!(!Be(l)&&e.isFunctionDeclaration(l))){var re=l.type;return re||!Be(l)?re:e.isJSDocPropertyLikeTag(l)?l.typeExpression&&l.typeExpression.type:e.getJSDocType(l)}}e.getEffectiveTypeAnnotationNode=Fu;function Af(l){return l.type}e.getTypeAnnotationNode=Af;function ld(l){return e.isJSDocSignature(l)?l.type&&l.type.typeExpression&&l.type.typeExpression.type:l.type||(Be(l)?e.getJSDocReturnType(l):void 0)}e.getEffectiveReturnTypeNode=ld;function cd(l){return e.flatMap(e.getJSDocTags(l),function(re){return Cf(re)?re.typeParameters:void 0})}e.getJSDocTypeParameterDeclarations=cd;function Cf(l){return e.isJSDocTemplateTag(l)&&!(l.parent.kind===318&&l.parent.tags.some(Ws))}function yc(l){var re=ws(l);return re&&Fu(re)}e.getEffectiveSetAccessorTypeAnnotationNode=yc;function ud(l,re,cr,Vr){xf(l,re,cr.pos,Vr)}e.emitNewLineBeforeLeadingComments=ud;function xf(l,re,cr,Vr){Vr&&Vr.length&&cr!==Vr[0].pos&&Hs(l,cr)!==Hs(l,Vr[0].pos)&&re.writeLine()}e.emitNewLineBeforeLeadingCommentsOfPosition=xf;function Gu(l,re,cr,Vr){cr!==Vr&&Hs(l,cr)!==Hs(l,Vr)&&re.writeLine()}e.emitNewLineBeforeLeadingCommentOfPosition=Gu;function Js(l,re,cr,Vr,Nt,xn,Bn,ga){if(Vr&&Vr.length>0){Nt&&cr.writeSpace(" ");for(var Ei=!1,li=0,go=Vr;li<go.length;li++){var wi=go[li];Ei&&(cr.writeSpace(" "),Ei=!1),ga(l,re,cr,wi.pos,wi.end,Bn),wi.hasTrailingNewLine?cr.writeLine():Ei=!0}Ei&&xn&&cr.writeSpace(" ")}}e.emitComments=Js;function Gl(l,re,cr,Vr,Nt,xn,Bn){var ga,Ei;if(Bn?Nt.pos===0&&(ga=e.filter(e.getLeadingCommentRanges(l,Nt.pos),zu)):ga=e.getLeadingCommentRanges(l,Nt.pos),ga){for(var li=[],go=void 0,wi=0,Is=ga;wi<Is.length;wi++){var Ks=Is[wi];if(go){var hs=Hs(re,go.end),ic=Hs(re,Ks.pos);if(ic>=hs+2)break}li.push(Ks),go=Ks}if(li.length){var hs=Hs(re,e.last(li).end),Eo=Hs(re,e.skipTrivia(l,Nt.pos));Eo>=hs+2&&(ud(re,cr,Nt,ga),Js(l,re,cr,li,!1,!0,xn,Vr),Ei={nodePos:Nt.pos,detachedCommentEndPos:e.last(li).end})}}return Ei;function zu(u_){return V(l,u_.pos)}}e.emitDetachedComments=Gl;function Kc(l,re,cr,Vr,Nt,xn){if(l.charCodeAt(Vr+1)===42)for(var Bn=e.computeLineAndCharacterOfPosition(re,Vr),ga=re.length,Ei=void 0,li=Vr,go=Bn.line;li<Nt;go++){var wi=go+1===ga?l.length+1:re[go+1];if(li!==Vr){Ei===void 0&&(Ei=Ga(l,re[Bn.line],Vr));var Is=cr.getIndent()*pl(),Ks=Is-Ei+Ga(l,li,wi);if(Ks>0){var hs=Ks%pl(),ic=Fl((Ks-hs)/pl());for(cr.rawWrite(ic);hs;)cr.rawWrite(" "),hs--}else cr.rawWrite("")}fd(l,Nt,cr,xn,li,wi),li=wi}else cr.writeComment(l.substring(Vr,Nt))}e.writeCommentRange=Kc;function fd(l,re,cr,Vr,Nt,xn){var Bn=Math.min(re,xn-1),ga=e.trimString(l.substring(Nt,Bn));ga?(cr.writeComment(ga),Bn!==re&&cr.writeLine()):cr.rawWrite(Vr)}function Ga(l,re,cr){for(var Vr=0;re<cr&&e.isWhiteSpaceSingleLine(l.charCodeAt(re));re++)l.charCodeAt(re)===9?Vr+=pl()-Vr%pl():Vr++;return Vr}function wn(l){return jo(l)!==0}e.hasEffectiveModifiers=wn;function Ts(l){return Kd(l)!==0}e.hasSyntacticModifiers=Ts;function jd(l,re){return!!$u(l,re)}e.hasEffectiveModifier=jd;function rc(l,re){return!!Qs(l,re)}e.hasSyntacticModifier=rc;function Zu(l){return e.isClassElement(l)&&zc(l)||e.isClassStaticBlockDeclaration(l)}e.isStatic=Zu;function zc(l){return rc(l,32)}e.hasStaticModifier=zc;function Hd(l){return jd(l,16384)}e.hasOverrideModifier=Hd;function Ll(l){return rc(l,128)}e.hasAbstractModifier=Ll;function tc(l){return rc(l,2)}e.hasAmbientModifier=tc;function If(l){return jd(l,64)}e.hasEffectiveReadonlyModifier=If;function $u(l,re){return jo(l)&re}e.getSelectedEffectiveModifierFlags=$u;function Qs(l,re){return Kd(l)&re}e.getSelectedSyntacticModifierFlags=Qs;function Jd(l,re,cr){return l.kind>=0&&l.kind<=159?0:(l.modifierFlagsCache&536870912||(l.modifierFlagsCache=Bu(l)|536870912),re&&!(l.modifierFlagsCache&4096)&&(cr||Be(l))&&l.parent&&(l.modifierFlagsCache|=nc(l)|4096),l.modifierFlagsCache&-536875009)}function jo(l){return Jd(l,!0)}e.getEffectiveModifierFlags=jo;function Bl(l){return Jd(l,!0,!0)}e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=Bl;function Kd(l){return Jd(l,!1)}e.getSyntacticModifierFlags=Kd;function nc(l){var re=0;return!!l.parent&&!e.isParameter(l)&&(Be(l)&&(e.getJSDocPublicTagNoCache(l)&&(re|=4),e.getJSDocPrivateTagNoCache(l)&&(re|=8),e.getJSDocProtectedTagNoCache(l)&&(re|=16),e.getJSDocReadonlyTagNoCache(l)&&(re|=64),e.getJSDocOverrideTagNoCache(l)&&(re|=16384)),e.getJSDocDeprecatedTagNoCache(l)&&(re|=8192)),re}function Nf(l){return Bu(l)|nc(l)}e.getEffectiveModifierFlagsNoCache=Nf;function Bu(l){var re=dd(l.modifiers);return(l.flags&4||l.kind===79&&l.isInJSDocNamespace)&&(re|=1),re}e.getSyntacticModifierFlagsNoCache=Bu;function dd(l){var re=0;if(l)for(var cr=0,Vr=l;cr<Vr.length;cr++){var Nt=Vr[cr];re|=zd(Nt.kind)}return re}e.modifiersToFlags=dd;function zd(l){switch(l){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 135:return 2;case 85:return 2048;case 88:return 512;case 131:return 256;case 144:return 64;case 158:return 16384}return 0}e.modifierToFlag=zd;function Al(l){return l?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(l)):void 0}e.createModifiers=Al;function ts(l){return l===56||l===55||l===53}e.isLogicalOperator=ts;function du(l){return l===75||l===76||l===77}e.isLogicalOrCoalescingAssignmentOperator=du;function qd(l){return du(l.operatorToken.kind)}e.isLogicalOrCoalescingAssignmentExpression=qd;function ac(l){return l>=63&&l<=78}e.isAssignmentOperator=ac;function kf(l){var re=Uu(l);return re&&!re.isImplements?re.class:void 0}e.tryGetClassExtendingExpressionWithTypeArguments=kf;function Uu(l){return e.isExpressionWithTypeArguments(l)&&e.isHeritageClause(l.parent)&&e.isClassLike(l.parent.parent)?{class:l.parent.parent,isImplements:l.parent.token===117}:void 0}e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Uu;function Xd(l,re){return e.isBinaryExpression(l)&&(re?l.operatorToken.kind===63:ac(l.operatorToken.kind))&&e.isLeftHandSideExpression(l.left)}e.isAssignmentExpression=Xd;function ef(l){return Xd(l.parent)&&l.parent.left===l}e.isLeftHandSideOfAssignment=ef;function Of(l){if(Xd(l,!0)){var re=l.left.kind;return re===204||re===203}return!1}e.isDestructuringAssignment=Of;function bc(l){return kf(l)!==void 0}e.isExpressionWithTypeArgumentsInClassExtendsClause=bc;function qc(l){return l.kind===79||Xc(l)}e.isEntityNameExpression=qc;function rf(l){switch(l.kind){case 79:return l;case 160:do l=l.left;while(l.kind!==79);return l;case 205:do l=l.expression;while(l.kind!==79);return l}}e.getFirstIdentifier=rf;function Vu(l){return l.kind===79||l.kind===108||l.kind===106||l.kind===230||l.kind===205&&Vu(l.expression)||l.kind===211&&Vu(l.expression)}e.isDottedName=Vu;function Xc(l){return e.isPropertyAccessExpression(l)&&e.isIdentifier(l.name)&&qc(l.expression)}e.isPropertyAccessEntityNameExpression=Xc;function Yd(l){if(e.isPropertyAccessExpression(l)){var re=Yd(l.expression);if(re!==void 0)return re+"."+ir(l.name)}else if(e.isElementAccessExpression(l)){var re=Yd(l.expression);if(re!==void 0&&e.isPropertyName(l.argumentExpression))return re+"."+Uo(l.argumentExpression)}else if(e.isIdentifier(l))return e.unescapeLeadingUnderscores(l.escapedText)}e.tryGetPropertyAccessOrIdentifierToString=Yd;function Ec(l){return ft(l)&&Ia(l)==="prototype"}e.isPrototypeAccess=Ec;function Wu(l){return l.parent.kind===160&&l.parent.right===l||l.parent.kind===205&&l.parent.name===l}e.isRightSideOfQualifiedNameOrPropertyAccess=Wu;function t_(l){return e.isQualifiedName(l.parent)&&l.parent.right===l||e.isPropertyAccessExpression(l.parent)&&l.parent.name===l||e.isJSDocMemberName(l.parent)&&l.parent.right===l}e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=t_;function Wa(l){return l.kind===204&&l.properties.length===0}e.isEmptyObjectLiteral=Wa;function pu(l){return l.kind===203&&l.elements.length===0}e.isEmptyArrayLiteral=pu;function gn(l){if(!(!Rf(l)||!l.declarations))for(var re=0,cr=l.declarations;re<cr.length;re++){var Vr=cr[re];if(Vr.localSymbol)return Vr.localSymbol}}e.getLocalSymbolForExportDefault=gn;function Rf(l){return l&&e.length(l.declarations)>0&&rc(l.declarations[0],512)}function Qd(l){return e.find(hu,function(re){return e.fileExtensionIs(l,re)})}e.tryExtractTSExtension=Qd;function Zd(l){for(var re=[],cr=l.length,Vr=0;Vr<cr;Vr++){var Nt=l.charCodeAt(Vr);Nt<128?re.push(Nt):Nt<2048?(re.push(Nt>>6|192),re.push(Nt&63|128)):Nt<65536?(re.push(Nt>>12|224),re.push(Nt>>6&63|128),re.push(Nt&63|128)):Nt<131072?(re.push(Nt>>18|240),re.push(Nt>>12&63|128),re.push(Nt>>6&63|128),re.push(Nt&63|128)):e.Debug.assert(!1,"Unexpected code point")}return re}var Mc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function $d(l){for(var re="",cr=Zd(l),Vr=0,Nt=cr.length,xn,Bn,ga,Ei;Vr<Nt;)xn=cr[Vr]>>2,Bn=(cr[Vr]&3)<<4|cr[Vr+1]>>4,ga=(cr[Vr+1]&15)<<2|cr[Vr+2]>>6,Ei=cr[Vr+2]&63,Vr+1>=Nt?ga=Ei=64:Vr+2>=Nt&&(Ei=64),re+=Mc.charAt(xn)+Mc.charAt(Bn)+Mc.charAt(ga)+Mc.charAt(Ei),Vr+=3;return re}e.convertToBase64=$d;function k_(l){for(var re="",cr=0,Vr=l.length;cr<Vr;){var Nt=l[cr];if(Nt<128)re+=String.fromCharCode(Nt),cr++;else if((Nt&192)===192){var xn=Nt&63;cr++;for(var Bn=l[cr];(Bn&192)===128;)xn=xn<<6|Bn&63,cr++,Bn=l[cr];re+=String.fromCharCode(xn)}else re+=String.fromCharCode(Nt),cr++}return re}function Yc(l,re){return l&&l.base64encode?l.base64encode(re):$d(re)}e.base64encode=Yc;function Lp(l,re){if(l&&l.base64decode)return l.base64decode(re);for(var cr=re.length,Vr=[],Nt=0;Nt<cr&&re.charCodeAt(Nt)!==Mc.charCodeAt(64);){var xn=Mc.indexOf(re[Nt]),Bn=Mc.indexOf(re[Nt+1]),ga=Mc.indexOf(re[Nt+2]),Ei=Mc.indexOf(re[Nt+3]),li=(xn&63)<<2|Bn>>4&3,go=(Bn&15)<<4|ga>>2&15,wi=(ga&3)<<6|Ei&63;go===0&&ga!==0?Vr.push(li):wi===0&&Ei!==0?Vr.push(li,go):Vr.push(li,go,wi),Nt+=4}return k_(Vr)}e.base64decode=Lp;function pd(l,re){try{var cr=re.readFile(l);if(!cr)return{};var Vr=e.parseConfigFileTextToJson(l,cr);return Vr.error?{}:Vr.config}catch{return{}}}e.readJson=pd;function Ap(l,re){return!re.directoryExists||re.directoryExists(l)}e.directoryProbablyExists=Ap;var Ul=`\r
|
|
`,wf=`
|
|
`;function _d(l,re){switch(l.newLine){case 0:return Ul;case 1:return wf}return re?re():e.sys?e.sys.newLine:Ul}e.getNewLineCharacter=_d;function Fc(l,re){return re===void 0&&(re=l),e.Debug.assert(re>=l||re===-1),{pos:l,end:re}}e.createRange=Fc;function Qc(l,re){return Fc(l.pos,re)}e.moveRangeEnd=Qc;function Pf(l,re){return Fc(re,l.end)}e.moveRangePos=Pf;function E(l){return l.decorators&&l.decorators.length>0?Pf(l,l.decorators.end):l}e.moveRangePastDecorators=E;function Qe(l){return l.modifiers&&l.modifiers.length>0?Pf(l,l.modifiers.end):E(l)}e.moveRangePastModifiers=Qe;function nt(l){return l.pos===l.end}e.isCollapsedRange=nt;function Ot(l,re){return Fc(l,l+e.tokenToString(re).length)}e.createTokenRange=Ot;function fa(l,re){return ti(l,l,re)}e.rangeIsOnSingleLine=fa;function Oa(l,re,cr){return os(is(l,cr,!1),is(re,cr,!1),cr)}e.rangeStartPositionsAreOnSameLine=Oa;function ia(l,re,cr){return os(l.end,re.end,cr)}e.rangeEndPositionsAreOnSameLine=ia;function ti(l,re,cr){return os(is(l,cr,!1),re.end,cr)}e.rangeStartIsOnSameLineAsRangeEnd=ti;function Na(l,re,cr){return os(l.end,is(re,cr,!1),cr)}e.rangeEndIsOnSameLineAsRangeStart=Na;function Ua(l,re,cr,Vr){var Nt=is(re,cr,Vr);return e.getLinesBetweenPositions(cr,l.end,Nt)}e.getLinesBetweenRangeEndAndRangeStart=Ua;function Go(l,re,cr){return e.getLinesBetweenPositions(cr,l.end,re.end)}e.getLinesBetweenRangeEndPositions=Go;function cl(l,re){return!os(l.pos,l.end,re)}e.isNodeArrayMultiLine=cl;function os(l,re,cr){return e.getLinesBetweenPositions(cr,l,re)===0}e.positionsAreOnSameLine=os;function is(l,re,cr){return jg(l.pos)?-1:e.skipTrivia(re.text,l.pos,!1,cr)}e.getStartPositionOfRange=is;function Vl(l,re,cr,Vr){var Nt=e.skipTrivia(cr.text,l,!1,Vr),xn=$c(Nt,re,cr);return e.getLinesBetweenPositions(cr,xn!=null?xn:re,Nt)}e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=Vl;function Zc(l,re,cr,Vr){var Nt=e.skipTrivia(cr.text,l,!1,Vr);return e.getLinesBetweenPositions(cr,l,Math.min(re,Nt))}e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=Zc;function $c(l,re,cr){for(re===void 0&&(re=0);l-- >re;)if(!e.isWhiteSpaceLike(cr.text.charCodeAt(l)))return l}function md(l){var re=e.getParseTreeNode(l);if(re)switch(re.parent.kind){case 259:case 260:return re===re.parent.name}return!1}e.isDeclarationNameOfEnumOrNamespace=md;function n_(l){return e.filter(l.declarations,tf)}e.getInitializedVariables=n_;function tf(l){return l.initializer!==void 0}function Mf(l){return l.watch&&l.hasOwnProperty("watch")}e.isWatchSet=Mf;function a_(l){l.close()}e.closeFileWatcher=a_;function gd(l){return l.flags&33554432?l.checkFlags:0}e.getCheckFlags=gd;function Wl(l,re){if(re===void 0&&(re=!1),l.valueDeclaration){var cr=re&&l.declarations&&e.find(l.declarations,function(ga){return ga.kind===172})||l.valueDeclaration,Vr=e.getCombinedModifierFlags(cr);return l.parent&&l.parent.flags&32?Vr:Vr&-29}if(gd(l)&6){var Nt=l.checkFlags,xn=Nt&1024?8:Nt&256?4:16,Bn=Nt&2048?32:0;return xn|Bn}return l.flags&4194304?36:0}e.getDeclarationModifierFlagsFromSymbol=Wl;function ep(l,re){return l.flags&2097152?re.getAliasedSymbol(l):l}e.skipAlias=ep;function i_(l){return l.exportSymbol?l.exportSymbol.flags|l.flags:l.flags}e.getCombinedLocalAndExportSymbolFlags=i_;function xe(l){return at(l)===1}e.isWriteOnlyAccess=xe;function Tr(l){return at(l)!==0}e.isWriteAccess=Tr;var Gr;(function(l){l[l.Read=0]="Read",l[l.Write=1]="Write",l[l.ReadWrite=2]="ReadWrite"})(Gr||(Gr={}));function at(l){var re=l.parent;if(!re)return 0;switch(re.kind){case 211:return at(re);case 219:case 218:var cr=re.operator;return cr===45||cr===46?ga():0;case 220:var Vr=re,Nt=Vr.left,xn=Vr.operatorToken;return Nt===l&&ac(xn.kind)?xn.kind===63?1:ga():0;case 205:return re.name!==l?0:at(re);case 294:{var Bn=at(re.parent);return l===re.name?Ct(Bn):Bn}case 295:return l===re.objectAssignmentInitializer?0:at(re.parent);case 203:return at(re);default:return 0}function ga(){return re.parent&&fi(re.parent).kind===237?1:2}}function Ct(l){switch(l){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(l)}}function Xt(l,re){if(!l||!re||Object.keys(l).length!==Object.keys(re).length)return!1;for(var cr in l)if(typeof l[cr]=="object"){if(!Xt(l[cr],re[cr]))return!1}else if(typeof l[cr]!="function"&&l[cr]!==re[cr])return!1;return!0}e.compareDataObjects=Xt;function On(l,re){l.forEach(re),l.clear()}e.clearMap=On;function $n(l,re,cr){var Vr=cr.onDeleteValue,Nt=cr.onExistingValue;l.forEach(function(xn,Bn){var ga=re.get(Bn);ga===void 0?(l.delete(Bn),Vr(xn,Bn)):Nt&&Nt(xn,ga,Bn)})}e.mutateMapSkippingNewValues=$n;function wa(l,re,cr){$n(l,re,cr);var Vr=cr.createNewValue;re.forEach(function(Nt,xn){l.has(xn)||l.set(xn,Vr(xn,Nt))})}e.mutateMap=wa;function Ea(l){if(l.flags&32){var re=Ki(l);return!!re&&rc(re,128)}return!1}e.isAbstractConstructorSymbol=Ea;function Ki(l){var re;return(re=l.declarations)===null||re===void 0?void 0:re.find(e.isClassLike)}e.getClassLikeDeclarationOfSymbol=Ki;function Qo(l){return l.flags&3899393?l.objectFlags:0}e.getObjectFlags=Qo;function $i(l,re){return re.getSignaturesOfType(l,0).length!==0||re.getSignaturesOfType(l,1).length!==0}e.typeHasCallOrConstructSignatures=$i;function Ho(l,re){return!!e.forEachAncestorDirectory(l,function(cr){return re(cr)?!0:void 0})}e.forSomeAncestorDirectory=Ho;function gs(l){return!!l&&!!l.declarations&&!!l.declarations[0]&&e.isNamespaceExportDeclaration(l.declarations[0])}e.isUMDExportSymbol=gs;function _l(l){var re=l.moduleSpecifier;return e.isStringLiteral(re)?re.text:he(re)}e.showModuleSpecifier=_l;function xs(l){var re;return e.forEachChild(l,function(cr){F(cr)&&(re=cr)},function(cr){for(var Vr=cr.length-1;Vr>=0;Vr--)if(F(cr[Vr])){re=cr[Vr];break}}),re}e.getLastChild=xs;function Cl(l,re,cr){return cr===void 0&&(cr=!0),l.has(re)?!1:(l.set(re,cr),!0)}e.addToSeen=Cl;function bl(l){return e.isClassLike(l)||e.isInterfaceDeclaration(l)||e.isTypeLiteralNode(l)}e.isObjectTypeDeclaration=bl;function ju(l){return l>=176&&l<=199||l===130||l===154||l===146||l===157||l===147||l===133||l===149||l===150||l===114||l===152||l===143||l===227||l===310||l===311||l===312||l===313||l===314||l===315||l===316}e.isTypeNodeKind=ju;function ul(l){return l.kind===205||l.kind===206}e.isAccessExpression=ul;function Ps(l){return l.kind===205?l.name:(e.Debug.assert(l.kind===206),l.argumentExpression)}e.getNameOfAccessExpression=Ps;function Ff(l){switch(l.kind){case"text":case"internal":return!0;default:return!1}}e.isBundleFileTextLike=Ff;function _u(l){return l.kind===268||l.kind===272}e.isNamedImportsOrExports=_u;function ml(l){for(;ul(l);)l=l.expression;return l}e.getLeftmostAccessExpression=ml;function _(l,re){for(;;){switch(l.kind){case 219:l=l.operand;continue;case 220:l=l.left;continue;case 221:l=l.condition;continue;case 209:l=l.tag;continue;case 207:if(re)return l;case 228:case 206:case 205:case 229:case 348:l=l.expression;continue}return l}}e.getLeftmostExpression=_;function W(l,re){this.flags=l,this.escapedName=re,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function be(l,re){this.flags=re,(e.Debug.isDebugging||e.tracing)&&(this.checker=l)}function nr(l,re){this.flags=re,e.Debug.isDebugging&&(this.checker=l)}function Ur(l,re,cr){this.pos=re,this.end=cr,this.kind=l,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function Ht(l,re,cr){this.pos=re,this.end=cr,this.kind=l,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function an(l,re,cr){this.pos=re,this.end=cr,this.kind=l,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function si(l,re,cr){this.fileName=l,this.text=re,this.skipTrivia=cr||function(Vr){return Vr}}e.objectAllocator={getNodeConstructor:function(){return Ur},getTokenConstructor:function(){return Ht},getIdentifierConstructor:function(){return an},getPrivateIdentifierConstructor:function(){return Ur},getSourceFileConstructor:function(){return Ur},getSymbolConstructor:function(){return W},getTypeConstructor:function(){return be},getSignatureConstructor:function(){return nr},getSourceMapSourceConstructor:function(){return si}};function Io(l){e.objectAllocator=l}e.setObjectAllocator=Io;function vs(l,re,cr){return cr===void 0&&(cr=0),l.replace(/{(\d+)}/g,function(Vr,Nt){return""+e.Debug.checkDefined(re[+Nt+cr])})}e.formatStringFromArgs=vs;function rp(l){e.localizedDiagnosticMessages=l}e.setLocalizedDiagnosticMessages=rp;function Gc(l){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[l.key]||l.message}e.getLocaleSpecificMessage=Gc;function Gm(l,re,cr,Vr){fe(void 0,re,cr);var Nt=Gc(Vr);return arguments.length>4&&(Nt=vs(Nt,arguments,4)),{file:void 0,start:re,length:cr,messageText:Nt,category:Vr.category,code:Vr.code,reportsUnnecessary:Vr.reportsUnnecessary,fileName:l}}e.createDetachedDiagnostic=Gm;function tp(l){return l.file===void 0&&l.start!==void 0&&l.length!==void 0&&typeof l.fileName=="string"}function Bm(l,re){var cr=re.fileName||"",Vr=re.text.length;e.Debug.assertEqual(l.fileName,cr),e.Debug.assertLessThanOrEqual(l.start,Vr),e.Debug.assertLessThanOrEqual(l.start+l.length,Vr);var Nt={file:re,start:l.start,length:l.length,messageText:l.messageText,category:l.category,code:l.code,reportsUnnecessary:l.reportsUnnecessary};if(l.relatedInformation){Nt.relatedInformation=[];for(var xn=0,Bn=l.relatedInformation;xn<Bn.length;xn++){var ga=Bn[xn];tp(ga)&&ga.fileName===cr?(e.Debug.assertLessThanOrEqual(ga.start,Vr),e.Debug.assertLessThanOrEqual(ga.start+ga.length,Vr),Nt.relatedInformation.push(Bm(ga,re))):Nt.relatedInformation.push(ga)}}return Nt}function Fv(l,re){for(var cr=[],Vr=0,Nt=l;Vr<Nt.length;Vr++){var xn=Nt[Vr];cr.push(Bm(xn,re))}return cr}e.attachFileToDiagnostics=Fv;function An(l,re,cr,Vr){fe(l,re,cr);var Nt=Gc(Vr);return arguments.length>4&&(Nt=vs(Nt,arguments,4)),{file:l,start:re,length:cr,messageText:Nt,category:Vr.category,code:Vr.code,reportsUnnecessary:Vr.reportsUnnecessary,reportsDeprecated:Vr.reportsDeprecated}}e.createFileDiagnostic=An;function Gf(l,re){var cr=Gc(re);return arguments.length>2&&(cr=vs(cr,arguments,2)),cr}e.formatMessage=Gf;function nf(l){var re=Gc(l);return arguments.length>1&&(re=vs(re,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:re,category:l.category,code:l.code,reportsUnnecessary:l.reportsUnnecessary,reportsDeprecated:l.reportsDeprecated}}e.createCompilerDiagnostic=nf;function O_(l,re){return{file:void 0,start:void 0,length:void 0,code:l.code,category:l.category,messageText:l.next?l:l.messageText,relatedInformation:re}}e.createCompilerDiagnosticFromMessageChain=O_;function Cp(l,re){var cr=Gc(re);return arguments.length>2&&(cr=vs(cr,arguments,2)),{messageText:cr,category:re.category,code:re.code,next:l===void 0||Array.isArray(l)?l:[l]}}e.chainDiagnosticMessages=Cp;function Um(l,re){for(var cr=l;cr.next;)cr=cr.next[0];cr.next=[re]}e.concatenateDiagnosticMessageChains=Um;function Hu(l){return l.file?l.file.path:void 0}function rm(l,re){return mu(l,re)||Gv(l,re)||0}e.compareDiagnostics=rm;function mu(l,re){return e.compareStringsCaseSensitive(Hu(l),Hu(re))||e.compareValues(l.start,re.start)||e.compareValues(l.length,re.length)||e.compareValues(l.code,re.code)||o_(l.messageText,re.messageText)||0}e.compareDiagnosticsSkipRelatedInformation=mu;function Gv(l,re){return!l.relatedInformation&&!re.relatedInformation?0:l.relatedInformation&&re.relatedInformation?e.compareValues(l.relatedInformation.length,re.relatedInformation.length)||e.forEach(l.relatedInformation,function(cr,Vr){var Nt=re.relatedInformation[Vr];return rm(cr,Nt)})||0:l.relatedInformation?-1:1}function o_(l,re){if(typeof l=="string"&&typeof re=="string")return e.compareStringsCaseSensitive(l,re);if(typeof l=="string")return-1;if(typeof re=="string")return 1;var cr=e.compareStringsCaseSensitive(l.messageText,re.messageText);if(cr)return cr;if(!l.next&&!re.next)return 0;if(!l.next)return-1;if(!re.next)return 1;for(var Vr=Math.min(l.next.length,re.next.length),Nt=0;Nt<Vr;Nt++)if(cr=o_(l.next[Nt],re.next[Nt]),cr)return cr;return l.next.length<re.next.length?-1:l.next.length>re.next.length?1:0}function tm(l){return l===4||l===2||l===1||l===6?1:0}e.getLanguageVariant=tm;function s_(l){return l.target||l.module===e.ModuleKind.Node12&&7||l.module===e.ModuleKind.NodeNext&&99||0}e.getEmitScriptTarget=s_;function vd(l){return typeof l.module=="number"?l.module:s_(l)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}e.getEmitModuleKind=vd;function Vm(l){var re=l.moduleResolution;if(re===void 0)switch(vd(l)){case e.ModuleKind.CommonJS:re=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node12:re=e.ModuleResolutionKind.Node12;break;case e.ModuleKind.NodeNext:re=e.ModuleResolutionKind.NodeNext;break;default:re=e.ModuleResolutionKind.Classic;break}return re}e.getEmitModuleResolutionKind=Vm;function Ju(l){switch(vd(l)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return!0;default:return!1}}e.hasJsonModuleEmitEnabled=Ju;function Bv(l){return l.allowUnreachableCode===!1}e.unreachableCodeIsError=Bv;function Pg(l){return l.allowUnusedLabels===!1}e.unusedLabelIsError=Pg;function xl(l){return!!(Fg(l)&&l.declarationMap)}e.getAreDeclarationMapsEnabled=xl;function Mg(l){if(l.esModuleInterop!==void 0)return l.esModuleInterop;switch(vd(l)){case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return!0}}e.getESModuleInterop=Mg;function xp(l){var re=vd(l);return l.allowSyntheticDefaultImports!==void 0?l.allowSyntheticDefaultImports:Mg(l)||re===e.ModuleKind.System}e.getAllowSyntheticDefaultImports=xp;function Fg(l){return!!(l.declaration||l.composite)}e.getEmitDeclarations=Fg;function Ku(l){return!!(l.preserveConstEnums||l.isolatedModules)}e.shouldPreserveConstEnums=Ku;function un(l){return!!(l.incremental||l.composite)}e.isIncrementalCompilation=un;function pa(l,re){return l[re]===void 0?!!l.strict:!!l[re]}e.getStrictOptionValue=pa;function Hn(l){return l.allowJs===void 0?!!l.checkJs:l.allowJs}e.getAllowJSCompilerOption=Hn;function Sa(l){return l.useDefineForClassFields===void 0?s_(l)===99:l.useDefineForClassFields}e.getUseDefineForClassFields=Sa;function Za(l,re){return q(re,l,e.semanticDiagnosticsOptionDeclarations)}e.compilerOptionsAffectSemanticDiagnostics=Za;function zi(l,re){return q(re,l,e.affectsEmitOptionDeclarations)}e.compilerOptionsAffectEmit=zi;function Bo(l,re){return re.strictFlag?pa(l,re.name):l[re.name]}e.getCompilerOptionValue=Bo;function Zs(l){var re=l.jsx;return re===2||re===4||re===5}e.getJSXTransformEnabled=Zs;function gl(l,re){var cr=re==null?void 0:re.pragmas.get("jsximportsource"),Vr=e.isArray(cr)?cr[cr.length-1]:cr;return l.jsx===4||l.jsx===5||l.jsxImportSource||Vr?(Vr==null?void 0:Vr.arguments.factory)||l.jsxImportSource||"react":void 0}e.getJSXImplicitImportBase=gl;function jl(l,re){return l?"".concat(l,"/").concat(re.jsx===5?"jsx-dev-runtime":"jsx-runtime"):void 0}e.getJSXRuntimeImport=jl;function vl(l){for(var re=!1,cr=0;cr<l.length;cr++)if(l.charCodeAt(cr)===42)if(!re)re=!0;else return!1;return!0}e.hasZeroOrOneAsteriskCharacter=vl;function Bf(l,re){var cr,Vr,Nt,xn=!1;return{getSymlinkedFiles:function(){return Nt},getSymlinkedDirectories:function(){return cr},getSymlinkedDirectoriesByRealpath:function(){return Vr},setSymlinkedFile:function(ga,Ei){return(Nt||(Nt=new e.Map)).set(ga,Ei)},setSymlinkedDirectory:function(ga,Ei){var li=e.toPath(ga,l,re);Ey(li)||(li=e.ensureTrailingDirectorySeparator(li),Ei!==!1&&!(cr!=null&&cr.has(li))&&(Vr||(Vr=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(Ei.realPath),ga),(cr||(cr=new e.Map)).set(li,Ei))},setSymlinkedDirectoryFromSymlinkedFile:function(ga,Ei){this.setSymlinkedFile(e.toPath(ga,l,re),Ei);var li=po(Ei,ga,l,re)||e.emptyArray,go=li[0],wi=li[1];go&&wi&&this.setSymlinkedDirectory(wi,{real:go,realPath:e.toPath(go,l,re)})},setSymlinksFromResolutions:function(ga,Ei){var li=this,go;e.Debug.assert(!xn),xn=!0;for(var wi=0,Is=ga;wi<Is.length;wi++){var Ks=Is[wi];(go=Ks.resolvedModules)===null||go===void 0||go.forEach(function(hs){return Bn(li,hs)})}Ei==null||Ei.forEach(function(hs){return Bn(li,hs)})},hasProcessedResolutions:function(){return xn}};function Bn(ga,Ei){if(!(!Ei||!Ei.originalPath||!Ei.resolvedFileName)){var li=Ei.resolvedFileName,go=Ei.originalPath;ga.setSymlinkedFile(e.toPath(go,l,re),li);var wi=po(li,go,l,re)||e.emptyArray,Is=wi[0],Ks=wi[1];Is&&Ks&&ga.setSymlinkedDirectory(Ks,{real:Is,realPath:e.toPath(Is,l,re)})}}}e.createSymlinkCache=Bf;function po(l,re,cr,Vr){for(var Nt=e.getPathComponents(e.getNormalizedAbsolutePath(l,cr)),xn=e.getPathComponents(e.getNormalizedAbsolutePath(re,cr)),Bn=!1;Nt.length>=2&&xn.length>=2&&!l_(Nt[Nt.length-2],Vr)&&!l_(xn[xn.length-2],Vr)&&Vr(Nt[Nt.length-1])===Vr(xn[xn.length-1]);)Nt.pop(),xn.pop(),Bn=!0;return Bn?[e.getPathFromPathComponents(Nt),e.getPathFromPathComponents(xn)]:void 0}function l_(l,re){return l!==void 0&&(re(l)==="node_modules"||e.startsWith(l,"@"))}function np(l){return e.isAnyDirectorySeparator(l.charCodeAt(0))?l.slice(1):void 0}function nm(l,re,cr){var Vr=e.tryRemovePrefix(l,re,cr);return Vr===void 0?void 0:np(Vr)}e.tryRemoveDirectoryPrefix=nm;var am=/[^\w\s\/]/g;function IE(l){return l.replace(am,NE)}e.regExpEscape=IE;function NE(l){return"\\"+l}var oy=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Gg="(?!(".concat(e.commonPackageFolders.join("|"),")(/|$))"),Uv={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(Gg,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(l){return Vv(l,Uv.singleAsteriskRegexFragment)}},Bg={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(Gg,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(l){return Vv(l,Bg.singleAsteriskRegexFragment)}},gu={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(l){return Vv(l,gu.singleAsteriskRegexFragment)}},Ug={files:Uv,directories:Bg,exclude:gu};function Ip(l,re,cr){var Vr=R_(l,re,cr);if(!(!Vr||!Vr.length)){var Nt=Vr.map(function(Bn){return"(".concat(Bn,")")}).join("|"),xn=cr==="exclude"?"($|/)":"$";return"^(".concat(Nt,")").concat(xn)}}e.getRegularExpressionForWildcard=Ip;function R_(l,re,cr){if(!(l===void 0||l.length===0))return e.flatMap(l,function(Vr){return Vr&&vu(Vr,re,cr,Ug[cr])})}e.getRegularExpressionsForWildcards=R_;function c_(l){return!/[.*?]/.test(l)}e.isImplicitGlob=c_;function kE(l,re,cr){var Vr=l&&vu(l,re,cr,Ug[cr]);return Vr&&"^(".concat(Vr,")").concat(cr==="exclude"?"($|/)":"$")}e.getPatternFromSpec=kE;function vu(l,re,cr,Vr){var Nt=Vr.singleAsteriskRegexFragment,xn=Vr.doubleAsteriskRegexFragment,Bn=Vr.replaceWildcardCharacter,ga="",Ei=!1,li=e.getNormalizedPathComponents(l,re),go=e.last(li);if(!(cr!=="exclude"&&go==="**")){li[0]=e.removeTrailingDirectorySeparator(li[0]),c_(go)&&li.push("**","*");for(var wi=0,Is=0,Ks=li;Is<Ks.length;Is++){var hs=Ks[Is];if(hs==="**")ga+=xn;else if(cr==="directories"&&(ga+="(",wi++),Ei&&(ga+=e.directorySeparator),cr!=="exclude"){var ic="";hs.charCodeAt(0)===42?(ic+="([^./]"+Nt+")?",hs=hs.substr(1)):hs.charCodeAt(0)===63&&(ic+="[^./]",hs=hs.substr(1)),ic+=hs.replace(am,Bn),ic!==hs&&(ga+=Gg),ga+=ic}else ga+=hs.replace(am,Bn);Ei=!0}for(;wi>0;)ga+=")?",wi--;return ga}}function Vv(l,re){return l==="*"?re:l==="?"?"[^/]":"\\"+l}function Wv(l,re,cr,Vr,Nt){l=e.normalizePath(l),Nt=e.normalizePath(Nt);var xn=e.combinePaths(Nt,l);return{includeFilePatterns:e.map(R_(cr,xn,"files"),function(Bn){return"^".concat(Bn,"$")}),includeFilePattern:Ip(cr,xn,"files"),includeDirectoryPattern:Ip(cr,xn,"directories"),excludePattern:Ip(re,xn,"exclude"),basePaths:Vg(l,cr,Vr)}}e.getFileMatcherPatterns=Wv;function im(l,re){return new RegExp(l,re?"":"i")}e.getRegexFromPattern=im;function af(l,re,cr,Vr,Nt,xn,Bn,ga,Ei){l=e.normalizePath(l),xn=e.normalizePath(xn);for(var li=Wv(l,cr,Vr,Nt,xn),go=li.includeFilePatterns&&li.includeFilePatterns.map(function(ap){return im(ap,Nt)}),wi=li.includeDirectoryPattern&&im(li.includeDirectoryPattern,Nt),Is=li.excludePattern&&im(li.excludePattern,Nt),Ks=go?go.map(function(){return[]}):[[]],hs=new e.Map,ic=e.createGetCanonicalFileName(Nt),Eo=0,zu=li.basePaths;Eo<zu.length;Eo++){var u_=zu[Eo];sm(u_,e.combinePaths(xn,u_),Bn)}return e.flatten(Ks);function sm(ap,zm,Ii){var Hg=ic(Ei(zm));if(!hs.has(Hg)){hs.set(Hg,!0);for(var Ni=ga(ap),$v=Ni.files,eh=Ni.directories,f_=function(th){var Ym=e.combinePaths(ap,th),Qm=e.combinePaths(zm,th);if(re&&!e.fileExtensionIsOneOf(Ym,re)||Is&&Is.test(Qm))return"continue";if(!go)Ks[0].push(Ym);else{var Jg=e.findIndex(go,function(w_){return w_.test(Qm)});Jg!==-1&&Ks[Jg].push(Ym)}},qm=0,Ms=e.sort($v,e.compareStringsCaseSensitive);qm<Ms.length;qm++){var oc=Ms[qm];f_(oc)}if(!(Ii!==void 0&&(Ii--,Ii===0)))for(var tu=0,rh=e.sort(eh,e.compareStringsCaseSensitive);tu<rh.length;tu++){var oc=rh[tu],Xm=e.combinePaths(ap,oc),ip=e.combinePaths(zm,oc);(!wi||wi.test(ip))&&(!Is||!Is.test(ip))&&sm(Xm,ip,Ii)}}}}e.matchFiles=af;function Vg(l,re,cr){var Vr=[l];if(re){for(var Nt=[],xn=0,Bn=re;xn<Bn.length;xn++){var ga=Bn[xn],Ei=e.isRootedDiskPath(ga)?ga:e.normalizePath(e.combinePaths(l,ga));Nt.push(Il(Ei))}Nt.sort(e.getStringComparer(!cr));for(var li=function(Ks){e.every(Vr,function(hs){return!e.containsPath(hs,Ks,l,!cr)})&&Vr.push(Ks)},go=0,wi=Nt;go<wi.length;go++){var Is=wi[go];li(Is)}}return Vr}function Il(l){var re=e.indexOfAnyCharCode(l,oy);return re<0?e.hasExtension(l)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(l)):l:l.substring(0,l.lastIndexOf(e.directorySeparator,re))}function sy(l,re){return re||ly(l)||3}e.ensureScriptKind=sy;function ly(l){var re=l.substr(l.lastIndexOf("."));switch(re.toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getScriptKindFromFileName=ly,e.supportedTSExtensions=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],e.supportedTSExtensionsFlat=e.flatten(e.supportedTSExtensions);var OE=Gt(Gt([],e.supportedTSExtensions,!0),[[".json"]],!1),hu=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"];e.supportedJSExtensions=[[".js",".jsx"],[".mjs"],[".cjs"]],e.supportedJSExtensionsFlat=e.flatten(e.supportedJSExtensions);var Np=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],cy=Gt(Gt([],Np,!0),[[".json"]],!1);function uy(l,re){var cr=l&&Hn(l);if(!re||re.length===0)return cr?Np:e.supportedTSExtensions;var Vr=cr?Np:e.supportedTSExtensions,Nt=e.flatten(Vr),xn=Gt(Gt([],Vr,!0),e.mapDefined(re,function(Bn){return Bn.scriptKind===7||cr&&dy(Bn.scriptKind)&&Nt.indexOf(Bn.extension)===-1?[Bn.extension]:void 0}),!0);return xn}e.getSupportedExtensions=uy;function fy(l,re){return!l||!l.resolveJsonModule?re:re===Np?cy:re===e.supportedTSExtensions?OE:Gt(Gt([],re,!0),[[".json"]],!1)}e.getSupportedExtensionsWithJsonIfResolveJsonModule=fy;function dy(l){return l===1||l===2}function RE(l){return e.some(e.supportedJSExtensionsFlat,function(re){return e.fileExtensionIs(l,re)})}e.hasJSFileExtension=RE;function jv(l){return e.some(e.supportedTSExtensionsFlat,function(re){return e.fileExtensionIs(l,re)})}e.hasTSFileExtension=jv;function wE(l,re,cr){if(!l)return!1;for(var Vr=uy(re,cr),Nt=0,xn=e.flatten(fy(re,Vr));Nt<xn.length;Nt++){var Bn=xn[Nt];if(e.fileExtensionIs(l,Bn))return!0}return!1}e.isSupportedSourceFileName=wE;function Wg(l){var re=l.match(/\//g);return re?re.length:0}function py(l,re){return e.compareValues(Wg(l),Wg(re))}e.compareNumberOfDirectorySeparators=py;var Hv=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function Wm(l){for(var re=0,cr=Hv;re<cr.length;re++){var Vr=cr[re],Nt=_y(l,Vr);if(Nt!==void 0)return Nt}return l}e.removeFileExtension=Wm;function _y(l,re){return e.fileExtensionIs(l,re)?Jv(l,re):void 0}e.tryRemoveExtension=_y;function Jv(l,re){return l.substring(0,l.length-re.length)}e.removeExtension=Jv;function PE(l,re){return e.changeAnyExtension(l,re,Hv,!1)}e.changeExtension=PE;function om(l){var re=l.indexOf("*");return re===-1?l:l.indexOf("*",re+1)!==-1?void 0:{prefix:l.substr(0,re),suffix:l.substr(re+1)}}e.tryParsePattern=om;function my(l){return e.mapDefined(e.getOwnKeys(l),function(re){return om(re)})}e.tryParsePatterns=my;function jg(l){return!(l>=0)}e.positionIsSynthesized=jg;function gy(l){return l===".ts"||l===".tsx"||l===".d.ts"||l===".cts"||l===".mts"||l===".d.mts"||l===".d.cts"}e.extensionIsTS=gy;function vy(l){return gy(l)||l===".json"}e.resolutionExtensionIsTSOrJson=vy;function hy(l){var re=Kv(l);return re!==void 0?re:e.Debug.fail("File ".concat(l," has unknown extension."))}e.extensionFromPath=hy;function ME(l){return Kv(l)!==void 0}e.isAnySupportedFileExtension=ME;function Kv(l){return e.find(Hv,function(re){return e.fileExtensionIs(l,re)})}e.tryGetExtensionFromPath=Kv;function FE(l,re){return l.checkJsDirective?l.checkJsDirective.enabled:re.checkJs}e.isCheckJsEnabledForFile=FE,e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray};function jm(l,re){for(var cr=[],Vr=0,Nt=l;Vr<Nt.length;Vr++){var xn=Nt[Vr];if(xn===re)return re;e.isString(xn)||cr.push(xn)}return e.findBestPatternMatch(cr,function(Bn){return Bn},re)}e.matchPatternOrExact=jm;function zv(l,re){var cr=l.indexOf(re);return e.Debug.assert(cr!==-1),l.slice(cr)}e.sliceAfter=zv;function qv(l){for(var re,cr=[],Vr=1;Vr<arguments.length;Vr++)cr[Vr-1]=arguments[Vr];return cr.length&&(l.relatedInformation||(l.relatedInformation=[]),e.Debug.assert(l.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),(re=l.relatedInformation).push.apply(re,cr)),l}e.addRelatedInfo=qv;function GE(l,re){e.Debug.assert(l.length!==0);for(var cr=re(l[0]),Vr=cr,Nt=1;Nt<l.length;Nt++){var xn=re(l[Nt]);xn<cr?cr=xn:xn>Vr&&(Vr=xn)}return{min:cr,max:Vr}}e.minAndMax=GE;function BE(l){return{pos:Te(l),end:l.end}}e.rangeOfNode=BE;function eu(l,re){var cr=re.pos-1,Vr=e.skipTrivia(l.text,re.end)+1;return{pos:cr,end:Vr}}e.rangeOfTypeParameters=eu;function Tc(l,re,cr){return re.skipLibCheck&&l.isDeclarationFile||re.skipDefaultLibCheck&&l.hasNoDefaultLib||cr.isSourceOfProjectReferenceRedirect(l.fileName)}e.skipTypeChecking=Tc;function of(l,re){return l===re||typeof l=="object"&&l!==null&&typeof re=="object"&&re!==null&&e.equalOwnProperties(l,re,of)}e.isJsonEqual=of;function yu(l){var re;switch(l.charCodeAt(1)){case 98:case 66:re=1;break;case 111:case 79:re=3;break;case 120:case 88:re=4;break;default:for(var cr=l.length-1,Vr=0;l.charCodeAt(Vr)===48;)Vr++;return l.slice(Vr,cr)||"0"}for(var Nt=2,xn=l.length-1,Bn=(xn-Nt)*re,ga=new Uint16Array((Bn>>>4)+(Bn&15?1:0)),Ei=xn-1,li=0;Ei>=Nt;Ei--,li+=re){var go=li>>>4,wi=l.charCodeAt(Ei),Is=wi<=57?wi-48:10+wi-(wi<=70?65:97),Ks=Is<<(li&15);ga[go]|=Ks;var hs=Ks>>>16;hs&&(ga[go+1]|=hs)}for(var ic="",Eo=ga.length-1,zu=!0;zu;){var u_=0;zu=!1;for(var go=Eo;go>=0;go--){var sm=u_<<16|ga[go],ap=sm/10|0;ga[go]=ap,u_=sm-ap*10,ap&&!zu&&(Eo=go,zu=!0)}ic=u_+ic}return ic}e.parsePseudoBigInt=yu;function yy(l){var re=l.negative,cr=l.base10Value;return(re&&cr!=="0"?"-":"")+cr}e.pseudoBigIntToString=yy;function Hm(l){return!!(l.flags&8388608)||yr(l)||by(l)||ru(l)||!(Es(l)||Jm(l))}e.isValidTypeOnlyAliasUseSite=Hm;function Jm(l){return e.isIdentifier(l)&&e.isShorthandPropertyAssignment(l.parent)&&l.parent.name===l}function ru(l){for(;l.kind===79||l.kind===205;)l=l.parent;if(l.kind!==161)return!1;if(rc(l.parent,128))return!0;var re=l.parent.parent.kind;return re===257||re===181}function by(l){if(l.kind!==79)return!1;var re=e.findAncestor(l.parent,function(cr){switch(cr.kind){case 290:return!0;case 205:case 227:return!1;default:return"quit"}});return(re==null?void 0:re.token)===117||(re==null?void 0:re.parent.kind)===257}function Xv(l){return e.isTypeReferenceNode(l)&&e.isIdentifier(l.typeName)}e.isIdentifierTypeReference=Xv;function UE(l,re){if(re===void 0&&(re=e.equateValues),l.length<2)return!0;for(var cr=l[0],Vr=1,Nt=l.length;Vr<Nt;Vr++){var xn=l[Vr];if(!re(cr,xn))return!1}return!0}e.arrayIsHomogeneous=UE;function El(l,re){return l.pos=re,l}e.setTextRangePos=El;function Sc(l,re){return l.end=re,l}e.setTextRangeEnd=Sc;function sf(l,re,cr){return Sc(El(l,re),cr)}e.setTextRangePosEnd=sf;function hd(l,re,cr){return sf(l,re,re+cr)}e.setTextRangePosWidth=hd;function Km(l,re){return l&&(l.flags=re),l}e.setNodeFlags=Km;function Yi(l,re){return l&&re&&(l.parent=re),l}e.setParent=Yi;function VE(l,re){if(l)for(var cr=0,Vr=l;cr<Vr.length;cr++){var Nt=Vr[cr];Yi(Nt,re)}return l}e.setEachParent=VE;function WE(l,re){if(!l)return l;return e.forEachChildRecursively(l,e.isJSDocNode(l)?cr:Nt),l;function cr(xn,Bn){if(re&&xn.parent===Bn)return"skip";Yi(xn,Bn)}function Vr(xn){if(e.hasJSDocNodes(xn))for(var Bn=0,ga=xn.jsDoc;Bn<ga.length;Bn++){var Ei=ga[Bn];cr(Ei,xn),e.forEachChildRecursively(Ei,cr)}}function Nt(xn,Bn){return cr(xn,Bn)||Vr(xn)}}e.setParentRecursive=WE;function jE(l){return!e.isOmittedExpression(l)}function kp(l){return e.isArrayLiteralExpression(l)&&e.every(l.elements,jE)}e.isPackedArrayLiteral=kp;function Nl(l){for(e.Debug.assertIsDefined(l.parent);;){var re=l.parent;if(e.isParenthesizedExpression(re)){l=re;continue}if(e.isExpressionStatement(re)||e.isVoidExpression(re)||e.isForStatement(re)&&(re.initializer===l||re.incrementor===l))return!0;if(e.isCommaListExpression(re)){if(l!==e.last(re.elements))return!0;l=re;continue}if(e.isBinaryExpression(re)&&re.operatorToken.kind===27){if(l===re.left)return!0;l=re;continue}return!1}}e.expressionResultIsUnused=Nl;function Ey(l){return e.some(e.ignoredPaths,function(re){return e.stringContains(l,re)})}e.containsIgnoredPath=Ey;function Yv(l){if(!!l.parent){switch(l.kind){case 162:var re=l.parent;return re.kind===189?void 0:re.typeParameters;case 163:return l.parent.parameters;case 198:return l.parent.templateSpans;case 232:return l.parent.templateSpans;case 164:return l.parent.decorators;case 290:return l.parent.heritageClauses}var cr=l.parent;if(e.isJSDocTag(l))return e.isJSDocTypeLiteral(l.parent)?void 0:l.parent.tags;switch(cr.kind){case 181:case 257:return e.isTypeElement(l)?cr.members:void 0;case 186:case 187:return cr.types;case 183:case 203:case 349:case 268:case 272:return cr.elements;case 204:case 285:return cr.properties;case 207:case 208:return e.isTypeNode(l)?cr.typeArguments:cr.expression===l?void 0:cr.arguments;case 277:case 281:return e.isJsxChild(l)?cr.children:void 0;case 279:case 278:return e.isTypeNode(l)?cr.typeArguments:void 0;case 234:case 288:case 289:case 261:return cr.statements;case 262:return cr.clauses;case 256:case 225:return e.isClassElement(l)?cr.members:void 0;case 259:return e.isEnumMember(l)?cr.members:void 0;case 303:return cr.statements}}}e.getContainingNodeArray=Yv;function HE(l){if(!l.typeParameters){if(e.some(l.parameters,function(cr){return!Fu(cr)}))return!0;if(l.kind!==213){var re=e.firstOrUndefined(l.parameters);if(!(re&&Df(re)))return!0}}return!1}e.hasContextSensitiveParameters=HE;function Qv(l){return l==="Infinity"||l==="-Infinity"||l==="NaN"}e.isInfinityOrNaNString=Qv;function Zv(l){return l.kind===253&&l.parent.kind===291}e.isCatchClauseVariableDeclaration=Zv;function Ty(l){var re=l.valueDeclaration&&Pd(l.valueDeclaration);return!!re&&(e.isParameter(re)||Zv(re))}e.isParameterOrCatchClauseVariable=Ty;function JE(l){return l.kind===212||l.kind===213}e.isFunctionExpressionOrArrowFunction=JE;function KE(l){return l.replace(/\$/gm,"\\$")}e.escapeSnippetText=KE})(gr||(gr={}));var gr;(function(e){function n(){var f,d,a,p,N;return{createBaseSourceFileNode:H,createBaseIdentifierNode:h,createBasePrivateIdentifierNode:v,createBaseTokenNode:A,createBaseNode:q};function H(ie){return new(N||(N=e.objectAllocator.getSourceFileConstructor()))(ie,-1,-1)}function h(ie){return new(a||(a=e.objectAllocator.getIdentifierConstructor()))(ie,-1,-1)}function v(ie){return new(p||(p=e.objectAllocator.getPrivateIdentifierConstructor()))(ie,-1,-1)}function A(ie){return new(d||(d=e.objectAllocator.getTokenConstructor()))(ie,-1,-1)}function q(ie){return new(f||(f=e.objectAllocator.getNodeConstructor()))(ie,-1,-1)}}e.createBaseNodeFactory=n})(gr||(gr={}));var gr;(function(e){function n(f){var d,a;return{getParenthesizeLeftSideOfBinaryForOperator:p,getParenthesizeRightSideOfBinaryForOperator:N,parenthesizeLeftSideOfBinary:q,parenthesizeRightSideOfBinary:ie,parenthesizeExpressionOfComputedPropertyName:b,parenthesizeConditionOfConditionalExpression:P,parenthesizeBranchOfConditionalExpression:S,parenthesizeExpressionOfExportDefault:B,parenthesizeExpressionOfNew:J,parenthesizeLeftSideOfAccess:k,parenthesizeOperandOfPostfixUnary:M,parenthesizeOperandOfPrefixUnary:x,parenthesizeExpressionsOfCommaDelimitedList:w,parenthesizeExpressionForDisallowedComma:K,parenthesizeExpressionOfExpressionStatement:Z,parenthesizeConciseBodyOfArrowFunction:ne,parenthesizeMemberOfConditionalType:R,parenthesizeMemberOfElementType:Y,parenthesizeElementTypeOfArrayType:U,parenthesizeConstituentTypesOfUnionOrIntersectionType:$,parenthesizeTypeArguments:I};function p(y){d||(d=new e.Map);var D=d.get(y);return D||(D=function(C){return q(y,C)},d.set(y,D)),D}function N(y){a||(a=new e.Map);var D=a.get(y);return D||(D=function(C){return ie(y,void 0,C)},a.set(y,D)),D}function H(y,D,C,m){var u=e.getOperatorPrecedence(220,y),g=e.getOperatorAssociativity(220,y),F=e.skipPartiallyEmittedExpressions(D);if(!C&&D.kind===213&&u>3)return!0;var te=e.getExpressionPrecedence(F);switch(e.compareValues(te,u)){case-1:return!(!C&&g===1&&D.kind===223);case 1:return!1;case 0:if(C)return g===1;if(e.isBinaryExpression(F)&&F.operatorToken.kind===y){if(h(y))return!1;if(y===39){var ue=m?v(m):0;if(e.isLiteralKind(ue)&&ue===v(F))return!1}}var X=e.getExpressionAssociativity(F);return X===0}}function h(y){return y===41||y===51||y===50||y===52}function v(y){if(y=e.skipPartiallyEmittedExpressions(y),e.isLiteralKind(y.kind))return y.kind;if(y.kind===220&&y.operatorToken.kind===39){if(y.cachedLiteralKind!==void 0)return y.cachedLiteralKind;var D=v(y.left),C=e.isLiteralKind(D)&&D===v(y.right)?D:0;return y.cachedLiteralKind=C,C}return 0}function A(y,D,C,m){var u=e.skipPartiallyEmittedExpressions(D);return u.kind===211?D:H(y,D,C,m)?f.createParenthesizedExpression(D):D}function q(y,D){return A(y,D,!0)}function ie(y,D,C){return A(y,C,!1,D)}function b(y){return e.isCommaSequence(y)?f.createParenthesizedExpression(y):y}function P(y){var D=e.getOperatorPrecedence(221,57),C=e.skipPartiallyEmittedExpressions(y),m=e.getExpressionPrecedence(C);return e.compareValues(m,D)!==1?f.createParenthesizedExpression(y):y}function S(y){var D=e.skipPartiallyEmittedExpressions(y);return e.isCommaSequence(D)?f.createParenthesizedExpression(y):y}function B(y){var D=e.skipPartiallyEmittedExpressions(y),C=e.isCommaSequence(D);if(!C)switch(e.getLeftmostExpression(D,!1).kind){case 225:case 212:C=!0}return C?f.createParenthesizedExpression(y):y}function J(y){var D=e.getLeftmostExpression(y,!0);switch(D.kind){case 207:return f.createParenthesizedExpression(y);case 208:return D.arguments?y:f.createParenthesizedExpression(y)}return k(y)}function k(y){var D=e.skipPartiallyEmittedExpressions(y);return e.isLeftHandSideExpression(D)&&(D.kind!==208||D.arguments)?y:e.setTextRange(f.createParenthesizedExpression(y),y)}function M(y){return e.isLeftHandSideExpression(y)?y:e.setTextRange(f.createParenthesizedExpression(y),y)}function x(y){return e.isUnaryExpression(y)?y:e.setTextRange(f.createParenthesizedExpression(y),y)}function w(y){var D=e.sameMap(y,K);return e.setTextRange(f.createNodeArray(D,y.hasTrailingComma),y)}function K(y){var D=e.skipPartiallyEmittedExpressions(y),C=e.getExpressionPrecedence(D),m=e.getOperatorPrecedence(220,27);return C>m?y:e.setTextRange(f.createParenthesizedExpression(y),y)}function Z(y){var D=e.skipPartiallyEmittedExpressions(y);if(e.isCallExpression(D)){var C=D.expression,m=e.skipPartiallyEmittedExpressions(C).kind;if(m===212||m===213){var u=f.updateCallExpression(D,e.setTextRange(f.createParenthesizedExpression(C),C),D.typeArguments,D.arguments);return f.restoreOuterExpressions(y,u,8)}}var g=e.getLeftmostExpression(D,!1).kind;return g===204||g===212?e.setTextRange(f.createParenthesizedExpression(y),y):y}function ne(y){return!e.isBlock(y)&&(e.isCommaSequence(y)||e.getLeftmostExpression(y,!1).kind===204)?e.setTextRange(f.createParenthesizedExpression(y),y):y}function R(y){return y.kind===188?f.createParenthesizedType(y):y}function Y(y){switch(y.kind){case 186:case 187:case 178:case 179:return f.createParenthesizedType(y)}return R(y)}function U(y){switch(y.kind){case 180:case 192:case 189:return f.createParenthesizedType(y)}return Y(y)}function $(y){return f.createNodeArray(e.sameMap(y,Y))}function T(y,D){return D===0&&e.isFunctionOrConstructorTypeNode(y)&&y.typeParameters?f.createParenthesizedType(y):y}function I(y){if(e.some(y))return f.createNodeArray(e.sameMap(y,T))}}e.createParenthesizerRules=n,e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(f){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(f){return e.identity},parenthesizeLeftSideOfBinary:function(f,d){return d},parenthesizeRightSideOfBinary:function(f,d,a){return a},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(f){return e.cast(f,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(f){return e.cast(f,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(f){return e.cast(f,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(f){return e.cast(f,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(f){return e.cast(f,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(f){return e.cast(f,e.isNodeArray)},parenthesizeTypeArguments:function(f){return f&&e.cast(f,e.isNodeArray)}}})(gr||(gr={}));var gr;(function(e){function n(f){return{convertToFunctionBlock:d,convertToFunctionExpression:a,convertToArrayAssignmentElement:p,convertToObjectAssignmentElement:N,convertToAssignmentPattern:H,convertToObjectAssignmentPattern:h,convertToArrayAssignmentPattern:v,convertToAssignmentElementTarget:A};function d(q,ie){if(e.isBlock(q))return q;var b=f.createReturnStatement(q);e.setTextRange(b,q);var P=f.createBlock([b],ie);return e.setTextRange(P,q),P}function a(q){if(!q.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var ie=f.createFunctionExpression(q.modifiers,q.asteriskToken,q.name,q.typeParameters,q.parameters,q.type,q.body);return e.setOriginalNode(ie,q),e.setTextRange(ie,q),e.getStartsOnNewLine(q)&&e.setStartsOnNewLine(ie,!0),ie}function p(q){if(e.isBindingElement(q)){if(q.dotDotDotToken)return e.Debug.assertNode(q.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(f.createSpreadElement(q.name),q),q);var ie=A(q.name);return q.initializer?e.setOriginalNode(e.setTextRange(f.createAssignment(ie,q.initializer),q),q):ie}return e.cast(q,e.isExpression)}function N(q){if(e.isBindingElement(q)){if(q.dotDotDotToken)return e.Debug.assertNode(q.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(f.createSpreadAssignment(q.name),q),q);if(q.propertyName){var ie=A(q.name);return e.setOriginalNode(e.setTextRange(f.createPropertyAssignment(q.propertyName,q.initializer?f.createAssignment(ie,q.initializer):ie),q),q)}return e.Debug.assertNode(q.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(f.createShorthandPropertyAssignment(q.name,q.initializer),q),q)}return e.cast(q,e.isObjectLiteralElementLike)}function H(q){switch(q.kind){case 201:case 203:return v(q);case 200:case 204:return h(q)}}function h(q){return e.isObjectBindingPattern(q)?e.setOriginalNode(e.setTextRange(f.createObjectLiteralExpression(e.map(q.elements,N)),q),q):e.cast(q,e.isObjectLiteralExpression)}function v(q){return e.isArrayBindingPattern(q)?e.setOriginalNode(e.setTextRange(f.createArrayLiteralExpression(e.map(q.elements,p)),q),q):e.cast(q,e.isArrayLiteralExpression)}function A(q){return e.isBindingPattern(q)?H(q):e.cast(q,e.isExpression)}}e.createNodeConverters=n,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}})(gr||(gr={}));var gr;(function(e){var n=0;(function(U){U[U.None=0]="None",U[U.NoParenthesizerRules=1]="NoParenthesizerRules",U[U.NoNodeConverters=2]="NoNodeConverters",U[U.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",U[U.NoOriginalNode=8]="NoOriginalNode"})(e.NodeFactoryFlags||(e.NodeFactoryFlags={}));function f(U,$){var T=U&8?d:a,I=e.memoize(function(){return U&1?e.nullParenthesizerRules:e.createParenthesizerRules(Se)}),y=e.memoize(function(){return U&2?e.nullNodeConverters:e.createNodeConverters(Se)}),D=e.memoizeOne(function(_){return function(W,be){return Ia(W,_,be)}}),C=e.memoizeOne(function(_){return function(W){return Qr(_,W)}}),m=e.memoizeOne(function(_){return function(W){return Xn(W,_)}}),u=e.memoizeOne(function(_){return function(){return I_(_)}}),g=e.memoizeOne(function(_){return function(W){return vc(_,W)}}),F=e.memoizeOne(function(_){return function(W,be){return Ml(_,W,be)}}),te=e.memoizeOne(function(_){return function(W,be){return Af(_,W,be)}}),ue=e.memoizeOne(function(_){return function(W,be,nr){return ld(_,W,be,nr)}}),X=e.memoizeOne(function(_){return function(W,be,nr){return cd(_,W,be,nr)}}),j=e.memoizeOne(function(_){return function(W,be,nr,Ur){return Cf(_,W,be,nr,Ur)}}),Se={get parenthesizer(){return I()},get converters(){return y()},createNodeArray:Ce,createNumericLiteral:_e,createBigIntLiteral:Le,createStringLiteral:Xe,createStringLiteralFromNode:De,createRegularExpressionLiteral:Ae,createLiteralLikeNode:Ye,createIdentifier:lr,updateIdentifier:Cr,createTempVariable:Or,createLoopVariable:Ke,createUniqueName:Pe,getGeneratedNameForNode:Hr,createPrivateIdentifier:ur,createToken:de,createSuper:Fe,createThis:$e,createNull:Dr,createTrue:Fr,createFalse:He,createModifier:pr,createModifiersFromModifierFlags:Jr,createQualifiedName:ze,updateQualifiedName:Ar,createComputedPropertyName:Yr,updateComputedPropertyName:lt,createTypeParameterDeclaration:tt,updateTypeParameterDeclaration:Rt,createParameterDeclaration:cn,updateParameterDeclaration:bn,createDecorator:In,updateDecorator:zn,createPropertySignature:ir,updatePropertySignature:Rr,createPropertyDeclaration:sr,updatePropertyDeclaration:ye,createMethodSignature:or,updateMethodSignature:fe,createMethodDeclaration:je,updateMethodDeclaration:Ee,createConstructorDeclaration:Ne,updateConstructorDeclaration:me,createGetAccessorDeclaration:Ze,updateGetAccessorDeclaration:xr,createSetAccessorDeclaration:fr,updateSetAccessorDeclaration:dr,createCallSignature:et,updateCallSignature:yt,createConstructSignature:Wr,updateConstructSignature:tr,createIndexSignature:Ir,updateIndexSignature:kr,createClassStaticBlockDeclaration:We,updateClassStaticBlockDeclaration:ee,createTemplateLiteralTypeSpan:zr,updateTemplateLiteralTypeSpan:gt,createKeywordTypeNode:vt,createTypePredicateNode:ut,updateTypePredicateNode:ht,createTypeReferenceNode:xt,updateTypeReferenceNode:wt,createFunctionTypeNode:Qt,updateFunctionTypeNode:mt,createConstructorTypeNode:rn,updateConstructorTypeNode:Jn,createTypeQueryNode:en,updateTypeQueryNode:St,createTypeLiteralNode:Ut,updateTypeLiteralNode:qt,createArrayTypeNode:Pn,updateArrayTypeNode:dn,createTupleTypeNode:oa,updateTupleTypeNode:pt,createNamedTupleMember:_t,updateNamedTupleMember:Pt,createOptionalTypeNode:It,updateOptionalTypeNode:rt,createRestTypeNode:Cn,updateRestTypeNode:Qn,createUnionTypeNode:_i,updateUnionTypeNode:va,createIntersectionTypeNode:yi,updateIntersectionTypeNode:ro,createConditionalTypeNode:Ka,updateConditionalTypeNode:Pi,createInferTypeNode:io,updateInferTypeNode:ji,createImportTypeNode:No,updateImportTypeNode:lo,createParenthesizedType:Lo,updateParenthesizedType:Ha,createThisTypeNode:Yo,createTypeOperatorNode:co,updateTypeOperatorNode:za,createIndexedAccessTypeNode:hi,updateIndexedAccessTypeNode:Zi,createMappedTypeNode:Po,updateMappedTypeNode:Mo,createLiteralTypeNode:Fo,updateLiteralTypeNode:zo,createTemplateLiteralType:Hi,updateTemplateLiteralType:to,createObjectBindingPattern:Es,updateObjectBindingPattern:Cs,createArrayBindingPattern:yr,updateArrayBindingPattern:dt,createBindingElement:tn,updateBindingElement:Un,createArrayLiteralExpression:oe,updateArrayLiteralExpression:mr,createObjectLiteralExpression:se,updateObjectLiteralExpression:Be,createPropertyAccessExpression:U&4?function(_,W){return e.setEmitFlags(er(_,W),131072)}:er,updatePropertyAccessExpression:hr,createPropertyAccessChain:U&4?function(_,W,be){return e.setEmitFlags(qr(_,W,be),131072)}:qr,updatePropertyAccessChain:Dt,createElementAccessExpression:Jt,updateElementAccessExpression:Sn,createElementAccessChain:ta,updateElementAccessChain:xa,createCallExpression:Di,updateCallExpression:$a,createCallChain:Ji,updateCallChain:So,createNewExpression:cs,updateNewExpression:bt,createTaggedTemplateExpression:Mn,updateTaggedTemplateExpression:da,createTypeAssertion:ei,updateTypeAssertion:bi,createParenthesizedExpression:xi,updateParenthesizedExpression:ka,createFunctionExpression:mi,updateFunctionExpression:Xi,createArrowFunction:Gi,updateArrowFunction:Ro,createDeleteExpression:ko,updateDeleteExpression:es,createTypeOfExpression:as,updateTypeOfExpression:pe,createVoidExpression:wr,updateVoidExpression:ft,createAwaitExpression:Zt,updateAwaitExpression:Re,createPrefixUnaryExpression:Qr,updatePrefixUnaryExpression:vn,createPostfixUnaryExpression:Xn,updatePostfixUnaryExpression:gi,createBinaryExpression:Ia,updateBinaryExpression:Wo,createConditionalExpression:Nr,updateConditionalExpression:Us,createTemplateExpression:il,updateTemplateExpression:Pl,createTemplateHead:Ql,createTemplateMiddle:zl,createTemplateTail:uc,createNoSubstitutionTemplateLiteral:cu,createTemplateLiteralLikeNode:Vs,createYieldExpression:no,updateYieldExpression:ql,createSpreadElement:fc,updateSpreadElement:Ws,createClassExpression:xc,updateClassExpression:Ic,createOmittedExpression:La,createExpressionWithTypeArguments:uu,updateExpressionWithTypeArguments:dc,createAsExpression:Nc,updateAsExpression:Pr,createNonNullExpression:$r,updateNonNullExpression:Lt,createNonNullChain:Kt,updateNonNullChain:pn,createMetaProperty:fn,updateMetaProperty:kn,createTemplateSpan:Kn,updateTemplateSpan:Fa,createSemicolonClassElement:ua,createBlock:le,updateBlock:rr,createVariableStatement:br,updateVariableStatement:ct,createEmptyStatement:jt,createExpressionStatement:yn,updateExpressionStatement:ha,createIfStatement:ri,updateIfStatement:Ta,createDoStatement:Ya,updateDoStatement:fi,createWhileStatement:ci,updateWhileStatement:Si,createForStatement:Do,updateForStatement:bo,createForInStatement:Ns,updateForInStatement:Ys,createForOfStatement:Nu,updateForOfStatement:gf,createContinueStatement:Zl,updateContinueStatement:jc,createBreakStatement:Mr,updateBreakStatement:$l,createReturnStatement:pc,updateReturnStatement:ku,createWithStatement:ol,updateWithStatement:kc,createSwitchStatement:vf,updateSwitchStatement:fo,createLabeledStatement:Zf,updateLabeledStatement:hf,createThrowStatement:Nd,updateThrowStatement:_s,createTryStatement:Hc,updateTryStatement:Jc,createDebuggerStatement:qp,createVariableDeclaration:dl,updateVariableDeclaration:Xp,createVariableDeclarationList:Rs,updateVariableDeclarationList:Ja,createFunctionDeclaration:Zn,updateFunctionDeclaration:Oc,createClassDeclaration:ks,updateClassDeclaration:yf,createInterfaceDeclaration:Ou,updateInterfaceDeclaration:kd,createTypeAliasDeclaration:Uo,updateTypeAliasDeclaration:$f,createEnumDeclaration:Od,updateEnumDeclaration:Rd,createModuleDeclaration:Yp,updateModuleDeclaration:yp,createModuleBlock:Xl,updateModuleBlock:C_,createCaseBlock:ed,updateCaseBlock:bp,createNamespaceExportDeclaration:wd,updateNamespaceExportDeclaration:Pd,createImportEqualsDeclaration:Md,updateImportEqualsDeclaration:Fd,createImportDeclaration:Ep,updateImportDeclaration:Qp,createImportClause:Gd,updateImportClause:Zp,createAssertClause:Bd,updateAssertClause:fu,createAssertEntry:_c,updateAssertEntry:mc,createNamespaceImport:ec,updateNamespaceImport:Ud,createNamespaceExport:bf,updateNamespaceExport:Tp,createNamedImports:Sp,updateNamedImports:Ef,createImportSpecifier:$p,updateImportSpecifier:Vd,createExportAssignment:rd,updateExportAssignment:td,createExportDeclaration:Ru,updateExportDeclaration:wu,createNamedExports:Pu,updateNamedExports:js,createExportSpecifier:gc,updateExportSpecifier:nd,createMissingDeclaration:x_,createExternalModuleReference:ad,updateExternalModuleReference:Mu,get createJSDocAllType(){return u(310)},get createJSDocUnknownType(){return u(311)},get createJSDocNonNullableType(){return g(313)},get updateJSDocNonNullableType(){return F(313)},get createJSDocNullableType(){return g(312)},get updateJSDocNullableType(){return F(312)},get createJSDocOptionalType(){return g(314)},get updateJSDocOptionalType(){return F(314)},get createJSDocVariadicType(){return g(316)},get updateJSDocVariadicType(){return F(316)},get createJSDocNamepathType(){return g(317)},get updateJSDocNamepathType(){return F(317)},createJSDocFunctionType:Sl,updateJSDocFunctionType:Fl,createJSDocTypeLiteral:pl,updateJSDocTypeLiteral:Dp,createJSDocTypeExpression:Tf,updateJSDocTypeExpression:Wd,createJSDocSignature:id,updateJSDocSignature:mo,createJSDocTemplateTag:ms,updateJSDocTemplateTag:e_,createJSDocTypedefTag:Yl,updateJSDocTypedefTag:od,createJSDocParameterTag:Ln,updateJSDocParameterTag:us,createJSDocPropertyTag:ii,updateJSDocPropertyTag:Rc,createJSDocCallbackTag:sd,updateJSDocCallbackTag:sl,createJSDocAugmentsTag:Dn,updateJSDocAugmentsTag:N_,createJSDocImplementsTag:rs,updateJSDocImplementsTag:Fu,createJSDocSeeTag:fs,updateJSDocSeeTag:wc,createJSDocNameReference:Hs,updateJSDocNameReference:Sf,createJSDocMemberName:ws,updateJSDocMemberName:Pc,createJSDocLink:Qu,updateJSDocLink:Df,createJSDocLinkCode:hc,updateJSDocLinkCode:Lf,createJSDocLinkPlain:ll,updateJSDocLinkPlain:r_,get createJSDocTypeTag(){return X(341)},get updateJSDocTypeTag(){return j(341)},get createJSDocReturnTag(){return X(339)},get updateJSDocReturnTag(){return j(339)},get createJSDocThisTag(){return X(340)},get updateJSDocThisTag(){return j(340)},get createJSDocEnumTag(){return X(337)},get updateJSDocEnumTag(){return j(337)},get createJSDocAuthorTag(){return te(328)},get updateJSDocAuthorTag(){return ue(328)},get createJSDocClassTag(){return te(330)},get updateJSDocClassTag(){return ue(330)},get createJSDocPublicTag(){return te(331)},get updateJSDocPublicTag(){return ue(331)},get createJSDocPrivateTag(){return te(332)},get updateJSDocPrivateTag(){return ue(332)},get createJSDocProtectedTag(){return te(333)},get updateJSDocProtectedTag(){return ue(333)},get createJSDocReadonlyTag(){return te(334)},get updateJSDocReadonlyTag(){return ue(334)},get createJSDocOverrideTag(){return te(335)},get updateJSDocOverrideTag(){return ue(335)},get createJSDocDeprecatedTag(){return te(329)},get updateJSDocDeprecatedTag(){return ue(329)},createJSDocUnknownTag:yc,updateJSDocUnknownTag:ud,createJSDocText:xf,updateJSDocText:Gu,createJSDocComment:Js,updateJSDocComment:Gl,createJsxElement:Kc,updateJsxElement:fd,createJsxSelfClosingElement:Ga,updateJsxSelfClosingElement:wn,createJsxOpeningElement:Ts,updateJsxOpeningElement:jd,createJsxClosingElement:rc,updateJsxClosingElement:Zu,createJsxFragment:zc,createJsxText:Ll,updateJsxText:tc,createJsxOpeningFragment:If,createJsxJsxClosingFragment:$u,updateJsxFragment:Hd,createJsxAttribute:Qs,updateJsxAttribute:Jd,createJsxAttributes:jo,updateJsxAttributes:Bl,createJsxSpreadAttribute:Kd,updateJsxSpreadAttribute:nc,createJsxExpression:Nf,updateJsxExpression:Bu,createCaseClause:dd,updateCaseClause:zd,createDefaultClause:Al,updateDefaultClause:ts,createHeritageClause:du,updateHeritageClause:qd,createCatchClause:ac,updateCatchClause:kf,createPropertyAssignment:Uu,updatePropertyAssignment:ef,createShorthandPropertyAssignment:Of,updateShorthandPropertyAssignment:qc,createSpreadAssignment:rf,updateSpreadAssignment:Vu,createEnumMember:Xc,updateEnumMember:Yd,createSourceFile:Ec,updateSourceFile:t_,createBundle:Wa,updateBundle:pu,createUnparsedSource:gn,createUnparsedPrologue:Qd,createUnparsedPrepend:Zd,createUnparsedTextLike:Mc,createUnparsedSyntheticReference:$d,createInputFiles:k_,createSyntheticExpression:Yc,createSyntaxList:Lp,createNotEmittedStatement:pd,createPartiallyEmittedExpression:Ap,updatePartiallyEmittedExpression:Ul,createCommaListExpression:_d,updateCommaListExpression:Fc,createEndOfDeclarationMarker:Qc,createMergeDeclarationMarker:Pf,createSyntheticReferenceExpression:E,updateSyntheticReferenceExpression:Qe,cloneNode:nt,get createComma(){return D(27)},get createAssignment(){return D(63)},get createLogicalOr(){return D(56)},get createLogicalAnd(){return D(55)},get createBitwiseOr(){return D(51)},get createBitwiseXor(){return D(52)},get createBitwiseAnd(){return D(50)},get createStrictEquality(){return D(36)},get createStrictInequality(){return D(37)},get createEquality(){return D(34)},get createInequality(){return D(35)},get createLessThan(){return D(29)},get createLessThanEquals(){return D(32)},get createGreaterThan(){return D(31)},get createGreaterThanEquals(){return D(33)},get createLeftShift(){return D(47)},get createRightShift(){return D(48)},get createUnsignedRightShift(){return D(49)},get createAdd(){return D(39)},get createSubtract(){return D(40)},get createMultiply(){return D(41)},get createDivide(){return D(43)},get createModulo(){return D(44)},get createExponent(){return D(42)},get createPrefixPlus(){return C(39)},get createPrefixMinus(){return C(40)},get createPrefixIncrement(){return C(45)},get createPrefixDecrement(){return C(46)},get createBitwiseNot(){return C(54)},get createLogicalNot(){return C(53)},get createPostfixIncrement(){return m(45)},get createPostfixDecrement(){return m(46)},createImmediatelyInvokedFunctionExpression:Ot,createImmediatelyInvokedArrowFunction:fa,createVoidZero:Oa,createExportDefault:ia,createExternalModuleExport:ti,createTypeCheck:Na,createMethodCall:Ua,createGlobalMethodCall:is,createFunctionBindCall:Go,createFunctionCallCall:cl,createFunctionApplyCall:os,createArraySliceCall:Vl,createArrayConcatCall:Zc,createObjectDefinePropertyCall:$c,createReflectGetCall:md,createReflectSetCall:n_,createPropertyDescriptor:Mf,createCallBinding:xe,createAssignmentTargetWrapper:Tr,inlineExpressions:Gr,getInternalName:Ct,getLocalName:Xt,getExportName:On,getDeclarationName:$n,getNamespaceMemberName:wa,getExternalModuleOrNamespaceExportName:Ea,restoreOuterExpressions:Wl,restoreEnclosingLabel:ep,createUseStrictPrologue:$i,copyPrologue:Ki,copyStandardPrologue:Ho,copyCustomPrologue:gs,ensureUseStrict:_l,liftToBlock:xs,mergeLexicalEnvironment:bl,updateModifiers:ju};return Se;function Ce(_,W){if(_===void 0||_===e.emptyArray)_=[];else if(e.isNodeArray(_)){if(W===void 0||_.hasTrailingComma===W)return _.transformFlags===void 0&&b(_),e.Debug.attachNodeArrayDebugInfo(_),_;var be=_.slice();return be.pos=_.pos,be.end=_.end,be.hasTrailingComma=W,be.transformFlags=_.transformFlags,e.Debug.attachNodeArrayDebugInfo(be),be}var nr=_.length,Ur=nr>=1&&nr<=4?_.slice():_;return e.setTextRangePosEnd(Ur,-1,-1),Ur.hasTrailingComma=!!W,b(Ur),e.Debug.attachNodeArrayDebugInfo(Ur),Ur}function O(_){return $.createBaseNode(_)}function Q(_,W,be){var nr=O(_);return nr.decorators=ul(W),nr.modifiers=ul(be),nr.transformFlags|=ie(nr.decorators)|ie(nr.modifiers),nr.symbol=void 0,nr.localSymbol=void 0,nr.locals=void 0,nr.nextContainer=void 0,nr}function V(_,W,be,nr){var Ur=Q(_,W,be);if(nr=Ps(nr),Ur.name=nr,nr)switch(Ur.kind){case 168:case 171:case 172:case 166:case 294:if(e.isIdentifier(nr)){Ur.transformFlags|=v(nr);break}default:Ur.transformFlags|=q(nr);break}return Ur}function z(_,W,be,nr,Ur){var Ht=V(_,W,be,nr);return Ht.typeParameters=ul(Ur),Ht.transformFlags|=ie(Ht.typeParameters),Ur&&(Ht.transformFlags|=1),Ht}function Te(_,W,be,nr,Ur,Ht,an){var si=z(_,W,be,nr,Ur);return si.parameters=Ce(Ht),si.type=an,si.transformFlags|=ie(si.parameters)|q(si.type),an&&(si.transformFlags|=1),si}function ge(_,W){return W.typeArguments&&(_.typeArguments=W.typeArguments),T(_,W)}function ke(_,W,be,nr,Ur,Ht,an,si){var Io=Te(_,W,be,nr,Ur,Ht,an);return Io.body=si,Io.transformFlags|=q(Io.body)&-16777217,si||(Io.transformFlags|=1),Io}function Me(_,W){return W.exclamationToken&&(_.exclamationToken=W.exclamationToken),W.typeArguments&&(_.typeArguments=W.typeArguments),ge(_,W)}function Ie(_,W,be,nr,Ur,Ht){var an=z(_,W,be,nr,Ur);return an.heritageClauses=ul(Ht),an.transformFlags|=ie(an.heritageClauses),an}function Ge(_,W,be,nr,Ur,Ht,an){var si=Ie(_,W,be,nr,Ur,Ht);return si.members=Ce(an),si.transformFlags|=ie(si.members),si}function he(_,W,be,nr,Ur){var Ht=V(_,W,be,nr);return Ht.initializer=Ur,Ht.transformFlags|=q(Ht.initializer),Ht}function ve(_,W,be,nr,Ur,Ht){var an=he(_,W,be,nr,Ht);return an.type=Ur,an.transformFlags|=q(Ur),Ur&&(an.transformFlags|=1),an}function Ve(_,W){var be=vr(_);return be.text=W,be}function _e(_,W){W===void 0&&(W=0);var be=Ve(8,typeof _=="number"?_+"":_);return be.numericLiteralFlags=W,W&384&&(be.transformFlags|=512),be}function Le(_){var W=Ve(9,typeof _=="string"?_:e.pseudoBigIntToString(_)+"n");return W.transformFlags|=4,W}function qe(_,W){var be=Ve(10,_);return be.singleQuote=W,be}function Xe(_,W,be){var nr=qe(_,W);return nr.hasExtendedUnicodeEscape=be,be&&(nr.transformFlags|=512),nr}function De(_){var W=qe(e.getTextOfIdentifierOrLiteral(_),void 0);return W.textSourceNode=_,W}function Ae(_){var W=Ve(13,_);return W}function Ye(_,W){switch(_){case 8:return _e(W,0);case 9:return Le(W);case 10:return Xe(W,void 0);case 11:return Ll(W,!1);case 12:return Ll(W,!0);case 13:return Ae(W);case 14:return Vs(_,W,void 0,0)}}function Lr(_,W){W===void 0&&_&&(W=e.stringToToken(_)),W===79&&(W=void 0);var be=$.createBaseIdentifierNode(79);return be.originalKeywordKind=W,be.escapedText=e.escapeLeadingUnderscores(_),be}function Er(_,W){var be=Lr(_,void 0);return be.autoGenerateFlags=W,be.autoGenerateId=n,n++,be}function lr(_,W,be){var nr=Lr(_,be);return W&&(nr.typeArguments=Ce(W)),nr.originalKeywordKind===132&&(nr.transformFlags|=16777216),nr}function Cr(_,W){return _.typeArguments!==W?T(lr(e.idText(_),W),_):_}function Or(_,W){var be=1;W&&(be|=8);var nr=Er("",be);return _&&_(nr),nr}function Ke(_){var W=2;return _&&(W|=8),Er("",W)}function Pe(_,W){return W===void 0&&(W=0),e.Debug.assert(!(W&7),"Argument out of range: flags"),e.Debug.assert((W&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Er(_,3|W)}function Hr(_,W){W===void 0&&(W=0),e.Debug.assert(!(W&7),"Argument out of range: flags");var be=Er(_&&e.isIdentifier(_)?e.idText(_):"",4|W);return be.original=_,be}function ur(_){e.startsWith(_,"#")||e.Debug.fail("First character of private identifier must be #: "+_);var W=$.createBasePrivateIdentifierNode(80);return W.escapedText=e.escapeLeadingUnderscores(_),W.transformFlags|=8388608,W}function vr(_){return $.createBaseTokenNode(_)}function de(_){e.Debug.assert(_>=0&&_<=159,"Invalid token"),e.Debug.assert(_<=14||_>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(_<=8||_>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(_!==79,"Invalid token. Use 'createIdentifier' to create identifiers");var W=vr(_),be=0;switch(_){case 131:be=192;break;case 123:case 121:case 122:case 144:case 126:case 135:case 85:case 130:case 146:case 157:case 143:case 147:case 158:case 149:case 133:case 150:case 114:case 154:case 152:be=1;break;case 106:be=33554944;break;case 124:be=512;break;case 108:be=8192;break}return be&&(W.transformFlags|=be),W}function Fe(){return de(106)}function $e(){return de(108)}function Dr(){return de(104)}function Fr(){return de(110)}function He(){return de(95)}function pr(_){return de(_)}function Jr(_){var W=[];return _&1&&W.push(pr(93)),_&2&&W.push(pr(135)),_&512&&W.push(pr(88)),_&2048&&W.push(pr(85)),_&4&&W.push(pr(123)),_&8&&W.push(pr(121)),_&16&&W.push(pr(122)),_&128&&W.push(pr(126)),_&32&&W.push(pr(124)),_&16384&&W.push(pr(158)),_&64&&W.push(pr(144)),_&256&&W.push(pr(131)),W}function ze(_,W){var be=O(160);return be.left=_,be.right=Ps(W),be.transformFlags|=q(be.left)|v(be.right),be}function Ar(_,W,be){return _.left!==W||_.right!==be?T(ze(W,be),_):_}function Yr(_){var W=O(161);return W.expression=I().parenthesizeExpressionOfComputedPropertyName(_),W.transformFlags|=q(W.expression)|512|65536,W}function lt(_,W){return _.expression!==W?T(Yr(W),_):_}function tt(_,W,be){var nr=V(162,void 0,void 0,_);return nr.constraint=W,nr.default=be,nr.transformFlags=1,nr}function Rt(_,W,be,nr){return _.name!==W||_.constraint!==be||_.default!==nr?T(tt(W,be,nr),_):_}function cn(_,W,be,nr,Ur,Ht,an){var si=ve(163,_,W,nr,Ht,an&&I().parenthesizeExpressionForDisallowedComma(an));return si.dotDotDotToken=be,si.questionToken=Ur,e.isThisIdentifier(si.name)?si.transformFlags=1:(si.transformFlags|=q(si.dotDotDotToken)|q(si.questionToken),Ur&&(si.transformFlags|=1),e.modifiersToFlags(si.modifiers)&16476&&(si.transformFlags|=4096),(an||be)&&(si.transformFlags|=512)),si}function bn(_,W,be,nr,Ur,Ht,an,si){return _.decorators!==W||_.modifiers!==be||_.dotDotDotToken!==nr||_.name!==Ur||_.questionToken!==Ht||_.type!==an||_.initializer!==si?T(cn(W,be,nr,Ur,Ht,an,si),_):_}function In(_){var W=O(164);return W.expression=I().parenthesizeLeftSideOfAccess(_),W.transformFlags|=q(W.expression)|1|4096,W}function zn(_,W){return _.expression!==W?T(In(W),_):_}function ir(_,W,be,nr){var Ur=V(165,void 0,_,W);return Ur.type=nr,Ur.questionToken=be,Ur.transformFlags=1,Ur}function Rr(_,W,be,nr,Ur){return _.modifiers!==W||_.name!==be||_.questionToken!==nr||_.type!==Ur?T(ir(W,be,nr,Ur),_):_}function sr(_,W,be,nr,Ur,Ht){var an=ve(166,_,W,be,Ur,Ht);return an.questionToken=nr&&e.isQuestionToken(nr)?nr:void 0,an.exclamationToken=nr&&e.isExclamationToken(nr)?nr:void 0,an.transformFlags|=q(an.questionToken)|q(an.exclamationToken)|8388608,(e.isComputedPropertyName(an.name)||e.hasStaticModifier(an)&&an.initializer)&&(an.transformFlags|=4096),(nr||e.modifiersToFlags(an.modifiers)&2)&&(an.transformFlags|=1),an}function ye(_,W,be,nr,Ur,Ht,an){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.questionToken!==(Ur!==void 0&&e.isQuestionToken(Ur)?Ur:void 0)||_.exclamationToken!==(Ur!==void 0&&e.isExclamationToken(Ur)?Ur:void 0)||_.type!==Ht||_.initializer!==an?T(sr(W,be,nr,Ur,Ht,an),_):_}function or(_,W,be,nr,Ur,Ht){var an=Te(167,void 0,_,W,nr,Ur,Ht);return an.questionToken=be,an.transformFlags=1,an}function fe(_,W,be,nr,Ur,Ht,an){return _.modifiers!==W||_.name!==be||_.questionToken!==nr||_.typeParameters!==Ur||_.parameters!==Ht||_.type!==an?ge(or(W,be,nr,Ur,Ht,an),_):_}function je(_,W,be,nr,Ur,Ht,an,si,Io){var vs=ke(168,_,W,nr,Ht,an,si,Io);return vs.asteriskToken=be,vs.questionToken=Ur,vs.transformFlags|=q(vs.asteriskToken)|q(vs.questionToken)|512,Ur&&(vs.transformFlags|=1),e.modifiersToFlags(vs.modifiers)&256?be?vs.transformFlags|=64:vs.transformFlags|=128:be&&(vs.transformFlags|=1024),vs}function Ee(_,W,be,nr,Ur,Ht,an,si,Io,vs){return _.decorators!==W||_.modifiers!==be||_.asteriskToken!==nr||_.name!==Ur||_.questionToken!==Ht||_.typeParameters!==an||_.parameters!==si||_.type!==Io||_.body!==vs?Me(je(W,be,nr,Ur,Ht,an,si,Io,vs),_):_}function We(_,W,be){var nr=z(169,_,W,void 0,void 0);return nr.body=be,nr.transformFlags=q(be)|8388608,nr}function ee(_,W,be,nr){return _.decorators!==W||_.modifier!==be||_.body!==nr?T(We(W,be,nr),_):_}function Ne(_,W,be,nr){var Ur=ke(170,_,W,void 0,void 0,be,void 0,nr);return Ur.transformFlags|=512,Ur}function me(_,W,be,nr,Ur){return _.decorators!==W||_.modifiers!==be||_.parameters!==nr||_.body!==Ur?Me(Ne(W,be,nr,Ur),_):_}function Ze(_,W,be,nr,Ur,Ht){return ke(171,_,W,be,void 0,nr,Ur,Ht)}function xr(_,W,be,nr,Ur,Ht,an){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.parameters!==Ur||_.type!==Ht||_.body!==an?Me(Ze(W,be,nr,Ur,Ht,an),_):_}function fr(_,W,be,nr,Ur){return ke(172,_,W,be,void 0,nr,void 0,Ur)}function dr(_,W,be,nr,Ur,Ht){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.parameters!==Ur||_.body!==Ht?Me(fr(W,be,nr,Ur,Ht),_):_}function et(_,W,be){var nr=Te(173,void 0,void 0,void 0,_,W,be);return nr.transformFlags=1,nr}function yt(_,W,be,nr){return _.typeParameters!==W||_.parameters!==be||_.type!==nr?ge(et(W,be,nr),_):_}function Wr(_,W,be){var nr=Te(174,void 0,void 0,void 0,_,W,be);return nr.transformFlags=1,nr}function tr(_,W,be,nr){return _.typeParameters!==W||_.parameters!==be||_.type!==nr?ge(Wr(W,be,nr),_):_}function Ir(_,W,be,nr){var Ur=Te(175,_,W,void 0,void 0,be,nr);return Ur.transformFlags=1,Ur}function kr(_,W,be,nr,Ur){return _.parameters!==nr||_.type!==Ur||_.decorators!==W||_.modifiers!==be?ge(Ir(W,be,nr,Ur),_):_}function zr(_,W){var be=O(198);return be.type=_,be.literal=W,be.transformFlags=1,be}function gt(_,W,be){return _.type!==W||_.literal!==be?T(zr(W,be),_):_}function vt(_){return de(_)}function ut(_,W,be){var nr=O(176);return nr.assertsModifier=_,nr.parameterName=Ps(W),nr.type=be,nr.transformFlags=1,nr}function ht(_,W,be,nr){return _.assertsModifier!==W||_.parameterName!==be||_.type!==nr?T(ut(W,be,nr),_):_}function xt(_,W){var be=O(177);return be.typeName=Ps(_),be.typeArguments=W&&I().parenthesizeTypeArguments(Ce(W)),be.transformFlags=1,be}function wt(_,W,be){return _.typeName!==W||_.typeArguments!==be?T(xt(W,be),_):_}function Qt(_,W,be){var nr=Te(178,void 0,void 0,void 0,_,W,be);return nr.transformFlags=1,nr}function mt(_,W,be,nr){return _.typeParameters!==W||_.parameters!==be||_.type!==nr?ge(Qt(W,be,nr),_):_}function rn(){for(var _=[],W=0;W<arguments.length;W++)_[W]=arguments[W];return _.length===4?sa.apply(void 0,_):_.length===3?ba.apply(void 0,_):e.Debug.fail("Incorrect number of arguments specified.")}function sa(_,W,be,nr){var Ur=Te(179,void 0,_,void 0,W,be,nr);return Ur.transformFlags=1,Ur}function ba(_,W,be){return sa(void 0,_,W,be)}function Jn(){for(var _=[],W=0;W<arguments.length;W++)_[W]=arguments[W];return _.length===5?na.apply(void 0,_):_.length===4?Wn.apply(void 0,_):e.Debug.fail("Incorrect number of arguments specified.")}function na(_,W,be,nr,Ur){return _.modifiers!==W||_.typeParameters!==be||_.parameters!==nr||_.type!==Ur?ge(rn(W,be,nr,Ur),_):_}function Wn(_,W,be,nr){return na(_,_.modifiers,W,be,nr)}function en(_){var W=O(180);return W.exprName=_,W.transformFlags=1,W}function St(_,W){return _.exprName!==W?T(en(W),_):_}function Ut(_){var W=O(181);return W.members=Ce(_),W.transformFlags=1,W}function qt(_,W){return _.members!==W?T(Ut(W),_):_}function Pn(_){var W=O(182);return W.elementType=I().parenthesizeElementTypeOfArrayType(_),W.transformFlags=1,W}function dn(_,W){return _.elementType!==W?T(Pn(W),_):_}function oa(_){var W=O(183);return W.elements=Ce(_),W.transformFlags=1,W}function pt(_,W){return _.elements!==W?T(oa(W),_):_}function _t(_,W,be,nr){var Ur=O(196);return Ur.dotDotDotToken=_,Ur.name=W,Ur.questionToken=be,Ur.type=nr,Ur.transformFlags=1,Ur}function Pt(_,W,be,nr,Ur){return _.dotDotDotToken!==W||_.name!==be||_.questionToken!==nr||_.type!==Ur?T(_t(W,be,nr,Ur),_):_}function It(_){var W=O(184);return W.type=I().parenthesizeElementTypeOfArrayType(_),W.transformFlags=1,W}function rt(_,W){return _.type!==W?T(It(W),_):_}function Cn(_){var W=O(185);return W.type=_,W.transformFlags=1,W}function Qn(_,W){return _.type!==W?T(Cn(W),_):_}function Ra(_,W){var be=O(_);return be.types=I().parenthesizeConstituentTypesOfUnionOrIntersectionType(W),be.transformFlags=1,be}function Ci(_,W){return _.types!==W?T(Ra(_.kind,W),_):_}function _i(_){return Ra(186,_)}function va(_,W){return Ci(_,W)}function yi(_){return Ra(187,_)}function ro(_,W){return Ci(_,W)}function Ka(_,W,be,nr){var Ur=O(188);return Ur.checkType=I().parenthesizeMemberOfConditionalType(_),Ur.extendsType=I().parenthesizeMemberOfConditionalType(W),Ur.trueType=be,Ur.falseType=nr,Ur.transformFlags=1,Ur}function Pi(_,W,be,nr,Ur){return _.checkType!==W||_.extendsType!==be||_.trueType!==nr||_.falseType!==Ur?T(Ka(W,be,nr,Ur),_):_}function io(_){var W=O(189);return W.typeParameter=_,W.transformFlags=1,W}function ji(_,W){return _.typeParameter!==W?T(io(W),_):_}function Hi(_,W){var be=O(197);return be.head=_,be.templateSpans=Ce(W),be.transformFlags=1,be}function to(_,W,be){return _.head!==W||_.templateSpans!==be?T(Hi(W,be),_):_}function No(_,W,be,nr){nr===void 0&&(nr=!1);var Ur=O(199);return Ur.argument=_,Ur.qualifier=W,Ur.typeArguments=be&&I().parenthesizeTypeArguments(be),Ur.isTypeOf=nr,Ur.transformFlags=1,Ur}function lo(_,W,be,nr,Ur){return Ur===void 0&&(Ur=_.isTypeOf),_.argument!==W||_.qualifier!==be||_.typeArguments!==nr||_.isTypeOf!==Ur?T(No(W,be,nr,Ur),_):_}function Lo(_){var W=O(190);return W.type=_,W.transformFlags=1,W}function Ha(_,W){return _.type!==W?T(Lo(W),_):_}function Yo(){var _=O(191);return _.transformFlags=1,_}function co(_,W){var be=O(192);return be.operator=_,be.type=I().parenthesizeMemberOfElementType(W),be.transformFlags=1,be}function za(_,W){return _.type!==W?T(co(_.operator,W),_):_}function hi(_,W){var be=O(193);return be.objectType=I().parenthesizeMemberOfElementType(_),be.indexType=W,be.transformFlags=1,be}function Zi(_,W,be){return _.objectType!==W||_.indexType!==be?T(hi(W,be),_):_}function Po(_,W,be,nr,Ur,Ht){var an=O(194);return an.readonlyToken=_,an.typeParameter=W,an.nameType=be,an.questionToken=nr,an.type=Ur,an.members=Ht&&Ce(Ht),an.transformFlags=1,an}function Mo(_,W,be,nr,Ur,Ht,an){return _.readonlyToken!==W||_.typeParameter!==be||_.nameType!==nr||_.questionToken!==Ur||_.type!==Ht||_.members!==an?T(Po(W,be,nr,Ur,Ht,an),_):_}function Fo(_){var W=O(195);return W.literal=_,W.transformFlags=1,W}function zo(_,W){return _.literal!==W?T(Fo(W),_):_}function Es(_){var W=O(200);return W.elements=Ce(_),W.transformFlags|=ie(W.elements)|512|262144,W.transformFlags&16384&&(W.transformFlags|=32832),W}function Cs(_,W){return _.elements!==W?T(Es(W),_):_}function yr(_){var W=O(201);return W.elements=Ce(_),W.transformFlags|=ie(W.elements)|512|262144,W}function dt(_,W){return _.elements!==W?T(yr(W),_):_}function tn(_,W,be,nr){var Ur=he(202,void 0,void 0,be,nr&&I().parenthesizeExpressionForDisallowedComma(nr));return Ur.propertyName=Ps(W),Ur.dotDotDotToken=_,Ur.transformFlags|=q(Ur.dotDotDotToken)|512,Ur.propertyName&&(Ur.transformFlags|=e.isIdentifier(Ur.propertyName)?v(Ur.propertyName):q(Ur.propertyName)),_&&(Ur.transformFlags|=16384),Ur}function Un(_,W,be,nr,Ur){return _.propertyName!==be||_.dotDotDotToken!==W||_.name!==nr||_.initializer!==Ur?T(tn(W,be,nr,Ur),_):_}function Oe(_){var W=O(_);return W}function oe(_,W){var be=Oe(203),nr=_&&e.lastOrUndefined(_),Ur=Ce(_,nr&&e.isOmittedExpression(nr)?!0:void 0);return be.elements=I().parenthesizeExpressionsOfCommaDelimitedList(Ur),be.multiLine=W,be.transformFlags|=ie(be.elements),be}function mr(_,W){return _.elements!==W?T(oe(W,_.multiLine),_):_}function se(_,W){var be=Oe(204);return be.properties=Ce(_),be.multiLine=W,be.transformFlags|=ie(be.properties),be}function Be(_,W){return _.properties!==W?T(se(W,_.multiLine),_):_}function er(_,W){var be=Oe(205);return be.expression=I().parenthesizeLeftSideOfAccess(_),be.name=Ps(W),be.transformFlags=q(be.expression)|(e.isIdentifier(be.name)?v(be.name):q(be.name)),e.isSuperKeyword(_)&&(be.transformFlags|=192),be}function hr(_,W,be){return e.isPropertyAccessChain(_)?Dt(_,W,_.questionDotToken,e.cast(be,e.isIdentifier)):_.expression!==W||_.name!==be?T(er(W,be),_):_}function qr(_,W,be){var nr=Oe(205);return nr.flags|=32,nr.expression=I().parenthesizeLeftSideOfAccess(_),nr.questionDotToken=W,nr.name=Ps(be),nr.transformFlags|=16|q(nr.expression)|q(nr.questionDotToken)|(e.isIdentifier(nr.name)?v(nr.name):q(nr.name)),nr}function Dt(_,W,be,nr){return e.Debug.assert(!!(_.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),_.expression!==W||_.questionDotToken!==be||_.name!==nr?T(qr(W,be,nr),_):_}function Jt(_,W){var be=Oe(206);return be.expression=I().parenthesizeLeftSideOfAccess(_),be.argumentExpression=Ff(W),be.transformFlags|=q(be.expression)|q(be.argumentExpression),e.isSuperKeyword(_)&&(be.transformFlags|=192),be}function Sn(_,W,be){return e.isElementAccessChain(_)?xa(_,W,_.questionDotToken,be):_.expression!==W||_.argumentExpression!==be?T(Jt(W,be),_):_}function ta(_,W,be){var nr=Oe(206);return nr.flags|=32,nr.expression=I().parenthesizeLeftSideOfAccess(_),nr.questionDotToken=W,nr.argumentExpression=Ff(be),nr.transformFlags|=q(nr.expression)|q(nr.questionDotToken)|q(nr.argumentExpression)|16,nr}function xa(_,W,be,nr){return e.Debug.assert(!!(_.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),_.expression!==W||_.questionDotToken!==be||_.argumentExpression!==nr?T(ta(W,be,nr),_):_}function Di(_,W,be){var nr=Oe(207);return nr.expression=I().parenthesizeLeftSideOfAccess(_),nr.typeArguments=ul(W),nr.arguments=I().parenthesizeExpressionsOfCommaDelimitedList(Ce(be)),nr.transformFlags|=q(nr.expression)|ie(nr.typeArguments)|ie(nr.arguments),nr.typeArguments&&(nr.transformFlags|=1),e.isImportKeyword(nr.expression)?nr.transformFlags|=4194304:e.isSuperProperty(nr.expression)&&(nr.transformFlags|=8192),nr}function $a(_,W,be,nr){return e.isCallChain(_)?So(_,W,_.questionDotToken,be,nr):_.expression!==W||_.typeArguments!==be||_.arguments!==nr?T(Di(W,be,nr),_):_}function Ji(_,W,be,nr){var Ur=Oe(207);return Ur.flags|=32,Ur.expression=I().parenthesizeLeftSideOfAccess(_),Ur.questionDotToken=W,Ur.typeArguments=ul(be),Ur.arguments=I().parenthesizeExpressionsOfCommaDelimitedList(Ce(nr)),Ur.transformFlags|=q(Ur.expression)|q(Ur.questionDotToken)|ie(Ur.typeArguments)|ie(Ur.arguments)|16,Ur.typeArguments&&(Ur.transformFlags|=1),e.isSuperProperty(Ur.expression)&&(Ur.transformFlags|=8192),Ur}function So(_,W,be,nr,Ur){return e.Debug.assert(!!(_.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),_.expression!==W||_.questionDotToken!==be||_.typeArguments!==nr||_.arguments!==Ur?T(Ji(W,be,nr,Ur),_):_}function cs(_,W,be){var nr=Oe(208);return nr.expression=I().parenthesizeExpressionOfNew(_),nr.typeArguments=ul(W),nr.arguments=be?I().parenthesizeExpressionsOfCommaDelimitedList(be):void 0,nr.transformFlags|=q(nr.expression)|ie(nr.typeArguments)|ie(nr.arguments)|16,nr.typeArguments&&(nr.transformFlags|=1),nr}function bt(_,W,be,nr){return _.expression!==W||_.typeArguments!==be||_.arguments!==nr?T(cs(W,be,nr),_):_}function Mn(_,W,be){var nr=Oe(209);return nr.tag=I().parenthesizeLeftSideOfAccess(_),nr.typeArguments=ul(W),nr.template=be,nr.transformFlags|=q(nr.tag)|ie(nr.typeArguments)|q(nr.template)|512,nr.typeArguments&&(nr.transformFlags|=1),e.hasInvalidEscape(nr.template)&&(nr.transformFlags|=64),nr}function da(_,W,be,nr){return _.tag!==W||_.typeArguments!==be||_.template!==nr?T(Mn(W,be,nr),_):_}function ei(_,W){var be=Oe(210);return be.expression=I().parenthesizeOperandOfPrefixUnary(W),be.type=_,be.transformFlags|=q(be.expression)|q(be.type)|1,be}function bi(_,W,be){return _.type!==W||_.expression!==be?T(ei(W,be),_):_}function xi(_){var W=Oe(211);return W.expression=_,W.transformFlags=q(W.expression),W}function ka(_,W){return _.expression!==W?T(xi(W),_):_}function mi(_,W,be,nr,Ur,Ht,an){var si=ke(212,void 0,_,be,nr,Ur,Ht,an);return si.asteriskToken=W,si.transformFlags|=q(si.asteriskToken),si.typeParameters&&(si.transformFlags|=1),e.modifiersToFlags(si.modifiers)&256?si.asteriskToken?si.transformFlags|=64:si.transformFlags|=128:si.asteriskToken&&(si.transformFlags|=1024),si}function Xi(_,W,be,nr,Ur,Ht,an,si){return _.name!==nr||_.modifiers!==W||_.asteriskToken!==be||_.typeParameters!==Ur||_.parameters!==Ht||_.type!==an||_.body!==si?Me(mi(W,be,nr,Ur,Ht,an,si),_):_}function Gi(_,W,be,nr,Ur,Ht){var an=ke(213,void 0,_,void 0,W,be,nr,I().parenthesizeConciseBodyOfArrowFunction(Ht));return an.equalsGreaterThanToken=Ur!=null?Ur:de(38),an.transformFlags|=q(an.equalsGreaterThanToken)|512,e.modifiersToFlags(an.modifiers)&256&&(an.transformFlags|=8320),an}function Ro(_,W,be,nr,Ur,Ht,an){return _.modifiers!==W||_.typeParameters!==be||_.parameters!==nr||_.type!==Ur||_.equalsGreaterThanToken!==Ht||_.body!==an?Me(Gi(W,be,nr,Ur,Ht,an),_):_}function ko(_){var W=Oe(214);return W.expression=I().parenthesizeOperandOfPrefixUnary(_),W.transformFlags|=q(W.expression),W}function es(_,W){return _.expression!==W?T(ko(W),_):_}function as(_){var W=Oe(215);return W.expression=I().parenthesizeOperandOfPrefixUnary(_),W.transformFlags|=q(W.expression),W}function pe(_,W){return _.expression!==W?T(as(W),_):_}function wr(_){var W=Oe(216);return W.expression=I().parenthesizeOperandOfPrefixUnary(_),W.transformFlags|=q(W.expression),W}function ft(_,W){return _.expression!==W?T(wr(W),_):_}function Zt(_){var W=Oe(217);return W.expression=I().parenthesizeOperandOfPrefixUnary(_),W.transformFlags|=q(W.expression)|128|64|1048576,W}function Re(_,W){return _.expression!==W?T(Zt(W),_):_}function Qr(_,W){var be=Oe(218);return be.operator=_,be.operand=I().parenthesizeOperandOfPrefixUnary(W),be.transformFlags|=q(be.operand),(_===45||_===46)&&e.isIdentifier(be.operand)&&!e.isGeneratedIdentifier(be.operand)&&!e.isLocalName(be.operand)&&(be.transformFlags|=67108864),be}function vn(_,W){return _.operand!==W?T(Qr(_.operator,W),_):_}function Xn(_,W){var be=Oe(219);return be.operator=W,be.operand=I().parenthesizeOperandOfPostfixUnary(_),be.transformFlags|=q(be.operand),e.isIdentifier(be.operand)&&!e.isGeneratedIdentifier(be.operand)&&!e.isLocalName(be.operand)&&(be.transformFlags|=67108864),be}function gi(_,W){return _.operand!==W?T(Xn(W,_.operator),_):_}function Ia(_,W,be){var nr=Oe(220),Ur=_u(W),Ht=Ur.kind;return nr.left=I().parenthesizeLeftSideOfBinary(Ht,_),nr.operatorToken=Ur,nr.right=I().parenthesizeRightSideOfBinary(Ht,nr.left,be),nr.transformFlags|=q(nr.left)|q(nr.operatorToken)|q(nr.right),Ht===60?nr.transformFlags|=16:Ht===63?e.isObjectLiteralExpression(nr.left)?nr.transformFlags|=2624|oo(nr.left):e.isArrayLiteralExpression(nr.left)&&(nr.transformFlags|=2560|oo(nr.left)):Ht===42||Ht===67?nr.transformFlags|=256:e.isLogicalOrCoalescingAssignmentOperator(Ht)&&(nr.transformFlags|=8),nr}function oo(_){if(_.transformFlags&32768)return 32768;if(_.transformFlags&64)for(var W=0,be=e.getElementsOfBindingOrAssignmentPattern(_);W<be.length;W++){var nr=be[W],Ur=e.getTargetOfBindingOrAssignmentElement(nr);if(Ur&&e.isAssignmentPattern(Ur)){if(Ur.transformFlags&32768)return 32768;if(Ur.transformFlags&64){var Ht=oo(Ur);if(Ht)return Ht}}}return 0}function Wo(_,W,be,nr){return _.left!==W||_.operatorToken!==be||_.right!==nr?T(Ia(W,be,nr),_):_}function Nr(_,W,be,nr,Ur){var Ht=Oe(221);return Ht.condition=I().parenthesizeConditionOfConditionalExpression(_),Ht.questionToken=W!=null?W:de(57),Ht.whenTrue=I().parenthesizeBranchOfConditionalExpression(be),Ht.colonToken=nr!=null?nr:de(58),Ht.whenFalse=I().parenthesizeBranchOfConditionalExpression(Ur),Ht.transformFlags|=q(Ht.condition)|q(Ht.questionToken)|q(Ht.whenTrue)|q(Ht.colonToken)|q(Ht.whenFalse),Ht}function Us(_,W,be,nr,Ur,Ht){return _.condition!==W||_.questionToken!==be||_.whenTrue!==nr||_.colonToken!==Ur||_.whenFalse!==Ht?T(Nr(W,be,nr,Ur,Ht),_):_}function il(_,W){var be=Oe(222);return be.head=_,be.templateSpans=Ce(W),be.transformFlags|=q(be.head)|ie(be.templateSpans)|512,be}function Pl(_,W,be){return _.head!==W||_.templateSpans!==be?T(il(W,be),_):_}function Co(_,W,be,nr){nr===void 0&&(nr=0),e.Debug.assert(!(nr&-2049),"Unsupported template flags.");var Ur=void 0;if(be!==void 0&&be!==W&&(Ur=h(_,be),typeof Ur=="object"))return e.Debug.fail("Invalid raw text");if(W===void 0){if(Ur===void 0)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");W=Ur}else Ur!==void 0&&e.Debug.assert(W===Ur,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return Vs(_,W,be,nr)}function Vs(_,W,be,nr){var Ur=vr(_);return Ur.text=W,Ur.rawText=be,Ur.templateFlags=nr&2048,Ur.transformFlags|=512,Ur.templateFlags&&(Ur.transformFlags|=64),Ur}function Ql(_,W,be){return Co(15,_,W,be)}function zl(_,W,be){return Co(16,_,W,be)}function uc(_,W,be){return Co(17,_,W,be)}function cu(_,W,be){return Co(14,_,W,be)}function no(_,W){e.Debug.assert(!_||!!W,"A `YieldExpression` with an asteriskToken must have an expression.");var be=Oe(223);return be.expression=W&&I().parenthesizeExpressionForDisallowedComma(W),be.asteriskToken=_,be.transformFlags|=q(be.expression)|q(be.asteriskToken)|512|64|524288,be}function ql(_,W,be){return _.expression!==be||_.asteriskToken!==W?T(no(W,be),_):_}function fc(_){var W=Oe(224);return W.expression=I().parenthesizeExpressionForDisallowedComma(_),W.transformFlags|=q(W.expression)|512|16384,W}function Ws(_,W){return _.expression!==W?T(fc(W),_):_}function xc(_,W,be,nr,Ur,Ht){var an=Ge(225,_,W,be,nr,Ur,Ht);return an.transformFlags|=512,an}function Ic(_,W,be,nr,Ur,Ht,an){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.typeParameters!==Ur||_.heritageClauses!==Ht||_.members!==an?T(xc(W,be,nr,Ur,Ht,an),_):_}function La(){return Oe(226)}function uu(_,W){var be=O(227);return be.expression=I().parenthesizeLeftSideOfAccess(_),be.typeArguments=W&&I().parenthesizeTypeArguments(W),be.transformFlags|=q(be.expression)|ie(be.typeArguments)|512,be}function dc(_,W,be){return _.expression!==W||_.typeArguments!==be?T(uu(W,be),_):_}function Nc(_,W){var be=Oe(228);return be.expression=_,be.type=W,be.transformFlags|=q(be.expression)|q(be.type)|1,be}function Pr(_,W,be){return _.expression!==W||_.type!==be?T(Nc(W,be),_):_}function $r(_){var W=Oe(229);return W.expression=I().parenthesizeLeftSideOfAccess(_),W.transformFlags|=q(W.expression)|1,W}function Lt(_,W){return e.isNonNullChain(_)?pn(_,W):_.expression!==W?T($r(W),_):_}function Kt(_){var W=Oe(229);return W.flags|=32,W.expression=I().parenthesizeLeftSideOfAccess(_),W.transformFlags|=q(W.expression)|1,W}function pn(_,W){return e.Debug.assert(!!(_.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),_.expression!==W?T(Kt(W),_):_}function fn(_,W){var be=Oe(230);switch(be.keywordToken=_,be.name=W,be.transformFlags|=q(be.name),_){case 103:be.transformFlags|=512;break;case 100:be.transformFlags|=4;break;default:return e.Debug.assertNever(_)}return be}function kn(_,W){return _.name!==W?T(fn(_.keywordToken,W),_):_}function Kn(_,W){var be=O(232);return be.expression=_,be.literal=W,be.transformFlags|=q(be.expression)|q(be.literal)|512,be}function Fa(_,W,be){return _.expression!==W||_.literal!==be?T(Kn(W,be),_):_}function ua(){var _=O(233);return _.transformFlags|=512,_}function le(_,W){var be=O(234);return be.statements=Ce(_),be.multiLine=W,be.transformFlags|=ie(be.statements),be}function rr(_,W){return _.statements!==W?T(le(W,_.multiLine),_):_}function br(_,W){var be=Q(236,void 0,_);return be.declarationList=e.isArray(W)?Rs(W):W,be.transformFlags|=q(be.declarationList),e.modifiersToFlags(be.modifiers)&2&&(be.transformFlags=1),be}function ct(_,W,be){return _.modifiers!==W||_.declarationList!==be?T(br(W,be),_):_}function jt(){return O(235)}function yn(_){var W=O(237);return W.expression=I().parenthesizeExpressionOfExpressionStatement(_),W.transformFlags|=q(W.expression),W}function ha(_,W){return _.expression!==W?T(yn(W),_):_}function ri(_,W,be){var nr=O(238);return nr.expression=_,nr.thenStatement=ml(W),nr.elseStatement=ml(be),nr.transformFlags|=q(nr.expression)|q(nr.thenStatement)|q(nr.elseStatement),nr}function Ta(_,W,be,nr){return _.expression!==W||_.thenStatement!==be||_.elseStatement!==nr?T(ri(W,be,nr),_):_}function Ya(_,W){var be=O(239);return be.statement=ml(_),be.expression=W,be.transformFlags|=q(be.statement)|q(be.expression),be}function fi(_,W,be){return _.statement!==W||_.expression!==be?T(Ya(W,be),_):_}function ci(_,W){var be=O(240);return be.expression=_,be.statement=ml(W),be.transformFlags|=q(be.expression)|q(be.statement),be}function Si(_,W,be){return _.expression!==W||_.statement!==be?T(ci(W,be),_):_}function Do(_,W,be,nr){var Ur=O(241);return Ur.initializer=_,Ur.condition=W,Ur.incrementor=be,Ur.statement=ml(nr),Ur.transformFlags|=q(Ur.initializer)|q(Ur.condition)|q(Ur.incrementor)|q(Ur.statement),Ur}function bo(_,W,be,nr,Ur){return _.initializer!==W||_.condition!==be||_.incrementor!==nr||_.statement!==Ur?T(Do(W,be,nr,Ur),_):_}function Ns(_,W,be){var nr=O(242);return nr.initializer=_,nr.expression=W,nr.statement=ml(be),nr.transformFlags|=q(nr.initializer)|q(nr.expression)|q(nr.statement),nr}function Ys(_,W,be,nr){return _.initializer!==W||_.expression!==be||_.statement!==nr?T(Ns(W,be,nr),_):_}function Nu(_,W,be,nr){var Ur=O(243);return Ur.awaitModifier=_,Ur.initializer=W,Ur.expression=I().parenthesizeExpressionForDisallowedComma(be),Ur.statement=ml(nr),Ur.transformFlags|=q(Ur.awaitModifier)|q(Ur.initializer)|q(Ur.expression)|q(Ur.statement)|512,_&&(Ur.transformFlags|=64),Ur}function gf(_,W,be,nr,Ur){return _.awaitModifier!==W||_.initializer!==be||_.expression!==nr||_.statement!==Ur?T(Nu(W,be,nr,Ur),_):_}function Zl(_){var W=O(244);return W.label=Ps(_),W.transformFlags|=q(W.label)|2097152,W}function jc(_,W){return _.label!==W?T(Zl(W),_):_}function Mr(_){var W=O(245);return W.label=Ps(_),W.transformFlags|=q(W.label)|2097152,W}function $l(_,W){return _.label!==W?T(Mr(W),_):_}function pc(_){var W=O(246);return W.expression=_,W.transformFlags|=q(W.expression)|64|2097152,W}function ku(_,W){return _.expression!==W?T(pc(W),_):_}function ol(_,W){var be=O(247);return be.expression=_,be.statement=ml(W),be.transformFlags|=q(be.expression)|q(be.statement),be}function kc(_,W,be){return _.expression!==W||_.statement!==be?T(ol(W,be),_):_}function vf(_,W){var be=O(248);return be.expression=I().parenthesizeExpressionForDisallowedComma(_),be.caseBlock=W,be.transformFlags|=q(be.expression)|q(be.caseBlock),be}function fo(_,W,be){return _.expression!==W||_.caseBlock!==be?T(vf(W,be),_):_}function Zf(_,W){var be=O(249);return be.label=Ps(_),be.statement=ml(W),be.transformFlags|=q(be.label)|q(be.statement),be}function hf(_,W,be){return _.label!==W||_.statement!==be?T(Zf(W,be),_):_}function Nd(_){var W=O(250);return W.expression=_,W.transformFlags|=q(W.expression),W}function _s(_,W){return _.expression!==W?T(Nd(W),_):_}function Hc(_,W,be){var nr=O(251);return nr.tryBlock=_,nr.catchClause=W,nr.finallyBlock=be,nr.transformFlags|=q(nr.tryBlock)|q(nr.catchClause)|q(nr.finallyBlock),nr}function Jc(_,W,be,nr){return _.tryBlock!==W||_.catchClause!==be||_.finallyBlock!==nr?T(Hc(W,be,nr),_):_}function qp(){return O(252)}function dl(_,W,be,nr){var Ur=ve(253,void 0,void 0,_,be,nr&&I().parenthesizeExpressionForDisallowedComma(nr));return Ur.exclamationToken=W,Ur.transformFlags|=q(Ur.exclamationToken),W&&(Ur.transformFlags|=1),Ur}function Xp(_,W,be,nr,Ur){return _.name!==W||_.type!==nr||_.exclamationToken!==be||_.initializer!==Ur?T(dl(W,be,nr,Ur),_):_}function Rs(_,W){W===void 0&&(W=0);var be=O(254);return be.flags|=W&3,be.declarations=Ce(_),be.transformFlags|=ie(be.declarations)|2097152,W&3&&(be.transformFlags|=131584),be}function Ja(_,W){return _.declarations!==W?T(Rs(W,_.flags),_):_}function Zn(_,W,be,nr,Ur,Ht,an,si){var Io=ke(255,_,W,nr,Ur,Ht,an,si);return Io.asteriskToken=be,!Io.body||e.modifiersToFlags(Io.modifiers)&2?Io.transformFlags=1:(Io.transformFlags|=q(Io.asteriskToken)|2097152,e.modifiersToFlags(Io.modifiers)&256?Io.asteriskToken?Io.transformFlags|=64:Io.transformFlags|=128:Io.asteriskToken&&(Io.transformFlags|=1024)),Io}function Oc(_,W,be,nr,Ur,Ht,an,si,Io){return _.decorators!==W||_.modifiers!==be||_.asteriskToken!==nr||_.name!==Ur||_.typeParameters!==Ht||_.parameters!==an||_.type!==si||_.body!==Io?Me(Zn(W,be,nr,Ur,Ht,an,si,Io),_):_}function ks(_,W,be,nr,Ur,Ht){var an=Ge(256,_,W,be,nr,Ur,Ht);return e.modifiersToFlags(an.modifiers)&2?an.transformFlags=1:(an.transformFlags|=512,an.transformFlags&4096&&(an.transformFlags|=1)),an}function yf(_,W,be,nr,Ur,Ht,an){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.typeParameters!==Ur||_.heritageClauses!==Ht||_.members!==an?T(ks(W,be,nr,Ur,Ht,an),_):_}function Ou(_,W,be,nr,Ur,Ht){var an=Ie(257,_,W,be,nr,Ur);return an.members=Ce(Ht),an.transformFlags=1,an}function kd(_,W,be,nr,Ur,Ht,an){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.typeParameters!==Ur||_.heritageClauses!==Ht||_.members!==an?T(Ou(W,be,nr,Ur,Ht,an),_):_}function Uo(_,W,be,nr,Ur){var Ht=z(258,_,W,be,nr);return Ht.type=Ur,Ht.transformFlags=1,Ht}function $f(_,W,be,nr,Ur,Ht){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.typeParameters!==Ur||_.type!==Ht?T(Uo(W,be,nr,Ur,Ht),_):_}function Od(_,W,be,nr){var Ur=V(259,_,W,be);return Ur.members=Ce(nr),Ur.transformFlags|=ie(Ur.members)|1,Ur.transformFlags&=-16777217,Ur}function Rd(_,W,be,nr,Ur){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.members!==Ur?T(Od(W,be,nr,Ur),_):_}function Yp(_,W,be,nr,Ur){Ur===void 0&&(Ur=0);var Ht=Q(260,_,W);return Ht.flags|=Ur&1044,Ht.name=be,Ht.body=nr,e.modifiersToFlags(Ht.modifiers)&2?Ht.transformFlags=1:Ht.transformFlags|=q(Ht.name)|q(Ht.body)|1,Ht.transformFlags&=-16777217,Ht}function yp(_,W,be,nr,Ur){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.body!==Ur?T(Yp(W,be,nr,Ur,_.flags),_):_}function Xl(_){var W=O(261);return W.statements=Ce(_),W.transformFlags|=ie(W.statements),W}function C_(_,W){return _.statements!==W?T(Xl(W),_):_}function ed(_){var W=O(262);return W.clauses=Ce(_),W.transformFlags|=ie(W.clauses),W}function bp(_,W){return _.clauses!==W?T(ed(W),_):_}function wd(_){var W=V(263,void 0,void 0,_);return W.transformFlags=1,W}function Pd(_,W){return _.name!==W?T(wd(W),_):_}function Md(_,W,be,nr,Ur){var Ht=V(264,_,W,nr);return Ht.isTypeOnly=be,Ht.moduleReference=Ur,Ht.transformFlags|=q(Ht.moduleReference),e.isExternalModuleReference(Ht.moduleReference)||(Ht.transformFlags|=1),Ht.transformFlags&=-16777217,Ht}function Fd(_,W,be,nr,Ur,Ht){return _.decorators!==W||_.modifiers!==be||_.isTypeOnly!==nr||_.name!==Ur||_.moduleReference!==Ht?T(Md(W,be,nr,Ur,Ht),_):_}function Ep(_,W,be,nr,Ur){var Ht=Q(265,_,W);return Ht.importClause=be,Ht.moduleSpecifier=nr,Ht.assertClause=Ur,Ht.transformFlags|=q(Ht.importClause)|q(Ht.moduleSpecifier),Ht.transformFlags&=-16777217,Ht}function Qp(_,W,be,nr,Ur,Ht){return _.decorators!==W||_.modifiers!==be||_.importClause!==nr||_.moduleSpecifier!==Ur||_.assertClause!==Ht?T(Ep(W,be,nr,Ur,Ht),_):_}function Gd(_,W,be){var nr=O(266);return nr.isTypeOnly=_,nr.name=W,nr.namedBindings=be,nr.transformFlags|=q(nr.name)|q(nr.namedBindings),_&&(nr.transformFlags|=1),nr.transformFlags&=-16777217,nr}function Zp(_,W,be,nr){return _.isTypeOnly!==W||_.name!==be||_.namedBindings!==nr?T(Gd(W,be,nr),_):_}function Bd(_,W){var be=O(292);return be.elements=_,be.multiLine=W,be.transformFlags|=4,be}function fu(_,W,be){return _.elements!==W||_.multiLine!==be?T(Bd(W,be),_):_}function _c(_,W){var be=O(293);return be.name=_,be.value=W,be.transformFlags|=4,be}function mc(_,W,be){return _.name!==W||_.value!==be?T(_c(W,be),_):_}function ec(_){var W=O(267);return W.name=_,W.transformFlags|=q(W.name),W.transformFlags&=-16777217,W}function Ud(_,W){return _.name!==W?T(ec(W),_):_}function bf(_){var W=O(273);return W.name=_,W.transformFlags|=q(W.name)|4,W.transformFlags&=-16777217,W}function Tp(_,W){return _.name!==W?T(bf(W),_):_}function Sp(_){var W=O(268);return W.elements=Ce(_),W.transformFlags|=ie(W.elements),W.transformFlags&=-16777217,W}function Ef(_,W){return _.elements!==W?T(Sp(W),_):_}function $p(_,W,be){var nr=O(269);return nr.isTypeOnly=_,nr.propertyName=W,nr.name=be,nr.transformFlags|=q(nr.propertyName)|q(nr.name),nr.transformFlags&=-16777217,nr}function Vd(_,W,be,nr){return _.isTypeOnly!==W||_.propertyName!==be||_.name!==nr?T($p(W,be,nr),_):_}function rd(_,W,be,nr){var Ur=Q(270,_,W);return Ur.isExportEquals=be,Ur.expression=be?I().parenthesizeRightSideOfBinary(63,void 0,nr):I().parenthesizeExpressionOfExportDefault(nr),Ur.transformFlags|=q(Ur.expression),Ur.transformFlags&=-16777217,Ur}function td(_,W,be,nr){return _.decorators!==W||_.modifiers!==be||_.expression!==nr?T(rd(W,be,_.isExportEquals,nr),_):_}function Ru(_,W,be,nr,Ur,Ht){var an=Q(271,_,W);return an.isTypeOnly=be,an.exportClause=nr,an.moduleSpecifier=Ur,an.assertClause=Ht,an.transformFlags|=q(an.exportClause)|q(an.moduleSpecifier),an.transformFlags&=-16777217,an}function wu(_,W,be,nr,Ur,Ht,an){return _.decorators!==W||_.modifiers!==be||_.isTypeOnly!==nr||_.exportClause!==Ur||_.moduleSpecifier!==Ht||_.assertClause!==an?T(Ru(W,be,nr,Ur,Ht,an),_):_}function Pu(_){var W=O(272);return W.elements=Ce(_),W.transformFlags|=ie(W.elements),W.transformFlags&=-16777217,W}function js(_,W){return _.elements!==W?T(Pu(W),_):_}function gc(_,W,be){var nr=O(274);return nr.isTypeOnly=_,nr.propertyName=Ps(W),nr.name=Ps(be),nr.transformFlags|=q(nr.propertyName)|q(nr.name),nr.transformFlags&=-16777217,nr}function nd(_,W,be,nr){return _.isTypeOnly!==W||_.propertyName!==be||_.name!==nr?T(gc(W,be,nr),_):_}function x_(){var _=Q(275,void 0,void 0);return _}function ad(_){var W=O(276);return W.expression=_,W.transformFlags|=q(W.expression),W.transformFlags&=-16777217,W}function Mu(_,W){return _.expression!==W?T(ad(W),_):_}function I_(_){return O(_)}function vc(_,W){var be=O(_);return be.type=W,be}function Ml(_,W,be){return W.type!==be?T(vc(_,be),W):W}function Sl(_,W){var be=Te(315,void 0,void 0,void 0,void 0,_,W);return be}function Fl(_,W,be){return _.parameters!==W||_.type!==be?T(Sl(W,be),_):_}function pl(_,W){W===void 0&&(W=!1);var be=O(320);return be.jsDocPropertyTags=ul(_),be.isArrayType=W,be}function Dp(_,W,be){return _.jsDocPropertyTags!==W||_.isArrayType!==be?T(pl(W,be),_):_}function Tf(_){var W=O(307);return W.type=_,W}function Wd(_,W){return _.type!==W?T(Tf(W),_):_}function id(_,W,be){var nr=O(321);return nr.typeParameters=ul(_),nr.parameters=Ce(W),nr.type=be,nr}function mo(_,W,be,nr){return _.typeParameters!==W||_.parameters!==be||_.type!==nr?T(id(W,be,nr),_):_}function Dl(_){var W=p(_.kind);return _.tagName.escapedText===e.escapeLeadingUnderscores(W)?_.tagName:lr(W)}function wo(_,W,be){var nr=O(_);return nr.tagName=W,nr.comment=be,nr}function ms(_,W,be,nr){var Ur=wo(342,_!=null?_:lr("template"),nr);return Ur.constraint=W,Ur.typeParameters=Ce(be),Ur}function e_(_,W,be,nr,Ur){return W===void 0&&(W=Dl(_)),_.tagName!==W||_.constraint!==be||_.typeParameters!==nr||_.comment!==Ur?T(ms(W,be,nr,Ur),_):_}function Yl(_,W,be,nr){var Ur=wo(343,_!=null?_:lr("typedef"),nr);return Ur.typeExpression=W,Ur.fullName=be,Ur.name=e.getJSDocTypeAliasName(be),Ur}function od(_,W,be,nr,Ur){return W===void 0&&(W=Dl(_)),_.tagName!==W||_.typeExpression!==be||_.fullName!==nr||_.comment!==Ur?T(Yl(W,be,nr,Ur),_):_}function Ln(_,W,be,nr,Ur,Ht){var an=wo(338,_!=null?_:lr("param"),Ht);return an.typeExpression=nr,an.name=W,an.isNameFirst=!!Ur,an.isBracketed=be,an}function us(_,W,be,nr,Ur,Ht,an){return W===void 0&&(W=Dl(_)),_.tagName!==W||_.name!==be||_.isBracketed!==nr||_.typeExpression!==Ur||_.isNameFirst!==Ht||_.comment!==an?T(Ln(W,be,nr,Ur,Ht,an),_):_}function ii(_,W,be,nr,Ur,Ht){var an=wo(345,_!=null?_:lr("prop"),Ht);return an.typeExpression=nr,an.name=W,an.isNameFirst=!!Ur,an.isBracketed=be,an}function Rc(_,W,be,nr,Ur,Ht,an){return W===void 0&&(W=Dl(_)),_.tagName!==W||_.name!==be||_.isBracketed!==nr||_.typeExpression!==Ur||_.isNameFirst!==Ht||_.comment!==an?T(ii(W,be,nr,Ur,Ht,an),_):_}function sd(_,W,be,nr){var Ur=wo(336,_!=null?_:lr("callback"),nr);return Ur.typeExpression=W,Ur.fullName=be,Ur.name=e.getJSDocTypeAliasName(be),Ur}function sl(_,W,be,nr,Ur){return W===void 0&&(W=Dl(_)),_.tagName!==W||_.typeExpression!==be||_.fullName!==nr||_.comment!==Ur?T(sd(W,be,nr,Ur),_):_}function Dn(_,W,be){var nr=wo(326,_!=null?_:lr("augments"),be);return nr.class=W,nr}function N_(_,W,be,nr){return W===void 0&&(W=Dl(_)),_.tagName!==W||_.class!==be||_.comment!==nr?T(Dn(W,be,nr),_):_}function rs(_,W,be){var nr=wo(327,_!=null?_:lr("implements"),be);return nr.class=W,nr}function fs(_,W,be){var nr=wo(344,_!=null?_:lr("see"),be);return nr.name=W,nr}function wc(_,W,be,nr){return _.tagName!==W||_.name!==be||_.comment!==nr?T(fs(W,be,nr),_):_}function Hs(_){var W=O(308);return W.name=_,W}function Sf(_,W){return _.name!==W?T(Hs(W),_):_}function ws(_,W){var be=O(309);return be.left=_,be.right=W,be.transformFlags|=q(be.left)|q(be.right),be}function Pc(_,W,be){return _.left!==W||_.right!==be?T(ws(W,be),_):_}function Qu(_,W){var be=O(322);return be.name=_,be.text=W,be}function Df(_,W,be){return _.name!==W?T(Qu(W,be),_):_}function hc(_,W){var be=O(323);return be.name=_,be.text=W,be}function Lf(_,W,be){return _.name!==W?T(hc(W,be),_):_}function ll(_,W){var be=O(324);return be.name=_,be.text=W,be}function r_(_,W,be){return _.name!==W?T(ll(W,be),_):_}function Fu(_,W,be,nr){return W===void 0&&(W=Dl(_)),_.tagName!==W||_.class!==be||_.comment!==nr?T(rs(W,be,nr),_):_}function Af(_,W,be){var nr=wo(_,W!=null?W:lr(p(_)),be);return nr}function ld(_,W,be,nr){return be===void 0&&(be=Dl(W)),W.tagName!==be||W.comment!==nr?T(Af(_,be,nr),W):W}function cd(_,W,be,nr){var Ur=wo(_,W!=null?W:lr(p(_)),nr);return Ur.typeExpression=be,Ur}function Cf(_,W,be,nr,Ur){return be===void 0&&(be=Dl(W)),W.tagName!==be||W.typeExpression!==nr||W.comment!==Ur?T(cd(_,be,nr,Ur),W):W}function yc(_,W){var be=wo(325,_,W);return be}function ud(_,W,be){return _.tagName!==W||_.comment!==be?T(yc(W,be),_):_}function xf(_){var W=O(319);return W.text=_,W}function Gu(_,W){return _.text!==W?T(xf(W),_):_}function Js(_,W){var be=O(318);return be.comment=_,be.tags=ul(W),be}function Gl(_,W,be){return _.comment!==W||_.tags!==be?T(Js(W,be),_):_}function Kc(_,W,be){var nr=O(277);return nr.openingElement=_,nr.children=Ce(W),nr.closingElement=be,nr.transformFlags|=q(nr.openingElement)|ie(nr.children)|q(nr.closingElement)|2,nr}function fd(_,W,be,nr){return _.openingElement!==W||_.children!==be||_.closingElement!==nr?T(Kc(W,be,nr),_):_}function Ga(_,W,be){var nr=O(278);return nr.tagName=_,nr.typeArguments=ul(W),nr.attributes=be,nr.transformFlags|=q(nr.tagName)|ie(nr.typeArguments)|q(nr.attributes)|2,nr.typeArguments&&(nr.transformFlags|=1),nr}function wn(_,W,be,nr){return _.tagName!==W||_.typeArguments!==be||_.attributes!==nr?T(Ga(W,be,nr),_):_}function Ts(_,W,be){var nr=O(279);return nr.tagName=_,nr.typeArguments=ul(W),nr.attributes=be,nr.transformFlags|=q(nr.tagName)|ie(nr.typeArguments)|q(nr.attributes)|2,W&&(nr.transformFlags|=1),nr}function jd(_,W,be,nr){return _.tagName!==W||_.typeArguments!==be||_.attributes!==nr?T(Ts(W,be,nr),_):_}function rc(_){var W=O(280);return W.tagName=_,W.transformFlags|=q(W.tagName)|2,W}function Zu(_,W){return _.tagName!==W?T(rc(W),_):_}function zc(_,W,be){var nr=O(281);return nr.openingFragment=_,nr.children=Ce(W),nr.closingFragment=be,nr.transformFlags|=q(nr.openingFragment)|ie(nr.children)|q(nr.closingFragment)|2,nr}function Hd(_,W,be,nr){return _.openingFragment!==W||_.children!==be||_.closingFragment!==nr?T(zc(W,be,nr),_):_}function Ll(_,W){var be=O(11);return be.text=_,be.containsOnlyTriviaWhiteSpaces=!!W,be.transformFlags|=2,be}function tc(_,W,be){return _.text!==W||_.containsOnlyTriviaWhiteSpaces!==be?T(Ll(W,be),_):_}function If(){var _=O(282);return _.transformFlags|=2,_}function $u(){var _=O(283);return _.transformFlags|=2,_}function Qs(_,W){var be=O(284);return be.name=_,be.initializer=W,be.transformFlags|=q(be.name)|q(be.initializer)|2,be}function Jd(_,W,be){return _.name!==W||_.initializer!==be?T(Qs(W,be),_):_}function jo(_){var W=O(285);return W.properties=Ce(_),W.transformFlags|=ie(W.properties)|2,W}function Bl(_,W){return _.properties!==W?T(jo(W),_):_}function Kd(_){var W=O(286);return W.expression=_,W.transformFlags|=q(W.expression)|2,W}function nc(_,W){return _.expression!==W?T(Kd(W),_):_}function Nf(_,W){var be=O(287);return be.dotDotDotToken=_,be.expression=W,be.transformFlags|=q(be.dotDotDotToken)|q(be.expression)|2,be}function Bu(_,W){return _.expression!==W?T(Nf(_.dotDotDotToken,W),_):_}function dd(_,W){var be=O(288);return be.expression=I().parenthesizeExpressionForDisallowedComma(_),be.statements=Ce(W),be.transformFlags|=q(be.expression)|ie(be.statements),be}function zd(_,W,be){return _.expression!==W||_.statements!==be?T(dd(W,be),_):_}function Al(_){var W=O(289);return W.statements=Ce(_),W.transformFlags=ie(W.statements),W}function ts(_,W){return _.statements!==W?T(Al(W),_):_}function du(_,W){var be=O(290);switch(be.token=_,be.types=Ce(W),be.transformFlags|=ie(be.types),_){case 94:be.transformFlags|=512;break;case 117:be.transformFlags|=1;break;default:return e.Debug.assertNever(_)}return be}function qd(_,W){return _.types!==W?T(du(_.token,W),_):_}function ac(_,W){var be=O(291);return(typeof _=="string"||_&&!e.isVariableDeclaration(_))&&(_=dl(_,void 0,void 0,void 0)),be.variableDeclaration=_,be.block=W,be.transformFlags|=q(be.variableDeclaration)|q(be.block),_||(be.transformFlags|=32),be}function kf(_,W,be){return _.variableDeclaration!==W||_.block!==be?T(ac(W,be),_):_}function Uu(_,W){var be=V(294,void 0,void 0,_);return be.initializer=I().parenthesizeExpressionForDisallowedComma(W),be.transformFlags|=q(be.name)|q(be.initializer),be}function Xd(_,W){return W.decorators&&(_.decorators=W.decorators),W.modifiers&&(_.modifiers=W.modifiers),W.questionToken&&(_.questionToken=W.questionToken),W.exclamationToken&&(_.exclamationToken=W.exclamationToken),T(_,W)}function ef(_,W,be){return _.name!==W||_.initializer!==be?Xd(Uu(W,be),_):_}function Of(_,W){var be=V(295,void 0,void 0,_);return be.objectAssignmentInitializer=W&&I().parenthesizeExpressionForDisallowedComma(W),be.transformFlags|=q(be.objectAssignmentInitializer)|512,be}function bc(_,W){return W.decorators&&(_.decorators=W.decorators),W.modifiers&&(_.modifiers=W.modifiers),W.equalsToken&&(_.equalsToken=W.equalsToken),W.questionToken&&(_.questionToken=W.questionToken),W.exclamationToken&&(_.exclamationToken=W.exclamationToken),T(_,W)}function qc(_,W,be){return _.name!==W||_.objectAssignmentInitializer!==be?bc(Of(W,be),_):_}function rf(_){var W=O(296);return W.expression=I().parenthesizeExpressionForDisallowedComma(_),W.transformFlags|=q(W.expression)|64|32768,W}function Vu(_,W){return _.expression!==W?T(rf(W),_):_}function Xc(_,W){var be=O(297);return be.name=Ps(_),be.initializer=W&&I().parenthesizeExpressionForDisallowedComma(W),be.transformFlags|=q(be.name)|q(be.initializer)|1,be}function Yd(_,W,be){return _.name!==W||_.initializer!==be?T(Xc(W,be),_):_}function Ec(_,W,be){var nr=$.createBaseSourceFileNode(303);return nr.statements=Ce(_),nr.endOfFileToken=W,nr.flags|=be,nr.fileName="",nr.text="",nr.languageVersion=0,nr.languageVariant=0,nr.scriptKind=0,nr.isDeclarationFile=!1,nr.hasNoDefaultLib=!1,nr.transformFlags|=ie(nr.statements)|q(nr.endOfFileToken),nr}function Wu(_,W,be,nr,Ur,Ht,an){var si=$.createBaseSourceFileNode(303);for(var Io in _)Io==="emitNode"||e.hasProperty(si,Io)||!e.hasProperty(_,Io)||(si[Io]=_[Io]);return si.flags|=_.flags,si.statements=Ce(W),si.endOfFileToken=_.endOfFileToken,si.isDeclarationFile=be,si.referencedFiles=nr,si.typeReferenceDirectives=Ur,si.hasNoDefaultLib=Ht,si.libReferenceDirectives=an,si.transformFlags=ie(si.statements)|q(si.endOfFileToken),si.impliedNodeFormat=_.impliedNodeFormat,si}function t_(_,W,be,nr,Ur,Ht,an){return be===void 0&&(be=_.isDeclarationFile),nr===void 0&&(nr=_.referencedFiles),Ur===void 0&&(Ur=_.typeReferenceDirectives),Ht===void 0&&(Ht=_.hasNoDefaultLib),an===void 0&&(an=_.libReferenceDirectives),_.statements!==W||_.isDeclarationFile!==be||_.referencedFiles!==nr||_.typeReferenceDirectives!==Ur||_.hasNoDefaultLib!==Ht||_.libReferenceDirectives!==an?T(Wu(_,W,be,nr,Ur,Ht,an),_):_}function Wa(_,W){W===void 0&&(W=e.emptyArray);var be=O(304);return be.prepends=W,be.sourceFiles=_,be}function pu(_,W,be){return be===void 0&&(be=e.emptyArray),_.sourceFiles!==W||_.prepends!==be?T(Wa(W,be),_):_}function gn(_,W,be){var nr=O(305);return nr.prologues=_,nr.syntheticReferences=W,nr.texts=be,nr.fileName="",nr.text="",nr.referencedFiles=e.emptyArray,nr.libReferenceDirectives=e.emptyArray,nr.getLineAndCharacterOfPosition=function(Ur){return e.getLineAndCharacterOfPosition(nr,Ur)},nr}function Rf(_,W){var be=O(_);return be.data=W,be}function Qd(_){return Rf(298,_)}function Zd(_,W){var be=Rf(299,_);return be.texts=W,be}function Mc(_,W){return Rf(W?301:300,_)}function $d(_){var W=O(302);return W.data=_.data,W.section=_,W}function k_(){var _=O(306);return _.javascriptText="",_.declarationText="",_}function Yc(_,W,be){W===void 0&&(W=!1);var nr=O(231);return nr.type=_,nr.isSpread=W,nr.tupleNameSource=be,nr}function Lp(_){var W=O(346);return W._children=_,W}function pd(_){var W=O(347);return W.original=_,e.setTextRange(W,_),W}function Ap(_,W){var be=O(348);return be.expression=_,be.original=W,be.transformFlags|=q(be.expression)|1,e.setTextRange(be,W),be}function Ul(_,W){return _.expression!==W?T(Ap(W,_.original),_):_}function wf(_){if(e.nodeIsSynthesized(_)&&!e.isParseTreeNode(_)&&!_.original&&!_.emitNode&&!_.id){if(e.isCommaListExpression(_))return _.elements;if(e.isBinaryExpression(_)&&e.isCommaToken(_.operatorToken))return[_.left,_.right]}return _}function _d(_){var W=O(349);return W.elements=Ce(e.sameFlatMap(_,wf)),W.transformFlags|=ie(W.elements),W}function Fc(_,W){return _.elements!==W?T(_d(W),_):_}function Qc(_){var W=O(351);return W.emitNode={},W.original=_,W}function Pf(_){var W=O(350);return W.emitNode={},W.original=_,W}function E(_,W){var be=O(352);return be.expression=_,be.thisArg=W,be.transformFlags|=q(be.expression)|q(be.thisArg),be}function Qe(_,W,be){return _.expression!==W||_.thisArg!==be?T(E(W,be),_):_}function nt(_){if(_===void 0)return _;var W=e.isSourceFile(_)?$.createBaseSourceFileNode(303):e.isIdentifier(_)?$.createBaseIdentifierNode(79):e.isPrivateIdentifier(_)?$.createBasePrivateIdentifierNode(80):e.isNodeKind(_.kind)?$.createBaseNode(_.kind):$.createBaseTokenNode(_.kind);W.flags|=_.flags&-9,W.transformFlags=_.transformFlags,ne(W,_);for(var be in _)W.hasOwnProperty(be)||!_.hasOwnProperty(be)||(W[be]=_[be]);return W}function Ot(_,W,be){return Di(mi(void 0,void 0,void 0,void 0,W?[W]:[],void 0,le(_,!0)),void 0,be?[be]:[])}function fa(_,W,be){return Di(Gi(void 0,void 0,W?[W]:[],void 0,void 0,le(_,!0)),void 0,be?[be]:[])}function Oa(){return wr(_e("0"))}function ia(_){return rd(void 0,void 0,!1,_)}function ti(_){return Ru(void 0,void 0,!1,Pu([gc(!1,void 0,_)]))}function Na(_,W){return W==="undefined"?Se.createStrictEquality(_,Oa()):Se.createStrictEquality(as(_),Xe(W))}function Ua(_,W,be){return e.isCallChain(_)?Ji(qr(_,void 0,W),void 0,void 0,be):Di(er(_,W),void 0,be)}function Go(_,W,be){return Ua(_,"bind",Gt([W],be,!0))}function cl(_,W,be){return Ua(_,"call",Gt([W],be,!0))}function os(_,W,be){return Ua(_,"apply",[W,be])}function is(_,W,be){return Ua(lr(_),W,be)}function Vl(_,W){return Ua(_,"slice",W===void 0?[]:[Ff(W)])}function Zc(_,W){return Ua(_,"concat",W)}function $c(_,W,be){return is("Object","defineProperty",[_,Ff(W),be])}function md(_,W,be){return is("Reflect","get",be?[_,W,be]:[_,W])}function n_(_,W,be,nr){return is("Reflect","set",nr?[_,W,be,nr]:[_,W,be])}function tf(_,W,be){return be?(_.push(Uu(W,be)),!0):!1}function Mf(_,W){var be=[];tf(be,"enumerable",Ff(_.enumerable)),tf(be,"configurable",Ff(_.configurable));var nr=tf(be,"writable",Ff(_.writable));nr=tf(be,"value",_.value)||nr;var Ur=tf(be,"get",_.get);return Ur=tf(be,"set",_.set)||Ur,e.Debug.assert(!(nr&&Ur),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),se(be,!W)}function a_(_,W){switch(_.kind){case 211:return ka(_,W);case 210:return bi(_,_.type,W);case 228:return Pr(_,W,_.type);case 229:return Lt(_,W);case 348:return Ul(_,W)}}function gd(_){return e.isParenthesizedExpression(_)&&e.nodeIsSynthesized(_)&&e.nodeIsSynthesized(e.getSourceMapRange(_))&&e.nodeIsSynthesized(e.getCommentRange(_))&&!e.some(e.getSyntheticLeadingComments(_))&&!e.some(e.getSyntheticTrailingComments(_))}function Wl(_,W,be){return be===void 0&&(be=15),_&&e.isOuterExpression(_,be)&&!gd(_)?a_(_,Wl(_.expression,W)):W}function ep(_,W,be){if(!W)return _;var nr=hf(W,W.label,e.isLabeledStatement(W.statement)?ep(_,W.statement):_);return be&&be(W),nr}function i_(_,W){var be=e.skipParentheses(_);switch(be.kind){case 79:return W;case 108:case 8:case 9:case 10:return!1;case 203:var nr=be.elements;return nr.length!==0;case 204:return be.properties.length>0;default:return!0}}function xe(_,W,be,nr){nr===void 0&&(nr=!1);var Ur=e.skipOuterExpressions(_,15),Ht,an;return e.isSuperProperty(Ur)?(Ht=$e(),an=Ur):e.isSuperKeyword(Ur)?(Ht=$e(),an=be!==void 0&&be<2?e.setTextRange(lr("_super"),Ur):Ur):e.getEmitFlags(Ur)&4096?(Ht=Oa(),an=I().parenthesizeLeftSideOfAccess(Ur)):e.isPropertyAccessExpression(Ur)?i_(Ur.expression,nr)?(Ht=Or(W),an=er(e.setTextRange(Se.createAssignment(Ht,Ur.expression),Ur.expression),Ur.name),e.setTextRange(an,Ur)):(Ht=Ur.expression,an=Ur):e.isElementAccessExpression(Ur)?i_(Ur.expression,nr)?(Ht=Or(W),an=Jt(e.setTextRange(Se.createAssignment(Ht,Ur.expression),Ur.expression),Ur.argumentExpression),e.setTextRange(an,Ur)):(Ht=Ur.expression,an=Ur):(Ht=Oa(),an=I().parenthesizeLeftSideOfAccess(_)),{target:an,thisArg:Ht}}function Tr(_,W){return er(xi(se([fr(void 0,void 0,"value",[cn(void 0,void 0,void 0,_,void 0,void 0,void 0)],le([yn(W)]))])),"value")}function Gr(_){return _.length>10?_d(_):e.reduceLeft(_,Se.createComma)}function at(_,W,be,nr){nr===void 0&&(nr=0);var Ur=e.getNameOfDeclaration(_);if(Ur&&e.isIdentifier(Ur)&&!e.isGeneratedIdentifier(Ur)){var Ht=e.setParent(e.setTextRange(nt(Ur),Ur),Ur.parent);return nr|=e.getEmitFlags(Ur),be||(nr|=48),W||(nr|=1536),nr&&e.setEmitFlags(Ht,nr),Ht}return Hr(_)}function Ct(_,W,be){return at(_,W,be,49152)}function Xt(_,W,be){return at(_,W,be,16384)}function On(_,W,be){return at(_,W,be,8192)}function $n(_,W,be){return at(_,W,be)}function wa(_,W,be,nr){var Ur=er(_,e.nodeIsSynthesized(W)?W:nt(W));e.setTextRange(Ur,W);var Ht=0;return nr||(Ht|=48),be||(Ht|=1536),Ht&&e.setEmitFlags(Ur,Ht),Ur}function Ea(_,W,be,nr){return _&&e.hasSyntacticModifier(W,1)?wa(_,at(W),be,nr):On(W,be,nr)}function Ki(_,W,be,nr){var Ur=Ho(_,W,be);return gs(_,W,Ur,nr)}function Qo(_){return e.isStringLiteral(_.expression)&&_.expression.text==="use strict"}function $i(){return e.startOnNewLine(yn(Xe("use strict")))}function Ho(_,W,be){e.Debug.assert(W.length===0,"Prologue directives should be at the first statement in the target statements array");for(var nr=!1,Ur=0,Ht=_.length;Ur<Ht;){var an=_[Ur];if(e.isPrologueDirective(an))Qo(an)&&(nr=!0),W.push(an);else break;Ur++}return be&&!nr&&W.push($i()),Ur}function gs(_,W,be,nr,Ur){Ur===void 0&&(Ur=e.returnTrue);for(var Ht=_.length;be!==void 0&&be<Ht;){var an=_[be];if(e.getEmitFlags(an)&1048576&&Ur(an))e.append(W,nr?e.visitNode(an,nr,e.isStatement):an);else break;be++}return be}function _l(_){var W=e.findUseStrictPrologue(_);return W?_:e.setTextRange(Ce(Gt([$i()],_,!0)),_)}function xs(_){return e.Debug.assert(e.every(_,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(_)||le(_)}function Cl(_,W,be){for(var nr=be;nr<_.length&&W(_[nr]);)nr++;return nr}function bl(_,W){if(!e.some(W))return _;var be=Cl(_,e.isPrologueDirective,0),nr=Cl(_,e.isHoistedFunction,be),Ur=Cl(_,e.isHoistedVariableStatement,nr),Ht=Cl(W,e.isPrologueDirective,0),an=Cl(W,e.isHoistedFunction,Ht),si=Cl(W,e.isHoistedVariableStatement,an),Io=Cl(W,e.isCustomPrologue,si);e.Debug.assert(Io===W.length,"Expected declarations to be valid standard or custom prologues");var vs=e.isNodeArray(_)?_.slice():_;if(Io>si&&vs.splice.apply(vs,Gt([Ur,0],W.slice(si,Io),!1)),si>an&&vs.splice.apply(vs,Gt([nr,0],W.slice(an,si),!1)),an>Ht&&vs.splice.apply(vs,Gt([be,0],W.slice(Ht,an),!1)),Ht>0)if(be===0)vs.splice.apply(vs,Gt([0,0],W.slice(0,Ht),!1));else{for(var rp=new e.Map,Gc=0;Gc<be;Gc++){var Gm=_[Gc];rp.set(Gm.expression.text,!0)}for(var Gc=Ht-1;Gc>=0;Gc--){var tp=W[Gc];rp.has(tp.expression.text)||vs.unshift(tp)}}return e.isNodeArray(_)?e.setTextRange(Ce(vs,_.hasTrailingComma),_):_}function ju(_,W){var be;return typeof W=="number"&&(W=Jr(W)),e.isParameter(_)?bn(_,_.decorators,W,_.dotDotDotToken,_.name,_.questionToken,_.type,_.initializer):e.isPropertySignature(_)?Rr(_,W,_.name,_.questionToken,_.type):e.isPropertyDeclaration(_)?ye(_,_.decorators,W,_.name,(be=_.questionToken)!==null&&be!==void 0?be:_.exclamationToken,_.type,_.initializer):e.isMethodSignature(_)?fe(_,W,_.name,_.questionToken,_.typeParameters,_.parameters,_.type):e.isMethodDeclaration(_)?Ee(_,_.decorators,W,_.asteriskToken,_.name,_.questionToken,_.typeParameters,_.parameters,_.type,_.body):e.isConstructorDeclaration(_)?me(_,_.decorators,W,_.parameters,_.body):e.isGetAccessorDeclaration(_)?xr(_,_.decorators,W,_.name,_.parameters,_.type,_.body):e.isSetAccessorDeclaration(_)?dr(_,_.decorators,W,_.name,_.parameters,_.body):e.isIndexSignatureDeclaration(_)?kr(_,_.decorators,W,_.parameters,_.type):e.isFunctionExpression(_)?Xi(_,W,_.asteriskToken,_.name,_.typeParameters,_.parameters,_.type,_.body):e.isArrowFunction(_)?Ro(_,W,_.typeParameters,_.parameters,_.type,_.equalsGreaterThanToken,_.body):e.isClassExpression(_)?Ic(_,_.decorators,W,_.name,_.typeParameters,_.heritageClauses,_.members):e.isVariableStatement(_)?ct(_,W,_.declarationList):e.isFunctionDeclaration(_)?Oc(_,_.decorators,W,_.asteriskToken,_.name,_.typeParameters,_.parameters,_.type,_.body):e.isClassDeclaration(_)?yf(_,_.decorators,W,_.name,_.typeParameters,_.heritageClauses,_.members):e.isInterfaceDeclaration(_)?kd(_,_.decorators,W,_.name,_.typeParameters,_.heritageClauses,_.members):e.isTypeAliasDeclaration(_)?$f(_,_.decorators,W,_.name,_.typeParameters,_.type):e.isEnumDeclaration(_)?Rd(_,_.decorators,W,_.name,_.members):e.isModuleDeclaration(_)?yp(_,_.decorators,W,_.name,_.body):e.isImportEqualsDeclaration(_)?Fd(_,_.decorators,W,_.isTypeOnly,_.name,_.moduleReference):e.isImportDeclaration(_)?Qp(_,_.decorators,W,_.importClause,_.moduleSpecifier,_.assertClause):e.isExportAssignment(_)?td(_,_.decorators,W,_.expression):e.isExportDeclaration(_)?wu(_,_.decorators,W,_.isTypeOnly,_.exportClause,_.moduleSpecifier,_.assertClause):e.Debug.assertNever(_)}function ul(_){return _?Ce(_):void 0}function Ps(_){return typeof _=="string"?lr(_):_}function Ff(_){return typeof _=="string"?Xe(_):typeof _=="number"?_e(_):typeof _=="boolean"?_?Fr():He():_}function _u(_){return typeof _=="number"?de(_):_}function ml(_){return _&&e.isNotEmittedStatement(_)?e.setTextRange(ne(jt(),_),_):_}}e.createNodeFactory=f;function d(U,$){return U!==$&&e.setTextRange(U,$),U}function a(U,$){return U!==$&&(ne(U,$),e.setTextRange(U,$)),U}function p(U){switch(U){case 341:return"type";case 339:return"returns";case 340:return"this";case 337:return"enum";case 328:return"author";case 330:return"class";case 331:return"public";case 332:return"private";case 333:return"protected";case 334:return"readonly";case 335:return"override";case 342:return"template";case 343:return"typedef";case 338:return"param";case 345:return"prop";case 336:return"callback";case 326:return"augments";case 327:return"implements";default:return e.Debug.fail("Unsupported kind: ".concat(e.Debug.formatSyntaxKind(U)))}}var N,H={};function h(U,$){switch(N||(N=e.createScanner(99,!1,0)),U){case 14:N.setText("`"+$+"`");break;case 15:N.setText("`"+$+"${");break;case 16:N.setText("}"+$+"${");break;case 17:N.setText("}"+$+"`");break}var T=N.scan();if(T===19&&(T=N.reScanTemplateToken(!1)),N.isUnterminated())return N.setText(void 0),H;var I;switch(T){case 14:case 15:case 16:case 17:I=N.getTokenValue();break}return I===void 0||N.scan()!==1?(N.setText(void 0),H):(N.setText(void 0),I)}function v(U){return q(U)&-16777217}function A(U,$){return $|U.transformFlags&33562624}function q(U){if(!U)return 0;var $=U.transformFlags&~P(U.kind);return e.isNamedDeclaration(U)&&e.isPropertyName(U.name)?A(U.name,$):$}function ie(U){return U?U.transformFlags:0}function b(U){for(var $=0,T=0,I=U;T<I.length;T++){var y=I[T];$|=q(y)}U.transformFlags=$}function P(U){if(U>=176&&U<=199)return-2;switch(U){case 207:case 208:case 203:return 536887296;case 260:return 589443072;case 163:return 536870912;case 213:return 557748224;case 212:case 255:return 591310848;case 254:return 537165824;case 256:case 225:return 536940544;case 170:return 591306752;case 166:return 570433536;case 168:case 171:case 172:return 574529536;case 130:case 146:case 157:case 143:case 149:case 147:case 133:case 150:case 114:case 162:case 165:case 167:case 173:case 174:case 175:case 257:case 258:return-2;case 204:return 536973312;case 291:return 536903680;case 200:case 201:return 536887296;case 210:case 228:case 348:case 211:case 106:return 536870912;case 205:case 206:return 536870912;default:return 536870912}}e.getTransformFlagsSubtreeExclusions=P;var S=e.createBaseNodeFactory();function B(U){return U.flags|=8,U}var J={createBaseSourceFileNode:function(U){return B(S.createBaseSourceFileNode(U))},createBaseIdentifierNode:function(U){return B(S.createBaseIdentifierNode(U))},createBasePrivateIdentifierNode:function(U){return B(S.createBasePrivateIdentifierNode(U))},createBaseTokenNode:function(U){return B(S.createBaseTokenNode(U))},createBaseNode:function(U){return B(S.createBaseNode(U))}};e.factory=f(4,J);function k(U,$,T){var I,y,D,C,m,u,g,F,te,ue;e.isString(U)?(D="",C=U,m=U.length,u=$,g=T):(e.Debug.assert($==="js"||$==="dts"),D=($==="js"?U.javascriptPath:U.declarationPath)||"",u=$==="js"?U.javascriptMapPath:U.declarationMapPath,F=function(){return $==="js"?U.javascriptText:U.declarationText},te=function(){return $==="js"?U.javascriptMapText:U.declarationMapText},m=function(){return F().length},U.buildInfo&&U.buildInfo.bundle&&(e.Debug.assert(T===void 0||typeof T=="boolean"),I=T,y=$==="js"?U.buildInfo.bundle.js:U.buildInfo.bundle.dts,ue=U.oldFileOfCurrentEmit));var X=ue?x(e.Debug.assertDefined(y)):M(y,I,m);return X.fileName=D,X.sourceMapPath=u,X.oldFileOfCurrentEmit=ue,F&&te?(Object.defineProperty(X,"text",{get:F}),Object.defineProperty(X,"sourceMapText",{get:te})):(e.Debug.assert(!ue),X.text=C!=null?C:"",X.sourceMapText=g),X}e.createUnparsedSourceFile=k;function M(U,$,T){for(var I,y,D,C,m,u,g,F,te=0,ue=U?U.sections:e.emptyArray;te<ue.length;te++){var X=ue[te];switch(X.kind){case"prologue":I=e.append(I,e.setTextRange(e.factory.createUnparsedPrologue(X.data),X));break;case"emitHelpers":y=e.append(y,e.getAllUnscopedEmitHelpers().get(X.data));break;case"no-default-lib":F=!0;break;case"reference":D=e.append(D,{pos:-1,end:-1,fileName:X.data});break;case"type":C=e.append(C,X.data);break;case"lib":m=e.append(m,{pos:-1,end:-1,fileName:X.data});break;case"prepend":for(var j=void 0,Se=0,Ce=X.texts;Se<Ce.length;Se++){var O=Ce[Se];(!$||O.kind!=="internal")&&(j=e.append(j,e.setTextRange(e.factory.createUnparsedTextLike(O.data,O.kind==="internal"),O)))}u=e.addRange(u,j),g=e.append(g,e.factory.createUnparsedPrepend(X.data,j!=null?j:e.emptyArray));break;case"internal":if($){g||(g=[]);break}case"text":g=e.append(g,e.setTextRange(e.factory.createUnparsedTextLike(X.data,X.kind==="internal"),X));break;default:e.Debug.assertNever(X)}}if(!g){var Q=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(Q,0,typeof T=="function"?T():T),g=[Q]}var V=e.parseNodeFactory.createUnparsedSource(I!=null?I:e.emptyArray,void 0,g);return e.setEachParent(I,V),e.setEachParent(g,V),e.setEachParent(u,V),V.hasNoDefaultLib=F,V.helpers=y,V.referencedFiles=D||e.emptyArray,V.typeReferenceDirectives=C,V.libReferenceDirectives=m||e.emptyArray,V}function x(U){for(var $,T,I=0,y=U.sections;I<y.length;I++){var D=y[I];switch(D.kind){case"internal":case"text":$=e.append($,e.setTextRange(e.factory.createUnparsedTextLike(D.data,D.kind==="internal"),D));break;case"no-default-lib":case"reference":case"type":case"lib":T=e.append(T,e.setTextRange(e.factory.createUnparsedSyntheticReference(D),D));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(D)}}var C=e.factory.createUnparsedSource(e.emptyArray,T,$!=null?$:e.emptyArray);return e.setEachParent(T,C),e.setEachParent($,C),C.helpers=e.map(U.sources&&U.sources.helpers,function(m){return e.getAllUnscopedEmitHelpers().get(m)}),C}function w(U,$,T,I,y,D,C,m,u,g,F){var te=e.parseNodeFactory.createInputFiles();if(e.isString(U))te.javascriptText=U,te.javascriptMapPath=T,te.javascriptMapText=I,te.declarationText=$,te.declarationMapPath=y,te.declarationMapText=D,te.javascriptPath=C,te.declarationPath=m,te.buildInfoPath=u,te.buildInfo=g,te.oldFileOfCurrentEmit=F;else{var ue=new e.Map,X=function(O){if(O!==void 0){var Q=ue.get(O);return Q===void 0&&(Q=U(O),ue.set(O,Q!==void 0?Q:!1)),Q!==!1?Q:void 0}},j=function(O){var Q=X(O);return Q!==void 0?Q:"/* Input file ".concat(O,` was missing */\r
|
|
`)},Se,Ce=function(O){if(Se===void 0){var Q=O();Se=Q!==void 0?e.getBuildInfo(Q):!1}return Se||void 0};te.javascriptPath=$,te.javascriptMapPath=T,te.declarationPath=e.Debug.assertDefined(I),te.declarationMapPath=y,te.buildInfoPath=D,Object.defineProperties(te,{javascriptText:{get:function(){return j($)}},javascriptMapText:{get:function(){return X(T)}},declarationText:{get:function(){return j(e.Debug.assertDefined(I))}},declarationMapText:{get:function(){return X(y)}},buildInfo:{get:function(){return Ce(function(){return X(D)})}}})}return te}e.createInputFiles=w;var K;function Z(U,$,T){return new(K||(K=e.objectAllocator.getSourceMapSourceConstructor()))(U,$,T)}e.createSourceMapSource=Z;function ne(U,$){if(U.original=$,$){var T=$.emitNode;T&&(U.emitNode=R(T,U.emitNode))}return U}e.setOriginalNode=ne;function R(U,$){var T=U.flags,I=U.leadingComments,y=U.trailingComments,D=U.commentRange,C=U.sourceMapRange,m=U.tokenSourceMapRanges,u=U.constantValue,g=U.helpers,F=U.startsOnNewLine;if($||($={}),I&&($.leadingComments=e.addRange(I.slice(),$.leadingComments)),y&&($.trailingComments=e.addRange(y.slice(),$.trailingComments)),T&&($.flags=T&-268435457),D&&($.commentRange=D),C&&($.sourceMapRange=C),m&&($.tokenSourceMapRanges=Y(m,$.tokenSourceMapRanges)),u!==void 0&&($.constantValue=u),g)for(var te=0,ue=g;te<ue.length;te++){var X=ue[te];$.helpers=e.appendIfUnique($.helpers,X)}return F!==void 0&&($.startsOnNewLine=F),$}function Y(U,$){$||($=[]);for(var T in U)$[T]=U[T];return $}})(gr||(gr={}));var gr;(function(e){function n(y){var D;if(y.emitNode)e.Debug.assert(!(y.emitNode.flags&268435456),"Invalid attempt to mutate an immutable node.");else{if(e.isParseTreeNode(y)){if(y.kind===303)return y.emitNode={annotatedNodes:[y]};var C=(D=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(y))))!==null&&D!==void 0?D:e.Debug.fail("Could not determine parsed source file.");n(C).annotatedNodes.push(y)}y.emitNode={}}return y.emitNode}e.getOrCreateEmitNode=n;function f(y){var D,C,m=(C=(D=e.getSourceFileOfNode(e.getParseTreeNode(y)))===null||D===void 0?void 0:D.emitNode)===null||C===void 0?void 0:C.annotatedNodes;if(m)for(var u=0,g=m;u<g.length;u++){var F=g[u];F.emitNode=void 0}}e.disposeEmitNodes=f;function d(y){var D=n(y);return D.flags|=1536,D.leadingComments=void 0,D.trailingComments=void 0,y}e.removeAllComments=d;function a(y,D){return n(y).flags=D,y}e.setEmitFlags=a;function p(y,D){var C=n(y);return C.flags=C.flags|D,y}e.addEmitFlags=p;function N(y){var D,C;return(C=(D=y.emitNode)===null||D===void 0?void 0:D.sourceMapRange)!==null&&C!==void 0?C:y}e.getSourceMapRange=N;function H(y,D){return n(y).sourceMapRange=D,y}e.setSourceMapRange=H;function h(y,D){var C,m;return(m=(C=y.emitNode)===null||C===void 0?void 0:C.tokenSourceMapRanges)===null||m===void 0?void 0:m[D]}e.getTokenSourceMapRange=h;function v(y,D,C){var m,u=n(y),g=(m=u.tokenSourceMapRanges)!==null&&m!==void 0?m:u.tokenSourceMapRanges=[];return g[D]=C,y}e.setTokenSourceMapRange=v;function A(y){var D;return(D=y.emitNode)===null||D===void 0?void 0:D.startsOnNewLine}e.getStartsOnNewLine=A;function q(y,D){return n(y).startsOnNewLine=D,y}e.setStartsOnNewLine=q;function ie(y){var D,C;return(C=(D=y.emitNode)===null||D===void 0?void 0:D.commentRange)!==null&&C!==void 0?C:y}e.getCommentRange=ie;function b(y,D){return n(y).commentRange=D,y}e.setCommentRange=b;function P(y){var D;return(D=y.emitNode)===null||D===void 0?void 0:D.leadingComments}e.getSyntheticLeadingComments=P;function S(y,D){return n(y).leadingComments=D,y}e.setSyntheticLeadingComments=S;function B(y,D,C,m){return S(y,e.append(P(y),{kind:D,pos:-1,end:-1,hasTrailingNewLine:m,text:C}))}e.addSyntheticLeadingComment=B;function J(y){var D;return(D=y.emitNode)===null||D===void 0?void 0:D.trailingComments}e.getSyntheticTrailingComments=J;function k(y,D){return n(y).trailingComments=D,y}e.setSyntheticTrailingComments=k;function M(y,D,C,m){return k(y,e.append(J(y),{kind:D,pos:-1,end:-1,hasTrailingNewLine:m,text:C}))}e.addSyntheticTrailingComment=M;function x(y,D){S(y,P(D)),k(y,J(D));var C=n(D);return C.leadingComments=void 0,C.trailingComments=void 0,y}e.moveSyntheticComments=x;function w(y){var D;return(D=y.emitNode)===null||D===void 0?void 0:D.constantValue}e.getConstantValue=w;function K(y,D){var C=n(y);return C.constantValue=D,y}e.setConstantValue=K;function Z(y,D){var C=n(y);return C.helpers=e.append(C.helpers,D),y}e.addEmitHelper=Z;function ne(y,D){if(e.some(D))for(var C=n(y),m=0,u=D;m<u.length;m++){var g=u[m];C.helpers=e.appendIfUnique(C.helpers,g)}return y}e.addEmitHelpers=ne;function R(y,D){var C,m=(C=y.emitNode)===null||C===void 0?void 0:C.helpers;return m?e.orderedRemoveItem(m,D):!1}e.removeEmitHelper=R;function Y(y){var D;return(D=y.emitNode)===null||D===void 0?void 0:D.helpers}e.getEmitHelpers=Y;function U(y,D,C){var m=y.emitNode,u=m&&m.helpers;if(!!e.some(u)){for(var g=n(D),F=0,te=0;te<u.length;te++){var ue=u[te];C(ue)?(F++,g.helpers=e.appendIfUnique(g.helpers,ue)):F>0&&(u[te-F]=ue)}F>0&&(u.length-=F)}}e.moveEmitHelpers=U;function $(y){var D;return(D=y.emitNode)===null||D===void 0?void 0:D.snippetElement}e.getSnippetElement=$;function T(y,D){var C=n(y);return C.snippetElement=D,y}e.setSnippetElement=T;function I(y){return n(y).flags|=134217728,y}e.ignoreSourceNewlines=I})(gr||(gr={}));var gr;(function(e){function n(H){var h=H.factory,v=e.memoize(function(){return e.setEmitFlags(h.createTrue(),268435456)}),A=e.memoize(function(){return e.setEmitFlags(h.createFalse(),268435456)});return{getUnscopedHelperName:q,createDecorateHelper:ie,createMetadataHelper:b,createParamHelper:P,createAssignHelper:S,createAwaitHelper:B,createAsyncGeneratorHelper:J,createAsyncDelegatorHelper:k,createAsyncValuesHelper:M,createRestHelper:x,createAwaiterHelper:w,createExtendsHelper:K,createTemplateObjectHelper:Z,createSpreadArrayHelper:ne,createValuesHelper:R,createReadHelper:Y,createGeneratorHelper:U,createCreateBindingHelper:$,createImportStarHelper:T,createImportStarCallbackHelper:I,createImportDefaultHelper:y,createExportStarHelper:D,createClassPrivateFieldGetHelper:C,createClassPrivateFieldSetHelper:m,createClassPrivateFieldInHelper:u};function q(g){return e.setEmitFlags(h.createIdentifier(g),4098)}function ie(g,F,te,ue){H.requestEmitHelper(e.decorateHelper);var X=[];return X.push(h.createArrayLiteralExpression(g,!0)),X.push(F),te&&(X.push(te),ue&&X.push(ue)),h.createCallExpression(q("__decorate"),void 0,X)}function b(g,F){return H.requestEmitHelper(e.metadataHelper),h.createCallExpression(q("__metadata"),void 0,[h.createStringLiteral(g),F])}function P(g,F,te){return H.requestEmitHelper(e.paramHelper),e.setTextRange(h.createCallExpression(q("__param"),void 0,[h.createNumericLiteral(F+""),g]),te)}function S(g){return e.getEmitScriptTarget(H.getCompilerOptions())>=2?h.createCallExpression(h.createPropertyAccessExpression(h.createIdentifier("Object"),"assign"),void 0,g):(H.requestEmitHelper(e.assignHelper),h.createCallExpression(q("__assign"),void 0,g))}function B(g){return H.requestEmitHelper(e.awaitHelper),h.createCallExpression(q("__await"),void 0,[g])}function J(g,F){return H.requestEmitHelper(e.awaitHelper),H.requestEmitHelper(e.asyncGeneratorHelper),(g.emitNode||(g.emitNode={})).flags|=786432,h.createCallExpression(q("__asyncGenerator"),void 0,[F?h.createThis():h.createVoidZero(),h.createIdentifier("arguments"),g])}function k(g){return H.requestEmitHelper(e.awaitHelper),H.requestEmitHelper(e.asyncDelegator),h.createCallExpression(q("__asyncDelegator"),void 0,[g])}function M(g){return H.requestEmitHelper(e.asyncValues),h.createCallExpression(q("__asyncValues"),void 0,[g])}function x(g,F,te,ue){H.requestEmitHelper(e.restHelper);for(var X=[],j=0,Se=0;Se<F.length-1;Se++){var Ce=e.getPropertyNameOfBindingOrAssignmentElement(F[Se]);if(Ce)if(e.isComputedPropertyName(Ce)){e.Debug.assertIsDefined(te,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var O=te[j];j++,X.push(h.createConditionalExpression(h.createTypeCheck(O,"symbol"),void 0,O,void 0,h.createAdd(O,h.createStringLiteral(""))))}else X.push(h.createStringLiteralFromNode(Ce))}return h.createCallExpression(q("__rest"),void 0,[g,e.setTextRange(h.createArrayLiteralExpression(X),ue)])}function w(g,F,te,ue){H.requestEmitHelper(e.awaiterHelper);var X=h.createFunctionExpression(void 0,h.createToken(41),void 0,void 0,[],void 0,ue);return(X.emitNode||(X.emitNode={})).flags|=786432,h.createCallExpression(q("__awaiter"),void 0,[g?h.createThis():h.createVoidZero(),F?h.createIdentifier("arguments"):h.createVoidZero(),te?e.createExpressionFromEntityName(h,te):h.createVoidZero(),X])}function K(g){return H.requestEmitHelper(e.extendsHelper),h.createCallExpression(q("__extends"),void 0,[g,h.createUniqueName("_super",48)])}function Z(g,F){return H.requestEmitHelper(e.templateObjectHelper),h.createCallExpression(q("__makeTemplateObject"),void 0,[g,F])}function ne(g,F,te){return H.requestEmitHelper(e.spreadArrayHelper),h.createCallExpression(q("__spreadArray"),void 0,[g,F,te?v():A()])}function R(g){return H.requestEmitHelper(e.valuesHelper),h.createCallExpression(q("__values"),void 0,[g])}function Y(g,F){return H.requestEmitHelper(e.readHelper),h.createCallExpression(q("__read"),void 0,F!==void 0?[g,h.createNumericLiteral(F+"")]:[g])}function U(g){return H.requestEmitHelper(e.generatorHelper),h.createCallExpression(q("__generator"),void 0,[h.createThis(),g])}function $(g,F,te){return H.requestEmitHelper(e.createBindingHelper),h.createCallExpression(q("__createBinding"),void 0,Gt([h.createIdentifier("exports"),g,F],te?[te]:[],!0))}function T(g){return H.requestEmitHelper(e.importStarHelper),h.createCallExpression(q("__importStar"),void 0,[g])}function I(){return H.requestEmitHelper(e.importStarHelper),q("__importStar")}function y(g){return H.requestEmitHelper(e.importDefaultHelper),h.createCallExpression(q("__importDefault"),void 0,[g])}function D(g,F){return F===void 0&&(F=h.createIdentifier("exports")),H.requestEmitHelper(e.exportStarHelper),H.requestEmitHelper(e.createBindingHelper),h.createCallExpression(q("__exportStar"),void 0,[g,F])}function C(g,F,te,ue){H.requestEmitHelper(e.classPrivateFieldGetHelper);var X;return ue?X=[g,F,h.createStringLiteral(te),ue]:X=[g,F,h.createStringLiteral(te)],h.createCallExpression(q("__classPrivateFieldGet"),void 0,X)}function m(g,F,te,ue,X){H.requestEmitHelper(e.classPrivateFieldSetHelper);var j;return X?j=[g,F,te,h.createStringLiteral(ue),X]:j=[g,F,te,h.createStringLiteral(ue)],h.createCallExpression(q("__classPrivateFieldSet"),void 0,j)}function u(g,F){return H.requestEmitHelper(e.classPrivateFieldInHelper),h.createCallExpression(q("__classPrivateFieldIn"),void 0,[g,F])}}e.createEmitHelperFactory=n;function f(H,h){return H===h||H.priority===h.priority?0:H.priority===void 0?1:h.priority===void 0?-1:e.compareValues(H.priority,h.priority)}e.compareEmitHelpers=f;function d(H){for(var h=[],v=1;v<arguments.length;v++)h[v-1]=arguments[v];return function(A){for(var q="",ie=0;ie<h.length;ie++)q+=H[ie],q+=A(h[ie]);return q+=H[H.length-1],q}}e.helperString=d,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;
|
|
};`},e.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:`
|
|
var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
|
|
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
};`};var a;function p(){return a||(a=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.classPrivateFieldInHelper,e.createBindingHelper,e.setModuleDefaultHelper],function(H){return H.name}))}e.getAllUnscopedEmitHelpers=p,e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:d(cD([`
|
|
const `," = name => super[name];"],[`
|
|
const `," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:d(cD([`
|
|
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 N(H,h){return e.isCallExpression(H)&&e.isIdentifier(H.expression)&&(e.getEmitFlags(H.expression)&4096)!==0&&H.expression.escapedText===h}e.isCallToHelper=N})(gr||(gr={}));var gr;(function(e){function n(Nr){return Nr.kind===8}e.isNumericLiteral=n;function f(Nr){return Nr.kind===9}e.isBigIntLiteral=f;function d(Nr){return Nr.kind===10}e.isStringLiteral=d;function a(Nr){return Nr.kind===11}e.isJsxText=a;function p(Nr){return Nr.kind===13}e.isRegularExpressionLiteral=p;function N(Nr){return Nr.kind===14}e.isNoSubstitutionTemplateLiteral=N;function H(Nr){return Nr.kind===15}e.isTemplateHead=H;function h(Nr){return Nr.kind===16}e.isTemplateMiddle=h;function v(Nr){return Nr.kind===17}e.isTemplateTail=v;function A(Nr){return Nr.kind===25}e.isDotDotDotToken=A;function q(Nr){return Nr.kind===27}e.isCommaToken=q;function ie(Nr){return Nr.kind===39}e.isPlusToken=ie;function b(Nr){return Nr.kind===40}e.isMinusToken=b;function P(Nr){return Nr.kind===41}e.isAsteriskToken=P;function S(Nr){return Nr.kind===53}e.isExclamationToken=S;function B(Nr){return Nr.kind===57}e.isQuestionToken=B;function J(Nr){return Nr.kind===58}e.isColonToken=J;function k(Nr){return Nr.kind===28}e.isQuestionDotToken=k;function M(Nr){return Nr.kind===38}e.isEqualsGreaterThanToken=M;function x(Nr){return Nr.kind===79}e.isIdentifier=x;function w(Nr){return Nr.kind===80}e.isPrivateIdentifier=w;function K(Nr){return Nr.kind===93}e.isExportModifier=K;function Z(Nr){return Nr.kind===131}e.isAsyncModifier=Z;function ne(Nr){return Nr.kind===128}e.isAssertsKeyword=ne;function R(Nr){return Nr.kind===132}e.isAwaitKeyword=R;function Y(Nr){return Nr.kind===144}e.isReadonlyKeyword=Y;function U(Nr){return Nr.kind===124}e.isStaticModifier=U;function $(Nr){return Nr.kind===126}e.isAbstractModifier=$;function T(Nr){return Nr.kind===106}e.isSuperKeyword=T;function I(Nr){return Nr.kind===100}e.isImportKeyword=I;function y(Nr){return Nr.kind===160}e.isQualifiedName=y;function D(Nr){return Nr.kind===161}e.isComputedPropertyName=D;function C(Nr){return Nr.kind===162}e.isTypeParameterDeclaration=C;function m(Nr){return Nr.kind===163}e.isParameter=m;function u(Nr){return Nr.kind===164}e.isDecorator=u;function g(Nr){return Nr.kind===165}e.isPropertySignature=g;function F(Nr){return Nr.kind===166}e.isPropertyDeclaration=F;function te(Nr){return Nr.kind===167}e.isMethodSignature=te;function ue(Nr){return Nr.kind===168}e.isMethodDeclaration=ue;function X(Nr){return Nr.kind===169}e.isClassStaticBlockDeclaration=X;function j(Nr){return Nr.kind===170}e.isConstructorDeclaration=j;function Se(Nr){return Nr.kind===171}e.isGetAccessorDeclaration=Se;function Ce(Nr){return Nr.kind===172}e.isSetAccessorDeclaration=Ce;function O(Nr){return Nr.kind===173}e.isCallSignatureDeclaration=O;function Q(Nr){return Nr.kind===174}e.isConstructSignatureDeclaration=Q;function V(Nr){return Nr.kind===175}e.isIndexSignatureDeclaration=V;function z(Nr){return Nr.kind===176}e.isTypePredicateNode=z;function Te(Nr){return Nr.kind===177}e.isTypeReferenceNode=Te;function ge(Nr){return Nr.kind===178}e.isFunctionTypeNode=ge;function ke(Nr){return Nr.kind===179}e.isConstructorTypeNode=ke;function Me(Nr){return Nr.kind===180}e.isTypeQueryNode=Me;function Ie(Nr){return Nr.kind===181}e.isTypeLiteralNode=Ie;function Ge(Nr){return Nr.kind===182}e.isArrayTypeNode=Ge;function he(Nr){return Nr.kind===183}e.isTupleTypeNode=he;function ve(Nr){return Nr.kind===196}e.isNamedTupleMember=ve;function Ve(Nr){return Nr.kind===184}e.isOptionalTypeNode=Ve;function _e(Nr){return Nr.kind===185}e.isRestTypeNode=_e;function Le(Nr){return Nr.kind===186}e.isUnionTypeNode=Le;function qe(Nr){return Nr.kind===187}e.isIntersectionTypeNode=qe;function Xe(Nr){return Nr.kind===188}e.isConditionalTypeNode=Xe;function De(Nr){return Nr.kind===189}e.isInferTypeNode=De;function Ae(Nr){return Nr.kind===190}e.isParenthesizedTypeNode=Ae;function Ye(Nr){return Nr.kind===191}e.isThisTypeNode=Ye;function Lr(Nr){return Nr.kind===192}e.isTypeOperatorNode=Lr;function Er(Nr){return Nr.kind===193}e.isIndexedAccessTypeNode=Er;function lr(Nr){return Nr.kind===194}e.isMappedTypeNode=lr;function Cr(Nr){return Nr.kind===195}e.isLiteralTypeNode=Cr;function Or(Nr){return Nr.kind===199}e.isImportTypeNode=Or;function Ke(Nr){return Nr.kind===198}e.isTemplateLiteralTypeSpan=Ke;function Pe(Nr){return Nr.kind===197}e.isTemplateLiteralTypeNode=Pe;function Hr(Nr){return Nr.kind===200}e.isObjectBindingPattern=Hr;function ur(Nr){return Nr.kind===201}e.isArrayBindingPattern=ur;function vr(Nr){return Nr.kind===202}e.isBindingElement=vr;function de(Nr){return Nr.kind===203}e.isArrayLiteralExpression=de;function Fe(Nr){return Nr.kind===204}e.isObjectLiteralExpression=Fe;function $e(Nr){return Nr.kind===205}e.isPropertyAccessExpression=$e;function Dr(Nr){return Nr.kind===206}e.isElementAccessExpression=Dr;function Fr(Nr){return Nr.kind===207}e.isCallExpression=Fr;function He(Nr){return Nr.kind===208}e.isNewExpression=He;function pr(Nr){return Nr.kind===209}e.isTaggedTemplateExpression=pr;function Jr(Nr){return Nr.kind===210}e.isTypeAssertionExpression=Jr;function ze(Nr){return Nr.kind===211}e.isParenthesizedExpression=ze;function Ar(Nr){return Nr.kind===212}e.isFunctionExpression=Ar;function Yr(Nr){return Nr.kind===213}e.isArrowFunction=Yr;function lt(Nr){return Nr.kind===214}e.isDeleteExpression=lt;function tt(Nr){return Nr.kind===215}e.isTypeOfExpression=tt;function Rt(Nr){return Nr.kind===216}e.isVoidExpression=Rt;function cn(Nr){return Nr.kind===217}e.isAwaitExpression=cn;function bn(Nr){return Nr.kind===218}e.isPrefixUnaryExpression=bn;function In(Nr){return Nr.kind===219}e.isPostfixUnaryExpression=In;function zn(Nr){return Nr.kind===220}e.isBinaryExpression=zn;function ir(Nr){return Nr.kind===221}e.isConditionalExpression=ir;function Rr(Nr){return Nr.kind===222}e.isTemplateExpression=Rr;function sr(Nr){return Nr.kind===223}e.isYieldExpression=sr;function ye(Nr){return Nr.kind===224}e.isSpreadElement=ye;function or(Nr){return Nr.kind===225}e.isClassExpression=or;function fe(Nr){return Nr.kind===226}e.isOmittedExpression=fe;function je(Nr){return Nr.kind===227}e.isExpressionWithTypeArguments=je;function Ee(Nr){return Nr.kind===228}e.isAsExpression=Ee;function We(Nr){return Nr.kind===229}e.isNonNullExpression=We;function ee(Nr){return Nr.kind===230}e.isMetaProperty=ee;function Ne(Nr){return Nr.kind===231}e.isSyntheticExpression=Ne;function me(Nr){return Nr.kind===348}e.isPartiallyEmittedExpression=me;function Ze(Nr){return Nr.kind===349}e.isCommaListExpression=Ze;function xr(Nr){return Nr.kind===232}e.isTemplateSpan=xr;function fr(Nr){return Nr.kind===233}e.isSemicolonClassElement=fr;function dr(Nr){return Nr.kind===234}e.isBlock=dr;function et(Nr){return Nr.kind===236}e.isVariableStatement=et;function yt(Nr){return Nr.kind===235}e.isEmptyStatement=yt;function Wr(Nr){return Nr.kind===237}e.isExpressionStatement=Wr;function tr(Nr){return Nr.kind===238}e.isIfStatement=tr;function Ir(Nr){return Nr.kind===239}e.isDoStatement=Ir;function kr(Nr){return Nr.kind===240}e.isWhileStatement=kr;function zr(Nr){return Nr.kind===241}e.isForStatement=zr;function gt(Nr){return Nr.kind===242}e.isForInStatement=gt;function vt(Nr){return Nr.kind===243}e.isForOfStatement=vt;function ut(Nr){return Nr.kind===244}e.isContinueStatement=ut;function ht(Nr){return Nr.kind===245}e.isBreakStatement=ht;function xt(Nr){return Nr.kind===246}e.isReturnStatement=xt;function wt(Nr){return Nr.kind===247}e.isWithStatement=wt;function Qt(Nr){return Nr.kind===248}e.isSwitchStatement=Qt;function mt(Nr){return Nr.kind===249}e.isLabeledStatement=mt;function rn(Nr){return Nr.kind===250}e.isThrowStatement=rn;function sa(Nr){return Nr.kind===251}e.isTryStatement=sa;function ba(Nr){return Nr.kind===252}e.isDebuggerStatement=ba;function Jn(Nr){return Nr.kind===253}e.isVariableDeclaration=Jn;function na(Nr){return Nr.kind===254}e.isVariableDeclarationList=na;function Wn(Nr){return Nr.kind===255}e.isFunctionDeclaration=Wn;function en(Nr){return Nr.kind===256}e.isClassDeclaration=en;function St(Nr){return Nr.kind===257}e.isInterfaceDeclaration=St;function Ut(Nr){return Nr.kind===258}e.isTypeAliasDeclaration=Ut;function qt(Nr){return Nr.kind===259}e.isEnumDeclaration=qt;function Pn(Nr){return Nr.kind===260}e.isModuleDeclaration=Pn;function dn(Nr){return Nr.kind===261}e.isModuleBlock=dn;function oa(Nr){return Nr.kind===262}e.isCaseBlock=oa;function pt(Nr){return Nr.kind===263}e.isNamespaceExportDeclaration=pt;function _t(Nr){return Nr.kind===264}e.isImportEqualsDeclaration=_t;function Pt(Nr){return Nr.kind===265}e.isImportDeclaration=Pt;function It(Nr){return Nr.kind===266}e.isImportClause=It;function rt(Nr){return Nr.kind===292}e.isAssertClause=rt;function Cn(Nr){return Nr.kind===293}e.isAssertEntry=Cn;function Qn(Nr){return Nr.kind===267}e.isNamespaceImport=Qn;function Ra(Nr){return Nr.kind===273}e.isNamespaceExport=Ra;function Ci(Nr){return Nr.kind===268}e.isNamedImports=Ci;function _i(Nr){return Nr.kind===269}e.isImportSpecifier=_i;function va(Nr){return Nr.kind===270}e.isExportAssignment=va;function yi(Nr){return Nr.kind===271}e.isExportDeclaration=yi;function ro(Nr){return Nr.kind===272}e.isNamedExports=ro;function Ka(Nr){return Nr.kind===274}e.isExportSpecifier=Ka;function Pi(Nr){return Nr.kind===275}e.isMissingDeclaration=Pi;function io(Nr){return Nr.kind===347}e.isNotEmittedStatement=io;function ji(Nr){return Nr.kind===352}e.isSyntheticReference=ji;function Hi(Nr){return Nr.kind===350}e.isMergeDeclarationMarker=Hi;function to(Nr){return Nr.kind===351}e.isEndOfDeclarationMarker=to;function No(Nr){return Nr.kind===276}e.isExternalModuleReference=No;function lo(Nr){return Nr.kind===277}e.isJsxElement=lo;function Lo(Nr){return Nr.kind===278}e.isJsxSelfClosingElement=Lo;function Ha(Nr){return Nr.kind===279}e.isJsxOpeningElement=Ha;function Yo(Nr){return Nr.kind===280}e.isJsxClosingElement=Yo;function co(Nr){return Nr.kind===281}e.isJsxFragment=co;function za(Nr){return Nr.kind===282}e.isJsxOpeningFragment=za;function hi(Nr){return Nr.kind===283}e.isJsxClosingFragment=hi;function Zi(Nr){return Nr.kind===284}e.isJsxAttribute=Zi;function Po(Nr){return Nr.kind===285}e.isJsxAttributes=Po;function Mo(Nr){return Nr.kind===286}e.isJsxSpreadAttribute=Mo;function Fo(Nr){return Nr.kind===287}e.isJsxExpression=Fo;function zo(Nr){return Nr.kind===288}e.isCaseClause=zo;function Es(Nr){return Nr.kind===289}e.isDefaultClause=Es;function Cs(Nr){return Nr.kind===290}e.isHeritageClause=Cs;function yr(Nr){return Nr.kind===291}e.isCatchClause=yr;function dt(Nr){return Nr.kind===294}e.isPropertyAssignment=dt;function tn(Nr){return Nr.kind===295}e.isShorthandPropertyAssignment=tn;function Un(Nr){return Nr.kind===296}e.isSpreadAssignment=Un;function Oe(Nr){return Nr.kind===297}e.isEnumMember=Oe;function oe(Nr){return Nr.kind===299}e.isUnparsedPrepend=oe;function mr(Nr){return Nr.kind===303}e.isSourceFile=mr;function se(Nr){return Nr.kind===304}e.isBundle=se;function Be(Nr){return Nr.kind===305}e.isUnparsedSource=Be;function er(Nr){return Nr.kind===307}e.isJSDocTypeExpression=er;function hr(Nr){return Nr.kind===308}e.isJSDocNameReference=hr;function qr(Nr){return Nr.kind===309}e.isJSDocMemberName=qr;function Dt(Nr){return Nr.kind===322}e.isJSDocLink=Dt;function Jt(Nr){return Nr.kind===323}e.isJSDocLinkCode=Jt;function Sn(Nr){return Nr.kind===324}e.isJSDocLinkPlain=Sn;function ta(Nr){return Nr.kind===310}e.isJSDocAllType=ta;function xa(Nr){return Nr.kind===311}e.isJSDocUnknownType=xa;function Di(Nr){return Nr.kind===312}e.isJSDocNullableType=Di;function $a(Nr){return Nr.kind===313}e.isJSDocNonNullableType=$a;function Ji(Nr){return Nr.kind===314}e.isJSDocOptionalType=Ji;function So(Nr){return Nr.kind===315}e.isJSDocFunctionType=So;function cs(Nr){return Nr.kind===316}e.isJSDocVariadicType=cs;function bt(Nr){return Nr.kind===317}e.isJSDocNamepathType=bt;function Mn(Nr){return Nr.kind===318}e.isJSDoc=Mn;function da(Nr){return Nr.kind===320}e.isJSDocTypeLiteral=da;function ei(Nr){return Nr.kind===321}e.isJSDocSignature=ei;function bi(Nr){return Nr.kind===326}e.isJSDocAugmentsTag=bi;function xi(Nr){return Nr.kind===328}e.isJSDocAuthorTag=xi;function ka(Nr){return Nr.kind===330}e.isJSDocClassTag=ka;function mi(Nr){return Nr.kind===336}e.isJSDocCallbackTag=mi;function Xi(Nr){return Nr.kind===331}e.isJSDocPublicTag=Xi;function Gi(Nr){return Nr.kind===332}e.isJSDocPrivateTag=Gi;function Ro(Nr){return Nr.kind===333}e.isJSDocProtectedTag=Ro;function ko(Nr){return Nr.kind===334}e.isJSDocReadonlyTag=ko;function es(Nr){return Nr.kind===335}e.isJSDocOverrideTag=es;function as(Nr){return Nr.kind===329}e.isJSDocDeprecatedTag=as;function pe(Nr){return Nr.kind===344}e.isJSDocSeeTag=pe;function wr(Nr){return Nr.kind===337}e.isJSDocEnumTag=wr;function ft(Nr){return Nr.kind===338}e.isJSDocParameterTag=ft;function Zt(Nr){return Nr.kind===339}e.isJSDocReturnTag=Zt;function Re(Nr){return Nr.kind===340}e.isJSDocThisTag=Re;function Qr(Nr){return Nr.kind===341}e.isJSDocTypeTag=Qr;function vn(Nr){return Nr.kind===342}e.isJSDocTemplateTag=vn;function Xn(Nr){return Nr.kind===343}e.isJSDocTypedefTag=Xn;function gi(Nr){return Nr.kind===325}e.isJSDocUnknownTag=gi;function Ia(Nr){return Nr.kind===345}e.isJSDocPropertyTag=Ia;function oo(Nr){return Nr.kind===327}e.isJSDocImplementsTag=oo;function Wo(Nr){return Nr.kind===346}e.isSyntaxList=Wo})(gr||(gr={}));var gr;(function(e){function n(ur){return ur.createExportDeclaration(void 0,void 0,!1,ur.createNamedExports([]),void 0)}e.createEmptyExports=n;function f(ur,vr,de,Fe){if(e.isComputedPropertyName(de))return e.setTextRange(ur.createElementAccessExpression(vr,de.expression),Fe);var $e=e.setTextRange(e.isMemberName(de)?ur.createPropertyAccessExpression(vr,de):ur.createElementAccessExpression(vr,de),de);return e.getOrCreateEmitNode($e).flags|=64,$e}e.createMemberAccessForPropertyName=f;function d(ur,vr){var de=e.parseNodeFactory.createIdentifier(ur||"React");return e.setParent(de,e.getParseTreeNode(vr)),de}function a(ur,vr,de){if(e.isQualifiedName(vr)){var Fe=a(ur,vr.left,de),$e=ur.createIdentifier(e.idText(vr.right));return $e.escapedText=vr.right.escapedText,ur.createPropertyAccessExpression(Fe,$e)}else return d(e.idText(vr),de)}function p(ur,vr,de,Fe){return vr?a(ur,vr,Fe):ur.createPropertyAccessExpression(d(de,Fe),"createElement")}e.createJsxFactoryExpression=p;function N(ur,vr,de,Fe){return vr?a(ur,vr,Fe):ur.createPropertyAccessExpression(d(de,Fe),"Fragment")}function H(ur,vr,de,Fe,$e,Dr){var Fr=[de];if(Fe&&Fr.push(Fe),$e&&$e.length>0)if(Fe||Fr.push(ur.createNull()),$e.length>1)for(var He=0,pr=$e;He<pr.length;He++){var Jr=pr[He];y(Jr),Fr.push(Jr)}else Fr.push($e[0]);return e.setTextRange(ur.createCallExpression(vr,void 0,Fr),Dr)}e.createExpressionForJsxElement=H;function h(ur,vr,de,Fe,$e,Dr,Fr){var He=N(ur,de,Fe,Dr),pr=[He,ur.createNull()];if($e&&$e.length>0)if($e.length>1)for(var Jr=0,ze=$e;Jr<ze.length;Jr++){var Ar=ze[Jr];y(Ar),pr.push(Ar)}else pr.push($e[0]);return e.setTextRange(ur.createCallExpression(p(ur,vr,Fe,Dr),void 0,pr),Fr)}e.createExpressionForJsxFragment=h;function v(ur,vr,de){if(e.isVariableDeclarationList(vr)){var Fe=e.first(vr.declarations),$e=ur.updateVariableDeclaration(Fe,Fe.name,void 0,void 0,de);return e.setTextRange(ur.createVariableStatement(void 0,ur.updateVariableDeclarationList(vr,[$e])),vr)}else{var Dr=e.setTextRange(ur.createAssignment(vr,de),vr);return e.setTextRange(ur.createExpressionStatement(Dr),vr)}}e.createForOfBindingStatement=v;function A(ur,vr,de){return e.isBlock(vr)?ur.updateBlock(vr,e.setTextRange(ur.createNodeArray(Gt([de],vr.statements,!0)),vr.statements)):ur.createBlock(ur.createNodeArray([vr,de]),!0)}e.insertLeadingStatement=A;function q(ur,vr){if(e.isQualifiedName(vr)){var de=q(ur,vr.left),Fe=e.setParent(e.setTextRange(ur.cloneNode(vr.right),vr.right),vr.right.parent);return e.setTextRange(ur.createPropertyAccessExpression(de,Fe),vr)}else return e.setParent(e.setTextRange(ur.cloneNode(vr),vr),vr.parent)}e.createExpressionFromEntityName=q;function ie(ur,vr){return e.isIdentifier(vr)?ur.createStringLiteralFromNode(vr):e.isComputedPropertyName(vr)?e.setParent(e.setTextRange(ur.cloneNode(vr.expression),vr.expression),vr.expression.parent):e.setParent(e.setTextRange(ur.cloneNode(vr),vr),vr.parent)}e.createExpressionForPropertyName=ie;function b(ur,vr,de,Fe,$e){var Dr=e.getAllAccessorDeclarations(vr,de),Fr=Dr.firstAccessor,He=Dr.getAccessor,pr=Dr.setAccessor;if(de===Fr)return e.setTextRange(ur.createObjectDefinePropertyCall(Fe,ie(ur,de.name),ur.createPropertyDescriptor({enumerable:ur.createFalse(),configurable:!0,get:He&&e.setTextRange(e.setOriginalNode(ur.createFunctionExpression(He.modifiers,void 0,void 0,void 0,He.parameters,void 0,He.body),He),He),set:pr&&e.setTextRange(e.setOriginalNode(ur.createFunctionExpression(pr.modifiers,void 0,void 0,void 0,pr.parameters,void 0,pr.body),pr),pr)},!$e)),Fr)}function P(ur,vr,de){return e.setOriginalNode(e.setTextRange(ur.createAssignment(f(ur,de,vr.name,vr.name),vr.initializer),vr),vr)}function S(ur,vr,de){return e.setOriginalNode(e.setTextRange(ur.createAssignment(f(ur,de,vr.name,vr.name),ur.cloneNode(vr.name)),vr),vr)}function B(ur,vr,de){return e.setOriginalNode(e.setTextRange(ur.createAssignment(f(ur,de,vr.name,vr.name),e.setOriginalNode(e.setTextRange(ur.createFunctionExpression(vr.modifiers,vr.asteriskToken,void 0,void 0,vr.parameters,void 0,vr.body),vr),vr)),vr),vr)}function J(ur,vr,de,Fe){switch(de.name&&e.isPrivateIdentifier(de.name)&&e.Debug.failBadSyntaxKind(de.name,"Private identifiers are not allowed in object literals."),de.kind){case 171:case 172:return b(ur,vr.properties,de,Fe,!!vr.multiLine);case 294:return P(ur,de,Fe);case 295:return S(ur,de,Fe);case 168:return B(ur,de,Fe)}}e.createExpressionForObjectLiteralElementLike=J;function k(ur,vr,de,Fe,$e){var Dr=vr.operator;e.Debug.assert(Dr===45||Dr===46,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");var Fr=ur.createTempVariable(Fe);de=ur.createAssignment(Fr,de),e.setTextRange(de,vr.operand);var He=e.isPrefixUnaryExpression(vr)?ur.createPrefixUnaryExpression(Dr,Fr):ur.createPostfixUnaryExpression(Fr,Dr);return e.setTextRange(He,vr),$e&&(He=ur.createAssignment($e,He),e.setTextRange(He,vr)),de=ur.createComma(de,He),e.setTextRange(de,vr),e.isPostfixUnaryExpression(vr)&&(de=ur.createComma(de,Fr),e.setTextRange(de,vr)),de}e.expandPreOrPostfixIncrementOrDecrementExpression=k;function M(ur){return(e.getEmitFlags(ur)&32768)!==0}e.isInternalName=M;function x(ur){return(e.getEmitFlags(ur)&16384)!==0}e.isLocalName=x;function w(ur){return(e.getEmitFlags(ur)&8192)!==0}e.isExportName=w;function K(ur){return e.isStringLiteral(ur.expression)&&ur.expression.text==="use strict"}function Z(ur){for(var vr=0,de=ur;vr<de.length;vr++){var Fe=de[vr];if(e.isPrologueDirective(Fe)){if(K(Fe))return Fe}else break}}e.findUseStrictPrologue=Z;function ne(ur){var vr=e.firstOrUndefined(ur);return vr!==void 0&&e.isPrologueDirective(vr)&&K(vr)}e.startsWithUseStrict=ne;function R(ur){return ur.kind===220&&ur.operatorToken.kind===27||ur.kind===349}e.isCommaSequence=R;function Y(ur){return e.isParenthesizedExpression(ur)&&e.isInJSFile(ur)&&!!e.getJSDocTypeTag(ur)}e.isJSDocTypeAssertion=Y;function U(ur){var vr=e.getJSDocType(ur);return e.Debug.assertIsDefined(vr),vr}e.getJSDocTypeAssertionType=U;function $(ur,vr){switch(vr===void 0&&(vr=15),ur.kind){case 211:return vr&16&&Y(ur)?!1:(vr&1)!==0;case 210:case 228:return(vr&2)!==0;case 229:return(vr&4)!==0;case 348:return(vr&8)!==0}return!1}e.isOuterExpression=$;function T(ur,vr){for(vr===void 0&&(vr=15);$(ur,vr);)ur=ur.expression;return ur}e.skipOuterExpressions=T;function I(ur){return T(ur,6)}e.skipAssertions=I;function y(ur){return e.setStartsOnNewLine(ur,!0)}e.startOnNewLine=y;function D(ur){var vr=e.getOriginalNode(ur,e.isSourceFile),de=vr&&vr.emitNode;return de&&de.externalHelpersModuleName}e.getExternalHelpersModuleName=D;function C(ur){var vr=e.getOriginalNode(ur,e.isSourceFile),de=vr&&vr.emitNode;return!!de&&(!!de.externalHelpersModuleName||!!de.externalHelpers)}e.hasRecordedExternalHelpers=C;function m(ur,vr,de,Fe,$e,Dr,Fr){if(Fe.importHelpers&&e.isEffectiveExternalModule(de,Fe)){var He=void 0,pr=e.getEmitModuleKind(Fe);if(pr>=e.ModuleKind.ES2015&&pr<=e.ModuleKind.ESNext||de.impliedNodeFormat===e.ModuleKind.ESNext){var Jr=e.getEmitHelpers(de);if(Jr){for(var ze=[],Ar=0,Yr=Jr;Ar<Yr.length;Ar++){var lt=Yr[Ar];if(!lt.scoped){var tt=lt.importName;tt&&e.pushIfUnique(ze,tt)}}if(e.some(ze)){ze.sort(e.compareStringsCaseSensitive),He=ur.createNamedImports(e.map(ze,function(zn){return e.isFileLevelUniqueName(de,zn)?ur.createImportSpecifier(!1,void 0,ur.createIdentifier(zn)):ur.createImportSpecifier(!1,ur.createIdentifier(zn),vr.getUnscopedHelperName(zn))}));var Rt=e.getOriginalNode(de,e.isSourceFile),cn=e.getOrCreateEmitNode(Rt);cn.externalHelpers=!0}}}else{var bn=u(ur,de,Fe,$e,Dr||Fr);bn&&(He=ur.createNamespaceImport(bn))}if(He){var In=ur.createImportDeclaration(void 0,void 0,ur.createImportClause(!1,void 0,He),ur.createStringLiteral(e.externalHelpersModuleNameText),void 0);return e.addEmitFlags(In,67108864),In}}}e.createExternalHelpersImportDeclarationIfNeeded=m;function u(ur,vr,de,Fe,$e){if(de.importHelpers&&e.isEffectiveExternalModule(vr,de)){var Dr=D(vr);if(Dr)return Dr;var Fr=e.getEmitModuleKind(de),He=(Fe||e.getESModuleInterop(de)&&$e)&&Fr!==e.ModuleKind.System&&(Fr<e.ModuleKind.ES2015||vr.impliedNodeFormat===e.ModuleKind.CommonJS);if(!He){var pr=e.getEmitHelpers(vr);if(pr)for(var Jr=0,ze=pr;Jr<ze.length;Jr++){var Ar=ze[Jr];if(!Ar.scoped){He=!0;break}}}if(He){var Yr=e.getOriginalNode(vr,e.isSourceFile),lt=e.getOrCreateEmitNode(Yr);return lt.externalHelpersModuleName||(lt.externalHelpersModuleName=ur.createUniqueName(e.externalHelpersModuleNameText))}}}e.getOrCreateExternalHelpersModuleNameIfNeeded=u;function g(ur,vr,de){var Fe=e.getNamespaceDeclarationNode(vr);if(Fe&&!e.isDefaultImport(vr)&&!e.isExportNamespaceAsDefaultDeclaration(vr)){var $e=Fe.name;return e.isGeneratedIdentifier($e)?$e:ur.createIdentifier(e.getSourceTextOfNodeFromSourceFile(de,$e)||e.idText($e))}if(vr.kind===265&&vr.importClause||vr.kind===271&&vr.moduleSpecifier)return ur.getGeneratedNameForNode(vr)}e.getLocalNameForExternalImport=g;function F(ur,vr,de,Fe,$e,Dr){var Fr=e.getExternalModuleName(vr);if(Fr&&e.isStringLiteral(Fr))return X(vr,Fe,ur,$e,Dr)||te(ur,Fr,de)||ur.cloneNode(Fr)}e.getExternalModuleNameLiteral=F;function te(ur,vr,de){var Fe=de.renamedDependencies&&de.renamedDependencies.get(vr.text);return Fe?ur.createStringLiteral(Fe):void 0}function ue(ur,vr,de,Fe){if(!!vr){if(vr.moduleName)return ur.createStringLiteral(vr.moduleName);if(!vr.isDeclarationFile&&e.outFile(Fe))return ur.createStringLiteral(e.getExternalModuleNameFromPath(de,vr.fileName))}}e.tryGetModuleNameFromFile=ue;function X(ur,vr,de,Fe,$e){return ue(de,Fe.getExternalModuleFileFromDeclaration(ur),vr,$e)}function j(ur){if(e.isDeclarationBindingElement(ur))return ur.initializer;if(e.isPropertyAssignment(ur)){var vr=ur.initializer;return e.isAssignmentExpression(vr,!0)?vr.right:void 0}if(e.isShorthandPropertyAssignment(ur))return ur.objectAssignmentInitializer;if(e.isAssignmentExpression(ur,!0))return ur.right;if(e.isSpreadElement(ur))return j(ur.expression)}e.getInitializerOfBindingOrAssignmentElement=j;function Se(ur){if(e.isDeclarationBindingElement(ur))return ur.name;if(e.isObjectLiteralElementLike(ur)){switch(ur.kind){case 294:return Se(ur.initializer);case 295:return ur.name;case 296:return Se(ur.expression)}return}return e.isAssignmentExpression(ur,!0)?Se(ur.left):e.isSpreadElement(ur)?Se(ur.expression):ur}e.getTargetOfBindingOrAssignmentElement=Se;function Ce(ur){switch(ur.kind){case 163:case 202:return ur.dotDotDotToken;case 224:case 296:return ur}}e.getRestIndicatorOfBindingOrAssignmentElement=Ce;function O(ur){var vr=Q(ur);return e.Debug.assert(!!vr||e.isSpreadAssignment(ur),"Invalid property name for binding element."),vr}e.getPropertyNameOfBindingOrAssignmentElement=O;function Q(ur){switch(ur.kind){case 202:if(ur.propertyName){var vr=ur.propertyName;return e.isPrivateIdentifier(vr)?e.Debug.failBadSyntaxKind(vr):e.isComputedPropertyName(vr)&&V(vr.expression)?vr.expression:vr}break;case 294:if(ur.name){var vr=ur.name;return e.isPrivateIdentifier(vr)?e.Debug.failBadSyntaxKind(vr):e.isComputedPropertyName(vr)&&V(vr.expression)?vr.expression:vr}break;case 296:return ur.name&&e.isPrivateIdentifier(ur.name)?e.Debug.failBadSyntaxKind(ur.name):ur.name}var de=Se(ur);if(de&&e.isPropertyName(de))return de}e.tryGetPropertyNameOfBindingOrAssignmentElement=Q;function V(ur){var vr=ur.kind;return vr===10||vr===8}function z(ur){switch(ur.kind){case 200:case 201:case 203:return ur.elements;case 204:return ur.properties}}e.getElementsOfBindingOrAssignmentPattern=z;function Te(ur){if(ur)for(var vr=ur;;){if(e.isIdentifier(vr)||!vr.body)return e.isIdentifier(vr)?vr:vr.name;vr=vr.body}}e.getJSDocTypeAliasName=Te;function ge(ur){var vr=ur.kind;return vr===163||vr===165||vr===166||vr===167||vr===168||vr===170||vr===171||vr===172||vr===175||vr===212||vr===213||vr===225||vr===236||vr===255||vr===256||vr===257||vr===258||vr===259||vr===260||vr===264||vr===265||vr===270||vr===271}e.canHaveModifiers=ge,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 ke(ur){var vr=ur.kind;return vr===104||vr===110||vr===95||e.isLiteralExpression(ur)||e.isPrefixUnaryExpression(ur)}e.isLiteralTypeLikeExpression=ke;function Me(ur){return ur===42}function Ie(ur){return ur===41||ur===43||ur===44}function Ge(ur){return Me(ur)||Ie(ur)}function he(ur){return ur===39||ur===40}function ve(ur){return he(ur)||Ge(ur)}function Ve(ur){return ur===47||ur===48||ur===49}function _e(ur){return Ve(ur)||ve(ur)}function Le(ur){return ur===29||ur===32||ur===31||ur===33||ur===102||ur===101}function qe(ur){return Le(ur)||_e(ur)}function Xe(ur){return ur===34||ur===36||ur===35||ur===37}function De(ur){return Xe(ur)||qe(ur)}function Ae(ur){return ur===50||ur===51||ur===52}function Ye(ur){return Ae(ur)||De(ur)}function Lr(ur){return ur===55||ur===56}function Er(ur){return Lr(ur)||Ye(ur)}function lr(ur){return ur===60||Er(ur)||e.isAssignmentOperator(ur)}function Cr(ur){return lr(ur)||ur===27}function Or(ur){return Cr(ur.kind)}e.isBinaryOperatorToken=Or;var Ke;(function(ur){function vr(ze,Ar,Yr,lt,tt,Rt,cn){var bn=Ar>0?tt[Ar-1]:void 0;return e.Debug.assertEqual(Yr[Ar],vr),tt[Ar]=ze.onEnter(lt[Ar],bn,cn),Yr[Ar]=He(ze,vr),Ar}ur.enter=vr;function de(ze,Ar,Yr,lt,tt,Rt,cn){e.Debug.assertEqual(Yr[Ar],de),e.Debug.assertIsDefined(ze.onLeft),Yr[Ar]=He(ze,de);var bn=ze.onLeft(lt[Ar].left,tt[Ar],lt[Ar]);return bn?(Jr(Ar,lt,bn),pr(Ar,Yr,lt,tt,bn)):Ar}ur.left=de;function Fe(ze,Ar,Yr,lt,tt,Rt,cn){return e.Debug.assertEqual(Yr[Ar],Fe),e.Debug.assertIsDefined(ze.onOperator),Yr[Ar]=He(ze,Fe),ze.onOperator(lt[Ar].operatorToken,tt[Ar],lt[Ar]),Ar}ur.operator=Fe;function $e(ze,Ar,Yr,lt,tt,Rt,cn){e.Debug.assertEqual(Yr[Ar],$e),e.Debug.assertIsDefined(ze.onRight),Yr[Ar]=He(ze,$e);var bn=ze.onRight(lt[Ar].right,tt[Ar],lt[Ar]);return bn?(Jr(Ar,lt,bn),pr(Ar,Yr,lt,tt,bn)):Ar}ur.right=$e;function Dr(ze,Ar,Yr,lt,tt,Rt,cn){e.Debug.assertEqual(Yr[Ar],Dr),Yr[Ar]=He(ze,Dr);var bn=ze.onExit(lt[Ar],tt[Ar]);if(Ar>0){if(Ar--,ze.foldState){var In=Yr[Ar]===Dr?"right":"left";tt[Ar]=ze.foldState(tt[Ar],bn,In)}}else Rt.value=bn;return Ar}ur.exit=Dr;function Fr(ze,Ar,Yr,lt,tt,Rt,cn){return e.Debug.assertEqual(Yr[Ar],Fr),Ar}ur.done=Fr;function He(ze,Ar){switch(Ar){case vr:if(ze.onLeft)return de;case de:if(ze.onOperator)return Fe;case Fe:if(ze.onRight)return $e;case $e:return Dr;case Dr:return Fr;case Fr:return Fr;default:e.Debug.fail("Invalid state")}}ur.nextState=He;function pr(ze,Ar,Yr,lt,tt){return ze++,Ar[ze]=vr,Yr[ze]=tt,lt[ze]=void 0,ze}function Jr(ze,Ar,Yr){if(e.Debug.shouldAssert(2))for(;ze>=0;)e.Debug.assert(Ar[ze]!==Yr,"Circular traversal detected."),ze--}})(Ke||(Ke={}));var Pe=function(){function ur(vr,de,Fe,$e,Dr,Fr){this.onEnter=vr,this.onLeft=de,this.onOperator=Fe,this.onRight=$e,this.onExit=Dr,this.foldState=Fr}return ur}();function Hr(ur,vr,de,Fe,$e,Dr){var Fr=new Pe(ur,vr,de,Fe,$e,Dr);return He;function He(pr,Jr){for(var ze={value:void 0},Ar=[Ke.enter],Yr=[pr],lt=[void 0],tt=0;Ar[tt]!==Ke.done;)tt=Ar[tt](Fr,tt,Ar,Yr,lt,ze,Jr);return e.Debug.assertEqual(tt,0),ze.value}}e.createBinaryExpressionTrampoline=Hr})(gr||(gr={}));var gr;(function(e){function n(f,d){return d?e.setTextRangePosEnd(f,d.pos,d.end):f}e.setTextRange=n})(gr||(gr={}));var gr;(function(e){var n;(function(m){m[m.None=0]="None",m[m.Yield=1]="Yield",m[m.Await=2]="Await",m[m.Type=4]="Type",m[m.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",m[m.JSDoc=32]="JSDoc"})(n||(n={}));var f;(function(m){m[m.TryParse=0]="TryParse",m[m.Lookahead=1]="Lookahead",m[m.Reparse=2]="Reparse"})(f||(f={}));var d,a,p,N,H;e.parseBaseNodeFactory={createBaseSourceFileNode:function(m){return new(H||(H=e.objectAllocator.getSourceFileConstructor()))(m,-1,-1)},createBaseIdentifierNode:function(m){return new(p||(p=e.objectAllocator.getIdentifierConstructor()))(m,-1,-1)},createBasePrivateIdentifierNode:function(m){return new(N||(N=e.objectAllocator.getPrivateIdentifierConstructor()))(m,-1,-1)},createBaseTokenNode:function(m){return new(a||(a=e.objectAllocator.getTokenConstructor()))(m,-1,-1)},createBaseNode:function(m){return new(d||(d=e.objectAllocator.getNodeConstructor()))(m,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory);function h(m,u){return u&&m(u)}function v(m,u,g){if(g){if(u)return u(g);for(var F=0,te=g;F<te.length;F++){var ue=te[F],X=m(ue);if(X)return X}}}function A(m,u){return m.charCodeAt(u+1)===42&&m.charCodeAt(u+2)===42&&m.charCodeAt(u+3)!==47}e.isJSDocLikeText=A;function q(m,u,g){if(!(!m||m.kind<=159))switch(m.kind){case 160:return h(u,m.left)||h(u,m.right);case 162:return h(u,m.name)||h(u,m.constraint)||h(u,m.default)||h(u,m.expression);case 295:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||h(u,m.questionToken)||h(u,m.exclamationToken)||h(u,m.equalsToken)||h(u,m.objectAssignmentInitializer);case 296:return h(u,m.expression);case 163:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.dotDotDotToken)||h(u,m.name)||h(u,m.questionToken)||h(u,m.type)||h(u,m.initializer);case 166:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||h(u,m.questionToken)||h(u,m.exclamationToken)||h(u,m.type)||h(u,m.initializer);case 165:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||h(u,m.questionToken)||h(u,m.type)||h(u,m.initializer);case 294:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||h(u,m.questionToken)||h(u,m.initializer);case 253:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||h(u,m.exclamationToken)||h(u,m.type)||h(u,m.initializer);case 202:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.dotDotDotToken)||h(u,m.propertyName)||h(u,m.name)||h(u,m.initializer);case 178:case 179:case 173:case 174:case 175:return v(u,g,m.decorators)||v(u,g,m.modifiers)||v(u,g,m.typeParameters)||v(u,g,m.parameters)||h(u,m.type);case 168:case 167:case 170:case 171:case 172:case 212:case 255:case 213:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.asteriskToken)||h(u,m.name)||h(u,m.questionToken)||h(u,m.exclamationToken)||v(u,g,m.typeParameters)||v(u,g,m.parameters)||h(u,m.type)||h(u,m.equalsGreaterThanToken)||h(u,m.body);case 169:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.body);case 177:return h(u,m.typeName)||v(u,g,m.typeArguments);case 176:return h(u,m.assertsModifier)||h(u,m.parameterName)||h(u,m.type);case 180:return h(u,m.exprName);case 181:return v(u,g,m.members);case 182:return h(u,m.elementType);case 183:return v(u,g,m.elements);case 186:case 187:return v(u,g,m.types);case 188:return h(u,m.checkType)||h(u,m.extendsType)||h(u,m.trueType)||h(u,m.falseType);case 189:return h(u,m.typeParameter);case 199:return h(u,m.argument)||h(u,m.qualifier)||v(u,g,m.typeArguments);case 190:case 192:return h(u,m.type);case 193:return h(u,m.objectType)||h(u,m.indexType);case 194:return h(u,m.readonlyToken)||h(u,m.typeParameter)||h(u,m.nameType)||h(u,m.questionToken)||h(u,m.type)||v(u,g,m.members);case 195:return h(u,m.literal);case 196:return h(u,m.dotDotDotToken)||h(u,m.name)||h(u,m.questionToken)||h(u,m.type);case 200:case 201:return v(u,g,m.elements);case 203:return v(u,g,m.elements);case 204:return v(u,g,m.properties);case 205:return h(u,m.expression)||h(u,m.questionDotToken)||h(u,m.name);case 206:return h(u,m.expression)||h(u,m.questionDotToken)||h(u,m.argumentExpression);case 207:case 208:return h(u,m.expression)||h(u,m.questionDotToken)||v(u,g,m.typeArguments)||v(u,g,m.arguments);case 209:return h(u,m.tag)||h(u,m.questionDotToken)||v(u,g,m.typeArguments)||h(u,m.template);case 210:return h(u,m.type)||h(u,m.expression);case 211:return h(u,m.expression);case 214:return h(u,m.expression);case 215:return h(u,m.expression);case 216:return h(u,m.expression);case 218:return h(u,m.operand);case 223:return h(u,m.asteriskToken)||h(u,m.expression);case 217:return h(u,m.expression);case 219:return h(u,m.operand);case 220:return h(u,m.left)||h(u,m.operatorToken)||h(u,m.right);case 228:return h(u,m.expression)||h(u,m.type);case 229:return h(u,m.expression);case 230:return h(u,m.name);case 221:return h(u,m.condition)||h(u,m.questionToken)||h(u,m.whenTrue)||h(u,m.colonToken)||h(u,m.whenFalse);case 224:return h(u,m.expression);case 234:case 261:return v(u,g,m.statements);case 303:return v(u,g,m.statements)||h(u,m.endOfFileToken);case 236:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.declarationList);case 254:return v(u,g,m.declarations);case 237:return h(u,m.expression);case 238:return h(u,m.expression)||h(u,m.thenStatement)||h(u,m.elseStatement);case 239:return h(u,m.statement)||h(u,m.expression);case 240:return h(u,m.expression)||h(u,m.statement);case 241:return h(u,m.initializer)||h(u,m.condition)||h(u,m.incrementor)||h(u,m.statement);case 242:return h(u,m.initializer)||h(u,m.expression)||h(u,m.statement);case 243:return h(u,m.awaitModifier)||h(u,m.initializer)||h(u,m.expression)||h(u,m.statement);case 244:case 245:return h(u,m.label);case 246:return h(u,m.expression);case 247:return h(u,m.expression)||h(u,m.statement);case 248:return h(u,m.expression)||h(u,m.caseBlock);case 262:return v(u,g,m.clauses);case 288:return h(u,m.expression)||v(u,g,m.statements);case 289:return v(u,g,m.statements);case 249:return h(u,m.label)||h(u,m.statement);case 250:return h(u,m.expression);case 251:return h(u,m.tryBlock)||h(u,m.catchClause)||h(u,m.finallyBlock);case 291:return h(u,m.variableDeclaration)||h(u,m.block);case 164:return h(u,m.expression);case 256:case 225:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||v(u,g,m.typeParameters)||v(u,g,m.heritageClauses)||v(u,g,m.members);case 257:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||v(u,g,m.typeParameters)||v(u,g,m.heritageClauses)||v(u,g,m.members);case 258:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||v(u,g,m.typeParameters)||h(u,m.type);case 259:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||v(u,g,m.members);case 297:return h(u,m.name)||h(u,m.initializer);case 260:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||h(u,m.body);case 264:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||h(u,m.moduleReference);case 265:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.importClause)||h(u,m.moduleSpecifier)||h(u,m.assertClause);case 266:return h(u,m.name)||h(u,m.namedBindings);case 292:return v(u,g,m.elements);case 293:return h(u,m.name)||h(u,m.value);case 263:return h(u,m.name);case 267:return h(u,m.name);case 273:return h(u,m.name);case 268:case 272:return v(u,g,m.elements);case 271:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.exportClause)||h(u,m.moduleSpecifier)||h(u,m.assertClause);case 269:case 274:return h(u,m.propertyName)||h(u,m.name);case 270:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.expression);case 222:return h(u,m.head)||v(u,g,m.templateSpans);case 232:return h(u,m.expression)||h(u,m.literal);case 197:return h(u,m.head)||v(u,g,m.templateSpans);case 198:return h(u,m.type)||h(u,m.literal);case 161:return h(u,m.expression);case 290:return v(u,g,m.types);case 227:return h(u,m.expression)||v(u,g,m.typeArguments);case 276:return h(u,m.expression);case 275:return v(u,g,m.decorators);case 349:return v(u,g,m.elements);case 277:return h(u,m.openingElement)||v(u,g,m.children)||h(u,m.closingElement);case 281:return h(u,m.openingFragment)||v(u,g,m.children)||h(u,m.closingFragment);case 278:case 279:return h(u,m.tagName)||v(u,g,m.typeArguments)||h(u,m.attributes);case 285:return v(u,g,m.properties);case 284:return h(u,m.name)||h(u,m.initializer);case 286:return h(u,m.expression);case 287:return h(u,m.dotDotDotToken)||h(u,m.expression);case 280:return h(u,m.tagName);case 184:case 185:case 307:case 313:case 312:case 314:case 316:return h(u,m.type);case 315:return v(u,g,m.parameters)||h(u,m.type);case 318:return(typeof m.comment=="string"?void 0:v(u,g,m.comment))||v(u,g,m.tags);case 344:return h(u,m.tagName)||h(u,m.name)||(typeof m.comment=="string"?void 0:v(u,g,m.comment));case 308:return h(u,m.name);case 309:return h(u,m.left)||h(u,m.right);case 338:case 345:return h(u,m.tagName)||(m.isNameFirst?h(u,m.name)||h(u,m.typeExpression)||(typeof m.comment=="string"?void 0:v(u,g,m.comment)):h(u,m.typeExpression)||h(u,m.name)||(typeof m.comment=="string"?void 0:v(u,g,m.comment)));case 328:return h(u,m.tagName)||(typeof m.comment=="string"?void 0:v(u,g,m.comment));case 327:return h(u,m.tagName)||h(u,m.class)||(typeof m.comment=="string"?void 0:v(u,g,m.comment));case 326:return h(u,m.tagName)||h(u,m.class)||(typeof m.comment=="string"?void 0:v(u,g,m.comment));case 342:return h(u,m.tagName)||h(u,m.constraint)||v(u,g,m.typeParameters)||(typeof m.comment=="string"?void 0:v(u,g,m.comment));case 343:return h(u,m.tagName)||(m.typeExpression&&m.typeExpression.kind===307?h(u,m.typeExpression)||h(u,m.fullName)||(typeof m.comment=="string"?void 0:v(u,g,m.comment)):h(u,m.fullName)||h(u,m.typeExpression)||(typeof m.comment=="string"?void 0:v(u,g,m.comment)));case 336:return h(u,m.tagName)||h(u,m.fullName)||h(u,m.typeExpression)||(typeof m.comment=="string"?void 0:v(u,g,m.comment));case 339:case 341:case 340:case 337:return h(u,m.tagName)||h(u,m.typeExpression)||(typeof m.comment=="string"?void 0:v(u,g,m.comment));case 321:return e.forEach(m.typeParameters,u)||e.forEach(m.parameters,u)||h(u,m.type);case 322:case 323:case 324:return h(u,m.name);case 320:return e.forEach(m.jsDocPropertyTags,u);case 325:case 330:case 331:case 332:case 333:case 334:case 329:return h(u,m.tagName)||(typeof m.comment=="string"?void 0:v(u,g,m.comment));case 348:return h(u,m.expression)}}e.forEachChild=q;function ie(m,u,g){for(var F=b(m),te=[];te.length<F.length;)te.push(m);for(;F.length!==0;){var ue=F.pop(),X=te.pop();if(e.isArray(ue)){if(g){var j=g(ue,X);if(j){if(j==="skip")continue;return j}}for(var Se=ue.length-1;Se>=0;--Se)F.push(ue[Se]),te.push(X)}else{var j=u(ue,X);if(j){if(j==="skip")continue;return j}if(ue.kind>=160)for(var Ce=0,O=b(ue);Ce<O.length;Ce++){var Q=O[Ce];F.push(Q),te.push(ue)}}}}e.forEachChildRecursively=ie;function b(m){var u=[];return q(m,g,g),u;function g(F){u.unshift(F)}}function P(m,u,g,F,te){F===void 0&&(F=!1),e.tracing===null||e.tracing===void 0||e.tracing.push("parse","createSourceFile",{path:m},!0),e.performance.mark("beforeParse");var ue;return e.perfLogger.logStartParseSourceFile(m),g===100?ue=w.parseSourceFile(m,u,g,void 0,F,6):ue=w.parseSourceFile(m,u,g,void 0,F,te),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),ue}e.createSourceFile=P;function S(m,u){return w.parseIsolatedEntityName(m,u)}e.parseIsolatedEntityName=S;function B(m,u){return w.parseJsonText(m,u)}e.parseJsonText=B;function J(m){return m.externalModuleIndicator!==void 0}e.isExternalModule=J;function k(m,u,g,F){F===void 0&&(F=!1);var te=K.updateSourceFile(m,u,g,F);return te.flags|=m.flags&3145728,te}e.updateSourceFile=k;function M(m,u,g){var F=w.JSDocParser.parseIsolatedJSDocComment(m,u,g);return F&&F.jsDoc&&w.fixupParentReferences(F.jsDoc),F}e.parseIsolatedJSDocComment=M;function x(m,u,g){return w.JSDocParser.parseJSDocTypeExpressionForTests(m,u,g)}e.parseJSDocTypeExpressionForTests=x;var w;(function(m){var u=e.createScanner(99,!0),g=20480,F,te,ue,X,j;function Se(xe){return ve++,xe}var Ce={createBaseSourceFileNode:function(xe){return Se(new j(xe,0,0))},createBaseIdentifierNode:function(xe){return Se(new ue(xe,0,0))},createBasePrivateIdentifierNode:function(xe){return Se(new X(xe,0,0))},createBaseTokenNode:function(xe){return Se(new te(xe,0,0))},createBaseNode:function(xe){return Se(new F(xe,0,0))}},O=e.createNodeFactory(11,Ce),Q,V,z,Te,ge,ke,Me,Ie,Ge,he,ve,Ve,_e,Le,qe,Xe,De,Ae=!0,Ye=!1;function Lr(xe,Tr,Gr,at,Ct,Xt){var On;if(Ct===void 0&&(Ct=!1),Xt=e.ensureScriptKind(xe,Xt),Xt===6){var $n=lr(xe,Tr,Gr,at,Ct);return e.convertToObjectWorker($n,(On=$n.statements[0])===null||On===void 0?void 0:On.expression,$n.parseDiagnostics,!1,void 0,void 0),$n.referencedFiles=e.emptyArray,$n.typeReferenceDirectives=e.emptyArray,$n.libReferenceDirectives=e.emptyArray,$n.amdDependencies=e.emptyArray,$n.hasNoDefaultLib=!1,$n.pragmas=e.emptyMap,$n}Cr(xe,Tr,Gr,at,Xt);var wa=Ke(Gr,Ct,Xt);return Or(),wa}m.parseSourceFile=Lr;function Er(xe,Tr){Cr("",xe,Tr,void 0,1),fr();var Gr=Mn(!0),at=me()===1&&!Me.length;return Or(),at?Gr:void 0}m.parseIsolatedEntityName=Er;function lr(xe,Tr,Gr,at,Ct){Gr===void 0&&(Gr=2),Ct===void 0&&(Ct=!1),Cr(xe,Tr,Gr,at,6),V=De,fr();var Xt=ee(),On,$n;if(me()===1)On=It([],Xt,Xt),$n=dn();else{for(var wa=void 0;me()!==1;){var Ea=void 0;switch(me()){case 22:Ea=od();break;case 110:case 95:case 104:Ea=dn();break;case 40:ht(function(){return fr()===8&&fr()!==58})?Ea=Ep():Ea=us();break;case 8:case 10:if(ht(function(){return fr()!==58})){Ea=ko();break}default:Ea=us();break}wa&&e.isArray(wa)?wa.push(Ea):wa?wa=[wa,Ea]:(wa=Ea,me()!==1&&or(e.Diagnostics.Unexpected_token))}var Ki=e.isArray(wa)?rt(O.createArrayLiteralExpression(wa),Xt):e.Debug.checkDefined(wa),Qo=O.createExpressionStatement(Ki);rt(Qo,Xt),On=It([Qo],Xt),$n=qt(1,e.Diagnostics.Unexpected_token)}var $i=Fe(xe,2,6,!1,On,$n,V);Ct&&de($i),$i.nodeCount=ve,$i.identifierCount=Le,$i.identifiers=Ve,$i.parseDiagnostics=e.attachFileToDiagnostics(Me,$i),Ie&&($i.jsDocDiagnostics=e.attachFileToDiagnostics(Ie,$i));var Ho=$i;return Or(),Ho}m.parseJsonText=lr;function Cr(xe,Tr,Gr,at,Ct){switch(F=e.objectAllocator.getNodeConstructor(),te=e.objectAllocator.getTokenConstructor(),ue=e.objectAllocator.getIdentifierConstructor(),X=e.objectAllocator.getPrivateIdentifierConstructor(),j=e.objectAllocator.getSourceFileConstructor(),Q=e.normalizePath(xe),z=Tr,Te=Gr,Ge=at,ge=Ct,ke=e.getLanguageVariant(Ct),Me=[],qe=0,Ve=new e.Map,_e=new e.Map,Le=0,ve=0,V=0,Ae=!0,ge){case 1:case 2:De=131072;break;case 6:De=33685504;break;default:De=0;break}Ye=!1,u.setText(z),u.setOnError(We),u.setScriptTarget(Te),u.setLanguageVariant(ke)}function Or(){u.clearCommentDirectives(),u.setText(""),u.setOnError(void 0),z=void 0,Te=void 0,Ge=void 0,ge=void 0,ke=void 0,V=0,Me=void 0,Ie=void 0,qe=0,Ve=void 0,Xe=void 0,Ae=!0}function Ke(xe,Tr,Gr){var at=Z(Q);at&&(De|=8388608),V=De,fr();var Ct=Un(0,Ga);e.Debug.assert(me()===1);var Xt=ur(dn()),On=Fe(Q,xe,Gr,at,Ct,Xt,V);return ne(On,z),R(On,$n),On.commentDirectives=u.getCommentDirectives(),On.nodeCount=ve,On.identifierCount=Le,On.identifiers=Ve,On.parseDiagnostics=e.attachFileToDiagnostics(Me,On),Ie&&(On.jsDocDiagnostics=e.attachFileToDiagnostics(Ie,On)),Tr&&de(On),On;function $n(wa,Ea,Ki){Me.push(e.createDetachedDiagnostic(Q,wa,Ea,Ki))}}function Pe(xe,Tr){return Tr?ur(xe):xe}var Hr=!1;function ur(xe){e.Debug.assert(!xe.jsDoc);var Tr=e.mapDefined(e.getJSDocCommentRanges(xe,z),function(Gr){return i_.parseJSDocComment(xe,Gr.pos,Gr.end-Gr.pos)});return Tr.length&&(xe.jsDoc=Tr),Hr&&(Hr=!1,xe.flags|=134217728),xe}function vr(xe){var Tr=Ge,Gr=K.createSyntaxCursor(xe);Ge={currentNode:Ho};var at=[],Ct=Me;Me=[];for(var Xt=0,On=Qo(xe.statements,0),$n=function(){var gs=xe.statements[Xt],_l=xe.statements[On];e.addRange(at,xe.statements,Xt,On),Xt=$i(xe.statements,On);var xs=e.findIndex(Ct,function(bl){return bl.start>=gs.pos}),Cl=xs>=0?e.findIndex(Ct,function(bl){return bl.start>=_l.pos},xs):-1;xs>=0&&e.addRange(Me,Ct,xs,Cl>=0?Cl:void 0),ut(function(){var bl=De;for(De|=32768,u.setTextPos(_l.pos),fr();me()!==1;){var ju=u.getStartPos(),ul=Oe(0,Ga);if(at.push(ul),ju===u.getStartPos()&&fr(),Xt>=0){var Ps=xe.statements[Xt];if(ul.end===Ps.pos)break;ul.end>Ps.pos&&(Xt=$i(xe.statements,Xt+1))}}De=bl},2),On=Xt>=0?Qo(xe.statements,Xt):-1};On!==-1;)$n();if(Xt>=0){var wa=xe.statements[Xt];e.addRange(at,xe.statements,Xt);var Ea=e.findIndex(Ct,function(gs){return gs.start>=wa.pos});Ea>=0&&e.addRange(Me,Ct,Ea)}return Ge=Tr,O.updateSourceFile(xe,e.setTextRange(O.createNodeArray(at),xe.statements));function Ki(gs){return!(gs.flags&32768)&&!!(gs.transformFlags&16777216)}function Qo(gs,_l){for(var xs=_l;xs<gs.length;xs++)if(Ki(gs[xs]))return xs;return-1}function $i(gs,_l){for(var xs=_l;xs<gs.length;xs++)if(!Ki(gs[xs]))return xs;return-1}function Ho(gs){var _l=Gr.currentNode(gs);return Ae&&_l&&Ki(_l)&&(_l.intersectsChange=!0),_l}}function de(xe){e.setParentRecursive(xe,!0)}m.fixupParentReferences=de;function Fe(xe,Tr,Gr,at,Ct,Xt,On){var $n=O.createSourceFile(Ct,Xt,On);return e.setTextRangePosWidth($n,0,z.length),md($n),!at&&J($n)&&$n.transformFlags&16777216&&($n=vr($n)),$n.text=z,$n.bindDiagnostics=[],$n.bindSuggestionDiagnostics=void 0,$n.languageVersion=Tr,$n.fileName=xe,$n.languageVariant=e.getLanguageVariant(Gr),$n.isDeclarationFile=at,$n.scriptKind=Gr,$n}function $e(xe,Tr){xe?De|=Tr:De&=~Tr}function Dr(xe){$e(xe,4096)}function Fr(xe){$e(xe,8192)}function He(xe){$e(xe,16384)}function pr(xe){$e(xe,32768)}function Jr(xe,Tr){var Gr=xe&De;if(Gr){$e(!1,Gr);var at=Tr();return $e(!0,Gr),at}return Tr()}function ze(xe,Tr){var Gr=xe&~De;if(Gr){$e(!0,Gr);var at=Tr();return $e(!1,Gr),at}return Tr()}function Ar(xe){return Jr(4096,xe)}function Yr(xe){return ze(4096,xe)}function lt(xe){return ze(8192,xe)}function tt(xe){return ze(16384,xe)}function Rt(xe){return ze(32768,xe)}function cn(xe){return Jr(32768,xe)}function bn(xe){return ze(40960,xe)}function In(xe){return Jr(40960,xe)}function zn(xe){return(De&xe)!==0}function ir(){return zn(8192)}function Rr(){return zn(4096)}function sr(){return zn(16384)}function ye(){return zn(32768)}function or(xe,Tr){je(u.getTokenPos(),u.getTextPos(),xe,Tr)}function fe(xe,Tr,Gr,at){var Ct=e.lastOrUndefined(Me);(!Ct||xe!==Ct.start)&&Me.push(e.createDetachedDiagnostic(Q,xe,Tr,Gr,at)),Ye=!0}function je(xe,Tr,Gr,at){fe(xe,Tr-xe,Gr,at)}function Ee(xe,Tr,Gr){je(xe.pos,xe.end,Tr,Gr)}function We(xe,Tr){fe(u.getTextPos(),Tr,xe)}function ee(){return u.getStartPos()}function Ne(){return u.hasPrecedingJSDocComment()}function me(){return he}function Ze(){return he=u.scan()}function xr(xe){return fr(),xe()}function fr(){return e.isKeyword(he)&&(u.hasUnicodeEscape()||u.hasExtendedUnicodeEscape())&&je(u.getTokenPos(),u.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),Ze()}function dr(){return he=u.scanJsDocToken()}function et(){return he=u.reScanGreaterToken()}function yt(){return he=u.reScanSlashToken()}function Wr(xe){return he=u.reScanTemplateToken(xe)}function tr(){return he=u.reScanTemplateHeadOrNoSubstitutionTemplate()}function Ir(){return he=u.reScanLessThanToken()}function kr(){return he=u.reScanHashToken()}function zr(){return he=u.scanJsxIdentifier()}function gt(){return he=u.scanJsxToken()}function vt(){return he=u.scanJsxAttributeValue()}function ut(xe,Tr){var Gr=he,at=Me.length,Ct=Ye,Xt=De,On=Tr!==0?u.lookAhead(xe):u.tryScan(xe);return e.Debug.assert(Xt===De),(!On||Tr!==0)&&(he=Gr,Tr!==2&&(Me.length=at),Ye=Ct),On}function ht(xe){return ut(xe,1)}function xt(xe){return ut(xe,0)}function wt(){return me()===79?!0:me()>116}function Qt(){return me()===79?!0:me()===125&&ir()||me()===132&&ye()?!1:me()>116}function mt(xe,Tr,Gr){return Gr===void 0&&(Gr=!0),me()===xe?(Gr&&fr(),!0):(Tr?or(Tr):or(e.Diagnostics._0_expected,e.tokenToString(xe)),!1)}var rn=Object.keys(e.textToKeywordObj).filter(function(xe){return xe.length>2});function sa(xe){var Tr;if(e.isTaggedTemplateExpression(xe)){je(e.skipTrivia(z,xe.template.pos),xe.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);return}var Gr=e.isIdentifier(xe)?e.idText(xe):void 0;if(!Gr||!e.isIdentifierText(Gr,Te)){or(e.Diagnostics._0_expected,e.tokenToString(26));return}var at=e.skipTrivia(z,xe.pos);switch(Gr){case"const":case"let":case"var":je(at,xe.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":ba(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);return;case"is":je(at,u.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":ba(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);return;case"type":ba(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63);return}var Ct=(Tr=e.getSpellingSuggestion(Gr,rn,function(Xt){return Xt}))!==null&&Tr!==void 0?Tr:Jn(Gr);if(Ct){je(at,xe.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,Ct);return}me()!==0&&je(at,xe.end,e.Diagnostics.Unexpected_keyword_or_identifier)}function ba(xe,Tr,Gr){me()===Gr?or(Tr):or(xe,u.getTokenValue())}function Jn(xe){for(var Tr=0,Gr=rn;Tr<Gr.length;Tr++){var at=Gr[Tr];if(xe.length>at.length+2&&e.startsWith(xe,at))return"".concat(at," ").concat(xe.slice(at.length))}}function na(xe,Tr,Gr){if(me()===59&&!u.hasPrecedingLineBreak()){or(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(me()===20){or(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),fr();return}if(Tr&&!pt()){Gr?or(e.Diagnostics._0_expected,e.tokenToString(26)):or(e.Diagnostics.Expected_for_property_initializer);return}if(!_t()){if(Gr){me()===18&&or(e.Diagnostics._0_expected,e.tokenToString(26));return}sa(xe)}}function Wn(xe){return me()===xe?(dr(),!0):(or(e.Diagnostics._0_expected,e.tokenToString(xe)),!1)}function en(xe){return me()===xe?(fr(),!0):!1}function St(xe){if(me()===xe)return dn()}function Ut(xe){if(me()===xe)return oa()}function qt(xe,Tr,Gr){return St(xe)||Cn(xe,!1,Tr||e.Diagnostics._0_expected,Gr||e.tokenToString(xe))}function Pn(xe){return Ut(xe)||Cn(xe,!1,e.Diagnostics._0_expected,e.tokenToString(xe))}function dn(){var xe=ee(),Tr=me();return fr(),rt(O.createToken(Tr),xe)}function oa(){var xe=ee(),Tr=me();return dr(),rt(O.createToken(Tr),xe)}function pt(){return me()===26?!0:me()===19||me()===1||u.hasPrecedingLineBreak()}function _t(){return pt()?(me()===26&&fr(),!0):!1}function Pt(){return _t()||mt(26)}function It(xe,Tr,Gr,at){var Ct=O.createNodeArray(xe,at);return e.setTextRangePosEnd(Ct,Tr,Gr!=null?Gr:u.getStartPos()),Ct}function rt(xe,Tr,Gr){return e.setTextRangePosEnd(xe,Tr,Gr!=null?Gr:u.getStartPos()),De&&(xe.flags|=De),Ye&&(Ye=!1,xe.flags|=65536),xe}function Cn(xe,Tr,Gr,at){Tr?fe(u.getStartPos(),0,Gr,at):Gr&&or(Gr,at);var Ct=ee(),Xt=xe===79?O.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(xe)?O.createTemplateLiteralLikeNode(xe,"","",void 0):xe===8?O.createNumericLiteral("",void 0):xe===10?O.createStringLiteral("",void 0):xe===275?O.createMissingDeclaration():O.createToken(xe);return rt(Xt,Ct)}function Qn(xe){var Tr=Ve.get(xe);return Tr===void 0&&Ve.set(xe,Tr=xe),Tr}function Ra(xe,Tr,Gr){if(xe){Le++;var at=ee(),Ct=me(),Xt=Qn(u.getTokenValue());return Ze(),rt(O.createIdentifier(Xt,void 0,Ct),at)}if(me()===80)return or(Gr||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ra(!0);if(me()===0&&u.tryScan(function(){return u.reScanInvalidIdentifier()===79}))return Ra(!0);Le++;var On=me()===1,$n=u.isReservedWord(),wa=u.getTokenText(),Ea=$n?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Cn(79,On,Tr||Ea,wa)}function Ci(xe){return Ra(wt(),void 0,xe)}function _i(xe,Tr){return Ra(Qt(),xe,Tr)}function va(xe){return Ra(e.tokenIsIdentifierOrKeyword(me()),xe)}function yi(){return e.tokenIsIdentifierOrKeyword(me())||me()===10||me()===8}function ro(){return e.tokenIsIdentifierOrKeyword(me())||me()===10}function Ka(xe){if(me()===10||me()===8){var Tr=ko();return Tr.text=Qn(Tr.text),Tr}return xe&&me()===22?io():me()===80?Hi():va()}function Pi(){return Ka(!0)}function io(){var xe=ee();mt(22);var Tr=Ar(Rs);return mt(23),rt(O.createComputedPropertyName(Tr),xe)}function ji(xe){var Tr=_e.get(xe);return Tr===void 0&&_e.set(xe,Tr=xe),Tr}function Hi(){var xe=ee(),Tr=O.createPrivateIdentifier(ji(u.getTokenText()));return fr(),rt(Tr,xe)}function to(xe){return me()===xe&&xt(lo)}function No(){return fr(),u.hasPrecedingLineBreak()?!1:co()}function lo(){switch(me()){case 85:return fr()===92;case 93:return fr(),me()===88?ht(za):me()===151?ht(Ha):Lo();case 88:return za();case 124:case 136:case 148:return fr(),co();default:return No()}}function Lo(){return me()!==41&&me()!==127&&me()!==18&&co()}function Ha(){return fr(),Lo()}function Yo(){return e.isModifierKind(me())&&xt(lo)}function co(){return me()===22||me()===18||me()===41||me()===25||yi()}function za(){return fr(),me()===84||me()===98||me()===118||me()===126&&ht(yc)||me()===131&&ht(ud)}function hi(xe,Tr){var Gr=oe(xe);if(Gr)return!0;switch(xe){case 0:case 1:case 3:return!(me()===26&&Tr)&&Gl();case 2:return me()===82||me()===88;case 4:return ht(Pr);case 5:return ht(qd)||me()===26&&!Tr;case 6:return me()===22||yi();case 12:switch(me()){case 22:case 41:case 25:case 24:return!0;default:return yi()}case 18:return yi();case 9:return me()===22||me()===25||yi();case 24:return ro();case 7:return me()===18?ht(Zi):Tr?Qt()&&!zo():qp()&&!zo();case 8:return $u();case 10:return me()===27||me()===25||$u();case 19:return Qt();case 15:switch(me()){case 27:case 24:return!0}case 11:return me()===25||dl();case 16:return Vs(!1);case 17:return Vs(!0);case 20:case 21:return me()===27||bo();case 22:return Rf();case 23:return e.tokenIsIdentifierOrKeyword(me());case 13:return e.tokenIsIdentifierOrKeyword(me())||me()===18;case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Zi(){if(e.Debug.assert(me()===18),fr()===19){var xe=fr();return xe===27||xe===18||xe===94||xe===117}return!0}function Po(){return fr(),Qt()}function Mo(){return fr(),e.tokenIsIdentifierOrKeyword(me())}function Fo(){return fr(),e.tokenIsIdentifierOrKeywordOrGreaterThan(me())}function zo(){return me()===117||me()===94?ht(Es):!1}function Es(){return fr(),dl()}function Cs(){return fr(),bo()}function yr(xe){if(me()===1)return!0;switch(xe){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return me()===19;case 3:return me()===19||me()===82||me()===88;case 7:return me()===18||me()===94||me()===117;case 8:return dt();case 19:return me()===31||me()===20||me()===18||me()===94||me()===117;case 11:return me()===21||me()===26;case 15:case 21:case 10:return me()===23;case 17:case 16:case 18:return me()===21||me()===23;case 20:return me()!==27;case 22:return me()===18||me()===19;case 13:return me()===31||me()===43;case 14:return me()===29&&ht(Fc);default:return!1}}function dt(){return!!(pt()||bp(me())||me()===38)}function tn(){for(var xe=0;xe<25;xe++)if(qe&1<<xe&&(hi(xe,!0)||yr(xe)))return!0;return!1}function Un(xe,Tr){var Gr=qe;qe|=1<<xe;for(var at=[],Ct=ee();!yr(xe);){if(hi(xe,!1)){at.push(Oe(xe,Tr));continue}if(xa(xe))break}return qe=Gr,It(at,Ct)}function Oe(xe,Tr){var Gr=oe(xe);return Gr?mr(Gr):Tr()}function oe(xe){if(!(!Ge||!se(xe)||Ye)){var Tr=Ge.currentNode(u.getStartPos());if(!(e.nodeIsMissing(Tr)||Tr.intersectsChange||e.containsParseError(Tr))){var Gr=Tr.flags&25358336;if(Gr===De&&!!Be(Tr,xe))return Tr.jsDocCache&&(Tr.jsDocCache=void 0),Tr}}}function mr(xe){return u.setTextPos(xe.end),fr(),xe}function se(xe){switch(xe){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 Be(xe,Tr){switch(Tr){case 5:return er(xe);case 2:return hr(xe);case 0:case 1:case 3:return qr(xe);case 6:return Dt(xe);case 4:return Jt(xe);case 8:return Sn(xe);case 17:case 16:return ta(xe)}return!1}function er(xe){if(xe)switch(xe.kind){case 170:case 175:case 171:case 172:case 166:case 233:return!0;case 168:var Tr=xe,Gr=Tr.name.kind===79&&Tr.name.originalKeywordKind===134;return!Gr}return!1}function hr(xe){if(xe)switch(xe.kind){case 288:case 289:return!0}return!1}function qr(xe){if(xe)switch(xe.kind){case 255:case 236:case 234:case 238:case 237:case 250:case 246:case 248:case 245:case 244:case 242:case 243:case 241:case 240:case 247:case 235:case 251:case 249:case 239:case 252:case 265:case 264:case 271:case 270:case 260:case 256:case 257:case 259:case 258:return!0}return!1}function Dt(xe){return xe.kind===297}function Jt(xe){if(xe)switch(xe.kind){case 174:case 167:case 175:case 165:case 173:return!0}return!1}function Sn(xe){if(xe.kind!==253)return!1;var Tr=xe;return Tr.initializer===void 0}function ta(xe){if(xe.kind!==163)return!1;var Tr=xe;return Tr.initializer===void 0}function xa(xe){return Di(xe),tn()?!0:(fr(),!1)}function Di(xe){switch(xe){case 0:return me()===88?or(e.Diagnostics._0_expected,e.tokenToString(93)):or(e.Diagnostics.Declaration_or_statement_expected);case 1:return or(e.Diagnostics.Declaration_or_statement_expected);case 2:return or(e.Diagnostics.case_or_default_expected);case 3:return or(e.Diagnostics.Statement_expected);case 18:case 4:return or(e.Diagnostics.Property_or_signature_expected);case 5:return or(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return or(e.Diagnostics.Enum_member_expected);case 7:return or(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(me())?or(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(me())):or(e.Diagnostics.Variable_declaration_expected);case 9:return or(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return or(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return or(e.Diagnostics.Argument_expression_expected);case 12:return or(e.Diagnostics.Property_assignment_expected);case 15:return or(e.Diagnostics.Expression_or_comma_expected);case 17:return or(e.Diagnostics.Parameter_declaration_expected);case 16:return e.isKeyword(me())?or(e.Diagnostics._0_is_not_allowed_as_a_parameter_name,e.tokenToString(me())):or(e.Diagnostics.Parameter_declaration_expected);case 19:return or(e.Diagnostics.Type_parameter_declaration_expected);case 20:return or(e.Diagnostics.Type_argument_expected);case 21:return or(e.Diagnostics.Type_expected);case 22:return or(e.Diagnostics.Unexpected_token_expected);case 23:return or(e.Diagnostics.Identifier_expected);case 13:return or(e.Diagnostics.Identifier_expected);case 14:return or(e.Diagnostics.Identifier_expected);default:return[void 0]}}function $a(xe,Tr,Gr){var at=qe;qe|=1<<xe;for(var Ct=[],Xt=ee(),On=-1;;){if(hi(xe,!1)){var $n=u.getStartPos();if(Ct.push(Oe(xe,Tr)),On=u.getTokenPos(),en(27))continue;if(On=-1,yr(xe))break;mt(27,Ji(xe)),Gr&&me()===26&&!u.hasPrecedingLineBreak()&&fr(),$n===u.getStartPos()&&fr();continue}if(yr(xe)||xa(xe))break}return qe=at,It(Ct,Xt,void 0,On>=0)}function Ji(xe){return xe===6?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function So(){var xe=It([],ee());return xe.isMissingList=!0,xe}function cs(xe){return!!xe.isMissingList}function bt(xe,Tr,Gr,at){if(mt(Gr)){var Ct=$a(xe,Tr);return mt(at),Ct}return So()}function Mn(xe,Tr){for(var Gr=ee(),at=xe?va(Tr):_i(Tr),Ct=ee();en(24);){if(me()===29){at.jsdocDotPos=Ct;break}Ct=ee(),at=rt(O.createQualifiedName(at,ei(xe,!1)),Gr)}return at}function da(xe,Tr){return rt(O.createQualifiedName(xe,Tr),xe.pos)}function ei(xe,Tr){if(u.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(me())){var Gr=ht(Cf);if(Gr)return Cn(79,!0,e.Diagnostics.Identifier_expected)}if(me()===80){var at=Hi();return Tr?at:Cn(79,!0,e.Diagnostics.Identifier_expected)}return xe?va():_i()}function bi(xe){var Tr=ee(),Gr=[],at;do at=Ro(xe),Gr.push(at);while(at.literal.kind===16);return It(Gr,Tr)}function xi(xe){var Tr=ee();return rt(O.createTemplateExpression(es(xe),bi(xe)),Tr)}function ka(){var xe=ee();return rt(O.createTemplateLiteralType(es(!1),mi()),xe)}function mi(){var xe=ee(),Tr=[],Gr;do Gr=Xi(),Tr.push(Gr);while(Gr.literal.kind===16);return It(Tr,xe)}function Xi(){var xe=ee();return rt(O.createTemplateLiteralTypeSpan(_s(),Gi(!1)),xe)}function Gi(xe){return me()===19?(Wr(xe),as()):qt(17,e.Diagnostics._0_expected,e.tokenToString(19))}function Ro(xe){var Tr=ee();return rt(O.createTemplateSpan(Ar(Rs),Gi(xe)),Tr)}function ko(){return wr(me())}function es(xe){xe&&tr();var Tr=wr(me());return e.Debug.assert(Tr.kind===15,"Template head has wrong token kind"),Tr}function as(){var xe=wr(me());return e.Debug.assert(xe.kind===16||xe.kind===17,"Template fragment has wrong token kind"),xe}function pe(xe){var Tr=xe===14||xe===17,Gr=u.getTokenText();return Gr.substring(1,Gr.length-(u.isUnterminated()?0:Tr?1:2))}function wr(xe){var Tr=ee(),Gr=e.isTemplateLiteralKind(xe)?O.createTemplateLiteralLikeNode(xe,u.getTokenValue(),pe(xe),u.getTokenFlags()&2048):xe===8?O.createNumericLiteral(u.getTokenValue(),u.getNumericLiteralFlags()):xe===10?O.createStringLiteral(u.getTokenValue(),void 0,u.hasExtendedUnicodeEscape()):e.isLiteralKind(xe)?O.createLiteralLikeNode(xe,u.getTokenValue()):e.Debug.fail();return u.hasExtendedUnicodeEscape()&&(Gr.hasExtendedUnicodeEscape=!0),u.isUnterminated()&&(Gr.isUnterminated=!0),fr(),rt(Gr,Tr)}function ft(){return Mn(!0,e.Diagnostics.Type_expected)}function Zt(){if(!u.hasPrecedingLineBreak()&&Ir()===29)return bt(20,_s,29,31)}function Re(){var xe=ee();return rt(O.createTypeReferenceNode(ft(),Zt()),xe)}function Qr(xe){switch(xe.kind){case 177:return e.nodeIsMissing(xe.typeName);case 178:case 179:{var Tr=xe,Gr=Tr.parameters,at=Tr.type;return cs(Gr)||Qr(at)}case 190:return Qr(xe.type);default:return!1}}function vn(xe){return fr(),rt(O.createTypePredicateNode(void 0,xe,_s()),xe.pos)}function Xn(){var xe=ee();return fr(),rt(O.createThisTypeNode(),xe)}function gi(){var xe=ee();return fr(),rt(O.createJSDocAllType(),xe)}function Ia(){var xe=ee();return fr(),rt(O.createJSDocNonNullableType(Do()),xe)}function oo(){var xe=ee();return fr(),me()===27||me()===19||me()===21||me()===31||me()===63||me()===51?rt(O.createJSDocUnknownType(),xe):rt(O.createJSDocNullableType(_s()),xe)}function Wo(){var xe=ee(),Tr=Ne();if(ht(wf)){fr();var Gr=Ws(36),at=no(58,!1);return Pe(rt(O.createJSDocFunctionType(Gr,at),xe),Tr)}return rt(O.createTypeReferenceNode(va(),void 0),xe)}function Nr(){var xe=ee(),Tr;return(me()===108||me()===103)&&(Tr=va(),mt(58)),rt(O.createParameterDeclaration(void 0,void 0,void 0,Tr,void 0,Us(),void 0),xe)}function Us(){u.setInJSDocType(!0);var xe=ee();if(en(141)){var Tr=O.createJSDocNamepathType(void 0);e:for(;;)switch(me()){case 19:case 1:case 27:case 5:break e;default:dr()}return u.setInJSDocType(!1),rt(Tr,xe)}var Gr=en(25),at=Zf();return u.setInJSDocType(!1),Gr&&(at=rt(O.createJSDocVariadicType(at),xe)),me()===63?(fr(),rt(O.createJSDocOptionalType(at),xe)):at}function il(){var xe=ee();return mt(112),rt(O.createTypeQueryNode(Mn(!0)),xe)}function Pl(){var xe=ee(),Tr=_i(),Gr,at;en(94)&&(bo()||!dl()?Gr=_s():at=_c());var Ct=en(63)?_s():void 0,Xt=O.createTypeParameterDeclaration(Tr,Gr,Ct);return Xt.expression=at,rt(Xt,xe)}function Co(){if(me()===29)return bt(19,Pl,29,31)}function Vs(xe){return me()===25||$u()||e.isModifierKind(me())||me()===59||bo(!xe)}function Ql(xe){var Tr=Qs(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return e.getFullWidth(Tr)===0&&!e.some(xe)&&e.isModifierKind(me())&&fr(),Tr}function zl(){return cu(!0)}function uc(){return cu(!1)}function cu(xe){var Tr=ee(),Gr=Ne(),at=xe?Rt(ef):ef();if(me()===108){var Ct=O.createParameterDeclaration(at,void 0,void 0,Ra(!0),void 0,Jc(),void 0);return at&&Ee(at[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),Pe(rt(Ct,Tr),Gr)}var Xt=Ae;Ae=!1;var On=bc(),$n=Pe(rt(O.createParameterDeclaration(at,On,St(25),Ql(On),St(57),Jc(),Ja()),Tr),Gr);return Ae=Xt,$n}function no(xe,Tr){if(ql(xe,Tr))return Zf()}function ql(xe,Tr){return xe===38?(mt(xe),!0):en(58)?!0:Tr&&me()===38?(or(e.Diagnostics._0_expected,e.tokenToString(58)),fr(),!0):!1}function fc(xe){var Tr=ir(),Gr=ye();Fr(!!(xe&1)),pr(!!(xe&2));var at=xe&32?$a(17,Nr):$a(16,Gr?zl:uc);return Fr(Tr),pr(Gr),at}function Ws(xe){if(!mt(20))return So();var Tr=fc(xe);return mt(21),Tr}function xc(){en(27)||Pt()}function Ic(xe){var Tr=ee(),Gr=Ne();xe===174&&mt(103);var at=Co(),Ct=Ws(4),Xt=no(58,!0);xc();var On=xe===173?O.createCallSignature(at,Ct,Xt):O.createConstructSignature(at,Ct,Xt);return Pe(rt(On,Tr),Gr)}function La(){return me()===22&&ht(uu)}function uu(){if(fr(),me()===25||me()===23)return!0;if(e.isModifierKind(me())){if(fr(),Qt())return!0}else if(Qt())fr();else return!1;return me()===58||me()===27?!0:me()!==57?!1:(fr(),me()===58||me()===27||me()===23)}function dc(xe,Tr,Gr,at){var Ct=bt(16,uc,22,23),Xt=Jc();xc();var On=O.createIndexSignature(Gr,at,Ct,Xt);return Pe(rt(On,xe),Tr)}function Nc(xe,Tr,Gr){var at=Pi(),Ct=St(57),Xt;if(me()===20||me()===29){var On=Co(),$n=Ws(4),wa=no(58,!0);Xt=O.createMethodSignature(Gr,at,Ct,On,$n,wa)}else{var wa=Jc();Xt=O.createPropertySignature(Gr,at,Ct,wa),me()===63&&(Xt.initializer=Ja())}return xc(),Pe(rt(Xt,xe),Tr)}function Pr(){if(me()===20||me()===29||me()===136||me()===148)return!0;for(var xe=!1;e.isModifierKind(me());)xe=!0,fr();return me()===22?!0:(yi()&&(xe=!0,fr()),xe?me()===20||me()===29||me()===57||me()===58||me()===27||pt():!1)}function $r(){if(me()===20||me()===29)return Ic(173);if(me()===103&&ht(Lt))return Ic(174);var xe=ee(),Tr=Ne(),Gr=bc();return to(136)?du(xe,Tr,void 0,Gr,171):to(148)?du(xe,Tr,void 0,Gr,172):La()?dc(xe,Tr,void 0,Gr):Nc(xe,Tr,Gr)}function Lt(){return fr(),me()===20||me()===29}function Kt(){return fr()===24}function pn(){switch(fr()){case 20:case 29:case 24:return!0}return!1}function fn(){var xe=ee();return rt(O.createTypeLiteralNode(kn()),xe)}function kn(){var xe;return mt(18)?(xe=Un(4,$r),mt(19)):xe=So(),xe}function Kn(){return fr(),me()===39||me()===40?fr()===144:(me()===144&&fr(),me()===22&&Po()&&fr()===101)}function Fa(){var xe=ee(),Tr=va();mt(101);var Gr=_s();return rt(O.createTypeParameterDeclaration(Tr,Gr,void 0),xe)}function ua(){var xe=ee();mt(18);var Tr;(me()===144||me()===39||me()===40)&&(Tr=dn(),Tr.kind!==144&&mt(144)),mt(22);var Gr=Fa(),at=en(127)?_s():void 0;mt(23);var Ct;(me()===57||me()===39||me()===40)&&(Ct=dn(),Ct.kind!==57&&mt(57));var Xt=Jc();Pt();var On=Un(4,$r);return mt(19),rt(O.createMappedTypeNode(Tr,Gr,at,Ct,Xt,On),xe)}function le(){var xe=ee();if(en(25))return rt(O.createRestTypeNode(_s()),xe);var Tr=_s();if(e.isJSDocNullableType(Tr)&&Tr.pos===Tr.type.pos){var Gr=O.createOptionalTypeNode(Tr.type);return e.setTextRange(Gr,Tr),Gr.flags=Tr.flags,Gr}return Tr}function rr(){return fr()===58||me()===57&&fr()===58}function br(){return me()===25?e.tokenIsIdentifierOrKeyword(fr())&&rr():e.tokenIsIdentifierOrKeyword(me())&&rr()}function ct(){if(ht(br)){var xe=ee(),Tr=Ne(),Gr=St(25),at=va(),Ct=St(57);mt(58);var Xt=le(),On=O.createNamedTupleMember(Gr,at,Ct,Xt);return Pe(rt(On,xe),Tr)}return le()}function jt(){var xe=ee();return rt(O.createTupleTypeNode(bt(21,ct,22,23)),xe)}function yn(){var xe=ee();mt(20);var Tr=_s();return mt(21),rt(O.createParenthesizedType(Tr),xe)}function ha(){var xe;if(me()===126){var Tr=ee();fr();var Gr=rt(O.createToken(126),Tr);xe=It([Gr],Tr)}return xe}function ri(){var xe=ee(),Tr=Ne(),Gr=ha(),at=en(103),Ct=Co(),Xt=Ws(4),On=no(38,!1),$n=at?O.createConstructorTypeNode(Gr,Ct,Xt,On):O.createFunctionTypeNode(Ct,Xt,On);return at||($n.modifiers=Gr),Pe(rt($n,xe),Tr)}function Ta(){var xe=dn();return me()===24?void 0:xe}function Ya(xe){var Tr=ee();xe&&fr();var Gr=me()===110||me()===95||me()===104?dn():wr(me());return xe&&(Gr=rt(O.createPrefixUnaryExpression(40,Gr),Tr)),rt(O.createLiteralTypeNode(Gr),Tr)}function fi(){return fr(),me()===100}function ci(){V|=1048576;var xe=ee(),Tr=en(112);mt(100),mt(20);var Gr=_s();mt(21);var at=en(24)?ft():void 0,Ct=Zt();return rt(O.createImportTypeNode(Gr,at,Ct,Tr),xe)}function Si(){return fr(),me()===8||me()===9}function Do(){switch(me()){case 130:case 154:case 149:case 146:case 157:case 150:case 133:case 152:case 143:case 147:return xt(Ta)||Re();case 66:u.reScanAsteriskEqualsToken();case 41:return gi();case 60:u.reScanQuestionToken();case 57:return oo();case 98:return Wo();case 53:return Ia();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return Ya();case 40:return ht(Si)?Ya(!0):Re();case 114:return dn();case 108:{var xe=Xn();return me()===139&&!u.hasPrecedingLineBreak()?vn(xe):xe}case 112:return ht(fi)?ci():il();case 18:return ht(Kn)?ua():fn();case 22:return jt();case 20:return yn();case 100:return ci();case 128:return ht(Cf)?Nd():Re();case 15:return ka();default:return Re()}}function bo(xe){switch(me()){case 130:case 154:case 149:case 146:case 157:case 133:case 144:case 150:case 153:case 114:case 152:case 104:case 108:case 112:case 143:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 147:case 41:case 57:case 53:case 25:case 137:case 100:case 128:case 14:case 15:return!0;case 98:return!xe;case 40:return!xe&&ht(Si);case 20:return!xe&&ht(Ns);default:return Qt()}}function Ns(){return fr(),me()===21||Vs(!1)||bo()}function Ys(){for(var xe=ee(),Tr=Do();!u.hasPrecedingLineBreak();)switch(me()){case 53:fr(),Tr=rt(O.createJSDocNonNullableType(Tr),xe);break;case 57:if(ht(Cs))return Tr;fr(),Tr=rt(O.createJSDocNullableType(Tr),xe);break;case 22:if(mt(22),bo()){var Gr=_s();mt(23),Tr=rt(O.createIndexedAccessTypeNode(Tr,Gr),xe)}else mt(23),Tr=rt(O.createArrayTypeNode(Tr),xe);break;default:return Tr}return Tr}function Nu(xe){var Tr=ee();return mt(xe),rt(O.createTypeOperatorNode(xe,jc()),Tr)}function gf(){var xe=ee();return rt(O.createTypeParameterDeclaration(_i(),void 0,void 0),xe)}function Zl(){var xe=ee();return mt(137),rt(O.createInferTypeNode(gf()),xe)}function jc(){var xe=me();switch(xe){case 140:case 153:case 144:return Nu(xe);case 137:return Zl()}return Ys()}function Mr(xe){if(kc()){var Tr=ri(),Gr=void 0;return e.isFunctionTypeNode(Tr)?Gr=xe?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:Gr=xe?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,Ee(Tr,Gr),Tr}}function $l(xe,Tr,Gr){var at=ee(),Ct=xe===51,Xt=en(xe),On=Xt&&Mr(Ct)||Tr();if(me()===xe||Xt){for(var $n=[On];en(xe);)$n.push(Mr(Ct)||Tr());On=rt(Gr(It($n,at)),at)}return On}function pc(){return $l(50,jc,O.createIntersectionTypeNode)}function ku(){return $l(51,pc,O.createUnionTypeNode)}function ol(){return fr(),me()===103}function kc(){return me()===29||me()===20&&ht(fo)?!0:me()===103||me()===126&&ht(ol)}function vf(){if(e.isModifierKind(me())&&bc(),Qt()||me()===108)return fr(),!0;if(me()===22||me()===18){var xe=Me.length;return Qs(),xe===Me.length}return!1}function fo(){return fr(),!!(me()===21||me()===25||vf()&&(me()===58||me()===27||me()===57||me()===63||me()===21&&(fr(),me()===38)))}function Zf(){var xe=ee(),Tr=Qt()&&xt(hf),Gr=_s();return Tr?rt(O.createTypePredicateNode(void 0,Tr,Gr),xe):Gr}function hf(){var xe=_i();if(me()===139&&!u.hasPrecedingLineBreak())return fr(),xe}function Nd(){var xe=ee(),Tr=qt(128),Gr=me()===108?Xn():_i(),at=en(139)?_s():void 0;return rt(O.createTypePredicateNode(Tr,Gr,at),xe)}function _s(){return Jr(40960,Hc)}function Hc(xe){if(kc())return ri();var Tr=ee(),Gr=ku();if(!xe&&!u.hasPrecedingLineBreak()&&en(94)){var at=Hc(!0);mt(57);var Ct=Hc();mt(58);var Xt=Hc();return rt(O.createConditionalTypeNode(Gr,at,Ct,Xt),Tr)}return Gr}function Jc(){return en(58)?_s():void 0}function qp(){switch(me()){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 ht(pn);default:return Qt()}}function dl(){if(qp())return!0;switch(me()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 132:case 125:case 80:return!0;default:return Pd()?!0:Qt()}}function Xp(){return me()!==18&&me()!==98&&me()!==84&&me()!==59&&dl()}function Rs(){var xe=sr();xe&&He(!1);for(var Tr=ee(),Gr=Zn(),at;at=St(27);)Gr=Md(Gr,at,Zn(),Tr);return xe&&He(!0),Gr}function Ja(){return en(63)?Zn():void 0}function Zn(){if(Oc())return yf();var xe=kd()||Rd();if(xe)return xe;var Tr=ee(),Gr=ed(0);return Gr.kind===79&&me()===38?Ou(Tr,Gr,void 0):e.isLeftHandSideExpression(Gr)&&e.isAssignmentOperator(et())?Md(Gr,dn(),Zn(),Tr):C_(Gr,Tr)}function Oc(){return me()===125?ir()?!0:ht(xf):!1}function ks(){return fr(),!u.hasPrecedingLineBreak()&&Qt()}function yf(){var xe=ee();return fr(),!u.hasPrecedingLineBreak()&&(me()===41||dl())?rt(O.createYieldExpression(St(41),Zn()),xe):rt(O.createYieldExpression(void 0,void 0),xe)}function Ou(xe,Tr,Gr){e.Debug.assert(me()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var at=O.createParameterDeclaration(void 0,void 0,void 0,Tr,void 0,void 0,void 0);rt(at,Tr.pos);var Ct=It([at],at.pos,at.end),Xt=qt(38),On=Xl(!!Gr),$n=O.createArrowFunction(Gr,void 0,Ct,void 0,Xt,On);return ur(rt($n,xe))}function kd(){var xe=Uo();if(xe!==0)return xe===1?yp(!0):xt(Od)}function Uo(){return me()===20||me()===29||me()===131?ht($f):me()===38?1:0}function $f(){if(me()===131&&(fr(),u.hasPrecedingLineBreak()||me()!==20&&me()!==29))return 0;var xe=me(),Tr=fr();if(xe===20){if(Tr===21){var Gr=fr();switch(Gr){case 38:case 58:case 18:return 1;default:return 0}}if(Tr===22||Tr===18)return 2;if(Tr===25||e.isModifierKind(Tr)&&Tr!==131&&ht(Po))return 1;if(!Qt()&&Tr!==108)return 0;switch(fr()){case 58:return 1;case 57:return fr(),me()===58||me()===27||me()===63||me()===21?1:0;case 27:case 63:case 21:return 2}return 0}else{if(e.Debug.assert(xe===29),!Qt())return 0;if(ke===1){var at=ht(function(){var Ct=fr();if(Ct===94){var Xt=fr();switch(Xt){case 63:case 31:return!1;default:return!0}}else if(Ct===27)return!0;return!1});return at?1:0}return 2}}function Od(){var xe=u.getTokenPos();if(!(Xe!=null&&Xe.has(xe))){var Tr=yp(!1);return Tr||(Xe||(Xe=new e.Set)).add(xe),Tr}}function Rd(){if(me()===131&&ht(Yp)===1){var xe=ee(),Tr=qc(),Gr=ed(0);return Ou(xe,Gr,Tr)}}function Yp(){if(me()===131){if(fr(),u.hasPrecedingLineBreak()||me()===38)return 0;var xe=ed(0);if(!u.hasPrecedingLineBreak()&&xe.kind===79&&me()===38)return 1}return 0}function yp(xe){var Tr=ee(),Gr=Ne(),at=qc(),Ct=e.some(at,e.isAsyncModifier)?2:0,Xt=Co(),On;if(mt(20)){if(On=fc(Ct),!mt(21)&&!xe)return}else{if(!xe)return;On=So()}var $n=no(58,!1);if(!($n&&!xe&&Qr($n))){var wa=$n&&e.isJSDocFunctionType($n);if(!(!xe&&me()!==38&&(wa||me()!==18))){var Ea=me(),Ki=qt(38),Qo=Ea===38||Ea===18?Xl(e.some(at,e.isAsyncModifier)):_i(),$i=O.createArrowFunction(at,Xt,On,$n,Ki,Qo);return Pe(rt($i,Tr),Gr)}}}function Xl(xe){if(me()===18)return Dn(xe?2:0);if(me()!==26&&me()!==98&&me()!==84&&Gl()&&!Xp())return Dn(16|(xe?2:0));var Tr=Ae;Ae=!1;var Gr=xe?Rt(Zn):cn(Zn);return Ae=Tr,Gr}function C_(xe,Tr){var Gr=St(57);if(!Gr)return xe;var at;return rt(O.createConditionalExpression(xe,Gr,Jr(g,Zn),at=qt(58),e.nodeIsPresent(at)?Zn():Cn(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),Tr)}function ed(xe){var Tr=ee(),Gr=_c();return wd(xe,Gr,Tr)}function bp(xe){return xe===101||xe===159}function wd(xe,Tr,Gr){for(;;){et();var at=e.getBinaryOperatorPrecedence(me()),Ct=me()===42?at>=xe:at>xe;if(!Ct||me()===101&&Rr())break;if(me()===127){if(u.hasPrecedingLineBreak())break;fr(),Tr=Fd(Tr,_s())}else Tr=Md(Tr,dn(),ed(at),Gr)}return Tr}function Pd(){return Rr()&&me()===101?!1:e.getBinaryOperatorPrecedence(me())>0}function Md(xe,Tr,Gr,at){return rt(O.createBinaryExpression(xe,Tr,Gr),at)}function Fd(xe,Tr){return rt(O.createAsExpression(xe,Tr),xe.pos)}function Ep(){var xe=ee();return rt(O.createPrefixUnaryExpression(me(),xr(mc)),xe)}function Qp(){var xe=ee();return rt(O.createDeleteExpression(xr(mc)),xe)}function Gd(){var xe=ee();return rt(O.createTypeOfExpression(xr(mc)),xe)}function Zp(){var xe=ee();return rt(O.createVoidExpression(xr(mc)),xe)}function Bd(){return me()===132?ye()?!0:ht(xf):!1}function fu(){var xe=ee();return rt(O.createAwaitExpression(xr(mc)),xe)}function _c(){if(ec()){var xe=ee(),Tr=Ud();return me()===42?wd(e.getBinaryOperatorPrecedence(me()),Tr,xe):Tr}var Gr=me(),at=mc();if(me()===42){var xe=e.skipTrivia(z,at.pos),Ct=at.end;at.kind===210?je(xe,Ct,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):je(xe,Ct,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(Gr))}return at}function mc(){switch(me()){case 39:case 40:case 54:case 53:return Ep();case 89:return Qp();case 112:return Gd();case 114:return Zp();case 29:return ad();case 132:if(Bd())return fu();default:return Ud()}}function ec(){switch(me()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 132:return!1;case 29:if(ke!==1)return!1;default:return!0}}function Ud(){if(me()===45||me()===46){var xe=ee();return rt(O.createPrefixUnaryExpression(me(),xr(bf)),xe)}else if(ke===1&&me()===29&&ht(Fo))return Ef(!0);var Tr=bf();if(e.Debug.assert(e.isLeftHandSideExpression(Tr)),(me()===45||me()===46)&&!u.hasPrecedingLineBreak()){var Gr=me();return fr(),rt(O.createPostfixUnaryExpression(Tr,Gr),Tr.pos)}return Tr}function bf(){var xe=ee(),Tr;return me()===100?ht(Lt)?(V|=1048576,Tr=dn()):ht(Kt)?(fr(),fr(),Tr=rt(O.createMetaProperty(100,va()),xe),V|=2097152):Tr=Tp():Tr=me()===106?Sp():Tp(),Tf(xe,Tr)}function Tp(){var xe=ee(),Tr=Dl();return Fl(xe,Tr,!0)}function Sp(){var xe=ee(),Tr=dn();if(me()===29){var Gr=ee(),at=xt(id);at!==void 0&&je(Gr,ee(),e.Diagnostics.super_may_not_use_type_arguments)}return me()===20||me()===24||me()===22?Tr:(qt(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),rt(O.createPropertyAccessExpression(Tr,ei(!0,!0)),xe))}function Ef(xe,Tr,Gr){var at=ee(),Ct=Ru(xe),Xt;if(Ct.kind===279){var On=rd(Ct),$n=void 0,wa=On[On.length-1];if((wa==null?void 0:wa.kind)===277&&!C(wa.openingElement.tagName,wa.closingElement.tagName)&&C(Ct.tagName,wa.closingElement.tagName)){var Ea=wa.children.end,Ki=rt(O.createJsxElement(wa.openingElement,wa.children,rt(O.createJsxClosingElement(rt(O.createIdentifier(""),Ea,Ea)),Ea,Ea)),wa.openingElement.pos,Ea);On=It(Gt(Gt([],On.slice(0,On.length-1),!0),[Ki],!1),On.pos,Ea),$n=wa.closingElement}else $n=nd(Ct,xe),C(Ct.tagName,$n.tagName)||(Gr&&e.isJsxOpeningElement(Gr)&&C($n.tagName,Gr.tagName)?Ee(Ct.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(z,Ct.tagName)):Ee($n.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(z,Ct.tagName)));Xt=rt(O.createJsxElement(Ct,On,$n),at)}else Ct.kind===282?Xt=rt(O.createJsxFragment(Ct,rd(Ct),x_(xe)),at):(e.Debug.assert(Ct.kind===278),Xt=Ct);if(xe&&me()===29){var Qo=typeof Tr>"u"?Xt.pos:Tr,$i=xt(function(){return Ef(!0,Qo)});if($i){var Ho=Cn(27,!1);return e.setTextRangePosWidth(Ho,$i.pos,0),je(e.skipTrivia(z,Qo),$i.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),rt(O.createBinaryExpression(Xt,Ho,$i),at)}}return Xt}function $p(){var xe=ee(),Tr=O.createJsxText(u.getTokenValue(),he===12);return he=u.scanJsxToken(),rt(Tr,xe)}function Vd(xe,Tr){switch(Tr){case 1:if(e.isJsxOpeningFragment(xe))Ee(xe,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var Gr=xe.tagName,at=e.skipTrivia(z,Gr.pos);je(at,Gr.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(z,xe.tagName))}return;case 30:case 7:return;case 11:case 12:return $p();case 18:return Pu(!1);case 29:return Ef(!1,void 0,xe);default:return e.Debug.assertNever(Tr)}}function rd(xe){var Tr=[],Gr=ee(),at=qe;for(qe|=1<<14;;){var Ct=Vd(xe,he=u.reScanJsxToken());if(!Ct||(Tr.push(Ct),e.isJsxOpeningElement(xe)&&(Ct==null?void 0:Ct.kind)===277&&!C(Ct.openingElement.tagName,Ct.closingElement.tagName)&&C(xe.tagName,Ct.closingElement.tagName)))break}return qe=at,It(Tr,Gr)}function td(){var xe=ee();return rt(O.createJsxAttributes(Un(13,js)),xe)}function Ru(xe){var Tr=ee();if(mt(29),me()===31)return gt(),rt(O.createJsxOpeningFragment(),Tr);var Gr=wu(),at=(De&131072)===0?gn():void 0,Ct=td(),Xt;return me()===31?(gt(),Xt=O.createJsxOpeningElement(Gr,at,Ct)):(mt(43),mt(31,void 0,!1)&&(xe?fr():gt()),Xt=O.createJsxSelfClosingElement(Gr,at,Ct)),rt(Xt,Tr)}function wu(){var xe=ee();zr();for(var Tr=me()===108?dn():va();en(24);)Tr=rt(O.createPropertyAccessExpression(Tr,ei(!0,!1)),xe);return Tr}function Pu(xe){var Tr=ee();if(!!mt(18)){var Gr,at;return me()!==19&&(Gr=St(25),at=Rs()),xe?mt(19):mt(19,void 0,!1)&>(),rt(O.createJsxExpression(Gr,at),Tr)}}function js(){if(me()===18)return gc();zr();var xe=ee();return rt(O.createJsxAttribute(va(),me()!==63?void 0:vt()===10?ko():Pu(!0)),xe)}function gc(){var xe=ee();mt(18),mt(25);var Tr=Rs();return mt(19),rt(O.createJsxSpreadAttribute(Tr),xe)}function nd(xe,Tr){var Gr=ee();mt(30);var at=wu();return mt(31,void 0,!1)&&(Tr||!C(xe.tagName,at)?fr():gt()),rt(O.createJsxClosingElement(at),Gr)}function x_(xe){var Tr=ee();return mt(30),e.tokenIsIdentifierOrKeyword(me())&&Ee(wu(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),mt(31,void 0,!1)&&(xe?fr():gt()),rt(O.createJsxJsxClosingFragment(),Tr)}function ad(){var xe=ee();mt(29);var Tr=_s();mt(31);var Gr=mc();return rt(O.createTypeAssertion(Tr,Gr),xe)}function Mu(){return fr(),e.tokenIsIdentifierOrKeyword(me())||me()===22||pl()}function I_(){return me()===28&&ht(Mu)}function vc(xe){if(xe.flags&32)return!0;if(e.isNonNullExpression(xe)){for(var Tr=xe.expression;e.isNonNullExpression(Tr)&&!(Tr.flags&32);)Tr=Tr.expression;if(Tr.flags&32){for(;e.isNonNullExpression(xe);)xe.flags|=32,xe=xe.expression;return!0}}return!1}function Ml(xe,Tr,Gr){var at=ei(!0,!0),Ct=Gr||vc(Tr),Xt=Ct?O.createPropertyAccessChain(Tr,Gr,at):O.createPropertyAccessExpression(Tr,at);return Ct&&e.isPrivateIdentifier(Xt.name)&&Ee(Xt.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),rt(Xt,xe)}function Sl(xe,Tr,Gr){var at;if(me()===23)at=Cn(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var Ct=Ar(Rs);e.isStringOrNumericLiteralLike(Ct)&&(Ct.text=Qn(Ct.text)),at=Ct}mt(23);var Xt=Gr||vc(Tr)?O.createElementAccessChain(Tr,Gr,at):O.createElementAccessExpression(Tr,at);return rt(Xt,xe)}function Fl(xe,Tr,Gr){for(;;){var at=void 0,Ct=!1;if(Gr&&I_()?(at=qt(28),Ct=e.tokenIsIdentifierOrKeyword(me())):Ct=en(24),Ct){Tr=Ml(xe,Tr,at);continue}if(!at&&me()===53&&!u.hasPrecedingLineBreak()){fr(),Tr=rt(O.createNonNullExpression(Tr),xe);continue}if((at||!sr())&&en(22)){Tr=Sl(xe,Tr,at);continue}if(pl()){Tr=Dp(xe,Tr,at,void 0);continue}return Tr}}function pl(){return me()===14||me()===15}function Dp(xe,Tr,Gr,at){var Ct=O.createTaggedTemplateExpression(Tr,at,me()===14?(tr(),ko()):xi(!0));return(Gr||Tr.flags&32)&&(Ct.flags|=32),Ct.questionDotToken=Gr,rt(Ct,xe)}function Tf(xe,Tr){for(;;){Tr=Fl(xe,Tr,!0);var Gr=St(28);if((De&131072)===0&&(me()===29||me()===47)){var at=xt(id);if(at){if(pl()){Tr=Dp(xe,Tr,Gr,at);continue}var Ct=Wd(),Xt=Gr||vc(Tr)?O.createCallChain(Tr,Gr,at,Ct):O.createCallExpression(Tr,at,Ct);Tr=rt(Xt,xe);continue}}else if(me()===20){var Ct=Wd(),Xt=Gr||vc(Tr)?O.createCallChain(Tr,Gr,void 0,Ct):O.createCallExpression(Tr,void 0,Ct);Tr=rt(Xt,xe);continue}if(Gr){var On=Cn(79,!1,e.Diagnostics.Identifier_expected);Tr=rt(O.createPropertyAccessChain(Tr,Gr,On),xe)}break}return Tr}function Wd(){mt(20);var xe=$a(11,Yl);return mt(21),xe}function id(){if((De&131072)===0&&Ir()===29){fr();var xe=$a(20,_s);if(!!mt(31))return xe&&mo()?xe:void 0}}function mo(){switch(me()){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 Dl(){switch(me()){case 8:case 9:case 10:case 14:return ko();case 108:case 106:case 104:case 110:case 95:return dn();case 20:return wo();case 22:return od();case 18:return us();case 131:if(!ht(ud))break;return ii();case 84:return Vu();case 98:return ii();case 103:return sd();case 43:case 68:if(yt()===13)return ko();break;case 15:return xi(!1);case 80:return Hi()}return _i(e.Diagnostics.Expression_expected)}function wo(){var xe=ee(),Tr=Ne();mt(20);var Gr=Ar(Rs);return mt(21),Pe(rt(O.createParenthesizedExpression(Gr),xe),Tr)}function ms(){var xe=ee();mt(25);var Tr=Zn();return rt(O.createSpreadElement(Tr),xe)}function e_(){return me()===25?ms():me()===27?rt(O.createOmittedExpression(),ee()):Zn()}function Yl(){return Jr(g,e_)}function od(){var xe=ee();mt(22);var Tr=u.hasPrecedingLineBreak(),Gr=$a(15,e_);return mt(23),rt(O.createArrayLiteralExpression(Gr,Tr),xe)}function Ln(){var xe=ee(),Tr=Ne();if(St(25)){var Gr=Zn();return Pe(rt(O.createSpreadAssignment(Gr),xe),Tr)}var at=ef(),Ct=bc();if(to(136))return du(xe,Tr,at,Ct,171);if(to(148))return du(xe,Tr,at,Ct,172);var Xt=St(41),On=Qt(),$n=Pi(),wa=St(57),Ea=St(53);if(Xt||me()===20||me()===29)return zd(xe,Tr,at,Ct,Xt,$n,wa,Ea);var Ki,Qo=On&&me()!==58;if(Qo){var $i=St(63),Ho=$i?Ar(Zn):void 0;Ki=O.createShorthandPropertyAssignment($n,Ho),Ki.equalsToken=$i}else{mt(58);var gs=Ar(Zn);Ki=O.createPropertyAssignment($n,gs)}return Ki.decorators=at,Ki.modifiers=Ct,Ki.questionToken=wa,Ki.exclamationToken=Ea,Pe(rt(Ki,xe),Tr)}function us(){var xe=ee(),Tr=u.getTokenPos();mt(18);var Gr=u.hasPrecedingLineBreak(),at=$a(12,Ln,!0);if(!mt(19)){var Ct=e.lastOrUndefined(Me);Ct&&Ct.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(Ct,e.createDetachedDiagnostic(Q,Tr,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return rt(O.createObjectLiteralExpression(at,Gr),xe)}function ii(){var xe=sr();He(!1);var Tr=ee(),Gr=Ne(),at=bc();mt(98);var Ct=St(41),Xt=Ct?1:0,On=e.some(at,e.isAsyncModifier)?2:0,$n=Xt&&On?bn(Rc):Xt?lt(Rc):On?Rt(Rc):Rc(),wa=Co(),Ea=Ws(Xt|On),Ki=no(58,!1),Qo=Dn(Xt|On);He(xe);var $i=O.createFunctionExpression(at,Ct,$n,wa,Ea,Ki,Qo);return Pe(rt($i,Tr),Gr)}function Rc(){return wt()?Ci():void 0}function sd(){var xe=ee();if(mt(103),en(24)){var Tr=va();return rt(O.createMetaProperty(103,Tr),xe)}for(var Gr=ee(),at=Dl(),Ct;;){at=Fl(Gr,at,!1),Ct=xt(id),pl()&&(e.Debug.assert(!!Ct,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),at=Dp(Gr,at,void 0,Ct),Ct=void 0);break}var Xt;return me()===20?Xt=Wd():Ct&&je(xe,u.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list),rt(O.createNewExpression(at,Ct,Xt),xe)}function sl(xe,Tr){var Gr=ee(),at=Ne(),Ct=u.getTokenPos();if(mt(18,Tr)||xe){var Xt=u.hasPrecedingLineBreak(),On=Un(1,Ga);if(!mt(19)){var $n=e.lastOrUndefined(Me);$n&&$n.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo($n,e.createDetachedDiagnostic(Q,Ct,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}var wa=Pe(rt(O.createBlock(On,Xt),Gr),at);return me()===63&&(or(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),fr()),wa}else{var On=So();return Pe(rt(O.createBlock(On,void 0),Gr),at)}}function Dn(xe,Tr){var Gr=ir();Fr(!!(xe&1));var at=ye();pr(!!(xe&2));var Ct=Ae;Ae=!1;var Xt=sr();Xt&&He(!1);var On=sl(!!(xe&16),Tr);return Xt&&He(!0),Ae=Ct,Fr(Gr),pr(at),On}function N_(){var xe=ee(),Tr=Ne();return mt(26),Pe(rt(O.createEmptyStatement(),xe),Tr)}function rs(){var xe=ee(),Tr=Ne();mt(99),mt(20);var Gr=Ar(Rs);mt(21);var at=Ga(),Ct=en(91)?Ga():void 0;return Pe(rt(O.createIfStatement(Gr,at,Ct),xe),Tr)}function fs(){var xe=ee(),Tr=Ne();mt(90);var Gr=Ga();mt(115),mt(20);var at=Ar(Rs);return mt(21),en(26),Pe(rt(O.createDoStatement(Gr,at),xe),Tr)}function wc(){var xe=ee(),Tr=Ne();mt(115),mt(20);var Gr=Ar(Rs);mt(21);var at=Ga();return Pe(rt(O.createWhileStatement(Gr,at),xe),Tr)}function Hs(){var xe=ee(),Tr=Ne();mt(97);var Gr=St(132);mt(20);var at;me()!==26&&(me()===113||me()===119||me()===85?at=Bl(!0):at=Yr(Rs));var Ct;if(Gr?mt(159):en(159)){var Xt=Ar(Zn);mt(21),Ct=O.createForOfStatement(Gr,at,Xt,Ga())}else if(en(101)){var Xt=Ar(Rs);mt(21),Ct=O.createForInStatement(at,Xt,Ga())}else{mt(26);var On=me()!==26&&me()!==21?Ar(Rs):void 0;mt(26);var $n=me()!==21?Ar(Rs):void 0;mt(21),Ct=O.createForStatement(at,On,$n,Ga())}return Pe(rt(Ct,xe),Tr)}function Sf(xe){var Tr=ee(),Gr=Ne();mt(xe===245?81:86);var at=pt()?void 0:_i();Pt();var Ct=xe===245?O.createBreakStatement(at):O.createContinueStatement(at);return Pe(rt(Ct,Tr),Gr)}function ws(){var xe=ee(),Tr=Ne();mt(105);var Gr=pt()?void 0:Ar(Rs);return Pt(),Pe(rt(O.createReturnStatement(Gr),xe),Tr)}function Pc(){var xe=ee(),Tr=Ne();mt(116),mt(20);var Gr=Ar(Rs);mt(21);var at=ze(16777216,Ga);return Pe(rt(O.createWithStatement(Gr,at),xe),Tr)}function Qu(){var xe=ee();mt(82);var Tr=Ar(Rs);mt(58);var Gr=Un(3,Ga);return rt(O.createCaseClause(Tr,Gr),xe)}function Df(){var xe=ee();mt(88),mt(58);var Tr=Un(3,Ga);return rt(O.createDefaultClause(Tr),xe)}function hc(){return me()===82?Qu():Df()}function Lf(){var xe=ee();mt(18);var Tr=Un(2,hc);return mt(19),rt(O.createCaseBlock(Tr),xe)}function ll(){var xe=ee(),Tr=Ne();mt(107),mt(20);var Gr=Ar(Rs);mt(21);var at=Lf();return Pe(rt(O.createSwitchStatement(Gr,at),xe),Tr)}function r_(){var xe=ee(),Tr=Ne();mt(109);var Gr=u.hasPrecedingLineBreak()?void 0:Ar(Rs);return Gr===void 0&&(Le++,Gr=rt(O.createIdentifier(""),ee())),_t()||sa(Gr),Pe(rt(O.createThrowStatement(Gr),xe),Tr)}function Fu(){var xe=ee(),Tr=Ne();mt(111);var Gr=sl(!1),at=me()===83?Af():void 0,Ct;return(!at||me()===96)&&(mt(96),Ct=sl(!1)),Pe(rt(O.createTryStatement(Gr,at,Ct),xe),Tr)}function Af(){var xe=ee();mt(83);var Tr;en(20)?(Tr=jo(),mt(21)):Tr=void 0;var Gr=sl(!1);return rt(O.createCatchClause(Tr,Gr),xe)}function ld(){var xe=ee(),Tr=Ne();return mt(87),Pt(),Pe(rt(O.createDebuggerStatement(),xe),Tr)}function cd(){var xe=ee(),Tr=Ne(),Gr,at=me()===20,Ct=Ar(Rs);return e.isIdentifier(Ct)&&en(58)?Gr=O.createLabeledStatement(Ct,Ga()):(_t()||sa(Ct),Gr=O.createExpressionStatement(Ct),at&&(Tr=!1)),Pe(rt(Gr,xe),Tr)}function Cf(){return fr(),e.tokenIsIdentifierOrKeyword(me())&&!u.hasPrecedingLineBreak()}function yc(){return fr(),me()===84&&!u.hasPrecedingLineBreak()}function ud(){return fr(),me()===98&&!u.hasPrecedingLineBreak()}function xf(){return fr(),(e.tokenIsIdentifierOrKeyword(me())||me()===8||me()===9||me()===10)&&!u.hasPrecedingLineBreak()}function Gu(){for(;;)switch(me()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 151:return ks();case 141:case 142:return Zu();case 126:case 131:case 135:case 121:case 122:case 123:case 144:if(fr(),u.hasPrecedingLineBreak())return!1;continue;case 156:return fr(),me()===18||me()===79||me()===93;case 100:return fr(),me()===10||me()===41||me()===18||e.tokenIsIdentifierOrKeyword(me());case 93:var xe=fr();if(xe===151&&(xe=ht(fr)),xe===63||xe===41||xe===18||xe===88||xe===127)return!0;continue;case 124:fr();continue;default:return!1}}function Js(){return ht(Gu)}function Gl(){switch(me()){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 Js()||ht(pn);case 85:case 93:return Js();case 131:case 135:case 118:case 141:case 142:case 151:case 156:return!0;case 123:case 121:case 122:case 124:case 144:return Js()||!ht(Cf);default:return dl()}}function Kc(){return fr(),wt()||me()===18||me()===22}function fd(){return ht(Kc)}function Ga(){switch(me()){case 26:return N_();case 18:return sl(!1);case 113:return nc(ee(),Ne(),void 0,void 0);case 119:if(fd())return nc(ee(),Ne(),void 0,void 0);break;case 98:return Nf(ee(),Ne(),void 0,void 0);case 84:return Xc(ee(),Ne(),void 0,void 0);case 99:return rs();case 90:return fs();case 115:return wc();case 97:return Hs();case 86:return Sf(244);case 81:return Sf(245);case 105:return ws();case 116:return Pc();case 107:return ll();case 109:return r_();case 111:case 83:case 96:return Fu();case 87:return ld();case 59:return Ts();case 131:case 118:case 151:case 141:case 142:case 135:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 144:case 156:if(Js())return Ts();break}return cd()}function wn(xe){return xe.kind===135}function Ts(){var xe=e.some(ht(function(){return ef(),bc()}),wn);if(xe){var Tr=jd();if(Tr)return Tr}var Gr=ee(),at=Ne(),Ct=ef(),Xt=bc();if(xe){for(var On=0,$n=Xt;On<$n.length;On++){var wa=$n[On];wa.flags|=8388608}return ze(8388608,function(){return rc(Gr,at,Ct,Xt)})}else return rc(Gr,at,Ct,Xt)}function jd(){return ze(8388608,function(){var xe=oe(qe);if(xe)return mr(xe)})}function rc(xe,Tr,Gr,at){switch(me()){case 113:case 119:case 85:return nc(xe,Tr,Gr,at);case 98:return Nf(xe,Tr,Gr,at);case 84:return Xc(xe,Tr,Gr,at);case 118:return Zd(xe,Tr,Gr,at);case 151:return Mc(xe,Tr,Gr,at);case 92:return k_(xe,Tr,Gr,at);case 156:case 141:case 142:return Ap(xe,Tr,Gr,at);case 100:return Pf(xe,Tr,Gr,at);case 93:switch(fr(),me()){case 88:case 63:return $c(xe,Tr,Gr,at);case 127:return Qc(xe,Tr,Gr,at);default:return Zc(xe,Tr,Gr,at)}default:if(Gr||at){var Ct=Cn(275,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(Ct,xe),Ct.decorators=Gr,Ct.modifiers=at,Ct}return}}function Zu(){return fr(),!u.hasPrecedingLineBreak()&&(Qt()||me()===10)}function zc(xe,Tr){if(me()!==18&&pt()){Pt();return}return Dn(xe,Tr)}function Hd(){var xe=ee();if(me()===27)return rt(O.createOmittedExpression(),xe);var Tr=St(25),Gr=Qs(),at=Ja();return rt(O.createBindingElement(Tr,void 0,Gr,at),xe)}function Ll(){var xe=ee(),Tr=St(25),Gr=wt(),at=Pi(),Ct;Gr&&me()!==58?(Ct=at,at=void 0):(mt(58),Ct=Qs());var Xt=Ja();return rt(O.createBindingElement(Tr,at,Ct,Xt),xe)}function tc(){var xe=ee();mt(18);var Tr=$a(9,Ll);return mt(19),rt(O.createObjectBindingPattern(Tr),xe)}function If(){var xe=ee();mt(22);var Tr=$a(10,Hd);return mt(23),rt(O.createArrayBindingPattern(Tr),xe)}function $u(){return me()===18||me()===22||me()===80||wt()}function Qs(xe){return me()===22?If():me()===18?tc():Ci(xe)}function Jd(){return jo(!0)}function jo(xe){var Tr=ee(),Gr=Ne(),at=Qs(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations),Ct;xe&&at.kind===79&&me()===53&&!u.hasPrecedingLineBreak()&&(Ct=dn());var Xt=Jc(),On=bp(me())?void 0:Ja(),$n=O.createVariableDeclaration(at,Ct,Xt,On);return Pe(rt($n,Tr),Gr)}function Bl(xe){var Tr=ee(),Gr=0;switch(me()){case 113:break;case 119:Gr|=1;break;case 85:Gr|=2;break;default:e.Debug.fail()}fr();var at;if(me()===159&&ht(Kd))at=So();else{var Ct=Rr();Dr(xe),at=$a(8,xe?jo:Jd),Dr(Ct)}return rt(O.createVariableDeclarationList(at,Gr),Tr)}function Kd(){return Po()&&fr()===21}function nc(xe,Tr,Gr,at){var Ct=Bl(!1);Pt();var Xt=O.createVariableStatement(at,Ct);return Xt.decorators=Gr,Pe(rt(Xt,xe),Tr)}function Nf(xe,Tr,Gr,at){var Ct=ye(),Xt=e.modifiersToFlags(at);mt(98);var On=St(41),$n=Xt&512?Rc():Ci(),wa=On?1:0,Ea=Xt&256?2:0,Ki=Co();Xt&1&&pr(!0);var Qo=Ws(wa|Ea),$i=no(58,!1),Ho=zc(wa|Ea,e.Diagnostics.or_expected);pr(Ct);var gs=O.createFunctionDeclaration(Gr,at,On,$n,Ki,Qo,$i,Ho);return Pe(rt(gs,xe),Tr)}function Bu(){if(me()===134)return mt(134);if(me()===10&&ht(fr)===20)return xt(function(){var xe=ko();return xe.text==="constructor"?xe:void 0})}function dd(xe,Tr,Gr,at){return xt(function(){if(Bu()){var Ct=Co(),Xt=Ws(0),On=no(58,!1),$n=zc(0,e.Diagnostics.or_expected),wa=O.createConstructorDeclaration(Gr,at,Xt,$n);return wa.typeParameters=Ct,wa.type=On,Pe(rt(wa,xe),Tr)}})}function zd(xe,Tr,Gr,at,Ct,Xt,On,$n,wa){var Ea=Ct?1:0,Ki=e.some(at,e.isAsyncModifier)?2:0,Qo=Co(),$i=Ws(Ea|Ki),Ho=no(58,!1),gs=zc(Ea|Ki,wa),_l=O.createMethodDeclaration(Gr,at,Ct,Xt,On,Qo,$i,Ho,gs);return _l.exclamationToken=$n,Pe(rt(_l,xe),Tr)}function Al(xe,Tr,Gr,at,Ct,Xt){var On=!Xt&&!u.hasPrecedingLineBreak()?St(53):void 0,$n=Jc(),wa=Jr(45056,Ja);na(Ct,$n,wa);var Ea=O.createPropertyDeclaration(Gr,at,Ct,Xt||On,$n,wa);return Pe(rt(Ea,xe),Tr)}function ts(xe,Tr,Gr,at){var Ct=St(41),Xt=Pi(),On=St(57);return Ct||me()===20||me()===29?zd(xe,Tr,Gr,at,Ct,Xt,On,void 0,e.Diagnostics.or_expected):Al(xe,Tr,Gr,at,Xt,On)}function du(xe,Tr,Gr,at,Ct){var Xt=Pi(),On=Co(),$n=Ws(0),wa=no(58,!1),Ea=zc(0),Ki=Ct===171?O.createGetAccessorDeclaration(Gr,at,Xt,$n,wa,Ea):O.createSetAccessorDeclaration(Gr,at,Xt,$n,Ea);return Ki.typeParameters=On,wa&&Ki.kind===172&&(Ki.type=wa),Pe(rt(Ki,xe),Tr)}function qd(){var xe;if(me()===59)return!0;for(;e.isModifierKind(me());){if(xe=me(),e.isClassMemberModifier(xe))return!0;fr()}if(me()===41||(yi()&&(xe=me(),fr()),me()===22))return!0;if(xe!==void 0){if(!e.isKeyword(xe)||xe===148||xe===136)return!0;switch(me()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return pt()}}return!1}function ac(xe,Tr,Gr,at){qt(124);var Ct=kf();return Pe(rt(O.createClassStaticBlockDeclaration(Gr,at,Ct),xe),Tr)}function kf(){var xe=ir(),Tr=ye();Fr(!1),pr(!0);var Gr=sl(!1);return Fr(xe),pr(Tr),Gr}function Uu(){if(ye()&&me()===132){var xe=ee(),Tr=_i(e.Diagnostics.Expression_expected);fr();var Gr=Fl(xe,Tr,!0);return Tf(xe,Gr)}return bf()}function Xd(){var xe=ee();if(!!en(59)){var Tr=tt(Uu);return rt(O.createDecorator(Tr),xe)}}function ef(){for(var xe=ee(),Tr,Gr;Gr=Xd();)Tr=e.append(Tr,Gr);return Tr&&It(Tr,xe)}function Of(xe,Tr,Gr){var at=ee(),Ct=me();if(me()===85&&xe){if(!xt(No))return}else{if(Tr&&me()===124&&ht(_d))return;if(Gr&&me()===124)return;if(!Yo())return}return rt(O.createToken(Ct),at)}function bc(xe,Tr){for(var Gr=ee(),at,Ct,Xt=!1;Ct=Of(xe,Tr,Xt);)Ct.kind===124&&(Xt=!0),at=e.append(at,Ct);return at&&It(at,Gr)}function qc(){var xe;if(me()===131){var Tr=ee();fr();var Gr=rt(O.createToken(131),Tr);xe=It([Gr],Tr)}return xe}function rf(){var xe=ee();if(me()===26)return fr(),rt(O.createSemicolonClassElement(),xe);var Tr=Ne(),Gr=ef(),at=bc(!0,!0);if(me()===124&&ht(_d))return ac(xe,Tr,Gr,at);if(to(136))return du(xe,Tr,Gr,at,171);if(to(148))return du(xe,Tr,Gr,at,172);if(me()===134||me()===10){var Ct=dd(xe,Tr,Gr,at);if(Ct)return Ct}if(La())return dc(xe,Tr,Gr,at);if(e.tokenIsIdentifierOrKeyword(me())||me()===10||me()===8||me()===41||me()===22){var Xt=e.some(at,wn);if(Xt){for(var On=0,$n=at;On<$n.length;On++){var wa=$n[On];wa.flags|=8388608}return ze(8388608,function(){return ts(xe,Tr,Gr,at)})}else return ts(xe,Tr,Gr,at)}if(Gr||at){var Ea=Cn(79,!0,e.Diagnostics.Declaration_expected);return Al(xe,Tr,Gr,at,Ea,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function Vu(){return Yd(ee(),Ne(),void 0,void 0,225)}function Xc(xe,Tr,Gr,at){return Yd(xe,Tr,Gr,at,256)}function Yd(xe,Tr,Gr,at,Ct){var Xt=ye();mt(84);var On=Ec(),$n=Co();e.some(at,e.isExportModifier)&&pr(!0);var wa=t_(),Ea;mt(18)?(Ea=Qd(),mt(19)):Ea=So(),pr(Xt);var Ki=Ct===256?O.createClassDeclaration(Gr,at,On,$n,wa,Ea):O.createClassExpression(Gr,at,On,$n,wa,Ea);return Pe(rt(Ki,xe),Tr)}function Ec(){return wt()&&!Wu()?Ra(wt()):void 0}function Wu(){return me()===117&&ht(Mo)}function t_(){if(Rf())return Un(22,Wa)}function Wa(){var xe=ee(),Tr=me();e.Debug.assert(Tr===94||Tr===117),fr();var Gr=$a(7,pu);return rt(O.createHeritageClause(Tr,Gr),xe)}function pu(){var xe=ee(),Tr=bf(),Gr=gn();return rt(O.createExpressionWithTypeArguments(Tr,Gr),xe)}function gn(){return me()===29?bt(20,_s,29,31):void 0}function Rf(){return me()===94||me()===117}function Qd(){return Un(5,rf)}function Zd(xe,Tr,Gr,at){mt(118);var Ct=_i(),Xt=Co(),On=t_(),$n=kn(),wa=O.createInterfaceDeclaration(Gr,at,Ct,Xt,On,$n);return Pe(rt(wa,xe),Tr)}function Mc(xe,Tr,Gr,at){mt(151);var Ct=_i(),Xt=Co();mt(63);var On=me()===138&&xt(Ta)||_s();Pt();var $n=O.createTypeAliasDeclaration(Gr,at,Ct,Xt,On);return Pe(rt($n,xe),Tr)}function $d(){var xe=ee(),Tr=Ne(),Gr=Pi(),at=Ar(Ja);return Pe(rt(O.createEnumMember(Gr,at),xe),Tr)}function k_(xe,Tr,Gr,at){mt(92);var Ct=_i(),Xt;mt(18)?(Xt=In(function(){return $a(6,$d)}),mt(19)):Xt=So();var On=O.createEnumDeclaration(Gr,at,Ct,Xt);return Pe(rt(On,xe),Tr)}function Yc(){var xe=ee(),Tr;return mt(18)?(Tr=Un(1,Ga),mt(19)):Tr=So(),rt(O.createModuleBlock(Tr),xe)}function Lp(xe,Tr,Gr,at,Ct){var Xt=Ct&16,On=_i(),$n=en(24)?Lp(ee(),!1,void 0,void 0,4|Xt):Yc(),wa=O.createModuleDeclaration(Gr,at,On,$n,Ct);return Pe(rt(wa,xe),Tr)}function pd(xe,Tr,Gr,at){var Ct=0,Xt;me()===156?(Xt=_i(),Ct|=1024):(Xt=ko(),Xt.text=Qn(Xt.text));var On;me()===18?On=Yc():Pt();var $n=O.createModuleDeclaration(Gr,at,Xt,On,Ct);return Pe(rt($n,xe),Tr)}function Ap(xe,Tr,Gr,at){var Ct=0;if(me()===156)return pd(xe,Tr,Gr,at);if(en(142))Ct|=16;else if(mt(141),me()===10)return pd(xe,Tr,Gr,at);return Lp(xe,Tr,Gr,at,Ct)}function Ul(){return me()===145&&ht(wf)}function wf(){return fr()===20}function _d(){return fr()===18}function Fc(){return fr()===43}function Qc(xe,Tr,Gr,at){mt(127),mt(142);var Ct=_i();Pt();var Xt=O.createNamespaceExportDeclaration(Ct);return Xt.decorators=Gr,Xt.modifiers=at,Pe(rt(Xt,xe),Tr)}function Pf(xe,Tr,Gr,at){mt(100);var Ct=u.getStartPos(),Xt;Qt()&&(Xt=_i());var On=!1;if(me()!==155&&(Xt==null?void 0:Xt.escapedText)==="type"&&(Qt()||nt())&&(On=!0,Xt=Qt()?_i():void 0),Xt&&!Ot())return fa(xe,Tr,Gr,at,Xt,On);var $n;(Xt||me()===41||me()===18)&&($n=Oa(Xt,Ct,On),mt(155));var wa=Na(),Ea;me()===129&&!u.hasPrecedingLineBreak()&&(Ea=Qe()),Pt();var Ki=O.createImportDeclaration(Gr,at,$n,wa,Ea);return Pe(rt(Ki,xe),Tr)}function E(){var xe=ee(),Tr=e.tokenIsIdentifierOrKeyword(me())?va():wr(10);mt(58);var Gr=wr(10);return rt(O.createAssertEntry(Tr,Gr),xe)}function Qe(){var xe=ee();mt(129);var Tr=u.getTokenPos();if(mt(18)){var Gr=u.hasPrecedingLineBreak(),at=$a(24,E,!0);if(!mt(19)){var Ct=e.lastOrUndefined(Me);Ct&&Ct.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(Ct,e.createDetachedDiagnostic(Q,Tr,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return rt(O.createAssertClause(at,Gr),xe)}else{var at=It([],ee(),void 0,!1);return rt(O.createAssertClause(at,!1),xe)}}function nt(){return me()===41||me()===18}function Ot(){return me()===27||me()===155}function fa(xe,Tr,Gr,at,Ct,Xt){mt(63);var On=ia();Pt();var $n=O.createImportEqualsDeclaration(Gr,at,Xt,Ct,On),wa=Pe(rt($n,xe),Tr);return wa}function Oa(xe,Tr,Gr){var at;return(!xe||en(27))&&(at=me()===41?Ua():Go(268)),rt(O.createImportClause(Gr,xe,at),Tr)}function ia(){return Ul()?ti():Mn(!1)}function ti(){var xe=ee();mt(145),mt(20);var Tr=Na();return mt(21),rt(O.createExternalModuleReference(Tr),xe)}function Na(){if(me()===10){var xe=ko();return xe.text=Qn(xe.text),xe}else return Rs()}function Ua(){var xe=ee();mt(41),mt(127);var Tr=_i();return rt(O.createNamespaceImport(Tr),xe)}function Go(xe){var Tr=ee(),Gr=xe===268?O.createNamedImports(bt(23,os,18,19)):O.createNamedExports(bt(23,cl,18,19));return rt(Gr,Tr)}function cl(){return is(274)}function os(){return is(269)}function is(xe){var Tr=ee(),Gr=e.isKeyword(me())&&!Qt(),at=u.getTokenPos(),Ct=u.getTextPos(),Xt=!1,On,$n=!0,wa=va();if(wa.escapedText==="type")if(me()===127){var Ea=va();if(me()===127){var Ki=va();e.tokenIsIdentifierOrKeyword(me())?(Xt=!0,On=Ea,wa=$i(),$n=!1):(On=wa,wa=Ki,$n=!1)}else e.tokenIsIdentifierOrKeyword(me())?(On=wa,$n=!1,wa=$i()):(Xt=!0,wa=Ea)}else e.tokenIsIdentifierOrKeyword(me())&&(Xt=!0,wa=$i());$n&&me()===127&&(On=wa,mt(127),wa=$i()),xe===269&&Gr&&je(at,Ct,e.Diagnostics.Identifier_expected);var Qo=xe===269?O.createImportSpecifier(Xt,On,wa):O.createExportSpecifier(Xt,On,wa);return rt(Qo,Tr);function $i(){return Gr=e.isKeyword(me())&&!Qt(),at=u.getTokenPos(),Ct=u.getTextPos(),va()}}function Vl(xe){return rt(O.createNamespaceExport(va()),xe)}function Zc(xe,Tr,Gr,at){var Ct=ye();pr(!0);var Xt,On,$n,wa=en(151),Ea=ee();en(41)?(en(127)&&(Xt=Vl(Ea)),mt(155),On=Na()):(Xt=Go(272),(me()===155||me()===10&&!u.hasPrecedingLineBreak())&&(mt(155),On=Na())),On&&me()===129&&!u.hasPrecedingLineBreak()&&($n=Qe()),Pt(),pr(Ct);var Ki=O.createExportDeclaration(Gr,at,wa,Xt,On,$n);return Pe(rt(Ki,xe),Tr)}function $c(xe,Tr,Gr,at){var Ct=ye();pr(!0);var Xt;en(63)?Xt=!0:mt(88);var On=Zn();Pt(),pr(Ct);var $n=O.createExportAssignment(Gr,at,Xt,On);return Pe(rt($n,xe),Tr)}function md(xe){xe.externalModuleIndicator=e.forEach(xe.statements,n_)||tf(xe)}function n_(xe){return a_(xe,93)||e.isImportEqualsDeclaration(xe)&&e.isExternalModuleReference(xe.moduleReference)||e.isImportDeclaration(xe)||e.isExportAssignment(xe)||e.isExportDeclaration(xe)?xe:void 0}function tf(xe){return xe.flags&2097152?Mf(xe):void 0}function Mf(xe){return gd(xe)?xe:q(xe,Mf)}function a_(xe,Tr){return e.some(xe.modifiers,function(Gr){return Gr.kind===Tr})}function gd(xe){return e.isMetaProperty(xe)&&xe.keywordToken===100&&xe.name.escapedText==="meta"}var Wl;(function(xe){xe[xe.SourceElements=0]="SourceElements",xe[xe.BlockStatements=1]="BlockStatements",xe[xe.SwitchClauses=2]="SwitchClauses",xe[xe.SwitchClauseStatements=3]="SwitchClauseStatements",xe[xe.TypeMembers=4]="TypeMembers",xe[xe.ClassMembers=5]="ClassMembers",xe[xe.EnumMembers=6]="EnumMembers",xe[xe.HeritageClauseElement=7]="HeritageClauseElement",xe[xe.VariableDeclarations=8]="VariableDeclarations",xe[xe.ObjectBindingElements=9]="ObjectBindingElements",xe[xe.ArrayBindingElements=10]="ArrayBindingElements",xe[xe.ArgumentExpressions=11]="ArgumentExpressions",xe[xe.ObjectLiteralMembers=12]="ObjectLiteralMembers",xe[xe.JsxAttributes=13]="JsxAttributes",xe[xe.JsxChildren=14]="JsxChildren",xe[xe.ArrayLiteralMembers=15]="ArrayLiteralMembers",xe[xe.Parameters=16]="Parameters",xe[xe.JSDocParameters=17]="JSDocParameters",xe[xe.RestProperties=18]="RestProperties",xe[xe.TypeParameters=19]="TypeParameters",xe[xe.TypeArguments=20]="TypeArguments",xe[xe.TupleElementTypes=21]="TupleElementTypes",xe[xe.HeritageClauses=22]="HeritageClauses",xe[xe.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",xe[xe.AssertEntries=24]="AssertEntries",xe[xe.Count=25]="Count"})(Wl||(Wl={}));var ep;(function(xe){xe[xe.False=0]="False",xe[xe.True=1]="True",xe[xe.Unknown=2]="Unknown"})(ep||(ep={}));var i_;(function(xe){function Tr(Ea,Ki,Qo){Cr("file.js",Ea,99,void 0,1),u.setText(Ea,Ki,Qo),he=u.scan();var $i=Gr(),Ho=Fe("file.js",99,1,!1,[],O.createToken(1),0),gs=e.attachFileToDiagnostics(Me,Ho);return Ie&&(Ho.jsDocDiagnostics=e.attachFileToDiagnostics(Ie,Ho)),Or(),$i?{jsDocTypeExpression:$i,diagnostics:gs}:void 0}xe.parseJSDocTypeExpressionForTests=Tr;function Gr(Ea){var Ki=ee(),Qo=(Ea?en:mt)(18),$i=ze(4194304,Us);(!Ea||Qo)&&Wn(19);var Ho=O.createJSDocTypeExpression($i);return de(Ho),rt(Ho,Ki)}xe.parseJSDocTypeExpression=Gr;function at(){for(var Ea=ee(),Ki=en(18),Qo=ee(),$i=Mn(!1);me()===80;)kr(),dr(),$i=rt(O.createJSDocMemberName($i,_i()),Qo);Ki&&Wn(19);var Ho=O.createJSDocNameReference($i);return de(Ho),rt(Ho,Ea)}xe.parseJSDocNameReference=at;function Ct(Ea,Ki,Qo){Cr("",Ea,99,void 0,1);var $i=ze(4194304,function(){return wa(Ki,Qo)}),Ho={languageVariant:0,text:Ea},gs=e.attachFileToDiagnostics(Me,Ho);return Or(),$i?{jsDoc:$i,diagnostics:gs}:void 0}xe.parseIsolatedJSDocComment=Ct;function Xt(Ea,Ki,Qo){var $i=he,Ho=Me.length,gs=Ye,_l=ze(4194304,function(){return wa(Ki,Qo)});return e.setParent(_l,Ea),De&131072&&(Ie||(Ie=[]),Ie.push.apply(Ie,Me)),he=$i,Me.length=Ho,Ye=gs,_l}xe.parseJSDocComment=Xt;var On;(function(Ea){Ea[Ea.BeginningOfLine=0]="BeginningOfLine",Ea[Ea.SawAsterisk=1]="SawAsterisk",Ea[Ea.SavingComments=2]="SavingComments",Ea[Ea.SavingBackticks=3]="SavingBackticks"})(On||(On={}));var $n;(function(Ea){Ea[Ea.Property=1]="Property",Ea[Ea.Parameter=2]="Parameter",Ea[Ea.CallbackParameter=4]="CallbackParameter"})($n||($n={}));function wa(Ea,Ki){Ea===void 0&&(Ea=0);var Qo=z,$i=Ki===void 0?Qo.length:Ea+Ki;if(Ki=$i-Ea,e.Debug.assert(Ea>=0),e.Debug.assert(Ea<=$i),e.Debug.assert($i<=Qo.length),!A(Qo,Ea))return;var Ho,gs,_l,xs,Cl,bl=[],ju=[];return u.scanRange(Ea+3,Ki-5,function(){var un=1,pa,Hn=Ea-(Qo.lastIndexOf(`
|
|
`,Ea)+1)+4;function Sa(vl){pa||(pa=Hn),bl.push(vl),Hn+=vl.length}for(dr();xp(5););xp(4)&&(un=0,Hn=0);e:for(;;){switch(me()){case 59:un===0||un===1?(Ps(bl),Cl||(Cl=ee()),si(_(Hn)),un=0,pa=void 0):Sa(u.getTokenText());break;case 4:bl.push(u.getTokenText()),un=0,Hn=0;break;case 41:var Za=u.getTokenText();un===1||un===2?(un=2,Sa(Za)):(un=1,Hn+=Za.length);break;case 5:var zi=u.getTokenText();un===2?bl.push(zi):pa!==void 0&&Hn+zi.length>pa&&bl.push(zi.slice(pa-Hn)),Hn+=zi.length;break;case 1:break e;case 18:un=2;var Bo=u.getStartPos(),Zs=u.getTextPos()-1,gl=Ur(Zs);if(gl){xs||ul(bl),ju.push(rt(O.createJSDocText(bl.join("")),xs!=null?xs:Ea,Bo)),ju.push(gl),bl=[],xs=u.getTextPos();break}default:un=2,Sa(u.getTokenText());break}dr()}Ps(bl),ju.length&&bl.length&&ju.push(rt(O.createJSDocText(bl.join("")),xs!=null?xs:Ea,Cl)),ju.length&&Ho&&e.Debug.assertIsDefined(Cl,"having parsed tags implies that the end of the comment span should be set");var jl=Ho&&It(Ho,gs,_l);return rt(O.createJSDocComment(ju.length?It(ju,Ea,Cl):bl.length?bl.join(""):void 0,jl),Ea,$i)});function ul(un){for(;un.length&&(un[0]===`
|
|
`||un[0]==="\r");)un.shift()}function Ps(un){for(;un.length&&un[un.length-1].trim()==="";)un.pop()}function Ff(){for(;;){if(dr(),me()===1)return!0;if(!(me()===5||me()===4))return!1}}function _u(){if(!((me()===5||me()===4)&&ht(Ff)))for(;me()===5||me()===4;)dr()}function ml(){if((me()===5||me()===4)&&ht(Ff))return"";for(var un=u.hasPrecedingLineBreak(),pa=!1,Hn="";un&&me()===41||me()===5||me()===4;)Hn+=u.getTokenText(),me()===4?(un=!0,pa=!0,Hn=""):me()===41&&(un=!1),dr();return pa?Hn:""}function _(un){e.Debug.assert(me()===59);var pa=u.getTokenPos();dr();var Hn=Ku(void 0),Sa=ml(),Za;switch(Hn.escapedText){case"author":Za=An(pa,Hn,un,Sa);break;case"implements":Za=nf(pa,Hn,un,Sa);break;case"augments":case"extends":Za=O_(pa,Hn,un,Sa);break;case"class":case"constructor":Za=Hu(pa,O.createJSDocClassTag,Hn,un,Sa);break;case"public":Za=Hu(pa,O.createJSDocPublicTag,Hn,un,Sa);break;case"private":Za=Hu(pa,O.createJSDocPrivateTag,Hn,un,Sa);break;case"protected":Za=Hu(pa,O.createJSDocProtectedTag,Hn,un,Sa);break;case"readonly":Za=Hu(pa,O.createJSDocReadonlyTag,Hn,un,Sa);break;case"override":Za=Hu(pa,O.createJSDocOverrideTag,Hn,un,Sa);break;case"deprecated":Hr=!0,Za=Hu(pa,O.createJSDocDeprecatedTag,Hn,un,Sa);break;case"this":Za=rm(pa,Hn,un,Sa);break;case"enum":Za=mu(pa,Hn,un,Sa);break;case"arg":case"argument":case"param":return Gc(pa,Hn,2,un);case"return":case"returns":Za=tp(pa,Hn,un,Sa);break;case"template":Za=Mg(pa,Hn,un,Sa);break;case"type":Za=Bm(pa,Hn,un,Sa);break;case"typedef":Za=Gv(pa,Hn,un,Sa);break;case"callback":Za=s_(pa,Hn,un,Sa);break;case"see":Za=Fv(pa,Hn,un,Sa);break;default:Za=an(pa,Hn,un,Sa);break}return Za}function W(un,pa,Hn,Sa){return Sa||(Hn+=pa-un),be(Hn,Sa.slice(Hn))}function be(un,pa){var Hn=ee(),Sa=[],Za=[],zi,Bo=0,Zs=!0,gl;function jl(nm){gl||(gl=un),Sa.push(nm),un+=nm.length}pa!==void 0&&(pa!==""&&jl(pa),Bo=1);var vl=me();e:for(;;){switch(vl){case 4:Bo=0,Sa.push(u.getTokenText()),un=0;break;case 59:if(Bo===3||Bo===2&&(!Zs||ht(nr))){Sa.push(u.getTokenText());break}u.setTextPos(u.getTextPos()-1);case 1:break e;case 5:if(Bo===2||Bo===3)jl(u.getTokenText());else{var Bf=u.getTokenText();gl!==void 0&&un+Bf.length>gl&&Sa.push(Bf.slice(gl-un)),un+=Bf.length}break;case 18:Bo=2;var po=u.getStartPos(),l_=u.getTextPos()-1,np=Ur(l_);np?(Za.push(rt(O.createJSDocText(Sa.join("")),zi!=null?zi:Hn,po)),Za.push(np),Sa=[],zi=u.getTextPos()):jl(u.getTokenText());break;case 61:Bo===3?Bo=2:Bo=3,jl(u.getTokenText());break;case 41:if(Bo===0){Bo=1,un+=1;break}default:Bo!==3&&(Bo=2),jl(u.getTokenText());break}Zs=me()===5,vl=dr()}if(ul(Sa),Ps(Sa),Za.length)return Sa.length&&Za.push(rt(O.createJSDocText(Sa.join("")),zi!=null?zi:Hn)),It(Za,Hn,u.getTextPos());if(Sa.length)return Sa.join("")}function nr(){var un=dr();return un===5||un===4}function Ur(un){var pa=xt(Ht);if(!!pa){dr(),_u();var Hn=ee(),Sa=e.tokenIsIdentifierOrKeyword(me())?Mn(!0):void 0;if(Sa)for(;me()===80;)kr(),dr(),Sa=rt(O.createJSDocMemberName(Sa,_i()),Hn);for(var Za=[];me()!==19&&me()!==4&&me()!==1;)Za.push(u.getTokenText()),dr();var zi=pa==="link"?O.createJSDocLink:pa==="linkcode"?O.createJSDocLinkCode:O.createJSDocLinkPlain;return rt(zi(Sa,Za.join("")),un,u.getTextPos())}}function Ht(){if(ml(),me()===18&&dr()===59&&e.tokenIsIdentifierOrKeyword(dr())){var un=u.getTokenValue();if(un==="link"||un==="linkcode"||un==="linkplain")return un}}function an(un,pa,Hn,Sa){return rt(O.createJSDocUnknownTag(pa,W(un,ee(),Hn,Sa)),un)}function si(un){!un||(Ho?Ho.push(un):(Ho=[un],gs=un.pos),_l=un.end)}function Io(){return ml(),me()===18?Gr():void 0}function vs(){var un=xp(22);un&&_u();var pa=xp(61),Hn=Fg();return pa&&Pn(61),un&&(_u(),St(63)&&Rs(),mt(23)),{name:Hn,isBracketed:un}}function rp(un){switch(un.kind){case 147:return!0;case 182:return rp(un.elementType);default:return e.isTypeReferenceNode(un)&&e.isIdentifier(un.typeName)&&un.typeName.escapedText==="Object"&&!un.typeArguments}}function Gc(un,pa,Hn,Sa){var Za=Io(),zi=!Za;ml();var Bo=vs(),Zs=Bo.name,gl=Bo.isBracketed,jl=ml();zi&&!ht(Ht)&&(Za=Io());var vl=W(un,ee(),Sa,jl),Bf=Hn!==4&&Gm(Za,Zs,Hn,Sa);Bf&&(Za=Bf,zi=!0);var po=Hn===1?O.createJSDocPropertyTag(pa,Zs,gl,Za,zi,vl):O.createJSDocParameterTag(pa,Zs,gl,Za,zi,vl);return rt(po,un)}function Gm(un,pa,Hn,Sa){if(un&&rp(un.type)){for(var Za=ee(),zi=void 0,Bo=void 0;zi=xt(function(){return Ju(Hn,Sa,pa)});)(zi.kind===338||zi.kind===345)&&(Bo=e.append(Bo,zi));if(Bo){var Zs=rt(O.createJSDocTypeLiteral(Bo,un.type.kind===182),Za);return rt(O.createJSDocTypeExpression(Zs),Za)}}}function tp(un,pa,Hn,Sa){e.some(Ho,e.isJSDocReturnTag)&&je(pa.pos,u.getTokenPos(),e.Diagnostics._0_tag_already_specified,pa.escapedText);var Za=Io();return rt(O.createJSDocReturnTag(pa,Za,W(un,ee(),Hn,Sa)),un)}function Bm(un,pa,Hn,Sa){e.some(Ho,e.isJSDocTypeTag)&&je(pa.pos,u.getTokenPos(),e.Diagnostics._0_tag_already_specified,pa.escapedText);var Za=Gr(!0),zi=Hn!==void 0&&Sa!==void 0?W(un,ee(),Hn,Sa):void 0;return rt(O.createJSDocTypeTag(pa,Za,zi),un)}function Fv(un,pa,Hn,Sa){var Za=me()===22||ht(function(){return dr()===59&&e.tokenIsIdentifierOrKeyword(dr())&&u.getTokenValue()==="link"}),zi=Za?void 0:at(),Bo=Hn!==void 0&&Sa!==void 0?W(un,ee(),Hn,Sa):void 0;return rt(O.createJSDocSeeTag(pa,zi,Bo),un)}function An(un,pa,Hn,Sa){var Za=ee(),zi=Gf(),Bo=u.getStartPos(),Zs=W(un,Bo,Hn,Sa);Zs||(Bo=u.getStartPos());var gl=typeof Zs!="string"?It(e.concatenate([rt(zi,Za,Bo)],Zs),Za):zi.text+Zs;return rt(O.createJSDocAuthorTag(pa,gl),un)}function Gf(){for(var un=[],pa=!1,Hn=u.getToken();Hn!==1&&Hn!==4;){if(Hn===29)pa=!0;else{if(Hn===59&&!pa)break;if(Hn===31&&pa){un.push(u.getTokenText()),u.setTextPos(u.getTokenPos()+1);break}}un.push(u.getTokenText()),Hn=dr()}return O.createJSDocText(un.join(""))}function nf(un,pa,Hn,Sa){var Za=Cp();return rt(O.createJSDocImplementsTag(pa,Za,W(un,ee(),Hn,Sa)),un)}function O_(un,pa,Hn,Sa){var Za=Cp();return rt(O.createJSDocAugmentsTag(pa,Za,W(un,ee(),Hn,Sa)),un)}function Cp(){var un=en(18),pa=ee(),Hn=Um(),Sa=gn(),Za=O.createExpressionWithTypeArguments(Hn,Sa),zi=rt(Za,pa);return un&&mt(19),zi}function Um(){for(var un=ee(),pa=Ku();en(24);){var Hn=Ku();pa=rt(O.createPropertyAccessExpression(pa,Hn),un)}return pa}function Hu(un,pa,Hn,Sa,Za){return rt(pa(Hn,W(un,ee(),Sa,Za)),un)}function rm(un,pa,Hn,Sa){var Za=Gr(!0);return _u(),rt(O.createJSDocThisTag(pa,Za,W(un,ee(),Hn,Sa)),un)}function mu(un,pa,Hn,Sa){var Za=Gr(!0);return _u(),rt(O.createJSDocEnumTag(pa,Za,W(un,ee(),Hn,Sa)),un)}function Gv(un,pa,Hn,Sa){var Za,zi=Io();ml();var Bo=o_();_u();var Zs=be(Hn),gl;if(!zi||rp(zi.type)){for(var jl=void 0,vl=void 0,Bf=void 0,po=!1;jl=xt(function(){return Vm(Hn)});)if(po=!0,jl.kind===341)if(vl){or(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var l_=e.lastOrUndefined(Me);l_&&e.addRelatedInfo(l_,e.createDetachedDiagnostic(Q,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}else vl=jl;else Bf=e.append(Bf,jl);if(po){var np=zi&&zi.type.kind===182,nm=O.createJSDocTypeLiteral(Bf,np);zi=vl&&vl.typeExpression&&!rp(vl.typeExpression.type)?vl.typeExpression:rt(nm,un),gl=zi.end}}gl=gl||Zs!==void 0?ee():((Za=Bo!=null?Bo:zi)!==null&&Za!==void 0?Za:pa).end,Zs||(Zs=W(un,gl,Hn,Sa));var am=O.createJSDocTypedefTag(pa,zi,Bo,Zs);return rt(am,un,gl)}function o_(un){var pa=u.getTokenPos();if(!!e.tokenIsIdentifierOrKeyword(me())){var Hn=Ku();if(en(24)){var Sa=o_(!0),Za=O.createModuleDeclaration(void 0,void 0,Hn,Sa,un?4:void 0);return rt(Za,pa)}return un&&(Hn.isInJSDocNamespace=!0),Hn}}function tm(un){for(var pa=ee(),Hn,Sa;Hn=xt(function(){return Ju(4,un)});)Sa=e.append(Sa,Hn);return It(Sa||[],pa)}function s_(un,pa,Hn,Sa){var Za=o_();_u();var zi=be(Hn),Bo=tm(Hn),Zs=xt(function(){if(xp(59)){var jl=_(Hn);if(jl&&jl.kind===339)return jl}}),gl=rt(O.createJSDocSignature(void 0,Bo,Zs),un);return zi||(zi=W(un,ee(),Hn,Sa)),rt(O.createJSDocCallbackTag(pa,gl,Za,zi),un)}function vd(un,pa){for(;!e.isIdentifier(un)||!e.isIdentifier(pa);)if(!e.isIdentifier(un)&&!e.isIdentifier(pa)&&un.right.escapedText===pa.right.escapedText)un=un.left,pa=pa.left;else return!1;return un.escapedText===pa.escapedText}function Vm(un){return Ju(1,un)}function Ju(un,pa,Hn){for(var Sa=!0,Za=!1;;)switch(dr()){case 59:if(Sa){var zi=Bv(un,pa);return zi&&(zi.kind===338||zi.kind===345)&&un!==4&&Hn&&(e.isIdentifier(zi.name)||!vd(Hn,zi.name.left))?!1:zi}Za=!1;break;case 4:Sa=!0,Za=!1;break;case 41:Za&&(Sa=!1),Za=!0;break;case 79:Sa=!1;break;case 1:return!1}}function Bv(un,pa){e.Debug.assert(me()===59);var Hn=u.getStartPos();dr();var Sa=Ku();_u();var Za;switch(Sa.escapedText){case"type":return un===1&&Bm(Hn,Sa);case"prop":case"property":Za=1;break;case"arg":case"argument":case"param":Za=6;break;default:return!1}return un&Za?Gc(Hn,Sa,un,pa):!1}function Pg(){var un=ee(),pa=xp(22);pa&&_u();var Hn=Ku(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Sa;if(pa&&(_u(),mt(63),Sa=ze(4194304,Us),mt(23)),!e.nodeIsMissing(Hn))return rt(O.createTypeParameterDeclaration(Hn,void 0,Sa),un)}function xl(){var un=ee(),pa=[];do{_u();var Hn=Pg();Hn!==void 0&&pa.push(Hn),ml()}while(xp(27));return It(pa,un)}function Mg(un,pa,Hn,Sa){var Za=me()===18?Gr():void 0,zi=xl();return rt(O.createJSDocTemplateTag(pa,Za,zi,W(un,ee(),Hn,Sa)),un)}function xp(un){return me()===un?(dr(),!0):!1}function Fg(){var un=Ku();for(en(22)&&mt(23);en(24);){var pa=Ku();en(22)&&mt(23),un=da(un,pa)}return un}function Ku(un){if(!e.tokenIsIdentifierOrKeyword(me()))return Cn(79,!un,un||e.Diagnostics.Identifier_expected);Le++;var pa=u.getTokenPos(),Hn=u.getTextPos(),Sa=me(),Za=Qn(u.getTokenValue()),zi=rt(O.createIdentifier(Za,void 0,Sa),pa,Hn);return dr(),zi}}})(i_=m.JSDocParser||(m.JSDocParser={}))})(w||(w={}));var K;(function(m){function u(z,Te,ge,ke){if(ke=ke||e.Debug.shouldAssert(2),O(z,Te,ge,ke),e.textChangeRangeIsUnchanged(ge))return z;if(z.statements.length===0)return w.parseSourceFile(z.fileName,Te,z.languageVersion,void 0,!0,z.scriptKind);var Me=z;e.Debug.assert(!Me.hasBeenIncrementallyParsed),Me.hasBeenIncrementallyParsed=!0,w.fixupParentReferences(Me);var Ie=z.text,Ge=Q(z),he=Se(z,ge);O(z,Te,he,ke),e.Debug.assert(he.span.start<=ge.span.start),e.Debug.assert(e.textSpanEnd(he.span)===e.textSpanEnd(ge.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(he))===e.textSpanEnd(e.textChangeRangeNewSpan(ge)));var ve=e.textChangeRangeNewSpan(he).length-he.span.length;j(Me,he.span.start,e.textSpanEnd(he.span),e.textSpanEnd(e.textChangeRangeNewSpan(he)),ve,Ie,Te,ke);var Ve=w.parseSourceFile(z.fileName,Te,z.languageVersion,Ge,!0,z.scriptKind);return Ve.commentDirectives=g(z.commentDirectives,Ve.commentDirectives,he.span.start,e.textSpanEnd(he.span),ve,Ie,Te,ke),Ve.impliedNodeFormat=z.impliedNodeFormat,Ve}m.updateSourceFile=u;function g(z,Te,ge,ke,Me,Ie,Ge,he){if(!z)return Te;for(var ve,Ve=!1,_e=0,Le=z;_e<Le.length;_e++){var qe=Le[_e],Xe=qe.range,De=qe.type;if(Xe.end<ge)ve=e.append(ve,qe);else if(Xe.pos>ke){Ye();var Ae={range:{pos:Xe.pos+Me,end:Xe.end+Me},type:De};ve=e.append(ve,Ae),he&&e.Debug.assert(Ie.substring(Xe.pos,Xe.end)===Ge.substring(Ae.range.pos,Ae.range.end))}}return Ye(),ve;function Ye(){Ve||(Ve=!0,ve?Te&&ve.push.apply(ve,Te):ve=Te)}}function F(z,Te,ge,ke,Me,Ie){Te?he(z):Ge(z);return;function Ge(ve){var Ve="";if(Ie&&te(ve)&&(Ve=ke.substring(ve.pos,ve.end)),ve._children&&(ve._children=void 0),e.setTextRangePosEnd(ve,ve.pos+ge,ve.end+ge),Ie&&te(ve)&&e.Debug.assert(Ve===Me.substring(ve.pos,ve.end)),q(ve,Ge,he),e.hasJSDocNodes(ve))for(var _e=0,Le=ve.jsDoc;_e<Le.length;_e++){var qe=Le[_e];Ge(qe)}X(ve,Ie)}function he(ve){ve._children=void 0,e.setTextRangePosEnd(ve,ve.pos+ge,ve.end+ge);for(var Ve=0,_e=ve;Ve<_e.length;Ve++){var Le=_e[Ve];Ge(Le)}}}function te(z){switch(z.kind){case 10:case 8:case 79:return!0}return!1}function ue(z,Te,ge,ke,Me){e.Debug.assert(z.end>=Te,"Adjusting an element that was entirely before the change range"),e.Debug.assert(z.pos<=ge,"Adjusting an element that was entirely after the change range"),e.Debug.assert(z.pos<=z.end);var Ie=Math.min(z.pos,ke),Ge=z.end>=ge?z.end+Me:Math.min(z.end,ke);e.Debug.assert(Ie<=Ge),z.parent&&(e.Debug.assertGreaterThanOrEqual(Ie,z.parent.pos),e.Debug.assertLessThanOrEqual(Ge,z.parent.end)),e.setTextRangePosEnd(z,Ie,Ge)}function X(z,Te){if(Te){var ge=z.pos,ke=function(he){e.Debug.assert(he.pos>=ge),ge=he.end};if(e.hasJSDocNodes(z))for(var Me=0,Ie=z.jsDoc;Me<Ie.length;Me++){var Ge=Ie[Me];ke(Ge)}q(z,ke),e.Debug.assert(ge<=z.end)}}function j(z,Te,ge,ke,Me,Ie,Ge,he){ve(z);return;function ve(_e){if(e.Debug.assert(_e.pos<=_e.end),_e.pos>ge){F(_e,!1,Me,Ie,Ge,he);return}var Le=_e.end;if(Le>=Te){if(_e.intersectsChange=!0,_e._children=void 0,ue(_e,Te,ge,ke,Me),q(_e,ve,Ve),e.hasJSDocNodes(_e))for(var qe=0,Xe=_e.jsDoc;qe<Xe.length;qe++){var De=Xe[qe];ve(De)}X(_e,he);return}e.Debug.assert(Le<Te)}function Ve(_e){if(e.Debug.assert(_e.pos<=_e.end),_e.pos>ge){F(_e,!0,Me,Ie,Ge,he);return}var Le=_e.end;if(Le>=Te){_e.intersectsChange=!0,_e._children=void 0,ue(_e,Te,ge,ke,Me);for(var qe=0,Xe=_e;qe<Xe.length;qe++){var De=Xe[qe];ve(De)}return}e.Debug.assert(Le<Te)}}function Se(z,Te){for(var ge=1,ke=Te.span.start,Me=0;ke>0&&Me<=ge;Me++){var Ie=Ce(z,ke);e.Debug.assert(Ie.pos<=ke);var Ge=Ie.pos;ke=Math.max(0,Ge-1)}var he=e.createTextSpanFromBounds(ke,e.textSpanEnd(Te.span)),ve=Te.newLength+(Te.span.start-ke);return e.createTextChangeRange(he,ve)}function Ce(z,Te){var ge=z,ke;if(q(z,Ge),ke){var Me=Ie(ke);Me.pos>ge.pos&&(ge=Me)}return ge;function Ie(he){for(;;){var ve=e.getLastChild(he);if(ve)he=ve;else return he}}function Ge(he){if(!e.nodeIsMissing(he))if(he.pos<=Te){if(he.pos>=ge.pos&&(ge=he),Te<he.end)return q(he,Ge),!0;e.Debug.assert(he.end<=Te),ke=he}else return e.Debug.assert(he.pos>Te),!0}}function O(z,Te,ge,ke){var Me=z.text;if(ge&&(e.Debug.assert(Me.length-ge.span.length+ge.newLength===Te.length),ke||e.Debug.shouldAssert(3))){var Ie=Me.substr(0,ge.span.start),Ge=Te.substr(0,ge.span.start);e.Debug.assert(Ie===Ge);var he=Me.substring(e.textSpanEnd(ge.span),Me.length),ve=Te.substring(e.textSpanEnd(e.textChangeRangeNewSpan(ge)),Te.length);e.Debug.assert(he===ve)}}function Q(z){var Te=z.statements,ge=0;e.Debug.assert(ge<Te.length);var ke=Te[ge],Me=-1;return{currentNode:function(Ge){return Ge!==Me&&(ke&&ke.end===Ge&&ge<Te.length-1&&(ge++,ke=Te[ge]),(!ke||ke.pos!==Ge)&&Ie(Ge)),Me=Ge,e.Debug.assert(!ke||ke.pos===Ge),ke}};function Ie(Ge){Te=void 0,ge=-1,ke=void 0,q(z,he,ve);return;function he(Ve){return Ge>=Ve.pos&&Ge<Ve.end?(q(Ve,he,ve),!0):!1}function ve(Ve){if(Ge>=Ve.pos&&Ge<Ve.end)for(var _e=0;_e<Ve.length;_e++){var Le=Ve[_e];if(Le){if(Le.pos===Ge)return Te=Ve,ge=_e,ke=Le,!0;if(Le.pos<Ge&&Ge<Le.end)return q(Le,he,ve),!0}}return!1}}}m.createSyntaxCursor=Q;var V;(function(z){z[z.Value=-1]="Value"})(V||(V={}))})(K||(K={}));function Z(m){return e.fileExtensionIsOneOf(m,[".d.ts",".d.mts",".d.cts"])}e.isDeclarationFileName=Z;function ne(m,u){for(var g=[],F=0,te=e.getLeadingCommentRanges(u,0)||e.emptyArray;F<te.length;F++){var ue=te[F],X=u.substring(ue.pos,ue.end);I(g,ue,X)}m.pragmas=new e.Map;for(var j=0,Se=g;j<Se.length;j++){var Ce=Se[j];if(m.pragmas.has(Ce.name)){var O=m.pragmas.get(Ce.name);O instanceof Array?O.push(Ce.args):m.pragmas.set(Ce.name,[O,Ce.args]);continue}m.pragmas.set(Ce.name,Ce.args)}}e.processCommentPragmas=ne;function R(m,u){m.checkJsDirective=void 0,m.referencedFiles=[],m.typeReferenceDirectives=[],m.libReferenceDirectives=[],m.amdDependencies=[],m.hasNoDefaultLib=!1,m.pragmas.forEach(function(g,F){switch(F){case"reference":{var te=m.referencedFiles,ue=m.typeReferenceDirectives,X=m.libReferenceDirectives;e.forEach(e.toArray(g),function(O){var Q=O.arguments,V=Q.types,z=Q.lib,Te=Q.path;O.arguments["no-default-lib"]?m.hasNoDefaultLib=!0:V?ue.push({pos:V.pos,end:V.end,fileName:V.value}):z?X.push({pos:z.pos,end:z.end,fileName:z.value}):Te?te.push({pos:Te.pos,end:Te.end,fileName:Te.value}):u(O.range.pos,O.range.end-O.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)});break}case"amd-dependency":{m.amdDependencies=e.map(e.toArray(g),function(O){return{name:O.arguments.name,path:O.arguments.path}});break}case"amd-module":{if(g instanceof Array)for(var j=0,Se=g;j<Se.length;j++){var Ce=Se[j];m.moduleName&&u(Ce.range.pos,Ce.range.end-Ce.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),m.moduleName=Ce.arguments.name}else m.moduleName=g.arguments.name;break}case"ts-nocheck":case"ts-check":{e.forEach(e.toArray(g),function(O){(!m.checkJsDirective||O.range.pos>m.checkJsDirective.pos)&&(m.checkJsDirective={enabled:F==="ts-check",end:O.range.end,pos:O.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}})}e.processPragmasIntoFields=R;var Y=new e.Map;function U(m){if(Y.has(m))return Y.get(m);var u=new RegExp("(\\s".concat(m,`\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`),"im");return Y.set(m,u),u}var $=/^\/\/\/\s*<(\S+)\s.*?\/>/im,T=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function I(m,u,g){var F=u.kind===2&&$.exec(g);if(F){var te=F[1].toLowerCase(),ue=e.commentPragmas[te];if(!ue||!(ue.kind&1))return;if(ue.args){for(var X={},j=0,Se=ue.args;j<Se.length;j++){var Ce=Se[j],O=U(Ce.name),Q=O.exec(g);if(!Q&&!Ce.optional)return;if(Q){var V=Q[2]||Q[3];if(Ce.captureSpan){var z=u.pos+Q.index+Q[1].length+1;X[Ce.name]={value:V,pos:z,end:z+V.length}}else X[Ce.name]=V}}m.push({name:te,args:{arguments:X,range:u}})}else m.push({name:te,args:{arguments:{},range:u}});return}var Te=u.kind===2&&T.exec(g);if(Te)return y(m,u,2,Te);if(u.kind===3)for(var ge=/@(\S+)(\s+.*)?$/gim,ke=void 0;ke=ge.exec(g);)y(m,u,4,ke)}function y(m,u,g,F){if(!!F){var te=F[1].toLowerCase(),ue=e.commentPragmas[te];if(!(!ue||!(ue.kind&g))){var X=F[2],j=D(ue,X);j!=="fail"&&m.push({name:te,args:{arguments:j,range:u}})}}}function D(m,u){if(!u)return{};if(!m.args)return{};for(var g=e.trimString(u).split(/\s+/),F={},te=0;te<m.args.length;te++){var ue=m.args[te];if(!g[te]&&!ue.optional)return"fail";if(ue.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");F[ue.name]=g[te]}return F}function C(m,u){return m.kind!==u.kind?!1:m.kind===79?m.escapedText===u.escapedText:m.kind===108?!0:m.name.escapedText===u.name.escapedText&&C(m.expression,u.expression)}e.tagNamesAreEquivalent=C})(gr||(gr={}));var gr;(function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean",defaultValueDescription:"false"};var n=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(n.entries(),function(tr){var Ir=tr[0],kr=tr[1];return[""+kr,Ir]})));var f=[["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"],["es2021.intl","lib.es2021.intl.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=f.map(function(tr){return tr[0]}),e.libMap=new e.Map(f),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,defaultValueDescription:"false"},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:me},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:me},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,defaultValueDescription:"false"},{name:"help",shortName:"?",type:"boolean",defaultValueDescription:"false"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files,defaultValueDescription:"false"},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:"false"},{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,defaultValueDescription:"false"},{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,defaultValueDescription:"false"},{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 d=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options,defaultValueDescription:"false"},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version,defaultValueDescription:"false"},{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,defaultValueDescription:"false"},{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,defaultValueDescription:"false"},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building,defaultValueDescription:"false"},{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,defaultValueDescription:"false"},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,es2022:e.ModuleKind.ES2022,esnext:e.ModuleKind.ESNext,node12:e.ModuleKind.Node12,nodenext:e.ModuleKind.NodeNext})),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:n,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},{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},{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,defaultValueDescription:"false"},{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,defaultValueDescription:"false"},{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,defaultValueDescription:"false"},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Include_undefined_in_index_signature_results,defaultValueDescription:"false"},{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,defaultValueDescription:"false"},{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,node12:e.ModuleResolutionKind.Node12,nodenext:e.ModuleResolutionKind.NodeNext})),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:"false"},{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,defaultValueDescription:"false"},{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,defaultValueDescription:"false"},{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,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,defaultValueDescription:"false"},{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,defaultValueDescription:"false"},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:"false"},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:"false"},{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:"false"},{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},{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:e.Diagnostics.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,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=Gt(Gt([],e.commonOptionsWithBuild,!0),d,!0),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(tr){return!!tr.affectsSemanticDiagnostics}),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter(function(tr){return!!tr.affectsEmit}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(tr){return!!tr.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(tr){return!!tr.affectsSourceFile||!!tr.affectsModuleResolution||!!tr.affectsBindDiagnostics}),e.optionsAffectingProgramStructure=e.optionDeclarations.filter(function(tr){return!!tr.affectsProgramStructure}),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter(function(tr){return e.hasProperty(tr,"transpileOptionValue")}),e.optionsForBuild=[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean",defaultValueDescription:"false"},{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",defaultValueDescription:"false"},{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",defaultValueDescription:"false"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:"false"}],e.buildOpts=Gt(Gt([],e.commonOptionsWithBuild,!0),e.optionsForBuild,!0),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean",defaultValueDescription:"false"},{name:"enable",type:"boolean",defaultValueDescription:"false"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:"false"}];function a(tr){var Ir=new e.Map,kr=new e.Map;return e.forEach(tr,function(zr){Ir.set(zr.name.toLowerCase(),zr),zr.shortName&&kr.set(zr.shortName,zr.name)}),{optionsNameMap:Ir,shortOptionNames:kr}}e.createOptionNameMap=a;var p;function N(){return p||(p=a(e.optionDeclarations))}e.getOptionsNameMap=N;var H={diagnostic:e.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:w};e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function h(tr){return tr&&tr.enableAutoDiscovery!==void 0&&tr.enable===void 0?{enable:tr.enableAutoDiscovery,include:tr.include||[],exclude:tr.exclude||[]}:tr}e.convertEnableAutoDiscoveryToEnable=h;function v(tr){return A(tr,e.createCompilerDiagnostic)}e.createCompilerDiagnosticForInvalidCustomType=v;function A(tr,Ir){var kr=e.arrayFrom(tr.type.keys()).map(function(zr){return"'".concat(zr,"'")}).join(", ");return Ir(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--".concat(tr.name),kr)}function q(tr,Ir,kr){return Rr(tr,e.trimString(Ir||""),kr)}e.parseCustomTypeOption=q;function ie(tr,Ir,kr){if(Ir===void 0&&(Ir=""),Ir=e.trimString(Ir),!e.startsWith(Ir,"-")){if(Ir==="")return[];var zr=Ir.split(",");switch(tr.element.type){case"number":return e.mapDefined(zr,function(gt){return ir(tr.element,parseInt(gt),kr)});case"string":return e.mapDefined(zr,function(gt){return ir(tr.element,gt||"",kr)});default:return e.mapDefined(zr,function(gt){return q(tr.element,gt,kr)})}}}e.parseListTypeOption=ie;function b(tr){return tr.name}function P(tr,Ir,kr,zr){var gt;if(!((gt=Ir.alternateMode)===null||gt===void 0)&>.getOptionsNameMap().optionsNameMap.has(tr.toLowerCase()))return kr(Ir.alternateMode.diagnostic,tr);var vt=e.getSpellingSuggestion(tr,Ir.optionDeclarations,b);return vt?kr(Ir.unknownDidYouMeanDiagnostic,zr||tr,vt.name):kr(Ir.unknownOptionDiagnostic,zr||tr)}function S(tr,Ir,kr){var zr={},gt,vt=[],ut=[];return ht(Ir),{options:zr,watchOptions:gt,fileNames:vt,errors:ut};function ht(wt){for(var Qt=0;Qt<wt.length;){var mt=wt[Qt];if(Qt++,mt.charCodeAt(0)===64)xt(mt.slice(1));else if(mt.charCodeAt(0)===45){var rn=mt.slice(mt.charCodeAt(1)===45?2:1),sa=M(tr.getOptionsNameMap,rn,!0);if(sa)Qt=B(wt,Qt,tr,sa,zr,ut);else{var ba=M(u.getOptionsNameMap,rn,!0);ba?Qt=B(wt,Qt,u,ba,gt||(gt={}),ut):ut.push(P(rn,tr,e.createCompilerDiagnostic,mt))}}else vt.push(mt)}}function xt(wt){var Qt=I(wt,kr||function(ba){return e.sys.readFile(ba)});if(!e.isString(Qt)){ut.push(Qt);return}for(var mt=[],rn=0;;){for(;rn<Qt.length&&Qt.charCodeAt(rn)<=32;)rn++;if(rn>=Qt.length)break;var sa=rn;if(Qt.charCodeAt(sa)===34){for(rn++;rn<Qt.length&&Qt.charCodeAt(rn)!==34;)rn++;rn<Qt.length?(mt.push(Qt.substring(sa+1,rn)),rn++):ut.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,wt))}else{for(;Qt.charCodeAt(rn)>32;)rn++;mt.push(Qt.substring(sa,rn))}}ht(mt)}}e.parseCommandLineWorker=S;function B(tr,Ir,kr,zr,gt,vt){if(zr.isTSConfigOnly){var ut=tr[Ir];ut==="null"?(gt[zr.name]=void 0,Ir++):zr.type==="boolean"?ut==="false"?(gt[zr.name]=ir(zr,!1,vt),Ir++):(ut==="true"&&Ir++,vt.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,zr.name))):(vt.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,zr.name)),ut&&!e.startsWith(ut,"-")&&Ir++)}else if(!tr[Ir]&&zr.type!=="boolean"&&vt.push(e.createCompilerDiagnostic(kr.optionTypeMismatchDiagnostic,zr.name,z(zr))),tr[Ir]!=="null")switch(zr.type){case"number":gt[zr.name]=ir(zr,parseInt(tr[Ir]),vt),Ir++;break;case"boolean":var ut=tr[Ir];gt[zr.name]=ir(zr,ut!=="false",vt),(ut==="false"||ut==="true")&&Ir++;break;case"string":gt[zr.name]=ir(zr,tr[Ir]||"",vt),Ir++;break;case"list":var ht=ie(zr,tr[Ir],vt);gt[zr.name]=ht||[],ht&&Ir++;break;default:gt[zr.name]=q(zr,tr[Ir],vt),Ir++;break}else gt[zr.name]=void 0,Ir++;return Ir}e.compilerOptionsDidYouMeanDiagnostics={alternateMode:H,getOptionsNameMap:N,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 J(tr,Ir){return S(e.compilerOptionsDidYouMeanDiagnostics,tr,Ir)}e.parseCommandLine=J;function k(tr,Ir){return M(N,tr,Ir)}e.getOptionFromName=k;function M(tr,Ir,kr){kr===void 0&&(kr=!1),Ir=Ir.toLowerCase();var zr=tr(),gt=zr.optionsNameMap,vt=zr.shortOptionNames;if(kr){var ut=vt.get(Ir);ut!==void 0&&(Ir=ut)}return gt.get(Ir)}var x;function w(){return x||(x=a(e.buildOpts))}var K={diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:N},Z={alternateMode:K,getOptionsNameMap:w,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 ne(tr){var Ir=S(Z,tr),kr=Ir.options,zr=Ir.watchOptions,gt=Ir.fileNames,vt=Ir.errors,ut=kr;return gt.length===0&>.push("."),ut.clean&&ut.force&&vt.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),ut.clean&&ut.verbose&&vt.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),ut.clean&&ut.watch&&vt.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),ut.watch&&ut.dry&&vt.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:ut,watchOptions:zr,projects:gt,errors:vt}}e.parseBuildCommand=ne;function R(tr){var Ir=e.createCompilerDiagnostic.apply(void 0,arguments);return Ir.messageText}e.getDiagnosticText=R;function Y(tr,Ir,kr,zr,gt,vt){var ut=I(tr,function(wt){return kr.readFile(wt)});if(!e.isString(ut)){kr.onUnRecoverableConfigFileDiagnostic(ut);return}var ht=e.parseJsonText(tr,ut),xt=kr.getCurrentDirectory();return ht.path=e.toPath(tr,xt,e.createGetCanonicalFileName(kr.useCaseSensitiveFileNames)),ht.resolvedPath=ht.path,ht.originalFileName=ht.fileName,Lr(ht,kr,e.getNormalizedAbsolutePath(e.getDirectoryPath(tr),xt),Ir,e.getNormalizedAbsolutePath(tr,xt),void 0,vt,zr,gt)}e.getParsedCommandLineOfConfigFile=Y;function U(tr,Ir){var kr=I(tr,Ir);return e.isString(kr)?$(tr,kr):{config:{},error:kr}}e.readConfigFile=U;function $(tr,Ir){var kr=e.parseJsonText(tr,Ir);return{config:O(kr,kr.parseDiagnostics,!1,void 0),error:kr.parseDiagnostics.length?kr.parseDiagnostics[0]:void 0}}e.parseConfigFileTextToJson=$;function T(tr,Ir){var kr=I(tr,Ir);return e.isString(kr)?e.parseJsonText(tr,kr):{fileName:tr,parseDiagnostics:[kr]}}e.readJsonConfigFile=T;function I(tr,Ir){var kr;try{kr=Ir(tr)}catch(zr){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,tr,zr.message)}return kr===void 0?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,tr):kr}e.tryReadFile=I;function y(tr){return e.arrayToMap(tr,b)}var D={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1},C;function m(){return C||(C=a(e.optionsForWatch))}var u={getOptionsNameMap:m,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},g;function F(){return g||(g=y(e.optionDeclarations))}var te;function ue(){return te||(te=y(e.optionsForWatch))}var X;function j(){return X||(X=y(e.typeAcquisitionDeclarations))}var Se;function Ce(){return Se===void 0&&(Se={name:void 0,type:"object",elementOptions:y([{name:"compilerOptions",type:"object",elementOptions:F(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:ue(),extraKeyDiagnostics:u},{name:"typingOptions",type:"object",elementOptions:j(),extraKeyDiagnostics:D},{name:"typeAcquisition",type:"object",elementOptions:j(),extraKeyDiagnostics:D},{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])}),Se}function O(tr,Ir,kr,zr){var gt,vt=(gt=tr.statements[0])===null||gt===void 0?void 0:gt.expression,ut=kr?Ce():void 0;if(vt&&vt.kind!==204){if(Ir.push(e.createDiagnosticForNodeInSourceFile(tr,vt,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,e.getBaseFileName(tr.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(vt)){var ht=e.find(vt.elements,e.isObjectLiteralExpression);if(ht)return V(tr,ht,Ir,!0,ut,zr)}return{}}return V(tr,vt,Ir,!0,ut,zr)}function Q(tr,Ir){var kr;return V(tr,(kr=tr.statements[0])===null||kr===void 0?void 0:kr.expression,Ir,!0,void 0,void 0)}e.convertToObject=Q;function V(tr,Ir,kr,zr,gt,vt){if(!Ir)return zr?{}:void 0;return wt(Ir,gt);function ut(mt){return gt&>.elementOptions===mt}function ht(mt,rn,sa,ba){for(var Jn=zr?{}:void 0,na=function(Ut){if(Ut.kind!==294)return kr.push(e.createDiagnosticForNodeInSourceFile(tr,Ut,e.Diagnostics.Property_assignment_expected)),"continue";Ut.questionToken&&kr.push(e.createDiagnosticForNodeInSourceFile(tr,Ut.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),Qt(Ut.name)||kr.push(e.createDiagnosticForNodeInSourceFile(tr,Ut.name,e.Diagnostics.String_literal_with_double_quotes_expected));var qt=e.isComputedNonLiteralName(Ut.name)?void 0:e.getTextOfPropertyName(Ut.name),Pn=qt&&e.unescapeLeadingUnderscores(qt),dn=Pn&&rn?rn.get(Pn):void 0;Pn&&sa&&!dn&&(rn?kr.push(P(Pn,sa,function(_t,Pt,It){return e.createDiagnosticForNodeInSourceFile(tr,Ut.name,_t,Pt,It)})):kr.push(e.createDiagnosticForNodeInSourceFile(tr,Ut.name,sa.unknownOptionDiagnostic,Pn)));var oa=wt(Ut.initializer,dn);if(typeof Pn<"u"&&(zr&&(Jn[Pn]=oa),vt&&(ba||ut(rn)))){var pt=Te(dn,oa);ba?pt&&vt.onSetValidOptionKeyValueInParent(ba,dn,oa):ut(rn)&&(pt?vt.onSetValidOptionKeyValueInRoot(Pn,Ut.name,oa,Ut.initializer):dn||vt.onSetUnknownOptionKeyValueInRoot(Pn,Ut.name,oa,Ut.initializer))}},Wn=0,en=mt.properties;Wn<en.length;Wn++){var St=en[Wn];na(St)}return Jn}function xt(mt,rn){if(!zr){mt.forEach(function(sa){return wt(sa,rn)});return}return e.filter(mt.map(function(sa){return wt(sa,rn)}),function(sa){return sa!==void 0})}function wt(mt,rn){var sa;switch(mt.kind){case 110:return Pn(rn&&rn.type!=="boolean"),qt(!0);case 95:return Pn(rn&&rn.type!=="boolean"),qt(!1);case 104:return Pn(rn&&rn.name==="extends"),qt(null);case 10:Qt(mt)||kr.push(e.createDiagnosticForNodeInSourceFile(tr,mt,e.Diagnostics.String_literal_with_double_quotes_expected)),Pn(rn&&e.isString(rn.type)&&rn.type!=="string");var ba=mt.text;if(rn&&!e.isString(rn.type)){var Jn=rn;Jn.type.has(ba.toLowerCase())||(kr.push(A(Jn,function(dn,oa,pt){return e.createDiagnosticForNodeInSourceFile(tr,mt,dn,oa,pt)})),sa=!0)}return qt(ba);case 8:return Pn(rn&&rn.type!=="number"),qt(Number(mt.text));case 218:if(mt.operator!==40||mt.operand.kind!==8)break;return Pn(rn&&rn.type!=="number"),qt(-Number(mt.operand.text));case 204:Pn(rn&&rn.type!=="object");var na=mt;if(rn){var Wn=rn,en=Wn.elementOptions,St=Wn.extraKeyDiagnostics,Ut=Wn.name;return qt(ht(na,en,St,Ut))}else return qt(ht(na,void 0,void 0,void 0));case 203:return Pn(rn&&rn.type!=="list"),qt(xt(mt.elements,rn&&rn.element))}rn?Pn(!0):kr.push(e.createDiagnosticForNodeInSourceFile(tr,mt,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));return;function qt(dn){var oa;if(!sa){var pt=(oa=rn==null?void 0:rn.extraValidation)===null||oa===void 0?void 0:oa.call(rn,dn);if(pt){kr.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,Gt([tr,mt],pt,!1)));return}}return dn}function Pn(dn){dn&&(kr.push(e.createDiagnosticForNodeInSourceFile(tr,mt,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,rn.name,z(rn))),sa=!0)}}function Qt(mt){return e.isStringLiteral(mt)&&e.isStringDoubleQuoted(mt,tr)}}e.convertToObjectWorker=V;function z(tr){return tr.type==="list"?"Array":e.isString(tr.type)?tr.type:"string"}function Te(tr,Ir){if(tr){if(lr(Ir))return!0;if(tr.type==="list")return e.isArray(Ir);var kr=e.isString(tr.type)?tr.type:"string";return typeof Ir===kr}return!1}function ge(tr,Ir,kr){var zr,gt,vt,ut=e.createGetCanonicalFileName(kr.useCaseSensitiveFileNames),ht=e.map(e.filter(tr.fileNames,!((gt=(zr=tr.options.configFile)===null||zr===void 0?void 0:zr.configFileSpecs)===null||gt===void 0)&>.validatedIncludeSpecs?Ie(Ir,tr.options.configFile.configFileSpecs.validatedIncludeSpecs,tr.options.configFile.configFileSpecs.validatedExcludeSpecs,kr):e.returnTrue),function(mt){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(Ir,kr.getCurrentDirectory()),e.getNormalizedAbsolutePath(mt,kr.getCurrentDirectory()),ut)}),xt=ve(tr.options,{configFilePath:e.getNormalizedAbsolutePath(Ir,kr.getCurrentDirectory()),useCaseSensitiveFileNames:kr.useCaseSensitiveFileNames}),wt=tr.watchOptions&&Ve(tr.watchOptions),Qt=Rn(Rn({compilerOptions:Rn(Rn({},ke(xt)),{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:wt&&ke(wt),references:e.map(tr.projectReferences,function(mt){return Rn(Rn({},mt),{path:mt.originalPath?mt.originalPath:"",originalPath:void 0})}),files:e.length(ht)?ht:void 0},!((vt=tr.options.configFile)===null||vt===void 0)&&vt.configFileSpecs?{include:Me(tr.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:tr.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:tr.compileOnSave?!0:void 0});return Qt}e.convertToTSConfig=ge;function ke(tr){return Rn({},e.arrayFrom(tr.entries()).reduce(function(Ir,kr){var zr;return Rn(Rn({},Ir),(zr={},zr[kr[0]]=kr[1],zr))},{}))}function Me(tr){if(!!e.length(tr)){if(e.length(tr)!==1)return tr;if(tr[0]!=="**/*")return tr}}function Ie(tr,Ir,kr,zr){if(!Ir)return e.returnTrue;var gt=e.getFileMatcherPatterns(tr,kr,Ir,zr.useCaseSensitiveFileNames,zr.getCurrentDirectory()),vt=gt.excludePattern&&e.getRegexFromPattern(gt.excludePattern,zr.useCaseSensitiveFileNames),ut=gt.includeFilePattern&&e.getRegexFromPattern(gt.includeFilePattern,zr.useCaseSensitiveFileNames);return ut?vt?function(ht){return!(ut.test(ht)&&!vt.test(ht))}:function(ht){return!ut.test(ht)}:vt?function(ht){return vt.test(ht)}:e.returnTrue}function Ge(tr){if(!(tr.type==="string"||tr.type==="number"||tr.type==="boolean"||tr.type==="object"))return tr.type==="list"?Ge(tr.element):tr.type}function he(tr,Ir){return e.forEachEntry(Ir,function(kr,zr){if(kr===tr)return zr})}function ve(tr,Ir){return _e(tr,N(),Ir)}function Ve(tr){return _e(tr,m())}function _e(tr,Ir,kr){var zr=Ir.optionsNameMap,gt=new e.Map,vt=kr&&e.createGetCanonicalFileName(kr.useCaseSensitiveFileNames),ut=function(xt){if(e.hasProperty(tr,xt)){if(zr.has(xt)&&(zr.get(xt).category===e.Diagnostics.Command_line_Options||zr.get(xt).category===e.Diagnostics.Output_Formatting))return"continue";var wt=tr[xt],Qt=zr.get(xt.toLowerCase());if(Qt){var mt=Ge(Qt);mt?Qt.type==="list"?gt.set(xt,wt.map(function(rn){return he(rn,mt)})):gt.set(xt,he(wt,mt)):kr&&Qt.isFilePath?gt.set(xt,e.getRelativePathFromFile(kr.configFilePath,e.getNormalizedAbsolutePath(wt,e.getDirectoryPath(kr.configFilePath)),vt)):gt.set(xt,wt)}}};for(var ht in tr)ut(ht);return gt}function Le(tr,Ir){var kr=qe(tr);return gt();function zr(vt){return Array(vt+1).join(" ")}function gt(){var vt=[],ut=zr(2);return d.forEach(function(ht){if(!!kr.has(ht.name)){var xt=kr.get(ht.name),wt=Wr(ht);xt!==wt?vt.push("".concat(ut).concat(ht.name,": ").concat(xt)):e.hasProperty(e.defaultInitCompilerOptions,ht.name)&&vt.push("".concat(ut).concat(ht.name,": ").concat(wt))}}),vt.join(Ir)+Ir}}e.getCompilerOptionsDiffValue=Le;function qe(tr){var Ir=e.extend(tr,e.defaultInitCompilerOptions);return ve(Ir)}function Xe(tr,Ir,kr){var zr=qe(tr);return ut();function gt(ht){return Array(ht+1).join(" ")}function vt(ht){var xt=ht.category,wt=ht.name,Qt=ht.isCommandLineOnly,mt=[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!Qt&&xt!==void 0&&(!mt.includes(xt)||zr.has(wt))}function ut(){for(var ht=e.createMultiMap(),xt=0,wt=e.optionDeclarations;xt<wt.length;xt++){var Qt=wt[xt],mt=Qt.category;vt(Qt)&&ht.add(e.getLocaleSpecificMessage(mt),Qt)}var rn=0,sa=0,ba=[];ht.forEach(function(oa,pt){ba.length!==0&&ba.push({value:""}),ba.push({value:"/* ".concat(pt," */")});for(var _t=0,Pt=oa;_t<Pt.length;_t++){var It=Pt[_t],rt=void 0;zr.has(It.name)?rt='"'.concat(It.name,'": ').concat(JSON.stringify(zr.get(It.name))).concat((sa+=1)===zr.size?"":","):rt='// "'.concat(It.name,'": ').concat(JSON.stringify(Wr(It)),","),ba.push({value:rt,description:"/* ".concat(It.description&&e.getLocaleSpecificMessage(It.description)||It.name," */")}),rn=Math.max(rt.length,rn)}});var Jn=gt(2),na=[];na.push("{"),na.push("".concat(Jn,'"compilerOptions": {')),na.push("".concat(Jn).concat(Jn,"/* ").concat(e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file)," */")),na.push("");for(var Wn=0,en=ba;Wn<en.length;Wn++){var St=en[Wn],Ut=St.value,qt=St.description,Pn=qt===void 0?"":qt;na.push(Ut&&"".concat(Jn).concat(Jn).concat(Ut).concat(Pn&>(rn-Ut.length+2)+Pn))}if(Ir.length){na.push("".concat(Jn,"},")),na.push("".concat(Jn,'"files": ['));for(var dn=0;dn<Ir.length;dn++)na.push("".concat(Jn).concat(Jn).concat(JSON.stringify(Ir[dn])).concat(dn===Ir.length-1?"":","));na.push("".concat(Jn,"]"))}else na.push("".concat(Jn,"}"));return na.push("}"),na.join(kr)+kr}}e.generateTSConfig=Xe;function De(tr,Ir){var kr={},zr=N().optionsNameMap;for(var gt in tr)e.hasProperty(tr,gt)&&(kr[gt]=Ae(zr.get(gt.toLowerCase()),tr[gt],Ir));return kr.configFilePath&&(kr.configFilePath=Ir(kr.configFilePath)),kr}e.convertToOptionsWithAbsolutePaths=De;function Ae(tr,Ir,kr){if(tr&&!lr(Ir)){if(tr.type==="list"){var zr=Ir;if(tr.element.isFilePath&&zr.length)return zr.map(kr)}else if(tr.isFilePath)return kr(Ir)}return Ir}function Ye(tr,Ir,kr,zr,gt,vt,ut,ht,xt){return Or(tr,void 0,Ir,kr,zr,xt,gt,vt,ut,ht)}e.parseJsonConfigFileContent=Ye;function Lr(tr,Ir,kr,zr,gt,vt,ut,ht,xt){return Or(void 0,tr,Ir,kr,zr,xt,gt,vt,ut,ht)}e.parseJsonSourceFileConfigFileContent=Lr;function Er(tr,Ir){Ir&&Object.defineProperty(tr,"configFile",{enumerable:!1,writable:!1,value:Ir})}e.setConfigFileInOptions=Er;function lr(tr){return tr==null}function Cr(tr,Ir){return e.getDirectoryPath(e.getNormalizedAbsolutePath(tr,Ir))}function Or(tr,Ir,kr,zr,gt,vt,ut,ht,xt,wt){gt===void 0&&(gt={}),ht===void 0&&(ht=[]),xt===void 0&&(xt=[]),e.Debug.assert(tr===void 0&&Ir!==void 0||tr!==void 0&&Ir===void 0);var Qt=[],mt=Fe(tr,Ir,kr,zr,ut,ht,Qt,wt),rn=mt.raw,sa=e.extend(gt,mt.options||{}),ba=vt&&mt.watchOptions?e.extend(vt,mt.watchOptions):mt.watchOptions||vt;sa.configFilePath=ut&&e.normalizeSlashes(ut);var Jn=Wn();Ir&&(Ir.configFileSpecs=Jn),Er(sa,Ir);var na=e.normalizePath(ut?Cr(ut,zr):zr);return{options:sa,watchOptions:ba,fileNames:en(na),projectReferences:St(na),typeAcquisition:mt.typeAcquisition||lt(),raw:rn,errors:Qt,wildcardDirectories:Ze(Jn,na,kr.useCaseSensitiveFileNames),compileOnSave:!!rn.compileOnSave};function Wn(){var oa=Pn("references",function(Pi){return typeof Pi=="object"},"object"),pt=Ut(qt("files"));if(pt){var _t=oa==="no-prop"||e.isArray(oa)&&oa.length===0,Pt=e.hasProperty(rn,"extends");if(pt.length===0&&_t&&!Pt)if(Ir){var It=ut||"tsconfig.json",rt=e.Diagnostics.The_files_list_in_config_file_0_is_empty,Cn=e.firstDefined(e.getTsConfigPropArray(Ir,"files"),function(Pi){return Pi.initializer}),Qn=Cn?e.createDiagnosticForNodeInSourceFile(Ir,Cn,rt,It):e.createCompilerDiagnostic(rt,It);Qt.push(Qn)}else dn(e.Diagnostics.The_files_list_in_config_file_0_is_empty,ut||"tsconfig.json")}var Ra=Ut(qt("include")),Ci=qt("exclude"),_i=Ut(Ci);if(Ci==="no-prop"&&rn.compilerOptions){var va=rn.compilerOptions.outDir,yi=rn.compilerOptions.declarationDir;(va||yi)&&(_i=[va,yi].filter(function(Pi){return!!Pi}))}pt===void 0&&Ra===void 0&&(Ra=["**/*"]);var ro,Ka;return Ra&&(ro=Ne(Ra,Qt,!0,Ir,"include")),_i&&(Ka=Ne(_i,Qt,!1,Ir,"exclude")),{filesSpecs:pt,includeSpecs:Ra,excludeSpecs:_i,validatedFilesSpec:e.filter(pt,e.isString),validatedIncludeSpecs:ro,validatedExcludeSpecs:Ka,pathPatterns:void 0}}function en(oa){var pt=fe(Jn,oa,sa,kr,xt);return Hr(pt,ur(rn),ht)&&Qt.push(Pe(Jn,ut)),pt}function St(oa){var pt,_t=Pn("references",function(Cn){return typeof Cn=="object"},"object");if(e.isArray(_t))for(var Pt=0,It=_t;Pt<It.length;Pt++){var rt=It[Pt];typeof rt.path!="string"?dn(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(pt||(pt=[])).push({path:e.getNormalizedAbsolutePath(rt.path,oa),originalPath:rt.path,prepend:rt.prepend,circular:rt.circular})}return pt}function Ut(oa){return e.isArray(oa)?oa:void 0}function qt(oa){return Pn(oa,e.isString,"string")}function Pn(oa,pt,_t){if(e.hasProperty(rn,oa)&&!lr(rn[oa]))if(e.isArray(rn[oa])){var Pt=rn[oa];return!Ir&&!e.every(Pt,pt)&&Qt.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,oa,_t)),Pt}else return dn(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,oa,"Array"),"not-array";return"no-prop"}function dn(oa,pt,_t){Ir||Qt.push(e.createCompilerDiagnostic(oa,pt,_t))}}function Ke(tr){return tr.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function Pe(tr,Ir){var kr=tr.includeSpecs,zr=tr.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,Ir||"tsconfig.json",JSON.stringify(kr||[]),JSON.stringify(zr||[]))}function Hr(tr,Ir,kr){return tr.length===0&&Ir&&(!kr||kr.length===0)}function ur(tr){return!e.hasProperty(tr,"files")&&!e.hasProperty(tr,"references")}e.canJsonReportNoInputFiles=ur;function vr(tr,Ir,kr,zr,gt){var vt=zr.length;return Hr(tr,gt)?zr.push(Pe(kr,Ir)):e.filterMutate(zr,function(ut){return!Ke(ut)}),vt!==zr.length}e.updateErrorForNoInputFiles=vr;function de(tr){return!!tr.options}function Fe(tr,Ir,kr,zr,gt,vt,ut,ht){var xt;zr=e.normalizeSlashes(zr);var wt=e.getNormalizedAbsolutePath(gt||"",zr);if(vt.indexOf(wt)>=0)return ut.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,Gt(Gt([],vt,!0),[wt],!1).join(" -> "))),{raw:tr||Q(Ir,ut)};var Qt=tr?$e(tr,kr,zr,gt,ut):Dr(Ir,kr,zr,gt,ut);if(!((xt=Qt.options)===null||xt===void 0)&&xt.paths&&(Qt.options.pathsBasePath=zr),Qt.extendedConfigPath){vt=vt.concat([wt]);var mt=He(Ir,Qt.extendedConfigPath,kr,vt,ut,ht);if(mt&&de(mt)){var rn=mt.raw,sa=Qt.raw,ba,Jn=function(na){!sa[na]&&rn[na]&&(sa[na]=e.map(rn[na],function(Wn){return e.isRootedDiskPath(Wn)?Wn:e.combinePaths(ba||(ba=e.convertToRelativePath(e.getDirectoryPath(Qt.extendedConfigPath),zr,e.createGetCanonicalFileName(kr.useCaseSensitiveFileNames))),Wn)}))};Jn("include"),Jn("exclude"),Jn("files"),sa.compileOnSave===void 0&&(sa.compileOnSave=rn.compileOnSave),Qt.options=e.assign({},mt.options,Qt.options),Qt.watchOptions=Qt.watchOptions&&mt.watchOptions?e.assign({},mt.watchOptions,Qt.watchOptions):Qt.watchOptions||mt.watchOptions}}return Qt}function $e(tr,Ir,kr,zr,gt){e.hasProperty(tr,"excludes")&>.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var vt=Yr(tr.compilerOptions,kr,gt,zr),ut=tt(tr.typeAcquisition||tr.typingOptions,kr,gt,zr),ht=Rt(tr.watchOptions,kr,gt);tr.compileOnSave=pr(tr,kr,gt);var xt;if(tr.extends)if(!e.isString(tr.extends))gt.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));else{var wt=zr?Cr(zr,kr):kr;xt=Fr(tr.extends,Ir,wt,gt,e.createCompilerDiagnostic)}return{raw:tr,options:vt,watchOptions:ht,typeAcquisition:ut,extendedConfigPath:xt}}function Dr(tr,Ir,kr,zr,gt){var vt=Ar(zr),ut,ht,xt,wt,Qt,mt={onSetValidOptionKeyValueInParent:function(sa,ba,Jn){var na;switch(sa){case"compilerOptions":na=vt;break;case"watchOptions":na=xt||(xt={});break;case"typeAcquisition":na=ut||(ut=lt(zr));break;case"typingOptions":na=ht||(ht=lt(zr));break;default:e.Debug.fail("Unknown option")}na[ba.name]=In(ba,kr,Jn)},onSetValidOptionKeyValueInRoot:function(sa,ba,Jn,na){switch(sa){case"extends":var Wn=zr?Cr(zr,kr):kr;wt=Fr(Jn,Ir,Wn,gt,function(en,St){return e.createDiagnosticForNodeInSourceFile(tr,na,en,St)});return}},onSetUnknownOptionKeyValueInRoot:function(sa,ba,Jn,na){sa==="excludes"&>.push(e.createDiagnosticForNodeInSourceFile(tr,ba,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(d,function(Wn){return Wn.name===sa})&&(Qt=e.append(Qt,ba))}},rn=O(tr,gt,!0,mt);return ut||(ht?ut=ht.enableAutoDiscovery!==void 0?{enable:ht.enableAutoDiscovery,include:ht.include,exclude:ht.exclude}:ht:ut=lt(zr)),Qt&&rn&&rn.compilerOptions===void 0&>.push(e.createDiagnosticForNodeInSourceFile(tr,Qt[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(Qt[0]))),{raw:rn,options:vt,watchOptions:xt,typeAcquisition:ut,extendedConfigPath:wt}}function Fr(tr,Ir,kr,zr,gt){if(tr=e.normalizeSlashes(tr),e.isRootedDiskPath(tr)||e.startsWith(tr,"./")||e.startsWith(tr,"../")){var vt=e.getNormalizedAbsolutePath(tr,kr);if(!Ir.fileExists(vt)&&!e.endsWith(vt,".json")&&(vt="".concat(vt,".json"),!Ir.fileExists(vt))){zr.push(gt(e.Diagnostics.File_0_not_found,tr));return}return vt}var ut=e.nodeModuleNameResolver(tr,e.combinePaths(kr,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},Ir,void 0,void 0,!0);if(ut.resolvedModule)return ut.resolvedModule.resolvedFileName;zr.push(gt(e.Diagnostics.File_0_not_found,tr))}function He(tr,Ir,kr,zr,gt,vt){var ut,ht=kr.useCaseSensitiveFileNames?Ir:e.toFileNameLowerCase(Ir),xt,wt,Qt;if(vt&&(xt=vt.get(ht))?(wt=xt.extendedResult,Qt=xt.extendedConfig):(wt=T(Ir,function(mt){return kr.readFile(mt)}),wt.parseDiagnostics.length||(Qt=Fe(void 0,wt,kr,e.getDirectoryPath(Ir),e.getBaseFileName(Ir),zr,gt,vt)),vt&&vt.set(ht,{extendedResult:wt,extendedConfig:Qt})),tr&&(tr.extendedSourceFiles=[wt.fileName],wt.extendedSourceFiles&&(ut=tr.extendedSourceFiles).push.apply(ut,wt.extendedSourceFiles)),wt.parseDiagnostics.length){gt.push.apply(gt,wt.parseDiagnostics);return}return Qt}function pr(tr,Ir,kr){if(!e.hasProperty(tr,e.compileOnSaveCommandLineOption.name))return!1;var zr=bn(e.compileOnSaveCommandLineOption,tr.compileOnSave,Ir,kr);return typeof zr=="boolean"&&zr}function Jr(tr,Ir,kr){var zr=[],gt=Yr(tr,Ir,zr,kr);return{options:gt,errors:zr}}e.convertCompilerOptionsFromJson=Jr;function ze(tr,Ir,kr){var zr=[],gt=tt(tr,Ir,zr,kr);return{options:gt,errors:zr}}e.convertTypeAcquisitionFromJson=ze;function Ar(tr){var Ir=tr&&e.getBaseFileName(tr)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{};return Ir}function Yr(tr,Ir,kr,zr){var gt=Ar(zr);return cn(F(),tr,Ir,gt,e.compilerOptionsDidYouMeanDiagnostics,kr),zr&&(gt.configFilePath=e.normalizeSlashes(zr)),gt}function lt(tr){return{enable:!!tr&&e.getBaseFileName(tr)==="jsconfig.json",include:[],exclude:[]}}function tt(tr,Ir,kr,zr){var gt=lt(zr),vt=h(tr);return cn(j(),vt,Ir,gt,D,kr),gt}function Rt(tr,Ir,kr){return cn(ue(),tr,Ir,void 0,u,kr)}function cn(tr,Ir,kr,zr,gt,vt){if(!!Ir){for(var ut in Ir){var ht=tr.get(ut);ht?(zr||(zr={}))[ht.name]=bn(ht,Ir[ut],kr,vt):vt.push(P(ut,gt,e.createCompilerDiagnostic))}return zr}}function bn(tr,Ir,kr,zr){if(Te(tr,Ir)){var gt=tr.type;if(gt==="list"&&e.isArray(Ir))return sr(tr,Ir,kr,zr);if(!e.isString(gt))return Rr(tr,Ir,zr);var vt=ir(tr,Ir,zr);return lr(vt)?vt:zn(tr,kr,vt)}else zr.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,tr.name,z(tr)))}e.convertJsonOption=bn;function In(tr,Ir,kr){if(!lr(kr)){if(tr.type==="list"){var zr=tr;return zr.element.isFilePath||!e.isString(zr.element.type)?e.filter(e.map(kr,function(gt){return In(zr.element,Ir,gt)}),function(gt){return!!gt}):kr}else if(!e.isString(tr.type))return tr.type.get(e.isString(kr)?kr.toLowerCase():kr);return zn(tr,Ir,kr)}}function zn(tr,Ir,kr){return tr.isFilePath&&(kr=e.getNormalizedAbsolutePath(kr,Ir),kr===""&&(kr=".")),kr}function ir(tr,Ir,kr){var zr;if(!lr(Ir)){var gt=(zr=tr.extraValidation)===null||zr===void 0?void 0:zr.call(tr,Ir);if(!gt)return Ir;kr.push(e.createCompilerDiagnostic.apply(void 0,gt))}}function Rr(tr,Ir,kr){if(!lr(Ir)){var zr=Ir.toLowerCase(),gt=tr.type.get(zr);if(gt!==void 0)return ir(tr,gt,kr);kr.push(v(tr))}}function sr(tr,Ir,kr,zr){return e.filter(e.map(Ir,function(gt){return bn(tr.element,gt,kr,zr)}),function(gt){return!!gt})}var ye=/(^|\/)\*\*\/?$/,or=/^[^*?]*(?=\/[^/]*[*?])/;function fe(tr,Ir,kr,zr,gt){gt===void 0&&(gt=e.emptyArray),Ir=e.normalizePath(Ir);var vt=e.createGetCanonicalFileName(zr.useCaseSensitiveFileNames),ut=new e.Map,ht=new e.Map,xt=new e.Map,wt=tr.validatedFilesSpec,Qt=tr.validatedIncludeSpecs,mt=tr.validatedExcludeSpecs,rn=e.getSupportedExtensions(kr,gt),sa=e.getSupportedExtensionsWithJsonIfResolveJsonModule(kr,rn);if(wt)for(var ba=0,Jn=wt;ba<Jn.length;ba++){var na=Jn[ba],Wn=e.getNormalizedAbsolutePath(na,Ir);ut.set(vt(Wn),Wn)}var en;if(Qt&&Qt.length>0)for(var St=function(oa){if(e.fileExtensionIs(oa,".json")){if(!en){var pt=Qt.filter(function(Cn){return e.endsWith(Cn,".json")}),_t=e.map(e.getRegularExpressionsForWildcards(pt,Ir,"files"),function(Cn){return"^".concat(Cn,"$")});en=_t?_t.map(function(Cn){return e.getRegexFromPattern(Cn,zr.useCaseSensitiveFileNames)}):e.emptyArray}var Pt=e.findIndex(en,function(Cn){return Cn.test(oa)});if(Pt!==-1){var It=vt(oa);!ut.has(It)&&!xt.has(It)&&xt.set(It,oa)}return"continue"}if(fr(oa,ut,ht,rn,vt))return"continue";dr(oa,ht,rn,vt);var rt=vt(oa);!ut.has(rt)&&!ht.has(rt)&&ht.set(rt,oa)},Ut=0,qt=zr.readDirectory(Ir,e.flatten(sa),mt,Qt,void 0);Ut<qt.length;Ut++){var Wn=qt[Ut];St(Wn)}var Pn=e.arrayFrom(ut.values()),dn=e.arrayFrom(ht.values());return Pn.concat(dn,e.arrayFrom(xt.values()))}e.getFileNamesFromConfigSpecs=fe;function je(tr,Ir,kr,zr,gt){var vt=Ir.validatedFilesSpec,ut=Ir.validatedIncludeSpecs,ht=Ir.validatedExcludeSpecs;if(!e.length(ut)||!e.length(ht))return!1;kr=e.normalizePath(kr);var xt=e.createGetCanonicalFileName(zr);if(vt)for(var wt=0,Qt=vt;wt<Qt.length;wt++){var mt=Qt[wt];if(xt(e.getNormalizedAbsolutePath(mt,kr))===tr)return!1}return ee(tr,ht,zr,gt,kr)}e.isExcludedFile=je;function Ee(tr){var Ir=e.startsWith(tr,"**/")?0:tr.indexOf("/**/");if(Ir===-1)return!1;var kr=e.endsWith(tr,"/..")?tr.length:tr.lastIndexOf("/../");return kr>Ir}function We(tr,Ir,kr,zr){return ee(tr,e.filter(Ir,function(gt){return!Ee(gt)}),kr,zr)}e.matchesExclude=We;function ee(tr,Ir,kr,zr,gt){var vt=e.getRegularExpressionForWildcard(Ir,e.combinePaths(e.normalizePath(zr),gt),"exclude"),ut=vt&&e.getRegexFromPattern(vt,kr);return ut?ut.test(tr)?!0:!e.hasExtension(tr)&&ut.test(e.ensureTrailingDirectorySeparator(tr)):!1}function Ne(tr,Ir,kr,zr,gt){return tr.filter(function(ut){if(!e.isString(ut))return!1;var ht=me(ut,kr);return ht!==void 0&&Ir.push(vt.apply(void 0,ht)),ht===void 0});function vt(ut,ht){var xt=e.getTsConfigPropArrayElementValue(zr,gt,ht);return xt?e.createDiagnosticForNodeInSourceFile(zr,xt,ut,ht):e.createCompilerDiagnostic(ut,ht)}}function me(tr,Ir){if(Ir&&ye.test(tr))return[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,tr];if(Ee(tr))return[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,tr]}function Ze(tr,Ir,kr){var zr=tr.validatedIncludeSpecs,gt=tr.validatedExcludeSpecs,vt=e.getRegularExpressionForWildcard(gt,Ir,"exclude"),ut=vt&&new RegExp(vt,kr?"":"i"),ht={};if(zr!==void 0){for(var xt=[],wt=0,Qt=zr;wt<Qt.length;wt++){var mt=Qt[wt],rn=e.normalizePath(e.combinePaths(Ir,mt));if(!(ut&&ut.test(rn))){var sa=xr(rn,kr);if(sa){var ba=sa.key,Jn=sa.flags,na=ht[ba];(na===void 0||na<Jn)&&(ht[ba]=Jn,Jn===1&&xt.push(ba))}}}for(var ba in ht)if(e.hasProperty(ht,ba))for(var Wn=0,en=xt;Wn<en.length;Wn++){var St=en[Wn];ba!==St&&e.containsPath(St,ba,Ir,!kr)&&delete ht[ba]}}return ht}function xr(tr,Ir){var kr=or.exec(tr);if(kr){var zr=tr.indexOf("?"),gt=tr.indexOf("*"),vt=tr.lastIndexOf(e.directorySeparator);return{key:Ir?kr[0]:e.toFileNameLowerCase(kr[0]),flags:zr!==-1&&zr<vt||gt!==-1&><vt?1:0}}if(e.isImplicitGlob(tr))return{key:Ir?tr:e.toFileNameLowerCase(tr),flags:1}}function fr(tr,Ir,kr,zr,gt){var vt=e.forEach(zr,function(Qt){return e.fileExtensionIsOneOf(tr,Qt)?Qt:void 0});if(!vt)return!1;for(var ut=0,ht=vt;ut<ht.length;ut++){var xt=ht[ut];if(e.fileExtensionIs(tr,xt))return!1;var wt=gt(e.changeExtension(tr,xt));if(Ir.has(wt)||kr.has(wt)){if(xt===".d.ts"&&(e.fileExtensionIs(tr,".js")||e.fileExtensionIs(tr,".jsx")))continue;return!0}}return!1}function dr(tr,Ir,kr,zr){var gt=e.forEach(kr,function(xt){return e.fileExtensionIsOneOf(tr,xt)?xt:void 0});if(!!gt)for(var vt=gt.length-1;vt>=0;vt--){var ut=gt[vt];if(e.fileExtensionIs(tr,ut))return;var ht=zr(e.changeExtension(tr,ut));Ir.delete(ht)}}function et(tr){var Ir={};for(var kr in tr)if(tr.hasOwnProperty(kr)){var zr=k(kr);zr!==void 0&&(Ir[kr]=yt(tr[kr],zr))}return Ir}e.convertCompilerOptionsForTelemetry=et;function yt(tr,Ir){switch(Ir.type){case"object":return"";case"string":return"";case"number":return typeof tr=="number"?tr:"";case"boolean":return typeof tr=="boolean"?tr:"";case"list":var kr=Ir.element;return e.isArray(tr)?tr.map(function(zr){return yt(zr,kr)}):"";default:return e.forEachEntry(Ir.type,function(zr,gt){if(zr===tr)return gt})}}function Wr(tr){switch(tr.type){case"number":return 1;case"boolean":return!0;case"string":return tr.isFilePath?"./":"";case"list":return[];case"object":return{};default:var Ir=tr.type.keys().next();return Ir.done?e.Debug.fail("Expected 'option.type' to have entries."):Ir.value}}})(gr||(gr={}));var gr;(function(e){function n(sr){sr.trace(e.formatMessage.apply(void 0,arguments))}e.trace=n;function f(sr,ye){return!!sr.traceResolution&&ye.trace!==void 0}e.isTraceEnabled=f;function d(sr,ye){var or;if(ye&&sr){var fe=sr.packageJsonContent;typeof fe.name=="string"&&typeof fe.version=="string"&&(or={name:fe.name,subModuleName:ye.path.slice(sr.packageDirectory.length+e.directorySeparator.length),version:fe.version})}return ye&&{path:ye.path,extension:ye.ext,packageId:or}}function a(sr){return d(void 0,sr)}function p(sr){if(sr)return e.Debug.assert(sr.packageId===void 0),{path:sr.path,ext:sr.extension}}var N;(function(sr){sr[sr.TypeScript=0]="TypeScript",sr[sr.JavaScript=1]="JavaScript",sr[sr.Json=2]="Json",sr[sr.TSConfig=3]="TSConfig",sr[sr.DtsOnly=4]="DtsOnly"})(N||(N={}));function H(sr){if(!!sr)return e.Debug.assert(e.extensionIsTS(sr.extension)),{fileName:sr.path,packageId:sr.packageId}}function h(sr,ye,or,fe){var je;return fe?((je=fe.failedLookupLocations).push.apply(je,or),fe):{resolvedModule:sr&&{resolvedFileName:sr.path,originalPath:sr.originalPath===!0?void 0:sr.originalPath,extension:sr.extension,isExternalLibraryImport:ye,packageId:sr.packageId},failedLookupLocations:or}}function v(sr,ye,or,fe){if(!e.hasProperty(sr,ye)){fe.traceEnabled&&n(fe.host,e.Diagnostics.package_json_does_not_have_a_0_field,ye);return}var je=sr[ye];if(typeof je!==or||je===null){fe.traceEnabled&&n(fe.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,ye,or,je===null?"null":typeof je);return}return je}function A(sr,ye,or,fe){var je=v(sr,ye,"string",fe);if(je!==void 0){if(!je){fe.traceEnabled&&n(fe.host,e.Diagnostics.package_json_had_a_falsy_0_field,ye);return}var Ee=e.normalizePath(e.combinePaths(or,je));return fe.traceEnabled&&n(fe.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,ye,je,Ee),Ee}}function q(sr,ye,or){return A(sr,"typings",ye,or)||A(sr,"types",ye,or)}function ie(sr,ye,or){return A(sr,"tsconfig",ye,or)}function b(sr,ye,or){return A(sr,"main",ye,or)}function P(sr,ye){var or=v(sr,"typesVersions","object",ye);if(or!==void 0)return ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),or}function S(sr,ye){var or=P(sr,ye);if(or!==void 0){if(ye.traceEnabled)for(var fe in or)e.hasProperty(or,fe)&&!e.VersionRange.tryParse(fe)&&n(ye.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,fe);var je=J(or);if(!je){ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor);return}var Ee=je.version,We=je.paths;if(typeof We!="object"){ye.traceEnabled&&n(ye.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['".concat(Ee,"']"),"object",typeof We);return}return je}}var B;function J(sr){B||(B=new e.Version(e.version));for(var ye in sr)if(!!e.hasProperty(sr,ye)){var or=e.VersionRange.tryParse(ye);if(or!==void 0&&or.test(B))return{version:ye,paths:sr[ye]}}}e.getPackageJsonTypesVersionsPaths=J;function k(sr,ye){if(sr.typeRoots)return sr.typeRoots;var or;if(sr.configFilePath?or=e.getDirectoryPath(sr.configFilePath):ye.getCurrentDirectory&&(or=ye.getCurrentDirectory()),or!==void 0)return M(or,ye)}e.getEffectiveTypeRoots=k;function M(sr,ye){if(!ye.directoryExists)return[e.combinePaths(sr,x)];var or;return e.forEachAncestorDirectory(e.normalizePath(sr),function(fe){var je=e.combinePaths(fe,x);ye.directoryExists(je)&&(or||(or=[])).push(je)}),or}var x=e.combinePaths("node_modules","@types");function w(sr,ye,or){var fe=typeof or.useCaseSensitiveFileNames=="function"?or.useCaseSensitiveFileNames():or.useCaseSensitiveFileNames;return e.comparePaths(sr,ye,!fe)===0}function K(sr,ye,or,fe,je,Ee){var We=f(or,fe);je&&(or=je.commandLine.options);var ee=ye?e.getDirectoryPath(ye):void 0,Ne=ee?Ee&&Ee.getOrCreateCacheForDirectory(ee,je):void 0,me=Ne&&Ne.get(sr,void 0);if(me)return We&&(n(fe,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,sr,ye),je&&n(fe,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,je.sourceFile.fileName),n(fe,e.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,sr,ee),zr(me)),me;var Ze=k(or,fe);We&&(ye===void 0?Ze===void 0?n(fe,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,sr):n(fe,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,sr,Ze):Ze===void 0?n(fe,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,sr,ye):n(fe,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,sr,ye,Ze),je&&n(fe,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,je.sourceFile.fileName));var xr=[],fr=e.getEmitModuleResolutionKind(or)===e.ModuleResolutionKind.Node12?j.Node12Default:e.getEmitModuleResolutionKind(or)===e.ModuleResolutionKind.NodeNext?j.NodeNextDefault:j.None,dr={compilerOptions:or,host:fe,traceEnabled:We,failedLookupLocations:xr,packageJsonInfoCache:Ee,features:fr,conditions:["node","require","types"]},et=gt(),yt=!0;et||(et=vt(),yt=!1);var Wr;if(et){var tr=et.fileName,Ir=et.packageId,kr=or.preserveSymlinks?tr:Ie(tr,fe,We);Wr={primary:yt,resolvedFileName:kr,originalPath:w(tr,kr,fe)?void 0:tr,packageId:Ir,isExternalLibraryImport:he(tr)}}return me={resolvedTypeReferenceDirective:Wr,failedLookupLocations:xr},Ne==null||Ne.set(sr,void 0,me),We&&zr(me),me;function zr(ut){var ht;!((ht=ut.resolvedTypeReferenceDirective)===null||ht===void 0)&&ht.resolvedFileName?ut.resolvedTypeReferenceDirective.packageId?n(fe,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,sr,ut.resolvedTypeReferenceDirective.resolvedFileName,e.packageIdToString(ut.resolvedTypeReferenceDirective.packageId),ut.resolvedTypeReferenceDirective.primary):n(fe,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,sr,ut.resolvedTypeReferenceDirective.resolvedFileName,ut.resolvedTypeReferenceDirective.primary):n(fe,e.Diagnostics.Type_reference_directive_0_was_not_resolved,sr)}function gt(){if(Ze&&Ze.length)return We&&n(fe,e.Diagnostics.Resolving_with_primary_search_path_0,Ze.join(", ")),e.firstDefined(Ze,function(ut){var ht=e.combinePaths(ut,sr),xt=e.getDirectoryPath(ht),wt=e.directoryProbablyExists(xt,fe);return!wt&&We&&n(fe,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,xt),H(Ye(N.DtsOnly,ht,!wt,dr))});We&&n(fe,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function vt(){var ut=ye&&e.getDirectoryPath(ye);if(ut!==void 0){We&&n(fe,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,ut);var ht;if(e.isExternalModuleNameRelative(sr)){var wt=e.normalizePathAndParts(e.combinePaths(ut,sr)).path;ht=Ge(N.DtsOnly,wt,!1,dr,!0)}else{var xt=Fr(N.DtsOnly,sr,ut,dr,void 0,void 0);ht=xt&&xt.value}return H(ht)}else We&&n(fe,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}e.resolveTypeReferenceDirective=K;function Z(sr,ye){if(sr.types)return sr.types;var or=[];if(ye.directoryExists&&ye.getDirectories){var fe=k(sr,ye);if(fe)for(var je=0,Ee=fe;je<Ee.length;je++){var We=Ee[je];if(ye.directoryExists(We))for(var ee=0,Ne=ye.getDirectories(We);ee<Ne.length;ee++){var me=Ne[ee],Ze=e.normalizePath(me),xr=e.combinePaths(We,Ze,"package.json"),fr=ye.fileExists(xr)&&e.readJson(xr,ye).typings===null;if(!fr){var dr=e.getBaseFileName(Ze);dr.charCodeAt(0)!==46&&or.push(dr)}}}}return or}e.getAutomaticTypeDirectiveNames=Z;function ne(sr){var ye=new e.Map,or=new e.Map;return{getOwnMap:fe,redirectsMap:or,getOrCreateMapOfCacheRedirects:We,clear:ee,setOwnOptions:je,setOwnMap:Ee};function fe(){return ye}function je(Ne){sr=Ne}function Ee(Ne){ye=Ne}function We(Ne){if(!Ne)return ye;var me=Ne.sourceFile.path,Ze=or.get(me);return Ze||(Ze=!sr||e.optionsHaveModuleResolutionChanges(sr,Ne.commandLine.options)?new e.Map:ye,or.set(me,Ze)),Ze}function ee(){ye.clear(),or.clear()}}e.createCacheWithRedirects=ne;function R(sr,ye){var or;return{getPackageJsonInfo:fe,setPackageJsonInfo:je,clear:Ee,entries:We};function fe(ee){return or==null?void 0:or.get(e.toPath(ee,sr,ye))}function je(ee,Ne){(or||(or=new e.Map)).set(e.toPath(ee,sr,ye),Ne)}function Ee(){or=void 0}function We(){var ee=or==null?void 0:or.entries();return ee?e.arrayFrom(ee):[]}}function Y(sr,ye,or,fe){var je=sr.getOrCreateMapOfCacheRedirects(ye),Ee=je.get(or);return Ee||(Ee=fe(),je.set(or,Ee)),Ee}function U(sr,ye,or){if(!!sr.configFile){if(ye.redirectsMap.size===0)e.Debug.assert(!or||or.redirectsMap.size===0),e.Debug.assert(ye.getOwnMap().size===0),e.Debug.assert(!or||or.getOwnMap().size===0),ye.redirectsMap.set(sr.configFile.path,ye.getOwnMap()),or==null||or.redirectsMap.set(sr.configFile.path,or.getOwnMap());else{e.Debug.assert(!or||or.redirectsMap.size>0);var fe={sourceFile:sr.configFile,commandLine:{options:sr}};ye.setOwnMap(ye.getOrCreateMapOfCacheRedirects(fe)),or==null||or.setOwnMap(or.getOrCreateMapOfCacheRedirects(fe))}ye.setOwnOptions(sr),or==null||or.setOwnOptions(sr)}}function $(sr,ye,or){return{getOrCreateCacheForDirectory:Ee,clear:fe,update:je};function fe(){or.clear()}function je(We){U(We,or)}function Ee(We,ee){var Ne=e.toPath(We,sr,ye);return Y(or,ee,Ne,function(){return T()})}}function T(){var sr=new e.Map,ye=new e.Map,or={get:function(je,Ee){return sr.get(fe(je,Ee))},set:function(je,Ee,We){return sr.set(fe(je,Ee),We),or},delete:function(je,Ee){return sr.delete(fe(je,Ee)),or},has:function(je,Ee){return sr.has(fe(je,Ee))},forEach:function(je){return sr.forEach(function(Ee,We){var ee=ye.get(We),Ne=ee[0],me=ee[1];return je(Ee,Ne,me)})},size:function(){return sr.size}};return or;function fe(je,Ee){var We=Ee===void 0?je:"".concat(Ee,"|").concat(je);return ye.set(We,[je,Ee]),We}}e.createModeAwareCache=T;function I(sr,ye,or){e.Debug.assert(ye.length===or.length);for(var fe=T(),je=0;je<ye.length;++je)fe.set(ye[je],e.getModeForResolutionAtIndex(sr,je),or[je]);return fe}e.zipToModeAwareCache=I;function y(sr,ye,or,fe,je){var Ee=$(sr,ye,fe||(fe=ne(or)));je||(je=ne(or));var We=R(sr,ye);return Rn(Rn(Rn({},We),Ee),{getOrCreateCacheForModuleName:me,clear:ee,update:Ne,getPackageJsonInfoCache:function(){return We}});function ee(){Ee.clear(),je.clear(),We.clear()}function Ne(xr){U(xr,fe,je)}function me(xr,fr,dr){return e.Debug.assert(!e.isExternalModuleNameRelative(xr)),Y(je,dr,fr===void 0?xr:"".concat(fr,"|").concat(xr),Ze)}function Ze(){var xr=new e.Map;return{get:fr,set:dr};function fr(yt){return xr.get(e.toPath(yt,sr,ye))}function dr(yt,Wr){var tr=e.toPath(yt,sr,ye);if(!xr.has(tr)){xr.set(tr,Wr);for(var Ir=Wr.resolvedModule&&(Wr.resolvedModule.originalPath||Wr.resolvedModule.resolvedFileName),kr=Ir&&et(tr,Ir),zr=tr;zr!==kr;){var gt=e.getDirectoryPath(zr);if(gt===zr||xr.has(gt))break;xr.set(gt,Wr),zr=gt}}}function et(yt,Wr){for(var tr=e.toPath(e.getDirectoryPath(Wr),sr,ye),Ir=0,kr=Math.min(yt.length,tr.length);Ir<kr&&yt.charCodeAt(Ir)===tr.charCodeAt(Ir);)Ir++;if(Ir===yt.length&&(tr.length===Ir||tr[Ir]===e.directorySeparator))return yt;var zr=e.getRootLength(yt);if(!(Ir<zr)){var gt=yt.lastIndexOf(e.directorySeparator,Ir-1);if(gt!==-1)return yt.substr(0,Math.max(gt,zr))}}}}e.createModuleResolutionCache=y;function D(sr,ye,or,fe,je){var Ee=$(sr,ye,je||(je=ne(or)));return fe||(fe=R(sr,ye)),Rn(Rn(Rn({},fe),Ee),{clear:We});function We(){Ee.clear(),fe.clear()}}e.createTypeReferenceDirectiveResolutionCache=D;function C(sr,ye,or,fe){var je=e.getDirectoryPath(ye),Ee=or&&or.getOrCreateCacheForDirectory(je);if(!!Ee)return Ee.get(sr,fe)}e.resolveModuleNameFromCache=C;function m(sr,ye,or,fe,je,Ee,We){var ee=f(or,fe);Ee&&(or=Ee.commandLine.options),ee&&(n(fe,e.Diagnostics.Resolving_module_0_from_1,sr,ye),Ee&&n(fe,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Ee.sourceFile.fileName));var Ne=e.getDirectoryPath(ye),me=je&&je.getOrCreateCacheForDirectory(Ne,Ee),Ze=me&&me.get(sr,We);if(Ze)ee&&n(fe,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,sr,Ne);else{var xr=or.moduleResolution;if(xr===void 0){switch(e.getEmitModuleKind(or)){case e.ModuleKind.CommonJS:xr=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node12:xr=e.ModuleResolutionKind.Node12;break;case e.ModuleKind.NodeNext:xr=e.ModuleResolutionKind.NodeNext;break;default:xr=e.ModuleResolutionKind.Classic;break}ee&&n(fe,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[xr])}else ee&&n(fe,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[xr]);switch(e.perfLogger.logStartResolveModule(sr),xr){case e.ModuleResolutionKind.Node12:Ze=Se(sr,ye,or,fe,je,Ee,We);break;case e.ModuleResolutionKind.NodeNext:Ze=Ce(sr,ye,or,fe,je,Ee,We);break;case e.ModuleResolutionKind.NodeJs:Ze=ke(sr,ye,or,fe,je,Ee);break;case e.ModuleResolutionKind.Classic:Ze=zn(sr,ye,or,fe,je,Ee);break;default:return e.Debug.fail("Unexpected moduleResolution: ".concat(xr))}Ze&&Ze.resolvedModule&&e.perfLogger.logInfoEvent('Module "'.concat(sr,'" resolved to "').concat(Ze.resolvedModule.resolvedFileName,'"')),e.perfLogger.logStopResolveModule(Ze&&Ze.resolvedModule?""+Ze.resolvedModule.resolvedFileName:"null"),me&&(me.set(sr,We,Ze),e.isExternalModuleNameRelative(sr)||je.getOrCreateCacheForModuleName(sr,We,Ee).set(Ne,Ze))}return ee&&(Ze.resolvedModule?Ze.resolvedModule.packageId?n(fe,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,sr,Ze.resolvedModule.resolvedFileName,e.packageIdToString(Ze.resolvedModule.packageId)):n(fe,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,sr,Ze.resolvedModule.resolvedFileName):n(fe,e.Diagnostics.Module_name_0_was_not_resolved,sr)),Ze}e.resolveModuleName=m;function u(sr,ye,or,fe,je){var Ee=g(sr,ye,fe,je);return Ee?Ee.value:e.isExternalModuleNameRelative(ye)?F(sr,ye,or,fe,je):te(sr,ye,fe,je)}function g(sr,ye,or,fe){var je,Ee=fe.compilerOptions,We=Ee.baseUrl,ee=Ee.paths,Ne=Ee.configFile;if(ee&&!e.pathIsRelative(ye)){fe.traceEnabled&&(We&&n(fe.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,We,ye),n(fe.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,ye));var me=e.getPathsBasePath(fe.compilerOptions,fe.host),Ze=Ne!=null&&Ne.configFileSpecs?(je=Ne.configFileSpecs).pathPatterns||(je.pathPatterns=e.tryParsePatterns(ee)):void 0;return Ar(sr,ye,me,ee,Ze,or,!1,fe)}}function F(sr,ye,or,fe,je){if(!!je.compilerOptions.rootDirs){je.traceEnabled&&n(je.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,ye);for(var Ee=e.normalizePath(e.combinePaths(or,ye)),We,ee,Ne=0,me=je.compilerOptions.rootDirs;Ne<me.length;Ne++){var Ze=me[Ne],xr=e.normalizePath(Ze);e.endsWith(xr,e.directorySeparator)||(xr+=e.directorySeparator);var fr=e.startsWith(Ee,xr)&&(ee===void 0||ee.length<xr.length);je.traceEnabled&&n(je.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,xr,Ee,fr),fr&&(ee=xr,We=Ze)}if(ee){je.traceEnabled&&n(je.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,Ee,ee);var dr=Ee.substr(ee.length);je.traceEnabled&&n(je.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,dr,ee,Ee);var et=fe(sr,Ee,!e.directoryProbablyExists(or,je.host),je);if(et)return et;je.traceEnabled&&n(je.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var yt=0,Wr=je.compilerOptions.rootDirs;yt<Wr.length;yt++){var Ze=Wr[yt];if(Ze!==We){var tr=e.combinePaths(e.normalizePath(Ze),dr);je.traceEnabled&&n(je.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,dr,Ze,tr);var Ir=e.getDirectoryPath(tr),kr=fe(sr,tr,!e.directoryProbablyExists(Ir,je.host),je);if(kr)return kr}}je.traceEnabled&&n(je.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}}function te(sr,ye,or,fe){var je=fe.compilerOptions.baseUrl;if(!!je){fe.traceEnabled&&n(fe.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,je,ye);var Ee=e.normalizePath(e.combinePaths(je,ye));return fe.traceEnabled&&n(fe.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,ye,je,Ee),or(sr,Ee,!e.directoryProbablyExists(e.getDirectoryPath(Ee),fe.host),fe)}}function ue(sr,ye,or){var fe=ge(sr,ye,or),je=fe.resolvedModule,Ee=fe.failedLookupLocations;if(!je)throw new Error("Could not resolve JS module '".concat(sr,"' starting at '").concat(ye,"'. Looked in: ").concat(Ee.join(", ")));return je.resolvedFileName}e.resolveJSModule=ue;function X(sr,ye,or){return ge(sr,ye,or).resolvedModule}e.tryResolveJSModule=X;var j;(function(sr){sr[sr.None=0]="None",sr[sr.Imports=2]="Imports",sr[sr.SelfName=4]="SelfName",sr[sr.Exports=8]="Exports",sr[sr.ExportsPatternTrailers=16]="ExportsPatternTrailers",sr[sr.AllFeatures=30]="AllFeatures",sr[sr.Node12Default=14]="Node12Default",sr[sr.NodeNextDefault=30]="NodeNextDefault",sr[sr.EsmMode=32]="EsmMode"})(j||(j={}));function Se(sr,ye,or,fe,je,Ee,We){return O(j.Node12Default,sr,ye,or,fe,je,Ee,We)}function Ce(sr,ye,or,fe,je,Ee,We){return O(j.NodeNextDefault,sr,ye,or,fe,je,Ee,We)}function O(sr,ye,or,fe,je,Ee,We,ee){var Ne=e.getDirectoryPath(or),me=ee===e.ModuleKind.ESNext?j.EsmMode:0;return Me(sr|me,ye,Ne,fe,je,Ee,fe.resolveJsonModule?z:V,We)}var Q=[N.JavaScript],V=[N.TypeScript,N.JavaScript],z=Gt(Gt([],V,!0),[N.Json],!1),Te=[N.TSConfig];function ge(sr,ye,or){return Me(j.None,sr,ye,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},or,void 0,Q,void 0)}function ke(sr,ye,or,fe,je,Ee,We){return Me(j.None,sr,e.getDirectoryPath(ye),or,fe,je,We?Te:or.resolveJsonModule?z:V,Ee)}e.nodeModuleNameResolver=ke;function Me(sr,ye,or,fe,je,Ee,We,ee){var Ne,me,Ze=f(fe,je),xr=[],fr={compilerOptions:fe,host:je,traceEnabled:Ze,failedLookupLocations:xr,packageJsonInfoCache:Ee,features:sr,conditions:sr&j.EsmMode?["node","import","types"]:["node","require","types"]},dr=e.forEach(We,function(yt){return et(yt)});return h((Ne=dr==null?void 0:dr.value)===null||Ne===void 0?void 0:Ne.resolved,(me=dr==null?void 0:dr.value)===null||me===void 0?void 0:me.isExternalLibraryImport,xr,fr.resultFromCache);function et(yt){var Wr=function(wt,Qt,mt,rn){return Ge(wt,Qt,mt,rn,!0)},tr=u(yt,ye,or,Wr,fr);if(tr)return Rr({resolved:tr,isExternalLibraryImport:he(tr.path)});if(e.isExternalModuleNameRelative(ye)){var vt=e.normalizePathAndParts(e.combinePaths(or,ye)),ut=vt.path,ht=vt.parts,xt=Ge(yt,ut,!1,fr,!0);return xt&&Rr({resolved:xt,isExternalLibraryImport:e.contains(ht,"node_modules")})}else{var Ir;if(sr&j.Imports&&e.startsWith(ye,"#")&&(Ir=de(yt,ye,or,fr,Ee,ee)),!Ir&&sr&j.SelfName&&(Ir=ur(yt,ye,or,fr,Ee,ee)),Ir||(Ze&&n(je,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,ye,N[yt]),Ir=Fr(yt,ye,or,fr,Ee,ee)),!Ir)return;var kr=Ir.value;if(!fe.preserveSymlinks&&kr&&!kr.originalPath){var zr=Ie(kr.path,je,Ze),gt=w(zr,kr.path,je)?void 0:kr.path;kr=Rn(Rn({},kr),{path:zr,originalPath:gt})}return{value:kr&&{resolved:kr,isExternalLibraryImport:!0}}}}}function Ie(sr,ye,or){if(!ye.realpath)return sr;var fe=e.normalizePath(ye.realpath(sr));return or&&n(ye,e.Diagnostics.Resolving_real_path_for_0_result_1,sr,fe),e.Debug.assert(ye.fileExists(fe),"".concat(sr," linked to nonexistent file ").concat(fe)),fe}function Ge(sr,ye,or,fe,je){if(fe.traceEnabled&&n(fe.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,ye,N[sr]),!e.hasTrailingDirectorySeparator(ye)){if(!or){var Ee=e.getDirectoryPath(ye);e.directoryProbablyExists(Ee,fe.host)||(fe.traceEnabled&&n(fe.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Ee),or=!0)}var We=Le(sr,ye,or,fe);if(We){var ee=je?ve(We.path):void 0,Ne=ee?Er(ee,!1,fe):void 0;return d(Ne,We)}}if(!or){var me=e.directoryProbablyExists(ye,fe.host);me||(fe.traceEnabled&&n(fe.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,ye),or=!0)}return Ye(sr,ye,or,fe,je)}e.nodeModulesPathPart="/node_modules/";function he(sr){return e.stringContains(sr,e.nodeModulesPathPart)}e.pathContainsNodeModules=he;function ve(sr){var ye=e.normalizePath(sr),or=ye.lastIndexOf(e.nodeModulesPathPart);if(or!==-1){var fe=or+e.nodeModulesPathPart.length,je=Ve(ye,fe);return ye.charCodeAt(fe)===64&&(je=Ve(ye,je)),ye.slice(0,je)}}e.parseNodeModuleFromPath=ve;function Ve(sr,ye){var or=sr.indexOf(e.directorySeparator,ye+1);return or===-1?ye:or}function _e(sr,ye,or,fe){return a(Le(sr,ye,or,fe))}function Le(sr,ye,or,fe){if(sr===N.Json||sr===N.TSConfig){var je=e.tryRemoveExtension(ye,".json"),Ee=je?ye.substring(je.length):"";return je===void 0&&sr===N.Json?void 0:De(je||ye,sr,Ee,or,fe)}if(!(fe.features&j.EsmMode)){var We=De(ye,sr,"",or,fe);if(We)return We}return qe(sr,ye,or,fe)}function qe(sr,ye,or,fe){if(e.hasJSFileExtension(ye)||e.fileExtensionIs(ye,".json")&&fe.compilerOptions.resolveJsonModule){var je=e.removeFileExtension(ye),Ee=ye.substring(je.length);return fe.traceEnabled&&n(fe.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,ye,Ee),De(je,sr,Ee,or,fe)}}function Xe(sr,ye,or,fe){if((sr===N.TypeScript||sr===N.DtsOnly)&&e.fileExtensionIsOneOf(ye,[".d.ts",".d.cts",".d.mts"])){var je=Ae(ye,or,fe);return je!==void 0?{path:ye,ext:e.forEach([".d.ts",".d.cts",".d.mts"],function(Ee){return e.fileExtensionIs(ye,Ee)?Ee:void 0})}:void 0}return qe(sr,ye,or,fe)}function De(sr,ye,or,fe,je){if(!fe){var Ee=e.getDirectoryPath(sr);Ee&&(fe=!e.directoryProbablyExists(Ee,je.host))}switch(ye){case N.DtsOnly:switch(or){case".mjs":case".mts":case".d.mts":return We(".d.mts");case".cjs":case".cts":case".d.cts":return We(".d.cts");case".json":return sr+=".json",We(".d.ts");default:return We(".d.ts")}case N.TypeScript:switch(or){case".mjs":case".mts":case".d.mts":return We(".mts")||We(".d.mts");case".cjs":case".cts":case".d.cts":return We(".cts")||We(".d.cts");case".json":return sr+=".json",We(".d.ts");default:return We(".ts")||We(".tsx")||We(".d.ts")}case N.JavaScript:switch(or){case".mjs":case".mts":case".d.mts":return We(".mjs");case".cjs":case".cts":case".d.cts":return We(".cjs");case".json":return We(".json");default:return We(".js")||We(".jsx")}case N.TSConfig:case N.Json:return We(".json")}function We(ee){var Ne=Ae(sr+ee,fe,je);return Ne===void 0?void 0:{path:Ne,ext:ee}}}function Ae(sr,ye,or){if(!ye){if(or.host.fileExists(sr))return or.traceEnabled&&n(or.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,sr),sr;or.traceEnabled&&n(or.host,e.Diagnostics.File_0_does_not_exist,sr)}or.failedLookupLocations.push(sr)}function Ye(sr,ye,or,fe,je){je===void 0&&(je=!0);var Ee=je?Er(ye,or,fe):void 0,We=Ee&&Ee.packageJsonContent,ee=Ee&&Ee.versionPaths;return d(Ee,lr(sr,ye,or,fe,We,ee))}function Lr(sr,ye,or,fe){var je={host:or,compilerOptions:fe,traceEnabled:f(fe,or),failedLookupLocations:[],packageJsonInfoCache:ye,features:0,conditions:[]},Ee=e.getPathComponents(sr);for(Ee.pop();Ee.length>0;){var We=Er(e.getPathFromPathComponents(Ee),!1,je);if(We)return We;Ee.pop()}}e.getPackageScopeForPath=Lr;function Er(sr,ye,or){var fe,je,Ee,We=or.host,ee=or.traceEnabled,Ne=e.combinePaths(sr,"package.json");if(ye){or.failedLookupLocations.push(Ne);return}var me=(fe=or.packageJsonInfoCache)===null||fe===void 0?void 0:fe.getPackageJsonInfo(Ne);if(me!==void 0){if(typeof me!="boolean")return ee&&n(We,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,Ne),me;me&&ee&&n(We,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,Ne),or.failedLookupLocations.push(Ne);return}var Ze=e.directoryProbablyExists(sr,We);if(Ze&&We.fileExists(Ne)){var xr=e.readJson(Ne,We);ee&&n(We,e.Diagnostics.Found_package_json_at_0,Ne);var fr=S(xr,or),dr={packageDirectory:sr,packageJsonContent:xr,versionPaths:fr};return(je=or.packageJsonInfoCache)===null||je===void 0||je.setPackageJsonInfo(Ne,dr),dr}else Ze&&ee&&n(We,e.Diagnostics.File_0_does_not_exist,Ne),(Ee=or.packageJsonInfoCache)===null||Ee===void 0||Ee.setPackageJsonInfo(Ne,Ze),or.failedLookupLocations.push(Ne)}e.getPackageJsonInfo=Er;function lr(sr,ye,or,fe,je,Ee){var We;if(je)switch(sr){case N.JavaScript:case N.Json:We=b(je,ye,fe);break;case N.TypeScript:We=q(je,ye,fe)||b(je,ye,fe);break;case N.DtsOnly:We=q(je,ye,fe);break;case N.TSConfig:We=ie(je,ye,fe);break;default:return e.Debug.assertNever(sr)}var ee=function(et,yt,Wr,tr){var Ir=Ae(yt,Wr,tr);if(Ir){var kr=Cr(et,Ir);if(kr)return a(kr);tr.traceEnabled&&n(tr.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,Ir)}var zr=et===N.DtsOnly?N.TypeScript:et;return Ge(zr,yt,Wr,tr,!1)},Ne=We?!e.directoryProbablyExists(e.getDirectoryPath(We),fe.host):void 0,me=or||!e.directoryProbablyExists(ye,fe.host),Ze=e.combinePaths(ye,sr===N.TSConfig?"tsconfig":"index");if(Ee&&(!We||e.containsPath(ye,We))){var xr=e.getRelativePathFromDirectory(ye,We||Ze,!1);fe.traceEnabled&&n(fe.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,Ee.version,e.version,xr);var fr=Ar(sr,xr,ye,Ee.paths,void 0,ee,Ne||me,fe);if(fr)return p(fr.value)}var dr=We&&p(ee(sr,We,Ne,fe));if(dr)return dr;if(!(fe.features&j.EsmMode))return Le(sr,Ze,me,fe)}function Cr(sr,ye){var or=e.tryGetExtensionFromPath(ye);return or!==void 0&&Or(sr,or)?{path:ye,ext:or}:void 0}function Or(sr,ye){switch(sr){case N.JavaScript:return ye===".js"||ye===".jsx";case N.TSConfig:case N.Json:return ye===".json";case N.TypeScript:return ye===".ts"||ye===".tsx"||ye===".d.ts";case N.DtsOnly:return ye===".d.ts"}}function Ke(sr){var ye=sr.indexOf(e.directorySeparator);return sr[0]==="@"&&(ye=sr.indexOf(e.directorySeparator,ye+1)),ye===-1?{packageName:sr,rest:""}:{packageName:sr.slice(0,ye),rest:sr.slice(ye+1)}}e.parsePackageName=Ke;function Pe(sr){return e.every(e.getOwnKeys(sr),function(ye){return e.startsWith(ye,".")})}e.allKeysStartWithDot=Pe;function Hr(sr){return!e.some(e.getOwnKeys(sr),function(ye){return e.startsWith(ye,".")})}function ur(sr,ye,or,fe,je,Ee){var We,ee,Ne=typeof fe.host.useCaseSensitiveFileNames=="function"?fe.host.useCaseSensitiveFileNames():fe.host.useCaseSensitiveFileNames,me=e.toPath(e.combinePaths(or,"dummy"),(ee=(We=fe.host).getCurrentDirectory)===null||ee===void 0?void 0:ee.call(We),e.createGetCanonicalFileName(Ne===void 0?!0:Ne)),Ze=Lr(me,fe.packageJsonInfoCache,fe.host,fe.compilerOptions);if(!(!Ze||!Ze.packageJsonContent.exports)&&typeof Ze.packageJsonContent.name=="string"){var xr=e.getPathComponents(ye),fr=e.getPathComponents(Ze.packageJsonContent.name);if(!!e.every(fr,function(et,yt){return xr[yt]===et})){var dr=xr.slice(fr.length);return vr(Ze,sr,e.length(dr)?".".concat(e.directorySeparator).concat(dr.join(e.directorySeparator)):".",fe,je,Ee)}}}function vr(sr,ye,or,fe,je,Ee){if(!!sr.packageJsonContent.exports){if(or==="."){var We=void 0;if(typeof sr.packageJsonContent.exports=="string"||Array.isArray(sr.packageJsonContent.exports)||typeof sr.packageJsonContent.exports=="object"&&Hr(sr.packageJsonContent.exports)?We=sr.packageJsonContent.exports:e.hasProperty(sr.packageJsonContent.exports,".")&&(We=sr.packageJsonContent.exports["."]),We){var ee=$e(ye,fe,je,Ee,or,sr,!1);return ee(We,"",!1)}}else if(Pe(sr.packageJsonContent.exports)){if(typeof sr.packageJsonContent.exports!="object")return fe.traceEnabled&&n(fe.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,or,sr.packageDirectory),Rr(void 0);var Ne=Fe(ye,fe,je,Ee,or,sr.packageJsonContent.exports,sr,!1);if(Ne)return Ne}return fe.traceEnabled&&n(fe.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,or,sr.packageDirectory),Rr(void 0)}}function de(sr,ye,or,fe,je,Ee){var We,ee;if(ye==="#"||e.startsWith(ye,"#/"))return fe.traceEnabled&&n(fe.host,e.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,ye),Rr(void 0);var Ne=typeof fe.host.useCaseSensitiveFileNames=="function"?fe.host.useCaseSensitiveFileNames():fe.host.useCaseSensitiveFileNames,me=e.toPath(e.combinePaths(or,"dummy"),(ee=(We=fe.host).getCurrentDirectory)===null||ee===void 0?void 0:ee.call(We),e.createGetCanonicalFileName(Ne===void 0?!0:Ne)),Ze=Lr(me,fe.packageJsonInfoCache,fe.host,fe.compilerOptions);if(!Ze)return fe.traceEnabled&&n(fe.host,e.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,me),Rr(void 0);if(!Ze.packageJsonContent.imports)return fe.traceEnabled&&n(fe.host,e.Diagnostics.package_json_scope_0_has_no_imports_defined,Ze.packageDirectory),Rr(void 0);var xr=Fe(sr,fe,je,Ee,ye,Ze.packageJsonContent.imports,Ze,!0);return xr||(fe.traceEnabled&&n(fe.host,e.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,ye,Ze.packageDirectory),Rr(void 0))}function Fe(sr,ye,or,fe,je,Ee,We,ee){var Ne=$e(sr,ye,or,fe,je,We,ee);if(!e.endsWith(je,e.directorySeparator)&&je.indexOf("*")===-1&&e.hasProperty(Ee,je)){var me=Ee[je];return Ne(me,"",!1)}for(var Ze=e.sort(e.filter(e.getOwnKeys(Ee),function(tr){return tr.indexOf("*")!==-1||e.endsWith(tr,"/")}),function(tr,Ir){return tr.length-Ir.length}),xr=0,fr=Ze;xr<fr.length;xr++){var dr=fr[xr];if(ye.features&j.ExportsPatternTrailers&&Wr(dr,je)){var me=Ee[dr],et=dr.indexOf("*"),yt=je.substring(dr.substring(0,et).length,je.length-(dr.length-1-et));return Ne(me,yt,!0)}else if(e.endsWith(dr,"*")&&e.startsWith(je,dr.substring(0,dr.length-1))){var me=Ee[dr],yt=je.substring(dr.length-1);return Ne(me,yt,!0)}else if(e.startsWith(je,dr)){var me=Ee[dr],yt=je.substring(dr.length);return Ne(me,yt,!1)}}function Wr(tr,Ir){if(e.endsWith(tr,"*"))return!1;var kr=tr.indexOf("*");return kr===-1?!1:e.startsWith(Ir,tr.substring(0,kr))&&e.endsWith(Ir,tr.substring(kr+1))}}function $e(sr,ye,or,fe,je,Ee,We){return ee;function ee(Ne,me,Ze){var xr,fr;if(typeof Ne=="string"){if(!Ze&&me.length>0&&!e.endsWith(Ne,"/"))return ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ee.packageDirectory,je),Rr(void 0);if(!e.startsWith(Ne,"./")){if(We&&!e.startsWith(Ne,"../")&&!e.startsWith(Ne,"/")&&!e.isRootedDiskPath(Ne)){var dr=Ze?Ne.replace(/\*/g,me):Ne+me,et=Me(ye.features,dr,Ee.packageDirectory+"/",ye.compilerOptions,ye.host,or,[sr],fe);return Rr(et.resolvedModule?{path:et.resolvedModule.resolvedFileName,extension:et.resolvedModule.extension,packageId:et.resolvedModule.packageId,originalPath:et.resolvedModule.originalPath}:void 0)}return ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ee.packageDirectory,je),Rr(void 0)}var yt=e.pathIsRelative(Ne)?e.getPathComponents(Ne).slice(1):e.getPathComponents(Ne),Wr=yt.slice(1);if(Wr.indexOf("..")>=0||Wr.indexOf(".")>=0||Wr.indexOf("node_modules")>=0)return ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ee.packageDirectory,je),Rr(void 0);var tr=e.combinePaths(Ee.packageDirectory,Ne),Ir=e.getPathComponents(me);if(Ir.indexOf("..")>=0||Ir.indexOf(".")>=0||Ir.indexOf("node_modules")>=0)return ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ee.packageDirectory,je),Rr(void 0);var kr=e.getNormalizedAbsolutePath(Ze?tr.replace(/\*/g,me):tr+me,(fr=(xr=ye.host).getCurrentDirectory)===null||fr===void 0?void 0:fr.call(xr));return Rr(d(Ee,Xe(sr,kr,!1,ye)))}else if(typeof Ne=="object"&&Ne!==null)if(Array.isArray(Ne)){if(!e.length(Ne))return ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ee.packageDirectory,je),Rr(void 0);for(var ht=0,xt=Ne;ht<xt.length;ht++){var wt=xt[ht],et=ee(wt,me,Ze);if(et)return et}}else{for(var zr=0,gt=e.getOwnKeys(Ne);zr<gt.length;zr++){var vt=gt[zr];if(vt==="default"||ye.conditions.indexOf(vt)>=0||Dr(ye.conditions,vt)){var ut=Ne[vt],et=ee(ut,me,Ze);if(et)return et}}return}else if(Ne===null)return ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null,Ee.packageDirectory,je),Rr(void 0);return ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ee.packageDirectory,je),Rr(void 0)}}function Dr(sr,ye){if(sr.indexOf("types")===-1||!e.startsWith(ye,"types@"))return!1;var or=e.VersionRange.tryParse(ye.substring(6));return or?or.test(e.version):!1}e.isApplicableVersionedTypesKey=Dr;function Fr(sr,ye,or,fe,je,Ee){return pr(sr,ye,or,fe,!1,je,Ee)}function He(sr,ye,or){return pr(N.DtsOnly,sr,ye,or,!0,void 0,void 0)}function pr(sr,ye,or,fe,je,Ee,We){var ee=Ee&&Ee.getOrCreateCacheForModuleName(ye,fe.features===0?void 0:fe.features&j.EsmMode?e.ModuleKind.ESNext:e.ModuleKind.CommonJS,We);return e.forEachAncestorDirectory(e.normalizeSlashes(or),function(Ne){if(e.getBaseFileName(Ne)!=="node_modules"){var me=In(ee,ye,Ne,fe);return me||Rr(Jr(sr,ye,Ne,fe,je,Ee,We))}})}function Jr(sr,ye,or,fe,je,Ee,We){var ee=e.combinePaths(or,"node_modules"),Ne=e.directoryProbablyExists(ee,fe.host);!Ne&&fe.traceEnabled&&n(fe.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,ee);var me=je?void 0:ze(sr,ye,ee,Ne,fe,Ee,We);if(me)return me;if(sr===N.TypeScript||sr===N.DtsOnly){var Ze=e.combinePaths(ee,"@types"),xr=Ne;return Ne&&!e.directoryProbablyExists(Ze,fe.host)&&(fe.traceEnabled&&n(fe.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Ze),xr=!1),ze(N.DtsOnly,lt(ye,fe),Ze,xr,fe,Ee,We)}}function ze(sr,ye,or,fe,je,Ee,We){var ee=e.normalizePath(e.combinePaths(or,ye)),Ne=Er(ee,!fe,je);if(!(je.features&j.Exports)&&Ne){var me=Le(sr,ee,!fe,je);if(me)return a(me);var Ze=lr(sr,ee,!fe,je,Ne.packageJsonContent,Ne.versionPaths);return d(Ne,Ze)}var xr=Ke(ye),fr=xr.packageName,dr=xr.rest,et=function(Ir,kr,zr,gt){var vt;if(Ne&&Ne.packageJsonContent.exports&>.features&j.Exports)return(vt=vr(Ne,Ir,e.combinePaths(".",dr),gt,Ee,We))===null||vt===void 0?void 0:vt.value;var ut=Le(Ir,kr,zr,gt)||lr(Ir,kr,zr,gt,Ne&&Ne.packageJsonContent,Ne&&Ne.versionPaths);return d(Ne,ut)};if(dr!==""){var yt=e.combinePaths(or,fr);if(Ne=Er(yt,!fe,je),Ne&&Ne.versionPaths){je.traceEnabled&&n(je.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,Ne.versionPaths.version,e.version,dr);var Wr=fe&&e.directoryProbablyExists(yt,je.host),tr=Ar(sr,dr,yt,Ne.versionPaths.paths,void 0,et,!Wr,je);if(tr)return tr.value}}return et(sr,ee,!fe,je)}function Ar(sr,ye,or,fe,je,Ee,We,ee){je||(je=e.tryParsePatterns(fe));var Ne=e.matchPatternOrExact(je,ye);if(Ne){var me=e.isString(Ne)?void 0:e.matchedText(Ne,ye),Ze=e.isString(Ne)?Ne:e.patternText(Ne);ee.traceEnabled&&n(ee.host,e.Diagnostics.Module_name_0_matched_pattern_1,ye,Ze);var xr=e.forEach(fe[Ze],function(fr){var dr=me?fr.replace("*",me):fr,et=e.normalizePath(e.combinePaths(or,dr));ee.traceEnabled&&n(ee.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,fr,dr);var yt=e.tryGetExtensionFromPath(fr);if(yt!==void 0){var Wr=Ae(et,We,ee);if(Wr!==void 0)return a({path:Wr,ext:yt})}return Ee(sr,et,We||!e.directoryProbablyExists(e.getDirectoryPath(et),ee.host),ee)});return{value:xr}}}var Yr="__";function lt(sr,ye){var or=Rt(sr);return ye.traceEnabled&&or!==sr&&n(ye.host,e.Diagnostics.Scoped_package_detected_looking_in_0,or),or}function tt(sr){return"@types/".concat(Rt(sr))}e.getTypesPackageName=tt;function Rt(sr){if(e.startsWith(sr,"@")){var ye=sr.replace(e.directorySeparator,Yr);if(ye!==sr)return ye.slice(1)}return sr}e.mangleScopedPackageName=Rt;function cn(sr){var ye=e.removePrefix(sr,"@types/");return ye!==sr?bn(ye):sr}e.getPackageNameFromTypesPackageName=cn;function bn(sr){return e.stringContains(sr,Yr)?"@"+sr.replace(Yr,e.directorySeparator):sr}e.unmangleScopedPackageName=bn;function In(sr,ye,or,fe){var je=sr&&sr.get(or);if(je)return fe.traceEnabled&&n(fe.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,ye,or),fe.resultFromCache=je,{value:je.resolvedModule&&{path:je.resolvedModule.resolvedFileName,originalPath:je.resolvedModule.originalPath||!0,extension:je.resolvedModule.extension,packageId:je.resolvedModule.packageId}}}function zn(sr,ye,or,fe,je,Ee){var We=f(or,fe),ee=[],Ne={compilerOptions:or,host:fe,traceEnabled:We,failedLookupLocations:ee,packageJsonInfoCache:je,features:j.None,conditions:[]},me=e.getDirectoryPath(ye),Ze=xr(N.TypeScript)||xr(N.JavaScript);return h(Ze&&Ze.value,!1,ee,Ne.resultFromCache);function xr(fr){var dr=u(fr,sr,me,_e,Ne);if(dr)return{value:dr};if(e.isExternalModuleNameRelative(sr)){var Wr=e.normalizePath(e.combinePaths(me,sr));return Rr(_e(fr,Wr,!1,Ne))}else{var et=je&&je.getOrCreateCacheForModuleName(sr,void 0,Ee),yt=e.forEachAncestorDirectory(me,function(tr){var Ir=In(et,sr,tr,Ne);if(Ir)return Ir;var kr=e.normalizePath(e.combinePaths(tr,sr));return Rr(_e(fr,kr,!1,Ne))});if(yt)return yt;if(fr===N.TypeScript)return He(sr,me,Ne)}}}e.classicNameResolver=zn;function ir(sr,ye,or,fe,je,Ee){var We=f(or,fe);We&&n(fe,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,ye,sr,je);var ee=[],Ne={compilerOptions:or,host:fe,traceEnabled:We,failedLookupLocations:ee,packageJsonInfoCache:Ee,features:j.None,conditions:[]},me=Jr(N.DtsOnly,sr,je,Ne,!1,void 0,void 0);return h(me,!0,ee,Ne.resultFromCache)}e.loadModuleFromGlobalCache=ir;function Rr(sr){return sr!==void 0?{value:sr}:void 0}})(gr||(gr={}));var gr;(function(e){(function(S){S[S.NonInstantiated=0]="NonInstantiated",S[S.Instantiated=1]="Instantiated",S[S.ConstEnumOnly=2]="ConstEnumOnly"})(e.ModuleInstanceState||(e.ModuleInstanceState={}));function n(S,B){return S.body&&!S.body.parent&&(e.setParent(S.body,S),e.setParentRecursive(S.body,!1)),S.body?f(S.body,B):1}e.getModuleInstanceState=n;function f(S,B){B===void 0&&(B=new e.Map);var J=e.getNodeId(S);if(B.has(J))return B.get(J)||0;B.set(J,void 0);var k=d(S,B);return B.set(J,k),k}function d(S,B){switch(S.kind){case 257:case 258:return 0;case 259:if(e.isEnumConst(S))return 2;break;case 265:case 264:if(!e.hasSyntacticModifier(S,1))return 0;break;case 271:var J=S;if(!J.moduleSpecifier&&J.exportClause&&J.exportClause.kind===272){for(var k=0,M=0,x=J.exportClause.elements;M<x.length;M++){var w=x[M],K=a(w,B);if(K>k&&(k=K),k===1)return k}return k}break;case 261:{var Z=0;return e.forEachChild(S,function(ne){var R=f(ne,B);switch(R){case 0:return;case 2:Z=2;return;case 1:return Z=1,!0;default:e.Debug.assertNever(R)}}),Z}case 260:return n(S,B);case 79:if(S.isInJSDocNamespace)return 0}return 1}function a(S,B){for(var J=S.propertyName||S.name,k=S.parent;k;){if(e.isBlock(k)||e.isModuleBlock(k)||e.isSourceFile(k)){for(var M=k.statements,x=void 0,w=0,K=M;w<K.length;w++){var Z=K[w];if(e.nodeHasName(Z,J)){Z.parent||(e.setParent(Z,k),e.setParentRecursive(Z,!1));var ne=f(Z,B);if((x===void 0||ne>x)&&(x=ne),x===1)return x}}if(x!==void 0)return x}k=k.parent}return 1}var p;(function(S){S[S.None=0]="None",S[S.IsContainer=1]="IsContainer",S[S.IsBlockScopedContainer=2]="IsBlockScopedContainer",S[S.IsControlFlowContainer=4]="IsControlFlowContainer",S[S.IsFunctionLike=8]="IsFunctionLike",S[S.IsFunctionExpression=16]="IsFunctionExpression",S[S.HasLocals=32]="HasLocals",S[S.IsInterface=64]="IsInterface",S[S.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor"})(p||(p={}));function N(S){return e.Debug.attachFlowNodeDebugInfo(S),S}var H=v();function h(S,B){e.tracing===null||e.tracing===void 0||e.tracing.push("bind","bindSourceFile",{path:S.path},!0),e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+S.fileName),H(S,B),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=h;function v(){var S,B,J,k,M,x,w,K,Z,ne,R,Y,U,$,T,I,y,D,C,m,u,g,F=!1,te=0,ue,X,j={flags:1},Se={flags:1},Ce=fr();function O(pe,wr,ft,Zt,Re){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(pe)||S,pe,wr,ft,Zt,Re)}function Q(pe,wr){S=pe,B=wr,J=e.getEmitScriptTarget(B),g=V(S,wr),X=new e.Set,te=0,ue=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(j),e.Debug.attachFlowNodeDebugInfo(Se),S.locals||(Ha(S),S.symbolCount=te,S.classifiableNames=X,pt()),S=void 0,B=void 0,J=void 0,k=void 0,M=void 0,x=void 0,w=void 0,K=void 0,Z=void 0,ne=!1,R=void 0,Y=void 0,U=void 0,$=void 0,T=void 0,I=void 0,y=void 0,C=void 0,m=!1,F=!1,u=0}return Q;function V(pe,wr){return e.getStrictOptionValue(wr,"alwaysStrict")&&!pe.isDeclarationFile?!0:!!pe.externalModuleIndicator}function z(pe,wr){return te++,new ue(pe,wr)}function Te(pe,wr,ft){pe.flags|=ft,wr.symbol=pe,pe.declarations=e.appendIfUnique(pe.declarations,wr),ft&1955&&!pe.exports&&(pe.exports=e.createSymbolTable()),ft&6240&&!pe.members&&(pe.members=e.createSymbolTable()),pe.constEnumOnlyModule&&pe.flags&304&&(pe.constEnumOnlyModule=!1),ft&111551&&e.setValueDeclaration(pe,wr)}function ge(pe){if(pe.kind===270)return pe.isExportEquals?"export=":"default";var wr=e.getNameOfDeclaration(pe);if(wr){if(e.isAmbientModule(pe)){var ft=e.getTextOfIdentifierOrLiteral(wr);return e.isGlobalScopeAugmentation(pe)?"__global":'"'.concat(ft,'"')}if(wr.kind===161){var Zt=wr.expression;if(e.isStringOrNumericLiteralLike(Zt))return e.escapeLeadingUnderscores(Zt.text);if(e.isSignedNumericLiteral(Zt))return e.tokenToString(Zt.operator)+Zt.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(wr)){var Re=e.getContainingClass(pe);if(!Re)return;var Qr=Re.symbol;return e.getSymbolNameForPrivateIdentifier(Qr,wr.escapedText)}return e.isPropertyNameLiteral(wr)?e.getEscapedTextOfIdentifierOrLiteral(wr):void 0}switch(pe.kind){case 170:return"__constructor";case 178:case 173:case 321:return"__call";case 179:case 174:return"__new";case 175:return"__index";case 271:return"__export";case 303:return"export=";case 220:if(e.getAssignmentDeclarationKind(pe)===2)return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 315:return e.isJSDocConstructSignature(pe)?"__new":"__call";case 163:e.Debug.assert(pe.parent.kind===315,"Impossible parameter parent kind",function(){return"parent is: ".concat(e.SyntaxKind?e.SyntaxKind[pe.parent.kind]:pe.parent.kind,", expected JSDocFunctionType")});var vn=pe.parent,Xn=vn.parameters.indexOf(pe);return"arg"+Xn}}function ke(pe){return e.isNamedDeclaration(pe)?e.declarationNameToString(pe.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(ge(pe)))}function Me(pe,wr,ft,Zt,Re,Qr,vn){e.Debug.assert(vn||!e.hasDynamicName(ft));var Xn=e.hasSyntacticModifier(ft,512)||e.isExportSpecifier(ft)&&ft.name.escapedText==="default",gi=vn?"__computed":Xn&&wr?"default":ge(ft),Ia;if(gi===void 0)Ia=z(0,"__missing");else if(Ia=pe.get(gi),Zt&2885600&&X.add(gi),!Ia)pe.set(gi,Ia=z(0,gi)),Qr&&(Ia.isReplaceableByMethod=!0);else{if(Qr&&!Ia.isReplaceableByMethod)return Ia;if(Ia.flags&Re){if(Ia.isReplaceableByMethod)pe.set(gi,Ia=z(0,gi));else if(!(Zt&3&&Ia.flags&67108864)){e.isNamedDeclaration(ft)&&e.setParent(ft.name,ft);var oo=Ia.flags&2?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,Wo=!0;(Ia.flags&384||Zt&384)&&(oo=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Wo=!1);var Nr=!1;e.length(Ia.declarations)&&(Xn||Ia.declarations&&Ia.declarations.length&&ft.kind===270&&!ft.isExportEquals)&&(oo=e.Diagnostics.A_module_cannot_have_multiple_default_exports,Wo=!1,Nr=!0);var Us=[];e.isTypeAliasDeclaration(ft)&&e.nodeIsMissing(ft.type)&&e.hasSyntacticModifier(ft,1)&&Ia.flags&2887656&&Us.push(O(ft,e.Diagnostics.Did_you_mean_0,"export type { ".concat(e.unescapeLeadingUnderscores(ft.name.escapedText)," }")));var il=e.getNameOfDeclaration(ft)||ft;e.forEach(Ia.declarations,function(Co,Vs){var Ql=e.getNameOfDeclaration(Co)||Co,zl=O(Ql,oo,Wo?ke(Co):void 0);S.bindDiagnostics.push(Nr?e.addRelatedInfo(zl,O(il,Vs===0?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):zl),Nr&&Us.push(O(Ql,e.Diagnostics.The_first_export_default_is_here))});var Pl=O(il,oo,Wo?ke(ft):void 0);S.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,Gt([Pl],Us,!1))),Ia=z(0,gi)}}}return Te(Ia,ft,Zt),Ia.parent?e.Debug.assert(Ia.parent===wr,"Existing symbol parent should match new one"):Ia.parent=wr,Ia}function Ie(pe,wr,ft){var Zt=!!(e.getCombinedModifierFlags(pe)&1)||Ge(pe);if(wr&2097152)return pe.kind===274||pe.kind===264&&Zt?Me(M.symbol.exports,M.symbol,pe,wr,ft):Me(M.locals,void 0,pe,wr,ft);if(e.isJSDocTypeAlias(pe)&&e.Debug.assert(e.isInJSFile(pe)),!e.isAmbientModule(pe)&&(Zt||M.flags&64)){if(!M.locals||e.hasSyntacticModifier(pe,512)&&!ge(pe))return Me(M.symbol.exports,M.symbol,pe,wr,ft);var Re=wr&111551?1048576:0,Qr=Me(M.locals,void 0,pe,Re,ft);return Qr.exportSymbol=Me(M.symbol.exports,M.symbol,pe,wr,ft),pe.localSymbol=Qr,Qr}else return Me(M.locals,void 0,pe,wr,ft)}function Ge(pe){if(pe.parent&&e.isModuleDeclaration(pe)&&(pe=pe.parent),!e.isJSDocTypeAlias(pe))return!1;if(!e.isJSDocEnumTag(pe)&&!!pe.fullName)return!0;var wr=e.getNameOfDeclaration(pe);return wr?!!(e.isPropertyAccessEntityNameExpression(wr.parent)&&$a(wr.parent)||e.isDeclaration(wr.parent)&&e.getCombinedModifierFlags(wr.parent)&1):!1}function he(pe,wr){var ft=M,Zt=x,Re=w;if(wr&1?(pe.kind!==213&&(x=M),M=w=pe,wr&32&&(M.locals=e.createSymbolTable()),mt(M)):wr&2&&(w=pe,w.locals=void 0),wr&4){var Qr=R,vn=Y,Xn=U,gi=$,Ia=y,oo=C,Wo=m,Nr=wr&16&&!e.hasSyntacticModifier(pe,256)&&!pe.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(pe);Nr||(R=N({flags:2}),wr&144&&(R.node=pe)),$=Nr||pe.kind===170||pe.kind===169||e.isInJSFile(pe)&&(pe.kind===255||pe.kind===212)?lr():void 0,y=void 0,Y=void 0,U=void 0,C=void 0,m=!1,Le(pe),pe.flags&=-2817,!(R.flags&1)&&wr&8&&e.nodeIsPresent(pe.body)&&(pe.flags|=256,m&&(pe.flags|=512),pe.endFlowNode=R),pe.kind===303&&(pe.flags|=u,pe.endFlowNode=R),$&&(Pe($,R),R=Fe($),(pe.kind===170||pe.kind===169||e.isInJSFile(pe)&&(pe.kind===255||pe.kind===212))&&(pe.returnFlowNode=R)),Nr||(R=Qr),Y=vn,U=Xn,$=gi,y=Ia,C=oo,m=Wo}else wr&64?(ne=!1,Le(pe),pe.flags=ne?pe.flags|128:pe.flags&-129):Le(pe);M=ft,x=Zt,w=Re}function ve(pe){Ve(pe,function(wr){return wr.kind===255?Ha(wr):void 0}),Ve(pe,function(wr){return wr.kind!==255?Ha(wr):void 0})}function Ve(pe,wr){wr===void 0&&(wr=Ha),pe!==void 0&&e.forEach(pe,wr)}function _e(pe){e.forEachChild(pe,Ha,Ve)}function Le(pe){var wr=F;if(F=!1,as(pe)){_e(pe),Yo(pe),F=wr;return}switch(pe.kind>=236&&pe.kind<=252&&!B.allowUnreachableCode&&(pe.flowNode=R),pe.kind){case 240:Yr(pe);break;case 239:lt(pe);break;case 241:tt(pe);break;case 242:case 243:Rt(pe);break;case 238:cn(pe);break;case 246:case 250:bn(pe);break;case 245:case 244:ir(pe);break;case 251:Rr(pe);break;case 248:sr(pe);break;case 262:ye(pe);break;case 288:or(pe);break;case 237:fe(pe);break;case 249:Ee(pe);break;case 218:me(pe);break;case 219:Ze(pe);break;case 220:if(e.isDestructuringAssignment(pe)){F=wr,xr(pe);return}Ce(pe);break;case 214:dr(pe);break;case 221:et(pe);break;case 253:Wr(pe);break;case 205:case 206:xt(pe);break;case 207:wt(pe);break;case 229:ht(pe);break;case 343:case 336:case 337:Ir(pe);break;case 303:{ve(pe.statements),Ha(pe.endOfFileToken);break}case 234:case 261:ve(pe.statements);break;case 202:tr(pe);break;case 204:case 203:case 294:case 224:F=wr;default:_e(pe);break}Yo(pe),F=wr}function qe(pe){switch(pe.kind){case 79:case 80:case 108:case 205:case 206:return De(pe);case 207:return Ae(pe);case 211:case 229:return qe(pe.expression);case 220:return Lr(pe);case 218:return pe.operator===53&&qe(pe.operand);case 215:return qe(pe.expression)}return!1}function Xe(pe){return e.isDottedName(pe)||(e.isPropertyAccessExpression(pe)||e.isNonNullExpression(pe)||e.isParenthesizedExpression(pe))&&Xe(pe.expression)||e.isBinaryExpression(pe)&&pe.operatorToken.kind===27&&Xe(pe.right)||e.isElementAccessExpression(pe)&&e.isStringOrNumericLiteralLike(pe.argumentExpression)&&Xe(pe.expression)||e.isAssignmentExpression(pe)&&Xe(pe.left)}function De(pe){return Xe(pe)||e.isOptionalChain(pe)&&De(pe.expression)}function Ae(pe){if(pe.arguments)for(var wr=0,ft=pe.arguments;wr<ft.length;wr++){var Zt=ft[wr];if(De(Zt))return!0}return!!(pe.expression.kind===205&&De(pe.expression.expression))}function Ye(pe,wr){return e.isTypeOfExpression(pe)&&Er(pe.expression)&&e.isStringLiteralLike(wr)}function Lr(pe){switch(pe.operatorToken.kind){case 63:case 75:case 76:case 77:return De(pe.left);case 34:case 35:case 36:case 37:return Er(pe.left)||Er(pe.right)||Ye(pe.right,pe.left)||Ye(pe.left,pe.right);case 102:return Er(pe.left);case 101:return qe(pe.right);case 27:return qe(pe.right)}return!1}function Er(pe){switch(pe.kind){case 211:return Er(pe.expression);case 220:switch(pe.operatorToken.kind){case 63:return Er(pe.left);case 27:return Er(pe.right)}}return De(pe)}function lr(){return N({flags:4,antecedents:void 0})}function Cr(){return N({flags:8,antecedents:void 0})}function Or(pe,wr,ft){return N({flags:1024,target:pe,antecedents:wr,antecedent:ft})}function Ke(pe){pe.flags|=pe.flags&2048?4096:2048}function Pe(pe,wr){!(wr.flags&1)&&!e.contains(pe.antecedents,wr)&&((pe.antecedents||(pe.antecedents=[])).push(wr),Ke(wr))}function Hr(pe,wr,ft){return wr.flags&1?wr:ft?(ft.kind===110&&pe&64||ft.kind===95&&pe&32)&&!e.isExpressionOfOptionalChainRoot(ft)&&!e.isNullishCoalesce(ft.parent)?j:qe(ft)?(Ke(wr),N({flags:pe,antecedent:wr,node:ft})):wr:pe&32?wr:j}function ur(pe,wr,ft,Zt){return Ke(pe),N({flags:128,antecedent:pe,switchStatement:wr,clauseStart:ft,clauseEnd:Zt})}function vr(pe,wr,ft){Ke(wr);var Zt=N({flags:pe,antecedent:wr,node:ft});return y&&Pe(y,Zt),Zt}function de(pe,wr){return Ke(pe),N({flags:512,antecedent:pe,node:wr})}function Fe(pe){var wr=pe.antecedents;return wr?wr.length===1?wr[0]:pe:j}function $e(pe){var wr=pe.parent;switch(wr.kind){case 238:case 240:case 239:return wr.expression===pe;case 241:case 221:return wr.condition===pe}return!1}function Dr(pe){for(;;)if(pe.kind===211)pe=pe.expression;else if(pe.kind===218&&pe.operator===53)pe=pe.operand;else return pe.kind===220&&(pe.operatorToken.kind===55||pe.operatorToken.kind===56||pe.operatorToken.kind===60)}function Fr(pe){return pe=e.skipParentheses(pe),e.isBinaryExpression(pe)&&e.isLogicalOrCoalescingAssignmentOperator(pe.operatorToken.kind)}function He(pe){for(;e.isParenthesizedExpression(pe.parent)||e.isPrefixUnaryExpression(pe.parent)&&pe.parent.operator===53;)pe=pe.parent;return!$e(pe)&&!Fr(pe.parent)&&!Dr(pe.parent)&&!(e.isOptionalChain(pe.parent)&&pe.parent.expression===pe)}function pr(pe,wr,ft,Zt){var Re=T,Qr=I;T=ft,I=Zt,pe(wr),T=Re,I=Qr}function Jr(pe,wr,ft){pr(Ha,pe,wr,ft),(!pe||!Fr(pe)&&!Dr(pe)&&!(e.isOptionalChain(pe)&&e.isOutermostOptionalChain(pe)))&&(Pe(wr,Hr(32,R,pe)),Pe(ft,Hr(64,R,pe)))}function ze(pe,wr,ft){var Zt=Y,Re=U;Y=wr,U=ft,Ha(pe),Y=Zt,U=Re}function Ar(pe,wr){for(var ft=C;ft&&pe.parent.kind===249;)ft.continueTarget=wr,ft=ft.next,pe=pe.parent;return wr}function Yr(pe){var wr=Ar(pe,Cr()),ft=lr(),Zt=lr();Pe(wr,R),R=wr,Jr(pe.expression,ft,Zt),R=Fe(ft),ze(pe.statement,Zt,wr),Pe(wr,R),R=Fe(Zt)}function lt(pe){var wr=Cr(),ft=Ar(pe,lr()),Zt=lr();Pe(wr,R),R=wr,ze(pe.statement,Zt,ft),Pe(ft,R),R=Fe(ft),Jr(pe.expression,wr,Zt),R=Fe(Zt)}function tt(pe){var wr=Ar(pe,Cr()),ft=lr(),Zt=lr();Ha(pe.initializer),Pe(wr,R),R=wr,Jr(pe.condition,ft,Zt),R=Fe(ft),ze(pe.statement,Zt,wr),Ha(pe.incrementor),Pe(wr,R),R=Fe(Zt)}function Rt(pe){var wr=Ar(pe,Cr()),ft=lr();Ha(pe.expression),Pe(wr,R),R=wr,pe.kind===243&&Ha(pe.awaitModifier),Pe(ft,R),Ha(pe.initializer),pe.initializer.kind!==254&&ee(pe.initializer),ze(pe.statement,ft,wr),Pe(wr,R),R=Fe(ft)}function cn(pe){var wr=lr(),ft=lr(),Zt=lr();Jr(pe.expression,wr,ft),R=Fe(wr),Ha(pe.thenStatement),Pe(Zt,R),R=Fe(ft),Ha(pe.elseStatement),Pe(Zt,R),R=Fe(Zt)}function bn(pe){Ha(pe.expression),pe.kind===246&&(m=!0,$&&Pe($,R)),R=j}function In(pe){for(var wr=C;wr;wr=wr.next)if(wr.name===pe)return wr}function zn(pe,wr,ft){var Zt=pe.kind===245?wr:ft;Zt&&(Pe(Zt,R),R=j)}function ir(pe){if(Ha(pe.label),pe.label){var wr=In(pe.label.escapedText);wr&&(wr.referenced=!0,zn(pe,wr.breakTarget,wr.continueTarget))}else zn(pe,Y,U)}function Rr(pe){var wr=$,ft=y,Zt=lr(),Re=lr(),Qr=lr();if(pe.finallyBlock&&($=Re),Pe(Qr,R),y=Qr,Ha(pe.tryBlock),Pe(Zt,R),pe.catchClause&&(R=Fe(Qr),Qr=lr(),Pe(Qr,R),y=Qr,Ha(pe.catchClause),Pe(Zt,R)),$=wr,y=ft,pe.finallyBlock){var vn=lr();vn.antecedents=e.concatenate(e.concatenate(Zt.antecedents,Qr.antecedents),Re.antecedents),R=vn,Ha(pe.finallyBlock),R.flags&1?R=j:($&&Re.antecedents&&Pe($,Or(vn,Re.antecedents,R)),y&&Qr.antecedents&&Pe(y,Or(vn,Qr.antecedents,R)),R=Zt.antecedents?Or(vn,Zt.antecedents,R):j)}else R=Fe(Zt)}function sr(pe){var wr=lr();Ha(pe.expression);var ft=Y,Zt=D;Y=wr,D=R,Ha(pe.caseBlock),Pe(wr,R);var Re=e.forEach(pe.caseBlock.clauses,function(Qr){return Qr.kind===289});pe.possiblyExhaustive=!Re&&!wr.antecedents,Re||Pe(wr,ur(D,pe,0,0)),Y=ft,D=Zt,R=Fe(wr)}function ye(pe){for(var wr=pe.clauses,ft=qe(pe.parent.expression),Zt=j,Re=0;Re<wr.length;Re++){for(var Qr=Re;!wr[Re].statements.length&&Re+1<wr.length;)Ha(wr[Re]),Re++;var vn=lr();Pe(vn,ft?ur(D,pe.parent,Qr,Re+1):D),Pe(vn,Zt),R=Fe(vn);var Xn=wr[Re];Ha(Xn),Zt=R,!(R.flags&1)&&Re!==wr.length-1&&B.noFallthroughCasesInSwitch&&(Xn.fallthroughFlowNode=R)}}function or(pe){var wr=R;R=D,Ha(pe.expression),R=wr,Ve(pe.statements)}function fe(pe){Ha(pe.expression),je(pe.expression)}function je(pe){if(pe.kind===207){var wr=pe;wr.expression.kind!==106&&e.isDottedName(wr.expression)&&(R=de(R,wr))}}function Ee(pe){var wr=lr();C={next:C,name:pe.label.escapedText,breakTarget:wr,continueTarget:void 0,referenced:!1},Ha(pe.label),Ha(pe.statement),!C.referenced&&!B.allowUnusedLabels&&No(e.unusedLabelIsError(B),pe.label,e.Diagnostics.Unused_label),C=C.next,Pe(wr,R),R=Fe(wr)}function We(pe){pe.kind===220&&pe.operatorToken.kind===63?ee(pe.left):ee(pe)}function ee(pe){if(Xe(pe))R=vr(16,R,pe);else if(pe.kind===203)for(var wr=0,ft=pe.elements;wr<ft.length;wr++){var Zt=ft[wr];Zt.kind===224?ee(Zt.expression):We(Zt)}else if(pe.kind===204)for(var Re=0,Qr=pe.properties;Re<Qr.length;Re++){var vn=Qr[Re];vn.kind===294?We(vn.initializer):vn.kind===295?ee(vn.name):vn.kind===296&&ee(vn.expression)}}function Ne(pe,wr,ft){var Zt=lr();pe.operatorToken.kind===55||pe.operatorToken.kind===76?Jr(pe.left,Zt,ft):Jr(pe.left,wr,Zt),R=Fe(Zt),Ha(pe.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(pe.operatorToken.kind)?(pr(Ha,pe.right,wr,ft),ee(pe.left),Pe(wr,Hr(32,R,pe)),Pe(ft,Hr(64,R,pe))):Jr(pe.right,wr,ft)}function me(pe){if(pe.operator===53){var wr=T;T=I,I=wr,_e(pe),I=T,T=wr}else _e(pe),(pe.operator===45||pe.operator===46)&&ee(pe.operand)}function Ze(pe){_e(pe),(pe.operator===45||pe.operator===46)&&ee(pe.operand)}function xr(pe){F?(F=!1,Ha(pe.operatorToken),Ha(pe.right),F=!0,Ha(pe.left)):(F=!0,Ha(pe.left),F=!1,Ha(pe.operatorToken),Ha(pe.right)),ee(pe.left)}function fr(){return e.createBinaryExpressionTrampoline(pe,wr,ft,Zt,Re,void 0);function pe(vn,Xn){if(Xn){Xn.stackIndex++,e.setParent(vn,k);var gi=g;hi(vn);var Ia=k;k=vn,Xn.skip=!1,Xn.inStrictModeStack[Xn.stackIndex]=gi,Xn.parentStack[Xn.stackIndex]=Ia}else Xn={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var oo=vn.operatorToken.kind;if(oo===55||oo===56||oo===60||e.isLogicalOrCoalescingAssignmentOperator(oo)){if(He(vn)){var Wo=lr();Ne(vn,Wo,Wo),R=Fe(Wo)}else Ne(vn,T,I);Xn.skip=!0}return Xn}function wr(vn,Xn,gi){if(!Xn.skip)return Qr(vn)}function ft(vn,Xn,gi){Xn.skip||(vn.kind===27&&je(gi.left),Ha(vn))}function Zt(vn,Xn,gi){if(!Xn.skip)return Qr(vn)}function Re(vn,Xn){if(!Xn.skip){var gi=vn.operatorToken.kind;if(e.isAssignmentOperator(gi)&&!e.isAssignmentTarget(vn)&&(ee(vn.left),gi===63&&vn.left.kind===206)){var Ia=vn.left;Er(Ia.expression)&&(R=vr(256,R,vn))}}var oo=Xn.inStrictModeStack[Xn.stackIndex],Wo=Xn.parentStack[Xn.stackIndex];oo!==void 0&&(g=oo),Wo!==void 0&&(k=Wo),Xn.skip=!1,Xn.stackIndex--}function Qr(vn){if(vn&&e.isBinaryExpression(vn)&&!e.isDestructuringAssignment(vn))return vn;Ha(vn)}}function dr(pe){_e(pe),pe.expression.kind===205&&ee(pe.expression)}function et(pe){var wr=lr(),ft=lr(),Zt=lr();Jr(pe.condition,wr,ft),R=Fe(wr),Ha(pe.questionToken),Ha(pe.whenTrue),Pe(Zt,R),R=Fe(ft),Ha(pe.colonToken),Ha(pe.whenFalse),Pe(Zt,R),R=Fe(Zt)}function yt(pe){var wr=e.isOmittedExpression(pe)?void 0:pe.name;if(e.isBindingPattern(wr))for(var ft=0,Zt=wr.elements;ft<Zt.length;ft++){var Re=Zt[ft];yt(Re)}else R=vr(16,R,pe)}function Wr(pe){_e(pe),(pe.initializer||e.isForInOrOfStatement(pe.parent.parent))&&yt(pe)}function tr(pe){e.isBindingPattern(pe.name)?(Ve(pe.decorators),Ve(pe.modifiers),Ha(pe.dotDotDotToken),Ha(pe.propertyName),Ha(pe.initializer),Ha(pe.name)):_e(pe)}function Ir(pe){Ha(pe.tagName),pe.kind!==337&&pe.fullName&&(e.setParent(pe.fullName,pe),e.setParentRecursive(pe.fullName,!1)),typeof pe.comment!="string"&&Ve(pe.comment)}function kr(pe){_e(pe);var wr=e.getHostSignatureFromJSDoc(pe);wr&&wr.kind!==168&&Te(wr.symbol,wr,32)}function zr(pe,wr,ft){pr(Ha,pe,wr,ft),(!e.isOptionalChain(pe)||e.isOutermostOptionalChain(pe))&&(Pe(wr,Hr(32,R,pe)),Pe(ft,Hr(64,R,pe)))}function gt(pe){switch(pe.kind){case 205:Ha(pe.questionDotToken),Ha(pe.name);break;case 206:Ha(pe.questionDotToken),Ha(pe.argumentExpression);break;case 207:Ha(pe.questionDotToken),Ve(pe.typeArguments),Ve(pe.arguments);break}}function vt(pe,wr,ft){var Zt=e.isOptionalChainRoot(pe)?lr():void 0;zr(pe.expression,Zt||wr,ft),Zt&&(R=Fe(Zt)),pr(gt,pe,wr,ft),e.isOutermostOptionalChain(pe)&&(Pe(wr,Hr(32,R,pe)),Pe(ft,Hr(64,R,pe)))}function ut(pe){if(He(pe)){var wr=lr();vt(pe,wr,wr),R=Fe(wr)}else vt(pe,T,I)}function ht(pe){e.isOptionalChain(pe)?ut(pe):_e(pe)}function xt(pe){e.isOptionalChain(pe)?ut(pe):_e(pe)}function wt(pe){if(e.isOptionalChain(pe))ut(pe);else{var wr=e.skipParentheses(pe.expression);wr.kind===212||wr.kind===213?(Ve(pe.typeArguments),Ve(pe.arguments),Ha(pe.expression)):(_e(pe),pe.expression.kind===106&&(R=de(R,pe)))}if(pe.expression.kind===205){var ft=pe.expression;e.isIdentifier(ft.name)&&Er(ft.expression)&&e.isPushOrUnshiftIdentifier(ft.name)&&(R=vr(256,R,pe))}}function Qt(pe){switch(pe.kind){case 225:case 256:case 259:case 204:case 181:case 320:case 285:return 1;case 257:return 65;case 260:case 258:case 194:return 33;case 303:return 37;case 171:case 172:case 168:if(e.isObjectLiteralOrClassExpressionMethodOrAccessor(pe))return 173;case 170:case 255:case 167:case 173:case 321:case 315:case 178:case 174:case 175:case 179:case 169:return 45;case 212:case 213:return 61;case 261:return 4;case 166:return pe.initializer?4:0;case 291:case 241:case 242:case 243:case 262:return 2;case 234:return e.isFunctionLike(pe.parent)||e.isClassStaticBlockDeclaration(pe.parent)?0:2}return 0}function mt(pe){K&&(K.nextContainer=pe),K=pe}function rn(pe,wr,ft){switch(M.kind){case 260:return Ie(pe,wr,ft);case 303:return ba(pe,wr,ft);case 225:case 256:return sa(pe,wr,ft);case 259:return Me(M.symbol.exports,M.symbol,pe,wr,ft);case 181:case 320:case 204:case 257:case 285:return Me(M.symbol.members,M.symbol,pe,wr,ft);case 178:case 179:case 173:case 174:case 321:case 175:case 168:case 167:case 170:case 171:case 172:case 255:case 212:case 213:case 315:case 343:case 336:case 169:case 258:case 194:return Me(M.locals,void 0,pe,wr,ft)}}function sa(pe,wr,ft){return e.isStatic(pe)?Me(M.symbol.exports,M.symbol,pe,wr,ft):Me(M.symbol.members,M.symbol,pe,wr,ft)}function ba(pe,wr,ft){return e.isExternalModule(S)?Ie(pe,wr,ft):Me(S.locals,void 0,pe,wr,ft)}function Jn(pe){var wr=e.isSourceFile(pe)?pe:e.tryCast(pe.body,e.isModuleBlock);return!!wr&&wr.statements.some(function(ft){return e.isExportDeclaration(ft)||e.isExportAssignment(ft)})}function na(pe){pe.flags&8388608&&!Jn(pe)?pe.flags|=64:pe.flags&=-65}function Wn(pe){if(na(pe),e.isAmbientModule(pe))if(e.hasSyntacticModifier(pe,1)&&to(pe,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(pe))en(pe);else{var wr=void 0;if(pe.name.kind===10){var ft=pe.name.text;wr=e.tryParsePattern(ft),wr===void 0&&to(pe.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,ft)}var Zt=rn(pe,512,110735);S.patternAmbientModules=e.append(S.patternAmbientModules,wr&&!e.isString(wr)?{pattern:wr,symbol:Zt}:void 0)}else{var Re=en(pe);if(Re!==0){var Zt=pe.symbol;Zt.constEnumOnlyModule=!(Zt.flags&304)&&Re===2&&Zt.constEnumOnlyModule!==!1}}}function en(pe){var wr=n(pe),ft=wr!==0;return rn(pe,ft?512:1024,ft?110735:0),wr}function St(pe){var wr=z(131072,ge(pe));Te(wr,pe,131072);var ft=z(2048,"__type");Te(ft,pe,2048),ft.members=e.createSymbolTable(),ft.members.set(wr.escapedName,wr)}function Ut(pe){var wr;if(function(oo){oo[oo.Property=1]="Property",oo[oo.Accessor=2]="Accessor"}(wr||(wr={})),g&&!e.isAssignmentTarget(pe))for(var ft=new e.Map,Zt=0,Re=pe.properties;Zt<Re.length;Zt++){var Qr=Re[Zt];if(!(Qr.kind===296||Qr.name.kind!==79)){var vn=Qr.name,Xn=Qr.kind===294||Qr.kind===295||Qr.kind===168?1:2,gi=ft.get(vn.escapedText);if(!gi){ft.set(vn.escapedText,Xn);continue}if(Xn===1&&gi===1){var Ia=e.getErrorSpanForNode(S,vn);S.bindDiagnostics.push(e.createFileDiagnostic(S,Ia.start,Ia.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}}return dn(pe,4096,"__object")}function qt(pe){return dn(pe,4096,"__jsxAttributes")}function Pn(pe,wr,ft){return rn(pe,wr,ft)}function dn(pe,wr,ft){var Zt=z(wr,ft);return wr&106508&&(Zt.parent=M.symbol),Te(Zt,pe,wr),Zt}function oa(pe,wr,ft){switch(w.kind){case 260:Ie(pe,wr,ft);break;case 303:if(e.isExternalOrCommonJsModule(M)){Ie(pe,wr,ft);break}default:w.locals||(w.locals=e.createSymbolTable(),mt(w)),Me(w.locals,void 0,pe,wr,ft)}}function pt(){if(!!Z){for(var pe=M,wr=K,ft=w,Zt=k,Re=R,Qr=0,vn=Z;Qr<vn.length;Qr++){var Xn=vn[Qr],gi=Xn.parent.parent;M=e.findAncestor(gi.parent,function(Nr){return!!(Qt(Nr)&1)})||S,w=e.getEnclosingBlockScopeContainer(gi)||S,R=N({flags:2}),k=Xn,Ha(Xn.typeExpression);var Ia=e.getNameOfDeclaration(Xn);if((e.isJSDocEnumTag(Xn)||!Xn.fullName)&&Ia&&e.isPropertyAccessEntityNameExpression(Ia.parent)){var oo=$a(Ia.parent);if(oo){xa(S.symbol,Ia.parent,oo,!!e.findAncestor(Ia,function(Nr){return e.isPropertyAccessExpression(Nr)&&Nr.name.escapedText==="prototype"}),!1);var Wo=M;switch(e.getAssignmentDeclarationPropertyAccessKind(Ia.parent)){case 1:case 2:e.isExternalOrCommonJsModule(S)?M=S:M=void 0;break;case 4:M=Ia.parent.expression;break;case 3:M=Ia.parent.expression.name;break;case 5:M=b(S,Ia.parent.expression)?S:e.isPropertyAccessExpression(Ia.parent.expression)?Ia.parent.expression.name:Ia.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}M&&Ie(Xn,524288,788968),M=Wo}}else e.isJSDocEnumTag(Xn)||!Xn.fullName||Xn.fullName.kind===79?(k=Xn.parent,oa(Xn,524288,788968)):Ha(Xn.fullName)}M=pe,K=wr,w=ft,k=Zt,R=Re}}function _t(pe){!S.parseDiagnostics.length&&!(pe.flags&8388608)&&!(pe.flags&4194304)&&!e.isIdentifierName(pe)&&(g&&pe.originalKeywordKind>=117&&pe.originalKeywordKind<=125?S.bindDiagnostics.push(O(pe,Pt(pe),e.declarationNameToString(pe))):pe.originalKeywordKind===132?e.isExternalModule(S)&&e.isInTopLevelContext(pe)?S.bindDiagnostics.push(O(pe,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(pe))):pe.flags&32768&&S.bindDiagnostics.push(O(pe,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(pe))):pe.originalKeywordKind===125&&pe.flags&8192&&S.bindDiagnostics.push(O(pe,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(pe))))}function Pt(pe){return e.getContainingClass(pe)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:S.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 It(pe){pe.escapedText==="#constructor"&&(S.parseDiagnostics.length||S.bindDiagnostics.push(O(pe,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(pe))))}function rt(pe){g&&e.isLeftHandSideExpression(pe.left)&&e.isAssignmentOperator(pe.operatorToken.kind)&&Ci(pe,pe.left)}function Cn(pe){g&&pe.variableDeclaration&&Ci(pe,pe.variableDeclaration.name)}function Qn(pe){if(g&&pe.expression.kind===79){var wr=e.getErrorSpanForNode(S,pe.expression);S.bindDiagnostics.push(e.createFileDiagnostic(S,wr.start,wr.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Ra(pe){return e.isIdentifier(pe)&&(pe.escapedText==="eval"||pe.escapedText==="arguments")}function Ci(pe,wr){if(wr&&wr.kind===79){var ft=wr;if(Ra(ft)){var Zt=e.getErrorSpanForNode(S,wr);S.bindDiagnostics.push(e.createFileDiagnostic(S,Zt.start,Zt.length,_i(pe),e.idText(ft)))}}}function _i(pe){return e.getContainingClass(pe)?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:S.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function va(pe){g&&Ci(pe,pe.name)}function yi(pe){return e.getContainingClass(pe)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:S.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 ro(pe){if(J<2&&w.kind!==303&&w.kind!==260&&!e.isFunctionLikeOrClassStaticBlockDeclaration(w)){var wr=e.getErrorSpanForNode(S,pe);S.bindDiagnostics.push(e.createFileDiagnostic(S,wr.start,wr.length,yi(pe)))}}function Ka(pe){g&&pe.numericLiteralFlags&32&&S.bindDiagnostics.push(O(pe,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function Pi(pe){g&&Ci(pe,pe.operand)}function io(pe){g&&(pe.operator===45||pe.operator===46)&&Ci(pe,pe.operand)}function ji(pe){g&&to(pe,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function Hi(pe){g&&e.getEmitScriptTarget(B)>=2&&(e.isDeclarationStatement(pe.statement)||e.isVariableStatement(pe.statement))&&to(pe.label,e.Diagnostics.A_label_is_not_allowed_here)}function to(pe,wr,ft,Zt,Re){var Qr=e.getSpanOfTokenAtPosition(S,pe.pos);S.bindDiagnostics.push(e.createFileDiagnostic(S,Qr.start,Qr.length,wr,ft,Zt,Re))}function No(pe,wr,ft){lo(pe,wr,wr,ft)}function lo(pe,wr,ft,Zt){Lo(pe,{pos:e.getTokenPosOfNode(wr,S),end:ft.end},Zt)}function Lo(pe,wr,ft){var Zt=e.createFileDiagnostic(S,wr.pos,wr.end-wr.pos,ft);pe?S.bindDiagnostics.push(Zt):S.bindSuggestionDiagnostics=e.append(S.bindSuggestionDiagnostics,Rn(Rn({},Zt),{category:e.DiagnosticCategory.Suggestion}))}function Ha(pe){if(!!pe){e.setParent(pe,k);var wr=g;if(hi(pe),pe.kind>159){var ft=k;k=pe;var Zt=Qt(pe);Zt===0?Le(pe):he(pe,Zt),k=ft}else{var ft=k;pe.kind===1&&(k=pe),Yo(pe),k=ft}g=wr}}function Yo(pe){if(e.hasJSDocNodes(pe))if(e.isInJSFile(pe))for(var wr=0,ft=pe.jsDoc;wr<ft.length;wr++){var Zt=ft[wr];Ha(Zt)}else for(var Re=0,Qr=pe.jsDoc;Re<Qr.length;Re++){var Zt=Qr[Re];e.setParent(Zt,pe),e.setParentRecursive(Zt,!1)}}function co(pe){if(!g)for(var wr=0,ft=pe;wr<ft.length;wr++){var Zt=ft[wr];if(!e.isPrologueDirective(Zt))return;if(za(Zt)){g=!0;return}}}function za(pe){var wr=e.getSourceTextOfNodeFromSourceFile(S,pe.expression);return wr==='"use strict"'||wr==="'use strict'"}function hi(pe){switch(pe.kind){case 79:if(pe.isInJSDocNamespace){for(var wr=pe.parent;wr&&!e.isJSDocTypeAlias(wr);)wr=wr.parent;oa(wr,524288,788968);break}case 108:return R&&(e.isExpression(pe)||k.kind===295)&&(pe.flowNode=R),_t(pe);case 160:R&&e.isPartOfTypeQuery(pe)&&(pe.flowNode=R);break;case 230:case 106:pe.flowNode=R;break;case 80:return It(pe);case 205:case 206:var ft=pe;R&&Xe(ft)&&(ft.flowNode=R),e.isSpecialPropertyDeclaration(ft)&&er(ft),e.isInJSFile(ft)&&S.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(ft)&&!P(w,"module")&&Me(S.locals,void 0,ft.expression,134217729,111550);break;case 220:var Zt=e.getAssignmentDeclarationKind(pe);switch(Zt){case 1:Un(pe);break;case 2:Oe(pe);break;case 3:Dt(pe.left,pe);break;case 6:hr(pe);break;case 4:mr(pe);break;case 5:var Re=pe.left.expression;if(e.isInJSFile(pe)&&e.isIdentifier(Re)){var Qr=P(w,Re.escapedText);if(e.isThisInitializedDeclaration(Qr==null?void 0:Qr.valueDeclaration)){mr(pe);break}}Sn(pe);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return rt(pe);case 291:return Cn(pe);case 214:return Qn(pe);case 8:return Ka(pe);case 219:return Pi(pe);case 218:return io(pe);case 247:return ji(pe);case 249:return Hi(pe);case 191:ne=!0;return;case 176:break;case 162:return ko(pe);case 163:return ka(pe);case 253:return xi(pe);case 202:return pe.flowNode=R,xi(pe);case 166:case 165:return Zi(pe);case 294:case 295:return Gi(pe,4,0);case 297:return Gi(pe,8,900095);case 173:case 174:case 175:return rn(pe,131072,0);case 168:case 167:return Gi(pe,8192|(pe.questionToken?16777216:0),e.isObjectLiteralMethod(pe)?0:103359);case 255:return mi(pe);case 170:return rn(pe,16384,0);case 171:return Gi(pe,32768,46015);case 172:return Gi(pe,65536,78783);case 178:case 315:case 321:case 179:return St(pe);case 181:case 320:case 194:return Po(pe);case 330:return kr(pe);case 204:return Ut(pe);case 212:case 213:return Xi(pe);case 207:var vn=e.getAssignmentDeclarationKind(pe);switch(vn){case 7:return Jt(pe);case 8:return tn(pe);case 9:return qr(pe);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(pe)&&da(pe);break;case 225:case 256:return g=!0,ei(pe);case 257:return oa(pe,64,788872);case 258:return oa(pe,524288,788968);case 259:return bi(pe);case 260:return Wn(pe);case 285:return qt(pe);case 284:return Pn(pe,4,0);case 264:case 267:case 269:case 274:return rn(pe,2097152,2097152);case 263:return Es(pe);case 266:return yr(pe);case 271:return Cs(pe);case 270:return zo(pe);case 303:return co(pe.statements),Mo();case 234:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(pe.parent))return;case 261:return co(pe.statements);case 338:if(pe.parent.kind===321)return ka(pe);if(pe.parent.kind!==320)break;case 345:var Xn=pe,gi=Xn.isBracketed||Xn.typeExpression&&Xn.typeExpression.type.kind===314?16777220:4;return rn(Xn,gi,0);case 343:case 336:case 337:return(Z||(Z=[])).push(pe)}}function Zi(pe){return Gi(pe,4|(pe.questionToken?16777216:0),0)}function Po(pe){return dn(pe,2048,"__type")}function Mo(){if(na(S),e.isExternalModule(S))Fo();else if(e.isJsonSourceFile(S)){Fo();var pe=S.symbol;Me(S.symbol.exports,S.symbol,S,4,67108863),S.symbol=pe}}function Fo(){dn(S,512,'"'.concat(e.removeFileExtension(S.fileName),'"'))}function zo(pe){if(!M.symbol||!M.symbol.exports)dn(pe,111551,ge(pe));else{var wr=e.exportAssignmentIsAlias(pe)?2097152:4,ft=Me(M.symbol.exports,M.symbol,pe,wr,67108863);pe.isExportEquals&&e.setValueDeclaration(ft,pe)}}function Es(pe){pe.modifiers&&pe.modifiers.length&&S.bindDiagnostics.push(O(pe,e.Diagnostics.Modifiers_cannot_appear_here));var wr=e.isSourceFile(pe.parent)?e.isExternalModule(pe.parent)?pe.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;wr?S.bindDiagnostics.push(O(pe,wr)):(S.symbol.globalExports=S.symbol.globalExports||e.createSymbolTable(),Me(S.symbol.globalExports,S.symbol,pe,2097152,2097152))}function Cs(pe){!M.symbol||!M.symbol.exports?dn(pe,8388608,ge(pe)):pe.exportClause?e.isNamespaceExport(pe.exportClause)&&(e.setParent(pe.exportClause,pe),Me(M.symbol.exports,M.symbol,pe.exportClause,2097152,2097152)):Me(M.symbol.exports,M.symbol,pe,8388608,0)}function yr(pe){pe.name&&rn(pe,2097152,2097152)}function dt(pe){return S.externalModuleIndicator?!1:(S.commonJsModuleIndicator||(S.commonJsModuleIndicator=pe,Fo()),!0)}function tn(pe){if(!!dt(pe)){var wr=Mn(pe.arguments[0],void 0,function(Zt,Re){return Re&&Te(Re,Zt,67110400),Re});if(wr){var ft=1048580;Me(wr.exports,wr,pe,ft,0)}}}function Un(pe){if(!!dt(pe)){var wr=Mn(pe.left.expression,void 0,function(Re,Qr){return Qr&&Te(Qr,Re,67110400),Qr});if(wr){var ft=e.isAliasableExpression(pe.right)&&(e.isExportsIdentifier(pe.left.expression)||e.isModuleExportsAccessExpression(pe.left.expression)),Zt=ft?2097152:1048580;e.setParent(pe.left,pe),Me(wr.exports,wr,pe.left,Zt,0)}}}function Oe(pe){if(!!dt(pe)){var wr=e.getRightMostAssignedExpression(pe.right);if(!(e.isEmptyObjectLiteral(wr)||M===S&&b(S,wr))){if(e.isObjectLiteralExpression(wr)&&e.every(wr.properties,e.isShorthandPropertyAssignment)){e.forEach(wr.properties,oe);return}var ft=e.exportAssignmentIsAlias(pe)?2097152:1049092,Zt=Me(S.symbol.exports,S.symbol,pe,ft|67108864,0);e.setValueDeclaration(Zt,pe)}}}function oe(pe){Me(S.symbol.exports,S.symbol,pe,69206016,0)}function mr(pe){e.Debug.assert(e.isInJSFile(pe));var wr=e.isBinaryExpression(pe)&&e.isPropertyAccessExpression(pe.left)&&e.isPrivateIdentifier(pe.left.name)||e.isPropertyAccessExpression(pe)&&e.isPrivateIdentifier(pe.name);if(!wr){var ft=e.getThisContainer(pe,!1);switch(ft.kind){case 255:case 212:var Zt=ft.symbol;if(e.isBinaryExpression(ft.parent)&&ft.parent.operatorToken.kind===63){var Re=ft.parent.left;e.isBindableStaticAccessExpression(Re)&&e.isPrototypeAccess(Re.expression)&&(Zt=bt(Re.expression.expression,x))}Zt&&Zt.valueDeclaration&&(Zt.members=Zt.members||e.createSymbolTable(),e.hasDynamicName(pe)?se(pe,Zt,Zt.members):Me(Zt.members,Zt,pe,67108868,0),Te(Zt,Zt.valueDeclaration,32));break;case 170:case 166:case 168:case 171:case 172:case 169:var Qr=ft.parent,vn=e.isStatic(ft)?Qr.symbol.exports:Qr.symbol.members;e.hasDynamicName(pe)?se(pe,Qr.symbol,vn):Me(vn,Qr.symbol,pe,67108868,0,!0);break;case 303:if(e.hasDynamicName(pe))break;ft.commonJsModuleIndicator?Me(ft.symbol.exports,ft.symbol,pe,1048580,0):rn(pe,1,111550);break;default:e.Debug.failBadSyntaxKind(ft)}}}function se(pe,wr,ft){Me(ft,wr,pe,4,0,!0,!0),Be(pe,wr)}function Be(pe,wr){wr&&(wr.assignmentDeclarationMembers||(wr.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(pe),pe)}function er(pe){pe.expression.kind===108?mr(pe):e.isBindableStaticAccessExpression(pe)&&pe.parent.parent.kind===303&&(e.isPrototypeAccess(pe.expression)?Dt(pe,pe.parent):ta(pe))}function hr(pe){e.setParent(pe.left,pe),e.setParent(pe.right,pe),Ji(pe.left.expression,pe.left,!1,!0)}function qr(pe){var wr=bt(pe.arguments[0].expression);wr&&wr.valueDeclaration&&Te(wr,wr.valueDeclaration,32),Di(pe,wr,!0)}function Dt(pe,wr){var ft=pe.expression,Zt=ft.expression;e.setParent(Zt,ft),e.setParent(ft,pe),e.setParent(pe,wr),Ji(Zt,pe,!0,!0)}function Jt(pe){var wr=bt(pe.arguments[0]),ft=pe.parent.parent.kind===303;wr=xa(wr,pe.arguments[0],ft,!1,!1),Di(pe,wr,!1)}function Sn(pe){var wr,ft=bt(pe.left.expression,M)||bt(pe.left.expression,w);if(!(!e.isInJSFile(pe)&&!e.isFunctionSymbol(ft))){var Zt=e.getLeftmostAccessExpression(pe.left);if(!(e.isIdentifier(Zt)&&((wr=P(M,Zt.escapedText))===null||wr===void 0?void 0:wr.flags)&2097152))if(e.setParent(pe.left,pe),e.setParent(pe.right,pe),e.isIdentifier(pe.left.expression)&&M===S&&b(S,pe.left.expression))Un(pe);else if(e.hasDynamicName(pe)){dn(pe,67108868,"__computed");var Re=xa(ft,pe.left.expression,$a(pe.left),!1,!1);Be(pe,Re)}else ta(e.cast(pe.left,e.isBindableStaticNameExpression))}}function ta(pe){e.Debug.assert(!e.isIdentifier(pe)),e.setParent(pe.expression,pe),Ji(pe.expression,pe,!1,!1)}function xa(pe,wr,ft,Zt,Re){if((pe==null?void 0:pe.flags)&2097152)return pe;if(ft&&!Zt){var Qr=67110400,vn=110735;pe=Mn(wr,pe,function(Xn,gi,Ia){if(gi)return Te(gi,Xn,Qr),gi;var oo=Ia?Ia.exports:S.jsGlobalAugmentations||(S.jsGlobalAugmentations=e.createSymbolTable());return Me(oo,Ia,Xn,Qr,vn)})}return Re&&pe&&pe.valueDeclaration&&Te(pe,pe.valueDeclaration,32),pe}function Di(pe,wr,ft){if(!(!wr||!So(wr))){var Zt=ft?wr.members||(wr.members=e.createSymbolTable()):wr.exports||(wr.exports=e.createSymbolTable()),Re=0,Qr=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(pe))?(Re=8192,Qr=103359):e.isCallExpression(pe)&&e.isBindableObjectDefinePropertyCall(pe)&&(e.some(pe.arguments[2].properties,function(vn){var Xn=e.getNameOfDeclaration(vn);return!!Xn&&e.isIdentifier(Xn)&&e.idText(Xn)==="set"})&&(Re|=65540,Qr|=78783),e.some(pe.arguments[2].properties,function(vn){var Xn=e.getNameOfDeclaration(vn);return!!Xn&&e.isIdentifier(Xn)&&e.idText(Xn)==="get"})&&(Re|=32772,Qr|=46015)),Re===0&&(Re=4,Qr=0),Me(Zt,wr,pe,Re|67108864,Qr&-67108865)}}function $a(pe){return e.isBinaryExpression(pe.parent)?cs(pe.parent).parent.kind===303:pe.parent.parent.kind===303}function Ji(pe,wr,ft,Zt){var Re=bt(pe,M)||bt(pe,w),Qr=$a(wr);Re=xa(Re,wr.expression,Qr,ft,Zt),Di(wr,Re,ft)}function So(pe){if(pe.flags&1072)return!0;var wr=pe.valueDeclaration;if(wr&&e.isCallExpression(wr))return!!e.getAssignedExpandoInitializer(wr);var ft=wr?e.isVariableDeclaration(wr)?wr.initializer:e.isBinaryExpression(wr)?wr.right:e.isPropertyAccessExpression(wr)&&e.isBinaryExpression(wr.parent)?wr.parent.right:void 0:void 0;if(ft=ft&&e.getRightMostAssignedExpression(ft),ft){var Zt=e.isPrototypeAccess(e.isVariableDeclaration(wr)?wr.name:e.isBinaryExpression(wr)?wr.left:wr);return!!e.getExpandoInitializer(e.isBinaryExpression(ft)&&(ft.operatorToken.kind===56||ft.operatorToken.kind===60)?ft.right:ft,Zt)}return!1}function cs(pe){for(;e.isBinaryExpression(pe.parent);)pe=pe.parent;return pe.parent}function bt(pe,wr){if(wr===void 0&&(wr=M),e.isIdentifier(pe))return P(wr,pe.escapedText);var ft=bt(pe.expression);return ft&&ft.exports&&ft.exports.get(e.getElementOrPropertyAccessName(pe))}function Mn(pe,wr,ft){if(b(S,pe))return S.symbol;if(e.isIdentifier(pe))return ft(pe,bt(pe),wr);var Zt=Mn(pe.expression,wr,ft),Re=e.getNameOrArgument(pe);return e.isPrivateIdentifier(Re)&&e.Debug.fail("unexpected PrivateIdentifier"),ft(Re,Zt&&Zt.exports&&Zt.exports.get(e.getElementOrPropertyAccessName(pe)),Zt)}function da(pe){!S.commonJsModuleIndicator&&e.isRequireCall(pe,!1)&&dt(pe)}function ei(pe){if(pe.kind===256)oa(pe,32,899503);else{var wr=pe.name?pe.name.escapedText:"__class";dn(pe,32,wr),pe.name&&X.add(pe.name.escapedText)}var ft=pe.symbol,Zt=z(4194308,"prototype"),Re=ft.exports.get(Zt.escapedName);Re&&(pe.name&&e.setParent(pe.name,pe),S.bindDiagnostics.push(O(Re.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(Zt)))),ft.exports.set(Zt.escapedName,Zt),Zt.parent=ft}function bi(pe){return e.isEnumConst(pe)?oa(pe,128,899967):oa(pe,256,899327)}function xi(pe){g&&Ci(pe,pe.name),e.isBindingPattern(pe.name)||(e.isInJSFile(pe)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(pe)&&!e.getJSDocTypeTag(pe)?rn(pe,2097152,2097152):e.isBlockOrCatchScoped(pe)?oa(pe,2,111551):e.isParameterDeclaration(pe)?rn(pe,1,111551):rn(pe,1,111550))}function ka(pe){if(!(pe.kind===338&&M.kind!==321)&&(g&&!(pe.flags&8388608)&&Ci(pe,pe.name),e.isBindingPattern(pe.name)?dn(pe,1,"__"+pe.parent.parameters.indexOf(pe)):rn(pe,1,111551),e.isParameterPropertyDeclaration(pe,pe.parent))){var wr=pe.parent.parent;Me(wr.symbol.members,wr.symbol,pe,4|(pe.questionToken?16777216:0),0)}}function mi(pe){!S.isDeclarationFile&&!(pe.flags&8388608)&&e.isAsyncFunction(pe)&&(u|=2048),va(pe),g?(ro(pe),oa(pe,16,110991)):rn(pe,16,110991)}function Xi(pe){!S.isDeclarationFile&&!(pe.flags&8388608)&&e.isAsyncFunction(pe)&&(u|=2048),R&&(pe.flowNode=R),va(pe);var wr=pe.name?pe.name.escapedText:"__function";return dn(pe,16,wr)}function Gi(pe,wr,ft){return!S.isDeclarationFile&&!(pe.flags&8388608)&&e.isAsyncFunction(pe)&&(u|=2048),R&&e.isObjectLiteralOrClassExpressionMethodOrAccessor(pe)&&(pe.flowNode=R),e.hasDynamicName(pe)?dn(pe,wr,"__computed"):rn(pe,wr,ft)}function Ro(pe){var wr=e.findAncestor(pe,function(ft){return ft.parent&&e.isConditionalTypeNode(ft.parent)&&ft.parent.extendsType===ft});return wr&&wr.parent}function ko(pe){if(e.isJSDocTemplateTag(pe.parent)){var wr=e.getEffectiveContainerForJSDocTemplateTag(pe.parent);wr?(wr.locals||(wr.locals=e.createSymbolTable()),Me(wr.locals,void 0,pe,262144,526824)):rn(pe,262144,526824)}else if(pe.parent.kind===189){var ft=Ro(pe.parent);ft?(ft.locals||(ft.locals=e.createSymbolTable()),Me(ft.locals,void 0,pe,262144,526824)):dn(pe,262144,ge(pe))}else rn(pe,262144,526824)}function es(pe){var wr=n(pe);return wr===1||wr===2&&e.shouldPreserveConstEnums(B)}function as(pe){if(!(R.flags&1))return!1;if(R===j){var wr=e.isStatementButNotDeclaration(pe)&&pe.kind!==235||pe.kind===256||pe.kind===260&&es(pe);if(wr&&(R=Se,!B.allowUnreachableCode)){var ft=e.unreachableCodeIsError(B)&&!(pe.flags&8388608)&&(!e.isVariableStatement(pe)||!!(e.getCombinedNodeFlags(pe.declarationList)&3)||pe.declarationList.declarations.some(function(Zt){return!!Zt.initializer}));A(pe,function(Zt,Re){return lo(ft,Zt,Re,e.Diagnostics.Unreachable_code_detected)})}}return!0}}function A(S,B){if(e.isStatement(S)&&q(S)&&e.isBlock(S.parent)){var J=S.parent.statements,k=e.sliceAfter(J,S);e.getRangesWhere(k,q,function(M,x){return B(k[M],k[x-1])})}else B(S,S)}function q(S){return!e.isFunctionDeclaration(S)&&!ie(S)&&!e.isEnumDeclaration(S)&&!(e.isVariableStatement(S)&&!(e.getCombinedNodeFlags(S)&3)&&S.declarationList.declarations.some(function(B){return!B.initializer}))}function ie(S){switch(S.kind){case 257:case 258:return!0;case 260:return n(S)!==1;case 259:return e.hasSyntacticModifier(S,2048);default:return!1}}function b(S,B){for(var J=0,k=[B];k.length&&J<100;){if(J++,B=k.shift(),e.isExportsIdentifier(B)||e.isModuleExportsAccessExpression(B))return!0;if(e.isIdentifier(B)){var M=P(S,B.escapedText);if(!!M&&!!M.valueDeclaration&&e.isVariableDeclaration(M.valueDeclaration)&&!!M.valueDeclaration.initializer){var x=M.valueDeclaration.initializer;k.push(x),e.isAssignmentExpression(x,!0)&&(k.push(x.left),k.push(x.right))}}}return!1}e.isExportsOrModuleExportsOrAlias=b;function P(S,B){var J=S.locals&&S.locals.get(B);return J?J.exportSymbol||J:e.isSourceFile(S)&&S.jsGlobalAugmentations&&S.jsGlobalAugmentations.has(B)?S.jsGlobalAugmentations.get(B):S.symbol&&S.symbol.exports&&S.symbol.exports.get(B)}})(gr||(gr={}));var gr;(function(e){function n(f,d,a,p,N,H,h,v,A,q){return ie;function ie(b){b===void 0&&(b=function(){return!0});var P=[],S=[];return{walkType:function(U){try{return B(U),{visitedTypes:e.getOwnValues(P),visitedSymbols:e.getOwnValues(S)}}finally{e.clear(P),e.clear(S)}},walkSymbol:function(U){try{return Y(U),{visitedTypes:e.getOwnValues(P),visitedSymbols:e.getOwnValues(S)}}finally{e.clear(P),e.clear(S)}}};function B(U){if(!!U&&!P[U.id]){P[U.id]=U;var $=Y(U.symbol);if(!$){if(U.flags&524288){var T=U,I=T.objectFlags;I&4&&J(U),I&32&&K(U),I&3&&ne(U),I&24&&R(T)}U.flags&262144&&k(U),U.flags&3145728&&M(U),U.flags&4194304&&x(U),U.flags&8388608&&w(U)}}}function J(U){B(U.target),e.forEach(q(U),B)}function k(U){B(v(U))}function M(U){e.forEach(U.types,B)}function x(U){B(U.type)}function w(U){B(U.objectType),B(U.indexType),B(U.constraint)}function K(U){B(U.typeParameter),B(U.constraintType),B(U.templateType),B(U.modifiersType)}function Z(U){var $=d(U);$&&B($.type),e.forEach(U.typeParameters,B);for(var T=0,I=U.parameters;T<I.length;T++){var y=I[T];Y(y)}B(f(U)),B(a(U))}function ne(U){R(U),e.forEach(U.typeParameters,B),e.forEach(p(U),B),B(U.thisType)}function R(U){for(var $=N(U),T=0,I=$.indexInfos;T<I.length;T++){var y=I[T];B(y.keyType),B(y.type)}for(var D=0,C=$.callSignatures;D<C.length;D++){var m=C[D];Z(m)}for(var u=0,g=$.constructSignatures;u<g.length;u++){var m=g[u];Z(m)}for(var F=0,te=$.properties;F<te.length;F++){var ue=te[F];Y(ue)}}function Y(U){if(!U)return!1;var $=e.getSymbolId(U);if(S[$])return!1;if(S[$]=U,!b(U))return!0;var T=H(U);return B(T),U.exports&&U.exports.forEach(Y),e.forEach(U.declarations,function(I){if(I.type&&I.type.kind===180){var y=I.type,D=h(A(y.exprName));Y(D)}}),!1}}}e.createGetSymbolWalker=n})(gr||(gr={}));var gr;(function(e){var n=/^".+"$/,f="(anonymous)",d=1,a=1,p=1,N=1,H;(function(j){j[j.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",j[j.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",j[j.AllowsStringInputFlag=4]="AllowsStringInputFlag",j[j.ForOfFlag=8]="ForOfFlag",j[j.YieldStarFlag=16]="YieldStarFlag",j[j.SpreadFlag=32]="SpreadFlag",j[j.DestructuringFlag=64]="DestructuringFlag",j[j.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",j[j.Element=1]="Element",j[j.Spread=33]="Spread",j[j.Destructuring=65]="Destructuring",j[j.ForOf=13]="ForOf",j[j.ForAwaitOf=15]="ForAwaitOf",j[j.YieldStar=17]="YieldStar",j[j.AsyncYieldStar=19]="AsyncYieldStar",j[j.GeneratorReturnType=1]="GeneratorReturnType",j[j.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"})(H||(H={}));var h;(function(j){j[j.Yield=0]="Yield",j[j.Return=1]="Return",j[j.Next=2]="Next"})(h||(h={}));var v;(function(j){j[j.Normal=0]="Normal",j[j.FunctionReturn=1]="FunctionReturn",j[j.GeneratorNext=2]="GeneratorNext",j[j.GeneratorYield=3]="GeneratorYield"})(v||(v={}));var A;(function(j){j[j.None=0]="None",j[j.TypeofEQString=1]="TypeofEQString",j[j.TypeofEQNumber=2]="TypeofEQNumber",j[j.TypeofEQBigInt=4]="TypeofEQBigInt",j[j.TypeofEQBoolean=8]="TypeofEQBoolean",j[j.TypeofEQSymbol=16]="TypeofEQSymbol",j[j.TypeofEQObject=32]="TypeofEQObject",j[j.TypeofEQFunction=64]="TypeofEQFunction",j[j.TypeofEQHostObject=128]="TypeofEQHostObject",j[j.TypeofNEString=256]="TypeofNEString",j[j.TypeofNENumber=512]="TypeofNENumber",j[j.TypeofNEBigInt=1024]="TypeofNEBigInt",j[j.TypeofNEBoolean=2048]="TypeofNEBoolean",j[j.TypeofNESymbol=4096]="TypeofNESymbol",j[j.TypeofNEObject=8192]="TypeofNEObject",j[j.TypeofNEFunction=16384]="TypeofNEFunction",j[j.TypeofNEHostObject=32768]="TypeofNEHostObject",j[j.EQUndefined=65536]="EQUndefined",j[j.EQNull=131072]="EQNull",j[j.EQUndefinedOrNull=262144]="EQUndefinedOrNull",j[j.NEUndefined=524288]="NEUndefined",j[j.NENull=1048576]="NENull",j[j.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",j[j.Truthy=4194304]="Truthy",j[j.Falsy=8388608]="Falsy",j[j.All=16777215]="All",j[j.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",j[j.BaseStringFacts=12582401]="BaseStringFacts",j[j.StringStrictFacts=16317953]="StringStrictFacts",j[j.StringFacts=16776705]="StringFacts",j[j.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",j[j.EmptyStringFacts=12582401]="EmptyStringFacts",j[j.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",j[j.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",j[j.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",j[j.BaseNumberFacts=12582146]="BaseNumberFacts",j[j.NumberStrictFacts=16317698]="NumberStrictFacts",j[j.NumberFacts=16776450]="NumberFacts",j[j.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",j[j.ZeroNumberFacts=12582146]="ZeroNumberFacts",j[j.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",j[j.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",j[j.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",j[j.BaseBigIntFacts=12581636]="BaseBigIntFacts",j[j.BigIntStrictFacts=16317188]="BigIntStrictFacts",j[j.BigIntFacts=16775940]="BigIntFacts",j[j.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",j[j.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",j[j.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",j[j.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",j[j.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",j[j.BaseBooleanFacts=12580616]="BaseBooleanFacts",j[j.BooleanStrictFacts=16316168]="BooleanStrictFacts",j[j.BooleanFacts=16774920]="BooleanFacts",j[j.FalseStrictFacts=12121864]="FalseStrictFacts",j[j.FalseFacts=12580616]="FalseFacts",j[j.TrueStrictFacts=7927560]="TrueStrictFacts",j[j.TrueFacts=16774920]="TrueFacts",j[j.SymbolStrictFacts=7925520]="SymbolStrictFacts",j[j.SymbolFacts=16772880]="SymbolFacts",j[j.ObjectStrictFacts=7888800]="ObjectStrictFacts",j[j.ObjectFacts=16736160]="ObjectFacts",j[j.FunctionStrictFacts=7880640]="FunctionStrictFacts",j[j.FunctionFacts=16728e3]="FunctionFacts",j[j.UndefinedFacts=9830144]="UndefinedFacts",j[j.NullFacts=9363232]="NullFacts",j[j.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",j[j.AllTypeofNE=556800]="AllTypeofNE",j[j.EmptyObjectFacts=16777215]="EmptyObjectFacts"})(A||(A={}));var q=new e.Map(e.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),ie=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),b;(function(j){j[j.Type=0]="Type",j[j.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",j[j.DeclaredType=2]="DeclaredType",j[j.ResolvedReturnType=3]="ResolvedReturnType",j[j.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",j[j.EnumTagType=5]="EnumTagType",j[j.ResolvedTypeArguments=6]="ResolvedTypeArguments",j[j.ResolvedBaseTypes=7]="ResolvedBaseTypes"})(b||(b={}));var P;(function(j){j[j.Normal=0]="Normal",j[j.Contextual=1]="Contextual",j[j.Inferential=2]="Inferential",j[j.SkipContextSensitive=4]="SkipContextSensitive",j[j.SkipGenericFunctions=8]="SkipGenericFunctions",j[j.IsForSignatureHelp=16]="IsForSignatureHelp"})(P||(P={}));var S;(function(j){j[j.BivariantCallback=1]="BivariantCallback",j[j.StrictCallback=2]="StrictCallback",j[j.IgnoreReturnTypes=4]="IgnoreReturnTypes",j[j.StrictArity=8]="StrictArity",j[j.Callback=3]="Callback"})(S||(S={}));var B;(function(j){j[j.None=0]="None",j[j.Source=1]="Source",j[j.Target=2]="Target",j[j.PropertyCheck=4]="PropertyCheck",j[j.UnionIntersectionCheck=8]="UnionIntersectionCheck",j[j.InPropertyCheck=16]="InPropertyCheck"})(B||(B={}));var J;(function(j){j[j.None=0]="None",j[j.Source=1]="Source",j[j.Target=2]="Target",j[j.Both=3]="Both"})(J||(J={}));var k;(function(j){j[j.IncludeReadonly=1]="IncludeReadonly",j[j.ExcludeReadonly=2]="ExcludeReadonly",j[j.IncludeOptional=4]="IncludeOptional",j[j.ExcludeOptional=8]="ExcludeOptional"})(k||(k={}));var M;(function(j){j[j.None=0]="None",j[j.Source=1]="Source",j[j.Target=2]="Target",j[j.Both=3]="Both"})(M||(M={}));var x;(function(j){j.resolvedExports="resolvedExports",j.resolvedMembers="resolvedMembers"})(x||(x={}));var w;(function(j){j[j.Local=0]="Local",j[j.Parameter=1]="Parameter"})(w||(w={}));var K=e.and(u,m),Z;(function(j){j[j.GetAccessor=1]="GetAccessor",j[j.SetAccessor=2]="SetAccessor",j[j.PropertyAssignment=4]="PropertyAssignment",j[j.Method=8]="Method",j[j.PrivateStatic=16]="PrivateStatic",j[j.GetOrSetAccessor=3]="GetOrSetAccessor",j[j.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"})(Z||(Z={}));var ne;(function(j){j[j.None=0]="None",j[j.ExportValue=1]="ExportValue",j[j.ExportType=2]="ExportType",j[j.ExportNamespace=4]="ExportNamespace"})(ne||(ne={}));var R;(function(j){j[j.None=0]="None",j[j.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",j[j.VoidIsNonOptional=2]="VoidIsNonOptional"})(R||(R={}));var Y;(function(j){j[j.Uppercase=0]="Uppercase",j[j.Lowercase=1]="Lowercase",j[j.Capitalize=2]="Capitalize",j[j.Uncapitalize=3]="Uncapitalize"})(Y||(Y={}));var U=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function $(){}function T(){this.flags=0}function I(j){return j.id||(j.id=a,a++),j.id}e.getNodeId=I;function y(j){return j.id||(j.id=d,d++),j.id}e.getSymbolId=y;function D(j,Se){var Ce=e.getModuleInstanceState(j);return Ce===1||Se&&Ce===2}e.isInstantiatedModule=D;function C(j,Se){var Ce=e.memoize(function(){var r=new e.Map;return j.getSourceFiles().forEach(function(t){!t.resolvedModules||t.resolvedModules.forEach(function(i){i&&i.packageId&&r.set(i.packageId.name,i.extension===".d.ts"||!!r.get(i.packageId.name))})}),r}),O,Q,V,z=e.objectAllocator.getSymbolConstructor(),Te=e.objectAllocator.getTypeConstructor(),ge=e.objectAllocator.getSignatureConstructor(),ke=0,Me=0,Ie=0,Ge=0,he=0,ve=0,Ve=0,_e,Le=e.createSymbolTable(),qe=[1],Xe=j.getCompilerOptions(),De=e.getEmitScriptTarget(Xe),Ae=e.getEmitModuleKind(Xe),Ye=e.getUseDefineForClassFields(Xe),Lr=e.getAllowSyntheticDefaultImports(Xe),Er=e.getStrictOptionValue(Xe,"strictNullChecks"),lr=e.getStrictOptionValue(Xe,"strictFunctionTypes"),Cr=e.getStrictOptionValue(Xe,"strictBindCallApply"),Or=e.getStrictOptionValue(Xe,"strictPropertyInitialization"),Ke=e.getStrictOptionValue(Xe,"noImplicitAny"),Pe=e.getStrictOptionValue(Xe,"noImplicitThis"),Hr=e.getStrictOptionValue(Xe,"useUnknownInCatchVariables"),ur=!!Xe.keyofStringsOnly,vr=Xe.suppressExcessPropertyErrors?0:16384,de=Xe.exactOptionalPropertyTypes,Fe=I6(),$e=J8(),Dr=k_(),Fr=e.createSymbolTable(),He=fo(4,"undefined");He.declarations=[];var pr=fo(1536,"globalThis",8);pr.exports=Fr,pr.declarations=[],Fr.set(pr.escapedName,pr);var Jr=fo(4,"arguments"),ze=fo(4,"require"),Ar,Yr={getNodeCount:function(){return e.sum(j.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(j.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(j.getSourceFiles(),"symbolCount")+Me},getTypeCount:function(){return ke},getInstantiationCount:function(){return Ge},getRelationCacheSizes:function(){return{assignable:Ta.size,identity:fi.size,subtype:ha.size,strictSubtype:ri.size}},isUndefinedSymbol:function(r){return r===He},isArgumentsSymbol:function(r){return r===Jr},isUnknownSymbol:function(r){return r===We},getMergedSymbol:Ga,getDiagnostics:sI,getGlobalDiagnostics:s8,getRecursionIdentity:mh,getUnmatchedProperties:t1,getTypeOfSymbolAtLocation:function(r,t){var i=e.getParseTreeNode(t);return i?zw(r,i):dr},getSymbolsOfParameterPropertyDeclaration:function(r,t){var i=e.getParseTreeNode(r,e.isParameter);return i===void 0?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):yf(i,e.escapeLeadingUnderscores(t))},getDeclaredTypeOfSymbol:po,getPropertiesOfType:Yi,getPropertyOfType:function(r,t){return Ii(r,e.escapeLeadingUnderscores(t))},getPrivateIdentifierPropertyOfType:function(r,t,i){var o=e.getParseTreeNode(i);if(!!o){var s=e.escapeLeadingUnderscores(t),c=gb(s,o);return c?w1(r,c):void 0}},getTypeOfPropertyOfType:function(r,t){return ia(r,e.escapeLeadingUnderscores(t))},getIndexInfoOfType:function(r,t){return oc(r,t===0?xt:wt)},getIndexInfosOfType:Ms,getSignaturesOfType:Ni,getIndexTypeOfType:function(r,t){return tu(r,t===0?xt:wt)},getBaseTypes:xl,getBaseTypeOfLiteralType:Du,getWidenedType:wl,getTypeFromTypeNode:function(r){var t=e.getParseTreeNode(r,e.isTypeNode);return t?Da(t):dr},getParameterType:Uc,getParameterIdentifierNameAtPosition:o6,getPromisedTypeOfPromise:yv,getAwaitedType:function(r){return J_(r)},getReturnTypeOfSignature:_o,isNullableType:mb,getNullableType:jy,getNonNullableType:Td,getNonOptionalType:K0,getTypeArguments:vo,typeToTypeNode:Dr.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Dr.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Dr.signatureToSignatureDeclaration,symbolToEntityName:Dr.symbolToEntityName,symbolToExpression:Dr.symbolToExpression,symbolToTypeParameterDeclarations:Dr.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Dr.symbolToParameterDeclaration,typeParameterToDeclaration:Dr.typeParameterToDeclaration,getSymbolsInScope:function(r,t){var i=e.getParseTreeNode(r);return i?l8(i,t):[]},getSymbolAtLocation:function(r){var t=e.getParseTreeNode(r);return t?Vc(t,!0):void 0},getIndexInfosAtLocation:function(r){var t=e.getParseTreeNode(r);return t?m8(t):void 0},getShorthandAssignmentValueSymbol:function(r){var t=e.getParseTreeNode(r);return t?g8(t):void 0},getExportSpecifierLocalTargetSymbol:function(r){var t=e.getParseTreeNode(r,e.isExportSpecifier);return t?v8(t):void 0},getExportSymbolOfSymbol:function(r){return Ga(r.exportSymbol||r)},getTypeAtLocation:function(r){var t=e.getParseTreeNode(r);return t?jp(t):dr},getTypeOfAssignmentPattern:function(r){var t=e.getParseTreeNode(r,e.isAssignmentPattern);return t&&Kb(t)||dr},getPropertySymbolOfDestructuringAssignment:function(r){var t=e.getParseTreeNode(r,e.isIdentifier);return t?h8(t):void 0},signatureToString:function(r,t,i,o){return pu(r,e.getParseTreeNode(t),i,o)},typeToString:function(r,t,i){return gn(r,e.getParseTreeNode(t),i)},symbolToString:function(r,t,i,o){return Wa(r,e.getParseTreeNode(t),i,o)},typePredicateToString:function(r,t,i){return Yc(r,e.getParseTreeNode(t),i)},writeSignature:function(r,t,i,o,s){return pu(r,e.getParseTreeNode(t),i,o,s)},writeType:function(r,t,i,o){return gn(r,e.getParseTreeNode(t),i,o)},writeSymbol:function(r,t,i,o,s){return Wa(r,e.getParseTreeNode(t),i,o,s)},writeTypePredicate:function(r,t,i,o){return Yc(r,e.getParseTreeNode(t),i,o)},getAugmentedPropertiesOfType:AT,getRootSymbols:pI,getSymbolOfExpando:Lb,getContextualType:function(r,t){var i=e.getParseTreeNode(r,e.isExpression);if(!!i){var o=e.findAncestor(i,e.isCallLikeExpression),s=o&&Zn(o).resolvedSignature;if(t&4&&o){var c=i;do Zn(c).skipDirectInference=!0,c=c.parent;while(c&&c!==o);Zn(o).resolvedSignature=void 0}var L=Ac(i,t);if(t&4&&o){var c=i;do Zn(c).skipDirectInference=void 0,c=c.parent;while(c&&c!==o);Zn(o).resolvedSignature=s}return L}},getContextualTypeForObjectLiteralElement:function(r){var t=e.getParseTreeNode(r,e.isObjectLiteralElementLike);return t?E1(t):void 0},getContextualTypeForArgumentAtIndex:function(r,t){var i=e.getParseTreeNode(r,e.isCallLikeExpression);return i&&b1(i,t)},getContextualTypeForJsxAttribute:function(r){var t=e.getParseTreeNode(r,e.isJsxAttributeLike);return t&&WA(t)},isContextSensitive:nu,getTypeOfPropertyOfContextualType:E_,getFullyQualifiedName:sl,getResolvedSignature:function(r,t,i){return lt(r,t,i,0)},getResolvedSignatureForSignatureHelp:function(r,t,i){return lt(r,t,i,16)},getExpandedParameters:dy,hasEffectiveRestParameter:xu,containsArgumentsReference:XE,getConstantValue:function(r){var t=e.getParseTreeNode(r,hI);return t?xT(t):void 0},isValidPropertyAccess:function(r,t){var i=e.getParseTreeNode(r,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!i&&EM(i,e.escapeLeadingUnderscores(t))},isValidPropertyAccessForCompletions:function(r,t,i){var o=e.getParseTreeNode(r,e.isPropertyAccessExpression);return!!o&&vC(o,t,i)},getSignatureFromDeclaration:function(r){var t=e.getParseTreeNode(r,e.isFunctionLike);return t?bu(t):void 0},isImplementationOfOverload:function(r){var t=e.getParseTreeNode(r,e.isFunctionLike);return t?gI(t):void 0},getImmediateAliasedSymbol:zA,getAliasedSymbol:ms,getEmitResolver:Nu,getExportsOfModule:cd,getExportsAndPropertiesOfModule:Cf,forEachExportAndPropertyOfModule:yc,getSymbolWalker:e.createGetSymbolWalker(kk,Dc,_o,xl,Sc,An,Lu,Nl,e.getFirstIdentifier,vo),getAmbientModules:FF,getJsxIntrinsicTagNamesAt:rM,isOptionalParameter:function(r){var t=e.getParseTreeNode(r,e.isParameter);return t?w_(t):!1},tryGetMemberInModuleExports:function(r,t){return ud(e.escapeLeadingUnderscores(r),t)},tryGetMemberInModuleExportsAndProperties:function(r,t){return xf(e.escapeLeadingUnderscores(r),t)},tryFindAmbientModule:function(r){return Jg(r,!0)},tryFindAmbientModuleWithoutAugmentations:function(r){return Jg(r,!1)},getApparentType:wi,getUnionType:ma,isTypeAssignableTo:Qi,createAnonymousType:ts,createSignature:hu,createSymbol:fo,createIndexInfo:Eu,getAnyType:function(){return Ze},getStringType:function(){return xt},getNumberType:function(){return wt},createPromiseType:Oh,createArrayType:zs,getElementTypeOfArrayType:U0,getBooleanType:function(){return Jn},getFalseType:function(r){return r?mt:rn},getTrueType:function(r){return r?sa:ba},getVoidType:function(){return Wn},getUndefinedType:function(){return kr},getNullType:function(){return ut},getESSymbolType:function(){return na},getNeverType:function(){return en},getOptionalType:function(){return gt},getPromiseType:function(){return oh(!1)},getPromiseLikeType:function(){return GD(!1)},isSymbolAccessible:rf,isArrayType:el,isTupleType:ki,isArrayLikeType:_p,isTypeInvalidDueToUnionDiscriminant:WE,getExactOptionalProperties:xR,getAllPossiblePropertiesOfTypes:jE,getSuggestedSymbolForNonexistentProperty:F1,getSuggestionForNonexistentProperty:G1,getSuggestedSymbolForNonexistentJSXAttribute:mC,getSuggestedSymbolForNonexistentSymbol:function(r,t,i){return B1(r,e.escapeLeadingUnderscores(t),i)},getSuggestionForNonexistentSymbol:function(r,t,i){return vM(r,e.escapeLeadingUnderscores(t),i)},getSuggestedSymbolForNonexistentModule:hb,getSuggestionForNonexistentExport:hM,getSuggestedSymbolForNonexistentClassMember:_C,getBaseConstraintOfType:l,getDefaultFromTypeParameter:function(r){return r&&r.flags&262144?Bn(r):void 0},resolveName:function(r,t,i,o){return Uo(t,e.escapeLeadingUnderscores(r),i,void 0,void 0,!1,o)},getJsxNamespace:function(r){return e.unescapeLeadingUnderscores(bo(r))},getJsxFragmentFactory:function(r){var t=NT(r);return t&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(t).escapedText)},getAccessibleSymbolChain:kf,getTypePredicateOfSignature:Dc,resolveExternalModuleName:function(r){var t=e.getParseTreeNode(r,e.isExpression);return t&&ws(t,t,!0)},resolveExternalModuleSymbol:ll,tryGetThisTypeAt:function(r,t){var i=e.getParseTreeNode(r);return i&&m1(i,t)},getTypeArgumentConstraint:function(r){var t=e.getParseTreeNode(r,e.isTypeNode);return t&&t4(t)},getSuggestionDiagnostics:function(r,t){var i=e.getParseTreeNode(r,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(i,Xe,j))return e.emptyArray;var o;try{return O=t,DT(i),e.Debug.assert(!!(Zn(i).flags&1)),o=e.addRange(o,le.getDiagnostics(i.fileName)),Cx(oI(i),function(s,c,L){!e.containsParseError(s)&&!iI(c,!!(s.flags&8388608))&&(o||(o=[])).push(Rn(Rn({},L),{category:e.DiagnosticCategory.Suggestion}))}),o||e.emptyArray}finally{O=void 0}},runWithCancellationToken:function(r,t){try{return O=r,t(Yr)}finally{O=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:mu,isDeclarationVisible:Qc,isPropertyAccessible:V1,getTypeOnlyAliasDeclaration:Ln,getMemberOverrideModifierStatus:L3};function lt(r,t,i,o){var s=e.getParseTreeNode(r,e.isCallLikeExpression);Ar=i;var c=s?gg(s,t,o):void 0;return Ar=void 0,c}var tt=new e.Map,Rt=new e.Map,cn=new e.Map,bn=new e.Map,In=new e.Map,zn=new e.Map,ir=new e.Map,Rr=new e.Map,sr=new e.Map,ye=new e.Map,or=new e.Map,fe=new e.Map,je=[],Ee=new e.Map,We=fo(4,"unknown"),ee=fo(0,"__resolving__"),Ne=new e.Map,me=new e.Map,Ze=jo(1,"any"),xr=jo(1,"any"),fr=jo(1,"any"),dr=jo(1,"error"),et=jo(1,"unresolved"),yt=jo(1,"any",131072),Wr=jo(1,"intrinsic"),tr=jo(2,"unknown"),Ir=jo(2,"unknown"),kr=jo(32768,"undefined"),zr=Er?kr:jo(32768,"undefined",131072),gt=jo(32768,"undefined"),vt=de?jo(32768,"undefined"):kr,ut=jo(65536,"null"),ht=Er?ut:jo(65536,"null",131072),xt=jo(4,"string"),wt=jo(8,"number"),Qt=jo(64,"bigint"),mt=jo(512,"false"),rn=jo(512,"false"),sa=jo(512,"true"),ba=jo(512,"true");sa.regularType=ba,sa.freshType=sa,ba.regularType=ba,ba.freshType=sa,mt.regularType=rn,mt.freshType=mt,rn.regularType=rn,rn.freshType=mt;var Jn=ma([rn,ba]),na=jo(4096,"symbol"),Wn=jo(16384,"void"),en=jo(131072,"never"),St=jo(131072,"never"),Ut=jo(131072,"never",524288),qt=jo(131072,"never"),Pn=jo(131072,"never"),dn=jo(67108864,"object"),oa=ma([xt,wt]),pt=ma([xt,wt,na]),_t=ur?xt:pt,Pt=ma([wt,Qt]),It=ma([xt,wt,Jn,Qt,ut,kr]),rt=__(function(r){return r.flags&262144?tR(r):r}),Cn=__(function(r){return r.flags&262144?fr:r}),Qn=ts(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray),Ra=ts(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray);Ra.objectFlags|=2048;var Ci=fo(2048,"__type");Ci.members=e.createSymbolTable();var _i=ts(Ci,Le,e.emptyArray,e.emptyArray,e.emptyArray),va=ts(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray);va.instantiations=new e.Map;var yi=ts(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray);yi.objectFlags|=524288;var ro=ts(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray),Ka=ts(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray),Pi=ts(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray),io=nc(),ji=nc();ji.constraint=io;var Hi=nc(),to=nh(1,"<<unresolved>>",0,Ze),No=hu(void 0,void 0,void 0,e.emptyArray,Ze,void 0,0,0),lo=hu(void 0,void 0,void 0,e.emptyArray,dr,void 0,0,0),Lo=hu(void 0,void 0,void 0,e.emptyArray,Ze,void 0,0,0),Ha=hu(void 0,void 0,void 0,e.emptyArray,St,void 0,0,0),Yo=Eu(wt,xt,!0),co=new e.Map,za={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},hi=Xf(Ze,Ze,Ze),Zi=Xf(Ze,Ze,tr),Po=Xf(en,Ze,kr),Mo={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:qk,getGlobalIterableType:zk,getGlobalIterableIteratorType:Xk,getGlobalGeneratorType:Yk,resolveIterationType:J_,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},Fo={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Qk,getGlobalIterableType:BD,getGlobalIterableIteratorType:Zk,getGlobalGeneratorType:$k,resolveIterationType:function(r,t){return r},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},zo,Es=new e.Map,Cs=!1,yr,dt,tn,Un,Oe,oe,mr,se,Be,er,hr,qr,Dt,Jt,Sn,ta,xa,Di,$a,Ji,So,cs,bt,Mn,da,ei,bi,xi,ka,mi,Xi,Gi,Ro,ko,es,as,pe,wr,ft,Zt,Re,Qr,vn,Xn,gi=new e.Map,Ia=0,oo=0,Wo=0,Nr=!1,Us=0,il,Pl,Co,Vs=Lc(""),Ql=Wf(0),zl=E0({negative:!1,base10Value:"0"}),uc=[],cu=[],no=[],ql=0,fc=10,Ws=[],xc=[],Ic=[],La=[],uu=[],dc=[],Nc=[],Pr=[],$r=[],Lt=[],Kt=[],pn=[],fn=[],kn=[],Kn=[],Fa=[],ua=e.createDiagnosticCollection(),le=e.createDiagnosticCollection(),rr=new e.Map(e.getEntries({string:xt,number:wt,bigint:Qt,boolean:Jn,symbol:na,undefined:kr})),br=Kd(),ct,jt,yn,ha=new e.Map,ri=new e.Map,Ta=new e.Map,Ya=new e.Map,fi=new e.Map,ci=new e.Map,Si=e.createSymbolTable();Si.set(He.escapedName,He);var Do=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",Xe.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return K8(),Yr;function bo(r){if(r){var t=e.getSourceFileOfNode(r);if(t)if(e.isJsxOpeningFragment(r)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;var i=t.pragmas.get("jsxfrag");if(i){var o=e.isArray(i)?i[0]:i;if(t.localJsxFragmentFactory=e.parseIsolatedEntityName(o.arguments.factory,De),e.visitNode(t.localJsxFragmentFactory,Ys),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=e.getFirstIdentifier(t.localJsxFragmentFactory).escapedText}var s=NT(r);if(s)return t.localJsxFragmentFactory=s,t.localJsxFragmentNamespace=e.getFirstIdentifier(s).escapedText}else{var c=Ns(t);if(c)return t.localJsxNamespace=c}}return ct||(ct="React",Xe.jsxFactory?(jt=e.parseIsolatedEntityName(Xe.jsxFactory,De),e.visitNode(jt,Ys),jt&&(ct=e.getFirstIdentifier(jt).escapedText)):Xe.reactNamespace&&(ct=e.escapeLeadingUnderscores(Xe.reactNamespace))),jt||(jt=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(ct)),"createElement")),ct}function Ns(r){if(r.localJsxNamespace)return r.localJsxNamespace;var t=r.pragmas.get("jsx");if(t){var i=e.isArray(t)?t[0]:t;if(r.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,De),e.visitNode(r.localJsxFactory,Ys),r.localJsxFactory)return r.localJsxNamespace=e.getFirstIdentifier(r.localJsxFactory).escapedText}}function Ys(r){return e.setTextRangePosEnd(r,-1,-1),e.visitEachChild(r,Ys,e.nullTransformationContext)}function Nu(r,t){return sI(r,t),$e}function gf(r,t,i,o,s,c){var L=r?e.createDiagnosticForNode(r,t,i,o,s,c):e.createCompilerDiagnostic(t,i,o,s,c),G=ua.lookup(L);return G||(ua.add(L),L)}function Zl(r,t,i,o,s,c,L){var G=Mr(t,i,o,s,c,L);return G.skippedOn=r,G}function jc(r,t,i,o,s,c){return r?e.createDiagnosticForNode(r,t,i,o,s,c):e.createCompilerDiagnostic(t,i,o,s,c)}function Mr(r,t,i,o,s,c){var L=jc(r,t,i,o,s,c);return ua.add(L),L}function $l(r,t){r?ua.add(t):le.add(Rn(Rn({},t),{category:e.DiagnosticCategory.Suggestion}))}function pc(r,t,i,o,s,c,L){if(t.pos<0||t.end<0){if(!r)return;var G=e.getSourceFileOfNode(t);$l(r,"message"in i?e.createFileDiagnostic(G,0,0,i,o,s,c,L):e.createDiagnosticForFileFromMessageChain(G,i));return}$l(r,"message"in i?e.createDiagnosticForNode(t,i,o,s,c,L):e.createDiagnosticForNodeFromMessageChain(t,i))}function ku(r,t,i,o,s,c,L){var G=Mr(r,i,o,s,c,L);if(t){var ce=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(G,ce)}return G}function ol(r,t){var i=Array.isArray(r)?e.forEach(r,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(r);return i&&e.addRelatedInfo(t,e.createDiagnosticForNode(i,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),le.add(t),t}function kc(r,t,i){var o=e.createDiagnosticForNode(r,e.Diagnostics._0_is_deprecated,i);return ol(t,o)}function vf(r,t,i,o){var s=i?e.createDiagnosticForNode(r,e.Diagnostics.The_signature_0_of_1_is_deprecated,o,i):e.createDiagnosticForNode(r,e.Diagnostics._0_is_deprecated,o);return ol(t,s)}function fo(r,t,i){Me++;var o=new z(r|33554432,t);return o.checkFlags=i||0,o}function Zf(r){var t=0;return r&2&&(t|=111551),r&1&&(t|=111550),r&4&&(t|=0),r&8&&(t|=900095),r&16&&(t|=110991),r&32&&(t|=899503),r&64&&(t|=788872),r&256&&(t|=899327),r&128&&(t|=899967),r&512&&(t|=110735),r&8192&&(t|=103359),r&32768&&(t|=46015),r&65536&&(t|=78783),r&262144&&(t|=526824),r&524288&&(t|=788968),r&2097152&&(t|=2097152),t}function hf(r,t){t.mergeId||(t.mergeId=p,p++),Ws[t.mergeId]=r}function Nd(r){var t=fo(r.flags,r.escapedName);return t.declarations=r.declarations?r.declarations.slice():[],t.parent=r.parent,r.valueDeclaration&&(t.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),r.members&&(t.members=new e.Map(r.members)),r.exports&&(t.exports=new e.Map(r.exports)),hf(t,r),t}function _s(r,t,i){if(i===void 0&&(i=!1),!(r.flags&Zf(t.flags))||(t.flags|r.flags)&67108864){if(t===r)return r;if(!(r.flags&33554432)){var o=wo(r);if(o===We)return t;r=Nd(o)}t.flags&512&&r.flags&512&&r.constEnumOnlyModule&&!t.constEnumOnlyModule&&(r.constEnumOnlyModule=!1),r.flags|=t.flags,t.valueDeclaration&&e.setValueDeclaration(r,t.valueDeclaration),e.addRange(r.declarations,t.declarations),t.members&&(r.members||(r.members=e.createSymbolTable()),dl(r.members,t.members,i)),t.exports&&(r.exports||(r.exports=e.createSymbolTable()),dl(r.exports,t.exports,i)),i||hf(r,t)}else if(r.flags&1024)r!==pr&&Mr(t.declarations&&e.getNameOfDeclaration(t.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Wa(r));else{var s=!!(r.flags&384||t.flags&384),c=!!(r.flags&2||t.flags&2),L=s?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:c?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,G=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),ce=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),we=Wa(t);if(G&&ce&&zo&&!s&&G!==ce){var Ue=e.comparePaths(G.path,ce.path)===-1?G:ce,Je=Ue===G?ce:G,ar=e.getOrUpdate(zo,"".concat(Ue.path,"|").concat(Je.path),function(){return{firstFile:Ue,secondFile:Je,conflictingSymbols:new e.Map}}),_r=e.getOrUpdate(ar.conflictingSymbols,we,function(){return{isBlockScoped:c,firstFileLocations:[],secondFileLocations:[]}});Br(_r.firstFileLocations,t),Br(_r.secondFileLocations,r)}else Hc(t,L,we,r),Hc(r,L,we,t)}return r;function Br(Zr,Et){if(Et.declarations)for(var Tt=0,At=Et.declarations;Tt<At.length;Tt++){var Vt=At[Tt];e.pushIfUnique(Zr,Vt)}}}function Hc(r,t,i,o){e.forEach(r.declarations,function(s){Jc(s,t,i,o.declarations)})}function Jc(r,t,i,o){for(var s=(e.getExpandoInitializer(r,!1)?e.getNameOfExpando(r):e.getNameOfDeclaration(r))||r,c=gf(s,t,i),L=function(Ue){var Je=(e.getExpandoInitializer(Ue,!1)?e.getNameOfExpando(Ue):e.getNameOfDeclaration(Ue))||Ue;if(Je===s)return"continue";c.relatedInformation=c.relatedInformation||[];var ar=e.createDiagnosticForNode(Je,e.Diagnostics._0_was_also_declared_here,i),_r=e.createDiagnosticForNode(Je,e.Diagnostics.and_here);if(e.length(c.relatedInformation)>=5||e.some(c.relatedInformation,function(Br){return e.compareDiagnostics(Br,_r)===0||e.compareDiagnostics(Br,ar)===0}))return"continue";e.addRelatedInfo(c,e.length(c.relatedInformation)?_r:ar)},G=0,ce=o||e.emptyArray;G<ce.length;G++){var we=ce[G];L(we)}}function qp(r,t){if(!(r!=null&&r.size))return t;if(!(t!=null&&t.size))return r;var i=e.createSymbolTable();return dl(i,r),dl(i,t),i}function dl(r,t,i){i===void 0&&(i=!1),t.forEach(function(o,s){var c=r.get(s);r.set(s,c?_s(c,o,i):o)})}function Xp(r){var t,i,o,s=r.parent;if(((t=s.symbol.declarations)===null||t===void 0?void 0:t[0])!==s){e.Debug.assert(s.symbol.declarations.length>1);return}if(e.isGlobalScopeAugmentation(s))dl(Fr,s.symbol.exports);else{var c=r.parent.parent.flags&8388608?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,L=Pc(r,r,c,!0);if(!L)return;if(L=ll(L),L.flags&1920)if(e.some(dt,function(Br){return L===Br.symbol})){var G=_s(s.symbol,L,!0);tn||(tn=new e.Map),tn.set(r.text,G)}else{if(((i=L.exports)===null||i===void 0?void 0:i.get("__export"))&&((o=s.symbol.exports)===null||o===void 0?void 0:o.size))for(var ce=im(L,"resolvedExports"),we=0,Ue=e.arrayFrom(s.symbol.exports.entries());we<Ue.length;we++){var Je=Ue[we],ar=Je[0],_r=Je[1];ce.has(ar)&&!L.exports.has(ar)&&_s(ce.get(ar),_r)}_s(L,s.symbol)}else Mr(r,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,r.text)}}function Rs(r,t,i){t.forEach(function(s,c){var L=r.get(c);L?e.forEach(L.declarations,o(e.unescapeLeadingUnderscores(c),i)):r.set(c,s)});function o(s,c){return function(L){return ua.add(e.createDiagnosticForNode(L,c,s))}}}function Ja(r){if(r.flags&33554432)return r;var t=y(r);return xc[t]||(xc[t]=new $)}function Zn(r){var t=I(r);return Ic[t]||(Ic[t]=new T)}function Oc(r){return r.kind===303&&!e.isExternalOrCommonJsModule(r)}function ks(r,t,i){if(i){var o=Ga(r.get(t));if(o){if(e.Debug.assert((e.getCheckFlags(o)&1)===0,"Should never get an instantiated symbol here."),o.flags&i)return o;if(o.flags&2097152){var s=ms(o);if(s===We||s.flags&i)return o}}}}function yf(r,t){var i=r.parent,o=r.parent.parent,s=ks(i.locals,t,111551),c=ks(af(o.symbol),t,111551);return s&&c?[s,c]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Ou(r,t){var i=e.getSourceFileOfNode(r),o=e.getSourceFileOfNode(t),s=e.getEnclosingBlockScopeContainer(r);if(i!==o){if(Ae&&(i.externalModuleIndicator||o.externalModuleIndicator)||!e.outFile(Xe)||ug(t)||r.flags&8388608||we(t,r))return!0;var c=j.getSourceFiles();return c.indexOf(i)<=c.indexOf(o)}if(r.pos<=t.pos&&!(e.isPropertyDeclaration(r)&&e.isThisProperty(t.parent)&&!r.initializer&&!r.exclamationToken)){if(r.kind===202){var L=e.getAncestor(t,202);return L?e.findAncestor(L,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos<L.pos:Ou(e.getAncestor(r,253),t)}else{if(r.kind===253)return!ce(r,t);if(e.isClassDeclaration(r))return!e.findAncestor(t,function(Je){return e.isComputedPropertyName(Je)&&Je.parent.parent===r});if(e.isPropertyDeclaration(r))return!Ue(r,t,!1);if(e.isParameterPropertyDeclaration(r,r.parent))return!(e.getEmitScriptTarget(Xe)===99&&Ye&&e.getContainingClass(r)===e.getContainingClass(t)&&we(t,r))}return!0}if(t.parent.kind===274||t.parent.kind===270&&t.parent.isExportEquals||t.kind===270&&t.isExportEquals||!!(t.flags&4194304)||ug(t)||G())return!0;if(we(t,r))return e.getEmitScriptTarget(Xe)===99&&Ye&&e.getContainingClass(r)&&(e.isPropertyDeclaration(r)||e.isParameterPropertyDeclaration(r,r.parent))?!Ue(r,t,!0):!0;return!1;function G(){return!!e.findAncestor(t,function(Je){return e.isInterfaceDeclaration(Je)||e.isTypeAliasDeclaration(Je)})}function ce(Je,ar){switch(Je.parent.parent.kind){case 236:case 241:case 243:if(_c(ar,Je,s))return!0;break}var _r=Je.parent.parent;return e.isForInOrOfStatement(_r)&&_c(ar,_r.expression,s)}function we(Je,ar){return!!e.findAncestor(Je,function(_r){if(_r===s)return"quit";if(e.isFunctionLike(_r))return!0;if(e.isClassStaticBlockDeclaration(_r))return ar.pos<Je.pos;var Br=e.tryCast(_r.parent,e.isPropertyDeclaration);if(Br){var Zr=Br.initializer===_r;if(Zr)if(e.isStatic(_r.parent)){if(ar.kind===168)return!0;if(e.isPropertyDeclaration(ar)&&e.getContainingClass(Je)===e.getContainingClass(ar)){var Et=ar.name;if(e.isIdentifier(Et)||e.isPrivateIdentifier(Et)){var Tt=An(wn(ar)),At=e.filter(ar.parent.members,e.isClassStaticBlockDeclaration);if(k3(Et,Tt,At,ar.parent.pos,_r.pos))return!0}}}else{var Vt=ar.kind===166&&!e.isStatic(ar);if(!Vt||e.getContainingClass(Je)!==e.getContainingClass(ar))return!0}}return!1})}function Ue(Je,ar,_r){if(ar.end>Je.end)return!1;var Br=e.findAncestor(ar,function(Zr){if(Zr===Je)return"quit";switch(Zr.kind){case 213:return!0;case 166:return _r&&(e.isPropertyDeclaration(Je)&&Zr.parent===Je.parent||e.isParameterPropertyDeclaration(Je,Je.parent)&&Zr.parent===Je.parent.parent)?"quit":!0;case 234:switch(Zr.parent.kind){case 171:case 168:case 172:return!0;default:return!1}default:return!1}});return Br===void 0}}function kd(r,t,i){var o=e.getEmitScriptTarget(Xe),s=t;if(e.isParameter(i)&&s.body&&r.valueDeclaration&&r.valueDeclaration.pos>=s.body.pos&&r.valueDeclaration.end<=s.body.end&&o>=2){var c=Zn(s);return c.declarationRequiresScopeChange===void 0&&(c.declarationRequiresScopeChange=e.forEach(s.parameters,L)||!1),!c.declarationRequiresScopeChange}return!1;function L(ce){return G(ce.name)||!!ce.initializer&&G(ce.initializer)}function G(ce){switch(ce.kind){case 213:case 212:case 255:case 170:return!1;case 168:case 171:case 172:case 294:return G(ce.name);case 166:return e.hasStaticModifier(ce)?o<99||!Ye:G(ce.name);default:return e.isNullishCoalesce(ce)||e.isOptionalChain(ce)?o<7:e.isBindingElement(ce)&&ce.dotDotDotToken&&e.isObjectBindingPattern(ce.parent)?o<4:e.isTypeNode(ce)?!1:e.forEachChild(ce,G)||!1}}}function Uo(r,t,i,o,s,c,L,G){return L===void 0&&(L=!1),G===void 0&&(G=!0),$f(r,t,i,o,s,c,L,G,ks)}function $f(r,t,i,o,s,c,L,G,ce){var we,Ue,Je,ar=r,_r,Br,Zr,Et,Tt,At=!1,Vt=r,Nn,on=!1;e:for(;r;){if(r.locals&&!Oc(r)&&(_r=ce(r.locals,t,i))){var ca=!0;if(e.isFunctionLike(r)&&Br&&Br!==r.body?(i&_r.flags&788968&&Br.kind!==318&&(ca=_r.flags&262144?Br===r.type||Br.kind===163||Br.kind===162:!1),i&_r.flags&3&&(kd(_r,r,Br)?ca=!1:_r.flags&1&&(ca=Br.kind===163||Br===r.type&&!!e.findAncestor(_r.valueDeclaration,e.isParameter)))):r.kind===188&&(ca=Br===r.trueType),ca)break e;_r=void 0}switch(At=At||Yp(r,Br),r.kind){case 303:if(!e.isExternalOrCommonJsModule(r))break;on=!0;case 260:var la=((we=wn(r))===null||we===void 0?void 0:we.exports)||Le;if(r.kind===303||e.isModuleDeclaration(r)&&r.flags&8388608&&!e.isGlobalScopeAugmentation(r)){if(_r=la.get("default")){var di=e.getLocalSymbolForExportDefault(_r);if(di&&_r.flags&i&&di.escapedName===t)break e;_r=void 0}var Aa=la.get(t);if(Aa&&Aa.flags===2097152&&(e.getDeclarationOfKind(Aa,274)||e.getDeclarationOfKind(Aa,273)))break}if(t!=="default"&&(_r=ce(la,t,i&2623475)))if(e.isSourceFile(r)&&r.commonJsModuleIndicator&&!(!((Ue=_r.declarations)===null||Ue===void 0)&&Ue.some(e.isJSDocTypeAlias)))_r=void 0;else break e;break;case 259:if(_r=ce(((Je=wn(r))===null||Je===void 0?void 0:Je.exports)||Le,t,i&8))break e;break;case 166:if(!e.isStatic(r)){var Li=$u(r.parent);Li&&Li.locals&&ce(Li.locals,t,i&111551)&&(Et=r)}break;case 256:case 225:case 257:if(_r=ce(wn(r).members||Le,t,i&788968)){if(!C_(_r,r)){_r=void 0;break}if(Br&&e.isStatic(Br)){Mr(Vt,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);return}break e}if(r.kind===225&&i&32){var Bi=r.name;if(Bi&&t===Bi.escapedText){_r=r.symbol;break e}}break;case 227:if(Br===r.expression&&r.parent.token===94){var Ai=r.parent.parent;if(e.isClassLike(Ai)&&(_r=ce(wn(Ai).members,t,i&788968))){o&&Mr(Vt,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 161:if(Nn=r.parent.parent,(e.isClassLike(Nn)||Nn.kind===257)&&(_r=ce(wn(Nn).members,t,i&788968))){Mr(Vt,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 213:if(e.getEmitScriptTarget(Xe)>=2)break;case 168:case 170:case 171:case 172:case 255:if(i&3&&t==="arguments"){_r=Jr;break e}break;case 212:if(i&3&&t==="arguments"){_r=Jr;break e}if(i&16){var xo=r.name;if(xo&&t===xo.escapedText){_r=r.symbol;break e}}break;case 164:r.parent&&r.parent.kind===163&&(r=r.parent),r.parent&&(e.isClassElement(r.parent)||r.parent.kind===256)&&(r=r.parent);break;case 343:case 336:case 337:var Wt=e.getJSDocRoot(r);Wt&&(r=Wt.parent);break;case 163:Br&&(Br===r.initializer||Br===r.name&&e.isBindingPattern(Br))&&(Tt||(Tt=r));break;case 202:Br&&(Br===r.initializer||Br===r.name&&e.isBindingPattern(Br))&&e.isParameterDeclaration(r)&&!Tt&&(Tt=r);break;case 189:if(i&262144){var Ft=r.typeParameter.name;if(Ft&&t===Ft.escapedText){_r=r.typeParameter.symbol;break e}}break}yp(r)&&(Zr=r),Br=r,r=e.isJSDocTemplateTag(r)&&e.getEffectiveContainerForJSDocTemplateTag(r)||r.parent}if(c&&_r&&(!Zr||_r!==Zr.symbol)&&(_r.isReferenced|=i),!_r){if(Br&&(e.Debug.assert(Br.kind===303),Br.commonJsModuleIndicator&&t==="exports"&&i&Br.symbol.flags))return Br.symbol;L||(_r=ce(Fr,t,i))}if(!_r&&ar&&e.isInJSFile(ar)&&ar.parent&&e.isRequireCall(ar.parent,!1))return ze;if(!_r){if(o&&Se&&(!Vt||!ed(Vt,t,s)&&!bp(Vt)&&!Pd(Vt,t,i)&&!Ep(Vt,t)&&!Qp(Vt,t,i)&&!Bd(Vt,t,i)&&!Md(Vt,t,i))){var _n=void 0;if(G&&ql<fc){_n=B1(ar,t,i);var Ca=(_n==null?void 0:_n.valueDeclaration)&&e.isAmbientModule(_n.valueDeclaration)&&e.isGlobalScopeAugmentation(_n.valueDeclaration);if(Ca&&(_n=void 0),_n){var Yn=Wa(_n),Ba=M1(ar,_n,!1),Ti=i===1920||s&&typeof s!="string"&&e.nodeIsSynthesized(s)?e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1:Ba?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,Mi=jc(Vt,Ti,Xl(s),Yn);$l(!Ba,Mi),_n.valueDeclaration&&e.addRelatedInfo(Mi,e.createDiagnosticForNode(_n.valueDeclaration,e.Diagnostics._0_is_declared_here,Yn))}}if(!_n&&s){var jn=mM(s);jn?Mr(Vt,o,Xl(s),jn):Mr(Vt,o,Xl(s))}ql++}return}if(o&&Se){if(Et&&!(e.getEmitScriptTarget(Xe)===99&&Ye)){var Fi=Et.name;Mr(Vt,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(Fi),Xl(s));return}if(Vt&&(i&2||(i&32||i&384)&&(i&111551)===111551)){var jr=tc(_r);(jr.flags&2||jr.flags&32||jr.flags&384)&&fu(jr,Vt)}if(_r&&on&&(i&111551)===111551&&!(ar.flags&4194304)){var Sr=Ga(_r);e.length(Sr.declarations)&&e.every(Sr.declarations,function(nn){return e.isNamespaceExportDeclaration(nn)||e.isSourceFile(nn)&&!!nn.symbol.globalExports})&&pc(!Xe.allowUmdGlobalAccess,Vt,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(t))}if(_r&&Tt&&!At&&(i&111551)===111551){var hn=Ga(Vg(_r)),Wt=e.getRootDeclaration(Tt);hn===wn(Tt)?Mr(Vt,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(Tt.name)):hn.valueDeclaration&&hn.valueDeclaration.pos>Tt.pos&&Wt.parent.locals&&ce(Wt.parent.locals,hn.escapedName,i)===hn&&Mr(Vt,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(Tt.name),e.declarationNameToString(Vt))}_r&&Vt&&i&111551&&_r.flags&2097152&&Od(_r,t,Vt)}return _r}function Od(r,t,i){if(!e.isValidTypeOnlyAliasUseSite(i)){var o=Ln(r);if(o){var s=o.kind===274?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,c=e.unescapeLeadingUnderscores(t);Rd(Mr(i,s,c),o,c)}}}function Rd(r,t,i){return t?e.addRelatedInfo(r,e.createDiagnosticForNode(t,t.kind===274?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,i)):r}function Yp(r,t){return r.kind!==213&&r.kind!==212?e.isTypeQueryNode(r)||(e.isFunctionLikeDeclaration(r)||r.kind===166&&!e.isStatic(r))&&(!t||t!==r.name):t&&t===r.name?!1:r.asteriskToken||e.hasSyntacticModifier(r,256)?!0:!e.getImmediatelyInvokedFunctionExpression(r)}function yp(r){switch(r.kind){case 255:case 256:case 257:case 259:case 258:case 260:return!0;default:return!1}}function Xl(r){return e.isString(r)?e.unescapeLeadingUnderscores(r):e.declarationNameToString(r)}function C_(r,t){if(r.declarations)for(var i=0,o=r.declarations;i<o.length;i++){var s=o[i];if(s.kind===162){var c=e.isJSDocTemplateTag(s.parent)?e.getJSDocHost(s.parent):s.parent;if(c===t)return!(e.isJSDocTemplateTag(s.parent)&&e.find(s.parent.parent.tags,e.isJSDocTypeAlias))}}return!1}function ed(r,t,i){if(!e.isIdentifier(r)||r.escapedText!==t||cI(r)||ug(r))return!1;for(var o=e.getThisContainer(r,!1),s=o;s;){if(e.isClassLike(s.parent)){var c=wn(s.parent);if(!c)break;var L=An(c);if(Ii(L,t))return Mr(r,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Xl(i),Wa(c)),!0;if(s===o&&!e.isStatic(s)){var G=po(c).thisType;if(Ii(G,t))return Mr(r,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Xl(i)),!0}}s=s.parent}return!1}function bp(r){var t=wd(r);return t&&rs(t,64,!0)?(Mr(r,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(t)),!0):!1}function wd(r){switch(r.kind){case 79:case 205:return r.parent?wd(r.parent):void 0;case 227:if(e.isEntityNameExpression(r.expression))return r.expression;default:return}}function Pd(r,t,i){var o=1920|(e.isInJSFile(r)?111551:0);if(i===o){var s=wo(Uo(r,t,788968&~o,void 0,void 0,!1)),c=r.parent;if(s){if(e.isQualifiedName(c)){e.Debug.assert(c.left===r,"Should only be resolving left side of qualified name as a namespace");var L=c.right.escapedText,G=Ii(po(s),L);if(G)return Mr(c,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(L)),!0}return Mr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(t)),!0}}return!1}function Md(r,t,i){if(i&788584){var o=wo(Uo(r,t,111127,void 0,void 0,!1));if(o&&!(o.flags&1920))return Mr(r,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 Fd(r){return r==="any"||r==="string"||r==="number"||r==="boolean"||r==="never"||r==="unknown"}function Ep(r,t){return Fd(t)&&r.parent.kind===274?(Mr(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0):!1}function Qp(r,t,i){if(i&111551){if(Fd(t))return Mr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(t)),!0;var o=wo(Uo(r,t,788544,void 0,void 0,!1));if(o&&!(o.flags&1024)){var s=e.unescapeLeadingUnderscores(t);return Zp(t)?Mr(r,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,s):Gd(r,o)?Mr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,s,s==="K"?"P":"K"):Mr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,s),!0}}return!1}function Gd(r,t){var i=e.findAncestor(r.parent,function(s){return e.isComputedPropertyName(s)||e.isPropertySignature(s)?!1:e.isTypeLiteralNode(s)||"quit"});if(i&&i.members.length===1){var o=po(t);return!!(o.flags&1048576)&&Sm(o,384,!0)}return!1}function Zp(r){switch(r){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Bd(r,t,i){if(i&111127){var o=wo(Uo(r,t,1024,void 0,void 0,!1));if(o)return Mr(r,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(t)),!0}else if(i&788544){var o=wo(Uo(r,t,1536,void 0,void 0,!1));if(o)return Mr(r,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(t)),!0}return!1}function fu(r,t){var i;if(e.Debug.assert(!!(r.flags&2||r.flags&32||r.flags&384)),!(r.flags&67108881&&r.flags&32)){var o=(i=r.declarations)===null||i===void 0?void 0:i.find(function(L){return e.isBlockOrCatchScoped(L)||e.isClassLike(L)||L.kind===259});if(o===void 0)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(o.flags&8388608)&&!Ou(o,t)){var s=void 0,c=e.declarationNameToString(e.getNameOfDeclaration(o));r.flags&2?s=Mr(t,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,c):r.flags&32?s=Mr(t,e.Diagnostics.Class_0_used_before_its_declaration,c):r.flags&256?s=Mr(t,e.Diagnostics.Enum_0_used_before_its_declaration,c):(e.Debug.assert(!!(r.flags&128)),e.shouldPreserveConstEnums(Xe)&&(s=Mr(t,e.Diagnostics.Enum_0_used_before_its_declaration,c))),s&&e.addRelatedInfo(s,e.createDiagnosticForNode(o,e.Diagnostics._0_is_declared_here,c))}}}function _c(r,t,i){return!!t&&!!e.findAncestor(r,function(o){return o===i||e.isFunctionLike(o)?"quit":o===t})}function mc(r){switch(r.kind){case 264:return r;case 266:return r.parent;case 267:return r.parent.parent;case 269:return r.parent.parent.parent;default:return}}function ec(r){return r.declarations&&e.findLast(r.declarations,Ud)}function Ud(r){return r.kind===264||r.kind===263||r.kind===266&&!!r.name||r.kind===267||r.kind===273||r.kind===269||r.kind===274||r.kind===270&&e.exportAssignmentIsAlias(r)||e.isBinaryExpression(r)&&e.getAssignmentDeclarationKind(r)===2&&e.exportAssignmentIsAlias(r)||e.isAccessExpression(r)&&e.isBinaryExpression(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===63&&bf(r.parent.right)||r.kind===295||r.kind===294&&bf(r.initializer)||e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)}function bf(r){return e.isAliasableExpression(r)||e.isFunctionExpression(r)&&ou(r)}function Tp(r,t){var i=Sl(r);if(i){var o=e.getLeftmostAccessExpression(i.expression).arguments[0];return e.isIdentifier(i.name)?wo(Ii(pD(o),i.name.escapedText)):void 0}if(e.isVariableDeclaration(r)||r.moduleReference.kind===276){var s=ws(r,e.getExternalModuleRequireArgument(r)||e.getExternalModuleImportEqualsDeclarationExpression(r)),c=ll(s);return Yl(r,s,c,!1),c}var L=sd(r.moduleReference,t);return Sp(r,L),L}function Sp(r,t){if(Yl(r,void 0,t,!1)&&!r.isTypeOnly){var i=Ln(wn(r)),o=i.kind===274,s=o?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,c=o?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,L=e.unescapeLeadingUnderscores(i.name.escapedText);e.addRelatedInfo(Mr(r.moduleReference,s),e.createDiagnosticForNode(i,c,L))}}function Ef(r,t,i,o){var s=r.exports.get("export="),c=s?Ii(An(s),t):r.exports.get(t),L=wo(c,o);return Yl(i,c,L,!1),L}function $p(r){return e.isExportAssignment(r)&&!r.isExportEquals||e.hasSyntacticModifier(r,512)||e.isExportSpecifier(r)}function Vd(r){return e.isStringLiteralLike(r)?e.getModeForUsageLocation(e.getSourceFileOfNode(r),r):void 0}function rd(r,t){return r===e.ModuleKind.ESNext&&t===e.ModuleKind.CommonJS}function td(r){var t=Vd(r);return t===e.ModuleKind.ESNext&&e.endsWith(r.text,".json")}function Ru(r,t,i,o){var s=r&&Vd(o);if(r&&s!==void 0){var c=rd(s,r.impliedNodeFormat);if(s===e.ModuleKind.ESNext||c)return c}if(!Lr)return!1;if(!r||r.isDeclarationFile){var L=Ef(t,"default",void 0,!0);return!(L&&e.some(L.declarations,$p)||Ef(t,e.escapeLeadingUnderscores("__esModule"),void 0,i))}return e.isSourceFileJS(r)?!r.externalModuleIndicator&&!Ef(t,e.escapeLeadingUnderscores("__esModule"),void 0,i):ld(t)}function wu(r,t){var i,o=ws(r,r.parent.moduleSpecifier);if(o){var s=void 0;e.isShorthandAmbientModuleSymbol(o)?s=o:s=Ef(o,"default",r,t);var c=(i=o.declarations)===null||i===void 0?void 0:i.find(e.isSourceFile),L=td(r.parent.moduleSpecifier),G=Ru(c,o,t,r.parent.moduleSpecifier);if(!s&&!G&&!L)if(ld(o)){var ce=Ae>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",we=o.exports.get("export="),Ue=we.valueDeclaration,Je=Mr(r.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Wa(o),ce);Ue&&e.addRelatedInfo(Je,e.createDiagnosticForNode(Ue,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,ce))}else Pu(o,r);else if(G||L){var ar=ll(o,t)||wo(o,t);return Yl(r,o,ar,!1),ar}return Yl(r,s,void 0,!1),s}}function Pu(r,t){var i,o,s;if(!((i=r.exports)===null||i===void 0)&&i.has(t.symbol.escapedName))Mr(t.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Wa(r),Wa(t.symbol));else{var c=Mr(t.name,e.Diagnostics.Module_0_has_no_default_export,Wa(r)),L=(o=r.exports)===null||o===void 0?void 0:o.get("__export");if(L){var G=(s=L.declarations)===null||s===void 0?void 0:s.find(function(ce){var we,Ue;return!!(e.isExportDeclaration(ce)&&ce.moduleSpecifier&&((Ue=(we=ws(ce,ce.moduleSpecifier))===null||we===void 0?void 0:we.exports)===null||Ue===void 0?void 0:Ue.has("default")))});G&&e.addRelatedInfo(c,e.createDiagnosticForNode(G,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}function js(r,t){var i=r.parent.parent.moduleSpecifier,o=ws(r,i),s=Fu(o,i,t,!1);return Yl(r,o,s,!1),s}function gc(r,t){var i=r.parent.moduleSpecifier,o=i&&ws(r,i),s=i&&Fu(o,i,t,!1);return Yl(r,o,s,!1),s}function nd(r,t){if(r===We&&t===We)return We;if(r.flags&790504)return r;var i=fo(r.flags|t.flags,r.escapedName);return i.declarations=e.deduplicate(e.concatenate(r.declarations,t.declarations),e.equateValues),i.parent=r.parent||t.parent,r.valueDeclaration&&(i.valueDeclaration=r.valueDeclaration),t.members&&(i.members=new e.Map(t.members)),r.exports&&(i.exports=new e.Map(r.exports)),i}function x_(r,t,i,o){if(r.flags&1536){var s=Js(r).get(t.escapedText),c=wo(s,o);return Yl(i,s,c,!1),c}}function ad(r,t){if(r.flags&3){var i=r.valueDeclaration.type;if(i)return wo(Ii(Da(i),t))}}function Mu(r,t,i){var o,s;i===void 0&&(i=!1);var c=e.getExternalModuleRequireArgument(r)||r.moduleSpecifier,L=ws(r,c),G=!e.isPropertyAccessExpression(t)&&t.propertyName||t.name;if(!!e.isIdentifier(G)){var ce=G.escapedText==="default"&&!!(Xe.allowSyntheticDefaultImports||e.getESModuleInterop(Xe)),we=Fu(L,c,!1,ce);if(we&&G.escapedText){if(e.isShorthandAmbientModuleSymbol(L))return L;var Ue=void 0;L&&L.exports&&L.exports.get("export=")?Ue=Ii(An(we),G.escapedText,!0):Ue=ad(we,G.escapedText),Ue=wo(Ue,i);var Je=x_(we,G,t,i);if(Je===void 0&&G.escapedText==="default"){var ar=(o=L.declarations)===null||o===void 0?void 0:o.find(e.isSourceFile);(td(c)||Ru(ar,L,i,c))&&(Je=ll(L,i)||wo(L,i))}var _r=Je&&Ue&&Je!==Ue?nd(Ue,Je):Je||Ue;if(!_r){var Br=sl(L,r),Zr=e.declarationNameToString(G),Et=hb(G,we);if(Et!==void 0){var Tt=Wa(Et),At=Mr(G,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,Br,Zr,Tt);Et.valueDeclaration&&e.addRelatedInfo(At,e.createDiagnosticForNode(Et.valueDeclaration,e.Diagnostics._0_is_declared_here,Tt))}else!((s=L.exports)===null||s===void 0)&&s.has("default")?Mr(G,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,Br,Zr):I_(r,G,Zr,L,Br)}return _r}}}function I_(r,t,i,o,s){var c,L,G=(L=(c=o.valueDeclaration)===null||c===void 0?void 0:c.locals)===null||L===void 0?void 0:L.get(t.escapedText),ce=o.exports;if(G){var we=ce==null?void 0:ce.get("export=");if(we)Ll(we,G)?vc(r,t,i,s):Mr(t,e.Diagnostics.Module_0_has_no_exported_member_1,s,i);else{var Ue=ce?e.find(Ym(ce),function(ar){return!!Ll(ar,G)}):void 0,Je=Ue?Mr(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,s,i,Wa(Ue)):Mr(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,s,i);G.declarations&&e.addRelatedInfo.apply(void 0,Gt([Je],e.map(G.declarations,function(ar,_r){return e.createDiagnosticForNode(ar,_r===0?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,i)}),!1))}}else Mr(t,e.Diagnostics.Module_0_has_no_exported_member_1,s,i)}function vc(r,t,i,o){if(Ae>=e.ModuleKind.ES2015){var s=e.getESModuleInterop(Xe)?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;Mr(t,s,i)}else if(e.isInJSFile(r)){var s=e.getESModuleInterop(Xe)?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;Mr(t,s,i)}else{var s=e.getESModuleInterop(Xe)?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;Mr(t,s,i,i,o)}}function Ml(r,t){var i=e.isBindingElement(r)?e.getRootDeclaration(r):r.parent.parent.parent,o=Sl(i),s=Mu(i,o||r,t),c=r.propertyName||r.name;return o&&s&&e.isIdentifier(c)?wo(Ii(An(s),c.escapedText),t):(Yl(r,void 0,s,!1),s)}function Sl(r){if(e.isVariableDeclaration(r)&&r.initializer&&e.isPropertyAccessExpression(r.initializer))return r.initializer}function Fl(r,t){var i=ll(r.parent.symbol,t);return Yl(r,void 0,i,!1),i}function pl(r,t,i){var o=r.parent.parent.moduleSpecifier?Mu(r.parent.parent,r,i):rs(r.propertyName||r.name,t,!1,i);return Yl(r,void 0,o,!1),o}function Dp(r,t){var i=e.isExportAssignment(r)?r.expression:r.right,o=Tf(i,t);return Yl(r,void 0,o,!1),o}function Tf(r,t){if(e.isClassExpression(r))return Ss(r).symbol;if(!(!e.isEntityName(r)&&!e.isEntityNameExpression(r))){var i=rs(r,901119,!0,t);return i||(Ss(r),Zn(r).resolvedSymbol)}}function Wd(r,t){var i=r.initializer;return Tf(i,t)}function id(r,t){if(!!(e.isBinaryExpression(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===63))return Tf(r.parent.right,t)}function mo(r,t){switch(t===void 0&&(t=!1),r.kind){case 264:case 253:return Tp(r,t);case 266:return wu(r,t);case 267:return js(r,t);case 273:return gc(r,t);case 269:case 202:return Ml(r,t);case 274:return pl(r,901119,t);case 270:case 220:return Dp(r,t);case 263:return Fl(r,t);case 295:return rs(r.name,901119,!0,t);case 294:return Wd(r,t);case 206:case 205:return id(r,t);default:return e.Debug.fail()}}function Dl(r,t){return t===void 0&&(t=901119),r?(r.flags&(2097152|t))===2097152||!!(r.flags&2097152&&r.flags&67108864):!1}function wo(r,t){return!t&&Dl(r)?ms(r):r}function ms(r){e.Debug.assert((r.flags&2097152)!==0,"Should only get Alias here.");var t=Ja(r);if(t.target)t.target===ee&&(t.target=We);else{t.target=ee;var i=ec(r);if(!i)return e.Debug.fail();var o=mo(i);t.target===ee?t.target=o||We:Mr(i,e.Diagnostics.Circular_definition_of_import_alias_0,Wa(r))}return t.target}function e_(r){var t=Ja(r);if(t.target!==ee)return ms(r)}function Yl(r,t,i,o){if(!r||e.isPropertyAccessExpression(r))return!1;var s=wn(r);if(e.isTypeOnlyImportOrExportDeclaration(r)){var c=Ja(s);return c.typeOnlyDeclaration=r,!0}var L=Ja(s);return od(L,t,o)||od(L,i,o)}function od(r,t,i){var o,s,c;if(t&&(r.typeOnlyDeclaration===void 0||i&&r.typeOnlyDeclaration===!1)){var L=(s=(o=t.exports)===null||o===void 0?void 0:o.get("export="))!==null&&s!==void 0?s:t,G=L.declarations&&e.find(L.declarations,e.isTypeOnlyImportOrExportDeclaration);r.typeOnlyDeclaration=(c=G!=null?G:Ja(L).typeOnlyDeclaration)!==null&&c!==void 0?c:!1}return!!r.typeOnlyDeclaration}function Ln(r){if(!!(r.flags&2097152)){var t=Ja(r);return t.typeOnlyDeclaration||void 0}}function us(r){var t=wn(r),i=ms(t);if(i){var o=i===We||i.flags&111551&&!Lv(i)&&!Ln(t);o&&ii(t)}}function ii(r){var t=Ja(r);if(!t.referenced){t.referenced=!0;var i=ec(r);if(!i)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(i)){var o=wo(r);(o===We||o.flags&111551)&&Ss(i.moduleReference)}}}function Rc(r){var t=Ja(r);t.constEnumReferenced||(t.constEnumReferenced=!0)}function sd(r,t){return r.kind===79&&e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),r.kind===79||r.parent.kind===160?rs(r,1920,!1,t):(e.Debug.assert(r.parent.kind===264),rs(r,901119,!1,t))}function sl(r,t){return r.parent?sl(r.parent,t)+"."+Wa(r):Wa(r,t,void 0,20)}function Dn(r){for(;e.isQualifiedName(r.parent);)r=r.parent;return r}function N_(r){var t=e.getFirstIdentifier(r),i=Uo(t,t.escapedText,111551,void 0,t,!0);if(!!i){for(;e.isQualifiedName(t.parent);){var o=An(i);if(i=Ii(o,t.parent.right.escapedText),!i)return;t=t.parent}return i}}function rs(r,t,i,o,s){if(!e.nodeIsMissing(r)){var c=1920|(e.isInJSFile(r)?t&111551:0),L;if(r.kind===79){var G=t===c||e.nodeIsSynthesized(r)?e.Diagnostics.Cannot_find_namespace_0:lA(e.getFirstIdentifier(r)),ce=e.isInJSFile(r)&&!e.nodeIsSynthesized(r)?fs(r,t):void 0;if(L=Ga(Uo(s||r,r.escapedText,t,i||ce?void 0:G,r,!0,!1)),!L)return Ga(ce)}else if(r.kind===160||r.kind===205){var we=r.kind===160?r.left:r.expression,Ue=r.kind===160?r.right:r.name,Je=rs(we,c,i,!1,s);if(!Je||e.nodeIsMissing(Ue))return;if(Je===We)return Je;if(Je.valueDeclaration&&e.isInJSFile(Je.valueDeclaration)&&e.isVariableDeclaration(Je.valueDeclaration)&&Je.valueDeclaration.initializer&&VC(Je.valueDeclaration.initializer)){var ar=Je.valueDeclaration.initializer.arguments[0],_r=ws(ar,ar);if(_r){var Br=ll(_r);Br&&(Je=Br)}}if(L=Ga(ks(Js(Je),Ue.escapedText,t)),!L){if(!i){var Zr=sl(Je),Et=e.declarationNameToString(Ue),Tt=hb(Ue,Je);if(Tt){Mr(Ue,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,Zr,Et,Wa(Tt));return}var At=e.isQualifiedName(r)&&Dn(r),Vt=Un&&t&788968&&At&&!e.isTypeOfExpression(At.parent)&&N_(At);if(Vt){Mr(At,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(At));return}if(t&1920&&e.isQualifiedName(r.parent)){var Nn=Ga(ks(Js(Je),Ue.escapedText,788968));if(Nn){Mr(r.parent.right,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,Wa(Nn),e.unescapeLeadingUnderscores(r.parent.right.escapedText));return}}Mr(Ue,e.Diagnostics.Namespace_0_has_no_exported_member_1,Zr,Et)}return}}else throw e.Debug.assertNever(r,"Unknown entity name kind.");return e.Debug.assert((e.getCheckFlags(L)&1)===0,"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(r)&&e.isEntityName(r)&&(L.flags&2097152||r.parent.kind===270)&&Yl(e.getAliasDeclarationFromName(r),L,void 0,!0),L.flags&t||o?L:ms(L)}}function fs(r,t){if(Cy(r.parent)){var i=wc(r.parent);if(i)return Uo(i,r.escapedText,t,void 0,r,!0)}}function wc(r){var t=e.findAncestor(r,function(c){return e.isJSDocNode(c)||c.flags&4194304?e.isJSDocTypeAlias(c):"quit"});if(!t){var i=e.getJSDocHost(r);if(i&&e.isExpressionStatement(i)&&e.isBinaryExpression(i.expression)&&e.getAssignmentDeclarationKind(i.expression)===3){var o=wn(i.expression.left);if(o)return Hs(o)}if(i&&(e.isObjectLiteralMethod(i)||e.isPropertyAssignment(i))&&e.isBinaryExpression(i.parent.parent)&&e.getAssignmentDeclarationKind(i.parent.parent)===6){var o=wn(i.parent.parent.left);if(o)return Hs(o)}var s=e.getEffectiveJSDocHost(r);if(s&&e.isFunctionLike(s)){var o=wn(s);return o&&o.valueDeclaration}}}function Hs(r){var t=r.parent.valueDeclaration;if(!!t){var i=e.isAssignmentDeclaration(t)?e.getAssignedExpandoInitializer(t):e.hasOnlyExpressionInitializer(t)?e.getDeclaredExpandoInitializer(t):void 0;return i||t}}function Sf(r){var t=r.valueDeclaration;if(!(!t||!e.isInJSFile(t)||r.flags&524288||e.getExpandoInitializer(t,!1))){var i=e.isVariableDeclaration(t)?e.getDeclaredExpandoInitializer(t):e.getAssignedExpandoInitializer(t);if(i){var o=wn(i);if(o)return z1(o,r)}}}function ws(r,t,i){var o=e.getEmitModuleResolutionKind(Xe)===e.ModuleResolutionKind.Classic,s=o?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 Pc(r,t,i?void 0:s)}function Pc(r,t,i,o){return o===void 0&&(o=!1),e.isStringLiteralLike(t)?Qu(r,t.text,i,t,o):void 0}function Qu(r,t,i,o,s){var c,L,G,ce,we,Ue,Je;if(s===void 0&&(s=!1),e.startsWith(t,"@types/")){var ar=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,_r=e.removePrefix(t,"@types/");Mr(o,ar,_r,t)}var Br=Jg(t,!0);if(Br)return Br;var Zr=e.getSourceFileOfNode(r),Et=e.isStringLiteralLike(r)?r:((c=e.findAncestor(r,e.isImportCall))===null||c===void 0?void 0:c.arguments[0])||((L=e.findAncestor(r,e.isImportDeclaration))===null||L===void 0?void 0:L.moduleSpecifier)||((G=e.findAncestor(r,e.isExternalModuleImportEqualsDeclaration))===null||G===void 0?void 0:G.moduleReference.expression)||((ce=e.findAncestor(r,e.isExportDeclaration))===null||ce===void 0?void 0:ce.moduleSpecifier)||((we=e.isModuleDeclaration(r)?r:r.parent&&e.isModuleDeclaration(r.parent)&&r.parent.name===r?r.parent:void 0)===null||we===void 0?void 0:we.name)||((Ue=e.isLiteralImportTypeNode(r)?r:void 0)===null||Ue===void 0?void 0:Ue.argument.literal),Tt=Et&&e.isStringLiteralLike(Et)?e.getModeForUsageLocation(Zr,Et):Zr.impliedNodeFormat,At=e.getResolvedModule(Zr,t,Tt),Vt=At&&e.getResolutionDiagnostic(Xe,At),Nn=At&&!Vt&&j.getSourceFile(At.resolvedFileName);if(Nn){if(Nn.symbol){if(At.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(At.extension)&&Df(!1,o,At,t),e.getEmitModuleResolutionKind(Xe)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(Xe)===e.ModuleResolutionKind.NodeNext){var on=Zr.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(r,e.isImportCall)||!!e.findAncestor(r,e.isImportEqualsDeclaration);on&&Nn.impliedNodeFormat===e.ModuleKind.ESNext&&Mr(o,e.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead,t),Tt===e.ModuleKind.ESNext&&Xe.resolveJsonModule&&At.extension===".json"&&Mr(o,e.Diagnostics.JSON_imports_are_experimental_in_ES_module_mode_imports)}return Ga(Nn.symbol)}i&&Mr(o,e.Diagnostics.File_0_is_not_a_module,Nn.fileName);return}if(dt){var ca=e.findBestPatternMatch(dt,function(Ca){return Ca.pattern},t);if(ca){var la=tn&&tn.get(t);return Ga(la||ca.symbol)}}if(At&&!e.resolutionExtensionIsTSOrJson(At.extension)&&Vt===void 0||Vt===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(s){var ar=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Mr(o,ar,t,At.resolvedFileName)}else Df(Ke&&!!i,o,At,t);return}if(i){if(At){var di=j.getProjectReferenceRedirect(At.resolvedFileName);if(di){Mr(o,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,di,At.resolvedFileName);return}}if(Vt)Mr(o,Vt,t,At.resolvedFileName);else{var Aa=e.tryExtractTSExtension(t),Li=e.pathIsRelative(t)&&!e.hasExtension(t),Bi=e.getEmitModuleResolutionKind(Xe),Ai=Bi===e.ModuleResolutionKind.Node12||Bi===e.ModuleResolutionKind.NodeNext;if(Aa){var ar=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,xo=e.removeExtension(t,Aa),Wt=xo;Ae>=e.ModuleKind.ES2015&&(Wt+=Aa===".mts"?".mjs":Aa===".cts"?".cjs":".js"),Mr(o,ar,Aa,Wt)}else if(!Xe.resolveJsonModule&&e.fileExtensionIs(t,".json")&&e.getEmitModuleResolutionKind(Xe)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(Xe))Mr(o,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,t);else if(Tt===e.ModuleKind.ESNext&&Ai&&Li){var Ft=e.getNormalizedAbsolutePath(t,e.getDirectoryPath(Zr.path)),_n=(Je=Do.find(function(Ca){var Yn=Ca[0];return Ca[1],j.fileExists(Ft+Yn)}))===null||Je===void 0?void 0:Je[1];_n?Mr(o,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Did_you_mean_0,t+_n):Mr(o,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else Mr(o,i,t)}}}function Df(r,t,i,o){var s=i.packageId,c=i.resolvedFileName,L=!e.isExternalModuleNameRelative(o)&&s?hc(s.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,s.name,e.mangleScopedPackageName(s.name)):Lf(s.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s.name,o):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,o,e.mangleScopedPackageName(s.name)):void 0;pc(r,t,e.chainDiagnosticMessages(L,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,o,c))}function hc(r){return Ce().has(e.getTypesPackageName(r))}function Lf(r){return!!Ce().get(r)}function ll(r,t){if(r!=null&&r.exports){var i=wo(r.exports.get("export="),t),o=r_(Ga(i),Ga(r));return Ga(o)||r}}function r_(r,t){if(!r||r===We||r===t||t.exports.size===1||r.flags&2097152)return r;var i=Ja(r);if(i.cjsExportMerged)return i.cjsExportMerged;var o=r.flags&33554432?r:Nd(r);return o.flags=o.flags|512,o.exports===void 0&&(o.exports=e.createSymbolTable()),t.exports.forEach(function(s,c){c!=="export="&&o.exports.set(c,o.exports.has(c)?_s(o.exports.get(c),s):s)}),Ja(o).cjsExportMerged=o,i.cjsExportMerged=o}function Fu(r,t,i,o){var s=ll(r,i);if(!i&&s){if(!o&&!(s.flags&1539)&&!e.getDeclarationOfKind(s,303)){var c=Ae>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Mr(t,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,c),s}var L=t.parent;if(e.isImportDeclaration(L)&&e.getNamespaceDeclarationNode(L)||e.isImportCall(L)){var G=e.isImportCall(L)?L.arguments[0]:L.moduleSpecifier,ce=An(s),we=BC(ce,s,r,G);if(we)return Af(s,we,L);if(e.getESModuleInterop(Xe)){var Ue=Hg(ce,0);if((!Ue||!Ue.length)&&(Ue=Hg(ce,1)),Ue&&Ue.length||Ii(ce,"default",!0)){var Je=UC(ce,s,r,G);return Af(s,Je,L)}}}}return s}function Af(r,t,i){var o=fo(r.flags,r.escapedName);o.declarations=r.declarations?r.declarations.slice():[],o.parent=r.parent,o.target=r,o.originatingImport=i,r.valueDeclaration&&(o.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(o.constEnumOnlyModule=!0),r.members&&(o.members=new e.Map(r.members)),r.exports&&(o.exports=new e.Map(r.exports));var s=Sc(t);return o.type=ts(o,s.members,e.emptyArray,e.emptyArray,s.indexInfos),o}function ld(r){return r.exports.get("export=")!==void 0}function cd(r){return Ym(Gl(r))}function Cf(r){var t=cd(r),i=ll(r);if(i!==r){var o=An(i);Gu(o)&&e.addRange(t,Yi(o))}return t}function yc(r,t){var i=Gl(r);i.forEach(function(c,L){Nf(L)||t(c,L)});var o=ll(r);if(o!==r){var s=An(o);Gu(s)&&VE(s,function(c,L){t(c,L)})}}function ud(r,t){var i=Gl(t);if(i)return i.get(r)}function xf(r,t){var i=ud(r,t);if(i)return i;var o=ll(t);if(o!==t){var s=An(o);return Gu(s)?Ii(s,r):void 0}}function Gu(r){return!(r.flags&131068||e.getObjectFlags(r)&1||el(r)||ki(r))}function Js(r){return r.flags&6256?im(r,"resolvedExports"):r.flags&1536?Gl(r):r.exports||Le}function Gl(r){var t=Ja(r);return t.resolvedExports||(t.resolvedExports=fd(r))}function Kc(r,t,i,o){!t||t.forEach(function(s,c){if(c!=="default"){var L=r.get(c);if(!L)r.set(c,s),i&&o&&i.set(c,{specifierText:e.getTextOfNode(o.moduleSpecifier)});else if(i&&o&&L&&wo(L)!==wo(s)){var G=i.get(c);G.exportsWithDuplicate?G.exportsWithDuplicate.push(o):G.exportsWithDuplicate=[o]}}})}function fd(r){var t=[];return r=ll(r),i(r)||Le;function i(o){if(!!(o&&o.exports&&e.pushIfUnique(t,o))){var s=new e.Map(o.exports),c=o.exports.get("__export");if(c){var L=e.createSymbolTable(),G=new e.Map;if(c.declarations)for(var ce=0,we=c.declarations;ce<we.length;ce++){var Ue=we[ce],Je=ws(Ue,Ue.moduleSpecifier),ar=i(Je);Kc(L,ar,G,Ue)}G.forEach(function(_r,Br){var Zr=_r.exportsWithDuplicate;if(!(Br==="export="||!(Zr&&Zr.length)||s.has(Br)))for(var Et=0,Tt=Zr;Et<Tt.length;Et++){var At=Tt[Et];ua.add(e.createDiagnosticForNode(At,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,G.get(Br).specifierText,e.unescapeLeadingUnderscores(Br)))}}),Kc(s,L)}return s}}}function Ga(r){var t;return r&&r.mergeId&&(t=Ws[r.mergeId])?t:r}function wn(r){return Ga(r.symbol&&Vg(r.symbol))}function Ts(r){return Ga(r.parent&&Vg(r.parent))}function jd(r,t){var i=e.getSourceFileOfNode(t),o=I(i),s=Ja(r),c;if(s.extendedContainersByFile&&(c=s.extendedContainersByFile.get(o)))return c;if(i&&i.imports){for(var L=0,G=i.imports;L<G.length;L++){var ce=G[L];if(!e.nodeIsSynthesized(ce)){var we=ws(t,ce,!0);if(!!we){var Ue=Hd(we,r);!Ue||(c=e.append(c,we))}}}if(e.length(c))return(s.extendedContainersByFile||(s.extendedContainersByFile=new e.Map)).set(o,c),c}if(s.extendedContainers)return s.extendedContainers;for(var Je=j.getSourceFiles(),ar=0,_r=Je;ar<_r.length;ar++){var Br=_r[ar];if(!!e.isExternalModule(Br)){var Zr=wn(Br),Ue=Hd(Zr,r);!Ue||(c=e.append(c,Zr))}}return s.extendedContainers=c||e.emptyArray}function rc(r,t,i){var o=Ts(r);if(o&&!(r.flags&262144)){var s=e.mapDefined(o.declarations,Ue),c=t&&jd(r,t),L=Zu(o,i);if(t&&o.flags&ac(i)&&kf(o,t,1920,!1))return e.append(e.concatenate(e.concatenate([o],s),c),L);var G=!(o.flags&ac(i))&&o.flags&788968&&po(o).flags&524288&&i===111551?qd(t,function(Je){return e.forEachEntry(Je,function(ar){if(ar.flags&ac(i)&&An(ar)===po(o))return ar})}):void 0,ce=G?Gt(Gt([G],s,!0),[o],!1):Gt(Gt([],s,!0),[o],!1);return ce=e.append(ce,L),ce=e.addRange(ce,c),ce}var we=e.mapDefined(r.declarations,function(Je){if(!e.isAmbientModule(Je)&&Je.parent&&Ec(Je.parent))return wn(Je.parent);if(e.isClassExpression(Je)&&e.isBinaryExpression(Je.parent)&&Je.parent.operatorToken.kind===63&&e.isAccessExpression(Je.parent.left)&&e.isEntityNameExpression(Je.parent.left.expression))return e.isModuleExportsAccessExpression(Je.parent.left)||e.isExportsIdentifier(Je.parent.left.expression)?wn(e.getSourceFileOfNode(Je)):(Ss(Je.parent.left.expression),Zn(Je.parent.left.expression).resolvedSymbol)});if(!e.length(we))return;return e.mapDefined(we,function(Je){return Hd(Je,r)?Je:void 0});function Ue(Je){return o&&zc(Je,o)}}function Zu(r,t){var i=!!e.length(r.declarations)&&e.first(r.declarations);if(t&111551&&i&&i.parent&&e.isVariableDeclaration(i.parent)&&(e.isObjectLiteralExpression(i)&&i===i.parent.initializer||e.isTypeLiteralNode(i)&&i===i.parent.type))return wn(i.parent)}function zc(r,t){var i=Xc(r),o=i&&i.exports&&i.exports.get("export=");return o&&Ll(o,t)?i:void 0}function Hd(r,t){if(r===Ts(t))return t;var i=r.exports&&r.exports.get("export=");if(i&&Ll(i,t))return r;var o=Js(r),s=o.get(t.escapedName);return s&&Ll(s,t)?s:e.forEachEntry(o,function(c){if(Ll(c,t))return c})}function Ll(r,t){if(Ga(wo(Ga(r)))===Ga(wo(Ga(t))))return r}function tc(r){return Ga(r&&(r.flags&1048576)!==0?r.exportSymbol:r)}function If(r){return!!(r.flags&111551||r.flags&2097152&&ms(r).flags&111551&&!Ln(r))}function $u(r){for(var t=r.members,i=0,o=t;i<o.length;i++){var s=o[i];if(s.kind===170&&e.nodeIsPresent(s.body))return s}}function Qs(r){var t=new Te(Yr,r);return ke++,t.id=ke,Se&&(e.tracing===null||e.tracing===void 0||e.tracing.recordType(t)),t}function Jd(r){return new Te(Yr,r)}function jo(r,t,i){i===void 0&&(i=0);var o=Qs(r);return o.intrinsicName=t,o.objectFlags=i,o}function Bl(r,t){var i=Qs(524288);return i.objectFlags=r,i.symbol=t,i.members=void 0,i.properties=void 0,i.callSignatures=void 0,i.constructSignatures=void 0,i.indexInfos=void 0,i}function Kd(){return ma(e.arrayFrom(q.keys(),Lc))}function nc(r){var t=Qs(262144);return r&&(t.symbol=r),t}function Nf(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)!==95&&r.charCodeAt(2)!==64&&r.charCodeAt(2)!==35}function Bu(r){var t;return r.forEach(function(i,o){dd(i,o)&&(t||(t=[])).push(i)}),t||e.emptyArray}function dd(r,t){return!Nf(t)&&If(r)}function zd(r){var t=Bu(r),i=ZE(r);return i?e.concatenate(t,[i]):t}function Al(r,t,i,o,s){var c=r;return c.members=t,c.properties=e.emptyArray,c.callSignatures=i,c.constructSignatures=o,c.indexInfos=s,t!==Le&&(c.properties=Bu(t)),c}function ts(r,t,i,o,s){return Al(Bl(16,r),t,i,o,s)}function du(r){if(r.constructSignatures.length===0)return r;if(r.objectTypeWithoutAbstractConstructSignatures)return r.objectTypeWithoutAbstractConstructSignatures;var t=e.filter(r.constructSignatures,function(o){return!(o.flags&4)});if(r.constructSignatures===t)return r;var i=ts(r.symbol,r.members,r.callSignatures,e.some(t)?t:e.emptyArray,r.indexInfos);return r.objectTypeWithoutAbstractConstructSignatures=i,i.objectTypeWithoutAbstractConstructSignatures=i,i}function qd(r,t){for(var i,o=function(L){if(L.locals&&!Oc(L)&&(i=t(L.locals,void 0,!0,L)))return{value:i};switch(L.kind){case 303:if(!e.isExternalOrCommonJsModule(L))break;case 260:var G=wn(L);if(i=t((G==null?void 0:G.exports)||Le,void 0,!0,L))return{value:i};break;case 256:case 225:case 257:var ce;if((wn(L).members||Le).forEach(function(we,Ue){we.flags&788968&&(ce||(ce=e.createSymbolTable())).set(Ue,we)}),ce&&(i=t(ce,void 0,!1,L)))return{value:i};break}},s=r;s;s=s.parent){var c=o(s);if(typeof c=="object")return c.value}return t(Fr,void 0,!0)}function ac(r){return r===111551?111551:1920}function kf(r,t,i,o,s){if(s===void 0&&(s=new e.Map),!(r&&!Xd(r)))return;var c=Ja(r),L=c.accessibleChainCache||(c.accessibleChainCache=new e.Map),G=qd(t,function(Tt,At,Vt,Nn){return Nn}),ce="".concat(o?0:1,"|").concat(G&&I(G),"|").concat(i);if(L.has(ce))return L.get(ce);var we=y(r),Ue=s.get(we);Ue||s.set(we,Ue=[]);var Je=qd(t,ar);return L.set(ce,Je),Je;function ar(Tt,At,Vt){if(!!e.pushIfUnique(Ue,Tt)){var Nn=Zr(Tt,At,Vt);return Ue.pop(),Nn}}function _r(Tt,At){return!Uu(Tt,t,At)||!!kf(Tt.parent,t,ac(At),o,s)}function Br(Tt,At,Vt){return(r===(At||Tt)||Ga(r)===Ga(At||Tt))&&!e.some(Tt.declarations,Ec)&&(Vt||_r(Ga(Tt),i))}function Zr(Tt,At,Vt){if(Br(Tt.get(r.escapedName),void 0,At))return[r];var Nn=e.forEachEntry(Tt,function(on){if(on.flags&2097152&&on.escapedName!=="export="&&on.escapedName!=="default"&&!(e.isUMDExportSymbol(on)&&t&&e.isExternalModule(e.getSourceFileOfNode(t)))&&(!o||e.some(on.declarations,e.isExternalModuleImportEqualsDeclaration))&&(Vt?!e.some(on.declarations,e.isNamespaceReexportDeclaration):!0)&&(At||!e.getDeclarationOfKind(on,274))){var ca=ms(on),la=Et(on,ca,At);if(la)return la}if(on.escapedName===r.escapedName&&on.exportSymbol&&Br(Ga(on.exportSymbol),void 0,At))return[r]});return Nn||(Tt===Fr?Et(pr,pr,At):void 0)}function Et(Tt,At,Vt){if(Br(Tt,At,Vt))return[Tt];var Nn=Js(At),on=Nn&&ar(Nn,!0);if(on&&_r(Tt,ac(i)))return[Tt].concat(on)}}function Uu(r,t,i){var o=!1;return qd(t,function(s){var c=Ga(s.get(r.escapedName));return c?c===r?!0:(c=c.flags&2097152&&!e.getDeclarationOfKind(c,274)?ms(c):c,c.flags&i?(o=!0,!0):!1):!1}),o}function Xd(r){if(r.declarations&&r.declarations.length){for(var t=0,i=r.declarations;t<i.length;t++){var o=i[t];switch(o.kind){case 166:case 168:case 171:case 172:continue;default:return!1}}return!0}return!1}function ef(r,t){var i=Vu(r,t,788968,!1,!0);return i.accessibility===0}function Of(r,t){var i=Vu(r,t,111551,!1,!0);return i.accessibility===0}function bc(r,t,i){var o=Vu(r,t,i,!1,!1);return o.accessibility===0}function qc(r,t,i,o,s,c){if(!!e.length(r)){for(var L,G=!1,ce=0,we=r;ce<we.length;ce++){var Ue=we[ce],Je=kf(Ue,t,o,!1);if(Je){L=Ue;var ar=Wu(Je[0],s);if(ar)return ar}if(c&&e.some(Ue.declarations,Ec)){if(s){G=!0;continue}return{accessibility:0}}var _r=rc(Ue,t,o),Br=qc(_r,t,i,i===Ue?ac(o):o,s,c);if(Br)return Br}if(G)return{accessibility:0};if(L)return{accessibility:1,errorSymbolName:Wa(i,t,o),errorModuleName:L!==i?Wa(L,t,1920):void 0}}}function rf(r,t,i,o){return Vu(r,t,i,o,!0)}function Vu(r,t,i,o,s){if(r&&t){var c=qc([r],t,r,i,o,s);if(c)return c;var L=e.forEach(r.declarations,Xc);if(L){var G=Xc(t);if(L!==G)return{accessibility:2,errorSymbolName:Wa(r,t,i),errorModuleName:Wa(L),errorNode:e.isInJSFile(t)?t:void 0}}return{accessibility:1,errorSymbolName:Wa(r,t,i)}}return{accessibility:0}}function Xc(r){var t=e.findAncestor(r,Yd);return t&&wn(t)}function Yd(r){return e.isAmbientModule(r)||r.kind===303&&e.isExternalOrCommonJsModule(r)}function Ec(r){return e.isModuleWithStringLiteralName(r)||r.kind===303&&e.isExternalOrCommonJsModule(r)}function Wu(r,t){var i;if(!e.every(e.filter(r.declarations,function(c){return c.kind!==79}),o))return;return{accessibility:0,aliasesToMakeVisible:i};function o(c){var L,G;if(!Qc(c)){var ce=mc(c);return ce&&!e.hasSyntacticModifier(ce,1)&&Qc(ce.parent)?s(c,ce):e.isVariableDeclaration(c)&&e.isVariableStatement(c.parent.parent)&&!e.hasSyntacticModifier(c.parent.parent,1)&&Qc(c.parent.parent.parent)?s(c,c.parent.parent):e.isLateVisibilityPaintedStatement(c)&&!e.hasSyntacticModifier(c,1)&&Qc(c.parent)?s(c,c):r.flags&2097152&&e.isBindingElement(c)&&e.isInJSFile(c)&&((L=c.parent)===null||L===void 0?void 0:L.parent)&&e.isVariableDeclaration(c.parent.parent)&&((G=c.parent.parent.parent)===null||G===void 0?void 0:G.parent)&&e.isVariableStatement(c.parent.parent.parent.parent)&&!e.hasSyntacticModifier(c.parent.parent.parent.parent,1)&&c.parent.parent.parent.parent.parent&&Qc(c.parent.parent.parent.parent.parent)?s(c,c.parent.parent.parent.parent):!1}return!0}function s(c,L){return t&&(Zn(c).isVisible=!0,i=e.appendIfUnique(i,L)),!0}}function t_(r,t){var i;r.parent.kind===180||e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent)||r.parent.kind===161?i=1160127:r.kind===160||r.kind===205||r.parent.kind===264?i=1920:i=788968;var o=e.getFirstIdentifier(r),s=Uo(t,o.escapedText,i,void 0,void 0,!1);return s&&s.flags&262144&&i&788968?{accessibility:0}:s&&Wu(s,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(o),errorNode:o}}function Wa(r,t,i,o,s){o===void 0&&(o=4);var c=70221824;o&2&&(c|=128),o&1&&(c|=512),o&8&&(c|=16384),o&16&&(c|=134217728);var L=o&4?Dr.symbolToExpression:Dr.symbolToEntityName;return s?G(s).getText():e.usingSingleLineStringWriter(G);function G(ce){var we=L(r,i,t,c),Ue=(t==null?void 0:t.kind)===303?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),Je=t&&e.getSourceFileOfNode(t);return Ue.writeNode(4,we,Je,ce),ce}}function pu(r,t,i,o,s){return i===void 0&&(i=0),s?c(s).getText():e.usingSingleLineStringWriter(c);function c(L){var G;i&262144?G=o===1?179:178:G=o===1?174:173;var ce=Dr.signatureToSignatureDeclaration(r,G,t,Mc(i)|70221824|512),we=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),Ue=t&&e.getSourceFileOfNode(t);return we.writeNode(4,ce,Ue,e.getTrailingSemicolonDeferringWriter(L)),L}}function gn(r,t,i,o){i===void 0&&(i=1064960),o===void 0&&(o=e.createTextWriter(""));var s=Xe.noErrorTruncation||i&1,c=Dr.typeToTypeNode(r,t,Mc(i)|70221824|(s?1:0),o);if(c===void 0)return e.Debug.fail("should always get typenode");var L={removeComments:r!==et},G=e.createPrinter(L),ce=t&&e.getSourceFileOfNode(t);G.writeNode(4,c,ce,o);var we=o.getText(),Ue=s?e.noTruncationMaximumTruncationLength*2:e.defaultMaximumTruncationLength*2;return Ue&&we&&we.length>=Ue?we.substr(0,Ue-3)+"...":we}function Rf(r,t){var i=Zd(r.symbol)?gn(r,r.symbol.valueDeclaration):gn(r),o=Zd(t.symbol)?gn(t,t.symbol.valueDeclaration):gn(t);return i===o&&(i=Qd(r),o=Qd(t)),[i,o]}function Qd(r){return gn(r,void 0,64)}function Zd(r){return r&&!!r.valueDeclaration&&e.isExpression(r.valueDeclaration)&&!nu(r.valueDeclaration)}function Mc(r){return r===void 0&&(r=0),r&814775659}function $d(r){return!!r.symbol&&!!(r.symbol.flags&32)&&(r===Hn(r.symbol)||!!(r.flags&524288)&&!!(e.getObjectFlags(r)&16777216))}function k_(){return{typeToTypeNode:function(jr,Sr,hn,nn){return r(Sr,hn,nn,function(Vn){return o(jr,Vn)})},indexInfoToIndexSignatureDeclaration:function(jr,Sr,hn,nn){return r(Sr,hn,nn,function(Vn){return we(jr,Vn,void 0)})},signatureToSignatureDeclaration:function(jr,Sr,hn,nn,Vn){return r(hn,nn,Vn,function(En){return Ue(jr,Sr,En)})},symbolToEntityName:function(jr,Sr,hn,nn,Vn){return r(hn,nn,Vn,function(En){return Aa(jr,En,Sr,!1)})},symbolToExpression:function(jr,Sr,hn,nn,Vn){return r(hn,nn,Vn,function(En){return Li(jr,En,Sr)})},symbolToTypeParameterDeclarations:function(jr,Sr,hn,nn){return r(Sr,hn,nn,function(Vn){return Tt(jr,Vn)})},symbolToParameterDeclaration:function(jr,Sr,hn,nn){return r(Sr,hn,nn,function(Vn){return _r(jr,Vn)})},typeParameterToDeclaration:function(jr,Sr,hn,nn){return r(Sr,hn,nn,function(Vn){return ar(jr,Vn)})},symbolTableToDeclarationStatements:function(jr,Sr,hn,nn,Vn){return r(Sr,hn,nn,function(En){return Fi(jr,En,Vn)})}};function r(jr,Sr,hn,nn){var Vn,En;e.Debug.assert(jr===void 0||(jr.flags&8)===0);var Fn={enclosingDeclaration:jr,flags:Sr||0,tracker:hn&&hn.trackSymbol?hn:{trackSymbol:function(){return!1},moduleResolverHost:Sr&134217728?{getCommonSourceDirectory:j.getCommonSourceDirectory?function(){return j.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return j.getCurrentDirectory()},getSymlinkCache:e.maybeBind(j,j.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(j,j.useCaseSensitiveFileNames),redirectTargetsMap:j.redirectTargetsMap,getProjectReferenceRedirect:function(it){return j.getProjectReferenceRedirect(it)},isSourceOfProjectReferenceRedirect:function(it){return j.isSourceOfProjectReferenceRedirect(it)},fileExists:function(it){return j.fileExists(it)},getFileIncludeReasons:function(){return j.getFileIncludeReasons()},readFile:j.readFile?function(it){return j.readFile(it)}:void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};Fn.tracker=t(Fn,Fn.tracker);var Xr=nn(Fn);return Fn.truncating&&Fn.flags&1&&((En=(Vn=Fn.tracker)===null||Vn===void 0?void 0:Vn.reportTruncationError)===null||En===void 0||En.call(Vn)),Fn.encounteredError?void 0:Xr}function t(jr,Sr){var hn=Sr.trackSymbol;return Rn(Rn({},Sr),{reportCyclicStructureError:nn(Sr.reportCyclicStructureError),reportInaccessibleThisError:nn(Sr.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:nn(Sr.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:nn(Sr.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:nn(Sr.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:nn(Sr.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:nn(Sr.reportNonSerializableProperty),trackSymbol:hn&&function(){for(var Vn=[],En=0;En<arguments.length;En++)Vn[En]=arguments[En];var Fn=hn.apply(void 0,Vn);return Fn&&(jr.reportedDiagnostic=!0),Fn}});function nn(Vn){return Vn&&function(){for(var En=[],Fn=0;Fn<arguments.length;Fn++)En[Fn]=arguments[Fn];return jr.reportedDiagnostic=!0,Vn.apply(void 0,En)}}}function i(jr){return jr.truncating?jr.truncating:jr.truncating=jr.approximateLength>(jr.flags&1?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function o(jr,Sr){O&&O.throwIfCancellationRequested&&O.throwIfCancellationRequested();var hn=Sr.flags&8388608;if(Sr.flags&=-8388609,!jr){if(!(Sr.flags&262144)){Sr.encounteredError=!0;return}return Sr.approximateLength+=3,e.factory.createKeywordTypeNode(130)}if(Sr.flags&536870912||(jr=Eo(jr)),jr.flags&1)return jr.aliasSymbol?e.factory.createTypeReferenceNode(on(jr.aliasSymbol),G(jr.aliasTypeArguments,Sr)):jr===et?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(130),3,"unresolved"):(Sr.approximateLength+=3,e.factory.createKeywordTypeNode(jr===Wr?138:130));if(jr.flags&2)return e.factory.createKeywordTypeNode(154);if(jr.flags&4)return Sr.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(jr.flags&8)return Sr.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(jr.flags&64)return Sr.approximateLength+=6,e.factory.createKeywordTypeNode(157);if(jr.flags&16&&!jr.aliasSymbol)return Sr.approximateLength+=7,e.factory.createKeywordTypeNode(133);if(jr.flags&1024&&!(jr.flags&1048576)){var nn=Ts(jr.symbol),Vn=ca(nn,Sr,788968);if(po(nn)===jr)return Vn;var En=e.symbolName(jr.symbol);return e.isIdentifierText(En,0)?Ad(Vn,e.factory.createTypeReferenceNode(En,void 0)):e.isImportTypeNode(Vn)?(Vn.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(Vn,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(En)))):e.isTypeReferenceNode(Vn)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(Vn.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(En))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(jr.flags&1056)return ca(jr.symbol,Sr,788968);if(jr.flags&128)return Sr.approximateLength+=jr.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(jr.value,!!(Sr.flags&268435456)),16777216));if(jr.flags&256){var Fn=jr.value;return Sr.approximateLength+=(""+Fn).length,e.factory.createLiteralTypeNode(Fn<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-Fn)):e.factory.createNumericLiteral(Fn))}if(jr.flags&2048)return Sr.approximateLength+=e.pseudoBigIntToString(jr.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(jr.value));if(jr.flags&512)return Sr.approximateLength+=jr.intrinsicName.length,e.factory.createLiteralTypeNode(jr.intrinsicName==="true"?e.factory.createTrue():e.factory.createFalse());if(jr.flags&8192){if(!(Sr.flags&1048576)){if(Of(jr.symbol,Sr.enclosingDeclaration))return Sr.approximateLength+=6,ca(jr.symbol,Sr,111551);Sr.tracker.reportInaccessibleUniqueSymbolError&&Sr.tracker.reportInaccessibleUniqueSymbolError()}return Sr.approximateLength+=13,e.factory.createTypeOperatorNode(153,e.factory.createKeywordTypeNode(150))}if(jr.flags&16384)return Sr.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(jr.flags&32768)return Sr.approximateLength+=9,e.factory.createKeywordTypeNode(152);if(jr.flags&65536)return Sr.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(jr.flags&131072)return Sr.approximateLength+=5,e.factory.createKeywordTypeNode(143);if(jr.flags&4096)return Sr.approximateLength+=6,e.factory.createKeywordTypeNode(150);if(jr.flags&67108864)return Sr.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(lh(jr))return Sr.flags&4194304&&(!Sr.encounteredError&&!(Sr.flags&32768)&&(Sr.encounteredError=!0),Sr.tracker.reportInaccessibleThisError&&Sr.tracker.reportInaccessibleThisError()),Sr.approximateLength+=4,e.factory.createThisTypeNode();if(!hn&&jr.aliasSymbol&&(Sr.flags&16384||ef(jr.aliasSymbol,Sr.enclosingDeclaration))){var Xr=G(jr.aliasTypeArguments,Sr);return Nf(jr.aliasSymbol.escapedName)&&!(jr.aliasSymbol.flags&32)?e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),Xr):ca(jr.aliasSymbol,Sr,788968,Xr)}var it=e.getObjectFlags(jr);if(it&4)return e.Debug.assert(!!(jr.flags&524288)),jr.node?bs(jr,Ls):Ls(jr);if(jr.flags&262144||it&3){if(jr.flags&262144&&e.contains(Sr.inferTypeParameters,jr))return Sr.approximateLength+=e.symbolName(jr.symbol).length+6,e.factory.createInferTypeNode(Je(jr,Sr,void 0));if(Sr.flags&4&&jr.flags&262144&&!ef(jr.symbol,Sr.enclosingDeclaration)){var Mt=di(jr,Sr);return Sr.approximateLength+=e.idText(Mt).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(Mt)),void 0)}return jr.symbol?ca(jr.symbol,Sr,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(jr.flags&1048576&&jr.origin&&(jr=jr.origin),jr.flags&3145728){var Bt=jr.flags&1048576?Lp(jr.types):jr.types;if(e.length(Bt)===1)return o(Bt[0],Sr);var Yt=G(Bt,Sr,!0);if(Yt&&Yt.length>0)return jr.flags&1048576?e.factory.createUnionTypeNode(Yt):e.factory.createIntersectionTypeNode(Yt);!Sr.encounteredError&&!(Sr.flags&262144)&&(Sr.encounteredError=!0);return}if(it&48)return e.Debug.assert(!!(jr.flags&524288)),Xs(jr);if(jr.flags&4194304){var mn=jr.type;Sr.approximateLength+=6;var ya=o(mn,Sr);return e.factory.createTypeOperatorNode(140,ya)}if(jr.flags&134217728){var _a=jr.texts,qa=jr.types,Vi=e.factory.createTemplateHead(_a[0]),Qa=e.factory.createNodeArray(e.map(qa,function(Ma,Ri){return e.factory.createTemplateLiteralTypeSpan(o(Ma,Sr),(Ri<qa.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(_a[Ri+1]))}));return Sr.approximateLength+=2,e.factory.createTemplateLiteralType(Vi,Qa)}if(jr.flags&268435456){var ho=o(jr.type,Sr);return ca(jr.symbol,Sr,788968,[ho])}if(jr.flags&8388608){var Vo=o(jr.objectType,Sr),ya=o(jr.indexType,Sr);return Sr.approximateLength+=2,e.factory.createIndexedAccessTypeNode(Vo,ya)}if(jr.flags&16777216)return bs(jr,function(Ma){return ao(Ma)});if(jr.flags&33554432)return o(jr.baseType,Sr);return e.Debug.fail("Should be unreachable.");function ao(Ma){var Ri=o(Ma.checkType,Sr),qo=Sr.inferTypeParameters;Sr.inferTypeParameters=Ma.root.inferTypeParameters;var uo=o(Ma.extendsType,Sr);Sr.inferTypeParameters=qo;var Bs=Ds(up(Ma)),Kr=Ds(fp(Ma));return Sr.approximateLength+=15,e.factory.createConditionalTypeNode(Ri,uo,Bs,Kr)}function Ds(Ma){var Ri,qo,uo;return Ma.flags&1048576?!((Ri=Sr.visitedTypes)===null||Ri===void 0)&&Ri.has(Bc(Ma))?(Sr.flags&131072||(Sr.encounteredError=!0,(uo=(qo=Sr.tracker)===null||qo===void 0?void 0:qo.reportCyclicStructureError)===null||uo===void 0||uo.call(qo)),s(Sr)):bs(Ma,function(Bs){return o(Bs,Sr)}):o(Ma,Sr)}function ss(Ma){e.Debug.assert(!!(Ma.flags&524288));var Ri=Ma.declaration.readonlyToken?e.factory.createToken(Ma.declaration.readonlyToken.kind):void 0,qo=Ma.declaration.questionToken?e.factory.createToken(Ma.declaration.questionToken.kind):void 0,uo;Hm(Ma)?uo=e.factory.createTypeOperatorNode(140,o(Jm(Ma),Sr)):uo=o(Tc(Ma),Sr);var Bs=Je(eu(Ma),Sr,uo),Kr=Ma.declaration.nameType?o(of(Ma),Sr):void 0,st=o(gm(yu(Ma),!!(ru(Ma)&4)),Sr),kt=e.factory.createMappedTypeNode(Ri,Bs,Kr,qo,st,void 0);return Sr.approximateLength+=10,e.setEmitFlags(kt,1)}function Xs(Ma){var Ri,qo=Ma.id,uo=Ma.symbol;if(uo){var Bs=$d(Ma)?788968:111551;if(ou(uo.valueDeclaration))return ca(uo,Sr,Bs);if(uo.flags&32&&!si(uo)&&!(uo.valueDeclaration&&uo.valueDeclaration.kind===225&&Sr.flags&2048)||uo.flags&896||st())return ca(uo,Sr,Bs);if(!((Ri=Sr.visitedTypes)===null||Ri===void 0)&&Ri.has(qo)){var Kr=Ap(Ma);return Kr?ca(Kr,Sr,788968):s(Sr)}else return bs(Ma,Yf)}else return Yf(Ma);function st(){var kt,$t=!!(uo.flags&8192)&&e.some(uo.declarations,function(Gn){return e.isStatic(Gn)}),ea=!!(uo.flags&16)&&(uo.parent||e.forEach(uo.declarations,function(Gn){return Gn.parent.kind===303||Gn.parent.kind===261}));if($t||ea)return(!!(Sr.flags&4096)||((kt=Sr.visitedTypes)===null||kt===void 0?void 0:kt.has(qo)))&&(!(Sr.flags&8)||Of(uo,Sr.enclosingDeclaration))}}function bs(Ma,Ri){var qo,uo,Bs=Ma.id,Kr=e.getObjectFlags(Ma)&16&&Ma.symbol&&Ma.symbol.flags&32,st=e.getObjectFlags(Ma)&4&&Ma.node?"N"+I(Ma.node):Ma.flags&16777216?"N"+I(Ma.root.node):Ma.symbol?(Kr?"+":"")+y(Ma.symbol):void 0;Sr.visitedTypes||(Sr.visitedTypes=new e.Set),st&&!Sr.symbolDepth&&(Sr.symbolDepth=new e.Map);var kt=Sr.enclosingDeclaration&&Zn(Sr.enclosingDeclaration),$t="".concat(Bc(Ma),"|").concat(Sr.flags);kt&&(kt.serializedTypes||(kt.serializedTypes=new e.Map));var ea=(qo=kt==null?void 0:kt.serializedTypes)===null||qo===void 0?void 0:qo.get($t);if(ea)return ea.truncating&&(Sr.truncating=!0),Sr.approximateLength+=ea.addedLength,vi(ea);var Gn;if(st){if(Gn=Sr.symbolDepth.get(st)||0,Gn>10)return s(Sr);Sr.symbolDepth.set(st,Gn+1)}Sr.visitedTypes.add(Bs);var Tn=Sr.approximateLength,zt=Ri(Ma),ni=Sr.approximateLength-Tn;return!Sr.reportedDiagnostic&&!Sr.encounteredError&&(Sr.truncating&&(zt.truncating=!0),zt.addedLength=ni,(uo=kt==null?void 0:kt.serializedTypes)===null||uo===void 0||uo.set($t,zt)),Sr.visitedTypes.delete(Bs),st&&Sr.symbolDepth.set(st,Gn),zt;function vi(ai){return!e.nodeIsSynthesized(ai)&&e.getParseTreeNode(ai)===ai?ai:e.setTextRange(e.factory.cloneNode(e.visitEachChild(ai,vi,e.nullTransformationContext)),ai)}}function Yf(Ma){if(El(Ma)||Ma.containsError)return ss(Ma);var Ri=Sc(Ma);if(!Ri.properties.length&&!Ri.indexInfos.length){if(!Ri.callSignatures.length&&!Ri.constructSignatures.length)return Sr.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(Ri.callSignatures.length===1&&!Ri.constructSignatures.length){var qo=Ri.callSignatures[0],uo=Ue(qo,178,Sr);return uo}if(Ri.constructSignatures.length===1&&!Ri.callSignatures.length){var qo=Ri.constructSignatures[0],uo=Ue(qo,179,Sr);return uo}}var Bs=e.filter(Ri.constructSignatures,function(Gn){return!!(Gn.flags&4)});if(e.some(Bs)){var Kr=e.map(Bs,Zm),st=Ri.callSignatures.length+(Ri.constructSignatures.length-Bs.length)+Ri.indexInfos.length+(Sr.flags&2048?e.countWhere(Ri.properties,function(Gn){return!(Gn.flags&4194304)}):e.length(Ri.properties));return st&&Kr.push(du(Ri)),o(To(Kr),Sr)}var kt=Sr.flags;Sr.flags|=4194304;var $t=xv(Ri);Sr.flags=kt;var ea=e.factory.createTypeLiteralNode($t);return Sr.approximateLength+=2,e.setEmitFlags(ea,Sr.flags&1024?0:1),ea}function Ls(Ma){var Ri=vo(Ma);if(Ma.target===se||Ma.target===Be){if(Sr.flags&2){var qo=o(Ri[0],Sr);return e.factory.createTypeReferenceNode(Ma.target===se?"Array":"ReadonlyArray",[qo])}var uo=o(Ri[0],Sr),Bs=e.factory.createArrayTypeNode(uo);return Ma.target===se?Bs:e.factory.createTypeOperatorNode(144,Bs)}else if(Ma.target.objectFlags&8){if(Ri=e.sameMap(Ri,function(eo,Ko){return gm(eo,!!(Ma.target.elementFlags[Ko]&2))}),Ri.length>0){var Kr=op(Ma),st=G(Ri.slice(0,Kr),Sr);if(st){if(Ma.target.labeledElementDeclarations)for(var kt=0;kt<st.length;kt++){var $t=Ma.target.elementFlags[kt];st[kt]=e.factory.createNamedTupleMember($t&12?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(Cb(Ma.target.labeledElementDeclarations[kt]))),$t&2?e.factory.createToken(57):void 0,$t&4?e.factory.createArrayTypeNode(st[kt]):st[kt])}else for(var kt=0;kt<Math.min(Kr,st.length);kt++){var $t=Ma.target.elementFlags[kt];st[kt]=$t&12?e.factory.createRestTypeNode($t&4?e.factory.createArrayTypeNode(st[kt]):st[kt]):$t&2?e.factory.createOptionalTypeNode(st[kt]):st[kt]}var ea=e.setEmitFlags(e.factory.createTupleTypeNode(st),1);return Ma.target.readonly?e.factory.createTypeOperatorNode(144,ea):ea}}if(Sr.encounteredError||Sr.flags&524288){var ea=e.setEmitFlags(e.factory.createTupleTypeNode([]),1);return Ma.target.readonly?e.factory.createTypeOperatorNode(144,ea):ea}Sr.encounteredError=!0;return}else{if(Sr.flags&2048&&Ma.symbol.valueDeclaration&&e.isClassLike(Ma.symbol.valueDeclaration)&&!Of(Ma.symbol,Sr.enclosingDeclaration))return Xs(Ma);var Gn=Ma.target.outerTypeParameters,kt=0,Tn=void 0;if(Gn)for(var zt=Gn.length;kt<zt;){var ni=kt,vi=bD(Gn[kt]);do kt++;while(kt<zt&&bD(Gn[kt])===vi);if(!e.rangeEquals(Gn,Ri,ni,kt)){var ai=G(Ri.slice(ni,kt),Sr),so=Sr.flags;Sr.flags|=16;var Ui=ca(vi,Sr,788968,ai);Sr.flags=so,Tn=Tn?Ad(Tn,Ui):Ui}}var ps=void 0;if(Ri.length>0){var ls=(Ma.target.typeParameters||e.emptyArray).length;ps=G(Ri.slice(kt,ls),Sr)}var $t=Sr.flags;Sr.flags|=16;var Xo=ca(Ma.symbol,Sr,788968,ps);return Sr.flags=$t,Tn?Ad(Tn,Xo):Xo}}function Ad(Ma,Ri){if(e.isImportTypeNode(Ma)){var qo=Ma.typeArguments,uo=Ma.qualifier;uo&&(e.isIdentifier(uo)?uo=e.factory.updateIdentifier(uo,qo):uo=e.factory.updateQualifiedName(uo,uo.left,e.factory.updateIdentifier(uo.right,qo))),qo=Ri.typeArguments;for(var Bs=Cv(Ri),Kr=0,st=Bs;Kr<st.length;Kr++){var kt=st[Kr];uo=uo?e.factory.createQualifiedName(uo,kt):kt}return e.factory.updateImportTypeNode(Ma,Ma.argument,uo,qo,Ma.isTypeOf)}else{var qo=Ma.typeArguments,$t=Ma.typeName;e.isIdentifier($t)?$t=e.factory.updateIdentifier($t,qo):$t=e.factory.updateQualifiedName($t,$t.left,e.factory.updateIdentifier($t.right,qo)),qo=Ri.typeArguments;for(var Bs=Cv(Ri),ea=0,Gn=Bs;ea<Gn.length;ea++){var kt=Gn[ea];$t=e.factory.createQualifiedName($t,kt)}return e.factory.updateTypeReferenceNode(Ma,$t,qo)}}function Cv(Ma){for(var Ri=Ma.typeName,qo=[];!e.isIdentifier(Ri);)qo.unshift(Ri.right),Ri=Ri.left;return qo.unshift(Ri),qo}function xv(Ma){if(i(Sr))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var Ri=[],qo=0,uo=Ma.callSignatures;qo<uo.length;qo++){var Bs=uo[qo];Ri.push(Ue(Bs,173,Sr))}for(var Kr=0,st=Ma.constructSignatures;Kr<st.length;Kr++){var Bs=st[Kr];Bs.flags&4||Ri.push(Ue(Bs,174,Sr))}for(var kt=0,$t=Ma.indexInfos;kt<$t.length;kt++){var ea=$t[kt];Ri.push(we(ea,Sr,Ma.objectFlags&1024?s(Sr):void 0))}var Gn=Ma.properties;if(!Gn)return Ri;for(var Tn=0,zt=0,ni=Gn;zt<ni.length;zt++){var vi=ni[zt];if(Tn++,Sr.flags&2048){if(vi.flags&4194304)continue;e.getDeclarationModifierFlagsFromSymbol(vi)&24&&Sr.tracker.reportPrivateInBaseOfClassExpression&&Sr.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(vi.escapedName))}if(i(Sr)&&Tn+2<Gn.length-1){Ri.push(e.factory.createPropertySignature(void 0,"... ".concat(Gn.length-Tn," more ..."),void 0,void 0)),L(Gn[Gn.length-1],Sr,Ri);break}L(vi,Sr,Ri)}return Ri.length?Ri:void 0}}function s(jr){return jr.approximateLength+=3,jr.flags&1?e.factory.createKeywordTypeNode(130):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function c(jr,Sr){var hn;return!!(e.getCheckFlags(jr)&8192)&&(e.contains(Sr.reverseMappedStack,jr)||((hn=Sr.reverseMappedStack)===null||hn===void 0?void 0:hn[0])&&!(e.getObjectFlags(e.last(Sr.reverseMappedStack).propertyType)&16))}function L(jr,Sr,hn){var nn,Vn,En=!!(e.getCheckFlags(jr)&8192),Fn=c(jr,Sr)?Ze:Gf(jr),Xr=Sr.enclosingDeclaration;if(Sr.enclosingDeclaration=void 0,Sr.tracker.trackSymbol&&e.getCheckFlags(jr)&4096&&Ip(jr.escapedName))if(jr.declarations){var it=e.first(jr.declarations);if(R_(it))if(e.isBinaryExpression(it)){var Mt=e.getNameOfDeclaration(it);Mt&&e.isElementAccessExpression(Mt)&&e.isPropertyAccessEntityNameExpression(Mt.argumentExpression)&&Br(Mt.argumentExpression,Xr,Sr)}else Br(it.name.expression,Xr,Sr)}else!((nn=Sr.tracker)===null||nn===void 0)&&nn.reportNonSerializableProperty&&Sr.tracker.reportNonSerializableProperty(Wa(jr));Sr.enclosingDeclaration=jr.valueDeclaration||((Vn=jr.declarations)===null||Vn===void 0?void 0:Vn[0])||Xr;var Bt=xo(jr,Sr);Sr.enclosingDeclaration=Xr,Sr.approximateLength+=e.symbolName(jr).length+1;var Yt=jr.flags&16777216?e.factory.createToken(57):void 0;if(jr.flags&8208&&!sf(Fn).length&&!Iu(jr))for(var mn=Ni(rl(Fn,function(Ds){return!(Ds.flags&32768)}),0),ya=0,_a=mn;ya<_a.length;ya++){var qa=_a[ya],Vi=Ue(qa,167,Sr,{name:Bt,questionToken:Yt});hn.push(ao(Vi))}else{var Qa=void 0;c(jr,Sr)?Qa=s(Sr):(En&&(Sr.reverseMappedStack||(Sr.reverseMappedStack=[]),Sr.reverseMappedStack.push(jr)),Qa=Fn?Ba(Sr,Fn,jr,Xr):e.factory.createKeywordTypeNode(130),En&&Sr.reverseMappedStack.pop());var ho=Iu(jr)?[e.factory.createToken(144)]:void 0;ho&&(Sr.approximateLength+=9);var Vo=e.factory.createPropertySignature(ho,Bt,Yt,Qa);hn.push(ao(Vo))}function ao(Ds){var ss;if(e.some(jr.declarations,function(Yf){return Yf.kind===345})){var Xs=(ss=jr.declarations)===null||ss===void 0?void 0:ss.find(function(Yf){return Yf.kind===345}),bs=e.getTextOfJSDocComment(Xs.comment);bs&&e.setSyntheticLeadingComments(Ds,[{kind:3,text:`*
|
|
* `+bs.replace(/\n/g,`
|
|
* `)+`
|
|
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else jr.valueDeclaration&&e.setCommentRange(Ds,jr.valueDeclaration);return Ds}}function G(jr,Sr,hn){if(e.some(jr)){if(i(Sr))if(hn){if(jr.length>2)return[o(jr[0],Sr),e.factory.createTypeReferenceNode("... ".concat(jr.length-2," more ..."),void 0),o(jr[jr.length-1],Sr)]}else return[e.factory.createTypeReferenceNode("...",void 0)];for(var nn=!(Sr.flags&64),Vn=nn?e.createUnderscoreEscapedMultiMap():void 0,En=[],Fn=0,Xr=0,it=jr;Xr<it.length;Xr++){var Mt=it[Xr];if(Fn++,i(Sr)&&Fn+2<jr.length-1){En.push(e.factory.createTypeReferenceNode("... ".concat(jr.length-Fn," more ..."),void 0));var Bt=o(jr[jr.length-1],Sr);Bt&&En.push(Bt);break}Sr.approximateLength+=2;var Yt=o(Mt,Sr);Yt&&(En.push(Yt),Vn&&e.isIdentifierTypeReference(Yt)&&Vn.add(Yt.typeName.escapedText,[Mt,En.length-1]))}if(Vn){var mn=Sr.flags;Sr.flags|=64,Vn.forEach(function(ya){if(!e.arrayIsHomogeneous(ya,function(Vo,ao){var Ds=Vo[0],ss=ao[0];return ce(Ds,ss)}))for(var _a=0,qa=ya;_a<qa.length;_a++){var Vi=qa[_a],Qa=Vi[0],ho=Vi[1];En[ho]=o(Qa,Sr)}}),Sr.flags=mn}return En}}function ce(jr,Sr){return jr===Sr||!!jr.symbol&&jr.symbol===Sr.symbol||!!jr.aliasSymbol&&jr.aliasSymbol===Sr.aliasSymbol}function we(jr,Sr,hn){var nn=e.getNameFromIndexInfo(jr)||"x",Vn=o(jr.keyType,Sr),En=e.factory.createParameterDeclaration(void 0,void 0,void 0,nn,void 0,Vn,void 0);return hn||(hn=o(jr.type||Ze,Sr)),!jr.type&&!(Sr.flags&2097152)&&(Sr.encounteredError=!0),Sr.approximateLength+=nn.length+4,e.factory.createIndexSignature(void 0,jr.isReadonly?[e.factory.createToken(144)]:void 0,[En],hn)}function Ue(jr,Sr,hn,nn){var Vn,En,Fn,Xr,it=hn.flags&256;it&&(hn.flags&=-257),hn.approximateLength+=3;var Mt,Bt;hn.flags&32&&jr.target&&jr.mapper&&jr.target.typeParameters?Bt=jr.target.typeParameters.map(function(Xs){return o(oi(Xs,jr.mapper),hn)}):Mt=jr.typeParameters&&jr.typeParameters.map(function(Xs){return ar(Xs,hn)});var Yt=dy(jr,!0)[0],mn=(e.some(Yt,function(Xs){return Xs!==Yt[Yt.length-1]&&!!(e.getCheckFlags(Xs)&32768)})?jr.parameters:Yt).map(function(Xs){return _r(Xs,hn,Sr===170,nn==null?void 0:nn.privateSymbolVisitor,nn==null?void 0:nn.bundledImports)});if(jr.thisParameter){var ya=_r(jr.thisParameter,hn);mn.unshift(ya)}var _a,qa=Dc(jr);if(qa){var Vi=qa.kind===2||qa.kind===3?e.factory.createToken(128):void 0,Qa=qa.kind===1||qa.kind===3?e.setEmitFlags(e.factory.createIdentifier(qa.parameterName),16777216):e.factory.createThisTypeNode(),ho=qa.type&&o(qa.type,hn);_a=e.factory.createTypePredicateNode(Vi,Qa,ho)}else{var Vo=_o(jr);Vo&&!(it&&Na(Vo))?_a=Ti(hn,Vo,jr,nn==null?void 0:nn.privateSymbolVisitor,nn==null?void 0:nn.bundledImports):it||(_a=e.factory.createKeywordTypeNode(130))}var ao=nn==null?void 0:nn.modifiers;if(Sr===179&&jr.flags&4){var Ds=e.modifiersToFlags(ao);ao=e.factory.createModifiersFromModifierFlags(Ds|128)}var ss=Sr===173?e.factory.createCallSignature(Mt,mn,_a):Sr===174?e.factory.createConstructSignature(Mt,mn,_a):Sr===167?e.factory.createMethodSignature(ao,(Vn=nn==null?void 0:nn.name)!==null&&Vn!==void 0?Vn:e.factory.createIdentifier(""),nn==null?void 0:nn.questionToken,Mt,mn,_a):Sr===168?e.factory.createMethodDeclaration(void 0,ao,void 0,(En=nn==null?void 0:nn.name)!==null&&En!==void 0?En:e.factory.createIdentifier(""),void 0,Mt,mn,_a,void 0):Sr===170?e.factory.createConstructorDeclaration(void 0,ao,mn,void 0):Sr===171?e.factory.createGetAccessorDeclaration(void 0,ao,(Fn=nn==null?void 0:nn.name)!==null&&Fn!==void 0?Fn:e.factory.createIdentifier(""),mn,_a,void 0):Sr===172?e.factory.createSetAccessorDeclaration(void 0,ao,(Xr=nn==null?void 0:nn.name)!==null&&Xr!==void 0?Xr:e.factory.createIdentifier(""),mn,void 0):Sr===175?e.factory.createIndexSignature(void 0,ao,mn,_a):Sr===315?e.factory.createJSDocFunctionType(mn,_a):Sr===178?e.factory.createFunctionTypeNode(Mt,mn,_a!=null?_a:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):Sr===179?e.factory.createConstructorTypeNode(ao,Mt,mn,_a!=null?_a:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):Sr===255?e.factory.createFunctionDeclaration(void 0,ao,void 0,nn!=null&&nn.name?e.cast(nn.name,e.isIdentifier):e.factory.createIdentifier(""),Mt,mn,_a,void 0):Sr===212?e.factory.createFunctionExpression(ao,void 0,nn!=null&&nn.name?e.cast(nn.name,e.isIdentifier):e.factory.createIdentifier(""),Mt,mn,_a,e.factory.createBlock([])):Sr===213?e.factory.createArrowFunction(ao,Mt,mn,_a,void 0,e.factory.createBlock([])):e.Debug.assertNever(Sr);return Bt&&(ss.typeArguments=e.factory.createNodeArray(Bt)),ss}function Je(jr,Sr,hn){var nn=Sr.flags;Sr.flags&=-513;var Vn=di(jr,Sr),En=Bn(jr),Fn=En&&o(En,Sr);return Sr.flags=nn,e.factory.createTypeParameterDeclaration(Vn,hn,Fn)}function ar(jr,Sr,hn){hn===void 0&&(hn=Nl(jr));var nn=hn&&o(hn,Sr);return Je(jr,Sr,nn)}function _r(jr,Sr,hn,nn,Vn){var En=e.getDeclarationOfKind(jr,163);!En&&!e.isTransientSymbol(jr)&&(En=e.getDeclarationOfKind(jr,338));var Fn=An(jr);En&&vI(En)&&(Fn=Jf(Fn)),Sr.flags&1073741824&&En&&!e.isJSDocParameterTag(En)&&R8(En)&&(Fn=Fs(Fn,524288));var Xr=Ba(Sr,Fn,jr,Sr.enclosingDeclaration,nn,Vn),it=!(Sr.flags&8192)&&hn&&En&&En.modifiers?En.modifiers.map(e.factory.cloneNode):void 0,Mt=En&&e.isRestParameter(En)||e.getCheckFlags(jr)&32768,Bt=Mt?e.factory.createToken(25):void 0,Yt=En&&En.name?En.name.kind===79?e.setEmitFlags(e.factory.cloneNode(En.name),16777216):En.name.kind===160?e.setEmitFlags(e.factory.cloneNode(En.name.right),16777216):qa(En.name):e.symbolName(jr),mn=En&&w_(En)||e.getCheckFlags(jr)&16384,ya=mn?e.factory.createToken(57):void 0,_a=e.factory.createParameterDeclaration(void 0,it,Bt,Yt,ya,Xr,void 0);return Sr.approximateLength+=e.symbolName(jr).length+3,_a;function qa(Vi){return Qa(Vi);function Qa(ho){Sr.tracker.trackSymbol&&e.isComputedPropertyName(ho)&&Ug(ho)&&Br(ho.expression,Sr.enclosingDeclaration,Sr);var Vo=e.visitEachChild(ho,Qa,e.nullTransformationContext,void 0,Qa);return e.isBindingElement(Vo)&&(Vo=e.factory.updateBindingElement(Vo,Vo.dotDotDotToken,Vo.propertyName,Vo.name,void 0)),e.nodeIsSynthesized(Vo)||(Vo=e.factory.cloneNode(Vo)),e.setEmitFlags(Vo,16777217)}}}function Br(jr,Sr,hn){if(!!hn.tracker.trackSymbol){var nn=e.getFirstIdentifier(jr),Vn=Uo(nn,nn.escapedText,1160127,void 0,void 0,!0);Vn&&hn.tracker.trackSymbol(Vn,Sr,111551)}}function Zr(jr,Sr,hn,nn){return Sr.tracker.trackSymbol(jr,Sr.enclosingDeclaration,hn),Et(jr,Sr,hn,nn)}function Et(jr,Sr,hn,nn){var Vn,En=jr.flags&262144;return!En&&(Sr.enclosingDeclaration||Sr.flags&64)&&!(Sr.flags&134217728)?(Vn=e.Debug.checkDefined(Fn(jr,hn,!0)),e.Debug.assert(Vn&&Vn.length>0)):Vn=[jr],Vn;function Fn(Xr,it,Mt){var Bt=kf(Xr,Sr.enclosingDeclaration,it,!!(Sr.flags&128)),Yt;if(!Bt||Uu(Bt[0],Sr.enclosingDeclaration,Bt.length===1?it:ac(it))){var mn=rc(Bt?Bt[0]:Xr,Sr.enclosingDeclaration,it);if(e.length(mn)){Yt=mn.map(function(ao){return e.some(ao.declarations,Ec)?Nn(ao,Sr):void 0});var ya=mn.map(function(ao,Ds){return Ds});ya.sort(Vo);for(var _a=ya.map(function(ao){return mn[ao]}),qa=0,Vi=_a;qa<Vi.length;qa++){var Qa=Vi[qa],ho=Fn(Qa,ac(it),!1);if(ho){if(Qa.exports&&Qa.exports.get("export=")&&Ll(Qa.exports.get("export="),Xr)){Bt=ho;break}Bt=ho.concat(Bt||[Hd(Qa,Xr)||Xr]);break}}}}if(Bt)return Bt;if(Mt||!(Xr.flags&6144))return!Mt&&!nn&&!!e.forEach(Xr.declarations,Ec)?void 0:[Xr];function Vo(ao,Ds){var ss=Yt[ao],Xs=Yt[Ds];if(ss&&Xs){var bs=e.pathIsRelative(Xs);return e.pathIsRelative(ss)===bs?e.moduleSpecifiers.countPathComponents(ss)-e.moduleSpecifiers.countPathComponents(Xs):bs?-1:1}return 0}}}function Tt(jr,Sr){var hn,nn=Am(jr);return nn.flags&524384&&(hn=e.factory.createNodeArray(e.map(mu(jr),function(Vn){return ar(Vn,Sr)}))),hn}function At(jr,Sr,hn){var nn;e.Debug.assert(jr&&0<=Sr&&Sr<jr.length);var Vn=jr[Sr],En=y(Vn);if(!(!((nn=hn.typeParameterSymbolList)===null||nn===void 0)&&nn.has(En))){(hn.typeParameterSymbolList||(hn.typeParameterSymbolList=new e.Set)).add(En);var Fn;if(hn.flags&512&&Sr<jr.length-1){var Xr=Vn,it=jr[Sr+1];if(e.getCheckFlags(it)&1){var Mt=Gv(Xr.flags&2097152?ms(Xr):Xr);Fn=G(e.map(Mt,function(Bt){return dp(Bt,it.mapper)}),hn)}else Fn=Tt(Vn,hn)}return Fn}}function Vt(jr){return e.isIndexedAccessTypeNode(jr.objectType)?Vt(jr.objectType):jr}function Nn(jr,Sr){var hn,nn=e.getDeclarationOfKind(jr,303);if(!nn){var Vn=e.firstDefined(jr.declarations,function(qa){return zc(qa,jr)});Vn&&(nn=e.getDeclarationOfKind(Vn,303))}if(nn&&nn.moduleName!==void 0)return nn.moduleName;if(!nn){if(Sr.tracker.trackReferencedAmbientModule){var En=e.filter(jr.declarations,e.isAmbientModule);if(e.length(En))for(var Fn=0,Xr=En;Fn<Xr.length;Fn++){var it=Xr[Fn];Sr.tracker.trackReferencedAmbientModule(it,jr)}}if(n.test(jr.escapedName))return jr.escapedName.substring(1,jr.escapedName.length-1)}if(!Sr.enclosingDeclaration||!Sr.tracker.moduleResolverHost)return n.test(jr.escapedName)?jr.escapedName.substring(1,jr.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(jr)).fileName;var Mt=e.getSourceFileOfNode(e.getOriginalNode(Sr.enclosingDeclaration)),Bt=Ja(jr),Yt=Bt.specifierCache&&Bt.specifierCache.get(Mt.path);if(!Yt){var mn=!!e.outFile(Xe),ya=Sr.tracker.moduleResolverHost,_a=mn?Rn(Rn({},Xe),{baseUrl:ya.getCommonSourceDirectory()}):Xe;Yt=e.first(e.moduleSpecifiers.getModuleSpecifiers(jr,Yr,_a,Mt,ya,{importModuleSpecifierPreference:mn?"non-relative":"project-relative",importModuleSpecifierEnding:mn?"minimal":void 0})),(hn=Bt.specifierCache)!==null&&hn!==void 0||(Bt.specifierCache=new e.Map),Bt.specifierCache.set(Mt.path,Yt)}return Yt}function on(jr){var Sr=e.factory.createIdentifier(e.unescapeLeadingUnderscores(jr.escapedName));return jr.parent?e.factory.createQualifiedName(on(jr.parent),Sr):Sr}function ca(jr,Sr,hn,nn){var Vn=Zr(jr,Sr,hn,!(Sr.flags&16384)),En=hn===111551;if(e.some(Vn[0].declarations,Ec)){var Fn=Vn.length>1?qa(Vn,Vn.length-1,1):void 0,Xr=nn||At(Vn,0,Sr),it=Nn(Vn[0],Sr);!(Sr.flags&67108864)&&e.getEmitModuleResolutionKind(Xe)!==e.ModuleResolutionKind.Classic&&it.indexOf("/node_modules/")>=0&&(Sr.encounteredError=!0,Sr.tracker.reportLikelyUnsafeImportRequiredError&&Sr.tracker.reportLikelyUnsafeImportRequiredError(it));var Mt=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(it));if(Sr.tracker.trackExternalModuleSymbolOfImportTypeNode&&Sr.tracker.trackExternalModuleSymbolOfImportTypeNode(Vn[0]),Sr.approximateLength+=it.length+10,!Fn||e.isEntityName(Fn)){if(Fn){var Bt=e.isIdentifier(Fn)?Fn:Fn.right;Bt.typeArguments=void 0}return e.factory.createImportTypeNode(Mt,Fn,Xr,En)}else{var Yt=Vt(Fn),mn=Yt.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(Mt,mn,Xr,En),Yt.indexType)}}var ya=qa(Vn,Vn.length-1,0);if(e.isIndexedAccessTypeNode(ya))return ya;if(En)return e.factory.createTypeQueryNode(ya);var Bt=e.isIdentifier(ya)?ya:ya.right,_a=Bt.typeArguments;return Bt.typeArguments=void 0,e.factory.createTypeReferenceNode(ya,_a);function qa(Vi,Qa,ho){var Vo=Qa===Vi.length-1?nn:At(Vi,Qa,Sr),ao=Vi[Qa],Ds=Vi[Qa-1],ss;if(Qa===0)Sr.flags|=16777216,ss=Fc(ao,Sr),Sr.approximateLength+=(ss?ss.length:0)+1,Sr.flags^=16777216;else if(Ds&&Js(Ds)){var Xs=Js(Ds);e.forEachEntry(Xs,function(Ls,Ad){if(Ll(Ls,ao)&&!Ip(Ad)&&Ad!=="export=")return ss=e.unescapeLeadingUnderscores(Ad),!0})}if(ss||(ss=Fc(ao,Sr)),Sr.approximateLength+=ss.length+1,!(Sr.flags&16)&&Ds&&af(Ds)&&af(Ds).get(ao.escapedName)&&Ll(af(Ds).get(ao.escapedName),ao)){var bs=qa(Vi,Qa-1,ho);return e.isIndexedAccessTypeNode(bs)?e.factory.createIndexedAccessTypeNode(bs,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(ss))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(bs,Vo),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(ss)))}var Yf=e.setEmitFlags(e.factory.createIdentifier(ss,Vo),16777216);if(Yf.symbol=ao,Qa>ho){var bs=qa(Vi,Qa-1,ho);return e.isEntityName(bs)?e.factory.createQualifiedName(bs,Yf):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Yf}}function la(jr,Sr,hn){var nn=Uo(Sr.enclosingDeclaration,jr,788968,void 0,jr,!1);return nn?!(nn.flags&262144&&nn===hn.symbol):!1}function di(jr,Sr){var hn,nn;if(Sr.flags&4&&Sr.typeParameterNames){var Vn=Sr.typeParameterNames.get(Bc(jr));if(Vn)return Vn}var En=Aa(jr.symbol,Sr,788968,!0);if(!(En.kind&79))return e.factory.createIdentifier("(Missing type parameter)");if(Sr.flags&4){for(var Fn=En.escapedText,Xr=((hn=Sr.typeParameterNamesByTextNextNameCount)===null||hn===void 0?void 0:hn.get(Fn))||0,it=Fn;((nn=Sr.typeParameterNamesByText)===null||nn===void 0?void 0:nn.has(it))||la(it,Sr,jr);)Xr++,it="".concat(Fn,"_").concat(Xr);it!==Fn&&(En=e.factory.createIdentifier(it,En.typeArguments)),(Sr.typeParameterNamesByTextNextNameCount||(Sr.typeParameterNamesByTextNextNameCount=new e.Map)).set(Fn,Xr),(Sr.typeParameterNames||(Sr.typeParameterNames=new e.Map)).set(Bc(jr),En),(Sr.typeParameterNamesByText||(Sr.typeParameterNamesByText=new e.Set)).add(Fn)}return En}function Aa(jr,Sr,hn,nn){var Vn=Zr(jr,Sr,hn);return nn&&Vn.length!==1&&!Sr.encounteredError&&!(Sr.flags&65536)&&(Sr.encounteredError=!0),En(Vn,Vn.length-1);function En(Fn,Xr){var it=At(Fn,Xr,Sr),Mt=Fn[Xr];Xr===0&&(Sr.flags|=16777216);var Bt=Fc(Mt,Sr);Xr===0&&(Sr.flags^=16777216);var Yt=e.setEmitFlags(e.factory.createIdentifier(Bt,it),16777216);return Yt.symbol=Mt,Xr>0?e.factory.createQualifiedName(En(Fn,Xr-1),Yt):Yt}}function Li(jr,Sr,hn){var nn=Zr(jr,Sr,hn);return Vn(nn,nn.length-1);function Vn(En,Fn){var Xr=At(En,Fn,Sr),it=En[Fn];Fn===0&&(Sr.flags|=16777216);var Mt=Fc(it,Sr);Fn===0&&(Sr.flags^=16777216);var Bt=Mt.charCodeAt(0);if(e.isSingleOrDoubleQuote(Bt)&&e.some(it.declarations,Ec))return e.factory.createStringLiteral(Nn(it,Sr));var Yt=Bt===35?Mt.length>1&&e.isIdentifierStart(Mt.charCodeAt(1),De):e.isIdentifierStart(Bt,De);if(Fn===0||Yt){var mn=e.setEmitFlags(e.factory.createIdentifier(Mt,Xr),16777216);return mn.symbol=it,Fn>0?e.factory.createPropertyAccessExpression(Vn(En,Fn-1),mn):mn}else{Bt===91&&(Mt=Mt.substring(1,Mt.length-1),Bt=Mt.charCodeAt(0));var ya=void 0;return e.isSingleOrDoubleQuote(Bt)?ya=e.factory.createStringLiteral(Mt.substring(1,Mt.length-1).replace(/\\./g,function(_a){return _a.substring(1)}),Bt===39):""+ +Mt===Mt&&(ya=e.factory.createNumericLiteral(+Mt)),ya||(ya=e.setEmitFlags(e.factory.createIdentifier(Mt,Xr),16777216),ya.symbol=it),e.factory.createElementAccessExpression(Vn(En,Fn-1),ya)}}}function Bi(jr){var Sr=e.getNameOfDeclaration(jr);return!!Sr&&e.isStringLiteral(Sr)}function Ai(jr){var Sr=e.getNameOfDeclaration(jr);return!!(Sr&&e.isStringLiteral(Sr)&&(Sr.singleQuote||!e.nodeIsSynthesized(Sr)&&e.startsWith(e.getTextOfNode(Sr,!1),"'")))}function xo(jr,Sr){var hn=!!e.length(jr.declarations)&&e.every(jr.declarations,Ai),nn=Wt(jr,Sr,hn);if(nn)return nn;var Vn=e.unescapeLeadingUnderscores(jr.escapedName),En=!!e.length(jr.declarations)&&e.every(jr.declarations,Bi);return Ft(Vn,En,hn)}function Wt(jr,Sr,hn){var nn=Ja(jr).nameType;if(nn){if(nn.flags&384){var Vn=""+nn.value;return!e.isIdentifierText(Vn,e.getEmitScriptTarget(Xe))&&!zf(Vn)?e.factory.createStringLiteral(Vn,!!hn):zf(Vn)&&e.startsWith(Vn,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+Vn)):Ft(Vn)}if(nn.flags&8192)return e.factory.createComputedPropertyName(Li(nn.symbol,Sr,111551))}}function Ft(jr,Sr,hn){return e.isIdentifierText(jr,e.getEmitScriptTarget(Xe))?e.factory.createIdentifier(jr):!Sr&&zf(jr)&&+jr>=0?e.factory.createNumericLiteral(+jr):e.factory.createStringLiteral(jr,!!hn)}function _n(jr){var Sr=Rn({},jr);return Sr.typeParameterNames&&(Sr.typeParameterNames=new e.Map(Sr.typeParameterNames)),Sr.typeParameterNamesByText&&(Sr.typeParameterNamesByText=new e.Set(Sr.typeParameterNamesByText)),Sr.typeParameterSymbolList&&(Sr.typeParameterSymbolList=new e.Set(Sr.typeParameterSymbolList)),Sr.tracker=t(Sr,Sr.tracker),Sr}function Ca(jr,Sr){return jr.declarations&&e.find(jr.declarations,function(hn){return!!e.getEffectiveTypeAnnotationNode(hn)&&(!Sr||!!e.findAncestor(hn,function(nn){return nn===Sr}))})}function Yn(jr,Sr){return!(e.getObjectFlags(Sr)&4)||!e.isTypeReferenceNode(jr)||e.length(jr.typeArguments)>=lf(Sr.target.typeParameters)}function Ba(jr,Sr,hn,nn,Vn,En){if(!Ua(Sr)&&nn){var Fn=Ca(hn,nn);if(Fn&&!e.isFunctionLikeDeclaration(Fn)&&!e.isGetAccessorDeclaration(Fn)){var Xr=e.getEffectiveTypeAnnotationNode(Fn);if(Da(Xr)===Sr&&Yn(Xr,Sr)){var it=jn(jr,Xr,Vn,En);if(it)return it}}}var Mt=jr.flags;Sr.flags&8192&&Sr.symbol===hn&&(!jr.enclosingDeclaration||e.some(hn.declarations,function(Yt){return e.getSourceFileOfNode(Yt)===e.getSourceFileOfNode(jr.enclosingDeclaration)}))&&(jr.flags|=1048576);var Bt=o(Sr,jr);return jr.flags=Mt,Bt}function Ti(jr,Sr,hn,nn,Vn){if(!Ua(Sr)&&jr.enclosingDeclaration){var En=hn.declaration&&e.getEffectiveReturnTypeNode(hn.declaration);if(!!e.findAncestor(En,function(Mt){return Mt===jr.enclosingDeclaration})&&En){var Fn=Da(En),Xr=Fn.flags&262144&&Fn.isThisType?oi(Fn,hn.mapper):Fn;if(Xr===Sr&&Yn(En,Sr)){var it=jn(jr,En,nn,Vn);if(it)return it}}}return o(Sr,jr)}function Mi(jr,Sr,hn){var nn,Vn,En=!1,Fn=e.getFirstIdentifier(jr);if(e.isInJSFile(jr)&&(e.isExportsIdentifier(Fn)||e.isModuleExportsAccessExpression(Fn.parent)||e.isQualifiedName(Fn.parent)&&e.isModuleIdentifier(Fn.parent.left)&&e.isExportsIdentifier(Fn.parent.right)))return En=!0,{introducesError:En,node:jr};var Xr=rs(Fn,67108863,!0,!0);if(Xr&&(rf(Xr,Sr.enclosingDeclaration,67108863,!1).accessibility!==0?En=!0:((Vn=(nn=Sr.tracker)===null||nn===void 0?void 0:nn.trackSymbol)===null||Vn===void 0||Vn.call(nn,Xr,Sr.enclosingDeclaration,67108863),hn==null||hn(Xr)),e.isIdentifier(jr))){var it=Xr.flags&262144?di(po(Xr),Sr):e.factory.cloneNode(jr);return it.symbol=Xr,{introducesError:En,node:e.setEmitFlags(e.setOriginalNode(it,jr),16777216)}}return{introducesError:En,node:jr}}function jn(jr,Sr,hn,nn){O&&O.throwIfCancellationRequested&&O.throwIfCancellationRequested();var Vn=!1,En=e.getSourceFileOfNode(Sr),Fn=e.visitNode(Sr,Xr);if(Vn)return;return Fn===Sr?e.setTextRange(e.factory.cloneNode(Sr),Sr):Fn;function Xr(it){if(e.isJSDocAllType(it)||it.kind===317)return e.factory.createKeywordTypeNode(130);if(e.isJSDocUnknownType(it))return e.factory.createKeywordTypeNode(154);if(e.isJSDocNullableType(it))return e.factory.createUnionTypeNode([e.visitNode(it.type,Xr),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(it))return e.factory.createUnionTypeNode([e.visitNode(it.type,Xr),e.factory.createKeywordTypeNode(152)]);if(e.isJSDocNonNullableType(it))return e.visitNode(it.type,Xr);if(e.isJSDocVariadicType(it))return e.factory.createArrayTypeNode(e.visitNode(it.type,Xr));if(e.isJSDocTypeLiteral(it))return e.factory.createTypeLiteralNode(e.map(it.jsDocPropertyTags,function(Qa){var ho=e.isIdentifier(Qa.name)?Qa.name:Qa.name.right,Vo=ia(Da(it),ho.escapedText),ao=Vo&&Qa.typeExpression&&Da(Qa.typeExpression.type)!==Vo?o(Vo,jr):void 0;return e.factory.createPropertySignature(void 0,ho,Qa.isBracketed||Qa.typeExpression&&e.isJSDocOptionalType(Qa.typeExpression.type)?e.factory.createToken(57):void 0,ao||Qa.typeExpression&&e.visitNode(Qa.typeExpression.type,Xr)||e.factory.createKeywordTypeNode(130))}));if(e.isTypeReferenceNode(it)&&e.isIdentifier(it.typeName)&&it.typeName.escapedText==="")return e.setOriginalNode(e.factory.createKeywordTypeNode(130),it);if((e.isExpressionWithTypeArguments(it)||e.isTypeReferenceNode(it))&&e.isJSDocIndexSignature(it))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(it.typeArguments[0],Xr))],e.visitNode(it.typeArguments[1],Xr))]);if(e.isJSDocFunctionType(it))if(e.isJSDocConstructSignature(it)){var Mt;return e.factory.createConstructorTypeNode(it.modifiers,e.visitNodes(it.typeParameters,Xr),e.mapDefined(it.parameters,function(Qa,ho){return Qa.name&&e.isIdentifier(Qa.name)&&Qa.name.escapedText==="new"?(Mt=Qa.type,void 0):e.factory.createParameterDeclaration(void 0,void 0,_a(Qa),qa(Qa,ho),Qa.questionToken,e.visitNode(Qa.type,Xr),void 0)}),e.visitNode(Mt||it.type,Xr)||e.factory.createKeywordTypeNode(130))}else return e.factory.createFunctionTypeNode(e.visitNodes(it.typeParameters,Xr),e.map(it.parameters,function(Qa,ho){return e.factory.createParameterDeclaration(void 0,void 0,_a(Qa),qa(Qa,ho),Qa.questionToken,e.visitNode(Qa.type,Xr),void 0)}),e.visitNode(it.type,Xr)||e.factory.createKeywordTypeNode(130));if(e.isTypeReferenceNode(it)&&e.isInJSDoc(it)&&(!Yn(it,Da(it))||ID(it)||We===rg(it,788968,!0)))return e.setOriginalNode(o(Da(it),jr),it);if(e.isLiteralImportTypeNode(it)){var Bt=Zn(it).resolvedSymbol;return e.isInJSDoc(it)&&Bt&&(!it.isTypeOf&&!(Bt.flags&788968)||!(e.length(it.typeArguments)>=lf(mu(Bt))))?e.setOriginalNode(o(Da(it),jr),it):e.factory.updateImportTypeNode(it,e.factory.updateLiteralTypeNode(it.argument,Vi(it,it.argument.literal)),it.qualifier,e.visitNodes(it.typeArguments,Xr,e.isTypeNode),it.isTypeOf)}if(e.isEntityName(it)||e.isEntityNameExpression(it)){var Yt=Mi(it,jr,hn),mn=Yt.introducesError,ya=Yt.node;if(Vn=Vn||mn,ya!==it)return ya}return En&&e.isTupleTypeNode(it)&&e.getLineAndCharacterOfPosition(En,it.pos).line===e.getLineAndCharacterOfPosition(En,it.end).line&&e.setEmitFlags(it,1),e.visitEachChild(it,Xr,e.nullTransformationContext);function _a(Qa){return Qa.dotDotDotToken||(Qa.type&&e.isJSDocVariadicType(Qa.type)?e.factory.createToken(25):void 0)}function qa(Qa,ho){return Qa.name&&e.isIdentifier(Qa.name)&&Qa.name.escapedText==="this"?"this":_a(Qa)?"args":"arg".concat(ho)}function Vi(Qa,ho){if(nn){if(jr.tracker&&jr.tracker.moduleResolverHost){var Vo=kT(Qa);if(Vo){var ao=e.createGetCanonicalFileName(!!j.useCaseSensitiveFileNames),Ds={getCanonicalFileName:ao,getCurrentDirectory:function(){return jr.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return jr.tracker.moduleResolverHost.getCommonSourceDirectory()}},ss=e.getResolvedExternalModuleName(Ds,Vo);return e.factory.createStringLiteral(ss)}}}else if(jr.tracker&&jr.tracker.trackExternalModuleSymbolOfImportTypeNode){var Xs=Pc(ho,ho,void 0);Xs&&jr.tracker.trackExternalModuleSymbolOfImportTypeNode(Xs)}return ho}}}function Fi(jr,Sr,hn){var nn=vi(e.factory.createPropertyDeclaration,168,!0),Vn=vi(function(ot,ln,aa,qn,ra){return e.factory.createPropertySignature(ln,aa,qn,ra)},167,!1),En=Sr.enclosingDeclaration,Fn=[],Xr=new e.Set,it=[],Mt=Sr;Sr=Rn(Rn({},Mt),{usedSymbolNames:new e.Set(Mt.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:Rn(Rn({},Mt.tracker),{trackSymbol:function(ot,ln,aa){var qn=rf(ot,ln,aa,!1);if(qn.accessibility===0){var ra=Et(ot,Sr,aa);ot.flags&4||bs(ra[0])}else if(Mt.tracker&&Mt.tracker.trackSymbol)return Mt.tracker.trackSymbol(ot,ln,aa);return!1}})}),Sr.tracker=t(Sr,Sr.tracker),e.forEachEntry(jr,function(ot,ln){var aa=e.unescapeLeadingUnderscores(ln);$o(ot,aa)});var Bt=!hn,Yt=jr.get("export=");return Yt&&jr.size>1&&Yt.flags&2097152&&(jr=e.createSymbolTable(),jr.set("export=",Yt)),Ds(jr),Qa(Fn);function mn(ot){return!!ot&&ot.kind===79}function ya(ot){return e.isVariableStatement(ot)?e.filter(e.map(ot.declarationList.declarations,e.getNameOfDeclaration),mn):e.filter([e.getNameOfDeclaration(ot)],mn)}function _a(ot){var ln=e.find(ot,e.isExportAssignment),aa=e.findIndex(ot,e.isModuleDeclaration),qn=aa!==-1?ot[aa]:void 0;if(qn&&ln&&ln.isExportEquals&&e.isIdentifier(ln.expression)&&e.isIdentifier(qn.name)&&e.idText(qn.name)===e.idText(ln.expression)&&qn.body&&e.isModuleBlock(qn.body)){var ra=e.filter(ot,function(Va){return!!(e.getEffectiveModifierFlags(Va)&1)}),Xa=qn.name,ja=qn.body;if(e.length(ra)&&(qn=e.factory.updateModuleDeclaration(qn,qn.decorators,qn.modifiers,qn.name,ja=e.factory.updateModuleBlock(ja,e.factory.createNodeArray(Gt(Gt([],qn.body.statements,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(ra,function(Va){return ya(Va)}),function(Va){return e.factory.createExportSpecifier(!1,void 0,Va)})),void 0)],!1)))),ot=Gt(Gt(Gt([],ot.slice(0,aa),!0),[qn],!1),ot.slice(aa+1),!0)),!e.find(ot,function(Va){return Va!==qn&&e.nodeHasName(Va,Xa)})){Fn=[];var pi=!e.some(ja.statements,function(Va){return e.hasSyntacticModifier(Va,1)||e.isExportAssignment(Va)||e.isExportDeclaration(Va)});e.forEach(ja.statements,function(Va){Ls(Va,pi?1:0)}),ot=Gt(Gt([],e.filter(ot,function(Va){return Va!==qn&&Va!==ln}),!0),Fn,!0)}}return ot}function qa(ot){var ln=e.filter(ot,function(Pa){return e.isExportDeclaration(Pa)&&!Pa.moduleSpecifier&&!!Pa.exportClause&&e.isNamedExports(Pa.exportClause)});if(e.length(ln)>1){var aa=e.filter(ot,function(Pa){return!e.isExportDeclaration(Pa)||!!Pa.moduleSpecifier||!Pa.exportClause});ot=Gt(Gt([],aa,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(ln,function(Pa){return e.cast(Pa.exportClause,e.isNamedExports).elements})),void 0)],!1)}var qn=e.filter(ot,function(Pa){return e.isExportDeclaration(Pa)&&!!Pa.moduleSpecifier&&!!Pa.exportClause&&e.isNamedExports(Pa.exportClause)});if(e.length(qn)>1){var ra=e.group(qn,function(Pa){return e.isStringLiteral(Pa.moduleSpecifier)?">"+Pa.moduleSpecifier.text:">"});if(ra.length!==qn.length)for(var Xa=function(Pa){Pa.length>1&&(ot=Gt(Gt([],e.filter(ot,function(qi){return Pa.indexOf(qi)===-1}),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(Pa,function(qi){return e.cast(qi.exportClause,e.isNamedExports).elements})),Pa[0].moduleSpecifier)],!1))},ja=0,pi=ra;ja<pi.length;ja++){var Va=pi[ja];Xa(Va)}}return ot}function Vi(ot){var ln=e.findIndex(ot,function(ra){return e.isExportDeclaration(ra)&&!ra.moduleSpecifier&&!ra.assertClause&&!!ra.exportClause&&e.isNamedExports(ra.exportClause)});if(ln>=0){var aa=ot[ln],qn=e.mapDefined(aa.exportClause.elements,function(ra){if(!ra.propertyName){var Xa=e.indicesOf(ot),ja=e.filter(Xa,function(qi){return e.nodeHasName(ot[qi],ra.name)});if(e.length(ja)&&e.every(ja,function(qi){return ho(ot[qi])})){for(var pi=0,Va=ja;pi<Va.length;pi++){var Pa=Va[pi];ot[Pa]=Vo(ot[Pa])}return}}return ra});e.length(qn)?ot[ln]=e.factory.updateExportDeclaration(aa,aa.decorators,aa.modifiers,aa.isTypeOnly,e.factory.updateNamedExports(aa.exportClause,qn),aa.moduleSpecifier,aa.assertClause):e.orderedRemoveItemAt(ot,ln)}return ot}function Qa(ot){return ot=_a(ot),ot=qa(ot),ot=Vi(ot),En&&(e.isSourceFile(En)&&e.isExternalOrCommonJsModule(En)||e.isModuleDeclaration(En))&&(!e.some(ot,e.isExternalModuleIndicator)||!e.hasScopeMarker(ot)&&e.some(ot,e.needsScopeMarker))&&ot.push(e.createEmptyExports(e.factory)),ot}function ho(ot){return e.isEnumDeclaration(ot)||e.isVariableStatement(ot)||e.isFunctionDeclaration(ot)||e.isClassDeclaration(ot)||e.isModuleDeclaration(ot)&&!e.isExternalModuleAugmentation(ot)&&!e.isGlobalScopeAugmentation(ot)||e.isInterfaceDeclaration(ot)||Jh(ot)}function Vo(ot){var ln=(e.getEffectiveModifierFlags(ot)|1)&-3;return e.factory.updateModifiers(ot,ln)}function ao(ot){var ln=e.getEffectiveModifierFlags(ot)&-2;return e.factory.updateModifiers(ot,ln)}function Ds(ot,ln,aa){ln||it.push(new e.Map),ot.forEach(function(qn){ss(qn,!1,!!aa)}),ln||(it[it.length-1].forEach(function(qn){ss(qn,!0,!!aa)}),it.pop())}function ss(ot,ln,aa){var qn=Ga(ot);if(!Xr.has(y(qn))){Xr.add(y(qn));var ra=!ln;if(ra||!!e.length(ot.declarations)&&e.some(ot.declarations,function(pi){return!!e.findAncestor(pi,function(Va){return Va===En})})){var Xa=Sr;Sr=_n(Sr);var ja=Xs(ot,ln,aa);return Sr.reportedDiagnostic&&(Mt.reportedDiagnostic=Sr.reportedDiagnostic),Sr=Xa,ja}}}function Xs(ot,ln,aa){var qn,ra,Xa=e.unescapeLeadingUnderscores(ot.escapedName),ja=ot.escapedName==="default";if(ln&&!(Sr.flags&131072)&&e.isStringANonContextualKeyword(Xa)&&!ja){Sr.encounteredError=!0;return}var pi=ja&&!!(ot.flags&-113||ot.flags&16&&e.length(Yi(An(ot))))&&!(ot.flags&2097152),Va=!pi&&!ln&&e.isStringANonContextualKeyword(Xa)&&!ja;(pi||Va)&&(ln=!0);var Pa=(ln?0:1)|(ja&&!pi?512:0),qi=ot.flags&1536&&ot.flags&7&&ot.escapedName!=="export=",yo=qi&&ni(An(ot),ot);if((ot.flags&8208||yo)&&uo(An(ot),ot,$o(ot,Xa),Pa),ot.flags&524288&&Ad(ot,Xa,Pa),ot.flags&7&&ot.escapedName!=="export="&&!(ot.flags&4194304)&&!(ot.flags&32)&&!yo)if(aa){var ns=zt(ot);ns&&(Va=!1,pi=!1)}else{var Oo=An(ot),Ao=$o(ot,Xa);if(!(ot.flags&16)&&ni(Oo,ot))uo(Oo,ot,Ao,Pa);else{var Os=ot.flags&2?Th(ot)?2:1:void 0,hl=pi||!(ot.flags&4)?Ao:eo(Ao,ot),As=ot.declarations&&e.find(ot.declarations,function(xm){return e.isVariableDeclaration(xm)});As&&e.isVariableDeclarationList(As.parent)&&As.parent.declarations.length===1&&(As=As.parent.parent);var Cc=(qn=ot.declarations)===null||qn===void 0?void 0:qn.find(e.isPropertyAccessExpression);if(Cc&&e.isBinaryExpression(Cc.parent)&&e.isIdentifier(Cc.parent.right)&&((ra=Oo.symbol)===null||ra===void 0?void 0:ra.valueDeclaration)&&e.isSourceFile(Oo.symbol.valueDeclaration)){var z_=Ao===Cc.parent.right.escapedText?void 0:Cc.parent.right;Ls(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,z_,Ao)])),0),Sr.tracker.trackSymbol(Oo.symbol,Sr.enclosingDeclaration,111551)}else{var L_=e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(hl,void 0,Ba(Sr,Oo,ot,En,bs,hn))],Os)),As);Ls(L_,hl!==Ao?Pa&-2:Pa),hl!==Ao&&!ln&&(Ls(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,hl,Ao)])),0),Va=!1,pi=!1)}}}if(ot.flags&384&&qo(ot,Xa,Pa),ot.flags&32&&(ot.flags&4&&ot.valueDeclaration&&e.isBinaryExpression(ot.valueDeclaration.parent)&&e.isClassExpression(ot.valueDeclaration.parent.right)?Gn(ot,$o(ot,Xa),Pa):$t(ot,$o(ot,Xa),Pa)),(ot.flags&1536&&(!qi||Ma(ot))||yo)&&Ri(ot,Xa,Pa),ot.flags&64&&!(ot.flags&32)&&Cv(ot,Xa,Pa),ot.flags&2097152&&Gn(ot,$o(ot,Xa),Pa),ot.flags&4&&ot.escapedName==="export="&&zt(ot),ot.flags&8388608&&ot.declarations)for(var Cd=0,Hp=ot.declarations;Cd<Hp.length;Cd++){var Jp=Hp[Cd],xd=ws(Jp,Jp.moduleSpecifier);!xd||Ls(e.factory.createExportDeclaration(void 0,void 0,!1,void 0,e.factory.createStringLiteral(Nn(xd,Sr))),0)}pi?Ls(e.factory.createExportAssignment(void 0,void 0,!1,e.factory.createIdentifier($o(ot,Xa))),0):Va&&Ls(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,$o(ot,Xa),Xa)])),0)}function bs(ot){if(!e.some(ot.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(it[it.length-1]),eo(e.unescapeLeadingUnderscores(ot.escapedName),ot);var ln=!!(ot.flags&2097152)&&!e.some(ot.declarations,function(aa){return!!e.findAncestor(aa,e.isExportDeclaration)||e.isNamespaceExport(aa)||e.isImportEqualsDeclaration(aa)&&!e.isExternalModuleReference(aa.moduleReference)});it[ln?0:it.length-1].set(y(ot),ot)}}function Yf(ot){return e.isSourceFile(ot)&&(e.isExternalOrCommonJsModule(ot)||e.isJsonSourceFile(ot))||e.isAmbientModule(ot)&&!e.isGlobalScopeAugmentation(ot)}function Ls(ot,ln){if(e.canHaveModifiers(ot)){var aa=0,qn=Sr.enclosingDeclaration&&(e.isJSDocTypeAlias(Sr.enclosingDeclaration)?e.getSourceFileOfNode(Sr.enclosingDeclaration):Sr.enclosingDeclaration);ln&1&&qn&&(Yf(qn)||e.isModuleDeclaration(qn))&&ho(ot)&&(aa|=1),Bt&&!(aa&1)&&(!qn||!(qn.flags&8388608))&&(e.isEnumDeclaration(ot)||e.isVariableStatement(ot)||e.isFunctionDeclaration(ot)||e.isClassDeclaration(ot)||e.isModuleDeclaration(ot))&&(aa|=2),ln&512&&(e.isClassDeclaration(ot)||e.isInterfaceDeclaration(ot)||e.isFunctionDeclaration(ot))&&(aa|=512),aa&&(ot=e.factory.updateModifiers(ot,aa|e.getEffectiveModifierFlags(ot)))}Fn.push(ot)}function Ad(ot,ln,aa){var qn,ra=Sa(ot),Xa=Ja(ot).typeParameters,ja=e.map(Xa,function(ns){return ar(ns,Sr)}),pi=(qn=ot.declarations)===null||qn===void 0?void 0:qn.find(e.isJSDocTypeAlias),Va=e.getTextOfJSDocComment(pi?pi.comment||pi.parent.comment:void 0),Pa=Sr.flags;Sr.flags|=8388608;var qi=Sr.enclosingDeclaration;Sr.enclosingDeclaration=pi;var yo=pi&&pi.typeExpression&&e.isJSDocTypeExpression(pi.typeExpression)&&jn(Sr,pi.typeExpression.type,bs,hn)||o(ra,Sr);Ls(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,void 0,$o(ot,ln),ja,yo),Va?[{kind:3,text:`*
|
|
* `+Va.replace(/\n/g,`
|
|
* `)+`
|
|
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),aa),Sr.flags=Pa,Sr.enclosingDeclaration=qi}function Cv(ot,ln,aa){var qn=Hn(ot),ra=mu(ot),Xa=e.map(ra,function(Oo){return ar(Oo,Sr)}),ja=xl(qn),pi=e.length(ja)?To(ja):void 0,Va=e.flatMap(Yi(qn),function(Oo){return ai(Oo,pi)}),Pa=so(0,qn,pi,173),qi=so(1,qn,pi,174),yo=Ui(qn,pi),ns=e.length(ja)?[e.factory.createHeritageClause(94,e.mapDefined(ja,function(Oo){return ls(Oo,111551)}))]:void 0;Ls(e.factory.createInterfaceDeclaration(void 0,void 0,$o(ot,ln),Xa,ns,Gt(Gt(Gt(Gt([],yo,!0),qi,!0),Pa,!0),Va,!0)),aa)}function xv(ot){return ot.exports?e.filter(e.arrayFrom(ot.exports.values()),st):[]}function Ma(ot){return e.every(xv(ot),function(ln){return!(wo(ln).flags&111551)})}function Ri(ot,ln,aa){var qn=xv(ot),ra=e.arrayToMultiMap(qn,function(qi){return qi.parent&&qi.parent===ot?"real":"merged"}),Xa=ra.get("real")||e.emptyArray,ja=ra.get("merged")||e.emptyArray;if(e.length(Xa)){var pi=$o(ot,ln);Kr(Xa,pi,aa,!!(ot.flags&67108880))}if(e.length(ja)){var Va=e.getSourceFileOfNode(Sr.enclosingDeclaration),pi=$o(ot,ln),Pa=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(ja,function(yo){return yo.escapedName!=="export="}),function(yo){var ns,Oo,Ao=e.unescapeLeadingUnderscores(yo.escapedName),Os=$o(yo,Ao),hl=yo.declarations&&ec(yo);if(Va&&(hl?Va!==e.getSourceFileOfNode(hl):!e.some(yo.declarations,function(z_){return e.getSourceFileOfNode(z_)===Va}))){(Oo=(ns=Sr.tracker)===null||ns===void 0?void 0:ns.reportNonlocalAugmentation)===null||Oo===void 0||Oo.call(ns,Va,ot,yo);return}var As=hl&&mo(hl,!0);bs(As||yo);var Cc=As?$o(As,e.unescapeLeadingUnderscores(As.escapedName)):Os;return e.factory.createExportSpecifier(!1,Ao===Cc?void 0:Cc,Ao)})))]);Ls(e.factory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(pi),Pa,16),0)}}function qo(ot,ln,aa){Ls(e.factory.createEnumDeclaration(void 0,e.factory.createModifiersFromModifierFlags(rT(ot)?2048:0),$o(ot,ln),e.map(e.filter(Yi(An(ot)),function(qn){return!!(qn.flags&8)}),function(qn){var ra=qn.declarations&&qn.declarations[0]&&e.isEnumMember(qn.declarations[0])?xT(qn.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(qn.escapedName),ra===void 0?void 0:typeof ra=="string"?e.factory.createStringLiteral(ra):e.factory.createNumericLiteral(ra))})),aa)}function uo(ot,ln,aa,qn){for(var ra=Ni(ot,0),Xa=0,ja=ra;Xa<ja.length;Xa++){var pi=ja[Xa],Va=Ue(pi,255,Sr,{name:e.factory.createIdentifier(aa),privateSymbolVisitor:bs,bundledImports:hn});Ls(e.setTextRange(Va,Bs(pi)),qn)}if(!(ln.flags&1536&&!!ln.exports&&!!ln.exports.size)){var Pa=e.filter(Yi(ot),st);Kr(Pa,aa,qn,!0)}}function Bs(ot){if(ot.declaration&&ot.declaration.parent){if(e.isBinaryExpression(ot.declaration.parent)&&e.getAssignmentDeclarationKind(ot.declaration.parent)===5)return ot.declaration.parent;if(e.isVariableDeclaration(ot.declaration.parent)&&ot.declaration.parent.parent)return ot.declaration.parent.parent}return ot.declaration}function Kr(ot,ln,aa,qn){if(e.length(ot)){var ra=e.arrayToMultiMap(ot,function(Ao){return!e.length(Ao.declarations)||e.some(Ao.declarations,function(Os){return e.getSourceFileOfNode(Os)===e.getSourceFileOfNode(Sr.enclosingDeclaration)})?"local":"remote"}),Xa=ra.get("local")||e.emptyArray,ja=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(ln),e.factory.createModuleBlock([]),16);e.setParent(ja,En),ja.locals=e.createSymbolTable(ot),ja.symbol=ot[0].parent;var pi=Fn;Fn=[];var Va=Bt;Bt=!1;var Pa=Rn(Rn({},Sr),{enclosingDeclaration:ja}),qi=Sr;Sr=Pa,Ds(e.createSymbolTable(Xa),qn,!0),Sr=qi,Bt=Va;var yo=Fn;Fn=pi;var ns=e.map(yo,function(Ao){return e.isExportAssignment(Ao)&&!Ao.isExportEquals&&e.isIdentifier(Ao.expression)?e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,Ao.expression,e.factory.createIdentifier("default"))])):Ao}),Oo=e.every(ns,function(Ao){return e.hasSyntacticModifier(Ao,1)})?e.map(ns,ao):ns;ja=e.factory.updateModuleDeclaration(ja,ja.decorators,ja.modifiers,ja.name,e.factory.createModuleBlock(Oo)),Ls(ja,aa)}}function st(ot){return!!(ot.flags&2887656)||!(ot.flags&4194304||ot.escapedName==="prototype"||ot.valueDeclaration&&e.isStatic(ot.valueDeclaration)&&e.isClassLike(ot.valueDeclaration.parent))}function kt(ot){var ln=e.mapDefined(ot,function(aa){var qn,ra=Sr.enclosingDeclaration;Sr.enclosingDeclaration=aa;var Xa=aa.expression;if(e.isEntityNameExpression(Xa)){if(e.isIdentifier(Xa)&&e.idText(Xa)==="")return pi(void 0);var ja=void 0;if(qn=Mi(Xa,Sr,bs),ja=qn.introducesError,Xa=qn.node,ja)return pi(void 0)}return pi(e.factory.createExpressionWithTypeArguments(Xa,e.map(aa.typeArguments,function(Va){return jn(Sr,Va,bs,hn)||o(Da(Va),Sr)})));function pi(Va){return Sr.enclosingDeclaration=ra,Va}});if(ln.length===ot.length)return ln}function $t(ot,ln,aa){var qn,ra,Xa=(qn=ot.declarations)===null||qn===void 0?void 0:qn.find(e.isClassLike),ja=Sr.enclosingDeclaration;Sr.enclosingDeclaration=Xa||ja;var pi=mu(ot),Va=e.map(pi,function(Jl){return ar(Jl,Sr)}),Pa=Hn(ot),qi=xl(Pa),yo=Xa&&e.getEffectiveImplementsTypeNodes(Xa),ns=yo&&kt(yo)||e.mapDefined(Bv(Pa),Xo),Oo=An(ot),Ao=!!(!((ra=Oo.symbol)===null||ra===void 0)&&ra.valueDeclaration)&&e.isClassLike(Oo.symbol.valueDeclaration),Os=Ao?Ju(Oo):Ze,hl=Gt(Gt([],e.length(qi)?[e.factory.createHeritageClause(94,e.map(qi,function(Jl){return ps(Jl,Os,ln)}))]:[],!0),e.length(ns)?[e.factory.createHeritageClause(117,ns)]:[],!0),As=x3(Pa,qi,Yi(Pa)),Cc=e.filter(As,function(Jl){var vp=Jl.valueDeclaration;return!!vp&&!(e.isNamedDeclaration(vp)&&e.isPrivateIdentifier(vp.name))}),z_=e.some(As,function(Jl){var vp=Jl.valueDeclaration;return!!vp&&e.isNamedDeclaration(vp)&&e.isPrivateIdentifier(vp.name)}),L_=z_?[e.factory.createPropertyDeclaration(void 0,void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,Cd=e.flatMap(Cc,function(Jl){return nn(Jl,!1,qi[0])}),Hp=e.flatMap(e.filter(Yi(Oo),function(Jl){return!(Jl.flags&4194304)&&Jl.escapedName!=="prototype"&&!st(Jl)}),function(Jl){return nn(Jl,!0,Os)}),Jp=!Ao&&!!ot.valueDeclaration&&e.isInJSFile(ot.valueDeclaration)&&!e.some(Ni(Oo,1)),xd=Jp?[e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(8),[],void 0)]:so(1,Oo,Os,170),xm=Ui(Pa,qi[0]);Sr.enclosingDeclaration=ja,Ls(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,ln,Va,hl,Gt(Gt(Gt(Gt(Gt([],xm,!0),Hp,!0),xd,!0),Cd,!0),L_,!0)),ot.declarations&&e.filter(ot.declarations,function(Jl){return e.isClassDeclaration(Jl)||e.isClassExpression(Jl)})[0]),aa)}function ea(ot){return e.firstDefined(ot,function(ln){if(e.isImportSpecifier(ln)||e.isExportSpecifier(ln))return e.idText(ln.propertyName||ln.name);if(e.isBinaryExpression(ln)||e.isExportAssignment(ln)){var aa=e.isExportAssignment(ln)?ln.expression:ln.right;if(e.isPropertyAccessExpression(aa))return e.idText(aa.name)}if(Ud(ln)){var qn=e.getNameOfDeclaration(ln);if(qn&&e.isIdentifier(qn))return e.idText(qn)}})}function Gn(ot,ln,aa){var qn,ra,Xa,ja,pi,Va=ec(ot);if(!Va)return e.Debug.fail();var Pa=Ga(mo(Va,!0));if(!!Pa){var qi=e.isShorthandAmbientModuleSymbol(Pa)&&ea(ot.declarations)||e.unescapeLeadingUnderscores(Pa.escapedName);qi==="export="&&(e.getESModuleInterop(Xe)||Xe.allowSyntheticDefaultImports)&&(qi="default");var yo=$o(Pa,qi);switch(bs(Pa),Va.kind){case 202:if(((ra=(qn=Va.parent)===null||qn===void 0?void 0:qn.parent)===null||ra===void 0?void 0:ra.kind)===253){var ns=Nn(Pa.parent||Pa,Sr),Oo=Va.propertyName;Ls(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,Oo&&e.isIdentifier(Oo)?e.factory.createIdentifier(e.idText(Oo)):void 0,e.factory.createIdentifier(ln))])),e.factory.createStringLiteral(ns),void 0),0);break}e.Debug.failBadSyntaxKind(((Xa=Va.parent)===null||Xa===void 0?void 0:Xa.parent)||Va,"Unhandled binding element grandparent kind in declaration serialization");break;case 295:((pi=(ja=Va.parent)===null||ja===void 0?void 0:ja.parent)===null||pi===void 0?void 0:pi.kind)===220&&Tn(e.unescapeLeadingUnderscores(ot.escapedName),yo);break;case 253:if(e.isPropertyAccessExpression(Va.initializer)){var Ao=Va.initializer,Os=e.factory.createUniqueName(ln),hl=Nn(Pa.parent||Pa,Sr);Ls(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,Os,e.factory.createExternalModuleReference(e.factory.createStringLiteral(hl))),0),Ls(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(ln),e.factory.createQualifiedName(Os,Ao.name)),aa);break}case 264:if(Pa.escapedName==="export="&&e.some(Pa.declarations,e.isJsonSourceFile)){zt(ot);break}var As=!(Pa.flags&512)&&!e.isVariableDeclaration(Va);Ls(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(ln),As?Aa(Pa,Sr,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(Nn(Pa,Sr)))),As?aa:0);break;case 263:Ls(e.factory.createNamespaceExportDeclaration(e.idText(Va.name)),0);break;case 266:Ls(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(ln),void 0),e.factory.createStringLiteral(Nn(Pa.parent||Pa,Sr)),void 0),0);break;case 267:Ls(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(ln))),e.factory.createStringLiteral(Nn(Pa,Sr)),void 0),0);break;case 273:Ls(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(ln)),e.factory.createStringLiteral(Nn(Pa,Sr))),0);break;case 269:Ls(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,ln!==qi?e.factory.createIdentifier(qi):void 0,e.factory.createIdentifier(ln))])),e.factory.createStringLiteral(Nn(Pa.parent||Pa,Sr)),void 0),0);break;case 274:var Cc=Va.parent.parent.moduleSpecifier;Tn(e.unescapeLeadingUnderscores(ot.escapedName),Cc?qi:yo,Cc&&e.isStringLiteralLike(Cc)?e.factory.createStringLiteral(Cc.text):void 0);break;case 270:zt(ot);break;case 220:case 205:case 206:ot.escapedName==="default"||ot.escapedName==="export="?zt(ot):Tn(ln,yo);break;default:return e.Debug.failBadSyntaxKind(Va,"Unhandled alias declaration kind in symbol serializer!")}}}function Tn(ot,ln,aa){Ls(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,ot!==ln?ln:void 0,ot)]),aa),0)}function zt(ot){if(ot.flags&4194304)return!1;var ln=e.unescapeLeadingUnderscores(ot.escapedName),aa=ln==="export=",qn=ln==="default",ra=aa||qn,Xa=ot.declarations&&ec(ot),ja=Xa&&mo(Xa,!0);if(ja&&e.length(ja.declarations)&&e.some(ja.declarations,function(Ao){return e.getSourceFileOfNode(Ao)===e.getSourceFileOfNode(En)})){var pi=Xa&&(e.isExportAssignment(Xa)||e.isBinaryExpression(Xa)?e.getExportAssignmentExpression(Xa):e.getPropertyAssignmentAliasLikeExpression(Xa)),Va=pi&&e.isEntityNameExpression(pi)?V3(pi):void 0,Pa=Va&&rs(Va,67108863,!0,!0,En);(Pa||ja)&&bs(Pa||ja);var qi=Sr.tracker.trackSymbol;if(Sr.tracker.trackSymbol=function(){return!1},ra)Fn.push(e.factory.createExportAssignment(void 0,void 0,aa,Li(ja,Sr,67108863)));else if(Va===pi&&Va)Tn(ln,e.idText(Va));else if(pi&&e.isClassExpression(pi))Tn(ln,$o(ja,e.symbolName(ja)));else{var yo=eo(ln,ot);Ls(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(yo),Aa(ja,Sr,67108863,!1)),0),Tn(ln,yo)}return Sr.tracker.trackSymbol=qi,!0}else{var yo=eo(ln,ot),ns=wl(An(Ga(ot)));if(ni(ns,ot))uo(ns,ot,yo,ra?0:1);else{var Oo=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(yo,void 0,Ba(Sr,ns,ot,En,bs,hn))],2));Ls(Oo,ja&&ja.flags&4&&ja.escapedName==="export="?2:ln===yo?1:0)}return ra?(Fn.push(e.factory.createExportAssignment(void 0,void 0,aa,e.factory.createIdentifier(yo))),!0):ln!==yo?(Tn(ln,yo),!0):!1}}function ni(ot,ln){var aa=e.getSourceFileOfNode(Sr.enclosingDeclaration);return e.getObjectFlags(ot)&48&&!e.length(Ms(ot))&&!$d(ot)&&!!(e.length(e.filter(Yi(ot),st))||e.length(Ni(ot,0)))&&!e.length(Ni(ot,1))&&!Ca(ln,En)&&!(ot.symbol&&e.some(ot.symbol.declarations,function(qn){return e.getSourceFileOfNode(qn)!==aa}))&&!e.some(Yi(ot),function(qn){return Ip(qn.escapedName)})&&!e.some(Yi(ot),function(qn){return e.some(qn.declarations,function(ra){return e.getSourceFileOfNode(ra)!==aa})})&&e.every(Yi(ot),function(qn){return e.isIdentifierText(e.symbolName(qn),De)})}function vi(ot,ln,aa){return function(ra,Xa,ja){var pi,Va,Pa,qi,yo,ns=e.getDeclarationModifierFlagsFromSymbol(ra),Oo=!!(ns&8);if(Xa&&ra.flags&2887656)return[];if(ra.flags&4194304||ja&&Ii(ja,ra.escapedName)&&Iu(Ii(ja,ra.escapedName))===Iu(ra)&&(ra.flags&16777216)===(Ii(ja,ra.escapedName).flags&16777216)&&jf(An(ra),ia(ja,ra.escapedName)))return[];var Ao=ns&-257|(Xa?32:0),Os=xo(ra,Sr),hl=(pi=ra.declarations)===null||pi===void 0?void 0:pi.find(e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(ra.flags&98304&&aa){var As=[];if(ra.flags&65536&&As.push(e.setTextRange(e.factory.createSetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Ao),Os,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,Oo?void 0:Ba(Sr,An(ra),ra,En,bs,hn))],void 0),((Va=ra.declarations)===null||Va===void 0?void 0:Va.find(e.isSetAccessor))||hl)),ra.flags&32768){var Cc=ns&8;As.push(e.setTextRange(e.factory.createGetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Ao),Os,[],Cc?void 0:Ba(Sr,An(ra),ra,En,bs,hn),void 0),((Pa=ra.declarations)===null||Pa===void 0?void 0:Pa.find(e.isGetAccessor))||hl))}return As}else if(ra.flags&98311)return e.setTextRange(ot(void 0,e.factory.createModifiersFromModifierFlags((Iu(ra)?64:0)|Ao),Os,ra.flags&16777216?e.factory.createToken(57):void 0,Oo?void 0:Ba(Sr,An(ra),ra,En,bs,hn),void 0),((qi=ra.declarations)===null||qi===void 0?void 0:qi.find(e.or(e.isPropertyDeclaration,e.isVariableDeclaration)))||hl);if(ra.flags&8208){var z_=An(ra),L_=Ni(z_,0);if(Ao&8)return e.setTextRange(ot(void 0,e.factory.createModifiersFromModifierFlags((Iu(ra)?64:0)|Ao),Os,ra.flags&16777216?e.factory.createToken(57):void 0,void 0,void 0),((yo=ra.declarations)===null||yo===void 0?void 0:yo.find(e.isFunctionLikeDeclaration))||L_[0]&&L_[0].declaration||ra.declarations&&ra.declarations[0]);for(var Cd=[],Hp=0,Jp=L_;Hp<Jp.length;Hp++){var xd=Jp[Hp],xm=Ue(xd,ln,Sr,{name:Os,questionToken:ra.flags&16777216?e.factory.createToken(57):void 0,modifiers:Ao?e.factory.createModifiersFromModifierFlags(Ao):void 0}),Jl=xd.declaration&&e.isPrototypePropertyAssignment(xd.declaration.parent)?xd.declaration.parent:xd.declaration;Cd.push(e.setTextRange(xm,Jl))}return Cd}return e.Debug.fail("Unhandled class member kind! ".concat(ra.__debugFlags||ra.flags))}}function ai(ot,ln){return Vn(ot,!1,ln)}function so(ot,ln,aa,qn){var ra=Ni(ln,ot);if(ot===1){if(!aa&&e.every(ra,function(As){return e.length(As.parameters)===0}))return[];if(aa){var Xa=Ni(aa,1);if(!e.length(Xa)&&e.every(ra,function(As){return e.length(As.parameters)===0}))return[];if(Xa.length===ra.length){for(var ja=!1,pi=0;pi<Xa.length;pi++)if(!gh(ra[pi],Xa[pi],!1,!1,!0,ev)){ja=!0;break}if(!ja)return[]}}for(var Va=0,Pa=0,qi=ra;Pa<qi.length;Pa++){var yo=qi[Pa];yo.declaration&&(Va|=e.getSelectedEffectiveModifierFlags(yo.declaration,24))}if(Va)return[e.setTextRange(e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Va),[],void 0),ra[0].declaration)]}for(var ns=[],Oo=0,Ao=ra;Oo<Ao.length;Oo++){var Os=Ao[Oo],hl=Ue(Os,qn,Sr);ns.push(e.setTextRange(hl,Os.declaration))}return ns}function Ui(ot,ln){for(var aa=[],qn=0,ra=Ms(ot);qn<ra.length;qn++){var Xa=ra[qn];if(ln){var ja=oc(ln,Xa.keyType);if(ja&&jf(Xa.type,ja.type))continue}aa.push(we(Xa,Sr,void 0))}return aa}function ps(ot,ln,aa){var qn=ls(ot,111551);if(qn)return qn;var ra=eo("".concat(aa,"_base")),Xa=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(ra,void 0,o(ln,Sr))],2));return Ls(Xa,0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(ra),void 0)}function ls(ot,ln){var aa,qn;if(ot.target&&bc(ot.target.symbol,En,ln)?(aa=e.map(vo(ot),function(ra){return o(ra,Sr)}),qn=Li(ot.target.symbol,Sr,788968)):ot.symbol&&bc(ot.symbol,En,ln)&&(qn=Li(ot.symbol,Sr,788968)),qn)return e.factory.createExpressionWithTypeArguments(qn,aa)}function Xo(ot){var ln=ls(ot,788968);if(ln)return ln;if(ot.symbol)return e.factory.createExpressionWithTypeArguments(Li(ot.symbol,Sr,788968),void 0)}function eo(ot,ln){var aa,qn,ra=ln?y(ln):void 0;if(ra&&Sr.remappedSymbolNames.has(ra))return Sr.remappedSymbolNames.get(ra);ln&&(ot=Ko(ln,ot));for(var Xa=0,ja=ot;!((aa=Sr.usedSymbolNames)===null||aa===void 0)&&aa.has(ot);)Xa++,ot="".concat(ja,"_").concat(Xa);return(qn=Sr.usedSymbolNames)===null||qn===void 0||qn.add(ot),ra&&Sr.remappedSymbolNames.set(ra,ot),ot}function Ko(ot,ln){if(ln==="default"||ln==="__class"||ln==="__function"){var aa=Sr.flags;Sr.flags|=16777216;var qn=Fc(ot,Sr);Sr.flags=aa,ln=qn.length>0&&e.isSingleOrDoubleQuote(qn.charCodeAt(0))?e.stripQuotes(qn):qn}return ln==="default"?ln="_default":ln==="export="&&(ln="_exports"),ln=e.isIdentifierText(ln,De)&&!e.isStringANonContextualKeyword(ln)?ln:"_"+ln.replace(/[^a-zA-Z0-9]/g,"_"),ln}function $o(ot,ln){var aa=y(ot);return Sr.remappedSymbolNames.has(aa)?Sr.remappedSymbolNames.get(aa):(ln=Ko(ot,ln),Sr.remappedSymbolNames.set(aa,ln),ln)}}}function Yc(r,t,i,o){return i===void 0&&(i=16384),o?s(o).getText():e.usingSingleLineStringWriter(s);function s(c){var L=e.factory.createTypePredicateNode(r.kind===2||r.kind===3?e.factory.createToken(128):void 0,r.kind===1||r.kind===3?e.factory.createIdentifier(r.parameterName):e.factory.createThisTypeNode(),r.type&&Dr.typeToTypeNode(r.type,t,Mc(i)|70221824|512)),G=e.createPrinter({removeComments:!0}),ce=t&&e.getSourceFileOfNode(t);return G.writeNode(4,L,ce,c),c}}function Lp(r){for(var t=[],i=0,o=0;o<r.length;o++){var s=r[o];if(i|=s.flags,!(s.flags&98304)){if(s.flags&1536){var c=s.flags&512?Jn:Zs(s);if(c.flags&1048576){var L=c.types.length;if(o+L<=r.length&&kl(r[o+L-1])===kl(c.types[L-1])){t.push(c),o+=L-1;continue}}}t.push(s)}}return i&65536&&t.push(ut),i&32768&&t.push(kr),t||r}function pd(r){return r===8?"private":r===16?"protected":"public"}function Ap(r){if(r.symbol&&r.symbol.flags&2048&&r.symbol.declarations){var t=e.walkUpParenthesizedTypes(r.symbol.declarations[0].parent);if(t.kind===258)return wn(t)}}function Ul(r){return r&&r.parent&&r.parent.kind===261&&e.isExternalModuleAugmentation(r.parent.parent)}function wf(r){return r.kind===303||e.isAmbientModule(r)}function _d(r,t){var i=Ja(r).nameType;if(i){if(i.flags&384){var o=""+i.value;return!e.isIdentifierText(o,e.getEmitScriptTarget(Xe))&&!zf(o)?'"'.concat(e.escapeString(o,34),'"'):zf(o)&&e.startsWith(o,"-")?"[".concat(o,"]"):o}if(i.flags&8192)return"[".concat(Fc(i.symbol,t),"]")}}function Fc(r,t){if(t&&r.escapedName==="default"&&!(t.flags&16384)&&(!(t.flags&16777216)||!r.declarations||t.enclosingDeclaration&&e.findAncestor(r.declarations[0],wf)!==e.findAncestor(t.enclosingDeclaration,wf)))return"default";if(r.declarations&&r.declarations.length){var i=e.firstDefined(r.declarations,function(G){return e.getNameOfDeclaration(G)?G:void 0}),o=i&&e.getNameOfDeclaration(i);if(i&&o){if(e.isCallExpression(i)&&e.isBindableObjectDefinePropertyCall(i))return e.symbolName(r);if(e.isComputedPropertyName(o)&&!(e.getCheckFlags(r)&4096)){var s=Ja(r).nameType;if(s&&s.flags&384){var c=_d(r,t);if(c!==void 0)return c}}return e.declarationNameToString(o)}if(i||(i=r.declarations[0]),i.parent&&i.parent.kind===253)return e.declarationNameToString(i.parent.name);switch(i.kind){case 225:case 212:case 213:return t&&!t.encounteredError&&!(t.flags&131072)&&(t.encounteredError=!0),i.kind===225?"(Anonymous class)":"(Anonymous function)"}}var L=_d(r,t);return L!==void 0?L:e.symbolName(r)}function Qc(r){if(r){var t=Zn(r);return t.isVisible===void 0&&(t.isVisible=!!i()),t.isVisible}return!1;function i(){switch(r.kind){case 336:case 343:case 337:return!!(r.parent&&r.parent.parent&&r.parent.parent.parent&&e.isSourceFile(r.parent.parent.parent));case 202:return Qc(r.parent.parent);case 253:if(e.isBindingPattern(r.name)&&!r.name.elements.length)return!1;case 260:case 256:case 257:case 258:case 255:case 259:case 264:if(e.isExternalModuleAugmentation(r))return!0;var o=fa(r);return!(e.getCombinedModifierFlags(r)&1)&&!(r.kind!==264&&o.kind!==303&&o.flags&8388608)?Oc(o):Qc(o);case 166:case 165:case 171:case 172:case 168:case 167:if(e.hasEffectiveModifier(r,24))return!1;case 170:case 174:case 173:case 175:case 163:case 261:case 178:case 179:case 181:case 177:case 182:case 183:case 186:case 187:case 190:case 196:return Qc(r.parent);case 266:case 267:case 269:return!1;case 162:case 303:case 263:return!0;case 270:return!1;default:return!1}}}function Pf(r,t){var i;r.parent&&r.parent.kind===270?i=Uo(r,r.escapedText,2998271,void 0,r,!1):r.parent.kind===274&&(i=pl(r.parent,2998271));var o,s;return i&&(s=new e.Set,s.add(y(i)),c(i.declarations)),o;function c(L){e.forEach(L,function(G){var ce=mc(G)||G;if(t?Zn(G).isVisible=!0:(o=o||[],e.pushIfUnique(o,ce)),e.isInternalModuleImportEqualsDeclaration(G)){var we=G.moduleReference,Ue=e.getFirstIdentifier(we),Je=Uo(G,Ue.escapedText,901119,void 0,void 0,!1);Je&&s&&e.tryAddToSet(s,y(Je))&&c(Je.declarations)}})}}function E(r,t){var i=Qe(r,t);if(i>=0){for(var o=uc.length,s=i;s<o;s++)cu[s]=!1;return!1}return uc.push(r),cu.push(!0),no.push(t),!0}function Qe(r,t){for(var i=uc.length-1;i>=0;i--){if(nt(uc[i],no[i]))return-1;if(uc[i]===r&&no[i]===t)return i}return-1}function nt(r,t){switch(t){case 0:return!!Ja(r).type;case 5:return!!Zn(r).resolvedEnumType;case 2:return!!Ja(r).declaredType;case 1:return!!r.resolvedBaseConstructorType;case 3:return!!r.resolvedReturnType;case 4:return!!r.immediateBaseConstraint;case 6:return!!r.resolvedTypeArguments;case 7:return!!r.baseTypesResolved}return e.Debug.assertNever(t)}function Ot(){return uc.pop(),no.pop(),cu.pop()}function fa(r){return e.findAncestor(e.getRootDeclaration(r),function(t){switch(t.kind){case 253:case 254:case 269:case 268:case 267:case 266:return!1;default:return!0}}).parent}function Oa(r){var t=po(Ts(r));return t.typeParameters?Uf(t,e.map(t.typeParameters,function(i){return Ze})):t}function ia(r,t){var i=Ii(r,t);return i?An(i):void 0}function ti(r,t){var i;return ia(r,t)||((i=ip(r,t))===null||i===void 0?void 0:i.type)||tr}function Na(r){return r&&(r.flags&1)!==0}function Ua(r){return r===dr||!!(r.flags&1&&r.aliasSymbol)}function Go(r){var t=wn(r);return t&&Ja(t).type||ep(r,!1)}function cl(r,t,i){if(r=rl(r,function(Ue){return!(Ue.flags&98304)}),r.flags&131072)return Qn;if(r.flags&1048576)return ds(r,function(Ue){return cl(Ue,t,i)});var o=ma(e.map(t,lp));if(M_(r)||F_(o)){if(o.flags&131072)return r;var s=nO();return s?eg(s,[r,o]):dr}for(var c=e.createSymbolTable(),L=0,G=Yi(r);L<G.length;L++){var ce=G[L];!Qi(tg(ce,8576),o)&&!(e.getDeclarationModifierFlagsFromSymbol(ce)&24)&&ky(ce)&&c.set(ce.escapedName,b0(ce,!1))}var we=ts(i,c,e.emptyArray,e.emptyArray,Ms(r));return we.objectFlags|=8388608,we}function os(r){return!!(r.flags&465829888)&&Jo(l(r)||tr,32768)}function is(r){var t=hm(r,os)?ds(r,function(i){return i.flags&465829888?re(i):i}):r;return Fs(t,524288)}function Vl(r,t){var i=Zc(r);return i?b_(i,t):t}function Zc(r){var t=$c(r);if(t&&t.flowNode){var i=md(r);if(i){var o=e.setTextRange(e.parseNodeFactory.createStringLiteral(i),r),s=e.isLeftHandSideExpression(t)?t:e.parseNodeFactory.createParenthesizedExpression(t),c=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(s,o),r);return e.setParent(o,c),e.setParent(c,r),s!==t&&e.setParent(s,c),c.flowNode=t.flowNode,c}}}function $c(r){var t=r.parent.parent;switch(t.kind){case 202:case 294:return Zc(t);case 203:return Zc(r.parent);case 253:return t.initializer;case 220:return t.right}}function md(r){var t=r.parent;return r.kind===202&&t.kind===200?n_(r.propertyName||r.name):r.kind===294||r.kind===295?n_(r.name):""+t.elements.indexOf(r)}function n_(r){var t=lp(r);return t.flags&384?""+t.value:void 0}function tf(r){var t=r.parent,i=Go(t.parent);if(!i||Na(i))return i;Er&&r.flags&8388608&&e.isParameterDeclaration(r)?i=Td(i):Er&&t.parent.initializer&&!(mp(hA(t.parent.initializer))&65536)&&(i=Fs(i,524288));var o;if(t.kind===200)if(r.dotDotDotToken){if(i=Eo(i),i.flags&2||!dg(i))return Mr(r,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),dr;for(var s=[],c=0,L=t.elements;c<L.length;c++){var G=L[c];G.dotDotDotToken||s.push(G.propertyName||G.name)}o=cl(i,s,r.symbol)}else{var ce=r.propertyName||r.name,we=lp(ce),Ue=Hl(i,we,32,ce);o=Vl(r,Ue)}else{var Je=Ld(65|(r.dotDotDotToken?0:128),i,kr,t),ar=t.elements.indexOf(r);if(r.dotDotDotToken)o=Kf(i,ki)?ds(i,function(Br){return Xg(Br,ar)}):zs(Je);else if(_p(i)){var we=Wf(ar),_r=32|(fg(r)?16:0),Ue=cp(i,we,_r,r.name)||dr;o=Vl(r,Ue)}else o=Je}return r.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(r))?Er&&!(lc(Ph(r))&32768)?is(o):o:nT(r,ma([is(o),Ph(r)],2)):o}function Mf(r){var t=e.getJSDocType(r);if(t)return Da(t)}function a_(r){var t=e.skipParentheses(r,!0);return t.kind===104||t.kind===79&&Lu(t)===He}function gd(r){var t=e.skipParentheses(r,!0);return t.kind===203&&t.elements.length===0}function Wl(r,t,i){return t===void 0&&(t=!1),i===void 0&&(i=!0),Er&&i?Jf(r,t):r}function ep(r,t){if(e.isVariableDeclaration(r)&&r.parent.parent.kind===242){var i=qu(R1(ui(r.parent.parent.expression)));return i.flags&4456448?nL(i):xt}if(e.isVariableDeclaration(r)&&r.parent.parent.kind===243){var o=r.parent.parent;return Vh(o)||Ze}if(e.isBindingPattern(r.parent))return tf(r);var s=e.isPropertyDeclaration(r)||e.isPropertySignature(r),c=t&&(s&&!!r.questionToken||e.isParameter(r)&&(!!r.questionToken||Qm(r))||zE(r)),L=Ps(r);if(L)return Wl(L,s,c);if((Ke||e.isInJSFile(r))&&e.isVariableDeclaration(r)&&!e.isBindingPattern(r.name)&&!(e.getCombinedModifierFlags(r)&1)&&!(r.flags&8388608)){if(!(e.getCombinedNodeFlags(r)&2)&&(!r.initializer||a_(r.initializer)))return xr;if(r.initializer&&gd(r.initializer))return ta}if(e.isParameter(r)){var G=r.parent;if(G.kind===172&&c_(G)){var ce=e.getDeclarationOfKind(wn(r.parent),171);if(ce){var we=bu(ce),Ue=wT(G);return Ue&&r===Ue?(e.Debug.assert(!Ue.type),An(we.thisParameter)):_o(we)}}if(e.isInJSFile(r)){var Je=e.getJSDocType(G);if(Je&&e.isFunctionTypeNode(Je)){var ar=bu(Je),_r=G.parameters.indexOf(r);return r.dotDotDotToken?hg(ar,_r):Uc(ar,_r)}}var Br=r.symbol.escapedName==="this"?FA(G):GA(r);if(Br)return Wl(Br,!1,c)}if(e.hasOnlyExpressionInitializer(r)&&!!r.initializer){if(e.isInJSFile(r)&&!e.isParameter(r)){var Zr=$n(r,wn(r),e.getDeclaredExpandoInitializer(r));if(Zr)return Zr}var Br=nT(r,Ph(r));return Wl(Br,s,c)}if(e.isPropertyDeclaration(r)&&(Ke||e.isInJSFile(r)))if(e.hasStaticModifier(r)){var Tt=e.filter(r.parent.members,e.isClassStaticBlockDeclaration),Br=Tt.length?at(r.symbol,Tt):e.getEffectiveModifierFlags(r)&2?Uy(r.symbol):void 0;return Br&&Wl(Br,!0,c)}else{var Et=$u(r.parent),Br=Et?Ct(r.symbol,Et):e.getEffectiveModifierFlags(r)&2?Uy(r.symbol):void 0;return Br&&Wl(Br,!0,c)}if(e.isJsxAttribute(r))return sa;if(e.isBindingPattern(r.name))return xs(r.name,!1,!0)}function i_(r){if(r.valueDeclaration&&e.isBinaryExpression(r.valueDeclaration)){var t=Ja(r);return t.isConstructorDeclaredProperty===void 0&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!Tr(r)&&e.every(r.declarations,function(i){return e.isBinaryExpression(i)&&cb(i)&&(i.left.kind!==206||e.isStringOrNumericLiteralLike(i.left.argumentExpression))&&!wa(void 0,i,r,i)})),t.isConstructorDeclaredProperty}return!1}function xe(r){var t=r.valueDeclaration;return t&&e.isPropertyDeclaration(t)&&!e.getEffectiveTypeAnnotationNode(t)&&!t.initializer&&(Ke||e.isInJSFile(t))}function Tr(r){if(!!r.declarations)for(var t=0,i=r.declarations;t<i.length;t++){var o=i[t],s=e.getThisContainer(o,!1);if(s&&(s.kind===170||ou(s)))return s}}function Gr(r){var t=e.getSourceFileOfNode(r.declarations[0]),i=e.unescapeLeadingUnderscores(r.escapedName),o=r.declarations.every(function(c){return e.isInJSFile(c)&&e.isAccessExpression(c)&&e.isModuleExportsAccessExpression(c.expression)}),s=o?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),i):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),i);return o&&e.setParent(s.expression.expression,s.expression),e.setParent(s.expression,s),e.setParent(s,t),s.flowNode=t.endFlowNode,b_(s,xr,kr)}function at(r,t){for(var i=e.startsWith(r.escapedName,"__#")?e.factory.createPrivateIdentifier(r.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(r.escapedName),o=0,s=t;o<s.length;o++){var c=s[o],L=e.factory.createPropertyAccessExpression(e.factory.createThis(),i);e.setParent(L.expression,L),e.setParent(L,c),L.flowNode=c.returnFlowNode;var G=Xt(L,r);if(Ke&&(G===xr||G===ta)&&Mr(r.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Wa(r),gn(G)),!Kf(G,mb))return Sv(G)}}function Ct(r,t){var i=e.startsWith(r.escapedName,"__#")?e.factory.createPrivateIdentifier(r.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(r.escapedName),o=e.factory.createPropertyAccessExpression(e.factory.createThis(),i);e.setParent(o.expression,o),e.setParent(o,t),o.flowNode=t.returnFlowNode;var s=Xt(o,r);return Ke&&(s===xr||s===ta)&&Mr(r.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Wa(r),gn(s)),Kf(s,mb)?void 0:Sv(s)}function Xt(r,t){var i=(t==null?void 0:t.valueDeclaration)&&(!xe(t)||e.getEffectiveModifierFlags(t.valueDeclaration)&2)&&Uy(t)||kr;return b_(r,xr,i)}function On(r,t){var i=e.getAssignedExpandoInitializer(r.valueDeclaration);if(i){var o=e.getJSDocTypeTag(i);if(o&&o.typeExpression)return Da(o.typeExpression);var s=r.valueDeclaration&&$n(r.valueDeclaration,r,i);return s||Mp(Ss(i))}var c,L=!1,G=!1;if(i_(r)&&(c=Ct(r,Tr(r))),!c){var ce=void 0;if(r.declarations){for(var we=void 0,Ue=0,Je=r.declarations;Ue<Je.length;Ue++){var ar=Je[Ue],_r=e.isBinaryExpression(ar)||e.isCallExpression(ar)?ar:e.isAccessExpression(ar)?e.isBinaryExpression(ar.parent)?ar.parent:ar:void 0;if(!!_r){var Br=e.isAccessExpression(_r)?e.getAssignmentDeclarationPropertyAccessKind(_r):e.getAssignmentDeclarationKind(_r);(Br===4||e.isBinaryExpression(_r)&&cb(_r,Br))&&(Qo(_r)?L=!0:G=!0),e.isCallExpression(_r)||(we=wa(we,_r,r,ar)),we||(ce||(ce=[])).push(e.isBinaryExpression(_r)||e.isCallExpression(_r)?Ea(r,t,_r,Br):en)}}c=we}if(!c){if(!e.length(ce))return dr;var Zr=L&&r.declarations?$i(ce,r.declarations):void 0;if(G){var Et=Uy(r);Et&&((Zr||(Zr=[])).push(Et),L=!0)}var Tt=e.some(Zr,function(Vt){return!!(Vt.flags&-98305)})?Zr:ce;c=ma(Tt,2)}}var At=wl(Wl(c,!1,G&&!L));return r.valueDeclaration&&rl(At,function(Vt){return!!(Vt.flags&-98305)})===en?(Fp(r.valueDeclaration,Ze),Ze):At}function $n(r,t,i){var o,s;if(!(!e.isInJSFile(r)||!i||!e.isObjectLiteralExpression(i)||i.properties.length)){for(var c=e.createSymbolTable();e.isBinaryExpression(r)||e.isPropertyAccessExpression(r);){var L=wn(r);!((o=L==null?void 0:L.exports)===null||o===void 0)&&o.size&&dl(c,L.exports),r=e.isBinaryExpression(r)?r.parent:r.parent.parent}var G=wn(r);!((s=G==null?void 0:G.exports)===null||s===void 0)&&s.size&&dl(c,G.exports);var ce=ts(t,c,e.emptyArray,e.emptyArray,e.emptyArray);return ce.objectFlags|=8192,ce}}function wa(r,t,i,o){var s,c=e.getEffectiveTypeAnnotationNode(t.parent);if(c){var L=wl(Da(c));if(r)!Ua(r)&&!Ua(L)&&!jf(r,L)&&Ox(void 0,r,o,L);else return L}if(!((s=i.parent)===null||s===void 0)&&s.valueDeclaration){var G=e.getEffectiveTypeAnnotationNode(i.parent.valueDeclaration);if(G){var ce=Ii(Da(G),i.escapedName);if(ce)return Gf(ce)}}return r}function Ea(r,t,i,o){if(e.isCallExpression(i)){if(t)return An(t);var s=Ss(i.arguments[2]),c=ia(s,"value");if(c)return c;var L=ia(s,"get");if(L){var G=j_(L);if(G)return _o(G)}var ce=ia(s,"set");if(ce){var we=j_(ce);if(we)return X1(we)}return Ze}if(Ki(i.left,i.right))return Ze;var Ue=t?An(t):Mp(Ss(i.right));if(Ue.flags&524288&&o===2&&r.escapedName==="export="){var Je=Sc(Ue),ar=e.createSymbolTable();e.copyEntries(Je.members,ar);var _r=ar.size;t&&!t.exports&&(t.exports=e.createSymbolTable()),(t||r).exports.forEach(function(Zr,Et){var Tt,At=ar.get(Et);if(At&&At!==Zr)if(Zr.flags&111551&&At.flags&111551){if(Zr.valueDeclaration&&At.valueDeclaration&&e.getSourceFileOfNode(Zr.valueDeclaration)!==e.getSourceFileOfNode(At.valueDeclaration)){var Vt=e.unescapeLeadingUnderscores(Zr.escapedName),Nn=((Tt=e.tryCast(At.valueDeclaration,e.isNamedDeclaration))===null||Tt===void 0?void 0:Tt.name)||At.valueDeclaration;e.addRelatedInfo(Mr(Zr.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,Vt),e.createDiagnosticForNode(Nn,e.Diagnostics._0_was_also_declared_here,Vt)),e.addRelatedInfo(Mr(Nn,e.Diagnostics.Duplicate_identifier_0,Vt),e.createDiagnosticForNode(Zr.valueDeclaration,e.Diagnostics._0_was_also_declared_here,Vt))}var on=fo(Zr.flags|At.flags,Et);on.type=ma([An(Zr),An(At)]),on.valueDeclaration=At.valueDeclaration,on.declarations=e.concatenate(At.declarations,Zr.declarations),ar.set(Et,on)}else ar.set(Et,_s(Zr,At));else ar.set(Et,Zr)});var Br=ts(_r!==ar.size?void 0:Je.symbol,ar,Je.callSignatures,Je.constructSignatures,Je.indexInfos);return Br.objectFlags|=e.getObjectFlags(Ue)&8192,Br.symbol&&Br.symbol.flags&32&&Ue===Hn(Br.symbol)&&(Br.objectFlags|=16777216),Br}return W0(Ue)?(Fp(i,Sn),Sn):Ue}function Ki(r,t){return e.isPropertyAccessExpression(r)&&r.expression.kind===108&&e.forEachChildRecursively(t,function(i){return qs(r,i)})}function Qo(r){var t=e.getThisContainer(r,!1);return t.kind===170||t.kind===255||t.kind===212&&!e.isPrototypePropertyAssignment(t.parent)}function $i(r,t){return e.Debug.assert(r.length===t.length),r.filter(function(i,o){var s=t[o],c=e.isBinaryExpression(s)?s:e.isBinaryExpression(s.parent)?s.parent:void 0;return c&&Qo(c)})}function Ho(r,t,i){if(r.initializer){var o=e.isBindingPattern(r.name)?xs(r.name,!0,!1):tr;return Wl(nT(r,Ph(r,o)))}return e.isBindingPattern(r.name)?xs(r.name,t,i):(i&&!ul(r)&&Fp(r,Ze),t?yt:Ze)}function gs(r,t,i){var o=e.createSymbolTable(),s,c=262272;e.forEach(r.elements,function(G){var ce=G.propertyName||G.name;if(G.dotDotDotToken){s=Eu(xt,Ze,!1);return}var we=lp(ce);if(!gu(we)){c|=512;return}var Ue=vu(we),Je=4|(G.initializer?16777216:0),ar=fo(Je,Ue);ar.type=Ho(G,t,i),ar.bindingElement=G,o.set(ar.escapedName,ar)});var L=ts(void 0,o,e.emptyArray,e.emptyArray,s?[s]:e.emptyArray);return L.objectFlags|=c,t&&(L.pattern=r,L.objectFlags|=262144),L}function _l(r,t,i){var o=r.elements,s=e.lastOrUndefined(o),c=s&&s.kind===202&&s.dotDotDotToken?s:void 0;if(o.length===0||o.length===1&&c)return De>=2?iO(Ze):Sn;var L=e.map(o,function(Ue){return e.isOmittedExpression(Ue)?Ze:Ho(Ue,t,i)}),G=e.findLastIndex(o,function(Ue){return!(Ue===c||e.isOmittedExpression(Ue)||fg(Ue))},o.length-1)+1,ce=e.map(o,function(Ue,Je){return Ue===c?4:Je>=G?2:1}),we=Tu(L,ce);return t&&(we=ED(we),we.pattern=r,we.objectFlags|=262144),we}function xs(r,t,i){return t===void 0&&(t=!1),i===void 0&&(i=!1),r.kind===200?gs(r,t,i):_l(r,t,i)}function Cl(r,t){return ju(ep(r,!0),r,t)}function bl(r){var t=wn(r),i=Jk(!1);return i&&t&&t===i}function ju(r,t,i){return r?(r.flags&4096&&bl(t.parent)&&(r=T0(t)),i&&qy(t,r),r.flags&8192&&(e.isBindingElement(t)||!t.type)&&r.symbol!==wn(t)&&(r=na),wl(r)):(r=e.isParameter(t)&&t.dotDotDotToken?Sn:Ze,i&&(ul(t)||Fp(t,r)),r)}function ul(r){var t=e.getRootDeclaration(r),i=t.kind===163?t.parent:t;return Ob(i)}function Ps(r){var t=e.getEffectiveTypeAnnotationNode(r);if(t)return Da(t)}function Ff(r){var t=Ja(r);if(!t.type){var i=_u(r);t.type||(t.type=i)}return t.type}function _u(r){if(r.flags&4194304)return Oa(r);if(r===ze)return Ze;if(r.flags&134217728&&r.valueDeclaration){var t=wn(e.getSourceFileOfNode(r.valueDeclaration)),i=fo(t.flags,"exports");i.declarations=t.declarations?t.declarations.slice():[],i.parent=r,i.target=t,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),t.members&&(i.members=new e.Map(t.members)),t.exports&&(i.exports=new e.Map(t.exports));var o=e.createSymbolTable();return o.set("exports",i),ts(r,o,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(r.valueDeclaration);var s=r.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(c===void 0)return Hr?tr:Ze;var L=jp(c);return Na(L)||L===tr?L:dr}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?wl(Mp(ui(s.statements[0].expression))):Qn;if(!E(r,0))return r.flags&512&&!(r.flags&67108864)?Io(r):tp(r);var G;if(s.kind===270)G=ju(Ps(s)||Ss(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))G=On(r);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(r.flags&9136)return Io(r);G=e.isBinaryExpression(s.parent)?On(r):Ps(s)||Ze}else if(e.isPropertyAssignment(s))G=Ps(s)||lx(s);else if(e.isJsxAttribute(s))G=Ps(s)||qA(s);else if(e.isShorthandPropertyAssignment(s))G=Ps(s)||bg(s.name,0);else if(e.isObjectLiteralMethod(s))G=Ps(s)||cx(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))G=Cl(s,!0);else if(e.isEnumDeclaration(s))G=Io(r);else if(e.isEnumMember(s))G=rp(r);else if(e.isAccessor(s))G=an(r)||e.Debug.fail("Non-write accessor resolution must always produce a type");else return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(r));return Ot()?G:r.flags&512&&!(r.flags&67108864)?Io(r):tp(r)}function ml(r){if(r)if(r.kind===171){var t=e.getEffectiveReturnTypeNode(r);return t}else{var i=e.getEffectiveSetAccessorTypeAnnotationNode(r);return i}}function _(r){var t=ml(r);return t&&Da(t)}function W(r){var t=wT(r);return t&&t.symbol}function be(r){return d_(bu(r))}function nr(r){var t=Ja(r);return t.type||(t.type=Ht(r)||e.Debug.fail("Read type of accessor must always produce a type"))}function Ur(r){var t=Ja(r);return t.writeType||(t.writeType=Ht(r,!0))}function Ht(r,t){if(t===void 0&&(t=!1),!E(r,0))return dr;var i=an(r,t);if(!Ot()&&(i=Ze,Ke)){var o=e.getDeclarationOfKind(r,171);Mr(o,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,Wa(r))}return i}function an(r,t){t===void 0&&(t=!1);var i=e.getDeclarationOfKind(r,171),o=e.getDeclarationOfKind(r,172),s=_(o);if(t&&s)return ce(s,r);if(i&&e.isInJSFile(i)){var c=Mf(i);if(c)return ce(c,r)}var L=_(i);if(L)return ce(L,r);if(s)return s;if(i&&i.body){var G=xb(i);return ce(G,r)}if(o)return Ob(o)||pc(Ke,o,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Wa(r)),Ze;if(i)return e.Debug.assert(!!i,"there must exist a getter as we are current checking either setter or getter in this function"),Ob(i)||pc(Ke,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Wa(r)),Ze;return;function ce(we,Ue){if(e.getCheckFlags(Ue)&1){var Je=Ja(Ue);return oi(we,Je.mapper)}return we}}function si(r){var t=Ju(Hn(r));return t.flags&8650752?t:t.flags&2097152?e.find(t.types,function(i){return!!(i.flags&8650752)}):void 0}function Io(r){var t=Ja(r),i=t;if(!t.type){var o=r.valueDeclaration&&Lb(r.valueDeclaration,!1);if(o){var s=z1(r,o);s&&(r=t=s)}i.type=t.type=vs(r)}return t.type}function vs(r){var t=r.valueDeclaration;if(r.flags&1536&&e.isShorthandAmbientModuleSymbol(r))return Ze;if(t&&(t.kind===220||e.isAccessExpression(t)&&t.parent.kind===220))return On(r);if(r.flags&512&&t&&e.isSourceFile(t)&&t.commonJsModuleIndicator){var i=ll(r);if(i!==r){if(!E(r,0))return dr;var o=Ga(r.exports.get("export=")),s=On(o,o===i?void 0:i);return Ot()?s:tp(r)}}var c=Bl(16,r);if(r.flags&32){var L=si(r);return L?To([c,L]):c}else return Er&&r.flags&16777216?Jf(c):c}function rp(r){var t=Ja(r);return t.type||(t.type=jl(r))}function Gc(r){var t=Ja(r);if(!t.type){var i=ms(r),o=r.declarations&&mo(ec(r),!0),s=e.firstDefined(o==null?void 0:o.declarations,function(c){return e.isExportAssignment(c)?Ps(c):void 0});t.type=(o==null?void 0:o.declarations)&&jb(o.declarations)&&r.declarations.length?Gr(o):jb(r.declarations)?xr:s||(i.flags&111551?An(i):dr)}return t.type}function Gm(r){var t=Ja(r);if(!t.type){if(!E(r,0))return t.type=dr;var i=oi(An(t.target),t.mapper);Ot()||(i=tp(r)),t.type=i}return t.type}function tp(r){var t=r.valueDeclaration;return e.getEffectiveTypeAnnotationNode(t)?(Mr(r.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Wa(r)),dr):(Ke&&(t.kind!==163||t.initializer)&&Mr(r.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,Wa(r)),Ze)}function Bm(r){var t=Ja(r);return t.type||(e.Debug.assertIsDefined(t.deferralParent),e.Debug.assertIsDefined(t.deferralConstituents),t.type=t.deferralParent.flags&1048576?ma(t.deferralConstituents):To(t.deferralConstituents)),t.type}function Fv(r){if(r.flags&98304){var t=Ur(r);if(t)return t}return An(r)}function An(r){var t=e.getCheckFlags(r);return t&65536?Bm(r):t&1?Gm(r):t&262144?BE(r):t&8192?lw(r):r.flags&7?Ff(r):r.flags&9136?Io(r):r.flags&8?rp(r):r.flags&98304?nr(r):r.flags&2097152?Gc(r):dr}function Gf(r){return gm(An(r),!!(r.flags&16777216))}function nf(r,t){return r!==void 0&&t!==void 0&&(e.getObjectFlags(r)&4)!==0&&r.target===t}function O_(r){return e.getObjectFlags(r)&4?r.target:r}function Cp(r,t){return i(r);function i(o){if(e.getObjectFlags(o)&7){var s=O_(o);return s===t||e.some(xl(s),i)}else if(o.flags&2097152)return e.some(o.types,i);return!1}}function Um(r,t){for(var i=0,o=t;i<o.length;i++){var s=o[i];r=e.appendIfUnique(r,vl(wn(s)))}return r}function Hu(r,t){for(;;){if(r=r.parent,r&&e.isBinaryExpression(r)){var i=e.getAssignmentDeclarationKind(r);if(i===6||i===3){var o=wn(r.left);o&&o.parent&&!e.findAncestor(o.parent.valueDeclaration,function(ce){return r===ce})&&(r=o.parent.valueDeclaration)}}if(!r)return;switch(r.kind){case 256:case 225:case 257:case 173:case 174:case 167:case 178:case 179:case 315:case 255:case 168:case 212:case 213:case 258:case 342:case 343:case 337:case 336:case 194:case 188:{var s=Hu(r,t);if(r.kind===194)return e.append(s,vl(wn(r.typeParameter)));if(r.kind===188)return e.concatenate(s,pL(r));var c=Um(s,e.getEffectiveTypeParameterDeclarations(r)),L=t&&(r.kind===256||r.kind===225||r.kind===257||ou(r))&&Hn(wn(r)).thisType;return L?e.append(c,L):c}case 338:var G=e.getParameterSymbolFromJSDoc(r);G&&(r=G.valueDeclaration);break;case 318:{var s=Hu(r,t);return r.tags?Um(s,e.flatMap(r.tags,function(we){return e.isJSDocTemplateTag(we)?we.typeParameters:void 0})):s}}}}function rm(r){var t=r.flags&32?r.valueDeclaration:e.getDeclarationOfKind(r,257);return e.Debug.assert(!!t,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Hu(t)}function mu(r){if(!!r.declarations){for(var t,i=0,o=r.declarations;i<o.length;i++){var s=o[i];if(s.kind===257||s.kind===256||s.kind===225||ou(s)||e.isTypeAlias(s)){var c=s;t=Um(t,e.getEffectiveTypeParameterDeclarations(c))}}return t}}function Gv(r){return e.concatenate(rm(r),mu(r))}function o_(r){var t=Ni(r,1);if(t.length===1){var i=t[0];if(!i.typeParameters&&i.parameters.length===1&&ue(i)){var o=dv(i.parameters[0]);return Na(o)||U0(o)===Ze}}return!1}function tm(r){if(Ni(r,1).length>0)return!0;if(r.flags&8650752){var t=l(r);return!!t&&o_(t)}return!1}function s_(r){return e.getEffectiveBaseTypeNode(r.symbol.valueDeclaration)}function vd(r,t,i){var o=e.length(t),s=e.isInJSFile(i);return e.filter(Ni(r,1),function(c){return(s||o>=lf(c.typeParameters))&&o<=e.length(c.typeParameters)})}function Vm(r,t,i){var o=vd(r,t,i),s=e.map(t,Da);return e.sameMap(o,function(c){return e.some(c.typeParameters)?ah(c,s,e.isInJSFile(i)):c})}function Ju(r){if(!r.resolvedBaseConstructorType){var t=r.symbol.valueDeclaration,i=e.getEffectiveBaseTypeNode(t),o=s_(r);if(!o)return r.resolvedBaseConstructorType=kr;if(!E(r,1))return dr;var s=ui(o.expression);if(i&&o!==i&&(e.Debug.assert(!i.typeArguments),ui(i.expression)),s.flags&2621440&&Sc(s),!Ot())return Mr(r.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Wa(r.symbol)),r.resolvedBaseConstructorType=dr;if(!(s.flags&1)&&s!==ht&&!tm(s)){var c=Mr(o.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,gn(s));if(s.flags&262144){var L=$m(s),G=tr;if(L){var ce=Ni(L,1);ce[0]&&(G=_o(ce[0]))}s.symbol.declarations&&e.addRelatedInfo(c,e.createDiagnosticForNode(s.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Wa(s.symbol),gn(G)))}return r.resolvedBaseConstructorType=dr}r.resolvedBaseConstructorType=s}return r.resolvedBaseConstructorType}function Bv(r){var t=e.emptyArray;if(r.symbol.declarations)for(var i=0,o=r.symbol.declarations;i<o.length;i++){var s=o[i],c=e.getEffectiveImplementsTypeNodes(s);if(!!c)for(var L=0,G=c;L<G.length;L++){var ce=G[L],we=Da(ce);Ua(we)||(t===e.emptyArray?t=[we]:t.push(we))}}return t}function Pg(r,t){Mr(r,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,gn(t,void 0,2))}function xl(r){if(!r.baseTypesResolved){if(E(r,7)&&(r.objectFlags&8?r.resolvedBaseTypes=[Mg(r)]:r.symbol.flags&96?(r.symbol.flags&32&&xp(r),r.symbol.flags&64&&un(r)):e.Debug.fail("type must be class or interface"),!Ot()&&r.symbol.declarations))for(var t=0,i=r.symbol.declarations;t<i.length;t++){var o=i[t];(o.kind===256||o.kind===257)&&Pg(o,r)}r.baseTypesResolved=!0}return r.resolvedBaseTypes}function Mg(r){var t=e.sameMap(r.typeParameters,function(i,o){return r.elementFlags[o]&8?Hl(i,wt):i});return zs(ma(t||e.emptyArray),r.readonly)}function xp(r){r.resolvedBaseTypes=e.resolvingEmptyArray;var t=wi(Ju(r));if(!(t.flags&2621441))return r.resolvedBaseTypes=e.emptyArray;var i=s_(r),o,s=t.symbol?po(t.symbol):void 0;if(t.symbol&&t.symbol.flags&32&&Fg(s))o=TD(i,t.symbol);else if(t.flags&1)o=t;else{var c=Vm(t,i.typeArguments,i);if(!c.length)return Mr(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),r.resolvedBaseTypes=e.emptyArray;o=_o(c[0])}if(Ua(o))return r.resolvedBaseTypes=e.emptyArray;var L=Eo(o);if(!Ku(L)){var G=zm(void 0,o),ce=e.chainDiagnosticMessages(G,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,gn(L));return ua.add(e.createDiagnosticForNodeFromMessageChain(i.expression,ce)),r.resolvedBaseTypes=e.emptyArray}return r===L||Cp(L,r)?(Mr(r.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,gn(r,void 0,2)),r.resolvedBaseTypes=e.emptyArray):(r.resolvedBaseTypes===e.resolvingEmptyArray&&(r.members=void 0),r.resolvedBaseTypes=[L])}function Fg(r){var t=r.outerTypeParameters;if(t){var i=t.length-1,o=vo(r);return t[i].symbol!==o[i].symbol}return!0}function Ku(r){if(r.flags&262144){var t=l(r);if(t)return Ku(t)}return!!(r.flags&67633153&&!El(r)||r.flags&2097152&&e.every(r.types,Ku))}function un(r){if(r.resolvedBaseTypes=r.resolvedBaseTypes||e.emptyArray,r.symbol.declarations)for(var t=0,i=r.symbol.declarations;t<i.length;t++){var o=i[t];if(o.kind===257&&e.getInterfaceBaseTypeNodes(o))for(var s=0,c=e.getInterfaceBaseTypeNodes(o);s<c.length;s++){var L=c[s],G=Eo(Da(L));Ua(G)||(Ku(G)?r!==G&&!Cp(G,r)?r.resolvedBaseTypes===e.emptyArray?r.resolvedBaseTypes=[G]:r.resolvedBaseTypes.push(G):Pg(o,r):Mr(L,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function pa(r){if(!r.declarations)return!0;for(var t=0,i=r.declarations;t<i.length;t++){var o=i[t];if(o.kind===257){if(o.flags&128)return!1;var s=e.getInterfaceBaseTypeNodes(o);if(s)for(var c=0,L=s;c<L.length;c++){var G=L[c];if(e.isEntityNameExpression(G.expression)){var ce=rs(G.expression,788968,!0);if(!ce||!(ce.flags&64)||Hn(ce).thisType)return!1}}}}return!0}function Hn(r){var t=Ja(r),i=t;if(!t.declaredType){var o=r.flags&32?1:2,s=z1(r,r.valueDeclaration&&YM(r.valueDeclaration));s&&(r=t=s);var c=i.declaredType=t.declaredType=Bl(o,r),L=rm(r),G=mu(r);(L||G||o===1||!pa(r))&&(c.objectFlags|=4,c.typeParameters=e.concatenate(L,G),c.outerTypeParameters=L,c.localTypeParameters=G,c.instantiations=new e.Map,c.instantiations.set(sc(c.typeParameters),c),c.target=c,c.resolvedTypeArguments=c.typeParameters,c.thisType=nc(r),c.thisType.isThisType=!0,c.thisType.constraint=c)}return t.declaredType}function Sa(r){var t,i=Ja(r);if(!i.declaredType){if(!E(r,2))return dr;var o=e.Debug.checkDefined((t=r.declarations)===null||t===void 0?void 0:t.find(e.isTypeAlias),"Type alias symbol with no valid declaration found"),s=e.isJSDocTypeAlias(o)?o.typeExpression:o.type,c=s?Da(s):dr;if(Ot()){var L=mu(r);L&&(i.typeParameters=L,i.instantiations=new e.Map,i.instantiations.set(sc(L),c))}else c=dr,o.kind===337?Mr(o.typeExpression.type,e.Diagnostics.Type_alias_0_circularly_references_itself,Wa(r)):Mr(e.isNamedDeclaration(o)?o.name:o||o,e.Diagnostics.Type_alias_0_circularly_references_itself,Wa(r));i.declaredType=c}return i.declaredType}function Za(r){return e.isStringLiteralLike(r)?!0:r.kind===220?Za(r.left)&&Za(r.right):!1}function zi(r){var t=r.initializer;if(!t)return!(r.flags&8388608);switch(t.kind){case 10:case 8:case 14:return!0;case 218:return t.operator===40&&t.operand.kind===8;case 79:return e.nodeIsMissing(t)||!!wn(r.parent).exports.get(t.escapedText);case 220:return Za(t);default:return!1}}function Bo(r){var t=Ja(r);if(t.enumKind!==void 0)return t.enumKind;var i=!1;if(r.declarations)for(var o=0,s=r.declarations;o<s.length;o++){var c=s[o];if(c.kind===259)for(var L=0,G=c.members;L<G.length;L++){var ce=G[L];if(ce.initializer&&e.isStringLiteralLike(ce.initializer))return t.enumKind=1;zi(ce)||(i=!0)}}return t.enumKind=i?0:1}function Zs(r){return r.flags&1024&&!(r.flags&1048576)?po(Ts(r.symbol)):r}function gl(r){var t=Ja(r);if(t.declaredType)return t.declaredType;if(Bo(r)===1){Ie++;var i=[];if(r.declarations)for(var o=0,s=r.declarations;o<s.length;o++){var c=s[o];if(c.kind===259)for(var L=0,G=c.members;L<G.length;L++){var ce=G[L],we=Xb(ce),Ue=fm(qO(we!==void 0?we:0,Ie,wn(ce)));Ja(wn(ce)).declaredType=Ue,i.push(kl(Ue))}}if(i.length){var Je=ma(i,1,r,void 0);return Je.flags&1048576&&(Je.flags|=1024,Je.symbol=r),t.declaredType=Je}}var ar=Qs(32);return ar.symbol=r,t.declaredType=ar}function jl(r){var t=Ja(r);if(!t.declaredType){var i=gl(Ts(r));t.declaredType||(t.declaredType=i)}return t.declaredType}function vl(r){var t=Ja(r);return t.declaredType||(t.declaredType=nc(r))}function Bf(r){var t=Ja(r);return t.declaredType||(t.declaredType=po(ms(r)))}function po(r){return l_(r)||dr}function l_(r){if(r.flags&96)return Hn(r);if(r.flags&524288)return Sa(r);if(r.flags&262144)return vl(r);if(r.flags&384)return gl(r);if(r.flags&8)return jl(r);if(r.flags&2097152)return Bf(r)}function np(r){switch(r.kind){case 130:case 154:case 149:case 146:case 157:case 133:case 150:case 147:case 114:case 152:case 143:case 195:return!0;case 182:return np(r.elementType);case 177:return!r.typeArguments||r.typeArguments.every(np)}return!1}function nm(r){var t=e.getEffectiveConstraintOfTypeParameter(r);return!t||np(t)}function am(r){var t=e.getEffectiveTypeAnnotationNode(r);return t?np(t):!e.hasInitializer(r)}function IE(r){var t=e.getEffectiveReturnTypeNode(r),i=e.getEffectiveTypeParameterDeclarations(r);return(r.kind===170||!!t&&np(t))&&r.parameters.every(am)&&i.every(nm)}function NE(r){if(r.declarations&&r.declarations.length===1){var t=r.declarations[0];if(t)switch(t.kind){case 166:case 165:return am(t);case 168:case 167:case 170:case 171:case 172:return IE(t)}}return!1}function oy(r,t,i){for(var o=e.createSymbolTable(),s=0,c=r;s<c.length;s++){var L=c[s];o.set(L.escapedName,i&&NE(L)?L:S0(L,t))}return o}function Gg(r,t){for(var i=0,o=t;i<o.length;i++){var s=o[i];!r.has(s.escapedName)&&!Uv(s)&&r.set(s.escapedName,s)}}function Uv(r){return!!r.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(r.valueDeclaration)&&e.isStatic(r.valueDeclaration)}function Bg(r){if(!r.declaredProperties){var t=r.symbol,i=af(t);r.declaredProperties=Bu(i),r.declaredCallSignatures=e.emptyArray,r.declaredConstructSignatures=e.emptyArray,r.declaredIndexInfos=e.emptyArray,r.declaredCallSignatures=Op(i.get("__call")),r.declaredConstructSignatures=Op(i.get("__new")),r.declaredIndexInfos=vD(t)}return r}function gu(r){return!!(r.flags&8576)}function Ug(r){if(!e.isComputedPropertyName(r)&&!e.isElementAccessExpression(r))return!1;var t=e.isComputedPropertyName(r)?r.expression:r.argumentExpression;return e.isEntityNameExpression(t)&&gu(e.isComputedPropertyName(r)?qf(r):Ss(t))}function Ip(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===64}function R_(r){var t=e.getNameOfDeclaration(r);return!!t&&Ug(t)}function c_(r){return!e.hasDynamicName(r)||R_(r)}function kE(r){return e.isDynamicName(r)&&!Ug(r)}function vu(r){return r.flags&8192?r.escapedName:r.flags&384?e.escapeLeadingUnderscores(""+r.value):e.Debug.fail()}function Vv(r,t,i){e.Debug.assert(!!(e.getCheckFlags(r)&4096),"Expected a late-bound symbol."),r.flags|=i,Ja(t.symbol).lateSymbol=r,r.declarations?t.symbol.isReplaceableByMethod||r.declarations.push(t):r.declarations=[t],i&111551&&(!r.valueDeclaration||r.valueDeclaration.kind!==t.kind)&&(r.valueDeclaration=t)}function Wv(r,t,i,o){e.Debug.assert(!!o.symbol,"The member is expected to have a symbol.");var s=Zn(o);if(!s.resolvedSymbol){s.resolvedSymbol=o.symbol;var c=e.isBinaryExpression(o)?o.left:o.name,L=e.isElementAccessExpression(c)?Ss(c.argumentExpression):qf(c);if(gu(L)){var G=vu(L),ce=o.symbol.flags,we=i.get(G);we||i.set(G,we=fo(0,G,4096));var Ue=t&&t.get(G);if(we.flags&Zf(ce)||Ue){var Je=Ue?e.concatenate(Ue.declarations,we.declarations):we.declarations,ar=!(L.flags&8192)&&e.unescapeLeadingUnderscores(G)||e.declarationNameToString(c);e.forEach(Je,function(_r){return Mr(e.getNameOfDeclaration(_r)||_r,e.Diagnostics.Property_0_was_also_declared_here,ar)}),Mr(c||o,e.Diagnostics.Duplicate_property_0,ar),we=fo(0,G,4096)}return we.nameType=L,Vv(we,o,ce),we.parent?e.Debug.assert(we.parent===r,"Existing symbol parent should match new one"):we.parent=r,s.resolvedSymbol=we}}return s.resolvedSymbol}function im(r,t){var i=Ja(r);if(!i[t]){var o=t==="resolvedExports",s=o?r.flags&1536?fd(r):r.exports:r.members;i[t]=s||Le;for(var c=e.createSymbolTable(),L=0,G=r.declarations||e.emptyArray;L<G.length;L++){var ce=G[L],we=e.getMembersOfDeclaration(ce);if(we)for(var Ue=0,Je=we;Ue<Je.length;Ue++){var ar=Je[Ue];o===e.hasStaticModifier(ar)&&R_(ar)&&Wv(r,s,c,ar)}}var _r=r.assignmentDeclarationMembers;if(_r)for(var Br=e.arrayFrom(_r.values()),Zr=0,Et=Br;Zr<Et.length;Zr++){var ar=Et[Zr],Tt=e.getAssignmentDeclarationKind(ar),At=Tt===3||e.isBinaryExpression(ar)&&cb(ar,Tt)||Tt===9||Tt===6;o===!At&&R_(ar)&&Wv(r,s,c,ar)}i[t]=qp(s,c)||Le}return i[t]}function af(r){return r.flags&6256?im(r,"resolvedMembers"):r.members||Le}function Vg(r){if(r.flags&106500&&r.escapedName==="__computed"){var t=Ja(r);if(!t.lateSymbol&&e.some(r.declarations,R_)){var i=Ga(r.parent);e.some(r.declarations,e.hasStaticModifier)?Js(i):af(i)}return t.lateSymbol||(t.lateSymbol=r)}return r}function Il(r,t,i){if(e.getObjectFlags(r)&4){var o=r.target,s=vo(r);if(e.length(o.typeParameters)===e.length(s)){var c=Uf(o,e.concatenate(s,[t||o.thisType]));return i?wi(c):c}}else if(r.flags&2097152){var L=e.sameMap(r.types,function(G){return Il(G,t,i)});return L!==r.types?To(L):r}return i?wi(r):r}function sy(r,t,i,o){var s,c,L,G,ce;e.rangeEquals(i,o,0,i.length)?(c=t.symbol?af(t.symbol):e.createSymbolTable(t.declaredProperties),L=t.declaredCallSignatures,G=t.declaredConstructSignatures,ce=t.declaredIndexInfos):(s=Ol(i,o),c=oy(t.declaredProperties,s,i.length===1),L=wy(t.declaredCallSignatures,s),G=wy(t.declaredConstructSignatures,s),ce=yL(t.declaredIndexInfos,s));var we=xl(t);if(we.length){t.symbol&&c===af(t.symbol)&&(c=e.createSymbolTable(t.declaredProperties)),Al(r,c,L,G,ce);for(var Ue=e.lastOrUndefined(o),Je=0,ar=we;Je<ar.length;Je++){var _r=ar[Je],Br=Ue?Il(oi(_r,s),Ue):_r;Gg(c,Yi(Br)),L=e.concatenate(L,Ni(Br,0)),G=e.concatenate(G,Ni(Br,1));var Zr=Br!==Ze?Ms(Br):[Eu(xt,Ze,!1)];ce=e.concatenate(ce,e.filter(Zr,function(Et){return!$v(ce,Et.keyType)}))}}Al(r,c,L,G,ce)}function ly(r){sy(r,Bg(r),e.emptyArray,e.emptyArray)}function OE(r){var t=Bg(r.target),i=e.concatenate(t.typeParameters,[t.thisType]),o=vo(r),s=o.length===i.length?o:e.concatenate(o,[r]);sy(r,t,i,s)}function hu(r,t,i,o,s,c,L,G){var ce=new ge(Yr,G);return ce.declaration=r,ce.typeParameters=t,ce.parameters=o,ce.thisParameter=i,ce.resolvedReturnType=s,ce.resolvedTypePredicate=c,ce.minArgumentCount=L,ce.resolvedMinArgumentCount=void 0,ce.target=void 0,ce.mapper=void 0,ce.compositeSignatures=void 0,ce.compositeKind=void 0,ce}function Np(r){var t=hu(r.declaration,r.typeParameters,r.thisParameter,r.parameters,void 0,void 0,r.minArgumentCount,r.flags&39);return t.target=r.target,t.mapper=r.mapper,t.compositeSignatures=r.compositeSignatures,t.compositeKind=r.compositeKind,t}function cy(r,t){var i=Np(r);return i.compositeSignatures=t,i.compositeKind=1048576,i.target=void 0,i.mapper=void 0,i}function uy(r,t){if((r.flags&24)===t)return r;r.optionalCallSignatureCache||(r.optionalCallSignatureCache={});var i=t===8?"inner":"outer";return r.optionalCallSignatureCache[i]||(r.optionalCallSignatureCache[i]=fy(r,t))}function fy(r,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 i=Np(r);return i.flags|=t,i}function dy(r,t){if(ue(r)){var i=r.parameters.length-1,o=An(r.parameters[i]);if(ki(o))return[s(o,i)];if(!t&&o.flags&1048576&&e.every(o.types,ki))return e.map(o.types,function(c){return s(c,i)})}return[r.parameters];function s(c,L){var G=vo(c),ce=c.target.labeledElementDeclarations,we=e.map(G,function(Ue,Je){var ar=!!ce&&Cb(ce[Je]),_r=ar||vg(r,L+Je,c),Br=c.target.elementFlags[Je],Zr=Br&12?32768:Br&2?16384:0,Et=fo(1,_r,Zr);return Et.type=Br&4?zs(Ue):Ue,Et});return e.concatenate(r.parameters.slice(0,L),we)}}function RE(r){var t=Ju(r),i=Ni(t,1),o=e.getClassLikeDeclarationOfSymbol(r.symbol),s=!!o&&e.hasSyntacticModifier(o,128);if(i.length===0)return[hu(void 0,r.localTypeParameters,void 0,e.emptyArray,r,void 0,0,s?4:0)];for(var c=s_(r),L=e.isInJSFile(c),G=xy(c),ce=e.length(G),we=[],Ue=0,Je=i;Ue<Je.length;Ue++){var ar=Je[Ue],_r=lf(ar.typeParameters),Br=e.length(ar.typeParameters);if(L||ce>=_r&&ce<=Br){var Zr=Br?Sy(ar,P_(G,ar.typeParameters,_r,L)):Np(ar);Zr.typeParameters=r.localTypeParameters,Zr.resolvedReturnType=r,Zr.flags=s?Zr.flags|4:Zr.flags&-5,we.push(Zr)}}return we}function jv(r,t,i,o,s){for(var c=0,L=r;c<L.length;c++){var G=L[c];if(gh(G,t,i,o,s,i?pR:ev))return G}}function wE(r,t,i){if(t.typeParameters){if(i>0)return;for(var o=1;o<r.length;o++)if(!jv(r[o],t,!1,!1,!1))return;return[t]}for(var s,o=0;o<r.length;o++){var c=o===i?t:jv(r[o],t,!0,!1,!0);if(!c)return;s=e.appendIfUnique(s,c)}return s}function Wg(r){for(var t,i,o=0;o<r.length;o++){if(r[o].length===0)return e.emptyArray;r[o].length>1&&(i=i===void 0?o:-1);for(var s=0,c=r[o];s<c.length;s++){var L=c[s];if(!t||!jv(t,L,!1,!1,!0)){var G=wE(r,L,o);if(G){var ce=L;if(G.length>1){var we=L.thisParameter,Ue=e.forEach(G,function(Vt){return Vt.thisParameter});if(Ue){var Je=To(e.mapDefined(G,function(Vt){return Vt.thisParameter&&An(Vt.thisParameter)}));we=V_(Ue,Je)}ce=cy(L,G),ce.thisParameter=we}(t||(t=[])).push(ce)}}}}if(!e.length(t)&&i!==-1){for(var ar=r[i!==void 0?i:0],_r=ar.slice(),Br=function(Vt){if(Vt!==ar){var Nn=Vt[0];if(e.Debug.assert(!!Nn,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_r=!!Nn.typeParameters&&e.some(_r,function(on){return!!on.typeParameters&&!py(Nn.typeParameters,on.typeParameters)})?void 0:e.map(_r,function(on){return _y(on,Nn)}),!_r)return"break"}},Zr=0,Et=r;Zr<Et.length;Zr++){var Tt=Et[Zr],At=Br(Tt);if(At==="break")break}t=_r}return t||e.emptyArray}function py(r,t){if(e.length(r)!==e.length(t))return!1;if(!r||!t)return!0;for(var i=Ol(t,r),o=0;o<r.length;o++){var s=r[o],c=t[o];if(s!==c&&!jf($m(s)||tr,oi($m(c)||tr,i)))return!1}return!0}function Hv(r,t,i){if(!r||!t)return r||t;var o=To([An(r),oi(An(t),i)]);return V_(r,o)}function Wm(r,t,i){for(var o=Tl(r),s=Tl(t),c=o>=s?r:t,L=c===r?t:r,G=c===r?o:s,ce=xu(r)||xu(t),we=ce&&!xu(c),Ue=new Array(G+(we?1:0)),Je=0;Je<G;Je++){var ar=T_(c,Je);c===t&&(ar=oi(ar,i));var _r=T_(L,Je)||tr;L===t&&(_r=oi(_r,i));var Br=To([ar,_r]),Zr=ce&&!we&&Je===G-1,Et=Je>=Cu(c)&&Je>=Cu(L),Tt=Je>=o?void 0:vg(r,Je),At=Je>=s?void 0:vg(t,Je),Vt=Tt===At?Tt:Tt?At?void 0:Tt:At,Nn=fo(1|(Et&&!Zr?16777216:0),Vt||"arg".concat(Je));Nn.type=Zr?zs(Br):Br,Ue[Je]=Nn}if(we){var on=fo(1,"args");on.type=zs(Uc(L,G)),L===t&&(on.type=oi(on.type,i)),Ue[G]=on}return Ue}function _y(r,t){var i=r.typeParameters||t.typeParameters,o;r.typeParameters&&t.typeParameters&&(o=Ol(t.typeParameters,r.typeParameters));var s=r.declaration,c=Wm(r,t,o),L=Hv(r.thisParameter,t.thisParameter,o),G=Math.max(r.minArgumentCount,t.minArgumentCount),ce=hu(s,i,L,c,void 0,void 0,G,(r.flags|t.flags)&39);return ce.compositeKind=1048576,ce.compositeSignatures=e.concatenate(r.compositeKind!==2097152&&r.compositeSignatures||[r],[t]),o&&(ce.mapper=r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures?m_(r.mapper,o):o),ce}function Jv(r){var t=Ms(r[0]);if(t){for(var i=[],o=function(G){var ce=G.keyType;e.every(r,function(we){return!!oc(we,ce)})&&i.push(Eu(ce,ma(e.map(r,function(we){return tu(we,ce)})),e.some(r,function(we){return oc(we,ce).isReadonly})))},s=0,c=t;s<c.length;s++){var L=c[s];o(L)}return i}return e.emptyArray}function PE(r){var t=Wg(e.map(r.types,function(s){return s===Oe?[lo]:Ni(s,0)})),i=Wg(e.map(r.types,function(s){return Ni(s,1)})),o=Jv(r.types);Al(r,Le,t,i,o)}function om(r,t){return r?t?To([r,t]):r:t}function my(r){var t=e.countWhere(r,function(s){return Ni(s,1).length>0}),i=e.map(r,o_);if(t>0&&t===e.countWhere(i,function(s){return s})){var o=i.indexOf(!0);i[o]=!1}return i}function jg(r,t,i,o){for(var s=[],c=0;c<t.length;c++)c===o?s.push(r):i[c]&&s.push(_o(Ni(t[c],1)[0]));return To(s)}function gy(r){for(var t,i,o,s=r.types,c=my(s),L=e.countWhere(c,function(we){return we}),G=function(we){var Ue=r.types[we];if(!c[we]){var Je=Ni(Ue,1);Je.length&&L>0&&(Je=e.map(Je,function(ar){var _r=Np(ar);return _r.resolvedReturnType=jg(_o(ar),s,c,we),_r})),i=vy(i,Je)}t=vy(t,Ni(Ue,0)),o=e.reduceLeft(Ms(Ue),function(ar,_r){return hy(ar,_r,!1)},o)},ce=0;ce<s.length;ce++)G(ce);Al(r,Le,t||e.emptyArray,i||e.emptyArray,o||e.emptyArray)}function vy(r,t){for(var i=function(L){(!r||e.every(r,function(G){return!gh(G,L,!1,!1,!1,ev)}))&&(r=e.append(r,L))},o=0,s=t;o<s.length;o++){var c=s[o];i(c)}return r}function hy(r,t,i){if(r)for(var o=0;o<r.length;o++){var s=r[o];if(s.keyType===t.keyType)return r[o]=Eu(s.keyType,i?ma([s.type,t.type]):To([s.type,t.type]),i?s.isReadonly||t.isReadonly:s.isReadonly&&t.isReadonly),r}return e.append(r,t)}function ME(r){var t=Ga(r.symbol);if(r.target){Al(r,Le,e.emptyArray,e.emptyArray,e.emptyArray);var i=oy(sf(r.target),r.mapper,!1),o=wy(Ni(r.target,0),r.mapper),s=wy(Ni(r.target,1),r.mapper),c=yL(Ms(r.target),r.mapper);Al(r,i,o,s,c)}else if(t.flags&2048){Al(r,Le,e.emptyArray,e.emptyArray,e.emptyArray);var i=af(t),o=Op(i.get("__call")),s=Op(i.get("__new")),c=vD(t);Al(r,i,o,s,c)}else{var i=Le,c=void 0;if(t.exports&&(i=Js(t),t===pr)){var L=new e.Map;i.forEach(function(Br){Br.flags&418||L.set(Br.escapedName,Br)}),i=L}var G=void 0;if(Al(r,i,e.emptyArray,e.emptyArray,e.emptyArray),t.flags&32){var ce=Hn(t),we=Ju(ce);we.flags&11272192?(i=e.createSymbolTable(zd(i)),Gg(i,Yi(we))):we===Ze&&(G=Eu(xt,Ze,!1))}var Ue=ZE(i);if(Ue?c=hD(Ue):(G&&(c=e.append(c,G)),t.flags&384&&(po(t).flags&32||e.some(r.properties,function(Br){return!!(An(Br).flags&296)}))&&(c=e.append(c,Yo))),Al(r,i,e.emptyArray,e.emptyArray,c||e.emptyArray),t.flags&8208&&(r.callSignatures=Op(t)),t.flags&32){var Je=Hn(t),s=t.members?Op(t.members.get("__constructor")):e.emptyArray;t.flags&16&&(s=e.addRange(s.slice(),e.mapDefined(r.callSignatures,function(Zr){return ou(Zr.declaration)?hu(Zr.declaration,Zr.typeParameters,Zr.thisParameter,Zr.parameters,Je,void 0,Zr.minArgumentCount,Zr.flags&39):void 0}))),s.length||(s=RE(Je)),r.constructSignatures=s}}}function Kv(r,t,i){return oi(r,Ol([t.indexType,t.objectType],[Wf(0),Tu([i])]))}function FE(r){for(var t=oc(r.source,xt),i=ru(r.mappedType),o=!(i&1),s=i&4?0:16777216,c=t?[Eu(xt,Yy(t.type,r.mappedType,r.constraintType),o&&t.isReadonly)]:e.emptyArray,L=e.createSymbolTable(),G=0,ce=Yi(r.source);G<ce.length;G++){var we=ce[G],Ue=8192|(o&&Iu(we)?8:0),Je=fo(4|we.flags&s,we.escapedName,Ue);if(Je.declarations=we.declarations,Je.nameType=Ja(we).nameType,Je.propertyType=An(we),r.constraintType.type.flags&8388608&&r.constraintType.type.objectType.flags&262144&&r.constraintType.type.indexType.flags&262144){var ar=r.constraintType.type.objectType,_r=Kv(r.mappedType,r.constraintType.type,ar);Je.mappedType=_r,Je.constraintType=qu(ar)}else Je.mappedType=r.mappedType,Je.constraintType=r.constraintType;L.set(we.escapedName,Je)}Al(r,L,e.emptyArray,e.emptyArray,c)}function jm(r){if(r.flags&4194304){var t=wi(r.type);return lg(t)?KD(t):qu(t)}if(r.flags&16777216){if(r.root.isDistributive){var i=r.checkType,o=jm(i);if(o!==i)return C0(r,dm(r.root.checkType,o,r.mapper))}return r}return r.flags&1048576?ds(r,jm):r.flags&2097152?To(e.sameMap(r.types,jm)):r}function zv(r){return e.getCheckFlags(r)&4096}function qv(r,t,i,o){for(var s=0,c=Yi(r);s<c.length;s++){var L=c[s];o(tg(L,t))}if(r.flags&1)o(xt);else for(var G=0,ce=Ms(r);G<ce.length;G++){var we=ce[G];(!i||we.keyType.flags&134217732)&&o(we.keyType)}}function GE(r){var t=e.createSymbolTable(),i;Al(r,Le,e.emptyArray,e.emptyArray,e.emptyArray);var o=eu(r),s=Tc(r),c=of(r.target||r),L=yu(r.target||r),G=wi(Jm(r)),ce=ru(r),we=ur?128:8576;Hm(r)?qv(G,we,ur,Ue):h_(jm(s),Ue),Al(r,t,e.emptyArray,e.emptyArray,i||e.emptyArray);function Ue(ar){var _r=c?oi(c,$g(r.mapper,o,ar)):ar;h_(_r,function(Br){return Je(ar,Br)})}function Je(ar,_r){if(gu(_r)){var Br=vu(_r),Zr=t.get(Br);if(Zr)Zr.nameType=ma([Zr.nameType,_r]),Zr.keyType=ma([Zr.keyType,ar]);else{var Et=gu(ar)?Ii(G,vu(ar)):void 0,Tt=!!(ce&4||!(ce&8)&&Et&&Et.flags&16777216),At=!!(ce&1||!(ce&2)&&Et&&Iu(Et)),Vt=Er&&!Tt&&Et&&Et.flags&16777216,Nn=Et?zv(Et):0,on=fo(4|(Tt?16777216:0),Br,Nn|262144|(At?8:0)|(Vt?524288:0));on.mappedType=r,on.nameType=_r,on.keyType=ar,Et&&(on.syntheticOrigin=Et,on.declarations=c?void 0:Et.declarations),t.set(Br,on)}}else if(Dy(_r)||_r.flags&33){var ca=_r.flags&5?xt:_r.flags&40?wt:_r,la=oi(L,$g(r.mapper,o,ar)),di=Eu(ca,la,!!(ce&1));i=hy(i,di,!0)}}}function BE(r){if(!r.type){var t=r.mappedType;if(!E(r,0))return t.containsError=!0,dr;var i=yu(t.target||t),o=$g(t.mapper,eu(t),r.keyType),s=oi(i,o),c=Er&&r.flags&16777216&&!Jo(s,49152)?Jf(s,!0):r.checkFlags&524288?z0(s):s;Ot()||(Mr(_e,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Wa(r),gn(t)),c=dr),r.type=c}return r.type}function eu(r){return r.typeParameter||(r.typeParameter=vl(wn(r.declaration.typeParameter)))}function Tc(r){return r.constraintType||(r.constraintType=Nl(eu(r))||dr)}function of(r){return r.declaration.nameType?r.nameType||(r.nameType=oi(Da(r.declaration.nameType),r.mapper)):void 0}function yu(r){return r.templateType||(r.templateType=r.declaration.type?oi(Wl(Da(r.declaration.type),!0,!!(ru(r)&4)),r.mapper):dr)}function yy(r){return e.getEffectiveConstraintOfTypeParameter(r.declaration.typeParameter)}function Hm(r){var t=yy(r);return t.kind===192&&t.operator===140}function Jm(r){if(!r.modifiersType)if(Hm(r))r.modifiersType=oi(Da(yy(r).type),r.mapper);else{var t=_0(r.declaration),i=Tc(t),o=i&&i.flags&262144?Nl(i):i;r.modifiersType=o&&o.flags&4194304?oi(o.type,r.mapper):tr}return r.modifiersType}function ru(r){var t=r.declaration;return(t.readonlyToken?t.readonlyToken.kind===40?2:1:0)|(t.questionToken?t.questionToken.kind===40?8:4:0)}function by(r){var t=ru(r);return t&8?-1:t&4?1:0}function Xv(r){var t=by(r),i=Jm(r);return t||(El(i)?by(i):0)}function UE(r){return!!(e.getObjectFlags(r)&32&&ru(r)&4)}function El(r){return!!(e.getObjectFlags(r)&32)&&F_(Tc(r))}function Sc(r){return r.members||(r.flags&524288?r.objectFlags&4?OE(r):r.objectFlags&3?ly(r):r.objectFlags&1024?FE(r):r.objectFlags&16?ME(r):r.objectFlags&32&&GE(r):r.flags&1048576?PE(r):r.flags&2097152&&gy(r)),r}function sf(r){return r.flags&524288?Sc(r).properties:e.emptyArray}function hd(r,t){if(r.flags&524288){var i=Sc(r),o=i.members.get(t);if(o&&If(o))return o}}function Km(r){if(!r.resolvedProperties){for(var t=e.createSymbolTable(),i=0,o=r.types;i<o.length;i++){for(var s=o[i],c=0,L=Yi(s);c<L.length;c++){var G=L[c];if(!t.has(G.escapedName)){var ce=ic(r,G.escapedName);ce&&t.set(G.escapedName,ce)}}if(r.flags&1048576&&Ms(s).length===0)break}r.resolvedProperties=Bu(t)}return r.resolvedProperties}function Yi(r){return r=Is(r),r.flags&3145728?Km(r):sf(r)}function VE(r,t){r=Is(r),r.flags&3670016&&Sc(r).members.forEach(function(i,o){dd(i,o)&&t(i,o)})}function WE(r,t){var i=t.properties;return i.some(function(o){var s=o.name&&lp(o.name),c=s&&gu(s)?vu(s):void 0,L=c===void 0?void 0:ia(r,c);return!!L&&mm(L)&&!Qi(jp(o),L)})}function jE(r){var t=ma(r);if(!(t.flags&1048576))return AT(t);for(var i=e.createSymbolTable(),o=0,s=r;o<s.length;o++)for(var c=s[o],L=0,G=AT(c);L<G.length;L++){var ce=G[L].escapedName;if(!i.has(ce)){var we=Ks(t,ce);we&&i.set(ce,we)}}return e.arrayFrom(i.values())}function kp(r){return r.flags&262144?Nl(r):r.flags&8388608?Ey(r):r.flags&16777216?JE(r):l(r)}function Nl(r){return cr(r)?$m(r):void 0}function Ey(r){return cr(r)?HE(r):void 0}function Yv(r){var t=Vf(r,!1);return t!==r?t:kp(r)}function HE(r){var t=Yv(r.indexType);if(t&&t!==r.indexType){var i=cp(r.objectType,t,r.accessFlags);if(i)return i}var o=Yv(r.objectType);if(o&&o!==r.objectType)return cp(o,r.indexType,r.accessFlags)}function Qv(r){if(!r.resolvedDefaultConstraint){var t=WO(r),i=fp(r);r.resolvedDefaultConstraint=Na(t)?i:Na(i)?t:ma([t,i])}return r.resolvedDefaultConstraint}function Zv(r){if(r.root.isDistributive&&r.restrictiveInstantiation!==r){var t=Vf(r.checkType,!1),i=t===r.checkType?kp(t):t;if(i&&i!==r.checkType){var o=C0(r,dm(r.root.checkType,i,r.mapper));if(!(o.flags&131072))return o}}}function Ty(r){return Zv(r)||Qv(r)}function JE(r){return cr(r)?Ty(r):void 0}function KE(r,t){for(var i,o=!1,s=0,c=r;s<c.length;s++){var L=c[s];if(L.flags&465829888){for(var G=kp(L);G&&G.flags&21233664;)G=kp(G);G&&(i=e.append(i,G),t&&(i=e.append(i,L)))}else L.flags&469892092&&(o=!0)}if(i&&(t||o)){if(o)for(var ce=0,we=r;ce<we.length;ce++){var L=we[ce];L.flags&469892092&&(i=e.append(i,L))}return To(i)}}function l(r){if(r.flags&464781312){var t=Vr(r);return t!==ro&&t!==Ka?t:void 0}return r.flags&4194304?_t:void 0}function re(r){return l(r)||r}function cr(r){return Vr(r)!==Ka}function Vr(r){if(r.resolvedBaseConstraint)return r.resolvedBaseConstraint;var t=[];return r.resolvedBaseConstraint=Il(i(r),r);function i(c){if(!c.immediateBaseConstraint){if(!E(c,4))return Ka;var L=void 0;if((t.length<10||t.length<50&&!_h(c,t,t.length))&&(t.push(c),L=s(Vf(c,!1)),t.pop()),!Ot()){if(c.flags&262144){var G=yD(c);if(G){var ce=Mr(G,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,gn(c));_e&&!e.isNodeDescendantOf(G,_e)&&!e.isNodeDescendantOf(_e,G)&&e.addRelatedInfo(ce,e.createDiagnosticForNode(_e,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}L=Ka}c.immediateBaseConstraint=L||ro}return c.immediateBaseConstraint}function o(c){var L=i(c);return L!==ro&&L!==Ka?L:void 0}function s(c){if(c.flags&262144){var L=$m(c);return c.isThisType||!L?L:o(L)}if(c.flags&3145728){for(var G=c.types,ce=[],we=!1,Ue=0,Je=G;Ue<Je.length;Ue++){var ar=Je[Ue],_r=o(ar);_r?(_r!==ar&&(we=!0),ce.push(_r)):we=!0}return we?c.flags&1048576&&ce.length===G.length?ma(ce):c.flags&2097152&&ce.length?To(ce):void 0:c}if(c.flags&4194304)return _t;if(c.flags&134217728){var G=c.types,Br=e.mapDefined(G,o);return Br.length===G.length?ng(c.texts,Br):xt}if(c.flags&268435456){var L=o(c.type);return L?Ny(c.symbol,L):xt}if(c.flags&8388608){var Zr=o(c.objectType),Et=o(c.indexType),Tt=Zr&&Et&&cp(Zr,Et,c.accessFlags);return Tt&&o(Tt)}if(c.flags&16777216){var L=Ty(c);return L&&o(L)}return c.flags&33554432?o(c.substitute):c}}function Nt(r){return r.resolvedApparentType||(r.resolvedApparentType=Il(r,r,!0))}function xn(r){if(r.default)r.default===Pi&&(r.default=Ka);else if(r.target){var t=xn(r.target);r.default=t?oi(t,r.mapper):ro}else{r.default=Pi;var i=r.symbol&&e.forEach(r.symbol.declarations,function(s){return e.isTypeParameterDeclaration(s)&&s.default}),o=i?Da(i):ro;r.default===Pi&&(r.default=o)}return r.default}function Bn(r){var t=xn(r);return t!==ro&&t!==Ka?t:void 0}function ga(r){return xn(r)!==Ka}function Ei(r){return!!(r.symbol&&e.forEach(r.symbol.declarations,function(t){return e.isTypeParameterDeclaration(t)&&t.default}))}function li(r){return r.resolvedApparentType||(r.resolvedApparentType=go(r))}function go(r){var t=D0(r);if(t&&!r.declaration.nameType){var i=Nl(t);if(i&&(el(i)||ki(i)))return oi(r,dm(t,i,r.mapper))}return r}function wi(r){var t=r.flags&465829888?l(r)||tr:r;return e.getObjectFlags(t)&32?li(t):t.flags&2097152?Nt(t):t.flags&402653316?er:t.flags&296?hr:t.flags&2112?aO(De>=7):t.flags&528?qr:t.flags&12288?FD(De>=2):t.flags&67108864?Qn:t.flags&4194304?_t:t.flags&2&&!Er?Qn:t}function Is(r){return Eo(wi(Eo(r)))}function Ks(r,t,i){for(var o,s,c,L,G,ce=r.flags&1048576,we=ce?0:16777216,Ue=4,Je=ce?0:8,ar=!1,_r=0,Br=r.types;_r<Br.length;_r++){var Zr=Br[_r],Et=wi(Zr);if(!(Ua(Et)||Et.flags&131072)){var Tt=Ii(Et,t,i),At=Tt?e.getDeclarationModifierFlagsFromSymbol(Tt):0;if(Tt){if(ce?we|=Tt.flags&16777216:we&=Tt.flags,!c)c=Tt;else if(Tt!==c){var Vt=(Am(Tt)||Tt)===(Am(c)||c);if(Vt&&B0(c,Tt,function(Ca,Yn){return Ca===Yn?-1:0})===-1)ar=!!c.parent&&!!e.length(mu(c.parent));else{L||(L=new e.Map,L.set(y(c),c));var Nn=y(Tt);L.has(Nn)||L.set(Nn,Tt)}}ce&&Iu(Tt)?Je|=8:!ce&&!Iu(Tt)&&(Je&=-9),Je|=(At&24?0:256)|(At&16?512:0)|(At&8?1024:0)|(At&32?2048:0),k1(Tt)||(Ue=2)}else if(ce){var on=!Ip(t)&&ip(Et,t);on?(Je|=32|(on.isReadonly?8:0),G=e.append(G,ki(Et)?tv(Et)||kr:on.type)):Gp(Et)&&!(e.getObjectFlags(Et)&4194304)?(Je|=32,G=e.append(G,kr)):Je|=16}}}if(!(!c||ce&&(L||Je&48)&&Je&1536)){if(!L&&!(Je&16)&&!G)if(ar){var ca=V_(c,c.type);return ca.parent=(s=(o=c.valueDeclaration)===null||o===void 0?void 0:o.symbol)===null||s===void 0?void 0:s.parent,ca.containingType=r,ca.mapper=c.mapper,ca}else return c;for(var la=L?e.arrayFrom(L.values()):[c],di,Aa,Li,Bi=[],Ai,xo=!1,Wt=0,Ft=la;Wt<Ft.length;Wt++){var Tt=Ft[Wt];Ai?Tt.valueDeclaration&&Tt.valueDeclaration!==Ai&&(xo=!0):Ai=Tt.valueDeclaration,di=e.addRange(di,Tt.declarations);var Et=An(Tt);Aa?Et!==Aa&&(Je|=64):(Aa=Et,Li=Ja(Tt).nameType),(mm(Et)||ag(Et))&&(Je|=128),Et.flags&131072&&(Je|=131072),Bi.push(Et)}e.addRange(Bi,G);var _n=fo(4|we,t,Ue|Je);return _n.containingType=r,!xo&&Ai&&(_n.valueDeclaration=Ai,Ai.symbol.parent&&(_n.parent=Ai.symbol.parent)),_n.declarations=di,_n.nameType=Li,Bi.length>2?(_n.checkFlags|=65536,_n.deferralParent=r,_n.deferralConstituents=Bi):_n.type=ce?ma(Bi):To(Bi),_n}}function hs(r,t,i){var o,s,c=((o=r.propertyCacheWithoutObjectFunctionPropertyAugment)===null||o===void 0?void 0:o.get(t))||!i?(s=r.propertyCache)===null||s===void 0?void 0:s.get(t):void 0;if(!c&&(c=Ks(r,t,i),c)){var L=i?r.propertyCacheWithoutObjectFunctionPropertyAugment||(r.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):r.propertyCache||(r.propertyCache=e.createSymbolTable());L.set(t,c)}return c}function ic(r,t,i){var o=hs(r,t,i);return o&&!(e.getCheckFlags(o)&16)?o:void 0}function Eo(r){return r.flags&1048576&&r.objectFlags&33554432?r.resolvedReducedType||(r.resolvedReducedType=zu(r)):r.flags&2097152?(r.objectFlags&33554432||(r.objectFlags|=33554432|(e.some(Km(r),u_)?67108864:0)),r.objectFlags&67108864?en:r):r}function zu(r){var t=e.sameMap(r.types,Eo);if(t===r.types)return r;var i=ma(t);return i.flags&1048576&&(i.resolvedReducedType=i),i}function u_(r){return sm(r)||ap(r)}function sm(r){return!(r.flags&16777216)&&(e.getCheckFlags(r)&131264)===192&&!!(An(r).flags&131072)}function ap(r){return!r.valueDeclaration&&!!(e.getCheckFlags(r)&1024)}function zm(r,t){if(t.flags&2097152&&e.getObjectFlags(t)&67108864){var i=e.find(Km(t),sm);if(i)return e.chainDiagnosticMessages(r,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,gn(t,void 0,536870912),Wa(i));var o=e.find(Km(t),ap);if(o)return e.chainDiagnosticMessages(r,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,gn(t,void 0,536870912),Wa(o))}return r}function Ii(r,t,i){if(r=Is(r),r.flags&524288){var o=Sc(r),s=o.members.get(t);if(s&&If(s))return s;if(i)return;var c=o===yi?Oe:o.callSignatures.length?oe:o.constructSignatures.length?mr:void 0;if(c){var L=hd(c,t);if(L)return L}return hd(Un,t)}if(r.flags&3145728)return ic(r,t,i)}function Hg(r,t){if(r.flags&3670016){var i=Sc(r);return t===0?i.callSignatures:i.constructSignatures}return e.emptyArray}function Ni(r,t){return Hg(Is(r),t)}function $v(r,t){return e.find(r,function(i){return i.keyType===t})}function eh(r,t){for(var i,o,s,c=0,L=r;c<L.length;c++){var G=L[c];G.keyType===xt?i=G:f_(t,G.keyType)&&(o?(s||(s=[o])).push(G):o=G)}return s?Eu(tr,To(e.map(s,function(ce){return ce.type})),e.reduceLeft(s,function(ce,we){return ce&&we.isReadonly},!0)):o||(i&&f_(t,xt)?i:void 0)}function f_(r,t){return Qi(r,t)||t===xt&&Qi(r,wt)||t===wt&&!!(r.flags&128)&&zf(r.value)}function qm(r){if(r.flags&3670016){var t=Sc(r);return t.indexInfos}return e.emptyArray}function Ms(r){return qm(Is(r))}function oc(r,t){return $v(Ms(r),t)}function tu(r,t){var i;return(i=oc(r,t))===null||i===void 0?void 0:i.type}function rh(r,t){return Ms(r).filter(function(i){return f_(t,i.keyType)})}function Xm(r,t){return eh(Ms(r),t)}function ip(r,t){return Xm(r,Ip(t)?na:Lc(e.unescapeLeadingUnderscores(t)))}function th(r){for(var t,i=0,o=e.getEffectiveTypeParameterDeclarations(r);i<o.length;i++){var s=o[i];t=e.appendIfUnique(t,vl(s.symbol))}return t}function Ym(r){var t=[];return r.forEach(function(i,o){Nf(o)||t.push(i)}),t}function Qm(r){return e.isInJSFile(r)&&(r.type&&r.type.kind===314||e.getJSDocParameterTags(r).some(function(t){var i=t.isBracketed,o=t.typeExpression;return i||!!o&&o.type.kind===314}))}function Jg(r,t){if(!e.isExternalModuleNameRelative(r)){var i=ks(Fr,'"'+r+'"',512);return i&&t?Ga(i):i}}function w_(r){if(e.hasQuestionToken(r)||zE(r)||Qm(r))return!0;if(r.initializer){var t=bu(r.parent),i=r.parent.parameters.indexOf(r);return e.Debug.assert(i>=0),i>=Cu(t,3)}var o=e.getImmediatelyInvokedFunctionExpression(r.parent);return o?!r.type&&!r.dotDotDotToken&&r.parent.parameters.indexOf(r)>=o.arguments.length:!1}function Ck(r){return e.isPropertyDeclaration(r)&&r.questionToken}function zE(r){if(!e.isJSDocPropertyLikeTag(r))return!1;var t=r.isBracketed,i=r.typeExpression;return t||!!i&&i.type.kind===314}function nh(r,t,i,o){return{kind:r,parameterName:t,parameterIndex:i,type:o}}function lf(r){var t=0;if(r)for(var i=0;i<r.length;i++)Ei(r[i])||(t=i+1);return t}function P_(r,t,i,o){var s=e.length(t);if(!s)return[];var c=e.length(r);if(o||c>=i&&c<=s){for(var L=r?r.slice():[],G=c;G<s;G++)L[G]=dr;for(var ce=i1(o),G=c;G<s;G++){var we=Bn(t[G]);o&&we&&(jf(we,tr)||jf(we,Qn))&&(we=Ze),L[G]=we?oi(we,Ol(t,L)):ce}return L.length=t.length,L}return r&&r.slice()}function bu(r){var t=Zn(r);if(!t.resolvedSignature){var i=[],o=0,s=0,c=void 0,L=!1,G=e.getImmediatelyInvokedFunctionExpression(r),ce=e.isJSDocConstructSignature(r),we=!G&&e.isInJSFile(r)&&e.isValueSignatureDeclaration(r)&&!e.hasJSDocParameterTags(r)&&!e.getJSDocType(r);we&&(o|=32);for(var Ue=ce?1:0;Ue<r.parameters.length;Ue++){var Je=r.parameters[Ue],ar=Je.symbol,_r=e.isJSDocParameterTag(Je)?Je.typeExpression&&Je.typeExpression.type:Je.type;if(ar&&!!(ar.flags&4)&&!e.isBindingPattern(Je.name)){var Br=Uo(Je,ar.escapedName,111551,void 0,void 0,!1);ar=Br}Ue===0&&ar.escapedName==="this"?(L=!0,c=Je.symbol):i.push(ar),_r&&_r.kind===195&&(o|=2);var Zr=zE(Je)||Je.initializer||Je.questionToken||e.isRestParameter(Je)||G&&i.length>G.arguments.length&&!_r||Qm(Je);Zr||(s=i.length)}if((r.kind===171||r.kind===172)&&c_(r)&&(!L||!c)){var Et=r.kind===171?172:171,Tt=e.getDeclarationOfKind(wn(r),Et);Tt&&(c=W(Tt))}var At=r.kind===170?Hn(Ga(r.parent.symbol)):void 0,Vt=At?At.localTypeParameters:th(r);(e.hasRestParameter(r)||e.isInJSFile(r)&&xk(r,i))&&(o|=1),(e.isConstructorTypeNode(r)&&e.hasSyntacticModifier(r,128)||e.isConstructorDeclaration(r)&&e.hasSyntacticModifier(r.parent,128))&&(o|=4),t.resolvedSignature=hu(r,Vt,c,i,void 0,void 0,s,o)}return t.resolvedSignature}function xk(r,t){if(e.isJSDocSignature(r)||!XE(r))return!1;var i=e.lastOrUndefined(r.parameters),o=i?e.getJSDocParameterTags(i):e.getJSDocTags(r).filter(e.isJSDocParameterTag),s=e.firstDefined(o,function(L){return L.typeExpression&&e.isJSDocVariadicType(L.typeExpression.type)?L.typeExpression.type:void 0}),c=fo(3,"args",32768);return c.type=s?zs(Da(s.type)):Sn,s&&t.pop(),t.push(c),!0}function qE(r){if(!!(e.isInJSFile(r)&&e.isFunctionLikeDeclaration(r))){var t=e.getJSDocTypeTag(r);return(t==null?void 0:t.typeExpression)&&j_(Da(t.typeExpression))}}function Ik(r){var t=qE(r);return t&&_o(t)}function XE(r){var t=Zn(r);return t.containsArgumentsReference===void 0&&(t.flags&8192?t.containsArgumentsReference=!0:t.containsArgumentsReference=i(r.body)),t.containsArgumentsReference;function i(o){if(!o)return!1;switch(o.kind){case 79:return o.escapedText===Jr.escapedName&&Av(o)===Jr;case 166:case 168:case 171:case 172:return o.name.kind===161&&i(o.name);case 205:case 206:return i(o.expression);default:return!e.nodeStartsNewLexicalEnvironment(o)&&!e.isPartOfTypeNode(o)&&!!e.forEachChild(o,i)}}}function Op(r){if(!r||!r.declarations)return e.emptyArray;for(var t=[],i=0;i<r.declarations.length;i++){var o=r.declarations[i];if(!!e.isFunctionLike(o)){if(i>0&&o.body){var s=r.declarations[i-1];if(o.parent===s.parent&&o.kind===s.kind&&o.pos===s.end)continue}t.push(bu(o))}}return t}function pD(r){var t=ws(r,r);if(t){var i=ll(t);if(i)return An(i)}return Ze}function d_(r){if(r.thisParameter)return An(r.thisParameter)}function Dc(r){if(!r.resolvedTypePredicate){if(r.target){var t=Dc(r.target);r.resolvedTypePredicate=t?nR(t,r.mapper):to}else if(r.compositeSignatures)r.resolvedTypePredicate=gO(r.compositeSignatures,r.compositeKind)||to;else{var i=r.declaration&&e.getEffectiveReturnTypeNode(r.declaration),o=void 0;if(!i&&e.isInJSFile(r.declaration)){var s=qE(r.declaration);s&&r!==s&&(o=Dc(s))}r.resolvedTypePredicate=i&&e.isTypePredicateNode(i)?Nk(i,r):o||to}e.Debug.assert(!!r.resolvedTypePredicate)}return r.resolvedTypePredicate===to?void 0:r.resolvedTypePredicate}function Nk(r,t){var i=r.parameterName,o=r.type&&Da(r.type);return i.kind===191?nh(r.assertsModifier?2:0,void 0,void 0,o):nh(r.assertsModifier?3:1,i.escapedText,e.findIndex(t.parameters,function(s){return s.escapedName===i.escapedText}),o)}function _D(r,t,i){return t!==2097152?ma(r,i):To(r)}function _o(r){if(!r.resolvedReturnType){if(!E(r,3))return dr;var t=r.target?oi(_o(r.target),r.mapper):r.compositeSignatures?oi(_D(e.map(r.compositeSignatures,_o),r.compositeKind,2),r.mapper):lm(r.declaration)||(e.nodeIsMissing(r.declaration.body)?Ze:xb(r.declaration));if(r.flags&8?t=XL(t):r.flags&16&&(t=Jf(t)),!Ot()){if(r.declaration){var i=e.getEffectiveReturnTypeNode(r.declaration);if(i)Mr(i,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(Ke){var o=r.declaration,s=e.getNameOfDeclaration(o);s?Mr(s,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(s)):Mr(o,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=Ze}r.resolvedReturnType=t}return r.resolvedReturnType}function lm(r){if(r.kind===170)return Hn(Ga(r.parent.symbol));if(e.isJSDocConstructSignature(r))return Da(r.parameters[0].type);var t=e.getEffectiveReturnTypeNode(r);if(t)return Da(t);if(r.kind===171&&c_(r)){var i=e.isInJSFile(r)&&Mf(r);if(i)return i;var o=e.getDeclarationOfKind(wn(r),172),s=_(o);if(s)return s}return Ik(r)}function YE(r){return!r.resolvedReturnType&&Qe(r,3)>=0}function kk(r){return mD(r)||Ze}function mD(r){if(ue(r)){var t=An(r.parameters[r.parameters.length-1]),i=ki(t)?tv(t):t;return i&&tu(i,wt)}}function ah(r,t,i,o){var s=QE(r,P_(t,r.typeParameters,lf(r.typeParameters),i));if(o){var c=TC(_o(s));if(c){var L=Np(c);L.typeParameters=o;var G=Np(s);return G.resolvedReturnType=Zm(L),G}}return s}function QE(r,t){var i=r.instantiations||(r.instantiations=new e.Map),o=sc(t),s=i.get(o);return s||i.set(o,s=Sy(r,t)),s}function Sy(r,t){return pm(r,Ok(r,t),!0)}function Ok(r,t){return Ol(r.typeParameters,t)}function Kg(r){return r.typeParameters?r.erasedSignatureCache||(r.erasedSignatureCache=Rk(r)):r}function Rk(r){return pm(r,bL(r.typeParameters),!0)}function wk(r){return r.typeParameters?r.canonicalSignatureCache||(r.canonicalSignatureCache=Pk(r)):r}function Pk(r){return ah(r,e.map(r.typeParameters,function(t){return t.target&&!Nl(t.target)?t.target:t}),e.isInJSFile(r.declaration))}function Mk(r){var t=r.typeParameters;if(t){if(r.baseSignatureCache)return r.baseSignatureCache;for(var i=bL(t),o=Ol(t,e.map(t,function(L){return Nl(L)||tr})),s=e.map(t,function(L){return oi(L,o)||tr}),c=0;c<t.length-1;c++)s=bd(s,o);return s=bd(s,i),r.baseSignatureCache=pm(r,Ol(t,s),!0)}return r}function Zm(r){if(!r.isolatedSignatureType){var t=r.declaration?r.declaration.kind:0,i=t===170||t===174||t===179,o=Bl(16);o.members=Le,o.properties=e.emptyArray,o.callSignatures=i?e.emptyArray:[r],o.constructSignatures=i?[r]:e.emptyArray,o.indexInfos=e.emptyArray,r.isolatedSignatureType=o}return r.isolatedSignatureType}function gD(r){return r.members?ZE(r.members):void 0}function ZE(r){return r.get("__index")}function Eu(r,t,i,o){return{keyType:r,type:t,isReadonly:i,declaration:o}}function vD(r){var t=gD(r);return t?hD(t):e.emptyArray}function hD(r){if(r.declarations){for(var t=[],i=function(L){if(L.parameters.length===1){var G=L.parameters[0];G.type&&h_(Da(G.type),function(ce){Dy(ce)&&!$v(t,ce)&&t.push(Eu(ce,L.type?Da(L.type):Ze,e.hasEffectiveModifier(L,64),L))})}},o=0,s=r.declarations;o<s.length;o++){var c=s[o];i(c)}return t}return e.emptyArray}function Dy(r){return!!(r.flags&4108)||ag(r)||!!(r.flags&2097152)&&!Qg(r)&&e.some(r.types,Dy)}function yD(r){return e.mapDefined(e.filter(r.symbol&&r.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function Fk(r){var t,i;if(!((t=r.symbol)===null||t===void 0)&&t.declarations)for(var o=0,s=r.symbol.declarations;o<s.length;o++){var c=s[o];if(c.parent.kind===189){var L=e.walkUpParenthesizedTypesAndGetParentAndChild(c.parent.parent),G=L[0],ce=G===void 0?c.parent:G,we=L[1];if(we.kind===177){var Ue=we,Je=sT(Ue);if(Je){var ar=Ue.typeArguments.indexOf(ce);if(ar<Je.length){var _r=Nl(Je[ar]);if(_r){var Br=Ol(Je,kb(Ue,Je)),Zr=oi(_r,Br);Zr!==r&&(i=e.append(i,Zr))}}}}else if(we.kind===163&&we.dotDotDotToken||we.kind===185||we.kind===196&&we.dotDotDotToken)i=e.append(i,zs(tr));else if(we.kind===198)i=e.append(i,xt);else if(we.kind===162&&we.parent.kind===194)i=e.append(i,_t);else if(we.kind===194&&we.type&&e.skipParentheses(we.type)===c.parent&&we.parent.kind===188&&we.parent.extendsType===we&&we.parent.checkType.kind===194&&we.parent.checkType.type){var Et=we.parent.checkType,Tt=Da(Et.type);i=e.append(i,oi(Tt,B_(vl(wn(Et.typeParameter)),Et.typeParameter.constraint?Da(Et.typeParameter.constraint):_t)))}}}return i&&To(i)}function $m(r){if(!r.constraint)if(r.target){var t=Nl(r.target);r.constraint=t?oi(t,r.mapper):ro}else{var i=yD(r);if(!i)r.constraint=Fk(r)||ro;else{var o=Da(i);o.flags&1&&!Ua(o)&&(o=i.parent.parent.kind===194?_t:tr),r.constraint=o}}return r.constraint===ro?void 0:r.constraint}function bD(r){var t=e.getDeclarationOfKind(r.symbol,162),i=e.isJSDocTemplateTag(t.parent)?e.getEffectiveContainerForJSDocTemplateTag(t.parent):t.parent;return i&&wn(i)}function sc(r){var t="";if(r)for(var i=r.length,o=0;o<i;){for(var s=r[o].id,c=1;o+c<i&&r[o+c].id===s+c;)c++;t.length&&(t+=","),t+=s,c>1&&(t+=":"+c),o+=c}return t}function cm(r,t){return r?"@".concat(y(r))+(t?":".concat(sc(t)):""):""}function $E(r,t){for(var i=0,o=0,s=r;o<s.length;o++){var c=s[o];c.flags&t||(i|=e.getObjectFlags(c))}return i&917504}function Uf(r,t){var i=sc(t),o=r.instantiations.get(i);return o||(o=Bl(4,r.symbol),r.instantiations.set(i,o),o.objectFlags|=t?$E(t,0):0,o.target=r,o.resolvedTypeArguments=t),o}function ED(r){var t=Qs(r.flags);return t.symbol=r.symbol,t.objectFlags=r.objectFlags,t.target=r.target,t.resolvedTypeArguments=r.resolvedTypeArguments,t}function e0(r,t,i,o,s){if(!o){o=G_(t);var c=um(o);s=i?bd(c,i):c}var L=Bl(4,r.symbol);return L.target=r,L.node=t,L.mapper=i,L.aliasSymbol=o,L.aliasTypeArguments=s,L}function vo(r){var t,i;if(!r.resolvedTypeArguments){if(!E(r,6))return((t=r.target.localTypeParameters)===null||t===void 0?void 0:t.map(function(){return dr}))||e.emptyArray;var o=r.node,s=o?o.kind===177?e.concatenate(r.target.outerTypeParameters,kb(o,r.target.localTypeParameters)):o.kind===182?[Da(o.elementType)]:e.map(o.elements,Da):e.emptyArray;Ot()?r.resolvedTypeArguments=r.mapper?bd(s,r.mapper):s:(r.resolvedTypeArguments=((i=r.target.localTypeParameters)===null||i===void 0?void 0:i.map(function(){return dr}))||e.emptyArray,Mr(r.node||_e,r.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,r.target.symbol&&Wa(r.target.symbol)))}return r.resolvedTypeArguments}function op(r){return e.length(r.target.typeParameters)}function TD(r,t){var i=po(Ga(t)),o=i.localTypeParameters;if(o){var s=e.length(r.typeArguments),c=lf(o),L=e.isInJSFile(r),G=!Ke&&L;if(!G&&(s<c||s>o.length)){var ce=L&&e.isExpressionWithTypeArguments(r)&&!e.isJSDocAugmentsTag(r.parent),we=c===o.length?ce?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:ce?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,Ue=gn(i,void 0,2);if(Mr(r,we,Ue,c,o.length),!L)return dr}if(r.kind===177&&jD(r,e.length(r.typeArguments)!==o.length))return e0(i,r,void 0);var Je=e.concatenate(i.outerTypeParameters,P_(xy(r),o,c,L));return Uf(i,Je)}return Rp(r,t)?i:dr}function eg(r,t,i,o){var s=po(r);if(s===Wr&&U.has(r.escapedName)&&t&&t.length===1)return Ny(r,t[0]);var c=Ja(r),L=c.typeParameters,G=sc(t)+cm(i,o),ce=c.instantiations.get(G);return ce||c.instantiations.set(G,ce=DL(s,Ol(L,P_(t,L,lf(L),e.isInJSFile(r.valueDeclaration))),i,o)),ce}function Gk(r,t){if(e.getCheckFlags(t)&1048576){var i=xy(r),o=cm(t,i),s=me.get(o);return s||(s=jo(1,"error"),s.aliasSymbol=t,s.aliasTypeArguments=i,me.set(o,s)),s}var c=po(t),L=Ja(t).typeParameters;if(L){var G=e.length(r.typeArguments),ce=lf(L);if(G<ce||G>L.length)return Mr(r,ce===L.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Wa(t),ce,L.length),dr;var we=G_(r),Ue=we&&(SD(t)||!SD(we))?we:void 0;return eg(t,xy(r),Ue,um(Ue))}return Rp(r,t)?c:dr}function SD(r){var t,i=(t=r.declarations)===null||t===void 0?void 0:t.find(e.isTypeAlias);return!!(i&&e.getContainingFunction(i))}function Bk(r){switch(r.kind){case 177:return r.typeName;case 227:var t=r.expression;if(e.isEntityNameExpression(t))return t}}function DD(r){return r.parent?"".concat(DD(r.parent),".").concat(r.escapedName):r.escapedName}function Ly(r){var t=r.kind===160?r.right:r.kind===205?r.name:r,i=t.escapedText;if(i){var o=r.kind===160?Ly(r.left):r.kind===205?Ly(r.expression):void 0,s=o?"".concat(DD(o),".").concat(i):i,c=Ne.get(s);return c||(Ne.set(s,c=fo(524288,i,1048576)),c.parent=o,c.declaredType=et),c}return We}function rg(r,t,i){var o=Bk(r);if(!o)return We;var s=rs(o,t,i);return s&&s!==We?s:i?We:Ly(o)}function Ay(r,t){if(t===We)return dr;if(t=Sf(t)||t,t.flags&96)return TD(r,t);if(t.flags&524288)return Gk(r,t);var i=l_(t);if(i)return Rp(r,t)?kl(i):dr;if(t.flags&111551&&Cy(r)){var o=Uk(r,t);return o||(rg(r,788968),An(t))}return dr}function Uk(r,t){var i=Zn(r);if(!i.resolvedJSDocType){var o=An(t),s=o;if(t.valueDeclaration){var c=r.kind===199&&r.qualifier;o.symbol&&o.symbol!==t&&c&&(s=Ay(r,o.symbol))}i.resolvedJSDocType=s}return i.resolvedJSDocType}function LD(r,t){if(t.flags&3||t===r)return r;var i="".concat(Bc(r),">").concat(Bc(t)),o=or.get(i);if(o)return o;var s=Qs(33554432);return s.baseType=r,s.substitute=t,or.set(i,s),s}function AD(r){return r.kind===183&&r.elements.length===1}function CD(r,t,i){return AD(t)&&AD(i)?CD(r,t.elements[0],i.elements[0]):p_(Da(t))===r?Da(i):void 0}function xD(r,t){for(var i,o=!0;t&&!e.isStatement(t)&&t.kind!==318;){var s=t.parent;if(s.kind===163&&(o=!o),(o||r.flags&8650752)&&s.kind===188&&t===s.trueType){var c=CD(r,s.checkType,s.extendsType);c&&(i=e.append(i,c))}t=s}return i?LD(r,To(e.append(i,r))):r}function Cy(r){return!!(r.flags&4194304)&&(r.kind===177||r.kind===199)}function Rp(r,t){return r.typeArguments?(Mr(r,e.Diagnostics.Type_0_is_not_generic,t?Wa(t):r.typeName?e.declarationNameToString(r.typeName):f),!1):!0}function ID(r){if(e.isIdentifier(r.typeName)){var t=r.typeArguments;switch(r.typeName.escapedText){case"String":return Rp(r),xt;case"Number":return Rp(r),wt;case"Boolean":return Rp(r),Jn;case"Void":return Rp(r),Wn;case"Undefined":return Rp(r),kr;case"Null":return Rp(r),ut;case"Function":case"function":return Rp(r),Oe;case"array":return(!t||!t.length)&&!Ke?Sn:void 0;case"promise":return(!t||!t.length)&&!Ke?Oh(Ze):void 0;case"Object":if(t&&t.length===2){if(e.isJSDocIndexSignature(r)){var i=Da(t[0]),o=Da(t[1]),s=i===xt||i===wt?[Eu(i,o,!1)]:e.emptyArray;return ts(void 0,Le,e.emptyArray,e.emptyArray,s)}return Ze}return Rp(r),Ke?void 0:Ze}}}function Vk(r){var t=Da(r.type);return Er?jy(t,65536):t}function ih(r){var t=Zn(r);if(!t.resolvedType){if(e.isConstTypeReference(r)&&e.isAssertionExpression(r.parent))return t.resolvedSymbol=We,t.resolvedType=Ss(r.parent.expression);var i=void 0,o=void 0,s=788968;Cy(r)&&(o=ID(r),o||(i=rg(r,s,!0),i===We?i=rg(r,s|111551):rg(r,s),o=Ay(r,i))),o||(i=rg(r,s),o=Ay(r,i)),t.resolvedSymbol=i,t.resolvedType=o}return t.resolvedType}function xy(r){return e.map(r.typeArguments,Da)}function ND(r){var t=Zn(r);if(!t.resolvedType){var i=e.isThisIdentifier(r.exprName)?lb(r.exprName):ui(r.exprName);t.resolvedType=kl(wl(i))}return t.resolvedType}function kD(r,t){function i(s){var c=s.declarations;if(c)for(var L=0,G=c;L<G.length;L++){var ce=G[L];switch(ce.kind){case 256:case 257:case 259:return ce}}}if(!r)return t?va:Qn;var o=po(r);return o.flags&524288?e.length(o.typeParameters)!==t?(Mr(i(r),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(r),t),t?va:Qn):o:(Mr(i(r),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(r)),t?va:Qn)}function OD(r,t){return zg(r,111551,t?e.Diagnostics.Cannot_find_global_value_0:void 0)}function RD(r,t){return zg(r,788968,t?e.Diagnostics.Cannot_find_global_type_0:void 0)}function r0(r,t,i){var o=zg(r,788968,i?e.Diagnostics.Cannot_find_global_type_0:void 0);if(o&&(po(o),e.length(Ja(o).typeParameters)!==t)){var s=o.declarations&&e.find(o.declarations,e.isTypeAliasDeclaration);Mr(s,e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(o),t);return}return o}function zg(r,t,i){return Uo(void 0,r,t,i,r,!1,!1,!1)}function $s(r,t,i){var o=RD(r,i);return o||i?kD(o,t):void 0}function Wk(){return cs||(cs=$s("TypedPropertyDescriptor",1,!0)||va)}function jk(){return pe||(pe=$s("TemplateStringsArray",0,!0)||Qn)}function wD(){return wr||(wr=$s("ImportMeta",0,!0)||Qn)}function Hk(){if(!ft){var r=fo(0,"ImportMetaExpression"),t=wD(),i=fo(4,"meta",8);i.parent=r,i.type=t;var o=e.createSymbolTable([i]);r.members=o,ft=ts(r,o,e.emptyArray,e.emptyArray,e.emptyArray)}return ft}function PD(r){return Zt||(Zt=$s("ImportCallOptions",0,r))||Qn}function MD(r){return $a||($a=OD("Symbol",r))}function Jk(r){return Ji||(Ji=RD("SymbolConstructor",r))}function FD(r){return So||(So=$s("Symbol",0,r))||Qn}function oh(r){return bt||(bt=$s("Promise",1,r))||va}function GD(r){return Mn||(Mn=$s("PromiseLike",1,r))||va}function t0(r){return da||(da=OD("Promise",r))}function Kk(r){return ei||(ei=$s("PromiseConstructorLike",0,r))||Qn}function zk(r){return Ro||(Ro=$s("AsyncIterable",1,r))||va}function qk(r){return ko||(ko=$s("AsyncIterator",3,r))||va}function Xk(r){return es||(es=$s("AsyncIterableIterator",1,r))||va}function Yk(r){return as||(as=$s("AsyncGenerator",3,r))||va}function BD(r){return bi||(bi=$s("Iterable",1,r))||va}function Qk(r){return xi||(xi=$s("Iterator",3,r))||va}function Zk(r){return ka||(ka=$s("IterableIterator",1,r))||va}function $k(r){return mi||(mi=$s("Generator",3,r))||va}function eO(r){return Xi||(Xi=$s("IteratorYieldResult",1,r))||va}function rO(r){return Gi||(Gi=$s("IteratorReturnResult",1,r))||va}function UD(r,t){t===void 0&&(t=0);var i=zg(r,788968,void 0);return i&&kD(i,t)}function tO(){return Re||(Re=r0("Extract",2,!0)||We),Re===We?void 0:Re}function nO(){return Qr||(Qr=r0("Omit",2,!0)||We),Qr===We?void 0:Qr}function n0(r){return vn||(vn=r0("Awaited",1,r)||(r?We:void 0)),vn===We?void 0:vn}function aO(r){return Xn||(Xn=$s("BigInt",0,r))||Qn}function qg(r,t){return r!==va?Uf(r,t):Qn}function VD(r){return qg(Wk(),[r])}function iO(r){return qg(BD(!0),[r])}function zs(r,t){return qg(t?Be:se,[r])}function a0(r){switch(r.kind){case 184:return 2;case 185:return WD(r);case 196:return r.questionToken?2:r.dotDotDotToken?WD(r):1;default:return 1}}function WD(r){return uh(r.type)?4:8}function oO(r){var t=lO(r.parent),i=uh(r);if(i)return t?Be:se;var o=e.map(r.elements,a0),s=e.some(r.elements,function(c){return c.kind!==196});return i0(o,t,s?void 0:r.elements)}function jD(r,t){return!!G_(r)||HD(r)&&(r.kind===182?yd(r.elementType):r.kind===183?e.some(r.elements,yd):t||e.some(r.typeArguments,yd))}function HD(r){var t=r.parent;switch(t.kind){case 190:case 196:case 177:case 186:case 187:case 193:case 188:case 192:case 182:case 183:return HD(t);case 258:return!0}return!1}function yd(r){switch(r.kind){case 177:return Cy(r)||!!(rg(r,788968).flags&524288);case 180:return!0;case 192:return r.operator!==153&&yd(r.type);case 190:case 184:case 196:case 314:case 312:case 313:case 307:return yd(r.type);case 185:return r.type.kind!==182||yd(r.type.elementType);case 186:case 187:return e.some(r.types,yd);case 193:return yd(r.objectType)||yd(r.indexType);case 188:return yd(r.checkType)||yd(r.extendsType)||yd(r.trueType)||yd(r.falseType)}return!1}function sO(r){var t=Zn(r);if(!t.resolvedType){var i=oO(r);if(i===va)t.resolvedType=Qn;else if(!(r.kind===183&&e.some(r.elements,function(s){return!!(a0(s)&8)}))&&jD(r))t.resolvedType=r.kind===183&&r.elements.length===0?i:e0(i,r,void 0);else{var o=r.kind===182?[Da(r.elementType)]:e.map(r.elements,Da);t.resolvedType=o0(i,o)}}return t.resolvedType}function lO(r){return e.isTypeOperatorNode(r)&&r.operator===144}function Tu(r,t,i,o){i===void 0&&(i=!1);var s=i0(t||e.map(r,function(c){return 1}),i,o);return s===va?Qn:r.length?o0(s,r):s}function i0(r,t,i){if(r.length===1&&r[0]&4)return t?Be:se;var o=e.map(r,function(c){return c&1?"#":c&2?"?":c&4?".":"*"}).join()+(t?"R":"")+(i&&i.length?","+e.map(i,I).join(","):""),s=tt.get(o);return s||tt.set(o,s=cO(r,t,i)),s}function cO(r,t,i){var o=r.length,s=e.countWhere(r,function(Et){return!!(Et&9)}),c,L=[],G=0;if(o){c=new Array(o);for(var ce=0;ce<o;ce++){var we=c[ce]=nc(),Ue=r[ce];if(G|=Ue,!(G&12)){var Je=fo(4|(Ue&2?16777216:0),""+ce,t?8:0);Je.tupleLabelDeclaration=i==null?void 0:i[ce],Je.type=we,L.push(Je)}}}var ar=L.length,_r=fo(4,"length");if(G&12)_r.type=wt;else{for(var Br=[],ce=s;ce<=o;ce++)Br.push(Wf(ce));_r.type=ma(Br)}L.push(_r);var Zr=Bl(12);return Zr.typeParameters=c,Zr.outerTypeParameters=void 0,Zr.localTypeParameters=c,Zr.instantiations=new e.Map,Zr.instantiations.set(sc(Zr.typeParameters),Zr),Zr.target=Zr,Zr.resolvedTypeArguments=Zr.typeParameters,Zr.thisType=nc(),Zr.thisType.isThisType=!0,Zr.thisType.constraint=Zr,Zr.declaredProperties=L,Zr.declaredCallSignatures=e.emptyArray,Zr.declaredConstructSignatures=e.emptyArray,Zr.declaredIndexInfos=e.emptyArray,Zr.elementFlags=r,Zr.minLength=s,Zr.fixedLength=ar,Zr.hasRestElement=!!(G&12),Zr.combinedFlags=G,Zr.readonly=t,Zr.labeledElementDeclarations=i,Zr}function o0(r,t){return r.objectFlags&8?JD(r,t):Uf(r,t)}function JD(r,t){var i,o,s;if(!(r.combinedFlags&14))return Uf(r,t);if(r.combinedFlags&8){var c=e.findIndex(t,function(Tt,At){return!!(r.elementFlags[At]&8&&Tt.flags&1179648)});if(c>=0)return sh(e.map(t,function(Tt,At){return r.elementFlags[At]&8?Tt:tr}))?ds(t[c],function(Tt){return JD(r,e.replaceElement(t,c,Tt))}):dr}for(var L=[],G=[],ce=[],we=-1,Ue=-1,Je=-1,ar=function(Tt){var At=t[Tt],Vt=r.elementFlags[Tt];if(Vt&8)if(At.flags&58982400||El(At))Et(At,8,(i=r.labeledElementDeclarations)===null||i===void 0?void 0:i[Tt]);else if(ki(At)){var Nn=vo(At);if(Nn.length+L.length>=1e4)return Mr(_e,e.isPartOfTypeNode(_e)?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:dr};e.forEach(Nn,function(on,ca){var la;return Et(on,At.target.elementFlags[ca],(la=At.target.labeledElementDeclarations)===null||la===void 0?void 0:la[ca])})}else Et(_p(At)&&tu(At,wt)||dr,4,(o=r.labeledElementDeclarations)===null||o===void 0?void 0:o[Tt]);else Et(At,Vt,(s=r.labeledElementDeclarations)===null||s===void 0?void 0:s[Tt])},_r=0;_r<t.length;_r++){var Br=ar(_r);if(typeof Br=="object")return Br.value}for(var _r=0;_r<we;_r++)G[_r]&2&&(G[_r]=1);Ue>=0&&Ue<Je&&(L[Ue]=ma(e.sameMap(L.slice(Ue,Je+1),function(Tt,At){return G[Ue+At]&8?Hl(Tt,wt):Tt})),L.splice(Ue+1,Je-Ue),G.splice(Ue+1,Je-Ue),ce==null||ce.splice(Ue+1,Je-Ue));var Zr=i0(G,r.readonly,ce);return Zr===va?Qn:G.length?Uf(Zr,L):Zr;function Et(Tt,At,Vt){At&1&&(we=G.length),At&4&&Ue<0&&(Ue=G.length),At&6&&(Je=G.length),L.push(Tt),G.push(At),ce&&Vt?ce.push(Vt):ce=void 0}}function Xg(r,t,i){i===void 0&&(i=0);var o=r.target,s=op(r)-i;return t>o.fixedLength?zR(r)||Tu(e.emptyArray):Tu(vo(r).slice(t,s),o.elementFlags.slice(t,s),!1,o.labeledElementDeclarations&&o.labeledElementDeclarations.slice(t,s))}function KD(r){return ma(e.append(e.arrayOf(r.target.fixedLength,function(t){return Lc(""+t)}),qu(r.target.readonly?Be:se)))}function zD(r,t){var i=e.findIndex(r.elementFlags,function(o){return!(o&t)});return i>=0?i:r.elementFlags.length}function Iy(r,t){return r.elementFlags.length-e.findLastIndex(r.elementFlags,function(i){return!(i&t)})-1}function uO(r){return Wl(Da(r.type),!0)}function Bc(r){return r.id}function sp(r,t){return e.binarySearch(r,t,Bc,e.compareValues)>=0}function s0(r,t){var i=e.binarySearch(r,t,Bc,e.compareValues);return i<0?(r.splice(~i,0,t),!0):!1}function fO(r,t,i){var o=i.flags;if(o&1048576)return qD(r,t|(mO(i)?1048576:0),i.types);if(!(o&131072))if(t|=o&205258751,o&465829888&&(t|=33554432),i===fr&&(t|=8388608),!Er&&o&98304)e.getObjectFlags(i)&131072||(t|=4194304);else{var s=r.length,c=s&&i.id>r[s-1].id?~s:e.binarySearch(r,i,Bc,e.compareValues);c<0&&r.splice(~c,0,i)}return t}function qD(r,t,i){for(var o=0,s=i;o<s.length;o++){var c=s[o];t=fO(r,t,c)}return t}function dO(r,t){var i=sc(r),o=fe.get(i);if(o)return o;for(var s=t&&e.some(r,function(Et){return!!(Et.flags&524288)&&!El(Et)&&k0(Sc(Et))}),c=r.length,L=c,G=0;L>0;){L--;var ce=r[L];if(s||ce.flags&469499904)for(var we=ce.flags&61603840?e.find(Yi(ce),function(Et){return Su(An(Et))}):void 0,Ue=we&&kl(An(we)),Je=0,ar=r;Je<ar.length;Je++){var _r=ar[Je];if(ce!==_r){if(G===1e5){var Br=G/(c-L)*c;if(Br>1e6){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:r.map(function(Et){return Et.id})}),Mr(_e,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}}if(G++,we&&_r.flags&61603840){var Zr=ia(_r,we.escapedName);if(Zr&&Su(Zr)&&kl(Zr)!==Ue)continue}if(Hf(ce,_r,ri)&&(!(e.getObjectFlags(O_(ce))&1)||!(e.getObjectFlags(O_(_r))&1)||_m(ce,_r))){e.orderedRemoveItemAt(r,L);break}}}}return fe.set(i,r),r}function pO(r,t,i){for(var o=r.length;o>0;){o--;var s=r[o],c=s.flags,L=c&402653312&&t&4||c&256&&t&8||c&2048&&t&64||c&8192&&t&4096||i&&c&32768&&t&16384||Pp(s)&&sp(r,s.regularType);L&&e.orderedRemoveItemAt(r,o)}}function _O(r){var t=e.filter(r,ag);if(t.length)for(var i=r.length,o=function(){i--;var s=r[i];s.flags&128&&e.some(t,function(c){return iA(s,c)})&&e.orderedRemoveItemAt(r,i)};i>0;)o()}function mO(r){return!!(r.flags&1048576&&(r.aliasSymbol||r.origin))}function XD(r,t){for(var i=0,o=t;i<o.length;i++){var s=o[i];if(s.flags&1048576){var c=s.origin;s.aliasSymbol||c&&!(c.flags&1048576)?e.pushIfUnique(r,s):c&&c.flags&1048576&&XD(r,c.types)}}}function l0(r,t){var i=Jd(r);return i.types=t,i}function ma(r,t,i,o,s){if(t===void 0&&(t=1),r.length===0)return en;if(r.length===1)return r[0];var c=[],L=qD(c,0,r);if(t!==0){if(L&3)return L&1?L&8388608?fr:Ze:L&65536||sp(c,tr)?tr:Ir;if(de&&L&32768){var G=e.binarySearch(c,vt,Bc,e.compareValues);G>=0&&sp(c,kr)&&e.orderedRemoveItemAt(c,G)}if((L&402664320||L&16384&&L&32768)&&pO(c,L,!!(t&2)),L&128&&L&134217728&&_O(c),t===2&&(c=dO(c,!!(L&524288)),!c))return dr;if(c.length===0)return L&65536?L&4194304?ut:ht:L&32768?L&4194304?kr:zr:en}if(!s&&L&1048576){var ce=[];XD(ce,r);for(var we=[],Ue=function(At){e.some(ce,function(Vt){return sp(Vt.types,At)})||we.push(At)},Je=0,ar=c;Je<ar.length;Je++){var _r=ar[Je];Ue(_r)}if(!i&&ce.length===1&&we.length===0)return ce[0];var Br=e.reduceLeft(ce,function(At,Vt){return At+Vt.types.length},0);if(Br+we.length===c.length){for(var Zr=0,Et=ce;Zr<Et.length;Zr++){var _r=Et[Zr];s0(we,_r)}s=l0(1048576,we)}}var Tt=(L&36323363?0:65536)|(L&2097152?33554432:0);return u0(c,Tt,i,o,s)}function gO(r,t){for(var i,o=[],s=0,c=r;s<c.length;s++){var L=c[s],G=Dc(L);if(!G||G.kind===2||G.kind===3){if(t!==2097152)continue;return}if(i){if(!c0(i,G))return}else i=G;o.push(G.type)}if(!!i){var ce=_D(o,t);return nh(i.kind,i.parameterName,i.parameterIndex,ce)}}function c0(r,t){return r.kind===t.kind&&r.parameterIndex===t.parameterIndex}function u0(r,t,i,o,s){if(r.length===0)return en;if(r.length===1)return r[0];var c=s?s.flags&1048576?"|".concat(sc(s.types)):s.flags&2097152?"&".concat(sc(s.types)):"#".concat(s.type.id,"|").concat(sc(r)):sc(r),L=c+cm(i,o),G=Rt.get(L);return G||(G=Qs(1048576),G.objectFlags=t|$E(r,98304),G.types=r,G.origin=s,G.aliasSymbol=i,G.aliasTypeArguments=o,r.length===2&&r[0].flags&512&&r[1].flags&512&&(G.flags|=16,G.intrinsicName="boolean"),Rt.set(L,G)),G}function vO(r){var t=Zn(r);if(!t.resolvedType){var i=G_(r);t.resolvedType=ma(e.map(r.types,Da),1,i,um(i))}return t.resolvedType}function hO(r,t,i){var o=i.flags;return o&2097152?YD(r,t,i.types):(OL(i)?t&16777216||(t|=16777216,r.set(i.id.toString(),i)):(o&3?i===fr&&(t|=8388608):(Er||!(o&98304))&&(de&&i===vt&&(t|=262144,i=kr),r.has(i.id.toString())||(i.flags&109440&&t&109440&&(t|=67108864),r.set(i.id.toString(),i))),t|=o&205258751),t)}function YD(r,t,i){for(var o=0,s=i;o<s.length;o++){var c=s[o];t=hO(r,t,kl(c))}return t}function yO(r,t){for(var i=r.length;i>0;){i--;var o=r[i],s=o.flags&4&&t&128||o.flags&8&&t&256||o.flags&64&&t&2048||o.flags&4096&&t&8192;s&&e.orderedRemoveItemAt(r,i)}}function bO(r,t){for(var i=0,o=r;i<o.length;i++){var s=o[i];if(!sp(s.types,t)){var c=t.flags&128?xt:t.flags&256?wt:t.flags&2048?Qt:t.flags&8192?na:void 0;if(!c||!sp(s.types,c))return!1}}return!0}function EO(r){for(var t=r.length,i=e.filter(r,function(G){return!!(G.flags&128)});t>0;){t--;var o=r[t];if(!!(o.flags&134217728))for(var s=0,c=i;s<c.length;s++){var L=c[s];if(Ed(L,o)){e.orderedRemoveItemAt(r,t);break}else if(ag(o))return!0}}return!1}function QD(r,t){return e.every(r,function(i){return!!(i.flags&1048576)&&e.some(i.types,function(o){return!!(o.flags&t)})})}function ZD(r,t){for(var i=0;i<r.length;i++)r[i]=rl(r[i],function(o){return!(o.flags&t)})}function TO(r){var t,i=e.findIndex(r,function(ar){return!!(e.getObjectFlags(ar)&65536)});if(i<0)return!1;for(var o=i+1;o<r.length;){var s=r[o];e.getObjectFlags(s)&65536?((t||(t=[r[i]])).push(s),e.orderedRemoveItemAt(r,o)):o++}if(!t)return!1;for(var c=[],L=[],G=0,ce=t;G<ce.length;G++)for(var we=ce[G],Ue=0,Je=we.types;Ue<Je.length;Ue++){var s=Je[Ue];s0(c,s)&&bO(t,s)&&s0(L,s)}return r[i]=u0(L,65536),!0}function SO(r,t,i){var o=Qs(2097152);return o.objectFlags=$E(r,98304),o.types=r,o.aliasSymbol=t,o.aliasTypeArguments=i,o}function To(r,t,i){var o=new e.Map,s=YD(o,0,r),c=e.arrayFrom(o.values());if(s&131072)return e.contains(c,St)?St:en;if(Er&&s&98304&&s&84410368||s&67108864&&s&402783228||s&402653316&&s&67238776||s&296&&s&469891796||s&2112&&s&469889980||s&12288&&s&469879804||s&49152&&s&469842940||s&134217728&&s&128&&EO(c))return en;if(s&1)return s&8388608?fr:Ze;if(!Er&&s&98304)return s&32768?kr:ut;if((s&4&&s&128||s&8&&s&256||s&64&&s&2048||s&4096&&s&8192)&&yO(c,s),s&16777216&&s&524288&&e.orderedRemoveItemAt(c,e.findIndex(c,OL)),s&262144&&(c[c.indexOf(kr)]=vt),c.length===0)return tr;if(c.length===1)return c[0];var L=sc(c)+cm(t,i),G=cn.get(L);if(!G){if(s&1048576)if(TO(c))G=To(c,t,i);else if(QD(c,32768)){var ce=de&&e.some(c,function(Je){return sp(Je.types,vt)})?vt:kr;ZD(c,32768),G=ma([To(c),ce],1,t,i)}else if(QD(c,65536))ZD(c,65536),G=ma([To(c),ut],1,t,i);else{if(!sh(c))return dr;var we=DO(c),Ue=e.some(we,function(Je){return!!(Je.flags&2097152)})?l0(2097152,c):void 0;G=ma(we,1,t,i,Ue)}else G=SO(c,t,i);cn.set(L,G)}return G}function $D(r){return e.reduceLeft(r,function(t,i){return i.flags&1048576?t*i.types.length:i.flags&131072?0:t},1)}function sh(r){var t=$D(r);return t>=1e5?(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:r.map(function(i){return i.id}),size:t}),Mr(_e,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function DO(r){for(var t=$D(r),i=[],o=0;o<t;o++){for(var s=r.slice(),c=o,L=r.length-1;L>=0;L--)if(r[L].flags&1048576){var G=r[L].types,ce=G.length;s[L]=G[c%ce],c=Math.floor(c/ce)}var we=To(s);we.flags&131072||i.push(we)}return i}function LO(r){var t=Zn(r);if(!t.resolvedType){var i=G_(r);t.resolvedType=To(e.map(r.types,Da),i,um(i))}return t.resolvedType}function eL(r,t){var i=Qs(4194304);return i.type=r,i.stringsOnly=t,i}function AO(r){var t=Jd(4194304);return t.type=r,t}function rL(r,t){return t?r.resolvedStringIndexType||(r.resolvedStringIndexType=eL(r,!0)):r.resolvedIndexType||(r.resolvedIndexType=eL(r,!1))}function CO(r,t,i){var o=eu(r),s=Tc(r),c=of(r.target||r);if(!c&&!i)return s;var L=[];if(Hm(r)){if(F_(s))return rL(r,t);var G=wi(Jm(r));qv(G,8576,t,we)}else h_(jm(s),we);F_(s)&&h_(s,we);var ce=i?rl(ma(L),function(Ue){return!(Ue.flags&5)}):ma(L);if(ce.flags&1048576&&s.flags&1048576&&sc(ce.types)===sc(s.types))return s;return ce;function we(Ue){var Je=c?oi(c,$g(r.mapper,o,Ue)):Ue;L.push(Je===xt?oa:Je)}}function xO(r){var t=eu(r);return i(of(r)||t);function i(o){return o.flags&68157439?!0:o.flags&16777216?o.root.isDistributive&&o.checkType===t:o.flags&137363456?e.every(o.types,i):o.flags&8388608?i(o.objectType)&&i(o.indexType):o.flags&33554432?i(o.substitute):o.flags&268435456?i(o.type):!1}}function lp(r){return e.isPrivateIdentifier(r)?en:e.isIdentifier(r)?Lc(e.unescapeLeadingUnderscores(r.escapedText)):kl(e.isComputedPropertyName(r)?qf(r):ui(r))}function tg(r,t,i){if(i||!(e.getDeclarationModifierFlagsFromSymbol(r)&24)){var o=Ja(Vg(r)).nameType;if(!o){var s=e.getNameOfDeclaration(r.valueDeclaration);o=r.escapedName==="default"?Lc("default"):s&&lp(s)||(e.isKnownSymbol(r)?void 0:Lc(e.symbolName(r)))}if(o&&o.flags&t)return o}return en}function tL(r,t){return!!(r.flags&t||r.flags&2097152&&e.some(r.types,function(i){return tL(i,t)}))}function IO(r,t,i){var o=i&&(e.getObjectFlags(r)&7||r.aliasSymbol)?AO(r):void 0,s=e.map(Yi(r),function(L){return tg(L,t)}),c=e.map(Ms(r),function(L){return L!==Yo&&tL(L.keyType,t)?L.keyType===xt&&t&8?oa:L.keyType:en});return ma(e.concatenate(s,c),1,void 0,void 0,o)}function qu(r,t,i){return t===void 0&&(t=ur),r=Eo(r),r.flags&1048576?To(e.map(r.types,function(o){return qu(o,t,i)})):r.flags&2097152?ma(e.map(r.types,function(o){return qu(o,t,i)})):r.flags&58982400||lg(r)||El(r)&&!xO(r)?rL(r,t):e.getObjectFlags(r)&32?CO(r,t,i):r===fr?fr:r.flags&2?en:r.flags&131073?_t:IO(r,(i?128:402653316)|(t?0:12584),t===ur&&!i)}function nL(r){if(ur)return r;var t=tO();return t?eg(t,[r,xt]):xt}function NO(r){var t=nL(qu(r));return t.flags&131072?xt:t}function kO(r){var t=Zn(r);if(!t.resolvedType)switch(r.operator){case 140:t.resolvedType=qu(Da(r.type));break;case 153:t.resolvedType=r.type.kind===150?T0(e.walkUpParenthesizedTypes(r.parent)):dr;break;case 144:t.resolvedType=Da(r.type);break;default:throw e.Debug.assertNever(r.operator)}return t.resolvedType}function OO(r){var t=Zn(r);return t.resolvedType||(t.resolvedType=ng(Gt([r.head.text],e.map(r.templateSpans,function(i){return i.literal.text}),!0),e.map(r.templateSpans,function(i){return Da(i.type)}))),t.resolvedType}function ng(r,t){var i=e.findIndex(t,function(we){return!!(we.flags&1179648)});if(i>=0)return sh(t)?ds(t[i],function(we){return ng(r,e.replaceElement(t,i,we))}):dr;if(e.contains(t,fr))return fr;var o=[],s=[],c=r[0];if(!ce(r,t))return xt;if(o.length===0)return Lc(c);if(s.push(c),e.every(s,function(we){return we===""})&&e.every(o,function(we){return!!(we.flags&4)}))return xt;var L="".concat(sc(o),"|").concat(e.map(s,function(we){return we.length}).join(","),"|").concat(s.join("")),G=sr.get(L);return G||sr.set(L,G=wO(s,o)),G;function ce(we,Ue){for(var Je=0;Je<Ue.length;Je++){var ar=Ue[Je];if(ar.flags&101248)c+=RO(ar)||"",c+=we[Je+1];else if(ar.flags&134217728){if(c+=ar.texts[0],!ce(ar.texts,ar.types))return!1;c+=we[Je+1]}else if(F_(ar)||iL(ar))o.push(ar),s.push(c),c=we[Je+1];else return!1}return!0}}function RO(r){return r.flags&128?r.value:r.flags&256?""+r.value:r.flags&2048?e.pseudoBigIntToString(r.value):r.flags&98816?r.intrinsicName:void 0}function wO(r,t){var i=Qs(134217728);return i.texts=r,i.types=t,i}function Ny(r,t){return t.flags&1179648?ds(t,function(i){return Ny(r,i)}):F_(t)?MO(r,t):t.flags&128?Lc(PO(r,t.value)):t}function PO(r,t){switch(U.get(r.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 MO(r,t){var i="".concat(y(r),",").concat(Bc(t)),o=ye.get(i);return o||ye.set(i,o=FO(r,t)),o}function FO(r,t){var i=Qs(268435456);return i.symbol=r,i.type=t,i}function GO(r,t,i,o,s){var c=Qs(8388608);return c.objectType=r,c.indexType=t,c.accessFlags=i,c.aliasSymbol=o,c.aliasTypeArguments=s,c}function Yg(r){if(Ke)return!1;if(e.getObjectFlags(r)&8192)return!0;if(r.flags&1048576)return e.every(r.types,Yg);if(r.flags&2097152)return e.some(r.types,Yg);if(r.flags&465829888){var t=Vr(r);return t!==r&&Yg(t)}return!1}function f0(r,t){return gu(r)?vu(r):t&&e.isPropertyName(t)?e.getPropertyNameForPropertyNameNode(t):void 0}function d0(r,t){if(t.flags&8208){var i=e.findAncestor(r.parent,function(o){return!e.isAccessExpression(o)})||r.parent;return e.isCallLikeExpression(i)?e.isCallOrNewExpression(i)&&e.isIdentifier(r)&&pA(i,r):e.every(t.declarations,function(o){return!e.isFunctionLike(o)||!!(e.getCombinedNodeFlags(o)&134217728)})}return!0}function aL(r,t,i,o,s,c){var L,G=s&&s.kind===206?s:void 0,ce=s&&e.isPrivateIdentifier(s)?void 0:f0(i,s);if(ce!==void 0){if(c&256)return E_(t,ce)||Ze;var we=Ii(t,ce);if(we){if(c&64&&s&&we.declarations&&uv(we)&134217728&&d0(s,we)){var Ue=(L=G==null?void 0:G.argumentExpression)!==null&&L!==void 0?L:e.isIndexedAccessTypeNode(s)?s.indexType:s;kc(Ue,we.declarations,ce)}if(G){if(xh(we,G,gC(G.expression,t.symbol)),tx(G,we,e.getAssignmentTargetKind(G))){Mr(G.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Wa(we));return}if(c&8&&(Zn(s).resolvedSymbol=we),cC(G,we))return xr}var Je=An(we);return G&&e.getAssignmentTargetKind(G)!==1?b_(G,Je):Je}if(Kf(t,ki)&&zf(ce)&&+ce>=0){if(s&&Kf(t,function(on){return!on.target.hasRestElement})&&!(c&16)){var ar=p0(s);ki(t)?Mr(ar,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,gn(t),op(t),e.unescapeLeadingUnderscores(ce)):Mr(ar,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(ce),gn(t))}return Nn(oc(t,wt)),ds(t,function(on){var ca=tv(on)||kr;return c&1?ma([ca,kr]):ca})}}if(!(i.flags&98304)&&ys(i,402665900)){if(t.flags&131073)return t;var _r=Xm(t,i)||oc(t,xt);if(_r){if(c&2&&_r.keyType!==wt){G&&Mr(G,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,gn(i),gn(r));return}if(s&&_r.keyType===xt&&!ys(i,12)){var ar=p0(s);return Mr(ar,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,gn(i)),c&1?ma([_r.type,kr]):_r.type}return Nn(_r),c&1?ma([_r.type,kr]):_r.type}if(i.flags&131072)return en;if(Yg(t))return Ze;if(G&&!eT(t)){if(Gp(t)){if(Ke&&i.flags&384)return ua.add(e.createDiagnosticForNode(G,e.Diagnostics.Property_0_does_not_exist_on_type_1,i.value,gn(t))),kr;if(i.flags&12){var Br=e.map(t.properties,function(on){return An(on)});return ma(e.append(Br,kr))}}if(t.symbol===pr&&ce!==void 0&&pr.exports.has(ce)&&pr.exports.get(ce).flags&418)Mr(G,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(ce),gn(t));else if(Ke&&!Xe.suppressImplicitAnyIndexErrors&&!(c&128))if(ce!==void 0&&pC(ce,t)){var Zr=gn(t);Mr(G,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,ce,Zr,Zr+"["+e.getTextOfNode(G.argumentExpression)+"]")}else if(tu(t,wt))Mr(G.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var Et=void 0;if(ce!==void 0&&(Et=G1(ce,t)))Et!==void 0&&Mr(G.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,ce,gn(t),Et);else{var Tt=yM(t,G,i);if(Tt!==void 0)Mr(G,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,gn(t),Tt);else{var At=void 0;if(i.flags&1024)At=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+gn(i)+"]",gn(t));else if(i.flags&8192){var Vt=sl(i.symbol,G);At=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Vt+"]",gn(t))}else i.flags&128||i.flags&256?At=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,i.value,gn(t)):i.flags&12&&(At=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,gn(i),gn(t)));At=e.chainDiagnosticMessages(At,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,gn(o),gn(t)),ua.add(e.createDiagnosticForNodeFromMessageChain(G,At))}}}return}}if(Yg(t))return Ze;if(s){var ar=p0(s);i.flags&384?Mr(ar,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+i.value,gn(t)):i.flags&12?Mr(ar,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,gn(t),gn(i)):Mr(ar,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,gn(i))}if(Na(i))return i;return;function Nn(on){on&&on.isReadonly&&G&&(e.isAssignmentTarget(G)||e.isDeleteTarget(G))&&Mr(G,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,gn(t))}}function p0(r){return r.kind===206?r.argumentExpression:r.kind===193?r.indexType:r.kind===161?r.expression:r}function iL(r){return!!(r.flags&77)}function ag(r){return!!(r.flags&134217728)&&e.every(r.types,iL)}function Qg(r){return!!Zg(r)}function M_(r){return!!(Zg(r)&8388608)}function F_(r){return!!(Zg(r)&16777216)}function Zg(r){return r.flags&3145728?(r.objectFlags&4194304||(r.objectFlags|=4194304|e.reduceLeft(r.types,function(t,i){return t|Zg(i)},0)),r.objectFlags&25165824):r.flags&33554432?(r.objectFlags&4194304||(r.objectFlags|=4194304|Zg(r.substitute)|Zg(r.baseType)),r.objectFlags&25165824):(r.flags&58982400||El(r)||lg(r)?8388608:0)|(r.flags&465829888&&!ag(r)?16777216:0)}function lh(r){return!!(r.flags&262144&&r.isThisType)}function Vf(r,t){return r.flags&8388608?UO(r,t):r.flags&16777216?VO(r,t):r}function oL(r,t,i){if(r.flags&3145728){var o=e.map(r.types,function(s){return Vf(Hl(s,t),i)});return r.flags&2097152||i?To(o):ma(o)}}function BO(r,t,i){if(t.flags&1048576){var o=e.map(t.types,function(s){return Vf(Hl(r,s),i)});return i?To(o):ma(o)}}function UO(r,t){var i=t?"simplifiedForWriting":"simplifiedForReading";if(r[i])return r[i]===Ka?r:r[i];r[i]=Ka;var o=Vf(r.objectType,t),s=Vf(r.indexType,t),c=BO(o,s,t);if(c)return r[i]=c;if(!(s.flags&465829888)){var L=oL(o,s,t);if(L)return r[i]=L}if(lg(o)&&s.flags&296){var G=Wy(o,s.flags&8?0:o.target.fixedLength,0,t);if(G)return r[i]=G}return El(o)?r[i]=ds(lL(o,r.indexType),function(ce){return Vf(ce,t)}):r[i]=r}function VO(r,t){var i=r.checkType,o=r.extendsType,s=up(r),c=fp(r);if(c.flags&131072&&p_(s)===p_(i)){if(i.flags&1||Qi(g_(i),g_(o)))return Vf(s,t);if(sL(i,o))return en}else if(s.flags&131072&&p_(c)===p_(i)){if(!(i.flags&1)&&Qi(g_(i),g_(o)))return en;if(i.flags&1||sL(i,o))return Vf(c,t)}return r}function sL(r,t){return!!(ma([om(r,t),en]).flags&131072)}function lL(r,t){var i=Ol([eu(r)],[t]),o=m_(r.mapper,i);return oi(yu(r),o)}function Hl(r,t,i,o,s,c){return i===void 0&&(i=0),cp(r,t,i,o,s,c)||(o?dr:tr)}function cL(r,t){return Kf(r,function(i){if(i.flags&384){var o=vu(i);if(zf(o)){var s=+o;return s>=0&&s<t}}return!1})}function cp(r,t,i,o,s,c){if(i===void 0&&(i=0),r===fr||t===fr)return fr;if(RL(r)&&!(t.flags&98304)&&ys(t,12)&&(t=xt),Xe.noUncheckedIndexedAccess&&i&32&&(i|=1),F_(t)||(o&&o.kind!==193?lg(r)&&!cL(t,r.target.fixedLength):M_(r)&&!(ki(r)&&cL(t,r.target.fixedLength)))){if(r.flags&3)return r;var L=i&1,G=r.id+","+t.id+","+L+cm(s,c),ce=Rr.get(G);return ce||Rr.set(G,ce=GO(r,t,L,s,c)),ce}var we=Is(r);if(t.flags&1048576&&!(t.flags&16)){for(var Ue=[],Je=!1,ar=0,_r=t.types;ar<_r.length;ar++){var Br=_r[ar],Zr=aL(r,we,Br,t,o,i|(Je?128:0));if(Zr)Ue.push(Zr);else if(o)Je=!0;else return}return Je?void 0:i&4?To(Ue,s,c):ma(Ue,1,s,c)}return aL(r,we,t,t,o,i|8|64)}function uL(r){var t=Zn(r);if(!t.resolvedType){var i=Da(r.objectType),o=Da(r.indexType),s=G_(r),c=Hl(i,o,0,r,s,um(s));t.resolvedType=c.flags&8388608&&c.objectType===i&&c.indexType===o?xD(c,r):c}return t.resolvedType}function _0(r){var t=Zn(r);if(!t.resolvedType){var i=Bl(32,r.symbol);i.declaration=r,i.aliasSymbol=G_(r),i.aliasTypeArguments=um(i.aliasSymbol),t.resolvedType=i,Tc(i)}return t.resolvedType}function p_(r){return r.flags&33554432?r.baseType:r.flags&8388608&&(r.objectType.flags&33554432||r.indexType.flags&33554432)?Hl(p_(r.objectType),p_(r.indexType)):r}function fL(r){return!r.isDistributive&&dL(r.node.checkType)&&dL(r.node.extendsType)}function dL(r){return e.isTupleTypeNode(r)&&e.length(r.elements)===1&&!e.isOptionalTypeNode(r.elements[0])&&!e.isRestTypeNode(r.elements[0])}function m0(r,t){return fL(r)&&ki(t)?vo(t)[0]:t}function g0(r,t,i,o){for(var s,c,L=0;;){if(L===1e3){Mr(_e,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),s=dr;break}var G=fL(r),ce=oi(m0(r,p_(r.checkType)),t),we=Qg(ce),Ue=oi(m0(r,r.extendsType),t);if(ce===fr||Ue===fr)return fr;var Je=void 0;if(r.inferTypeParameters){var ar=av(r.inferTypeParameters,void 0,0);we||uf(ar.inferences,ce,Ue,1536),Je=t?m_(ar.mapper,t):ar.mapper}var _r=Je?oi(m0(r,r.extendsType),Je):Ue;if(!we&&!Qg(_r)){if(!(_r.flags&3)&&(ce.flags&1&&!G||!Qi(Fy(ce),Fy(_r)))){ce.flags&1&&!G&&(c||(c=[])).push(oi(Da(r.node.trueType),Je||t));var Br=Da(r.node.falseType);if(Br.flags&16777216){var Zr=Br.root;if(Zr.node.parent===r.node&&(!Zr.isDistributive||Zr.checkType===r.checkType)){r=Zr;continue}if(At(Br,t))continue}s=oi(Br,t);break}if(_r.flags&3||Qi(g_(ce),g_(_r))){var Et=Da(r.node.trueType),Tt=Je||t;if(At(Et,Tt))continue;s=oi(Et,Tt);break}}s=Qs(16777216),s.root=r,s.checkType=oi(r.checkType,t),s.extendsType=oi(r.extendsType,t),s.mapper=t,s.combinedMapper=Je,s.aliasSymbol=i||r.aliasSymbol,s.aliasTypeArguments=i?o:bd(r.aliasTypeArguments,t);break}return c?ma(e.append(c,s)):s;function At(Vt,Nn){if(Vt.flags&16777216&&Nn){var on=Vt.root;if(on.outerTypeParameters){var ca=m_(Vt.mapper,Nn),la=e.map(on.outerTypeParameters,function(Li){return dp(Li,ca)}),di=Ol(on.outerTypeParameters,la),Aa=on.isDistributive?dp(on.checkType,di):void 0;if(!Aa||Aa===on.checkType||!(Aa.flags&1179648))return r=on,t=di,i=void 0,o=void 0,on.aliasSymbol&&L++,!0}}return!1}}function up(r){return r.resolvedTrueType||(r.resolvedTrueType=oi(Da(r.root.node.trueType),r.mapper))}function fp(r){return r.resolvedFalseType||(r.resolvedFalseType=oi(Da(r.root.node.falseType),r.mapper))}function WO(r){return r.resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?oi(Da(r.root.node.trueType),r.combinedMapper):up(r))}function pL(r){var t;return r.locals&&r.locals.forEach(function(i){i.flags&262144&&(t=e.append(t,po(i)))}),t}function jO(r){return r.isDistributive&&(My(r.checkType,r.node.trueType)||My(r.checkType,r.node.falseType))}function HO(r){var t=Zn(r);if(!t.resolvedType){var i=Da(r.checkType),o=G_(r),s=um(o),c=Hu(r,!0),L=s?c:e.filter(c,function(ce){return My(ce,r)}),G={node:r,checkType:i,extendsType:Da(r.extendsType),isDistributive:!!(i.flags&262144),inferTypeParameters:pL(r),outerTypeParameters:L,instantiations:void 0,aliasSymbol:o,aliasTypeArguments:s};t.resolvedType=g0(G,void 0),L&&(G.instantiations=new e.Map,G.instantiations.set(sc(L),t.resolvedType))}return t.resolvedType}function JO(r){var t=Zn(r);return t.resolvedType||(t.resolvedType=vl(wn(r.typeParameter))),t.resolvedType}function _L(r){return e.isIdentifier(r)?[r]:e.append(_L(r.left),r.right)}function KO(r){var t=Zn(r);if(!t.resolvedType){if(r.isTypeOf&&r.typeArguments)return Mr(r,e.Diagnostics.Type_arguments_cannot_be_used_here),t.resolvedSymbol=We,t.resolvedType=dr;if(!e.isLiteralImportTypeNode(r))return Mr(r.argument,e.Diagnostics.String_literal_expected),t.resolvedSymbol=We,t.resolvedType=dr;var i=r.isTypeOf?111551:r.flags&4194304?900095:788968,o=ws(r,r.argument.literal);if(!o)return t.resolvedSymbol=We,t.resolvedType=dr;var s=ll(o,!1);if(e.nodeIsMissing(r.qualifier))if(s.flags&i)t.resolvedType=mL(r,t,s,i);else{var Je=i===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;Mr(r,Je,r.argument.literal.text),t.resolvedSymbol=We,t.resolvedType=dr}else{for(var c=_L(r.qualifier),L=s,G=void 0;G=c.shift();){var ce=c.length?1920:i,we=Ga(wo(L)),Ue=r.isTypeOf?Ii(An(we),G.escapedText):ks(Js(we),G.escapedText,ce);if(!Ue)return Mr(G,e.Diagnostics.Namespace_0_has_no_exported_member_1,sl(L),e.declarationNameToString(G)),t.resolvedType=dr;Zn(G).resolvedSymbol=Ue,Zn(G.parent).resolvedSymbol=Ue,L=Ue}t.resolvedType=mL(r,t,L,i)}}return t.resolvedType}function mL(r,t,i,o){var s=wo(i);return t.resolvedSymbol=s,o===111551?An(i):Ay(r,s)}function gL(r){var t=Zn(r);if(!t.resolvedType){var i=G_(r);if(af(r.symbol).size===0&&!i)t.resolvedType=_i;else{var o=Bl(16,r.symbol);o.aliasSymbol=i,o.aliasTypeArguments=um(i),e.isJSDocTypeLiteral(r)&&r.isArrayType&&(o=zs(o)),t.resolvedType=o}}return t.resolvedType}function G_(r){for(var t=r.parent;e.isParenthesizedTypeNode(t)||e.isJSDocTypeExpression(t)||e.isTypeOperatorNode(t)&&t.operator===144;)t=t.parent;return e.isTypeAlias(t)?wn(t):void 0}function um(r){return r?mu(r):void 0}function v0(r){return!!(r.flags&524288)&&!El(r)}function h0(r){return cf(r)||!!(r.flags&474058748)}function y0(r,t){if(!(r.flags&1048576))return r;if(e.every(r.types,h0))return e.find(r.types,cf)||Qn;var i=e.find(r.types,function(c){return!h0(c)});if(!i)return r;var o=e.find(r.types,function(c){return c!==i&&!h0(c)});if(o)return r;return s(i);function s(c){for(var L=e.createSymbolTable(),G=0,ce=Yi(c);G<ce.length;G++){var we=ce[G];if(!(e.getDeclarationModifierFlagsFromSymbol(we)&24)){if(ky(we)){var Ue=we.flags&65536&&!(we.flags&32768),Je=16777220,ar=fo(Je,we.escapedName,zv(we)|(t?8:0));ar.type=Ue?kr:Wl(An(we),!0),ar.declarations=we.declarations,ar.nameType=Ja(we).nameType,ar.syntheticOrigin=we,L.set(we.escapedName,ar)}}}var _r=ts(c.symbol,L,e.emptyArray,e.emptyArray,Ms(c));return _r.objectFlags|=262272,_r}}function wp(r,t,i,o,s){if(r.flags&1||t.flags&1)return Ze;if(r.flags&2||t.flags&2)return tr;if(r.flags&131072)return t;if(t.flags&131072)return r;if(r=y0(r,s),r.flags&1048576)return sh([r,t])?ds(r,function(on){return wp(on,t,i,o,s)}):dr;if(t=y0(t,s),t.flags&1048576)return sh([r,t])?ds(t,function(on){return wp(r,on,i,o,s)}):dr;if(t.flags&473960444)return r;if(M_(r)||M_(t)){if(cf(r))return t;if(r.flags&2097152){var c=r.types,L=c[c.length-1];if(v0(L)&&v0(t))return To(e.concatenate(c.slice(0,c.length-1),[wp(L,t,i,o,s)]))}return To([r,t])}for(var G=e.createSymbolTable(),ce=new e.Set,we=r===Qn?Ms(t):Jv([r,t]),Ue=0,Je=Yi(t);Ue<Je.length;Ue++){var ar=Je[Ue];e.getDeclarationModifierFlagsFromSymbol(ar)&24?ce.add(ar.escapedName):ky(ar)&&G.set(ar.escapedName,b0(ar,s))}for(var _r=0,Br=Yi(r);_r<Br.length;_r++){var Zr=Br[_r];if(!(ce.has(Zr.escapedName)||!ky(Zr)))if(G.has(Zr.escapedName)){var ar=G.get(Zr.escapedName),Et=An(ar);if(ar.flags&16777216){var Tt=e.concatenate(Zr.declarations,ar.declarations),At=4|Zr.flags&16777216,Vt=fo(At,Zr.escapedName);Vt.type=ma([An(Zr),z0(Et)]),Vt.leftSpread=Zr,Vt.rightSpread=ar,Vt.declarations=Tt,Vt.nameType=Ja(Zr).nameType,G.set(Zr.escapedName,Vt)}}else G.set(Zr.escapedName,b0(Zr,s))}var Nn=ts(i,G,e.emptyArray,e.emptyArray,e.sameMap(we,function(on){return zO(on,s)}));return Nn.objectFlags|=4456576|o,Nn}function ky(r){var t;return!e.some(r.declarations,e.isPrivateIdentifierClassElementDeclaration)&&(!(r.flags&106496)||!(!((t=r.declarations)===null||t===void 0)&&t.some(function(i){return e.isClassLike(i.parent)})))}function b0(r,t){var i=r.flags&65536&&!(r.flags&32768);if(!i&&t===Iu(r))return r;var o=4|r.flags&16777216,s=fo(o,r.escapedName,zv(r)|(t?8:0));return s.type=i?kr:An(r),s.declarations=r.declarations,s.nameType=Ja(r).nameType,s.syntheticOrigin=r,s}function zO(r,t){return r.isReadonly!==t?Eu(r.keyType,r.type,t,r.declaration):r}function ch(r,t,i,o){var s=Qs(r);return s.symbol=i,s.value=t,s.regularType=o||s,s}function fm(r){if(r.flags&2944){if(!r.freshType){var t=ch(r.flags,r.value,r.symbol,r);t.freshType=t,r.freshType=t}return r.freshType}return r}function kl(r){return r.flags&2944?r.regularType:r.flags&1048576?r.regularType||(r.regularType=ds(r,kl)):r}function Pp(r){return!!(r.flags&2944)&&r.freshType===r}function Lc(r){var t;return bn.get(r)||(bn.set(r,t=ch(128,r)),t)}function Wf(r){var t;return In.get(r)||(In.set(r,t=ch(256,r)),t)}function E0(r){var t,i=e.pseudoBigIntToString(r);return zn.get(i)||(zn.set(i,t=ch(2048,r)),t)}function qO(r,t,i){var o,s=typeof r=="string"?"@":"#",c=t+s+r,L=1024|(typeof r=="string"?128:256);return ir.get(c)||(ir.set(c,o=ch(L,r,i)),o)}function XO(r){if(r.literal.kind===104)return ut;var t=Zn(r);return t.resolvedType||(t.resolvedType=kl(ui(r.literal))),t.resolvedType}function YO(r){var t=Qs(8192);return t.symbol=r,t.escapedName="__@".concat(t.symbol.escapedName,"@").concat(y(t.symbol)),t}function T0(r){if(e.isValidESSymbolDeclaration(r)){var t=wn(r),i=Ja(t);return i.uniqueESSymbolType||(i.uniqueESSymbolType=YO(t))}return na}function QO(r){var t=e.getThisContainer(r,!1),i=t&&t.parent;if(i&&(e.isClassLike(i)||i.kind===257)&&!e.isStatic(t)&&(!e.isConstructorDeclaration(t)||e.isNodeDescendantOf(r,t.body)))return Hn(wn(i)).thisType;if(i&&e.isObjectLiteralExpression(i)&&e.isBinaryExpression(i.parent)&&e.getAssignmentDeclarationKind(i.parent)===6)return Hn(wn(i.parent.left).parent).thisType;var o=r.flags&4194304?e.getHostSignatureFromJSDoc(r):void 0;return o&&e.isFunctionExpression(o)&&e.isBinaryExpression(o.parent)&&e.getAssignmentDeclarationKind(o.parent)===3?Hn(wn(o.parent.left).parent).thisType:ou(t)&&e.isNodeDescendantOf(r,t.body)?Hn(wn(t)).thisType:(Mr(r,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),dr)}function Oy(r){var t=Zn(r);return t.resolvedType||(t.resolvedType=QO(r)),t.resolvedType}function vL(r){return Da(uh(r.type)||r.type)}function uh(r){switch(r.kind){case 190:return uh(r.type);case 183:if(r.elements.length===1&&(r=r.elements[0],r.kind===185||r.kind===196&&r.dotDotDotToken))return uh(r.type);break;case 182:return r.elementType}}function ZO(r){var t=Zn(r);return t.resolvedType||(t.resolvedType=r.dotDotDotToken?vL(r):Wl(Da(r.type),!0,!!r.questionToken))}function Da(r){return xD(hL(r),r)}function hL(r){switch(r.kind){case 130:case 310:case 311:return Ze;case 154:return tr;case 149:return xt;case 146:return wt;case 157:return Qt;case 133:return Jn;case 150:return na;case 114:return Wn;case 152:return kr;case 104:return ut;case 143:return en;case 147:return r.flags&131072&&!Ke?Ze:dn;case 138:return Wr;case 191:case 108:return Oy(r);case 195:return XO(r);case 177:return ih(r);case 176:return r.assertsModifier?Wn:Jn;case 227:return ih(r);case 180:return ND(r);case 182:case 183:return sO(r);case 184:return uO(r);case 186:return vO(r);case 187:return LO(r);case 312:return Vk(r);case 314:return Wl(Da(r.type));case 196:return ZO(r);case 190:case 313:case 307:return Da(r.type);case 185:return vL(r);case 316:return t8(r);case 178:case 179:case 181:case 320:case 315:case 321:return gL(r);case 192:return kO(r);case 193:return uL(r);case 194:return _0(r);case 188:return HO(r);case 189:return JO(r);case 197:return OO(r);case 199:return KO(r);case 79:case 160:case 205:var t=Vc(r);return t?po(t):dr;default:return dr}}function Ry(r,t,i){if(r&&r.length)for(var o=0;o<r.length;o++){var s=r[o],c=i(s,t);if(s!==c){var L=o===0?[]:r.slice(0,o);for(L.push(c),o++;o<r.length;o++)L.push(i(r[o],t));return L}}return r}function bd(r,t){return Ry(r,t,oi)}function wy(r,t){return Ry(r,t,pm)}function yL(r,t){return Ry(r,t,fR)}function Ol(r,t){return r.length===1?B_(r[0],t?t[0]:Ze):$O(r,t)}function dp(r,t){switch(t.kind){case 0:return r===t.source?t.target:r;case 1:for(var i=t.sources,o=t.targets,s=0;s<i.length;s++)if(r===i[s])return o?o[s]:Ze;return r;case 2:return t.func(r);case 3:case 4:var c=dp(r,t.mapper1);return c!==r&&t.kind===3?oi(c,t.mapper2):dp(c,t.mapper2)}}function B_(r,t){return{kind:0,source:r,target:t}}function $O(r,t){return{kind:1,sources:r,targets:t}}function __(r){return{kind:2,func:r}}function Py(r,t,i){return{kind:r,mapper1:t,mapper2:i}}function bL(r){return Ol(r,void 0)}function eR(r,t){return __(function(i){return e.findIndex(r.inferences,function(o){return o.typeParameter===i})>=t?tr:i})}function m_(r,t){return r?Py(3,r,t):t}function rR(r,t){return r?Py(4,r,t):t}function dm(r,t,i){return i?Py(4,B_(r,t),i):B_(r,t)}function $g(r,t,i){return r?Py(4,r,B_(t,i)):B_(t,i)}function tR(r){return r.constraint===tr?r:r.restrictiveInstantiation||(r.restrictiveInstantiation=nc(r.symbol),r.restrictiveInstantiation.constraint=tr,r.restrictiveInstantiation)}function EL(r){var t=nc(r.symbol);return t.target=r,t}function nR(r,t){return nh(r.kind,r.parameterName,r.parameterIndex,oi(r.type,t))}function pm(r,t,i){var o;if(r.typeParameters&&!i){o=e.map(r.typeParameters,EL),t=m_(Ol(r.typeParameters,o),t);for(var s=0,c=o;s<c.length;s++){var L=c[s];L.mapper=t}}var G=hu(r.declaration,o,r.thisParameter&&S0(r.thisParameter,t),Ry(r.parameters,t,S0),void 0,void 0,r.minArgumentCount,r.flags&39);return G.target=r,G.mapper=t,G}function S0(r,t){var i=Ja(r);if(i.type&&!iv(i.type))return r;e.getCheckFlags(r)&1&&(r=i.target,t=m_(i.mapper,t));var o=fo(r.flags,r.escapedName,1|e.getCheckFlags(r)&53256);return o.declarations=r.declarations,o.parent=r.parent,o.target=r,o.mapper=t,r.valueDeclaration&&(o.valueDeclaration=r.valueDeclaration),i.nameType&&(o.nameType=i.nameType),o}function aR(r,t,i,o){var s=r.objectFlags&4?r.node:r.symbol.declarations[0],c=Zn(s),L=r.objectFlags&4?c.resolvedType:r.objectFlags&64?r.target:r,G=c.outerTypeParameters;if(!G){var ce=Hu(s,!0);if(ou(s)){var we=th(s);ce=e.addRange(ce,we)}G=ce||e.emptyArray;var Ue=r.objectFlags&4?[s]:r.symbol.declarations;G=(L.objectFlags&4||L.symbol.flags&8192||L.symbol.flags&2048)&&!L.aliasTypeArguments?e.filter(G,function(At){return e.some(Ue,function(Vt){return My(At,Vt)})}):G,c.outerTypeParameters=G}if(G.length){var Je=m_(r.mapper,t),ar=e.map(G,function(At){return dp(At,Je)}),_r=i||r.aliasSymbol,Br=i?o:bd(r.aliasTypeArguments,t),Zr=sc(ar)+cm(_r,Br);L.instantiations||(L.instantiations=new e.Map,L.instantiations.set(sc(G)+cm(L.aliasSymbol,L.aliasTypeArguments),L));var Et=L.instantiations.get(Zr);if(!Et){var Tt=Ol(G,ar);Et=L.objectFlags&4?e0(r.target,r.node,Tt,_r,Br):L.objectFlags&32?TL(L,Tt,_r,Br):A0(L,Tt,_r,Br),L.instantiations.set(Zr,Et)}return Et}return r}function iR(r){return!(r.parent.kind===177&&r.parent.typeArguments&&r===r.parent.typeName||r.parent.kind===199&&r.parent.typeArguments&&r===r.parent.qualifier)}function My(r,t){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations.length===1){for(var i=r.symbol.declarations[0].parent,o=t;o!==i;o=o.parent)if(!o||o.kind===234||o.kind===188&&e.forEachChild(o.extendsType,s))return!0;return s(t)}return!0;function s(c){switch(c.kind){case 191:return!!r.isThisType;case 79:return!r.isThisType&&e.isPartOfTypeNode(c)&&iR(c)&&hL(c)===r;case 180:return!0;case 168:case 167:return!c.type&&!!c.body||e.some(c.typeParameters,s)||e.some(c.parameters,s)||!!c.type&&s(c.type)}return!!e.forEachChild(c,s)}}function D0(r){var t=Tc(r);if(t.flags&4194304){var i=p_(t.type);if(i.flags&262144)return i}}function TL(r,t,i,o){var s=D0(r);if(s){var c=oi(s,t);if(s!==c)return TA(Eo(c),function(L){if(L.flags&61603843&&L!==fr&&!Ua(L)){if(!r.declaration.nameType){var G=void 0;if(el(L)||L.flags&1&&Qe(s,4)<0&&(G=Nl(s))&&Kf(G,e.or(el,ki)))return sR(L,r,dm(s,L,t));if(lg(L))return oR(L,r,s,t);if(ki(L))return lR(L,r,dm(s,L,t))}return A0(r,dm(s,L,t))}return L},i,o)}return oi(Tc(r),t)===fr?fr:A0(r,t,i,o)}function L0(r,t){return t&1?!0:t&2?!1:r}function oR(r,t,i,o){var s=r.target.elementFlags,c=e.map(vo(r),function(G,ce){var we=s[ce]&8?G:s[ce]&4?zs(G):Tu([G],[s[ce]]);return TL(t,dm(i,we,o))}),L=L0(r.target.readonly,ru(t));return Tu(c,e.map(c,function(G){return 8}),L)}function sR(r,t,i){var o=SL(t,wt,!0,i);return Ua(o)?dr:zs(o,L0(og(r),ru(t)))}function lR(r,t,i){var o=r.target.elementFlags,s=e.map(vo(r),function(ce,we){return SL(t,Lc(""+we),!!(o[we]&2),i)}),c=ru(t),L=c&4?e.map(o,function(ce){return ce&1?2:ce}):c&8?e.map(o,function(ce){return ce&2?1:ce}):o,G=L0(r.target.readonly,c);return e.contains(s,dr)?dr:Tu(s,L,G,r.target.labeledElementDeclarations)}function SL(r,t,i,o){var s=$g(o,eu(r),t),c=oi(yu(r.target||r),s),L=ru(r);return Er&&L&4&&!Jo(c,49152)?Jf(c,!0):Er&&L&8&&i?Fs(c,524288):c}function A0(r,t,i,o){var s=Bl(r.objectFlags|64,r.symbol);if(r.objectFlags&32){s.declaration=r.declaration;var c=eu(r),L=EL(c);s.typeParameter=L,t=m_(B_(c,L),t),L.mapper=t}return s.target=r,s.mapper=t,s.aliasSymbol=i||r.aliasSymbol,s.aliasTypeArguments=i?o:bd(r.aliasTypeArguments,t),s}function C0(r,t,i,o){var s=r.root;if(s.outerTypeParameters){var c=e.map(s.outerTypeParameters,function(Je){return dp(Je,t)}),L=sc(c)+cm(i,o),G=s.instantiations.get(L);if(!G){var ce=Ol(s.outerTypeParameters,c),we=s.checkType,Ue=s.isDistributive?dp(we,ce):void 0;G=Ue&&we!==Ue&&Ue.flags&1179648?TA(Ue,function(Je){return g0(s,dm(we,Je,ce))},i,o):g0(s,ce,i,o),s.instantiations.set(L,G)}return G}return r}function oi(r,t){return r&&t?DL(r,t,void 0,void 0):r}function DL(r,t,i,o){if(!iv(r))return r;if(ve===100||he>=5e6)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:r.id,instantiationDepth:ve,instantiationCount:he}),Mr(_e,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),dr;Ge++,he++,ve++;var s=cR(r,t,i,o);return ve--,s}function cR(r,t,i,o){var s=r.flags;if(s&262144)return dp(r,t);if(s&524288){var c=r.objectFlags;if(c&52){if(c&4&&!r.node){var L=r.resolvedTypeArguments,G=bd(L,t);return G!==L?o0(r.target,G):r}return c&1024?uR(r,t):aR(r,t,i,o)}return r}if(s&3145728){var ce=r.flags&1048576?r.origin:void 0,we=ce&&ce.flags&3145728?ce.types:r.types,Ue=bd(we,t);if(Ue===we&&i===r.aliasSymbol)return r;var Je=i||r.aliasSymbol,ar=i?o:bd(r.aliasTypeArguments,t);return s&2097152||ce&&ce.flags&2097152?To(Ue,Je,ar):ma(Ue,1,Je,ar)}if(s&4194304)return qu(oi(r.type,t));if(s&134217728)return ng(r.texts,bd(r.types,t));if(s&268435456)return Ny(r.symbol,oi(r.type,t));if(s&8388608){var Je=i||r.aliasSymbol,ar=i?o:bd(r.aliasTypeArguments,t);return Hl(oi(r.objectType,t),oi(r.indexType,t),r.accessFlags,void 0,Je,ar)}if(s&16777216)return C0(r,m_(r.mapper,t),i,o);if(s&33554432){var _r=oi(r.baseType,t);if(_r.flags&8650752)return LD(_r,oi(r.substitute,t));var Br=oi(r.substitute,t);return Br.flags&3||Qi(g_(_r),g_(Br))?_r:Br}return r}function uR(r,t){var i=oi(r.mappedType,t);if(!(e.getObjectFlags(i)&32))return r;var o=oi(r.constraintType,t);if(!(o.flags&4194304))return r;var s=rA(oi(r.source,t),i,o);return s||r}function Fy(r){return r.flags&262143?r:r.permissiveInstantiation||(r.permissiveInstantiation=oi(r,Cn))}function g_(r){return r.flags&262143?r:(r.restrictiveInstantiation||(r.restrictiveInstantiation=oi(r,rt),r.restrictiveInstantiation.restrictiveInstantiation=r.restrictiveInstantiation),r.restrictiveInstantiation)}function fR(r,t){return Eu(r.keyType,oi(r.type,t),r.isReadonly,r.declaration)}function nu(r){switch(e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r)),r.kind){case 212:case 213:case 168:case 255:return LL(r);case 204:return e.some(r.properties,nu);case 203:return e.some(r.elements,nu);case 221:return nu(r.whenTrue)||nu(r.whenFalse);case 220:return(r.operatorToken.kind===56||r.operatorToken.kind===60)&&(nu(r.left)||nu(r.right));case 294:return nu(r.initializer);case 211:return nu(r.expression);case 285:return e.some(r.properties,nu)||e.isJsxOpeningElement(r.parent)&&e.some(r.parent.parent.children,nu);case 284:{var t=r.initializer;return!!t&&nu(t)}case 287:{var i=r.expression;return!!i&&nu(i)}}return!1}function LL(r){return(!e.isFunctionDeclaration(r)||e.isInJSFile(r)&&!!Mf(r))&&(e.hasContextSensitiveParameters(r)||dR(r))}function dR(r){return!r.typeParameters&&!e.getEffectiveReturnTypeNode(r)&&!!r.body&&r.body.kind!==234&&nu(r.body)}function AL(r){return(e.isInJSFile(r)&&e.isFunctionDeclaration(r)||e.isFunctionExpressionOrArrowFunction(r)||e.isObjectLiteralMethod(r))&&LL(r)}function CL(r){if(r.flags&524288){var t=Sc(r);if(t.constructSignatures.length||t.callSignatures.length){var i=Bl(16,r.symbol);return i.members=t.members,i.properties=t.properties,i.callSignatures=e.emptyArray,i.constructSignatures=e.emptyArray,i.indexInfos=e.emptyArray,i}}else if(r.flags&2097152)return To(e.map(r.types,CL));return r}function jf(r,t){return Hf(r,t,fi)}function ev(r,t){return Hf(r,t,fi)?-1:0}function x0(r,t){return Hf(r,t,Ta)?-1:0}function pR(r,t){return Hf(r,t,ha)?-1:0}function Ed(r,t){return Hf(r,t,ha)}function Qi(r,t){return Hf(r,t,Ta)}function _m(r,t){return r.flags&1048576?e.every(r.types,function(i){return _m(i,t)}):t.flags&1048576?e.some(t.types,function(i){return _m(r,i)}):r.flags&58982400?_m(l(r)||tr,t):t===Un?!!(r.flags&67633152):t===Oe?!!(r.flags&524288)&&l1(r):Cp(r,O_(t))||el(t)&&!og(t)&&_m(r,Be)}function ig(r,t){return Hf(r,t,Ya)}function Gy(r,t){return ig(r,t)||ig(t,r)}function Rl(r,t,i,o,s,c){return au(r,t,Ta,i,o,s,c)}function pp(r,t,i,o,s,c){return I0(r,t,Ta,i,o,s,c,void 0)}function I0(r,t,i,o,s,c,L,G){return Hf(r,t,i)?!0:!o||!fh(s,r,t,i,c,L,G)?au(r,t,i,o,c,L,G):!1}function xL(r){return!!(r.flags&16777216||r.flags&2097152&&e.some(r.types,xL))}function fh(r,t,i,o,s,c,L){if(!r||xL(i))return!1;if(!au(t,i,o,void 0)&&_R(r,t,i,o,s,c,L))return!0;switch(r.kind){case 287:case 211:return fh(r.expression,t,i,o,s,c,L);case 220:switch(r.operatorToken.kind){case 63:case 27:return fh(r.right,t,i,o,s,c,L)}break;case 204:return SR(r,t,i,o,c,L);case 203:return ER(r,t,i,o,c,L);case 285:return bR(r,t,i,o,c,L);case 213:return mR(r,t,i,o,c,L)}return!1}function _R(r,t,i,o,s,c,L){for(var G=Ni(t,0),ce=Ni(t,1),we=0,Ue=[ce,G];we<Ue.length;we++){var Je=Ue[we];if(e.some(Je,function(Br){var Zr=_o(Br);return!(Zr.flags&131073)&&au(Zr,i,o,void 0)})){var ar=L||{};Rl(t,i,r,s,c,ar);var _r=ar.errors[ar.errors.length-1];return e.addRelatedInfo(_r,e.createDiagnosticForNode(r,Je===ce?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}function mR(r,t,i,o,s,c){if(e.isBlock(r.body)||e.some(r.parameters,e.hasType))return!1;var L=j_(t);if(!L)return!1;var G=Ni(i,0);if(!e.length(G))return!1;var ce=r.body,we=_o(L),Ue=ma(e.map(G,_o));if(!au(we,Ue,o,void 0)){var Je=ce&&fh(ce,we,Ue,o,void 0,s,c);if(Je)return Je;var ar=c||{};if(au(we,Ue,o,ce,void 0,s,ar),ar.errors)return i.symbol&&e.length(i.symbol.declarations)&&e.addRelatedInfo(ar.errors[ar.errors.length-1],e.createDiagnosticForNode(i.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),(e.getFunctionFlags(r)&2)===0&&!ia(we,"then")&&au(Oh(we),Ue,o,void 0)&&e.addRelatedInfo(ar.errors[ar.errors.length-1],e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function gR(r,t,i){var o=cp(t,i);if(o)return o;if(t.flags&1048576){var s=ML(r,t);if(s)return cp(s,i)}}function vR(r,t){r.contextualType=t;try{return bg(r,1,t)}finally{r.contextualType=void 0}}function rv(r,t,i,o,s,c){for(var L=!1,G=r.next();!G.done;G=r.next()){var ce=G.value,we=ce.errorNode,Ue=ce.innerExpression,Je=ce.nameType,ar=ce.errorMessage,_r=gR(t,i,Je);if(!(!_r||_r.flags&8388608)){var Br=cp(t,Je);if(!!Br){var Zr=f0(Je,void 0);if(!au(Br,_r,o,void 0)){var Et=Ue&&fh(Ue,Br,_r,o,void 0,s,c);if(L=!0,!Et){var Tt=c||{},At=Ue?vR(Ue,Br):Br;if(de&&P0(At,_r)){var Vt=e.createDiagnosticForNode(we,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,gn(At),gn(_r));ua.add(Vt),Tt.errors=[Vt]}else{var Nn=!!(Zr&&(Ii(i,Zr)||We).flags&16777216),on=!!(Zr&&(Ii(t,Zr)||We).flags&16777216);_r=gm(_r,Nn),Br=gm(Br,Nn&&on);var ca=au(At,_r,o,we,ar,s,Tt);ca&&At!==Br&&au(Br,_r,o,we,ar,s,Tt)}if(Tt.errors){var la=Tt.errors[Tt.errors.length-1],di=gu(Je)?vu(Je):void 0,Aa=di!==void 0?Ii(i,di):void 0,Li=!1;if(!Aa){var Bi=Xm(i,Je);Bi&&Bi.declaration&&!e.getSourceFileOfNode(Bi.declaration).hasNoDefaultLib&&(Li=!0,e.addRelatedInfo(la,e.createDiagnosticForNode(Bi.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!Li&&(Aa&&e.length(Aa.declarations)||i.symbol&&e.length(i.symbol.declarations))){var Ai=Aa&&e.length(Aa.declarations)?Aa.declarations[0]:i.symbol.declarations[0];e.getSourceFileOfNode(Ai).hasNoDefaultLib||e.addRelatedInfo(la,e.createDiagnosticForNode(Ai,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,di&&!(Je.flags&8192)?e.unescapeLeadingUnderscores(di):gn(Je),gn(i)))}}}}}}}return L}function hR(r){var t,i,o;return Rg(this,function(s){switch(s.label){case 0:if(!e.length(r.properties))return[2];t=0,i=r.properties,s.label=1;case 1:return t<i.length?(o=i[t],e.isJsxSpreadAttribute(o)||A1(e.idText(o.name))?[3,3]:[4,{errorNode:o.name,innerExpression:o.initializer,nameType:Lc(e.idText(o.name))}]):[3,4];case 2:s.sent(),s.label=3;case 3:return t++,[3,1];case 4:return[2]}})}function yR(r,t){var i,o,s,c,L;return Rg(this,function(G){switch(G.label){case 0:if(!e.length(r.children))return[2];i=0,o=0,G.label=1;case 1:return o<r.children.length?(s=r.children[o],c=Wf(o-i),L=IL(s,c,t),L?[4,L]:[3,3]):[3,5];case 2:return G.sent(),[3,4];case 3:i++,G.label=4;case 4:return o++,[3,1];case 5:return[2]}})}function IL(r,t,i){switch(r.kind){case 287:return{errorNode:r,innerExpression:r.expression,nameType:t};case 11:if(r.containsOnlyTriviaWhiteSpaces)break;return{errorNode:r,innerExpression:void 0,nameType:t,errorMessage:i()};case 277:case 278:case 281:return{errorNode:r,innerExpression:r,nameType:t};default:return e.Debug.assertNever(r,"Found invalid jsx child")}}function bR(r,t,i,o,s,c){var L=rv(hR(r),t,i,o,s,c),G;if(e.isJsxOpeningElement(r.parent)&&e.isJsxElement(r.parent.parent)){var ce=r.parent.parent,we=_b(Em(r)),Ue=we===void 0?"children":e.unescapeLeadingUnderscores(we),Je=Lc(Ue),ar=Hl(i,Je),_r=e.getSemanticJsxChildren(ce.children);if(!e.length(_r))return L;var Br=e.length(_r)>1,Zr=rl(ar,jL),Et=rl(ar,function(la){return!jL(la)});if(Br){if(Zr!==en){var Tt=Tu(pb(ce,0)),At=yR(ce,ca);L=rv(At,Tt,Zr,o,s,c)||L}else if(!Hf(Hl(t,Je),ar,o)){L=!0;var Vt=Mr(ce.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Ue,gn(ar));c&&c.skipLogging&&(c.errors||(c.errors=[])).push(Vt)}}else if(Et!==en){var Nn=_r[0],on=IL(Nn,Je,ca);on&&(L=rv(function(){return Rg(this,function(la){switch(la.label){case 0:return[4,on];case 1:return la.sent(),[2]}})}(),t,i,o,s,c)||L)}else if(!Hf(Hl(t,Je),ar,o)){L=!0;var Vt=Mr(ce.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Ue,gn(ar));c&&c.skipLogging&&(c.errors||(c.errors=[])).push(Vt)}}return L;function ca(){if(!G){var la=e.getTextOfNode(r.parent.tagName),di=_b(Em(r)),Aa=di===void 0?"children":e.unescapeLeadingUnderscores(di),Li=Hl(i,Lc(Aa)),Bi=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;G=Rn(Rn({},Bi),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,Bi,la,Aa,gn(Li))})}return G}}function NL(r,t){var i,o,s,c;return Rg(this,function(L){switch(L.label){case 0:if(i=e.length(r.elements),!i)return[2];o=0,L.label=1;case 1:return o<i?sg(t)&&!Ii(t,""+o)?[3,3]:(s=r.elements[o],e.isOmittedExpression(s)?[3,3]:(c=Wf(o),[4,{errorNode:s,innerExpression:s,nameType:c}])):[3,4];case 2:L.sent(),L.label=3;case 3:return o++,[3,1];case 4:return[2]}})}function ER(r,t,i,o,s,c){if(i.flags&131068)return!1;if(sg(t))return rv(NL(r,i),t,i,o,s,c);var L=r.contextualType;r.contextualType=i;try{var G=HA(r,1,!0);return r.contextualType=L,sg(G)?rv(NL(r,i),G,i,o,s,c):!1}finally{r.contextualType=L}}function TR(r){var t,i,o,s,c;return Rg(this,function(L){switch(L.label){case 0:if(!e.length(r.properties))return[2];t=0,i=r.properties,L.label=1;case 1:if(!(t<i.length))return[3,8];if(o=i[t],e.isSpreadAssignment(o))return[3,7];if(s=tg(wn(o),8576),!s||s.flags&131072)return[3,7];switch(c=o.kind,c){case 172:return[3,2];case 171:return[3,2];case 168:return[3,2];case 295:return[3,2];case 294:return[3,4]}return[3,6];case 2:return[4,{errorNode:o.name,innerExpression:void 0,nameType:s}];case 3:return L.sent(),[3,7];case 4:return[4,{errorNode:o.name,innerExpression:o.initializer,nameType:s,errorMessage:e.isComputedNonLiteralName(o.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return L.sent(),[3,7];case 6:e.Debug.assertNever(o),L.label=7;case 7:return t++,[3,1];case 8:return[2]}})}function SR(r,t,i,o,s,c){return i.flags&131068?!1:rv(TR(r),t,i,o,s,c)}function kL(r,t,i,o,s){return au(r,t,Ya,i,o,s)}function DR(r,t,i){return N0(r,t,i?4:0,!1,void 0,void 0,x0,void 0)!==0}function LR(r){return!r.typeParameters&&(!r.thisParameter||Na(dv(r.thisParameter)))&&r.parameters.length===1&&ue(r)&&(dv(r.parameters[0])===Sn||Na(dv(r.parameters[0])))&&Na(_o(r))}function N0(r,t,i,o,s,c,L,G){if(r===t||LR(t))return-1;var ce=Tl(t),we=!xu(t)&&(i&8?xu(r)||Tl(r)>ce:Cu(r)>ce);if(we)return 0;r.typeParameters&&r.typeParameters!==t.typeParameters&&(t=wk(t),r=SC(r,t,void 0,L));var Ue=Tl(r),Je=_v(r),ar=_v(t);if((Je||ar)&&oi(Je||ar,G),Je&&ar&&Ue!==ce)return 0;var _r=t.declaration?t.declaration.kind:0,Br=!(i&3)&&lr&&_r!==168&&_r!==167&&_r!==170,Zr=-1,Et=d_(r);if(Et&&Et!==Wn){var Tt=d_(t);if(Tt){var At=!Br&&L(Et,Tt,!1)||L(Tt,Et,o);if(!At)return o&&s(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;Zr&=At}}for(var Vt=Je||ar?Math.min(Ue,ce):Math.max(Ue,ce),Nn=Je||ar?Vt-1:-1,on=0;on<Vt;on++){var ca=on===Nn?hg(r,on):T_(r,on),la=on===Nn?hg(t,on):T_(t,on);if(ca&&la){var di=i&3?void 0:j_(Td(ca)),Aa=i&3?void 0:j_(Td(la)),Li=di&&Aa&&!Dc(di)&&!Dc(Aa)&&(lc(ca)&98304)===(lc(la)&98304),At=Li?N0(Aa,di,i&8|(Br?2:1),o,s,c,L,G):!(i&3)&&!Br&&L(ca,la,!1)||L(la,ca,o);if(At&&i&8&&on>=Cu(r)&&on<Cu(t)&&L(ca,la,!1)&&(At=0),!At)return o&&s(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(vg(r,on)),e.unescapeLeadingUnderscores(vg(t,on))),0;Zr&=At}}if(!(i&4)){var Bi=YE(t)?Ze:t.declaration&&ou(t.declaration)?Hn(Ga(t.declaration.symbol)):_o(t);if(Bi===Wn)return Zr;var Ai=YE(r)?Ze:r.declaration&&ou(r.declaration)?Hn(Ga(r.declaration.symbol)):_o(r),xo=Dc(t);if(xo){var Wt=Dc(r);if(Wt)Zr&=AR(Wt,xo,o,s,L);else if(e.isIdentifierTypePredicate(xo))return o&&s(e.Diagnostics.Signature_0_must_be_a_type_predicate,pu(r)),0}else Zr&=i&1&&L(Bi,Ai,!1)||L(Ai,Bi,o),!Zr&&o&&c&&c(Ai,Bi)}return Zr}function AR(r,t,i,o,s){if(r.kind!==t.kind)return i&&(o(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Yc(r),Yc(t))),0;if((r.kind===1||r.kind===3)&&r.parameterIndex!==t.parameterIndex)return i&&(o(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,r.parameterName,t.parameterName),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Yc(r),Yc(t))),0;var c=r.type===t.type?-1:r.type&&t.type?s(r.type,t.type,i):0;return c===0&&i&&o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Yc(r),Yc(t)),c}function CR(r,t){var i=Kg(r),o=Kg(t),s=_o(i),c=_o(o);return c===Wn||Hf(c,s,Ta)||Hf(s,c,Ta)?DR(i,o,!0):!1}function k0(r){return r!==yi&&r.properties.length===0&&r.callSignatures.length===0&&r.constructSignatures.length===0&&r.indexInfos.length===0}function cf(r){return r.flags&524288?!El(r)&&k0(Sc(r)):r.flags&67108864?!0:r.flags&1048576?e.some(r.types,cf):r.flags&2097152?e.every(r.types,cf):!1}function OL(r){return!!(e.getObjectFlags(r)&16&&(r.members&&k0(r)||r.symbol&&r.symbol.flags&2048&&af(r.symbol).size===0))}function RL(r){return r.flags&524288&&!El(r)&&Yi(r).length===0&&Ms(r).length===1&&!!oc(r,xt)||r.flags&3145728&&e.every(r.types,RL)||!1}function O0(r,t,i){if(r===t)return!0;var o=y(r)+","+y(t),s=ci.get(o);if(s!==void 0&&!(!(s&4)&&s&2&&i))return!!(s&1);if(r.escapedName!==t.escapedName||!(r.flags&256)||!(t.flags&256))return ci.set(o,6),!1;for(var c=An(t),L=0,G=Yi(An(r));L<G.length;L++){var ce=G[L];if(ce.flags&8){var we=Ii(c,ce.escapedName);if(!we||!(we.flags&8))return i?(i(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(ce),gn(po(t),void 0,64)),ci.set(o,6)):ci.set(o,2),!1}}return ci.set(o,1),!0}function dh(r,t,i,o){var s=r.flags,c=t.flags;return c&3||s&131072||r===fr?!0:c&131072?!1:!!(s&402653316&&c&4||s&128&&s&1024&&c&128&&!(c&1024)&&r.value===t.value||s&296&&c&8||s&256&&s&1024&&c&256&&!(c&1024)&&r.value===t.value||s&2112&&c&64||s&528&&c&16||s&12288&&c&4096||s&32&&c&32&&O0(r.symbol,t.symbol,o)||s&1024&&c&1024&&(s&1048576&&c&1048576&&O0(r.symbol,t.symbol,o)||s&2944&&c&2944&&r.value===t.value&&O0(Ts(r.symbol),Ts(t.symbol),o))||s&32768&&(!Er||c&49152)||s&65536&&(!Er||c&65536)||s&524288&&c&67108864||(i===Ta||i===Ya)&&(s&1||s&264&&!(s&1024)&&(c&32||i===Ta&&c&256&&c&1024)))}function Hf(r,t,i){if(Pp(r)&&(r=r.regularType),Pp(t)&&(t=t.regularType),r===t)return!0;if(i!==fi){if(i===Ya&&!(t.flags&131072)&&dh(t,r,i)||dh(r,t,i))return!0}else{if(r.flags!==t.flags)return!1;if(r.flags&67358815)return!0}if(r.flags&524288&&t.flags&524288){var o=i.get(G0(r,t,0,i,!1));if(o!==void 0)return!!(o&1)}return r.flags&469499904||t.flags&469499904?au(r,t,i,void 0):!1}function wL(r,t){return e.getObjectFlags(r)&2048&&A1(t.escapedName)}function R0(r,t){for(;;){var i=Pp(r)?r.regularType:e.getObjectFlags(r)&4&&r.node?Uf(r.target,vo(r)):r.flags&3145728?Eo(r):r.flags&33554432?t?r.baseType:r.substitute:r.flags&25165824?Vf(r,t):r;if(i=V0(i)||i,i===r)break;r=i}return r}function au(r,t,i,o,s,c,L){var G,ce,we,Ue,Je,ar=0,_r=0,Br=0,Zr=0,Et=!1,Tt=0,At,Vt=[],Nn=!1;e.Debug.assert(i!==fi||!o,"no error reporting in identity checking");var on=jn(r,t,3,!!o,s);if(Vt.length&&Ft(),Et){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:r.id,targetId:t.id,depth:_r,targetDepth:Br});var ca=Mr(o||_e,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,gn(r),gn(t));L&&(L.errors||(L.errors=[])).push(ca)}else if(G){if(c){var la=c();la&&(e.concatenateDiagnosticMessageChains(la,G),G=la)}var di=void 0;if(s&&o&&!on&&r.symbol){var Aa=Ja(r.symbol);if(Aa.originatingImport&&!e.isImportCall(Aa.originatingImport)){var Li=au(An(Aa.target),t,i,void 0);if(Li){var Bi=e.createDiagnosticForNode(Aa.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);di=e.append(di,Bi)}}}var ca=e.createDiagnosticForNodeFromMessageChain(o,G,di);ce&&e.addRelatedInfo.apply(void 0,Gt([ca],ce,!1)),L&&(L.errors||(L.errors=[])).push(ca),(!L||!L.skipLogging)&&ua.add(ca)}return o&&L&&L.skipLogging&&on===0&&e.Debug.assert(!!L.errors,"missed opportunity to interact with error."),on!==0;function Ai(Kr){G=Kr.errorInfo,At=Kr.lastSkippedInfo,Vt=Kr.incompatibleStack,Tt=Kr.overrideNextErrorInfo,ce=Kr.relatedInfo}function xo(){return{errorInfo:G,lastSkippedInfo:At,incompatibleStack:Vt.slice(),overrideNextErrorInfo:Tt,relatedInfo:ce?ce.slice():void 0}}function Wt(Kr,st,kt,$t,ea){Tt++,At=void 0,Vt.push([Kr,st,kt,$t,ea])}function Ft(){var Kr=Vt;Vt=[];var st=At;if(At=void 0,Kr.length===1){_n.apply(void 0,Kr[0]),st&&Yn.apply(void 0,Gt([void 0],st,!1));return}for(var kt="",$t=[];Kr.length;){var ea=Kr.pop(),Gn=ea[0],Tn=ea.slice(1);switch(Gn.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:{kt.indexOf("new ")===0&&(kt="(".concat(kt,")"));var zt=""+Tn[0];kt.length===0?kt="".concat(zt):e.isIdentifierText(zt,e.getEmitScriptTarget(Xe))?kt="".concat(kt,".").concat(zt):zt[0]==="["&&zt[zt.length-1]==="]"?kt="".concat(kt).concat(zt):kt="".concat(kt,"[").concat(zt,"]");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(kt.length===0){var ni=Gn;Gn.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?ni=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:Gn.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(ni=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),$t.unshift([ni,Tn[0],Tn[1]])}else{var vi=Gn.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||Gn.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",ai=Gn.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Gn.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";kt="".concat(vi).concat(kt,"(").concat(ai,")")}break}case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{$t.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Tn[0],Tn[1]]);break}case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{$t.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Tn[0],Tn[1],Tn[2]]);break}default:return e.Debug.fail("Unhandled Diagnostic: ".concat(Gn.code))}}kt?_n(kt[kt.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,kt):$t.shift();for(var so=0,Ui=$t;so<Ui.length;so++){var ps=Ui[so],Gn=ps[0],Tn=ps.slice(1),ls=Gn.elidedInCompatabilityPyramid;Gn.elidedInCompatabilityPyramid=!1,_n.apply(void 0,Gt([Gn],Tn,!1)),Gn.elidedInCompatabilityPyramid=ls}st&&Yn.apply(void 0,Gt([void 0],st,!1))}function _n(Kr,st,kt,$t,ea){e.Debug.assert(!!o),Vt.length&&Ft(),!Kr.elidedInCompatabilityPyramid&&(G=e.chainDiagnosticMessages(G,Kr,st,kt,$t,ea))}function Ca(Kr){e.Debug.assert(!!G),ce?ce.push(Kr):ce=[Kr]}function Yn(Kr,st,kt){Vt.length&&Ft();var $t=Rf(st,kt),ea=$t[0],Gn=$t[1],Tn=st,zt=ea;if(mm(st)&&!w0(kt)&&(Tn=Du(st),e.Debug.assert(!Qi(Tn,kt),"generalized source shouldn't be assignable"),zt=Qd(Tn)),kt.flags&262144){var ni=l(kt),vi=void 0;ni&&(Qi(Tn,ni)||(vi=Qi(st,ni)))?_n(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,vi?ea:zt,Gn,gn(ni)):(G=void 0,_n(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Gn,zt))}if(Kr)Kr===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&de&&PL(st,kt).length&&(Kr=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(i===Ya)Kr=e.Diagnostics.Type_0_is_not_comparable_to_type_1;else if(ea===Gn)Kr=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(de&&PL(st,kt).length)Kr=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(st.flags&128&&kt.flags&1048576){var ai=bM(st,kt);if(ai){_n(e.Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,zt,Gn,gn(ai));return}}Kr=e.Diagnostics.Type_0_is_not_assignable_to_type_1}_n(Kr,zt,Gn)}function Ba(Kr,st){var kt=Zd(Kr.symbol)?gn(Kr,Kr.symbol.valueDeclaration):gn(Kr),$t=Zd(st.symbol)?gn(st,st.symbol.valueDeclaration):gn(st);(er===Kr&&xt===st||hr===Kr&&wt===st||qr===Kr&&Jn===st||FD(!1)===Kr&&na===st)&&_n(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,$t,kt)}function Ti(Kr,st,kt){return ki(Kr)?Kr.target.readonly&&Vy(st)?(kt&&_n(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,gn(Kr),gn(st)),!1):ki(st)||el(st):og(Kr)&&Vy(st)?(kt&&_n(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,gn(Kr),gn(st)),!1):ki(st)?el(Kr):!0}function Mi(Kr,st,kt){return jn(Kr,st,3,kt)}function jn(Kr,st,kt,$t,ea,Gn){if(kt===void 0&&(kt=3),$t===void 0&&($t=!1),Gn===void 0&&(Gn=0),Kr.flags&524288&&st.flags&131068)return dh(Kr,st,i,$t?_n:void 0)?-1:(ot(Kr,st,0,!!(e.getObjectFlags(Kr)&2048)),0);var Tn=R0(Kr,!1),zt=R0(st,!0);if(Tn===zt)return-1;if(i===fi)return jr(Tn,zt,kt);if(Tn.flags&262144&&kp(Tn)===zt)return-1;if(zt.flags&1048576&&Tn.flags&524288&&zt.types.length<=3&&Jo(zt,98304)){var ni=W_(zt,-98305);if(ni.flags&1179648||(zt=R0(ni,!0)),Tn===ni)return-1}if(i===Ya&&!(zt.flags&131072)&&dh(zt,Tn,i)||dh(Tn,zt,i,$t?_n:void 0))return-1;var vi=!!(e.getObjectFlags(Tn)&2048),ai=!(Gn&2)&&Gp(Tn)&&e.getObjectFlags(Tn)&16384;if(ai&&hn(Tn,zt,$t))return $t&&Yn(ea,Tn,st.aliasSymbol?st:zt),0;var so=i!==Ya&&!(Gn&2)&&Tn.flags&2752508&&Tn!==Un&&zt.flags&2621440&&FL(zt)&&(Yi(Tn).length>0||CT(Tn));if(so&&!IR(Tn,zt,vi)){if($t){var Ui=gn(Kr.aliasSymbol?Kr:Tn),ps=gn(st.aliasSymbol?st:zt),ls=Ni(Tn,0),Xo=Ni(Tn,1);ls.length>0&&jn(_o(ls[0]),zt,1,!1)||Xo.length>0&&jn(_o(Xo[0]),zt,1,!1)?_n(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Ui,ps):_n(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Ui,ps)}return 0}Fi(Tn,zt);var eo=0,Ko=xo();if((Tn.flags&1048576||zt.flags&1048576)&&SA(Tn)*SA(zt)<4?eo=mn(Tn,zt,$t,Gn|8):(Tn.flags&3145728||zt.flags&3145728)&&(eo=Yt(Tn,zt,$t,Gn|8,kt)),!eo&&!(Tn.flags&1048576)&&(Tn.flags&469499904||zt.flags&469499904)&&(eo=Yt(Tn,zt,$t,Gn,kt))&&Ai(Ko),!eo&&Tn.flags&2359296){var $o=KE(Tn.flags&2097152?Tn.types:[Tn],!!(zt.flags&1048576));$o&&(Tn.flags&2097152||zt.flags&1048576)&&Kf($o,function(ln){return ln!==Tn})&&(eo=jn($o,zt,1,!1,void 0,Gn))&&Ai(Ko)}return eo&&!Nn&&(zt.flags&2097152&&(ai||so)||v0(zt)&&!el(zt)&&!ki(zt)&&Tn.flags&2097152&&wi(Tn).flags&3670016&&!e.some(Tn.types,function(ln){return!!(e.getObjectFlags(ln)&524288)}))&&(Nn=!0,eo&=Yt(Tn,zt,$t,4,kt),Nn=!1),ot(Tn,zt,eo,vi),eo;function ot(ln,aa,qn,ra){if(!qn&&$t){var Xa=!!V0(Kr),ja=!!V0(st);ln=Kr.aliasSymbol||Xa?Kr:ln,aa=st.aliasSymbol||ja?st:aa;var pi=Tt>0;if(pi&&Tt--,ln.flags&524288&&aa.flags&524288){var Va=G;Ti(ln,aa,$t),G!==Va&&(pi=!!G)}if(ln.flags&524288&&aa.flags&131068)Ba(ln,aa);else if(ln.symbol&&ln.flags&524288&&Un===ln)_n(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(ra&&aa.flags&2097152){var Pa=aa.types,qi=Vp(F.IntrinsicAttributes,o),yo=Vp(F.IntrinsicClassAttributes,o);if(!Ua(qi)&&!Ua(yo)&&(e.contains(Pa,qi)||e.contains(Pa,yo)))return qn}else G=zm(G,st);if(!ea&&pi)return At=[ln,aa],qn;Yn(ea,ln,aa)}}}function Fi(Kr,st){if(!!e.tracing&&Kr.flags&3145728&&st.flags&3145728){var kt=Kr,$t=st;if(kt.objectFlags&$t.objectFlags&65536)return;var ea=kt.types.length,Gn=$t.types.length;ea*Gn>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:Kr.id,sourceSize:ea,targetId:st.id,targetSize:Gn,pos:o==null?void 0:o.pos,end:o==null?void 0:o.end})}}function jr(Kr,st,kt){if(Kr.flags!==st.flags)return 0;if(Kr.flags&67358815)return-1;if(Fi(Kr,st),Kr.flags&3145728){var $t=Vn(Kr,st);return $t&&($t&=Vn(st,Kr)),$t}return Yt(Kr,st,!1,0,kt)}function Sr(Kr,st){var kt=function($t,ea){var Gn;ea=wi(ea);var Tn=ea.flags&3145728?ic(ea,st):hd(ea,st),zt=Tn&&An(Tn)||((Gn=ip(ea,st))===null||Gn===void 0?void 0:Gn.type)||kr;return e.append($t,zt)};return ma(e.reduceLeft(Kr,kt,void 0)||e.emptyArray)}function hn(Kr,st,kt){var $t;if(!Ah(st)||!Ke&&e.getObjectFlags(st)&8192)return!1;var ea=!!(e.getObjectFlags(Kr)&2048);if((i===Ta||i===Ya)&&(hh(Un,st)||!ea&&cf(st)))return!1;var Gn=st,Tn;st.flags&1048576&&(Gn=RI(Kr,st,jn)||HF(st),Tn=Gn.flags&1048576?Gn.types:[Gn]);for(var zt=function(Ui){if(nn(Ui,Kr.symbol)&&!wL(Kr,Ui)){if(!N1(Gn,Ui.escapedName,ea)){if(kt){var ps=rl(Gn,Ah);if(!o)return{value:e.Debug.fail()};if(e.isJsxAttributes(o)||e.isJsxOpeningLikeElement(o)||e.isJsxOpeningLikeElement(o.parent)){Ui.valueDeclaration&&e.isJsxAttribute(Ui.valueDeclaration)&&e.getSourceFileOfNode(o)===e.getSourceFileOfNode(Ui.valueDeclaration.name)&&(o=Ui.valueDeclaration.name);var ls=Wa(Ui),Xo=mC(ls,ps),eo=Xo?Wa(Xo):void 0;eo?_n(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,ls,gn(ps),eo):_n(e.Diagnostics.Property_0_does_not_exist_on_type_1,ls,gn(ps))}else{var Ko=(($t=Kr.symbol)===null||$t===void 0?void 0:$t.declarations)&&e.firstOrUndefined(Kr.symbol.declarations),eo=void 0;if(Ui.valueDeclaration&&e.findAncestor(Ui.valueDeclaration,function(aa){return aa===Ko})&&e.getSourceFileOfNode(Ko)===e.getSourceFileOfNode(o)){var $o=Ui.valueDeclaration;e.Debug.assertNode($o,e.isObjectLiteralElementLike),o=$o;var ot=$o.name;e.isIdentifier(ot)&&(eo=G1(ot,ps))}eo!==void 0?_n(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Wa(Ui),gn(ps),eo):_n(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Wa(Ui),gn(ps))}}return{value:!0}}if(Tn&&!jn(An(Ui),Sr(Tn,Ui.escapedName),3,kt))return kt&&Wt(e.Diagnostics.Types_of_property_0_are_incompatible,Wa(Ui)),{value:!0}}},ni=0,vi=Yi(Kr);ni<vi.length;ni++){var ai=vi[ni],so=zt(ai);if(typeof so=="object")return so.value}return!1}function nn(Kr,st){return Kr.valueDeclaration&&st.valueDeclaration&&Kr.valueDeclaration.parent===st.valueDeclaration}function Vn(Kr,st){for(var kt=-1,$t=Kr.types,ea=0,Gn=$t;ea<Gn.length;ea++){var Tn=Gn[ea],zt=En(Tn,st,!1);if(!zt)return 0;kt&=zt}return kt}function En(Kr,st,kt){var $t=st.types;if(st.flags&1048576){if(sp($t,Kr))return-1;var ea=fA(st,Kr);if(ea){var Gn=jn(Kr,ea,2,!1);if(Gn)return Gn}}for(var Tn=0,zt=$t;Tn<zt.length;Tn++){var ni=zt[Tn],Gn=jn(Kr,ni,2,!1);if(Gn)return Gn}if(kt){var vi=ML(Kr,st,jn);jn(Kr,vi||$t[$t.length-1],2,!0)}return 0}function Fn(Kr,st,kt,$t){for(var ea=-1,Gn=st.types,Tn=0,zt=Gn;Tn<zt.length;Tn++){var ni=zt[Tn],vi=jn(Kr,ni,2,kt,void 0,$t);if(!vi)return 0;ea&=vi}return ea}function Xr(Kr,st,kt,$t){var ea=Kr.types;if(Kr.flags&1048576&&sp(ea,st))return-1;for(var Gn=ea.length,Tn=0;Tn<Gn;Tn++){var zt=jn(ea[Tn],st,1,kt&&Tn===Gn-1,void 0,$t);if(zt)return zt}return 0}function it(Kr,st){return Kr.flags&1048576&&st.flags&1048576&&!(Kr.types[0].flags&32768)&&st.types[0].flags&32768?W_(st,-32769):st}function Mt(Kr,st,kt,$t){for(var ea=-1,Gn=Kr.types,Tn=it(Kr,st),zt=0;zt<Gn.length;zt++){var ni=Gn[zt];if(Tn.flags&1048576&&Gn.length>=Tn.types.length&&Gn.length%Tn.types.length===0){var vi=jn(ni,Tn.types[zt%Tn.types.length],3,!1,void 0,$t);if(vi){ea&=vi;continue}}var ai=jn(ni,st,1,kt,void 0,$t);if(!ai)return 0;ea&=ai}return ea}function Bt(Kr,st,kt,$t,ea){if(Kr===void 0&&(Kr=e.emptyArray),st===void 0&&(st=e.emptyArray),kt===void 0&&(kt=e.emptyArray),Kr.length!==st.length&&i===fi)return 0;for(var Gn=Kr.length<=st.length?Kr.length:st.length,Tn=-1,zt=0;zt<Gn;zt++){var ni=zt<kt.length?kt[zt]:1,vi=ni&7;if(vi!==4){var ai=Kr[zt],so=st[zt],Ui=-1;if(ni&8?Ui=i===fi?jn(ai,so,3,!1):ev(ai,so):vi===1?Ui=jn(ai,so,3,$t,void 0,ea):vi===2?Ui=jn(so,ai,3,$t,void 0,ea):vi===3?(Ui=jn(so,ai,3,!1),Ui||(Ui=jn(ai,so,3,$t,void 0,ea))):(Ui=jn(ai,so,3,$t,void 0,ea),Ui&&(Ui&=jn(so,ai,3,$t,void 0,ea))),!Ui)return 0;Tn&=Ui}}return Tn}function Yt(Kr,st,kt,$t,ea){if(Et)return 0;var Gn=$t|(Nn?16:0),Tn=G0(Kr,st,Gn,i,!1),zt=i.get(Tn);if(zt!==void 0&&!(kt&&zt&2&&!(zt&4))){if(yn){var ni=zt&24;ni&8&&oi(Kr,__(_a)),ni&16&&oi(Kr,__(qa))}return zt&1?-1:0}if(!we)we=[],Ue=[],Je=[];else{for(var vi=Tn.startsWith("*")?G0(Kr,st,Gn,i,!0):void 0,ai=0;ai<ar;ai++)if(Tn===we[ai]||vi&&vi===we[ai])return 3;if(_r===100||Br===100)return Et=!0,0}var so=ar;we[ar]=Tn,ar++;var Ui=Zr;ea&1&&(Ue[_r]=Kr,_r++,!(Zr&1)&&_h(Kr,Ue,_r)&&(Zr|=1)),ea&2&&(Je[Br]=st,Br++,!(Zr&2)&&_h(st,Je,Br)&&(Zr|=2));var ps,ls=0;yn&&(ps=yn,yn=function(eo){return ls|=eo?16:8,ps(eo)}),Zr===3&&(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:Kr.id,sourceIdStack:Ue.map(function(eo){return eo.id}),targetId:st.id,targetIdStack:Je.map(function(eo){return eo.id}),depth:_r,targetDepth:Br}));var Xo=Zr!==3?mn(Kr,st,kt,$t):3;if(yn&&(yn=ps),ea&1&&_r--,ea&2&&Br--,Zr=Ui,Xo){if(Xo===-1||_r===0&&Br===0){if(Xo===-1||Xo===3)for(var ai=so;ai<ar;ai++)i.set(we[ai],1|ls);ar=so}}else i.set(Tn,(kt?4:0)|2|ls),ar=so;return Xo}function mn(Kr,st,kt,$t){e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:Kr.id,targetId:st.id});var ea=ya(Kr,st,kt,$t);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),ea}function ya(Kr,st,kt,$t){if($t&4)return ss(Kr,st,kt,void 0,0);if($t&8){if(Kr.flags&1048576)return i===Ya?Xr(Kr,st,kt&&!(Kr.flags&131068),$t&-9):Mt(Kr,st,kt&&!(Kr.flags&131068),$t&-9);if(st.flags&1048576)return En(cg(Kr),st,kt&&!(Kr.flags&131068)&&!(st.flags&131068));if(st.flags&2097152)return Fn(cg(Kr),st,kt,2);if(i===Ya&&st.flags&131068){var ea=e.sameMap(Kr.types,re);if(ea!==Kr.types&&(Kr=To(ea),!(Kr.flags&2097152)))return jn(Kr,st,1,!1)}return Xr(Kr,st,!1,1)}var Gn=Kr.flags&st.flags;if(i===fi&&!(Gn&524288)){if(Gn&4194304)return jn(Kr.type,st.type,3,!1);var Tn=0;return Gn&8388608&&(Tn=jn(Kr.objectType,st.objectType,3,!1))&&(Tn&=jn(Kr.indexType,st.indexType,3,!1))||Gn&16777216&&Kr.root.isDistributive===st.root.isDistributive&&(Tn=jn(Kr.checkType,st.checkType,3,!1))&&(Tn&=jn(Kr.extendsType,st.extendsType,3,!1))&&(Tn&=jn(up(Kr),up(st),3,!1))&&(Tn&=jn(fp(Kr),fp(st),3,!1))?Tn:Gn&33554432?jn(Kr.substitute,st.substitute,3,!1):0}var zt,ni,vi=!1,ai=xo();if(Kr.flags&17301504&&Kr.aliasSymbol&&Kr.aliasTypeArguments&&Kr.aliasSymbol===st.aliasSymbol&&!(Kr.aliasTypeArgumentsContainsMarker||st.aliasTypeArgumentsContainsMarker)){var so=GL(Kr.aliasSymbol);if(so===e.emptyArray)return 1;var Ui=MI(Kr.aliasTypeArguments,st.aliasTypeArguments,so,$t);if(Ui!==void 0)return Ui}if(KL(Kr)&&!Kr.target.readonly&&(zt=jn(vo(Kr)[0],st,1))||KL(st)&&(st.target.readonly||Vy(l(Kr)||Kr))&&(zt=jn(Kr,vo(st)[0],2)))return zt;if(st.flags&262144){if(e.getObjectFlags(Kr)&32&&!Kr.declaration.nameType&&jn(qu(st),Tc(Kr),3)&&!(ru(Kr)&4)){var ps=yu(Kr),ls=Hl(st,eu(Kr));if(zt=jn(ps,ls,3,kt))return zt}}else if(st.flags&4194304){var Xo=st.type;if(Kr.flags&4194304&&(zt=jn(Xo,Kr.type,3,!1)))return zt;if(ki(Xo)){if(zt=jn(Kr,KD(Xo),2,kt))return zt}else{var eo=Yv(Xo);if(eo){if(jn(Kr,qu(eo,st.stringsOnly),2,kt)===-1)return-1}else if(El(Xo)){var Ko=of(Xo),$o=Tc(Xo),ot=void 0;if(Ko&&Hm(Xo)){var ln=wi(Jm(Xo)),aa=[];qv(ln,8576,!1,function(Iv){return void aa.push(oi(Ko,$g(Xo.mapper,eu(Xo),Iv)))}),ot=ma(Gt(Gt([],aa,!0),[Ko],!1))}else ot=Ko||$o;if(jn(Kr,ot,2,kt)===-1)return-1}}}else if(st.flags&8388608){if(Kr.flags&8388608){if((zt=jn(Kr.objectType,st.objectType,3,kt))&&(zt&=jn(Kr.indexType,st.indexType,3,kt)),zt)return Ai(ai),zt;kt&&(ni=G)}if(i===Ta||i===Ya){var qn=st.objectType,ra=st.indexType,Xa=l(qn)||qn,ja=l(ra)||ra;if(!M_(Xa)&&!F_(ja)){var pi=4|(Xa!==qn?2:0),eo=cp(Xa,ja,pi);if(eo){if(kt&&ni&&Ai(ai),zt=jn(Kr,eo,2,kt))return zt;kt&&ni&&G&&(G=FT([ni])<=FT([G])?ni:G)}}}kt&&(ni=void 0)}else if(El(st)&&i!==fi){var Va=!!st.declaration.nameType,ps=yu(st),Pa=ru(st);if(!(Pa&8)){if(!Va&&ps.flags&8388608&&ps.objectType===Kr&&ps.indexType===eu(st))return-1;if(!El(Kr)){var ot=Va?of(st):Tc(st),qi=qu(Kr,void 0,!0),yo=Pa&4,ns=yo?om(ot,qi):void 0;if(yo?!(ns.flags&131072):jn(ot,qi,3)){var Oo=yu(st),Ao=eu(st),Os=W_(Oo,-98305);if(!Va&&Os.flags&8388608&&Os.indexType===Ao){if(zt=jn(Kr,Os.objectType,2,kt))return zt}else{var hl=Va?ns||ot:ns?To([ns,Ao]):Ao,ls=Hl(Kr,hl);if(zt=jn(ls,Oo,3,kt))return zt}}ni=G,Ai(ai)}}}else if(st.flags&16777216){if(_h(st,Je,Br,10))return Ai(ai),3;var As=st;if(!As.root.inferTypeParameters&&!jO(As.root)){var Cc=!Qi(Fy(As.checkType),Fy(As.extendsType)),z_=!Cc&&Qi(g_(As.checkType),g_(As.extendsType));if((zt=Cc?-1:jn(Kr,up(As),2,!1))&&(zt&=z_?-1:jn(Kr,fp(As),2,!1),zt))return Ai(ai),zt}}else if(st.flags&134217728){if(Kr.flags&134217728){if(i===Ya)return dw(Kr,st)?0:-1;oi(Kr,__(qa))}if(iA(Kr,st))return-1}if(Kr.flags&8650752){if(!(Kr.flags&8388608&&st.flags&8388608)){var eo=kp(Kr);if(!eo||Kr.flags&262144&&eo.flags&1){if(zt=jn(Qn,W_(st,-67108865),3))return Ai(ai),zt}else{if(zt=jn(eo,st,1,!1,void 0,$t))return Ai(ai),zt;if(zt=jn(Il(eo,Kr),st,1,kt&&!(st.flags&Kr.flags&262144),void 0,$t))return Ai(ai),zt}}}else if(Kr.flags&4194304){if(zt=jn(_t,st,1,kt))return Ai(ai),zt}else if(Kr.flags&134217728&&!(st.flags&524288)){if(!(st.flags&134217728)){var eo=l(Kr);if(eo&&eo!==Kr&&(zt=jn(eo,st,1,kt)))return Ai(ai),zt}}else if(Kr.flags&268435456)if(st.flags&268435456&&Kr.symbol===st.symbol){if(zt=jn(Kr.type,st.type,3,kt))return Ai(ai),zt}else{var eo=l(Kr);if(eo&&(zt=jn(eo,st,1,kt)))return Ai(ai),zt}else if(Kr.flags&16777216){if(_h(Kr,Ue,_r,10))return Ai(ai),3;if(st.flags&16777216){var L_=Kr.root.inferTypeParameters,Cd=Kr.extendsType,Hp=void 0;if(L_){var Jp=av(L_,void 0,0,Mi);uf(Jp.inferences,st.extendsType,Cd,1536),Cd=oi(Cd,Jp.mapper),Hp=Jp.mapper}if(jf(Cd,st.extendsType)&&(jn(Kr.checkType,st.checkType,3)||jn(st.checkType,Kr.checkType,3))&&((zt=jn(oi(up(Kr),Hp),up(st),3,kt))&&(zt&=jn(fp(Kr),fp(st),3,kt)),zt))return Ai(ai),zt}else{var xd=Zv(Kr);if(xd&&(zt=jn(xd,st,1,kt)))return Ai(ai),zt}var xm=Qv(Kr);if(xm&&(zt=jn(xm,st,1,kt)))return Ai(ai),zt}else{if(i!==ha&&i!==ri&&UE(st)&&cf(Kr))return-1;if(El(st))return El(Kr)&&(zt=Vi(Kr,st,kt))?(Ai(ai),zt):0;var Jl=!!(Kr.flags&131068);if(i!==fi)Kr=wi(Kr);else if(El(Kr))return 0;if(e.getObjectFlags(Kr)&4&&e.getObjectFlags(st)&4&&Kr.target===st.target&&!ki(Kr)&&!(e.getObjectFlags(Kr)&4096||e.getObjectFlags(st)&4096)){var so=F0(Kr.target);if(so===e.emptyArray)return 1;var Ui=MI(vo(Kr),vo(st),so,$t);if(Ui!==void 0)return Ui}else{if(og(st)?el(Kr)||ki(Kr):el(st)&&ki(Kr)&&!Kr.target.readonly)return i!==fi?jn(tu(Kr,wt)||Ze,tu(st,wt)||Ze,3,kt):0;if((i===ha||i===ri)&&cf(st)&&e.getObjectFlags(st)&16384&&!cf(Kr))return 0}if(Kr.flags&2621440&&st.flags&524288){var vp=kt&&G===ai.errorInfo&&!Jl;if(zt=ss(Kr,st,vp,void 0,$t),zt&&(zt&=bs(Kr,st,0,vp),zt&&(zt&=bs(Kr,st,1,vp),zt&&(zt&=Ri(Kr,st,Jl,vp,$t)))),vi&&zt)G=ni||G||ai.errorInfo;else if(zt)return zt}if(Kr.flags&2621440&&st.flags&1048576){var wI=W_(st,36175872);if(wI.flags&1048576){var PI=Qa(Kr,wI);if(PI)return PI}}}return 0;function FT(Iv){return Iv?e.reduceLeft(Iv,function(zh,Ag){return zh+1+FT(Ag.next)},0):0}function MI(Iv,zh,Ag,JF){if(zt=Bt(Iv,zh,Ag,kt,JF))return zt;if(e.some(Ag,function(GT){return!!(GT&24)})){ni=void 0,Ai(ai);return}var FI=zh&&kR(zh,Ag);if(vi=!FI,Ag!==e.emptyArray&&!FI){if(vi&&!(kt&&e.some(Ag,function(GT){return(GT&7)===0})))return 0;ni=G,Ai(ai)}}}function _a(Kr){return yn&&(Kr===io||Kr===ji||Kr===Hi)&&yn(!1),Kr}function qa(Kr){return yn&&(Kr===io||Kr===ji||Kr===Hi)&&yn(!0),Kr}function Vi(Kr,st,kt){var $t=i===Ya||(i===fi?ru(Kr)===ru(st):Xv(Kr)<=Xv(st));if($t){var ea,Gn=Tc(st),Tn=oi(Tc(Kr),__(Xv(Kr)<0?_a:qa));if(ea=jn(Gn,Tn,3,kt)){var zt=Ol([eu(Kr)],[eu(st)]);if(oi(of(Kr),zt)===oi(of(st),zt))return ea&jn(oi(yu(Kr),zt),yu(st),3,kt)}}return 0}function Qa(Kr,st){var kt=Yi(Kr),$t=uA(kt,st);if(!$t)return 0;for(var ea=1,Gn=0,Tn=$t;Gn<Tn.length;Gn++){var zt=Tn[Gn];if(ea*=Gw(Gf(zt)),ea>25)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Kr.id,targetId:st.id,numCombinations:ea}),0}for(var ni=new Array($t.length),vi=new e.Set,ai=0;ai<$t.length;ai++){var zt=$t[ai],so=Gf(zt);ni[ai]=so.flags&1048576?so.types:[so],vi.add(zt.escapedName)}for(var Ui=e.cartesianProduct(ni),ps=[],ls=function(ra){var Xa=!1;e:for(var ja=0,pi=st.types;ja<pi.length;ja++){for(var Va=pi[ja],Pa=function(ns){var Oo=$t[ns],Ao=Ii(Va,Oo.escapedName);if(!Ao)return"continue-outer";if(Oo===Ao)return"continue";var Os=ao(Kr,st,Oo,Ao,function(hl){return ra[ns]},!1,0,Er||i===Ya);if(!Os)return"continue-outer"},qi=0;qi<$t.length;qi++){var yo=Pa(qi);switch(yo){case"continue-outer":continue e}}e.pushIfUnique(ps,Va,e.equateValues),Xa=!0}if(!Xa)return{value:0}},Xo=0,eo=Ui;Xo<eo.length;Xo++){var Ko=eo[Xo],$o=ls(Ko);if(typeof $o=="object")return $o.value}for(var ot=-1,ln=0,aa=ps;ln<aa.length;ln++){var qn=aa[ln];if(ot&=ss(Kr,qn,!1,vi,0),ot&&(ot&=bs(Kr,qn,0,!1),ot&&(ot&=bs(Kr,qn,1,!1),ot&&!(ki(Kr)&&ki(qn))&&(ot&=Ri(Kr,qn,!1,!1,0)))),!ot)return ot}return ot}function ho(Kr,st){if(!st||Kr.length===0)return Kr;for(var kt,$t=0;$t<Kr.length;$t++)st.has(Kr[$t].escapedName)?kt||(kt=Kr.slice(0,$t)):kt&&kt.push(Kr[$t]);return kt||Kr}function Vo(Kr,st,kt,$t,ea){var Gn=Er&&!!(e.getCheckFlags(st)&48),Tn=Wl(Gf(st),!1,Gn),zt=kt(Kr);return jn(zt,Tn,3,$t,void 0,ea)}function ao(Kr,st,kt,$t,ea,Gn,Tn,zt){var ni=e.getDeclarationModifierFlagsFromSymbol(kt),vi=e.getDeclarationModifierFlagsFromSymbol($t);if(ni&8||vi&8){if(kt.valueDeclaration!==$t.valueDeclaration)return Gn&&(ni&8&&vi&8?_n(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Wa($t)):_n(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Wa($t),gn(ni&8?Kr:st),gn(ni&8?st:Kr))),0}else if(vi&16){if(!MR(kt,$t))return Gn&&_n(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Wa($t),gn(U_(kt)||Kr),gn(U_($t)||st)),0}else if(ni&16)return Gn&&_n(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Wa($t),gn(Kr),gn(st)),0;var ai=Vo(kt,$t,ea,Gn,Tn);return ai?!zt&&kt.flags&16777216&&!($t.flags&16777216)?(Gn&&_n(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Wa($t),gn(Kr),gn(st)),0):ai:(Gn&&Wt(e.Diagnostics.Types_of_property_0_are_incompatible,Wa($t)),0)}function Ds(Kr,st,kt,$t){var ea=!1;if(kt.valueDeclaration&&e.isNamedDeclaration(kt.valueDeclaration)&&e.isPrivateIdentifier(kt.valueDeclaration.name)&&Kr.symbol&&Kr.symbol.flags&32){var Gn=kt.valueDeclaration.name.escapedText,Tn=e.getSymbolNameForPrivateIdentifier(Kr.symbol,Gn);if(Tn&&Ii(Kr,Tn)){var zt=e.factory.getDeclarationName(Kr.symbol.valueDeclaration),ni=e.factory.getDeclarationName(st.symbol.valueDeclaration);_n(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Xl(Gn),Xl(zt.escapedText===""?f:zt),Xl(ni.escapedText===""?f:ni));return}}var vi=e.arrayFrom(t1(Kr,st,$t,!1));if((!s||s.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&s.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(ea=!0),vi.length===1){var ai=Wa(kt);_n.apply(void 0,Gt([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,ai],Rf(Kr,st),!1)),e.length(kt.declarations)&&Ca(e.createDiagnosticForNode(kt.declarations[0],e.Diagnostics._0_is_declared_here,ai)),ea&&G&&Tt++}else Ti(Kr,st,!1)&&(vi.length>5?_n(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,gn(Kr),gn(st),e.map(vi.slice(0,4),function(so){return Wa(so)}).join(", "),vi.length-4):_n(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,gn(Kr),gn(st),e.map(vi,function(so){return Wa(so)}).join(", ")),ea&&G&&Tt++)}function ss(Kr,st,kt,$t,ea){if(i===fi)return Xs(Kr,st,$t);var Gn=-1;if(ki(st)){if(el(Kr)||ki(Kr)){if(!st.target.readonly&&(og(Kr)||ki(Kr)&&Kr.target.readonly))return 0;var Tn=op(Kr),zt=op(st),ni=ki(Kr)?Kr.target.combinedFlags&4:4,vi=st.target.combinedFlags&4,ai=ki(Kr)?Kr.target.minLength:0,so=st.target.minLength;if(!ni&&Tn<so)return kt&&_n(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,Tn,so),0;if(!vi&&zt<ai)return kt&&_n(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,ai,zt),0;if(!vi&&(ni||zt<Tn))return kt&&(ai<so?_n(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,so):_n(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,zt)),0;for(var Ui=vo(Kr),ps=vo(st),ls=Math.min(ki(Kr)?zD(Kr.target,11):0,zD(st.target,11)),Xo=Math.min(ki(Kr)?Iy(Kr.target,11):0,vi?Iy(st.target,11):0),eo=!!$t,Ko=0;Ko<zt;Ko++){var $o=Ko<zt-Xo?Ko:Ko+Tn-zt,ot=ki(Kr)&&(Ko<ls||Ko>=zt-Xo)?Kr.target.elementFlags[$o]:4,ln=st.target.elementFlags[Ko];if(ln&8&&!(ot&8))return kt&&_n(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Ko),0;if(ot&8&&!(ln&12))return kt&&_n(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,$o,Ko),0;if(ln&1&&!(ot&1))return kt&&_n(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,Ko),0;if(!(eo&&((ot&12||ln&12)&&(eo=!1),eo&&($t==null?void 0:$t.has(""+Ko))))){var aa=ki(Kr)?Ko<ls||Ko>=zt-Xo?gm(Ui[$o],!!(ot&ln&2)):Wy(Kr,ls,Xo)||en:Ui[0],qn=ps[Ko],ra=ot&8&&ln&4?zs(qn):gm(qn,!!(ln&2)),Xa=jn(aa,ra,3,kt,void 0,ea);if(!Xa)return kt&&(zt>1||Tn>1)&&(Ko<ls||Ko>=zt-Xo||Tn-ls-Xo===1?Wt(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,$o,Ko):Wt(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,ls,Tn-Xo-1,Ko)),0;Gn&=Xa}}return Gn}if(st.target.combinedFlags&12)return 0}var ja=(i===ha||i===ri)&&!Gp(Kr)&&!W0(Kr)&&!ki(Kr),pi=n1(Kr,st,ja,!1);if(pi)return kt&&Ds(Kr,st,pi,ja),0;if(Gp(st))for(var Va=0,Pa=ho(Yi(Kr),$t);Va<Pa.length;Va++){var qi=Pa[Va];if(!hd(st,qi.escapedName)){var aa=An(qi);if(!(aa.flags&32768))return kt&&_n(e.Diagnostics.Property_0_does_not_exist_on_type_1,Wa(qi),gn(st)),0}}for(var yo=Yi(st),ns=ki(Kr)&&ki(st),Oo=0,Ao=ho(yo,$t);Oo<Ao.length;Oo++){var Os=Ao[Oo],hl=Os.escapedName;if(!(Os.flags&4194304)&&(!ns||zf(hl)||hl==="length")){var qi=Ii(Kr,hl);if(qi&&qi!==Os){var Xa=ao(Kr,st,qi,Os,Gf,kt,ea,i===Ya);if(!Xa)return 0;Gn&=Xa}}}return Gn}function Xs(Kr,st,kt){if(!(Kr.flags&524288&&st.flags&524288))return 0;var $t=ho(sf(Kr),kt),ea=ho(sf(st),kt);if($t.length!==ea.length)return 0;for(var Gn=-1,Tn=0,zt=$t;Tn<zt.length;Tn++){var ni=zt[Tn],vi=hd(st,ni.escapedName);if(!vi)return 0;var ai=B0(ni,vi,jn);if(!ai)return 0;Gn&=ai}return Gn}function bs(Kr,st,kt,$t){var ea,Gn;if(i===fi)return Cv(Kr,st,kt);if(st===yi||Kr===yi)return-1;var Tn=Kr.symbol&&ou(Kr.symbol.valueDeclaration),zt=st.symbol&&ou(st.symbol.valueDeclaration),ni=Ni(Kr,Tn&&kt===1?0:kt),vi=Ni(st,zt&&kt===1?0:kt);if(kt===1&&ni.length&&vi.length){var ai=!!(ni[0].flags&4),so=!!(vi[0].flags&4);if(ai&&!so)return $t&&_n(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Bs(ni[0],vi[0],$t))return 0}var Ui=-1,ps=xo(),ls=kt===1?Ls:Yf,Xo=e.getObjectFlags(Kr),eo=e.getObjectFlags(st);if(Xo&64&&eo&64&&Kr.symbol===st.symbol)for(var Ko=0;Ko<vi.length;Ko++){var $o=Ad(ni[Ko],vi[Ko],!0,$t,ls(ni[Ko],vi[Ko]));if(!$o)return 0;Ui&=$o}else if(ni.length===1&&vi.length===1){var ot=i===Ya||!!Xe.noStrictGenericChecks,ln=e.first(ni),aa=e.first(vi);if(Ui=Ad(ln,aa,ot,$t,ls(ln,aa)),!Ui&&$t&&kt===1&&Xo&eo&&(((ea=aa.declaration)===null||ea===void 0?void 0:ea.kind)===170||((Gn=ln.declaration)===null||Gn===void 0?void 0:Gn.kind)===170)){var qn=function(yo){return pu(yo,void 0,262144,kt)};return _n(e.Diagnostics.Type_0_is_not_assignable_to_type_1,qn(ln),qn(aa)),_n(e.Diagnostics.Types_of_construct_signatures_are_incompatible),Ui}}else{e:for(var ra=0,Xa=vi;ra<Xa.length;ra++){for(var ja=Xa[ra],pi=$t,Va=0,Pa=ni;Va<Pa.length;Va++){var qi=Pa[Va],$o=Ad(qi,ja,!0,pi,ls(qi,ja));if($o){Ui&=$o,Ai(ps);continue e}pi=!1}return pi&&_n(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,gn(Kr),pu(ja,void 0,void 0,kt)),0}}return Ui}function Yf(Kr,st){return Kr.parameters.length===0&&st.parameters.length===0?function(kt,$t){return Wt(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,gn(kt),gn($t))}:function(kt,$t){return Wt(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,gn(kt),gn($t))}}function Ls(Kr,st){return Kr.parameters.length===0&&st.parameters.length===0?function(kt,$t){return Wt(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,gn(kt),gn($t))}:function(kt,$t){return Wt(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,gn(kt),gn($t))}}function Ad(Kr,st,kt,$t,ea){return N0(kt?Kg(Kr):Kr,kt?Kg(st):st,i===ri?8:0,$t,_n,ea,Mi,__(qa))}function Cv(Kr,st,kt){var $t=Ni(Kr,kt),ea=Ni(st,kt);if($t.length!==ea.length)return 0;for(var Gn=-1,Tn=0;Tn<$t.length;Tn++){var zt=gh($t[Tn],ea[Tn],!1,!1,!1,jn);if(!zt)return 0;Gn&=zt}return Gn}function xv(Kr,st,kt){for(var $t=-1,ea=st.keyType,Gn=Kr.flags&2097152?Km(Kr):sf(Kr),Tn=0,zt=Gn;Tn<zt.length;Tn++){var ni=zt[Tn];if(!wL(Kr,ni)&&f_(tg(ni,8576),ea)){var vi=Gf(ni),ai=de||vi.flags&32768||ea===wt||!(ni.flags&16777216)?vi:Fs(vi,524288),so=jn(ai,st.type,3,kt);if(!so)return kt&&_n(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Wa(ni)),0;$t&=so}}for(var Ui=0,ps=Ms(Kr);Ui<ps.length;Ui++){var ls=ps[Ui];if(f_(ls.keyType,ea)){var so=Ma(ls,st,kt);if(!so)return 0;$t&=so}}return $t}function Ma(Kr,st,kt){var $t=jn(Kr.type,st.type,3,kt);return!$t&&kt&&(Kr.keyType===st.keyType?_n(e.Diagnostics._0_index_signatures_are_incompatible,gn(Kr.keyType)):_n(e.Diagnostics._0_and_1_index_signatures_are_incompatible,gn(Kr.keyType),gn(st.keyType))),$t}function Ri(Kr,st,kt,$t,ea){if(i===fi)return uo(Kr,st);for(var Gn=Ms(st),Tn=e.some(Gn,function(Ui){return Ui.keyType===xt}),zt=-1,ni=0,vi=Gn;ni<vi.length;ni++){var ai=vi[ni],so=!kt&&Tn&&ai.type.flags&1?-1:El(Kr)&&Tn?jn(yu(Kr),ai.type,3,$t):qo(Kr,ai,$t,ea);if(!so)return 0;zt&=so}return zt}function qo(Kr,st,kt,$t){var ea=Xm(Kr,st.keyType);return ea?Ma(ea,st,kt):!($t&1)&&Ky(Kr)?xv(Kr,st,kt):(kt&&_n(e.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,gn(st.keyType),gn(Kr)),0)}function uo(Kr,st){var kt=Ms(Kr),$t=Ms(st);if(kt.length!==$t.length)return 0;for(var ea=0,Gn=$t;ea<Gn.length;ea++){var Tn=Gn[ea],zt=oc(Kr,Tn.keyType);if(!(zt&&jn(zt.type,Tn.type,3)&&zt.isReadonly===Tn.isReadonly))return 0}return-1}function Bs(Kr,st,kt){if(!Kr.declaration||!st.declaration)return!0;var $t=e.getSelectedEffectiveModifierFlags(Kr.declaration,24),ea=e.getSelectedEffectiveModifierFlags(st.declaration,24);return ea===8||ea===16&&$t!==8||ea!==16&&!$t?!0:(kt&&_n(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,pd($t),pd(ea)),!1)}}function w0(r){if(r.flags&16)return!1;if(r.flags&3145728)return!!e.forEach(r.types,w0);if(r.flags&465829888){var t=kp(r);if(t&&t!==r)return w0(t)}return Su(r)||!!(r.flags&134217728)}function PL(r,t){return ki(r)&&ki(t)?e.emptyArray:Yi(t).filter(function(i){return P0(ia(r,i.escapedName),An(i))})}function P0(r,t){return!!r&&!!t&&Jo(r,32768)&&!!Jy(t)}function xR(r){return Yi(r).filter(function(t){return Jy(An(t))})}function ML(r,t,i){return i===void 0&&(i=x0),RI(r,t,i,!0)||UF(r,t)||VF(r,t)||WF(r,t)||jF(r,t)}function M0(r,t,i,o,s){for(var c=r.types.map(function(Vt){}),L=0,G=t;L<G.length;L++){var ce=G[L],we=ce[0],Ue=ce[1],Je=hs(r,Ue);if(!(s&&Je&&e.getCheckFlags(Je)&16))for(var ar=0,_r=0,Br=r.types;_r<Br.length;_r++){var Zr=Br[_r],Et=ia(Zr,Ue);Et&&i(we(),Et)?c[ar]=c[ar]===void 0?!0:c[ar]:c[ar]=!1,ar++}}var Tt=c.indexOf(!0);if(Tt===-1)return o;for(var At=c.indexOf(!0,Tt+1);At!==-1;){if(!jf(r.types[Tt],r.types[At]))return o;At=c.indexOf(!0,At+1)}return r.types[Tt]}function FL(r){if(r.flags&524288){var t=Sc(r);return t.callSignatures.length===0&&t.constructSignatures.length===0&&t.indexInfos.length===0&&t.properties.length>0&&e.every(t.properties,function(i){return!!(i.flags&16777216)})}return r.flags&2097152?e.every(r.types,FL):!1}function IR(r,t,i){for(var o=0,s=Yi(r);o<s.length;o++){var c=s[o];if(N1(t,c.escapedName,i))return!0}return!1}function NR(r,t,i){var o=Uf(r,e.map(r.typeParameters,function(s){return s===t?i:s}));return o.objectFlags|=4096,o}function GL(r){var t=Ja(r);return BL(t.typeParameters,t,function(i,o,s){var c=eg(r,bd(t.typeParameters,B_(o,s)));return c.aliasTypeArgumentsContainsMarker=!0,c})}function BL(r,t,i){var o,s,c;r===void 0&&(r=e.emptyArray);var L=t.variances;if(!L){e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","getVariancesWorker",{arity:r.length,id:(c=(o=t.id)!==null&&o!==void 0?o:(s=t.declaredType)===null||s===void 0?void 0:s.id)!==null&&c!==void 0?c:-1}),t.variances=e.emptyArray,L=[];for(var G=function(Je){var ar=!1,_r=!1,Br=yn;yn=function(At){return At?_r=!0:ar=!0};var Zr=i(t,Je,io),Et=i(t,Je,ji),Tt=(Qi(Et,Zr)?1:0)|(Qi(Zr,Et)?2:0);Tt===3&&Qi(i(t,Je,Hi),Zr)&&(Tt=4),yn=Br,(ar||_r)&&(ar&&(Tt|=8),_r&&(Tt|=16)),L.push(Tt)},ce=0,we=r;ce<we.length;ce++){var Ue=we[ce];G(Ue)}t.variances=L,e.tracing===null||e.tracing===void 0||e.tracing.pop()}return L}function F0(r){return r===se||r===Be||r.objectFlags&8?qe:BL(r.typeParameters,r,NR)}function kR(r,t){for(var i=0;i<t.length;i++)if((t[i]&7)===1&&r[i].flags&16384)return!0;return!1}function OR(r){return r.flags&262144&&!Nl(r)}function RR(r){return!!(e.getObjectFlags(r)&4)&&!r.node}function By(r){return RR(r)&&e.some(vo(r),function(t){return!!(t.flags&262144)||By(t)})}function wR(r,t,i,o){var s=[],c="",L=ce(r,0),G=ce(t,0);return"".concat(c).concat(L,",").concat(G).concat(i);function ce(we,Ue){Ue===void 0&&(Ue=0);for(var Je=""+we.target.id,ar=0,_r=vo(we);ar<_r.length;ar++){var Br=_r[ar];if(Br.flags&262144){if(o||OR(Br)){var Zr=s.indexOf(Br);Zr<0&&(Zr=s.length,s.push(Br)),Je+="="+Zr;continue}c="*"}else if(Ue<4&&By(Br)){Je+="<"+ce(Br,Ue+1)+">";continue}Je+="-"+Br.id}return Je}}function G0(r,t,i,o,s){if(o===fi&&r.id>t.id){var c=r;r=t,t=c}var L=i?":"+i:"";return By(r)&&By(t)?wR(r,t,L,s):"".concat(r.id,",").concat(t.id).concat(L)}function ph(r,t){if(e.getCheckFlags(r)&6){for(var i=0,o=r.containingType.types;i<o.length;i++){var s=o[i],c=Ii(s,r.escapedName),L=c&&ph(c,t);if(L)return L}return}return t(r)}function U_(r){return r.parent&&r.parent.flags&32?po(Ts(r)):void 0}function Uy(r){var t=U_(r),i=t&&xl(t)[0];return i&&ia(i,r.escapedName)}function PR(r,t){return ph(r,function(i){var o=U_(i);return o?Cp(o,t):!1})}function MR(r,t){return!ph(t,function(i){return e.getDeclarationModifierFlagsFromSymbol(i)&16?!PR(r,U_(i)):!1})}function FR(r,t,i){return ph(t,function(o){return e.getDeclarationModifierFlagsFromSymbol(o,i)&16?!Cp(r,U_(o)):!1})?void 0:r}function _h(r,t,i,o){if(o===void 0&&(o=3),i>=o)for(var s=mh(r),c=0,L=0,G=0;G<i;G++){var ce=t[G];if(mh(ce)===s){if(ce.id>=L&&(c++,c>=o))return!0;L=ce.id}}return!1}function mh(r){if(r.flags&524288&&!a1(r)){if(e.getObjectFlags(r)&&4&&r.node)return r.node;if(r.symbol&&!(e.getObjectFlags(r)&16&&r.symbol.flags&32))return r.symbol;if(ki(r))return r.target}if(r.flags&262144)return r.symbol;if(r.flags&8388608){do r=r.objectType;while(r.flags&8388608);return r}return r.flags&16777216?r.root:r}function UL(r,t){return B0(r,t,ev)!==0}function B0(r,t,i){if(r===t)return-1;var o=e.getDeclarationModifierFlagsFromSymbol(r)&24,s=e.getDeclarationModifierFlagsFromSymbol(t)&24;if(o!==s)return 0;if(o){if(Am(r)!==Am(t))return 0}else if((r.flags&16777216)!==(t.flags&16777216))return 0;return Iu(r)!==Iu(t)?0:i(An(r),An(t))}function GR(r,t,i){var o=Tl(r),s=Tl(t),c=Cu(r),L=Cu(t),G=xu(r),ce=xu(t);return!!(o===s&&c===L&&G===ce||i&&c<=L)}function gh(r,t,i,o,s,c){if(r===t)return-1;if(!GR(r,t,i)||e.length(r.typeParameters)!==e.length(t.typeParameters))return 0;if(t.typeParameters){for(var L=Ol(r.typeParameters,t.typeParameters),G=0;G<t.typeParameters.length;G++){var ce=r.typeParameters[G],we=t.typeParameters[G];if(!(ce===we||c(oi($m(ce),L)||tr,$m(we)||tr)&&c(oi(Bn(ce),L)||tr,Bn(we)||tr)))return 0}r=pm(r,L,!0)}var Ue=-1;if(!o){var Je=d_(r);if(Je){var ar=d_(t);if(ar){var _r=c(Je,ar);if(!_r)return 0;Ue&=_r}}}for(var Br=Tl(t),G=0;G<Br;G++){var ce=Uc(r,G),we=Uc(t,G),_r=c(we,ce);if(!_r)return 0;Ue&=_r}if(!s){var Zr=Dc(r),Et=Dc(t);Ue&=Zr||Et?BR(Zr,Et,c):c(_o(r),_o(t))}return Ue}function BR(r,t,i){return r&&t&&c0(r,t)?r.type===t.type?-1:r.type&&t.type?i(r.type,t.type):0:0}function UR(r){for(var t,i=0,o=r;i<o.length;i++){var s=o[i],c=Du(s);if(t||(t=c),c===s||c!==t)return!1}return!0}function VL(r){return r.length===1?r[0]:UR(r)?ma(r):e.reduceLeft(r,function(t,i){return Ed(t,i)?i:t})}function VR(r){if(!Er)return VL(r);var t=e.filter(r,function(i){return!(i.flags&98304)});return t.length?jy(VL(t),zL(r)&98304):ma(r,2)}function WR(r){return e.reduceLeft(r,function(t,i){return Ed(i,t)?i:t})}function el(r){return!!(e.getObjectFlags(r)&4)&&(r.target===se||r.target===Be)}function og(r){return!!(e.getObjectFlags(r)&4)&&r.target===Be}function Vy(r){return el(r)&&!og(r)||ki(r)&&!r.target.readonly}function U0(r){return el(r)?vo(r)[0]:void 0}function _p(r){return el(r)||!(r.flags&98304)&&Qi(r,xa)}function V0(r){if(!(!(e.getObjectFlags(r)&4)||!(e.getObjectFlags(r.target)&3))){if(e.getObjectFlags(r)&33554432)return e.getObjectFlags(r)&67108864?r.cachedEquivalentBaseType:void 0;r.objectFlags|=33554432;var t=r.target;if(e.getObjectFlags(t)&1){var i=s_(t);if(i&&i.expression.kind!==79&&i.expression.kind!==205)return}var o=xl(t);if(o.length===1&&!af(r.symbol).size){var s=e.length(t.typeParameters)?oi(o[0],Ol(t.typeParameters,vo(r).slice(0,t.typeParameters.length))):o[0];return e.length(vo(r))>e.length(t.typeParameters)&&(s=Il(s,e.last(vo(r)))),r.objectFlags|=67108864,r.cachedEquivalentBaseType=s}}}function WL(r){return Er?r===qt:r===zr}function W0(r){var t=U0(r);return!!t&&WL(t)}function sg(r){return ki(r)||!!Ii(r,"0")}function jL(r){return _p(r)||sg(r)}function jR(r,t){var i=ia(r,""+t);if(i)return i;if(Kf(r,ki))return ds(r,function(o){return tv(o)||kr})}function HR(r){return!(r.flags&240512)}function Su(r){return!!(r.flags&109440)}function HL(r){return r.flags&2097152?e.some(r.types,Su):!!(r.flags&109440)}function JR(r){return r.flags&2097152&&e.find(r.types,Su)||r}function mm(r){return r.flags&16?!0:r.flags&1048576?r.flags&1024?!0:e.every(r.types,Su):Su(r)}function Du(r){return r.flags&1024?Zs(r):r.flags&128?xt:r.flags&256?wt:r.flags&2048?Qt:r.flags&512?Jn:r.flags&1048576?ds(r,Du):r}function Mp(r){return r.flags&1024&&Pp(r)?Zs(r):r.flags&128&&Pp(r)?xt:r.flags&256&&Pp(r)?wt:r.flags&2048&&Pp(r)?Qt:r.flags&512&&Pp(r)?Jn:r.flags&1048576?ds(r,Mp):r}function JL(r){return r.flags&8192?na:r.flags&1048576?ds(r,JL):r}function j0(r,t){return Nb(r,t)||(r=JL(Mp(r))),r}function KR(r,t,i){if(r&&Su(r)){var o=t?i?yv(t):t:void 0;r=j0(r,o)}return r}function H0(r,t,i,o){if(r&&Su(r)){var s=t?Lm(i,t,o):void 0;r=j0(r,s)}return r}function ki(r){return!!(e.getObjectFlags(r)&4&&r.target.objectFlags&8)}function lg(r){return ki(r)&&!!(r.target.combinedFlags&8)}function KL(r){return lg(r)&&r.target.elementFlags.length===1}function tv(r){return Wy(r,r.target.fixedLength)}function zR(r){var t=tv(r);return t&&zs(t)}function Wy(r,t,i,o){i===void 0&&(i=0),o===void 0&&(o=!1);var s=op(r)-i;if(t<s){for(var c=vo(r),L=[],G=t;G<s;G++){var ce=c[G];L.push(r.target.elementFlags[G]&8?Hl(ce,wt):ce)}return o?To(L):ma(L)}}function qR(r,t){return op(r)===op(t)&&e.every(r.target.elementFlags,function(i,o){return(i&12)===(t.target.elementFlags[o]&12)})}function J0(r){var t=r.value;return t.base10Value==="0"}function zL(r){for(var t=0,i=0,o=r;i<o.length;i++){var s=o[i];t|=lc(s)}return t}function lc(r){return r.flags&1048576?zL(r.types):r.flags&128?r.value===""?128:0:r.flags&256?r.value===0?256:0:r.flags&2048?J0(r)?2048:0:r.flags&512?r===mt||r===rn?512:0:r.flags&117724}function qL(r){return lc(r)&117632?rl(r,function(t){return!(lc(t)&117632)}):r}function XR(r){return ds(r,YR)}function YR(r){return r.flags&4?Vs:r.flags&8?Ql:r.flags&64?zl:r===rn||r===mt||r.flags&114691||r.flags&128&&r.value===""||r.flags&256&&r.value===0||r.flags&2048&&J0(r)?r:en}function jy(r,t){var i=t&~r.flags&98304;return i===0?r:ma(i===32768?[r,kr]:i===65536?[r,ut]:[r,kr,ut])}function Jf(r,t){return t===void 0&&(t=!1),e.Debug.assert(Er),r.flags&32768?r:ma([r,t?vt:kr])}function QR(r){var t=Fs(r,2097152);return Di||(Di=zg("NonNullable",524288,void 0)||We),Di!==We?eg(Di,[t]):t}function Td(r){return Er?QR(r):r}function XL(r){return Er?ma([r,gt]):r}function K0(r){return Er?rb(r,gt):r}function Hy(r,t,i){return i?e.isOutermostOptionalChain(t)?Jf(r):XL(r):r}function nv(r,t){return e.isExpressionOfOptionalChainRoot(t)?Td(r):e.isOptionalChain(t)?K0(r):r}function gm(r,t){return de&&t?rb(r,vt):r}function Jy(r){return de&&(r===vt||r.flags&1048576&&sp(r.types,vt))}function z0(r){return de?rb(r,vt):Fs(r,524288)}function ZR(r,t){return(r.flags&524)!==0&&(t.flags&28)!==0}function Ky(r){return r.flags&2097152?e.every(r.types,Ky):!!(r.symbol&&(r.symbol.flags&7040)!==0&&!CT(r))||!!(e.getObjectFlags(r)&1024&&Ky(r.source))}function V_(r,t){var i=fo(r.flags,r.escapedName,e.getCheckFlags(r)&8);i.declarations=r.declarations,i.parent=r.parent,i.type=t,i.target=r,r.valueDeclaration&&(i.valueDeclaration=r.valueDeclaration);var o=Ja(r).nameType;return o&&(i.nameType=o),i}function $R(r,t){for(var i=e.createSymbolTable(),o=0,s=sf(r);o<s.length;o++){var c=s[o],L=An(c),G=t(L);i.set(c.escapedName,G===L?c:V_(c,G))}return i}function cg(r){if(!(Gp(r)&&e.getObjectFlags(r)&16384))return r;var t=r.regularType;if(t)return t;var i=r,o=$R(r,cg),s=ts(i.symbol,o,i.callSignatures,i.constructSignatures,i.indexInfos);return s.flags=i.flags,s.objectFlags|=i.objectFlags&-16385,r.regularType=s,s}function YL(r,t,i){return{parent:r,propertyName:t,siblings:i,resolvedProperties:void 0}}function QL(r){if(!r.siblings){for(var t=[],i=0,o=QL(r.parent);i<o.length;i++){var s=o[i];if(Gp(s)){var c=hd(s,r.propertyName);c&&h_(An(c),function(L){t.push(L)})}}r.siblings=t}return r.siblings}function ew(r){if(!r.resolvedProperties){for(var t=new e.Map,i=0,o=QL(r);i<o.length;i++){var s=o[i];if(Gp(s)&&!(e.getObjectFlags(s)&4194304))for(var c=0,L=Yi(s);c<L.length;c++){var G=L[c];t.set(G.escapedName,G)}}r.resolvedProperties=e.arrayFrom(t.values())}return r.resolvedProperties}function rw(r,t){if(!(r.flags&4))return r;var i=An(r),o=t&&YL(t,r.escapedName,void 0),s=q0(i,o);return s===i?r:V_(r,s)}function tw(r){var t=Ee.get(r.escapedName);if(t)return t;var i=V_(r,vt);return i.flags|=16777216,Ee.set(r.escapedName,i),i}function nw(r,t){for(var i=e.createSymbolTable(),o=0,s=sf(r);o<s.length;o++){var c=s[o];i.set(c.escapedName,rw(c,t))}if(t)for(var L=0,G=ew(t);L<G.length;L++){var c=G[L];i.has(c.escapedName)||i.set(c.escapedName,tw(c))}var ce=ts(r.symbol,i,e.emptyArray,e.emptyArray,e.sameMap(Ms(r),function(we){return Eu(we.keyType,wl(we.type),we.isReadonly)}));return ce.objectFlags|=e.getObjectFlags(r)&532480,ce}function wl(r){return q0(r,void 0)}function q0(r,t){if(e.getObjectFlags(r)&393216){if(t===void 0&&r.widened)return r.widened;var i=void 0;if(r.flags&98305)i=Ze;else if(Gp(r))i=nw(r,t);else if(r.flags&1048576){var o=t||YL(void 0,void 0,r.types),s=e.sameMap(r.types,function(c){return c.flags&98304?c:q0(c,o)});i=ma(s,e.some(s,cf)?2:1)}else r.flags&2097152?i=To(e.sameMap(r.types,wl)):(el(r)||ki(r))&&(i=Uf(r.target,e.sameMap(vo(r),wl)));return i&&t===void 0&&(r.widened=i),i||r}return r}function zy(r){var t=!1;if(e.getObjectFlags(r)&131072){if(r.flags&1048576)if(e.some(r.types,cf))t=!0;else for(var i=0,o=r.types;i<o.length;i++){var s=o[i];zy(s)&&(t=!0)}if(el(r)||ki(r))for(var c=0,L=vo(r);c<L.length;c++){var s=L[c];zy(s)&&(t=!0)}if(Gp(r))for(var G=0,ce=sf(r);G<ce.length;G++){var we=ce[G],s=An(we);e.getObjectFlags(s)&131072&&(zy(s)||Mr(we.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Wa(we),gn(wl(s))),t=!0)}}return t}function Fp(r,t,i){var o=gn(wl(t));if(!(e.isInJSFile(r)&&!e.isCheckJsEnabledForFile(e.getSourceFileOfNode(r),Xe))){var s;switch(r.kind){case 220:case 166:case 165:s=Ke?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 163:var c=r;if(e.isIdentifier(c.name)&&(e.isCallSignatureDeclaration(c.parent)||e.isMethodSignature(c.parent)||e.isFunctionTypeNode(c.parent))&&c.parent.parameters.indexOf(c)>-1&&(Uo(c,c.name.escapedText,788968,void 0,c.name.escapedText,!0)||c.name.originalKeywordKind&&e.isTypeNodeKind(c.name.originalKeywordKind))){var L="arg"+c.parent.parameters.indexOf(c),G=e.declarationNameToString(c.name)+(c.dotDotDotToken?"[]":"");pc(Ke,r,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,L,G);return}s=r.dotDotDotToken?Ke?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:Ke?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 202:if(s=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Ke)return;break;case 315:Mr(r,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,o);return;case 255:case 168:case 167:case 171:case 172:case 212:case 213:if(Ke&&!r.name){i===3?Mr(r,e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,o):Mr(r,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,o);return}s=Ke?i===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 194:Ke&&Mr(r,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);return;default:s=Ke?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}pc(Ke,r,s,e.declarationNameToString(e.getNameOfDeclaration(r)),o)}}function qy(r,t,i){Se&&Ke&&e.getObjectFlags(t)&131072&&(!i||!D1(r))&&(zy(t)||Fp(r,t,i))}function X0(r,t,i){var o=Tl(r),s=Tl(t),c=pv(r),L=pv(t),G=L?s-1:s,ce=c?G:Math.min(o,G),we=d_(r);if(we){var Ue=d_(t);Ue&&i(we,Ue)}for(var Je=0;Je<ce;Je++)i(Uc(r,Je),Uc(t,Je));L&&i(hg(r,ce),L)}function Y0(r,t,i){var o=Dc(r),s=Dc(t);o&&s&&c0(o,s)&&o.type&&s.type?i(o.type,s.type):i(_o(r),_o(t))}function av(r,t,i,o){return Q0(r.map(Z0),t,i,o||x0)}function aw(r,t){return t===void 0&&(t=0),r&&Q0(e.map(r.inferences,$L),r.signature,r.flags|t,r.compareTypes)}function Q0(r,t,i,o){var s={inferences:r,signature:t,flags:i,compareTypes:o,mapper:__(function(c){return ZL(s,c,!0)}),nonFixingMapper:__(function(c){return ZL(s,c,!1)})};return s}function ZL(r,t,i){for(var o=r.inferences,s=0;s<o.length;s++){var c=o[s];if(t===c.typeParameter)return i&&!c.isFixed&&(Xy(o),c.isFixed=!0),sA(r,s)}return t}function Xy(r){for(var t=0,i=r;t<i.length;t++){var o=i[t];o.isFixed||(o.inferredType=void 0)}}function Z0(r){return{typeParameter:r,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function $L(r){return{typeParameter:r.typeParameter,candidates:r.candidates&&r.candidates.slice(),contraCandidates:r.contraCandidates&&r.contraCandidates.slice(),inferredType:r.inferredType,priority:r.priority,topLevel:r.topLevel,isFixed:r.isFixed,impliedArity:r.impliedArity}}function iw(r){var t=e.filter(r.inferences,H_);return t.length?Q0(e.map(t,$L),r.signature,r.flags,r.compareTypes):void 0}function $0(r){return r&&r.mapper}function iv(r){var t=e.getObjectFlags(r);if(t&1048576)return!!(t&2097152);var i=!!(r.flags&465829888||r.flags&524288&&!eA(r)&&(t&4&&(r.node||e.forEach(vo(r),iv))||t&16&&r.symbol&&r.symbol.flags&14384&&r.symbol.declarations||t&8389664)||r.flags&3145728&&!(r.flags&1024)&&!eA(r)&&e.some(r.types,iv));return r.flags&3899393&&(r.objectFlags|=1048576|(i?2097152:0)),i}function eA(r){if(r.aliasSymbol&&!r.aliasTypeArguments){var t=e.getDeclarationOfKind(r.aliasSymbol,258);return!!(t&&e.findAncestor(t.parent,function(i){return i.kind===303?!0:i.kind===260?!1:"quit"}))}return!1}function e1(r,t){return!!(r===t||r.flags&3145728&&e.some(r.types,function(i){return e1(i,t)})||r.flags&16777216&&(up(r)===t||fp(r)===t))}function ow(r){var t=e.createSymbolTable();h_(r,function(o){if(!!(o.flags&128)){var s=e.escapeLeadingUnderscores(o.value),c=fo(4,s);c.type=Ze,o.symbol&&(c.declarations=o.symbol.declarations,c.valueDeclaration=o.symbol.valueDeclaration),t.set(s,c)}});var i=r.flags&4?[Eu(xt,Qn,!1)]:e.emptyArray;return ts(void 0,t,e.emptyArray,e.emptyArray,i)}function rA(r,t,i){if(!Cs){var o=r.id+","+t.id+","+i.id;if(Es.has(o))return Es.get(o);Cs=!0;var s=sw(r,t,i);return Cs=!1,Es.set(o,s),s}}function r1(r){return!(e.getObjectFlags(r)&524288)||Gp(r)&&e.some(Yi(r),function(t){return r1(An(t))})||ki(r)&&e.some(vo(r),r1)}function sw(r,t,i){if(!!(oc(r,xt)||Yi(r).length!==0&&r1(r))){if(el(r))return zs(Yy(vo(r)[0],t,i),og(r));if(ki(r)){var o=e.map(vo(r),function(L){return Yy(L,t,i)}),s=ru(t)&4?e.sameMap(r.target.elementFlags,function(L){return L&2?1:L}):r.target.elementFlags;return Tu(o,s,r.target.readonly,r.target.labeledElementDeclarations)}var c=Bl(1040,void 0);return c.source=r,c.mappedType=t,c.constraintType=i,c}}function lw(r){var t=Ja(r);return t.type||(t.type=Yy(r.propertyType,r.mappedType,r.constraintType)),t.type}function Yy(r,t,i){var o=Hl(i.type,eu(t)),s=yu(t),c=Z0(o);return uf([c],r,s),tA(c)||tr}function t1(r,t,i,o){var s,c,L,G,ce,we,Ue;return Rg(this,function(Je){switch(Je.label){case 0:s=Yi(t),c=0,L=s,Je.label=1;case 1:return c<L.length?(G=L[c],Uv(G)?[3,5]:i||!(G.flags&16777216||e.getCheckFlags(G)&48)?(ce=Ii(r,G.escapedName),ce?[3,3]:[4,G]):[3,5]):[3,6];case 2:return Je.sent(),[3,5];case 3:return o?(we=An(G),we.flags&109440?(Ue=An(ce),Ue.flags&1||kl(Ue)===kl(we)?[3,5]:[4,G]):[3,5]):[3,5];case 4:Je.sent(),Je.label=5;case 5:return c++,[3,1];case 6:return[2]}})}function n1(r,t,i,o){var s=t1(r,t,i,o).next();if(!s.done)return s.value}function cw(r,t){return!(t.target.combinedFlags&8)&&t.target.minLength>r.target.minLength||!t.target.hasRestElement&&(r.target.hasRestElement||t.target.fixedLength<r.target.fixedLength)}function uw(r,t){return ki(r)&&ki(t)?cw(r,t):!!n1(r,t,!1,!0)&&!!n1(t,r,!1,!1)}function tA(r){return r.candidates?ma(r.candidates,2):r.contraCandidates?To(r.contraCandidates):void 0}function fw(r){return!!Zn(r).skipDirectInference}function nA(r){return!!(r.symbol&&e.some(r.symbol.declarations,fw))}function dw(r,t){var i=r.texts[0],o=t.texts[0],s=r.texts[r.texts.length-1],c=t.texts[t.texts.length-1],L=Math.min(i.length,o.length),G=Math.min(s.length,c.length);return i.slice(0,L)!==o.slice(0,L)||s.slice(s.length-G)!==c.slice(c.length-G)}function pw(r){var t=e.createScanner(99,!1),i=!0;t.setOnError(function(){return i=!1}),t.setText(r+"n");var o=t.scan();o===40&&(o=t.scan());var s=t.getTokenFlags();return i&&o===9&&t.getTextPos()===r.length+1&&!(s&512)}function _w(r,t){if(r===t||t.flags&5)return!0;if(r.flags&128){var i=r.value;return!!(t.flags&8&&i!==""&&isFinite(+i)||t.flags&64&&i!==""&&pw(i)||t.flags&98816&&i===t.intrinsicName)}if(r.flags&134217728){var o=r.texts;return o.length===2&&o[0]===""&&o[1]===""&&Qi(r.types[0],t)}return Qi(r,t)}function aA(r,t){return r.flags&128?oA([r.value],e.emptyArray,t):r.flags&134217728?e.arraysEqual(r.texts,t.texts)?e.map(r.types,mw):oA(r.texts,r.types,t):void 0}function iA(r,t){var i=aA(r,t);return!!i&&e.every(i,function(o,s){return _w(o,t.types[s])})}function mw(r){return r.flags&402653317?r:ng(["",""],[r])}function oA(r,t,i){var o=r.length-1,s=r[0],c=r[o],L=i.texts,G=L.length-1,ce=L[0],we=L[G];if(o===0&&s.length<ce.length+we.length||!s.startsWith(ce)||!c.endsWith(we))return;for(var Ue=c.slice(0,c.length-we.length),Je=[],ar=0,_r=ce.length,Br=1;Br<G;Br++){var Zr=L[Br];if(Zr.length>0){for(var Et=ar,Tt=_r;Tt=At(Et).indexOf(Zr,Tt),!(Tt>=0);){if(Et++,Et===r.length)return;Tt=0}Vt(Et,Tt),_r+=Zr.length}else if(_r<At(ar).length)Vt(ar,_r+1);else if(ar<o)Vt(ar+1,0);else return}return Vt(o,At(o).length),Je;function At(Nn){return Nn<o?r[Nn]:Ue}function Vt(Nn,on){var ca=Nn===ar?Lc(At(Nn).slice(_r,on)):ng(Gt(Gt([r[ar].slice(_r)],r.slice(ar+1,Nn),!0),[At(Nn).slice(0,on)],!1),t.slice(ar,Nn));Je.push(ca),ar=Nn,_r=on}}function uf(r,t,i,o,s){o===void 0&&(o=0),s===void 0&&(s=!1);var c=!1,L,G=2048,ce=!0,we,Ue,Je,ar=0;_r(t,i);function _r(Wt,Ft){if(!!iv(Ft)){if(Wt===fr){var _n=L;L=Wt,_r(Ft,Ft),L=_n;return}if(Wt.aliasSymbol&&Wt.aliasTypeArguments&&Wt.aliasSymbol===Ft.aliasSymbol){Tt(Wt.aliasTypeArguments,Ft.aliasTypeArguments,GL(Wt.aliasSymbol));return}if(Wt===Ft&&Wt.flags&3145728){for(var Ca=0,Yn=Wt.types;Ca<Yn.length;Ca++){var Ba=Yn[Ca];_r(Ba,Ba)}return}if(Ft.flags&1048576){var Ti=Et(Wt.flags&1048576?Wt.types:[Wt],Ft.types,gw),Mi=Ti[0],jn=Ti[1],Fi=Et(Mi,jn,vw),jr=Fi[0],Sr=Fi[1];if(Sr.length===0)return;if(Ft=ma(Sr),jr.length===0){Br(Wt,Ft,1);return}Wt=ma(jr)}else if(Ft.flags&2097152&&e.some(Ft.types,function(qa){return!!Vt(qa)||El(qa)&&!!Vt(D0(qa)||en)})){if(!(Wt.flags&1048576)){var hn=Et(Wt.flags&2097152?Wt.types:[Wt],Ft.types,jf),jr=hn[0],Sr=hn[1];if(jr.length===0||Sr.length===0)return;Wt=To(jr),Ft=To(Sr)}}else Ft.flags&41943040&&(Ft=p_(Ft));if(Ft.flags&8650752){if(e.getObjectFlags(Wt)&524288||Wt===yt||Wt===St||o&128&&(Wt===xr||Wt===ta)||nA(Wt))return;var nn=Vt(Ft);if(nn){if(!nn.isFixed){if((nn.priority===void 0||o<nn.priority)&&(nn.candidates=void 0,nn.contraCandidates=void 0,nn.topLevel=!0,nn.priority=o),o===nn.priority){var Vn=L||Wt;s&&!c?e.contains(nn.contraCandidates,Vn)||(nn.contraCandidates=e.append(nn.contraCandidates,Vn),Xy(r)):e.contains(nn.candidates,Vn)||(nn.candidates=e.append(nn.candidates,Vn),Xy(r))}!(o&128)&&Ft.flags&262144&&nn.topLevel&&!e1(i,Ft)&&(nn.topLevel=!1,Xy(r))}G=Math.min(G,o);return}else{var En=Vf(Ft,!1);if(En!==Ft)Zr(Wt,En,_r);else if(Ft.flags&8388608){var Fn=Vf(Ft.indexType,!1);if(Fn.flags&465829888){var Xr=oL(Vf(Ft.objectType,!1),Fn,!1);Xr&&Xr!==Ft&&Zr(Wt,Xr,_r)}}}}if(e.getObjectFlags(Wt)&4&&e.getObjectFlags(Ft)&4&&(Wt.target===Ft.target||el(Wt)&&el(Ft))&&!(Wt.node&&Ft.node))Tt(vo(Wt),vo(Ft),F0(Wt.target));else if(Wt.flags&4194304&&Ft.flags&4194304)s=!s,_r(Wt.type,Ft.type),s=!s;else if((mm(Wt)||Wt.flags&4)&&Ft.flags&4194304){var it=ow(Wt);s=!s,Br(it,Ft.type,256),s=!s}else if(Wt.flags&8388608&&Ft.flags&8388608)_r(Wt.objectType,Ft.objectType),_r(Wt.indexType,Ft.indexType);else if(Wt.flags&268435456&&Ft.flags&268435456)Wt.symbol===Ft.symbol&&_r(Wt.type,Ft.type);else if(Wt.flags&33554432){_r(Wt.baseType,Ft);var Mt=o;o|=4,_r(Wt.substitute,Ft),o=Mt}else if(Ft.flags&16777216)Zr(Wt,Ft,la);else if(Ft.flags&3145728)on(Wt,Ft.types,Ft.flags);else if(Wt.flags&1048576)for(var Bt=Wt.types,Yt=0,mn=Bt;Yt<mn.length;Yt++){var ya=mn[Yt];_r(ya,Ft)}else if(Ft.flags&134217728)di(Wt,Ft);else{if(Wt=Eo(Wt),!(o&512&&Wt.flags&467927040)){var _a=wi(Wt);if(_a!==Wt&&ce&&!(_a.flags&2621440))return ce=!1,_r(_a,Ft);Wt=_a}Wt.flags&2621440&&Zr(Wt,Ft,Aa)}}}function Br(Wt,Ft,_n){var Ca=o;o|=_n,_r(Wt,Ft),o=Ca}function Zr(Wt,Ft,_n){var Ca=Wt.id+","+Ft.id,Yn=we&&we.get(Ca);if(Yn!==void 0){G=Math.min(G,Yn);return}(we||(we=new e.Map)).set(Ca,-1);var Ba=G;G=2048;var Ti=ar,Mi=mh(Wt),jn=mh(Ft);e.contains(Ue,Mi)&&(ar|=1),e.contains(Je,jn)&&(ar|=2),ar!==3?((Ue||(Ue=[])).push(Mi),(Je||(Je=[])).push(jn),_n(Wt,Ft),Je.pop(),Ue.pop()):G=-1,ar=Ti,we.set(Ca,G),G=Math.min(G,Ba)}function Et(Wt,Ft,_n){for(var Ca,Yn,Ba=0,Ti=Ft;Ba<Ti.length;Ba++)for(var Mi=Ti[Ba],jn=0,Fi=Wt;jn<Fi.length;jn++){var jr=Fi[jn];_n(jr,Mi)&&(_r(jr,Mi),Ca=e.appendIfUnique(Ca,jr),Yn=e.appendIfUnique(Yn,Mi))}return[Ca?e.filter(Wt,function(Sr){return!e.contains(Ca,Sr)}):Wt,Yn?e.filter(Ft,function(Sr){return!e.contains(Yn,Sr)}):Ft]}function Tt(Wt,Ft,_n){for(var Ca=Wt.length<Ft.length?Wt.length:Ft.length,Yn=0;Yn<Ca;Yn++)Yn<_n.length&&(_n[Yn]&7)===2?At(Wt[Yn],Ft[Yn]):_r(Wt[Yn],Ft[Yn])}function At(Wt,Ft){lr||o&1024?(s=!s,_r(Wt,Ft),s=!s):_r(Wt,Ft)}function Vt(Wt){if(Wt.flags&8650752)for(var Ft=0,_n=r;Ft<_n.length;Ft++){var Ca=_n[Ft];if(Wt===Ca.typeParameter)return Ca}}function Nn(Wt){for(var Ft,_n=0,Ca=Wt;_n<Ca.length;_n++){var Yn=Ca[_n],Ba=Yn.flags&2097152&&e.find(Yn.types,function(Ti){return!!Vt(Ti)});if(!Ba||Ft&&Ba!==Ft)return;Ft=Ba}return Ft}function on(Wt,Ft,_n){var Ca=0;if(_n&1048576){for(var Yn=void 0,Ba=Wt.flags&1048576?Wt.types:[Wt],Ti=new Array(Ba.length),Mi=!1,jn=0,Fi=Ft;jn<Fi.length;jn++){var jr=Fi[jn];if(Vt(jr))Yn=jr,Ca++;else for(var Sr=0;Sr<Ba.length;Sr++){var hn=G;G=2048,_r(Ba[Sr],jr),G===o&&(Ti[Sr]=!0),Mi=Mi||G===-1,G=Math.min(G,hn)}}if(Ca===0){var nn=Nn(Ft);nn&&Br(Wt,nn,1);return}if(Ca===1&&!Mi){var Vn=e.flatMap(Ba,function(Mt,Bt){return Ti[Bt]?void 0:Mt});if(Vn.length){_r(ma(Vn),Yn);return}}}else for(var En=0,Fn=Ft;En<Fn.length;En++){var jr=Fn[En];Vt(jr)?Ca++:_r(Wt,jr)}if(_n&2097152?Ca===1:Ca>0)for(var Xr=0,it=Ft;Xr<it.length;Xr++){var jr=it[Xr];Vt(jr)&&Br(Wt,jr,1)}}function ca(Wt,Ft,_n){if(_n.flags&1048576){for(var Ca=!1,Yn=0,Ba=_n.types;Yn<Ba.length;Yn++){var Ti=Ba[Yn];Ca=ca(Wt,Ft,Ti)||Ca}return Ca}if(_n.flags&4194304){var Mi=Vt(_n.type);if(Mi&&!Mi.isFixed&&!nA(Wt)){var jn=rA(Wt,Ft,_n);jn&&Br(jn,Mi.typeParameter,e.getObjectFlags(Wt)&524288?16:8)}return!0}if(_n.flags&262144){Br(qu(Wt),_n,32);var Fi=kp(_n);if(Fi&&ca(Wt,Ft,Fi))return!0;var jr=e.map(Yi(Wt),An),Sr=e.map(Ms(Wt),function(hn){return hn!==Yo?hn.type:en});return _r(ma(e.concatenate(jr,Sr)),yu(Ft)),!0}return!1}function la(Wt,Ft){if(Wt.flags&16777216)_r(Wt.checkType,Ft.checkType),_r(Wt.extendsType,Ft.extendsType),_r(up(Wt),up(Ft)),_r(fp(Wt),fp(Ft));else{var _n=o;o|=s?64:0;var Ca=[up(Ft),fp(Ft)];on(Wt,Ca,Ft.flags),o=_n}}function di(Wt,Ft){var _n=aA(Wt,Ft),Ca=Ft.types;if(_n||e.every(Ft.texts,function(Ba){return Ba.length===0}))for(var Yn=0;Yn<Ca.length;Yn++)_r(_n?_n[Yn]:en,Ca[Yn])}function Aa(Wt,Ft){if(e.getObjectFlags(Wt)&4&&e.getObjectFlags(Ft)&4&&(Wt.target===Ft.target||el(Wt)&&el(Ft))){Tt(vo(Wt),vo(Ft),F0(Wt.target));return}if(El(Wt)&&El(Ft)){_r(Tc(Wt),Tc(Ft)),_r(yu(Wt),yu(Ft));var _n=of(Wt),Ca=of(Ft);_n&&Ca&&_r(_n,Ca)}if(e.getObjectFlags(Ft)&32&&!Ft.declaration.nameType){var Yn=Tc(Ft);if(ca(Wt,Ft,Yn))return}if(!uw(Wt,Ft)){if(el(Wt)||ki(Wt)){if(ki(Ft)){var Ba=op(Wt),Ti=op(Ft),Mi=vo(Ft),jn=Ft.target.elementFlags;if(ki(Wt)&&qR(Wt,Ft)){for(var Fi=0;Fi<Ti;Fi++)_r(vo(Wt)[Fi],Mi[Fi]);return}for(var jr=ki(Wt)?Math.min(Wt.target.fixedLength,Ft.target.fixedLength):0,Sr=Math.min(ki(Wt)?Iy(Wt.target,3):0,Ft.target.hasRestElement?Iy(Ft.target,3):0),Fi=0;Fi<jr;Fi++)_r(vo(Wt)[Fi],Mi[Fi]);if(!ki(Wt)||Ba-jr-Sr===1&&Wt.target.elementFlags[jr]&4)for(var hn=vo(Wt)[jr],Fi=jr;Fi<Ti-Sr;Fi++)_r(jn[Fi]&8?zs(hn):hn,Mi[Fi]);else{var nn=Ti-jr-Sr;if(nn===2&&jn[jr]&jn[jr+1]&8&&ki(Wt)){var Vn=Vt(Mi[jr]);Vn&&Vn.impliedArity!==void 0&&(_r(Xg(Wt,jr,Sr+Ba-Vn.impliedArity),Mi[jr]),_r(Xg(Wt,jr+Vn.impliedArity,Sr),Mi[jr+1]))}else if(nn===1&&jn[jr]&8){var En=Ft.target.elementFlags[Ti-1]&2,Fn=ki(Wt)?Xg(Wt,jr,Sr):zs(vo(Wt)[0]);Br(Fn,Mi[jr],En?2:0)}else if(nn===1&&jn[jr]&4){var hn=ki(Wt)?Wy(Wt,jr,Sr):vo(Wt)[0];hn&&_r(hn,Mi[jr])}}for(var Fi=0;Fi<Sr;Fi++)_r(vo(Wt)[Ba-Fi-1],Mi[Ti-Fi-1]);return}if(el(Ft)){xo(Wt,Ft);return}}Li(Wt,Ft),Bi(Wt,Ft,0),Bi(Wt,Ft,1),xo(Wt,Ft)}}function Li(Wt,Ft){for(var _n=sf(Ft),Ca=0,Yn=_n;Ca<Yn.length;Ca++){var Ba=Yn[Ca],Ti=Ii(Wt,Ba.escapedName);Ti&&_r(An(Ti),An(Ba))}}function Bi(Wt,Ft,_n){for(var Ca=Ni(Wt,_n),Yn=Ni(Ft,_n),Ba=Ca.length,Ti=Yn.length,Mi=Ba<Ti?Ba:Ti,jn=!!(e.getObjectFlags(Wt)&524288),Fi=0;Fi<Mi;Fi++)Ai(Mk(Ca[Ba-Mi+Fi]),Kg(Yn[Ti-Mi+Fi]),jn)}function Ai(Wt,Ft,_n){if(!_n){var Ca=c,Yn=Ft.declaration?Ft.declaration.kind:0;c=c||Yn===168||Yn===167||Yn===170,X0(Wt,Ft,At),c=Ca}Y0(Wt,Ft,_r)}function xo(Wt,Ft){var _n=e.getObjectFlags(Wt)&e.getObjectFlags(Ft)&32?8:0,Ca=Ms(Ft);if(Ky(Wt))for(var Yn=0,Ba=Ca;Yn<Ba.length;Yn++){for(var Ti=Ba[Yn],Mi=[],jn=0,Fi=Yi(Wt);jn<Fi.length;jn++){var jr=Fi[jn];if(f_(tg(jr,8576),Ti.keyType)){var Sr=An(jr);Mi.push(jr.flags&16777216?z0(Sr):Sr)}}for(var hn=0,nn=Ms(Wt);hn<nn.length;hn++){var Vn=nn[hn];f_(Vn.keyType,Ti.keyType)&&Mi.push(Vn.type)}Mi.length&&Br(ma(Mi),Ti.type,_n)}for(var En=0,Fn=Ca;En<Fn.length;En++){var Ti=Fn[En],Xr=Xm(Wt,Ti.keyType);Xr&&Br(Xr.type,Ti.type,_n)}}}function gw(r,t){return de&&t===vt?r===t:jf(r,t)||!!(t.flags&4&&r.flags&128||t.flags&8&&r.flags&256)}function vw(r,t){return!!(r.flags&524288&&t.flags&524288&&r.symbol&&r.symbol===t.symbol||r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===t.aliasSymbol)}function hw(r){var t=Nl(r);return!!t&&Jo(t.flags&16777216?Qv(t):t,406978556)}function Gp(r){return!!(e.getObjectFlags(r)&128)}function a1(r){return!!(e.getObjectFlags(r)&32896)}function yw(r){if(r.length>1){var t=e.filter(r,a1);if(t.length){var i=ma(t,2);return e.concatenate(e.filter(r,function(o){return!a1(o)}),[i])}}return r}function bw(r){return r.priority&416?To(r.contraCandidates):WR(r.contraCandidates)}function Ew(r,t){var i=yw(r.candidates),o=hw(r.typeParameter),s=!o&&r.topLevel&&(r.isFixed||!e1(_o(t),r.typeParameter)),c=o?e.sameMap(i,kl):s?e.sameMap(i,Mp):i,L=r.priority&416?ma(c,2):VR(c);return wl(L)}function sA(r,t){var i=r.inferences[t];if(!i.inferredType){var o=void 0,s=r.signature;if(s){var c=i.candidates?Ew(i,s):void 0;if(i.contraCandidates)o=c&&!(c.flags&131072)&&e.some(i.contraCandidates,function(we){return Ed(c,we)})?c:bw(i);else if(c)o=c;else if(r.flags&1)o=St;else{var L=Bn(i.typeParameter);L&&(o=oi(L,rR(eR(r,t),r.nonFixingMapper)))}}else o=tA(i);i.inferredType=o||i1(!!(r.flags&2));var G=Nl(i.typeParameter);if(G){var ce=oi(G,r.nonFixingMapper);(!o||!r.compareTypes(o,Il(ce,o)))&&(i.inferredType=o=ce)}}return i.inferredType}function i1(r){return r?Ze:tr}function o1(r){for(var t=[],i=0;i<r.inferences.length;i++)t.push(sA(r,i));return t}function lA(r){switch(r.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 Xe.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 Xe.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 Xe.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 r.parent.kind===295?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 Lu(r){var t=Zn(r);return t.resolvedSymbol||(t.resolvedSymbol=!e.nodeIsMissing(r)&&Uo(r,r.escapedText,1160127,lA(r),r,!e.isWriteOnlyAccess(r),!1)||We),t.resolvedSymbol}function ug(r){return!!e.findAncestor(r,function(t){return t.kind===180?!0:t.kind===79||t.kind===160?!1:"quit"})}function Qy(r,t,i,o){switch(r.kind){case 79:if(!e.isThisInTypeQuery(r)){var s=Lu(r);return s!==We?"".concat(o?I(o):"-1","|").concat(Bc(t),"|").concat(Bc(i),"|").concat(y(s)):void 0}case 108:return"0|".concat(o?I(o):"-1","|").concat(Bc(t),"|").concat(Bc(i));case 229:case 211:return Qy(r.expression,t,i,o);case 160:var c=Qy(r.left,t,i,o);return c&&c+"."+r.right.escapedText;case 205:case 206:var L=v_(r);if(L!==void 0){var G=Qy(r.expression,t,i,o);return G&&G+"."+L}}}function qs(r,t){switch(t.kind){case 211:case 229:return qs(r,t.expression);case 220:return e.isAssignmentExpression(t)&&qs(r,t.left)||e.isBinaryExpression(t)&&t.operatorToken.kind===27&&qs(r,t.right)}switch(r.kind){case 230:return t.kind===230&&r.keywordToken===t.keywordToken&&r.name.escapedText===t.name.escapedText;case 79:case 80:return e.isThisInTypeQuery(r)?t.kind===108:t.kind===79&&Lu(r)===Lu(t)||(t.kind===253||t.kind===202)&&tc(Lu(r))===wn(t);case 108:return t.kind===108;case 106:return t.kind===106;case 229:case 211:return qs(r.expression,t);case 205:case 206:return e.isAccessExpression(t)&&v_(r)===v_(t)&&qs(r.expression,t.expression);case 160:return e.isAccessExpression(t)&&r.right.escapedText===v_(t)&&qs(r.left,t.expression);case 220:return e.isBinaryExpression(r)&&r.operatorToken.kind===27&&qs(r.right,t)}return!1}function Tw(r){if(e.isAccessExpression(r))return r;if(e.isIdentifier(r)){var t=Lu(r);if(Th(t)){var i=t.valueDeclaration;if(e.isVariableDeclaration(i)&&!i.type&&i.initializer&&e.isAccessExpression(i.initializer))return i.initializer;if(e.isBindingElement(i)&&!i.initializer){var o=i.parent.parent;if(e.isVariableDeclaration(o)&&!o.type&&o.initializer&&(e.isIdentifier(o.initializer)||e.isAccessExpression(o.initializer)))return i}}}}function v_(r){var t;return r.kind===205?r.name.escapedText:r.kind===206&&e.isStringOrNumericLiteralLike(r.argumentExpression)?e.escapeLeadingUnderscores(r.argumentExpression.text):r.kind===202&&(t=md(r))?e.escapeLeadingUnderscores(t):void 0}function cA(r,t){for(;e.isAccessExpression(r);)if(r=r.expression,qs(r,t))return!0;return!1}function vm(r,t){for(;e.isOptionalChain(r);)if(r=r.expression,qs(r,t))return!0;return!1}function ov(r,t){if(r&&r.flags&1048576){var i=hs(r,t);if(i&&e.getCheckFlags(i)&2)return i.isDiscriminantProperty===void 0&&(i.isDiscriminantProperty=(i.checkFlags&192)===192&&!Qg(An(i))),!!i.isDiscriminantProperty}return!1}function uA(r,t){for(var i,o=0,s=r;o<s.length;o++){var c=s[o];if(ov(t,c.escapedName)){if(i){i.push(c);continue}i=[c]}}return i}function Sw(r,t){for(var i=new e.Map,o=0,s=function(we){if(we.flags&61603840){var Ue=ia(we,t);if(Ue){if(!mm(Ue))return{value:void 0};var Je=!1;h_(Ue,function(ar){var _r=Bc(kl(ar)),Br=i.get(_r);Br?Br!==tr&&(i.set(_r,tr),Je=!0):i.set(_r,we)}),Je||o++}}},c=0,L=r;c<L.length;c++){var G=L[c],ce=s(G);if(typeof ce=="object")return ce.value}return o>=10&&o*2>=r.length?i:void 0}function Zy(r){var t=r.types;if(!(t.length<10||e.getObjectFlags(r)&65536||e.countWhere(t,function(s){return!!(s.flags&59506688)})<10)){if(r.keyPropertyName===void 0){var i=e.forEach(t,function(s){return s.flags&59506688?e.forEach(Yi(s),function(c){return Su(An(c))?c.escapedName:void 0}):void 0}),o=i&&Sw(t,i);r.keyPropertyName=o?i:"",r.constituentMap=o}return r.keyPropertyName.length?r.keyPropertyName:void 0}}function $y(r,t){var i,o=(i=r.constituentMap)===null||i===void 0?void 0:i.get(Bc(kl(t)));return o!==tr?o:void 0}function fA(r,t){var i=Zy(r),o=i&&ia(t,i);return o&&$y(r,o)}function Dw(r,t){var i=Zy(r),o=i&&e.find(t.properties,function(c){return c.symbol&&c.kind===294&&c.symbol.escapedName===i&&Sh(c.initializer)}),s=o&&Mh(o.initializer);return s&&$y(r,s)}function dA(r,t){return qs(r,t)||cA(r,t)}function pA(r,t){if(r.arguments)for(var i=0,o=r.arguments;i<o.length;i++){var s=o[i];if(dA(t,s))return!0}return!!(r.expression.kind===205&&dA(t,r.expression.expression))}function s1(r){return(!r.id||r.id<0)&&(r.id=N,N++),r.id}function Lw(r,t){if(!(r.flags&1048576))return Qi(r,t);for(var i=0,o=r.types;i<o.length;i++){var s=o[i];if(Qi(s,t))return!0}return!1}function Aw(r,t){if(r!==t){if(t.flags&131072)return t;var i=rl(r,function(o){return Lw(t,o)});if(t.flags&512&&Pp(t)&&(i=ds(i,fm)),Qi(t,i))return i}return r}function l1(r){var t=Sc(r);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&Ed(r,Oe))}function mp(r,t){t===void 0&&(t=!1);var i=r.flags;if(i&4)return Er?16317953:16776705;if(i&128){var o=r.value==="";return Er?o?12123649:7929345:o?12582401:16776705}if(i&40)return Er?16317698:16776450;if(i&256){var s=r.value===0;return Er?s?12123394:7929090:s?12582146:16776450}if(i&64)return Er?16317188:16775940;if(i&2048){var s=J0(r);return Er?s?12122884:7928580:s?12581636:16775940}return i&16?Er?16316168:16774920:i&528?Er?r===mt||r===rn?12121864:7927560:r===mt||r===rn?12580616:16774920:i&524288&&!t?e.getObjectFlags(r)&16&&cf(r)?Er?16318463:16777215:l1(r)?Er?7880640:16728e3:Er?7888800:16736160:i&49152?9830144:i&65536?9363232:i&12288?Er?7925520:16772880:i&67108864?Er?7888800:16736160:i&131072?0:i&465829888?ag(r)?Er?7929345:16776705:mp(l(r)||tr,t):i&1048576?e.reduceLeft(r.types,function(c,L){return c|mp(L,t)},0):i&2097152?(t||(t=Jo(r,131068)),e.reduceLeft(r.types,function(c,L){return c&mp(L,t)},16777215)):16777215}function Fs(r,t){return rl(r,function(i){return(mp(i)&t)!==0})}function c1(r,t){return t?ma([is(r),tl(t)]):r}function _A(r,t){var i,o=lp(t);if(!gu(o))return dr;var s=vu(o);return ia(r,s)||sv((i=ip(r,s))===null||i===void 0?void 0:i.type)||dr}function mA(r,t){return Kf(r,sg)&&jR(r,t)||sv(Ld(65,r,kr,void 0))||dr}function sv(r){return r&&(Xe.noUncheckedIndexedAccess?ma([r,kr]):r)}function gA(r){return zs(Ld(65,r,kr,void 0)||dr)}function Cw(r){var t=r.parent.kind===203&&u1(r.parent)||r.parent.kind===294&&u1(r.parent.parent);return t?c1(vh(r),r.right):tl(r.right)}function u1(r){return r.parent.kind===220&&r.parent.left===r||r.parent.kind===243&&r.parent.initializer===r}function xw(r,t){return mA(vh(r),r.elements.indexOf(t))}function Iw(r){return gA(vh(r.parent))}function vA(r){return _A(vh(r.parent),r.name)}function Nw(r){return c1(vA(r),r.objectAssignmentInitializer)}function vh(r){var t=r.parent;switch(t.kind){case 242:return xt;case 243:return Vh(t)||dr;case 220:return Cw(t);case 214:return kr;case 203:return xw(t,r);case 224:return Iw(t);case 294:return vA(t);case 295:return Nw(t)}return dr}function kw(r){var t=r.parent,i=yA(t.parent),o=t.kind===200?_A(i,r.propertyName||r.name):r.dotDotDotToken?gA(i):mA(i,t.elements.indexOf(r));return c1(o,r.initializer)}function hA(r){var t=Zn(r);return t.resolvedType||tl(r)}function Ow(r){return r.initializer?hA(r.initializer):r.parent.parent.kind===242?xt:r.parent.parent.kind===243&&Vh(r.parent.parent)||dr}function yA(r){return r.kind===253?Ow(r):kw(r)}function Rw(r){return r.kind===253&&r.initializer&&gd(r.initializer)||r.kind!==202&&r.parent.kind===220&&gd(r.parent.right)}function Bp(r){switch(r.kind){case 211:return Bp(r.expression);case 220:switch(r.operatorToken.kind){case 63:case 75:case 76:case 77:return Bp(r.left);case 27:return Bp(r.right)}}return r}function bA(r){var t=r.parent;return t.kind===211||t.kind===220&&t.operatorToken.kind===63&&t.left===r||t.kind===220&&t.operatorToken.kind===27&&t.right===r?bA(t):r}function ww(r){return r.kind===288?kl(tl(r.expression)):en}function eb(r){var t=Zn(r);if(!t.switchTypes){t.switchTypes=[];for(var i=0,o=r.caseBlock.clauses;i<o.length;i++){var s=o[i];t.switchTypes.push(ww(s))}}return t.switchTypes}function EA(r,t){for(var i=[],o=0,s=r.caseBlock.clauses;o<s.length;o++){var c=s[o];if(c.kind===288){if(e.isStringLiteralLike(c.expression)){i.push(c.expression.text);continue}return e.emptyArray}t&&i.push(void 0)}return i}function Pw(r,t){return r.flags&1048576?!e.forEach(r.types,function(i){return!e.contains(t,i)}):e.contains(t,r)}function hh(r,t){return r===t||t.flags&1048576&&Mw(r,t)}function Mw(r,t){if(r.flags&1048576){for(var i=0,o=r.types;i<o.length;i++){var s=o[i];if(!sp(t.types,s))return!1}return!0}return r.flags&1024&&Zs(r)===t?!0:sp(t.types,r)}function h_(r,t){return r.flags&1048576?e.forEach(r.types,t):t(r)}function hm(r,t){return r.flags&1048576?e.some(r.types,t):t(r)}function Kf(r,t){return r.flags&1048576?e.every(r.types,t):t(r)}function Fw(r,t){return r.flags&3145728?e.every(r.types,t):t(r)}function rl(r,t){if(r.flags&1048576){var i=r.types,o=e.filter(i,t);if(o===i)return r;var s=r.origin,c=void 0;if(s&&s.flags&1048576){var L=s.types,G=e.filter(L,function(ce){return!!(ce.flags&1048576)||t(ce)});if(L.length-G.length===i.length-o.length){if(G.length===1)return G[0];c=l0(1048576,G)}}return u0(o,r.objectFlags,void 0,void 0,c)}return r.flags&131072||t(r)?r:en}function rb(r,t){return rl(r,function(i){return i!==t})}function Gw(r){return r.flags&1048576?r.types.length:1}function ds(r,t,i){if(r.flags&131072)return r;if(!(r.flags&1048576))return t(r);for(var o=r.origin,s=o&&o.flags&1048576?o.types:r.types,c,L=!1,G=0,ce=s;G<ce.length;G++){var we=ce[G],Ue=we.flags&1048576?ds(we,t,i):t(we);L||(L=we!==Ue),Ue&&(c?c.push(Ue):c=[Ue])}return L?c&&ma(c,i?0:1):r}function TA(r,t,i,o){return r.flags&1048576&&i?ma(e.map(r.types,t),1,i,o):ds(r,t)}function SA(r){return r.flags&1048576?r.types.length:1}function W_(r,t){return rl(r,function(i){return(i.flags&t)!==0})}function DA(r,t){return Jo(r,134217804)&&Jo(t,402655616)?ds(r,function(i){return i.flags&4?W_(t,402653316):ag(i)&&!Jo(t,402653188)?W_(t,128):i.flags&8?W_(t,264):i.flags&64?W_(t,2112):i}):r}function ym(r){return r.flags===0}function y_(r){return r.flags===0?r.type:r}function bm(r,t){return t?{flags:0,type:r.flags&131072?St:r}:r}function Bw(r){var t=Bl(256);return t.elementType=r,t}function f1(r){return je[r.id]||(je[r.id]=Bw(r))}function LA(r,t){var i=cg(Du(Mh(t)));return hh(i,r.elementType)?r:f1(ma([r.elementType,i]))}function Uw(r){return r.flags&131072?ta:zs(r.flags&1048576?ma(r.types,2):r)}function Vw(r){return r.finalArrayType||(r.finalArrayType=Uw(r.elementType))}function tb(r){return e.getObjectFlags(r)&256?Vw(r):r}function Ww(r){return e.getObjectFlags(r)&256?r.elementType:en}function jw(r){for(var t=!1,i=0,o=r;i<o.length;i++){var s=o[i];if(!(s.flags&131072)){if(!(e.getObjectFlags(s)&256))return!1;t=!0}}return t}function AA(r){var t=bA(r),i=t.parent,o=e.isPropertyAccessExpression(i)&&(i.name.escapedText==="length"||i.parent.kind===207&&e.isIdentifier(i.name)&&e.isPushOrUnshiftIdentifier(i.name)),s=i.kind===206&&i.expression===t&&i.parent.kind===220&&i.parent.operatorToken.kind===63&&i.parent.left===i&&!e.isAssignmentTarget(i.parent)&&ys(tl(i.argumentExpression),296);return o||s}function Hw(r){return(e.isVariableDeclaration(r)||e.isPropertyDeclaration(r)||e.isPropertySignature(r)||e.isParameter(r))&&!!(e.getEffectiveTypeAnnotationNode(r)||e.isInJSFile(r)&&e.hasInitializer(r)&&r.initializer&&e.isFunctionExpressionOrArrowFunction(r.initializer)&&e.getEffectiveReturnTypeNode(r.initializer))}function nb(r,t){if(r.flags&8752)return An(r);if(r.flags&7){if(e.getCheckFlags(r)&262144){var i=r.syntheticOrigin;if(i&&nb(i))return An(r)}var o=r.valueDeclaration;if(o){if(Hw(o))return An(r);if(e.isVariableDeclaration(o)&&o.parent.parent.kind===243){var s=o.parent.parent,c=yh(s.expression,void 0);if(c){var L=s.awaitModifier?15:13;return Ld(L,c,kr,void 0)}}t&&e.addRelatedInfo(t,e.createDiagnosticForNode(o,e.Diagnostics._0_needs_an_explicit_type_annotation,Wa(r)))}}}function yh(r,t){if(!(r.flags&16777216))switch(r.kind){case 79:var i=tc(Lu(r));return nb(i.flags&2097152?ms(i):i,t);case 108:return sP(r);case 106:return g1(r);case 205:{var o=yh(r.expression,t);if(o){var s=r.name,c=void 0;if(e.isPrivateIdentifier(s)){if(!o.symbol)return;c=Ii(o,e.getSymbolNameForPrivateIdentifier(o.symbol,s.escapedText))}else c=Ii(o,s.escapedText);return c&&nb(c,t)}return}case 211:return yh(r.expression,t)}}function ab(r){var t=Zn(r),i=t.effectsSignature;if(i===void 0){var o=void 0;r.parent.kind===237?o=yh(r.expression,void 0):r.expression.kind!==106&&(e.isOptionalChain(r)?o=iu(nv(ui(r.expression),r.expression),r.expression):o=_g(r.expression));var s=Ni(o&&wi(o)||tr,0),c=s.length===1&&!s[0].typeParameters?s[0]:e.some(s,CA)?gg(r):void 0;i=t.effectsSignature=c&&CA(c)?c:lo}return i===lo?void 0:i}function CA(r){return!!(Dc(r)||r.declaration&&(lm(r.declaration)||tr).flags&131072)}function Jw(r,t){if(r.kind===1||r.kind===3)return t.arguments[r.parameterIndex];var i=e.skipParentheses(t.expression);return e.isAccessExpression(i)?e.skipParentheses(i.expression):void 0}function Kw(r){var t=e.findAncestor(r,e.isFunctionOrModuleBlock),i=e.getSourceFileOfNode(r),o=e.getSpanOfTokenAtPosition(i,t.statements.pos);ua.add(e.createFileDiagnostic(i,o.start,o.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function bh(r){var t=ib(r,!1);return il=r,Pl=t,t}function Eh(r){var t=e.skipParentheses(r,!0);return t.kind===95||t.kind===220&&(t.operatorToken.kind===55&&(Eh(t.left)||Eh(t.right))||t.operatorToken.kind===56&&Eh(t.left)&&Eh(t.right))}function ib(r,t){for(;;){if(r===il)return Pl;var i=r.flags;if(i&4096){if(!t){var o=s1(r),s=Lt[o];return s!==void 0?s:Lt[o]=ib(r,!0)}t=!1}if(i&368)r=r.antecedent;else if(i&512){var c=ab(r.node);if(c){var L=Dc(c);if(L&&L.kind===3&&!L.type){var G=r.node.arguments[L.parameterIndex];if(G&&Eh(G))return!1}if(_o(c).flags&131072)return!1}r=r.antecedent}else{if(i&4)return e.some(r.antecedents,function(ar){return ib(ar,!1)});if(i&8){var ce=r.antecedents;if(ce===void 0||ce.length===0)return!1;r=ce[0]}else if(i&128){if(r.clauseStart===r.clauseEnd&&ZC(r.switchStatement))return!1;r=r.antecedent}else if(i&1024){il=void 0;var we=r.target,Ue=we.antecedents;we.antecedents=r.antecedents;var Je=ib(r.antecedent,!1);return we.antecedents=Ue,Je}else return!(i&1)}}}function ob(r,t){for(;;){var i=r.flags;if(i&4096){if(!t){var o=s1(r),s=Kt[o];return s!==void 0?s:Kt[o]=ob(r,!0)}t=!1}if(i&496)r=r.antecedent;else if(i&512){if(r.node.expression.kind===106)return!0;r=r.antecedent}else{if(i&4)return e.every(r.antecedents,function(ce){return ob(ce,!1)});if(i&8)r=r.antecedents[0];else if(i&1024){var c=r.target,L=c.antecedents;c.antecedents=r.antecedents;var G=ob(r.antecedent,!1);return c.antecedents=L,G}else return!!(i&1)}}}function xA(r){switch(r.kind){case 79:{var t=Lu(r);return Th(t)||e.isParameterOrCatchClauseVariable(t)&&!IA(t)}case 205:case 206:return xA(r.expression)&&Iu(Zn(r).resolvedSymbol||We)}return!1}function b_(r,t,i,o){i===void 0&&(i=t);var s,c=!1,L=0;if(Nr)return dr;if(!r.flowNode)return t;Us++;var G=Wo,ce=y_(Je(r.flowNode));Wo=G;var we=e.getObjectFlags(ce)&256&&AA(r)?ta:tb(ce);if(we===Pn||r.parent&&r.parent.kind===229&&!(we.flags&131072)&&Fs(we,2097152).flags&131072)return t;return we===Ir?tr:we;function Ue(){return c?s:(c=!0,s=Qy(r,t,i,o))}function Je(Xr){if(L===2e3)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:Xr.id}),Nr=!0,Kw(r),dr;L++;for(var it;;){var Mt=Xr.flags;if(Mt&4096){for(var Bt=G;Bt<Wo;Bt++)if(Pr[Bt]===Xr)return L--,$r[Bt];it=Xr}var Yt=void 0;if(Mt&16){if(Yt=_r(Xr),!Yt){Xr=Xr.antecedent;continue}}else if(Mt&512){if(Yt=Zr(Xr),!Yt){Xr=Xr.antecedent;continue}}else if(Mt&96)Yt=Tt(Xr);else if(Mt&128)Yt=At(Xr);else if(Mt&12){if(Xr.antecedents.length===1){Xr=Xr.antecedents[0];continue}Yt=Mt&4?Vt(Xr):Nn(Xr)}else if(Mt&256){if(Yt=Et(Xr),!Yt){Xr=Xr.antecedent;continue}}else if(Mt&1024){var mn=Xr.target,ya=mn.antecedents;mn.antecedents=Xr.antecedents,Yt=Je(Xr.antecedent),mn.antecedents=ya}else if(Mt&2){var _a=Xr.node;if(_a&&_a!==o&&r.kind!==205&&r.kind!==206&&r.kind!==108){Xr=_a.flowNode;continue}Yt=i}else Yt=Sv(t);return it&&(Pr[Wo]=it,$r[Wo]=Yt,Wo++),L--,Yt}}function ar(Xr){var it=Xr.node;return d1(it.kind===253||it.kind===202?yA(it):vh(it),r)}function _r(Xr){var it=Xr.node;if(qs(r,it)){if(!bh(Xr))return Pn;if(e.getAssignmentTargetKind(it)===2){var Mt=Je(Xr.antecedent);return bm(Du(y_(Mt)),ym(Mt))}if(t===xr||t===ta){if(Rw(it))return f1(en);var Bt=Mp(ar(Xr));return Qi(Bt,t)?Bt:Sn}return t.flags&1048576?Aw(t,ar(Xr)):t}if(cA(r,it)){if(!bh(Xr))return Pn;if(e.isVariableDeclaration(it)&&(e.isInJSFile(it)||e.isVarConst(it))){var Yt=e.getDeclaredExpandoInitializer(it);if(Yt&&(Yt.kind===212||Yt.kind===213))return Je(Xr.antecedent)}return t}if(e.isVariableDeclaration(it)&&it.parent.parent.kind===242&&qs(r,it.parent.parent.expression))return R1(y_(Je(Xr.antecedent)))}function Br(Xr,it){var Mt=e.skipParentheses(it,!0);if(Mt.kind===95)return Pn;if(Mt.kind===220){if(Mt.operatorToken.kind===55)return Br(Br(Xr,Mt.left),Mt.right);if(Mt.operatorToken.kind===56)return ma([Br(Xr,Mt.left),Br(Xr,Mt.right)])}return En(Xr,Mt,!0)}function Zr(Xr){var it=ab(Xr.node);if(it){var Mt=Dc(it);if(Mt&&(Mt.kind===2||Mt.kind===3)){var Bt=Je(Xr.antecedent),Yt=tb(y_(Bt)),mn=Mt.type?Vn(Yt,Mt,Xr.node,!0):Mt.kind===3&&Mt.parameterIndex>=0&&Mt.parameterIndex<Xr.node.arguments.length?Br(Yt,Xr.node.arguments[Mt.parameterIndex]):Yt;return mn===Yt?Bt:bm(mn,ym(Bt))}if(_o(it).flags&131072)return Pn}}function Et(Xr){if(t===xr||t===ta){var it=Xr.node,Mt=it.kind===207?it.expression.expression:it.left.expression;if(qs(r,Bp(Mt))){var Bt=Je(Xr.antecedent),Yt=y_(Bt);if(e.getObjectFlags(Yt)&256){var mn=Yt;if(it.kind===207)for(var ya=0,_a=it.arguments;ya<_a.length;ya++){var qa=_a[ya];mn=LA(mn,qa)}else{var Vi=Mh(it.left.argumentExpression);ys(Vi,296)&&(mn=LA(mn,it.right))}return mn===Yt?Bt:bm(mn,ym(Bt))}return Bt}}}function Tt(Xr){var it=Je(Xr.antecedent),Mt=y_(it);if(Mt.flags&131072)return it;var Bt=(Xr.flags&32)!==0,Yt=tb(Mt),mn=En(Yt,Xr.node,Bt);return mn===Yt?it:bm(mn,ym(it))}function At(Xr){var it=Xr.switchStatement.expression,Mt=Je(Xr.antecedent),Bt=y_(Mt);if(qs(r,it))Bt=Ba(Bt,Xr.switchStatement,Xr.clauseStart,Xr.clauseEnd);else if(it.kind===215&&qs(r,it.expression))Bt=jn(Bt,Xr.switchStatement,Xr.clauseStart,Xr.clauseEnd);else{Er&&(vm(it,r)?Bt=Yn(Bt,Xr.switchStatement,Xr.clauseStart,Xr.clauseEnd,function(mn){return!(mn.flags&163840)}):it.kind===215&&vm(it.expression,r)&&(Bt=Yn(Bt,Xr.switchStatement,Xr.clauseStart,Xr.clauseEnd,function(mn){return!(mn.flags&131072||mn.flags&128&&mn.value==="undefined")})));var Yt=ca(it,Bt);Yt&&(Bt=Aa(Bt,Yt,Xr.switchStatement,Xr.clauseStart,Xr.clauseEnd))}return bm(Bt,ym(Mt))}function Vt(Xr){for(var it=[],Mt=!1,Bt=!1,Yt,mn=0,ya=Xr.antecedents;mn<ya.length;mn++){var _a=ya[mn];if(!Yt&&_a.flags&128&&_a.clauseStart===_a.clauseEnd){Yt=_a;continue}var qa=Je(_a),Vi=y_(qa);if(Vi===t&&t===i)return Vi;e.pushIfUnique(it,Vi),hh(Vi,t)||(Mt=!0),ym(qa)&&(Bt=!0)}if(Yt){var qa=Je(Yt),Vi=y_(qa);if(!e.contains(it,Vi)&&!ZC(Yt.switchStatement)){if(Vi===t&&t===i)return Vi;it.push(Vi),hh(Vi,t)||(Mt=!0),ym(qa)&&(Bt=!0)}}return bm(on(it,Mt?2:1),Bt)}function Nn(Xr){var it=s1(Xr),Mt=La[it]||(La[it]=new e.Map),Bt=Ue();if(!Bt)return t;var Yt=Mt.get(Bt);if(Yt)return Yt;for(var mn=Ia;mn<oo;mn++)if(uu[mn]===Xr&&dc[mn]===Bt&&Nc[mn].length)return bm(on(Nc[mn],1),!0);for(var ya=[],_a=!1,qa,Vi=0,Qa=Xr.antecedents;Vi<Qa.length;Vi++){var ho=Qa[Vi],Vo=void 0;if(!qa)Vo=qa=Je(ho);else{uu[oo]=Xr,dc[oo]=Bt,Nc[oo]=ya,oo++;var ao=Co;Co=void 0,Vo=Je(ho),Co=ao,oo--;var Ds=Mt.get(Bt);if(Ds)return Ds}var ss=y_(Vo);if(e.pushIfUnique(ya,ss),hh(ss,t)||(_a=!0),ss===t)break}var Xs=on(ya,_a?2:1);return ym(qa)?bm(Xs,!0):(Mt.set(Bt,Xs),Xs)}function on(Xr,it){if(jw(Xr))return f1(ma(e.map(Xr,Ww)));var Mt=ma(e.sameMap(Xr,tb),it);return Mt!==t&&Mt.flags&t.flags&1048576&&e.arraysEqual(Mt.types,t.types)?t:Mt}function ca(Xr,it){var Mt,Bt,Yt=t.flags&1048576?t:it;return Yt.flags&1048576&&(Mt=Tw(Xr))&&(Bt=v_(Mt))&&qs(r,e.isAccessExpression(Mt)?Mt.expression:Mt.parent.parent.initializer)&&ov(Yt,Bt)?Mt:void 0}function la(Xr,it,Mt){var Bt=v_(it);if(Bt===void 0)return Xr;var Yt=Er&&e.isOptionalChain(it)&&Jo(Xr,98304),mn=ia(Yt?Fs(Xr,2097152):Xr,Bt);if(!mn)return Xr;mn=Yt?Jf(mn):mn;var ya=Mt(mn);return rl(Xr,function(_a){var qa=ti(_a,Bt);return!(ya.flags&131072)&&ig(ya,qa)})}function di(Xr,it,Mt,Bt,Yt){if((Mt===36||Mt===37)&&Xr.flags&1048576){var mn=Zy(Xr);if(mn&&mn===v_(it)){var ya=$y(Xr,tl(Bt));if(ya)return Mt===(Yt?36:37)?ya:Su(ia(ya,mn)||tr)?rb(Xr,ya):Xr}}return la(Xr,it,function(_a){return _n(_a,Mt,Bt,Yt)})}function Aa(Xr,it,Mt,Bt,Yt){if(Bt<Yt&&Xr.flags&1048576&&Zy(Xr)===v_(it)){var mn=eb(Mt).slice(Bt,Yt),ya=ma(e.map(mn,function(_a){return $y(Xr,_a)||tr}));if(ya!==tr)return ya}return la(Xr,it,function(_a){return Ba(_a,Mt,Bt,Yt)})}function Li(Xr,it,Mt){if(qs(r,it))return Xr.flags&2&&Mt?Ir:Fs(Xr,Mt?4194304:8388608);Er&&Mt&&vm(it,r)&&(Xr=Fs(Xr,2097152));var Bt=ca(it,Xr);return Bt?la(Xr,Bt,function(Yt){return Fs(Yt,Mt?4194304:8388608)}):Xr}function Bi(Xr,it,Mt){var Bt=Ii(Xr,it);return Bt?Bt.flags&16777216?!0:Mt:ip(Xr,it)?!0:!Mt}function Ai(Xr,it,Mt){return Xr.flags&1048576||Xr.flags&524288&&t!==Xr||lh(Xr)||Xr.flags&2097152&&e.every(Xr.types,function(Bt){return Bt.symbol!==pr})?rl(Xr,function(Bt){return Bi(Bt,it,Mt)}):Xr}function xo(Xr,it,Mt){switch(it.operatorToken.kind){case 63:case 75:case 76:case 77:return Li(En(Xr,it.right,Mt),it.left,Mt);case 34:case 35:case 36:case 37:var Bt=it.operatorToken.kind,Yt=Bp(it.left),mn=Bp(it.right);if(Yt.kind===215&&e.isStringLiteralLike(mn))return Ca(Xr,Yt,Bt,mn,Mt);if(mn.kind===215&&e.isStringLiteralLike(Yt))return Ca(Xr,mn,Bt,Yt,Mt);if(qs(r,Yt))return _n(Xr,Bt,mn,Mt);if(qs(r,mn))return _n(Xr,Bt,Yt,Mt);Er&&(vm(Yt,r)?Xr=Ft(Xr,Bt,mn,Mt):vm(mn,r)&&(Xr=Ft(Xr,Bt,Yt,Mt)));var ya=ca(Yt,Xr);if(ya)return di(Xr,ya,Bt,mn,Mt);var _a=ca(mn,Xr);if(_a)return di(Xr,_a,Bt,Yt,Mt);if(Fi(Yt))return jr(Xr,Bt,mn,Mt);if(Fi(mn))return jr(Xr,Bt,Yt,Mt);break;case 102:return Sr(Xr,it,Mt);case 101:if(e.isPrivateIdentifier(it.left))return Wt(Xr,it,Mt);var qa=Bp(it.right),Vi=jp(it.left);if(Vi.flags&128){var Qa=e.escapeLeadingUnderscores(Vi.value);if(Jy(Xr)&&e.isAccessExpression(r)&&qs(r.expression,qa)&&v_(r)===Qa)return Fs(Xr,Mt?524288:65536);if(qs(r,qa))return Ai(Xr,Qa,Mt)}break;case 27:return En(Xr,it.right,Mt);case 55:return Mt?En(En(Xr,it.left,!0),it.right,!0):ma([En(Xr,it.left,!1),En(Xr,it.right,!1)]);case 56:return Mt?ma([En(Xr,it.left,!0),En(Xr,it.right,!0)]):En(En(Xr,it.left,!1),it.right,!1)}return Xr}function Wt(Xr,it,Mt){var Bt=Bp(it.right);if(!qs(r,Bt))return Xr;e.Debug.assertNode(it.left,e.isPrivateIdentifier);var Yt=vb(it.left);if(Yt===void 0)return Xr;var mn=Yt.parent,ya=e.hasStaticModifier(e.Debug.checkDefined(Yt.valueDeclaration,"should always have a declaration"))?An(mn):po(mn);return hn(Xr,ya,Mt,_m)}function Ft(Xr,it,Mt,Bt){var Yt=it===34||it===36,mn=it===34||it===35?98304:32768,ya=tl(Mt),_a=Yt!==Bt&&Kf(ya,function(qa){return!!(qa.flags&mn)})||Yt===Bt&&Kf(ya,function(qa){return!(qa.flags&(3|mn))});return _a?Fs(Xr,2097152):Xr}function _n(Xr,it,Mt,Bt){if(Xr.flags&1)return Xr;(it===35||it===37)&&(Bt=!Bt);var Yt=tl(Mt);if(Bt&&Xr.flags&2&&(it===34||it===35)&&Yt.flags&65536)return ma([ut,kr]);if(Xr.flags&2&&Bt&&(it===36||it===37))return Yt.flags&67239932?Yt:Yt.flags&524288?dn:Xr;if(Yt.flags&98304){if(!Er)return Xr;var mn=it===34||it===35,ya=mn?Bt?262144:2097152:Yt.flags&65536?Bt?131072:1048576:Bt?65536:524288;return Xr.flags&2&&ya&3145728?Ir:Fs(Xr,ya)}if(Bt){var _a=it===34?function(qa){return Gy(qa,Yt)||ZR(qa,Yt)}:function(qa){return Gy(qa,Yt)};return DA(rl(Xr,_a),Yt)}return Su(Yt)?rl(Xr,function(qa){return!(HL(qa)&&Gy(qa,Yt))}):Xr}function Ca(Xr,it,Mt,Bt,Yt){(Mt===35||Mt===37)&&(Yt=!Yt);var mn=Bp(it.expression);if(!qs(r,mn))return Er&&vm(mn,r)&&Yt===(Bt.text!=="undefined")?Fs(Xr,2097152):Xr;if(Xr.flags&1&&Bt.text==="function")return Xr;if(Yt&&Xr.flags&2&&Bt.text==="object")return Xr===Ir?dn:ma([dn,ut]);var ya=Yt?q.get(Bt.text)||128:ie.get(Bt.text)||32768,_a=Ti(Xr,Bt.text);return Fs(Yt&&_a?ds(Xr,Mi(_a)):Xr,ya)}function Yn(Xr,it,Mt,Bt,Yt){var mn=Mt!==Bt&&e.every(eb(it).slice(Mt,Bt),Yt);return mn?Fs(Xr,2097152):Xr}function Ba(Xr,it,Mt,Bt){var Yt=eb(it);if(!Yt.length)return Xr;var mn=Yt.slice(Mt,Bt),ya=Mt===Bt||e.contains(mn,en);if(Xr.flags&2&&!ya){for(var _a=void 0,qa=0;qa<mn.length;qa+=1){var Vi=mn[qa];if(Vi.flags&67239932)_a!==void 0&&_a.push(Vi);else if(Vi.flags&524288)_a===void 0&&(_a=mn.slice(0,qa)),_a.push(dn);else return Xr}return ma(_a===void 0?mn:_a)}var Qa=ma(mn),ho=Qa.flags&131072?en:DA(rl(Xr,function(ao){return Gy(Qa,ao)}),Qa);if(!ya)return ho;var Vo=rl(Xr,function(ao){return!(HL(ao)&&e.contains(Yt,kl(JR(ao))))});return ho.flags&131072?Vo:ma([ho,Vo])}function Ti(Xr,it){switch(it){case"function":return Xr.flags&1?Xr:Oe;case"object":return Xr.flags&2?ma([dn,ut]):Xr;default:return rr.get(it)}}function Mi(Xr){return function(it){if(Ed(it,Xr))return it;if(Ed(Xr,it))return Xr;if(it.flags&465829888){var Mt=l(it)||Ze;if(Ed(Xr,Mt))return To([it,Xr])}return it}}function jn(Xr,it,Mt,Bt){var Yt=EA(it,!0);if(!Yt.length)return Xr;var mn=e.findIndex(Yt,function(ao){return ao===void 0}),ya=Mt===Bt||mn>=Mt&&mn<Bt,_a,qa;if(mn>-1){var Vi=Yt.filter(function(ao){return ao!==void 0}),Qa=mn<Mt?Mt-1:Mt,ho=mn<Bt?Bt-1:Bt;_a=Vi.slice(Qa,ho),qa=Q1(Qa,ho,Vi,ya)}else _a=Yt.slice(Mt,Bt),qa=Q1(Mt,Bt,Yt,ya);if(ya)return rl(Xr,function(ao){return(mp(ao)&qa)===qa});var Vo=Fs(ma(_a.map(function(ao){return Ti(Xr,ao)||Xr})),qa);return Fs(ds(Xr,Mi(Vo)),qa)}function Fi(Xr){return(e.isPropertyAccessExpression(Xr)&&e.idText(Xr.name)==="constructor"||e.isElementAccessExpression(Xr)&&e.isStringLiteralLike(Xr.argumentExpression)&&Xr.argumentExpression.text==="constructor")&&qs(r,Xr.expression)}function jr(Xr,it,Mt,Bt){if(Bt?it!==34&&it!==36:it!==35&&it!==37)return Xr;var Yt=tl(Mt);if(!IT(Yt)&&!tm(Yt))return Xr;var mn=Ii(Yt,"prototype");if(!mn)return Xr;var ya=An(mn),_a=Na(ya)?void 0:ya;if(!_a||_a===Un||_a===Oe)return Xr;if(Na(Xr))return _a;return rl(Xr,function(Vi){return qa(Vi,_a)});function qa(Vi,Qa){return Vi.flags&524288&&e.getObjectFlags(Vi)&1||Qa.flags&524288&&e.getObjectFlags(Qa)&1?Vi.symbol===Qa.symbol:Ed(Vi,Qa)}}function Sr(Xr,it,Mt){var Bt=Bp(it.left);if(!qs(r,Bt))return Mt&&Er&&vm(Bt,r)?Fs(Xr,2097152):Xr;var Yt=tl(it.right);if(!_m(Yt,Oe))return Xr;var mn,ya=Ii(Yt,"prototype");if(ya){var _a=An(ya);Na(_a)||(mn=_a)}if(Na(Xr)&&(mn===Un||mn===Oe))return Xr;if(!mn){var qa=Ni(Yt,1);mn=qa.length?ma(e.map(qa,function(Qa){return _o(Kg(Qa))})):Qn}if(!Mt&&Yt.flags&1048576){var Vi=e.find(Yt.types,function(Qa){return!tm(Qa)});if(!Vi)return Xr}return hn(Xr,mn,Mt,_m)}function hn(Xr,it,Mt,Bt){if(!Mt)return rl(Xr,function(mn){return!Bt(mn,it)});if(Xr.flags&1048576){var Yt=rl(Xr,function(mn){return Bt(mn,it)});if(!(Yt.flags&131072))return Yt}return Ed(it,Xr)?it:Qi(Xr,it)?Xr:Qi(it,Xr)?it:To([Xr,it])}function nn(Xr,it,Mt){if(pA(it,r)){var Bt=Mt||!e.isCallChain(it)?ab(it):void 0,Yt=Bt&&Dc(Bt);if(Yt&&(Yt.kind===0||Yt.kind===1))return Vn(Xr,Yt,it,Mt)}if(Jy(Xr)&&e.isAccessExpression(r)&&e.isPropertyAccessExpression(it.expression)){var mn=it.expression;if(qs(r.expression,Bp(mn.expression))&&e.isIdentifier(mn.name)&&mn.name.escapedText==="hasOwnProperty"&&it.arguments.length===1){var ya=it.arguments[0];if(e.isStringLiteralLike(ya)&&v_(r)===e.escapeLeadingUnderscores(ya.text))return Fs(Xr,Mt?524288:65536)}}return Xr}function Vn(Xr,it,Mt,Bt){if(it.type&&!(Na(Xr)&&(it.type===Un||it.type===Oe))){var Yt=Jw(it,Mt);if(Yt){if(qs(r,Yt))return hn(Xr,it.type,Bt,Ed);Er&&Bt&&vm(Yt,r)&&!(mp(it.type)&65536)&&(Xr=Fs(Xr,2097152));var mn=ca(Yt,Xr);if(mn)return la(Xr,mn,function(ya){return hn(ya,it.type,Bt,Ed)})}}return Xr}function En(Xr,it,Mt){if(e.isExpressionOfOptionalChainRoot(it)||e.isBinaryExpression(it.parent)&&it.parent.operatorToken.kind===60&&it.parent.left===it)return Fn(Xr,it,Mt);switch(it.kind){case 79:if(!qs(r,it)&&Ve<5){var Bt=Lu(it);if(Th(Bt)){var Yt=Bt.valueDeclaration;if(Yt&&e.isVariableDeclaration(Yt)&&!Yt.type&&Yt.initializer&&xA(r)){Ve++;var mn=En(Xr,Yt.initializer,Mt);return Ve--,mn}}}case 108:case 106:case 205:case 206:return Li(Xr,it,Mt);case 207:return nn(Xr,it,Mt);case 211:case 229:return En(Xr,it.expression,Mt);case 220:return xo(Xr,it,Mt);case 218:if(it.operator===53)return En(Xr,it.operand,!Mt);break}return Xr}function Fn(Xr,it,Mt){if(qs(r,it))return Fs(Xr,Mt?2097152:262144);var Bt=ca(it,Xr);return Bt?la(Xr,Bt,function(Yt){return Fs(Yt,Mt?2097152:262144)}):Xr}}function zw(r,t){if(r=r.exportSymbol||r,(t.kind===79||t.kind===80)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),e.isExpressionNode(t)&&(!e.isAssignmentTarget(t)||e.isWriteAccess(t)))){var i=tl(t);if(tc(Zn(t).resolvedSymbol)===r)return i}return e.isDeclarationName(t)&&e.isSetAccessor(t.parent)&&ml(t.parent)?an(t.parent.symbol,!0):Gf(r)}function lv(r){return e.findAncestor(r.parent,function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||t.kind===261||t.kind===303||t.kind===166})}function IA(r){if(!r.valueDeclaration)return!1;var t=e.getRootDeclaration(r.valueDeclaration).parent,i=Zn(t);return i.flags&8388608||(i.flags|=8388608,qw(t)||NA(t)),r.isAssigned||!1}function qw(r){return!!e.findAncestor(r.parent,function(t){return(e.isFunctionLike(t)||e.isCatchClause(t))&&!!(Zn(t).flags&8388608)})}function NA(r){if(r.kind===79){if(e.isAssignmentTarget(r)){var t=Lu(r);e.isParameterOrCatchClauseVariable(t)&&(t.isAssigned=!0)}}else e.forEachChild(r,NA)}function Th(r){return r.flags&3&&(uv(r)&2)!==0}function Xw(r,t){if(E(t.symbol,2)){var i=Er&&t.kind===163&&t.initializer&&lc(r)&32768&&!(lc(ui(t.initializer))&32768);return Ot(),i?Fs(r,524288):r}else return tp(t.symbol),r}function Yw(r,t){var i=t.parent;return i.kind===205||i.kind===207&&i.expression===t||i.kind===206&&i.expression===t&&!(hm(r,Zw)&&F_(tl(i.argumentExpression)))}function Qw(r){return!!(r.flags&465829888&&re(r).flags&1146880)}function Zw(r){return!!(r.flags&465829888&&!Jo(re(r),98304))}function $w(r){var t=(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))&&!((e.isJsxOpeningElement(r.parent)||e.isJsxSelfClosingElement(r.parent))&&r.parent.tagName===r)&&Ac(r,8);return t&&!Qg(t)}function d1(r,t,i){var o=!(i&&i&2)&&hm(r,Qw)&&(Yw(r,t)||$w(t));return o?ds(r,function(s){return s.flags&465829888?re(s):s}):r}function kA(r){return!!e.findAncestor(r,function(t){var i=t.parent;return i===void 0?"quit":e.isExportAssignment(i)?i.expression===t&&e.isEntityNameExpression(t):e.isExportSpecifier(i)?i.name===t||i.propertyName===t:!1})}function sb(r,t){if(Dl(r,111551)&&!ug(t)&&!Ln(r)){var i=ms(r);i.flags&111551&&(Xe.isolatedModules||e.shouldPreserveConstEnums(Xe)&&kA(t)||!Lv(i)?ii(r):Rc(r))}}function eP(r,t){var i=Lu(r);if(i===We)return dr;if(i===Jr){if(fC(r))return Mr(r,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),dr;var o=e.getContainingFunction(r);return De<2&&(o.kind===213?Mr(r,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(o,256)&&Mr(r,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)),Zn(o).flags|=8192,An(i)}r.parent&&e.isPropertyAccessExpression(r.parent)&&r.parent.expression===r||sb(i,r);var s=tc(i),c=s.flags&2097152?ms(s):s;c.declarations&&uv(c)&134217728&&d0(r,c)&&kc(r,c.declarations,r.escapedText);var L=s.valueDeclaration;if(L&&s.flags&32){if(L.kind===256&&e.nodeIsDecorated(L))for(var o=e.getContainingClass(r);o!==void 0;){if(o===L&&o.name!==r){Zn(L).flags|=16777216,Zn(r).flags|=33554432;break}o=e.getContainingClass(o)}else if(L.kind===225)for(var o=e.getThisContainer(r,!1);o.kind!==303;){if(o.parent===L){(e.isPropertyDeclaration(o)&&e.isStatic(o)||e.isClassStaticBlockDeclaration(o))&&(Zn(L).flags|=16777216,Zn(r).flags|=33554432);break}o=e.getThisContainer(o,!1)}}nP(r,i);var G=An(s),ce=e.getAssignmentTargetKind(r);if(ce){if(!(s.flags&3)&&!(e.isInJSFile(r)&&s.flags&512)){var we=s.flags&384?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:s.flags&32?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:s.flags&1536?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:s.flags&16?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:s.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 Mr(r,we,Wa(i)),dr}if(Iu(s))return s.flags&3?Mr(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Wa(i)):Mr(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Wa(i)),dr}var Ue=s.flags&2097152;if(s.flags&3){if(ce===1)return G}else if(Ue)L=ec(i);else return G;if(!L)return G;G=d1(G,r,t);for(var Je=e.getRootDeclaration(L).kind===163,ar=lv(L),_r=lv(r),Br=_r!==ar,Zr=r.parent&&r.parent.parent&&e.isSpreadAssignment(r.parent)&&u1(r.parent.parent),Et=i.flags&134217728;_r!==ar&&(_r.kind===212||_r.kind===213||e.isObjectLiteralOrClassExpressionMethodOrAccessor(_r))&&(Th(s)&&G!==ta||Je&&!IA(s));)_r=lv(_r);var Tt=Je||Ue||Br||Zr||Et||e.isBindingElement(L)||G!==xr&&G!==ta&&(!Er||(G.flags&16387)!==0||ug(r)||r.parent.kind===274)||r.parent.kind===229||L.kind===253&&L.exclamationToken||L.flags&8388608,At=Tt?Je?Xw(G,L):G:G===xr||G===ta?kr:Jf(G),Vt=b_(r,G,At,_r);if(!AA(r)&&(G===xr||G===ta)){if(Vt===xr||Vt===ta)return Ke&&(Mr(e.getNameOfDeclaration(L),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Wa(i),gn(Vt)),Mr(r,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Wa(i),gn(Vt))),Sv(Vt)}else if(!Tt&&!(lc(G)&32768)&&lc(Vt)&32768)return Mr(r,e.Diagnostics.Variable_0_is_used_before_being_assigned,Wa(i)),G;return ce?Du(Vt):Vt}function rP(r,t){return!!e.findAncestor(r,function(i){return i===t?"quit":e.isFunctionLike(i)||i.parent&&e.isPropertyDeclaration(i.parent)&&!e.hasStaticModifier(i.parent)&&i.parent.initializer===i})}function tP(r,t){return e.findAncestor(r,function(i){return i===t?"quit":i===t.initializer||i===t.condition||i===t.incrementor||i===t.statement})}function p1(r){return e.findAncestor(r,function(t){return!t||e.nodeStartsNewLexicalEnvironment(t)?"quit":e.isIterationStatement(t,!1)})}function nP(r,t){if(!(De>=2||(t.flags&34)===0||!t.valueDeclaration||e.isSourceFile(t.valueDeclaration)||t.valueDeclaration.parent.kind===291)){var i=e.getEnclosingBlockScopeContainer(t.valueDeclaration),o=rP(r,i),s=p1(i);if(s){if(o){var c=!0;if(e.isForStatement(i)){var L=e.getAncestor(t.valueDeclaration,254);if(L&&L.parent===i){var G=tP(r.parent,i);if(G){var ce=Zn(G);ce.flags|=131072;var we=ce.capturedBlockScopeBindings||(ce.capturedBlockScopeBindings=[]);e.pushIfUnique(we,t),G===i.initializer&&(c=!1)}}}c&&(Zn(s).flags|=65536)}if(e.isForStatement(i)){var L=e.getAncestor(t.valueDeclaration,254);L&&L.parent===i&&iP(r,i)&&(Zn(t.valueDeclaration).flags|=4194304)}Zn(t.valueDeclaration).flags|=524288}o&&(Zn(t.valueDeclaration).flags|=262144)}}function aP(r,t){var i=Zn(r);return!!i&&e.contains(i.capturedBlockScopeBindings,wn(t))}function iP(r,t){for(var i=r;i.parent.kind===211;)i=i.parent;var o=!1;if(e.isAssignmentTarget(i))o=!0;else if(i.parent.kind===218||i.parent.kind===219){var s=i.parent;o=s.operator===45||s.operator===46}return o?!!e.findAncestor(i,function(c){return c===t?"quit":c===t.statement}):!1}function _1(r,t){if(Zn(r).flags|=2,t.kind===166||t.kind===170){var i=t.parent;Zn(i).flags|=4}else Zn(t).flags|=4}function OA(r){return e.isSuperCall(r)?r:e.isFunctionLike(r)?void 0:e.forEachChild(r,OA)}function RA(r){var t=wn(r),i=po(t),o=Ju(i);return o===ht}function wA(r,t,i){var o=t.parent,s=e.getClassExtendsHeritageElement(o);s&&!RA(o)&&r.flowNode&&!ob(r.flowNode,!1)&&Mr(r,i)}function oP(r,t){e.isPropertyDeclaration(t)&&e.hasStaticModifier(t)&&t.initializer&&e.textRangeContainsPositionInclusive(t.initializer,r.pos)&&e.length(t.parent.decorators)&&Mr(r,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function lb(r){var t=ug(r),i=e.getThisContainer(r,!0),o=!1;switch(i.kind===170&&wA(r,i,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),i.kind===213&&(i=e.getThisContainer(i,!1),o=!0),oP(r,i),i.kind){case 260:Mr(r,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 259:Mr(r,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 170:PA(r,i)&&Mr(r,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 161:Mr(r,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);break}!t&&o&&De<2&&_1(r,i);var s=m1(r,!0,i);if(Pe){var c=An(pr);if(s===c&&o)Mr(r,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!s){var L=Mr(r,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(i)){var G=m1(i);G&&G!==c&&e.addRelatedInfo(L,e.createDiagnosticForNode(i,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return s||Ze}function m1(r,t,i){t===void 0&&(t=!0),i===void 0&&(i=e.getThisContainer(r,!1));var o=e.isInJSFile(r);if(e.isFunctionLike(i)&&(!h1(r)||e.getThisParameter(i))){var s=be(i)||o&&cP(i);if(!s){var c=lP(i);if(o&&c){var L=ui(c).symbol;L&&L.members&&L.flags&16&&(s=po(L).thisType)}else ou(i)&&(s=po(Ga(i.symbol)).thisType);s||(s=FA(i))}if(s)return b_(r,s)}if(e.isClassLike(i.parent)){var G=wn(i.parent),ce=e.isStatic(i)?An(G):po(G).thisType;return b_(r,ce)}if(e.isSourceFile(i))if(i.commonJsModuleIndicator){var we=wn(i);return we&&An(we)}else{if(i.externalModuleIndicator)return kr;if(t)return An(pr)}}function sP(r){var t=e.getThisContainer(r,!1);if(e.isFunctionLike(t)){var i=bu(t);if(i.thisParameter)return nb(i.thisParameter)}if(e.isClassLike(t.parent)){var o=wn(t.parent);return e.isStatic(t)?An(o):po(o).thisType}}function lP(r){if(r.kind===212&&e.isBinaryExpression(r.parent)&&e.getAssignmentDeclarationKind(r.parent)===3)return r.parent.left.expression.expression;if(r.kind===168&&r.parent.kind===204&&e.isBinaryExpression(r.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent)===6)return r.parent.parent.left.expression;if(r.kind===212&&r.parent.kind===294&&r.parent.parent.kind===204&&e.isBinaryExpression(r.parent.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent.parent)===6)return r.parent.parent.parent.left.expression;if(r.kind===212&&e.isPropertyAssignment(r.parent)&&e.isIdentifier(r.parent.name)&&(r.parent.name.escapedText==="value"||r.parent.name.escapedText==="get"||r.parent.name.escapedText==="set")&&e.isObjectLiteralExpression(r.parent.parent)&&e.isCallExpression(r.parent.parent.parent)&&r.parent.parent.parent.arguments[2]===r.parent.parent&&e.getAssignmentDeclarationKind(r.parent.parent.parent)===9)return r.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(r)&&e.isIdentifier(r.name)&&(r.name.escapedText==="value"||r.name.escapedText==="get"||r.name.escapedText==="set")&&e.isObjectLiteralExpression(r.parent)&&e.isCallExpression(r.parent.parent)&&r.parent.parent.arguments[2]===r.parent&&e.getAssignmentDeclarationKind(r.parent.parent)===9)return r.parent.parent.arguments[0].expression}function cP(r){var t=e.getJSDocType(r);if(t&&t.kind===315){var i=t;if(i.parameters.length>0&&i.parameters[0].name&&i.parameters[0].name.escapedText==="this")return Da(i.parameters[0].type)}var o=e.getJSDocThisTag(r);if(o&&o.typeExpression)return Da(o.typeExpression)}function PA(r,t){return!!e.findAncestor(r,function(i){return e.isFunctionLikeDeclaration(i)?"quit":i.kind===163&&i.parent===t})}function g1(r){var t=r.parent.kind===207&&r.parent.expression===r,i=e.getSuperContainer(r,!0),o=i,s=!1;if(!t)for(;o&&o.kind===213;)o=e.getSuperContainer(o,!0),s=De<2;var c=Je(o),L=0;if(!c){var G=e.findAncestor(r,function(ar){return ar===o?"quit":ar.kind===161});return G&&G.kind===161?Mr(r,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?Mr(r,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!o||!o.parent||!(e.isClassLike(o.parent)||o.parent.kind===204)?Mr(r,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Mr(r,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),dr}if(!t&&i.kind===170&&wA(r,o,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(o)||t?(L=512,!t&&De>=2&&De<=8&&(e.isPropertyDeclaration(o)||e.isClassStaticBlockDeclaration(o))&&e.forEachEnclosingBlockScopeContainer(r.parent,function(ar){(!e.isSourceFile(ar)||e.isExternalOrCommonJsModule(ar))&&(Zn(ar).flags|=134217728)})):L=256,Zn(r).flags|=L,o.kind===168&&e.hasSyntacticModifier(o,256)&&(e.isSuperProperty(r.parent)&&e.isAssignmentTarget(r.parent)?Zn(o).flags|=4096:Zn(o).flags|=2048),s&&_1(r.parent,o),o.parent.kind===204)return De<2?(Mr(r,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),dr):Ze;var ce=o.parent;if(!e.getClassExtendsHeritageElement(ce))return Mr(r,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),dr;var we=po(wn(ce)),Ue=we&&xl(we)[0];if(!Ue)return dr;if(o.kind===170&&PA(r,o))return Mr(r,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),dr;return L===512?Ju(we):Il(Ue,we.thisType);function Je(ar){return ar?t?ar.kind===170:e.isClassLike(ar.parent)||ar.parent.kind===204?e.isStatic(ar)?ar.kind===168||ar.kind===167||ar.kind===171||ar.kind===172||ar.kind===166||ar.kind===169:ar.kind===168||ar.kind===167||ar.kind===171||ar.kind===172||ar.kind===166||ar.kind===165||ar.kind===170:!1:!1}}function uP(r){return(r.kind===168||r.kind===171||r.kind===172)&&r.parent.kind===204?r.parent:r.kind===212&&r.parent.kind===294?r.parent.parent:void 0}function MA(r){return e.getObjectFlags(r)&4&&r.target===Jt?vo(r)[0]:void 0}function fP(r){return ds(r,function(t){return t.flags&2097152?e.forEach(t.types,MA):MA(t)})}function FA(r){if(r.kind!==213){if(AL(r)){var t=Dh(r);if(t){var i=t.thisParameter;if(i)return An(i)}}var o=e.isInJSFile(r);if(Pe||o){var s=uP(r);if(s){for(var c=Up(s),L=s,G=c;G;){var ce=fP(G);if(ce)return oi(ce,$0(cv(s)));if(L.parent.kind!==294)break;L=L.parent.parent,G=Up(L)}return wl(c?Td(c):Ss(s))}var we=e.walkUpParenthesizedExpressions(r.parent);if(we.kind===220&&we.operatorToken.kind===63){var Ue=we.left;if(e.isAccessExpression(Ue)){var Je=Ue.expression;if(o&&e.isIdentifier(Je)){var ar=e.getSourceFileOfNode(we);if(ar.commonJsModuleIndicator&&Lu(Je)===ar.symbol)return}return wl(Ss(Je))}}}}}function GA(r){var t=r.parent;if(!!AL(t)){var i=e.getImmediatelyInvokedFunctionExpression(t);if(i&&i.arguments){var o=H1(i),s=t.parameters.indexOf(r);if(r.dotDotDotToken)return j1(o,s,o.length,Ze,void 0,0);var c=Zn(i),L=c.resolvedSignature;c.resolvedSignature=No;var G=s<o.length?Mp(ui(o[s])):r.initializer?void 0:zr;return c.resolvedSignature=L,G}var ce=Dh(t);if(ce){var we=t.parameters.indexOf(r)-(e.getThisParameter(t)?1:0);return r.dotDotDotToken&&e.lastOrUndefined(t.parameters)===r?hg(ce,we):T_(ce,we)}}}function v1(r){var t=e.getEffectiveTypeAnnotationNode(r);if(t)return Da(t);switch(r.kind){case 163:return GA(r);case 202:return dP(r);case 166:if(e.isStatic(r))return pP(r)}}function dP(r){var t=r.parent.parent,i=r.propertyName||r.name,o=v1(t)||t.kind!==202&&t.initializer&&Ph(t);if(!(!o||e.isBindingPattern(i)||e.isComputedNonLiteralName(i))){if(t.name.kind===201){var s=e.indexOfNode(r.parent.elements,r);return s<0?void 0:T1(o,s)}var c=lp(i);if(gu(c)){var L=vu(c);return ia(o,L)}}}function pP(r){var t=e.isExpression(r.parent)&&Ac(r.parent);if(!!t)return E_(t,wn(r).escapedName)}function _P(r,t){var i=r.parent;if(e.hasInitializer(i)&&r===i.initializer){var o=v1(i);if(o)return o;if(!(t&8)&&e.isBindingPattern(i.name))return xs(i.name,!0,!1)}}function mP(r){var t=e.getContainingFunction(r);if(t){var i=y1(t);if(i){var o=e.getFunctionFlags(t);if(o&1){var s=o&2?2:1,c=Wh(i,s,void 0);if(!c)return;i=c.returnType}if(o&2){var L=ds(i,Sd);return L&&ma([L,XC(L)])}return i}}}function gP(r,t){var i=Ac(r,t);if(i){var o=Sd(i);return o&&ma([o,XC(o)])}}function vP(r){var t=e.getContainingFunction(r);if(t){var i=e.getFunctionFlags(t),o=y1(t);if(o)return r.asteriskToken?o:Lm(0,o,(i&2)!==0)}}function h1(r){for(var t=!1;r.parent&&!e.isFunctionLike(r.parent);){if(e.isParameter(r.parent)&&(t||r.parent.initializer===r))return!0;e.isBindingElement(r.parent)&&r.parent.initializer===r&&(t=!0),r=r.parent}return!1}function BA(r,t){var i=!!(e.getFunctionFlags(t)&2),o=y1(t);if(o)return Lm(r,o,i)||void 0}function y1(r){var t=lm(r);if(t)return t;var i=D1(r);if(i&&!YE(i))return _o(i);var o=e.getImmediatelyInvokedFunctionExpression(r);if(o)return Ac(o)}function UA(r,t){var i=H1(r),o=i.indexOf(t);return o===-1?void 0:b1(r,o)}function b1(r,t){if(e.isImportCall(r))return t===0?xt:t===1?PD(!1):Ze;var i=Zn(r).resolvedSignature===Lo?Lo:gg(r);if(e.isJsxOpeningLikeElement(r)&&t===0)return db(i,r);var o=i.parameters.length-1;return ue(i)&&t>=o?Hl(An(i.parameters[o]),Wf(t-o),256):Uc(i,t)}function hP(r,t){if(r.parent.kind===209)return UA(r.parent,t)}function yP(r,t){var i=r.parent,o=i.left,s=i.operatorToken,c=i.right;switch(s.kind){case 63:case 76:case 75:case 77:return r===c?EP(i):void 0;case 56:case 60:var L=Ac(i,t);return r===c&&(L&&L.pattern||!L&&!e.isDefaultedExpandoInitializer(i))?tl(o):L;case 55:case 27:return r===c?Ac(i,t):void 0;default:return}}function bP(r){if(r.symbol)return r.symbol;if(e.isIdentifier(r))return Lu(r);if(e.isPropertyAccessExpression(r)){var t=tl(r.expression);return e.isPrivateIdentifier(r.name)?i(t,r.name):Ii(t,r.name.escapedText)}return;function i(o,s){var c=gb(s.escapedText,s);return c&&w1(o,c)}}function EP(r){var t,i,o=e.getAssignmentDeclarationKind(r);switch(o){case 0:case 4:var s=bP(r.left),c=s&&s.valueDeclaration;if(c&&(e.isPropertyDeclaration(c)||e.isPropertySignature(c))){var L=e.getEffectiveTypeAnnotationNode(c);return L&&oi(Da(L),Ja(s).mapper)||c.initializer&&tl(r.left)}return o===0?tl(r.left):VA(r);case 5:if(cb(r,o))return VA(r);if(r.left.symbol){var G=r.left.symbol.valueDeclaration;if(!G)return;var ce=e.cast(r.left,e.isAccessExpression),L=e.getEffectiveTypeAnnotationNode(G);if(L)return Da(L);if(e.isIdentifier(ce.expression)){var we=ce.expression,Ue=Uo(we,we.escapedText,111551,void 0,we.escapedText,!0);if(Ue){var Je=Ue.valueDeclaration&&e.getEffectiveTypeAnnotationNode(Ue.valueDeclaration);if(Je){var ar=e.getElementOrPropertyAccessName(ce);if(ar!==void 0)return E_(Da(Je),ar)}return}}return e.isInJSFile(G)?void 0:tl(r.left)}else return tl(r.left);case 1:case 6:case 3:var _r=(t=r.left.symbol)===null||t===void 0?void 0:t.valueDeclaration;case 2:_r||(_r=(i=r.symbol)===null||i===void 0?void 0:i.valueDeclaration);var Br=_r&&e.getEffectiveTypeAnnotationNode(_r);return Br?Da(Br):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(o)}}function cb(r,t){if(t===void 0&&(t=e.getAssignmentDeclarationKind(r)),t===4)return!0;if(!e.isInJSFile(r)||t!==5||!e.isIdentifier(r.left.expression))return!1;var i=r.left.expression.escapedText,o=Uo(r.left,i,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(o==null?void 0:o.valueDeclaration)}function VA(r){if(!r.symbol)return tl(r.left);if(r.symbol.valueDeclaration){var t=e.getEffectiveTypeAnnotationNode(r.symbol.valueDeclaration);if(t){var i=Da(t);if(i)return i}}var o=e.cast(r.left,e.isAccessExpression);if(!!e.isObjectLiteralMethod(e.getThisContainer(o.expression,!1))){var s=lb(o.expression),c=e.getElementOrPropertyAccessName(o);return c!==void 0&&E_(s,c)||void 0}}function TP(r){return!!(e.getCheckFlags(r)&262144&&!r.type&&Qe(r,0)>=0)}function E_(r,t){return ds(r,function(i){var o;if(El(i)){var s=Tc(i),c=l(s)||s,L=Lc(e.unescapeLeadingUnderscores(t));if(Qi(L,c))return lL(i,L)}else if(i.flags&3670016){var G=Ii(i,t);if(G)return TP(G)?void 0:An(G);if(ki(i)){var ce=tv(i);if(ce&&zf(t)&&+t>=0)return ce}return(o=eh(qm(i),Lc(e.unescapeLeadingUnderscores(t))))===null||o===void 0?void 0:o.type}},!0)}function SP(r,t){if(e.Debug.assert(e.isObjectLiteralMethod(r)),!(r.flags&16777216))return E1(r,t)}function E1(r,t){var i=r.parent,o=e.isPropertyAssignment(r)&&v1(r);if(o)return o;var s=Up(i,t);if(s){if(c_(r))return E_(s,wn(r).escapedName);if(r.name){var c=lp(r.name);return ds(s,function(L){var G;return(G=eh(qm(L),c))===null||G===void 0?void 0:G.type},!0)}}}function T1(r,t){return r&&(E_(r,""+t)||ds(r,function(i){return mT(1,i,kr,void 0,!1)},!0))}function DP(r,t){var i=r.parent;return r===i.whenTrue||r===i.whenFalse?Ac(i,t):void 0}function LP(r,t){var i=Up(r.openingElement.tagName),o=_b(Em(r));if(!!(i&&!Na(i)&&o&&o!=="")){var s=e.getSemanticJsxChildren(r.children),c=s.indexOf(t),L=E_(i,o);return L&&(s.length===1?L:ds(L,function(G){return _p(G)?Hl(G,Wf(c)):G},!0))}}function AP(r){var t=r.parent;return e.isJsxAttributeLike(t)?Ac(r):e.isJsxElement(t)?LP(t,r):void 0}function WA(r){if(e.isJsxAttribute(r)){var t=Up(r.parent);return!t||Na(t)?void 0:E_(t,r.name.escapedText)}else return Ac(r.parent)}function Sh(r){switch(r.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 152:return!0;case 205:case 211:return Sh(r.expression);case 287:return!r.expression||Sh(r.expression)}return!1}function CP(r,t){return Dw(t,r)||M0(t,e.concatenate(e.map(e.filter(r.properties,function(i){return!!i.symbol&&i.kind===294&&Sh(i.initializer)&&ov(t,i.symbol.escapedName)}),function(i){return[function(){return Mh(i.initializer)},i.symbol.escapedName]}),e.map(e.filter(Yi(t),function(i){var o;return!!(i.flags&16777216)&&!!(!((o=r==null?void 0:r.symbol)===null||o===void 0)&&o.members)&&!r.symbol.members.has(i.escapedName)&&ov(t,i.escapedName)}),function(i){return[function(){return kr},i.escapedName]})),Qi,t)}function xP(r,t){return M0(t,e.concatenate(e.map(e.filter(r.properties,function(i){return!!i.symbol&&i.kind===284&&ov(t,i.symbol.escapedName)&&(!i.initializer||Sh(i.initializer))}),function(i){return[i.initializer?function(){return Mh(i.initializer)}:function(){return sa},i.symbol.escapedName]}),e.map(e.filter(Yi(t),function(i){var o;return!!(i.flags&16777216)&&!!(!((o=r==null?void 0:r.symbol)===null||o===void 0)&&o.members)&&!r.symbol.members.has(i.escapedName)&&ov(t,i.escapedName)}),function(i){return[function(){return kr},i.escapedName]})),Qi,t)}function Up(r,t){var i=e.isObjectLiteralMethod(r)?SP(r,t):Ac(r,t),o=ub(i,r,t);if(o&&!(t&&t&2&&o.flags&8650752)){var s=ds(o,wi,!0);return s.flags&1048576&&e.isObjectLiteralExpression(r)?CP(r,s):s.flags&1048576&&e.isJsxAttributes(r)?xP(r,s):s}}function ub(r,t,i){if(r&&Jo(r,465829888)){var o=cv(t);if(o&&e.some(o.inferences,H_)){if(i&&i&1)return fb(r,o.nonFixingMapper);if(o.returnMapper)return fb(r,o.returnMapper)}}return r}function fb(r,t){return r.flags&465829888?oi(r,t):r.flags&1048576?ma(e.map(r.types,function(i){return fb(i,t)}),0):r.flags&2097152?To(e.map(r.types,function(i){return fb(i,t)})):r}function Ac(r,t){if(r.flags&16777216)return;if(r.contextualType)return r.contextualType;var i=r.parent;switch(i.kind){case 253:case 163:case 166:case 165:case 202:return _P(r,t);case 213:case 246:return mP(r);case 223:return vP(i);case 217:return gP(i,t);case 207:case 208:return UA(i,r);case 210:case 228:return e.isConstTypeReference(i.type)?L(i):Da(i.type);case 220:return yP(r,t);case 294:case 295:return E1(i,t);case 296:return Ac(i.parent,t);case 203:{var o=i,s=Up(o,t);return T1(s,e.indexOfNode(o.elements,r))}case 221:return DP(r,t);case 232:return e.Debug.assert(i.parent.kind===222),hP(i.parent,r);case 211:{var c=e.isInJSFile(i)?e.getJSDocTypeTag(i):void 0;return c?e.isJSDocTypeTag(c)&&e.isConstTypeReference(c.typeExpression.type)?L(i):Da(c.typeExpression.type):Ac(i,t)}case 229:return Ac(i,t);case 287:return AP(i);case 284:case 286:return WA(i);case 279:case 278:return IP(i,t)}return;function L(G){return Ac(G)}}function cv(r){var t=e.findAncestor(r,function(i){return!!i.inferenceContext});return t&&t.inferenceContext}function IP(r,t){return e.isJsxOpeningElement(r)&&r.parent.contextualType&&t!==4?r.parent.contextualType:b1(r,0)}function db(r,t){return CC(t)!==0?NP(r,t):RP(r,t)}function NP(r,t){var i=Y1(r,tr);i=jA(t,Em(t),i);var o=Vp(F.IntrinsicAttributes,t);return Ua(o)||(i=om(o,i)),i}function kP(r,t){if(r.compositeSignatures){for(var i=[],o=0,s=r.compositeSignatures;o<s.length;o++){var c=s[o],L=_o(c);if(Na(L))return L;var G=ia(L,t);if(!G)return;i.push(G)}return To(i)}var ce=_o(r);return Na(ce)?ce:ia(ce,t)}function OP(r){if(pg(r.tagName)){var t=$A(r),i=Db(r,t);return Zm(i)}var o=Ss(r.tagName);if(o.flags&128){var t=ZA(o,r);if(!t)return dr;var i=Db(r,t);return Zm(i)}return o}function jA(r,t,i){var o=ZP(t);if(o){var s=po(o),c=OP(r);if(o.flags&524288){var L=Ja(o).typeParameters;if(e.length(L)>=2){var G=P_([c,i],L,2,e.isInJSFile(r));return eg(o,G)}}if(e.length(s.typeParameters)>=2){var G=P_([c,i],s.typeParameters,2,e.isInJSFile(r));return Uf(s,G)}}return i}function RP(r,t){var i=Em(t),o=$P(i),s=o===void 0?Y1(r,tr):o===""?_o(r):kP(r,o);if(!s)return!!o&&!!e.length(t.attributes.properties)&&Mr(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(o)),tr;if(s=jA(t,i,s),Na(s))return s;var c=s,L=Vp(F.IntrinsicClassAttributes,t);if(!Ua(L)){var G=mu(L.symbol),ce=_o(r);c=om(G?Uf(L,P_([ce],G,lf(G),e.isInJSFile(t))):L,c)}var we=Vp(F.IntrinsicAttributes,t);return Ua(we)||(c=om(we,c)),c}function wP(r){return e.getStrictOptionValue(Xe,"noImplicitAny")?e.reduceLeft(r,function(t,i){return t===i||!t?t:py(t.typeParameters,i.typeParameters)?FP(t,i):void 0}):void 0}function PP(r,t,i){if(!r||!t)return r||t;var o=ma([An(r),oi(An(t),i)]);return V_(r,o)}function MP(r,t,i){for(var o=Tl(r),s=Tl(t),c=o>=s?r:t,L=c===r?t:r,G=c===r?o:s,ce=xu(r)||xu(t),we=ce&&!xu(c),Ue=new Array(G+(we?1:0)),Je=0;Je<G;Je++){var ar=T_(c,Je);c===t&&(ar=oi(ar,i));var _r=T_(L,Je)||tr;L===t&&(_r=oi(_r,i));var Br=ma([ar,_r]),Zr=ce&&!we&&Je===G-1,Et=Je>=Cu(c)&&Je>=Cu(L),Tt=Je>=o?void 0:vg(r,Je),At=Je>=s?void 0:vg(t,Je),Vt=Tt===At?Tt:Tt?At?void 0:Tt:At,Nn=fo(1|(Et&&!Zr?16777216:0),Vt||"arg".concat(Je));Nn.type=Zr?zs(Br):Br,Ue[Je]=Nn}if(we){var on=fo(1,"args");on.type=zs(Uc(L,G)),L===t&&(on.type=oi(on.type,i)),Ue[G]=on}return Ue}function FP(r,t){var i=r.typeParameters||t.typeParameters,o;r.typeParameters&&t.typeParameters&&(o=Ol(t.typeParameters,r.typeParameters));var s=r.declaration,c=MP(r,t,o),L=PP(r.thisParameter,t.thisParameter,o),G=Math.max(r.minArgumentCount,t.minArgumentCount),ce=hu(s,i,L,c,void 0,void 0,G,(r.flags|t.flags)&39);return ce.compositeKind=2097152,ce.compositeSignatures=e.concatenate(r.compositeKind===2097152&&r.compositeSignatures||[r],[t]),o&&(ce.mapper=r.compositeKind===2097152&&r.mapper&&r.compositeSignatures?m_(r.mapper,o):o),ce}function S1(r,t){var i=Ni(r,0),o=e.filter(i,function(s){return!GP(s,t)});return o.length===1?o[0]:wP(o)}function GP(r,t){for(var i=0;i<t.parameters.length;i++){var o=t.parameters[i];if(o.initializer||o.questionToken||o.dotDotDotToken||Qm(o))break}return t.parameters.length&&e.parameterIsThisKeyword(t.parameters[0])&&i--,!xu(r)&&Tl(r)<i}function D1(r){return e.isFunctionExpressionOrArrowFunction(r)||e.isObjectLiteralMethod(r)?Dh(r):void 0}function Dh(r){e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r));var t=qE(r);if(t)return t;var i=Up(r,1);if(!!i){if(!(i.flags&1048576))return S1(i,r);for(var o,s=i.types,c=0,L=s;c<L.length;c++){var G=L[c],ce=S1(G,r);if(ce)if(!o)o=[ce];else if(gh(o[0],ce,!1,!0,!0,ev))o.push(ce);else return}if(o)return o.length===1?o[0]:cy(o[0],o)}}function BP(r,t){De<2&&nl(r,Xe.downlevelIteration?1536:1024);var i=ui(r.expression,t);return Ld(33,i,kr,r.expression)}function UP(r){return r.isSpread?Hl(r.type,wt):r.type}function fg(r){return r.kind===202&&!!r.initializer||r.kind===220&&r.operatorToken.kind===63}function HA(r,t,i){for(var o=r.elements,s=o.length,c=[],L=[],G=Up(r),ce=e.isAssignmentTarget(r),we=yg(r),Ue=!1,Je=0;Je<s;Je++){var ar=o[Je];if(ar.kind===224){De<2&&nl(ar,Xe.downlevelIteration?1536:1024);var _r=ui(ar.expression,t,i);if(_p(_r))c.push(_r),L.push(8);else if(ce){var Br=tu(_r,wt)||mT(65,_r,kr,void 0,!1)||tr;c.push(Br),L.push(4)}else c.push(Ld(33,_r,kr,ar.expression)),L.push(4)}else if(de&&ar.kind===226)Ue=!0,c.push(vt),L.push(2);else{var Zr=T1(G,c.length),Et=bg(ar,t,Zr,i);c.push(Wl(Et,!0,Ue)),L.push(Ue?2:1)}}return ce?Tu(c,L):i||we||G&&hm(G,sg)?JA(Tu(c,L,we)):JA(zs(c.length?ma(e.sameMap(c,function(Tt,At){return L[At]&8?cp(Tt,wt)||Ze:Tt}),2):Er?qt:zr,we))}function JA(r){if(!(e.getObjectFlags(r)&4))return r;var t=r.literalType;return t||(t=r.literalType=ED(r),t.objectFlags|=294912),t}function VP(r){switch(r.kind){case 161:return WP(r);case 79:return zf(r.escapedText);case 8:case 10:return zf(r.text);default:return!1}}function WP(r){return ys(qf(r),296)}function zf(r){return(+r).toString()===r}function qf(r){var t=Zn(r.expression);if(!t.resolvedType){if((e.isTypeLiteralNode(r.parent.parent)||e.isClassLike(r.parent.parent)||e.isInterfaceDeclaration(r.parent.parent))&&e.isBinaryExpression(r.expression)&&r.expression.operatorToken.kind===101)return t.resolvedType=dr;if(t.resolvedType=ui(r.expression),e.isPropertyDeclaration(r.parent)&&!e.hasStaticModifier(r.parent)&&e.isClassExpression(r.parent.parent)){var i=e.getEnclosingBlockScopeContainer(r.parent.parent),o=p1(i);o&&(Zn(o).flags|=65536,Zn(r).flags|=524288,Zn(r.parent.parent).flags|=524288)}(t.resolvedType.flags&98304||!ys(t.resolvedType,402665900)&&!Qi(t.resolvedType,pt))&&Mr(r,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function jP(r){var t,i=(t=r.declarations)===null||t===void 0?void 0:t[0];return zf(r.escapedName)||i&&e.isNamedDeclaration(i)&&VP(i.name)}function KA(r){var t,i=(t=r.declarations)===null||t===void 0?void 0:t[0];return e.isKnownSymbol(r)||i&&e.isNamedDeclaration(i)&&e.isComputedPropertyName(i.name)&&ys(qf(i.name),4096)}function L1(r,t,i,o){for(var s=[],c=t;c<i.length;c++){var L=i[c];(o===xt&&!KA(L)||o===wt&&jP(L)||o===na&&KA(L))&&s.push(An(i[c]))}var G=s.length?ma(s,2):kr;return Eu(o,G,yg(r))}function zA(r){e.Debug.assert((r.flags&2097152)!==0,"Should only get Alias here.");var t=Ja(r);if(!t.immediateTarget){var i=ec(r);if(!i)return e.Debug.fail();t.immediateTarget=mo(i,!0)}return t.immediateTarget}function HP(r,t){var i=e.isAssignmentTarget(r);pF(r,i);for(var o=Er?e.createSymbolTable():void 0,s=e.createSymbolTable(),c=[],L=Qn,G=Up(r),ce=G&&G.pattern&&(G.pattern.kind===200||G.pattern.kind===204),we=yg(r),Ue=we?8:0,Je=e.isInJSFile(r)&&!e.isInJsonFile(r),ar=e.getJSDocEnumTag(r),_r=!G&&Je&&!ar,Br=vr,Zr=!1,Et=!1,Tt=!1,At=!1,Vt=0,Nn=r.properties;Vt<Nn.length;Vt++){var on=Nn[Vt];on.name&&e.isComputedPropertyName(on.name)&&qf(on.name)}for(var ca=0,la=0,di=r.properties;la<di.length;la++){var Aa=di[la],Li=wn(Aa),Bi=Aa.name&&Aa.name.kind===161?qf(Aa.name):void 0;if(Aa.kind===294||Aa.kind===295||e.isObjectLiteralMethod(Aa)){var Ai=Aa.kind===294?lx(Aa,t):Aa.kind===295?bg(!i&&Aa.objectAssignmentInitializer?Aa.objectAssignmentInitializer:Aa.name,t):cx(Aa,t);if(Je){var xo=Mf(Aa);xo?(Rl(Ai,xo,Aa),Ai=xo):ar&&ar.typeExpression&&Rl(Ai,Da(ar.typeExpression),Aa)}Br|=e.getObjectFlags(Ai)&917504;var Wt=Bi&&gu(Bi)?Bi:void 0,Ft=Wt?fo(4|Li.flags,vu(Wt),Ue|4096):fo(4|Li.flags,Li.escapedName,Ue);if(Wt&&(Ft.nameType=Wt),i){var _n=Aa.kind===294&&fg(Aa.initializer)||Aa.kind===295&&Aa.objectAssignmentInitializer;_n&&(Ft.flags|=16777216)}else if(ce&&!(e.getObjectFlags(G)&512)){var Ca=Ii(G,Li.escapedName);Ca?Ft.flags|=Ca.flags&16777216:!Xe.suppressExcessPropertyErrors&&!oc(G,xt)&&Mr(Aa.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Wa(Li),gn(G))}Ft.declarations=Li.declarations,Ft.parent=Li.parent,Li.valueDeclaration&&(Ft.valueDeclaration=Li.valueDeclaration),Ft.type=Ai,Ft.target=Li,Li=Ft,o==null||o.set(Ft.escapedName,Ft)}else if(Aa.kind===296){De<2&&nl(Aa,2),c.length>0&&(L=wp(L,Mi(),r.symbol,Br,we),c=[],s=e.createSymbolTable(),Et=!1,Tt=!1,At=!1);var Ai=Eo(ui(Aa.expression));if(dg(Ai)){var Yn=y0(Ai,we);if(o&&XA(Yn,o,Aa),ca=c.length,Ua(L))continue;L=wp(L,Yn,r.symbol,Br,we)}else Mr(Aa,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),L=dr;continue}else e.Debug.assert(Aa.kind===171||Aa.kind===172),Dv(Aa);Bi&&!(Bi.flags&8576)?Qi(Bi,pt)&&(Qi(Bi,wt)?Tt=!0:Qi(Bi,na)?At=!0:Et=!0,i&&(Zr=!0)):s.set(Li.escapedName,Li),c.push(Li)}if(ce&&r.parent.kind!==296)for(var Ba=0,Ti=Yi(G);Ba<Ti.length;Ba++){var Ft=Ti[Ba];!s.get(Ft.escapedName)&&!Ii(L,Ft.escapedName)&&(Ft.flags&16777216||Mr(Ft.valueDeclaration||Ft.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),s.set(Ft.escapedName,Ft),c.push(Ft))}if(Ua(L))return dr;if(L!==Qn)return c.length>0&&(L=wp(L,Mi(),r.symbol,Br,we),c=[],s=e.createSymbolTable(),Et=!1,Tt=!1),ds(L,function(jn){return jn===Qn?Mi():jn});return Mi();function Mi(){var jn=[];Et&&jn.push(L1(r,ca,c,xt)),Tt&&jn.push(L1(r,ca,c,wt)),At&&jn.push(L1(r,ca,c,na));var Fi=ts(r.symbol,s,e.emptyArray,e.emptyArray,jn);return Fi.objectFlags|=Br|128|262144,_r&&(Fi.objectFlags|=8192),Zr&&(Fi.objectFlags|=512),i&&(Fi.pattern=r),Fi}}function dg(r){if(r.flags&465829888){var t=l(r);if(t!==void 0)return dg(t)}return!!(r.flags&126615553||lc(r)&117632&&dg(qL(r))||r.flags&3145728&&e.every(r.types,dg))}function JP(r){I1(r)}function KP(r,t){return Dv(r),Lh(r)||Ze}function zP(r){I1(r.openingElement),pg(r.closingElement.tagName)?C1(r.closingElement):ui(r.closingElement.tagName),pb(r)}function qP(r,t){return Dv(r),Lh(r)||Ze}function XP(r){I1(r.openingFragment);var t=e.getSourceFileOfNode(r);return e.getJSXTransformEnabled(Xe)&&(Xe.jsxFactory||t.pragmas.has("jsx"))&&!Xe.jsxFragmentFactory&&!t.pragmas.has("jsxfrag")&&Mr(r,Xe.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),pb(r),Lh(r)||Ze}function A1(r){return e.stringContains(r,"-")}function pg(r){return r.kind===79&&e.isIntrinsicJsxName(r.escapedText)}function qA(r,t){return r.initializer?bg(r.initializer,t):sa}function YP(r,t){for(var i=r.attributes,o=Er?e.createSymbolTable():void 0,s=e.createSymbolTable(),c=Ra,L=!1,G,ce=!1,we=2048,Ue=_b(Em(r)),Je=0,ar=i.properties;Je<ar.length;Je++){var _r=ar[Je],Br=_r.symbol;if(e.isJsxAttribute(_r)){var Zr=qA(_r,t);we|=e.getObjectFlags(Zr)&917504;var Et=fo(4|Br.flags,Br.escapedName);Et.declarations=Br.declarations,Et.parent=Br.parent,Br.valueDeclaration&&(Et.valueDeclaration=Br.valueDeclaration),Et.type=Zr,Et.target=Br,s.set(Et.escapedName,Et),o==null||o.set(Et.escapedName,Et),_r.name.escapedText===Ue&&(ce=!0)}else{e.Debug.assert(_r.kind===286),s.size>0&&(c=wp(c,la(),i.symbol,we,!1),s=e.createSymbolTable());var Zr=Eo(Ss(_r.expression,t));Na(Zr)&&(L=!0),dg(Zr)?(c=wp(c,Zr,i.symbol,we,!1),o&&XA(Zr,o,_r)):G=G?To([G,Zr]):Zr}}L||s.size>0&&(c=wp(c,la(),i.symbol,we,!1));var Tt=r.parent.kind===277?r.parent:void 0;if(Tt&&Tt.openingElement===r&&Tt.children.length>0){var At=pb(Tt,t);if(!L&&Ue&&Ue!==""){ce&&Mr(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(Ue));var Vt=Up(r.attributes),Nn=Vt&&E_(Vt,Ue),on=fo(4,Ue);on.type=At.length===1?At[0]:Nn&&hm(Nn,sg)?Tu(At):zs(ma(At)),on.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(Ue),void 0,void 0),e.setParent(on.valueDeclaration,i),on.valueDeclaration.symbol=on;var ca=e.createSymbolTable();ca.set(Ue,on),c=wp(c,ts(i.symbol,ca,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,we,!1)}}if(L)return Ze;if(G&&c!==Ra)return To([G,c]);return G||(c===Ra?la():c);function la(){we|=vr;var di=ts(i.symbol,s,e.emptyArray,e.emptyArray,e.emptyArray);return di.objectFlags|=we|128|262144,di}}function pb(r,t){for(var i=[],o=0,s=r.children;o<s.length;o++){var c=s[o];if(c.kind===11)c.containsOnlyTriviaWhiteSpaces||i.push(xt);else{if(c.kind===287&&!c.expression)continue;i.push(bg(c,t))}}return i}function XA(r,t,i){for(var o=0,s=Yi(r);o<s.length;o++){var c=s[o];if(!(c.flags&16777216)){var L=t.get(c.escapedName);if(L){var G=Mr(L.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(L.escapedName));e.addRelatedInfo(G,e.createDiagnosticForNode(i,e.Diagnostics.This_spread_always_overwrites_this_property))}}}}function QP(r,t){return YP(r.parent,t)}function Vp(r,t){var i=Em(t),o=i&&Js(i),s=o&&ks(o,r,788968);return s?po(s):dr}function C1(r){var t=Zn(r);if(!t.resolvedSymbol){var i=Vp(F.IntrinsicElements,r);if(Ua(i))return Ke&&Mr(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(F.IntrinsicElements)),t.resolvedSymbol=We;if(!e.isIdentifier(r.tagName))return e.Debug.fail();var o=Ii(i,r.tagName.escapedText);if(o)return t.jsxFlags|=1,t.resolvedSymbol=o;var s=tu(i,xt);return s?(t.jsxFlags|=2,t.resolvedSymbol=i.symbol):(Mr(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(r.tagName),"JSX."+F.IntrinsicElements),t.resolvedSymbol=We)}return t.resolvedSymbol}function x1(r){var t=r&&e.getSourceFileOfNode(r),i=t&&Zn(t);if(!(i&&i.jsxImplicitImportContainer===!1)){if(i&&i.jsxImplicitImportContainer)return i.jsxImplicitImportContainer;var o=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(Xe,t),Xe);if(!!o){var s=e.getEmitModuleResolutionKind(Xe)===e.ModuleResolutionKind.Classic,c=s?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,L=Qu(r,o,c,r),G=L&&L!==We?Ga(wo(L)):void 0;return i&&(i.jsxImplicitImportContainer=G||!1),G}}}function Em(r){var t=r&&Zn(r);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||t.jsxNamespace!==!1){var i=x1(r);if(!i||i===We){var o=bo(r);i=Uo(r,o,1920,void 0,o,!1)}if(i){var s=wo(ks(Js(wo(i)),F.JSX,1920));if(s&&s!==We)return t&&(t.jsxNamespace=s),s}t&&(t.jsxNamespace=!1)}var c=wo(zg(F.JSX,1920,void 0));if(c!==We)return c}function YA(r,t){var i=t&&ks(t.exports,r,788968),o=i&&po(i),s=o&&Yi(o);if(s){if(s.length===0)return"";if(s.length===1)return s[0].escapedName;s.length>1&&i.declarations&&Mr(i.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(r))}}function ZP(r){return r&&ks(r.exports,F.LibraryManagedAttributes,788968)}function $P(r){return YA(F.ElementAttributesPropertyNameContainer,r)}function _b(r){return YA(F.ElementChildrenAttributeNameContainer,r)}function QA(r,t){if(r.flags&4)return[No];if(r.flags&128){var i=ZA(r,t);if(i){var o=Db(t,i);return[o]}else return Mr(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,"JSX."+F.IntrinsicElements),e.emptyArray}var s=wi(r),c=Ni(s,1);return c.length===0&&(c=Ni(s,0)),c.length===0&&s.flags&1048576&&(c=Wg(e.map(s.types,function(L){return QA(L,t)}))),c}function ZA(r,t){var i=Vp(F.IntrinsicElements,t);if(!Ua(i)){var o=r.value,s=Ii(i,e.escapeLeadingUnderscores(o));if(s)return An(s);var c=tu(i,xt);return c||void 0}return Ze}function eM(r,t,i){if(r===1){var o=rC(i);o&&au(t,o,Ta,i.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,L)}else if(r===0){var s=eC(i);s&&au(t,s,Ta,i.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,L)}else{var o=rC(i),s=eC(i);if(!o||!s)return;var c=ma([o,s]);au(t,c,Ta,i.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,L)}function L(){var G=e.getTextOfNode(i.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,G)}}function $A(r){e.Debug.assert(pg(r.tagName));var t=Zn(r);if(!t.resolvedJsxElementAttributesType){var i=C1(r);return t.jsxFlags&1?t.resolvedJsxElementAttributesType=An(i)||dr:t.jsxFlags&2?t.resolvedJsxElementAttributesType=tu(Vp(F.IntrinsicElements,r),xt)||dr:t.resolvedJsxElementAttributesType=dr}return t.resolvedJsxElementAttributesType}function eC(r){var t=Vp(F.ElementClass,r);if(!Ua(t))return t}function Lh(r){return Vp(F.Element,r)}function rC(r){var t=Lh(r);if(t)return ma([t,ut])}function rM(r){var t=Vp(F.IntrinsicElements,r);return t?Yi(t):e.emptyArray}function tM(r){(Xe.jsx||0)===0&&Mr(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),Lh(r)===void 0&&Ke&&Mr(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function I1(r){var t=e.isJsxOpeningLikeElement(r);if(t&&_F(r),tM(r),!x1(r)){var i=ua&&Xe.jsx===2?e.Diagnostics.Cannot_find_name_0:void 0,o=bo(r),s=t?r.tagName:r,c=void 0;if(e.isJsxOpeningFragment(r)&&o==="null"||(c=Uo(s,o,111551,i,o,!0)),c&&(c.isReferenced=67108863,c.flags&2097152&&!Ln(c)&&ii(c)),e.isJsxOpeningFragment(r)){var L=e.getSourceFileOfNode(r),G=Ns(L);G&&Uo(s,G,111551,i,G,!0)}}if(t){var ce=r,we=gg(ce);Ab(we,r),eM(CC(ce),_o(we),ce)}}function N1(r,t,i){if(r.flags&524288){if(hd(r,t)||ip(r,t)||Ip(t)&&oc(r,xt)||i&&A1(t))return!0}else if(r.flags&3145728&&Ah(r))for(var o=0,s=r.types;o<s.length;o++){var c=s[o];if(N1(c,t,i))return!0}return!1}function Ah(r){return!!(r.flags&524288&&!(e.getObjectFlags(r)&512)||r.flags&67108864||r.flags&1048576&&e.some(r.types,Ah)||r.flags&2097152&&e.every(r.types,Ah))}function nM(r,t){if(gF(r),r.expression){var i=ui(r.expression,t);return r.dotDotDotToken&&i!==Ze&&!el(i)&&Mr(r,e.Diagnostics.JSX_spread_child_must_be_an_array_type),i}else return dr}function uv(r){return r.valueDeclaration?e.getCombinedNodeFlags(r.valueDeclaration):0}function k1(r){if(r.flags&8192||e.getCheckFlags(r)&4)return!0;if(e.isInJSFile(r.valueDeclaration)){var t=r.valueDeclaration.parent;return t&&e.isBinaryExpression(t)&&e.getAssignmentDeclarationKind(t)===3}}function O1(r,t,i,o,s,c){c===void 0&&(c=!0);var L=c?r.kind===160?r.right:r.kind===199?r:r.kind===202&&r.propertyName?r.propertyName:r.name:void 0;return tC(r,t,i,o,s,L)}function tC(r,t,i,o,s,c){var L=e.getDeclarationModifierFlagsFromSymbol(s,i);if(t){if(De<2&&nC(s))return c&&Mr(c,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(L&128)return c&&Mr(c,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Wa(s),gn(U_(s))),!1}if(L&128&&nC(s)&&(e.isThisProperty(r)||e.isThisInitializedObjectBindingExpression(r)||e.isObjectBindingPattern(r.parent)&&e.isThisInitializedDeclaration(r.parent.parent))){var G=e.getClassLikeDeclarationOfSymbol(Ts(s));if(G&&f8(r))return c&&Mr(c,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Wa(s),e.getTextOfIdentifierOrLiteral(G.name)),!1}if(!(L&24))return!0;if(L&8){var G=e.getClassLikeDeclarationOfSymbol(Ts(s));return LT(r,G)?!0:(c&&Mr(c,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Wa(s),gn(U_(s))),!1)}if(t)return!0;var ce=uI(r,function(Je){var ar=po(wn(Je));return FR(ar,s,i)?ar:void 0});if(!ce){var we=void 0;if(L&32||!(we=aM(r))||!we.type)return c&&Mr(c,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Wa(s),gn(U_(s)||o)),!1;var Ue=Da(we.type);ce=(Ue.flags&262144?Nl(Ue):Ue).target}return L&32?!0:(o.flags&262144&&(o=o.isThisType?Nl(o):l(o)),!o||!Cp(o,ce)?(c&&Mr(c,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Wa(s),gn(ce),gn(o)),!1):!0)}function aM(r){var t=e.getThisContainer(r,!1);return t&&e.isFunctionLike(t)?e.getThisParameter(t):void 0}function nC(r){return!!ph(r,function(t){return!(t.flags&8192)})}function _g(r){return iu(ui(r),r)}function mb(r){return!!((Er?lc(r):r.flags)&98304)}function R1(r){return mb(r)?Td(r):r}function iM(r,t){Mr(r,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 oM(r,t){Mr(r,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 aC(r,t,i){if(Er&&r.flags&2)return Mr(t,e.Diagnostics.Object_is_of_type_unknown),dr;var o=(Er?lc(r):r.flags)&98304;if(o){i(t,o);var s=Td(r);return s.flags&229376?dr:s}return r}function iu(r,t){return aC(r,t,iM)}function iC(r,t){var i=iu(r,t);return i.flags&16384&&Mr(t,e.Diagnostics.Object_is_possibly_undefined),i}function oC(r,t){return r.flags&32?sM(r,t):P1(r,r.expression,_g(r.expression),r.name,t)}function sM(r,t){var i=ui(r.expression),o=nv(i,r.expression);return Hy(P1(r,r.expression,iu(o,r.expression),r.name,t),r,o!==i)}function sC(r,t){var i=e.isPartOfTypeQuery(r)&&e.isThisIdentifier(r.left)?iu(lb(r.left),r.left):_g(r.left);return P1(r,r.left,i,r.right,t)}function lC(r){for(;r.parent.kind===211;)r=r.parent;return e.isCallOrNewExpression(r.parent)&&r.parent.expression===r}function gb(r,t){for(var i=e.getContainingClass(t);i;i=e.getContainingClass(i)){var o=i.symbol,s=e.getSymbolNameForPrivateIdentifier(o,r),c=o.members&&o.members.get(s)||o.exports&&o.exports.get(s);if(c)return c}}function lM(r){return e.getContainingClass(r)?e.isExpressionNode(r)?vb(r)?!1:sn(r,e.Diagnostics.Cannot_find_name_0,e.idText(r)):sn(r,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression):sn(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies)}function cM(r){lM(r);var t=vb(r);return t&&xh(t,void 0,!1),Ze}function vb(r){if(!!e.isExpressionNode(r)){var t=Zn(r);return t.resolvedSymbol===void 0&&(t.resolvedSymbol=gb(r.escapedText,r)),t.resolvedSymbol}}function w1(r,t){return Ii(r,t.escapedName)}function uM(r,t,i){var o,s=Yi(r);s&&e.forEach(s,function(Je){var ar=Je.valueDeclaration;if(ar&&e.isNamedDeclaration(ar)&&e.isPrivateIdentifier(ar.name)&&ar.name.escapedText===t.escapedText)return o=Je,!0});var c=Xl(t);if(o){var L=e.Debug.checkDefined(o.valueDeclaration),G=e.Debug.checkDefined(e.getContainingClass(L));if(i!=null&&i.valueDeclaration){var ce=i.valueDeclaration,we=e.getContainingClass(ce);if(e.Debug.assert(!!we),e.findAncestor(we,function(Je){return G===Je})){var Ue=Mr(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,c,gn(r));return e.addRelatedInfo(Ue,e.createDiagnosticForNode(ce,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,c),e.createDiagnosticForNode(L,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,c)),!0}}return Mr(t,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,c,Xl(G.name||f)),!0}return!1}function cC(r,t){return(i_(t)||e.isThisProperty(r)&&xe(t))&&e.getThisContainer(r,!0)===Tr(t)}function P1(r,t,i,o,s){var c=Zn(t).resolvedSymbol,L=e.getAssignmentTargetKind(r),G=wi(L!==0||lC(r)?wl(i):i),ce=Na(G)||G===St,we;if(e.isPrivateIdentifier(o)){De<99&&(L!==0&&nl(r,1048576),L!==1&&nl(r,524288));var Ue=gb(o.escapedText,o);if(L&&Ue&&Ue.valueDeclaration&&e.isMethodDeclaration(Ue.valueDeclaration)&&sn(o,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(o)),(Ue==null?void 0:Ue.valueDeclaration)&&e.getEmitScriptTarget(Xe)===99&&!Ye){var Je=e.getContainingClass(Ue.valueDeclaration),ar=e.findAncestor(r,function(Nn){return Nn===Je?"quit":!!(e.isPropertyDeclaration(Nn.parent)&&e.hasStaticModifier(Nn.parent)&&Nn.parent.initializer===Nn&&Nn.parent.parent===Je)});if(ar){var _r=wn(ar.parent);e.Debug.assert(_r,"Initializer without declaration symbol");var Br=Mr(r,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(Ue));e.addRelatedInfo(Br,e.createDiagnosticForNode(ar.parent,e.Diagnostics.Initializer_for_property_0,e.symbolName(_r)))}}if(ce){if(Ue)return Ua(G)?dr:G;if(!e.getContainingClass(o))return sn(o,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ze}if(we=Ue?w1(i,Ue):void 0,!we&&uM(i,o,Ue))return dr;var Zr=we&&we.flags&65536&&!(we.flags&32768);Zr&&L!==1&&Mr(r,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(ce)return e.isIdentifier(t)&&c&&sb(c,r),Ua(G)?dr:G;we=Ii(G,o.escapedText)}e.isIdentifier(t)&&c&&(Xe.isolatedModules||!(we&&Lv(we))||e.shouldPreserveConstEnums(Xe)&&kA(r))&&sb(c,r);var Et;if(we){we.declarations&&uv(we)&134217728&&d0(r,we)&&kc(o,we.declarations,o.escapedText),fM(we,r,o),xh(we,r,gC(t,c)),Zn(r).resolvedSymbol=we;var Vt=e.isWriteAccess(r);if(O1(r,t.kind===106,Vt,G,we),tx(r,we,L))return Mr(o,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(o)),dr;Et=cC(r,we)?xr:Vt?Fv(we):An(we)}else{var Tt=!e.isPrivateIdentifier(o)&&(L===0||!M_(i)||lh(i))?ip(G,o.escapedText):void 0;if(!(Tt&&Tt.type)){var At=M1(r,i.symbol,!0);return!At&&Yg(i)?Ze:i.symbol===pr?(pr.exports.has(o.escapedText)&&pr.exports.get(o.escapedText).flags&418?Mr(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(o.escapedText),gn(i)):Ke&&Mr(o,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,gn(i)),Ze):(o.escapedText&&!bp(r)&&dC(o,lh(i)?G:i,At),dr)}Tt.isReadonly&&(e.isAssignmentTarget(r)||e.isDeleteTarget(r))&&Mr(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,gn(G)),Et=Xe.noUncheckedIndexedAccess&&!e.isAssignmentTarget(r)?ma([Tt.type,kr]):Tt.type,Xe.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(r)&&Mr(o,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(o.escapedText))}return uC(r,we,Et,o,s)}function M1(r,t,i){var o=e.getSourceFileOfNode(r);if(o&&Xe.checkJs===void 0&&o.checkJsDirective===void 0&&(o.scriptKind===1||o.scriptKind===2)){var s=e.forEach(t==null?void 0:t.declarations,e.getSourceFileOfNode);return!(o!==s&&!!s&&Oc(s))&&!(i&&t&&t.flags&32)&&!(!!r&&i&&e.isPropertyAccessExpression(r)&&r.expression.kind===108)}return!1}function uC(r,t,i,o,s){var c=e.getAssignmentTargetKind(r);if(c===1)return gm(i,!!(t&&t.flags&16777216));if(t&&!(t.flags&98311)&&!(t.flags&8192&&i.flags&1048576)&&!jb(t.declarations))return i;if(i===xr)return Xt(r,t);i=d1(i,r,s);var L=!1;if(Er&&Or&&e.isAccessExpression(r)&&r.expression.kind===108){var G=t&&t.valueDeclaration;if(G&&$x(G)&&!e.isStatic(G)){var ce=lv(r);ce.kind===170&&ce.parent===G.parent&&!(G.flags&8388608)&&(L=!0)}}else Er&&t&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(t.valueDeclaration)&&lv(r)===lv(t.valueDeclaration)&&(L=!0);var we=b_(r,i,L?Jf(i):i);return L&&!(lc(i)&32768)&&lc(we)&32768?(Mr(o,e.Diagnostics.Property_0_is_used_before_being_assigned,Wa(t)),i):c?Du(we):we}function fM(r,t,i){var o=r.valueDeclaration;if(!(!o||e.getSourceFileOfNode(t).isDeclarationFile)){var s,c=e.idText(i);fC(t)&&!Ck(o)&&!(e.isAccessExpression(t)&&e.isAccessExpression(t.expression))&&!Ou(o,i)&&(Xe.useDefineForClassFields||!dM(r))?s=Mr(i,e.Diagnostics.Property_0_is_used_before_its_initialization,c):o.kind===256&&t.parent.kind!==177&&!(o.flags&8388608)&&!Ou(o,i)&&(s=Mr(i,e.Diagnostics.Class_0_used_before_its_declaration,c)),s&&e.addRelatedInfo(s,e.createDiagnosticForNode(o,e.Diagnostics._0_is_declared_here,c))}}function fC(r){return!!e.findAncestor(r,function(t){switch(t.kind){case 166:return!0;case 294:case 168:case 171:case 172:case 296:case 161:case 232:case 287:case 284:case 285:case 286:case 279:case 227:case 290:return!1;case 213:case 237:return e.isBlock(t.parent)&&e.isClassStaticBlockDeclaration(t.parent.parent)?!0:"quit";default:return e.isExpressionNode(t)?!1:"quit"}})}function dM(r){if(!(r.parent.flags&32))return!1;for(var t=An(r.parent);;){if(t=t.symbol&&pM(t),!t)return!1;var i=Ii(t,r.escapedName);if(i&&i.valueDeclaration)return!0}}function pM(r){var t=xl(r);if(t.length!==0)return To(t)}function dC(r,t,i){var o,s;if(!e.isPrivateIdentifier(r)&&t.flags&1048576&&!(t.flags&131068))for(var c=0,L=t.types;c<L.length;c++){var G=L[c];if(!Ii(G,r.escapedText)&&!ip(G,r.escapedText)){o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(r),gn(G));break}}if(pC(r.escapedText,t)){var ce=e.declarationNameToString(r),we=gn(t);o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,ce,we,we+"."+ce)}else{var Ue=yv(t);if(Ue&&Ii(Ue,r.escapedText))o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(r),gn(t)),s=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_forget_to_use_await);else{var Je=e.declarationNameToString(r),ar=gn(t),_r=gM(Je,t);if(_r!==void 0)o=e.chainDiagnosticMessages(o,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,Je,ar,_r);else{var Br=F1(r,t);if(Br!==void 0){var Zr=e.symbolName(Br),Et=i?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;o=e.chainDiagnosticMessages(o,Et,Je,ar,Zr),s=Br.valueDeclaration&&e.createDiagnosticForNode(Br.valueDeclaration,e.Diagnostics._0_is_declared_here,Zr)}else{var Tt=_M(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;o=e.chainDiagnosticMessages(zm(o,t),Tt,Je,ar)}}}}var At=e.createDiagnosticForNodeFromMessageChain(r,o);s&&e.addRelatedInfo(At,s),$l(!i||o.code!==e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,At)}function _M(r){return Xe.lib&&!Xe.lib.includes("dom")&&Fw(r,function(t){return t.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(e.unescapeLeadingUnderscores(t.symbol.escapedName))})&&cf(r)}function pC(r,t){var i=t.symbol&&Ii(An(t.symbol),r);return i!==void 0&&!!i.valueDeclaration&&e.isStatic(i.valueDeclaration)}function mM(r){for(var t=Xl(r),i=e.getScriptTargetFeatures(),o=e.getOwnKeys(i),s=0,c=o;s<c.length;s++){var L=c[s],G=e.getOwnKeys(i[L]);if(G!==void 0&&e.contains(G,t))return L}}function gM(r,t){var i=wi(t).symbol;if(!!i)for(var o=e.getScriptTargetFeatures(),s=e.getOwnKeys(o),c=0,L=s;c<L.length;c++){var G=L[c],ce=o[G],we=ce[e.symbolName(i)];if(we!==void 0&&e.contains(we,r))return G}}function _C(r,t){return Ch(r,Yi(t),106500)}function F1(r,t){var i=Yi(t);if(typeof r!="string"){var o=r.parent;e.isPropertyAccessExpression(o)&&(i=e.filter(i,function(s){return vC(o,t,s)})),r=e.idText(r)}return Ch(r,i,111551)}function mC(r,t){var i=e.isString(r)?r:e.idText(r),o=Yi(t),s=i==="for"?e.find(o,function(c){return e.symbolName(c)==="htmlFor"}):i==="class"?e.find(o,function(c){return e.symbolName(c)==="className"}):void 0;return s!=null?s:Ch(i,o,111551)}function G1(r,t){var i=F1(r,t);return i&&e.symbolName(i)}function B1(r,t,i){e.Debug.assert(t!==void 0,"outername should always be defined");var o=$f(r,t,i,void 0,t,!1,!1,!0,function(s,c,L){e.Debug.assertEqual(t,c,"name should equal outerName");var G=ks(s,c,L);if(G)return G;var ce;if(s===Fr){var we=e.mapDefined(["string","number","boolean","object","bigint","symbol"],function(Ue){return s.has(Ue.charAt(0).toUpperCase()+Ue.slice(1))?fo(524288,Ue):void 0});ce=we.concat(e.arrayFrom(s.values()))}else ce=e.arrayFrom(s.values());return Ch(e.unescapeLeadingUnderscores(c),ce,L)});return o}function vM(r,t,i){var o=B1(r,t,i);return o&&e.symbolName(o)}function hb(r,t){return t.exports&&Ch(e.idText(r),cd(t),2623475)}function hM(r,t){var i=hb(r,t);return i&&e.symbolName(i)}function yM(r,t,i){function o(L){var G=hd(r,L);if(G){var ce=j_(An(G));return!!ce&&Cu(ce)>=1&&Qi(i,Uc(ce,0))}return!1}var s=e.isAssignmentTarget(t)?"set":"get";if(!!o(s)){var c=e.tryGetPropertyAccessOrIdentifierToString(t.expression);return c===void 0?c=s:c+="."+s,c}}function bM(r,t){var i=t.types.filter(function(o){return!!(o.flags&128)});return e.getSpellingSuggestion(r.value,i,function(o){return o.value})}function Ch(r,t,i){return e.getSpellingSuggestion(r,t,o);function o(s){var c=e.symbolName(s);if(!e.startsWith(c,'"')){if(s.flags&i)return c;if(s.flags&2097152){var L=e_(s);if(L&&L.flags&i)return c}}}}function xh(r,t,i){var o=r&&r.flags&106500&&r.valueDeclaration;if(!!o){var s=e.hasEffectiveModifier(o,8),c=r.valueDeclaration&&e.isNamedDeclaration(r.valueDeclaration)&&e.isPrivateIdentifier(r.valueDeclaration.name);if(!(!s&&!c)&&!(t&&e.isWriteOnlyAccess(t)&&!(r.flags&65536))){if(i){var L=e.findAncestor(t,e.isFunctionLikeDeclaration);if(L&&L.symbol===r)return}(e.getCheckFlags(r)&1?Ja(r).target:r).isReferenced=67108863}}}function gC(r,t){return r.kind===108||!!t&&e.isEntityNameExpression(r)&&t===Lu(e.getFirstIdentifier(r))}function EM(r,t){switch(r.kind){case 205:return U1(r,r.expression.kind===106,t,wl(ui(r.expression)));case 160:return U1(r,!1,t,wl(ui(r.left)));case 199:return U1(r,!1,t,Da(r))}}function vC(r,t,i){return V1(r,r.kind===205&&r.expression.kind===106,!1,t,i)}function U1(r,t,i,o){if(Na(o))return!0;var s=Ii(o,i);return!!s&&V1(r,t,!1,o,s)}function V1(r,t,i,o,s){if(Na(o))return!0;if(s.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(s.valueDeclaration)){var c=e.getContainingClass(s.valueDeclaration);return!e.isOptionalChain(r)&&!!e.findAncestor(r,function(L){return L===c})}return tC(r,t,i,o,s)}function TM(r){var t=r.initializer;if(t.kind===254){var i=t.declarations[0];if(i&&!e.isBindingPattern(i.name))return wn(i)}else if(t.kind===79)return Lu(t)}function SM(r){return Ms(r).length===1&&!!oc(r,wt)}function DM(r){var t=e.skipParentheses(r);if(t.kind===79){var i=Lu(t);if(i.flags&3)for(var o=r,s=r.parent;s;){if(s.kind===242&&o===s.statement&&TM(s)===i&&SM(tl(s.expression)))return!0;o=s,s=s.parent}}return!1}function LM(r,t){return r.flags&32?AM(r,t):hC(r,_g(r.expression),t)}function AM(r,t){var i=ui(r.expression),o=nv(i,r.expression);return Hy(hC(r,iu(o,r.expression),t),r,o!==i)}function hC(r,t,i){var o=e.getAssignmentTargetKind(r)!==0||lC(r)?wl(t):t,s=r.argumentExpression,c=ui(s);if(Ua(o)||o===St)return o;if(eT(o)&&!e.isStringLiteralLike(s))return Mr(s,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),dr;var L=DM(s)?wt:c,G=e.isAssignmentTarget(r)?4|(M_(o)&&!lh(o)?2:0):32,ce=cp(o,L,G,r)||dr;return Ex(uC(r,Zn(r).resolvedSymbol,ce,s,i),r)}function yC(r){return e.isCallOrNewExpression(r)||e.isTaggedTemplateExpression(r)||e.isJsxOpeningLikeElement(r)}function Tm(r){return yC(r)&&e.forEach(r.typeArguments,Wi),r.kind===209?ui(r.template):e.isJsxOpeningLikeElement(r)?ui(r.attributes):r.kind!==164&&e.forEach(r.arguments,function(t){ui(t)}),No}function Au(r){return Tm(r),lo}function CM(r,t,i){var o,s,c=0,L,G=-1,ce;e.Debug.assert(!t.length);for(var we=0,Ue=r;we<Ue.length;we++){var Je=Ue[we],ar=Je.declaration&&wn(Je.declaration),_r=Je.declaration&&Je.declaration.parent;!s||ar===s?o&&_r===o?L=L+1:(o=_r,L=c):(L=c=t.length,o=_r),s=ar,X(Je)?(G++,ce=G,c++):ce=L,t.splice(ce,0,i?uy(Je,i):Je)}}function yb(r){return!!r&&(r.kind===224||r.kind===231&&r.isSpread)}function bb(r){return e.findIndex(r,yb)}function bC(r){return!!(r.flags&16384)}function xM(r){return!!(r.flags&49155)}function Eb(r,t,i,o){o===void 0&&(o=!1);var s,c=!1,L=Tl(i),G=Cu(i);if(r.kind===209)if(s=t.length,r.template.kind===222){var ce=e.last(r.template.templateSpans);c=e.nodeIsMissing(ce.literal)||!!ce.literal.isUnterminated}else{var we=r.template;e.Debug.assert(we.kind===14),c=!!we.isUnterminated}else if(r.kind===164)s=IC(r,i);else if(e.isJsxOpeningLikeElement(r)){if(c=r.attributes.end===r.end,c)return!0;s=G===0?t.length:1,L=t.length===0?L:1,G=Math.min(G,1)}else if(r.arguments){s=o?t.length+1:t.length,c=r.arguments.end===r.end;var Ue=bb(t);if(Ue>=0)return Ue>=Cu(i)&&(xu(i)||Ue<Tl(i))}else return e.Debug.assert(r.kind===208),Cu(i)===0;if(!xu(i)&&s>L)return!1;if(c||s>=G)return!0;for(var Je=s;Je<G;Je++){var ar=Uc(i,Je);if(rl(ar,e.isInJSFile(r)&&!Er?xM:bC).flags&131072)return!1}return!0}function EC(r,t){var i=e.length(r.typeParameters),o=lf(r.typeParameters);return!e.some(t)||t.length>=o&&t.length<=i}function j_(r){return fv(r,0,!1)}function TC(r){return fv(r,0,!1)||fv(r,1,!1)}function fv(r,t,i){if(r.flags&524288){var o=Sc(r);if(i||o.properties.length===0&&o.indexInfos.length===0){if(t===0&&o.callSignatures.length===1&&o.constructSignatures.length===0)return o.callSignatures[0];if(t===1&&o.constructSignatures.length===1&&o.callSignatures.length===0)return o.constructSignatures[0]}}}function SC(r,t,i,o){var s=av(r.typeParameters,r,0,o),c=pv(t),L=i&&(c&&c.flags&262144?i.nonFixingMapper:i.mapper),G=L?pm(t,L):t;return X0(G,r,function(ce,we){uf(s.inferences,ce,we)}),i||Y0(t,r,function(ce,we){uf(s.inferences,ce,we,128)}),ah(r,o1(s),e.isInJSFile(t.declaration))}function IM(r,t,i,o){var s=db(t,r),c=Dm(r.attributes,s,o,i);return uf(o.inferences,c,s),o1(o)}function DC(r){if(!r)return Wn;var t=ui(r);return e.isOptionalChainRoot(r.parent)?Td(t):e.isOptionalChain(r.parent)?K0(t):t}function W1(r,t,i,o,s){if(e.isJsxOpeningLikeElement(r))return IM(r,t,o,s);if(r.kind!==164){var c=Ac(r,e.every(t.typeParameters,function(di){return!!Bn(di)})?8:0);if(c){var L=cv(r),G=$0(aw(L,1)),ce=oi(c,G),we=j_(ce),Ue=we&&we.typeParameters?Zm(QE(we,we.typeParameters)):ce,Je=_o(t);uf(s.inferences,Ue,Je,128);var ar=av(t.typeParameters,t,s.flags),_r=oi(c,L&&L.returnMapper);uf(ar.inferences,_r,Je),s.returnMapper=e.some(ar.inferences,H_)?$0(iw(ar)):void 0}}var Br=_v(t),Zr=Br?Math.min(Tl(t)-1,i.length):i.length;if(Br&&Br.flags&262144){var Et=e.find(s.inferences,function(di){return di.typeParameter===Br});Et&&(Et.impliedArity=e.findIndex(i,yb,Zr)<0?i.length-Zr:void 0)}var Tt=d_(t);if(Tt){var At=xC(r);uf(s.inferences,DC(At),Tt)}for(var Vt=0;Vt<Zr;Vt++){var Nn=i[Vt];if(Nn.kind!==226){var on=Uc(t,Vt),ca=Dm(Nn,on,s,o);uf(s.inferences,ca,on)}}if(Br){var la=j1(i,Zr,i.length,Br,s,o);uf(s.inferences,la,Br)}return o1(s)}function LC(r){return r.flags&1048576?ds(r,LC):r.flags&1||Vy(l(r)||r)?r:ki(r)?Tu(vo(r),r.target.elementFlags,!1,r.target.labeledElementDeclarations):Tu([r],[8])}function j1(r,t,i,o,s,c){if(t>=i-1){var L=r[i-1];if(yb(L))return LC(L.kind===231?L.type:Dm(L.expression,o,s,c))}for(var G=[],ce=[],we=[],Ue=t;Ue<i;Ue++){var L=r[Ue];if(yb(L)){var Je=L.kind===231?L.type:ui(L.expression);_p(Je)?(G.push(Je),ce.push(8)):(G.push(Ld(33,Je,kr,L.kind===224?L.expression:L)),ce.push(4))}else{var ar=Hl(o,Wf(Ue-t),256),_r=Dm(L,ar,s,c),Br=Jo(ar,406978556);G.push(Br?kl(_r):Mp(_r)),ce.push(1)}L.kind===231&&L.tupleNameSource&&we.push(L.tupleNameSource)}return Tu(G,ce,!1,e.length(we)===e.length(G)?we:void 0)}function AC(r,t,i,o){for(var s=e.isInJSFile(r.declaration),c=r.typeParameters,L=P_(e.map(t,Da),c,lf(c),s),G,ce=0;ce<t.length;ce++){e.Debug.assert(c[ce]!==void 0,"Should not call checkTypeArguments with too many type arguments");var we=Nl(c[ce]);if(we){var Ue=i&&o?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,Je=o||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;G||(G=Ol(c,L));var ar=L[ce];if(!Rl(ar,Il(oi(we,G),ar),i?t[ce]:void 0,Je,Ue))return}}return L}function CC(r){if(pg(r.tagName))return 2;var t=wi(ui(r.tagName));return e.length(Ni(t,1))?0:e.length(Ni(t,0))?1:2}function NM(r,t,i,o,s,c,L){var G=db(t,r),ce=Dm(r.attributes,G,void 0,o);return we()&&I0(ce,G,i,s?r.tagName:void 0,r.attributes,void 0,c,L);function we(){var Ue;if(x1(r))return!0;var Je=e.isJsxOpeningElement(r)||e.isJsxSelfClosingElement(r)&&!pg(r.tagName)?ui(r.tagName):void 0;if(!Je)return!0;var ar=Ni(Je,0);if(!e.length(ar))return!0;var _r=yI(r);if(!_r)return!0;var Br=rs(_r,111551,!0,!1,r);if(!Br)return!0;var Zr=An(Br),Et=Ni(Zr,0);if(!e.length(Et))return!0;for(var Tt=!1,At=0,Vt=0,Nn=Et;Vt<Nn.length;Vt++){var on=Nn[Vt],ca=Uc(on,0),la=Ni(ca,0);if(!!e.length(la))for(var di=0,Aa=la;di<Aa.length;di++){var Li=Aa[di];if(Tt=!0,xu(Li))return!0;var Bi=Tl(Li);Bi>At&&(At=Bi)}}if(!Tt)return!0;for(var Ai=1/0,xo=0,Wt=ar;xo<Wt.length;xo++){var Ft=Wt[xo],_n=Cu(Ft);_n<Ai&&(Ai=_n)}if(Ai<=At)return!0;if(s){var Ca=e.createDiagnosticForNode(r.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(r.tagName),Ai,e.entityNameToString(_r),At),Yn=(Ue=Vc(r.tagName))===null||Ue===void 0?void 0:Ue.valueDeclaration;Yn&&e.addRelatedInfo(Ca,e.createDiagnosticForNode(Yn,e.Diagnostics._0_is_declared_here,e.entityNameToString(r.tagName))),L&&L.skipLogging&&(L.errors||(L.errors=[])).push(Ca),L.skipLogging||ua.add(Ca)}return!1}}function Ih(r,t,i,o,s,c,L){var G={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(r))return NM(r,i,o,s,c,L,G)?void 0:(e.Debug.assert(!c||!!G.errors,"jsx should have errors when reporting errors"),G.errors||e.emptyArray);var ce=d_(i);if(ce&&ce!==Wn&&r.kind!==208){var we=xC(r),Ue=DC(we),Je=c?we||r:void 0,ar=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!au(Ue,ce,o,Je,ar,L,G))return e.Debug.assert(!c||!!G.errors,"this parameter should have errors when reporting errors"),G.errors||e.emptyArray}for(var _r=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,Br=_v(i),Zr=Br?Math.min(Tl(i)-1,t.length):t.length,Et=0;Et<Zr;Et++){var Tt=t[Et];if(Tt.kind!==226){var At=Uc(i,Et),Vt=Dm(Tt,At,void 0,s),Nn=s&4?cg(Vt):Vt;if(!I0(Nn,At,o,c?Tt:void 0,Tt,_r,L,G))return e.Debug.assert(!c||!!G.errors,"parameter should have errors when reporting errors"),la(Tt,Nn,At),G.errors||e.emptyArray}}if(Br){var on=j1(t,Zr,t.length,Br,void 0,s),ca=t.length-Zr,Je=c?ca===0?r:ca===1?t[Zr]:e.setTextRangePosEnd(Wp(r,on),t[Zr].pos,t[t.length-1].end):void 0;if(!au(on,Br,o,Je,_r,void 0,G))return e.Debug.assert(!c||!!G.errors,"rest parameter should have errors when reporting errors"),la(Je,on,Br),G.errors||e.emptyArray}return;function la(di,Aa,Li){if(di&&c&&G.errors&&G.errors.length){if(hv(Li))return;var Bi=hv(Aa);Bi&&Hf(Bi,Li,o)&&e.addRelatedInfo(G.errors[0],e.createDiagnosticForNode(di,e.Diagnostics.Did_you_forget_to_use_await))}}}function xC(r){var t=r.kind===207?r.expression:r.kind===209?r.tag:void 0;if(t){var i=e.skipOuterExpressions(t);if(e.isAccessExpression(i))return i.expression}}function Wp(r,t,i,o){var s=e.parseNodeFactory.createSyntheticExpression(t,i,o);return e.setTextRange(s,r),e.setParent(s,r),s}function H1(r){if(r.kind===209){var t=r.template,i=[Wp(t,jk())];return t.kind===222&&e.forEach(t.templateSpans,function(ce){i.push(ce.expression)}),i}if(r.kind===164)return kM(r);if(e.isJsxOpeningLikeElement(r))return r.attributes.properties.length>0||e.isJsxOpeningElement(r)&&r.parent.children.length>0?[r.attributes]:e.emptyArray;var o=r.arguments||e.emptyArray,s=bb(o);if(s>=0){for(var c=o.slice(0,s),L=function(ce){var we=o[ce],Ue=we.kind===224&&(oo?ui(we.expression):Ss(we.expression));Ue&&ki(Ue)?e.forEach(vo(Ue),function(Je,ar){var _r,Br=Ue.target.elementFlags[ar],Zr=Wp(we,Br&4?zs(Je):Je,!!(Br&12),(_r=Ue.target.labeledElementDeclarations)===null||_r===void 0?void 0:_r[ar]);c.push(Zr)}):c.push(we)},G=s;G<o.length;G++)L(G);return c}return o}function kM(r){var t=r.parent,i=r.expression;switch(t.kind){case 256:case 225:return[Wp(i,An(wn(t)))];case 163:var o=t.parent;return[Wp(i,t.parent.kind===170?An(wn(o)):dr),Wp(i,Ze),Wp(i,wt)];case 166:case 168:case 171:case 172:var s=t.kind!==166&&De!==0;return[Wp(i,y8(t)),Wp(i,b8(t)),Wp(i,s?VD(jp(t)):Ze)]}return e.Debug.fail()}function IC(r,t){switch(r.parent.kind){case 256:case 225:return 1;case 166:return 2;case 168:case 171:case 172:return De===0||t.parameters.length<=2?2:3;case 163:return 3;default:return e.Debug.fail()}}function NC(r,t){var i,o,s=e.getSourceFileOfNode(r);if(e.isPropertyAccessExpression(r.expression)){var c=e.getErrorSpanForNode(s,r.expression.name);i=c.start,o=t?c.length:r.end-i}else{var L=e.getErrorSpanForNode(s,r.expression);i=L.start,o=t?L.length:r.end-i}return{start:i,length:o,sourceFile:s}}function Tb(r,t,i,o,s,c){if(e.isCallExpression(r)){var L=NC(r),G=L.sourceFile,ce=L.start,we=L.length;return e.createFileDiagnostic(G,ce,we,t,i,o,s,c)}else return e.createDiagnosticForNode(r,t,i,o,s,c)}function OM(r){if(!e.isCallExpression(r)||!e.isIdentifier(r.expression))return!1;var t=Uo(r.expression,r.expression.escapedText,111551,void 0,void 0,!1),i=t==null?void 0:t.valueDeclaration;if(!i||!e.isParameter(i)||!e.isFunctionExpressionOrArrowFunction(i.parent)||!e.isNewExpression(i.parent.parent)||!e.isIdentifier(i.parent.parent.expression))return!1;var o=t0(!1);if(!o)return!1;var s=Vc(i.parent.parent.expression,!0);return s===o}function kC(r,t,i){var o,s=bb(i);if(s>-1)return e.createDiagnosticForNode(i[s],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var c=Number.POSITIVE_INFINITY,L=Number.NEGATIVE_INFINITY,G=Number.NEGATIVE_INFINITY,ce=Number.POSITIVE_INFINITY,we,Ue=0,Je=t;Ue<Je.length;Ue++){var ar=Je[Ue],_r=Cu(ar),Br=Tl(ar);_r<c&&(c=_r,we=ar),L=Math.max(L,Br),_r<i.length&&_r>G&&(G=_r),i.length<Br&&Br<ce&&(ce=Br)}var Zr=e.some(t,xu),Et=Zr?c:c<L?c+"-"+L:c,Tt=Zr?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:Et===1&&i.length===0&&OM(r)?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(c<i.length&&i.length<L)return Tb(r,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,i.length,G,ce);if(i.length<c){var At=Tb(r,Tt,Et,i.length),Vt=(o=we==null?void 0:we.declaration)===null||o===void 0?void 0:o.parameters[we.thisParameter?i.length+1:i.length];if(Vt){var Nn=e.createDiagnosticForNode(Vt,e.isBindingPattern(Vt.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(Vt)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,Vt.name?e.isBindingPattern(Vt.name)?void 0:e.idText(e.getFirstIdentifier(Vt.name)):i.length);return e.addRelatedInfo(At,Nn)}return At}else{var on=e.factory.createNodeArray(i.slice(L)),ca=e.first(on).pos,la=e.last(on).end;return la===ca&&la++,e.setTextRangePosEnd(on,ca,la),e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),on,Tt,Et,i.length)}}function RM(r,t,i){var o=i.length;if(t.length===1){var s=t[0],c=lf(s.typeParameters),L=e.length(s.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),i,e.Diagnostics.Expected_0_type_arguments_but_got_1,c<L?c+"-"+L:c,o)}for(var G=-1/0,ce=1/0,we=0,Ue=t;we<Ue.length;we++){var s=Ue[we],Je=lf(s.typeParameters),L=e.length(s.typeParameters);Je>o?ce=Math.min(ce,Je):L<o&&(G=Math.max(G,L))}return G!==-1/0&&ce!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),i,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,o,G,ce):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),i,e.Diagnostics.Expected_0_type_arguments_but_got_1,G===-1/0?ce:G,o)}function mg(r,t,i,o,s,c){var L=r.kind===209,G=r.kind===164,ce=e.isJsxOpeningLikeElement(r),we=!i&&Se,Ue;G||(Ue=r.typeArguments,(L||ce||r.expression.kind!==106)&&e.forEach(Ue,Wi));var Je=i||[];if(CM(t,Je,s),!Je.length)return we&&ua.add(Tb(r,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Au(r);var ar=H1(r),_r=Je.length===1&&!Je[0].typeParameters,Br=!G&&!_r&&e.some(ar,nu)?4:0,Zr,Et,Tt,At,Vt=!!(o&16)&&r.kind===207&&r.arguments.hasTrailingComma;if(Je.length>1&&(At=En(Je,ha,_r,Vt)),At||(At=En(Je,Ta,_r,Vt)),At)return At;if(we)if(Zr)if(Zr.length===1||Zr.length>3){var Nn=Zr[Zr.length-1],on;Zr.length>3&&(on=e.chainDiagnosticMessages(on,e.Diagnostics.The_last_overload_gave_the_following_error),on=e.chainDiagnosticMessages(on,e.Diagnostics.No_overload_matches_this_call));var ca=Ih(r,ar,Nn,Ta,0,!0,function(){return on});if(ca)for(var la=0,di=ca;la<di.length;la++){var Aa=di[la];Nn.declaration&&Zr.length>3&&e.addRelatedInfo(Aa,e.createDiagnosticForNode(Nn.declaration,e.Diagnostics.The_last_overload_is_declared_here)),Vn(Nn,Aa),ua.add(Aa)}else e.Debug.fail("No error for last overload signature")}else{for(var Li=[],Bi=0,Ai=Number.MAX_VALUE,xo=0,Wt=0,Ft=function(Fn){var Xr=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,Wt+1,Je.length,pu(Fn))},it=Ih(r,ar,Fn,Ta,0,!0,Xr);it?(it.length<=Ai&&(Ai=it.length,xo=Wt),Bi=Math.max(Bi,it.length),Li.push(it)):e.Debug.fail("No error for 3 or fewer overload signatures"),Wt++},_n=0,Ca=Zr;_n<Ca.length;_n++){var Yn=Ca[_n];Ft(Yn)}var Ba=Bi>1?Li[xo]:e.flatten(Li);e.Debug.assert(Ba.length>0,"No errors reported for 3 or fewer overload signatures");var Ti=e.chainDiagnosticMessages(e.map(Ba,function(Fn){return typeof Fn.messageText=="string"?Fn:Fn.messageText}),e.Diagnostics.No_overload_matches_this_call),Mi=Gt([],e.flatMap(Ba,function(Fn){return Fn.relatedInformation}),!0),jn=void 0;if(e.every(Ba,function(Fn){return Fn.start===Ba[0].start&&Fn.length===Ba[0].length&&Fn.file===Ba[0].file})){var Fi=Ba[0],jr=Fi.file,Sr=Fi.start,hn=Fi.length;jn={file:jr,start:Sr,length:hn,code:Ti.code,category:Ti.category,messageText:Ti,relatedInformation:Mi}}else jn=e.createDiagnosticForNodeFromMessageChain(r,Ti,Mi);Vn(Zr[0],jn),ua.add(jn)}else if(Et)ua.add(kC(r,[Et],ar));else if(Tt)AC(Tt,r.typeArguments,!0,c);else{var nn=e.filter(t,function(Fn){return EC(Fn,Ue)});nn.length===0?ua.add(RM(r,t,Ue)):G?c&&ua.add(Tb(r,c)):ua.add(kC(r,nn,ar))}return wM(r,Je,ar,!!i);function Vn(Fn,Xr){var it,Mt,Bt=Zr,Yt=Et,mn=Tt,ya=((Mt=(it=Fn.declaration)===null||it===void 0?void 0:it.symbol)===null||Mt===void 0?void 0:Mt.declarations)||e.emptyArray,_a=ya.length>1,qa=_a?e.find(ya,function(ho){return e.isFunctionLikeDeclaration(ho)&&e.nodeIsPresent(ho.body)}):void 0;if(qa){var Vi=bu(qa),Qa=!Vi.typeParameters;En([Vi],Ta,Qa)&&e.addRelatedInfo(Xr,e.createDiagnosticForNode(qa,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Zr=Bt,Et=Yt,Tt=mn}function En(Fn,Xr,it,Mt){if(Mt===void 0&&(Mt=!1),Zr=void 0,Et=void 0,Tt=void 0,it){var Bt=Fn[0];if(e.some(Ue)||!Eb(r,ar,Bt,Mt))return;if(Ih(r,ar,Bt,Xr,0,!1,void 0)){Zr=[Bt];return}return Bt}for(var Yt=0;Yt<Fn.length;Yt++){var Bt=Fn[Yt];if(!(!EC(Bt,Ue)||!Eb(r,ar,Bt,Mt))){var mn=void 0,ya=void 0;if(Bt.typeParameters){var _a=void 0;if(e.some(Ue)){if(_a=AC(Bt,Ue,!1),!_a){Tt=Bt;continue}}else ya=av(Bt.typeParameters,Bt,e.isInJSFile(r)?2:0),_a=W1(r,Bt,ar,Br|8,ya),Br|=ya.flags&4?8:0;if(mn=ah(Bt,_a,e.isInJSFile(Bt.declaration),ya&&ya.inferredTypeParameters),_v(Bt)&&!Eb(r,ar,mn,Mt)){Et=mn;continue}}else mn=Bt;if(Ih(r,ar,mn,Xr,Br,!1,void 0)){(Zr||(Zr=[])).push(mn);continue}if(Br){if(Br=0,ya){var _a=W1(r,Bt,ar,Br,ya);if(mn=ah(Bt,_a,e.isInJSFile(Bt.declaration),ya&&ya.inferredTypeParameters),_v(Bt)&&!Eb(r,ar,mn,Mt)){Et=mn;continue}}if(Ih(r,ar,mn,Xr,Br,!1,void 0)){(Zr||(Zr=[])).push(mn);continue}}return Fn[Yt]=mn,mn}}}}function wM(r,t,i,o){return e.Debug.assert(t.length>0),Dv(r),o||t.length===1||t.some(function(s){return!!s.typeParameters})?FM(r,t,i):PM(t)}function PM(r){var t=e.mapDefined(r,function(ar){return ar.thisParameter}),i;t.length&&(i=OC(t,t.map(dv)));for(var o=e.minAndMax(r,MM),s=o.min,c=o.max,L=[],G=function(ar){var _r=e.mapDefined(r,function(Br){return ue(Br)?ar<Br.parameters.length-1?Br.parameters[ar]:e.last(Br.parameters):ar<Br.parameters.length?Br.parameters[ar]:void 0});e.Debug.assert(_r.length!==0),L.push(OC(_r,e.mapDefined(r,function(Br){return T_(Br,ar)})))},ce=0;ce<c;ce++)G(ce);var we=e.mapDefined(r,function(ar){return ue(ar)?e.last(ar.parameters):void 0}),Ue=0;if(we.length!==0){var Je=zs(ma(e.mapDefined(r,mD),2));L.push(RC(we,Je)),Ue|=1}return r.some(X)&&(Ue|=2),hu(r[0].declaration,void 0,i,L,To(r.map(_o)),void 0,s,Ue)}function MM(r){var t=r.parameters.length;return ue(r)?t-1:t}function OC(r,t){return RC(r,ma(t,2))}function RC(r,t){return V_(e.first(r),t)}function FM(r,t,i){var o=UM(t,Ar===void 0?i.length:Ar),s=t[o],c=s.typeParameters;if(!c)return s;var L=yC(r)?r.typeArguments:void 0,G=L?Sy(s,GM(L,c,e.isInJSFile(r))):BM(r,c,s,i);return t[o]=G,G}function GM(r,t,i){for(var o=r.map(jp);o.length>t.length;)o.pop();for(;o.length<t.length;)o.push(Nl(t[o.length])||i1(i));return o}function BM(r,t,i,o){var s=av(t,i,e.isInJSFile(r)?2:0),c=W1(r,i,o,12,s);return Sy(i,c)}function UM(r,t){for(var i=-1,o=-1,s=0;s<r.length;s++){var c=r[s],L=Tl(c);if(xu(c)||L>=t)return s;L>o&&(o=L,i=s)}return i}function VM(r,t,i){if(r.expression.kind===106){var o=g1(r.expression);if(Na(o)){for(var s=0,c=r.arguments;s<c.length;s++){var L=c[s];ui(L)}return No}if(!Ua(o)){var G=e.getEffectiveBaseTypeNode(e.getContainingClass(r));if(G){var ce=Vm(o,G.typeArguments,G);return mg(r,ce,t,i,0)}}return Tm(r)}var we,Ue=ui(r.expression);if(e.isCallChain(r)){var Je=nv(Ue,r.expression);we=Je===Ue?0:e.isOutermostOptionalChain(r)?16:8,Ue=Je}else we=0;if(Ue=aC(Ue,r.expression,oM),Ue===St)return Ha;var ar=wi(Ue);if(Ua(ar))return Au(r);var _r=Ni(ar,0),Br=Ni(ar,1).length;if(Sb(Ue,ar,_r.length,Br))return!Ua(Ue)&&r.typeArguments&&Mr(r,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Tm(r);if(!_r.length){if(Br)Mr(r,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,gn(Ue));else{var Zr=void 0;if(r.arguments.length===1){var Et=e.getSourceFileOfNode(r).text;e.isLineBreak(Et.charCodeAt(e.skipTrivia(Et,r.expression.end,!0)-1))&&(Zr=e.createDiagnosticForNode(r.expression,e.Diagnostics.Are_you_missing_a_semicolon))}K1(r.expression,ar,0,Zr)}return Au(r)}return i&8&&!r.typeArguments&&_r.some(WM)?(fx(r,i),Lo):_r.some(function(Tt){return e.isInJSFile(Tt.declaration)&&!!e.getJSDocClassTag(Tt.declaration)})?(Mr(r,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,gn(Ue)),Au(r)):mg(r,_r,t,i,we)}function WM(r){return!!(r.typeParameters&&IT(_o(r)))}function Sb(r,t,i,o){return Na(r)||Na(t)&&!!(r.flags&262144)||!i&&!o&&!(t.flags&1048576)&&!(Eo(t).flags&131072)&&Qi(r,Oe)}function jM(r,t,i){if(r.arguments&&De<1){var o=bb(r.arguments);o>=0&&Mr(r.arguments[o],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var s=_g(r.expression);if(s===St)return Ha;if(s=wi(s),Ua(s))return Au(r);if(Na(s))return r.typeArguments&&Mr(r,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Tm(r);var c=Ni(s,1);if(c.length){if(!HM(r,c[0]))return Au(r);if(c.some(function(we){return we.flags&4}))return Mr(r,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Au(r);var L=s.symbol&&e.getClassLikeDeclarationOfSymbol(s.symbol);return L&&e.hasSyntacticModifier(L,128)?(Mr(r,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Au(r)):mg(r,c,t,i,0)}var G=Ni(s,0);if(G.length){var ce=mg(r,G,t,i,0);return Ke||(ce.declaration&&!ou(ce.declaration)&&_o(ce)!==Wn&&Mr(r,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),d_(ce)===Wn&&Mr(r,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),ce}return K1(r.expression,s,1),Au(r)}function J1(r,t){var i=xl(t);if(!e.length(i))return!1;var o=i[0];if(o.flags&2097152){for(var s=o.types,c=my(s),L=0,G=0,ce=o.types;G<ce.length;G++){var we=ce[G];if(!c[L]&&e.getObjectFlags(we)&3&&(we.symbol===r||J1(r,we)))return!0;L++}return!1}return o.symbol===r?!0:J1(r,o)}function HM(r,t){if(!t||!t.declaration)return!0;var i=t.declaration,o=e.getSelectedEffectiveModifierFlags(i,24);if(!o||i.kind!==170)return!0;var s=e.getClassLikeDeclarationOfSymbol(i.parent.symbol),c=po(i.parent.symbol);if(!LT(r,s)){var L=e.getContainingClass(r);if(L&&o&16){var G=jp(L);if(J1(i.parent.symbol,G))return!0}return o&8&&Mr(r,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,gn(c)),o&16&&Mr(r,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,gn(c)),!1}return!0}function wC(r,t,i){var o,s=i===0,c=J_(t),L=c&&Ni(c,i).length>0;if(t.flags&1048576){for(var G=t.types,ce=!1,we=0,Ue=G;we<Ue.length;we++){var Je=Ue[we],ar=Ni(Je,i);if(ar.length!==0){if(ce=!0,o)break}else if(o||(o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,gn(Je)),o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,gn(t))),ce)break}ce||(o=e.chainDiagnosticMessages(void 0,s?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,gn(t))),o||(o=e.chainDiagnosticMessages(o,s?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,gn(t)))}else o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,gn(t));var _r=s?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(r.parent)&&r.parent.arguments.length===0){var Br=Zn(r).resolvedSymbol;Br&&Br.flags&32768&&(_r=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(o,_r),relatedMessage:L?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function K1(r,t,i,o){var s=wC(r,t,i),c=s.messageChain,L=s.relatedMessage,G=e.createDiagnosticForNodeFromMessageChain(r,c);if(L&&e.addRelatedInfo(G,e.createDiagnosticForNode(r,L)),e.isCallExpression(r.parent)){var ce=NC(r.parent,!0),we=ce.start,Ue=ce.length;G.start=we,G.length=Ue}ua.add(G),PC(t,i,o?e.addRelatedInfo(G,o):G)}function PC(r,t,i){if(!!r.symbol){var o=Ja(r.symbol).originatingImport;if(o&&!e.isImportCall(o)){var s=Ni(An(Ja(r.symbol).target),t);if(!s||!s.length)return;e.addRelatedInfo(i,e.createDiagnosticForNode(o,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 JM(r,t,i){var o=ui(r.tag),s=wi(o);if(Ua(s))return Au(r);var c=Ni(s,0),L=Ni(s,1).length;if(Sb(o,s,c.length,L))return Tm(r);if(!c.length){if(e.isArrayLiteralExpression(r.parent)){var G=e.createDiagnosticForNode(r.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 ua.add(G),Au(r)}return K1(r.tag,s,0),Au(r)}return mg(r,c,t,i,0)}function MC(r){switch(r.parent.kind){case 256:case 225:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 163:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 166:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 168:case 171:case 172:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function KM(r,t,i){var o=ui(r.expression),s=wi(o);if(Ua(s))return Au(r);var c=Ni(s,0),L=Ni(s,1).length;if(Sb(o,s,c.length,L))return Tm(r);if(qM(r,c)){var G=e.getTextOfNode(r.expression,!1);return Mr(r,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,G),Au(r)}var ce=MC(r);if(!c.length){var we=wC(r.expression,s,0),Ue=e.chainDiagnosticMessages(we.messageChain,ce),Je=e.createDiagnosticForNodeFromMessageChain(r.expression,Ue);return we.relatedMessage&&e.addRelatedInfo(Je,e.createDiagnosticForNode(r.expression,we.relatedMessage)),ua.add(Je),PC(s,0,Je),Au(r)}return mg(r,c,t,i,0,ce)}function Db(r,t){var i=Em(r),o=i&&Js(i),s=o&&ks(o,F.Element,788968),c=s&&Dr.symbolToEntityName(s,788968,r),L=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,Dr.typeToTypeNode(t,r))],c?e.factory.createTypeReferenceNode(c,void 0):e.factory.createKeywordTypeNode(130)),G=fo(1,"props");return G.type=t,hu(L,void 0,void 0,[G],s?po(s):dr,void 0,1,0)}function zM(r,t,i){if(pg(r.tagName)){var o=$A(r),s=Db(r,o);return pp(Dm(r.attributes,db(s,r),void 0,0),o,r.tagName,r.attributes),e.length(r.typeArguments)&&(e.forEach(r.typeArguments,Wi),ua.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),r.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(r.typeArguments)))),s}var c=ui(r.tagName),L=wi(c);if(Ua(L))return Au(r);var G=QA(c,r);return Sb(c,L,G.length,0)?Tm(r):G.length===0?(Mr(r.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(r.tagName)),Au(r)):mg(r,G,t,i,0)}function qM(r,t){return t.length&&e.every(t,function(i){return i.minArgumentCount===0&&!ue(i)&&i.parameters.length<IC(r,i)})}function XM(r,t,i){switch(r.kind){case 207:return VM(r,t,i);case 208:return jM(r,t,i);case 209:return JM(r,t,i);case 164:return KM(r,t,i);case 279:case 278:return zM(r,t,i)}throw e.Debug.assertNever(r,"Branch in 'resolveSignature' should be unreachable.")}function gg(r,t,i){var o=Zn(r),s=o.resolvedSignature;if(s&&s!==Lo&&!t)return s;o.resolvedSignature=Lo;var c=XM(r,t,i||0);return c!==Lo&&(o.resolvedSignature=Ia===oo?c:s),c}function ou(r){var t;if(!r||!e.isInJSFile(r))return!1;var i=e.isFunctionDeclaration(r)||e.isFunctionExpression(r)?r:e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionExpression(r.initializer)?r.initializer:void 0;if(i){if(e.getJSDocClassTag(r))return!0;var o=wn(i);return!!(!((t=o==null?void 0:o.members)===null||t===void 0)&&t.size)}return!1}function z1(r,t){var i,o;if(t){var s=Ja(t);if(!s.inferredClassSymbol||!s.inferredClassSymbol.has(y(r))){var c=e.isTransientSymbol(r)?r:Nd(r);return c.exports=c.exports||e.createSymbolTable(),c.members=c.members||e.createSymbolTable(),c.flags|=t.flags&32,!((i=t.exports)===null||i===void 0)&&i.size&&dl(c.exports,t.exports),!((o=t.members)===null||o===void 0)&&o.size&&dl(c.members,t.members),(s.inferredClassSymbol||(s.inferredClassSymbol=new e.Map)).set(y(c),c),c}return s.inferredClassSymbol.get(y(r))}}function YM(r){var t,i=r&&Lb(r,!0),o=(t=i==null?void 0:i.exports)===null||t===void 0?void 0:t.get("prototype"),s=(o==null?void 0:o.valueDeclaration)&&QM(o.valueDeclaration);return s?wn(s):void 0}function Lb(r,t){if(!!r.parent){var i,o;if(e.isVariableDeclaration(r.parent)&&r.parent.initializer===r){if(!e.isInJSFile(r)&&!(e.isVarConst(r.parent)&&e.isFunctionLikeDeclaration(r)))return;i=r.parent.name,o=r.parent}else if(e.isBinaryExpression(r.parent)){var s=r.parent,c=r.parent.operatorToken.kind;if(c===63&&(t||s.right===r))i=s.left,o=i;else if((c===56||c===60)&&(e.isVariableDeclaration(s.parent)&&s.parent.initializer===s?(i=s.parent.name,o=s.parent):e.isBinaryExpression(s.parent)&&s.parent.operatorToken.kind===63&&(t||s.parent.right===s)&&(i=s.parent.left,o=i),!i||!e.isBindableStaticNameExpression(i)||!e.isSameEntityName(i,s.left)))return}else t&&e.isFunctionDeclaration(r)&&(i=r.name,o=r);if(!(!o||!i||!t&&!e.getExpandoInitializer(r,e.isPrototypeAccess(i))))return wn(o)}}function QM(r){if(!r.parent)return!1;for(var t=r.parent;t&&t.kind===205;)t=t.parent;if(t&&e.isBinaryExpression(t)&&e.isPrototypeAccess(t.left)&&t.operatorToken.kind===63){var i=e.getInitializerOfBinaryExpression(t);return e.isObjectLiteralExpression(i)&&i}}function ZM(r,t){var i;Kh(r,r.typeArguments)||EI(r.arguments);var o=gg(r,void 0,t);if(o===Lo)return Ut;if(Ab(o,r),r.expression.kind===106)return Wn;if(r.kind===208){var s=o.declaration;if(s&&s.kind!==170&&s.kind!==174&&s.kind!==179&&!e.isJSDocConstructSignature(s)&&!ou(s))return Ke&&Mr(r,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Ze}if(e.isInJSFile(r)&&VC(r))return pD(r.arguments[0]);var c=_o(o);if(c.flags&12288&&FC(r))return T0(e.walkUpParenthesizedExpressions(r.parent));if(r.kind===207&&!r.questionDotToken&&r.parent.kind===237&&c.flags&16384&&Dc(o)){if(!e.isDottedName(r.expression))Mr(r.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!ab(r)){var L=Mr(r.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);yh(r.expression,L)}}if(e.isInJSFile(r)){var G=Lb(r,!1);if(!((i=G==null?void 0:G.exports)===null||i===void 0)&&i.size){var ce=ts(G,G.exports,e.emptyArray,e.emptyArray,e.emptyArray);return ce.objectFlags|=8192,To([c,ce])}}return c}function Ab(r,t){if(r.declaration&&r.declaration.flags&134217728){var i=Nh(t),o=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(t));vf(i,r.declaration,o,pu(r))}}function Nh(r){switch(r=e.skipParentheses(r),r.kind){case 207:case 164:case 208:return Nh(r.expression);case 209:return Nh(r.tag);case 279:case 278:return Nh(r.tagName);case 206:return r.argumentExpression;case 205:return r.name;case 177:var t=r;return e.isQualifiedName(t.typeName)?t.typeName.right:t;default:return r}}function FC(r){if(!e.isCallExpression(r))return!1;var t=r.expression;if(e.isPropertyAccessExpression(t)&&t.name.escapedText==="for"&&(t=t.expression),!e.isIdentifier(t)||t.escapedText!=="Symbol")return!1;var i=MD(!1);return i?i===Uo(t,"Symbol",111551,void 0,void 0,!1):!1}function $M(r){if(EI(r.arguments)||BF(r),r.arguments.length===0)return Rh(r,Ze);for(var t=r.arguments[0],i=Ss(t),o=r.arguments.length>1?Ss(r.arguments[1]):void 0,s=2;s<r.arguments.length;++s)Ss(r.arguments[s]);if((i.flags&32768||i.flags&65536||!Qi(i,xt))&&Mr(t,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,gn(i)),o){var c=PD(!0);c!==Qn&&Rl(o,jy(c,32768),r.arguments[1])}var L=ws(r,t);if(L){var G=Fu(L,t,!0,!1);if(G)return Rh(r,BC(An(G),G,L,t)||UC(An(G),G,L,t))}return Rh(r,Ze)}function GC(r,t,i){var o=e.createSymbolTable(),s=fo(2097152,"default");return s.parent=t,s.nameType=Lc("default"),s.target=wo(r),o.set("default",s),ts(i,o,e.emptyArray,e.emptyArray,e.emptyArray)}function BC(r,t,i,o){var s=td(o);if(s&&r&&!Ua(r)){var c=r;if(!c.defaultOnlyType){var L=GC(t,i);c.defaultOnlyType=L}return c.defaultOnlyType}}function UC(r,t,i,o){var s;if(Lr&&r&&!Ua(r)){var c=r;if(!c.syntheticType){var L=(s=i.declarations)===null||s===void 0?void 0:s.find(e.isSourceFile),G=Ru(L,i,!1,o);if(G){var ce=fo(2048,"__type"),we=GC(t,i,ce);ce.type=we,c.syntheticType=dg(r)?wp(r,we,ce,0,!1):we}else c.syntheticType=r}return c.syntheticType}return r}function VC(r){if(!e.isRequireCall(r,!0))return!1;if(!e.isIdentifier(r.expression))return e.Debug.fail();var t=Uo(r.expression,r.expression.escapedText,111551,void 0,void 0,!0);if(t===ze)return!0;if(t.flags&2097152)return!1;var i=t.flags&16?255:t.flags&3?253:0;if(i!==0){var o=e.getDeclarationOfKind(t,i);return!!o&&!!(o.flags&8388608)}return!1}function e6(r){lF(r)||Kh(r,r.typeArguments),De<2&&nl(r,262144);var t=gg(r);return Ab(t,r),_o(t)}function r6(r){if(r.kind===210){var t=e.getSourceFileOfNode(r);t&&e.fileExtensionIsOneOf(t.fileName,[".cts",".mts"])&&sn(r,e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return jC(r,r.type,r.expression)}function WC(r){switch(r.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 203:case 204:case 222:return!0;case 211:return WC(r.expression);case 218:var t=r.operator,i=r.operand;return t===40&&(i.kind===8||i.kind===9)||t===39&&i.kind===8;case 205:case 206:var o=r.expression,s=jp(o).symbol;return s&&s.flags&2097152&&(s=ms(s)),!!(s&&s.flags&384&&Bo(s)===1)}return!1}function jC(r,t,i,o){var s=ui(i,o);if(e.isConstTypeReference(t))return WC(i)||Mr(i,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),kl(s);Wi(t),s=cg(Du(s));var c=Da(t);if(Se&&!Ua(c)){var L=wl(s);ig(c,L)||kL(s,c,r,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 c}function t6(r){var t=ui(r.expression),i=nv(t,r.expression);return Hy(Td(i),r,i!==t)}function n6(r){return r.flags&32?t6(r):Td(ui(r.expression))}function a6(r){return AF(r),r.keywordToken===103?q1(r):r.keywordToken===100?i6(r):e.Debug.assertNever(r.keywordToken)}function HC(r){switch(r.keywordToken){case 100:return Hk();case 103:var t=q1(r);return Ua(t)?dr:u6(t);default:e.Debug.assertNever(r.keywordToken)}}function q1(r){var t=e.getNewTargetContainer(r);if(t)if(t.kind===170){var i=wn(t.parent);return An(i)}else{var i=wn(t);return An(i)}else return Mr(r,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),dr}function i6(r){Ae===e.ModuleKind.Node12||Ae===e.ModuleKind.NodeNext?e.getSourceFileOfNode(r).impliedNodeFormat!==e.ModuleKind.ESNext&&Mr(r,e.Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):Ae<e.ModuleKind.ES2020&&Ae!==e.ModuleKind.System&&Mr(r,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node12_or_nodenext);var t=e.getSourceFileOfNode(r);return e.Debug.assert(!!(t.flags&2097152),"Containing file is missing import meta node flag."),r.name.escapedText==="meta"?wD():dr}function dv(r){var t=An(r);if(Er){var i=r.valueDeclaration;if(i&&e.hasInitializer(i))return Jf(t)}return t}function Cb(r){return e.Debug.assert(e.isIdentifier(r.name)),r.name.escapedText}function vg(r,t,i){var o=r.parameters.length-(ue(r)?1:0);if(t<o)return r.parameters[t].escapedName;var s=r.parameters[o]||We,c=i||An(s);if(ki(c)){var L=c.target.labeledElementDeclarations,G=t-o;return L&&Cb(L[G])||s.escapedName+"_"+G}return s.escapedName}function o6(r,t){var i=r.parameters.length-(ue(r)?1:0);if(t<i){var o=r.parameters[t];return JC(o)?[o.escapedName,!1]:void 0}var s=r.parameters[i]||We;if(!!JC(s)){var c=An(s);if(ki(c)){var L=c.target.labeledElementDeclarations,G=t-i,ce=L==null?void 0:L[G],we=!!(ce!=null&&ce.dotDotDotToken);return ce?[Cb(ce),we]:void 0}if(t===i)return[s.escapedName,!0]}}function JC(r){return r.valueDeclaration&&e.isParameter(r.valueDeclaration)&&e.isIdentifier(r.valueDeclaration.name)}function KC(r){return r.kind===196||e.isParameter(r)&&r.name&&e.isIdentifier(r.name)}function s6(r,t){var i=r.parameters.length-(ue(r)?1:0);if(t<i){var o=r.parameters[t].valueDeclaration;return o&&KC(o)?o:void 0}var s=r.parameters[i]||We,c=An(s);if(ki(c)){var L=c.target.labeledElementDeclarations,G=t-i;return L&&L[G]}return s.valueDeclaration&&KC(s.valueDeclaration)?s.valueDeclaration:void 0}function Uc(r,t){return T_(r,t)||Ze}function T_(r,t){var i=r.parameters.length-(ue(r)?1:0);if(t<i)return dv(r.parameters[t]);if(ue(r)){var o=An(r.parameters[i]),s=t-i;if(!ki(o)||o.target.hasRestElement||s<o.target.fixedLength)return Hl(o,Wf(s))}}function hg(r,t){var i=Tl(r),o=Cu(r),s=pv(r);if(s&&t>=i-1)return t===i-1?s:zs(Hl(s,wt));for(var c=[],L=[],G=[],ce=t;ce<i;ce++){!s||ce<i-1?(c.push(Uc(r,ce)),L.push(ce<o?1:2)):(c.push(s),L.push(8));var we=s6(r,ce);we&&G.push(we)}return Tu(c,L,!1,e.length(G)===e.length(c)?G:void 0)}function Tl(r){var t=r.parameters.length;if(ue(r)){var i=An(r.parameters[t-1]);if(ki(i))return t+i.target.fixedLength-(i.target.hasRestElement?0:1)}return t}function Cu(r,t){var i=t&1,o=t&2;if(o||r.resolvedMinArgumentCount===void 0){var s=void 0;if(ue(r)){var c=An(r.parameters[r.parameters.length-1]);if(ki(c)){var L=e.findIndex(c.target.elementFlags,function(Ue){return!(Ue&1)}),G=L<0?c.target.fixedLength:L;G>0&&(s=r.parameters.length-1+G)}}if(s===void 0){if(!i&&r.flags&32)return 0;s=r.minArgumentCount}if(o)return s;for(var ce=s-1;ce>=0;ce--){var we=Uc(r,ce);if(rl(we,bC).flags&131072)break;s=ce}r.resolvedMinArgumentCount=s}return r.resolvedMinArgumentCount}function xu(r){if(ue(r)){var t=An(r.parameters[r.parameters.length-1]);return!ki(t)||t.target.hasRestElement}return!1}function pv(r){if(ue(r)){var t=An(r.parameters[r.parameters.length-1]);if(!ki(t))return t;if(t.target.hasRestElement)return Xg(t,t.target.fixedLength)}}function _v(r){var t=pv(r);return t&&!el(t)&&!Na(t)&&(Eo(t).flags&131072)===0?t:void 0}function X1(r){return Y1(r,en)}function Y1(r,t){return r.parameters.length>0?Uc(r,0):t}function l6(r,t,i){for(var o=r.parameters.length-(ue(r)?1:0),s=0;s<o;s++){var c=r.parameters[s].valueDeclaration;if(c.type){var L=e.getEffectiveTypeAnnotationNode(c);L&&uf(i.inferences,Da(L),Uc(t,s))}}var G=pv(t);if(G&&G.flags&262144){var ce=pm(t,i.nonFixingMapper);zC(r,ce);var we=Tl(t)-1;uf(i.inferences,hg(r,we),G)}}function zC(r,t){if(t.typeParameters)if(!r.typeParameters)r.typeParameters=t.typeParameters;else return;if(t.thisParameter){var i=r.thisParameter;(!i||i.valueDeclaration&&!i.valueDeclaration.type)&&(i||(r.thisParameter=V_(t.thisParameter,void 0)),kh(r.thisParameter,An(t.thisParameter)))}for(var o=r.parameters.length-(ue(r)?1:0),s=0;s<o;s++){var i=r.parameters[s];if(!e.getEffectiveTypeAnnotationNode(i.valueDeclaration)){var c=T_(t,s);kh(i,c)}}if(ue(r)){var i=e.last(r.parameters);if(e.isTransientSymbol(i)||!e.getEffectiveTypeAnnotationNode(i.valueDeclaration)){var c=hg(t,o);kh(i,c)}}}function c6(r){r.thisParameter&&kh(r.thisParameter);for(var t=0,i=r.parameters;t<i.length;t++){var o=i[t];kh(o)}}function kh(r,t){var i=Ja(r);if(!i.type){var o=r.valueDeclaration;i.type=t||Cl(o,!0),o.name.kind!==79&&(i.type===tr&&(i.type=xs(o.name)),qC(o.name))}}function qC(r){for(var t=0,i=r.elements;t<i.length;t++){var o=i[t];e.isOmittedExpression(o)||(o.name.kind===79?Ja(wn(o)).type=tf(o):qC(o.name))}}function Oh(r){var t=oh(!0);return t!==va?(r=Sd(Ev(r))||tr,Uf(t,[r])):tr}function XC(r){var t=GD(!0);return t!==va?(r=Sd(Ev(r))||tr,Uf(t,[r])):tr}function Rh(r,t){var i=Oh(t);return i===tr?(Mr(r,e.isImportCall(r)?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),dr):(t0(!0)||Mr(r,e.isImportCall(r)?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),i)}function u6(r){var t=fo(0,"NewTargetExpression"),i=fo(4,"target",8);i.parent=t,i.type=r;var o=e.createSymbolTable([i]);return t.members=o,ts(t,o,e.emptyArray,e.emptyArray,e.emptyArray)}function xb(r,t){if(!r.body)return dr;var i=e.getFunctionFlags(r),o=(i&2)!==0,s=(i&1)!==0,c,L,G,ce=Wn;if(r.body.kind!==234)c=Ss(r.body,t&&t&-9),o&&(c=Ev(bv(c,!1,r,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(s){var we=ex(r,t);we?we.length>0&&(c=ma(we,2)):ce=en;var Ue=f6(r,t),Je=Ue.yieldTypes,ar=Ue.nextTypes;L=e.some(Je)?ma(Je,2):void 0,G=e.some(ar)?To(ar):void 0}else{var _r=ex(r,t);if(!_r)return i&2?Rh(r,en):en;if(_r.length===0)return i&2?Rh(r,Wn):Wn;c=ma(_r,2)}if(c||L||G){if(L&&qy(r,L,3),c&&qy(r,c,1),G&&qy(r,G,2),c&&Su(c)||L&&Su(L)||G&&Su(G)){var Br=D1(r),Zr=Br?Br===bu(r)?s?void 0:c:ub(_o(Br),r):void 0;s?(L=H0(L,Zr,0,o),c=H0(c,Zr,1,o),G=H0(G,Zr,2,o)):c=KR(c,Zr,o)}L&&(L=wl(L)),c&&(c=wl(c)),G&&(G=wl(G))}return s?YC(L||en,c||ce,G||BA(2,r)||tr,o):o?Oh(c||ce):c||ce}function YC(r,t,i,o){var s=o?Mo:Fo,c=s.getGlobalGeneratorType(!1);if(r=s.resolveIterationType(r,void 0)||tr,t=s.resolveIterationType(t,void 0)||tr,i=s.resolveIterationType(i,void 0)||tr,c===va){var L=s.getGlobalIterableIteratorType(!1),G=L!==va?Bx(L,s):void 0,ce=G?G.returnType:Ze,we=G?G.nextType:kr;return Qi(t,ce)&&Qi(we,i)?L!==va?qg(L,[r]):(s.getGlobalIterableIteratorType(!0),Qn):(s.getGlobalGeneratorType(!0),Qn)}return qg(c,[r,t,i])}function f6(r,t){var i=[],o=[],s=(e.getFunctionFlags(r)&2)!==0;return e.forEachYieldExpression(r.body,function(c){var L=c.expression?ui(c.expression,t):zr;e.pushIfUnique(i,QC(c,L,Ze,s));var G;if(c.asteriskToken){var ce=Wh(L,s?19:17,c.expression);G=ce&&ce.nextType}else G=Ac(c);G&&e.pushIfUnique(o,G)}),{yieldTypes:i,nextTypes:o}}function QC(r,t,i,o){var s=r.expression||r,c=r.asteriskToken?Ld(o?19:17,t,i,s):t;return o?J_(c,s,r.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):c}function Q1(r,t,i,o){var s=0;if(o){for(var c=t;c<i.length;c++)s|=ie.get(i[c])||32768;for(var c=r;c<t;c++)s&=~(ie.get(i[c])||0);for(var c=0;c<r;c++)s|=ie.get(i[c])||32768}else{for(var c=r;c<t;c++)s|=q.get(i[c])||128;for(var c=0;c<r;c++)s&=~(q.get(i[c])||0)}return s}function ZC(r){var t=Zn(r);return t.isExhaustive!==void 0?t.isExhaustive:t.isExhaustive=d6(r)}function d6(r){if(r.expression.kind===215){var t=tl(r.expression.expression),i=EA(r,!1),o=Q1(0,0,i,!0),s=l(t)||t;return s.flags&3?(556800&o)===556800:!!(rl(s,function(G){return(mp(G)&o)===o}).flags&131072)}var c=tl(r.expression);if(!mm(c))return!1;var L=eb(r);return!L.length||e.some(L,HR)?!1:Pw(ds(c,kl),L)}function $C(r){return r.endFlowNode&&bh(r.endFlowNode)}function ex(r,t){var i=e.getFunctionFlags(r),o=[],s=$C(r),c=!1;if(e.forEachReturnStatement(r.body,function(L){var G=L.expression;if(G){var ce=Ss(G,t&&t&-9);i&2&&(ce=Ev(bv(ce,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),ce.flags&131072&&(c=!0),e.pushIfUnique(o,ce)}else s=!0}),!(o.length===0&&!s&&(c||p6(r))))return Er&&o.length&&s&&!(ou(r)&&o.some(function(L){return L.symbol===r.symbol}))&&e.pushIfUnique(o,kr),o}function p6(r){switch(r.kind){case 212:case 213:return!0;case 168:return r.parent.kind===204;default:return!1}}function Z1(r,t){if(!!Se){var i=e.getFunctionFlags(r),o=t&&Bb(t,i);if(!(o&&Jo(o,16385))&&!(r.kind===167||e.nodeIsMissing(r.body)||r.body.kind!==234||!$C(r))){var s=r.flags&512,c=e.getEffectiveReturnTypeNode(r)||r;if(o&&o.flags&131072)Mr(c,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(o&&!s)Mr(c,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(o&&Er&&!Qi(kr,o))Mr(c,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(Xe.noImplicitReturns){if(!o){if(!s)return;var L=_o(bu(r));if(Kx(r,L))return}Mr(c,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function rx(r,t){if(e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r)),Dv(r),e.isFunctionExpression(r)&&Tg(r,r.name),t&&t&4&&nu(r)){if(!e.getEffectiveReturnTypeNode(r)&&!e.hasContextSensitiveParameters(r)){var i=Dh(r);if(i&&iv(_o(i))){var o=Zn(r);if(o.contextFreeType)return o.contextFreeType;var s=xb(r,t),c=hu(void 0,void 0,void 0,e.emptyArray,s,void 0,0,0),L=ts(r.symbol,Le,[c],e.emptyArray,e.emptyArray);return L.objectFlags|=524288,o.contextFreeType=L}}return yi}var G=Yb(r);return!G&&r.kind===212&&RT(r),_6(r,t),An(wn(r))}function _6(r,t){var i=Zn(r);if(!(i.flags&1024)){var o=Dh(r);if(!(i.flags&1024)){i.flags|=1024;var s=e.firstOrUndefined(Ni(An(wn(r)),0));if(!s)return;if(nu(r))if(o){var c=cv(r);t&&t&2&&l6(s,o,c);var L=c?pm(o,c.mapper):o;zC(s,L)}else c6(s);if(o&&!lm(r)&&!s.resolvedReturnType){var G=xb(r,t);s.resolvedReturnType||(s.resolvedReturnType=G)}gv(r)}}}function m6(r){e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r));var t=e.getFunctionFlags(r),i=lm(r);if(Z1(r,i),r.body)if(e.getEffectiveReturnTypeNode(r)||_o(bu(r)),r.body.kind===234)Wi(r.body);else{var o=ui(r.body),s=i&&Bb(i,t);if(s)if((t&3)===2){var c=bv(o,!1,r.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);pp(c,s,r.body,r.body)}else pp(o,s,r.body,r.body)}}function Ib(r,t,i,o){if(o===void 0&&(o=!1),!Qi(t,Pt)){var s=o&&hv(t);return ku(r,!!s&&Qi(s,Pt),i),!1}return!0}function g6(r){if(!e.isCallExpression(r)||!e.isBindableObjectDefinePropertyCall(r))return!1;var t=Ss(r.arguments[2]),i=ia(t,"value");if(i){var o=Ii(t,"writable"),s=o&&An(o);if(!s||s===mt||s===rn)return!0;if(o&&o.valueDeclaration&&e.isPropertyAssignment(o.valueDeclaration)){var c=o.valueDeclaration.initializer,L=ui(c);if(L===mt||L===rn)return!0}return!1}var G=Ii(t,"set");return!G}function Iu(r){return!!(e.getCheckFlags(r)&8||r.flags&4&&e.getDeclarationModifierFlagsFromSymbol(r)&64||r.flags&3&&uv(r)&2||r.flags&98304&&!(r.flags&65536)||r.flags&8||e.some(r.declarations,g6))}function tx(r,t,i){var o,s;if(i===0)return!1;if(Iu(t)){if(t.flags&4&&e.isAccessExpression(r)&&r.expression.kind===108){var c=e.getContainingFunction(r);if(!(c&&(c.kind===170||ou(c))))return!0;if(t.valueDeclaration){var L=e.isBinaryExpression(t.valueDeclaration),G=c.parent===t.valueDeclaration.parent,ce=c===t.valueDeclaration.parent,we=L&&((o=t.parent)===null||o===void 0?void 0:o.valueDeclaration)===c.parent,Ue=L&&((s=t.parent)===null||s===void 0?void 0:s.valueDeclaration)===c,Je=G||ce||we||Ue;return!Je}}return!0}if(e.isAccessExpression(r)){var ar=e.skipParentheses(r.expression);if(ar.kind===79){var _r=Zn(ar).resolvedSymbol;if(_r.flags&2097152){var Br=ec(_r);return!!Br&&Br.kind===267}}}return!1}function mv(r,t,i){var o=e.skipOuterExpressions(r,7);return o.kind!==79&&!e.isAccessExpression(o)?(Mr(r,t),!1):o.flags&32?(Mr(r,i),!1):!0}function v6(r){ui(r.expression);var t=e.skipParentheses(r.expression);if(!e.isAccessExpression(t))return Mr(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Jn;e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)&&Mr(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var i=Zn(t),o=tc(i.resolvedSymbol);return o&&(Iu(o)&&Mr(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),h6(t,o)),Jn}function h6(r,t){var i=An(t);Er&&!(i.flags&131075)&&!(de?t.flags&16777216:lc(i)&32768)&&Mr(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)}function y6(r){return ui(r.expression),br}function b6(r){return ui(r.expression),zr}function E6(r){if(Se){var t=e.getContainingFunctionOrClassStaticBlock(r);if(t&&e.isClassStaticBlockDeclaration(t))Mr(r,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(r.flags&32768))if(e.isInTopLevelContext(r)){var i=e.getSourceFileOfNode(r);if(!D_(i)){var o=void 0;if(!e.isEffectiveExternalModule(i,Xe)){o||(o=e.getSpanOfTokenAtPosition(i,r.pos));var s=e.createFileDiagnostic(i,o.start,o.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);ua.add(s)}if(Ae!==e.ModuleKind.ES2022&&Ae!==e.ModuleKind.ESNext&&Ae!==e.ModuleKind.System&&!(Ae===e.ModuleKind.NodeNext&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.ESNext)||De<4){o=e.getSpanOfTokenAtPosition(i,r.pos);var s=e.createFileDiagnostic(i,o.start,o.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher);ua.add(s)}}}else{var i=e.getSourceFileOfNode(r);if(!D_(i)){var o=e.getSpanOfTokenAtPosition(i,r.pos),s=e.createFileDiagnostic(i,o.start,o.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(t&&t.kind!==170&&(e.getFunctionFlags(t)&2)===0){var c=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(s,c)}ua.add(s)}}h1(r)&&Mr(r,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var L=ui(r.expression),G=bv(L,!0,r,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return G===L&&!Ua(G)&&!(L.flags&3)&&$l(!1,e.createDiagnosticForNode(r,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),G}function T6(r){var t=ui(r.operand);if(t===St)return St;switch(r.operand.kind){case 8:switch(r.operator){case 40:return fm(Wf(-r.operand.text));case 39:return fm(Wf(+r.operand.text))}break;case 9:if(r.operator===40)return fm(E0({negative:!0,base10Value:e.parsePseudoBigInt(r.operand.text)}))}switch(r.operator){case 39:case 40:case 54:return iu(t,r.operand),Jo(t,12288)&&Mr(r.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r.operator)),r.operator===39?(Jo(t,2112)&&Mr(r.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(r.operator),gn(Du(t))),wt):$1(t);case 53:Sg(r.operand);var i=mp(t)&12582912;return i===4194304?mt:i===8388608?sa:Jn;case 45:case 46:var o=Ib(r.operand,iu(t,r.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return o&&mv(r.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),$1(t)}return dr}function S6(r){var t=ui(r.operand);if(t===St)return St;var i=Ib(r.operand,iu(t,r.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return i&&mv(r.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),$1(t)}function $1(r){return Jo(r,2112)?ys(r,3)||Jo(r,296)?Pt:Qt:wt}function Jo(r,t){if(r.flags&t)return!0;if(r.flags&3145728)for(var i=r.types,o=0,s=i;o<s.length;o++){var c=s[o];if(Jo(c,t))return!0}return!1}function ys(r,t,i){return r.flags&t?!0:i&&r.flags&114691?!1:!!(t&296)&&Qi(r,wt)||!!(t&2112)&&Qi(r,Qt)||!!(t&402653316)&&Qi(r,xt)||!!(t&528)&&Qi(r,Jn)||!!(t&16384)&&Qi(r,Wn)||!!(t&131072)&&Qi(r,en)||!!(t&65536)&&Qi(r,ut)||!!(t&32768)&&Qi(r,kr)||!!(t&4096)&&Qi(r,na)||!!(t&67108864)&&Qi(r,dn)}function Sm(r,t,i){return r.flags&1048576?e.every(r.types,function(o){return Sm(o,t,i)}):ys(r,t,i)}function eT(r){return!!(e.getObjectFlags(r)&16)&&!!r.symbol&&rT(r.symbol)}function rT(r){return(r.flags&128)!==0}function D6(r,t,i,o){return i===St||o===St?St:(!Na(i)&&Sm(i,131068)&&Mr(r,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Na(o)||CT(o)||Ed(o,Oe)||Mr(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),Jn)}function L6(r,t,i,o){if(i===St||o===St)return St;if(e.isPrivateIdentifier(r)){if(De<99&&nl(r,2097152),!Zn(r).resolvedSymbol&&e.getContainingClass(r)){var s=M1(r,o.symbol,!0);dC(r,o,s)}}else i=iu(i,r),Sm(i,402665900)||ys(i,407109632)||Mr(r,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol);o=iu(o,t);var c=kp(o);return(!Sm(o,126091264)||c&&(ys(o,3145728)&&!Sm(c,126091264)||!Jo(c,126615552)))&&Mr(t,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),Jn}function A6(r,t,i){var o=r.properties;if(Er&&o.length===0)return iu(t,r);for(var s=0;s<o.length;s++)nx(r,t,s,o,i);return t}function nx(r,t,i,o,s){s===void 0&&(s=!1);var c=r.properties,L=c[i];if(L.kind===294||L.kind===295){var G=L.name,ce=lp(G);if(gu(ce)){var we=vu(ce),Ue=Ii(t,we);Ue&&(xh(Ue,L,s),O1(L,!1,!0,t,Ue))}var Je=Hl(t,ce,32,G),ar=Vl(L,Je);return S_(L.kind===295?L:L.initializer,ar)}else if(L.kind===296)if(i<c.length-1)Mr(L,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{De<99&&nl(L,4);var _r=[];if(o)for(var Br=0,Zr=o;Br<Zr.length;Br++){var Et=Zr[Br];e.isSpreadAssignment(Et)||_r.push(Et.name)}var ar=cl(t,_r,t.symbol);return K_(o,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),S_(L.expression,ar)}else Mr(L,e.Diagnostics.Property_assignment_expected)}function C6(r,t,i){var o=r.elements;De<2&&Xe.downlevelIteration&&nl(r,512);for(var s=Ld(193,t,kr,r)||dr,c=Xe.noUncheckedIndexedAccess?void 0:s,L=0;L<o.length;L++){var G=s;r.elements[L].kind===224&&(G=c=c!=null?c:Ld(65,t,kr,r)||dr),ax(r,t,L,G,i)}return t}function ax(r,t,i,o,s){var c=r.elements,L=c[i];if(L.kind!==226){if(L.kind!==224){var G=Wf(i);if(_p(t)){var ce=32|(fg(L)?16:0),we=cp(t,G,ce,Wp(L,G))||dr,Ue=fg(L)?Fs(we,524288):we,Je=Vl(L,Ue);return S_(L,Je,s)}return S_(L,o,s)}if(i<c.length-1)Mr(L,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var ar=L.expression;if(ar.kind===220&&ar.operatorToken.kind===63)Mr(ar.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer);else{K_(r.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);var Je=Kf(t,ki)?ds(t,function(Br){return Xg(Br,i)}):zs(o);return S_(ar,Je,s)}}}}function S_(r,t,i,o){var s;if(r.kind===295){var c=r;c.objectAssignmentInitializer&&(Er&&!(lc(ui(c.objectAssignmentInitializer))&32768)&&(t=Fs(t,524288)),k6(c.name,c.equalsToken,c.objectAssignmentInitializer,i)),s=r.name}else s=r;return s.kind===220&&s.operatorToken.kind===63&&(Fe(s,i),s=s.left),s.kind===204?A6(s,t,o):s.kind===203?C6(s,t,i):x6(s,t,i)}function x6(r,t,i){var o=ui(r,i),s=r.parent.kind===296?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,c=r.parent.kind===296?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 mv(r,s,c)&&pp(t,o,r,r),e.isPrivateIdentifierPropertyAccessExpression(r)&&nl(r.parent,1048576),t}function wh(r){switch(r=e.skipParentheses(r),r.kind){case 79:case 10:case 13:case 209:case 222:case 14:case 8:case 9:case 110:case 95:case 104:case 152:case 212:case 225:case 213:case 203:case 204:case 215:case 229:case 278:case 277:return!0;case 221:return wh(r.whenTrue)&&wh(r.whenFalse);case 220:return e.isAssignmentOperator(r.operatorToken.kind)?!1:wh(r.left)&&wh(r.right);case 218:case 219:switch(r.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 216:case 210:case 228:default:return!1}}function tT(r,t){return(t.flags&98304)!==0||ig(r,t)}function I6(){var r=e.createBinaryExpressionTrampoline(t,i,o,s,c,L);return function(ar,_r){var Br=r(ar,_r);return e.Debug.assertIsDefined(Br),Br};function t(ar,_r,Br){if(_r?(_r.stackIndex++,_r.skip=!1,we(_r,void 0),Je(_r,void 0)):_r={checkMode:Br,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},e.isInJSFile(ar)&&e.getAssignedExpandoInitializer(ar))return _r.skip=!0,Je(_r,ui(ar.right,Br)),_r;N6(ar);var Zr=ar.operatorToken.kind;return Zr===63&&(ar.left.kind===204||ar.left.kind===203)&&(_r.skip=!0,Je(_r,S_(ar.left,ui(ar.right,Br),Br,ar.right.kind===108))),_r}function i(ar,_r,Br){if(!_r.skip)return G(_r,ar)}function o(ar,_r,Br){if(!_r.skip){var Zr=Ue(_r);e.Debug.assertIsDefined(Zr),we(_r,Zr),Je(_r,void 0);var Et=ar.kind;if(Et===55||Et===56||Et===60){if(Et===55){var Tt=e.walkUpParenthesizedExpressions(Br.parent);_T(Br.left,Zr,e.isIfStatement(Tt)?Tt.thenStatement:void 0)}wx(Zr,Br.left)}}}function s(ar,_r,Br){if(!_r.skip)return G(_r,ar)}function c(ar,_r){var Br;if(_r.skip)Br=Ue(_r);else{var Zr=ce(_r);e.Debug.assertIsDefined(Zr);var Et=Ue(_r);e.Debug.assertIsDefined(Et),Br=ix(ar.left,ar.operatorToken,ar.right,Zr,Et,ar)}return _r.skip=!1,we(_r,void 0),Je(_r,void 0),_r.stackIndex--,Br}function L(ar,_r,Br){return Je(ar,_r),ar}function G(ar,_r){if(e.isBinaryExpression(_r))return _r;Je(ar,ui(_r,ar.checkMode))}function ce(ar){return ar.typeStack[ar.stackIndex]}function we(ar,_r){ar.typeStack[ar.stackIndex]=_r}function Ue(ar){return ar.typeStack[ar.stackIndex+1]}function Je(ar,_r){ar.typeStack[ar.stackIndex+1]=_r}}function N6(r){var t=r.left,i=r.operatorToken,o=r.right;i.kind===60&&(e.isBinaryExpression(t)&&(t.operatorToken.kind===56||t.operatorToken.kind===55)&&sn(t,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(t.operatorToken.kind),e.tokenToString(i.kind)),e.isBinaryExpression(o)&&(o.operatorToken.kind===56||o.operatorToken.kind===55)&&sn(o,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(o.operatorToken.kind),e.tokenToString(i.kind)))}function k6(r,t,i,o,s){var c=t.kind;if(c===63&&(r.kind===204||r.kind===203))return S_(r,ui(i,o),o,i.kind===108);var L;c===55||c===56||c===60?L=Sg(r,o):L=ui(r,o);var G=ui(i,o);return ix(r,t,i,L,G,s)}function ix(r,t,i,o,s,c){var L=t.kind;switch(L){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(o===St||s===St)return St;o=iu(o,r),s=iu(s,i);var G=void 0;if(o.flags&528&&s.flags&528&&(G=Aa(t.kind))!==void 0)return Mr(c||t,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(t.kind),e.tokenToString(G)),wt;var ce=Ib(r,o,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),we=Ib(i,s,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Ue;if(ys(o,3)&&ys(s,3)||!(Jo(o,2112)||Jo(s,2112)))Ue=wt;else if(on(o,s)){switch(L){case 49:case 72:xo();break;case 42:case 67:De<3&&Mr(c,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}Ue=Qt}else xo(on),Ue=dr;return ce&&we&&Li(Ue),Ue;case 39:case 64:if(o===St||s===St)return St;!ys(o,402653316)&&!ys(s,402653316)&&(o=iu(o,r),s=iu(s,i));var Je=void 0;if(ys(o,296,!0)&&ys(s,296,!0)?Je=wt:ys(o,2112,!0)&&ys(s,2112,!0)?Je=Qt:ys(o,402653316,!0)||ys(s,402653316,!0)?Je=xt:(Na(o)||Na(s))&&(Je=Ua(o)||Ua(s)?dr:Ze),Je&&!di(L))return Je;if(!Je){var ar=402655727;return xo(function(Ft,_n){return ys(Ft,ar)&&ys(_n,ar)}),Ze}return L===64&&Li(Je),Je;case 29:case 31:case 32:case 33:return di(L)&&(o=Du(iu(o,r)),s=Du(iu(s,i)),Ai(function(Ft,_n){return ig(Ft,_n)||ig(_n,Ft)||Qi(Ft,Pt)&&Qi(_n,Pt)})),Jn;case 34:case 35:case 36:case 37:return Ai(function(Ft,_n){return tT(Ft,_n)||tT(_n,Ft)}),Jn;case 102:return D6(r,i,o,s);case 101:return L6(r,i,o,s);case 55:case 76:{var _r=mp(o)&4194304?ma([XR(Er?o:Du(s)),s]):o;return L===76&&Li(s),_r}case 56:case 75:{var Br=mp(o)&8388608?ma([qL(o),s],2):o;return L===75&&Li(s),Br}case 60:case 77:{var Zr=mp(o)&262144?ma([Td(o),s],2):o;return L===77&&Li(s),Zr}case 63:var Et=e.isBinaryExpression(r.parent)?e.getAssignmentDeclarationKind(r.parent):0;return ca(Et,s),Bi(Et)?((!(s.flags&524288)||Et!==2&&Et!==6&&!cf(s)&&!l1(s)&&!(e.getObjectFlags(s)&1))&&Li(s),o):(Li(s),cg(s));case 27:if(!Xe.allowUnreachableCode&&wh(r)&&!la(i)){var Tt=e.getSourceFileOfNode(r),At=Tt.text,Vt=e.skipTrivia(At,r.pos),Nn=Tt.parseDiagnostics.some(function(Ft){return Ft.code!==e.Diagnostics.JSX_expressions_must_have_one_parent_element.code?!1:e.textSpanContainsPosition(Ft,Vt)});Nn||Mr(r,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return s;default:return e.Debug.fail()}function on(Ft,_n){return ys(Ft,2112)&&ys(_n,2112)}function ca(Ft,_n){if(Ft===2)for(var Ca=0,Yn=sf(_n);Ca<Yn.length;Ca++){var Ba=Yn[Ca],Ti=An(Ba);if(Ti.symbol&&Ti.symbol.flags&32){var Mi=Ba.escapedName,jn=Uo(Ba.valueDeclaration,Mi,788968,void 0,Mi,!1);(jn==null?void 0:jn.declarations)&&jn.declarations.some(e.isJSDocTypedefTag)&&(Hc(jn,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(Mi),Ba),Hc(Ba,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(Mi),jn))}}}function la(Ft){return Ft.kind===79&&Ft.escapedText==="eval"}function di(Ft){var _n=Jo(o,12288)?r:Jo(s,12288)?i:void 0;return _n?(Mr(_n,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(Ft)),!1):!0}function Aa(Ft){switch(Ft){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}function Li(Ft){if(Se&&e.isAssignmentOperator(L)&&mv(r,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(r)||e.unescapeLeadingUnderscores(r.escapedText)!=="exports")){var _n=void 0;if(de&&e.isPropertyAccessExpression(r)&&Jo(Ft,32768)){var Ca=ia(tl(r.expression),r.name.escapedText);P0(Ft,Ca)&&(_n=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}pp(Ft,o,r,i,_n)}}function Bi(Ft){var _n;switch(Ft){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var Ca=wn(r),Yn=e.getAssignedExpandoInitializer(i);return!!Yn&&e.isObjectLiteralExpression(Yn)&&!!(!((_n=Ca==null?void 0:Ca.exports)===null||_n===void 0)&&_n.size);default:return!1}}function Ai(Ft){return Ft(o,s)?!1:(xo(Ft),!0)}function xo(Ft){var _n,Ca=!1,Yn=c||t;if(Ft){var Ba=Sd(o),Ti=Sd(s);Ca=!(Ba===o&&Ti===s)&&!!(Ba&&Ti)&&Ft(Ba,Ti)}var Mi=o,jn=s;!Ca&&Ft&&(_n=O6(o,s,Ft),Mi=_n[0],jn=_n[1]);var Fi=Rf(Mi,jn),jr=Fi[0],Sr=Fi[1];Wt(Yn,Ca,jr,Sr)||ku(Yn,Ca,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(t.kind),jr,Sr)}function Wt(Ft,_n,Ca,Yn){var Ba;switch(t.kind){case 36:case 34:Ba="false";break;case 37:case 35:Ba="true"}if(Ba)return ku(Ft,_n,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,Ba,Ca,Yn)}}function O6(r,t,i){var o=r,s=t,c=Du(r),L=Du(t);return i(c,L)||(o=c,s=L),[o,s]}function R6(r){Se&&(r.flags&8192||Gs(r,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),h1(r)&&Mr(r,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var t=e.getContainingFunction(r);if(!t)return Ze;var i=e.getFunctionFlags(t);if(!(i&1))return Ze;var o=(i&2)!==0;r.asteriskToken&&(o&&De<99&&nl(r,26624),!o&&De<2&&Xe.downlevelIteration&&nl(r,256));var s=lm(t),c=s&&Jx(s,o),L=c&&c.yieldType||Ze,G=c&&c.nextType||Ze,ce=o?J_(G)||Ze:G,we=r.expression?ui(r.expression):zr,Ue=QC(r,we,ce,o);if(s&&Ue&&pp(Ue,L,r.expression||r,r.expression),r.asteriskToken){var Je=o?19:17;return Mx(Je,1,we,r.expression)||Ze}else if(s)return Lm(2,s,o)||Ze;var ar=BA(2,t);if(!ar&&(ar=Ze,Se&&Ke&&!e.expressionResultIsUnused(r))){var _r=Ac(r);(!_r||Na(_r))&&Mr(r,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}return ar}function w6(r,t){var i=Sg(r.condition);_T(r.condition,i,r.whenTrue);var o=ui(r.whenTrue,t),s=ui(r.whenFalse,t);return ma([o,s],2)}function ox(r){var t=r.parent;return e.isParenthesizedExpression(t)&&ox(t)||e.isElementAccessExpression(t)&&t.argumentExpression===r}function P6(r){for(var t=[r.head.text],i=[],o=0,s=r.templateSpans;o<s.length;o++){var c=s[o],L=ui(c.expression);Jo(L,12288)&&Mr(c.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(c.literal.text),i.push(Qi(L,It)?L:xt)}return yg(r)||ox(r)||hm(Ac(r)||tr,M6)?ng(t,i):xt}function M6(r){return!!(r.flags&134217856||r.flags&58982400&&Jo(l(r)||tr,402653316))}function F6(r){return r.kind===285&&!e.isJsxSelfClosingElement(r.parent)?r.parent.parent:r}function Dm(r,t,i,o){var s=F6(r),c=s.contextualType,L=s.inferenceContext;try{s.contextualType=t,s.inferenceContext=i;var G=ui(r,o|1|(i?2:0)),ce=Jo(G,2944)&&Nb(G,ub(t,r))?kl(G):G;return ce}finally{s.contextualType=c,s.inferenceContext=L}}function Ss(r,t){var i=Zn(r);if(!i.resolvedType){if(t&&t!==0)return ui(r,t);var o=Ia,s=Co;Ia=oo,Co=void 0,i.resolvedType=ui(r,t),Co=s,Ia=o}return i.resolvedType}function sx(r){return r=e.skipParentheses(r,!0),r.kind===210||r.kind===228||e.isJSDocTypeAssertion(r)}function Ph(r,t){var i=e.getEffectiveInitializer(r),o=px(i)||(t?Dm(i,t,void 0,0):Ss(i));return e.isParameter(r)&&r.name.kind===201&&ki(o)&&!o.target.hasRestElement&&op(o)<r.name.elements.length?G6(o,r.name):o}function G6(r,t){for(var i=t.elements,o=vo(r).slice(),s=r.target.elementFlags.slice(),c=op(r);c<i.length;c++){var L=i[c];(c<i.length-1||!(L.kind===202&&L.dotDotDotToken))&&(o.push(!e.isOmittedExpression(L)&&fg(L)?Ho(L,!1,!1):Ze),s.push(2),!e.isOmittedExpression(L)&&!fg(L)&&Fp(L,Ze))}return Tu(o,s,r.target.readonly)}function nT(r,t){var i=e.getCombinedNodeFlags(r)&2||e.isDeclarationReadonly(r)?t:Mp(t);if(e.isInJSFile(r)){if(WL(i))return Fp(r,Ze),Ze;if(W0(i))return Fp(r,Sn),Sn}return i}function Nb(r,t){if(t){if(t.flags&3145728){var i=t.types;return e.some(i,function(s){return Nb(r,s)})}if(t.flags&58982400){var o=l(t)||tr;return Jo(o,4)&&Jo(r,128)||Jo(o,8)&&Jo(r,256)||Jo(o,64)&&Jo(r,2048)||Jo(o,4096)&&Jo(r,8192)||Nb(r,o)}return!!(t.flags&406847616&&Jo(r,128)||t.flags&256&&Jo(r,256)||t.flags&2048&&Jo(r,2048)||t.flags&512&&Jo(r,512)||t.flags&8192&&Jo(r,8192))}return!1}function yg(r){var t=r.parent;return e.isAssertionExpression(t)&&e.isConstTypeReference(t.type)||e.isJSDocTypeAssertion(t)&&e.isConstTypeReference(e.getJSDocTypeAssertionType(t))||(e.isParenthesizedExpression(t)||e.isArrayLiteralExpression(t)||e.isSpreadElement(t))&&yg(t)||(e.isPropertyAssignment(t)||e.isShorthandPropertyAssignment(t)||e.isTemplateSpan(t))&&yg(t.parent)}function bg(r,t,i,o){var s=ui(r,t,o);return yg(r)?kl(s):sx(r)?s:j0(s,ub(arguments.length===2?Ac(r):i,r))}function lx(r,t){return r.name.kind===161&&qf(r.name),bg(r.initializer,t)}function cx(r,t){AI(r),r.name.kind===161&&qf(r.name);var i=rx(r,t);return ux(r,i,t)}function ux(r,t,i){if(i&&i&10){var o=fv(t,0,!0),s=fv(t,1,!0),c=o||s;if(c&&c.typeParameters){var L=Up(r,2);if(L){var G=fv(Td(L),o?0:1,!1);if(G&&!G.typeParameters){if(i&8)return fx(r,i),yi;var ce=cv(r),we=ce.signature&&_o(ce.signature),Ue=we&&TC(we);if(Ue&&!Ue.typeParameters&&!e.every(ce.inferences,H_)){var Je=V6(ce,c.typeParameters),ar=QE(c,Je),_r=e.map(ce.inferences,function(Br){return Z0(Br.typeParameter)});if(X0(ar,G,function(Br,Zr){uf(_r,Br,Zr,0,!0)}),e.some(_r,H_)&&(Y0(ar,G,function(Br,Zr){uf(_r,Br,Zr)}),!B6(ce.inferences,_r)))return U6(ce.inferences,_r),ce.inferredTypeParameters=e.concatenate(ce.inferredTypeParameters,Je),Zm(ar)}return Zm(SC(c,G,ce))}}}}return t}function fx(r,t){if(t&2){var i=cv(r);i.flags|=4}}function H_(r){return!!(r.candidates||r.contraCandidates)}function B6(r,t){for(var i=0;i<r.length;i++)if(H_(r[i])&&H_(t[i]))return!0;return!1}function U6(r,t){for(var i=0;i<r.length;i++)!H_(r[i])&&H_(t[i])&&(r[i]=t[i])}function V6(r,t){for(var i=[],o,s,c=0,L=t;c<L.length;c++){var G=L[c],ce=G.symbol.escapedName;if(aT(r.inferredTypeParameters,ce)||aT(i,ce)){var we=W6(e.concatenate(r.inferredTypeParameters,i),ce),Ue=fo(262144,we),Je=nc(Ue);Je.target=G,o=e.append(o,G),s=e.append(s,Je),i.push(Je)}else i.push(G)}if(s)for(var ar=Ol(o,s),_r=0,Br=s;_r<Br.length;_r++){var G=Br[_r];G.mapper=ar}return i}function aT(r,t){return e.some(r,function(i){return i.symbol.escapedName===t})}function W6(r,t){for(var i=t.length;i>1&&t.charCodeAt(i-1)>=48&&t.charCodeAt(i-1)<=57;)i--;for(var o=t.slice(0,i),s=1;;s++){var c=o+s;if(!aT(r,c))return c}}function dx(r){var t=j_(r);if(t&&!t.typeParameters)return _o(t)}function j6(r){var t=ui(r.expression),i=nv(t,r.expression),o=dx(t);return o&&Hy(o,r,i!==t)}function tl(r){var t=px(r);if(t)return t;if(r.flags&67108864&&Co){var i=Co[I(r)];if(i)return i}var o=Us,s=ui(r);if(Us!==o){var c=Co||(Co=[]);c[I(r)]=s,e.setNodeFlags(r,r.flags|67108864)}return s}function px(r){var t=e.skipParentheses(r,!0);if(e.isJSDocTypeAssertion(t)){var i=e.getJSDocTypeAssertionType(t);if(!e.isConstTypeReference(i))return Da(i)}if(t=e.skipParentheses(r),e.isCallExpression(t)&&t.expression.kind!==106&&!e.isRequireCall(t,!0)&&!FC(t)){var i=e.isCallChain(t)?j6(t):dx(_g(t.expression));if(i)return i}else{if(e.isAssertionExpression(t)&&!e.isConstTypeReference(t.type))return Da(t.type);if(r.kind===8||r.kind===10||r.kind===110||r.kind===95)return ui(r)}}function Mh(r){var t=Zn(r);if(t.contextFreeType)return t.contextFreeType;var i=r.contextualType;r.contextualType=Ze;try{var o=t.contextFreeType=ui(r,4);return o}finally{r.contextualType=i}}function ui(r,t,i){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkExpression",{kind:r.kind,pos:r.pos,end:r.end});var o=_e;_e=r,he=0;var s=K6(r,t,i),c=ux(r,s,t);return eT(c)&&H6(r,c),_e=o,e.tracing===null||e.tracing===void 0||e.tracing.pop(),c}function H6(r,t){var i=r.parent.kind===205&&r.parent.expression===r||r.parent.kind===206&&r.parent.expression===r||(r.kind===79||r.kind===160)&&Hb(r)||r.parent.kind===180&&r.parent.exprName===r||r.parent.kind===274;if(i||Mr(r,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),Xe.isolatedModules){e.Debug.assert(!!(t.symbol.flags&128));var o=t.symbol.valueDeclaration;o.flags&8388608&&Mr(r,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}function J6(r,t){if(e.hasJSDocNodes(r)&&e.isJSDocTypeAssertion(r)){var i=e.getJSDocTypeAssertionType(r);return jC(i,i,r.expression,t)}return ui(r.expression,t)}function K6(r,t,i){var o=r.kind;if(O)switch(o){case 225:case 212:case 213:O.throwIfCancellationRequested()}switch(o){case 79:return eP(r,t);case 80:return cM(r);case 108:return lb(r);case 106:return g1(r);case 104:return ht;case 14:case 10:return fm(Lc(r.text));case 8:return MT(r),fm(Wf(+r.text));case 9:return PF(r),fm(E0({negative:!1,base10Value:e.parsePseudoBigInt(r.text)}));case 110:return sa;case 95:return mt;case 222:return P6(r);case 13:return Dt;case 203:return HA(r,t,i);case 204:return HP(r,t);case 205:return oC(r,t);case 160:return sC(r,t);case 206:return LM(r,t);case 207:if(r.expression.kind===100)return $M(r);case 208:return ZM(r,t);case 209:return e6(r);case 211:return J6(r,t);case 225:return b3(r);case 212:case 213:return rx(r,t);case 215:return y6(r);case 210:case 228:return r6(r);case 229:return n6(r);case 230:return a6(r);case 214:return v6(r);case 216:return b6(r);case 217:return E6(r);case 218:return T6(r);case 219:return S6(r);case 220:return Fe(r,t);case 221:return w6(r,t);case 224:return BP(r,t);case 226:return zr;case 223:return R6(r);case 231:return UP(r);case 287:return nM(r,t);case 277:return qP(r);case 278:return KP(r);case 281:return XP(r);case 285:return QP(r,t);case 279:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return dr}function _x(r){r.expression&&Gs(r.expression,e.Diagnostics.Type_expected),Wi(r.constraint),Wi(r.default);var t=vl(wn(r));l(t),ga(t)||Mr(r.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,gn(t));var i=Nl(t),o=Bn(t);i&&o&&Rl(o,Il(oi(i,B_(t,o)),o),r.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),Se&&Dg(r.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function mx(r){ff(r),Fb(r);var t=e.getContainingFunction(r);e.hasSyntacticModifier(r,16476)&&(t.kind===170&&e.nodeIsPresent(t.body)||Mr(r,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),t.kind===170&&e.isIdentifier(r.name)&&r.name.escapedText==="constructor"&&Mr(r.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),r.questionToken&&e.isBindingPattern(r.name)&&t.body&&Mr(r,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),r.name&&e.isIdentifier(r.name)&&(r.name.escapedText==="this"||r.name.escapedText==="new")&&(t.parameters.indexOf(r)!==0&&Mr(r,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,r.name.escapedText),(t.kind===170||t.kind===174||t.kind===179)&&Mr(r,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),t.kind===213&&Mr(r,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),(t.kind===171||t.kind===172)&&Mr(r,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),r.dotDotDotToken&&!e.isBindingPattern(r.name)&&!Qi(Eo(An(r.symbol)),xa)&&Mr(r,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function z6(r){var t=q6(r);if(!t){Mr(r,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}var i=bu(t),o=Dc(i);if(!!o){Wi(r.type);var s=r.parameterName;if(o.kind===0||o.kind===2)Oy(s);else if(o.parameterIndex>=0){if(ue(i)&&o.parameterIndex===i.parameters.length-1)Mr(s,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else if(o.type){var c=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)};Rl(o.type,An(i.parameters[o.parameterIndex]),r.type,void 0,c)}}else if(s){for(var L=!1,G=0,ce=t.parameters;G<ce.length;G++){var we=ce[G].name;if(e.isBindingPattern(we)&&gx(we,s,o.parameterName)){L=!0;break}}L||Mr(r.parameterName,e.Diagnostics.Cannot_find_parameter_0,o.parameterName)}}}function q6(r){switch(r.parent.kind){case 213:case 173:case 255:case 212:case 178:case 168:case 167:var t=r.parent;if(r===t.type)return t}}function gx(r,t,i){for(var o=0,s=r.elements;o<s.length;o++){var c=s[o];if(!e.isOmittedExpression(c)){var L=c.name;if(L.kind===79&&L.escapedText===i)return Mr(t,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,i),!0;if((L.kind===201||L.kind===200)&&gx(L,t,i))return!0}}}function gv(r){r.kind===175?oF(r):(r.kind===178||r.kind===255||r.kind===179||r.kind===173||r.kind===170||r.kind===174)&&Yb(r);var t=e.getFunctionFlags(r);if(t&4||((t&3)===3&&De<99&&nl(r,6144),(t&3)===2&&De<4&&nl(r,64),(t&3)!==0&&De<2&&nl(r,128)),jh(e.getEffectiveTypeParameterDeclarations(r)),e.forEach(r.parameters,mx),r.type&&Wi(r.type),Se){M4(r);var i=e.getEffectiveReturnTypeNode(r);if(Ke&&!i)switch(r.kind){case 174:Mr(r,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 173:Mr(r,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(i){var o=e.getFunctionFlags(r);if((o&5)===1){var s=Da(i);if(s===Wn)Mr(i,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var c=Lm(0,s,(o&2)!==0)||Ze,L=Lm(1,s,(o&2)!==0)||c,G=Lm(2,s,(o&2)!==0)||tr,ce=YC(c,L,G,!!(o&2));Rl(ce,s,i)}}else(o&3)===2&&y4(r,i)}r.kind!==175&&r.kind!==315&&Dd(r)}}function X6(r){for(var t=new e.Map,i=new e.Map,o=new e.Map,s=0,c=r.members;s<c.length;s++){var L=c[s];if(L.kind===170)for(var G=0,ce=L.parameters;G<ce.length;G++){var we=ce[G];e.isParameterPropertyDeclaration(we,L)&&!e.isBindingPattern(we.name)&&Et(t,we.name,we.name.escapedText,3)}else{var Ue=e.isStatic(L),Je=L.name;if(!Je)continue;var ar=e.isPrivateIdentifier(Je),_r=ar&&Ue?16:0,Br=ar?o:Ue?i:t,Zr=Je&&e.getPropertyNameForPropertyNameNode(Je);if(Zr)switch(L.kind){case 171:Et(Br,Je,Zr,1|_r);break;case 172:Et(Br,Je,Zr,2|_r);break;case 166:Et(Br,Je,Zr,3|_r);break;case 168:Et(Br,Je,Zr,8|_r);break}}}function Et(Tt,At,Vt,Nn){var on=Tt.get(Vt);if(on)if((on&16)!==(Nn&16))Mr(At,e.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,e.getTextOfNode(At));else{var ca=!!(on&8),la=!!(Nn&8);ca||la?ca!==la&&Mr(At,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(At)):on&Nn&-17?Mr(At,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(At)):Tt.set(Vt,on|Nn)}else Tt.set(Vt,Nn)}}function Y6(r){for(var t=0,i=r.members;t<i.length;t++){var o=i[t],s=o.name,c=e.isStatic(o);if(c&&s){var L=e.getPropertyNameForPropertyNameNode(s);switch(L){case"name":case"length":case"caller":case"arguments":case"prototype":var G=e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,ce=Fc(wn(r));Mr(s,G,L,ce);break}}}}function vx(r){for(var t=new e.Map,i=0,o=r.members;i<o.length;i++){var s=o[i];if(s.kind===165){var c=void 0,L=s.name;switch(L.kind){case 10:case 8:c=L.text;break;case 79:c=e.idText(L);break;default:continue}t.get(c)?(Mr(e.getNameOfDeclaration(s.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,c),Mr(s.name,e.Diagnostics.Duplicate_identifier_0,c)):t.set(c,!0)}}}function iT(r){if(r.kind===257){var t=wn(r);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==r)return}var i=gD(wn(r));if(i!=null&&i.declarations){for(var o=new e.Map,s=function(ce){ce.parameters.length===1&&ce.parameters[0].type&&h_(Da(ce.parameters[0].type),function(we){var Ue=o.get(Bc(we));Ue?Ue.declarations.push(ce):o.set(Bc(we),{type:we,declarations:[ce]})})},c=0,L=i.declarations;c<L.length;c++){var G=L[c];s(G)}o.forEach(function(ce){if(ce.declarations.length>1)for(var we=0,Ue=ce.declarations;we<Ue.length;we++){var Je=Ue[we];Mr(Je,e.Diagnostics.Duplicate_index_signature_for_type_0,gn(ce.type))}})}}function hx(r){!ff(r)&&!NF(r)&&Qb(r.name),Fb(r),oT(r),e.isPrivateIdentifier(r.name)&&e.hasStaticModifier(r)&&r.initializer&&De===99&&!Xe.useDefineForClassFields&&Mr(r.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(r,128)&&r.kind===166&&r.initializer&&Mr(r,e.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,e.declarationNameToString(r.name))}function Q6(r){return e.isPrivateIdentifier(r.name)&&Mr(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),hx(r)}function Z6(r){AI(r)||Qb(r.name),Ax(r),e.hasSyntacticModifier(r,128)&&r.kind===168&&r.body&&Mr(r,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(r.name)),e.isPrivateIdentifier(r.name)&&!e.getContainingClass(r)&&Mr(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),oT(r)}function oT(r){if(e.isPrivateIdentifier(r.name)&&De<99){for(var t=e.getEnclosingBlockScopeContainer(r);t;t=e.getEnclosingBlockScopeContainer(t))Zn(t).flags|=67108864;if(e.isClassExpression(r.parent)){var i=p1(r.parent);i&&(Zn(r.name).flags|=524288,Zn(i).flags|=65536)}}}function $6(r){ff(r),e.forEachChild(r,Wi)}function e4(r){gv(r),xF(r)||IF(r),Wi(r.body);var t=wn(r),i=e.getDeclarationOfKind(t,r.kind);if(r===i&&wb(t),e.nodeIsMissing(r.body)||!Se)return;function o(_r){return e.isPrivateIdentifierClassElementDeclaration(_r)?!0:_r.kind===166&&!e.isStatic(_r)&&!!_r.initializer}var s=r.parent;if(e.getClassExtendsHeritageElement(s)){_1(r.parent,s);var c=RA(s),L=OA(r.body);if(L){c&&Mr(L,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);var G=(e.getEmitScriptTarget(Xe)!==99||!Ye)&&(e.some(r.parent.members,o)||e.some(r.parameters,function(_r){return e.hasSyntacticModifier(_r,16476)}));if(G){for(var ce=r.body.statements,we=void 0,Ue=0,Je=ce;Ue<Je.length;Ue++){var ar=Je[Ue];if(ar.kind===237&&e.isSuperCall(ar.expression)){we=ar;break}if(!e.isPrologueDirective(ar))break}we||Mr(r,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 c||Mr(r,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}function yx(r){if(Se){if(!Yb(r)&&!vF(r)&&Qb(r.name),Fh(r),gv(r),r.kind===171&&!(r.flags&8388608)&&e.nodeIsPresent(r.body)&&r.flags&256&&(r.flags&512||Mr(r.name,e.Diagnostics.A_get_accessor_must_return_a_value)),r.name.kind===161&&qf(r.name),c_(r)){var t=wn(r),i=e.getDeclarationOfKind(t,171),o=e.getDeclarationOfKind(t,172);if(i&&o&&!(Cm(i)&1)){Zn(i).flags|=1;var s=e.getEffectiveModifierFlags(i),c=e.getEffectiveModifierFlags(o);(s&128)!==(c&128)&&(Mr(i.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Mr(o.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(s&16&&!(c&24)||s&8&&!(c&8))&&(Mr(i.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Mr(o.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));var L=_(i),G=_(o);L&&G&&Rl(L,G,i,e.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}var ce=nr(wn(r));r.kind===171&&Z1(r,ce)}Wi(r.body),oT(r)}function r4(r){Fh(r)}function kb(r,t){return P_(e.map(r.typeArguments,Da),t,lf(t),e.isInJSFile(r))}function bx(r,t){for(var i,o,s=!0,c=0;c<t.length;c++){var L=Nl(t[c]);L&&(i||(i=kb(r,t),o=Ol(t,i)),s=s&&Rl(i[c],oi(L,o),r.typeArguments[c],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return s}function sT(r){var t=ih(r);if(!Ua(t)){var i=Zn(r).resolvedSymbol;if(i)return i.flags&524288&&Ja(i).typeParameters||(e.getObjectFlags(t)&4?t.target.localTypeParameters:void 0)}}function lT(r){Kh(r,r.typeArguments),r.kind===177&&r.typeName.jsdocDotPos!==void 0&&!e.isInJSFile(r)&&!e.isInJSDoc(r)&&gp(r,r.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(r.typeArguments,Wi);var t=ih(r);if(!Ua(t)){if(r.typeArguments&&Se){var i=sT(r);i&&bx(r,i)}var o=Zn(r).resolvedSymbol;o&&(e.some(o.declarations,function(s){return Jh(s)&&!!(s.flags&134217728)})&&kc(Nh(r),o.declarations,o.escapedName),t.flags&32&&o.flags&8&&Mr(r,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,gn(t)))}}function t4(r){var t=e.tryCast(r.parent,e.isTypeReferenceType);if(!!t){var i=sT(t);if(!!i){var o=Nl(i[t.typeArguments.indexOf(r)]);return o&&oi(o,Ol(i,kb(t,i)))}}}function n4(r){ND(r)}function a4(r){if(e.forEach(r.members,Wi),Se){var t=gL(r);Ub(t,t.symbol),iT(r),vx(r)}}function i4(r){Wi(r.elementType)}function o4(r){for(var t=r.elements,i=!1,o=!1,s=e.some(t,e.isNamedTupleMember),c=0,L=t;c<L.length;c++){var G=L[c];if(G.kind!==196&&s){sn(G,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var ce=a0(G);if(ce&8){var we=Da(G.type);if(!_p(we)){Mr(G,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(el(we)||ki(we)&&we.target.combinedFlags&4)&&(o=!0)}else if(ce&4){if(o){sn(G,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}o=!0}else if(ce&2){if(o){sn(G,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}i=!0}else if(i){sn(G,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(r.elements,Wi),Da(r)}function s4(r){e.forEach(r.types,Wi),Da(r)}function Ex(r,t){if(!(r.flags&8388608))return r;var i=r.objectType,o=r.indexType;if(Qi(o,qu(i,!1)))return t.kind===206&&e.isAssignmentTarget(t)&&e.getObjectFlags(i)&32&&ru(i)&1&&Mr(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,gn(i)),r;var s=wi(i);if(oc(s,wt)&&ys(o,296))return r;if(M_(i)){var c=f0(o,t);if(c){var L=h_(s,function(G){return Ii(G,c)});if(L&&e.getDeclarationModifierFlagsFromSymbol(L)&24)return Mr(t,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(c)),dr}}return Mr(t,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,gn(o),gn(i)),dr}function l4(r){Wi(r.objectType),Wi(r.indexType),Ex(uL(r),r)}function c4(r){u4(r),Wi(r.typeParameter),Wi(r.nameType),Wi(r.type),r.type||Fp(r,Ze);var t=_0(r),i=of(t);if(i)Rl(i,_t,r.nameType);else{var o=Tc(t);Rl(o,_t,e.getEffectiveConstraintOfTypeParameter(r.typeParameter))}}function u4(r){var t;if(!((t=r.members)===null||t===void 0)&&t.length)return sn(r.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods)}function f4(r){Oy(r)}function d4(r){yF(r),Wi(r.type)}function p4(r){e.forEachChild(r,Wi)}function _4(r){e.findAncestor(r,function(t){return t.parent&&t.parent.kind===188&&t.parent.extendsType===t})||sn(r,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Wi(r.typeParameter),Dd(r)}function m4(r){for(var t=0,i=r.templateSpans;t<i.length;t++){var o=i[t];Wi(o.type);var s=Da(o.type);Rl(s,It,o.type)}Da(r)}function g4(r){Wi(r.argument),Da(r)}function v4(r){r.dotDotDotToken&&r.questionToken&&sn(r,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),r.type.kind===184&&sn(r.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),r.type.kind===185&&sn(r.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Wi(r.type),Da(r)}function Ob(r){return(e.hasEffectiveModifier(r,8)||e.isPrivateIdentifierClassElementDeclaration(r))&&!!(r.flags&8388608)}function Rb(r,t){var i=e.getCombinedModifierFlags(r);return r.parent.kind!==257&&r.parent.kind!==256&&r.parent.kind!==225&&r.flags&8388608&&(!(i&2)&&!(e.isModuleBlock(r.parent)&&e.isModuleDeclaration(r.parent.parent)&&e.isGlobalScopeAugmentation(r.parent.parent))&&(i|=1),i|=2),i&t}function wb(r){if(!Se)return;function t(Yn,Ba){var Ti=Ba!==void 0&&Ba.parent===Yn[0].parent;return Ti?Ba:Yn[0]}function i(Yn,Ba,Ti,Mi,jn){var Fi=Mi^jn;if(Fi!==0){var jr=Rb(t(Yn,Ba),Ti);e.forEach(Yn,function(Sr){var hn=Rb(Sr,Ti)^jr;hn&1?Mr(e.getNameOfDeclaration(Sr),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):hn&2?Mr(e.getNameOfDeclaration(Sr),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):hn&24?Mr(e.getNameOfDeclaration(Sr)||Sr,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):hn&128&&Mr(e.getNameOfDeclaration(Sr),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function o(Yn,Ba,Ti,Mi){if(Ti!==Mi){var jn=e.hasQuestionToken(t(Yn,Ba));e.forEach(Yn,function(Fi){var jr=e.hasQuestionToken(Fi)!==jn;jr&&Mr(e.getNameOfDeclaration(Fi),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}var s=155,c=0,L=s,G=!1,ce=!0,we=!1,Ue,Je,ar,_r=r.declarations,Br=(r.flags&16384)!==0;function Zr(Yn){if(!(Yn.name&&e.nodeIsMissing(Yn.name))){var Ba=!1,Ti=e.forEachChild(Yn.parent,function(hn){if(Ba)return hn;Ba=hn===Yn});if(Ti&&Ti.pos===Yn.end&&Ti.kind===Yn.kind){var Mi=Ti.name||Ti,jn=Ti.name;if(Yn.name&&jn&&(e.isPrivateIdentifier(Yn.name)&&e.isPrivateIdentifier(jn)&&Yn.name.escapedText===jn.escapedText||e.isComputedPropertyName(Yn.name)&&e.isComputedPropertyName(jn)||e.isPropertyNameLiteral(Yn.name)&&e.isPropertyNameLiteral(jn)&&e.getEscapedTextOfIdentifierOrLiteral(Yn.name)===e.getEscapedTextOfIdentifierOrLiteral(jn))){var Fi=(Yn.kind===168||Yn.kind===167)&&e.isStatic(Yn)!==e.isStatic(Ti);if(Fi){var jr=e.isStatic(Yn)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static;Mr(Mi,jr)}return}if(e.nodeIsPresent(Ti.body)){Mr(Mi,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(Yn.name));return}}var Sr=Yn.name||Yn;Br?Mr(Sr,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(Yn,128)?Mr(Sr,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):Mr(Sr,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}var Et=!1,Tt=!1,At=!1,Vt=[];if(_r)for(var Nn=0,on=_r;Nn<on.length;Nn++){var ca=on[Nn],la=ca,di=la.flags&8388608,Aa=la.parent&&(la.parent.kind===257||la.parent.kind===181)||di;if(Aa&&(ar=void 0),(la.kind===256||la.kind===225)&&!di&&(At=!0),la.kind===255||la.kind===168||la.kind===167||la.kind===170){Vt.push(la);var Li=Rb(la,s);c|=Li,L&=Li,G=G||e.hasQuestionToken(la),ce=ce&&e.hasQuestionToken(la);var Bi=e.nodeIsPresent(la.body);Bi&&Ue?Br?Tt=!0:Et=!0:(ar==null?void 0:ar.parent)===la.parent&&ar.end!==la.pos&&Zr(ar),Bi?Ue||(Ue=la):we=!0,ar=la,Aa||(Je=la)}}if(Tt&&e.forEach(Vt,function(Yn){Mr(Yn,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),Et&&e.forEach(Vt,function(Yn){Mr(e.getNameOfDeclaration(Yn)||Yn,e.Diagnostics.Duplicate_function_implementation)}),At&&!Br&&r.flags&16&&_r){var Ai=e.filter(_r,function(Yn){return Yn.kind===256}).map(function(Yn){return e.createDiagnosticForNode(Yn,e.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)});e.forEach(_r,function(Yn){var Ba=Yn.kind===256?e.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:Yn.kind===255?e.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Ba&&e.addRelatedInfo.apply(void 0,Gt([Mr(e.getNameOfDeclaration(Yn)||Yn,Ba,e.symbolName(r))],Ai,!1))})}if(Je&&!Je.body&&!e.hasSyntacticModifier(Je,128)&&!Je.questionToken&&Zr(Je),we&&(_r&&(i(_r,Ue,s,c,L),o(_r,Ue,G,ce)),Ue))for(var xo=Op(r),Wt=bu(Ue),Ft=0,_n=xo;Ft<_n.length;Ft++){var Ca=_n[Ft];if(!CR(Wt,Ca)){e.addRelatedInfo(Mr(Ca.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(Ue,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}function vv(r){if(!Se)return;var t=r.localSymbol;if(!t&&(t=wn(r),!t.exportSymbol)||e.getDeclarationOfKind(t,r.kind)!==r)return;for(var i=0,o=0,s=0,c=0,L=t.declarations;c<L.length;c++){var G=L[c],ce=Et(G),we=Rb(G,513);we&1?we&512?s|=ce:i|=ce:o|=ce}var Ue=i|o,Je=i&o,ar=s&Ue;if(Je||ar)for(var _r=0,Br=t.declarations;_r<Br.length;_r++){var G=Br[_r],ce=Et(G),Zr=e.getNameOfDeclaration(G);ce&ar?Mr(Zr,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(Zr)):ce&Je&&Mr(Zr,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(Zr))}function Et(Tt){var At=Tt;switch(At.kind){case 257:case 258:case 343:case 336:case 337:return 2;case 260:return e.isAmbientModule(At)||e.getModuleInstanceState(At)!==0?5:4;case 256:case 259:case 297:return 3;case 303:return 7;case 270:case 220:var Vt=At,Nn=e.isExportAssignment(Vt)?Vt.expression:Vt.right;if(!e.isEntityNameExpression(Nn))return 1;At=Nn;case 264:case 267:case 266:var on=0,ca=ms(wn(At));return e.forEach(ca.declarations,function(la){on|=Et(la)}),on;case 253:case 202:case 255:case 269:case 79:return 1;default:return e.Debug.failBadSyntaxKind(At)}}}function hv(r,t,i,o){var s=yv(r,t);return s&&J_(s,t,i,o)}function yv(r,t){if(!Na(r)){var i=r;if(i.promisedTypeOfPromise)return i.promisedTypeOfPromise;if(nf(r,oh(!1)))return i.promisedTypeOfPromise=vo(r)[0];if(!Sm(r,262140)){var o=ia(r,"then");if(!Na(o)){var s=o?Ni(o,0):e.emptyArray;if(s.length===0){t&&Mr(t,e.Diagnostics.A_promise_must_have_a_then_method);return}var c=Fs(ma(e.map(s,X1)),2097152);if(!Na(c)){var L=Ni(c,0);if(L.length===0){t&&Mr(t,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return i.promisedTypeOfPromise=ma(e.map(L,X1),2)}}}}}function bv(r,t,i,o,s){var c=t?J_(r,i,o,s):Sd(r,i,o,s);return c||dr}function Tx(r){if(Sm(r,262140))return!1;var t=ia(r,"then");return!!t&&Ni(Fs(t,2097152),0).length>0}function cT(r){var t;if(r.flags&16777216){var i=n0(!1);return!!i&&r.aliasSymbol===i&&((t=r.aliasTypeArguments)===null||t===void 0?void 0:t.length)===1}return!1}function Ev(r){return r.flags&1048576?ds(r,Ev):cT(r)?r.aliasTypeArguments[0]:r}function h4(r){if(Na(r)||cT(r))return r;if(M_(r)){var t=l(r);if(!t||t.flags&3||cf(t)||Tx(t)){var i=n0(!0);if(i)return eg(i,[Ev(r)])}}return e.Debug.assert(yv(r)===void 0,"type provided should not be a non-generic 'promise'-like."),r}function J_(r,t,i,o){var s=Sd(r,t,i,o);return s&&h4(s)}function Sd(r,t,i,o){if(Na(r)||cT(r))return r;var s=r;if(s.awaitedTypeOfType)return s.awaitedTypeOfType;if(r.flags&1048576){var c=t?function(ce){return Sd(ce,t,i,o)}:Sd;return s.awaitedTypeOfType=ds(r,c)}var L=yv(r);if(L){if(r.id===L.id||Fa.lastIndexOf(L.id)>=0){t&&Mr(t,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Fa.push(r.id);var G=Sd(L,t,i,o);return Fa.pop(),G?s.awaitedTypeOfType=G:void 0}if(Tx(r)){t&&(e.Debug.assertIsDefined(i),Mr(t,i,o));return}return s.awaitedTypeOfType=r}function y4(r,t){var i=Da(t);if(De>=2){if(Ua(i))return;var o=oh(!0);if(o!==va&&!nf(i,o)){Mr(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,gn(Sd(i)||Wn));return}}else{if(E4(t),Ua(i))return;var s=e.getEntityNameFromTypeNode(t);if(s===void 0){Mr(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,gn(i));return}var c=rs(s,111551,!0),L=c?An(c):dr;if(Ua(L)){s.kind===79&&s.escapedText==="Promise"&&O_(i)===oh(!1)?Mr(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):Mr(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(s));return}var G=Kk(!0);if(G===Qn){Mr(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(s));return}if(!Rl(L,G,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 ce=s&&e.getFirstIdentifier(s),we=ks(r.locals,ce.escapedText,111551);if(we){Mr(we.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(ce),e.entityNameToString(s));return}}bv(i,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function b4(r){var t=gg(r);Ab(t,r);var i=_o(t);if(!(i.flags&1)){var o,s=MC(r),c;switch(r.parent.kind){case 256:var L=wn(r.parent),G=An(L);o=ma([G,Wn]);break;case 163:o=Wn,c=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 166:o=Wn,c=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 168:case 171:case 172:var ce=jp(r.parent),we=VD(ce);o=ma([we,Wn]);break;default:return e.Debug.fail()}Rl(i,o,r,s,function(){return c})}}function E4(r){Sx(r&&e.getEntityNameFromTypeNode(r))}function Sx(r){if(!!r){var t=e.getFirstIdentifier(r),i=(r.kind===79?788968:1920)|2097152,o=Uo(t,t.escapedText,i,void 0,void 0,!0);o&&o.flags&2097152&&If(o)&&!Lv(ms(o))&&!Ln(o)&&ii(o)}}function Eg(r){var t=uT(r);t&&e.isEntityName(t)&&Sx(t)}function uT(r){if(r)switch(r.kind){case 187:case 186:return Dx(r.types);case 188:return Dx([r.trueType,r.falseType]);case 190:case 196:return uT(r.type);case 177:return r.typeName}}function Dx(r){for(var t,i=0,o=r;i<o.length;i++){for(var s=o[i];s.kind===190||s.kind===196;)s=s.type;if(s.kind!==143&&!(!Er&&(s.kind===195&&s.literal.kind===104||s.kind===152))){var c=uT(s);if(!c)return;if(t){if(!e.isIdentifier(t)||!e.isIdentifier(c)||t.escapedText!==c.escapedText)return}else t=c}}return t}function Pb(r){var t=e.getEffectiveTypeAnnotationNode(r);return e.isRestParameter(r)?e.getRestParameterElementType(t):t}function Fh(r){if(!!r.decorators&&!!e.nodeCanBeDecorated(r,r.parent,r.parent.parent)){Xe.experimentalDecorators||Mr(r,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=r.decorators[0];if(nl(t,8),r.kind===163&&nl(t,32),Xe.emitDecoratorMetadata)switch(nl(t,16),r.kind){case 256:var i=e.getFirstConstructorWithBody(r);if(i)for(var o=0,s=i.parameters;o<s.length;o++){var c=s[o];Eg(Pb(c))}break;case 171:case 172:var L=r.kind===171?172:171,G=e.getDeclarationOfKind(wn(r),L);Eg(ml(r)||G&&ml(G));break;case 168:for(var ce=0,we=r.parameters;ce<we.length;ce++){var c=we[ce];Eg(Pb(c))}Eg(e.getEffectiveReturnTypeNode(r));break;case 166:Eg(e.getEffectiveTypeAnnotationNode(r));break;case 163:Eg(Pb(r));for(var Ue=r.parent,Je=0,ar=Ue.parameters;Je<ar.length;Je++){var c=ar[Je];Eg(Pb(c))}break}e.forEach(r.decorators,b4)}}function T4(r){Se&&(Ax(r),RT(r),Tg(r,r.name))}function S4(r){r.typeExpression||Mr(r.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),r.name&&Dg(r.name,e.Diagnostics.Type_alias_name_cannot_be_0),Wi(r.typeExpression),jh(e.getEffectiveTypeParameterDeclarations(r))}function D4(r){Wi(r.constraint);for(var t=0,i=r.typeParameters;t<i.length;t++){var o=i[t];Wi(o)}}function L4(r){Wi(r.typeExpression)}function A4(r){if(Wi(r.typeExpression),!e.getParameterSymbolFromJSDoc(r)){var t=e.getHostSignatureFromJSDoc(r);if(t){var i=e.getJSDocTags(t).filter(e.isJSDocParameterTag).indexOf(r);if(i>-1&&i<t.parameters.length&&e.isBindingPattern(t.parameters[i].name))return;XE(t)?e.findLast(e.getJSDocTags(t),e.isJSDocParameterTag)===r&&r.typeExpression&&r.typeExpression.type&&!el(Da(r.typeExpression.type))&&Mr(r.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(r.name.kind===160?r.name.right:r.name)):e.isQualifiedName(r.name)?Mr(r.name,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(r.name),e.entityNameToString(r.name.left)):Mr(r.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(r.name))}}}function C4(r){Wi(r.typeExpression)}function x4(r){Se&&!r.type&&!e.isJSDocConstructSignature(r)&&Fp(r,Ze),gv(r)}function I4(r){var t=e.getEffectiveJSDocHost(r);(!t||!e.isClassDeclaration(t)&&!e.isClassExpression(t))&&Mr(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(r.tagName))}function N4(r){var t=e.getEffectiveJSDocHost(r);if(!t||!e.isClassDeclaration(t)&&!e.isClassExpression(t)){Mr(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(r.tagName));return}var i=e.getJSDocTags(t).filter(e.isJSDocAugmentsTag);e.Debug.assert(i.length>0),i.length>1&&Mr(i[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var o=Lx(r.class.expression),s=e.getClassExtendsHeritageElement(t);if(s){var c=Lx(s.expression);c&&o.escapedText!==c.escapedText&&Mr(o,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(r.tagName),e.idText(o),e.idText(c))}}function k4(r){var t=e.getJSDocHost(r);t&&e.isPrivateIdentifierClassElementDeclaration(t)&&Mr(r,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function Lx(r){switch(r.kind){case 79:return r;case 205:return r.name;default:return}}function Ax(r){var t;Fh(r),gv(r);var i=e.getFunctionFlags(r);if(r.name&&r.name.kind===161&&qf(r.name),c_(r)){var o=wn(r),s=r.localSymbol||o,c=(t=s.declarations)===null||t===void 0?void 0:t.find(function(ce){return ce.kind===r.kind&&!(ce.flags&131072)});r===c&&wb(s),o.parent&&wb(o)}var L=r.kind===167?void 0:r.body;if(Wi(L),Z1(r,lm(r)),Se&&!e.getEffectiveReturnTypeNode(r)&&(e.nodeIsMissing(L)&&!Ob(r)&&Fp(r,Ze),i&1&&e.nodeIsPresent(L)&&_o(bu(r))),e.isInJSFile(r)){var G=e.getJSDocTypeTag(r);G&&G.typeExpression&&!S1(Da(G.typeExpression),r)&&Mr(G.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function Dd(r){if(Se){var t=e.getSourceFileOfNode(r),i=gi.get(t.path);i||(i=[],gi.set(t.path,i)),i.push(r)}}function Cx(r,t){for(var i=0,o=r;i<o.length;i++){var s=o[i];switch(s.kind){case 256:case 225:O4(s,t),fT(s,t);break;case 303:case 260:case 234:case 262:case 241:case 242:case 243:Nx(s,t);break;case 170:case 212:case 255:case 213:case 168:case 171:case 172:s.body&&Nx(s,t),fT(s,t);break;case 167:case 173:case 174:case 178:case 179:case 258:case 257:fT(s,t);break;case 189:R4(s,t);break;default:e.Debug.assertNever(s,"Node should not have been registered for unused identifiers check")}}}function xx(r,t,i){var o=e.getNameOfDeclaration(r)||r,s=Jh(r)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;i(r,0,e.createDiagnosticForNode(o,s,t))}function Gh(r){return e.isIdentifier(r)&&e.idText(r).charCodeAt(0)===95}function O4(r,t){for(var i=0,o=r.members;i<o.length;i++){var s=o[i];switch(s.kind){case 168:case 166:case 171:case 172:if(s.kind===172&&s.symbol.flags&32768)break;var c=wn(s);!c.isReferenced&&(e.hasEffectiveModifier(s,8)||e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name))&&!(s.flags&8388608)&&t(s,0,e.createDiagnosticForNode(s.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Wa(c)));break;case 170:for(var L=0,G=s.parameters;L<G.length;L++){var ce=G[L];!ce.symbol.isReferenced&&e.hasSyntacticModifier(ce,8)&&t(ce,0,e.createDiagnosticForNode(ce.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(ce.symbol)))}break;case 175:case 233:case 169:break;default:e.Debug.fail("Unexpected class member")}}}function R4(r,t){var i=r.typeParameter;dT(i)&&t(r,1,e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(i.name)))}function fT(r,t){var i=wn(r).declarations;if(!(!i||e.last(i)!==r))for(var o=e.getEffectiveTypeParameterDeclarations(r),s=new e.Set,c=0,L=o;c<L.length;c++){var G=L[c];if(!!dT(G)){var ce=e.idText(G.name),we=G.parent;if(we.kind!==189&&we.typeParameters.every(dT)){if(e.tryAddToSet(s,we)){var Ue=e.getSourceFileOfNode(we),Je=e.isJSDocTemplateTag(we)?e.rangeOfNode(we):e.rangeOfTypeParameters(Ue,we.typeParameters),ar=we.typeParameters.length===1,_r=ar?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,Br=ar?ce:void 0;t(G,1,e.createFileDiagnostic(Ue,Je.pos,Je.end-Je.pos,_r,Br))}}else t(G,1,e.createDiagnosticForNode(G,e.Diagnostics._0_is_declared_but_its_value_is_never_read,ce))}}}function dT(r){return!(Ga(r.symbol).isReferenced&262144)&&!Gh(r.name)}function Bh(r,t,i,o){var s=String(o(t)),c=r.get(s);c?c[1].push(i):r.set(s,[t,[i]])}function Ix(r){return e.tryCast(e.getRootDeclaration(r),e.isParameter)}function w4(r){return e.isBindingElement(r)?e.isObjectBindingPattern(r.parent)?!!(r.propertyName&&Gh(r.name)):Gh(r.name):e.isAmbientModule(r)||(e.isVariableDeclaration(r)&&e.isForInOrOfStatement(r.parent.parent)||kx(r))&&Gh(r.name)}function Nx(r,t){var i=new e.Map,o=new e.Map,s=new e.Map;r.locals.forEach(function(c){if(!(c.flags&262144?!(c.flags&3&&!(c.isReferenced&3)):c.isReferenced||c.exportSymbol)&&c.declarations)for(var L=0,G=c.declarations;L<G.length;L++){var ce=G[L];if(!w4(ce))if(kx(ce))Bh(i,P4(ce),ce,I);else if(e.isBindingElement(ce)&&e.isObjectBindingPattern(ce.parent)){var we=e.last(ce.parent.elements);(ce===we||!e.last(ce.parent.elements).dotDotDotToken)&&Bh(o,ce.parent,ce,I)}else if(e.isVariableDeclaration(ce))Bh(s,ce.parent,ce,I);else{var Ue=c.valueDeclaration&&Ix(c.valueDeclaration),Je=c.valueDeclaration&&e.getNameOfDeclaration(c.valueDeclaration);Ue&&Je?!e.isParameterPropertyDeclaration(Ue,Ue.parent)&&!e.parameterIsThisKeyword(Ue)&&!Gh(Je)&&(e.isBindingElement(ce)&&e.isArrayBindingPattern(ce.parent)?Bh(o,ce.parent,ce,I):t(Ue,1,e.createDiagnosticForNode(Je,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(c)))):xx(ce,e.symbolName(c),t)}}}),i.forEach(function(c){var L=c[0],G=c[1],ce=L.parent,we=(L.name?1:0)+(L.namedBindings?L.namedBindings.kind===267?1:L.namedBindings.elements.length:0);if(we===G.length)t(ce,0,G.length===1?e.createDiagnosticForNode(ce,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(G).name)):e.createDiagnosticForNode(ce,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var Ue=0,Je=G;Ue<Je.length;Ue++){var ar=Je[Ue];xx(ar,e.idText(ar.name),t)}}),o.forEach(function(c){var L=c[0],G=c[1],ce=Ix(L.parent)?1:0;if(L.elements.length===G.length)G.length===1&&L.parent.kind===253&&L.parent.parent.kind===254?Bh(s,L.parent.parent,L.parent,I):t(L,ce,G.length===1?e.createDiagnosticForNode(L,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Uh(e.first(G).name)):e.createDiagnosticForNode(L,e.Diagnostics.All_destructured_elements_are_unused));else for(var we=0,Ue=G;we<Ue.length;we++){var Je=Ue[we];t(Je,ce,e.createDiagnosticForNode(Je,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Uh(Je.name)))}}),s.forEach(function(c){var L=c[0],G=c[1];if(L.declarations.length===G.length)t(L,0,G.length===1?e.createDiagnosticForNode(e.first(G).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Uh(e.first(G).name)):e.createDiagnosticForNode(L.parent.kind===236?L.parent:L,e.Diagnostics.All_variables_are_unused));else for(var ce=0,we=G;ce<we.length;ce++){var Ue=we[ce];t(Ue,0,e.createDiagnosticForNode(Ue,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Uh(Ue.name)))}})}function Uh(r){switch(r.kind){case 79:return e.idText(r);case 201:case 200:return Uh(e.cast(e.first(r.elements),e.isBindingElement).name);default:return e.Debug.assertNever(r)}}function kx(r){return r.kind===266||r.kind===269||r.kind===267}function P4(r){return r.kind===266?r:r.kind===267?r.parent:r.parent.parent}function Mb(r){if(r.kind===234&&df(r),e.isFunctionOrModuleBlock(r)){var t=Nr;e.forEach(r.statements,Wi),Nr=t}else e.forEach(r.statements,Wi);r.locals&&Dd(r)}function M4(r){De>=2||!e.hasRestParameter(r)||r.flags&8388608||e.nodeIsMissing(r.body)||e.forEach(r.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===Jr.escapedName&&Zl("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function Tv(r,t,i){if((t==null?void 0:t.escapedText)!==i||r.kind===166||r.kind===165||r.kind===168||r.kind===167||r.kind===171||r.kind===172||r.kind===294||r.flags&8388608||(e.isImportClause(r)||e.isImportEqualsDeclaration(r)||e.isImportSpecifier(r))&&e.isTypeOnlyImportOrExportDeclaration(r))return!1;var o=e.getRootDeclaration(r);return!(e.isParameter(o)&&e.nodeIsMissing(o.parent.body))}function F4(r){e.findAncestor(r,function(t){if(Cm(t)&4){var i=r.kind!==79;return i?Mr(e.getNameOfDeclaration(r),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Mr(r,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1})}function G4(r){e.findAncestor(r,function(t){if(Cm(t)&8){var i=r.kind!==79;return i?Mr(e.getNameOfDeclaration(r),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Mr(r,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1})}function B4(r,t){if(!(Ae>=e.ModuleKind.ES2015&&!(Ae>=e.ModuleKind.Node12&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS))&&!(!t||!Tv(r,t,"require")&&!Tv(r,t,"exports"))&&!(e.isModuleDeclaration(r)&&e.getModuleInstanceState(r)!==1)){var i=fa(r);i.kind===303&&e.isExternalOrCommonJsModule(i)&&Zl("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 U4(r,t){if(!(!t||De>=4||!Tv(r,t,"Promise"))&&!(e.isModuleDeclaration(r)&&e.getModuleInstanceState(r)!==1)){var i=fa(r);i.kind===303&&e.isExternalOrCommonJsModule(i)&&i.flags&2048&&Zl("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 V4(r,t){De<=8&&(Tv(r,t,"WeakMap")||Tv(r,t,"WeakSet"))&&kn.push(r)}function W4(r){var t=e.getEnclosingBlockScopeContainer(r);Cm(t)&67108864&&(e.Debug.assert(e.isNamedDeclaration(r)&&e.isIdentifier(r.name)&&typeof r.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),Zl("noEmit",r,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,r.name.escapedText))}function j4(r,t){t&&De>=2&&De<=8&&Tv(r,t,"Reflect")&&Kn.push(r)}function H4(r){var t=!1;if(e.isClassExpression(r))for(var i=0,o=r.members;i<o.length;i++){var s=o[i];if(Cm(s)&134217728){t=!0;break}}else if(e.isFunctionExpression(r))Cm(r)&134217728&&(t=!0);else{var c=e.getEnclosingBlockScopeContainer(r);c&&Cm(c)&134217728&&(t=!0)}t&&(e.Debug.assert(e.isNamedDeclaration(r)&&e.isIdentifier(r.name),"The target of a Reflect collision check should be an identifier"),Zl("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,e.declarationNameToString(r.name),"Reflect"))}function Tg(r,t){!t||(B4(r,t),U4(r,t),V4(r,t),j4(r,t),e.isClassLike(r)?(Dg(t,e.Diagnostics.Class_name_cannot_be_0),r.flags&8388608||v3(t)):e.isEnumDeclaration(r)&&Dg(t,e.Diagnostics.Enum_name_cannot_be_0))}function J4(r){if(!((e.getCombinedNodeFlags(r)&3)!==0||e.isParameterDeclaration(r))&&!(r.kind===253&&!r.initializer)){var t=wn(r);if(t.flags&1){if(!e.isIdentifier(r.name))return e.Debug.fail();var i=Uo(r,r.name.escapedText,3,void 0,void 0,!1);if(i&&i!==t&&i.flags&2&&uv(i)&3){var o=e.getAncestor(i.valueDeclaration,254),s=o.parent.kind===236&&o.parent.parent?o.parent.parent:void 0,c=s&&(s.kind===234&&e.isFunctionLike(s.parent)||s.kind===261||s.kind===260||s.kind===303);if(!c){var L=Wa(i);Mr(r,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,L,L)}}}}}function Sv(r){return r===xr?Ze:r===ta?Sn:r}function Fb(r){var t;if(Fh(r),e.isBindingElement(r)||Wi(r.type),!!r.name){if(r.name.kind===161&&(qf(r.name),r.initializer&&Ss(r.initializer)),e.isBindingElement(r)){e.isObjectBindingPattern(r.parent)&&r.dotDotDotToken&&De<5&&nl(r,4),r.propertyName&&r.propertyName.kind===161&&qf(r.propertyName);var i=r.parent.parent,o=Go(i),s=r.propertyName||r.name;if(o&&!e.isBindingPattern(s)){var c=lp(s);if(gu(c)){var L=vu(c),G=Ii(o,L);G&&(xh(G,void 0,!1),O1(r,!!i.initializer&&i.initializer.kind===106,!1,o,G))}}}if(e.isBindingPattern(r.name)&&(r.name.kind===201&&De<2&&Xe.downlevelIteration&&nl(r,512),e.forEach(r.name.elements,Wi)),r.initializer&&e.isParameterDeclaration(r)&&e.nodeIsMissing(e.getContainingFunction(r).body)){Mr(r,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(e.isBindingPattern(r.name)){var ce=r.initializer&&r.parent.parent.kind!==242,we=r.name.elements.length===0;if(ce||we){var Ue=Cl(r);if(ce){var Je=Ss(r.initializer);Er&&we?iC(Je,r):pp(Je,Cl(r),r,r.initializer)}we&&(e.isArrayBindingPattern(r.name)?Ld(65,Ue,kr,r):Er&&iC(Ue,r))}return}var ar=wn(r);if(ar.flags&2097152&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)){Vb(r);return}var _r=Sv(An(ar));if(r===ar.valueDeclaration){var Br=e.getEffectiveInitializer(r);if(Br){var Zr=e.isInJSFile(r)&&e.isObjectLiteralExpression(Br)&&(Br.properties.length===0||e.isPrototypeAccess(r.name))&&!!(!((t=ar.exports)===null||t===void 0)&&t.size);!Zr&&r.parent.parent.kind!==242&&pp(Ss(Br),_r,r,Br,void 0)}ar.declarations&&ar.declarations.length>1&&e.some(ar.declarations,function(Tt){return Tt!==r&&e.isVariableLike(Tt)&&!Rx(Tt,r)})&&Mr(r.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(r.name))}else{var Et=Sv(Cl(r));!Ua(_r)&&!Ua(Et)&&!jf(_r,Et)&&!(ar.flags&67108864)&&Ox(ar.valueDeclaration,_r,r,Et),r.initializer&&pp(Ss(r.initializer),Et,r,r.initializer,void 0),ar.valueDeclaration&&!Rx(r,ar.valueDeclaration)&&Mr(r.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(r.name))}r.kind!==166&&r.kind!==165&&(vv(r),(r.kind===253||r.kind===202)&&J4(r),Tg(r,r.name))}}function Ox(r,t,i,o){var s=e.getNameOfDeclaration(i),c=i.kind===166||i.kind===165?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,L=e.declarationNameToString(s),G=Mr(s,c,L,gn(t),gn(o));r&&e.addRelatedInfo(G,e.createDiagnosticForNode(r,e.Diagnostics._0_was_also_declared_here,L))}function Rx(r,t){if(r.kind===163&&t.kind===253||r.kind===253&&t.kind===163)return!0;if(e.hasQuestionToken(r)!==e.hasQuestionToken(t))return!1;var i=504;return e.getSelectedEffectiveModifierFlags(r,i)===e.getSelectedEffectiveModifierFlags(t,i)}function pT(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkVariableDeclaration",{kind:r.kind,pos:r.pos,end:r.end}),DF(r),Fb(r),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function K4(r){return EF(r),Fb(r)}function z4(r){!ff(r)&&!PT(r.declarationList)&&LF(r),e.forEach(r.declarationList.declarations,Wi)}function q4(r){df(r),ui(r.expression)}function X4(r){df(r);var t=Sg(r.expression);_T(r.expression,t,r.thenStatement),Wi(r.thenStatement),r.thenStatement.kind===235&&Mr(r.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Wi(r.elseStatement)}function _T(r,t,i){if(!!Er&&!lc(t)){var o=e.isBinaryExpression(r)?r.right:r;if(!(e.isPropertyAccessExpression(o)&&sx(o.expression))){var s=e.isIdentifier(o)?o:e.isPropertyAccessExpression(o)?o.name:e.isBinaryExpression(o)&&e.isIdentifier(o.right)?o.right:void 0,c=Ni(t,0),L=!!hv(t);if(!(c.length===0&&!L)){var G=s&&Vc(s);if(!(!G&&!L)){var ce=G&&e.isBinaryExpression(r.parent)&&Q4(r.parent,G)||G&&i&&Y4(r,i,s,G);ce||(L?ku(o,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,Qd(t)):Mr(o,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}}}}function Y4(r,t,i,o){return!!e.forEachChild(t,function s(c){if(e.isIdentifier(c)){var L=Vc(c);if(L&&L===o){if(e.isIdentifier(r))return!0;for(var G=i.parent,ce=c.parent;G&&ce;){if(e.isIdentifier(G)&&e.isIdentifier(ce)||G.kind===108&&ce.kind===108)return Vc(G)===Vc(ce);if(e.isPropertyAccessExpression(G)&&e.isPropertyAccessExpression(ce)){if(Vc(G.name)!==Vc(ce.name))return!1;ce=ce.expression,G=G.expression}else if(e.isCallExpression(G)&&e.isCallExpression(ce))ce=ce.expression,G=G.expression;else return!1}}}return e.forEachChild(c,s)})}function Q4(r,t){for(;e.isBinaryExpression(r)&&r.operatorToken.kind===55;){var i=e.forEachChild(r.right,function o(s){if(e.isIdentifier(s)){var c=Vc(s);if(c&&c===t)return!0}return e.forEachChild(s,o)});if(i)return!0;r=r.parent}return!1}function Z4(r){df(r),Wi(r.statement),Sg(r.expression)}function $4(r){df(r),Sg(r.expression),Wi(r.statement)}function wx(r,t){return r.flags&16384&&Mr(t,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),r}function Sg(r,t){return wx(ui(r,t),r)}function e3(r){df(r)||r.initializer&&r.initializer.kind===254&&PT(r.initializer),r.initializer&&(r.initializer.kind===254?e.forEach(r.initializer.declarations,pT):ui(r.initializer)),r.condition&&Sg(r.condition),r.incrementor&&ui(r.incrementor),Wi(r.statement),r.locals&&Dd(r)}function r3(r){LI(r);var t=e.getContainingFunctionOrClassStaticBlock(r);if(r.awaitModifier)if(t&&e.isClassStaticBlockDeclaration(t))sn(r.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block);else{var i=e.getFunctionFlags(t);(i&6)===2&&De<99&&nl(r,16384)}else Xe.downlevelIteration&&De<2&&nl(r,256);if(r.initializer.kind===254)Px(r);else{var o=r.initializer,s=Vh(r);if(o.kind===203||o.kind===204)S_(o,s||dr);else{var c=ui(o);mv(o,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),s&&pp(s,c,o,r.expression)}}Wi(r.statement),r.locals&&Dd(r)}function t3(r){LI(r);var t=R1(ui(r.expression));if(r.initializer.kind===254){var i=r.initializer.declarations[0];i&&e.isBindingPattern(i.name)&&Mr(i.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Px(r)}else{var o=r.initializer,s=ui(o);o.kind===203||o.kind===204?Mr(o,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Qi(NO(t),s)?mv(o,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):Mr(o,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(t===en||!ys(t,126091264))&&Mr(r.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,gn(t)),Wi(r.statement),r.locals&&Dd(r)}function Px(r){var t=r.initializer;if(t.declarations.length>=1){var i=t.declarations[0];pT(i)}}function Vh(r){var t=r.awaitModifier?15:13;return Ld(t,_g(r.expression),kr,r.expression)}function Ld(r,t,i,o){return Na(t)?t:mT(r,t,i,o,!0)||Ze}function mT(r,t,i,o,s){var c=(r&2)!==0;if(t===en){yT(o,t,c);return}var L=De>=2,G=!L&&Xe.downlevelIteration,ce=Xe.noUncheckedIndexedAccess&&!!(r&128);if(L||G||c){var we=Wh(t,r,L?o:void 0);if(s&&we){var Ue=r&8?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r&32?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r&64?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r&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;Ue&&Rl(i,we.nextType,o,Ue)}if(we||L)return ce?sv(we&&we.yieldType):we&&we.yieldType}var Je=t,ar=!1,_r=!1;if(r&4){if(Je.flags&1048576){var Br=t.types,Zr=e.filter(Br,function(ca){return!(ca.flags&402653316)});Zr!==Br&&(Je=ma(Zr,2))}else Je.flags&402653316&&(Je=en);if(_r=Je!==t,_r&&(De<1&&o&&(Mr(o,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),ar=!0),Je.flags&131072))return ce?sv(xt):xt}if(!_p(Je)){if(o&&!ar){var Et=!!(r&4)&&!_r,Tt=on(Et,G),At=Tt[0],Vt=Tt[1];ku(o,Vt&&!!hv(Je),At,gn(Je))}return _r?ce?sv(xt):xt:void 0}var Nn=tu(Je,wt);if(_r&&Nn)return Nn.flags&402653316&&!Xe.noUncheckedIndexedAccess?xt:ma(ce?[Nn,xt,kr]:[Nn,xt],2);return r&128?sv(Nn):Nn;function on(ca,la){var di;if(la)return ca?[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 Aa=Mx(r,0,t,void 0);return Aa?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:n3((di=t.symbol)===null||di===void 0?void 0:di.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:ca?[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 n3(r){switch(r){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 Mx(r,t,i,o){if(!Na(i)){var s=Wh(i,r,o);return s&&s[te(t)]}}function Xf(r,t,i){if(r===void 0&&(r=en),t===void 0&&(t=en),i===void 0&&(i=tr),r.flags&67359327&&t.flags&180227&&i.flags&180227){var o=sc([r,t,i]),s=co.get(o);return s||(s={yieldType:r,returnType:t,nextType:i},co.set(o,s)),s}return{yieldType:r,returnType:t,nextType:i}}function Fx(r){for(var t,i,o,s=0,c=r;s<c.length;s++){var L=c[s];if(!(L===void 0||L===za)){if(L===hi)return hi;t=e.append(t,L.yieldType),i=e.append(i,L.returnType),o=e.append(o,L.nextType)}}return t||i||o?Xf(t&&ma(t),i&&ma(i),o&&To(o)):za}function Gb(r,t){return r[t]}function Xu(r,t,i){return r[t]=i}function Wh(r,t,i){if(Na(r))return hi;if(!(r.flags&1048576)){var o=Gx(r,t,i);if(o===za){i&&yT(i,r,!!(t&2));return}return o}var s=t&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",c=Gb(r,s);if(c)return c===za?void 0:c;for(var L,G=0,ce=r.types;G<ce.length;G++){var we=ce[G],Ue=Gx(we,t,i);if(Ue===za){i&&yT(i,r,!!(t&2)),Xu(r,s,za);return}else L=e.append(L,Ue)}var Je=L?Fx(L):za;return Xu(r,s,Je),Je===za?void 0:Je}function gT(r,t){if(r===za)return za;if(r===hi)return hi;var i=r.yieldType,o=r.returnType,s=r.nextType;return t&&n0(!0),Xf(J_(i,t)||Ze,J_(o,t)||Ze,s)}function Gx(r,t,i){if(Na(r))return hi;if(t&2){var o=vT(r,Mo)||Ux(r,Mo);if(o)return t&8?gT(o,i):o}if(t&1){var o=vT(r,Fo)||Ux(r,Fo);if(o)if(t&2){if(o!==za)return Xu(r,"iterationTypesOfAsyncIterable",gT(o,i))}else return o}if(t&2){var o=hT(r,Mo,i);if(o!==za)return o}if(t&1){var o=hT(r,Fo,i);if(o!==za)return t&2?Xu(r,"iterationTypesOfAsyncIterable",o?gT(o,i):za):o}return za}function vT(r,t){return Gb(r,t.iterableCacheKey)}function Bx(r,t){var i=vT(r,t)||hT(r,t,void 0);return i===za?Po:i}function Ux(r,t){var i;if(nf(r,i=t.getGlobalIterableType(!1))||nf(r,i=t.getGlobalIterableIteratorType(!1))){var o=vo(r)[0],s=Bx(i,t),c=s.returnType,L=s.nextType;return Xu(r,t.iterableCacheKey,Xf(t.resolveIterationType(o,void 0)||o,t.resolveIterationType(c,void 0)||c,L))}if(nf(r,t.getGlobalGeneratorType(!1))){var G=vo(r),o=G[0],c=G[1],L=G[2];return Xu(r,t.iterableCacheKey,Xf(t.resolveIterationType(o,void 0)||o,t.resolveIterationType(c,void 0)||c,L))}}function a3(r){var t=MD(!1),i=t&&ia(An(t),e.escapeLeadingUnderscores(r));return i&&gu(i)?vu(i):"__@".concat(r)}function hT(r,t,i){var o,s=Ii(r,a3(t.iteratorSymbolName)),c=s&&!(s.flags&16777216)?An(s):void 0;if(Na(c))return Xu(r,t.iterableCacheKey,hi);var L=c?Ni(c,0):void 0;if(!e.some(L))return Xu(r,t.iterableCacheKey,za);var G=To(e.map(L,_o)),ce=(o=Vx(G,t,i))!==null&&o!==void 0?o:za;return Xu(r,t.iterableCacheKey,ce)}function yT(r,t,i){var o=i?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;ku(r,!!hv(t),o,gn(t))}function Vx(r,t,i){if(Na(r))return hi;var o=Wx(r,t)||i3(r,t)||Hx(r,t,i);return o===za?void 0:o}function Wx(r,t){return Gb(r,t.iteratorCacheKey)}function i3(r,t){var i=t.getGlobalIterableIteratorType(!1);if(nf(r,i)){var o=vo(r)[0],s=Wx(i,t)||Hx(i,t,void 0),c=s===za?Po:s,L=c.returnType,G=c.nextType;return Xu(r,t.iteratorCacheKey,Xf(o,L,G))}if(nf(r,t.getGlobalIteratorType(!1))||nf(r,t.getGlobalGeneratorType(!1))){var ce=vo(r),o=ce[0],L=ce[1],G=ce[2];return Xu(r,t.iteratorCacheKey,Xf(o,L,G))}}function jx(r,t){var i=ia(r,"done")||mt;return Qi(t===0?mt:sa,i)}function o3(r){return jx(r,0)}function s3(r){return jx(r,1)}function l3(r){if(Na(r))return hi;var t=Gb(r,"iterationTypesOfIteratorResult");if(t)return t;if(nf(r,eO(!1))){var i=vo(r)[0];return Xu(r,"iterationTypesOfIteratorResult",Xf(i,void 0,void 0))}if(nf(r,rO(!1))){var o=vo(r)[0];return Xu(r,"iterationTypesOfIteratorResult",Xf(void 0,o,void 0))}var s=rl(r,o3),c=s!==en?ia(s,"value"):void 0,L=rl(r,s3),G=L!==en?ia(L,"value"):void 0;return!c&&!G?Xu(r,"iterationTypesOfIteratorResult",za):Xu(r,"iterationTypesOfIteratorResult",Xf(c,G||Wn,void 0))}function bT(r,t,i,o){var s,c,L,G,ce=Ii(r,i);if(!(!ce&&i!=="next")){var we=ce&&!(i==="next"&&ce.flags&16777216)?i==="next"?An(ce):Fs(An(ce),2097152):void 0;if(Na(we))return i==="next"?hi:Zi;var Ue=we?Ni(we,0):e.emptyArray;if(Ue.length===0){if(o){var Je=i==="next"?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;Mr(o,Je,i)}return i==="next"?hi:void 0}if((we==null?void 0:we.symbol)&&Ue.length===1){var ar=t.getGlobalGeneratorType(!1),_r=t.getGlobalIteratorType(!1),Br=((c=(s=ar.symbol)===null||s===void 0?void 0:s.members)===null||c===void 0?void 0:c.get(i))===we.symbol,Zr=!Br&&((G=(L=_r.symbol)===null||L===void 0?void 0:L.members)===null||G===void 0?void 0:G.get(i))===we.symbol;if(Br||Zr){var Et=Br?ar:_r,Tt=we.mapper;return Xf(dp(Et.typeParameters[0],Tt),dp(Et.typeParameters[1],Tt),i==="next"?dp(Et.typeParameters[2],Tt):void 0)}}for(var At,Vt,Nn=0,on=Ue;Nn<on.length;Nn++){var ca=on[Nn];i!=="throw"&&e.some(ca.parameters)&&(At=e.append(At,Uc(ca,0))),Vt=e.append(Vt,_o(ca))}var la,di;if(i!=="throw"){var Aa=At?ma(At):tr;if(i==="next")di=Aa;else if(i==="return"){var Li=t.resolveIterationType(Aa,o)||Ze;la=e.append(la,Li)}}var Bi,Ai=Vt?To(Vt):en,xo=t.resolveIterationType(Ai,o)||Ze,Wt=l3(xo);return Wt===za?(o&&Mr(o,t.mustHaveAValueDiagnostic,i),Bi=Ze,la=e.append(la,Ze)):(Bi=Wt.yieldType,la=e.append(la,Wt.returnType)),Xf(Bi,ma(la),di)}}function Hx(r,t,i){var o=Fx([bT(r,t,"next",i),bT(r,t,"return",i),bT(r,t,"throw",i)]);return Xu(r,t.iteratorCacheKey,o)}function Lm(r,t,i){if(!Na(t)){var o=Jx(t,i);return o&&o[te(r)]}}function Jx(r,t){if(Na(r))return hi;var i=t?2:1,o=t?Mo:Fo;return Wh(r,i,void 0)||Vx(r,o,void 0)}function c3(r){df(r)||bF(r)}function Bb(r,t){var i=!!(t&1),o=!!(t&2);return i?Lm(1,r,o)||dr:o?Sd(r)||dr:r}function Kx(r,t){var i=Bb(t,e.getFunctionFlags(r));return!!i&&Jo(i,16387)}function u3(r){var t;if(!df(r)){var i=e.getContainingFunctionOrClassStaticBlock(r);if(i&&e.isClassStaticBlockDeclaration(i)){Gs(r,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!i){Gs(r,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);return}var o=bu(i),s=_o(o),c=e.getFunctionFlags(i);if(Er||r.expression||s.flags&131072){var L=r.expression?Ss(r.expression):kr;if(i.kind===172)r.expression&&Mr(r,e.Diagnostics.Setters_cannot_return_a_value);else if(i.kind===170)r.expression&&!pp(L,s,r,r.expression)&&Mr(r,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(lm(i)){var G=(t=Bb(s,c))!==null&&t!==void 0?t:s,ce=c&2?bv(L,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):L;G&&pp(ce,G,r,r.expression)}}else i.kind!==170&&Xe.noImplicitReturns&&!Kx(i,s)&&Mr(r,e.Diagnostics.Not_all_code_paths_return_a_value)}}function f3(r){df(r)||r.flags&32768&&Gs(r,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),ui(r.expression);var t=e.getSourceFileOfNode(r);if(!D_(t)){var i=e.getSpanOfTokenAtPosition(t,r.pos).start,o=r.statement.pos;gp(t,i,o-i,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function d3(r){df(r);var t,i=!1,o=ui(r.expression),s=mm(o);e.forEach(r.caseBlock.clauses,function(c){if(c.kind===289&&!i&&(t===void 0?t=c:(sn(c,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),i=!0)),Se&&c.kind===288){var L=ui(c.expression),G=mm(L),ce=o;(!G||!s)&&(L=G?Du(L):L,ce=Du(o)),tT(ce,L)||kL(L,ce,c.expression,void 0)}e.forEach(c.statements,Wi),Xe.noFallthroughCasesInSwitch&&c.fallthroughFlowNode&&bh(c.fallthroughFlowNode)&&Mr(c,e.Diagnostics.Fallthrough_case_in_switch)}),r.caseBlock.locals&&Dd(r.caseBlock)}function p3(r){df(r)||e.findAncestor(r.parent,function(t){return e.isFunctionLike(t)?"quit":t.kind===249&&t.label.escapedText===r.label.escapedText?(sn(r.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(r.label)),!0):!1}),Wi(r.statement)}function _3(r){df(r)||e.isIdentifier(r.expression)&&!r.expression.escapedText&&MF(r,e.Diagnostics.Line_break_not_permitted_here),r.expression&&ui(r.expression)}function m3(r){df(r),Mb(r.tryBlock);var t=r.catchClause;if(t){if(t.variableDeclaration){var i=t.variableDeclaration,o=e.getEffectiveTypeAnnotationNode(e.getRootDeclaration(i));if(o){var s=ep(i,!1);s&&!(s.flags&3)&&Gs(o,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(i.initializer)Gs(i.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var c=t.block.locals;c&&e.forEachKey(t.locals,function(L){var G=c.get(L);(G==null?void 0:G.valueDeclaration)&&(G.flags&2)!==0&&sn(G.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,L)})}}Mb(t.block)}r.finallyBlock&&Mb(r.finallyBlock)}function Ub(r,t,i){var o=Ms(r);if(o.length!==0){for(var s=0,c=sf(r);s<c.length;s++){var L=c[s];i&&L.flags&4194304||zx(r,L,tg(L,8576,!0),Gf(L))}var G=t.valueDeclaration;if(G&&e.isClassLike(G))for(var ce=0,we=G.members;ce<we.length;ce++){var Ue=we[ce];if(!e.isStatic(Ue)&&!c_(Ue)){var Je=wn(Ue);zx(r,Je,tl(Ue.name.expression),Gf(Je))}}if(o.length>1)for(var ar=0,_r=o;ar<_r.length;ar++){var Br=_r[ar];g3(r,Br)}}}function zx(r,t,i,o){var s=t.valueDeclaration,c=e.getNameOfDeclaration(s);if(!(c&&e.isPrivateIdentifier(c)))for(var L=rh(r,i),G=e.getObjectFlags(r)&2?e.getDeclarationOfKind(r.symbol,257):void 0,ce=s&&s.kind===220||c&&c.kind===161||Ts(t)===r.symbol?s:void 0,we=function(_r){var Br=_r.declaration&&Ts(wn(_r.declaration))===r.symbol?_r.declaration:void 0,Zr=ce||Br||(G&&!e.some(xl(r),function(Et){return!!hd(Et,t.escapedName)&&!!tu(Et,_r.keyType)})?G:void 0);Zr&&!Qi(o,_r.type)&&Mr(Zr,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Wa(t),gn(o),gn(_r.keyType),gn(_r.type))},Ue=0,Je=L;Ue<Je.length;Ue++){var ar=Je[Ue];we(ar)}}function g3(r,t){for(var i=t.declaration,o=rh(r,t.keyType),s=e.getObjectFlags(r)&2?e.getDeclarationOfKind(r.symbol,257):void 0,c=i&&Ts(wn(i))===r.symbol?i:void 0,L=function(Ue){if(Ue===t)return"continue";var Je=Ue.declaration&&Ts(wn(Ue.declaration))===r.symbol?Ue.declaration:void 0,ar=c||Je||(s&&!e.some(xl(r),function(_r){return!!oc(_r,t.keyType)&&!!tu(_r,Ue.keyType)})?s:void 0);ar&&!Qi(t.type,Ue.type)&&Mr(ar,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,gn(t.keyType),gn(t.type),gn(Ue.keyType),gn(Ue.type))},G=0,ce=o;G<ce.length;G++){var we=ce[G];L(we)}}function Dg(r,t){switch(r.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Mr(r,t,r.escapedText)}}function v3(r){De>=1&&r.escapedText==="Object"&&(Ae<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&Mr(r,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[Ae])}function jh(r){if(r)for(var t=!1,i=0;i<r.length;i++){var o=r[i];if(_x(o),Se){o.default?(t=!0,h3(o.default,r,i)):t&&Mr(o,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var s=0;s<i;s++)r[s].symbol===o.symbol&&Mr(o.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(o.name))}}}function h3(r,t,i){o(r);function o(s){if(s.kind===177){var c=ih(s);if(c.flags&262144)for(var L=i;L<t.length;L++)c.symbol===wn(t[L])&&Mr(s,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(s,o)}}function qx(r){if(!(r.declarations&&r.declarations.length===1)){var t=Ja(r);if(!t.typeParametersChecked){t.typeParametersChecked=!0;var i=A3(r);if(!i||i.length<=1)return;var o=po(r);if(!y3(i,o.localTypeParameters))for(var s=Wa(r),c=0,L=i;c<L.length;c++){var G=L[c];Mr(G.name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,s)}}}}function y3(r,t){for(var i=e.length(t),o=lf(t),s=0,c=r;s<c.length;s++){var L=c[s],G=e.getEffectiveTypeParameterDeclarations(L),ce=G.length;if(ce<o||ce>i)return!1;for(var we=0;we<ce;we++){var Ue=G[we],Je=t[we];if(Ue.name.escapedText!==Je.symbol.escapedName)return!1;var ar=e.getEffectiveConstraintOfTypeParameter(Ue),_r=ar&&Da(ar),Br=Nl(Je);if(_r&&Br&&!jf(_r,Br))return!1;var Zr=Ue.default&&Da(Ue.default),Et=Bn(Je);if(Zr&&Et&&!jf(Zr,Et))return!1}}return!0}function b3(r){return Xx(r),Dv(r),An(wn(r))}function E3(r){e.forEach(r.members,Wi),Dd(r)}function T3(r){e.some(r.decorators)&&e.some(r.members,function(t){return e.hasStaticModifier(t)&&e.isPrivateIdentifierClassElementDeclaration(t)})&&sn(r.decorators[0],e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!r.name&&!e.hasSyntacticModifier(r,512)&&Gs(r,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),Xx(r),e.forEach(r.members,Wi),Dd(r)}function Xx(r){nF(r),Fh(r),Tg(r,r.name),jh(e.getEffectiveTypeParameterDeclarations(r)),vv(r);var t=wn(r),i=po(t),o=Il(i),s=An(t);qx(t),wb(t),X6(r);var c=!!(r.flags&8388608);c||Y6(r);var L=e.getEffectiveBaseTypeNode(r);if(L){e.forEach(L.typeArguments,Wi),De<2&&nl(L.parent,1);var G=e.getClassExtendsHeritageElement(r);G&&G!==L&&ui(G.expression);var ce=xl(i);if(ce.length&&Se){var we=ce[0],Ue=Ju(i),Je=wi(Ue);if(D3(Je,L),Wi(L.expression),e.some(L.typeArguments)){e.forEach(L.typeArguments,Wi);for(var ar=0,_r=vd(Je,L.typeArguments,L);ar<_r.length;ar++){var Br=_r[ar];if(!bx(L,Br.typeParameters))break}}var Zr=Il(we,i.thisType);if(Rl(o,Zr,void 0)?Rl(s,CL(Je),r.name||r,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):Zx(r,o,Zr,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),Ue.flags&8650752)if(!o_(s))Mr(r.name||r,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);else{var Et=Ni(Ue,1);Et.some(function(di){return di.flags&4})&&!e.hasSyntacticModifier(r,128)&&Mr(r.name||r,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract)}if(!(Je.symbol&&Je.symbol.flags&32)&&!(Ue.flags&8650752)){var Tt=Vm(Je,L.typeArguments,L);e.forEach(Tt,function(di){return!ou(di.declaration)&&!jf(_o(di),we)})&&Mr(L.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}C3(i,we)}}S3(r,i,o,s);var At=e.getEffectiveImplementsTypeNodes(r);if(At)for(var Vt=0,Nn=At;Vt<Nn.length;Vt++){var on=Nn[Vt];if((!e.isEntityNameExpression(on.expression)||e.isOptionalChain(on.expression))&&Mr(on.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),lT(on),Se){var ca=Eo(Da(on));if(!Ua(ca))if(Ku(ca)){var la=ca.symbol&&ca.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,Zr=Il(ca,i.thisType);Rl(o,Zr,void 0)||Zx(r,o,Zr,la)}else Mr(on,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}Se&&(Ub(i,t),Ub(s,t,!0),iT(r),N3(r))}function S3(r,t,i,o){for(var s=e.getEffectiveBaseTypeNode(r),c=s&&xl(t),L=c!=null&&c.length?Il(e.first(c),t.thisType):void 0,G=Ju(t),ce=function(ar){if(e.hasAmbientModifier(ar))return"continue";e.isConstructorDeclaration(ar)&&e.forEach(ar.parameters,function(_r){e.isParameterPropertyDeclaration(_r,ar)&&Yx(r,o,G,L,t,i,_r,!0)}),Yx(r,o,G,L,t,i,ar,!1)},we=0,Ue=r.members;we<Ue.length;we++){var Je=Ue[we];ce(Je)}}function Yx(r,t,i,o,s,c,L,G,ce){ce===void 0&&(ce=!0);var we=L.name&&Vc(L.name)||Vc(L);return we?Qx(r,t,i,o,s,c,e.hasOverrideModifier(L),e.hasAbstractModifier(L),e.isStatic(L),G,e.symbolName(we),ce?L:void 0):0}function Qx(r,t,i,o,s,c,L,G,ce,we,Ue,Je){var ar=e.isInJSFile(r),_r=!!(r.flags&8388608);if(o&&(L||Xe.noImplicitOverride)){var Br=e.escapeLeadingUnderscores(Ue),Zr=ce?t:c,Et=ce?i:o,Tt=Ii(Zr,Br),At=Ii(Et,Br),Vt=gn(o);if(Tt&&!At&&L){if(Je){var Nn=_C(Ue,Et);Nn?Mr(Je,ar?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Vt,Wa(Nn)):Mr(Je,ar?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Vt)}return 2}else if(Tt&&(At==null?void 0:At.declarations)&&Xe.noImplicitOverride&&!_r){var on=e.some(At.declarations,e.hasAbstractModifier);if(L)return 0;if(on){if(G&&on)return Je&&Mr(Je,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Vt),1}else{if(Je){var ca=we?ar?e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:ar?e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Mr(Je,ca,Vt)}return 1}}}else if(L){if(Je){var la=gn(s);Mr(Je,ar?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,la)}return 2}return 0}function Zx(r,t,i,o){for(var s=!1,c=function(we){if(e.isStatic(we))return"continue";var Ue=we.name&&Vc(we.name)||Vc(we);if(Ue){var Je=Ii(t,Ue.escapedName),ar=Ii(i,Ue.escapedName);if(Je&&ar){var _r=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Wa(Ue),gn(t),gn(i))};Rl(An(Je),An(ar),we.name||we,void 0,_r)||(s=!0)}}},L=0,G=r.members;L<G.length;L++){var ce=G[L];c(ce)}s||Rl(t,i,r.name||r,o)}function D3(r,t){var i=Ni(r,1);if(i.length){var o=i[0].declaration;if(o&&e.hasEffectiveModifier(o,8)){var s=e.getClassLikeDeclarationOfSymbol(r.symbol);LT(t,s)||Mr(t,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,sl(r.symbol))}}}function L3(r,t){if(!t.name)return 0;var i=wn(r),o=po(i),s=Il(o),c=An(i),L=e.getEffectiveBaseTypeNode(r),G=L&&xl(o),ce=G!=null&&G.length?Il(e.first(G),o.thisType):void 0,we=Ju(o),Ue=t.parent?e.hasOverrideModifier(t):e.hasSyntacticModifier(t,16384),Je=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(t.name));return Qx(r,c,we,ce,o,s,Ue,e.hasAbstractModifier(t),e.isStatic(t),!1,Je)}function Am(r){return e.getCheckFlags(r)&1?r.target:r}function A3(r){return e.filter(r.declarations,function(t){return t.kind===256||t.kind===257})}function C3(r,t){var i,o,s=Yi(t);e:for(var c=0,L=s;c<L.length;c++){var G=L[c],ce=Am(G);if(!(ce.flags&4194304)){var we=hd(r,ce.escapedName);if(!!we){var Ue=Am(we),Je=e.getDeclarationModifierFlagsFromSymbol(ce);if(e.Debug.assert(!!Ue,"derived should point to something, even if it is the base class' declaration."),Ue===ce){var ar=e.getClassLikeDeclarationOfSymbol(r.symbol);if(Je&128&&(!ar||!e.hasSyntacticModifier(ar,128))){for(var _r=0,Br=xl(r);_r<Br.length;_r++){var Zr=Br[_r];if(Zr!==t){var Et=hd(Zr,ce.escapedName),Tt=Et&&Am(Et);if(Tt&&Tt!==ce)continue e}}ar.kind===225?Mr(ar,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Wa(G),gn(t)):Mr(ar,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,gn(r),Wa(G),gn(t))}}else{var At=e.getDeclarationModifierFlagsFromSymbol(Ue);if(Je&8||At&8)continue;var Vt=void 0,Nn=ce.flags&98308,on=Ue.flags&98308;if(Nn&&on){if(Je&128&&!(ce.valueDeclaration&&e.isPropertyDeclaration(ce.valueDeclaration)&&ce.valueDeclaration.initializer)||ce.valueDeclaration&&ce.valueDeclaration.parent.kind===257||Ue.valueDeclaration&&e.isBinaryExpression(Ue.valueDeclaration))continue;var ca=Nn!==4&&on===4,la=Nn===4&&on!==4;if(ca||la){var di=ca?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;Mr(e.getNameOfDeclaration(Ue.valueDeclaration)||Ue.valueDeclaration,di,Wa(ce),gn(t),gn(r))}else if(Ye){var Aa=(i=Ue.declarations)===null||i===void 0?void 0:i.find(function(xo){return xo.kind===166&&!xo.initializer});if(Aa&&!(Ue.flags&33554432)&&!(Je&128)&&!(At&128)&&!(!((o=Ue.declarations)===null||o===void 0)&&o.some(function(xo){return!!(xo.flags&8388608)}))){var Li=$u(e.getClassLikeDeclarationOfSymbol(r.symbol)),Bi=Aa.name;if(Aa.exclamationToken||!Li||!e.isIdentifier(Bi)||!Er||!eI(Bi,r,Li)){var Ai=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;Mr(e.getNameOfDeclaration(Ue.valueDeclaration)||Ue.valueDeclaration,Ai,Wa(ce),gn(t))}}}continue}else if(k1(ce)){if(k1(Ue)||Ue.flags&4)continue;e.Debug.assert(!!(Ue.flags&98304)),Vt=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else ce.flags&98304?Vt=e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Vt=e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Mr(e.getNameOfDeclaration(Ue.valueDeclaration)||Ue.valueDeclaration,Vt,gn(t),Wa(ce),gn(r))}}}}}function x3(r,t,i){if(!e.length(t))return i;var o=new e.Map;e.forEach(i,function(ar){o.set(ar.escapedName,ar)});for(var s=0,c=t;s<c.length;s++)for(var L=c[s],G=Yi(Il(L,r.thisType)),ce=0,we=G;ce<we.length;ce++){var Ue=we[ce],Je=o.get(Ue.escapedName);Je&&!UL(Je,Ue)&&o.delete(Ue.escapedName)}return e.arrayFrom(o.values())}function I3(r,t){var i=xl(r);if(i.length<2)return!0;var o=new e.Map;e.forEach(Bg(r).declaredProperties,function(Tt){o.set(Tt.escapedName,{prop:Tt,containingType:r})});for(var s=!0,c=0,L=i;c<L.length;c++)for(var G=L[c],ce=Yi(Il(G,r.thisType)),we=0,Ue=ce;we<Ue.length;we++){var Je=Ue[we],ar=o.get(Je.escapedName);if(!ar)o.set(Je.escapedName,{prop:Je,containingType:G});else{var _r=ar.containingType!==r;if(_r&&!UL(ar.prop,Je)){s=!1;var Br=gn(ar.containingType),Zr=gn(G),Et=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Wa(Je),Br,Zr);Et=e.chainDiagnosticMessages(Et,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,gn(r),Br,Zr),ua.add(e.createDiagnosticForNodeFromMessageChain(t,Et))}}}return s}function N3(r){if(!(!Er||!Or||r.flags&8388608))for(var t=$u(r),i=0,o=r.members;i<o.length;i++){var s=o[i];if(!(e.getEffectiveModifierFlags(s)&2)&&!e.isStatic(s)&&$x(s)){var c=s.name;if(e.isIdentifier(c)||e.isPrivateIdentifier(c)){var L=An(wn(s));L.flags&3||lc(L)&32768||(!t||!eI(c,L,t))&&Mr(s.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(c))}}}}function $x(r){return r.kind===166&&!e.hasAbstractModifier(r)&&!r.exclamationToken&&!r.initializer}function k3(r,t,i,o,s){for(var c=0,L=i;c<L.length;c++){var G=L[c];if(G.pos>=o&&G.pos<=s){var ce=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(ce.expression,ce),e.setParent(ce,G),ce.flowNode=G.returnFlowNode;var we=b_(ce,t,Jf(t));if(!(lc(we)&32768))return!0}}return!1}function eI(r,t,i){var o=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(o.expression,o),e.setParent(o,i),o.flowNode=i.returnFlowNode;var s=b_(o,t,Jf(t));return!(lc(s)&32768)}function O3(r){if(ff(r)||dF(r),jh(r.typeParameters),Se){Dg(r.name,e.Diagnostics.Interface_name_cannot_be_0),vv(r);var t=wn(r);qx(t);var i=e.getDeclarationOfKind(t,257);if(r===i){var o=po(t),s=Il(o);if(I3(o,r.name)){for(var c=0,L=xl(o);c<L.length;c++){var G=L[c];Rl(s,Il(G,o.thisType),r.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}Ub(o,t)}}vx(r)}e.forEach(e.getInterfaceBaseTypeNodes(r),function(ce){(!e.isEntityNameExpression(ce.expression)||e.isOptionalChain(ce.expression))&&Mr(ce.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),lT(ce)}),e.forEach(r.members,Wi),Se&&(iT(r),Dd(r))}function R3(r){ff(r),Dg(r.name,e.Diagnostics.Type_alias_name_cannot_be_0),vv(r),jh(r.typeParameters),r.type.kind===138?(!U.has(r.name.escapedText)||e.length(r.typeParameters)!==1)&&Mr(r.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Wi(r.type),Dd(r))}function rI(r){var t=Zn(r);if(!(t.flags&16384)){t.flags|=16384;for(var i=0,o=0,s=r.members;o<s.length;o++){var c=s[o],L=w3(c,i);Zn(c).enumMemberValue=L,i=typeof L=="number"?L+1:void 0}}}function w3(r,t){if(e.isComputedNonLiteralName(r.name))Mr(r.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var i=e.getTextOfPropertyName(r.name);zf(i)&&!e.isInfinityOrNaNString(i)&&Mr(r.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}if(r.initializer)return P3(r);if(!(r.parent.flags&8388608&&!e.isEnumConst(r.parent)&&Bo(wn(r.parent))===0)){if(t!==void 0)return t;Mr(r.name,e.Diagnostics.Enum_member_must_have_initializer)}}function P3(r){var t=Bo(wn(r.parent)),i=e.isEnumConst(r.parent),o=r.initializer,s=t===1&&!zi(r)?void 0:L(o);if(s!==void 0)i&&typeof s=="number"&&!isFinite(s)&&Mr(o,isNaN(s)?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 Mr(o,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(i)Mr(o,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(r.parent.flags&8388608)Mr(o,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var c=ui(o);ys(c,296)?Rl(c,po(wn(r.parent)),o,void 0):Mr(o,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,gn(c))}}return s;function L(ce){switch(ce.kind){case 218:var we=L(ce.operand);if(typeof we=="number")switch(ce.operator){case 39:return we;case 40:return-we;case 54:return~we}break;case 220:var Ue=L(ce.left),Je=L(ce.right);if(typeof Ue=="number"&&typeof Je=="number")switch(ce.operatorToken.kind){case 51:return Ue|Je;case 50:return Ue&Je;case 48:return Ue>>Je;case 49:return Ue>>>Je;case 47:return Ue<<Je;case 52:return Ue^Je;case 41:return Ue*Je;case 43:return Ue/Je;case 39:return Ue+Je;case 40:return Ue-Je;case 44:return Ue%Je;case 42:return Math.pow(Ue,Je)}else if(typeof Ue=="string"&&typeof Je=="string"&&ce.operatorToken.kind===39)return Ue+Je;break;case 10:case 14:return ce.text;case 8:return MT(ce),+ce.text;case 211:return L(ce.expression);case 79:var ar=ce;return e.isInfinityOrNaNString(ar.escapedText)?+ar.escapedText:e.nodeIsMissing(ce)?0:G(ce,wn(r.parent),ar.escapedText);case 206:case 205:var _r=ce;if(ET(_r)){var Br=tl(_r.expression);if(Br.symbol&&Br.symbol.flags&384){var Zr=void 0;return _r.kind===205?Zr=_r.name.escapedText:Zr=e.escapeLeadingUnderscores(e.cast(_r.argumentExpression,e.isLiteralExpression).text),G(ce,Br.symbol,Zr)}}break}}function G(ce,we,Ue){var Je=we.exports.get(Ue);if(Je){var ar=Je.valueDeclaration;if(ar!==r)return ar&&Ou(ar,r)?Xb(ar):(Mr(ce,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);Mr(ce,e.Diagnostics.Property_0_is_used_before_being_assigned,Wa(Je))}}}function ET(r){return r.kind===79||r.kind===205&&ET(r.expression)||r.kind===206&&ET(r.expression)&&e.isStringLiteralLike(r.argumentExpression)}function M3(r){if(!!Se){ff(r),Tg(r,r.name),vv(r),r.members.forEach(F3),rI(r);var t=wn(r),i=e.getDeclarationOfKind(t,r.kind);if(r===i){if(t.declarations&&t.declarations.length>1){var o=e.isEnumConst(r);e.forEach(t.declarations,function(c){e.isEnumDeclaration(c)&&e.isEnumConst(c)!==o&&Mr(e.getNameOfDeclaration(c),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var s=!1;e.forEach(t.declarations,function(c){if(c.kind!==259)return!1;var L=c;if(!L.members.length)return!1;var G=L.members[0];G.initializer||(s?Mr(G.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):s=!0)})}}}function F3(r){e.isPrivateIdentifier(r.name)&&Mr(r,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function G3(r){var t=r.declarations;if(t)for(var i=0,o=t;i<o.length;i++){var s=o[i];if((s.kind===256||s.kind===255&&e.nodeIsPresent(s.body))&&!(s.flags&8388608))return s}}function B3(r,t){var i=e.getEnclosingBlockScopeContainer(r),o=e.getEnclosingBlockScopeContainer(t);return Oc(i)?Oc(o):Oc(o)?!1:i===o}function U3(r){if(Se){var t=e.isGlobalScopeAugmentation(r),i=r.flags&8388608;t&&!i&&Mr(r.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var o=e.isAmbientModule(r),s=o?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(Hh(r,s))return;ff(r)||!i&&r.name.kind===10&&sn(r.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(r.name)&&Tg(r,r.name),vv(r);var c=wn(r);if(c.flags&512&&!i&&c.declarations&&c.declarations.length>1&&D(r,e.shouldPreserveConstEnums(Xe))){var L=G3(c);L&&(e.getSourceFileOfNode(r)!==e.getSourceFileOfNode(L)?Mr(r.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):r.pos<L.pos&&Mr(r.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var G=e.getDeclarationOfKind(c,256);G&&B3(r,G)&&(Zn(r).flags|=32768)}if(o)if(e.isExternalModuleAugmentation(r)){var ce=t||wn(r).flags&33554432;if(ce&&r.body)for(var we=0,Ue=r.body.statements;we<Ue.length;we++){var Je=Ue[we];TT(Je,t)}}else Oc(r.parent)?t?Mr(r.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(r.name))&&Mr(r.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):t?Mr(r.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Mr(r.name,e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}r.body&&(Wi(r.body),e.isGlobalScopeAugmentation(r)||Dd(r))}function TT(r,t){var i;switch(r.kind){case 236:for(var o=0,s=r.declarationList.declarations;o<s.length;o++){var c=s[o];TT(c,t)}break;case 270:case 271:Gs(r,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 264:case 265:Gs(r,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 202:case 253:var L=r.name;if(e.isBindingPattern(L)){for(var G=0,ce=L.elements;G<ce.length;G++){var we=ce[G];TT(we,t)}break}case 256:case 259:case 255:case 257:case 260:case 258:if(t)return;var Ue=wn(r);if(Ue){var Je=!(Ue.flags&33554432);Je||(Je=!!(!((i=Ue.parent)===null||i===void 0)&&i.declarations)&&e.isExternalModuleAugmentation(Ue.parent.declarations[0]))}break}}function V3(r){switch(r.kind){case 79:return r;case 160:do r=r.left;while(r.kind!==79);return r;case 205:do{if(e.isModuleExportsAccessExpression(r.expression)&&!e.isPrivateIdentifier(r.name))return r.name;r=r.expression}while(r.kind!==79);return r}}function ST(r){var t=e.getExternalModuleName(r);if(!t||e.nodeIsMissing(t))return!1;if(!e.isStringLiteral(t))return Mr(t,e.Diagnostics.String_literal_expected),!1;var i=r.parent.kind===261&&e.isAmbientModule(r.parent.parent);return r.parent.kind!==303&&!i?(Mr(t,r.kind===271?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1):i&&e.isExternalModuleNameRelative(t.text)&&!Ul(r)?(Mr(r,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1):!0}function Vb(r){var t,i=wn(r),o=ms(i);if(o!==We){i=Ga(i.exportSymbol||i);var s=(i.flags&1160127?111551:0)|(i.flags&788968?788968:0)|(i.flags&1920?1920:0);if(o.flags&s){var c=r.kind===274?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;Mr(r,c,Wa(i))}if(Xe.isolatedModules&&!e.isTypeOnlyImportOrExportDeclaration(r)&&!(r.flags&8388608)){var L=Ln(i),G=!(o.flags&111551);if(G||L)switch(r.kind){case 266:case 269:case 264:{if(Xe.preserveValueImports){e.Debug.assertIsDefined(r.name,"An ImportClause with a symbol should have a name");var c=G?e.Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,ce=e.idText(r.kind===269&&r.propertyName||r.name);Rd(Mr(r,c,ce),G?void 0:L,ce)}break}case 274:if(e.getSourceFileOfNode(L)!==e.getSourceFileOfNode(r)){var c=G?e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled,ce=e.idText(r.propertyName||r.name);Rd(Mr(r,c,ce),G?void 0:L,ce);return}}}e.isImportSpecifier(r)&&((t=o.declarations)===null||t===void 0?void 0:t.every(function(we){return!!(e.getCombinedNodeFlags(we)&134217728)}))&&kc(r.name,o.declarations,i.escapedName)}}function Wb(r){Tg(r,r.name),Vb(r),r.kind===269&&e.idText(r.propertyName||r.name)==="default"&&e.getESModuleInterop(Xe)&&Ae!==e.ModuleKind.System&&(Ae<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&nl(r,131072)}function tI(r){var t;if(r.assertClause){if(Ae!==e.ModuleKind.ESNext)return sn(r.assertClause,e.Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext);if(e.isImportDeclaration(r)?(t=r.importClause)===null||t===void 0?void 0:t.isTypeOnly:r.isTypeOnly)return sn(r.assertClause,e.Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports)}}function W3(r){if(!Hh(r,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)){if(!ff(r)&&e.hasEffectiveModifiers(r)&&Gs(r,e.Diagnostics.An_import_declaration_cannot_have_modifiers),ST(r)){var t=r.importClause;if(t&&!GF(t)&&(t.name&&Wb(t),t.namedBindings))if(t.namedBindings.kind===267)Wb(t.namedBindings),Ae!==e.ModuleKind.System&&(Ae<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.getESModuleInterop(Xe)&&nl(r,65536);else{var i=ws(r,r.moduleSpecifier);i&&e.forEach(t.namedBindings.elements,Wb)}}tI(r)}}function j3(r){if(!Hh(r,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(ff(r),e.isInternalModuleImportEqualsDeclaration(r)||ST(r)))if(Wb(r),e.hasSyntacticModifier(r,1)&&us(r),r.moduleReference.kind!==276){var t=ms(wn(r));if(t!==We){if(t.flags&111551){var i=e.getFirstIdentifier(r.moduleReference);rs(i,112575).flags&1920||Mr(i,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(i))}t.flags&788968&&Dg(r.name,e.Diagnostics.Import_name_cannot_be_0)}r.isTypeOnly&&sn(r,e.Diagnostics.An_import_alias_cannot_use_import_type)}else Ae>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(r).impliedNodeFormat===void 0&&!r.isTypeOnly&&!(r.flags&8388608)&&sn(r,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 H3(r){if(!Hh(r,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)){if(!ff(r)&&e.hasEffectiveModifiers(r)&&Gs(r,e.Diagnostics.An_export_declaration_cannot_have_modifiers),r.moduleSpecifier&&r.exportClause&&e.isNamedExports(r.exportClause)&&e.length(r.exportClause.elements)&&De===0&&nl(r,4194304),J3(r),!r.moduleSpecifier||ST(r))if(r.exportClause&&!e.isNamespaceExport(r.exportClause)){e.forEach(r.exportClause.elements,Q3);var t=r.parent.kind===261&&e.isAmbientModule(r.parent.parent),i=!t&&r.parent.kind===261&&!r.moduleSpecifier&&r.flags&8388608;r.parent.kind!==303&&!t&&!i&&Mr(r,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var o=ws(r,r.moduleSpecifier);o&&ld(o)?Mr(r.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Wa(o)):r.exportClause&&Vb(r.exportClause),Ae!==e.ModuleKind.System&&(Ae<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&(r.exportClause?e.getESModuleInterop(Xe)&&nl(r,65536):nl(r,32768))}tI(r)}}function J3(r){var t;return r.isTypeOnly?((t=r.exportClause)===null||t===void 0?void 0:t.kind)===272?OI(r.exportClause):sn(r,e.Diagnostics.Only_named_exports_may_use_export_type):!1}function Hh(r,t){var i=r.parent.kind===303||r.parent.kind===261||r.parent.kind===260;return i||Gs(r,t),!i}function K3(r){return e.forEachImportClauseDeclaration(r,function(t){return!!wn(t).isReferenced})}function z3(r){return e.forEachImportClauseDeclaration(r,function(t){return!!Ja(wn(t)).constEnumReferenced})}function q3(r){return e.isImportDeclaration(r)&&r.importClause&&!r.importClause.isTypeOnly&&K3(r.importClause)&&!qb(r.importClause,!0)&&!z3(r.importClause)}function X3(r){return e.isImportEqualsDeclaration(r)&&e.isExternalModuleReference(r.moduleReference)&&!r.isTypeOnly&&wn(r).isReferenced&&!qb(r,!1)&&!Ja(wn(r)).constEnumReferenced}function Y3(r){for(var t=0,i=r.statements;t<i.length;t++){var o=i[t];(q3(o)||X3(o))&&Mr(o,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}}function Q3(r){if(Vb(r),e.getEmitDeclarations(Xe)&&Pf(r.propertyName||r.name,!0),r.parent.parent.moduleSpecifier)e.getESModuleInterop(Xe)&&Ae!==e.ModuleKind.System&&(Ae<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.idText(r.propertyName||r.name)==="default"&&nl(r,131072);else{var t=r.propertyName||r.name,i=Uo(t,t.escapedText,2998271,void 0,void 0,!0);if(i&&(i===He||i===pr||i.declarations&&Oc(fa(i.declarations[0]))))Mr(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(t));else{us(r);var o=i&&(i.flags&2097152?ms(i):i);(!o||o===We||o.flags&111551)&&Ss(r.propertyName||r.name)}}}function Z3(r){var t=r.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(!Hh(r,t)){var i=r.parent.kind===303?r.parent:r.parent.parent;if(i.kind===260&&!e.isAmbientModule(i)){r.isExportEquals?Mr(r,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Mr(r,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!ff(r)&&e.hasEffectiveModifiers(r)&&Gs(r,e.Diagnostics.An_export_assignment_cannot_have_modifiers);var o=e.getEffectiveTypeAnnotationNode(r);if(o&&Rl(Ss(r.expression),Da(o),r.expression),r.expression.kind===79){var s=r.expression,c=rs(s,67108863,!0,!0,r);if(c){sb(c,s);var L=c.flags&2097152?ms(c):c;(L===We||L.flags&111551)&&Ss(r.expression)}else Ss(r.expression);e.getEmitDeclarations(Xe)&&Pf(r.expression,!0)}else Ss(r.expression);nI(i),r.flags&8388608&&!e.isEntityNameExpression(r.expression)&&sn(r.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),r.isExportEquals&&!(r.flags&8388608)&&(Ae>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(r).impliedNodeFormat!==e.ModuleKind.CommonJS?sn(r,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):Ae===e.ModuleKind.System&&sn(r,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}}function $3(r){return e.forEachEntry(r.exports,function(t,i){return i!=="export="})}function nI(r){var t=wn(r),i=Ja(t);if(!i.exportsChecked){var o=t.exports.get("export=");if(o&&$3(t)){var s=ec(o)||o.valueDeclaration;s&&!Ul(s)&&!e.isInJSFile(s)&&Mr(s,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var c=Gl(t);c&&c.forEach(function(L,G){var ce=L.declarations,we=L.flags;if(G!=="__export"&&!(we&1984)){var Ue=e.countWhere(ce,K);if(!(we&524288&&Ue<=2)&&Ue>1&&!jb(ce))for(var Je=0,ar=ce;Je<ar.length;Je++){var _r=ar[Je];u(_r)&&ua.add(e.createDiagnosticForNode(_r,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(G)))}}}),i.exportsChecked=!0}}function jb(r){return r&&r.length>1&&r.every(function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&(e.isExportsIdentifier(t.expression)||e.isModuleExportsAccessExpression(t.expression))})}function Wi(r){if(r){var t=_e;_e=r,he=0,e8(r),_e=t}}function e8(r){e.isInJSFile(r)&&e.forEach(r.jsDoc,function(i){var o=i.tags;return e.forEach(o,Wi)});var t=r.kind;if(O)switch(t){case 260:case 256:case 257:case 255:O.throwIfCancellationRequested()}switch(t>=236&&t<=252&&r.flowNode&&!bh(r.flowNode)&&pc(Xe.allowUnreachableCode===!1,r,e.Diagnostics.Unreachable_code_detected),t){case 162:return _x(r);case 163:return mx(r);case 166:return hx(r);case 165:return Q6(r);case 179:case 178:case 173:case 174:case 175:return gv(r);case 168:case 167:return Z6(r);case 169:return $6(r);case 170:return e4(r);case 171:case 172:return yx(r);case 177:return lT(r);case 176:return z6(r);case 180:return n4(r);case 181:return a4(r);case 182:return i4(r);case 183:return o4(r);case 186:case 187:return s4(r);case 190:case 184:case 185:return Wi(r.type);case 191:return f4(r);case 192:return d4(r);case 188:return p4(r);case 189:return _4(r);case 197:return m4(r);case 199:return g4(r);case 196:return v4(r);case 326:return N4(r);case 327:return I4(r);case 343:case 336:case 337:return S4(r);case 342:return D4(r);case 341:return L4(r);case 338:return A4(r);case 345:return C4(r);case 315:x4(r);case 313:case 312:case 310:case 311:case 320:aI(r),e.forEachChild(r,Wi);return;case 316:r8(r);return;case 307:return Wi(r.type);case 331:case 333:case 332:return k4(r);case 193:return l4(r);case 194:return c4(r);case 255:return T4(r);case 234:case 261:return Mb(r);case 236:return z4(r);case 237:return q4(r);case 238:return X4(r);case 239:return Z4(r);case 240:return $4(r);case 241:return e3(r);case 242:return t3(r);case 243:return r3(r);case 244:case 245:return c3(r);case 246:return u3(r);case 247:return f3(r);case 248:return d3(r);case 249:return p3(r);case 250:return _3(r);case 251:return m3(r);case 253:return pT(r);case 202:return K4(r);case 256:return T3(r);case 257:return O3(r);case 258:return R3(r);case 259:return M3(r);case 260:return U3(r);case 265:return W3(r);case 264:return j3(r);case 271:return H3(r);case 270:return Z3(r);case 235:case 252:df(r);return;case 275:return r4(r)}}function aI(r){e.isInJSFile(r)||sn(r,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function r8(r){aI(r),Wi(r.type);var t=r.parent;if(e.isParameter(t)&&e.isJSDocFunctionType(t.parent)){e.last(t.parent.parameters)!==t&&Mr(r,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);return}e.isJSDocTypeExpression(t)||Mr(r,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var i=r.parent.parent;if(!e.isJSDocParameterTag(i)){Mr(r,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}var o=e.getParameterSymbolFromJSDoc(i);if(!!o){var s=e.getHostSignatureFromJSDoc(i);(!s||e.last(s.parameters).symbol!==o)&&Mr(r,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}function t8(r){var t=Da(r.type),i=r.parent,o=r.parent.parent;if(e.isJSDocTypeExpression(r.parent)&&e.isJSDocParameterTag(o)){var s=e.getHostSignatureFromJSDoc(o),c=e.isJSDocCallbackTag(o.parent.parent);if(s||c){var L=c?e.lastOrUndefined(o.parent.parent.typeExpression.parameters):e.lastOrUndefined(s.parameters),G=e.getParameterSymbolFromJSDoc(o);if(!L||G&&L.symbol===G&&e.isRestParameter(L))return zs(t)}}return e.isParameter(i)&&e.isJSDocFunctionType(i.parent)?zs(t):Wl(t)}function Dv(r){var t=e.getSourceFileOfNode(r),i=Zn(t);if(!(i.flags&1)){i.deferredNodes=i.deferredNodes||new e.Map;var o=I(r);i.deferredNodes.set(o,r)}}function n8(r){var t=Zn(r);t.deferredNodes&&t.deferredNodes.forEach(a8)}function a8(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkDeferredNode",{kind:r.kind,pos:r.pos,end:r.end});var t=_e;switch(_e=r,he=0,r.kind){case 207:case 208:case 209:case 164:case 279:Tm(r);break;case 212:case 213:case 168:case 167:m6(r);break;case 171:case 172:yx(r);break;case 225:E3(r);break;case 278:JP(r);break;case 277:zP(r);break}_e=t,e.tracing===null||e.tracing===void 0||e.tracing.pop()}function DT(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkSourceFile",{path:r.path},!0),e.performance.mark("beforeCheck"),i8(r),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function iI(r,t){if(t)return!1;switch(r){case 0:return!!Xe.noUnusedLocals;case 1:return!!Xe.noUnusedParameters;default:return e.Debug.assertNever(r)}}function oI(r){return gi.get(r.path)||e.emptyArray}function i8(r){var t=Zn(r);if(!(t.flags&1)){if(e.skipTypeChecking(r,Xe,j))return;RF(r),e.clear(pn),e.clear(fn),e.clear(kn),e.clear(Kn),e.forEach(r.statements,Wi),Wi(r.endOfFileToken),n8(r),e.isExternalOrCommonJsModule(r)&&Dd(r),!r.isDeclarationFile&&(Xe.noUnusedLocals||Xe.noUnusedParameters)&&Cx(oI(r),function(i,o,s){!e.containsParseError(i)&&iI(o,!!(i.flags&8388608))&&ua.add(s)}),Xe.importsNotUsedAsValues===2&&!r.isDeclarationFile&&e.isExternalModule(r)&&Y3(r),e.isExternalOrCommonJsModule(r)&&nI(r),pn.length&&(e.forEach(pn,F4),e.clear(pn)),fn.length&&(e.forEach(fn,G4),e.clear(fn)),kn.length&&(e.forEach(kn,W4),e.clear(kn)),Kn.length&&(e.forEach(Kn,H4),e.clear(Kn)),t.flags|=1}}function sI(r,t){try{return O=t,o8(r)}finally{O=void 0}}function o8(r){if(lI(),r){var t=ua.getGlobalDiagnostics(),i=t.length;DT(r);var o=ua.getDiagnostics(r.fileName),s=ua.getGlobalDiagnostics();if(s!==t){var c=e.relativeComplement(t,s,e.compareDiagnostics);return e.concatenate(c,o)}else if(i===0&&s.length>0)return e.concatenate(s,o);return o}return e.forEach(j.getSourceFiles(),DT),ua.getDiagnostics()}function s8(){return lI(),ua.getGlobalDiagnostics()}function lI(){if(!Se)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function l8(r,t){if(r.flags&16777216)return[];var i=e.createSymbolTable(),o=!1;return s(),i.delete("this"),Ym(i);function s(){for(;r;){switch(r.locals&&!Oc(r)&&L(r.locals,t),r.kind){case 303:if(!e.isExternalModule(r))break;case 260:G(wn(r).exports,t&2623475);break;case 259:L(wn(r).exports,t&8);break;case 225:var ce=r.name;ce&&c(r.symbol,t);case 256:case 257:o||L(af(wn(r)),t&788968);break;case 212:var we=r.name;we&&c(r.symbol,t);break}e.introducesArgumentsExoticObject(r)&&c(Jr,t),o=e.isStatic(r),r=r.parent}L(Fr,t)}function c(ce,we){if(e.getCombinedLocalAndExportSymbolFlags(ce)&we){var Ue=ce.escapedName;i.has(Ue)||i.set(Ue,ce)}}function L(ce,we){we&&ce.forEach(function(Ue){c(Ue,we)})}function G(ce,we){we&&ce.forEach(function(Ue){!e.getDeclarationOfKind(Ue,274)&&!e.getDeclarationOfKind(Ue,273)&&c(Ue,we)})}}function c8(r){return r.kind===79&&Jh(r.parent)&&e.getNameOfDeclaration(r.parent)===r}function Jh(r){switch(r.kind){case 162:case 256:case 257:case 258:case 259:case 343:case 336:case 337:return!0;case 266:return r.isTypeOnly;case 269:case 274:return r.parent.parent.isTypeOnly;default:return!1}}function cI(r){for(;r.parent.kind===160;)r=r.parent;return r.parent.kind===177}function u8(r){for(;r.parent.kind===205;)r=r.parent;return r.parent.kind===227}function uI(r,t){for(var i;r=e.getContainingClass(r),!(!r||(i=t(r))););return i}function f8(r){return!!e.findAncestor(r,function(t){return e.isConstructorDeclaration(t)&&e.nodeIsPresent(t.body)||e.isPropertyDeclaration(t)?!0:e.isClassLike(t)||e.isFunctionLikeDeclaration(t)?"quit":!1})}function LT(r,t){return!!uI(r,function(i){return i===t})}function d8(r){for(;r.parent.kind===160;)r=r.parent;if(r.parent.kind===264)return r.parent.moduleReference===r?r.parent:void 0;if(r.parent.kind===270)return r.parent.expression===r?r.parent:void 0}function Hb(r){return d8(r)!==void 0}function p8(r){var t=e.getAssignmentDeclarationKind(r.parent.parent);switch(t){case 1:case 3:return wn(r.parent);case 4:case 2:case 5:return wn(r.parent.parent)}}function _8(r){for(var t=r.parent;e.isQualifiedName(t);)r=t,t=t.parent;if(t&&t.kind===199&&t.qualifier===r)return t}function fI(r){if(e.isDeclarationName(r))return wn(r.parent);if(e.isInJSFile(r)&&r.parent.kind===205&&r.parent===r.parent.parent.left&&!e.isPrivateIdentifier(r)&&!e.isJSDocMemberName(r)){var t=p8(r);if(t)return t}if(r.parent.kind===270&&e.isEntityNameExpression(r)){var i=rs(r,2998271,!0);if(i&&i!==We)return i}else if(e.isEntityName(r)&&Hb(r)){var o=e.getAncestor(r,264);return e.Debug.assert(o!==void 0),sd(r,!0)}if(e.isEntityName(r)){var s=_8(r);if(s){Da(s);var c=Zn(r).resolvedSymbol;return c===We?void 0:c}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(r);)r=r.parent;if(u8(r)){var L=0;r.parent.kind===227?(L=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent)&&(L|=111551)):L=1920,L|=2097152;var G=e.isEntityNameExpression(r)?rs(r,L):void 0;if(G)return G}if(r.parent.kind===338)return e.getParameterSymbolFromJSDoc(r.parent);if(r.parent.kind===162&&r.parent.parent.kind===342){e.Debug.assert(!e.isInJSFile(r));var ce=e.getTypeParameterFromJsDoc(r.parent);return ce&&ce.symbol}if(e.isExpressionNode(r)){if(e.nodeIsMissing(r))return;var we=e.findAncestor(r,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName)),L=we?901119:111551;if(r.kind===79){if(e.isJSXTagName(r)&&pg(r)){var Ue=C1(r.parent);return Ue===We?void 0:Ue}var Je=rs(r,L,!1,!we,e.getHostSignatureFromJSDoc(r));if(!Je&&we){var ar=e.findAncestor(r,e.or(e.isClassLike,e.isInterfaceDeclaration));if(ar)return Jb(r,wn(ar))}return Je}else{if(e.isPrivateIdentifier(r))return vb(r);if(r.kind===205||r.kind===160){var _r=Zn(r);return _r.resolvedSymbol?_r.resolvedSymbol:(r.kind===205?oC(r,0):sC(r,0),!_r.resolvedSymbol&&we&&e.isQualifiedName(r)?Jb(r):_r.resolvedSymbol)}else if(e.isJSDocMemberName(r))return Jb(r)}}else if(cI(r)){var L=r.parent.kind===177?788968:1920,Ue=rs(r,L,!1,!0);return Ue&&Ue!==We?Ue:Ly(r)}if(r.parent.kind===176)return rs(r,1)}function Jb(r,t){if(e.isEntityName(r)){var i=901119,o=rs(r,i,!1,!0,e.getHostSignatureFromJSDoc(r));if(!o&&e.isIdentifier(r)&&t&&(o=Ga(ks(Js(t),r.escapedText,i))),o)return o}var s=e.isIdentifier(r)?t:Jb(r.left),c=e.isIdentifier(r)?r.escapedText:r.right.escapedText;if(s){var L=s.flags&111551&&Ii(An(s),"prototype"),G=L?An(L):po(s);return Ii(G,c)}}function Vc(r,t){if(r.kind===303)return e.isExternalModule(r)?Ga(r.symbol):void 0;var i=r.parent,o=i.parent;if(!(r.flags&16777216)){if(g(r)){var s=wn(i);return e.isImportOrExportSpecifier(r.parent)&&r.parent.propertyName===r?zA(s):s}else if(e.isLiteralComputedPropertyDeclarationName(r))return wn(i.parent);if(r.kind===79){if(Hb(r))return fI(r);if(i.kind===202&&o.kind===200&&r===i.propertyName){var c=jp(o),L=Ii(c,r.escapedText);if(L)return L}else if(e.isMetaProperty(i)){var G=jp(i),L=Ii(G,r.escapedText);if(L)return L;if(i.keywordToken===103)return q1(i).symbol}}switch(r.kind){case 79:case 80:case 205:case 160:return fI(r);case 108:var ce=e.getThisContainer(r,!1);if(e.isFunctionLike(ce)){var we=bu(ce);if(we.thisParameter)return we.thisParameter}if(e.isInExpressionContext(r))return ui(r).symbol;case 191:return Oy(r).symbol;case 106:return ui(r).symbol;case 134:var Ue=r.parent;return Ue&&Ue.kind===170?Ue.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(r.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(r.parent.parent)===r||(r.parent.kind===265||r.parent.kind===271)&&r.parent.moduleSpecifier===r||e.isInJSFile(r)&&e.isRequireCall(r.parent,!1)||e.isImportCall(r.parent)||e.isLiteralTypeNode(r.parent)&&e.isLiteralImportTypeNode(r.parent.parent)&&r.parent.parent.argument===r.parent)return ws(r,r,t);if(e.isCallExpression(i)&&e.isBindableObjectDefinePropertyCall(i)&&i.arguments[1]===r)return wn(i);case 8:var Je=e.isElementAccessExpression(i)?i.argumentExpression===r?tl(i.expression):void 0:e.isLiteralTypeNode(i)&&e.isIndexedAccessTypeNode(o)?Da(o.objectType):void 0;return Je&&Ii(Je,e.escapeLeadingUnderscores(r.text));case 88:case 98:case 38:case 84:return wn(r.parent);case 199:return e.isLiteralImportTypeNode(r)?Vc(r.argument.literal,t):void 0;case 93:return e.isExportAssignment(r.parent)?e.Debug.checkDefined(r.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(r.parent)?HC(r.parent).symbol:void 0;case 230:return ui(r).symbol;default:return}}}function m8(r){if(e.isIdentifier(r)&&e.isPropertyAccessExpression(r.parent)&&r.parent.name===r){var t=lp(r),i=tl(r.parent.expression),o=i.flags&1048576?i.types:[i];return e.flatMap(o,function(s){return e.filter(Ms(s),function(c){return f_(t,c.keyType)})})}}function g8(r){if(r&&r.kind===295)return rs(r.name,2208703)}function v8(r){return e.isExportSpecifier(r)?r.parent.parent.moduleSpecifier?Mu(r.parent.parent,r):rs(r.propertyName||r.name,2998271):rs(r,2998271)}function jp(r){if(e.isSourceFile(r)&&!e.isExternalModule(r)||r.flags&16777216)return dr;var t=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(r),i=t&&Hn(wn(t.class));if(e.isPartOfTypeNode(r)){var o=Da(r);return i?Il(o,i.thisType):o}if(e.isExpressionNode(r))return dI(r);if(i&&!t.isImplements){var s=e.firstOrUndefined(xl(i));return s?Il(s,i.thisType):dr}if(Jh(r)){var c=wn(r);return po(c)}if(c8(r)){var c=Vc(r);return c?po(c):dr}if(e.isDeclaration(r)){var c=wn(r);return An(c)}if(g(r)){var c=Vc(r);return c?An(c):dr}if(e.isBindingPattern(r))return ep(r.parent,!0)||dr;if(Hb(r)){var c=Vc(r);if(c){var L=po(c);return Ua(L)?An(c):L}}return e.isMetaProperty(r.parent)&&r.parent.keywordToken===r.kind?HC(r.parent):dr}function Kb(r){if(e.Debug.assert(r.kind===204||r.kind===203),r.parent.kind===243){var t=Vh(r.parent);return S_(r,t||dr)}if(r.parent.kind===220){var t=tl(r.parent.right);return S_(r,t||dr)}if(r.parent.kind===294){var i=e.cast(r.parent.parent,e.isObjectLiteralExpression),o=Kb(i)||dr,s=e.indexOfNode(i.properties,r.parent);return nx(i,o,s)}var c=e.cast(r.parent,e.isArrayLiteralExpression),L=Kb(c)||dr,G=Ld(65,L,kr,r.parent)||dr;return ax(c,L,c.elements.indexOf(r),G)}function h8(r){var t=Kb(e.cast(r.parent.parent,e.isAssignmentPattern));return t&&Ii(t,r.escapedText)}function dI(r){return e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),kl(tl(r))}function y8(r){var t=wn(r.parent);return e.isStatic(r)?An(t):po(t)}function b8(r){var t=r.name;switch(t.kind){case 79:return Lc(e.idText(t));case 8:case 10:return Lc(t.text);case 161:var i=qf(t);return ys(i,12288)?i:xt;default:return e.Debug.fail("Unsupported property name.")}}function AT(r){r=wi(r);var t=e.createSymbolTable(Yi(r)),i=Ni(r,0).length?oe:Ni(r,1).length?mr:void 0;return i&&e.forEach(Yi(i),function(o){t.has(o.escapedName)||t.set(o.escapedName,o)}),Bu(t)}function CT(r){return e.typeHasCallOrConstructSignatures(r,Yr)}function pI(r){var t=E8(r);return t?e.flatMap(t,pI):[r]}function E8(r){if(e.getCheckFlags(r)&6)return e.mapDefined(Ja(r).containingType.types,function(c){return Ii(c,r.escapedName)});if(r.flags&33554432){var t=r,i=t.leftSpread,o=t.rightSpread,s=t.syntheticOrigin;return i?[i,o]:s?[s]:e.singleElementArray(T8(r))}}function T8(r){for(var t,i=r;i=Ja(i).target;)t=i;return t}function S8(r){if(e.isGeneratedIdentifier(r))return!1;var t=e.getParseTreeNode(r,e.isIdentifier);if(!t)return!1;var i=t.parent;if(!i)return!1;var o=(e.isPropertyAccessExpression(i)||e.isPropertyAssignment(i))&&i.name===t;return!o&&Av(t)===Jr}function D8(r){var t=ws(r.parent,r);if(!t||e.isShorthandAmbientModuleSymbol(t))return!0;var i=ld(t);t=ll(t);var o=Ja(t);return o.exportsSomeValue===void 0&&(o.exportsSomeValue=i?!!(t.flags&111551):e.forEachEntry(Gl(t),s)),o.exportsSomeValue;function s(c){return c=wo(c),c&&!!(c.flags&111551)}}function L8(r){return e.isModuleOrEnumDeclaration(r.parent)&&r===r.parent.name}function A8(r,t){var i,o=e.getParseTreeNode(r,e.isIdentifier);if(o){var s=Av(o,L8(o));if(s){if(s.flags&1048576){var c=Ga(s.exportSymbol);if(!t&&c.flags&944&&!(c.flags&3))return;s=c}var L=Ts(s);if(L){if(L.flags&512&&((i=L.valueDeclaration)===null||i===void 0?void 0:i.kind)===303){var G=L.valueDeclaration,ce=e.getSourceFileOfNode(o),we=G!==ce;return we?void 0:G}return e.findAncestor(o.parent,function(Ue){return e.isModuleOrEnumDeclaration(Ue)&&wn(Ue)===L})}}}}function C8(r){if(r.generatedImportReference)return r.generatedImportReference;var t=e.getParseTreeNode(r,e.isIdentifier);if(t){var i=Av(t);if(Dl(i,111551)&&!Ln(i))return ec(i)}}function x8(r){return r.valueDeclaration&&e.isBindingElement(r.valueDeclaration)&&e.walkUpBindingElementsAndPatterns(r.valueDeclaration).parent.kind===291}function _I(r){if(r.flags&418&&r.valueDeclaration&&!e.isSourceFile(r.valueDeclaration)){var t=Ja(r);if(t.isDeclarationWithCollidingName===void 0){var i=e.getEnclosingBlockScopeContainer(r.valueDeclaration);if(e.isStatementWithLocals(i)||x8(r)){var o=Zn(r.valueDeclaration);if(Uo(i.parent,r.escapedName,111551,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(o.flags&262144){var s=o.flags&524288,c=e.isIterationStatement(i,!1),L=i.kind===234&&e.isIterationStatement(i.parent,!1);t.isDeclarationWithCollidingName=!e.isBlockScopedContainerTopLevel(i)&&(!s||!c&&!L)}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function I8(r){if(!e.isGeneratedIdentifier(r)){var t=e.getParseTreeNode(r,e.isIdentifier);if(t){var i=Av(t);if(i&&_I(i))return i.valueDeclaration}}}function N8(r){var t=e.getParseTreeNode(r,e.isDeclaration);if(t){var i=wn(t);if(i)return _I(i)}return!1}function mI(r){switch(r.kind){case 264:return zb(wn(r));case 266:case 267:case 269:case 274:var t=wn(r);return!!t&&zb(t)&&!Ln(t);case 271:var i=r.exportClause;return!!i&&(e.isNamespaceExport(i)||e.some(i.elements,mI));case 270:return r.expression&&r.expression.kind===79?zb(wn(r)):!0}return!1}function k8(r){var t=e.getParseTreeNode(r,e.isImportEqualsDeclaration);if(t===void 0||t.parent.kind!==303||!e.isInternalModuleImportEqualsDeclaration(t))return!1;var i=zb(wn(t));return i&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function zb(r){if(!r)return!1;var t=ms(r);return t===We?!0:!!(t.flags&111551)&&(e.shouldPreserveConstEnums(Xe)||!Lv(t))}function Lv(r){return rT(r)||!!r.constEnumOnlyModule}function qb(r,t){if(Ud(r)){var i=wn(r),o=i&&Ja(i);if(o!=null&&o.referenced)return!0;var s=Ja(i).target;if(s&&e.getEffectiveModifierFlags(r)&1&&s.flags&111551&&(e.shouldPreserveConstEnums(Xe)||!Lv(s)))return!0}return t?!!e.forEachChild(r,function(c){return qb(c,t)}):!1}function gI(r){if(e.nodeIsPresent(r.body)){if(e.isGetAccessor(r)||e.isSetAccessor(r))return!1;var t=wn(r),i=Op(t);return i.length>1||i.length===1&&i[0].declaration!==r}return!1}function vI(r){return!!Er&&!w_(r)&&!e.isJSDocParameterTag(r)&&!!r.initializer&&!e.hasSyntacticModifier(r,16476)}function O8(r){return Er&&w_(r)&&!r.initializer&&e.hasSyntacticModifier(r,16476)}function R8(r){return!!Er&&w_(r)&&!r.initializer}function w8(r){var t=e.getParseTreeNode(r,e.isFunctionDeclaration);if(!t)return!1;var i=wn(t);return!i||!(i.flags&16)?!1:!!e.forEachEntry(Js(i),function(o){return o.flags&111551&&o.valueDeclaration&&e.isPropertyAccessExpression(o.valueDeclaration)})}function P8(r){var t=e.getParseTreeNode(r,e.isFunctionDeclaration);if(!t)return e.emptyArray;var i=wn(t);return i&&Yi(An(i))||e.emptyArray}function Cm(r){var t,i=r.id||0;return i<0||i>=Ic.length?0:((t=Ic[i])===null||t===void 0?void 0:t.flags)||0}function Xb(r){return rI(r.parent),Zn(r).enumMemberValue}function hI(r){switch(r.kind){case 297:case 205:case 206:return!0}return!1}function xT(r){if(r.kind===297)return Xb(r);var t=Zn(r).resolvedSymbol;if(t&&t.flags&8){var i=t.valueDeclaration;if(e.isEnumConst(i.parent))return Xb(i)}}function IT(r){return!!(r.flags&524288)&&Ni(r,0).length>0}function M8(r,t){var i,o,s=e.getParseTreeNode(r,e.isEntityName);if(!s||t&&(t=e.getParseTreeNode(t),!t))return e.TypeReferenceSerializationKind.Unknown;var c=!1;if(e.isQualifiedName(s)){var L=rs(e.getFirstIdentifier(s),111551,!0,!0,t);c=!!(!((i=L==null?void 0:L.declarations)===null||i===void 0)&&i.every(e.isTypeOnlyImportOrExportDeclaration))}var G=rs(s,111551,!0,!0,t),ce=G&&G.flags&2097152?ms(G):G;c||(c=!!(!((o=G==null?void 0:G.declarations)===null||o===void 0)&&o.every(e.isTypeOnlyImportOrExportDeclaration)));var we=rs(s,788968,!0,!1,t);if(ce&&ce===we){var Ue=t0(!1);if(Ue&&ce===Ue)return e.TypeReferenceSerializationKind.Promise;var Je=An(ce);if(Je&&tm(Je))return c?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!we)return c?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var ar=po(we);return Ua(ar)?c?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:ar.flags&3?e.TypeReferenceSerializationKind.ObjectType:ys(ar,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:ys(ar,528)?e.TypeReferenceSerializationKind.BooleanType:ys(ar,296)?e.TypeReferenceSerializationKind.NumberLikeType:ys(ar,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:ys(ar,402653316)?e.TypeReferenceSerializationKind.StringLikeType:ki(ar)?e.TypeReferenceSerializationKind.ArrayLikeType:ys(ar,12288)?e.TypeReferenceSerializationKind.ESSymbolType:IT(ar)?e.TypeReferenceSerializationKind.TypeWithCallSignature:el(ar)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function F8(r,t,i,o,s){var c=e.getParseTreeNode(r,e.isVariableLikeOrAccessor);if(!c)return e.factory.createToken(130);var L=wn(c),G=L&&!(L.flags&133120)?Mp(An(L)):dr;return G.flags&8192&&G.symbol===L&&(i|=1048576),s&&(G=Jf(G)),Dr.typeToTypeNode(G,t,i|1024,o)}function G8(r,t,i,o){var s=e.getParseTreeNode(r,e.isFunctionLike);if(!s)return e.factory.createToken(130);var c=bu(s);return Dr.typeToTypeNode(_o(c),t,i|1024,o)}function B8(r,t,i,o){var s=e.getParseTreeNode(r,e.isExpression);if(!s)return e.factory.createToken(130);var c=wl(dI(s));return Dr.typeToTypeNode(c,t,i|1024,o)}function U8(r){return Fr.has(e.escapeLeadingUnderscores(r))}function Av(r,t){var i=Zn(r).resolvedSymbol;if(i)return i;var o=r;if(t){var s=r.parent;e.isDeclaration(s)&&r===s.name&&(o=fa(s))}return Uo(o,r.escapedText,3257279,void 0,void 0,!0)}function V8(r){if(!e.isGeneratedIdentifier(r)){var t=e.getParseTreeNode(r,e.isIdentifier);if(t){var i=Av(t);if(i)return tc(i).valueDeclaration}}}function W8(r){return e.isDeclarationReadonly(r)||e.isVariableDeclaration(r)&&e.isVarConst(r)?Pp(An(wn(r))):!1}function j8(r,t,i){var o=r.flags&1024?Dr.symbolToExpression(r.symbol,111551,t,void 0,i):r===sa?e.factory.createTrue():r===mt&&e.factory.createFalse();if(o)return o;var s=r.value;return typeof s=="object"?e.factory.createBigIntLiteral(s):typeof s=="number"?e.factory.createNumericLiteral(s):e.factory.createStringLiteral(s)}function H8(r,t){var i=An(wn(r));return j8(i,r,t)}function yI(r){return r?(bo(r),e.getSourceFileOfNode(r).localJsxFactory||jt):jt}function NT(r){if(r){var t=e.getSourceFileOfNode(r);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;var i=t.pragmas.get("jsxfrag"),o=e.isArray(i)?i[0]:i;if(o)return t.localJsxFragmentFactory=e.parseIsolatedEntityName(o.arguments.factory,De),t.localJsxFragmentFactory}}if(Xe.jsxFragmentFactory)return e.parseIsolatedEntityName(Xe.jsxFragmentFactory,De)}function J8(){var r=j.getResolvedTypeReferenceDirectives(),t;return r&&(t=new e.Map,r.forEach(function(ce,we){if(!(!ce||!ce.resolvedFileName)){var Ue=j.getSourceFile(ce.resolvedFileName);Ue&&G(Ue,we)}})),{getReferencedExportContainer:A8,getReferencedImportDeclaration:C8,getReferencedDeclarationWithCollidingName:I8,isDeclarationWithCollidingName:N8,isValueAliasDeclaration:function(ce){var we=e.getParseTreeNode(ce);return we?mI(we):!0},hasGlobalName:U8,isReferencedAliasDeclaration:function(ce,we){var Ue=e.getParseTreeNode(ce);return Ue?qb(Ue,we):!0},getNodeCheckFlags:function(ce){var we=e.getParseTreeNode(ce);return we?Cm(we):0},isTopLevelValueImportEqualsWithEntityName:k8,isDeclarationVisible:Qc,isImplementationOfOverload:gI,isRequiredInitializedParameter:vI,isOptionalUninitializedParameterProperty:O8,isExpandoFunctionDeclaration:w8,getPropertiesOfContainerFunction:P8,createTypeOfDeclaration:F8,createReturnTypeOfSignatureDeclaration:G8,createTypeOfExpression:B8,createLiteralConstValue:H8,isSymbolAccessible:rf,isEntityNameVisible:t_,getConstantValue:function(ce){var we=e.getParseTreeNode(ce,hI);return we?xT(we):void 0},collectLinkedAliases:Pf,getReferencedValueDeclaration:V8,getTypeReferenceSerializationKind:M8,isOptionalParameter:w_,moduleExportsSomeValue:D8,isArgumentsLocalBinding:S8,getExternalModuleFileFromDeclaration:function(ce){var we=e.getParseTreeNode(ce,e.hasPossibleExternalModuleReference);return we&&kT(we)},getTypeReferenceDirectivesForEntityName:s,getTypeReferenceDirectivesForSymbol:c,isLiteralConstDeclaration:W8,isLateBound:function(ce){var we=e.getParseTreeNode(ce,e.isDeclaration),Ue=we&&wn(we);return!!(Ue&&e.getCheckFlags(Ue)&4096)},getJsxFactoryEntity:yI,getJsxFragmentFactoryEntity:NT,getAllAccessorDeclarations:function(ce){ce=e.getParseTreeNode(ce,e.isGetOrSetAccessorDeclaration);var we=ce.kind===172?171:172,Ue=e.getDeclarationOfKind(wn(ce),we),Je=Ue&&Ue.pos<ce.pos?Ue:ce,ar=Ue&&Ue.pos<ce.pos?ce:Ue,_r=ce.kind===172?ce:Ue,Br=ce.kind===171?ce:Ue;return{firstAccessor:Je,secondAccessor:ar,setAccessor:_r,getAccessor:Br}},getSymbolOfExternalModuleSpecifier:function(ce){return Pc(ce,ce,void 0)},isBindingCapturedByNode:function(ce,we){var Ue=e.getParseTreeNode(ce),Je=e.getParseTreeNode(we);return!!Ue&&!!Je&&(e.isVariableDeclaration(Je)||e.isBindingElement(Je))&&aP(Ue,Je)},getDeclarationStatementsForSourceFile:function(ce,we,Ue,Je){var ar=e.getParseTreeNode(ce);e.Debug.assert(ar&&ar.kind===303,"Non-sourcefile node passed into getDeclarationsForSourceFile");var _r=wn(ce);return _r?_r.exports?Dr.symbolTableToDeclarationStatements(_r.exports,ce,we,Ue,Je):[]:ce.locals?Dr.symbolTableToDeclarationStatements(ce.locals,ce,we,Ue,Je):[]},isImportRequiredByAugmentation:i};function i(ce){var we=e.getSourceFileOfNode(ce);if(!we.symbol)return!1;var Ue=kT(ce);if(!Ue||Ue===we)return!1;for(var Je=Gl(we.symbol),ar=0,_r=e.arrayFrom(Je.values());ar<_r.length;ar++){var Br=_r[ar];if(Br.mergeId){var Zr=Ga(Br);if(Zr.declarations)for(var Et=0,Tt=Zr.declarations;Et<Tt.length;Et++){var At=Tt[Et],Vt=e.getSourceFileOfNode(At);if(Vt===Ue)return!0}}}return!1}function o(ce){return ce.parent&&ce.parent.kind===227&&ce.parent.parent&&ce.parent.parent.kind===290}function s(ce){if(!!t){var we=790504;(ce.kind===79&&ug(ce)||ce.kind===205&&!o(ce))&&(we=1160127);var Ue=rs(ce,we,!0);return Ue&&Ue!==We?c(Ue,we):void 0}}function c(ce,we){if(!(!t||!L(ce))){for(var Ue,Je=0,ar=ce.declarations;Je<ar.length;Je++){var _r=ar[Je];if(_r.symbol&&_r.symbol.flags&we){var Br=e.getSourceFileOfNode(_r),Zr=t.get(Br.path);if(Zr)(Ue||(Ue=[])).push(Zr);else return}}return Ue}}function L(ce){if(!ce.declarations)return!1;for(var we=ce;;){var Ue=Ts(we);if(Ue)we=Ue;else break}if(we.valueDeclaration&&we.valueDeclaration.kind===303&&we.flags&512)return!1;for(var Je=0,ar=ce.declarations;Je<ar.length;Je++){var _r=ar[Je],Br=e.getSourceFileOfNode(_r);if(t.has(Br.path))return!0}return!1}function G(ce,we){if(!t.has(ce.path)){t.set(ce.path,we);for(var Ue=0,Je=ce.referencedFiles;Ue<Je.length;Ue++){var ar=Je[Ue].fileName,_r=e.resolveTripleslashReference(ar,ce.fileName),Br=j.getSourceFile(_r);Br&&G(Br,we)}}}}function kT(r){var t=r.kind===260?e.tryCast(r.name,e.isStringLiteral):e.getExternalModuleName(r),i=Pc(t,t,void 0);if(!!i)return e.getDeclarationOfKind(i,303)}function K8(){for(var r=0,t=j.getSourceFiles();r<t.length;r++){var i=t[r];e.bindSourceFile(i,Xe)}zo=new e.Map;for(var o,s=0,c=j.getSourceFiles();s<c.length;s++){var i=c[s];if(!i.redirectInfo){if(!e.isExternalOrCommonJsModule(i)){var L=i.locals.get("globalThis");if(L!=null&&L.declarations)for(var G=0,ce=L.declarations;G<ce.length;G++){var we=ce[G];ua.add(e.createDiagnosticForNode(we,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}dl(Fr,i.locals)}if(i.jsGlobalAugmentations&&dl(Fr,i.jsGlobalAugmentations),i.patternAmbientModules&&i.patternAmbientModules.length&&(dt=e.concatenate(dt,i.patternAmbientModules)),i.moduleAugmentations.length&&(o||(o=[])).push(i.moduleAugmentations),i.symbol&&i.symbol.globalExports){var Ue=i.symbol.globalExports;Ue.forEach(function(ca,la){Fr.has(la)||Fr.set(la,ca)})}}}if(o)for(var Je=0,ar=o;Je<ar.length;Je++)for(var _r=ar[Je],Br=0,Zr=_r;Br<Zr.length;Br++){var Et=Zr[Br];!e.isGlobalScopeAugmentation(Et.parent)||Xp(Et)}if(Rs(Fr,Si,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),Ja(He).type=zr,Ja(Jr).type=$s("IArguments",0,!0),Ja(We).type=dr,Ja(pr).type=Bl(16,pr),se=$s("Array",1,!0),Un=$s("Object",0,!0),Oe=$s("Function",0,!0),oe=Cr&&$s("CallableFunction",0,!0)||Oe,mr=Cr&&$s("NewableFunction",0,!0)||Oe,er=$s("String",0,!0),hr=$s("Number",0,!0),qr=$s("Boolean",0,!0),Dt=$s("RegExp",0,!0),Sn=zs(Ze),ta=zs(xr),ta===Qn&&(ta=ts(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray)),Be=UD("ReadonlyArray",1)||se,xa=Be?qg(Be,[Ze]):Sn,Jt=UD("ThisType",1),o)for(var Tt=0,At=o;Tt<At.length;Tt++)for(var _r=At[Tt],Vt=0,Nn=_r;Vt<Nn.length;Vt++){var Et=Nn[Vt];e.isGlobalScopeAugmentation(Et.parent)||Xp(Et)}zo.forEach(function(on){var ca=on.firstFile,la=on.secondFile,di=on.conflictingSymbols;if(di.size<8)di.forEach(function(Li,Bi){for(var Ai=Li.isBlockScoped,xo=Li.firstFileLocations,Wt=Li.secondFileLocations,Ft=Ai?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,_n=0,Ca=xo;_n<Ca.length;_n++){var Yn=Ca[_n];Jc(Yn,Ft,Bi,Wt)}for(var Ba=0,Ti=Wt;Ba<Ti.length;Ba++){var Yn=Ti[Ba];Jc(Yn,Ft,Bi,xo)}});else{var Aa=e.arrayFrom(di.keys()).join(", ");ua.add(e.addRelatedInfo(e.createDiagnosticForNode(ca,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,Aa),e.createDiagnosticForNode(la,e.Diagnostics.Conflicts_are_in_this_file))),ua.add(e.addRelatedInfo(e.createDiagnosticForNode(la,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,Aa),e.createDiagnosticForNode(ca,e.Diagnostics.Conflicts_are_in_this_file)))}}),zo=void 0}function nl(r,t){if((Q&t)!==t&&Xe.importHelpers){var i=e.getSourceFileOfNode(r);if(e.isEffectiveExternalModule(i,Xe)&&!(r.flags&8388608)){var o=q8(i,r);if(o!==We){for(var s=t&~Q,c=1;c<=4194304;c<<=1)if(s&c){var L=z8(c),G=ks(o.exports,e.escapeLeadingUnderscores(L),111551);G?c&524288?e.some(Op(G),function(ce){return Tl(ce)>3})||Mr(r,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,L,4):c&1048576?e.some(Op(G),function(ce){return Tl(ce)>4})||Mr(r,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,L,5):c&1024&&(e.some(Op(G),function(ce){return Tl(ce)>2})||Mr(r,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,L,3)):Mr(r,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,L)}}Q|=t}}}function z8(r){switch(r){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"__classPrivateFieldIn";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function q8(r,t){return V||(V=Qu(r,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||We),V}function ff(r){return X8(r)||Y8(r)}function X8(r){if(!r.decorators)return!1;if(e.nodeCanBeDecorated(r,r.parent,r.parent.parent)){if(r.kind===171||r.kind===172){var t=e.getAllAccessorDeclarations(r.parent.members,r);if(t.firstAccessor.decorators&&r===t.secondAccessor)return Gs(r,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return r.kind===168&&!e.nodeIsPresent(r.body)?Gs(r,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Gs(r,e.Diagnostics.Decorators_are_not_valid_here);return!1}function Y8(r){var t=Q8(r);if(t!==void 0)return t;for(var i,o,s,c,L,G=0,ce=0,we=r.modifiers;ce<we.length;ce++){var Ue=we[ce];if(Ue.kind!==144){if(r.kind===165||r.kind===167)return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(Ue.kind));if(r.kind===175&&(Ue.kind!==124||!e.isClassLike(r.parent)))return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(Ue.kind))}switch(Ue.kind){case 85:if(r.kind!==259)return sn(r,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(85));break;case 158:if(G&16384)return sn(Ue,e.Diagnostics._0_modifier_already_seen,"override");if(G&2)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(G&64)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(G&256)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");G|=16384,L=Ue;break;case 123:case 122:case 121:var Je=pd(e.modifierToFlag(Ue.kind));if(G&28)return sn(Ue,e.Diagnostics.Accessibility_modifier_already_seen);if(G&16384)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,Je,"override");if(G&32)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,Je,"static");if(G&64)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,Je,"readonly");if(G&256)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,Je,"async");if(r.parent.kind===261||r.parent.kind===303)return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,Je);if(G&128)return Ue.kind===121?sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,Je,"abstract"):sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,Je,"abstract");if(e.isPrivateIdentifierClassElementDeclaration(r))return sn(Ue,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);G|=e.modifierToFlag(Ue.kind);break;case 124:if(G&32)return sn(Ue,e.Diagnostics._0_modifier_already_seen,"static");if(G&64)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(G&256)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(r.parent.kind===261||r.parent.kind===303)return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(r.kind===163)return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(G&128)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(G&16384)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");G|=32,i=Ue;break;case 144:if(G&64)return sn(Ue,e.Diagnostics._0_modifier_already_seen,"readonly");if(r.kind!==166&&r.kind!==165&&r.kind!==175&&r.kind!==163)return sn(Ue,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);G|=64,c=Ue;break;case 93:if(G&1)return sn(Ue,e.Diagnostics._0_modifier_already_seen,"export");if(G&2)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(G&128)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(G&256)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(r.parent))return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(r.kind===163)return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");G|=1;break;case 88:var ar=r.parent.kind===303?r.parent:r.parent.parent;if(ar.kind===260&&!e.isAmbientModule(ar))return sn(Ue,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(G&1))return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");G|=512;break;case 135:if(G&2)return sn(Ue,e.Diagnostics._0_modifier_already_seen,"declare");if(G&256)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(G&16384)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(e.isClassLike(r.parent)&&!e.isPropertyDeclaration(r))return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(r.kind===163)return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(r.parent.flags&8388608&&r.parent.kind===261)return sn(Ue,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierClassElementDeclaration(r))return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");G|=2,o=Ue;break;case 126:if(G&128)return sn(Ue,e.Diagnostics._0_modifier_already_seen,"abstract");if(r.kind!==256&&r.kind!==179){if(r.kind!==168&&r.kind!==166&&r.kind!==171&&r.kind!==172)return sn(Ue,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(r.parent.kind===256&&e.hasSyntacticModifier(r.parent,128)))return sn(Ue,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(G&32)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(G&8)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(G&256&&s)return sn(s,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(G&16384)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override")}if(e.isNamedDeclaration(r)&&r.name.kind===80)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");G|=128;break;case 131:if(G&256)return sn(Ue,e.Diagnostics._0_modifier_already_seen,"async");if(G&2||r.parent.flags&8388608)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(r.kind===163)return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(G&128)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");G|=256,s=Ue;break}}return r.kind===170?G&32?sn(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):G&128?sn(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):G&16384?sn(L,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):G&256?sn(s,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):G&64?sn(c,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):!1:(r.kind===265||r.kind===264)&&G&2?sn(o,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):r.kind===163&&G&16476&&e.isBindingPattern(r.name)?sn(r,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):r.kind===163&&G&16476&&r.dotDotDotToken?sn(r,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):G&256?$8(r,s):!1}function Q8(r){return r.modifiers?Z8(r)?Gs(r,e.Diagnostics.Modifiers_cannot_appear_here):void 0:!1}function Z8(r){switch(r.kind){case 171:case 172:case 170:case 166:case 165:case 168:case 167:case 175:case 260:case 265:case 264:case 271:case 270:case 212:case 213:case 163:return!1;default:if(r.parent.kind===261||r.parent.kind===303)return!1;switch(r.kind){case 255:return OT(r,131);case 256:case 179:return OT(r,126);case 257:case 236:case 258:case 169:return!0;case 259:return OT(r,85);default:e.Debug.fail()}}}function OT(r,t){return r.modifiers.length>1||r.modifiers[0].kind!==t}function $8(r,t){switch(r.kind){case 168:case 255:case 212:case 213:return!1}return sn(t,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function K_(r,t){return t===void 0&&(t=e.Diagnostics.Trailing_comma_not_allowed),r&&r.hasTrailingComma?gp(r[0],r.end-1,1,t):!1}function bI(r,t){if(r&&r.length===0){var i=r.pos-1,o=e.skipTrivia(t.text,r.end)+1;return gp(t,i,o-i,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function eF(r){for(var t=!1,i=r.length,o=0;o<i;o++){var s=r[o];if(s.dotDotDotToken){if(o!==i-1)return sn(s.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(s.flags&8388608||K_(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),s.questionToken)return sn(s.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(s.initializer)return sn(s.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(w_(s)){if(t=!0,s.questionToken&&s.initializer)return sn(s.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!s.initializer)return sn(s.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}function rF(r){return e.filter(r,function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)})}function tF(r){if(De>=3){var t=r.body&&e.isBlock(r.body)&&e.findUseStrictPrologue(r.body.statements);if(t){var i=rF(r.parameters);if(e.length(i)){e.forEach(i,function(s){e.addRelatedInfo(Mr(s,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(t,e.Diagnostics.use_strict_directive_used_here))});var o=i.map(function(s,c){return c===0?e.createDiagnosticForNode(s,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(s,e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,Gt([Mr(t,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],o,!1)),!0}}}return!1}function Yb(r){var t=e.getSourceFileOfNode(r);return ff(r)||bI(r.typeParameters,t)||eF(r.parameters)||aF(r,t)||e.isFunctionLikeDeclaration(r)&&tF(r)}function nF(r){var t=e.getSourceFileOfNode(r);return fF(r)||bI(r.typeParameters,t)}function aF(r,t){if(!e.isArrowFunction(r))return!1;r.typeParameters&&!(e.length(r.typeParameters)>1||r.typeParameters.hasTrailingComma||r.typeParameters[0].constraint)&&t&&e.fileExtensionIsOneOf(t.fileName,[".mts",".cts"])&&sn(r.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var i=r.equalsGreaterThanToken,o=e.getLineAndCharacterOfPosition(t,i.pos).line,s=e.getLineAndCharacterOfPosition(t,i.end).line;return o!==s&&sn(i,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}function iF(r){var t=r.parameters[0];if(r.parameters.length!==1)return sn(t?t.name:r,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(K_(r.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return sn(t.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(t))return sn(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return sn(t.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return sn(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return sn(t.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var i=Da(t.type);return hm(i,function(o){return!!(o.flags&8576)})||Qg(i)?sn(t.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Kf(i,Dy)?r.type?!1:sn(r,e.Diagnostics.An_index_signature_must_have_a_type_annotation):sn(t.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function oF(r){return ff(r)||iF(r)}function sF(r,t){if(t&&t.length===0){var i=e.getSourceFileOfNode(r),o=t.pos-1,s=e.skipTrivia(i.text,t.end)+1;return gp(i,o,s-o,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}function Kh(r,t){return K_(t)||sF(r,t)}function lF(r){return r.questionDotToken||r.flags&32?sn(r.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function cF(r){if(r)for(var t=0,i=r;t<i.length;t++){var o=i[t];if(o.kind===226)return gp(o,o.pos,0,e.Diagnostics.Argument_expression_expected)}return!1}function EI(r){return cF(r)}function TI(r){var t=r.types;if(K_(t))return!0;if(t&&t.length===0){var i=e.tokenToString(r.token);return gp(r,t.pos,0,e.Diagnostics._0_list_cannot_be_empty,i)}return e.some(t,uF)}function uF(r){return Kh(r,r.typeArguments)}function fF(r){var t=!1,i=!1;if(!ff(r)&&r.heritageClauses)for(var o=0,s=r.heritageClauses;o<s.length;o++){var c=s[o];if(c.token===94){if(t)return Gs(c,e.Diagnostics.extends_clause_already_seen);if(i)return Gs(c,e.Diagnostics.extends_clause_must_precede_implements_clause);if(c.types.length>1)return Gs(c.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(e.Debug.assert(c.token===117),i)return Gs(c,e.Diagnostics.implements_clause_already_seen);i=!0}TI(c)}}function dF(r){var t=!1;if(r.heritageClauses)for(var i=0,o=r.heritageClauses;i<o.length;i++){var s=o[i];if(s.token===94){if(t)return Gs(s,e.Diagnostics.extends_clause_already_seen);t=!0}else return e.Debug.assert(s.token===117),Gs(s,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);TI(s)}return!1}function Qb(r){if(r.kind!==161)return!1;var t=r;return t.expression.kind===220&&t.expression.operatorToken.kind===27?sn(t.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function RT(r){if(r.asteriskToken){if(e.Debug.assert(r.kind===255||r.kind===212||r.kind===168),r.flags&8388608)return sn(r.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!r.body)return sn(r.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function SI(r,t){return!!r&&sn(r,t)}function DI(r,t){return!!r&&sn(r,t)}function pF(r,t){for(var i=new e.Map,o=0,s=r.properties;o<s.length;o++){var c=s[o];if(c.kind===296){if(t){var L=e.skipParentheses(c.expression);if(e.isArrayLiteralExpression(L)||e.isObjectLiteralExpression(L))return sn(c.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}continue}var G=c.name;if(G.kind===161&&Qb(G),c.kind===295&&!t&&c.objectAssignmentInitializer)return sn(c.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(G.kind===80&&sn(G,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),c.modifiers)for(var ce=0,we=c.modifiers;ce<we.length;ce++){var Ue=we[ce];(Ue.kind!==131||c.kind!==168)&&sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(Ue))}var Je=void 0;switch(c.kind){case 295:DI(c.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 294:SI(c.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),G.kind===8&&MT(G),Je=4;break;case 168:Je=8;break;case 171:Je=1;break;case 172:Je=2;break;default:throw e.Debug.assertNever(c,"Unexpected syntax kind:"+c.kind)}if(!t){var ar=e.getPropertyNameForPropertyNameNode(G);if(ar===void 0)continue;var _r=i.get(ar);if(!_r)i.set(ar,Je);else if(Je&12&&_r&12)sn(G,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(G));else if(Je&3&&_r&3)if(_r!==3&&Je!==_r)i.set(ar,Je|_r);else return sn(G,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return sn(G,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function _F(r){mF(r.tagName),Kh(r,r.typeArguments);for(var t=new e.Map,i=0,o=r.attributes.properties;i<o.length;i++){var s=o[i];if(s.kind!==286){var c=s.name,L=s.initializer;if(!t.get(c.escapedText))t.set(c.escapedText,!0);else return sn(c,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(L&&L.kind===287&&!L.expression)return sn(L,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}function mF(r){if(e.isPropertyAccessExpression(r)){var t=r;do{var i=s(t.name);if(i)return i;t=t.expression}while(e.isPropertyAccessExpression(t));var o=s(t);if(o)return o}function s(c){if(e.isIdentifier(c)&&e.idText(c).indexOf(":")!==-1)return sn(c,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}}function gF(r){if(r.expression&&e.isCommaSequence(r.expression))return sn(r.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function LI(r){if(df(r))return!0;if(r.kind===243&&r.awaitModifier&&!(r.flags&32768)){var t=e.getSourceFileOfNode(r);if(e.isInTopLevelContext(r))D_(t)||(e.isEffectiveExternalModule(t,Xe)||ua.add(e.createDiagnosticForNode(r.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)),(Ae!==e.ModuleKind.ES2022&&Ae!==e.ModuleKind.ESNext&&Ae!==e.ModuleKind.System&&!(Ae===e.ModuleKind.NodeNext&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.ESNext)||De<4)&&ua.add(e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher)));else if(!D_(t)){var i=e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),o=e.getContainingFunction(r);if(o&&o.kind!==170){e.Debug.assert((e.getFunctionFlags(o)&2)===0,"Enclosing function should never be an async function.");var s=e.createDiagnosticForNode(o,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(i,s)}return ua.add(i),!0}return!1}if(e.isForOfStatement(r)&&!(r.flags&32768)&&e.isIdentifier(r.initializer)&&r.initializer.escapedText==="async")return sn(r.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(r.initializer.kind===254){var c=r.initializer;if(!PT(c)){var L=c.declarations;if(!L.length)return!1;if(L.length>1){var i=r.kind===242?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 Gs(c.declarations[1],i)}var G=L[0];if(G.initializer){var i=r.kind===242?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 sn(G.name,i)}if(G.type){var i=r.kind===242?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 sn(G,i)}}}return!1}function vF(r){if(!(r.flags&8388608)&&r.parent.kind!==181&&r.parent.kind!==257){if(De<1)return sn(r.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(De<2&&e.isPrivateIdentifier(r.name))return sn(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.body===void 0&&!e.hasSyntacticModifier(r,128))return gp(r,r.end-1,1,e.Diagnostics._0_expected,"{")}if(r.body){if(e.hasSyntacticModifier(r,128))return sn(r,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(r.parent.kind===181||r.parent.kind===257)return sn(r.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(r.typeParameters)return sn(r.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!hF(r))return sn(r.name,r.kind===171?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(r.kind===172){if(r.type)return sn(r.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var t=e.Debug.checkDefined(e.getSetAccessorValueParameter(r),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return sn(t.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return sn(t.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return sn(r.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function hF(r){return wT(r)||r.parameters.length===(r.kind===171?0:1)}function wT(r){if(r.parameters.length===(r.kind===171?1:2))return e.getThisParameter(r)}function yF(r){if(r.operator===153){if(r.type.kind!==150)return sn(r.type,e.Diagnostics._0_expected,e.tokenToString(150));var t=e.walkUpParenthesizedTypes(r.parent);switch(e.isInJSFile(t)&&e.isJSDocTypeExpression(t)&&(t=t.parent,e.isJSDocTypeTag(t)&&(t=t.parent.parent)),t.kind){case 253:var i=t;if(i.name.kind!==79)return sn(r,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(i))return sn(r,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(i.parent.flags&2))return sn(t.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 166:if(!e.isStatic(t)||!e.hasEffectiveReadonlyModifier(t))return sn(t.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 165:if(!e.hasSyntacticModifier(t,64))return sn(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 sn(r,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(r.operator===144&&r.type.kind!==182&&r.type.kind!==183)return Gs(r,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(150))}function Lg(r,t){if(kE(r))return sn(r,t)}function AI(r){if(Yb(r))return!0;if(r.kind===168){if(r.parent.kind===204){if(r.modifiers&&!(r.modifiers.length===1&&e.first(r.modifiers).kind===131))return Gs(r,e.Diagnostics.Modifiers_cannot_appear_here);if(SI(r.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(DI(r.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(r.body===void 0)return gp(r,r.end-1,1,e.Diagnostics._0_expected,"{")}if(RT(r))return!0}if(e.isClassLike(r.parent)){if(De<2&&e.isPrivateIdentifier(r.name))return sn(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.flags&8388608)return Lg(r.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(r.kind===168&&!r.body)return Lg(r.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(r.parent.kind===257)return Lg(r.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(r.parent.kind===181)return Lg(r.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 bF(r){for(var t=r;t;){if(e.isFunctionLikeOrClassStaticBlockDeclaration(t))return sn(r,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 249:if(r.label&&t.label.escapedText===r.label.escapedText){var i=r.kind===244&&!e.isIterationStatement(t.statement,!0);return i?sn(r,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1}break;case 248:if(r.kind===245&&!r.label)return!1;break;default:if(e.isIterationStatement(t,!1)&&!r.label)return!1;break}t=t.parent}if(r.label){var o=r.kind===245?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 sn(r,o)}else{var o=r.kind===245?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 sn(r,o)}}function EF(r){if(r.dotDotDotToken){var t=r.parent.elements;if(r!==e.last(t))return sn(r,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(K_(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),r.propertyName)return sn(r.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(r.dotDotDotToken&&r.initializer)return gp(r,r.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}function CI(r){return e.isStringOrNumericLiteralLike(r)||r.kind===218&&r.operator===40&&r.operand.kind===8}function TF(r){return r.kind===9||r.kind===218&&r.operator===40&&r.operand.kind===9}function SF(r){if((e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)&&CI(r.argumentExpression))&&e.isEntityNameExpression(r.expression))return!!(Ss(r).flags&1024)}function xI(r){var t=r.initializer;if(t){var i=!(CI(t)||SF(t)||t.kind===110||t.kind===95||TF(t)),o=e.isDeclarationReadonly(r)||e.isVariableDeclaration(r)&&e.isVarConst(r);if(o&&!r.type){if(i)return sn(t,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return sn(t,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(!o||i)return sn(t,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function DF(r){if(r.parent.parent.kind!==242&&r.parent.parent.kind!==243){if(r.flags&8388608)xI(r);else if(!r.initializer){if(e.isBindingPattern(r.name)&&!e.isBindingPattern(r.parent))return sn(r,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(r))return sn(r,e.Diagnostics.const_declarations_must_be_initialized)}}if(r.exclamationToken&&(r.parent.parent.kind!==236||!r.type||r.initializer||r.flags&8388608)){var t=r.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.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 sn(r.exclamationToken,t)}(Ae<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&Ae!==e.ModuleKind.System&&!(r.parent.parent.flags&8388608)&&e.hasSyntacticModifier(r.parent.parent,1)&&II(r.name);var i=e.isLet(r)||e.isVarConst(r);return i&&NI(r.name)}function II(r){if(r.kind===79){if(e.idText(r)==="__esModule")return CF("noEmit",r,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var t=r.elements,i=0,o=t;i<o.length;i++){var s=o[i];if(!e.isOmittedExpression(s))return II(s.name)}return!1}function NI(r){if(r.kind===79){if(r.originalKeywordKind===119)return sn(r,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var t=r.elements,i=0,o=t;i<o.length;i++){var s=o[i];e.isOmittedExpression(s)||NI(s.name)}return!1}function PT(r){var t=r.declarations;return K_(r.declarations)?!0:r.declarations.length?!1:gp(r,t.pos,t.end-t.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function kI(r){switch(r.kind){case 238:case 239:case 240:case 247:case 241:case 242:case 243:return!1;case 249:return kI(r.parent)}return!0}function LF(r){if(!kI(r.parent)){if(e.isLet(r.declarationList))return sn(r,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isVarConst(r.declarationList))return sn(r,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}function AF(r){var t=r.name.escapedText;switch(r.keywordToken){case 103:if(t!=="target")return sn(r.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r.name.escapedText,e.tokenToString(r.keywordToken),"target");break;case 100:if(t!=="meta")return sn(r.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r.name.escapedText,e.tokenToString(r.keywordToken),"meta");break}}function D_(r){return r.parseDiagnostics.length>0}function Gs(r,t,i,o,s){var c=e.getSourceFileOfNode(r);if(!D_(c)){var L=e.getSpanOfTokenAtPosition(c,r.pos);return ua.add(e.createFileDiagnostic(c,L.start,L.length,t,i,o,s)),!0}return!1}function gp(r,t,i,o,s,c,L){var G=e.getSourceFileOfNode(r);return D_(G)?!1:(ua.add(e.createFileDiagnostic(G,t,i,o,s,c,L)),!0)}function CF(r,t,i,o,s,c){var L=e.getSourceFileOfNode(t);return D_(L)?!1:(Zl(r,t,i,o,s,c),!0)}function sn(r,t,i,o,s){var c=e.getSourceFileOfNode(r);return D_(c)?!1:(ua.add(e.createDiagnosticForNode(r,t,i,o,s)),!0)}function xF(r){var t=e.isInJSFile(r)?e.getJSDocTypeParameterDeclarations(r):void 0,i=r.typeParameters||t&&e.firstOrUndefined(t);if(i){var o=i.pos===i.end?i.pos:e.skipTrivia(e.getSourceFileOfNode(r).text,i.pos);return gp(r,o,i.end-o,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function IF(r){var t=e.getEffectiveReturnTypeNode(r);if(t)return sn(t,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function NF(r){if(e.isComputedPropertyName(r.name)&&e.isBinaryExpression(r.name.expression)&&r.name.expression.operatorToken.kind===101)return sn(r.parent.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods);if(e.isClassLike(r.parent)){if(e.isStringLiteral(r.name)&&r.name.text==="constructor")return sn(r.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(Lg(r.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(De<2&&e.isPrivateIdentifier(r.name))return sn(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(r.parent.kind===257){if(Lg(r.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(r.initializer)return sn(r.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(e.isTypeLiteralNode(r.parent)){if(Lg(r.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(r.initializer)return sn(r.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(r.flags&8388608&&xI(r),e.isPropertyDeclaration(r)&&r.exclamationToken&&(!e.isClassLike(r.parent)||!r.type||r.initializer||r.flags&8388608||e.isStatic(r)||e.hasAbstractModifier(r))){var t=r.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.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 sn(r.exclamationToken,t)}}function kF(r){return r.kind===257||r.kind===258||r.kind===265||r.kind===264||r.kind===271||r.kind===270||r.kind===263||e.hasSyntacticModifier(r,515)?!1:Gs(r,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function OF(r){for(var t=0,i=r.statements;t<i.length;t++){var o=i[t];if((e.isDeclaration(o)||o.kind===236)&&kF(o))return!0}return!1}function RF(r){return!!(r.flags&8388608)&&OF(r)}function df(r){if(r.flags&8388608){var t=Zn(r);if(!t.hasReportedStatementInAmbientContext&&(e.isFunctionLike(r.parent)||e.isAccessor(r.parent)))return Zn(r).hasReportedStatementInAmbientContext=Gs(r,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(r.parent.kind===234||r.parent.kind===261||r.parent.kind===303){var i=Zn(r.parent);if(!i.hasReportedStatementInAmbientContext)return i.hasReportedStatementInAmbientContext=Gs(r,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function MT(r){if(r.numericLiteralFlags&32){var t=void 0;if(De>=1?t=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(r,195)?t=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(r,297)&&(t=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var i=e.isPrefixUnaryExpression(r.parent)&&r.parent.operator===40,o=(i?"-":"")+"0o"+r.text;return sn(i?r.parent:r,t,o)}}return wF(r),!1}function wF(r){if(!(r.numericLiteralFlags&16||r.text.length<=15||r.text.indexOf(".")!==-1)){var t=+e.getTextOfNode(r);t<=Math.pow(2,53)-1&&t+1>t||$l(!1,e.createDiagnosticForNode(r,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}}function PF(r){var t=e.isLiteralTypeNode(r.parent)||e.isPrefixUnaryExpression(r.parent)&&e.isLiteralTypeNode(r.parent.parent);return!!(!t&&De<7&&sn(r,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function MF(r,t,i,o,s){var c=e.getSourceFileOfNode(r);if(!D_(c)){var L=e.getSpanOfTokenAtPosition(c,r.pos);return ua.add(e.createFileDiagnostic(c,e.textSpanEnd(L),0,t,i,o,s)),!0}return!1}function FF(){return yr||(yr=[],Fr.forEach(function(r,t){n.test(t)&&yr.push(r)})),yr}function GF(r){var t;return r.isTypeOnly&&r.name&&r.namedBindings?sn(r,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):r.isTypeOnly&&((t=r.namedBindings)===null||t===void 0?void 0:t.kind)===268?OI(r.namedBindings):!1}function OI(r){return!!e.forEach(r.elements,function(t){if(t.isTypeOnly)return Gs(t,t.kind===269?e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function BF(r){if(Ae===e.ModuleKind.ES2015)return sn(r,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node12_or_nodenext);if(r.typeArguments)return sn(r,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var t=r.arguments;if(Ae!==e.ModuleKind.ESNext&&(K_(t),t.length>1)){var i=t[1];return sn(i,e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext)}if(t.length===0||t.length>2)return sn(r,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var o=e.find(t,e.isSpreadElement);return o?sn(o,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element):!1}function UF(r,t){var i=e.getObjectFlags(r);if(i&20&&t.flags&1048576)return e.find(t.types,function(o){if(o.flags&524288){var s=i&e.getObjectFlags(o);if(s&4)return r.target===o.target;if(s&16)return!!r.aliasSymbol&&r.aliasSymbol===o.aliasSymbol}return!1})}function VF(r,t){if(e.getObjectFlags(r)&128&&hm(t,_p))return e.find(t.types,function(i){return!_p(i)})}function WF(r,t){var i=0,o=Ni(r,i).length>0||(i=1,Ni(r,i).length>0);if(o)return e.find(t.types,function(s){return Ni(s,i).length>0})}function jF(r,t){for(var i,o=0,s=0,c=t.types;s<c.length;s++){var L=c[s],G=To([qu(r),qu(L)]);if(G.flags&4194304)i=L,o=1/0;else if(G.flags&1048576){var ce=e.length(e.filter(G.types,Su));ce>=o&&(i=L,o=ce)}else Su(G)&&1>=o&&(i=L,o=1)}return i}function HF(r){if(Jo(r,67108864)){var t=rl(r,function(i){return!(i.flags&131068)});if(!(t.flags&131072))return t}return r}function RI(r,t,i,o){if(t.flags&1048576&&r.flags&2621440){var s=fA(t,r);if(s)return s;var c=Yi(r);if(c){var L=uA(c,t);if(L)return M0(t,e.map(L,function(G){return[function(){return An(G)},G.escapedName]}),i,void 0,o)}}}}e.createTypeChecker=C;function m(j){return!e.isAccessor(j)}function u(j){return j.kind!==255&&j.kind!==168||!!j.body}function g(j){switch(j.parent.kind){case 269:case 274:return e.isIdentifier(j);default:return e.isDeclarationName(j)}}var F;(function(j){j.JSX="JSX",j.IntrinsicElements="IntrinsicElements",j.ElementClass="ElementClass",j.ElementAttributesPropertyNameContainer="ElementAttributesProperty",j.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",j.Element="Element",j.IntrinsicAttributes="IntrinsicAttributes",j.IntrinsicClassAttributes="IntrinsicClassAttributes",j.LibraryManagedAttributes="LibraryManagedAttributes"})(F||(F={}));function te(j){switch(j){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function ue(j){return!!(j.flags&1)}e.signatureHasRestParameter=ue;function X(j){return!!(j.flags&2)}e.signatureHasLiteralTypes=X})(gr||(gr={}));var gr;(function(e){function n(b,P,S,B){if(b===void 0||P===void 0)return b;var J=P(b);if(J===b)return b;var k;if(J!==void 0)return e.isArray(J)?k=(B||ie)(J):k=J,e.Debug.assertNode(k,S),k}e.visitNode=n;function f(b,P,S,B,J){if(b===void 0||P===void 0)return b;var k,M=b.length;(B===void 0||B<0)&&(B=0),(J===void 0||J>M-B)&&(J=M-B);var x,w=-1,K=-1;(B>0||J<M)&&(k=[],x=b.hasTrailingComma&&B+J===M);for(var Z=0;Z<J;Z++){var ne=b[Z+B],R=ne!==void 0?P(ne):void 0;if((k!==void 0||R===void 0||R!==ne)&&(k===void 0&&(k=b.slice(0,Z),x=b.hasTrailingComma,w=b.pos,K=b.end),R))if(e.isArray(R))for(var Y=0,U=R;Y<U.length;Y++){var $=U[Y];e.Debug.assertNode($,S),k.push($)}else e.Debug.assertNode(R,S),k.push(R)}if(k){var T=e.factory.createNodeArray(k,x);return e.setTextRangePosEnd(T,w,K),T}return b}e.visitNodes=f;function d(b,P,S,B,J,k){return k===void 0&&(k=f),S.startLexicalEnvironment(),b=k(b,P,e.isStatement,B),J&&(b=S.factory.ensureUseStrict(b)),e.factory.mergeLexicalEnvironment(b,S.endLexicalEnvironment())}e.visitLexicalEnvironment=d;function a(b,P,S,B){B===void 0&&(B=f);var J;return S.startLexicalEnvironment(),b&&(S.setLexicalEnvironmentFlags(1,!0),J=B(b,P,e.isParameterDeclaration),S.getLexicalEnvironmentFlags()&2&&e.getEmitScriptTarget(S.getCompilerOptions())>=2&&(J=p(J,S)),S.setLexicalEnvironmentFlags(1,!1)),S.suspendLexicalEnvironment(),J}e.visitParameterList=a;function p(b,P){for(var S,B=0;B<b.length;B++){var J=b[B],k=N(J,P);(S||k!==J)&&(S||(S=b.slice(0,B)),S[B]=k)}return S?e.setTextRange(P.factory.createNodeArray(S,b.hasTrailingComma),b):b}function N(b,P){return b.dotDotDotToken?b:e.isBindingPattern(b.name)?H(b,P):b.initializer?h(b,b.name,b.initializer,P):b}function H(b,P){var S=P.factory;return P.addInitializationStatement(S.createVariableStatement(void 0,S.createVariableDeclarationList([S.createVariableDeclaration(b.name,void 0,b.type,b.initializer?S.createConditionalExpression(S.createStrictEquality(S.getGeneratedNameForNode(b),S.createVoidZero()),void 0,b.initializer,void 0,S.getGeneratedNameForNode(b)):S.getGeneratedNameForNode(b))]))),S.updateParameterDeclaration(b,b.decorators,b.modifiers,b.dotDotDotToken,S.getGeneratedNameForNode(b),b.questionToken,b.type,void 0)}function h(b,P,S,B){var J=B.factory;return B.addInitializationStatement(J.createIfStatement(J.createTypeCheck(J.cloneNode(P),"undefined"),e.setEmitFlags(e.setTextRange(J.createBlock([J.createExpressionStatement(e.setEmitFlags(e.setTextRange(J.createAssignment(e.setEmitFlags(J.cloneNode(P),48),e.setEmitFlags(S,48|e.getEmitFlags(S)|1536)),b),1536))]),b),1953))),J.updateParameterDeclaration(b,b.decorators,b.modifiers,b.dotDotDotToken,b.name,b.questionToken,b.type,void 0)}function v(b,P,S,B){B===void 0&&(B=n),S.resumeLexicalEnvironment();var J=B(b,P,e.isConciseBody),k=S.endLexicalEnvironment();if(e.some(k)){if(!J)return S.factory.createBlock(k);var M=S.factory.converters.convertToFunctionBlock(J),x=e.factory.mergeLexicalEnvironment(M.statements,k);return S.factory.updateBlock(M,x)}return J}e.visitFunctionBody=v;function A(b,P,S){S.startBlockScope();var B=n(b,P,e.isStatement,S.factory.liftToBlock),J=S.endBlockScope();return e.some(J)?e.isBlock(B)?(J.push.apply(J,B.statements),S.factory.updateBlock(B,J)):(J.push(B),S.factory.createBlock(J)):B}e.visitIterationBody=A;function q(b,P,S,B,J,k){if(B===void 0&&(B=f),k===void 0&&(k=n),b!==void 0){var M=b.kind;if(M>0&&M<=159||M===191)return b;var x=S.factory;switch(M){case 79:return e.Debug.type(b),x.updateIdentifier(b,B(b.typeArguments,P,e.isTypeNodeOrTypeParameterDeclaration));case 160:return e.Debug.type(b),x.updateQualifiedName(b,k(b.left,P,e.isEntityName),k(b.right,P,e.isIdentifier));case 161:return e.Debug.type(b),x.updateComputedPropertyName(b,k(b.expression,P,e.isExpression));case 162:return e.Debug.type(b),x.updateTypeParameterDeclaration(b,k(b.name,P,e.isIdentifier),k(b.constraint,P,e.isTypeNode),k(b.default,P,e.isTypeNode));case 163:return e.Debug.type(b),x.updateParameterDeclaration(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),k(b.dotDotDotToken,J,e.isDotDotDotToken),k(b.name,P,e.isBindingName),k(b.questionToken,J,e.isQuestionToken),k(b.type,P,e.isTypeNode),k(b.initializer,P,e.isExpression));case 164:return e.Debug.type(b),x.updateDecorator(b,k(b.expression,P,e.isExpression));case 165:return e.Debug.type(b),x.updatePropertySignature(b,B(b.modifiers,P,e.isModifier),k(b.name,P,e.isPropertyName),k(b.questionToken,J,e.isToken),k(b.type,P,e.isTypeNode));case 166:return e.Debug.type(b),x.updatePropertyDeclaration(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),k(b.name,P,e.isPropertyName),k(b.questionToken||b.exclamationToken,J,e.isQuestionOrExclamationToken),k(b.type,P,e.isTypeNode),k(b.initializer,P,e.isExpression));case 167:return e.Debug.type(b),x.updateMethodSignature(b,B(b.modifiers,P,e.isModifier),k(b.name,P,e.isPropertyName),k(b.questionToken,J,e.isQuestionToken),B(b.typeParameters,P,e.isTypeParameterDeclaration),B(b.parameters,P,e.isParameterDeclaration),k(b.type,P,e.isTypeNode));case 168:return e.Debug.type(b),x.updateMethodDeclaration(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),k(b.asteriskToken,J,e.isAsteriskToken),k(b.name,P,e.isPropertyName),k(b.questionToken,J,e.isQuestionToken),B(b.typeParameters,P,e.isTypeParameterDeclaration),a(b.parameters,P,S,B),k(b.type,P,e.isTypeNode),v(b.body,P,S,k));case 170:return e.Debug.type(b),x.updateConstructorDeclaration(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),a(b.parameters,P,S,B),v(b.body,P,S,k));case 171:return e.Debug.type(b),x.updateGetAccessorDeclaration(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),k(b.name,P,e.isPropertyName),a(b.parameters,P,S,B),k(b.type,P,e.isTypeNode),v(b.body,P,S,k));case 172:return e.Debug.type(b),x.updateSetAccessorDeclaration(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),k(b.name,P,e.isPropertyName),a(b.parameters,P,S,B),v(b.body,P,S,k));case 169:return e.Debug.type(b),S.startLexicalEnvironment(),S.suspendLexicalEnvironment(),x.updateClassStaticBlockDeclaration(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),v(b.body,P,S,k));case 173:return e.Debug.type(b),x.updateCallSignature(b,B(b.typeParameters,P,e.isTypeParameterDeclaration),B(b.parameters,P,e.isParameterDeclaration),k(b.type,P,e.isTypeNode));case 174:return e.Debug.type(b),x.updateConstructSignature(b,B(b.typeParameters,P,e.isTypeParameterDeclaration),B(b.parameters,P,e.isParameterDeclaration),k(b.type,P,e.isTypeNode));case 175:return e.Debug.type(b),x.updateIndexSignature(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),B(b.parameters,P,e.isParameterDeclaration),k(b.type,P,e.isTypeNode));case 176:return e.Debug.type(b),x.updateTypePredicateNode(b,k(b.assertsModifier,P,e.isAssertsKeyword),k(b.parameterName,P,e.isIdentifierOrThisTypeNode),k(b.type,P,e.isTypeNode));case 177:return e.Debug.type(b),x.updateTypeReferenceNode(b,k(b.typeName,P,e.isEntityName),B(b.typeArguments,P,e.isTypeNode));case 178:return e.Debug.type(b),x.updateFunctionTypeNode(b,B(b.typeParameters,P,e.isTypeParameterDeclaration),B(b.parameters,P,e.isParameterDeclaration),k(b.type,P,e.isTypeNode));case 179:return e.Debug.type(b),x.updateConstructorTypeNode(b,B(b.modifiers,P,e.isModifier),B(b.typeParameters,P,e.isTypeParameterDeclaration),B(b.parameters,P,e.isParameterDeclaration),k(b.type,P,e.isTypeNode));case 180:return e.Debug.type(b),x.updateTypeQueryNode(b,k(b.exprName,P,e.isEntityName));case 181:return e.Debug.type(b),x.updateTypeLiteralNode(b,B(b.members,P,e.isTypeElement));case 182:return e.Debug.type(b),x.updateArrayTypeNode(b,k(b.elementType,P,e.isTypeNode));case 183:return e.Debug.type(b),x.updateTupleTypeNode(b,B(b.elements,P,e.isTypeNode));case 184:return e.Debug.type(b),x.updateOptionalTypeNode(b,k(b.type,P,e.isTypeNode));case 185:return e.Debug.type(b),x.updateRestTypeNode(b,k(b.type,P,e.isTypeNode));case 186:return e.Debug.type(b),x.updateUnionTypeNode(b,B(b.types,P,e.isTypeNode));case 187:return e.Debug.type(b),x.updateIntersectionTypeNode(b,B(b.types,P,e.isTypeNode));case 188:return e.Debug.type(b),x.updateConditionalTypeNode(b,k(b.checkType,P,e.isTypeNode),k(b.extendsType,P,e.isTypeNode),k(b.trueType,P,e.isTypeNode),k(b.falseType,P,e.isTypeNode));case 189:return e.Debug.type(b),x.updateInferTypeNode(b,k(b.typeParameter,P,e.isTypeParameterDeclaration));case 199:return e.Debug.type(b),x.updateImportTypeNode(b,k(b.argument,P,e.isTypeNode),k(b.qualifier,P,e.isEntityName),f(b.typeArguments,P,e.isTypeNode),b.isTypeOf);case 196:return e.Debug.type(b),x.updateNamedTupleMember(b,n(b.dotDotDotToken,P,e.isDotDotDotToken),n(b.name,P,e.isIdentifier),n(b.questionToken,P,e.isQuestionToken),n(b.type,P,e.isTypeNode));case 190:return e.Debug.type(b),x.updateParenthesizedType(b,k(b.type,P,e.isTypeNode));case 192:return e.Debug.type(b),x.updateTypeOperatorNode(b,k(b.type,P,e.isTypeNode));case 193:return e.Debug.type(b),x.updateIndexedAccessTypeNode(b,k(b.objectType,P,e.isTypeNode),k(b.indexType,P,e.isTypeNode));case 194:return e.Debug.type(b),x.updateMappedTypeNode(b,k(b.readonlyToken,J,e.isReadonlyKeywordOrPlusOrMinusToken),k(b.typeParameter,P,e.isTypeParameterDeclaration),k(b.nameType,P,e.isTypeNode),k(b.questionToken,J,e.isQuestionOrPlusOrMinusToken),k(b.type,P,e.isTypeNode),B(b.members,P,e.isTypeElement));case 195:return e.Debug.type(b),x.updateLiteralTypeNode(b,k(b.literal,P,e.isExpression));case 197:return e.Debug.type(b),x.updateTemplateLiteralType(b,k(b.head,P,e.isTemplateHead),B(b.templateSpans,P,e.isTemplateLiteralTypeSpan));case 198:return e.Debug.type(b),x.updateTemplateLiteralTypeSpan(b,k(b.type,P,e.isTypeNode),k(b.literal,P,e.isTemplateMiddleOrTemplateTail));case 200:return e.Debug.type(b),x.updateObjectBindingPattern(b,B(b.elements,P,e.isBindingElement));case 201:return e.Debug.type(b),x.updateArrayBindingPattern(b,B(b.elements,P,e.isArrayBindingElement));case 202:return e.Debug.type(b),x.updateBindingElement(b,k(b.dotDotDotToken,J,e.isDotDotDotToken),k(b.propertyName,P,e.isPropertyName),k(b.name,P,e.isBindingName),k(b.initializer,P,e.isExpression));case 203:return e.Debug.type(b),x.updateArrayLiteralExpression(b,B(b.elements,P,e.isExpression));case 204:return e.Debug.type(b),x.updateObjectLiteralExpression(b,B(b.properties,P,e.isObjectLiteralElementLike));case 205:return b.flags&32?(e.Debug.type(b),x.updatePropertyAccessChain(b,k(b.expression,P,e.isExpression),k(b.questionDotToken,J,e.isQuestionDotToken),k(b.name,P,e.isMemberName))):(e.Debug.type(b),x.updatePropertyAccessExpression(b,k(b.expression,P,e.isExpression),k(b.name,P,e.isMemberName)));case 206:return b.flags&32?(e.Debug.type(b),x.updateElementAccessChain(b,k(b.expression,P,e.isExpression),k(b.questionDotToken,J,e.isQuestionDotToken),k(b.argumentExpression,P,e.isExpression))):(e.Debug.type(b),x.updateElementAccessExpression(b,k(b.expression,P,e.isExpression),k(b.argumentExpression,P,e.isExpression)));case 207:return b.flags&32?(e.Debug.type(b),x.updateCallChain(b,k(b.expression,P,e.isExpression),k(b.questionDotToken,J,e.isQuestionDotToken),B(b.typeArguments,P,e.isTypeNode),B(b.arguments,P,e.isExpression))):(e.Debug.type(b),x.updateCallExpression(b,k(b.expression,P,e.isExpression),B(b.typeArguments,P,e.isTypeNode),B(b.arguments,P,e.isExpression)));case 208:return e.Debug.type(b),x.updateNewExpression(b,k(b.expression,P,e.isExpression),B(b.typeArguments,P,e.isTypeNode),B(b.arguments,P,e.isExpression));case 209:return e.Debug.type(b),x.updateTaggedTemplateExpression(b,k(b.tag,P,e.isExpression),f(b.typeArguments,P,e.isTypeNode),k(b.template,P,e.isTemplateLiteral));case 210:return e.Debug.type(b),x.updateTypeAssertion(b,k(b.type,P,e.isTypeNode),k(b.expression,P,e.isExpression));case 211:return e.Debug.type(b),x.updateParenthesizedExpression(b,k(b.expression,P,e.isExpression));case 212:return e.Debug.type(b),x.updateFunctionExpression(b,B(b.modifiers,P,e.isModifier),k(b.asteriskToken,J,e.isAsteriskToken),k(b.name,P,e.isIdentifier),B(b.typeParameters,P,e.isTypeParameterDeclaration),a(b.parameters,P,S,B),k(b.type,P,e.isTypeNode),v(b.body,P,S,k));case 213:return e.Debug.type(b),x.updateArrowFunction(b,B(b.modifiers,P,e.isModifier),B(b.typeParameters,P,e.isTypeParameterDeclaration),a(b.parameters,P,S,B),k(b.type,P,e.isTypeNode),k(b.equalsGreaterThanToken,J,e.isEqualsGreaterThanToken),v(b.body,P,S,k));case 214:return e.Debug.type(b),x.updateDeleteExpression(b,k(b.expression,P,e.isExpression));case 215:return e.Debug.type(b),x.updateTypeOfExpression(b,k(b.expression,P,e.isExpression));case 216:return e.Debug.type(b),x.updateVoidExpression(b,k(b.expression,P,e.isExpression));case 217:return e.Debug.type(b),x.updateAwaitExpression(b,k(b.expression,P,e.isExpression));case 218:return e.Debug.type(b),x.updatePrefixUnaryExpression(b,k(b.operand,P,e.isExpression));case 219:return e.Debug.type(b),x.updatePostfixUnaryExpression(b,k(b.operand,P,e.isExpression));case 220:return e.Debug.type(b),x.updateBinaryExpression(b,k(b.left,P,e.isExpression),k(b.operatorToken,J,e.isBinaryOperatorToken),k(b.right,P,e.isExpression));case 221:return e.Debug.type(b),x.updateConditionalExpression(b,k(b.condition,P,e.isExpression),k(b.questionToken,J,e.isQuestionToken),k(b.whenTrue,P,e.isExpression),k(b.colonToken,J,e.isColonToken),k(b.whenFalse,P,e.isExpression));case 222:return e.Debug.type(b),x.updateTemplateExpression(b,k(b.head,P,e.isTemplateHead),B(b.templateSpans,P,e.isTemplateSpan));case 223:return e.Debug.type(b),x.updateYieldExpression(b,k(b.asteriskToken,J,e.isAsteriskToken),k(b.expression,P,e.isExpression));case 224:return e.Debug.type(b),x.updateSpreadElement(b,k(b.expression,P,e.isExpression));case 225:return e.Debug.type(b),x.updateClassExpression(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),k(b.name,P,e.isIdentifier),B(b.typeParameters,P,e.isTypeParameterDeclaration),B(b.heritageClauses,P,e.isHeritageClause),B(b.members,P,e.isClassElement));case 227:return e.Debug.type(b),x.updateExpressionWithTypeArguments(b,k(b.expression,P,e.isExpression),B(b.typeArguments,P,e.isTypeNode));case 228:return e.Debug.type(b),x.updateAsExpression(b,k(b.expression,P,e.isExpression),k(b.type,P,e.isTypeNode));case 229:return b.flags&32?(e.Debug.type(b),x.updateNonNullChain(b,k(b.expression,P,e.isExpression))):(e.Debug.type(b),x.updateNonNullExpression(b,k(b.expression,P,e.isExpression)));case 230:return e.Debug.type(b),x.updateMetaProperty(b,k(b.name,P,e.isIdentifier));case 232:return e.Debug.type(b),x.updateTemplateSpan(b,k(b.expression,P,e.isExpression),k(b.literal,P,e.isTemplateMiddleOrTemplateTail));case 234:return e.Debug.type(b),x.updateBlock(b,B(b.statements,P,e.isStatement));case 236:return e.Debug.type(b),x.updateVariableStatement(b,B(b.modifiers,P,e.isModifier),k(b.declarationList,P,e.isVariableDeclarationList));case 237:return e.Debug.type(b),x.updateExpressionStatement(b,k(b.expression,P,e.isExpression));case 238:return e.Debug.type(b),x.updateIfStatement(b,k(b.expression,P,e.isExpression),k(b.thenStatement,P,e.isStatement,x.liftToBlock),k(b.elseStatement,P,e.isStatement,x.liftToBlock));case 239:return e.Debug.type(b),x.updateDoStatement(b,A(b.statement,P,S),k(b.expression,P,e.isExpression));case 240:return e.Debug.type(b),x.updateWhileStatement(b,k(b.expression,P,e.isExpression),A(b.statement,P,S));case 241:return e.Debug.type(b),x.updateForStatement(b,k(b.initializer,P,e.isForInitializer),k(b.condition,P,e.isExpression),k(b.incrementor,P,e.isExpression),A(b.statement,P,S));case 242:return e.Debug.type(b),x.updateForInStatement(b,k(b.initializer,P,e.isForInitializer),k(b.expression,P,e.isExpression),A(b.statement,P,S));case 243:return e.Debug.type(b),x.updateForOfStatement(b,k(b.awaitModifier,J,e.isAwaitKeyword),k(b.initializer,P,e.isForInitializer),k(b.expression,P,e.isExpression),A(b.statement,P,S));case 244:return e.Debug.type(b),x.updateContinueStatement(b,k(b.label,P,e.isIdentifier));case 245:return e.Debug.type(b),x.updateBreakStatement(b,k(b.label,P,e.isIdentifier));case 246:return e.Debug.type(b),x.updateReturnStatement(b,k(b.expression,P,e.isExpression));case 247:return e.Debug.type(b),x.updateWithStatement(b,k(b.expression,P,e.isExpression),k(b.statement,P,e.isStatement,x.liftToBlock));case 248:return e.Debug.type(b),x.updateSwitchStatement(b,k(b.expression,P,e.isExpression),k(b.caseBlock,P,e.isCaseBlock));case 249:return e.Debug.type(b),x.updateLabeledStatement(b,k(b.label,P,e.isIdentifier),k(b.statement,P,e.isStatement,x.liftToBlock));case 250:return e.Debug.type(b),x.updateThrowStatement(b,k(b.expression,P,e.isExpression));case 251:return e.Debug.type(b),x.updateTryStatement(b,k(b.tryBlock,P,e.isBlock),k(b.catchClause,P,e.isCatchClause),k(b.finallyBlock,P,e.isBlock));case 253:return e.Debug.type(b),x.updateVariableDeclaration(b,k(b.name,P,e.isBindingName),k(b.exclamationToken,J,e.isExclamationToken),k(b.type,P,e.isTypeNode),k(b.initializer,P,e.isExpression));case 254:return e.Debug.type(b),x.updateVariableDeclarationList(b,B(b.declarations,P,e.isVariableDeclaration));case 255:return e.Debug.type(b),x.updateFunctionDeclaration(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),k(b.asteriskToken,J,e.isAsteriskToken),k(b.name,P,e.isIdentifier),B(b.typeParameters,P,e.isTypeParameterDeclaration),a(b.parameters,P,S,B),k(b.type,P,e.isTypeNode),v(b.body,P,S,k));case 256:return e.Debug.type(b),x.updateClassDeclaration(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),k(b.name,P,e.isIdentifier),B(b.typeParameters,P,e.isTypeParameterDeclaration),B(b.heritageClauses,P,e.isHeritageClause),B(b.members,P,e.isClassElement));case 257:return e.Debug.type(b),x.updateInterfaceDeclaration(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),k(b.name,P,e.isIdentifier),B(b.typeParameters,P,e.isTypeParameterDeclaration),B(b.heritageClauses,P,e.isHeritageClause),B(b.members,P,e.isTypeElement));case 258:return e.Debug.type(b),x.updateTypeAliasDeclaration(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),k(b.name,P,e.isIdentifier),B(b.typeParameters,P,e.isTypeParameterDeclaration),k(b.type,P,e.isTypeNode));case 259:return e.Debug.type(b),x.updateEnumDeclaration(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),k(b.name,P,e.isIdentifier),B(b.members,P,e.isEnumMember));case 260:return e.Debug.type(b),x.updateModuleDeclaration(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),k(b.name,P,e.isModuleName),k(b.body,P,e.isModuleBody));case 261:return e.Debug.type(b),x.updateModuleBlock(b,B(b.statements,P,e.isStatement));case 262:return e.Debug.type(b),x.updateCaseBlock(b,B(b.clauses,P,e.isCaseOrDefaultClause));case 263:return e.Debug.type(b),x.updateNamespaceExportDeclaration(b,k(b.name,P,e.isIdentifier));case 264:return e.Debug.type(b),x.updateImportEqualsDeclaration(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),b.isTypeOnly,k(b.name,P,e.isIdentifier),k(b.moduleReference,P,e.isModuleReference));case 265:return e.Debug.type(b),x.updateImportDeclaration(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),k(b.importClause,P,e.isImportClause),k(b.moduleSpecifier,P,e.isExpression),k(b.assertClause,P,e.isAssertClause));case 292:return e.Debug.type(b),x.updateAssertClause(b,B(b.elements,P,e.isAssertEntry),b.multiLine);case 293:return e.Debug.type(b),x.updateAssertEntry(b,k(b.name,P,e.isAssertionKey),k(b.value,P,e.isStringLiteral));case 266:return e.Debug.type(b),x.updateImportClause(b,b.isTypeOnly,k(b.name,P,e.isIdentifier),k(b.namedBindings,P,e.isNamedImportBindings));case 267:return e.Debug.type(b),x.updateNamespaceImport(b,k(b.name,P,e.isIdentifier));case 273:return e.Debug.type(b),x.updateNamespaceExport(b,k(b.name,P,e.isIdentifier));case 268:return e.Debug.type(b),x.updateNamedImports(b,B(b.elements,P,e.isImportSpecifier));case 269:return e.Debug.type(b),x.updateImportSpecifier(b,b.isTypeOnly,k(b.propertyName,P,e.isIdentifier),k(b.name,P,e.isIdentifier));case 270:return e.Debug.type(b),x.updateExportAssignment(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),k(b.expression,P,e.isExpression));case 271:return e.Debug.type(b),x.updateExportDeclaration(b,B(b.decorators,P,e.isDecorator),B(b.modifiers,P,e.isModifier),b.isTypeOnly,k(b.exportClause,P,e.isNamedExportBindings),k(b.moduleSpecifier,P,e.isExpression),k(b.assertClause,P,e.isAssertClause));case 272:return e.Debug.type(b),x.updateNamedExports(b,B(b.elements,P,e.isExportSpecifier));case 274:return e.Debug.type(b),x.updateExportSpecifier(b,b.isTypeOnly,k(b.propertyName,P,e.isIdentifier),k(b.name,P,e.isIdentifier));case 276:return e.Debug.type(b),x.updateExternalModuleReference(b,k(b.expression,P,e.isExpression));case 277:return e.Debug.type(b),x.updateJsxElement(b,k(b.openingElement,P,e.isJsxOpeningElement),B(b.children,P,e.isJsxChild),k(b.closingElement,P,e.isJsxClosingElement));case 278:return e.Debug.type(b),x.updateJsxSelfClosingElement(b,k(b.tagName,P,e.isJsxTagNameExpression),B(b.typeArguments,P,e.isTypeNode),k(b.attributes,P,e.isJsxAttributes));case 279:return e.Debug.type(b),x.updateJsxOpeningElement(b,k(b.tagName,P,e.isJsxTagNameExpression),B(b.typeArguments,P,e.isTypeNode),k(b.attributes,P,e.isJsxAttributes));case 280:return e.Debug.type(b),x.updateJsxClosingElement(b,k(b.tagName,P,e.isJsxTagNameExpression));case 281:return e.Debug.type(b),x.updateJsxFragment(b,k(b.openingFragment,P,e.isJsxOpeningFragment),B(b.children,P,e.isJsxChild),k(b.closingFragment,P,e.isJsxClosingFragment));case 284:return e.Debug.type(b),x.updateJsxAttribute(b,k(b.name,P,e.isIdentifier),k(b.initializer,P,e.isStringLiteralOrJsxExpression));case 285:return e.Debug.type(b),x.updateJsxAttributes(b,B(b.properties,P,e.isJsxAttributeLike));case 286:return e.Debug.type(b),x.updateJsxSpreadAttribute(b,k(b.expression,P,e.isExpression));case 287:return e.Debug.type(b),x.updateJsxExpression(b,k(b.expression,P,e.isExpression));case 288:return e.Debug.type(b),x.updateCaseClause(b,k(b.expression,P,e.isExpression),B(b.statements,P,e.isStatement));case 289:return e.Debug.type(b),x.updateDefaultClause(b,B(b.statements,P,e.isStatement));case 290:return e.Debug.type(b),x.updateHeritageClause(b,B(b.types,P,e.isExpressionWithTypeArguments));case 291:return e.Debug.type(b),x.updateCatchClause(b,k(b.variableDeclaration,P,e.isVariableDeclaration),k(b.block,P,e.isBlock));case 294:return e.Debug.type(b),x.updatePropertyAssignment(b,k(b.name,P,e.isPropertyName),k(b.initializer,P,e.isExpression));case 295:return e.Debug.type(b),x.updateShorthandPropertyAssignment(b,k(b.name,P,e.isIdentifier),k(b.objectAssignmentInitializer,P,e.isExpression));case 296:return e.Debug.type(b),x.updateSpreadAssignment(b,k(b.expression,P,e.isExpression));case 297:return e.Debug.type(b),x.updateEnumMember(b,k(b.name,P,e.isPropertyName),k(b.initializer,P,e.isExpression));case 303:return e.Debug.type(b),x.updateSourceFile(b,d(b.statements,P,S));case 348:return e.Debug.type(b),x.updatePartiallyEmittedExpression(b,k(b.expression,P,e.isExpression));case 349:return e.Debug.type(b),x.updateCommaListExpression(b,B(b.elements,P,e.isExpression));default:return b}}}e.visitEachChild=q;function ie(b){return e.Debug.assert(b.length<=1,"Too many nodes written to output."),e.singleOrUndefined(b)}})(gr||(gr={}));var gr;(function(e){function n(w,K,Z,ne,R){var Y=R.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,U=Y.enter,$=Y.exit,T=[],I=[],y=new e.Map,D,C=[],m,u=[],g="",F=0,te=0,ue=0,X=0,j=0,Se=0,Ce=!1,O=0,Q=0,V=0,z=0,Te=0,ge=0,ke=!1,Me=!1,Ie=!1;return{getSources:function(){return T},addSource:Ge,setSourceContent:he,addName:ve,addMapping:Le,appendSourceMap:qe,toJSON:Lr,toString:function(){return JSON.stringify(Lr())}};function Ge(lr){U();var Cr=e.getRelativePathToDirectoryOrUrl(ne,lr,w.getCurrentDirectory(),w.getCanonicalFileName,!0),Or=y.get(Cr);return Or===void 0&&(Or=I.length,I.push(Cr),T.push(lr),y.set(Cr,Or)),$(),Or}function he(lr,Cr){if(U(),Cr!==null){for(D||(D=[]);D.length<lr;)D.push(null);D[lr]=Cr}$()}function ve(lr){U(),m||(m=new e.Map);var Cr=m.get(lr);return Cr===void 0&&(Cr=C.length,C.push(lr),m.set(lr,Cr)),$(),Cr}function Ve(lr,Cr){return!ke||O!==lr||Q!==Cr}function _e(lr,Cr,Or){return lr!==void 0&&Cr!==void 0&&Or!==void 0&&V===lr&&(z>Cr||z===Cr&&Te>Or)}function Le(lr,Cr,Or,Ke,Pe,Hr){e.Debug.assert(lr>=O,"generatedLine cannot backtrack"),e.Debug.assert(Cr>=0,"generatedCharacter cannot be negative"),e.Debug.assert(Or===void 0||Or>=0,"sourceIndex cannot be negative"),e.Debug.assert(Ke===void 0||Ke>=0,"sourceLine cannot be negative"),e.Debug.assert(Pe===void 0||Pe>=0,"sourceCharacter cannot be negative"),U(),(Ve(lr,Cr)||_e(Or,Ke,Pe))&&(Ae(),O=lr,Q=Cr,Me=!1,Ie=!1,ke=!0),Or!==void 0&&Ke!==void 0&&Pe!==void 0&&(V=Or,z=Ke,Te=Pe,Me=!0,Hr!==void 0&&(ge=Hr,Ie=!0)),$()}function qe(lr,Cr,Or,Ke,Pe,Hr){e.Debug.assert(lr>=O,"generatedLine cannot backtrack"),e.Debug.assert(Cr>=0,"generatedCharacter cannot be negative"),U();for(var ur=[],vr,de=v(Or.mappings),Fe=de.next();!Fe.done;Fe=de.next()){var $e=Fe.value;if(Hr&&($e.generatedLine>Hr.line||$e.generatedLine===Hr.line&&$e.generatedCharacter>Hr.character))break;if(!(Pe&&($e.generatedLine<Pe.line||Pe.line===$e.generatedLine&&$e.generatedCharacter<Pe.character))){var Dr=void 0,Fr=void 0,He=void 0,pr=void 0;if($e.sourceIndex!==void 0){if(Dr=ur[$e.sourceIndex],Dr===void 0){var Jr=Or.sources[$e.sourceIndex],ze=Or.sourceRoot?e.combinePaths(Or.sourceRoot,Jr):Jr,Ar=e.combinePaths(e.getDirectoryPath(Ke),ze);ur[$e.sourceIndex]=Dr=Ge(Ar),Or.sourcesContent&&typeof Or.sourcesContent[$e.sourceIndex]=="string"&&he(Dr,Or.sourcesContent[$e.sourceIndex])}Fr=$e.sourceLine,He=$e.sourceCharacter,Or.names&&$e.nameIndex!==void 0&&(vr||(vr=[]),pr=vr[$e.nameIndex],pr===void 0&&(vr[$e.nameIndex]=pr=ve(Or.names[$e.nameIndex])))}var Yr=$e.generatedLine-(Pe?Pe.line:0),lt=Yr+lr,tt=Pe&&Pe.line===$e.generatedLine?$e.generatedCharacter-Pe.character:$e.generatedCharacter,Rt=Yr===0?tt+Cr:tt;Le(lt,Rt,Dr,Fr,He,pr)}}$()}function Xe(){return!Ce||F!==O||te!==Q||ue!==V||X!==z||j!==Te||Se!==ge}function De(lr){u.push(lr),u.length>=1024&&Ye()}function Ae(){if(!(!ke||!Xe())){if(U(),F<O){do De(59),F++;while(F<O);te=0}else e.Debug.assertEqual(F,O,"generatedLine cannot backtrack"),Ce&&De(44);Er(Q-te),te=Q,Me&&(Er(V-ue),ue=V,Er(z-X),X=z,Er(Te-j),j=Te,Ie&&(Er(ge-Se),Se=ge)),Ce=!0,$()}}function Ye(){u.length>0&&(g+=String.fromCharCode.apply(void 0,u),u.length=0)}function Lr(){return Ae(),Ye(),{version:3,file:K,sourceRoot:Z,sources:I,names:C,mappings:g,sourcesContent:D}}function Er(lr){lr<0?lr=(-lr<<1)+1:lr=lr<<1;do{var Cr=lr&31;lr=lr>>5,lr>0&&(Cr=Cr|32),De(ie(Cr))}while(lr>0)}}e.createSourceMapGenerator=n;var f=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,d=/^\s*(\/\/[@#] .*)?$/;function a(w,K){return{getLineCount:function(){return K.length},getLineText:function(Z){return w.substring(K[Z],K[Z+1])}}}e.getLineInfo=a;function p(w){for(var K=w.getLineCount()-1;K>=0;K--){var Z=w.getLineText(K),ne=f.exec(Z);if(ne)return e.trimStringEnd(ne[1]);if(!Z.match(d))break}}e.tryGetSourceMappingURL=p;function N(w){return typeof w=="string"||w===null}function H(w){return w!==null&&typeof w=="object"&&w.version===3&&typeof w.file=="string"&&typeof w.mappings=="string"&&e.isArray(w.sources)&&e.every(w.sources,e.isString)&&(w.sourceRoot===void 0||w.sourceRoot===null||typeof w.sourceRoot=="string")&&(w.sourcesContent===void 0||w.sourcesContent===null||e.isArray(w.sourcesContent)&&e.every(w.sourcesContent,N))&&(w.names===void 0||w.names===null||e.isArray(w.names)&&e.every(w.names,e.isString))}e.isRawSourceMap=H;function h(w){try{var K=JSON.parse(w);if(H(K))return K}catch{}}e.tryParseRawSourceMap=h;function v(w){var K=!1,Z=0,ne=0,R=0,Y=0,U=0,$=0,T=0,I;return{get pos(){return Z},get error(){return I},get state(){return y(!0,!0)},next:function(){for(;!K&&Z<w.length;){var te=w.charCodeAt(Z);if(te===59){ne++,R=0,Z++;continue}if(te===44){Z++;continue}var ue=!1,X=!1;if(R+=F(),u())return D();if(R<0)return m("Invalid generatedCharacter found");if(!g()){if(ue=!0,Y+=F(),u())return D();if(Y<0)return m("Invalid sourceIndex found");if(g())return m("Unsupported Format: No entries after sourceIndex");if(U+=F(),u())return D();if(U<0)return m("Invalid sourceLine found");if(g())return m("Unsupported Format: No entries after sourceLine");if($+=F(),u())return D();if($<0)return m("Invalid sourceCharacter found");if(!g()){if(X=!0,T+=F(),u())return D();if(T<0)return m("Invalid nameIndex found");if(!g())return m("Unsupported Error Format: Entries after nameIndex")}}return{value:y(ue,X),done:K}}return D()}};function y(te,ue){return{generatedLine:ne,generatedCharacter:R,sourceIndex:te?Y:void 0,sourceLine:te?U:void 0,sourceCharacter:te?$:void 0,nameIndex:ue?T:void 0}}function D(){return K=!0,{value:void 0,done:!0}}function C(te){I===void 0&&(I=te)}function m(te){return C(te),D()}function u(){return I!==void 0}function g(){return Z===w.length||w.charCodeAt(Z)===44||w.charCodeAt(Z)===59}function F(){for(var te=!0,ue=0,X=0;te;Z++){if(Z>=w.length)return C("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var j=b(w.charCodeAt(Z));if(j===-1)return C("Invalid character in VLQ"),-1;te=(j&32)!==0,X=X|(j&31)<<ue,ue+=5}return(X&1)===0?X=X>>1:(X=X>>1,X=-X),X}}e.decodeMappings=v;function A(w,K){return w===K||w.generatedLine===K.generatedLine&&w.generatedCharacter===K.generatedCharacter&&w.sourceIndex===K.sourceIndex&&w.sourceLine===K.sourceLine&&w.sourceCharacter===K.sourceCharacter&&w.nameIndex===K.nameIndex}e.sameMapping=A;function q(w){return w.sourceIndex!==void 0&&w.sourceLine!==void 0&&w.sourceCharacter!==void 0}e.isSourceMapping=q;function ie(w){return w>=0&&w<26?65+w:w>=26&&w<52?97+w-26:w>=52&&w<62?48+w-52:w===62?43:w===63?47:e.Debug.fail("".concat(w,": not a base64 value"))}function b(w){return w>=65&&w<=90?w-65:w>=97&&w<=122?w-97+26:w>=48&&w<=57?w-48+52:w===43?62:w===47?63:-1}function P(w){return w.sourceIndex!==void 0&&w.sourcePosition!==void 0}function S(w,K){return w.generatedPosition===K.generatedPosition&&w.sourceIndex===K.sourceIndex&&w.sourcePosition===K.sourcePosition}function B(w,K){return e.Debug.assert(w.sourceIndex===K.sourceIndex),e.compareValues(w.sourcePosition,K.sourcePosition)}function J(w,K){return e.compareValues(w.generatedPosition,K.generatedPosition)}function k(w){return w.sourcePosition}function M(w){return w.generatedPosition}function x(w,K,Z){var ne=e.getDirectoryPath(Z),R=K.sourceRoot?e.getNormalizedAbsolutePath(K.sourceRoot,ne):ne,Y=e.getNormalizedAbsolutePath(K.file,ne),U=w.getSourceFileLike(Y),$=K.sources.map(function(ue){return e.getNormalizedAbsolutePath(ue,R)}),T=new e.Map($.map(function(ue,X){return[w.getCanonicalFileName(ue),X]})),I,y,D;return{getSourcePosition:te,getGeneratedPosition:F};function C(ue){var X=U!==void 0?e.getPositionOfLineAndCharacter(U,ue.generatedLine,ue.generatedCharacter,!0):-1,j,Se;if(q(ue)){var Ce=w.getSourceFileLike($[ue.sourceIndex]);j=K.sources[ue.sourceIndex],Se=Ce!==void 0?e.getPositionOfLineAndCharacter(Ce,ue.sourceLine,ue.sourceCharacter,!0):-1}return{generatedPosition:X,source:j,sourceIndex:ue.sourceIndex,sourcePosition:Se,nameIndex:ue.nameIndex}}function m(){if(I===void 0){var ue=v(K.mappings),X=e.arrayFrom(ue,C);ue.error!==void 0?(w.log&&w.log("Encountered error while decoding sourcemap: ".concat(ue.error)),I=e.emptyArray):I=X}return I}function u(ue){if(D===void 0){for(var X=[],j=0,Se=m();j<Se.length;j++){var Ce=Se[j];if(!!P(Ce)){var O=X[Ce.sourceIndex];O||(X[Ce.sourceIndex]=O=[]),O.push(Ce)}}D=X.map(function(Q){return e.sortAndDeduplicate(Q,B,S)})}return D[ue]}function g(){if(y===void 0){for(var ue=[],X=0,j=m();X<j.length;X++){var Se=j[X];ue.push(Se)}y=e.sortAndDeduplicate(ue,J,S)}return y}function F(ue){var X=T.get(w.getCanonicalFileName(ue.fileName));if(X===void 0)return ue;var j=u(X);if(!e.some(j))return ue;var Se=e.binarySearchKey(j,ue.pos,k,e.compareValues);Se<0&&(Se=~Se);var Ce=j[Se];return Ce===void 0||Ce.sourceIndex!==X?ue:{fileName:Y,pos:Ce.generatedPosition}}function te(ue){var X=g();if(!e.some(X))return ue;var j=e.binarySearchKey(X,ue.pos,M,e.compareValues);j<0&&(j=~j);var Se=X[j];return Se===void 0||!P(Se)?ue:{fileName:$[Se.sourceIndex],pos:Se.sourcePosition}}}e.createDocumentPositionMapper=x,e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}})(gr||(gr={}));var gr;(function(e){function n(Z){return Z=e.getOriginalNode(Z),Z?e.getNodeId(Z):0}e.getOriginalNodeId=n;function f(Z){return!Z||!e.isNamedImports(Z)?!1:e.some(Z.elements,d)}function d(Z){return Z.propertyName!==void 0&&Z.propertyName.escapedText==="default"}function a(Z,ne){return R;function R(U){return U.kind===303?ne(U):Y(U)}function Y(U){return Z.factory.createBundle(e.map(U.sourceFiles,ne),U.prepends)}}e.chainBundle=a;function p(Z){return!!e.getNamespaceDeclarationNode(Z)}e.getExportNeedsImportStarHelper=p;function N(Z){if(e.getNamespaceDeclarationNode(Z))return!0;var ne=Z.importClause&&Z.importClause.namedBindings;if(!ne||!e.isNamedImports(ne))return!1;for(var R=0,Y=0,U=ne.elements;Y<U.length;Y++){var $=U[Y];d($)&&R++}return R>0&&R!==ne.elements.length||!!(ne.elements.length-R)&&e.isDefaultImport(Z)}e.getImportNeedsImportStarHelper=N;function H(Z){return!N(Z)&&(e.isDefaultImport(Z)||!!Z.importClause&&e.isNamedImports(Z.importClause.namedBindings)&&f(Z.importClause.namedBindings))}e.getImportNeedsImportDefaultHelper=H;function h(Z,ne,R,Y){for(var U=[],$=e.createMultiMap(),T=[],I=new e.Map,y,D=!1,C,m=!1,u=!1,g=!1,F=0,te=ne.statements;F<te.length;F++){var ue=te[F];switch(ue.kind){case 265:U.push(ue),!u&&N(ue)&&(u=!0),!g&&H(ue)&&(g=!0);break;case 264:ue.moduleReference.kind===276&&U.push(ue);break;case 271:if(ue.moduleSpecifier)if(!ue.exportClause)U.push(ue),m=!0;else if(U.push(ue),e.isNamedExports(ue.exportClause))Q(ue);else{var X=ue.exportClause.name;I.get(e.idText(X))||(A(T,n(ue),X),I.set(e.idText(X),!0),y=e.append(y,X)),u=!0}else Q(ue);break;case 270:ue.isExportEquals&&!C&&(C=ue);break;case 236:if(e.hasSyntacticModifier(ue,1))for(var j=0,Se=ue.declarationList.declarations;j<Se.length;j++){var Ce=Se[j];y=v(Ce,I,y)}break;case 255:if(e.hasSyntacticModifier(ue,1))if(e.hasSyntacticModifier(ue,512))D||(A(T,n(ue),Z.factory.getDeclarationName(ue)),D=!0);else{var X=ue.name;I.get(e.idText(X))||(A(T,n(ue),X),I.set(e.idText(X),!0),y=e.append(y,X))}break;case 256:if(e.hasSyntacticModifier(ue,1))if(e.hasSyntacticModifier(ue,512))D||(A(T,n(ue),Z.factory.getDeclarationName(ue)),D=!0);else{var X=ue.name;X&&!I.get(e.idText(X))&&(A(T,n(ue),X),I.set(e.idText(X),!0),y=e.append(y,X))}break}}var O=e.createExternalHelpersImportDeclarationIfNeeded(Z.factory,Z.getEmitHelperFactory(),ne,Y,m,u,g);return O&&U.unshift(O),{externalImports:U,exportSpecifiers:$,exportEquals:C,hasExportStarsToExportValues:m,exportedBindings:T,exportedNames:y,externalHelpersImportDeclaration:O};function Q(V){for(var z=0,Te=e.cast(V.exportClause,e.isNamedExports).elements;z<Te.length;z++){var ge=Te[z];if(!I.get(e.idText(ge.name))){var ke=ge.propertyName||ge.name;V.moduleSpecifier||$.add(e.idText(ke),ge);var Me=R.getReferencedImportDeclaration(ke)||R.getReferencedValueDeclaration(ke);Me&&A(T,n(Me),ge.name),I.set(e.idText(ge.name),!0),y=e.append(y,ge.name)}}}}e.collectExternalModuleInfo=h;function v(Z,ne,R){if(e.isBindingPattern(Z.name))for(var Y=0,U=Z.name.elements;Y<U.length;Y++){var $=U[Y];e.isOmittedExpression($)||(R=v($,ne,R))}else if(!e.isGeneratedIdentifier(Z.name)){var T=e.idText(Z.name);ne.get(T)||(ne.set(T,!0),R=e.append(R,Z.name))}return R}function A(Z,ne,R){var Y=Z[ne];return Y?Y.push(R):Z[ne]=Y=[R],Y}function q(Z){return e.isStringLiteralLike(Z)||Z.kind===8||e.isKeyword(Z.kind)||e.isIdentifier(Z)}e.isSimpleCopiableExpression=q;function ie(Z){return!e.isIdentifier(Z)&&q(Z)}e.isSimpleInlineableExpression=ie;function b(Z){return Z>=64&&Z<=78}e.isCompoundAssignment=b;function P(Z){switch(Z){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=P;function S(Z,ne,R,Y){if(ne.body){var U=ne.body.statements,$=Z.copyPrologue(U,R,!1,Y);if($===U.length)return $;var T=e.findIndex(U,function(y){return e.isExpressionStatement(y)&&e.isSuperCall(y.expression)},$);if(T>-1){for(var I=$;I<=T;I++)R.push(e.visitNode(U[I],Y,e.isStatement));return T+1}return $}return 0}e.addPrologueDirectivesAndInitialSuperCall=S;function B(Z,ne,R){return e.filter(Z.members,function(Y){return M(Y,ne,R)})}e.getProperties=B;function J(Z){return x(Z)||e.isClassStaticBlockDeclaration(Z)}function k(Z){return e.filter(Z.members,J)}e.getStaticPropertiesAndClassStaticBlock=k;function M(Z,ne,R){return e.isPropertyDeclaration(Z)&&(!!Z.initializer||!ne)&&e.hasStaticModifier(Z)===R}function x(Z){return e.isPropertyDeclaration(Z)&&e.hasStaticModifier(Z)}function w(Z){return Z.kind===166&&Z.initializer!==void 0}e.isInitializedProperty=w;function K(Z){return!e.isStatic(Z)&&e.isMethodOrAccessor(Z)&&e.isPrivateIdentifier(Z.name)}e.isNonStaticMethodOrAccessorWithPrivateName=K})(gr||(gr={}));var gr;(function(e){(function(x){x[x.All=0]="All",x[x.ObjectRest=1]="ObjectRest"})(e.FlattenLevel||(e.FlattenLevel={}));function n(x,w,K,Z,ne,R){var Y=x,U;if(e.isDestructuringAssignment(x))for(U=x.right;e.isEmptyArrayLiteral(x.left)||e.isEmptyObjectLiteral(x.left);)if(e.isDestructuringAssignment(U))Y=x=U,U=x.right;else return e.visitNode(U,w,e.isExpression);var $,T={context:K,level:Z,downlevelIteration:!!K.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:I,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:function(D){return S(K.factory,D)},createObjectBindingOrAssignmentPattern:function(D){return J(K.factory,D)},createArrayBindingOrAssignmentElement:M,visitor:w};if(U&&(U=e.visitNode(U,w,e.isExpression),e.isIdentifier(U)&&f(x,U.escapedText)||a(x)?U=b(T,U,!1,Y):ne?U=b(T,U,!0,Y):e.nodeIsSynthesized(x)&&(Y=U)),H(T,x,U,Y,e.isDestructuringAssignment(x)),U&&ne){if(!e.some($))return U;$.push(U)}return K.factory.inlineExpressions($)||K.factory.createOmittedExpression();function I(D){$=e.append($,D)}function y(D,C,m,u){e.Debug.assertNode(D,R?e.isIdentifier:e.isExpression);var g=R?R(D,C,m):e.setTextRange(K.factory.createAssignment(e.visitNode(D,w,e.isExpression),C),m);g.original=u,I(g)}}e.flattenDestructuringAssignment=n;function f(x,w){var K=e.getTargetOfBindingOrAssignmentElement(x);return e.isBindingOrAssignmentPattern(K)?d(K,w):e.isIdentifier(K)?K.escapedText===w:!1}function d(x,w){for(var K=e.getElementsOfBindingOrAssignmentPattern(x),Z=0,ne=K;Z<ne.length;Z++){var R=ne[Z];if(f(R,w))return!0}return!1}function a(x){var w=e.tryGetPropertyNameOfBindingOrAssignmentElement(x);if(w&&e.isComputedPropertyName(w)&&!e.isLiteralExpression(w.expression))return!0;var K=e.getTargetOfBindingOrAssignmentElement(x);return!!K&&e.isBindingOrAssignmentPattern(K)&&p(K)}function p(x){return!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(x),a)}function N(x,w,K,Z,ne,R,Y){R===void 0&&(R=!1);var U,$=[],T=[],I={context:K,level:Z,downlevelIteration:!!K.getCompilerOptions().downlevelIteration,hoistTempVariables:R,emitExpression:Ce,emitBindingOrAssignment:O,createArrayBindingOrAssignmentPattern:function(Q){return P(K.factory,Q)},createObjectBindingOrAssignmentPattern:function(Q){return B(K.factory,Q)},createArrayBindingOrAssignmentElement:function(Q){return k(K.factory,Q)},visitor:w};if(e.isVariableDeclaration(x)){var y=e.getInitializerOfBindingOrAssignmentElement(x);y&&(e.isIdentifier(y)&&f(x,y.escapedText)||a(x))&&(y=b(I,e.visitNode(y,I.visitor),!1,y),x=K.factory.updateVariableDeclaration(x,x.name,void 0,void 0,y))}if(H(I,x,ne,x,Y),U){var D=K.factory.createTempVariable(void 0);if(R){var C=K.factory.inlineExpressions(U);U=void 0,O(D,C,void 0,void 0)}else{K.hoistVariableDeclaration(D);var m=e.last($);m.pendingExpressions=e.append(m.pendingExpressions,K.factory.createAssignment(D,m.value)),e.addRange(m.pendingExpressions,U),m.value=D}}for(var u=0,g=$;u<g.length;u++){var F=g[u],te=F.pendingExpressions,ue=F.name,C=F.value,X=F.location,j=F.original,Se=K.factory.createVariableDeclaration(ue,void 0,void 0,te?K.factory.inlineExpressions(e.append(te,C)):C);Se.original=j,e.setTextRange(Se,X),T.push(Se)}return T;function Ce(Q){U=e.append(U,Q)}function O(Q,V,z,Te){e.Debug.assertNode(Q,e.isBindingName),U&&(V=K.factory.inlineExpressions(e.append(U,V)),U=void 0),$.push({pendingExpressions:U,name:Q,value:V,location:z,original:Te})}}e.flattenDestructuringBinding=N;function H(x,w,K,Z,ne){var R=e.getTargetOfBindingOrAssignmentElement(w);if(!ne){var Y=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(w),x.visitor,e.isExpression);Y?K?(K=q(x,K,Y,Z),!e.isSimpleInlineableExpression(Y)&&e.isBindingOrAssignmentPattern(R)&&(K=b(x,K,!0,Z))):K=Y:K||(K=x.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(R)?h(x,w,R,K,Z):e.isArrayBindingOrAssignmentPattern(R)?v(x,w,R,K,Z):x.emitBindingOrAssignment(R,K,Z,w)}function h(x,w,K,Z,ne){var R=e.getElementsOfBindingOrAssignmentPattern(K),Y=R.length;if(Y!==1){var U=!e.isDeclarationBindingElement(w)||Y!==0;Z=b(x,Z,U,ne)}for(var $,T,I=0;I<Y;I++){var y=R[I];if(e.getRestIndicatorOfBindingOrAssignmentElement(y)){if(I===Y-1){$&&(x.emitBindingOrAssignment(x.createObjectBindingOrAssignmentPattern($),Z,ne,K),$=void 0);var C=x.context.getEmitHelperFactory().createRestHelper(Z,R,T,K);H(x,y,C,y)}}else{var D=e.getPropertyNameOfBindingOrAssignmentElement(y);if(x.level>=1&&!(y.transformFlags&49152)&&!(e.getTargetOfBindingOrAssignmentElement(y).transformFlags&49152)&&!e.isComputedPropertyName(D))$=e.append($,e.visitNode(y,x.visitor));else{$&&(x.emitBindingOrAssignment(x.createObjectBindingOrAssignmentPattern($),Z,ne,K),$=void 0);var C=ie(x,Z,D);e.isComputedPropertyName(D)&&(T=e.append(T,C.argumentExpression)),H(x,y,C,y)}}}$&&x.emitBindingOrAssignment(x.createObjectBindingOrAssignmentPattern($),Z,ne,K)}function v(x,w,K,Z,ne){var R=e.getElementsOfBindingOrAssignmentPattern(K),Y=R.length;if(x.level<1&&x.downlevelIteration)Z=b(x,e.setTextRange(x.context.getEmitHelperFactory().createReadHelper(Z,Y>0&&e.getRestIndicatorOfBindingOrAssignmentElement(R[Y-1])?void 0:Y),ne),!1,ne);else if(Y!==1&&(x.level<1||Y===0)||e.every(R,e.isOmittedExpression)){var U=!e.isDeclarationBindingElement(w)||Y!==0;Z=b(x,Z,U,ne)}for(var $,T,I=0;I<Y;I++){var y=R[I];if(x.level>=1)if(y.transformFlags&32768||x.hasTransformedPriorElement&&!A(y)){x.hasTransformedPriorElement=!0;var D=x.context.factory.createTempVariable(void 0);x.hoistTempVariables&&x.context.hoistVariableDeclaration(D),T=e.append(T,[D,y]),$=e.append($,x.createArrayBindingOrAssignmentElement(D))}else $=e.append($,y);else{if(e.isOmittedExpression(y))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(y)){if(I===Y-1){var C=x.context.factory.createArraySliceCall(Z,I);H(x,y,C,y)}}else{var C=x.context.factory.createElementAccessExpression(Z,I);H(x,y,C,y)}}}if($&&x.emitBindingOrAssignment(x.createArrayBindingOrAssignmentPattern($),Z,ne,K),T)for(var m=0,u=T;m<u.length;m++){var g=u[m],F=g[0],y=g[1];H(x,y,F,y)}}function A(x){var w=e.getTargetOfBindingOrAssignmentElement(x);if(!w||e.isOmittedExpression(w))return!0;var K=e.tryGetPropertyNameOfBindingOrAssignmentElement(x);if(K&&!e.isPropertyNameLiteral(K))return!1;var Z=e.getInitializerOfBindingOrAssignmentElement(x);return Z&&!e.isSimpleInlineableExpression(Z)?!1:e.isBindingOrAssignmentPattern(w)?e.every(e.getElementsOfBindingOrAssignmentPattern(w),A):e.isIdentifier(w)}function q(x,w,K,Z){return w=b(x,w,!0,Z),x.context.factory.createConditionalExpression(x.context.factory.createTypeCheck(w,"undefined"),void 0,K,void 0,w)}function ie(x,w,K){if(e.isComputedPropertyName(K)){var Z=b(x,e.visitNode(K.expression,x.visitor),!1,K);return x.context.factory.createElementAccessExpression(w,Z)}else if(e.isStringOrNumericLiteralLike(K)){var Z=e.factory.cloneNode(K);return x.context.factory.createElementAccessExpression(w,Z)}else{var ne=x.context.factory.createIdentifier(e.idText(K));return x.context.factory.createPropertyAccessExpression(w,ne)}}function b(x,w,K,Z){if(e.isIdentifier(w)&&K)return w;var ne=x.context.factory.createTempVariable(void 0);return x.hoistTempVariables?(x.context.hoistVariableDeclaration(ne),x.emitExpression(e.setTextRange(x.context.factory.createAssignment(ne,w),Z))):x.emitBindingOrAssignment(ne,w,Z,void 0),ne}function P(x,w){return e.Debug.assertEachNode(w,e.isArrayBindingElement),x.createArrayBindingPattern(w)}function S(x,w){return x.createArrayLiteralExpression(e.map(w,x.converters.convertToArrayAssignmentElement))}function B(x,w){return e.Debug.assertEachNode(w,e.isBindingElement),x.createObjectBindingPattern(w)}function J(x,w){return x.createObjectLiteralExpression(e.map(w,x.converters.convertToObjectAssignmentElement))}function k(x,w){return x.createBindingElement(void 0,void 0,w)}function M(x){return x}})(gr||(gr={}));var gr;(function(e){var n;(function(p){p[p.LiftRestriction=0]="LiftRestriction",p[p.All=1]="All"})(n=e.ProcessLevel||(e.ProcessLevel={}));function f(p,N,H,h,v,A){var q=e.visitNode(N.tag,H,e.isExpression),ie=[void 0],b=[],P=[],S=N.template;if(A===n.LiftRestriction&&!e.hasInvalidEscape(S))return e.visitEachChild(N,H,p);if(e.isNoSubstitutionTemplateLiteral(S))b.push(d(S)),P.push(a(S,h));else{b.push(d(S.head)),P.push(a(S.head,h));for(var B=0,J=S.templateSpans;B<J.length;B++){var k=J[B];b.push(d(k.literal)),P.push(a(k.literal,h)),ie.push(e.visitNode(k.expression,H,e.isExpression))}}var M=p.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(b),e.factory.createArrayLiteralExpression(P));if(e.isExternalModule(h)){var x=e.factory.createUniqueName("templateObject");v(x),ie[0]=e.factory.createLogicalOr(x,e.factory.createAssignment(x,M))}else ie[0]=M;return e.factory.createCallExpression(q,void 0,ie)}e.processTaggedTemplateExpression=f;function d(p){return p.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(p.text)}function a(p,N){var H=p.rawText;if(H===void 0){e.Debug.assertIsDefined(N,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),H=e.getSourceTextOfNodeFromSourceFile(N,p);var h=p.kind===14||p.kind===17;H=H.substring(1,H.length-(h?1:2))}return H=H.replace(/\r\n?/g,`
|
|
`),e.setTextRange(e.factory.createStringLiteral(H),p)}})(gr||(gr={}));var gr;(function(e){var n;(function(a){a[a.ClassAliases=1]="ClassAliases",a[a.NamespaceExports=2]="NamespaceExports",a[a.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"})(n||(n={}));var f;(function(a){a[a.None=0]="None",a[a.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",a[a.HasConstructorDecorators=2]="HasConstructorDecorators",a[a.HasMemberDecorators=4]="HasMemberDecorators",a[a.IsExportOfNamespace=8]="IsExportOfNamespace",a[a.IsNamedExternalExport=16]="IsNamedExternalExport",a[a.IsDefaultExternalExport=32]="IsDefaultExternalExport",a[a.IsDerivedClass=64]="IsDerivedClass",a[a.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",a[a.HasAnyDecorators=6]="HasAnyDecorators",a[a.NeedsName=5]="NeedsName",a[a.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",a[a.IsExported=56]="IsExported"})(f||(f={}));function d(a){var p=a.factory,N=a.getEmitHelperFactory,H=a.startLexicalEnvironment,h=a.resumeLexicalEnvironment,v=a.endLexicalEnvironment,A=a.hoistVariableDeclaration,q=a.getEmitResolver(),ie=a.getCompilerOptions(),b=e.getStrictOptionValue(ie,"strictNullChecks"),P=e.getEmitScriptTarget(ie),S=e.getEmitModuleKind(ie),B=a.onEmitNode,J=a.onSubstituteNode;a.onEmitNode=Zi,a.onSubstituteNode=Po,a.enableSubstitution(205),a.enableSubstitution(206);var k,M,x,w,K,Z,ne,R,Y,U;return $;function $(oe){return oe.kind===304?T(oe):I(oe)}function T(oe){return p.createBundle(oe.sourceFiles.map(I),e.mapDefined(oe.prepends,function(mr){return mr.kind===306?e.createUnparsedSourceFile(mr,"js"):mr}))}function I(oe){if(oe.isDeclarationFile)return oe;k=oe;var mr=y(oe,O);return e.addEmitHelpers(mr,a.readEmitHelpers()),k=void 0,mr}function y(oe,mr){var se=w,Be=K,er=Z,hr=ne;D(oe);var qr=mr(oe);return w!==se&&(Z=er),w=se,K=Be,ne=hr,qr}function D(oe){switch(oe.kind){case 303:case 262:case 261:case 234:w=oe,K=void 0,Z=void 0;break;case 256:case 255:if(e.hasSyntacticModifier(oe,2))break;oe.name?ba(oe):e.Debug.assert(oe.kind===256||e.hasSyntacticModifier(oe,512)),e.isClassDeclaration(oe)&&(K=oe);break}}function C(oe){return y(oe,m)}function m(oe){return oe.transformFlags&1?Ce(oe):oe}function u(oe){return y(oe,g)}function g(oe){switch(oe.kind){case 265:case 264:case 270:case 271:return F(oe);default:return m(oe)}}function F(oe){var mr=e.getParseTreeNode(oe);if(mr!==oe)return oe.transformFlags&1?e.visitEachChild(oe,C,a):oe;switch(oe.kind){case 265:return qt(oe);case 264:return Ra(oe);case 270:return pt(oe);case 271:return _t(oe);default:e.Debug.fail("Unhandled ellided statement")}}function te(oe){return y(oe,ue)}function ue(oe){if(!(oe.kind===271||oe.kind===265||oe.kind===266||oe.kind===264&&oe.moduleReference.kind===276))return oe.transformFlags&1||e.hasSyntacticModifier(oe,1)?Ce(oe):oe}function X(oe){return y(oe,j)}function j(oe){switch(oe.kind){case 170:return or(oe);case 166:return ye(oe);case 175:case 171:case 172:case 168:case 169:return m(oe);case 233:return oe;default:return e.Debug.failBadSyntaxKind(oe)}}function Se(oe){if(!(e.modifierToFlag(oe.kind)&18654)&&!(M&&oe.kind===93))return oe}function Ce(oe){if(e.isStatement(oe)&&e.hasSyntacticModifier(oe,2))return p.createNotEmittedStatement(oe);switch(oe.kind){case 93:case 88:return M?void 0:oe;case 123:case 121:case 122:case 126:case 158:case 85:case 135:case 144:case 182:case 183:case 184:case 185:case 181:case 176:case 162:case 130:case 154:case 133:case 149:case 146:case 143:case 114:case 150:case 179:case 178:case 180:case 177:case 186:case 187:case 188:case 190:case 191:case 192:case 193:case 194:case 195:case 175:case 164:return;case 258:return p.createNotEmittedStatement(oe);case 166:return ye(oe);case 263:return;case 170:return or(oe);case 257:return p.createNotEmittedStatement(oe);case 256:return Te(oe);case 225:return Me(oe);case 290:return ir(oe);case 227:return Rr(oe);case 168:return Ee(oe);case 171:return ee(oe);case 172:return Ne(oe);case 255:return me(oe);case 212:return Ze(oe);case 213:return xr(oe);case 163:return fr(oe);case 211:return Wr(oe);case 210:case 228:return tr(oe);case 207:return kr(oe);case 208:return zr(oe);case 209:return gt(oe);case 229:return Ir(oe);case 259:return xt(oe);case 236:return dr(oe);case 253:return yt(oe);case 260:return en(oe);case 264:return Ra(oe);case 278:return vt(oe);case 279:return ut(oe);default:return e.visitEachChild(oe,C,a)}}function O(oe){var mr=e.getStrictOptionValue(ie,"alwaysStrict")&&!(e.isExternalModule(oe)&&S>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(oe);return p.updateSourceFile(oe,e.visitLexicalEnvironment(oe.statements,u,a,0,mr))}function Q(oe,mr){var se=0;e.some(mr)&&(se|=1);var Be=e.getEffectiveBaseTypeNode(oe);return Be&&e.skipOuterExpressions(Be.expression).kind!==104&&(se|=64),e.classOrConstructorParameterIsDecorated(oe)&&(se|=2),e.childIsDecorated(oe)&&(se|=4),Ci(oe)?se|=8:yi(oe)?se|=32:va(oe)&&(se|=16),P<=1&&se&7&&(se|=128),se}function V(oe){return!!(oe.transformFlags&4096)}function z(oe){return e.some(oe.decorators)||e.some(oe.typeParameters)||e.some(oe.heritageClauses,V)||e.some(oe.members,V)}function Te(oe){if(!z(oe)&&!(M&&e.hasSyntacticModifier(oe,1)))return e.visitEachChild(oe,C,a);var mr=e.getProperties(oe,!0,!0),se=Q(oe,mr);se&128&&a.startLexicalEnvironment();var Be=oe.name||(se&5?p.getGeneratedNameForNode(oe):void 0),er=se&2?ke(oe,Be):ge(oe,Be,se),hr=[er];if(Lr(hr,oe,!1),Lr(hr,oe,!0),Cr(hr,oe),se&128){var qr=e.createTokenRange(e.skipTrivia(k.text,oe.members.end),19),Dt=p.getInternalName(oe),Jt=p.createPartiallyEmittedExpression(Dt);e.setTextRangeEnd(Jt,qr.end),e.setEmitFlags(Jt,1536);var Sn=p.createReturnStatement(Jt);e.setTextRangePos(Sn,qr.pos),e.setEmitFlags(Sn,1920),hr.push(Sn),e.insertStatementsAfterStandardPrologue(hr,a.endLexicalEnvironment());var ta=p.createImmediatelyInvokedArrowFunction(hr);e.setEmitFlags(ta,33554432);var xa=p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(p.getLocalName(oe,!1,!1),void 0,void 0,ta)]));e.setOriginalNode(xa,oe),e.setCommentRange(xa,oe),e.setSourceMapRange(xa,e.moveRangePastDecorators(oe)),e.startOnNewLine(xa),hr=[xa]}return se&8?Ka(hr,oe):(se&128||se&2)&&(se&32?hr.push(p.createExportDefault(p.getLocalName(oe,!1,!0))):se&16&&hr.push(p.createExternalModuleExport(p.getLocalName(oe,!1,!0)))),hr.length>1&&(hr.push(p.createEndOfDeclarationMarker(oe)),e.setEmitFlags(er,e.getEmitFlags(er)|4194304)),e.singleOrMany(hr)}function ge(oe,mr,se){var Be=se&128?void 0:e.visitNodes(oe.modifiers,Se,e.isModifier),er=p.createClassDeclaration(void 0,Be,mr,void 0,e.visitNodes(oe.heritageClauses,C,e.isHeritageClause),Ie(oe)),hr=e.getEmitFlags(oe);return se&1&&(hr|=32),e.setTextRange(er,oe),e.setOriginalNode(er,oe),e.setEmitFlags(er,hr),er}function ke(oe,mr){var se=e.moveRangePastDecorators(oe),Be=No(oe),er=P<=2?p.getInternalName(oe,!1,!0):p.getLocalName(oe,!1,!0),hr=e.visitNodes(oe.heritageClauses,C,e.isHeritageClause),qr=Ie(oe),Dt=p.createClassExpression(void 0,void 0,mr,void 0,hr,qr);e.setOriginalNode(Dt,oe),e.setTextRange(Dt,se);var Jt=p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(er,void 0,void 0,Be?p.createAssignment(Be,Dt):Dt)],1));return e.setOriginalNode(Jt,oe),e.setTextRange(Jt,se),e.setCommentRange(Jt,oe),Jt}function Me(oe){if(!z(oe))return e.visitEachChild(oe,C,a);var mr=p.createClassExpression(void 0,void 0,oe.name,void 0,e.visitNodes(oe.heritageClauses,C,e.isHeritageClause),Ie(oe));return e.setOriginalNode(mr,oe),e.setTextRange(mr,oe),mr}function Ie(oe){var mr=[],se=e.getFirstConstructorWithBody(oe),Be=se&&e.filter(se.parameters,function(Dt){return e.isParameterPropertyDeclaration(Dt,se)});if(Be)for(var er=0,hr=Be;er<hr.length;er++){var qr=hr[er];e.isIdentifier(qr.name)&&mr.push(e.setOriginalNode(p.createPropertyDeclaration(void 0,void 0,qr.name,void 0,void 0,void 0),qr))}return e.addRange(mr,e.visitNodes(oe.members,X,e.isClassElement)),e.setTextRange(p.createNodeArray(mr),oe.members)}function Ge(oe,mr){return e.filter(oe.members,mr?function(se){return he(se,oe)}:function(se){return ve(se,oe)})}function he(oe,mr){return Ve(oe,!0,mr)}function ve(oe,mr){return Ve(oe,!1,mr)}function Ve(oe,mr,se){return e.nodeOrChildIsDecorated(oe,se)&&mr===e.isStatic(oe)}function _e(oe){var mr;if(oe)for(var se=oe.parameters,Be=se.length>0&&e.parameterIsThisKeyword(se[0]),er=Be?1:0,hr=Be?se.length-1:se.length,qr=0;qr<hr;qr++){var Dt=se[qr+er];(mr||Dt.decorators)&&(mr||(mr=new Array(hr)),mr[qr]=Dt.decorators)}return mr}function Le(oe){var mr=oe.decorators,se=_e(e.getFirstConstructorWithBody(oe));if(!(!mr&&!se))return{decorators:mr,parameters:se}}function qe(oe,mr){switch(mr.kind){case 171:case 172:return Xe(oe,mr);case 168:return De(mr);case 166:return Ae(mr);default:return}}function Xe(oe,mr){if(!!mr.body){var se=e.getAllAccessorDeclarations(oe.members,mr),Be=se.firstAccessor,er=se.secondAccessor,hr=se.setAccessor,qr=Be.decorators?Be:er&&er.decorators?er:void 0;if(!(!qr||mr!==qr)){var Dt=qr.decorators,Jt=_e(hr);if(!(!Dt&&!Jt))return{decorators:Dt,parameters:Jt}}}}function De(oe){if(!!oe.body){var mr=oe.decorators,se=_e(oe);if(!(!mr&&!se))return{decorators:mr,parameters:se}}}function Ae(oe){var mr=oe.decorators;if(!!mr)return{decorators:mr}}function Ye(oe,mr,se){if(!!se){var Be=[];return e.addRange(Be,e.map(se.decorators,Ke)),e.addRange(Be,e.flatMap(se.parameters,Pe)),Hr(oe,mr,Be),Be}}function Lr(oe,mr,se){e.addRange(oe,e.map(Er(mr,se),ro))}function Er(oe,mr){for(var se=Ge(oe,mr),Be,er=0,hr=se;er<hr.length;er++){var qr=hr[er],Dt=lr(oe,qr);Dt&&(Be?Be.push(Dt):Be=[Dt])}return Be}function lr(oe,mr){var se=qe(oe,mr),Be=Ye(mr,oe,se);if(!!Be){var er=Lo(oe,mr),hr=In(mr,!0),qr=P>0?mr.kind===166?p.createVoidZero():p.createNull():void 0,Dt=N().createDecorateHelper(Be,er,hr,qr);return e.setTextRange(Dt,e.moveRangePastDecorators(mr)),e.setEmitFlags(Dt,1536),Dt}}function Cr(oe,mr){var se=Or(mr);se&&oe.push(e.setOriginalNode(p.createExpressionStatement(se),mr))}function Or(oe){var mr=Le(oe),se=Ye(oe,oe,mr);if(!!se){var Be=Y&&Y[e.getOriginalNodeId(oe)],er=P<=2?p.getInternalName(oe,!1,!0):p.getLocalName(oe,!1,!0),hr=N().createDecorateHelper(se,er),qr=p.createAssignment(er,Be?p.createAssignment(Be,hr):hr);return e.setEmitFlags(qr,1536),e.setSourceMapRange(qr,e.moveRangePastDecorators(oe)),qr}}function Ke(oe){return e.visitNode(oe.expression,C,e.isExpression)}function Pe(oe,mr){var se;if(oe){se=[];for(var Be=0,er=oe;Be<er.length;Be++){var hr=er[Be],qr=N().createParamHelper(Ke(hr),mr);e.setTextRange(qr,hr.expression),e.setEmitFlags(qr,1536),se.push(qr)}}return se}function Hr(oe,mr,se){ur(oe,mr,se)}function ur(oe,mr,se){ie.emitDecoratorMetadata&&(vr(oe)&&se.push(N().createMetadataHelper("design:type",Dr(oe))),Fe(oe)&&se.push(N().createMetadataHelper("design:paramtypes",Fr(oe,mr))),de(oe)&&se.push(N().createMetadataHelper("design:returntype",pr(oe))))}function vr(oe){var mr=oe.kind;return mr===168||mr===171||mr===172||mr===166}function de(oe){return oe.kind===168}function Fe(oe){switch(oe.kind){case 256:case 225:return e.getFirstConstructorWithBody(oe)!==void 0;case 168:case 171:case 172:return!0}return!1}function $e(oe){var mr=q.getAllAccessorDeclarations(oe);return mr.setAccessor&&e.getSetAccessorTypeAnnotationNode(mr.setAccessor)||mr.getAccessor&&e.getEffectiveReturnTypeNode(mr.getAccessor)}function Dr(oe){switch(oe.kind){case 166:case 163:return Jr(oe.type);case 172:case 171:return Jr($e(oe));case 256:case 225:case 168:return p.createIdentifier("Function");default:return p.createVoidZero()}}function Fr(oe,mr){var se=e.isClassLike(oe)?e.getFirstConstructorWithBody(oe):e.isFunctionLike(oe)&&e.nodeIsPresent(oe.body)?oe:void 0,Be=[];if(se)for(var er=He(se,mr),hr=er.length,qr=0;qr<hr;qr++){var Dt=er[qr];qr===0&&e.isIdentifier(Dt.name)&&Dt.name.escapedText==="this"||(Dt.dotDotDotToken?Be.push(Jr(e.getRestParameterElementType(Dt.type))):Be.push(Dr(Dt)))}return p.createArrayLiteralExpression(Be)}function He(oe,mr){if(mr&&oe.kind===171){var se=e.getAllAccessorDeclarations(mr.members,oe).setAccessor;if(se)return se.parameters}return oe.parameters}function pr(oe){return e.isFunctionLike(oe)&&oe.type?Jr(oe.type):e.isAsyncFunction(oe)?p.createIdentifier("Promise"):p.createVoidZero()}function Jr(oe){if(oe===void 0)return p.createIdentifier("Object");switch(oe.kind){case 114:case 152:case 143:return p.createVoidZero();case 190:return Jr(oe.type);case 178:case 179:return p.createIdentifier("Function");case 182:case 183:return p.createIdentifier("Array");case 176:case 133:return p.createIdentifier("Boolean");case 149:return p.createIdentifier("String");case 147:return p.createIdentifier("Object");case 195:switch(oe.literal.kind){case 10:case 14:return p.createIdentifier("String");case 218:case 8:return p.createIdentifier("Number");case 9:return bn();case 110:case 95:return p.createIdentifier("Boolean");case 104:return p.createVoidZero();default:return e.Debug.failBadSyntaxKind(oe.literal)}case 146:return p.createIdentifier("Number");case 157:return bn();case 150:return P<2?cn():p.createIdentifier("Symbol");case 177:return Ar(oe);case 187:case 186:return ze(oe.types);case 188:return ze([oe.trueType,oe.falseType]);case 192:if(oe.operator===144)return Jr(oe.type);break;case 180:case 193:case 194:case 181:case 130:case 154:case 191:case 199:break;case 310:case 311:case 315:case 316:case 317:break;case 312:case 313:case 314:return Jr(oe.type);default:return e.Debug.failBadSyntaxKind(oe)}return p.createIdentifier("Object")}function ze(oe){for(var mr,se=0,Be=oe;se<Be.length;se++){for(var er=Be[se];er.kind===190;)er=er.type;if(er.kind!==143&&!(!b&&(er.kind===195&&er.literal.kind===104||er.kind===152))){var hr=Jr(er);if(e.isIdentifier(hr)&&hr.escapedText==="Object")return hr;if(mr){if(!e.isIdentifier(mr)||!e.isIdentifier(hr)||mr.escapedText!==hr.escapedText)return p.createIdentifier("Object")}else mr=hr}}return mr||p.createVoidZero()}function Ar(oe){var mr=q.getTypeReferenceSerializationKind(oe.typeName,K||w);switch(mr){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(oe,function(er){return er.parent&&e.isConditionalTypeNode(er.parent)&&(er.parent.trueType===er||er.parent.falseType===er)}))return p.createIdentifier("Object");var se=lt(oe.typeName),Be=p.createTempVariable(A);return p.createConditionalExpression(p.createTypeCheck(p.createAssignment(Be,se),"function"),void 0,Be,void 0,p.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return tt(oe.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return p.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return bn();case e.TypeReferenceSerializationKind.BooleanType:return p.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return p.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return p.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return p.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return P<2?cn():p.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return p.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return p.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return p.createIdentifier("Object");default:return e.Debug.assertNever(mr)}}function Yr(oe,mr){return p.createLogicalAnd(p.createStrictInequality(p.createTypeOfExpression(oe),p.createStringLiteral("undefined")),mr)}function lt(oe){if(oe.kind===79){var mr=tt(oe);return Yr(mr,mr)}if(oe.left.kind===79)return Yr(tt(oe.left),tt(oe));var se=lt(oe.left),Be=p.createTempVariable(A);return p.createLogicalAnd(p.createLogicalAnd(se.left,p.createStrictInequality(p.createAssignment(Be,se.right),p.createVoidZero())),p.createPropertyAccessExpression(Be,oe.right))}function tt(oe){switch(oe.kind){case 79:var mr=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(oe),oe),oe.parent);return mr.original=void 0,e.setParent(mr,e.getParseTreeNode(w)),mr;case 160:return Rt(oe)}}function Rt(oe){return p.createPropertyAccessExpression(tt(oe.left),oe.right)}function cn(){return p.createConditionalExpression(p.createTypeCheck(p.createIdentifier("Symbol"),"function"),void 0,p.createIdentifier("Symbol"),void 0,p.createIdentifier("Object"))}function bn(){return P<99?p.createConditionalExpression(p.createTypeCheck(p.createIdentifier("BigInt"),"function"),void 0,p.createIdentifier("BigInt"),void 0,p.createIdentifier("Object")):p.createIdentifier("BigInt")}function In(oe,mr){var se=oe.name;return e.isPrivateIdentifier(se)?p.createIdentifier(""):e.isComputedPropertyName(se)?mr&&!e.isSimpleInlineableExpression(se.expression)?p.getGeneratedNameForNode(se):se.expression:e.isIdentifier(se)?p.createStringLiteral(e.idText(se)):p.cloneNode(se)}function zn(oe){var mr=oe.name;if(e.isComputedPropertyName(mr)&&(!e.hasStaticModifier(oe)&&ne||e.some(oe.decorators))){var se=e.visitNode(mr.expression,C,e.isExpression),Be=e.skipPartiallyEmittedExpressions(se);if(!e.isSimpleInlineableExpression(Be)){var er=p.getGeneratedNameForNode(mr);return A(er),p.updateComputedPropertyName(mr,p.createAssignment(er,se))}}return e.visitNode(mr,C,e.isPropertyName)}function ir(oe){if(oe.token!==117)return e.visitEachChild(oe,C,a)}function Rr(oe){return p.updateExpressionWithTypeArguments(oe,e.visitNode(oe.expression,C,e.isLeftHandSideExpression),void 0)}function sr(oe){return!e.nodeIsMissing(oe.body)}function ye(oe){if(!(oe.flags&8388608||e.hasSyntacticModifier(oe,128))){var mr=p.updatePropertyDeclaration(oe,void 0,e.visitNodes(oe.modifiers,C,e.isModifier),zn(oe),void 0,void 0,e.visitNode(oe.initializer,C));return mr!==oe&&(e.setCommentRange(mr,oe),e.setSourceMapRange(mr,e.moveRangePastDecorators(oe))),mr}}function or(oe){if(!!sr(oe))return p.updateConstructorDeclaration(oe,void 0,void 0,e.visitParameterList(oe.parameters,C,a),fe(oe.body,oe))}function fe(oe,mr){var se=mr&&e.filter(mr.parameters,function(qr){return e.isParameterPropertyDeclaration(qr,mr)});if(!e.some(se))return e.visitFunctionBody(oe,C,a);var Be=[],er=0;h(),er=e.addPrologueDirectivesAndInitialSuperCall(p,mr,Be,C),e.addRange(Be,e.map(se,je)),e.addRange(Be,e.visitNodes(oe.statements,C,e.isStatement,er)),Be=p.mergeLexicalEnvironment(Be,v());var hr=p.createBlock(e.setTextRange(p.createNodeArray(Be),oe.statements),!0);return e.setTextRange(hr,oe),e.setOriginalNode(hr,oe),hr}function je(oe){var mr=oe.name;if(!!e.isIdentifier(mr)){var se=e.setParent(e.setTextRange(p.cloneNode(mr),mr),mr.parent);e.setEmitFlags(se,1584);var Be=e.setParent(e.setTextRange(p.cloneNode(mr),mr),mr.parent);return e.setEmitFlags(Be,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(p.createExpressionStatement(p.createAssignment(e.setTextRange(p.createPropertyAccessExpression(p.createThis(),se),oe.name),Be)),oe),e.moveRangePos(oe,-1))))}}function Ee(oe){if(!!sr(oe)){var mr=p.updateMethodDeclaration(oe,void 0,e.visitNodes(oe.modifiers,Se,e.isModifier),oe.asteriskToken,zn(oe),void 0,void 0,e.visitParameterList(oe.parameters,C,a),void 0,e.visitFunctionBody(oe.body,C,a));return mr!==oe&&(e.setCommentRange(mr,oe),e.setSourceMapRange(mr,e.moveRangePastDecorators(oe))),mr}}function We(oe){return!(e.nodeIsMissing(oe.body)&&e.hasSyntacticModifier(oe,128))}function ee(oe){if(!!We(oe)){var mr=p.updateGetAccessorDeclaration(oe,void 0,e.visitNodes(oe.modifiers,Se,e.isModifier),zn(oe),e.visitParameterList(oe.parameters,C,a),void 0,e.visitFunctionBody(oe.body,C,a)||p.createBlock([]));return mr!==oe&&(e.setCommentRange(mr,oe),e.setSourceMapRange(mr,e.moveRangePastDecorators(oe))),mr}}function Ne(oe){if(!!We(oe)){var mr=p.updateSetAccessorDeclaration(oe,void 0,e.visitNodes(oe.modifiers,Se,e.isModifier),zn(oe),e.visitParameterList(oe.parameters,C,a),e.visitFunctionBody(oe.body,C,a)||p.createBlock([]));return mr!==oe&&(e.setCommentRange(mr,oe),e.setSourceMapRange(mr,e.moveRangePastDecorators(oe))),mr}}function me(oe){if(!sr(oe))return p.createNotEmittedStatement(oe);var mr=p.updateFunctionDeclaration(oe,void 0,e.visitNodes(oe.modifiers,Se,e.isModifier),oe.asteriskToken,oe.name,void 0,e.visitParameterList(oe.parameters,C,a),void 0,e.visitFunctionBody(oe.body,C,a)||p.createBlock([]));if(Ci(oe)){var se=[mr];return Ka(se,oe),se}return mr}function Ze(oe){if(!sr(oe))return p.createOmittedExpression();var mr=p.updateFunctionExpression(oe,e.visitNodes(oe.modifiers,Se,e.isModifier),oe.asteriskToken,oe.name,void 0,e.visitParameterList(oe.parameters,C,a),void 0,e.visitFunctionBody(oe.body,C,a)||p.createBlock([]));return mr}function xr(oe){var mr=p.updateArrowFunction(oe,e.visitNodes(oe.modifiers,Se,e.isModifier),void 0,e.visitParameterList(oe.parameters,C,a),void 0,oe.equalsGreaterThanToken,e.visitFunctionBody(oe.body,C,a));return mr}function fr(oe){if(!e.parameterIsThisKeyword(oe)){var mr=p.updateParameterDeclaration(oe,void 0,void 0,oe.dotDotDotToken,e.visitNode(oe.name,C,e.isBindingName),void 0,void 0,e.visitNode(oe.initializer,C,e.isExpression));return mr!==oe&&(e.setCommentRange(mr,oe),e.setTextRange(mr,e.moveRangePastModifiers(oe)),e.setSourceMapRange(mr,e.moveRangePastModifiers(oe)),e.setEmitFlags(mr.name,32)),mr}}function dr(oe){if(Ci(oe)){var mr=e.getInitializedVariables(oe.declarationList);return mr.length===0?void 0:e.setTextRange(p.createExpressionStatement(p.inlineExpressions(e.map(mr,et))),oe)}else return e.visitEachChild(oe,C,a)}function et(oe){var mr=oe.name;return e.isBindingPattern(mr)?e.flattenDestructuringAssignment(oe,C,a,0,!1,io):e.setTextRange(p.createAssignment(ji(mr),e.visitNode(oe.initializer,C,e.isExpression)),oe)}function yt(oe){return p.updateVariableDeclaration(oe,e.visitNode(oe.name,C,e.isBindingName),void 0,void 0,e.visitNode(oe.initializer,C,e.isExpression))}function Wr(oe){var mr=e.skipOuterExpressions(oe.expression,-7);if(e.isAssertionExpression(mr)){var se=e.visitNode(oe.expression,C,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(se,k))?p.updateParenthesizedExpression(oe,se):p.createPartiallyEmittedExpression(se,oe)}return e.visitEachChild(oe,C,a)}function tr(oe){var mr=e.visitNode(oe.expression,C,e.isExpression);return p.createPartiallyEmittedExpression(mr,oe)}function Ir(oe){var mr=e.visitNode(oe.expression,C,e.isLeftHandSideExpression);return p.createPartiallyEmittedExpression(mr,oe)}function kr(oe){return p.updateCallExpression(oe,e.visitNode(oe.expression,C,e.isExpression),void 0,e.visitNodes(oe.arguments,C,e.isExpression))}function zr(oe){return p.updateNewExpression(oe,e.visitNode(oe.expression,C,e.isExpression),void 0,e.visitNodes(oe.arguments,C,e.isExpression))}function gt(oe){return p.updateTaggedTemplateExpression(oe,e.visitNode(oe.tag,C,e.isExpression),void 0,e.visitNode(oe.template,C,e.isExpression))}function vt(oe){return p.updateJsxSelfClosingElement(oe,e.visitNode(oe.tagName,C,e.isJsxTagNameExpression),void 0,e.visitNode(oe.attributes,C,e.isJsxAttributes))}function ut(oe){return p.updateJsxOpeningElement(oe,e.visitNode(oe.tagName,C,e.isJsxTagNameExpression),void 0,e.visitNode(oe.attributes,C,e.isJsxAttributes))}function ht(oe){return!e.isEnumConst(oe)||e.shouldPreserveConstEnums(ie)}function xt(oe){if(!ht(oe))return p.createNotEmittedStatement(oe);var mr=[],se=2,Be=Wn(mr,oe);Be&&(S!==e.ModuleKind.System||w!==k)&&(se|=512);var er=Hi(oe),hr=to(oe),qr=e.hasSyntacticModifier(oe,1)?p.getExternalModuleOrNamespaceExportName(x,oe,!1,!0):p.getLocalName(oe,!1,!0),Dt=p.createLogicalOr(qr,p.createAssignment(qr,p.createObjectLiteralExpression()));if(sa(oe)){var Jt=p.getLocalName(oe,!1,!0);Dt=p.createAssignment(Jt,Dt)}var Sn=p.createExpressionStatement(p.createCallExpression(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,er)],void 0,wt(oe,hr)),void 0,[Dt]));return e.setOriginalNode(Sn,oe),Be&&(e.setSyntheticLeadingComments(Sn,void 0),e.setSyntheticTrailingComments(Sn,void 0)),e.setTextRange(Sn,oe),e.addEmitFlags(Sn,se),mr.push(Sn),mr.push(p.createEndOfDeclarationMarker(oe)),mr}function wt(oe,mr){var se=x;x=mr;var Be=[];H();var er=e.map(oe.members,Qt);return e.insertStatementsAfterStandardPrologue(Be,v()),e.addRange(Be,er),x=se,p.createBlock(e.setTextRange(p.createNodeArray(Be),oe.members),!0)}function Qt(oe){var mr=In(oe,!1),se=mt(oe),Be=p.createAssignment(p.createElementAccessExpression(x,mr),se),er=se.kind===10?Be:p.createAssignment(p.createElementAccessExpression(x,Be),mr);return e.setTextRange(p.createExpressionStatement(e.setTextRange(er,oe)),oe)}function mt(oe){var mr=q.getConstantValue(oe);return mr!==void 0?typeof mr=="string"?p.createStringLiteral(mr):p.createNumericLiteral(mr):(Ha(),oe.initializer?e.visitNode(oe.initializer,C,e.isExpression):p.createVoidZero())}function rn(oe){var mr=e.getParseTreeNode(oe,e.isModuleDeclaration);return mr?e.isInstantiatedModule(mr,e.shouldPreserveConstEnums(ie)):!0}function sa(oe){return Ci(oe)||_i(oe)&&S!==e.ModuleKind.ES2015&&S!==e.ModuleKind.ES2020&&S!==e.ModuleKind.ES2022&&S!==e.ModuleKind.ESNext&&S!==e.ModuleKind.System}function ba(oe){Z||(Z=new e.Map);var mr=na(oe);Z.has(mr)||Z.set(mr,oe)}function Jn(oe){if(Z){var mr=na(oe);return Z.get(mr)===oe}return!0}function na(oe){return e.Debug.assertNode(oe.name,e.isIdentifier),oe.name.escapedText}function Wn(oe,mr){var se=p.createVariableStatement(e.visitNodes(mr.modifiers,Se,e.isModifier),p.createVariableDeclarationList([p.createVariableDeclaration(p.getLocalName(mr,!1,!0))],w.kind===303?0:1));if(e.setOriginalNode(se,mr),ba(mr),Jn(mr))return mr.kind===259?e.setSourceMapRange(se.declarationList,mr):e.setSourceMapRange(se,mr),e.setCommentRange(se,mr),e.addEmitFlags(se,4195328),oe.push(se),!0;var Be=p.createMergeDeclarationMarker(se);return e.setEmitFlags(Be,4195840),oe.push(Be),!1}function en(oe){if(!rn(oe))return p.createNotEmittedStatement(oe);e.Debug.assertNode(oe.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),co();var mr=[],se=2,Be=Wn(mr,oe);Be&&(S!==e.ModuleKind.System||w!==k)&&(se|=512);var er=Hi(oe),hr=to(oe),qr=e.hasSyntacticModifier(oe,1)?p.getExternalModuleOrNamespaceExportName(x,oe,!1,!0):p.getLocalName(oe,!1,!0),Dt=p.createLogicalOr(qr,p.createAssignment(qr,p.createObjectLiteralExpression()));if(sa(oe)){var Jt=p.getLocalName(oe,!1,!0);Dt=p.createAssignment(Jt,Dt)}var Sn=p.createExpressionStatement(p.createCallExpression(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,er)],void 0,St(oe,hr)),void 0,[Dt]));return e.setOriginalNode(Sn,oe),Be&&(e.setSyntheticLeadingComments(Sn,void 0),e.setSyntheticTrailingComments(Sn,void 0)),e.setTextRange(Sn,oe),e.addEmitFlags(Sn,se),mr.push(Sn),mr.push(p.createEndOfDeclarationMarker(oe)),mr}function St(oe,mr){var se=x,Be=M,er=Z;x=mr,M=oe,Z=void 0;var hr=[];H();var qr,Dt;if(oe.body)if(oe.body.kind===261)y(oe.body,function(xa){return e.addRange(hr,e.visitNodes(xa.statements,te,e.isStatement))}),qr=oe.body.statements,Dt=oe.body;else{var Jt=en(oe.body);Jt&&(e.isArray(Jt)?e.addRange(hr,Jt):hr.push(Jt));var Sn=Ut(oe).body;qr=e.moveRangePos(Sn.statements,-1)}e.insertStatementsAfterStandardPrologue(hr,v()),x=se,M=Be,Z=er;var ta=p.createBlock(e.setTextRange(p.createNodeArray(hr),qr),!0);return e.setTextRange(ta,Dt),(!oe.body||oe.body.kind!==261)&&e.setEmitFlags(ta,e.getEmitFlags(ta)|1536),ta}function Ut(oe){if(oe.body.kind===260){var mr=Ut(oe.body);return mr||oe.body}}function qt(oe){if(!oe.importClause)return oe;if(!oe.importClause.isTypeOnly){var mr=e.visitNode(oe.importClause,Pn,e.isImportClause);return mr||ie.importsNotUsedAsValues===1||ie.importsNotUsedAsValues===2?p.updateImportDeclaration(oe,void 0,void 0,mr,oe.moduleSpecifier,oe.assertClause):void 0}}function Pn(oe){e.Debug.assert(!oe.isTypeOnly);var mr=Oe(oe)?oe.name:void 0,se=e.visitNode(oe.namedBindings,dn,e.isNamedImportBindings);return mr||se?p.updateImportClause(oe,!1,mr,se):void 0}function dn(oe){if(oe.kind===267)return Oe(oe)?oe:void 0;var mr=ie.preserveValueImports&&(ie.importsNotUsedAsValues===1||ie.importsNotUsedAsValues===2),se=e.visitNodes(oe.elements,oa,e.isImportSpecifier);return mr||e.some(se)?p.updateNamedImports(oe,se):void 0}function oa(oe){return!oe.isTypeOnly&&Oe(oe)?oe:void 0}function pt(oe){return q.isValueAliasDeclaration(oe)?e.visitEachChild(oe,C,a):void 0}function _t(oe){if(!oe.isTypeOnly){if(!oe.exportClause||e.isNamespaceExport(oe.exportClause))return oe;var mr=!!oe.moduleSpecifier&&(ie.importsNotUsedAsValues===1||ie.importsNotUsedAsValues===2),se=e.visitNode(oe.exportClause,function(Be){return rt(Be,mr)},e.isNamedExportBindings);return se?p.updateExportDeclaration(oe,void 0,void 0,oe.isTypeOnly,se,oe.moduleSpecifier,oe.assertClause):void 0}}function Pt(oe,mr){var se=e.visitNodes(oe.elements,Cn,e.isExportSpecifier);return mr||e.some(se)?p.updateNamedExports(oe,se):void 0}function It(oe){return p.updateNamespaceExport(oe,e.visitNode(oe.name,C,e.isIdentifier))}function rt(oe,mr){return e.isNamespaceExport(oe)?It(oe):Pt(oe,mr)}function Cn(oe){return!oe.isTypeOnly&&q.isValueAliasDeclaration(oe)?oe:void 0}function Qn(oe){return Oe(oe)||!e.isExternalModule(k)&&q.isTopLevelValueImportEqualsWithEntityName(oe)}function Ra(oe){if(!oe.isTypeOnly){if(e.isExternalModuleImportEqualsDeclaration(oe)){var mr=Oe(oe);return!mr&&ie.importsNotUsedAsValues===1?e.setOriginalNode(e.setTextRange(p.createImportDeclaration(void 0,void 0,void 0,oe.moduleReference.expression,void 0),oe),oe):mr?e.visitEachChild(oe,C,a):void 0}if(!!Qn(oe)){var se=e.createExpressionFromEntityName(p,oe.moduleReference);return e.setEmitFlags(se,3584),va(oe)||!Ci(oe)?e.setOriginalNode(e.setTextRange(p.createVariableStatement(e.visitNodes(oe.modifiers,Se,e.isModifier),p.createVariableDeclarationList([e.setOriginalNode(p.createVariableDeclaration(oe.name,void 0,void 0,se),oe)])),oe),oe):e.setOriginalNode(Pi(oe.name,se,oe),oe)}}}function Ci(oe){return M!==void 0&&e.hasSyntacticModifier(oe,1)}function _i(oe){return M===void 0&&e.hasSyntacticModifier(oe,1)}function va(oe){return _i(oe)&&!e.hasSyntacticModifier(oe,512)}function yi(oe){return _i(oe)&&e.hasSyntacticModifier(oe,512)}function ro(oe){return p.createExpressionStatement(oe)}function Ka(oe,mr){var se=p.createAssignment(p.getExternalModuleOrNamespaceExportName(x,mr,!1,!0),p.getLocalName(mr));e.setSourceMapRange(se,e.createRange(mr.name?mr.name.pos:mr.pos,mr.end));var Be=p.createExpressionStatement(se);e.setSourceMapRange(Be,e.createRange(-1,mr.end)),oe.push(Be)}function Pi(oe,mr,se){return e.setTextRange(p.createExpressionStatement(p.createAssignment(p.getNamespaceMemberName(x,oe,!1,!0),mr)),se)}function io(oe,mr,se){return e.setTextRange(p.createAssignment(ji(oe),mr),se)}function ji(oe){return p.getNamespaceMemberName(x,oe,!1,!0)}function Hi(oe){var mr=p.getGeneratedNameForNode(oe);return e.setSourceMapRange(mr,oe.name),mr}function to(oe){return p.getGeneratedNameForNode(oe)}function No(oe){if(q.getNodeCheckFlags(oe)&16777216){Yo();var mr=p.createUniqueName(oe.name&&!e.isGeneratedIdentifier(oe.name)?e.idText(oe.name):"default");return Y[e.getOriginalNodeId(oe)]=mr,A(mr),mr}}function lo(oe){return p.createPropertyAccessExpression(p.getDeclarationName(oe),"prototype")}function Lo(oe,mr){return e.isStatic(mr)?p.getDeclarationName(oe):lo(oe)}function Ha(){(R&8)===0&&(R|=8,a.enableSubstitution(79))}function Yo(){(R&1)===0&&(R|=1,a.enableSubstitution(79),Y=[])}function co(){(R&2)===0&&(R|=2,a.enableSubstitution(79),a.enableSubstitution(295),a.enableEmitNotification(260))}function za(oe){return e.getOriginalNode(oe).kind===260}function hi(oe){return e.getOriginalNode(oe).kind===259}function Zi(oe,mr,se){var Be=U,er=k;e.isSourceFile(mr)&&(k=mr),R&2&&za(mr)&&(U|=2),R&8&&hi(mr)&&(U|=8),B(oe,mr,se),U=Be,k=er}function Po(oe,mr){return mr=J(oe,mr),oe===1?Fo(mr):e.isShorthandPropertyAssignment(mr)?Mo(mr):mr}function Mo(oe){if(R&2){var mr=oe.name,se=Cs(mr);if(se){if(oe.objectAssignmentInitializer){var Be=p.createAssignment(se,oe.objectAssignmentInitializer);return e.setTextRange(p.createPropertyAssignment(mr,Be),oe)}return e.setTextRange(p.createPropertyAssignment(mr,se),oe)}}return oe}function Fo(oe){switch(oe.kind){case 79:return zo(oe);case 205:return yr(oe);case 206:return dt(oe)}return oe}function zo(oe){return Es(oe)||Cs(oe)||oe}function Es(oe){if(R&1&&q.getNodeCheckFlags(oe)&33554432){var mr=q.getReferencedValueDeclaration(oe);if(mr){var se=Y[mr.id];if(se){var Be=p.cloneNode(se);return e.setSourceMapRange(Be,oe),e.setCommentRange(Be,oe),Be}}}}function Cs(oe){if(R&U&&!e.isGeneratedIdentifier(oe)&&!e.isLocalName(oe)){var mr=q.getReferencedExportContainer(oe,!1);if(mr&&mr.kind!==303){var se=U&2&&mr.kind===260||U&8&&mr.kind===259;if(se)return e.setTextRange(p.createPropertyAccessExpression(p.getGeneratedNameForNode(mr),oe),oe)}}}function yr(oe){return tn(oe)}function dt(oe){return tn(oe)}function tn(oe){var mr=Un(oe);if(mr!==void 0){e.setConstantValue(oe,mr);var se=typeof mr=="string"?p.createStringLiteral(mr):p.createNumericLiteral(mr);if(!ie.removeComments){var Be=e.getOriginalNode(oe,e.isAccessExpression),er=e.isPropertyAccessExpression(Be)?e.declarationNameToString(Be.name):e.getTextOfNode(Be.argumentExpression);e.addSyntheticTrailingComment(se,3," ".concat(er," "))}return se}return oe}function Un(oe){if(!ie.isolatedModules)return e.isPropertyAccessExpression(oe)||e.isElementAccessExpression(oe)?q.getConstantValue(oe):void 0}function Oe(oe){return ie.preserveValueImports?q.isValueAliasDeclaration(oe):q.isReferencedAliasDeclaration(oe)}}e.transformTypeScript=d})(gr||(gr={}));var gr;(function(e){var n;(function(h){h[h.ClassAliases=1]="ClassAliases",h[h.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference"})(n||(n={})),function(h){h.Field="f",h.Method="m",h.Accessor="a"}(e.PrivateIdentifierKind||(e.PrivateIdentifierKind={}));var f;(function(h){h[h.None=0]="None",h[h.ClassWasDecorated=1]="ClassWasDecorated",h[h.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",h[h.NeedsClassSuperReference=4]="NeedsClassSuperReference",h[h.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField"})(f||(f={}));function d(h){var v=h.factory,A=h.hoistVariableDeclaration,q=h.endLexicalEnvironment,ie=h.startLexicalEnvironment,b=h.resumeLexicalEnvironment,P=h.addBlockScopedVariable,S=h.getEmitResolver(),B=h.getCompilerOptions(),J=e.getEmitScriptTarget(B),k=e.getUseDefineForClassFields(B),M=J<99,x=(J<=8||!k)&&J>=2,w=J<=8||!k,K=h.onSubstituteNode;h.onSubstituteNode=ze;var Z=h.onEmitNode;h.onEmitNode=Jr;var ne,R,Y,U,$=[],T=new e.Map,I,y,D;return e.chainBundle(h,C);function C(ee){var Ne=h.getCompilerOptions();if(ee.isDeclarationFile||k&&e.getEmitScriptTarget(Ne)===99)return ee;var me=e.visitEachChild(ee,g,h);return e.addEmitHelpers(me,h.readEmitHelpers()),me}function m(ee,Ne){if(ee.transformFlags&8388608)switch(ee.kind){case 225:case 256:return Xe(ee);case 166:return V(ee);case 236:return Se(ee);case 80:return ue(ee);case 169:return Cr(ee)}if(ee.transformFlags&8388608||ee.transformFlags&33554432&&x&&D&&I)switch(ee.kind){case 218:case 219:return Me(ee,Ne);case 220:return Le(ee,Ne);case 207:return ve(ee);case 209:return Ve(ee);case 205:return ge(ee);case 206:return ke(ee);case 237:return Ge(ee);case 241:return Ie(ee);case 255:case 212:case 170:case 168:case 171:case 172:{var me=D;D=void 0;var Ze=e.visitEachChild(ee,g,h);return D=me,Ze}}return e.visitEachChild(ee,g,h)}function u(ee){return m(ee,!0)}function g(ee){return m(ee,!1)}function F(ee){switch(ee.kind){case 290:return e.visitEachChild(ee,F,h);case 227:return Lr(ee)}return g(ee)}function te(ee){switch(ee.kind){case 204:case 203:return We(ee);default:return g(ee)}}function ue(ee){return!M||e.isStatement(ee.parent)?ee:e.setOriginalNode(v.createIdentifier(""),ee)}function X(ee){if(!M)return ee;var Ne=ee.left;e.Debug.assertNode(Ne,e.isPrivateIdentifier),e.Debug.assert(ee.operatorToken.kind===101);var me=or(Ne);if(me){var Ze=e.visitNode(ee.right,g,e.isExpression);return e.setOriginalNode(h.getEmitHelperFactory().createClassPrivateFieldInHelper(me.brandCheckIdentifier,Ze),ee)}return e.visitEachChild(ee,g,h)}function j(ee){switch(ee.kind){case 170:return;case 171:case 172:case 168:return O(ee);case 166:return V(ee);case 161:return Ce(ee);case 233:return ee;default:return g(ee)}}function Se(ee){var Ne=U;U=[];var me=e.visitEachChild(ee,g,h),Ze=e.some(U)?Gt([me],U,!0):me;return U=Ne,Ze}function Ce(ee){var Ne=e.visitEachChild(ee,g,h);if(e.some(Y)){var me=Y;me.push(Ne.expression),Y=[],Ne=v.updateComputedPropertyName(Ne,v.inlineExpressions(me))}return Ne}function O(ee){if(e.Debug.assert(!e.some(ee.decorators)),!M||!e.isPrivateIdentifier(ee.name))return e.visitEachChild(ee,j,h);var Ne=or(ee.name);if(e.Debug.assert(Ne,"Undeclared private name for property declaration."),!Ne.isValid)return ee;var me=Q(ee);me&&ir().push(v.createAssignment(me,v.createFunctionExpression(e.filter(ee.modifiers,function(Ze){return!e.isStaticModifier(Ze)}),ee.asteriskToken,me,void 0,e.visitParameterList(ee.parameters,j,h),void 0,e.visitFunctionBody(ee.body,j,h))))}function Q(ee){e.Debug.assert(e.isPrivateIdentifier(ee.name));var Ne=or(ee.name);if(e.Debug.assert(Ne,"Undeclared private name for property declaration."),Ne.kind==="m")return Ne.methodName;if(Ne.kind==="a"){if(e.isGetAccessor(ee))return Ne.getterName;if(e.isSetAccessor(ee))return Ne.setterName}}function V(ee){if(e.Debug.assert(!e.some(ee.decorators)),e.isPrivateIdentifier(ee.name)){if(!M)return v.updatePropertyDeclaration(ee,void 0,e.visitNodes(ee.modifiers,g,e.isModifier),ee.name,void 0,void 0,void 0);var Ne=or(ee.name);if(e.Debug.assert(Ne,"Undeclared private name for property declaration."),!Ne.isValid)return ee}var me=Rt(ee.name,!!ee.initializer||k);me&&!e.isSimpleInlineableExpression(me)&&ir().push(me)}function z(ee,Ne){return Te(ee,e.visitNode(Ne,g,e.isExpression))}function Te(ee,Ne){switch(e.setCommentRange(Ne,e.moveRangePos(Ne,-1)),ee.kind){case"a":return h.getEmitHelperFactory().createClassPrivateFieldGetHelper(Ne,ee.brandCheckIdentifier,ee.kind,ee.getterName);case"m":return h.getEmitHelperFactory().createClassPrivateFieldGetHelper(Ne,ee.brandCheckIdentifier,ee.kind,ee.methodName);case"f":return h.getEmitHelperFactory().createClassPrivateFieldGetHelper(Ne,ee.brandCheckIdentifier,ee.kind,ee.variableName);default:e.Debug.assertNever(ee,"Unknown private element type")}}function ge(ee){if(M&&e.isPrivateIdentifier(ee.name)){var Ne=or(ee.name);if(Ne)return e.setTextRange(e.setOriginalNode(z(Ne,ee.expression),ee),ee)}if(x&&e.isSuperProperty(ee)&&e.isIdentifier(ee.name)&&D&&I){var me=I.classConstructor,Ze=I.superClassReference,xr=I.facts;if(xr&1)return pr(ee);if(me&&Ze){var fr=v.createReflectGetCall(Ze,v.createStringLiteralFromNode(ee.name),me);return e.setOriginalNode(fr,ee.expression),e.setTextRange(fr,ee.expression),fr}}return e.visitEachChild(ee,g,h)}function ke(ee){if(x&&e.isSuperProperty(ee)&&D&&I){var Ne=I.classConstructor,me=I.superClassReference,Ze=I.facts;if(Ze&1)return pr(ee);if(Ne&&me){var xr=v.createReflectGetCall(me,e.visitNode(ee.argumentExpression,g,e.isExpression),Ne);return e.setOriginalNode(xr,ee.expression),e.setTextRange(xr,ee.expression),xr}}return e.visitEachChild(ee,g,h)}function Me(ee,Ne){if(ee.operator===45||ee.operator===46){if(M&&e.isPrivateIdentifierPropertyAccessExpression(ee.operand)){var me=void 0;if(me=or(ee.operand.name)){var Ze=e.visitNode(ee.operand.expression,g,e.isExpression),xr=he(Ze),fr=xr.readExpression,dr=xr.initializeExpression,et=z(me,fr),yt=e.isPrefixUnaryExpression(ee)||Ne?void 0:v.createTempVariable(A);return et=e.expandPreOrPostfixIncrementOrDecrementExpression(v,ee,et,A,yt),et=qe(me,dr||fr,et,63),e.setOriginalNode(et,ee),e.setTextRange(et,ee),yt&&(et=v.createComma(et,yt),e.setTextRange(et,ee)),et}}else if(x&&e.isSuperProperty(ee.operand)&&D&&I){var Wr=I.classConstructor,tr=I.superClassReference,Ir=I.facts;if(Ir&1){var kr=pr(ee.operand);return e.isPrefixUnaryExpression(ee)?v.updatePrefixUnaryExpression(ee,kr):v.updatePostfixUnaryExpression(ee,kr)}if(Wr&&tr){var zr=void 0,gt=void 0;if(e.isPropertyAccessExpression(ee.operand)?e.isIdentifier(ee.operand.name)&&(gt=zr=v.createStringLiteralFromNode(ee.operand.name)):e.isSimpleInlineableExpression(ee.operand.argumentExpression)?gt=zr=ee.operand.argumentExpression:(gt=v.createTempVariable(A),zr=v.createAssignment(gt,e.visitNode(ee.operand.argumentExpression,g,e.isExpression))),zr&>){var et=v.createReflectGetCall(tr,gt,Wr);e.setTextRange(et,ee.operand);var yt=Ne?void 0:v.createTempVariable(A);return et=e.expandPreOrPostfixIncrementOrDecrementExpression(v,ee,et,A,yt),et=v.createReflectSetCall(tr,zr,et,Wr),e.setOriginalNode(et,ee),e.setTextRange(et,ee),yt&&(et=v.createComma(et,yt),e.setTextRange(et,ee)),et}}}}return e.visitEachChild(ee,g,h)}function Ie(ee){return v.updateForStatement(ee,e.visitNode(ee.initializer,u,e.isForInitializer),e.visitNode(ee.condition,g,e.isExpression),e.visitNode(ee.incrementor,u,e.isExpression),e.visitIterationBody(ee.statement,g,h))}function Ge(ee){return v.updateExpressionStatement(ee,e.visitNode(ee.expression,u,e.isExpression))}function he(ee){var Ne=e.nodeIsSynthesized(ee)?ee:v.cloneNode(ee);if(e.isSimpleInlineableExpression(ee))return{readExpression:Ne,initializeExpression:void 0};var me=v.createTempVariable(A),Ze=v.createAssignment(me,Ne);return{readExpression:me,initializeExpression:Ze}}function ve(ee){if(M&&e.isPrivateIdentifierPropertyAccessExpression(ee.expression)){var Ne=v.createCallBinding(ee.expression,A,J),me=Ne.thisArg,Ze=Ne.target;return e.isCallChain(ee)?v.updateCallChain(ee,v.createPropertyAccessChain(e.visitNode(Ze,g),ee.questionDotToken,"call"),void 0,void 0,Gt([e.visitNode(me,g,e.isExpression)],e.visitNodes(ee.arguments,g,e.isExpression),!0)):v.updateCallExpression(ee,v.createPropertyAccessExpression(e.visitNode(Ze,g),"call"),void 0,Gt([e.visitNode(me,g,e.isExpression)],e.visitNodes(ee.arguments,g,e.isExpression),!0))}if(x&&e.isSuperProperty(ee.expression)&&D&&(I==null?void 0:I.classConstructor)){var xr=v.createFunctionCallCall(e.visitNode(ee.expression,g,e.isExpression),I.classConstructor,e.visitNodes(ee.arguments,g,e.isExpression));return e.setOriginalNode(xr,ee),e.setTextRange(xr,ee),xr}return e.visitEachChild(ee,g,h)}function Ve(ee){if(M&&e.isPrivateIdentifierPropertyAccessExpression(ee.tag)){var Ne=v.createCallBinding(ee.tag,A,J),me=Ne.thisArg,Ze=Ne.target;return v.updateTaggedTemplateExpression(ee,v.createCallExpression(v.createPropertyAccessExpression(e.visitNode(Ze,g),"bind"),void 0,[e.visitNode(me,g,e.isExpression)]),void 0,e.visitNode(ee.template,g,e.isTemplateLiteral))}if(x&&e.isSuperProperty(ee.tag)&&D&&(I==null?void 0:I.classConstructor)){var xr=v.createFunctionBindCall(e.visitNode(ee.tag,g,e.isExpression),I.classConstructor,[]);return e.setOriginalNode(xr,ee),e.setTextRange(xr,ee),v.updateTaggedTemplateExpression(ee,xr,void 0,e.visitNode(ee.template,g,e.isTemplateLiteral))}return e.visitEachChild(ee,g,h)}function _e(ee){if(M){I&&T.set(e.getOriginalNodeId(ee),I),ie();var Ne=D;D=ee;var me=e.visitNodes(ee.body.statements,g,e.isStatement);me=v.mergeLexicalEnvironment(me,q()),D=Ne;var Ze=v.createImmediatelyInvokedArrowFunction(me);return e.setOriginalNode(Ze,ee),e.setTextRange(Ze,ee),e.addEmitFlags(Ze,2),Ze}}function Le(ee,Ne){if(e.isDestructuringAssignment(ee)){var me=Y;Y=void 0,ee=v.updateBinaryExpression(ee,e.visitNode(ee.left,te),ee.operatorToken,e.visitNode(ee.right,g));var Ze=e.some(Y)?v.inlineExpressions(e.compact(Gt(Gt([],Y,!0),[ee],!1))):ee;return Y=me,Ze}if(e.isAssignmentExpression(ee)){if(M&&e.isPrivateIdentifierPropertyAccessExpression(ee.left)){var xr=or(ee.left.name);if(xr)return e.setTextRange(e.setOriginalNode(qe(xr,ee.left.expression,ee.right,ee.operatorToken.kind),ee),ee)}else if(x&&e.isSuperProperty(ee.left)&&D&&I){var fr=I.classConstructor,dr=I.superClassReference,et=I.facts;if(et&1)return v.updateBinaryExpression(ee,pr(ee.left),ee.operatorToken,e.visitNode(ee.right,g,e.isExpression));if(fr&&dr){var yt=e.isElementAccessExpression(ee.left)?e.visitNode(ee.left.argumentExpression,g,e.isExpression):e.isIdentifier(ee.left.name)?v.createStringLiteralFromNode(ee.left.name):void 0;if(yt){var Wr=e.visitNode(ee.right,g,e.isExpression);if(e.isCompoundAssignment(ee.operatorToken.kind)){var tr=yt;e.isSimpleInlineableExpression(yt)||(tr=v.createTempVariable(A),yt=v.createAssignment(tr,yt));var Ir=v.createReflectGetCall(dr,tr,fr);e.setOriginalNode(Ir,ee.left),e.setTextRange(Ir,ee.left),Wr=v.createBinaryExpression(Ir,e.getNonAssignmentOperatorForCompoundAssignment(ee.operatorToken.kind),Wr),e.setTextRange(Wr,ee)}var kr=Ne?void 0:v.createTempVariable(A);return kr&&(Wr=v.createAssignment(kr,Wr),e.setTextRange(kr,ee)),Wr=v.createReflectSetCall(dr,yt,Wr,fr),e.setOriginalNode(Wr,ee),e.setTextRange(Wr,ee),kr&&(Wr=v.createComma(Wr,kr),e.setTextRange(Wr,ee)),Wr}}}}return ee.operatorToken.kind===101&&e.isPrivateIdentifier(ee.left)?X(ee):e.visitEachChild(ee,g,h)}function qe(ee,Ne,me,Ze){if(Ne=e.visitNode(Ne,g,e.isExpression),me=e.visitNode(me,g,e.isExpression),e.isCompoundAssignment(Ze)){var xr=he(Ne),fr=xr.readExpression,dr=xr.initializeExpression;Ne=dr||fr,me=v.createBinaryExpression(Te(ee,fr),e.getNonAssignmentOperatorForCompoundAssignment(Ze),me)}switch(e.setCommentRange(Ne,e.moveRangePos(Ne,-1)),ee.kind){case"a":return h.getEmitHelperFactory().createClassPrivateFieldSetHelper(Ne,ee.brandCheckIdentifier,me,ee.kind,ee.setterName);case"m":return h.getEmitHelperFactory().createClassPrivateFieldSetHelper(Ne,ee.brandCheckIdentifier,me,ee.kind,void 0);case"f":return h.getEmitHelperFactory().createClassPrivateFieldSetHelper(Ne,ee.brandCheckIdentifier,me,ee.kind,ee.variableName);default:e.Debug.assertNever(ee,"Unknown private element type")}}function Xe(ee){if(!e.forEach(ee.members,De))return e.visitEachChild(ee,g,h);var Ne=Y;if(Y=void 0,cn(),M){var me=e.getNameOfDeclaration(ee);me&&e.isIdentifier(me)&&(zn().className=e.idText(me));var Ze=Ae(ee);e.some(Ze)&&(zn().weakSetName=sr("instances",Ze[0].name))}var xr=e.isClassDeclaration(ee)?Er(ee):lr(ee);return bn(),Y=Ne,xr}function De(ee){return e.isPropertyDeclaration(ee)||e.isClassStaticBlockDeclaration(ee)||M&&ee.name&&e.isPrivateIdentifier(ee.name)}function Ae(ee){return e.filter(ee.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function Ye(ee){var Ne=0,me=e.getOriginalNode(ee);e.isClassDeclaration(me)&&e.classOrConstructorParameterIsDecorated(me)&&(Ne|=1);for(var Ze=0,xr=ee.members;Ze<xr.length;Ze++){var fr=xr[Ze];!e.isStatic(fr)||(fr.name&&e.isPrivateIdentifier(fr.name)&&M&&(Ne|=2),(e.isPropertyDeclaration(fr)||e.isClassStaticBlockDeclaration(fr))&&(w&&fr.transformFlags&8192&&(Ne|=8,Ne&1||(Ne|=2)),x&&fr.transformFlags&33554432&&(Ne&1||(Ne|=6))))}return Ne}function Lr(ee){var Ne=(I==null?void 0:I.facts)||0;if(Ne&4){var me=v.createTempVariable(A,!0);return In().superClassReference=me,v.updateExpressionWithTypeArguments(ee,v.createAssignment(me,e.visitNode(ee.expression,g,e.isExpression)),void 0)}return e.visitEachChild(ee,g,h)}function Er(ee){var Ne=Ye(ee);Ne&&(In().facts=Ne),Ne&8&&Fr();var me=e.getStaticPropertiesAndClassStaticBlock(ee),Ze;if(Ne&2){var xr=v.createTempVariable(A,!0);In().classConstructor=v.cloneNode(xr),Ze=v.createAssignment(xr,v.getInternalName(ee))}var fr=e.getEffectiveBaseTypeNode(ee),dr=!!(fr&&e.skipOuterExpressions(fr.expression).kind!==104),et=[v.updateClassDeclaration(ee,void 0,ee.modifiers,ee.name,void 0,e.visitNodes(ee.heritageClauses,F,e.isHeritageClause),Or(ee,dr))];return Ze&&ir().unshift(Ze),e.some(Y)&&et.push(v.createExpressionStatement(v.inlineExpressions(Y))),e.some(me)&&vr(et,me,v.getInternalName(ee)),et}function lr(ee){var Ne=Ye(ee);Ne&&(In().facts=Ne),Ne&8&&Fr();var me=!!(Ne&1),Ze=e.getStaticPropertiesAndClassStaticBlock(ee),xr=e.getEffectiveBaseTypeNode(ee),fr=!!(xr&&e.skipOuterExpressions(xr.expression).kind!==104),dr=S.getNodeCheckFlags(ee)&16777216,et;function yt(){var zr=S.getNodeCheckFlags(ee),gt=zr&16777216,vt=zr&524288;return v.createTempVariable(vt?P:A,!!gt)}Ne&2&&(et=yt(),In().classConstructor=v.cloneNode(et));var Wr=v.updateClassExpression(ee,e.visitNodes(ee.decorators,g,e.isDecorator),ee.modifiers,ee.name,void 0,e.visitNodes(ee.heritageClauses,F,e.isHeritageClause),Or(ee,fr)),tr=e.some(Ze,function(zr){return e.isClassStaticBlockDeclaration(zr)||!!zr.initializer||M&&e.isPrivateIdentifier(zr.name)});if(tr||e.some(Y)){if(me)return e.Debug.assertIsDefined(U,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),U&&Y&&e.some(Y)&&U.push(v.createExpressionStatement(v.inlineExpressions(Y))),U&&e.some(Ze)&&vr(U,Ze,v.getInternalName(ee)),et?v.inlineExpressions([v.createAssignment(et,Wr),et]):Wr;var Ir=[];if(et||(et=yt()),dr){Dr();var kr=v.cloneNode(et);kr.autoGenerateFlags&=-9,R[e.getOriginalNodeId(ee)]=kr}return e.setEmitFlags(Wr,65536|e.getEmitFlags(Wr)),Ir.push(e.startOnNewLine(v.createAssignment(et,Wr))),e.addRange(Ir,e.map(Y,e.startOnNewLine)),e.addRange(Ir,de(Ze,et)),Ir.push(e.startOnNewLine(et)),v.inlineExpressions(Ir)}return Wr}function Cr(ee){if(!M)return e.visitEachChild(ee,j,h)}function Or(ee,Ne){if(M){for(var me=0,Ze=ee.members;me<Ze.length;me++){var xr=Ze[me];e.isPrivateIdentifierClassElementDeclaration(xr)&&Rr(xr)}e.some(Ae(ee))&&Ke()}var fr=[],dr=Hr(ee,Ne);return dr&&fr.push(dr),e.addRange(fr,e.visitNodes(ee.members,j,e.isClassElement)),e.setTextRange(v.createNodeArray(fr),ee.members)}function Ke(){var ee=zn().weakSetName;e.Debug.assert(ee,"weakSetName should be set in private identifier environment"),ir().push(v.createAssignment(ee,v.createNewExpression(v.createIdentifier("WeakSet"),void 0,[])))}function Pe(ee){return e.isStatic(ee)||e.hasSyntacticModifier(e.getOriginalNode(ee),128)?!1:k?J<99:e.isInitializedProperty(ee)||M&&e.isPrivateIdentifierClassElementDeclaration(ee)}function Hr(ee,Ne){var me=e.visitNode(e.getFirstConstructorWithBody(ee),g,e.isConstructorDeclaration),Ze=ee.members.filter(Pe);if(!e.some(Ze))return me;var xr=e.visitParameterList(me?me.parameters:void 0,g,h),fr=ur(ee,me,Ne);if(!!fr)return e.startOnNewLine(e.setOriginalNode(e.setTextRange(v.createConstructorDeclaration(void 0,void 0,xr!=null?xr:[],fr),me||ee),me))}function ur(ee,Ne,me){var Ze=e.getProperties(ee,!1,!1);k||(Ze=e.filter(Ze,function(tr){return!!tr.initializer||e.isPrivateIdentifier(tr.name)}));var xr=Ae(ee),fr=e.some(Ze)||e.some(xr);if(!Ne&&!fr)return e.visitFunctionBody(void 0,g,h);b();var dr=0,et=[];if(!Ne&&me&&et.push(v.createExpressionStatement(v.createCallExpression(v.createSuper(),void 0,[v.createSpreadElement(v.createIdentifier("arguments"))]))),Ne&&(dr=e.addPrologueDirectivesAndInitialSuperCall(v,Ne,et,g)),Ne!=null&&Ne.body){var yt=e.findIndex(Ne.body.statements,function(tr){return!e.isParameterPropertyDeclaration(e.getOriginalNode(tr),Ne)},dr);yt===-1&&(yt=Ne.body.statements.length),yt>dr&&(k||e.addRange(et,e.visitNodes(Ne.body.statements,g,e.isStatement,dr,yt-dr)),dr=yt)}var Wr=v.createThis();return He(et,xr,Wr),vr(et,Ze,Wr),Ne&&e.addRange(et,e.visitNodes(Ne.body.statements,g,e.isStatement,dr)),et=v.mergeLexicalEnvironment(et,q()),e.setTextRange(v.createBlock(e.setTextRange(v.createNodeArray(et),Ne?Ne.body.statements:ee.members),!0),Ne?Ne.body:void 0)}function vr(ee,Ne,me){for(var Ze=0,xr=Ne;Ze<xr.length;Ze++){var fr=xr[Ze],dr=e.isClassStaticBlockDeclaration(fr)?_e(fr):Fe(fr,me);if(!!dr){var et=v.createExpressionStatement(dr);e.setSourceMapRange(et,e.moveRangePastModifiers(fr)),e.setCommentRange(et,fr),e.setOriginalNode(et,fr),ee.push(et)}}}function de(ee,Ne){for(var me=[],Ze=0,xr=ee;Ze<xr.length;Ze++){var fr=xr[Ze],dr=e.isClassStaticBlockDeclaration(fr)?_e(fr):Fe(fr,Ne);!dr||(e.startOnNewLine(dr),e.setSourceMapRange(dr,e.moveRangePastModifiers(fr)),e.setCommentRange(dr,fr),e.setOriginalNode(dr,fr),me.push(dr))}return me}function Fe(ee,Ne){var me=D,Ze=$e(ee,Ne);return Ze&&e.hasStaticModifier(ee)&&(I==null?void 0:I.facts)&&(e.setOriginalNode(Ze,ee),e.addEmitFlags(Ze,2),T.set(e.getOriginalNodeId(Ze),I)),D=me,Ze}function $e(ee,Ne){var me,Ze=!k,xr=e.isComputedPropertyName(ee.name)&&!e.isSimpleInlineableExpression(ee.name.expression)?v.updateComputedPropertyName(ee.name,v.getGeneratedNameForNode(ee.name)):ee.name;if(e.hasStaticModifier(ee)&&(D=ee),M&&e.isPrivateIdentifier(xr)){var fr=or(xr);if(fr)return fr.kind==="f"?fr.isStatic?a(fr.variableName,e.visitNode(ee.initializer,g,e.isExpression)):p(Ne,e.visitNode(ee.initializer,g,e.isExpression),fr.brandCheckIdentifier):void 0;e.Debug.fail("Undeclared private name for property declaration.")}if(!((e.isPrivateIdentifier(xr)||e.hasStaticModifier(ee))&&!ee.initializer)){var dr=e.getOriginalNode(ee);if(!e.hasSyntacticModifier(dr,128)){var et=ee.initializer||Ze?(me=e.visitNode(ee.initializer,g,e.isExpression))!==null&&me!==void 0?me:v.createVoidZero():e.isParameterPropertyDeclaration(dr,dr.parent)&&e.isIdentifier(xr)?xr:v.createVoidZero();if(Ze||e.isPrivateIdentifier(xr)){var yt=e.createMemberAccessForPropertyName(v,Ne,xr,xr);return v.createAssignment(yt,et)}else{var Wr=e.isComputedPropertyName(xr)?xr.expression:e.isIdentifier(xr)?v.createStringLiteral(e.unescapeLeadingUnderscores(xr.escapedText)):xr,tr=v.createPropertyDescriptor({value:et,configurable:!0,writable:!0,enumerable:!0});return v.createObjectDefinePropertyCall(Ne,Wr,tr)}}}}function Dr(){(ne&1)===0&&(ne|=1,h.enableSubstitution(79),R=[])}function Fr(){(ne&2)===0&&(ne|=2,h.enableSubstitution(108),h.enableEmitNotification(255),h.enableEmitNotification(212),h.enableEmitNotification(170),h.enableEmitNotification(171),h.enableEmitNotification(172),h.enableEmitNotification(168),h.enableEmitNotification(166),h.enableEmitNotification(161))}function He(ee,Ne,me){if(!(!M||!e.some(Ne))){var Ze=zn().weakSetName;e.Debug.assert(Ze,"weakSetName should be set in private identifier environment"),ee.push(v.createExpressionStatement(N(me,Ze)))}}function pr(ee){return e.isPropertyAccessExpression(ee)?v.updatePropertyAccessExpression(ee,v.createVoidZero(),ee.name):v.updateElementAccessExpression(ee,v.createVoidZero(),e.visitNode(ee.argumentExpression,g,e.isExpression))}function Jr(ee,Ne,me){var Ze=e.getOriginalNode(Ne);if(Ze.id){var xr=T.get(Ze.id);if(xr){var fr=I,dr=y;I=xr,y=xr,Z(ee,Ne,me),I=fr,y=dr;return}}switch(Ne.kind){case 212:if(e.isArrowFunction(Ze)||e.getEmitFlags(Ne)&262144)break;case 255:case 170:{var fr=I,dr=y;I=void 0,y=void 0,Z(ee,Ne,me),I=fr,y=dr;return}case 171:case 172:case 168:case 166:{var fr=I,dr=y;y=I,I=void 0,Z(ee,Ne,me),I=fr,y=dr;return}case 161:{var fr=I,dr=y;I=y,y=void 0,Z(ee,Ne,me),I=fr,y=dr;return}}Z(ee,Ne,me)}function ze(ee,Ne){return Ne=K(ee,Ne),ee===1?Ar(Ne):Ne}function Ar(ee){switch(ee.kind){case 79:return lt(ee);case 108:return Yr(ee)}return ee}function Yr(ee){if(ne&2&&I){var Ne=I.facts,me=I.classConstructor;if(Ne&1)return v.createParenthesizedExpression(v.createVoidZero());if(me)return e.setTextRange(e.setOriginalNode(v.cloneNode(me),ee),ee)}return ee}function lt(ee){return tt(ee)||ee}function tt(ee){if(ne&1&&S.getNodeCheckFlags(ee)&33554432){var Ne=S.getReferencedValueDeclaration(ee);if(Ne){var me=R[Ne.id];if(me){var Ze=v.cloneNode(me);return e.setSourceMapRange(Ze,ee),e.setCommentRange(Ze,ee),Ze}}}}function Rt(ee,Ne){if(e.isComputedPropertyName(ee)){var me=e.visitNode(ee.expression,g,e.isExpression),Ze=e.skipPartiallyEmittedExpressions(me),xr=e.isSimpleInlineableExpression(Ze),fr=e.isAssignmentExpression(Ze)&&e.isGeneratedIdentifier(Ze.left);if(!fr&&!xr&&Ne){var dr=v.getGeneratedNameForNode(ee);return S.getNodeCheckFlags(ee)&524288?P(dr):A(dr),v.createAssignment(dr,me)}return xr||e.isIdentifier(Ze)?void 0:me}}function cn(){$.push(I),I=void 0}function bn(){I=$.pop()}function In(){return I||(I={facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0})}function zn(){var ee=In();return ee.privateIdentifierEnvironment||(ee.privateIdentifierEnvironment={className:"",identifiers:new e.Map}),ee.privateIdentifierEnvironment}function ir(){return Y||(Y=[])}function Rr(ee){var Ne,me=e.getTextOfPropertyName(ee.name),Ze=In(),xr=Ze.classConstructor,fr=zn(),dr=fr.weakSetName,et=[],yt=ee.name.escapedText,Wr=fr.identifiers.get(yt),tr=!H(ee.name)&&Wr===void 0;if(e.hasStaticModifier(ee))if(e.Debug.assert(xr,"weakSetName should be set in private identifier environment"),e.isPropertyDeclaration(ee)){var Ir=ye(me,ee);fr.identifiers.set(yt,{kind:"f",variableName:Ir,brandCheckIdentifier:xr,isStatic:!0,isValid:tr})}else if(e.isMethodDeclaration(ee)){var kr=ye(me,ee);fr.identifiers.set(yt,{kind:"m",methodName:kr,brandCheckIdentifier:xr,isStatic:!0,isValid:tr})}else if(e.isGetAccessorDeclaration(ee)){var zr=ye(me+"_get",ee);(Wr==null?void 0:Wr.kind)==="a"&&Wr.isStatic&&!Wr.getterName?Wr.getterName=zr:fr.identifiers.set(yt,{kind:"a",getterName:zr,setterName:void 0,brandCheckIdentifier:xr,isStatic:!0,isValid:tr})}else if(e.isSetAccessorDeclaration(ee)){var gt=ye(me+"_set",ee);(Wr==null?void 0:Wr.kind)==="a"&&Wr.isStatic&&!Wr.setterName?Wr.setterName=gt:fr.identifiers.set(yt,{kind:"a",getterName:void 0,setterName:gt,brandCheckIdentifier:xr,isStatic:!0,isValid:tr})}else e.Debug.assertNever(ee,"Unknown class element type.");else if(e.isPropertyDeclaration(ee)){var vt=ye(me,ee);fr.identifiers.set(yt,{kind:"f",brandCheckIdentifier:vt,isStatic:!1,variableName:void 0,isValid:tr}),et.push(v.createAssignment(vt,v.createNewExpression(v.createIdentifier("WeakMap"),void 0,[])))}else if(e.isMethodDeclaration(ee))e.Debug.assert(dr,"weakSetName should be set in private identifier environment"),fr.identifiers.set(yt,{kind:"m",methodName:ye(me,ee),brandCheckIdentifier:dr,isStatic:!1,isValid:tr});else if(e.isAccessor(ee))if(e.Debug.assert(dr,"weakSetName should be set in private identifier environment"),e.isGetAccessor(ee)){var zr=ye(me+"_get",ee);(Wr==null?void 0:Wr.kind)==="a"&&!Wr.isStatic&&!Wr.getterName?Wr.getterName=zr:fr.identifiers.set(yt,{kind:"a",getterName:zr,setterName:void 0,brandCheckIdentifier:dr,isStatic:!1,isValid:tr})}else{var gt=ye(me+"_set",ee);(Wr==null?void 0:Wr.kind)==="a"&&!Wr.isStatic&&!Wr.setterName?Wr.setterName=gt:fr.identifiers.set(yt,{kind:"a",getterName:void 0,setterName:gt,brandCheckIdentifier:dr,isStatic:!1,isValid:tr})}else e.Debug.assertNever(ee,"Unknown class element type.");(Ne=ir()).push.apply(Ne,et)}function sr(ee,Ne){var me=zn().className,Ze=me?"_".concat(me):"",xr=v.createUniqueName("".concat(Ze,"_").concat(ee),16);return S.getNodeCheckFlags(Ne)&524288?P(xr):A(xr),xr}function ye(ee,Ne){return sr(ee.substring(1),Ne.name)}function or(ee){var Ne;if(I!=null&&I.privateIdentifierEnvironment){var me=I.privateIdentifierEnvironment.identifiers.get(ee.escapedText);if(me)return me}for(var Ze=$.length-1;Ze>=0;--Ze){var xr=$[Ze];if(!!xr){var me=(Ne=xr.privateIdentifierEnvironment)===null||Ne===void 0?void 0:Ne.identifiers.get(ee.escapedText);if(me)return me}}}function fe(ee){var Ne=v.getGeneratedNameForNode(ee),me=or(ee.name);if(!me)return e.visitEachChild(ee,g,h);var Ze=ee.expression;return(e.isThisProperty(ee)||e.isSuperProperty(ee)||!e.isSimpleCopiableExpression(ee.expression))&&(Ze=v.createTempVariable(A,!0),ir().push(v.createBinaryExpression(Ze,63,e.visitNode(ee.expression,g,e.isExpression)))),v.createAssignmentTargetWrapper(Ne,qe(me,Ze,Ne,63))}function je(ee){var Ne=e.getTargetOfBindingOrAssignmentElement(ee);if(Ne){var me=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(Ne))me=fe(Ne);else if(x&&e.isSuperProperty(Ne)&&D&&I){var Ze=I.classConstructor,xr=I.superClassReference,fr=I.facts;if(fr&1)me=pr(Ne);else if(Ze&&xr){var dr=e.isElementAccessExpression(Ne)?e.visitNode(Ne.argumentExpression,g,e.isExpression):e.isIdentifier(Ne.name)?v.createStringLiteralFromNode(Ne.name):void 0;if(dr){var et=v.createTempVariable(void 0);me=v.createAssignmentTargetWrapper(et,v.createReflectSetCall(xr,dr,et,Ze))}}}if(me)return e.isAssignmentExpression(ee)?v.updateBinaryExpression(ee,me,ee.operatorToken,e.visitNode(ee.right,g,e.isExpression)):e.isSpreadElement(ee)?v.updateSpreadElement(ee,me):me}return e.visitNode(ee,te)}function Ee(ee){if(e.isObjectBindingOrAssignmentElement(ee)&&!e.isShorthandPropertyAssignment(ee)){var Ne=e.getTargetOfBindingOrAssignmentElement(ee),me=void 0;if(Ne){if(e.isPrivateIdentifierPropertyAccessExpression(Ne))me=fe(Ne);else if(x&&e.isSuperProperty(Ne)&&D&&I){var Ze=I.classConstructor,xr=I.superClassReference,fr=I.facts;if(fr&1)me=pr(Ne);else if(Ze&&xr){var dr=e.isElementAccessExpression(Ne)?e.visitNode(Ne.argumentExpression,g,e.isExpression):e.isIdentifier(Ne.name)?v.createStringLiteralFromNode(Ne.name):void 0;if(dr){var et=v.createTempVariable(void 0);me=v.createAssignmentTargetWrapper(et,v.createReflectSetCall(xr,dr,et,Ze))}}}}if(e.isPropertyAssignment(ee)){var yt=e.getInitializerOfBindingOrAssignmentElement(ee);return v.updatePropertyAssignment(ee,e.visitNode(ee.name,g,e.isPropertyName),me?yt?v.createAssignment(me,e.visitNode(yt,g)):me:e.visitNode(ee.initializer,te,e.isExpression))}if(e.isSpreadAssignment(ee))return v.updateSpreadAssignment(ee,me||e.visitNode(ee.expression,te,e.isExpression));e.Debug.assert(me===void 0,"Should not have generated a wrapped target")}return e.visitNode(ee,g)}function We(ee){return e.isArrayLiteralExpression(ee)?v.updateArrayLiteralExpression(ee,e.visitNodes(ee.elements,je,e.isExpression)):v.updateObjectLiteralExpression(ee,e.visitNodes(ee.properties,Ee,e.isObjectLiteralElementLike))}}e.transformClassFields=d;function a(h,v){return e.factory.createAssignment(h,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",v||e.factory.createVoidZero())]))}function p(h,v,A){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(A,"set"),void 0,[h,v||e.factory.createVoidZero()])}function N(h,v){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(v,"add"),void 0,[h])}function H(h){return h.escapedText==="#constructor"}})(gr||(gr={}));var gr;(function(e){var n;(function(p){p[p.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(n||(n={}));var f;(function(p){p[p.NonTopLevel=1]="NonTopLevel",p[p.HasLexicalThis=2]="HasLexicalThis"})(f||(f={}));function d(p){var N=p.factory,H=p.getEmitHelperFactory,h=p.resumeLexicalEnvironment,v=p.endLexicalEnvironment,A=p.hoistVariableDeclaration,q=p.getEmitResolver(),ie=p.getCompilerOptions(),b=e.getEmitScriptTarget(ie),P,S=0,B,J,k,M=[],x=0,w=p.onEmitNode,K=p.onSubstituteNode;return p.onEmitNode=Ge,p.onSubstituteNode=he,e.chainBundle(p,Z);function Z(De){if(De.isDeclarationFile)return De;ne(1,!1),ne(2,!e.isEffectiveStrictModeSourceFile(De,ie));var Ae=e.visitEachChild(De,I,p);return e.addEmitHelpers(Ae,p.readEmitHelpers()),Ae}function ne(De,Ae){x=Ae?x|De:x&~De}function R(De){return(x&De)!==0}function Y(){return!R(1)}function U(){return R(2)}function $(De,Ae,Ye){var Lr=De&~x;if(Lr){ne(Lr,!0);var Er=Ae(Ye);return ne(Lr,!1),Er}return Ae(Ye)}function T(De){return e.visitEachChild(De,I,p)}function I(De){if((De.transformFlags&128)===0)return De;switch(De.kind){case 131:return;case 217:return F(De);case 168:return $(3,te,De);case 255:return $(3,ue,De);case 212:return $(3,X,De);case 213:return $(1,j,De);case 205:return J&&e.isPropertyAccessExpression(De)&&De.expression.kind===106&&J.add(De.name.escapedText),e.visitEachChild(De,I,p);case 206:return J&&De.expression.kind===106&&(k=!0),e.visitEachChild(De,I,p);case 171:case 172:case 170:case 256:case 225:return $(3,T,De);default:return e.visitEachChild(De,I,p)}}function y(De){if(e.isNodeWithPossibleHoistedDeclaration(De))switch(De.kind){case 236:return C(De);case 241:return g(De);case 242:return m(De);case 243:return u(De);case 291:return D(De);case 234:case 248:case 262:case 288:case 289:case 251:case 239:case 240:case 238:case 247:case 249:return e.visitEachChild(De,y,p);default:return e.Debug.assertNever(De,"Unhandled node.")}return I(De)}function D(De){var Ae=new e.Set;Se(De.variableDeclaration,Ae);var Ye;if(Ae.forEach(function(lr,Cr){B.has(Cr)&&(Ye||(Ye=new e.Set(B)),Ye.delete(Cr))}),Ye){var Lr=B;B=Ye;var Er=e.visitEachChild(De,y,p);return B=Lr,Er}else return e.visitEachChild(De,y,p)}function C(De){if(Ce(De.declarationList)){var Ae=O(De.declarationList,!1);return Ae?N.createExpressionStatement(Ae):void 0}return e.visitEachChild(De,I,p)}function m(De){return N.updateForInStatement(De,Ce(De.initializer)?O(De.initializer,!0):e.visitNode(De.initializer,I,e.isForInitializer),e.visitNode(De.expression,I,e.isExpression),e.visitIterationBody(De.statement,y,p))}function u(De){return N.updateForOfStatement(De,e.visitNode(De.awaitModifier,I,e.isToken),Ce(De.initializer)?O(De.initializer,!0):e.visitNode(De.initializer,I,e.isForInitializer),e.visitNode(De.expression,I,e.isExpression),e.visitIterationBody(De.statement,y,p))}function g(De){var Ae=De.initializer;return N.updateForStatement(De,Ce(Ae)?O(Ae,!1):e.visitNode(De.initializer,I,e.isForInitializer),e.visitNode(De.condition,I,e.isExpression),e.visitNode(De.incrementor,I,e.isExpression),e.visitIterationBody(De.statement,y,p))}function F(De){return Y()?e.visitEachChild(De,I,p):e.setOriginalNode(e.setTextRange(N.createYieldExpression(void 0,e.visitNode(De.expression,I,e.isExpression)),De),De)}function te(De){return N.updateMethodDeclaration(De,void 0,e.visitNodes(De.modifiers,I,e.isModifier),De.asteriskToken,De.name,void 0,void 0,e.visitParameterList(De.parameters,I,p),void 0,e.getFunctionFlags(De)&2?ge(De):e.visitFunctionBody(De.body,I,p))}function ue(De){return N.updateFunctionDeclaration(De,void 0,e.visitNodes(De.modifiers,I,e.isModifier),De.asteriskToken,De.name,void 0,e.visitParameterList(De.parameters,I,p),void 0,e.getFunctionFlags(De)&2?ge(De):e.visitFunctionBody(De.body,I,p))}function X(De){return N.updateFunctionExpression(De,e.visitNodes(De.modifiers,I,e.isModifier),De.asteriskToken,De.name,void 0,e.visitParameterList(De.parameters,I,p),void 0,e.getFunctionFlags(De)&2?ge(De):e.visitFunctionBody(De.body,I,p))}function j(De){return N.updateArrowFunction(De,e.visitNodes(De.modifiers,I,e.isModifier),void 0,e.visitParameterList(De.parameters,I,p),void 0,De.equalsGreaterThanToken,e.getFunctionFlags(De)&2?ge(De):e.visitFunctionBody(De.body,I,p))}function Se(De,Ae){var Ye=De.name;if(e.isIdentifier(Ye))Ae.add(Ye.escapedText);else for(var Lr=0,Er=Ye.elements;Lr<Er.length;Lr++){var lr=Er[Lr];e.isOmittedExpression(lr)||Se(lr,Ae)}}function Ce(De){return!!De&&e.isVariableDeclarationList(De)&&!(De.flags&3)&&De.declarations.some(Te)}function O(De,Ae){Q(De);var Ye=e.getInitializedVariables(De);return Ye.length===0?Ae?e.visitNode(N.converters.convertToAssignmentElementTarget(De.declarations[0].name),I,e.isExpression):void 0:N.inlineExpressions(e.map(Ye,z))}function Q(De){e.forEach(De.declarations,V)}function V(De){var Ae=De.name;if(e.isIdentifier(Ae))A(Ae);else for(var Ye=0,Lr=Ae.elements;Ye<Lr.length;Ye++){var Er=Lr[Ye];e.isOmittedExpression(Er)||V(Er)}}function z(De){var Ae=e.setSourceMapRange(N.createAssignment(N.converters.convertToAssignmentElementTarget(De.name),De.initializer),De);return e.visitNode(Ae,I,e.isExpression)}function Te(De){var Ae=De.name;if(e.isIdentifier(Ae))return B.has(Ae.escapedText);for(var Ye=0,Lr=Ae.elements;Ye<Lr.length;Ye++){var Er=Lr[Ye];if(!e.isOmittedExpression(Er)&&Te(Er))return!0}return!1}function ge(De){h();var Ae=e.getOriginalNode(De,e.isFunctionLike),Ye=Ae.type,Lr=b<2?Me(Ye):void 0,Er=De.kind===213,lr=(q.getNodeCheckFlags(De)&8192)!==0,Cr=B;B=new e.Set;for(var Or=0,Ke=De.parameters;Or<Ke.length;Or++){var Pe=Ke[Or];Se(Pe,B)}var Hr=J,ur=k;Er||(J=new e.Set,k=!1);var vr;if(Er){var He=H().createAwaiterHelper(U(),lr,Lr,ke(De.body)),pr=v();if(e.some(pr)){var Fr=N.converters.convertToFunctionBlock(He);vr=N.updateBlock(Fr,e.setTextRange(N.createNodeArray(e.concatenate(pr,Fr.statements)),Fr.statements))}else vr=He}else{var de=[],Fe=N.copyPrologue(De.body.statements,de,!1,I);de.push(N.createReturnStatement(H().createAwaiterHelper(U(),lr,Lr,ke(De.body,Fe)))),e.insertStatementsAfterStandardPrologue(de,v());var $e=b>=2&&q.getNodeCheckFlags(De)&6144;if($e&&(Ie(),J.size)){var Dr=a(N,q,De,J);M[e.getNodeId(Dr)]=!0,e.insertStatementsAfterStandardPrologue(de,[Dr])}var Fr=N.createBlock(de,!0);e.setTextRange(Fr,De.body),$e&&k&&(q.getNodeCheckFlags(De)&4096?e.addEmitHelper(Fr,e.advancedAsyncSuperHelper):q.getNodeCheckFlags(De)&2048&&e.addEmitHelper(Fr,e.asyncSuperHelper)),vr=Fr}return B=Cr,Er||(J=Hr,k=ur),vr}function ke(De,Ae){return e.isBlock(De)?N.updateBlock(De,e.visitNodes(De.statements,y,e.isStatement,Ae)):N.converters.convertToFunctionBlock(e.visitNode(De,y,e.isConciseBody))}function Me(De){var Ae=De&&e.getEntityNameFromTypeNode(De);if(Ae&&e.isEntityName(Ae)){var Ye=q.getTypeReferenceSerializationKind(Ae);if(Ye===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||Ye===e.TypeReferenceSerializationKind.Unknown)return Ae}}function Ie(){(P&1)===0&&(P|=1,p.enableSubstitution(207),p.enableSubstitution(205),p.enableSubstitution(206),p.enableEmitNotification(256),p.enableEmitNotification(168),p.enableEmitNotification(171),p.enableEmitNotification(172),p.enableEmitNotification(170),p.enableEmitNotification(236))}function Ge(De,Ae,Ye){if(P&1&&qe(Ae)){var Lr=q.getNodeCheckFlags(Ae)&6144;if(Lr!==S){var Er=S;S=Lr,w(De,Ae,Ye),S=Er;return}}else if(P&&M[e.getNodeId(Ae)]){var Er=S;S=0,w(De,Ae,Ye),S=Er;return}w(De,Ae,Ye)}function he(De,Ae){return Ae=K(De,Ae),De===1&&S?ve(Ae):Ae}function ve(De){switch(De.kind){case 205:return Ve(De);case 206:return _e(De);case 207:return Le(De)}return De}function Ve(De){return De.expression.kind===106?e.setTextRange(N.createPropertyAccessExpression(N.createUniqueName("_super",48),De.name),De):De}function _e(De){return De.expression.kind===106?Xe(De.argumentExpression,De):De}function Le(De){var Ae=De.expression;if(e.isSuperProperty(Ae)){var Ye=e.isPropertyAccessExpression(Ae)?Ve(Ae):_e(Ae);return N.createCallExpression(N.createPropertyAccessExpression(Ye,"call"),void 0,Gt([N.createThis()],De.arguments,!0))}return De}function qe(De){var Ae=De.kind;return Ae===256||Ae===170||Ae===168||Ae===171||Ae===172}function Xe(De,Ae){return S&4096?e.setTextRange(N.createPropertyAccessExpression(N.createCallExpression(N.createUniqueName("_superIndex",48),void 0,[De]),"value"),Ae):e.setTextRange(N.createCallExpression(N.createUniqueName("_superIndex",48),void 0,[De]),Ae)}}e.transformES2017=d;function a(p,N,H,h){var v=(N.getNodeCheckFlags(H)&4096)!==0,A=[];return h.forEach(function(q,ie){var b=e.unescapeLeadingUnderscores(ie),P=[];P.push(p.createPropertyAssignment("get",p.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(p.createPropertyAccessExpression(e.setEmitFlags(p.createSuper(),4),b),4)))),v&&P.push(p.createPropertyAssignment("set",p.createArrowFunction(void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,p.createAssignment(e.setEmitFlags(p.createPropertyAccessExpression(e.setEmitFlags(p.createSuper(),4),b),4),p.createIdentifier("v"))))),A.push(p.createPropertyAssignment(b,p.createObjectLiteralExpression(P)))}),p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(p.createUniqueName("_super",48),void 0,void 0,p.createCallExpression(p.createPropertyAccessExpression(p.createIdentifier("Object"),"create"),void 0,[p.createNull(),p.createObjectLiteralExpression(A,!0)]))],2))}e.createSuperAccessVariableStatement=a})(gr||(gr={}));var gr;(function(e){var n;(function(a){a[a.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(n||(n={}));var f;(function(a){a[a.None=0]="None",a[a.HasLexicalThis=1]="HasLexicalThis",a[a.IterationContainer=2]="IterationContainer",a[a.AncestorFactsMask=3]="AncestorFactsMask",a[a.SourceFileIncludes=1]="SourceFileIncludes",a[a.SourceFileExcludes=2]="SourceFileExcludes",a[a.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",a[a.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",a[a.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",a[a.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",a[a.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",a[a.IterationStatementIncludes=2]="IterationStatementIncludes",a[a.IterationStatementExcludes=0]="IterationStatementExcludes"})(f||(f={}));function d(a){var p=a.factory,N=a.getEmitHelperFactory,H=a.resumeLexicalEnvironment,h=a.endLexicalEnvironment,v=a.hoistVariableDeclaration,A=a.getEmitResolver(),q=a.getCompilerOptions(),ie=e.getEmitScriptTarget(q),b=a.onEmitNode;a.onEmitNode=Hr;var P=a.onSubstituteNode;a.onSubstituteNode=ur;var S=!1,B,J,k=0,M=0,x,w,K,Z,ne=[];return e.chainBundle(a,T);function R(He,pr){return M!==(M&~He|pr)}function Y(He,pr){var Jr=M;return M=(M&~He|pr)&3,Jr}function U(He){M=He}function $(He){w=e.append(w,p.createVariableDeclaration(He))}function T(He){if(He.isDeclarationFile)return He;x=He;var pr=O(He);return e.addEmitHelpers(pr,a.readEmitHelpers()),x=void 0,w=void 0,pr}function I(He){return u(He,!1)}function y(He){return u(He,!0)}function D(He){if(He.kind!==131)return He}function C(He,pr,Jr,ze){if(R(Jr,ze)){var Ar=Y(Jr,ze),Yr=He(pr);return U(Ar),Yr}return He(pr)}function m(He){return e.visitEachChild(He,I,a)}function u(He,pr){if((He.transformFlags&64)===0)return He;switch(He.kind){case 217:return g(He);case 223:return F(He);case 246:return te(He);case 249:return ue(He);case 204:return j(He);case 220:return V(He,pr);case 349:return z(He,pr);case 291:return Te(He);case 236:return ge(He);case 253:return ke(He);case 239:case 240:case 242:return C(m,He,0,2);case 243:return he(He,void 0);case 241:return C(Ie,He,0,2);case 216:return Ge(He);case 170:return C(Xe,He,2,1);case 168:return C(Ye,He,2,1);case 171:return C(De,He,2,1);case 172:return C(Ae,He,2,1);case 255:return C(Lr,He,2,1);case 212:return C(lr,He,2,1);case 213:return C(Er,He,2,0);case 163:return qe(He);case 237:return Se(He);case 211:return Ce(He,pr);case 209:return Q(He);case 205:return K&&e.isPropertyAccessExpression(He)&&He.expression.kind===106&&K.add(He.name.escapedText),e.visitEachChild(He,I,a);case 206:return K&&He.expression.kind===106&&(Z=!0),e.visitEachChild(He,I,a);case 256:case 225:return C(m,He,2,1);default:return e.visitEachChild(He,I,a)}}function g(He){return J&2&&J&1?e.setOriginalNode(e.setTextRange(p.createYieldExpression(void 0,N().createAwaitHelper(e.visitNode(He.expression,I,e.isExpression))),He),He):e.visitEachChild(He,I,a)}function F(He){if(J&2&&J&1){if(He.asteriskToken){var pr=e.visitNode(e.Debug.assertDefined(He.expression),I,e.isExpression);return e.setOriginalNode(e.setTextRange(p.createYieldExpression(void 0,N().createAwaitHelper(p.updateYieldExpression(He,He.asteriskToken,e.setTextRange(N().createAsyncDelegatorHelper(e.setTextRange(N().createAsyncValuesHelper(pr),pr)),pr)))),He),He)}return e.setOriginalNode(e.setTextRange(p.createYieldExpression(void 0,_e(He.expression?e.visitNode(He.expression,I,e.isExpression):p.createVoidZero())),He),He)}return e.visitEachChild(He,I,a)}function te(He){return J&2&&J&1?p.updateReturnStatement(He,_e(He.expression?e.visitNode(He.expression,I,e.isExpression):p.createVoidZero())):e.visitEachChild(He,I,a)}function ue(He){if(J&2){var pr=e.unwrapInnermostStatementOfLabel(He);return pr.kind===243&&pr.awaitModifier?he(pr,He):p.restoreEnclosingLabel(e.visitNode(pr,I,e.isStatement,p.liftToBlock),He)}return e.visitEachChild(He,I,a)}function X(He){for(var pr,Jr=[],ze=0,Ar=He;ze<Ar.length;ze++){var Yr=Ar[ze];if(Yr.kind===296){pr&&(Jr.push(p.createObjectLiteralExpression(pr)),pr=void 0);var lt=Yr.expression;Jr.push(e.visitNode(lt,I,e.isExpression))}else pr=e.append(pr,Yr.kind===294?p.createPropertyAssignment(Yr.name,e.visitNode(Yr.initializer,I,e.isExpression)):e.visitNode(Yr,I,e.isObjectLiteralElementLike))}return pr&&Jr.push(p.createObjectLiteralExpression(pr)),Jr}function j(He){if(He.transformFlags&32768){var pr=X(He.properties);pr.length&&pr[0].kind!==204&&pr.unshift(p.createObjectLiteralExpression());var Jr=pr[0];if(pr.length>1){for(var ze=1;ze<pr.length;ze++)Jr=N().createAssignHelper([Jr,pr[ze]]);return Jr}else return N().createAssignHelper(pr)}return e.visitEachChild(He,I,a)}function Se(He){return e.visitEachChild(He,y,a)}function Ce(He,pr){return e.visitEachChild(He,pr?y:I,a)}function O(He){var pr=Y(2,e.isEffectiveStrictModeSourceFile(He,q)?0:1);S=!1;var Jr=e.visitEachChild(He,I,a),ze=e.concatenate(Jr.statements,w&&[p.createVariableStatement(void 0,p.createVariableDeclarationList(w))]),Ar=p.updateSourceFile(Jr,e.setTextRange(p.createNodeArray(ze),He.statements));return U(pr),Ar}function Q(He){return e.processTaggedTemplateExpression(a,He,I,x,$,e.ProcessLevel.LiftRestriction)}function V(He,pr){return e.isDestructuringAssignment(He)&&He.left.transformFlags&32768?e.flattenDestructuringAssignment(He,I,a,1,!pr):He.operatorToken.kind===27?p.updateBinaryExpression(He,e.visitNode(He.left,y,e.isExpression),He.operatorToken,e.visitNode(He.right,pr?y:I,e.isExpression)):e.visitEachChild(He,I,a)}function z(He,pr){if(pr)return e.visitEachChild(He,y,a);for(var Jr,ze=0;ze<He.elements.length;ze++){var Ar=He.elements[ze],Yr=e.visitNode(Ar,ze<He.elements.length-1?y:I,e.isExpression);(Jr||Yr!==Ar)&&(Jr||(Jr=He.elements.slice(0,ze)),Jr.push(Yr))}var lt=Jr?e.setTextRange(p.createNodeArray(Jr),He.elements):He.elements;return p.updateCommaListExpression(He,lt)}function Te(He){if(He.variableDeclaration&&e.isBindingPattern(He.variableDeclaration.name)&&He.variableDeclaration.name.transformFlags&32768){var pr=p.getGeneratedNameForNode(He.variableDeclaration.name),Jr=p.updateVariableDeclaration(He.variableDeclaration,He.variableDeclaration.name,void 0,void 0,pr),ze=e.flattenDestructuringBinding(Jr,I,a,1),Ar=e.visitNode(He.block,I,e.isBlock);return e.some(ze)&&(Ar=p.updateBlock(Ar,Gt([p.createVariableStatement(void 0,ze)],Ar.statements,!0))),p.updateCatchClause(He,p.updateVariableDeclaration(He.variableDeclaration,pr,void 0,void 0,void 0),Ar)}return e.visitEachChild(He,I,a)}function ge(He){if(e.hasSyntacticModifier(He,1)){var pr=S;S=!0;var Jr=e.visitEachChild(He,I,a);return S=pr,Jr}return e.visitEachChild(He,I,a)}function ke(He){if(S){var pr=S;S=!1;var Jr=Me(He,!0);return S=pr,Jr}return Me(He,!1)}function Me(He,pr){return e.isBindingPattern(He.name)&&He.name.transformFlags&32768?e.flattenDestructuringBinding(He,I,a,1,void 0,pr):e.visitEachChild(He,I,a)}function Ie(He){return p.updateForStatement(He,e.visitNode(He.initializer,y,e.isForInitializer),e.visitNode(He.condition,I,e.isExpression),e.visitNode(He.incrementor,y,e.isExpression),e.visitIterationBody(He.statement,I,a))}function Ge(He){return e.visitEachChild(He,y,a)}function he(He,pr){var Jr=Y(0,2);He.initializer.transformFlags&32768&&(He=ve(He));var ze=He.awaitModifier?Le(He,pr,Jr):p.restoreEnclosingLabel(e.visitEachChild(He,I,a),pr);return U(Jr),ze}function ve(He){var pr=e.skipParentheses(He.initializer);if(e.isVariableDeclarationList(pr)||e.isAssignmentPattern(pr)){var Jr=void 0,ze=void 0,Ar=p.createTempVariable(void 0),Yr=[e.createForOfBindingStatement(p,pr,Ar)];return e.isBlock(He.statement)?(e.addRange(Yr,He.statement.statements),Jr=He.statement,ze=He.statement.statements):He.statement&&(e.append(Yr,He.statement),Jr=He.statement,ze=He.statement),p.updateForOfStatement(He,He.awaitModifier,e.setTextRange(p.createVariableDeclarationList([e.setTextRange(p.createVariableDeclaration(Ar),He.initializer)],1),He.initializer),He.expression,e.setTextRange(p.createBlock(e.setTextRange(p.createNodeArray(Yr),ze),!0),Jr))}return He}function Ve(He,pr){var Jr=e.createForOfBindingStatement(p,He.initializer,pr),ze,Ar,Yr=[e.visitNode(Jr,I,e.isStatement)],lt=e.visitIterationBody(He.statement,I,a);return e.isBlock(lt)?(e.addRange(Yr,lt.statements),ze=lt,Ar=lt.statements):Yr.push(lt),e.setEmitFlags(e.setTextRange(p.createBlock(e.setTextRange(p.createNodeArray(Yr),Ar),!0),ze),432)}function _e(He){return J&1?p.createYieldExpression(void 0,N().createAwaitHelper(He)):p.createAwaitExpression(He)}function Le(He,pr,Jr){var ze=e.visitNode(He.expression,I,e.isExpression),Ar=e.isIdentifier(ze)?p.getGeneratedNameForNode(ze):p.createTempVariable(void 0),Yr=e.isIdentifier(ze)?p.getGeneratedNameForNode(Ar):p.createTempVariable(void 0),lt=p.createUniqueName("e"),tt=p.getGeneratedNameForNode(lt),Rt=p.createTempVariable(void 0),cn=e.setTextRange(N().createAsyncValuesHelper(ze),He.expression),bn=p.createCallExpression(p.createPropertyAccessExpression(Ar,"next"),void 0,[]),In=p.createPropertyAccessExpression(Yr,"done"),zn=p.createPropertyAccessExpression(Yr,"value"),ir=p.createFunctionCallCall(Rt,Ar,[]);v(lt),v(Rt);var Rr=Jr&2?p.inlineExpressions([p.createAssignment(lt,p.createVoidZero()),cn]):cn,sr=e.setEmitFlags(e.setTextRange(p.createForStatement(e.setEmitFlags(e.setTextRange(p.createVariableDeclarationList([e.setTextRange(p.createVariableDeclaration(Ar,void 0,void 0,Rr),He.expression),p.createVariableDeclaration(Yr)]),He.expression),2097152),p.createComma(p.createAssignment(Yr,_e(bn)),p.createLogicalNot(In)),void 0,Ve(He,zn)),He),256);return p.createTryStatement(p.createBlock([p.restoreEnclosingLabel(sr,pr)]),p.createCatchClause(p.createVariableDeclaration(tt),e.setEmitFlags(p.createBlock([p.createExpressionStatement(p.createAssignment(lt,p.createObjectLiteralExpression([p.createPropertyAssignment("error",tt)])))]),1)),p.createBlock([p.createTryStatement(p.createBlock([e.setEmitFlags(p.createIfStatement(p.createLogicalAnd(p.createLogicalAnd(Yr,p.createLogicalNot(In)),p.createAssignment(Rt,p.createPropertyAccessExpression(Ar,"return"))),p.createExpressionStatement(_e(ir))),1)]),void 0,e.setEmitFlags(p.createBlock([e.setEmitFlags(p.createIfStatement(lt,p.createThrowStatement(p.createPropertyAccessExpression(lt,"error"))),1)]),1))]))}function qe(He){return He.transformFlags&32768?p.updateParameterDeclaration(He,void 0,void 0,He.dotDotDotToken,p.getGeneratedNameForNode(He),void 0,void 0,e.visitNode(He.initializer,I,e.isExpression)):e.visitEachChild(He,I,a)}function Xe(He){var pr=J;J=0;var Jr=p.updateConstructorDeclaration(He,void 0,He.modifiers,e.visitParameterList(He.parameters,I,a),Or(He));return J=pr,Jr}function De(He){var pr=J;J=0;var Jr=p.updateGetAccessorDeclaration(He,void 0,He.modifiers,e.visitNode(He.name,I,e.isPropertyName),e.visitParameterList(He.parameters,I,a),void 0,Or(He));return J=pr,Jr}function Ae(He){var pr=J;J=0;var Jr=p.updateSetAccessorDeclaration(He,void 0,He.modifiers,e.visitNode(He.name,I,e.isPropertyName),e.visitParameterList(He.parameters,I,a),Or(He));return J=pr,Jr}function Ye(He){var pr=J;J=e.getFunctionFlags(He);var Jr=p.updateMethodDeclaration(He,void 0,J&1?e.visitNodes(He.modifiers,D,e.isModifier):He.modifiers,J&2?void 0:He.asteriskToken,e.visitNode(He.name,I,e.isPropertyName),e.visitNode(void 0,I,e.isToken),void 0,e.visitParameterList(He.parameters,I,a),void 0,J&2&&J&1?Cr(He):Or(He));return J=pr,Jr}function Lr(He){var pr=J;J=e.getFunctionFlags(He);var Jr=p.updateFunctionDeclaration(He,void 0,J&1?e.visitNodes(He.modifiers,D,e.isModifier):He.modifiers,J&2?void 0:He.asteriskToken,He.name,void 0,e.visitParameterList(He.parameters,I,a),void 0,J&2&&J&1?Cr(He):Or(He));return J=pr,Jr}function Er(He){var pr=J;J=e.getFunctionFlags(He);var Jr=p.updateArrowFunction(He,He.modifiers,void 0,e.visitParameterList(He.parameters,I,a),void 0,He.equalsGreaterThanToken,Or(He));return J=pr,Jr}function lr(He){var pr=J;J=e.getFunctionFlags(He);var Jr=p.updateFunctionExpression(He,J&1?e.visitNodes(He.modifiers,D,e.isModifier):He.modifiers,J&2?void 0:He.asteriskToken,He.name,void 0,e.visitParameterList(He.parameters,I,a),void 0,J&2&&J&1?Cr(He):Or(He));return J=pr,Jr}function Cr(He){H();var pr=[],Jr=p.copyPrologue(He.body.statements,pr,!1,I);Ke(pr,He);var ze=K,Ar=Z;K=new e.Set,Z=!1;var Yr=p.createReturnStatement(N().createAsyncGeneratorHelper(p.createFunctionExpression(void 0,p.createToken(41),He.name&&p.getGeneratedNameForNode(He.name),void 0,[],void 0,p.updateBlock(He.body,e.visitLexicalEnvironment(He.body.statements,I,a,Jr))),!!(M&1))),lt=ie>=2&&A.getNodeCheckFlags(He)&6144;if(lt){Pe();var tt=e.createSuperAccessVariableStatement(p,A,He,K);ne[e.getNodeId(tt)]=!0,e.insertStatementsAfterStandardPrologue(pr,[tt])}pr.push(Yr),e.insertStatementsAfterStandardPrologue(pr,h());var Rt=p.updateBlock(He.body,pr);return lt&&Z&&(A.getNodeCheckFlags(He)&4096?e.addEmitHelper(Rt,e.advancedAsyncSuperHelper):A.getNodeCheckFlags(He)&2048&&e.addEmitHelper(Rt,e.asyncSuperHelper)),K=ze,Z=Ar,Rt}function Or(He){var pr;H();var Jr=0,ze=[],Ar=(pr=e.visitNode(He.body,I,e.isConciseBody))!==null&&pr!==void 0?pr:p.createBlock([]);e.isBlock(Ar)&&(Jr=p.copyPrologue(Ar.statements,ze,!1,I)),e.addRange(ze,Ke(void 0,He));var Yr=h();if(Jr>0||e.some(ze)||e.some(Yr)){var lt=p.converters.convertToFunctionBlock(Ar,!0);return e.insertStatementsAfterStandardPrologue(ze,Yr),e.addRange(ze,lt.statements.slice(Jr)),p.updateBlock(lt,e.setTextRange(p.createNodeArray(ze),lt.statements))}return Ar}function Ke(He,pr){for(var Jr=0,ze=pr.parameters;Jr<ze.length;Jr++){var Ar=ze[Jr];if(Ar.transformFlags&32768){var Yr=p.getGeneratedNameForNode(Ar),lt=e.flattenDestructuringBinding(Ar,I,a,1,Yr,!1,!0);if(e.some(lt)){var tt=p.createVariableStatement(void 0,p.createVariableDeclarationList(lt));e.setEmitFlags(tt,1048576),He=e.append(He,tt)}}}return He}function Pe(){(B&1)===0&&(B|=1,a.enableSubstitution(207),a.enableSubstitution(205),a.enableSubstitution(206),a.enableEmitNotification(256),a.enableEmitNotification(168),a.enableEmitNotification(171),a.enableEmitNotification(172),a.enableEmitNotification(170),a.enableEmitNotification(236))}function Hr(He,pr,Jr){if(B&1&&Dr(pr)){var ze=A.getNodeCheckFlags(pr)&6144;if(ze!==k){var Ar=k;k=ze,b(He,pr,Jr),k=Ar;return}}else if(B&&ne[e.getNodeId(pr)]){var Ar=k;k=0,b(He,pr,Jr),k=Ar;return}b(He,pr,Jr)}function ur(He,pr){return pr=P(He,pr),He===1&&k?vr(pr):pr}function vr(He){switch(He.kind){case 205:return de(He);case 206:return Fe(He);case 207:return $e(He)}return He}function de(He){return He.expression.kind===106?e.setTextRange(p.createPropertyAccessExpression(p.createUniqueName("_super",48),He.name),He):He}function Fe(He){return He.expression.kind===106?Fr(He.argumentExpression,He):He}function $e(He){var pr=He.expression;if(e.isSuperProperty(pr)){var Jr=e.isPropertyAccessExpression(pr)?de(pr):Fe(pr);return p.createCallExpression(p.createPropertyAccessExpression(Jr,"call"),void 0,Gt([p.createThis()],He.arguments,!0))}return He}function Dr(He){var pr=He.kind;return pr===256||pr===170||pr===168||pr===171||pr===172}function Fr(He,pr){return k&4096?e.setTextRange(p.createPropertyAccessExpression(p.createCallExpression(p.createIdentifier("_superIndex"),void 0,[He]),"value"),pr):e.setTextRange(p.createCallExpression(p.createIdentifier("_superIndex"),void 0,[He]),pr)}}e.transformES2018=d})(gr||(gr={}));var gr;(function(e){function n(f){var d=f.factory;return e.chainBundle(f,a);function a(H){return H.isDeclarationFile?H:e.visitEachChild(H,p,f)}function p(H){if((H.transformFlags&32)===0)return H;switch(H.kind){case 291:return N(H);default:return e.visitEachChild(H,p,f)}}function N(H){return H.variableDeclaration?e.visitEachChild(H,p,f):d.updateCatchClause(H,d.createVariableDeclaration(d.createTempVariable(void 0)),e.visitNode(H.block,p,e.isBlock))}}e.transformES2019=n})(gr||(gr={}));var gr;(function(e){function n(f){var d=f.factory,a=f.hoistVariableDeclaration;return e.chainBundle(f,p);function p(B){return B.isDeclarationFile?B:e.visitEachChild(B,N,f)}function N(B){if((B.transformFlags&16)===0)return B;switch(B.kind){case 207:{var J=A(B,!1);return e.Debug.assertNotNode(J,e.isSyntheticReference),J}case 205:case 206:if(e.isOptionalChain(B)){var J=ie(B,!1,!1);return e.Debug.assertNotNode(J,e.isSyntheticReference),J}return e.visitEachChild(B,N,f);case 220:return B.operatorToken.kind===60?P(B):e.visitEachChild(B,N,f);case 214:return S(B);default:return e.visitEachChild(B,N,f)}}function H(B){e.Debug.assertNotNode(B,e.isNonNullChain);for(var J=[B];!B.questionDotToken&&!e.isTaggedTemplateExpression(B);)B=e.cast(e.skipPartiallyEmittedExpressions(B.expression),e.isOptionalChain),e.Debug.assertNotNode(B,e.isNonNullChain),J.unshift(B);return{expression:B.expression,chain:J}}function h(B,J,k){var M=q(B.expression,J,k);return e.isSyntheticReference(M)?d.createSyntheticReferenceExpression(d.updateParenthesizedExpression(B,M.expression),M.thisArg):d.updateParenthesizedExpression(B,M)}function v(B,J,k){if(e.isOptionalChain(B))return ie(B,J,k);var M=e.visitNode(B.expression,N,e.isExpression);e.Debug.assertNotNode(M,e.isSyntheticReference);var x;return J&&(e.isSimpleCopiableExpression(M)?x=M:(x=d.createTempVariable(a),M=d.createAssignment(x,M))),M=B.kind===205?d.updatePropertyAccessExpression(B,M,e.visitNode(B.name,N,e.isIdentifier)):d.updateElementAccessExpression(B,M,e.visitNode(B.argumentExpression,N,e.isExpression)),x?d.createSyntheticReferenceExpression(M,x):M}function A(B,J){if(e.isOptionalChain(B))return ie(B,J,!1);if(e.isParenthesizedExpression(B.expression)&&e.isOptionalChain(e.skipParentheses(B.expression))){var k=h(B.expression,!0,!1),M=e.visitNodes(B.arguments,N,e.isExpression);return e.isSyntheticReference(k)?e.setTextRange(d.createFunctionCallCall(k.expression,k.thisArg,M),B):d.updateCallExpression(B,k,void 0,M)}return e.visitEachChild(B,N,f)}function q(B,J,k){switch(B.kind){case 211:return h(B,J,k);case 205:case 206:return v(B,J,k);case 207:return A(B,J);default:return e.visitNode(B,N,e.isExpression)}}function ie(B,J,k){var M=H(B),x=M.expression,w=M.chain,K=q(x,e.isCallChain(w[0]),!1),Z=e.isSyntheticReference(K)?K.thisArg:void 0,ne=e.isSyntheticReference(K)?K.expression:K,R=ne;e.isSimpleCopiableExpression(ne)||(R=d.createTempVariable(a),ne=d.createAssignment(R,ne));for(var Y=R,U,$=0;$<w.length;$++){var T=w[$];switch(T.kind){case 205:case 206:$===w.length-1&&J&&(e.isSimpleCopiableExpression(Y)?U=Y:(U=d.createTempVariable(a),Y=d.createAssignment(U,Y))),Y=T.kind===205?d.createPropertyAccessExpression(Y,e.visitNode(T.name,N,e.isIdentifier)):d.createElementAccessExpression(Y,e.visitNode(T.argumentExpression,N,e.isExpression));break;case 207:$===0&&Z?Y=d.createFunctionCallCall(Y,Z.kind===106?d.createThis():Z,e.visitNodes(T.arguments,N,e.isExpression)):Y=d.createCallExpression(Y,void 0,e.visitNodes(T.arguments,N,e.isExpression));break}e.setOriginalNode(Y,T)}var I=k?d.createConditionalExpression(b(ne,R,!0),void 0,d.createTrue(),void 0,d.createDeleteExpression(Y)):d.createConditionalExpression(b(ne,R,!0),void 0,d.createVoidZero(),void 0,Y);return e.setTextRange(I,B),U?d.createSyntheticReferenceExpression(I,U):I}function b(B,J,k){return d.createBinaryExpression(d.createBinaryExpression(B,d.createToken(k?36:37),d.createNull()),d.createToken(k?56:55),d.createBinaryExpression(J,d.createToken(k?36:37),d.createVoidZero()))}function P(B){var J=e.visitNode(B.left,N,e.isExpression),k=J;return e.isSimpleCopiableExpression(J)||(k=d.createTempVariable(a),J=d.createAssignment(k,J)),e.setTextRange(d.createConditionalExpression(b(J,k),void 0,k,void 0,e.visitNode(B.right,N,e.isExpression)),B)}function S(B){return e.isOptionalChain(e.skipParentheses(B.expression))?e.setOriginalNode(q(B.expression,!1,!0),B):d.updateDeleteExpression(B,e.visitNode(B.expression,N,e.isExpression))}}e.transformES2020=n})(gr||(gr={}));var gr;(function(e){function n(f){var d=f.hoistVariableDeclaration,a=f.factory;return e.chainBundle(f,p);function p(h){return h.isDeclarationFile?h:e.visitEachChild(h,N,f)}function N(h){if((h.transformFlags&8)===0)return h;switch(h.kind){case 220:var v=h;if(e.isLogicalOrCoalescingAssignmentExpression(v))return H(v);default:return e.visitEachChild(h,N,f)}}function H(h){var v=h.operatorToken,A=e.getNonAssignmentOperatorForCompoundAssignment(v.kind),q=e.skipParentheses(e.visitNode(h.left,N,e.isLeftHandSideExpression)),ie=q,b=e.skipParentheses(e.visitNode(h.right,N,e.isExpression));if(e.isAccessExpression(q)){var P=e.isSimpleCopiableExpression(q.expression),S=P?q.expression:a.createTempVariable(d),B=P?q.expression:a.createAssignment(S,q.expression);if(e.isPropertyAccessExpression(q))ie=a.createPropertyAccessExpression(S,q.name),q=a.createPropertyAccessExpression(B,q.name);else{var J=e.isSimpleCopiableExpression(q.argumentExpression),k=J?q.argumentExpression:a.createTempVariable(d);ie=a.createElementAccessExpression(S,k),q=a.createElementAccessExpression(B,J?q.argumentExpression:a.createAssignment(k,q.argumentExpression))}}return a.createBinaryExpression(q,A,a.createParenthesizedExpression(a.createAssignment(ie,b)))}}e.transformES2021=n})(gr||(gr={}));var gr;(function(e){function n(f){return e.chainBundle(f,d);function d(p){return p.isDeclarationFile?p:e.visitEachChild(p,a,f)}function a(p){if((p.transformFlags&4)===0)return p;switch(p.kind){default:return e.visitEachChild(p,a,f)}}}e.transformESNext=n})(gr||(gr={}));var gr;(function(e){function n(d){var a=d.factory,p=d.getEmitHelperFactory,N=d.getCompilerOptions(),H,h;return e.chainBundle(d,P);function v(){if(h.filenameDeclaration)return h.filenameDeclaration.name;var Q=a.createVariableDeclaration(a.createUniqueName("_jsxFileName",48),void 0,void 0,a.createStringLiteral(H.fileName));return h.filenameDeclaration=Q,h.filenameDeclaration.name}function A(Q){return N.jsx===5?"jsxDEV":Q?"jsxs":"jsx"}function q(Q){var V=A(Q);return b(V)}function ie(){return b("Fragment")}function b(Q){var V,z,Te=Q==="createElement"?h.importSpecifier:e.getJSXRuntimeImport(h.importSpecifier,N),ge=(z=(V=h.utilizedImplicitRuntimeImports)===null||V===void 0?void 0:V.get(Te))===null||z===void 0?void 0:z.get(Q);if(ge)return ge.name;h.utilizedImplicitRuntimeImports||(h.utilizedImplicitRuntimeImports=e.createMap());var ke=h.utilizedImplicitRuntimeImports.get(Te);ke||(ke=e.createMap(),h.utilizedImplicitRuntimeImports.set(Te,ke));var Me=a.createUniqueName("_".concat(Q),112),Ie=a.createImportSpecifier(!1,a.createIdentifier(Q),Me);return Me.generatedImportReference=Ie,ke.set(Q,Ie),Me}function P(Q){if(Q.isDeclarationFile)return Q;H=Q,h={},h.importSpecifier=e.getJSXImplicitImportBase(N,Q);var V=e.visitEachChild(Q,S,d);e.addEmitHelpers(V,d.readEmitHelpers());var z=V.statements;if(h.filenameDeclaration&&(z=e.insertStatementAfterCustomPrologue(z.slice(),a.createVariableStatement(void 0,a.createVariableDeclarationList([h.filenameDeclaration],2)))),h.utilizedImplicitRuntimeImports)for(var Te=0,ge=e.arrayFrom(h.utilizedImplicitRuntimeImports.entries());Te<ge.length;Te++){var ke=ge[Te],Me=ke[0],Ie=ke[1];if(e.isExternalModule(Q)){var Ge=a.createImportDeclaration(void 0,void 0,a.createImportClause(!1,void 0,a.createNamedImports(e.arrayFrom(Ie.values()))),a.createStringLiteral(Me),void 0);e.setParentRecursive(Ge,!1),z=e.insertStatementAfterCustomPrologue(z.slice(),Ge)}else if(e.isExternalOrCommonJsModule(Q)){var he=a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(a.createObjectBindingPattern(e.map(e.arrayFrom(Ie.values()),function(ve){return a.createBindingElement(void 0,ve.propertyName,ve.name)})),void 0,void 0,a.createCallExpression(a.createIdentifier("require"),void 0,[a.createStringLiteral(Me)]))],2));e.setParentRecursive(he,!1),z=e.insertStatementAfterCustomPrologue(z.slice(),he)}}return z!==V.statements&&(V=a.updateSourceFile(V,z)),h=void 0,V}function S(Q){return Q.transformFlags&2?B(Q):Q}function B(Q){switch(Q.kind){case 277:return x(Q,!1);case 278:return w(Q,!1);case 281:return K(Q,!1);case 287:return O(Q);default:return e.visitEachChild(Q,S,d)}}function J(Q){switch(Q.kind){case 11:return F(Q);case 287:return O(Q);case 277:return x(Q,!0);case 278:return w(Q,!0);case 281:return K(Q,!0);default:return e.Debug.failBadSyntaxKind(Q)}}function k(Q){for(var V=!1,z=0,Te=Q.attributes.properties;z<Te.length;z++){var ge=Te[z];if(e.isJsxSpreadAttribute(ge))V=!0;else if(V&&e.isJsxAttribute(ge)&&ge.name.escapedText==="key")return!0}return!1}function M(Q){return h.importSpecifier===void 0||k(Q)}function x(Q,V){var z=M(Q.openingElement)?U:R;return z(Q.openingElement,Q.children,V,Q)}function w(Q,V){var z=M(Q)?U:R;return z(Q,void 0,V,Q)}function K(Q,V){var z=h.importSpecifier===void 0?T:$;return z(Q.openingFragment,Q.children,V,Q)}function Z(Q){var V=ne(Q);return V&&a.createObjectLiteralExpression([V])}function ne(Q){var V=e.getSemanticJsxChildren(Q);if(e.length(V)===1&&!V[0].dotDotDotToken){var z=J(V[0]);return z&&a.createPropertyAssignment("children",z)}var Te=e.mapDefined(Q,J);return e.length(Te)?a.createPropertyAssignment("children",a.createArrayLiteralExpression(Te)):void 0}function R(Q,V,z,Te){var ge=Se(Q),ke=V&&V.length?ne(V):void 0,Me=e.find(Q.attributes.properties,function(he){return!!he.name&&e.isIdentifier(he.name)&&he.name.escapedText==="key"}),Ie=Me?e.filter(Q.attributes.properties,function(he){return he!==Me}):Q.attributes.properties,Ge=e.length(Ie)?y(Ie,ke):a.createObjectLiteralExpression(ke?[ke]:e.emptyArray);return Y(ge,Ge,Me,V||e.emptyArray,z,Te)}function Y(Q,V,z,Te,ge,ke){var Me,Ie=e.getSemanticJsxChildren(Te),Ge=e.length(Ie)>1||!!(!((Me=Ie[0])===null||Me===void 0)&&Me.dotDotDotToken),he=[Q,V,z?g(z.initializer):a.createVoidZero()];if(N.jsx===5){var ve=e.getOriginalNode(H);if(ve&&e.isSourceFile(ve)){he.push(Ge?a.createTrue():a.createFalse());var Ve=e.getLineAndCharacterOfPosition(ve,ke.pos);he.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",v()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(Ve.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(Ve.character+1))])),he.push(a.createThis())}}var _e=e.setTextRange(a.createCallExpression(q(Ge),void 0,he),ke);return ge&&e.startOnNewLine(_e),_e}function U(Q,V,z,Te){var ge=Se(Q),ke=Q.attributes.properties,Me=e.length(ke)?y(ke):a.createNull(),Ie=h.importSpecifier===void 0?e.createJsxFactoryExpression(a,d.getEmitResolver().getJsxFactoryEntity(H),N.reactNamespace,Q):b("createElement"),Ge=e.createExpressionForJsxElement(a,Ie,ge,Me,e.mapDefined(V,J),Te);return z&&e.startOnNewLine(Ge),Ge}function $(Q,V,z,Te){var ge;if(V&&V.length){var ke=Z(V);ke&&(ge=ke)}return Y(ie(),ge||a.createObjectLiteralExpression([]),void 0,V,z,Te)}function T(Q,V,z,Te){var ge=e.createExpressionForJsxFragment(a,d.getEmitResolver().getJsxFactoryEntity(H),d.getEmitResolver().getJsxFragmentFactoryEntity(H),N.reactNamespace,e.mapDefined(V,J),Q,Te);return z&&e.startOnNewLine(ge),ge}function I(Q){return a.createSpreadAssignment(e.visitNode(Q.expression,S,e.isExpression))}function y(Q,V){var z=e.getEmitScriptTarget(N);return z&&z>=5?a.createObjectLiteralExpression(D(Q,V)):C(Q,V)}function D(Q,V){var z=e.flatten(e.spanMap(Q,e.isJsxSpreadAttribute,function(Te,ge){return e.map(Te,function(ke){return ge?I(ke):u(ke)})}));return V&&z.push(V),z}function C(Q,V){var z=e.flatten(e.spanMap(Q,e.isJsxSpreadAttribute,function(Te,ge){return ge?e.map(Te,m):a.createObjectLiteralExpression(e.map(Te,u))}));return e.isJsxSpreadAttribute(Q[0])&&z.unshift(a.createObjectLiteralExpression()),V&&z.push(a.createObjectLiteralExpression([V])),e.singleOrUndefined(z)||p().createAssignHelper(z)}function m(Q){return e.visitNode(Q.expression,S,e.isExpression)}function u(Q){var V=Ce(Q),z=g(Q.initializer);return a.createPropertyAssignment(V,z)}function g(Q){if(Q===void 0)return a.createTrue();if(Q.kind===10){var V=Q.singleQuote!==void 0?Q.singleQuote:!e.isStringDoubleQuoted(Q,H),z=a.createStringLiteral(j(Q.text)||Q.text,V);return e.setTextRange(z,Q)}else return Q.kind===287?Q.expression===void 0?a.createTrue():e.visitNode(Q.expression,S,e.isExpression):e.Debug.failBadSyntaxKind(Q)}function F(Q){var V=te(Q.text);return V===void 0?void 0:a.createStringLiteral(V)}function te(Q){for(var V,z=0,Te=-1,ge=0;ge<Q.length;ge++){var ke=Q.charCodeAt(ge);e.isLineBreak(ke)?(z!==-1&&Te!==-1&&(V=ue(V,Q.substr(z,Te-z+1))),z=-1):e.isWhiteSpaceSingleLine(ke)||(Te=ge,z===-1&&(z=ge))}return z!==-1?ue(V,Q.substr(z)):V}function ue(Q,V){var z=X(V);return Q===void 0?z:Q+" "+z}function X(Q){return Q.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(V,z,Te,ge,ke,Me,Ie){if(ke)return e.utf16EncodeAsString(parseInt(ke,10));if(Me)return e.utf16EncodeAsString(parseInt(Me,16));var Ge=f.get(Ie);return Ge?e.utf16EncodeAsString(Ge):V})}function j(Q){var V=X(Q);return V===Q?void 0:V}function Se(Q){if(Q.kind===277)return Se(Q.openingElement);var V=Q.tagName;return e.isIdentifier(V)&&e.isIntrinsicJsxName(V.escapedText)?a.createStringLiteral(e.idText(V)):e.createExpressionFromEntityName(a,V)}function Ce(Q){var V=Q.name,z=e.idText(V);return/^[A-Za-z_]\w*$/.test(z)?V:a.createStringLiteral(z)}function O(Q){var V=e.visitNode(Q.expression,S,e.isExpression);return Q.dotDotDotToken?a.createSpreadElement(V):V}}e.transformJsx=n;var f=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}))})(gr||(gr={}));var gr;(function(e){function n(f){var d=f.factory,a=f.hoistVariableDeclaration;return e.chainBundle(f,p);function p(A){return A.isDeclarationFile?A:e.visitEachChild(A,N,f)}function N(A){if((A.transformFlags&256)===0)return A;switch(A.kind){case 220:return H(A);default:return e.visitEachChild(A,N,f)}}function H(A){switch(A.operatorToken.kind){case 67:return h(A);case 42:return v(A);default:return e.visitEachChild(A,N,f)}}function h(A){var q,ie,b=e.visitNode(A.left,N,e.isExpression),P=e.visitNode(A.right,N,e.isExpression);if(e.isElementAccessExpression(b)){var S=d.createTempVariable(a),B=d.createTempVariable(a);q=e.setTextRange(d.createElementAccessExpression(e.setTextRange(d.createAssignment(S,b.expression),b.expression),e.setTextRange(d.createAssignment(B,b.argumentExpression),b.argumentExpression)),b),ie=e.setTextRange(d.createElementAccessExpression(S,B),b)}else if(e.isPropertyAccessExpression(b)){var S=d.createTempVariable(a);q=e.setTextRange(d.createPropertyAccessExpression(e.setTextRange(d.createAssignment(S,b.expression),b.expression),b.name),b),ie=e.setTextRange(d.createPropertyAccessExpression(S,b.name),b)}else q=b,ie=b;return e.setTextRange(d.createAssignment(q,e.setTextRange(d.createGlobalMethodCall("Math","pow",[ie,P]),A)),A)}function v(A){var q=e.visitNode(A.left,N,e.isExpression),ie=e.visitNode(A.right,N,e.isExpression);return e.setTextRange(d.createGlobalMethodCall("Math","pow",[q,ie]),A)}}e.transformES2016=n})(gr||(gr={}));var gr;(function(e){var n;(function(v){v[v.CapturedThis=1]="CapturedThis",v[v.BlockScopedBindings=2]="BlockScopedBindings"})(n||(n={}));var f;(function(v){v[v.Body=1]="Body",v[v.Initializer=2]="Initializer"})(f||(f={}));var d;(function(v){v[v.ToOriginal=0]="ToOriginal",v[v.ToOutParameter=1]="ToOutParameter"})(d||(d={}));var a;(function(v){v[v.Break=2]="Break",v[v.Continue=4]="Continue",v[v.Return=8]="Return"})(a||(a={}));var p;(function(v){v[v.None=0]="None",v[v.Function=1]="Function",v[v.ArrowFunction=2]="ArrowFunction",v[v.AsyncFunctionBody=4]="AsyncFunctionBody",v[v.NonStaticClassElement=8]="NonStaticClassElement",v[v.CapturesThis=16]="CapturesThis",v[v.ExportedVariableStatement=32]="ExportedVariableStatement",v[v.TopLevel=64]="TopLevel",v[v.Block=128]="Block",v[v.IterationStatement=256]="IterationStatement",v[v.IterationStatementBlock=512]="IterationStatementBlock",v[v.IterationContainer=1024]="IterationContainer",v[v.ForStatement=2048]="ForStatement",v[v.ForInOrForOfStatement=4096]="ForInOrForOfStatement",v[v.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",v[v.StaticInitializer=16384]="StaticInitializer",v[v.AncestorFactsMask=32767]="AncestorFactsMask",v[v.BlockScopeIncludes=0]="BlockScopeIncludes",v[v.BlockScopeExcludes=7104]="BlockScopeExcludes",v[v.SourceFileIncludes=64]="SourceFileIncludes",v[v.SourceFileExcludes=8064]="SourceFileExcludes",v[v.FunctionIncludes=65]="FunctionIncludes",v[v.FunctionExcludes=32670]="FunctionExcludes",v[v.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",v[v.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",v[v.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",v[v.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",v[v.ConstructorIncludes=73]="ConstructorIncludes",v[v.ConstructorExcludes=32662]="ConstructorExcludes",v[v.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",v[v.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",v[v.ForStatementIncludes=3328]="ForStatementIncludes",v[v.ForStatementExcludes=5056]="ForStatementExcludes",v[v.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",v[v.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",v[v.BlockIncludes=128]="BlockIncludes",v[v.BlockExcludes=6976]="BlockExcludes",v[v.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",v[v.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",v[v.StaticInitializerIncludes=16449]="StaticInitializerIncludes",v[v.StaticInitializerExcludes=32670]="StaticInitializerExcludes",v[v.NewTarget=32768]="NewTarget",v[v.CapturedLexicalThis=65536]="CapturedLexicalThis",v[v.SubtreeFactsMask=-32768]="SubtreeFactsMask",v[v.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",v[v.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"})(p||(p={}));var N;(function(v){v[v.None=0]="None",v[v.UnpackedSpread=1]="UnpackedSpread",v[v.PackedSpread=2]="PackedSpread"})(N||(N={}));function H(v,A){return{kind:v,expression:A}}function h(v){var A=v.factory,q=v.getEmitHelperFactory,ie=v.startLexicalEnvironment,b=v.resumeLexicalEnvironment,P=v.endLexicalEnvironment,S=v.hoistVariableDeclaration,B=v.getCompilerOptions(),J=v.getEmitResolver(),k=v.onSubstituteNode,M=v.onEmitNode;v.onEmitNode=hi,v.onSubstituteNode=Mo;var x,w,K,Z;function ne(Oe){Z=e.append(Z,A.createVariableDeclaration(Oe))}var R,Y;return e.chainBundle(v,U);function U(Oe){if(Oe.isDeclarationFile)return Oe;x=Oe,w=Oe.text;var oe=te(Oe);return e.addEmitHelpers(oe,v.readEmitHelpers()),x=void 0,w=void 0,Z=void 0,K=0,oe}function $(Oe,oe){var mr=K;return K=(K&~Oe|oe)&32767,mr}function T(Oe,oe,mr){K=(K&~oe|mr)&-32768|Oe}function I(Oe){return(K&8192)!==0&&Oe.kind===246&&!Oe.expression}function y(Oe){return Oe.transformFlags&2097152&&(e.isReturnStatement(Oe)||e.isIfStatement(Oe)||e.isWithStatement(Oe)||e.isSwitchStatement(Oe)||e.isCaseBlock(Oe)||e.isCaseClause(Oe)||e.isDefaultClause(Oe)||e.isTryStatement(Oe)||e.isCatchClause(Oe)||e.isLabeledStatement(Oe)||e.isIterationStatement(Oe,!1)||e.isBlock(Oe))}function D(Oe){return(Oe.transformFlags&512)!==0||R!==void 0||K&8192&&y(Oe)||e.isIterationStatement(Oe,!1)&&Wr(Oe)||(e.getEmitFlags(Oe)&33554432)!==0}function C(Oe){return D(Oe)?F(Oe,!1):Oe}function m(Oe){return D(Oe)?F(Oe,!0):Oe}function u(Oe){if(D(Oe)){var oe=e.getOriginalNode(Oe);if(e.isPropertyDeclaration(oe)&&e.hasStaticModifier(oe)){var mr=$(32670,16449),se=F(Oe,!1);return T(mr,98304,0),se}return F(Oe,!1)}return Oe}function g(Oe){return Oe.kind===106?co(!0):C(Oe)}function F(Oe,oe){switch(Oe.kind){case 124:return;case 256:return z(Oe);case 225:return Te(Oe);case 163:return qe(Oe);case 255:return $e(Oe);case 213:return de(Oe);case 212:return Fe(Oe);case 253:return In(Oe);case 79:return Q(Oe);case 254:return tt(Oe);case 248:return ue(Oe);case 262:return X(Oe);case 234:return He(Oe,!1);case 245:case 244:return V(Oe);case 249:return Rr(Oe);case 239:case 240:return or(Oe,void 0);case 241:return fe(Oe,void 0);case 242:return Ee(Oe,void 0);case 243:return We(Oe,void 0);case 237:return pr(Oe);case 204:return xr(Oe);case 291:return pt(Oe);case 295:return rt(Oe);case 161:return Cn(Oe);case 203:return Ra(Oe);case 207:return Ci(Oe);case 208:return ro(Oe);case 211:return Jr(Oe,oe);case 220:return ze(Oe,oe);case 349:return Ar(Oe,oe);case 14:case 15:case 16:case 17:return No(Oe);case 10:return lo(Oe);case 8:return Lo(Oe);case 209:return Ha(Oe);case 222:return Yo(Oe);case 223:return Qn(Oe);case 224:return to(Oe);case 106:return co(!1);case 108:return Ce(Oe);case 230:return za(Oe);case 168:return Pt(Oe);case 171:case 172:return It(Oe);case 236:return lt(Oe);case 246:return Se(Oe);case 216:return O(Oe);default:return e.visitEachChild(Oe,C,v)}}function te(Oe){var oe=$(8064,64),mr=[],se=[];ie();var Be=A.copyPrologue(Oe.statements,mr,!1,C);return e.addRange(se,e.visitNodes(Oe.statements,C,e.isStatement,Be)),Z&&se.push(A.createVariableStatement(void 0,A.createVariableDeclarationList(Z))),A.mergeLexicalEnvironment(mr,P()),lr(mr,Oe),T(oe,0,0),A.updateSourceFile(Oe,e.setTextRange(A.createNodeArray(e.concatenate(mr,se)),Oe.statements))}function ue(Oe){if(R!==void 0){var oe=R.allowedNonLabeledJumps;R.allowedNonLabeledJumps|=2;var mr=e.visitEachChild(Oe,C,v);return R.allowedNonLabeledJumps=oe,mr}return e.visitEachChild(Oe,C,v)}function X(Oe){var oe=$(7104,0),mr=e.visitEachChild(Oe,C,v);return T(oe,0,0),mr}function j(Oe){return e.setOriginalNode(A.createReturnStatement(A.createUniqueName("_this",48)),Oe)}function Se(Oe){return R?(R.nonLocalJumps|=8,I(Oe)&&(Oe=j(Oe)),A.createReturnStatement(A.createObjectLiteralExpression([A.createPropertyAssignment(A.createIdentifier("value"),Oe.expression?e.visitNode(Oe.expression,C,e.isExpression):A.createVoidZero())]))):I(Oe)?j(Oe):e.visitEachChild(Oe,C,v)}function Ce(Oe){return K&2&&!(K&16384)&&(K|=65536),R?K&2?(R.containsLexicalThis=!0,Oe):R.thisName||(R.thisName=A.createUniqueName("this")):Oe}function O(Oe){return e.visitEachChild(Oe,m,v)}function Q(Oe){return R&&J.isArgumentsLocalBinding(Oe)?R.argumentsName||(R.argumentsName=A.createUniqueName("arguments")):Oe}function V(Oe){if(R){var oe=Oe.kind===245?2:4,mr=Oe.label&&R.labels&&R.labels.get(e.idText(Oe.label))||!Oe.label&&R.allowedNonLabeledJumps&oe;if(!mr){var se=void 0,Be=Oe.label;Be?Oe.kind===245?(se="break-".concat(Be.escapedText),en(R,!0,e.idText(Be),se)):(se="continue-".concat(Be.escapedText),en(R,!1,e.idText(Be),se)):Oe.kind===245?(R.nonLocalJumps|=2,se="break"):(R.nonLocalJumps|=4,se="continue");var er=A.createStringLiteral(se);if(R.loopOutParameters.length){for(var hr=R.loopOutParameters,qr=void 0,Dt=0;Dt<hr.length;Dt++){var Jt=ba(hr[Dt],1);Dt===0?qr=Jt:qr=A.createBinaryExpression(qr,27,Jt)}er=A.createBinaryExpression(qr,27,er)}return A.createReturnStatement(er)}}return e.visitEachChild(Oe,C,v)}function z(Oe){var oe=A.createVariableDeclaration(A.getLocalName(Oe,!0),void 0,void 0,ge(Oe));e.setOriginalNode(oe,Oe);var mr=[],se=A.createVariableStatement(void 0,A.createVariableDeclarationList([oe]));if(e.setOriginalNode(se,Oe),e.setTextRange(se,Oe),e.startOnNewLine(se),mr.push(se),e.hasSyntacticModifier(Oe,1)){var Be=e.hasSyntacticModifier(Oe,512)?A.createExportDefault(A.getLocalName(Oe)):A.createExternalModuleExport(A.getLocalName(Oe));e.setOriginalNode(Be,se),mr.push(Be)}var er=e.getEmitFlags(Oe);return(er&4194304)===0&&(mr.push(A.createEndOfDeclarationMarker(Oe)),e.setEmitFlags(se,er|4194304)),e.singleOrMany(mr)}function Te(Oe){return ge(Oe)}function ge(Oe){Oe.name&&Zi();var oe=e.getClassExtendsHeritageElement(Oe),mr=A.createFunctionExpression(void 0,void 0,void 0,void 0,oe?[A.createParameterDeclaration(void 0,void 0,void 0,A.createUniqueName("_super",48))]:[],void 0,ke(Oe,oe));e.setEmitFlags(mr,e.getEmitFlags(Oe)&65536|524288);var se=A.createPartiallyEmittedExpression(mr);e.setTextRangeEnd(se,Oe.end),e.setEmitFlags(se,1536);var Be=A.createPartiallyEmittedExpression(se);e.setTextRangeEnd(Be,e.skipTrivia(w,Oe.pos)),e.setEmitFlags(Be,1536);var er=A.createParenthesizedExpression(A.createCallExpression(Be,void 0,oe?[e.visitNode(oe.expression,C,e.isExpression)]:[]));return e.addSyntheticLeadingComment(er,3,"* @class "),er}function ke(Oe,oe){var mr=[],se=A.getInternalName(Oe),Be=e.isIdentifierANonContextualKeyword(se)?A.getGeneratedNameForNode(se):se;ie(),Me(mr,Oe,oe),Ie(mr,Oe,Be,oe),Ke(mr,Oe);var er=e.createTokenRange(e.skipTrivia(w,Oe.members.end),19),hr=A.createPartiallyEmittedExpression(Be);e.setTextRangeEnd(hr,er.end),e.setEmitFlags(hr,1536);var qr=A.createReturnStatement(hr);e.setTextRangePos(qr,er.pos),e.setEmitFlags(qr,1920),mr.push(qr),e.insertStatementsAfterStandardPrologue(mr,P());var Dt=A.createBlock(e.setTextRange(A.createNodeArray(mr),Oe.members),!0);return e.setEmitFlags(Dt,1536),Dt}function Me(Oe,oe,mr){mr&&Oe.push(e.setTextRange(A.createExpressionStatement(q().createExtendsHelper(A.getInternalName(oe))),mr))}function Ie(Oe,oe,mr,se){var Be=R;R=void 0;var er=$(32662,73),hr=e.getFirstConstructorWithBody(oe),qr=Un(hr,se!==void 0),Dt=A.createFunctionDeclaration(void 0,void 0,void 0,mr,void 0,Ge(hr,qr),void 0,ve(hr,oe,se,qr));e.setTextRange(Dt,hr||oe),se&&e.setEmitFlags(Dt,8),Oe.push(Dt),T(er,98304,0),R=Be}function Ge(Oe,oe){return e.visitParameterList(Oe&&!oe?Oe.parameters:void 0,C,v)||[]}function he(Oe,oe){var mr=[];b(),A.mergeLexicalEnvironment(mr,P()),oe&&mr.push(A.createReturnStatement(Le()));var se=A.createNodeArray(mr);e.setTextRange(se,Oe.members);var Be=A.createBlock(se,!0);return e.setTextRange(Be,Oe),e.setEmitFlags(Be,1536),Be}function ve(Oe,oe,mr,se){var Be=!!mr&&e.skipOuterExpressions(mr.expression).kind!==104;if(!Oe)return he(oe,Be);var er=[],hr=[];b();var qr=0;se||(qr=A.copyStandardPrologue(Oe.body.statements,er,!1)),De(hr,Oe),Er(hr,Oe,se),se||(qr=A.copyCustomPrologue(Oe.body.statements,hr,qr,C));var Dt;if(se)Dt=Le();else if(Be&&qr<Oe.body.statements.length){var Jt=Oe.body.statements[qr];e.isExpressionStatement(Jt)&&e.isSuperCall(Jt.expression)&&(Dt=va(Jt.expression))}if(Dt&&(K|=8192,qr++),e.addRange(hr,e.visitNodes(Oe.body.statements,C,e.isStatement,qr)),A.mergeLexicalEnvironment(er,P()),Or(er,Oe,!1),Be)if(Dt&&qr===Oe.body.statements.length&&!(Oe.body.transformFlags&8192)){var Sn=e.cast(e.cast(Dt,e.isBinaryExpression).left,e.isCallExpression),ta=A.createReturnStatement(Dt);e.setCommentRange(ta,e.getCommentRange(Sn)),e.setEmitFlags(Sn,1536),hr.push(ta)}else Cr(hr,Oe,Dt||_e()),Ve(Oe.body)||hr.push(A.createReturnStatement(A.createUniqueName("_this",48)));else lr(er,Oe);var xa=A.createBlock(e.setTextRange(A.createNodeArray(e.concatenate(er,hr)),Oe.body.statements),!0);return e.setTextRange(xa,Oe.body),xa}function Ve(Oe){if(Oe.kind===246)return!0;if(Oe.kind===238){var oe=Oe;if(oe.elseStatement)return Ve(oe.thenStatement)&&Ve(oe.elseStatement)}else if(Oe.kind===234){var mr=e.lastOrUndefined(Oe.statements);if(mr&&Ve(mr))return!0}return!1}function _e(){return e.setEmitFlags(A.createThis(),4)}function Le(){return A.createLogicalOr(A.createLogicalAnd(A.createStrictInequality(A.createUniqueName("_super",48),A.createNull()),A.createFunctionApplyCall(A.createUniqueName("_super",48),_e(),A.createIdentifier("arguments"))),_e())}function qe(Oe){if(!Oe.dotDotDotToken)return e.isBindingPattern(Oe.name)?e.setOriginalNode(e.setTextRange(A.createParameterDeclaration(void 0,void 0,void 0,A.getGeneratedNameForNode(Oe),void 0,void 0,void 0),Oe),Oe):Oe.initializer?e.setOriginalNode(e.setTextRange(A.createParameterDeclaration(void 0,void 0,void 0,Oe.name,void 0,void 0,void 0),Oe),Oe):Oe}function Xe(Oe){return Oe.initializer!==void 0||e.isBindingPattern(Oe.name)}function De(Oe,oe){if(!e.some(oe.parameters,Xe))return!1;for(var mr=!1,se=0,Be=oe.parameters;se<Be.length;se++){var er=Be[se],hr=er.name,qr=er.initializer,Dt=er.dotDotDotToken;Dt||(e.isBindingPattern(hr)?mr=Ae(Oe,er,hr,qr)||mr:qr&&(Ye(Oe,er,hr,qr),mr=!0))}return mr}function Ae(Oe,oe,mr,se){return mr.elements.length>0?(e.insertStatementAfterCustomPrologue(Oe,e.setEmitFlags(A.createVariableStatement(void 0,A.createVariableDeclarationList(e.flattenDestructuringBinding(oe,C,v,0,A.getGeneratedNameForNode(oe)))),1048576)),!0):se?(e.insertStatementAfterCustomPrologue(Oe,e.setEmitFlags(A.createExpressionStatement(A.createAssignment(A.getGeneratedNameForNode(oe),e.visitNode(se,C,e.isExpression))),1048576)),!0):!1}function Ye(Oe,oe,mr,se){se=e.visitNode(se,C,e.isExpression);var Be=A.createIfStatement(A.createTypeCheck(A.cloneNode(mr),"undefined"),e.setEmitFlags(e.setTextRange(A.createBlock([A.createExpressionStatement(e.setEmitFlags(e.setTextRange(A.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(A.cloneNode(mr),mr),mr.parent),48),e.setEmitFlags(se,48|e.getEmitFlags(se)|1536)),oe),1536))]),oe),1953));e.startOnNewLine(Be),e.setTextRange(Be,oe),e.setEmitFlags(Be,1050528),e.insertStatementAfterCustomPrologue(Oe,Be)}function Lr(Oe,oe){return!!(Oe&&Oe.dotDotDotToken&&!oe)}function Er(Oe,oe,mr){var se=[],Be=e.lastOrUndefined(oe.parameters);if(!Lr(Be,mr))return!1;var er=Be.name.kind===79?e.setParent(e.setTextRange(A.cloneNode(Be.name),Be.name),Be.name.parent):A.createTempVariable(void 0);e.setEmitFlags(er,48);var hr=Be.name.kind===79?A.cloneNode(Be.name):er,qr=oe.parameters.length-1,Dt=A.createLoopVariable();se.push(e.setEmitFlags(e.setTextRange(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(er,void 0,void 0,A.createArrayLiteralExpression([]))])),Be),1048576));var Jt=A.createForStatement(e.setTextRange(A.createVariableDeclarationList([A.createVariableDeclaration(Dt,void 0,void 0,A.createNumericLiteral(qr))]),Be),e.setTextRange(A.createLessThan(Dt,A.createPropertyAccessExpression(A.createIdentifier("arguments"),"length")),Be),e.setTextRange(A.createPostfixIncrement(Dt),Be),A.createBlock([e.startOnNewLine(e.setTextRange(A.createExpressionStatement(A.createAssignment(A.createElementAccessExpression(hr,qr===0?Dt:A.createSubtract(Dt,A.createNumericLiteral(qr))),A.createElementAccessExpression(A.createIdentifier("arguments"),Dt))),Be))]));return e.setEmitFlags(Jt,1048576),e.startOnNewLine(Jt),se.push(Jt),Be.name.kind!==79&&se.push(e.setEmitFlags(e.setTextRange(A.createVariableStatement(void 0,A.createVariableDeclarationList(e.flattenDestructuringBinding(Be,C,v,0,hr))),Be),1048576)),e.insertStatementsAfterCustomPrologue(Oe,se),!0}function lr(Oe,oe){return K&65536&&oe.kind!==213?(Cr(Oe,oe,A.createThis()),!0):!1}function Cr(Oe,oe,mr){Po();var se=A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(A.createUniqueName("_this",48),void 0,void 0,mr)]));e.setEmitFlags(se,1050112),e.setSourceMapRange(se,oe),e.insertStatementAfterCustomPrologue(Oe,se)}function Or(Oe,oe,mr){if(K&32768){var se=void 0;switch(oe.kind){case 213:return Oe;case 168:case 171:case 172:se=A.createVoidZero();break;case 170:se=A.createPropertyAccessExpression(e.setEmitFlags(A.createThis(),4),"constructor");break;case 255:case 212:se=A.createConditionalExpression(A.createLogicalAnd(e.setEmitFlags(A.createThis(),4),A.createBinaryExpression(e.setEmitFlags(A.createThis(),4),102,A.getLocalName(oe))),void 0,A.createPropertyAccessExpression(e.setEmitFlags(A.createThis(),4),"constructor"),void 0,A.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(oe)}var Be=A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(A.createUniqueName("_newTarget",48),void 0,void 0,se)]));e.setEmitFlags(Be,1050112),mr&&(Oe=Oe.slice()),e.insertStatementAfterCustomPrologue(Oe,Be)}return Oe}function Ke(Oe,oe){for(var mr=0,se=oe.members;mr<se.length;mr++){var Be=se[mr];switch(Be.kind){case 233:Oe.push(Pe(Be));break;case 168:Oe.push(Hr(tn(oe,Be),Be,oe));break;case 171:case 172:var er=e.getAllAccessorDeclarations(oe.members,Be);Be===er.firstAccessor&&Oe.push(ur(tn(oe,Be),er,oe));break;case 170:case 169:break;default:e.Debug.failBadSyntaxKind(Be,x&&x.fileName);break}}}function Pe(Oe){return e.setTextRange(A.createEmptyStatement(),Oe)}function Hr(Oe,oe,mr){var se=e.getCommentRange(oe),Be=e.getSourceMapRange(oe),er=Dr(oe,oe,void 0,mr),hr=e.visitNode(oe.name,C,e.isPropertyName),qr;if(!e.isPrivateIdentifier(hr)&&e.getUseDefineForClassFields(v.getCompilerOptions())){var Dt=e.isComputedPropertyName(hr)?hr.expression:e.isIdentifier(hr)?A.createStringLiteral(e.unescapeLeadingUnderscores(hr.escapedText)):hr;qr=A.createObjectDefinePropertyCall(Oe,Dt,A.createPropertyDescriptor({value:er,enumerable:!1,writable:!0,configurable:!0}))}else{var Jt=e.createMemberAccessForPropertyName(A,Oe,hr,oe.name);qr=A.createAssignment(Jt,er)}e.setEmitFlags(er,1536),e.setSourceMapRange(er,Be);var Sn=e.setTextRange(A.createExpressionStatement(qr),oe);return e.setOriginalNode(Sn,oe),e.setCommentRange(Sn,se),e.setEmitFlags(Sn,48),Sn}function ur(Oe,oe,mr){var se=A.createExpressionStatement(vr(Oe,oe,mr,!1));return e.setEmitFlags(se,1536),e.setSourceMapRange(se,e.getSourceMapRange(oe.firstAccessor)),se}function vr(Oe,oe,mr,se){var Be=oe.firstAccessor,er=oe.getAccessor,hr=oe.setAccessor,qr=e.setParent(e.setTextRange(A.cloneNode(Oe),Oe),Oe.parent);e.setEmitFlags(qr,1568),e.setSourceMapRange(qr,Be.name);var Dt=e.visitNode(Be.name,C,e.isPropertyName);if(e.isPrivateIdentifier(Dt))return e.Debug.failBadSyntaxKind(Dt,"Encountered unhandled private identifier while transforming ES2015.");var Jt=e.createExpressionForPropertyName(A,Dt);e.setEmitFlags(Jt,1552),e.setSourceMapRange(Jt,Be.name);var Sn=[];if(er){var ta=Dr(er,void 0,void 0,mr);e.setSourceMapRange(ta,e.getSourceMapRange(er)),e.setEmitFlags(ta,512);var xa=A.createPropertyAssignment("get",ta);e.setCommentRange(xa,e.getCommentRange(er)),Sn.push(xa)}if(hr){var Di=Dr(hr,void 0,void 0,mr);e.setSourceMapRange(Di,e.getSourceMapRange(hr)),e.setEmitFlags(Di,512);var $a=A.createPropertyAssignment("set",Di);e.setCommentRange($a,e.getCommentRange(hr)),Sn.push($a)}Sn.push(A.createPropertyAssignment("enumerable",er||hr?A.createFalse():A.createTrue()),A.createPropertyAssignment("configurable",A.createTrue()));var Ji=A.createCallExpression(A.createPropertyAccessExpression(A.createIdentifier("Object"),"defineProperty"),void 0,[qr,Jt,A.createObjectLiteralExpression(Sn,!0)]);return se&&e.startOnNewLine(Ji),Ji}function de(Oe){Oe.transformFlags&8192&&!(K&16384)&&(K|=65536);var oe=R;R=void 0;var mr=$(15232,66),se=A.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(Oe.parameters,C,v),void 0,Fr(Oe));return e.setTextRange(se,Oe),e.setOriginalNode(se,Oe),e.setEmitFlags(se,8),T(mr,0,0),R=oe,se}function Fe(Oe){var oe=e.getEmitFlags(Oe)&262144?$(32662,69):$(32670,65),mr=R;R=void 0;var se=e.visitParameterList(Oe.parameters,C,v),Be=Fr(Oe),er=K&32768?A.getLocalName(Oe):Oe.name;return T(oe,98304,0),R=mr,A.updateFunctionExpression(Oe,void 0,Oe.asteriskToken,er,void 0,se,void 0,Be)}function $e(Oe){var oe=R;R=void 0;var mr=$(32670,65),se=e.visitParameterList(Oe.parameters,C,v),Be=Fr(Oe),er=K&32768?A.getLocalName(Oe):Oe.name;return T(mr,98304,0),R=oe,A.updateFunctionDeclaration(Oe,void 0,e.visitNodes(Oe.modifiers,C,e.isModifier),Oe.asteriskToken,er,void 0,se,void 0,Be)}function Dr(Oe,oe,mr,se){var Be=R;R=void 0;var er=se&&e.isClassLike(se)&&!e.isStatic(Oe)?$(32670,73):$(32670,65),hr=e.visitParameterList(Oe.parameters,C,v),qr=Fr(Oe);return K&32768&&!mr&&(Oe.kind===255||Oe.kind===212)&&(mr=A.getGeneratedNameForNode(Oe)),T(er,98304,0),R=Be,e.setOriginalNode(e.setTextRange(A.createFunctionExpression(void 0,Oe.asteriskToken,mr,void 0,hr,void 0,qr),oe),Oe)}function Fr(Oe){var oe=!1,mr=!1,se,Be,er=[],hr=[],qr=Oe.body,Dt;if(b(),e.isBlock(qr)&&(Dt=A.copyStandardPrologue(qr.statements,er,!1),Dt=A.copyCustomPrologue(qr.statements,hr,Dt,C,e.isHoistedFunction),Dt=A.copyCustomPrologue(qr.statements,hr,Dt,C,e.isHoistedVariableStatement)),oe=De(hr,Oe)||oe,oe=Er(hr,Oe,!1)||oe,e.isBlock(qr))Dt=A.copyCustomPrologue(qr.statements,hr,Dt,C),se=qr.statements,e.addRange(hr,e.visitNodes(qr.statements,C,e.isStatement,Dt)),!oe&&qr.multiLine&&(oe=!0);else{e.Debug.assert(Oe.kind===213),se=e.moveRangeEnd(qr,-1);var Jt=Oe.equalsGreaterThanToken;!e.nodeIsSynthesized(Jt)&&!e.nodeIsSynthesized(qr)&&(e.rangeEndIsOnSameLineAsRangeStart(Jt,qr,x)?mr=!0:oe=!0);var Sn=e.visitNode(qr,C,e.isExpression),ta=A.createReturnStatement(Sn);e.setTextRange(ta,qr),e.moveSyntheticComments(ta,qr),e.setEmitFlags(ta,1440),hr.push(ta),Be=qr}if(A.mergeLexicalEnvironment(er,P()),Or(er,Oe,!1),lr(er,Oe),e.some(er)&&(oe=!0),hr.unshift.apply(hr,er),e.isBlock(qr)&&e.arrayIsEqualTo(hr,qr.statements))return qr;var xa=A.createBlock(e.setTextRange(A.createNodeArray(hr),se),oe);return e.setTextRange(xa,Oe.body),!oe&&mr&&e.setEmitFlags(xa,1),Be&&e.setTokenSourceMapRange(xa,19,Be),e.setOriginalNode(xa,Oe.body),xa}function He(Oe,oe){if(oe)return e.visitEachChild(Oe,C,v);var mr=K&256?$(7104,512):$(6976,128),se=e.visitEachChild(Oe,C,v);return T(mr,0,0),se}function pr(Oe){return e.visitEachChild(Oe,m,v)}function Jr(Oe,oe){return e.visitEachChild(Oe,oe?m:C,v)}function ze(Oe,oe){return e.isDestructuringAssignment(Oe)?e.flattenDestructuringAssignment(Oe,C,v,0,!oe):Oe.operatorToken.kind===27?A.updateBinaryExpression(Oe,e.visitNode(Oe.left,m,e.isExpression),Oe.operatorToken,e.visitNode(Oe.right,oe?m:C,e.isExpression)):e.visitEachChild(Oe,C,v)}function Ar(Oe,oe){if(oe)return e.visitEachChild(Oe,m,v);for(var mr,se=0;se<Oe.elements.length;se++){var Be=Oe.elements[se],er=e.visitNode(Be,se<Oe.elements.length-1?m:C,e.isExpression);(mr||er!==Be)&&(mr||(mr=Oe.elements.slice(0,se)),mr.push(er))}var hr=mr?e.setTextRange(A.createNodeArray(mr),Oe.elements):Oe.elements;return A.updateCommaListExpression(Oe,hr)}function Yr(Oe){return Oe.declarationList.declarations.length===1&&!!Oe.declarationList.declarations[0].initializer&&!!(e.getEmitFlags(Oe.declarationList.declarations[0].initializer)&33554432)}function lt(Oe){var oe=$(0,e.hasSyntacticModifier(Oe,1)?32:0),mr;if(R&&(Oe.declarationList.flags&3)===0&&!Yr(Oe)){for(var se=void 0,Be=0,er=Oe.declarationList.declarations;Be<er.length;Be++){var hr=er[Be];if(Ir(R,hr),hr.initializer){var qr=void 0;e.isBindingPattern(hr.name)?qr=e.flattenDestructuringAssignment(hr,C,v,0):(qr=A.createBinaryExpression(hr.name,63,e.visitNode(hr.initializer,C,e.isExpression)),e.setTextRange(qr,hr)),se=e.append(se,qr)}}se?mr=e.setTextRange(A.createExpressionStatement(A.inlineExpressions(se)),Oe):mr=void 0}else mr=e.visitEachChild(Oe,C,v);return T(oe,0,0),mr}function tt(Oe){if(Oe.flags&3||Oe.transformFlags&262144){Oe.flags&3&&Zi();var oe=e.flatMap(Oe.declarations,Oe.flags&1?bn:In),mr=A.createVariableDeclarationList(oe);return e.setOriginalNode(mr,Oe),e.setTextRange(mr,Oe),e.setCommentRange(mr,Oe),Oe.transformFlags&262144&&(e.isBindingPattern(Oe.declarations[0].name)||e.isBindingPattern(e.last(Oe.declarations).name))&&e.setSourceMapRange(mr,Rt(oe)),mr}return e.visitEachChild(Oe,C,v)}function Rt(Oe){for(var oe=-1,mr=-1,se=0,Be=Oe;se<Be.length;se++){var er=Be[se];oe=oe===-1?er.pos:er.pos===-1?oe:Math.min(oe,er.pos),mr=Math.max(mr,er.end)}return e.createRange(oe,mr)}function cn(Oe){var oe=J.getNodeCheckFlags(Oe),mr=oe&262144,se=oe&524288,Be=(K&64)!==0||mr&&se&&(K&512)!==0,er=!Be&&(K&4096)===0&&(!J.isDeclarationWithCollidingName(Oe)||se&&!mr&&(K&6144)===0);return er}function bn(Oe){var oe=Oe.name;return e.isBindingPattern(oe)?In(Oe):!Oe.initializer&&cn(Oe)?A.updateVariableDeclaration(Oe,Oe.name,void 0,void 0,A.createVoidZero()):e.visitEachChild(Oe,C,v)}function In(Oe){var oe=$(32,0),mr;return e.isBindingPattern(Oe.name)?mr=e.flattenDestructuringBinding(Oe,C,v,0,void 0,(oe&32)!==0):mr=e.visitEachChild(Oe,C,v),T(oe,0,0),mr}function zn(Oe){R.labels.set(e.idText(Oe.label),!0)}function ir(Oe){R.labels.set(e.idText(Oe.label),!1)}function Rr(Oe){R&&!R.labels&&(R.labels=new e.Map);var oe=e.unwrapInnermostStatementOfLabel(Oe,R&&zn);return e.isIterationStatement(oe,!1)?sr(oe,Oe):A.restoreEnclosingLabel(e.visitNode(oe,C,e.isStatement,A.liftToBlock),Oe,R&&ir)}function sr(Oe,oe){switch(Oe.kind){case 239:case 240:return or(Oe,oe);case 241:return fe(Oe,oe);case 242:return Ee(Oe,oe);case 243:return We(Oe,oe)}}function ye(Oe,oe,mr,se,Be){var er=$(Oe,oe),hr=kr(mr,se,er,Be);return T(er,0,0),hr}function or(Oe,oe){return ye(0,1280,Oe,oe)}function fe(Oe,oe){return ye(5056,3328,Oe,oe)}function je(Oe){return A.updateForStatement(Oe,e.visitNode(Oe.initializer,m,e.isForInitializer),e.visitNode(Oe.condition,C,e.isExpression),e.visitNode(Oe.incrementor,m,e.isExpression),e.visitNode(Oe.statement,C,e.isStatement,A.liftToBlock))}function Ee(Oe,oe){return ye(3008,5376,Oe,oe)}function We(Oe,oe){return ye(3008,5376,Oe,oe,B.downlevelIteration?Ze:me)}function ee(Oe,oe,mr){var se=[],Be=Oe.initializer;if(e.isVariableDeclarationList(Be)){Oe.initializer.flags&3&&Zi();var er=e.firstOrUndefined(Be.declarations);if(er&&e.isBindingPattern(er.name)){var hr=e.flattenDestructuringBinding(er,C,v,0,oe),qr=e.setTextRange(A.createVariableDeclarationList(hr),Oe.initializer);e.setOriginalNode(qr,Oe.initializer),e.setSourceMapRange(qr,e.createRange(hr[0].pos,e.last(hr).end)),se.push(A.createVariableStatement(void 0,qr))}else se.push(e.setTextRange(A.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(A.createVariableDeclarationList([A.createVariableDeclaration(er?er.name:A.createTempVariable(void 0),void 0,void 0,oe)]),e.moveRangePos(Be,-1)),Be)),e.moveRangeEnd(Be,-1)))}else{var Dt=A.createAssignment(Be,oe);e.isDestructuringAssignment(Dt)?se.push(A.createExpressionStatement(ze(Dt,!0))):(e.setTextRangeEnd(Dt,Be.end),se.push(e.setTextRange(A.createExpressionStatement(e.visitNode(Dt,C,e.isExpression)),e.moveRangeEnd(Be,-1))))}if(mr)return Ne(e.addRange(se,mr));var Jt=e.visitNode(Oe.statement,C,e.isStatement,A.liftToBlock);return e.isBlock(Jt)?A.updateBlock(Jt,e.setTextRange(A.createNodeArray(e.concatenate(se,Jt.statements)),Jt.statements)):(se.push(Jt),Ne(se))}function Ne(Oe){return e.setEmitFlags(A.createBlock(A.createNodeArray(Oe),!0),432)}function me(Oe,oe,mr){var se=e.visitNode(Oe.expression,C,e.isExpression),Be=A.createLoopVariable(),er=e.isIdentifier(se)?A.getGeneratedNameForNode(se):A.createTempVariable(void 0);e.setEmitFlags(se,48|e.getEmitFlags(se));var hr=e.setTextRange(A.createForStatement(e.setEmitFlags(e.setTextRange(A.createVariableDeclarationList([e.setTextRange(A.createVariableDeclaration(Be,void 0,void 0,A.createNumericLiteral(0)),e.moveRangePos(Oe.expression,-1)),e.setTextRange(A.createVariableDeclaration(er,void 0,void 0,se),Oe.expression)]),Oe.expression),2097152),e.setTextRange(A.createLessThan(Be,A.createPropertyAccessExpression(er,"length")),Oe.expression),e.setTextRange(A.createPostfixIncrement(Be),Oe.expression),ee(Oe,A.createElementAccessExpression(er,Be),mr)),Oe);return e.setEmitFlags(hr,256),e.setTextRange(hr,Oe),A.restoreEnclosingLabel(hr,oe,R&&ir)}function Ze(Oe,oe,mr,se){var Be=e.visitNode(Oe.expression,C,e.isExpression),er=e.isIdentifier(Be)?A.getGeneratedNameForNode(Be):A.createTempVariable(void 0),hr=e.isIdentifier(Be)?A.getGeneratedNameForNode(er):A.createTempVariable(void 0),qr=A.createUniqueName("e"),Dt=A.getGeneratedNameForNode(qr),Jt=A.createTempVariable(void 0),Sn=e.setTextRange(q().createValuesHelper(Be),Oe.expression),ta=A.createCallExpression(A.createPropertyAccessExpression(er,"next"),void 0,[]);S(qr),S(Jt);var xa=se&1024?A.inlineExpressions([A.createAssignment(qr,A.createVoidZero()),Sn]):Sn,Di=e.setEmitFlags(e.setTextRange(A.createForStatement(e.setEmitFlags(e.setTextRange(A.createVariableDeclarationList([e.setTextRange(A.createVariableDeclaration(er,void 0,void 0,xa),Oe.expression),A.createVariableDeclaration(hr,void 0,void 0,ta)]),Oe.expression),2097152),A.createLogicalNot(A.createPropertyAccessExpression(hr,"done")),A.createAssignment(hr,ta),ee(Oe,A.createPropertyAccessExpression(hr,"value"),mr)),Oe),256);return A.createTryStatement(A.createBlock([A.restoreEnclosingLabel(Di,oe,R&&ir)]),A.createCatchClause(A.createVariableDeclaration(Dt),e.setEmitFlags(A.createBlock([A.createExpressionStatement(A.createAssignment(qr,A.createObjectLiteralExpression([A.createPropertyAssignment("error",Dt)])))]),1)),A.createBlock([A.createTryStatement(A.createBlock([e.setEmitFlags(A.createIfStatement(A.createLogicalAnd(A.createLogicalAnd(hr,A.createLogicalNot(A.createPropertyAccessExpression(hr,"done"))),A.createAssignment(Jt,A.createPropertyAccessExpression(er,"return"))),A.createExpressionStatement(A.createFunctionCallCall(Jt,er,[]))),1)]),void 0,e.setEmitFlags(A.createBlock([e.setEmitFlags(A.createIfStatement(qr,A.createThrowStatement(A.createPropertyAccessExpression(qr,"error"))),1)]),1))]))}function xr(Oe){for(var oe=Oe.properties,mr=-1,se=!1,Be=0;Be<oe.length;Be++){var er=oe[Be];if(er.transformFlags&524288&&K&4||(se=e.Debug.checkDefined(er.name).kind===161)){mr=Be;break}}if(mr<0)return e.visitEachChild(Oe,C,v);var hr=A.createTempVariable(S),qr=[],Dt=A.createAssignment(hr,e.setEmitFlags(A.createObjectLiteralExpression(e.visitNodes(oe,C,e.isObjectLiteralElementLike,0,mr),Oe.multiLine),se?65536:0));return Oe.multiLine&&e.startOnNewLine(Dt),qr.push(Dt),qt(qr,Oe,hr,mr),qr.push(Oe.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(A.cloneNode(hr),hr),hr.parent)):hr),A.inlineExpressions(qr)}function fr(Oe){return(J.getNodeCheckFlags(Oe)&131072)!==0}function dr(Oe){return e.isForStatement(Oe)&&!!Oe.initializer&&fr(Oe.initializer)}function et(Oe){return e.isForStatement(Oe)&&!!Oe.condition&&fr(Oe.condition)}function yt(Oe){return e.isForStatement(Oe)&&!!Oe.incrementor&&fr(Oe.incrementor)}function Wr(Oe){return tr(Oe)||dr(Oe)}function tr(Oe){return(J.getNodeCheckFlags(Oe)&65536)!==0}function Ir(Oe,oe){Oe.hoistedLocalVariables||(Oe.hoistedLocalVariables=[]),mr(oe.name);function mr(se){if(se.kind===79)Oe.hoistedLocalVariables.push(se);else for(var Be=0,er=se.elements;Be<er.length;Be++){var hr=er[Be];e.isOmittedExpression(hr)||mr(hr.name)}}}function kr(Oe,oe,mr,se){if(!Wr(Oe)){var Be=void 0;R&&(Be=R.allowedNonLabeledJumps,R.allowedNonLabeledJumps=6);var er=se?se(Oe,oe,void 0,mr):A.restoreEnclosingLabel(e.isForStatement(Oe)?je(Oe):e.visitEachChild(Oe,C,v),oe,R&&ir);return R&&(R.allowedNonLabeledJumps=Be),er}var hr=wt(Oe),qr=[],Dt=R;R=hr;var Jt=dr(Oe)?rn(Oe,hr):void 0,Sn=tr(Oe)?sa(Oe,hr,Dt):void 0;R=Dt,Jt&&qr.push(Jt.functionDeclaration),Sn&&qr.push(Sn.functionDeclaration),Qt(qr,hr,Dt),Jt&&qr.push(na(Jt.functionName,Jt.containsYield));var ta;if(Sn)if(se)ta=se(Oe,oe,Sn.part,mr);else{var xa=zr(Oe,Jt,A.createBlock(Sn.part,!0));ta=A.restoreEnclosingLabel(xa,oe,R&&ir)}else{var Di=zr(Oe,Jt,e.visitNode(Oe.statement,C,e.isStatement,A.liftToBlock));ta=A.restoreEnclosingLabel(Di,oe,R&&ir)}return qr.push(ta),qr}function zr(Oe,oe,mr){switch(Oe.kind){case 241:return gt(Oe,oe,mr);case 242:return ut(Oe,mr);case 243:return vt(Oe,mr);case 239:return ht(Oe,mr);case 240:return xt(Oe,mr);default:return e.Debug.failBadSyntaxKind(Oe,"IterationStatement expected")}}function gt(Oe,oe,mr){var se=Oe.condition&&fr(Oe.condition),Be=se||Oe.incrementor&&fr(Oe.incrementor);return A.updateForStatement(Oe,e.visitNode(oe?oe.part:Oe.initializer,m,e.isForInitializer),e.visitNode(se?void 0:Oe.condition,C,e.isExpression),e.visitNode(Be?void 0:Oe.incrementor,m,e.isExpression),mr)}function vt(Oe,oe){return A.updateForOfStatement(Oe,void 0,e.visitNode(Oe.initializer,C,e.isForInitializer),e.visitNode(Oe.expression,C,e.isExpression),oe)}function ut(Oe,oe){return A.updateForInStatement(Oe,e.visitNode(Oe.initializer,C,e.isForInitializer),e.visitNode(Oe.expression,C,e.isExpression),oe)}function ht(Oe,oe){return A.updateDoStatement(Oe,oe,e.visitNode(Oe.expression,C,e.isExpression))}function xt(Oe,oe){return A.updateWhileStatement(Oe,e.visitNode(Oe.expression,C,e.isExpression),oe)}function wt(Oe){var oe;switch(Oe.kind){case 241:case 242:case 243:var mr=Oe.initializer;mr&&mr.kind===254&&(oe=mr);break}var se=[],Be=[];if(oe&&e.getCombinedNodeFlags(oe)&3)for(var er=dr(Oe),hr=0,qr=oe.declarations;hr<qr.length;hr++){var Dt=qr[hr];Ut(Oe,Dt,se,Be,er)}var Jt={loopParameters:se,loopOutParameters:Be};return R&&(R.argumentsName&&(Jt.argumentsName=R.argumentsName),R.thisName&&(Jt.thisName=R.thisName),R.hoistedLocalVariables&&(Jt.hoistedLocalVariables=R.hoistedLocalVariables)),Jt}function Qt(Oe,oe,mr){var se;if(oe.argumentsName&&(mr?mr.argumentsName=oe.argumentsName:(se||(se=[])).push(A.createVariableDeclaration(oe.argumentsName,void 0,void 0,A.createIdentifier("arguments")))),oe.thisName&&(mr?mr.thisName=oe.thisName:(se||(se=[])).push(A.createVariableDeclaration(oe.thisName,void 0,void 0,A.createIdentifier("this")))),oe.hoistedLocalVariables)if(mr)mr.hoistedLocalVariables=oe.hoistedLocalVariables;else{se||(se=[]);for(var Be=0,er=oe.hoistedLocalVariables;Be<er.length;Be++){var hr=er[Be];se.push(A.createVariableDeclaration(hr))}}if(oe.loopOutParameters.length){se||(se=[]);for(var qr=0,Dt=oe.loopOutParameters;qr<Dt.length;qr++){var Jt=Dt[qr];se.push(A.createVariableDeclaration(Jt.outParamName))}}oe.conditionVariable&&(se||(se=[]),se.push(A.createVariableDeclaration(oe.conditionVariable,void 0,void 0,A.createFalse()))),se&&Oe.push(A.createVariableStatement(void 0,A.createVariableDeclarationList(se)))}function mt(Oe){return A.createVariableDeclaration(Oe.originalName,void 0,void 0,Oe.outParamName)}function rn(Oe,oe){var mr=A.createUniqueName("_loop_init"),se=(Oe.initializer.transformFlags&524288)!==0,Be=0;oe.containsLexicalThis&&(Be|=8),se&&K&4&&(Be|=262144);var er=[];er.push(A.createVariableStatement(void 0,Oe.initializer)),Jn(oe.loopOutParameters,2,1,er);var hr=A.createVariableStatement(void 0,e.setEmitFlags(A.createVariableDeclarationList([A.createVariableDeclaration(mr,void 0,void 0,e.setEmitFlags(A.createFunctionExpression(void 0,se?A.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(A.createBlock(er,!0),C,e.isBlock)),Be))]),2097152)),qr=A.createVariableDeclarationList(e.map(oe.loopOutParameters,mt));return{functionName:mr,containsYield:se,functionDeclaration:hr,part:qr}}function sa(Oe,oe,mr){var se=A.createUniqueName("_loop");ie();var Be=e.visitNode(Oe.statement,C,e.isStatement,A.liftToBlock),er=P(),hr=[];(et(Oe)||yt(Oe))&&(oe.conditionVariable=A.createUniqueName("inc"),Oe.incrementor?hr.push(A.createIfStatement(oe.conditionVariable,A.createExpressionStatement(e.visitNode(Oe.incrementor,C,e.isExpression)),A.createExpressionStatement(A.createAssignment(oe.conditionVariable,A.createTrue())))):hr.push(A.createIfStatement(A.createLogicalNot(oe.conditionVariable),A.createExpressionStatement(A.createAssignment(oe.conditionVariable,A.createTrue())))),et(Oe)&&hr.push(A.createIfStatement(A.createPrefixUnaryExpression(53,e.visitNode(Oe.condition,C,e.isExpression)),e.visitNode(A.createBreakStatement(),C,e.isStatement)))),e.isBlock(Be)?e.addRange(hr,Be.statements):hr.push(Be),Jn(oe.loopOutParameters,1,1,hr),e.insertStatementsAfterStandardPrologue(hr,er);var qr=A.createBlock(hr,!0);e.isBlock(Be)&&e.setOriginalNode(qr,Be);var Dt=(Oe.statement.transformFlags&524288)!==0,Jt=524288;oe.containsLexicalThis&&(Jt|=8),Dt&&(K&4)!==0&&(Jt|=262144);var Sn=A.createVariableStatement(void 0,e.setEmitFlags(A.createVariableDeclarationList([A.createVariableDeclaration(se,void 0,void 0,e.setEmitFlags(A.createFunctionExpression(void 0,Dt?A.createToken(41):void 0,void 0,void 0,oe.loopParameters,void 0,qr),Jt))]),2097152)),ta=Wn(se,oe,mr,Dt);return{functionName:se,containsYield:Dt,functionDeclaration:Sn,part:ta}}function ba(Oe,oe){var mr=oe===0?Oe.outParamName:Oe.originalName,se=oe===0?Oe.originalName:Oe.outParamName;return A.createBinaryExpression(se,63,mr)}function Jn(Oe,oe,mr,se){for(var Be=0,er=Oe;Be<er.length;Be++){var hr=er[Be];hr.flags&oe&&se.push(A.createExpressionStatement(ba(hr,mr)))}}function na(Oe,oe){var mr=A.createCallExpression(Oe,void 0,[]),se=oe?A.createYieldExpression(A.createToken(41),e.setEmitFlags(mr,8388608)):mr;return A.createExpressionStatement(se)}function Wn(Oe,oe,mr,se){var Be=[],er=!(oe.nonLocalJumps&-5)&&!oe.labeledNonLocalBreaks&&!oe.labeledNonLocalContinues,hr=A.createCallExpression(Oe,void 0,e.map(oe.loopParameters,function(xa){return xa.name})),qr=se?A.createYieldExpression(A.createToken(41),e.setEmitFlags(hr,8388608)):hr;if(er)Be.push(A.createExpressionStatement(qr)),Jn(oe.loopOutParameters,1,0,Be);else{var Dt=A.createUniqueName("state"),Jt=A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(Dt,void 0,void 0,qr)]));if(Be.push(Jt),Jn(oe.loopOutParameters,1,0,Be),oe.nonLocalJumps&8){var Sn=void 0;mr?(mr.nonLocalJumps|=8,Sn=A.createReturnStatement(Dt)):Sn=A.createReturnStatement(A.createPropertyAccessExpression(Dt,"value")),Be.push(A.createIfStatement(A.createTypeCheck(Dt,"object"),Sn))}if(oe.nonLocalJumps&2&&Be.push(A.createIfStatement(A.createStrictEquality(Dt,A.createStringLiteral("break")),A.createBreakStatement())),oe.labeledNonLocalBreaks||oe.labeledNonLocalContinues){var ta=[];St(oe.labeledNonLocalBreaks,!0,Dt,mr,ta),St(oe.labeledNonLocalContinues,!1,Dt,mr,ta),Be.push(A.createSwitchStatement(Dt,A.createCaseBlock(ta)))}}return Be}function en(Oe,oe,mr,se){oe?(Oe.labeledNonLocalBreaks||(Oe.labeledNonLocalBreaks=new e.Map),Oe.labeledNonLocalBreaks.set(mr,se)):(Oe.labeledNonLocalContinues||(Oe.labeledNonLocalContinues=new e.Map),Oe.labeledNonLocalContinues.set(mr,se))}function St(Oe,oe,mr,se,Be){!Oe||Oe.forEach(function(er,hr){var qr=[];if(!se||se.labels&&se.labels.get(hr)){var Dt=A.createIdentifier(hr);qr.push(oe?A.createBreakStatement(Dt):A.createContinueStatement(Dt))}else en(se,oe,hr,er),qr.push(A.createReturnStatement(mr));Be.push(A.createCaseClause(A.createStringLiteral(er),qr))})}function Ut(Oe,oe,mr,se,Be){var er=oe.name;if(e.isBindingPattern(er))for(var hr=0,qr=er.elements;hr<qr.length;hr++){var Dt=qr[hr];e.isOmittedExpression(Dt)||Ut(Oe,Dt,mr,se,Be)}else{mr.push(A.createParameterDeclaration(void 0,void 0,void 0,er));var Jt=J.getNodeCheckFlags(oe);if(Jt&4194304||Be){var Sn=A.createUniqueName("out_"+e.idText(er)),ta=0;Jt&4194304&&(ta|=1),e.isForStatement(Oe)&&Oe.initializer&&J.isBindingCapturedByNode(Oe.initializer,oe)&&(ta|=2),se.push({flags:ta,originalName:er,outParamName:Sn})}}}function qt(Oe,oe,mr,se){for(var Be=oe.properties,er=Be.length,hr=se;hr<er;hr++){var qr=Be[hr];switch(qr.kind){case 171:case 172:var Dt=e.getAllAccessorDeclarations(oe.properties,qr);qr===Dt.firstAccessor&&Oe.push(vr(mr,Dt,oe,!!oe.multiLine));break;case 168:Oe.push(oa(qr,mr,oe,oe.multiLine));break;case 294:Oe.push(Pn(qr,mr,oe.multiLine));break;case 295:Oe.push(dn(qr,mr,oe.multiLine));break;default:e.Debug.failBadSyntaxKind(oe);break}}}function Pn(Oe,oe,mr){var se=A.createAssignment(e.createMemberAccessForPropertyName(A,oe,e.visitNode(Oe.name,C,e.isPropertyName)),e.visitNode(Oe.initializer,C,e.isExpression));return e.setTextRange(se,Oe),mr&&e.startOnNewLine(se),se}function dn(Oe,oe,mr){var se=A.createAssignment(e.createMemberAccessForPropertyName(A,oe,e.visitNode(Oe.name,C,e.isPropertyName)),A.cloneNode(Oe.name));return e.setTextRange(se,Oe),mr&&e.startOnNewLine(se),se}function oa(Oe,oe,mr,se){var Be=A.createAssignment(e.createMemberAccessForPropertyName(A,oe,e.visitNode(Oe.name,C,e.isPropertyName)),Dr(Oe,Oe,void 0,mr));return e.setTextRange(Be,Oe),se&&e.startOnNewLine(Be),Be}function pt(Oe){var oe=$(7104,0),mr;if(e.Debug.assert(!!Oe.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(Oe.variableDeclaration.name)){var se=A.createTempVariable(void 0),Be=A.createVariableDeclaration(se);e.setTextRange(Be,Oe.variableDeclaration);var er=e.flattenDestructuringBinding(Oe.variableDeclaration,C,v,0,se),hr=A.createVariableDeclarationList(er);e.setTextRange(hr,Oe.variableDeclaration);var qr=A.createVariableStatement(void 0,hr);mr=A.updateCatchClause(Oe,Be,_t(Oe.block,qr))}else mr=e.visitEachChild(Oe,C,v);return T(oe,0,0),mr}function _t(Oe,oe){var mr=e.visitNodes(Oe.statements,C,e.isStatement);return A.updateBlock(Oe,Gt([oe],mr,!0))}function Pt(Oe){e.Debug.assert(!e.isComputedPropertyName(Oe.name));var oe=Dr(Oe,e.moveRangePos(Oe,-1),void 0,void 0);return e.setEmitFlags(oe,512|e.getEmitFlags(oe)),e.setTextRange(A.createPropertyAssignment(Oe.name,oe),Oe)}function It(Oe){e.Debug.assert(!e.isComputedPropertyName(Oe.name));var oe=R;R=void 0;var mr=$(32670,65),se,Be=e.visitParameterList(Oe.parameters,C,v),er=Fr(Oe);return Oe.kind===171?se=A.updateGetAccessorDeclaration(Oe,Oe.decorators,Oe.modifiers,Oe.name,Be,Oe.type,er):se=A.updateSetAccessorDeclaration(Oe,Oe.decorators,Oe.modifiers,Oe.name,Be,er),T(mr,98304,0),R=oe,se}function rt(Oe){return e.setTextRange(A.createPropertyAssignment(Oe.name,Q(A.cloneNode(Oe.name))),Oe)}function Cn(Oe){return e.visitEachChild(Oe,C,v)}function Qn(Oe){return e.visitEachChild(Oe,C,v)}function Ra(Oe){return e.some(Oe.elements,e.isSpreadElement)?Ka(Oe.elements,!1,!!Oe.multiLine,!!Oe.elements.hasTrailingComma):e.visitEachChild(Oe,C,v)}function Ci(Oe){if(e.getEmitFlags(Oe)&33554432)return _i(Oe);var oe=e.skipOuterExpressions(Oe.expression);return oe.kind===106||e.isSuperProperty(oe)||e.some(Oe.arguments,e.isSpreadElement)?yi(Oe,!0):A.updateCallExpression(Oe,e.visitNode(Oe.expression,g,e.isExpression),void 0,e.visitNodes(Oe.arguments,C,e.isExpression))}function _i(Oe){var oe=e.cast(e.cast(e.skipOuterExpressions(Oe.expression),e.isArrowFunction).body,e.isBlock),mr=function(bt){return e.isVariableStatement(bt)&&!!e.first(bt.declarationList.declarations).initializer},se=R;R=void 0;var Be=e.visitNodes(oe.statements,u,e.isStatement);R=se;var er=e.filter(Be,mr),hr=e.filter(Be,function(bt){return!mr(bt)}),qr=e.cast(e.first(er),e.isVariableStatement),Dt=qr.declarationList.declarations[0],Jt=e.skipOuterExpressions(Dt.initializer),Sn=e.tryCast(Jt,e.isAssignmentExpression);!Sn&&e.isBinaryExpression(Jt)&&Jt.operatorToken.kind===27&&(Sn=e.tryCast(Jt.left,e.isAssignmentExpression));var ta=e.cast(Sn?e.skipOuterExpressions(Sn.right):Jt,e.isCallExpression),xa=e.cast(e.skipOuterExpressions(ta.expression),e.isFunctionExpression),Di=xa.body.statements,$a=0,Ji=-1,So=[];if(Sn){var cs=e.tryCast(Di[$a],e.isExpressionStatement);cs&&(So.push(cs),$a++),So.push(Di[$a]),$a++,So.push(A.createExpressionStatement(A.createAssignment(Sn.left,e.cast(Dt.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(Di,Ji));)Ji--;return e.addRange(So,Di,$a,Ji),Ji<-1&&e.addRange(So,Di,Ji+1),e.addRange(So,hr),e.addRange(So,er,1),A.restoreOuterExpressions(Oe.expression,A.restoreOuterExpressions(Dt.initializer,A.restoreOuterExpressions(Sn&&Sn.right,A.updateCallExpression(ta,A.restoreOuterExpressions(ta.expression,A.updateFunctionExpression(xa,void 0,void 0,void 0,void 0,xa.parameters,void 0,A.updateBlock(xa.body,So))),void 0,ta.arguments))))}function va(Oe){return yi(Oe,!1)}function yi(Oe,oe){if(Oe.transformFlags&16384||Oe.expression.kind===106||e.isSuperProperty(e.skipOuterExpressions(Oe.expression))){var mr=A.createCallBinding(Oe.expression,S),se=mr.target,Be=mr.thisArg;Oe.expression.kind===106&&e.setEmitFlags(Be,4);var er=void 0;if(Oe.transformFlags&16384?er=A.createFunctionApplyCall(e.visitNode(se,g,e.isExpression),Oe.expression.kind===106?Be:e.visitNode(Be,C,e.isExpression),Ka(Oe.arguments,!0,!1,!1)):er=e.setTextRange(A.createFunctionCallCall(e.visitNode(se,g,e.isExpression),Oe.expression.kind===106?Be:e.visitNode(Be,C,e.isExpression),e.visitNodes(Oe.arguments,C,e.isExpression)),Oe),Oe.expression.kind===106){var hr=A.createLogicalOr(er,_e());er=oe?A.createAssignment(A.createUniqueName("_this",48),hr):hr}return e.setOriginalNode(er,Oe)}return e.visitEachChild(Oe,C,v)}function ro(Oe){if(e.some(Oe.arguments,e.isSpreadElement)){var oe=A.createCallBinding(A.createPropertyAccessExpression(Oe.expression,"bind"),S),mr=oe.target,se=oe.thisArg;return A.createNewExpression(A.createFunctionApplyCall(e.visitNode(mr,C,e.isExpression),se,Ka(A.createNodeArray(Gt([A.createVoidZero()],Oe.arguments,!0)),!0,!1,!1)),void 0,[])}return e.visitEachChild(Oe,C,v)}function Ka(Oe,oe,mr,se){var Be=Oe.length,er=e.flatten(e.spanMap(Oe,Pi,function(xa,Di,$a,Ji){return Di(xa,mr,se&&Ji===Be)}));if(er.length===1){var hr=er[0];if(oe&&!B.downlevelIteration||e.isPackedArrayLiteral(hr.expression)||e.isCallToHelper(hr.expression,"___spreadArray"))return hr.expression}for(var qr=q(),Dt=er[0].kind!==0,Jt=Dt?A.createArrayLiteralExpression():er[0].expression,Sn=Dt?0:1;Sn<er.length;Sn++){var ta=er[Sn];Jt=qr.createSpreadArrayHelper(Jt,ta.expression,ta.kind===1&&!oe)}return Jt}function Pi(Oe){return e.isSpreadElement(Oe)?io:Hi}function io(Oe){return e.map(Oe,ji)}function ji(Oe){var oe=e.visitNode(Oe.expression,C,e.isExpression),mr=e.isCallToHelper(oe,"___read"),se=mr||e.isPackedArrayLiteral(oe)?2:1;return B.downlevelIteration&&se===1&&!e.isArrayLiteralExpression(oe)&&!mr&&(oe=q().createReadHelper(oe,void 0),se=2),H(se,oe)}function Hi(Oe,oe,mr){var se=A.createArrayLiteralExpression(e.visitNodes(A.createNodeArray(Oe,mr),C,e.isExpression),oe);return H(0,se)}function to(Oe){return e.visitNode(Oe.expression,C,e.isExpression)}function No(Oe){return e.setTextRange(A.createStringLiteral(Oe.text),Oe)}function lo(Oe){return Oe.hasExtendedUnicodeEscape?e.setTextRange(A.createStringLiteral(Oe.text),Oe):Oe}function Lo(Oe){return Oe.numericLiteralFlags&384?e.setTextRange(A.createNumericLiteral(Oe.text),Oe):Oe}function Ha(Oe){return e.processTaggedTemplateExpression(v,Oe,C,x,ne,e.ProcessLevel.All)}function Yo(Oe){for(var oe=A.createStringLiteral(Oe.head.text),mr=0,se=Oe.templateSpans;mr<se.length;mr++){var Be=se[mr],er=[e.visitNode(Be.expression,C,e.isExpression)];Be.literal.text.length>0&&er.push(A.createStringLiteral(Be.literal.text)),oe=A.createCallExpression(A.createPropertyAccessExpression(oe,"concat"),void 0,er)}return e.setTextRange(oe,Oe)}function co(Oe){return K&8&&!Oe?A.createPropertyAccessExpression(A.createUniqueName("_super",48),"prototype"):A.createUniqueName("_super",48)}function za(Oe){return Oe.keywordToken===103&&Oe.name.escapedText==="target"?(K|=32768,A.createUniqueName("_newTarget",48)):Oe}function hi(Oe,oe,mr){if(Y&1&&e.isFunctionLike(oe)){var se=$(32670,e.getEmitFlags(oe)&8?81:65);M(Oe,oe,mr),T(se,0,0);return}M(Oe,oe,mr)}function Zi(){(Y&2)===0&&(Y|=2,v.enableSubstitution(79))}function Po(){(Y&1)===0&&(Y|=1,v.enableSubstitution(108),v.enableEmitNotification(170),v.enableEmitNotification(168),v.enableEmitNotification(171),v.enableEmitNotification(172),v.enableEmitNotification(213),v.enableEmitNotification(212),v.enableEmitNotification(255))}function Mo(Oe,oe){return oe=k(Oe,oe),Oe===1?Es(oe):e.isIdentifier(oe)?Fo(oe):oe}function Fo(Oe){if(Y&2&&!e.isInternalName(Oe)){var oe=e.getParseTreeNode(Oe,e.isIdentifier);if(oe&&zo(oe))return e.setTextRange(A.getGeneratedNameForNode(oe),Oe)}return Oe}function zo(Oe){switch(Oe.parent.kind){case 202:case 256:case 259:case 253:return Oe.parent.name===Oe&&J.isDeclarationWithCollidingName(Oe.parent)}return!1}function Es(Oe){switch(Oe.kind){case 79:return Cs(Oe);case 108:return dt(Oe)}return Oe}function Cs(Oe){if(Y&2&&!e.isInternalName(Oe)){var oe=J.getReferencedDeclarationWithCollidingName(Oe);if(oe&&!(e.isClassLike(oe)&&yr(oe,Oe)))return e.setTextRange(A.getGeneratedNameForNode(e.getNameOfDeclaration(oe)),Oe)}return Oe}function yr(Oe,oe){var mr=e.getParseTreeNode(oe);if(!mr||mr===Oe||mr.end<=Oe.pos||mr.pos>=Oe.end)return!1;for(var se=e.getEnclosingBlockScopeContainer(Oe);mr;){if(mr===se||mr===Oe)return!1;if(e.isClassElement(mr)&&mr.parent===Oe)return!0;mr=mr.parent}return!1}function dt(Oe){return Y&1&&K&16?e.setTextRange(A.createUniqueName("_this",48),Oe):Oe}function tn(Oe,oe){return e.isStatic(oe)?A.getInternalName(Oe):A.createPropertyAccessExpression(A.getInternalName(Oe),"prototype")}function Un(Oe,oe){if(!Oe||!oe||e.some(Oe.parameters))return!1;var mr=e.firstOrUndefined(Oe.body.statements);if(!mr||!e.nodeIsSynthesized(mr)||mr.kind!==237)return!1;var se=mr.expression;if(!e.nodeIsSynthesized(se)||se.kind!==207)return!1;var Be=se.expression;if(!e.nodeIsSynthesized(Be)||Be.kind!==106)return!1;var er=e.singleOrUndefined(se.arguments);if(!er||!e.nodeIsSynthesized(er)||er.kind!==224)return!1;var hr=er.expression;return e.isIdentifier(hr)&&hr.escapedText==="arguments"}}e.transformES2015=h})(gr||(gr={}));var gr;(function(e){function n(f){var d=f.factory,a=f.getCompilerOptions(),p,N;(a.jsx===1||a.jsx===3)&&(p=f.onEmitNode,f.onEmitNode=v,f.enableEmitNotification(279),f.enableEmitNotification(280),f.enableEmitNotification(278),N=[]);var H=f.onSubstituteNode;return f.onSubstituteNode=A,f.enableSubstitution(205),f.enableSubstitution(294),e.chainBundle(f,h);function h(P){return P}function v(P,S,B){switch(S.kind){case 279:case 280:case 278:var J=S.tagName;N[e.getOriginalNodeId(J)]=!0;break}p(P,S,B)}function A(P,S){return S.id&&N&&N[S.id]?H(P,S):(S=H(P,S),e.isPropertyAccessExpression(S)?q(S):e.isPropertyAssignment(S)?ie(S):S)}function q(P){if(e.isPrivateIdentifier(P.name))return P;var S=b(P.name);return S?e.setTextRange(d.createElementAccessExpression(P.expression,S),P):P}function ie(P){var S=e.isIdentifier(P.name)&&b(P.name);return S?d.updatePropertyAssignment(P,S,P.initializer):P}function b(P){var S=P.originalKeywordKind||(e.nodeIsSynthesized(P)?e.stringToToken(e.idText(P)):void 0);if(S!==void 0&&S>=81&&S<=116)return e.setTextRange(d.createStringLiteralFromNode(P),P)}}e.transformES5=n})(gr||(gr={}));var gr;(function(e){var n;(function(h){h[h.Nop=0]="Nop",h[h.Statement=1]="Statement",h[h.Assign=2]="Assign",h[h.Break=3]="Break",h[h.BreakWhenTrue=4]="BreakWhenTrue",h[h.BreakWhenFalse=5]="BreakWhenFalse",h[h.Yield=6]="Yield",h[h.YieldStar=7]="YieldStar",h[h.Return=8]="Return",h[h.Throw=9]="Throw",h[h.Endfinally=10]="Endfinally"})(n||(n={}));var f;(function(h){h[h.Open=0]="Open",h[h.Close=1]="Close"})(f||(f={}));var d;(function(h){h[h.Exception=0]="Exception",h[h.With=1]="With",h[h.Switch=2]="Switch",h[h.Loop=3]="Loop",h[h.Labeled=4]="Labeled"})(d||(d={}));var a;(function(h){h[h.Try=0]="Try",h[h.Catch=1]="Catch",h[h.Finally=2]="Finally",h[h.Done=3]="Done"})(a||(a={}));var p;(function(h){h[h.Next=0]="Next",h[h.Throw=1]="Throw",h[h.Return=2]="Return",h[h.Break=3]="Break",h[h.Yield=4]="Yield",h[h.YieldStar=5]="YieldStar",h[h.Catch=6]="Catch",h[h.Endfinally=7]="Endfinally"})(p||(p={}));function N(h){switch(h){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function H(h){var v=h.factory,A=h.getEmitHelperFactory,q=h.resumeLexicalEnvironment,ie=h.endLexicalEnvironment,b=h.hoistFunctionDeclaration,P=h.hoistVariableDeclaration,S=h.getCompilerOptions(),B=e.getEmitScriptTarget(S),J=h.getEmitResolver(),k=h.onSubstituteNode;h.onSubstituteNode=ee;var M,x,w,K,Z,ne,R,Y,U,$,T=1,I,y,D,C,m=0,u=0,g,F,te,ue,X,j,Se,Ce;return e.chainBundle(h,O);function O(yr){if(yr.isDeclarationFile||(yr.transformFlags&1024)===0)return yr;var dt=e.visitEachChild(yr,Q,h);return e.addEmitHelpers(dt,h.readEmitHelpers()),dt}function Q(yr){var dt=yr.transformFlags;return K?V(yr):w?z(yr):e.isFunctionLikeDeclaration(yr)&&yr.asteriskToken?ge(yr):dt&1024?e.visitEachChild(yr,Q,h):yr}function V(yr){switch(yr.kind){case 239:return He(yr);case 240:return Jr(yr);case 248:return sr(yr);case 249:return or(yr);default:return z(yr)}}function z(yr){switch(yr.kind){case 255:return ke(yr);case 212:return Me(yr);case 171:case 172:return Ie(yr);case 236:return he(yr);case 241:return Ar(yr);case 242:return lt(yr);case 245:return bn(yr);case 244:return Rt(yr);case 246:return zn(yr);default:return yr.transformFlags&524288?Te(yr):yr.transformFlags&2098176?e.visitEachChild(yr,Q,h):yr}}function Te(yr){switch(yr.kind){case 220:return ve(yr);case 349:return qe(yr);case 221:return De(yr);case 223:return Ae(yr);case 203:return Ye(yr);case 204:return Er(yr);case 206:return lr(yr);case 207:return Cr(yr);case 208:return Or(yr);default:return e.visitEachChild(yr,Q,h)}}function ge(yr){switch(yr.kind){case 255:return ke(yr);case 212:return Me(yr);default:return e.Debug.failBadSyntaxKind(yr)}}function ke(yr){if(yr.asteriskToken)yr=e.setOriginalNode(e.setTextRange(v.createFunctionDeclaration(void 0,yr.modifiers,void 0,yr.name,void 0,e.visitParameterList(yr.parameters,Q,h),void 0,Ge(yr.body)),yr),yr);else{var dt=w,tn=K;w=!1,K=!1,yr=e.visitEachChild(yr,Q,h),w=dt,K=tn}if(w){b(yr);return}else return yr}function Me(yr){if(yr.asteriskToken)yr=e.setOriginalNode(e.setTextRange(v.createFunctionExpression(void 0,void 0,yr.name,void 0,e.visitParameterList(yr.parameters,Q,h),void 0,Ge(yr.body)),yr),yr);else{var dt=w,tn=K;w=!1,K=!1,yr=e.visitEachChild(yr,Q,h),w=dt,K=tn}return yr}function Ie(yr){var dt=w,tn=K;return w=!1,K=!1,yr=e.visitEachChild(yr,Q,h),w=dt,K=tn,yr}function Ge(yr){var dt=[],tn=w,Un=K,Oe=Z,oe=ne,mr=R,se=Y,Be=U,er=$,hr=T,qr=I,Dt=y,Jt=D,Sn=C;w=!0,K=!1,Z=void 0,ne=void 0,R=void 0,Y=void 0,U=void 0,$=void 0,T=1,I=void 0,y=void 0,D=void 0,C=v.createTempVariable(void 0),q();var ta=v.copyPrologue(yr.statements,dt,!1,Q);Ke(yr.statements,ta);var xa=Pi();return e.insertStatementsAfterStandardPrologue(dt,ie()),dt.push(v.createReturnStatement(xa)),w=tn,K=Un,Z=Oe,ne=oe,R=mr,Y=se,U=Be,$=er,T=hr,I=qr,y=Dt,D=Jt,C=Sn,e.setTextRange(v.createBlock(dt,yr.multiLine),yr)}function he(yr){if(yr.transformFlags&524288){Fe(yr.declarationList);return}else{if(e.getEmitFlags(yr)&1048576)return yr;for(var dt=0,tn=yr.declarationList.declarations;dt<tn.length;dt++){var Un=tn[dt];P(Un.name)}var Oe=e.getInitializedVariables(yr.declarationList);return Oe.length===0?void 0:e.setSourceMapRange(v.createExpressionStatement(v.inlineExpressions(e.map(Oe,$e))),yr)}}function ve(yr){var dt=e.getExpressionAssociativity(yr);switch(dt){case 0:return _e(yr);case 1:return Ve(yr);default:return e.Debug.assertNever(dt)}}function Ve(yr){var dt=yr.left,tn=yr.right;if(Ee(tn)){var Un=void 0;switch(dt.kind){case 205:Un=v.updatePropertyAccessExpression(dt,Ze(e.visitNode(dt.expression,Q,e.isLeftHandSideExpression)),dt.name);break;case 206:Un=v.updateElementAccessExpression(dt,Ze(e.visitNode(dt.expression,Q,e.isLeftHandSideExpression)),Ze(e.visitNode(dt.argumentExpression,Q,e.isExpression)));break;default:Un=e.visitNode(dt,Q,e.isExpression);break}var Oe=yr.operatorToken.kind;return e.isCompoundAssignment(Oe)?e.setTextRange(v.createAssignment(Un,e.setTextRange(v.createBinaryExpression(Ze(Un),e.getNonAssignmentOperatorForCompoundAssignment(Oe),e.visitNode(tn,Q,e.isExpression)),yr)),yr):v.updateBinaryExpression(yr,Un,yr.operatorToken,e.visitNode(tn,Q,e.isExpression))}return e.visitEachChild(yr,Q,h)}function _e(yr){return Ee(yr.right)?e.isLogicalOperator(yr.operatorToken.kind)?Xe(yr):yr.operatorToken.kind===27?Le(yr):v.updateBinaryExpression(yr,Ze(e.visitNode(yr.left,Q,e.isExpression)),yr.operatorToken,e.visitNode(yr.right,Q,e.isExpression)):e.visitEachChild(yr,Q,h)}function Le(yr){var dt=[];return tn(yr.left),tn(yr.right),v.inlineExpressions(dt);function tn(Un){e.isBinaryExpression(Un)&&Un.operatorToken.kind===27?(tn(Un.left),tn(Un.right)):(Ee(Un)&&dt.length>0&&(Ka(1,[v.createExpressionStatement(v.inlineExpressions(dt))]),dt=[]),dt.push(e.visitNode(Un,Q,e.isExpression)))}}function qe(yr){for(var dt=[],tn=0,Un=yr.elements;tn<Un.length;tn++){var Oe=Un[tn];e.isBinaryExpression(Oe)&&Oe.operatorToken.kind===27?dt.push(Le(Oe)):(Ee(Oe)&&dt.length>0&&(Ka(1,[v.createExpressionStatement(v.inlineExpressions(dt))]),dt=[]),dt.push(e.visitNode(Oe,Q,e.isExpression)))}return v.inlineExpressions(dt)}function Xe(yr){var dt=fr(),tn=xr();return rt(tn,e.visitNode(yr.left,Q,e.isExpression),yr.left),yr.operatorToken.kind===55?Ra(dt,tn,yr.left):Qn(dt,tn,yr.left),rt(tn,e.visitNode(yr.right,Q,e.isExpression),yr.right),dr(dt),tn}function De(yr){if(Ee(yr.whenTrue)||Ee(yr.whenFalse)){var dt=fr(),tn=fr(),Un=xr();return Ra(dt,e.visitNode(yr.condition,Q,e.isExpression),yr.condition),rt(Un,e.visitNode(yr.whenTrue,Q,e.isExpression),yr.whenTrue),Cn(tn),dr(dt),rt(Un,e.visitNode(yr.whenFalse,Q,e.isExpression),yr.whenFalse),dr(tn),Un}return e.visitEachChild(yr,Q,h)}function Ae(yr){var dt=fr(),tn=e.visitNode(yr.expression,Q,e.isExpression);if(yr.asteriskToken){var Un=(e.getEmitFlags(yr.expression)&8388608)===0?e.setTextRange(A().createValuesHelper(tn),yr):tn;Ci(Un,yr)}else _i(tn,yr);return dr(dt),_t(yr)}function Ye(yr){return Lr(yr.elements,void 0,void 0,yr.multiLine)}function Lr(yr,dt,tn,Un){var Oe=We(yr),oe;if(Oe>0){oe=xr();var mr=e.visitNodes(yr,Q,e.isExpression,0,Oe);rt(oe,v.createArrayLiteralExpression(dt?Gt([dt],mr,!0):mr)),dt=void 0}var se=e.reduceLeft(yr,Be,[],Oe);return oe?v.createArrayConcatCall(oe,[v.createArrayLiteralExpression(se,Un)]):e.setTextRange(v.createArrayLiteralExpression(dt?Gt([dt],se,!0):se,Un),tn);function Be(er,hr){if(Ee(hr)&&er.length>0){var qr=oe!==void 0;oe||(oe=xr()),rt(oe,qr?v.createArrayConcatCall(oe,[v.createArrayLiteralExpression(er,Un)]):v.createArrayLiteralExpression(dt?Gt([dt],er,!0):er,Un)),dt=void 0,er=[]}return er.push(e.visitNode(hr,Q,e.isExpression)),er}}function Er(yr){var dt=yr.properties,tn=yr.multiLine,Un=We(dt),Oe=xr();rt(Oe,v.createObjectLiteralExpression(e.visitNodes(dt,Q,e.isObjectLiteralElementLike,0,Un),tn));var oe=e.reduceLeft(dt,mr,[],Un);return oe.push(tn?e.startOnNewLine(e.setParent(e.setTextRange(v.cloneNode(Oe),Oe),Oe.parent)):Oe),v.inlineExpressions(oe);function mr(se,Be){Ee(Be)&&se.length>0&&(It(v.createExpressionStatement(v.inlineExpressions(se))),se=[]);var er=e.createExpressionForObjectLiteralElementLike(v,yr,Be,Oe),hr=e.visitNode(er,Q,e.isExpression);return hr&&(tn&&e.startOnNewLine(hr),se.push(hr)),se}}function lr(yr){return Ee(yr.argumentExpression)?v.updateElementAccessExpression(yr,Ze(e.visitNode(yr.expression,Q,e.isLeftHandSideExpression)),e.visitNode(yr.argumentExpression,Q,e.isExpression)):e.visitEachChild(yr,Q,h)}function Cr(yr){if(!e.isImportCall(yr)&&e.forEach(yr.arguments,Ee)){var dt=v.createCallBinding(yr.expression,P,B,!0),tn=dt.target,Un=dt.thisArg;return e.setOriginalNode(e.setTextRange(v.createFunctionApplyCall(Ze(e.visitNode(tn,Q,e.isLeftHandSideExpression)),Un,Lr(yr.arguments)),yr),yr)}return e.visitEachChild(yr,Q,h)}function Or(yr){if(e.forEach(yr.arguments,Ee)){var dt=v.createCallBinding(v.createPropertyAccessExpression(yr.expression,"bind"),P),tn=dt.target,Un=dt.thisArg;return e.setOriginalNode(e.setTextRange(v.createNewExpression(v.createFunctionApplyCall(Ze(e.visitNode(tn,Q,e.isExpression)),Un,Lr(yr.arguments,v.createVoidZero())),void 0,[]),yr),yr)}return e.visitEachChild(yr,Q,h)}function Ke(yr,dt){dt===void 0&&(dt=0);for(var tn=yr.length,Un=dt;Un<tn;Un++)Hr(yr[Un])}function Pe(yr){e.isBlock(yr)?Ke(yr.statements):Hr(yr)}function Hr(yr){var dt=K;K||(K=Ee(yr)),ur(yr),K=dt}function ur(yr){switch(yr.kind){case 234:return vr(yr);case 237:return de(yr);case 238:return Dr(yr);case 239:return Fr(yr);case 240:return pr(yr);case 241:return ze(yr);case 242:return Yr(yr);case 244:return tt(yr);case 245:return cn(yr);case 246:return In(yr);case 247:return ir(yr);case 248:return Rr(yr);case 249:return ye(yr);case 250:return fe(yr);case 251:return je(yr);default:return It(e.visitNode(yr,Q,e.isStatement))}}function vr(yr){Ee(yr)?Ke(yr.statements):It(e.visitNode(yr,Q,e.isStatement))}function de(yr){It(e.visitNode(yr,Q,e.isStatement))}function Fe(yr){for(var dt=0,tn=yr.declarations;dt<tn.length;dt++){var Un=tn[dt],Oe=v.cloneNode(Un.name);e.setCommentRange(Oe,Un.name),P(Oe)}for(var oe=e.getInitializedVariables(yr),mr=oe.length,se=0,Be=[];se<mr;){for(var er=se;er<mr;er++){var Un=oe[er];if(Ee(Un.initializer)&&Be.length>0)break;Be.push($e(Un))}Be.length&&(It(v.createExpressionStatement(v.inlineExpressions(Be))),se+=Be.length,Be=[])}}function $e(yr){return e.setSourceMapRange(v.createAssignment(e.setSourceMapRange(v.cloneNode(yr.name),yr.name),e.visitNode(yr.initializer,Q,e.isExpression)),yr)}function Dr(yr){if(Ee(yr))if(Ee(yr.thenStatement)||Ee(yr.elseStatement)){var dt=fr(),tn=yr.elseStatement?fr():void 0;Ra(yr.elseStatement?tn:dt,e.visitNode(yr.expression,Q,e.isExpression),yr.expression),Pe(yr.thenStatement),yr.elseStatement&&(Cn(dt),dr(tn),Pe(yr.elseStatement)),dr(dt)}else It(e.visitNode(yr,Q,e.isStatement));else It(e.visitNode(yr,Q,e.isStatement))}function Fr(yr){if(Ee(yr)){var dt=fr(),tn=fr();xt(dt),dr(tn),Pe(yr.statement),dr(dt),Qn(tn,e.visitNode(yr.expression,Q,e.isExpression)),wt()}else It(e.visitNode(yr,Q,e.isStatement))}function He(yr){return K?(ht(),yr=e.visitEachChild(yr,Q,h),wt(),yr):e.visitEachChild(yr,Q,h)}function pr(yr){if(Ee(yr)){var dt=fr(),tn=xt(dt);dr(dt),Ra(tn,e.visitNode(yr.expression,Q,e.isExpression)),Pe(yr.statement),Cn(dt),wt()}else It(e.visitNode(yr,Q,e.isStatement))}function Jr(yr){return K?(ht(),yr=e.visitEachChild(yr,Q,h),wt(),yr):e.visitEachChild(yr,Q,h)}function ze(yr){if(Ee(yr)){var dt=fr(),tn=fr(),Un=xt(tn);if(yr.initializer){var Oe=yr.initializer;e.isVariableDeclarationList(Oe)?Fe(Oe):It(e.setTextRange(v.createExpressionStatement(e.visitNode(Oe,Q,e.isExpression)),Oe))}dr(dt),yr.condition&&Ra(Un,e.visitNode(yr.condition,Q,e.isExpression)),Pe(yr.statement),dr(tn),yr.incrementor&&It(e.setTextRange(v.createExpressionStatement(e.visitNode(yr.incrementor,Q,e.isExpression)),yr.incrementor)),Cn(dt),wt()}else It(e.visitNode(yr,Q,e.isStatement))}function Ar(yr){K&&ht();var dt=yr.initializer;if(dt&&e.isVariableDeclarationList(dt)){for(var tn=0,Un=dt.declarations;tn<Un.length;tn++){var Oe=Un[tn];P(Oe.name)}var oe=e.getInitializedVariables(dt);yr=v.updateForStatement(yr,oe.length>0?v.inlineExpressions(e.map(oe,$e)):void 0,e.visitNode(yr.condition,Q,e.isExpression),e.visitNode(yr.incrementor,Q,e.isExpression),e.visitIterationBody(yr.statement,Q,h))}else yr=e.visitEachChild(yr,Q,h);return K&&wt(),yr}function Yr(yr){if(Ee(yr)){var dt=xr(),tn=xr(),Un=v.createLoopVariable(),Oe=yr.initializer;P(Un),rt(dt,v.createArrayLiteralExpression()),It(v.createForInStatement(tn,e.visitNode(yr.expression,Q,e.isExpression),v.createExpressionStatement(v.createCallExpression(v.createPropertyAccessExpression(dt,"push"),void 0,[tn])))),rt(Un,v.createNumericLiteral(0));var oe=fr(),mr=fr(),se=xt(mr);dr(oe),Ra(se,v.createLessThan(Un,v.createPropertyAccessExpression(dt,"length")));var Be=void 0;if(e.isVariableDeclarationList(Oe)){for(var er=0,hr=Oe.declarations;er<hr.length;er++){var qr=hr[er];P(qr.name)}Be=v.cloneNode(Oe.declarations[0].name)}else Be=e.visitNode(Oe,Q,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(Be));rt(Be,v.createElementAccessExpression(dt,Un)),Pe(yr.statement),dr(mr),It(v.createExpressionStatement(v.createPostfixIncrement(Un))),Cn(oe),wt()}else It(e.visitNode(yr,Q,e.isStatement))}function lt(yr){K&&ht();var dt=yr.initializer;if(e.isVariableDeclarationList(dt)){for(var tn=0,Un=dt.declarations;tn<Un.length;tn++){var Oe=Un[tn];P(Oe.name)}yr=v.updateForInStatement(yr,dt.declarations[0].name,e.visitNode(yr.expression,Q,e.isExpression),e.visitNode(yr.statement,Q,e.isStatement,v.liftToBlock))}else yr=e.visitEachChild(yr,Q,h);return K&&wt(),yr}function tt(yr){var dt=qt(yr.label?e.idText(yr.label):void 0);dt>0?Cn(dt,yr):It(yr)}function Rt(yr){if(K){var dt=qt(yr.label&&e.idText(yr.label));if(dt>0)return oa(dt,yr)}return e.visitEachChild(yr,Q,h)}function cn(yr){var dt=Ut(yr.label?e.idText(yr.label):void 0);dt>0?Cn(dt,yr):It(yr)}function bn(yr){if(K){var dt=Ut(yr.label&&e.idText(yr.label));if(dt>0)return oa(dt,yr)}return e.visitEachChild(yr,Q,h)}function In(yr){va(e.visitNode(yr.expression,Q,e.isExpression),yr)}function zn(yr){return pt(e.visitNode(yr.expression,Q,e.isExpression),yr)}function ir(yr){Ee(yr)?(Ir(Ze(e.visitNode(yr.expression,Q,e.isExpression))),Pe(yr.statement),kr()):It(e.visitNode(yr,Q,e.isStatement))}function Rr(yr){if(Ee(yr.caseBlock)){for(var dt=yr.caseBlock,tn=dt.clauses.length,Un=mt(),Oe=Ze(e.visitNode(yr.expression,Q,e.isExpression)),oe=[],mr=-1,se=0;se<tn;se++){var Be=dt.clauses[se];oe.push(fr()),Be.kind===289&&mr===-1&&(mr=se)}for(var er=0,hr=[];er<tn;){for(var qr=0,se=er;se<tn;se++){var Be=dt.clauses[se];if(Be.kind===288){if(Ee(Be.expression)&&hr.length>0)break;hr.push(v.createCaseClause(e.visitNode(Be.expression,Q,e.isExpression),[oa(oe[se],Be.expression)]))}else qr++}hr.length&&(It(v.createSwitchStatement(Oe,v.createCaseBlock(hr))),er+=hr.length,hr=[]),qr>0&&(er+=qr,qr=0)}mr>=0?Cn(oe[mr]):Cn(Un);for(var se=0;se<tn;se++)dr(oe[se]),Ke(dt.clauses[se].statements);rn()}else It(e.visitNode(yr,Q,e.isStatement))}function sr(yr){return K&&Qt(),yr=e.visitEachChild(yr,Q,h),K&&rn(),yr}function ye(yr){Ee(yr)?(ba(e.idText(yr.label)),Pe(yr.statement),Jn()):It(e.visitNode(yr,Q,e.isStatement))}function or(yr){return K&&sa(e.idText(yr.label)),yr=e.visitEachChild(yr,Q,h),K&&Jn(),yr}function fe(yr){var dt;yi(e.visitNode((dt=yr.expression)!==null&&dt!==void 0?dt:v.createVoidZero(),Q,e.isExpression),yr)}function je(yr){Ee(yr)?(zr(),Pe(yr.tryBlock),yr.catchClause&&(gt(yr.catchClause.variableDeclaration),Pe(yr.catchClause.block)),yr.finallyBlock&&(vt(),Pe(yr.finallyBlock)),ut()):It(e.visitEachChild(yr,Q,h))}function Ee(yr){return!!yr&&(yr.transformFlags&524288)!==0}function We(yr){for(var dt=yr.length,tn=0;tn<dt;tn++)if(Ee(yr[tn]))return tn;return-1}function ee(yr,dt){return dt=k(yr,dt),yr===1?Ne(dt):dt}function Ne(yr){return e.isIdentifier(yr)?me(yr):yr}function me(yr){if(!e.isGeneratedIdentifier(yr)&&M&&M.has(e.idText(yr))){var dt=e.getOriginalNode(yr);if(e.isIdentifier(dt)&&dt.parent){var tn=J.getReferencedValueDeclaration(dt);if(tn){var Un=x[e.getOriginalNodeId(tn)];if(Un){var Oe=e.setParent(e.setTextRange(v.cloneNode(Un),Un),Un.parent);return e.setSourceMapRange(Oe,yr),e.setCommentRange(Oe,yr),Oe}}}}return yr}function Ze(yr){if(e.isGeneratedIdentifier(yr)||e.getEmitFlags(yr)&4096)return yr;var dt=v.createTempVariable(P);return rt(dt,yr,yr),dt}function xr(yr){var dt=yr?v.createUniqueName(yr):v.createTempVariable(void 0);return P(dt),dt}function fr(){U||(U=[]);var yr=T;return T++,U[yr]=-1,yr}function dr(yr){e.Debug.assert(U!==void 0,"No labels were defined."),U[yr]=I?I.length:0}function et(yr){Z||(Z=[],R=[],ne=[],Y=[]);var dt=R.length;return R[dt]=0,ne[dt]=I?I.length:0,Z[dt]=yr,Y.push(yr),dt}function yt(){var yr=Wr();if(yr===void 0)return e.Debug.fail("beginBlock was never called.");var dt=R.length;return R[dt]=1,ne[dt]=I?I.length:0,Z[dt]=yr,Y.pop(),yr}function Wr(){return e.lastOrUndefined(Y)}function tr(){var yr=Wr();return yr&&yr.kind}function Ir(yr){var dt=fr(),tn=fr();dr(dt),et({kind:1,expression:yr,startLabel:dt,endLabel:tn})}function kr(){e.Debug.assert(tr()===1);var yr=yt();dr(yr.endLabel)}function zr(){var yr=fr(),dt=fr();return dr(yr),et({kind:0,state:0,startLabel:yr,endLabel:dt}),Pt(),dt}function gt(yr){e.Debug.assert(tr()===0);var dt;if(e.isGeneratedIdentifier(yr.name))dt=yr.name,P(yr.name);else{var tn=e.idText(yr.name);dt=xr(tn),M||(M=new e.Map,x=[],h.enableSubstitution(79)),M.set(tn,!0),x[e.getOriginalNodeId(yr)]=dt}var Un=Wr();e.Debug.assert(Un.state<1);var Oe=Un.endLabel;Cn(Oe);var oe=fr();dr(oe),Un.state=1,Un.catchVariable=dt,Un.catchLabel=oe,rt(dt,v.createCallExpression(v.createPropertyAccessExpression(C,"sent"),void 0,[])),Pt()}function vt(){e.Debug.assert(tr()===0);var yr=Wr();e.Debug.assert(yr.state<2);var dt=yr.endLabel;Cn(dt);var tn=fr();dr(tn),yr.state=2,yr.finallyLabel=tn}function ut(){e.Debug.assert(tr()===0);var yr=yt(),dt=yr.state;dt<2?Cn(yr.endLabel):ro(),dr(yr.endLabel),Pt(),yr.state=3}function ht(){et({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function xt(yr){var dt=fr();return et({kind:3,isScript:!1,breakLabel:dt,continueLabel:yr}),dt}function wt(){e.Debug.assert(tr()===3);var yr=yt(),dt=yr.breakLabel;yr.isScript||dr(dt)}function Qt(){et({kind:2,isScript:!0,breakLabel:-1})}function mt(){var yr=fr();return et({kind:2,isScript:!1,breakLabel:yr}),yr}function rn(){e.Debug.assert(tr()===2);var yr=yt(),dt=yr.breakLabel;yr.isScript||dr(dt)}function sa(yr){et({kind:4,isScript:!0,labelText:yr,breakLabel:-1})}function ba(yr){var dt=fr();et({kind:4,isScript:!1,labelText:yr,breakLabel:dt})}function Jn(){e.Debug.assert(tr()===4);var yr=yt();yr.isScript||dr(yr.breakLabel)}function na(yr){return yr.kind===2||yr.kind===3}function Wn(yr){return yr.kind===4}function en(yr){return yr.kind===3}function St(yr,dt){for(var tn=dt;tn>=0;tn--){var Un=Y[tn];if(Wn(Un)){if(Un.labelText===yr)return!0}else break}return!1}function Ut(yr){if(Y)if(yr)for(var dt=Y.length-1;dt>=0;dt--){var tn=Y[dt];if(Wn(tn)&&tn.labelText===yr)return tn.breakLabel;if(na(tn)&&St(yr,dt-1))return tn.breakLabel}else for(var dt=Y.length-1;dt>=0;dt--){var tn=Y[dt];if(na(tn))return tn.breakLabel}return 0}function qt(yr){if(Y)if(yr)for(var dt=Y.length-1;dt>=0;dt--){var tn=Y[dt];if(en(tn)&&St(yr,dt-1))return tn.continueLabel}else for(var dt=Y.length-1;dt>=0;dt--){var tn=Y[dt];if(en(tn))return tn.continueLabel}return 0}function Pn(yr){if(yr!==void 0&&yr>0){$===void 0&&($=[]);var dt=v.createNumericLiteral(-1);return $[yr]===void 0?$[yr]=[dt]:$[yr].push(dt),dt}return v.createOmittedExpression()}function dn(yr){var dt=v.createNumericLiteral(yr);return e.addSyntheticTrailingComment(dt,3,N(yr)),dt}function oa(yr,dt){return e.Debug.assertLessThan(0,yr,"Invalid label"),e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression([dn(3),Pn(yr)])),dt)}function pt(yr,dt){return e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression(yr?[dn(2),yr]:[dn(2)])),dt)}function _t(yr){return e.setTextRange(v.createCallExpression(v.createPropertyAccessExpression(C,"sent"),void 0,[]),yr)}function Pt(){Ka(0)}function It(yr){yr?Ka(1,[yr]):Pt()}function rt(yr,dt,tn){Ka(2,[yr,dt],tn)}function Cn(yr,dt){Ka(3,[yr],dt)}function Qn(yr,dt,tn){Ka(4,[yr,dt],tn)}function Ra(yr,dt,tn){Ka(5,[yr,dt],tn)}function Ci(yr,dt){Ka(7,[yr],dt)}function _i(yr,dt){Ka(6,[yr],dt)}function va(yr,dt){Ka(8,[yr],dt)}function yi(yr,dt){Ka(9,[yr],dt)}function ro(){Ka(10)}function Ka(yr,dt,tn){I===void 0&&(I=[],y=[],D=[]),U===void 0&&dr(fr());var Un=I.length;I[Un]=yr,y[Un]=dt,D[Un]=tn}function Pi(){m=0,u=0,g=void 0,F=!1,te=!1,ue=void 0,X=void 0,j=void 0,Se=void 0,Ce=void 0;var yr=io();return A().createGeneratorHelper(e.setEmitFlags(v.createFunctionExpression(void 0,void 0,void 0,void 0,[v.createParameterDeclaration(void 0,void 0,void 0,C)],void 0,v.createBlock(yr,yr.length>0)),524288))}function io(){if(I){for(var yr=0;yr<I.length;yr++)Yo(yr);Hi(I.length)}else Hi(0);if(ue){var dt=v.createPropertyAccessExpression(C,"label"),tn=v.createSwitchStatement(dt,v.createCaseBlock(ue));return[e.startOnNewLine(tn)]}return X||[]}function ji(){!X||(No(!F),F=!1,te=!1,u++)}function Hi(yr){to(yr)&&(lo(yr),Ce=void 0,Zi(void 0,void 0)),X&&ue&&No(!1),Lo()}function to(yr){if(!te)return!0;if(!U||!$)return!1;for(var dt=0;dt<U.length;dt++)if(U[dt]===yr&&$[dt])return!0;return!1}function No(yr){if(ue||(ue=[]),X){if(Ce)for(var dt=Ce.length-1;dt>=0;dt--){var tn=Ce[dt];X=[v.createWithStatement(tn.expression,v.createBlock(X))]}if(Se){var Un=Se.startLabel,Oe=Se.catchLabel,oe=Se.finallyLabel,mr=Se.endLabel;X.unshift(v.createExpressionStatement(v.createCallExpression(v.createPropertyAccessExpression(v.createPropertyAccessExpression(C,"trys"),"push"),void 0,[v.createArrayLiteralExpression([Pn(Un),Pn(Oe),Pn(oe),Pn(mr)])]))),Se=void 0}yr&&X.push(v.createExpressionStatement(v.createAssignment(v.createPropertyAccessExpression(C,"label"),v.createNumericLiteral(u+1))))}ue.push(v.createCaseClause(v.createNumericLiteral(u),X||[])),X=void 0}function lo(yr){if(!!U)for(var dt=0;dt<U.length;dt++)U[dt]===yr&&(ji(),g===void 0&&(g=[]),g[u]===void 0?g[u]=[dt]:g[u].push(dt))}function Lo(){if($!==void 0&&g!==void 0)for(var yr=0;yr<g.length;yr++){var dt=g[yr];if(dt!==void 0)for(var tn=0,Un=dt;tn<Un.length;tn++){var Oe=Un[tn],oe=$[Oe];if(oe!==void 0)for(var mr=0,se=oe;mr<se.length;mr++){var Be=se[mr];Be.text=String(yr)}}}}function Ha(yr){if(Z)for(;m<R.length&&ne[m]<=yr;m++){var dt=Z[m],tn=R[m];switch(dt.kind){case 0:tn===0?(j||(j=[]),X||(X=[]),j.push(Se),Se=dt):tn===1&&(Se=j.pop());break;case 1:tn===0?(Ce||(Ce=[]),Ce.push(dt)):tn===1&&Ce.pop();break}}}function Yo(yr){if(lo(yr),Ha(yr),!F){F=!1,te=!1;var dt=I[yr];if(dt!==0){if(dt===10)return Cs();var tn=y[yr];if(dt===1)return co(tn[0]);var Un=D[yr];switch(dt){case 2:return za(tn[0],tn[1],Un);case 3:return Po(tn[0],Un);case 4:return Mo(tn[0],tn[1],Un);case 5:return Fo(tn[0],tn[1],Un);case 6:return zo(tn[0],Un);case 7:return Es(tn[0],Un);case 8:return Zi(tn[0],Un);case 9:return hi(tn[0],Un)}}}}function co(yr){yr&&(X?X.push(yr):X=[yr])}function za(yr,dt,tn){co(e.setTextRange(v.createExpressionStatement(v.createAssignment(yr,dt)),tn))}function hi(yr,dt){F=!0,te=!0,co(e.setTextRange(v.createThrowStatement(yr),dt))}function Zi(yr,dt){F=!0,te=!0,co(e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression(yr?[dn(2),yr]:[dn(2)])),dt),384))}function Po(yr,dt){F=!0,co(e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression([dn(3),Pn(yr)])),dt),384))}function Mo(yr,dt,tn){co(e.setEmitFlags(v.createIfStatement(dt,e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression([dn(3),Pn(yr)])),tn),384)),1))}function Fo(yr,dt,tn){co(e.setEmitFlags(v.createIfStatement(v.createLogicalNot(dt),e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression([dn(3),Pn(yr)])),tn),384)),1))}function zo(yr,dt){F=!0,co(e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression(yr?[dn(4),yr]:[dn(4)])),dt),384))}function Es(yr,dt){F=!0,co(e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression([dn(5),yr])),dt),384))}function Cs(){F=!0,co(v.createReturnStatement(v.createArrayLiteralExpression([dn(7)])))}}e.transformGenerators=H})(gr||(gr={}));var gr;(function(e){function n(d){function a(ze){switch(ze){case e.ModuleKind.AMD:return Y;case e.ModuleKind.UMD:return U;default:return R}}var p=d.factory,N=d.getEmitHelperFactory,H=d.startLexicalEnvironment,h=d.endLexicalEnvironment,v=d.hoistVariableDeclaration,A=d.getCompilerOptions(),q=d.getEmitResolver(),ie=d.getEmitHost(),b=e.getEmitScriptTarget(A),P=e.getEmitModuleKind(A),S=d.onSubstituteNode,B=d.onEmitNode;d.onSubstituteNode=de,d.onEmitNode=vr,d.enableSubstitution(207),d.enableSubstitution(209),d.enableSubstitution(79),d.enableSubstitution(220),d.enableSubstitution(295),d.enableEmitNotification(303);var J=[],k=[],M,x,w=[],K;return e.chainBundle(d,Z);function Z(ze){if(ze.isDeclarationFile||!(e.isEffectiveExternalModule(ze,A)||ze.transformFlags&4194304||e.isJsonSourceFile(ze)&&e.hasJsonModuleEmitEnabled(A)&&e.outFile(A)))return ze;M=ze,x=e.collectExternalModuleInfo(d,ze,q,A),J[e.getOriginalNodeId(ze)]=x;var Ar=a(P),Yr=Ar(ze);return M=void 0,x=void 0,K=!1,Yr}function ne(){return!!(!x.exportEquals&&e.isExternalModule(M))}function R(ze){H();var Ar=[],Yr=e.getStrictOptionValue(A,"alwaysStrict")||!A.noImplicitUseStrict&&e.isExternalModule(M),lt=p.copyPrologue(ze.statements,Ar,Yr&&!e.isJsonSourceFile(ze),D);if(ne()&&e.append(Ar,Ke()),e.length(x.exportedNames))for(var tt=50,Rt=0;Rt<x.exportedNames.length;Rt+=tt)e.append(Ar,p.createExpressionStatement(e.reduceLeft(x.exportedNames.slice(Rt,Rt+tt),function(bn,In){return p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("exports"),p.createIdentifier(e.idText(In))),bn)},p.createVoidZero())));e.append(Ar,e.visitNode(x.externalHelpersImportDeclaration,D,e.isStatement)),e.addRange(Ar,e.visitNodes(ze.statements,D,e.isStatement,lt)),y(Ar,!1),e.insertStatementsAfterStandardPrologue(Ar,h());var cn=p.updateSourceFile(ze,e.setTextRange(p.createNodeArray(Ar),ze.statements));return e.addEmitHelpers(cn,d.readEmitHelpers()),cn}function Y(ze){var Ar=p.createIdentifier("define"),Yr=e.tryGetModuleNameFromFile(p,ze,ie,A),lt=e.isJsonSourceFile(ze)&&ze,tt=$(ze,!0),Rt=tt.aliasedModuleNames,cn=tt.unaliasedModuleNames,bn=tt.importAliasNames,In=p.updateSourceFile(ze,e.setTextRange(p.createNodeArray([p.createExpressionStatement(p.createCallExpression(Ar,void 0,Gt(Gt([],Yr?[Yr]:[],!0),[p.createArrayLiteralExpression(lt?e.emptyArray:Gt(Gt([p.createStringLiteral("require"),p.createStringLiteral("exports")],Rt,!0),cn,!0)),lt?lt.statements.length?lt.statements[0].expression:p.createObjectLiteralExpression():p.createFunctionExpression(void 0,void 0,void 0,void 0,Gt([p.createParameterDeclaration(void 0,void 0,void 0,"require"),p.createParameterDeclaration(void 0,void 0,void 0,"exports")],bn,!0),void 0,I(ze))],!1)))]),ze.statements));return e.addEmitHelpers(In,d.readEmitHelpers()),In}function U(ze){var Ar=$(ze,!1),Yr=Ar.aliasedModuleNames,lt=Ar.unaliasedModuleNames,tt=Ar.importAliasNames,Rt=e.tryGetModuleNameFromFile(p,ze,ie,A),cn=p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(p.createBlock([p.createIfStatement(p.createLogicalAnd(p.createTypeCheck(p.createIdentifier("module"),"object"),p.createTypeCheck(p.createPropertyAccessExpression(p.createIdentifier("module"),"exports"),"object")),p.createBlock([p.createVariableStatement(void 0,[p.createVariableDeclaration("v",void 0,void 0,p.createCallExpression(p.createIdentifier("factory"),void 0,[p.createIdentifier("require"),p.createIdentifier("exports")]))]),e.setEmitFlags(p.createIfStatement(p.createStrictInequality(p.createIdentifier("v"),p.createIdentifier("undefined")),p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("module"),"exports"),p.createIdentifier("v")))),1)]),p.createIfStatement(p.createLogicalAnd(p.createTypeCheck(p.createIdentifier("define"),"function"),p.createPropertyAccessExpression(p.createIdentifier("define"),"amd")),p.createBlock([p.createExpressionStatement(p.createCallExpression(p.createIdentifier("define"),void 0,Gt(Gt([],Rt?[Rt]:[],!0),[p.createArrayLiteralExpression(Gt(Gt([p.createStringLiteral("require"),p.createStringLiteral("exports")],Yr,!0),lt,!0)),p.createIdentifier("factory")],!1)))])))],!0),void 0)),bn=p.updateSourceFile(ze,e.setTextRange(p.createNodeArray([p.createExpressionStatement(p.createCallExpression(cn,void 0,[p.createFunctionExpression(void 0,void 0,void 0,void 0,Gt([p.createParameterDeclaration(void 0,void 0,void 0,"require"),p.createParameterDeclaration(void 0,void 0,void 0,"exports")],tt,!0),void 0,I(ze))]))]),ze.statements));return e.addEmitHelpers(bn,d.readEmitHelpers()),bn}function $(ze,Ar){for(var Yr=[],lt=[],tt=[],Rt=0,cn=ze.amdDependencies;Rt<cn.length;Rt++){var bn=cn[Rt];bn.name?(Yr.push(p.createStringLiteral(bn.path)),tt.push(p.createParameterDeclaration(void 0,void 0,void 0,bn.name))):lt.push(p.createStringLiteral(bn.path))}for(var In=0,zn=x.externalImports;In<zn.length;In++){var ir=zn[In],Rr=e.getExternalModuleNameLiteral(p,ir,M,ie,q,A),sr=e.getLocalNameForExternalImport(p,ir,M);Rr&&(Ar&&sr?(e.setEmitFlags(sr,4),Yr.push(Rr),tt.push(p.createParameterDeclaration(void 0,void 0,void 0,sr))):lt.push(Rr))}return{aliasedModuleNames:Yr,unaliasedModuleNames:lt,importAliasNames:tt}}function T(ze){if(!(e.isImportEqualsDeclaration(ze)||e.isExportDeclaration(ze)||!e.getExternalModuleNameLiteral(p,ze,M,ie,q,A))){var Ar=e.getLocalNameForExternalImport(p,ze,M),Yr=Te(ze,Ar);if(Yr!==Ar)return p.createExpressionStatement(p.createAssignment(Ar,Yr))}}function I(ze){H();var Ar=[],Yr=p.copyPrologue(ze.statements,Ar,!A.noImplicitUseStrict,D);ne()&&e.append(Ar,Ke()),e.length(x.exportedNames)&&e.append(Ar,p.createExpressionStatement(e.reduceLeft(x.exportedNames,function(tt,Rt){return p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("exports"),p.createIdentifier(e.idText(Rt))),tt)},p.createVoidZero()))),e.append(Ar,e.visitNode(x.externalHelpersImportDeclaration,D,e.isStatement)),P===e.ModuleKind.AMD&&e.addRange(Ar,e.mapDefined(x.externalImports,T)),e.addRange(Ar,e.visitNodes(ze.statements,D,e.isStatement,Yr)),y(Ar,!0),e.insertStatementsAfterStandardPrologue(Ar,h());var lt=p.createBlock(Ar,!0);return K&&e.addEmitHelper(lt,f),lt}function y(ze,Ar){if(x.exportEquals){var Yr=e.visitNode(x.exportEquals.expression,m);if(Yr)if(Ar){var lt=p.createReturnStatement(Yr);e.setTextRange(lt,x.exportEquals),e.setEmitFlags(lt,1920),ze.push(lt)}else{var lt=p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("module"),"exports"),Yr));e.setTextRange(lt,x.exportEquals),e.setEmitFlags(lt,1536),ze.push(lt)}}}function D(ze){switch(ze.kind){case 265:return ge(ze);case 264:return Me(ze);case 271:return Ie(ze);case 270:return Ge(ze);case 236:return Ve(ze);case 255:return he(ze);case 256:return ve(ze);case 350:return qe(ze);case 351:return De(ze);default:return m(ze)}}function C(ze,Ar){if(!(ze.transformFlags&71305216))return ze;switch(ze.kind){case 241:return te(ze);case 237:return ue(ze);case 211:return X(ze,Ar);case 348:return j(ze,Ar);case 207:if(e.isImportCall(ze)&&M.impliedNodeFormat===void 0)return Ce(ze);break;case 220:if(e.isDestructuringAssignment(ze))return F(ze,Ar);break;case 218:case 219:return Se(ze,Ar)}return e.visitEachChild(ze,m,d)}function m(ze){return C(ze,!1)}function u(ze){return C(ze,!0)}function g(ze){if(e.isObjectLiteralExpression(ze))for(var Ar=0,Yr=ze.properties;Ar<Yr.length;Ar++){var lt=Yr[Ar];switch(lt.kind){case 294:if(g(lt.initializer))return!0;break;case 295:if(g(lt.name))return!0;break;case 296:if(g(lt.expression))return!0;break;case 168:case 171:case 172:return!1;default:e.Debug.assertNever(lt,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(ze))for(var tt=0,Rt=ze.elements;tt<Rt.length;tt++){var lt=Rt[tt];if(e.isSpreadElement(lt)){if(g(lt.expression))return!0}else if(g(lt))return!0}else if(e.isIdentifier(ze))return e.length(Jr(ze))>(e.isExportName(ze)?1:0);return!1}function F(ze,Ar){return g(ze.left)?e.flattenDestructuringAssignment(ze,m,d,0,!Ar,_e):e.visitEachChild(ze,m,d)}function te(ze){return p.updateForStatement(ze,e.visitNode(ze.initializer,u,e.isForInitializer),e.visitNode(ze.condition,m,e.isExpression),e.visitNode(ze.incrementor,u,e.isExpression),e.visitIterationBody(ze.statement,m,d))}function ue(ze){return p.updateExpressionStatement(ze,e.visitNode(ze.expression,u,e.isExpression))}function X(ze,Ar){return p.updateParenthesizedExpression(ze,e.visitNode(ze.expression,Ar?u:m,e.isExpression))}function j(ze,Ar){return p.updatePartiallyEmittedExpression(ze,e.visitNode(ze.expression,Ar?u:m,e.isExpression))}function Se(ze,Ar){if((ze.operator===45||ze.operator===46)&&e.isIdentifier(ze.operand)&&!e.isGeneratedIdentifier(ze.operand)&&!e.isLocalName(ze.operand)&&!e.isDeclarationNameOfEnumOrNamespace(ze.operand)){var Yr=Jr(ze.operand);if(Yr){var lt=void 0,tt=e.visitNode(ze.operand,m,e.isExpression);e.isPrefixUnaryExpression(ze)?tt=p.updatePrefixUnaryExpression(ze,tt):(tt=p.updatePostfixUnaryExpression(ze,tt),Ar||(lt=p.createTempVariable(v),tt=p.createAssignment(lt,tt),e.setTextRange(tt,ze)),tt=p.createComma(tt,p.cloneNode(ze.operand)),e.setTextRange(tt,ze));for(var Rt=0,cn=Yr;Rt<cn.length;Rt++){var bn=cn[Rt];w[e.getNodeId(tt)]=!0,tt=Hr(bn,tt),e.setTextRange(tt,ze)}return lt&&(w[e.getNodeId(tt)]=!0,tt=p.createComma(tt,lt),e.setTextRange(tt,ze)),tt}}return e.visitEachChild(ze,m,d)}function Ce(ze){var Ar=e.getExternalModuleNameLiteral(p,ze,M,ie,q,A),Yr=e.visitNode(e.firstOrUndefined(ze.arguments),m),lt=Ar&&(!Yr||!e.isStringLiteral(Yr)||Yr.text!==Ar.text)?Ar:Yr,tt=!!(ze.transformFlags&8192);switch(A.module){case e.ModuleKind.AMD:return Q(lt,tt);case e.ModuleKind.UMD:return O(lt!=null?lt:p.createVoidZero(),tt);case e.ModuleKind.CommonJS:default:return V(lt,tt)}}function O(ze,Ar){if(K=!0,e.isSimpleCopiableExpression(ze)){var Yr=e.isGeneratedIdentifier(ze)?ze:e.isStringLiteral(ze)?p.createStringLiteralFromNode(ze):e.setEmitFlags(e.setTextRange(p.cloneNode(ze),ze),1536);return p.createConditionalExpression(p.createIdentifier("__syncRequire"),void 0,V(ze,Ar),void 0,Q(Yr,Ar))}else{var lt=p.createTempVariable(v);return p.createComma(p.createAssignment(lt,ze),p.createConditionalExpression(p.createIdentifier("__syncRequire"),void 0,V(lt,Ar),void 0,Q(lt,Ar)))}}function Q(ze,Ar){var Yr=p.createUniqueName("resolve"),lt=p.createUniqueName("reject"),tt=[p.createParameterDeclaration(void 0,void 0,void 0,Yr),p.createParameterDeclaration(void 0,void 0,void 0,lt)],Rt=p.createBlock([p.createExpressionStatement(p.createCallExpression(p.createIdentifier("require"),void 0,[p.createArrayLiteralExpression([ze||p.createOmittedExpression()]),Yr,lt]))]),cn;b>=2?cn=p.createArrowFunction(void 0,void 0,tt,void 0,void 0,Rt):(cn=p.createFunctionExpression(void 0,void 0,void 0,void 0,tt,void 0,Rt),Ar&&e.setEmitFlags(cn,8));var bn=p.createNewExpression(p.createIdentifier("Promise"),void 0,[cn]);return e.getESModuleInterop(A)?p.createCallExpression(p.createPropertyAccessExpression(bn,p.createIdentifier("then")),void 0,[N().createImportStarCallbackHelper()]):bn}function V(ze,Ar){var Yr=p.createCallExpression(p.createPropertyAccessExpression(p.createIdentifier("Promise"),"resolve"),void 0,[]),lt=p.createCallExpression(p.createIdentifier("require"),void 0,ze?[ze]:[]);e.getESModuleInterop(A)&&(lt=N().createImportStarHelper(lt));var tt;return b>=2?tt=p.createArrowFunction(void 0,void 0,[],void 0,void 0,lt):(tt=p.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,p.createBlock([p.createReturnStatement(lt)])),Ar&&e.setEmitFlags(tt,8)),p.createCallExpression(p.createPropertyAccessExpression(Yr,"then"),void 0,[tt])}function z(ze,Ar){return!e.getESModuleInterop(A)||e.getEmitFlags(ze)&67108864?Ar:e.getExportNeedsImportStarHelper(ze)?N().createImportStarHelper(Ar):Ar}function Te(ze,Ar){return!e.getESModuleInterop(A)||e.getEmitFlags(ze)&67108864?Ar:e.getImportNeedsImportStarHelper(ze)?N().createImportStarHelper(Ar):e.getImportNeedsImportDefaultHelper(ze)?N().createImportDefaultHelper(Ar):Ar}function ge(ze){var Ar,Yr=e.getNamespaceDeclarationNode(ze);if(P!==e.ModuleKind.AMD)if(ze.importClause){var lt=[];Yr&&!e.isDefaultImport(ze)?lt.push(p.createVariableDeclaration(p.cloneNode(Yr.name),void 0,void 0,Te(ze,ke(ze)))):(lt.push(p.createVariableDeclaration(p.getGeneratedNameForNode(ze),void 0,void 0,Te(ze,ke(ze)))),Yr&&e.isDefaultImport(ze)&<.push(p.createVariableDeclaration(p.cloneNode(Yr.name),void 0,void 0,p.getGeneratedNameForNode(ze)))),Ar=e.append(Ar,e.setOriginalNode(e.setTextRange(p.createVariableStatement(void 0,p.createVariableDeclarationList(lt,b>=2?2:0)),ze),ze))}else return e.setOriginalNode(e.setTextRange(p.createExpressionStatement(ke(ze)),ze),ze);else Yr&&e.isDefaultImport(ze)&&(Ar=e.append(Ar,p.createVariableStatement(void 0,p.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(p.createVariableDeclaration(p.cloneNode(Yr.name),void 0,void 0,p.getGeneratedNameForNode(ze)),ze),ze)],b>=2?2:0))));if(Xe(ze)){var tt=e.getOriginalNodeId(ze);k[tt]=Ae(k[tt],ze)}else Ar=Ae(Ar,ze);return e.singleOrMany(Ar)}function ke(ze){var Ar=e.getExternalModuleNameLiteral(p,ze,M,ie,q,A),Yr=[];return Ar&&Yr.push(Ar),p.createCallExpression(p.createIdentifier("require"),void 0,Yr)}function Me(ze){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(ze),"import= for internal module references should be handled in an earlier transformer.");var Ar;if(P!==e.ModuleKind.AMD?e.hasSyntacticModifier(ze,1)?Ar=e.append(Ar,e.setOriginalNode(e.setTextRange(p.createExpressionStatement(Hr(ze.name,ke(ze))),ze),ze)):Ar=e.append(Ar,e.setOriginalNode(e.setTextRange(p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(p.cloneNode(ze.name),void 0,void 0,ke(ze))],b>=2?2:0)),ze),ze)):e.hasSyntacticModifier(ze,1)&&(Ar=e.append(Ar,e.setOriginalNode(e.setTextRange(p.createExpressionStatement(Hr(p.getExportName(ze),p.getLocalName(ze))),ze),ze))),Xe(ze)){var Yr=e.getOriginalNodeId(ze);k[Yr]=Ye(k[Yr],ze)}else Ar=Ye(Ar,ze);return e.singleOrMany(Ar)}function Ie(ze){if(!!ze.moduleSpecifier){var Ar=p.getGeneratedNameForNode(ze);if(ze.exportClause&&e.isNamedExports(ze.exportClause)){var Yr=[];P!==e.ModuleKind.AMD&&Yr.push(e.setOriginalNode(e.setTextRange(p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(Ar,void 0,void 0,ke(ze))])),ze),ze));for(var lt=0,tt=ze.exportClause.elements;lt<tt.length;lt++){var Rt=tt[lt];if(b===0)Yr.push(e.setOriginalNode(e.setTextRange(p.createExpressionStatement(N().createCreateBindingHelper(Ar,p.createStringLiteralFromNode(Rt.propertyName||Rt.name),Rt.propertyName?p.createStringLiteralFromNode(Rt.name):void 0)),Rt),Rt));else{var cn=!!e.getESModuleInterop(A)&&!(e.getEmitFlags(ze)&67108864)&&e.idText(Rt.propertyName||Rt.name)==="default",bn=p.createPropertyAccessExpression(cn?N().createImportDefaultHelper(Ar):Ar,Rt.propertyName||Rt.name);Yr.push(e.setOriginalNode(e.setTextRange(p.createExpressionStatement(Hr(p.getExportName(Rt),bn,void 0,!0)),Rt),Rt))}}return e.singleOrMany(Yr)}else if(ze.exportClause){var Yr=[];return Yr.push(e.setOriginalNode(e.setTextRange(p.createExpressionStatement(Hr(p.cloneNode(ze.exportClause.name),z(ze,P!==e.ModuleKind.AMD?ke(ze):e.isExportNamespaceAsDefaultDeclaration(ze)?Ar:p.createIdentifier(e.idText(ze.exportClause.name))))),ze),ze)),e.singleOrMany(Yr)}else return e.setOriginalNode(e.setTextRange(p.createExpressionStatement(N().createExportStarHelper(P!==e.ModuleKind.AMD?ke(ze):Ar)),ze),ze)}}function Ge(ze){if(!ze.isExportEquals){var Ar,Yr=ze.original;if(Yr&&Xe(Yr)){var lt=e.getOriginalNodeId(ze);k[lt]=Or(k[lt],p.createIdentifier("default"),e.visitNode(ze.expression,m),ze,!0)}else Ar=Or(Ar,p.createIdentifier("default"),e.visitNode(ze.expression,m),ze,!0);return e.singleOrMany(Ar)}}function he(ze){var Ar;if(e.hasSyntacticModifier(ze,1)?Ar=e.append(Ar,e.setOriginalNode(e.setTextRange(p.createFunctionDeclaration(void 0,e.visitNodes(ze.modifiers,ur,e.isModifier),ze.asteriskToken,p.getDeclarationName(ze,!0,!0),void 0,e.visitNodes(ze.parameters,m),void 0,e.visitEachChild(ze.body,m,d)),ze),ze)):Ar=e.append(Ar,e.visitEachChild(ze,m,d)),Xe(ze)){var Yr=e.getOriginalNodeId(ze);k[Yr]=lr(k[Yr],ze)}else Ar=lr(Ar,ze);return e.singleOrMany(Ar)}function ve(ze){var Ar;if(e.hasSyntacticModifier(ze,1)?Ar=e.append(Ar,e.setOriginalNode(e.setTextRange(p.createClassDeclaration(void 0,e.visitNodes(ze.modifiers,ur,e.isModifier),p.getDeclarationName(ze,!0,!0),void 0,e.visitNodes(ze.heritageClauses,m),e.visitNodes(ze.members,m)),ze),ze)):Ar=e.append(Ar,e.visitEachChild(ze,m,d)),Xe(ze)){var Yr=e.getOriginalNodeId(ze);k[Yr]=lr(k[Yr],ze)}else Ar=lr(Ar,ze);return e.singleOrMany(Ar)}function Ve(ze){var Ar,Yr,lt;if(e.hasSyntacticModifier(ze,1)){for(var tt=void 0,Rt=!1,cn=0,bn=ze.declarationList.declarations;cn<bn.length;cn++){var In=bn[cn];if(e.isIdentifier(In.name)&&e.isLocalName(In.name))tt||(tt=e.visitNodes(ze.modifiers,ur,e.isModifier)),Yr=e.append(Yr,In);else if(In.initializer)if(!e.isBindingPattern(In.name)&&(e.isArrowFunction(In.initializer)||e.isFunctionExpression(In.initializer)||e.isClassExpression(In.initializer))){var zn=p.createAssignment(e.setTextRange(p.createPropertyAccessExpression(p.createIdentifier("exports"),In.name),In.name),p.createIdentifier(e.getTextOfIdentifierOrLiteral(In.name))),ir=p.createVariableDeclaration(In.name,In.exclamationToken,In.type,e.visitNode(In.initializer,m));Yr=e.append(Yr,ir),lt=e.append(lt,zn),Rt=!0}else lt=e.append(lt,Le(In))}if(Yr&&(Ar=e.append(Ar,p.updateVariableStatement(ze,tt,p.updateVariableDeclarationList(ze.declarationList,Yr)))),lt){var Rr=e.setOriginalNode(e.setTextRange(p.createExpressionStatement(p.inlineExpressions(lt)),ze),ze);Rt&&e.removeAllComments(Rr),Ar=e.append(Ar,Rr)}}else Ar=e.append(Ar,e.visitEachChild(ze,m,d));if(Xe(ze)){var sr=e.getOriginalNodeId(ze);k[sr]=Lr(k[sr],ze)}else Ar=Lr(Ar,ze);return e.singleOrMany(Ar)}function _e(ze,Ar,Yr){var lt=Jr(ze);if(lt){for(var tt=e.isExportName(ze)?Ar:p.createAssignment(ze,Ar),Rt=0,cn=lt;Rt<cn.length;Rt++){var bn=cn[Rt];e.setEmitFlags(tt,4),tt=Hr(bn,tt,Yr)}return tt}return p.createAssignment(ze,Ar)}function Le(ze){return e.isBindingPattern(ze.name)?e.flattenDestructuringAssignment(e.visitNode(ze,m),void 0,d,0,!1,_e):p.createAssignment(e.setTextRange(p.createPropertyAccessExpression(p.createIdentifier("exports"),ze.name),ze.name),ze.initializer?e.visitNode(ze.initializer,m):p.createVoidZero())}function qe(ze){if(Xe(ze)&&ze.original.kind===236){var Ar=e.getOriginalNodeId(ze);k[Ar]=Lr(k[Ar],ze.original)}return ze}function Xe(ze){return(e.getEmitFlags(ze)&4194304)!==0}function De(ze){var Ar=e.getOriginalNodeId(ze),Yr=k[Ar];return Yr?(delete k[Ar],e.append(Yr,ze)):ze}function Ae(ze,Ar){if(x.exportEquals)return ze;var Yr=Ar.importClause;if(!Yr)return ze;Yr.name&&(ze=Cr(ze,Yr));var lt=Yr.namedBindings;if(lt)switch(lt.kind){case 267:ze=Cr(ze,lt);break;case 268:for(var tt=0,Rt=lt.elements;tt<Rt.length;tt++){var cn=Rt[tt];ze=Cr(ze,cn,!0)}break}return ze}function Ye(ze,Ar){return x.exportEquals?ze:Cr(ze,Ar)}function Lr(ze,Ar){if(x.exportEquals)return ze;for(var Yr=0,lt=Ar.declarationList.declarations;Yr<lt.length;Yr++){var tt=lt[Yr];ze=Er(ze,tt)}return ze}function Er(ze,Ar){if(x.exportEquals)return ze;if(e.isBindingPattern(Ar.name))for(var Yr=0,lt=Ar.name.elements;Yr<lt.length;Yr++){var tt=lt[Yr];e.isOmittedExpression(tt)||(ze=Er(ze,tt))}else e.isGeneratedIdentifier(Ar.name)||(ze=Cr(ze,Ar));return ze}function lr(ze,Ar){if(x.exportEquals)return ze;if(e.hasSyntacticModifier(Ar,1)){var Yr=e.hasSyntacticModifier(Ar,512)?p.createIdentifier("default"):p.getDeclarationName(Ar);ze=Or(ze,Yr,p.getLocalName(Ar),Ar)}return Ar.name&&(ze=Cr(ze,Ar)),ze}function Cr(ze,Ar,Yr){var lt=p.getDeclarationName(Ar),tt=x.exportSpecifiers.get(e.idText(lt));if(tt)for(var Rt=0,cn=tt;Rt<cn.length;Rt++){var bn=cn[Rt];ze=Or(ze,bn.name,lt,bn.name,void 0,Yr)}return ze}function Or(ze,Ar,Yr,lt,tt,Rt){return ze=e.append(ze,Pe(Ar,Yr,lt,tt,Rt)),ze}function Ke(){var ze;return b===0?ze=p.createExpressionStatement(Hr(p.createIdentifier("__esModule"),p.createTrue())):ze=p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(p.createIdentifier("Object"),"defineProperty"),void 0,[p.createIdentifier("exports"),p.createStringLiteral("__esModule"),p.createObjectLiteralExpression([p.createPropertyAssignment("value",p.createTrue())])])),e.setEmitFlags(ze,1048576),ze}function Pe(ze,Ar,Yr,lt,tt){var Rt=e.setTextRange(p.createExpressionStatement(Hr(ze,Ar,void 0,tt)),Yr);return e.startOnNewLine(Rt),lt||e.setEmitFlags(Rt,1536),Rt}function Hr(ze,Ar,Yr,lt){return e.setTextRange(lt&&b!==0?p.createCallExpression(p.createPropertyAccessExpression(p.createIdentifier("Object"),"defineProperty"),void 0,[p.createIdentifier("exports"),p.createStringLiteralFromNode(ze),p.createObjectLiteralExpression([p.createPropertyAssignment("enumerable",p.createTrue()),p.createPropertyAssignment("get",p.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,p.createBlock([p.createReturnStatement(Ar)])))])]):p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("exports"),p.cloneNode(ze)),Ar),Yr)}function ur(ze){switch(ze.kind){case 93:case 88:return}return ze}function vr(ze,Ar,Yr){Ar.kind===303?(M=Ar,x=J[e.getOriginalNodeId(M)],B(ze,Ar,Yr),M=void 0,x=void 0):B(ze,Ar,Yr)}function de(ze,Ar){return Ar=S(ze,Ar),Ar.id&&w[Ar.id]?Ar:ze===1?$e(Ar):e.isShorthandPropertyAssignment(Ar)?Fe(Ar):Ar}function Fe(ze){var Ar=ze.name,Yr=He(Ar);if(Yr!==Ar){if(ze.objectAssignmentInitializer){var lt=p.createAssignment(Yr,ze.objectAssignmentInitializer);return e.setTextRange(p.createPropertyAssignment(Ar,lt),ze)}return e.setTextRange(p.createPropertyAssignment(Ar,Yr),ze)}return ze}function $e(ze){switch(ze.kind){case 79:return He(ze);case 207:return Dr(ze);case 209:return Fr(ze);case 220:return pr(ze)}return ze}function Dr(ze){if(e.isIdentifier(ze.expression)){var Ar=He(ze.expression);if(w[e.getNodeId(Ar)]=!0,!e.isIdentifier(Ar))return e.addEmitFlags(p.updateCallExpression(ze,Ar,void 0,ze.arguments),536870912)}return ze}function Fr(ze){if(e.isIdentifier(ze.tag)){var Ar=He(ze.tag);if(w[e.getNodeId(Ar)]=!0,!e.isIdentifier(Ar))return e.addEmitFlags(p.updateTaggedTemplateExpression(ze,Ar,void 0,ze.template),536870912)}return ze}function He(ze){var Ar,Yr;if(e.getEmitFlags(ze)&4096){var lt=e.getExternalHelpersModuleName(M);return lt?p.createPropertyAccessExpression(lt,ze):ze}else if(!(e.isGeneratedIdentifier(ze)&&!(ze.autoGenerateFlags&64))&&!e.isLocalName(ze)){var tt=q.getReferencedExportContainer(ze,e.isExportName(ze));if(tt&&tt.kind===303)return e.setTextRange(p.createPropertyAccessExpression(p.createIdentifier("exports"),p.cloneNode(ze)),ze);var Rt=q.getReferencedImportDeclaration(ze);if(Rt){if(e.isImportClause(Rt))return e.setTextRange(p.createPropertyAccessExpression(p.getGeneratedNameForNode(Rt.parent),p.createIdentifier("default")),ze);if(e.isImportSpecifier(Rt)){var cn=Rt.propertyName||Rt.name;return e.setTextRange(p.createPropertyAccessExpression(p.getGeneratedNameForNode(((Yr=(Ar=Rt.parent)===null||Ar===void 0?void 0:Ar.parent)===null||Yr===void 0?void 0:Yr.parent)||Rt),p.cloneNode(cn)),ze)}}}return ze}function pr(ze){if(e.isAssignmentOperator(ze.operatorToken.kind)&&e.isIdentifier(ze.left)&&!e.isGeneratedIdentifier(ze.left)&&!e.isLocalName(ze.left)&&!e.isDeclarationNameOfEnumOrNamespace(ze.left)){var Ar=Jr(ze.left);if(Ar){for(var Yr=ze,lt=0,tt=Ar;lt<tt.length;lt++){var Rt=tt[lt];w[e.getNodeId(Yr)]=!0,Yr=Hr(Rt,Yr,ze)}return Yr}}return ze}function Jr(ze){if(!e.isGeneratedIdentifier(ze)){var Ar=q.getReferencedImportDeclaration(ze)||q.getReferencedValueDeclaration(ze);if(Ar)return x&&x.exportedBindings[e.getOriginalNodeId(Ar)]}}}e.transformModule=n;var f={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
|
|
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}})(gr||(gr={}));var gr;(function(e){function n(f){var d=f.factory,a=f.startLexicalEnvironment,p=f.endLexicalEnvironment,N=f.hoistVariableDeclaration,H=f.getCompilerOptions(),h=f.getEmitResolver(),v=f.getEmitHost(),A=f.onSubstituteNode,q=f.onEmitNode;f.onSubstituteNode=lt,f.onEmitNode=Yr,f.enableSubstitution(79),f.enableSubstitution(295),f.enableSubstitution(220),f.enableSubstitution(230),f.enableEmitNotification(303);var ie=[],b=[],P=[],S=[],B=[],J,k,M,x,w,K,Z;return e.chainBundle(f,ne);function ne(ye){if(ye.isDeclarationFile||!(e.isEffectiveExternalModule(ye,H)||ye.transformFlags&4194304))return ye;var or=e.getOriginalNodeId(ye);J=ye,K=ye,k=ie[or]=e.collectExternalModuleInfo(f,ye,h,H),M=d.createUniqueName("exports"),P[or]=M,x=B[or]=d.createUniqueName("context");var fe=R(k.externalImports),je=Y(ye,fe),Ee=d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,void 0,M),d.createParameterDeclaration(void 0,void 0,void 0,x)],void 0,je),We=e.tryGetModuleNameFromFile(d,ye,v,H),ee=d.createArrayLiteralExpression(e.map(fe,function(me){return me.name})),Ne=e.setEmitFlags(d.updateSourceFile(ye,e.setTextRange(d.createNodeArray([d.createExpressionStatement(d.createCallExpression(d.createPropertyAccessExpression(d.createIdentifier("System"),"register"),void 0,We?[We,ee,Ee]:[ee,Ee]))]),ye.statements)),1024);return e.outFile(H)||e.moveEmitHelpers(Ne,je,function(me){return!me.scoped}),Z&&(S[or]=Z,Z=void 0),J=void 0,k=void 0,M=void 0,x=void 0,w=void 0,K=void 0,Ne}function R(ye){for(var or=new e.Map,fe=[],je=0,Ee=ye;je<Ee.length;je++){var We=Ee[je],ee=e.getExternalModuleNameLiteral(d,We,J,v,h,H);if(ee){var Ne=ee.text,me=or.get(Ne);me!==void 0?fe[me].externalImports.push(We):(or.set(Ne,fe.length),fe.push({name:ee,externalImports:[We]}))}}return fe}function Y(ye,or){var fe=[];a();var je=e.getStrictOptionValue(H,"alwaysStrict")||!H.noImplicitUseStrict&&e.isExternalModule(J),Ee=d.copyPrologue(ye.statements,fe,je,I);fe.push(d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration("__moduleName",void 0,void 0,d.createLogicalAnd(x,d.createPropertyAccessExpression(x,"id")))]))),e.visitNode(k.externalHelpersImportDeclaration,I,e.isStatement);var We=e.visitNodes(ye.statements,I,e.isStatement,Ee);e.addRange(fe,w),e.insertStatementsAfterStandardPrologue(fe,p());var ee=U(fe),Ne=ye.transformFlags&1048576?d.createModifiersFromModifierFlags(256):void 0,me=d.createObjectLiteralExpression([d.createPropertyAssignment("setters",T(ee,or)),d.createPropertyAssignment("execute",d.createFunctionExpression(Ne,void 0,void 0,void 0,[],void 0,d.createBlock(We,!0)))],!0);return fe.push(d.createReturnStatement(me)),d.createBlock(fe,!0)}function U(ye){if(!!k.hasExportStarsToExportValues){if(!k.exportedNames&&k.exportSpecifiers.size===0){for(var or=!1,fe=0,je=k.externalImports;fe<je.length;fe++){var Ee=je[fe];if(Ee.kind===271&&Ee.exportClause){or=!0;break}}if(!or){var We=$(void 0);return ye.push(We),We.name}}var ee=[];if(k.exportedNames)for(var Ne=0,me=k.exportedNames;Ne<me.length;Ne++){var Ze=me[Ne];Ze.escapedText!=="default"&&ee.push(d.createPropertyAssignment(d.createStringLiteralFromNode(Ze),d.createTrue()))}var xr=d.createUniqueName("exportedNames");ye.push(d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(xr,void 0,void 0,d.createObjectLiteralExpression(ee,!0))])));var fr=$(xr);return ye.push(fr),fr.name}}function $(ye){var or=d.createUniqueName("exportStar"),fe=d.createIdentifier("m"),je=d.createIdentifier("n"),Ee=d.createIdentifier("exports"),We=d.createStrictInequality(je,d.createStringLiteral("default"));return ye&&(We=d.createLogicalAnd(We,d.createLogicalNot(d.createCallExpression(d.createPropertyAccessExpression(ye,"hasOwnProperty"),void 0,[je])))),d.createFunctionDeclaration(void 0,void 0,void 0,or,void 0,[d.createParameterDeclaration(void 0,void 0,void 0,fe)],void 0,d.createBlock([d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(Ee,void 0,void 0,d.createObjectLiteralExpression([]))])),d.createForInStatement(d.createVariableDeclarationList([d.createVariableDeclaration(je)]),fe,d.createBlock([e.setEmitFlags(d.createIfStatement(We,d.createExpressionStatement(d.createAssignment(d.createElementAccessExpression(Ee,je),d.createElementAccessExpression(fe,je)))),1)])),d.createExpressionStatement(d.createCallExpression(M,void 0,[Ee]))],!0))}function T(ye,or){for(var fe=[],je=0,Ee=or;je<Ee.length;je++){for(var We=Ee[je],ee=e.forEach(We.externalImports,function(Ir){return e.getLocalNameForExternalImport(d,Ir,J)}),Ne=ee?d.getGeneratedNameForNode(ee):d.createUniqueName(""),me=[],Ze=0,xr=We.externalImports;Ze<xr.length;Ze++){var fr=xr[Ze],dr=e.getLocalNameForExternalImport(d,fr,J);switch(fr.kind){case 265:if(!fr.importClause)break;case 264:e.Debug.assert(dr!==void 0),me.push(d.createExpressionStatement(d.createAssignment(dr,Ne)));break;case 271:if(e.Debug.assert(dr!==void 0),fr.exportClause)if(e.isNamedExports(fr.exportClause)){for(var et=[],yt=0,Wr=fr.exportClause.elements;yt<Wr.length;yt++){var tr=Wr[yt];et.push(d.createPropertyAssignment(d.createStringLiteral(e.idText(tr.name)),d.createElementAccessExpression(Ne,d.createStringLiteral(e.idText(tr.propertyName||tr.name)))))}me.push(d.createExpressionStatement(d.createCallExpression(M,void 0,[d.createObjectLiteralExpression(et,!0)])))}else me.push(d.createExpressionStatement(d.createCallExpression(M,void 0,[d.createStringLiteral(e.idText(fr.exportClause.name)),Ne])));else me.push(d.createExpressionStatement(d.createCallExpression(ye,void 0,[Ne])));break}}fe.push(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,void 0,Ne)],void 0,d.createBlock(me,!0)))}return d.createArrayLiteralExpression(fe,!0)}function I(ye){switch(ye.kind){case 265:return y(ye);case 264:return C(ye);case 271:return D(ye);case 270:return m(ye);default:return Ve(ye)}}function y(ye){var or;if(ye.importClause&&N(e.getLocalNameForExternalImport(d,ye,J)),Q(ye)){var fe=e.getOriginalNodeId(ye);b[fe]=z(b[fe],ye)}else or=z(or,ye);return e.singleOrMany(or)}function D(ye){e.Debug.assertIsDefined(ye)}function C(ye){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(ye),"import= for internal module references should be handled in an earlier transformer.");var or;if(N(e.getLocalNameForExternalImport(d,ye,J)),Q(ye)){var fe=e.getOriginalNodeId(ye);b[fe]=Te(b[fe],ye)}else or=Te(or,ye);return e.singleOrMany(or)}function m(ye){if(!ye.isExportEquals){var or=e.visitNode(ye.expression,de,e.isExpression),fe=ye.original;if(fe&&Q(fe)){var je=e.getOriginalNodeId(ye);b[je]=Ge(b[je],d.createIdentifier("default"),or,!0)}else return he(d.createIdentifier("default"),or,!0)}}function u(ye){if(e.hasSyntacticModifier(ye,1)?w=e.append(w,d.updateFunctionDeclaration(ye,ye.decorators,e.visitNodes(ye.modifiers,Ar,e.isModifier),ye.asteriskToken,d.getDeclarationName(ye,!0,!0),void 0,e.visitNodes(ye.parameters,de,e.isParameterDeclaration),void 0,e.visitNode(ye.body,de,e.isBlock))):w=e.append(w,e.visitEachChild(ye,de,f)),Q(ye)){var or=e.getOriginalNodeId(ye);b[or]=Me(b[or],ye)}else w=Me(w,ye)}function g(ye){var or,fe=d.getLocalName(ye);if(N(fe),or=e.append(or,e.setTextRange(d.createExpressionStatement(d.createAssignment(fe,e.setTextRange(d.createClassExpression(e.visitNodes(ye.decorators,de,e.isDecorator),void 0,ye.name,void 0,e.visitNodes(ye.heritageClauses,de,e.isHeritageClause),e.visitNodes(ye.members,de,e.isClassElement)),ye))),ye)),Q(ye)){var je=e.getOriginalNodeId(ye);b[je]=Me(b[je],ye)}else or=Me(or,ye);return e.singleOrMany(or)}function F(ye){if(!ue(ye.declarationList))return e.visitNode(ye,de,e.isStatement);for(var or,fe=e.hasSyntacticModifier(ye,1),je=Q(ye),Ee=0,We=ye.declarationList.declarations;Ee<We.length;Ee++){var ee=We[Ee];ee.initializer?or=e.append(or,X(ee,fe&&!je)):te(ee)}var Ne;if(or&&(Ne=e.append(Ne,e.setTextRange(d.createExpressionStatement(d.inlineExpressions(or)),ye))),je){var me=e.getOriginalNodeId(ye);b[me]=ge(b[me],ye,fe)}else Ne=ge(Ne,ye,!1);return e.singleOrMany(Ne)}function te(ye){if(e.isBindingPattern(ye.name))for(var or=0,fe=ye.name.elements;or<fe.length;or++){var je=fe[or];e.isOmittedExpression(je)||te(je)}else N(d.cloneNode(ye.name))}function ue(ye){return(e.getEmitFlags(ye)&2097152)===0&&(K.kind===303||(e.getOriginalNode(ye).flags&3)===0)}function X(ye,or){var fe=or?j:Se;return e.isBindingPattern(ye.name)?e.flattenDestructuringAssignment(ye,de,f,0,!1,fe):ye.initializer?fe(ye.name,e.visitNode(ye.initializer,de,e.isExpression)):ye.name}function j(ye,or,fe){return Ce(ye,or,fe,!0)}function Se(ye,or,fe){return Ce(ye,or,fe,!1)}function Ce(ye,or,fe,je){return N(d.cloneNode(ye)),je?ve(ye,Rr(e.setTextRange(d.createAssignment(ye,or),fe))):Rr(e.setTextRange(d.createAssignment(ye,or),fe))}function O(ye){if(Q(ye)&&ye.original.kind===236){var or=e.getOriginalNodeId(ye),fe=e.hasSyntacticModifier(ye.original,1);b[or]=ge(b[or],ye.original,fe)}return ye}function Q(ye){return(e.getEmitFlags(ye)&4194304)!==0}function V(ye){var or=e.getOriginalNodeId(ye),fe=b[or];if(fe)return delete b[or],e.append(fe,ye);var je=e.getOriginalNode(ye);return e.isModuleOrEnumDeclaration(je)?e.append(Ie(fe,je),ye):ye}function z(ye,or){if(k.exportEquals)return ye;var fe=or.importClause;if(!fe)return ye;fe.name&&(ye=Ie(ye,fe));var je=fe.namedBindings;if(je)switch(je.kind){case 267:ye=Ie(ye,je);break;case 268:for(var Ee=0,We=je.elements;Ee<We.length;Ee++){var ee=We[Ee];ye=Ie(ye,ee)}break}return ye}function Te(ye,or){return k.exportEquals?ye:Ie(ye,or)}function ge(ye,or,fe){if(k.exportEquals)return ye;for(var je=0,Ee=or.declarationList.declarations;je<Ee.length;je++){var We=Ee[je];(We.initializer||fe)&&(ye=ke(ye,We,fe))}return ye}function ke(ye,or,fe){if(k.exportEquals)return ye;if(e.isBindingPattern(or.name))for(var je=0,Ee=or.name.elements;je<Ee.length;je++){var We=Ee[je];e.isOmittedExpression(We)||(ye=ke(ye,We,fe))}else if(!e.isGeneratedIdentifier(or.name)){var ee=void 0;fe&&(ye=Ge(ye,or.name,d.getLocalName(or)),ee=e.idText(or.name)),ye=Ie(ye,or,ee)}return ye}function Me(ye,or){if(k.exportEquals)return ye;var fe;if(e.hasSyntacticModifier(or,1)){var je=e.hasSyntacticModifier(or,512)?d.createStringLiteral("default"):or.name;ye=Ge(ye,je,d.getLocalName(or)),fe=e.getTextOfIdentifierOrLiteral(je)}return or.name&&(ye=Ie(ye,or,fe)),ye}function Ie(ye,or,fe){if(k.exportEquals)return ye;var je=d.getDeclarationName(or),Ee=k.exportSpecifiers.get(e.idText(je));if(Ee)for(var We=0,ee=Ee;We<ee.length;We++){var Ne=ee[We];Ne.name.escapedText!==fe&&(ye=Ge(ye,Ne.name,je))}return ye}function Ge(ye,or,fe,je){return ye=e.append(ye,he(or,fe,je)),ye}function he(ye,or,fe){var je=d.createExpressionStatement(ve(ye,or));return e.startOnNewLine(je),fe||e.setEmitFlags(je,1536),je}function ve(ye,or){var fe=e.isIdentifier(ye)?d.createStringLiteralFromNode(ye):ye;return e.setEmitFlags(or,e.getEmitFlags(or)|1536),e.setCommentRange(d.createCallExpression(M,void 0,[fe,or]),or)}function Ve(ye){switch(ye.kind){case 236:return F(ye);case 255:return u(ye);case 256:return g(ye);case 241:return _e(ye,!0);case 242:return Le(ye);case 243:return qe(ye);case 239:return Ae(ye);case 240:return Ye(ye);case 249:return Lr(ye);case 247:return Er(ye);case 248:return lr(ye);case 262:return Cr(ye);case 288:return Or(ye);case 289:return Ke(ye);case 251:return Pe(ye);case 291:return Hr(ye);case 234:return ur(ye);case 350:return O(ye);case 351:return V(ye);default:return de(ye)}}function _e(ye,or){var fe=K;return K=ye,ye=d.updateForStatement(ye,e.visitNode(ye.initializer,or?De:Fe,e.isForInitializer),e.visitNode(ye.condition,de,e.isExpression),e.visitNode(ye.incrementor,Fe,e.isExpression),e.visitIterationBody(ye.statement,or?Ve:de,f)),K=fe,ye}function Le(ye){var or=K;return K=ye,ye=d.updateForInStatement(ye,De(ye.initializer),e.visitNode(ye.expression,de,e.isExpression),e.visitIterationBody(ye.statement,Ve,f)),K=or,ye}function qe(ye){var or=K;return K=ye,ye=d.updateForOfStatement(ye,ye.awaitModifier,De(ye.initializer),e.visitNode(ye.expression,de,e.isExpression),e.visitIterationBody(ye.statement,Ve,f)),K=or,ye}function Xe(ye){return e.isVariableDeclarationList(ye)&&ue(ye)}function De(ye){if(Xe(ye)){for(var or=void 0,fe=0,je=ye.declarations;fe<je.length;fe++){var Ee=je[fe];or=e.append(or,X(Ee,!1)),Ee.initializer||te(Ee)}return or?d.inlineExpressions(or):d.createOmittedExpression()}else return e.visitNode(ye,Fe,e.isExpression)}function Ae(ye){return d.updateDoStatement(ye,e.visitIterationBody(ye.statement,Ve,f),e.visitNode(ye.expression,de,e.isExpression))}function Ye(ye){return d.updateWhileStatement(ye,e.visitNode(ye.expression,de,e.isExpression),e.visitIterationBody(ye.statement,Ve,f))}function Lr(ye){return d.updateLabeledStatement(ye,ye.label,e.visitNode(ye.statement,Ve,e.isStatement,d.liftToBlock))}function Er(ye){return d.updateWithStatement(ye,e.visitNode(ye.expression,de,e.isExpression),e.visitNode(ye.statement,Ve,e.isStatement,d.liftToBlock))}function lr(ye){return d.updateSwitchStatement(ye,e.visitNode(ye.expression,de,e.isExpression),e.visitNode(ye.caseBlock,Ve,e.isCaseBlock))}function Cr(ye){var or=K;return K=ye,ye=d.updateCaseBlock(ye,e.visitNodes(ye.clauses,Ve,e.isCaseOrDefaultClause)),K=or,ye}function Or(ye){return d.updateCaseClause(ye,e.visitNode(ye.expression,de,e.isExpression),e.visitNodes(ye.statements,Ve,e.isStatement))}function Ke(ye){return e.visitEachChild(ye,Ve,f)}function Pe(ye){return e.visitEachChild(ye,Ve,f)}function Hr(ye){var or=K;return K=ye,ye=d.updateCatchClause(ye,ye.variableDeclaration,e.visitNode(ye.block,Ve,e.isBlock)),K=or,ye}function ur(ye){var or=K;return K=ye,ye=e.visitEachChild(ye,Ve,f),K=or,ye}function vr(ye,or){if(!(ye.transformFlags&71305216))return ye;switch(ye.kind){case 241:return _e(ye,!1);case 237:return $e(ye);case 211:return Dr(ye,or);case 348:return Fr(ye,or);case 220:if(e.isDestructuringAssignment(ye))return pr(ye,or);break;case 207:if(e.isImportCall(ye))return He(ye);break;case 218:case 219:return ze(ye,or)}return e.visitEachChild(ye,de,f)}function de(ye){return vr(ye,!1)}function Fe(ye){return vr(ye,!0)}function $e(ye){return d.updateExpressionStatement(ye,e.visitNode(ye.expression,Fe,e.isExpression))}function Dr(ye,or){return d.updateParenthesizedExpression(ye,e.visitNode(ye.expression,or?Fe:de,e.isExpression))}function Fr(ye,or){return d.updatePartiallyEmittedExpression(ye,e.visitNode(ye.expression,or?Fe:de,e.isExpression))}function He(ye){var or=e.getExternalModuleNameLiteral(d,ye,J,v,h,H),fe=e.visitNode(e.firstOrUndefined(ye.arguments),de),je=or&&(!fe||!e.isStringLiteral(fe)||fe.text!==or.text)?or:fe;return d.createCallExpression(d.createPropertyAccessExpression(x,d.createIdentifier("import")),void 0,je?[je]:[])}function pr(ye,or){return Jr(ye.left)?e.flattenDestructuringAssignment(ye,de,f,0,!or):e.visitEachChild(ye,de,f)}function Jr(ye){if(e.isAssignmentExpression(ye,!0))return Jr(ye.left);if(e.isSpreadElement(ye))return Jr(ye.expression);if(e.isObjectLiteralExpression(ye))return e.some(ye.properties,Jr);if(e.isArrayLiteralExpression(ye))return e.some(ye.elements,Jr);if(e.isShorthandPropertyAssignment(ye))return Jr(ye.name);if(e.isPropertyAssignment(ye))return Jr(ye.initializer);if(e.isIdentifier(ye)){var or=h.getReferencedExportContainer(ye);return or!==void 0&&or.kind===303}else return!1}function ze(ye,or){if((ye.operator===45||ye.operator===46)&&e.isIdentifier(ye.operand)&&!e.isGeneratedIdentifier(ye.operand)&&!e.isLocalName(ye.operand)&&!e.isDeclarationNameOfEnumOrNamespace(ye.operand)){var fe=ir(ye.operand);if(fe){var je=void 0,Ee=e.visitNode(ye.operand,de,e.isExpression);e.isPrefixUnaryExpression(ye)?Ee=d.updatePrefixUnaryExpression(ye,Ee):(Ee=d.updatePostfixUnaryExpression(ye,Ee),or||(je=d.createTempVariable(N),Ee=d.createAssignment(je,Ee),e.setTextRange(Ee,ye)),Ee=d.createComma(Ee,d.cloneNode(ye.operand)),e.setTextRange(Ee,ye));for(var We=0,ee=fe;We<ee.length;We++){var Ne=ee[We];Ee=ve(Ne,Rr(Ee))}return je&&(Ee=d.createComma(Ee,je),e.setTextRange(Ee,ye)),Ee}}return e.visitEachChild(ye,de,f)}function Ar(ye){switch(ye.kind){case 93:case 88:return}return ye}function Yr(ye,or,fe){if(or.kind===303){var je=e.getOriginalNodeId(or);J=or,k=ie[je],M=P[je],Z=S[je],x=B[je],Z&&delete S[je],q(ye,or,fe),J=void 0,k=void 0,M=void 0,x=void 0,Z=void 0}else q(ye,or,fe)}function lt(ye,or){return or=A(ye,or),sr(or)?or:ye===1?cn(or):ye===4?tt(or):or}function tt(ye){switch(ye.kind){case 295:return Rt(ye)}return ye}function Rt(ye){var or,fe,je=ye.name;if(!e.isGeneratedIdentifier(je)&&!e.isLocalName(je)){var Ee=h.getReferencedImportDeclaration(je);if(Ee){if(e.isImportClause(Ee))return e.setTextRange(d.createPropertyAssignment(d.cloneNode(je),d.createPropertyAccessExpression(d.getGeneratedNameForNode(Ee.parent),d.createIdentifier("default"))),ye);if(e.isImportSpecifier(Ee))return e.setTextRange(d.createPropertyAssignment(d.cloneNode(je),d.createPropertyAccessExpression(d.getGeneratedNameForNode(((fe=(or=Ee.parent)===null||or===void 0?void 0:or.parent)===null||fe===void 0?void 0:fe.parent)||Ee),d.cloneNode(Ee.propertyName||Ee.name))),ye)}}return ye}function cn(ye){switch(ye.kind){case 79:return bn(ye);case 220:return In(ye);case 230:return zn(ye)}return ye}function bn(ye){var or,fe;if(e.getEmitFlags(ye)&4096){var je=e.getExternalHelpersModuleName(J);return je?d.createPropertyAccessExpression(je,ye):ye}if(!e.isGeneratedIdentifier(ye)&&!e.isLocalName(ye)){var Ee=h.getReferencedImportDeclaration(ye);if(Ee){if(e.isImportClause(Ee))return e.setTextRange(d.createPropertyAccessExpression(d.getGeneratedNameForNode(Ee.parent),d.createIdentifier("default")),ye);if(e.isImportSpecifier(Ee))return e.setTextRange(d.createPropertyAccessExpression(d.getGeneratedNameForNode(((fe=(or=Ee.parent)===null||or===void 0?void 0:or.parent)===null||fe===void 0?void 0:fe.parent)||Ee),d.cloneNode(Ee.propertyName||Ee.name)),ye)}}return ye}function In(ye){if(e.isAssignmentOperator(ye.operatorToken.kind)&&e.isIdentifier(ye.left)&&!e.isGeneratedIdentifier(ye.left)&&!e.isLocalName(ye.left)&&!e.isDeclarationNameOfEnumOrNamespace(ye.left)){var or=ir(ye.left);if(or){for(var fe=ye,je=0,Ee=or;je<Ee.length;je++){var We=Ee[je];fe=ve(We,Rr(fe))}return fe}}return ye}function zn(ye){return e.isImportMeta(ye)?d.createPropertyAccessExpression(x,d.createIdentifier("meta")):ye}function ir(ye){var or;if(!e.isGeneratedIdentifier(ye)){var fe=h.getReferencedImportDeclaration(ye)||h.getReferencedValueDeclaration(ye);if(fe){var je=h.getReferencedExportContainer(ye,!1);je&&je.kind===303&&(or=e.append(or,d.getDeclarationName(fe))),or=e.addRange(or,k&&k.exportedBindings[e.getOriginalNodeId(fe)])}}return or}function Rr(ye){return Z===void 0&&(Z=[]),Z[e.getNodeId(ye)]=!0,ye}function sr(ye){return Z&&ye.id&&Z[ye.id]}}e.transformSystemModule=n})(gr||(gr={}));var gr;(function(e){function n(f){var d=f.factory,a=f.getEmitHelperFactory,p=f.getEmitHost(),N=f.getEmitResolver(),H=f.getCompilerOptions(),h=e.getEmitScriptTarget(H),v=f.onEmitNode,A=f.onSubstituteNode;f.onEmitNode=K,f.onSubstituteNode=Z,f.enableEmitNotification(303),f.enableSubstitution(79);var q,ie,b;return e.chainBundle(f,P);function P(R){if(R.isDeclarationFile)return R;if(e.isExternalModule(R)||H.isolatedModules){ie=R,b=void 0;var Y=S(R);return ie=void 0,b&&(Y=d.updateSourceFile(Y,e.setTextRange(d.createNodeArray(e.insertStatementsAfterCustomPrologue(Y.statements.slice(),b)),Y.statements))),!e.isExternalModule(R)||e.some(Y.statements,e.isExternalModuleIndicator)?Y:d.updateSourceFile(Y,e.setTextRange(d.createNodeArray(Gt(Gt([],Y.statements,!0),[e.createEmptyExports(d)],!1)),Y.statements))}return R}function S(R){var Y=e.createExternalHelpersImportDeclarationIfNeeded(d,a(),R,H);if(Y){var U=[],$=d.copyPrologue(R.statements,U);return e.append(U,Y),e.addRange(U,e.visitNodes(R.statements,B,e.isStatement,$)),d.updateSourceFile(R,e.setTextRange(d.createNodeArray(U),R.statements))}else return e.visitEachChild(R,B,f)}function B(R){switch(R.kind){case 264:return e.getEmitScriptTarget(H)>=e.ModuleKind.ES2020?k(R):void 0;case 270:return x(R);case 271:var Y=R;return w(Y)}return R}function J(R){var Y=e.getExternalModuleNameLiteral(d,R,e.Debug.checkDefined(ie),p,N,H),U=[];if(Y&&U.push(Y),!b){var $=d.createUniqueName("_createRequire",48),T=d.createImportDeclaration(void 0,void 0,d.createImportClause(!1,void 0,d.createNamedImports([d.createImportSpecifier(!1,d.createIdentifier("createRequire"),$)])),d.createStringLiteral("module")),I=d.createUniqueName("__require",48),y=d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(I,void 0,void 0,d.createCallExpression(d.cloneNode($),void 0,[d.createPropertyAccessExpression(d.createMetaProperty(100,d.createIdentifier("meta")),d.createIdentifier("url"))]))],h>=2?2:0));b=[T,y]}var D=b[1].declarationList.declarations[0].name;return e.Debug.assertNode(D,e.isIdentifier),d.createCallExpression(d.cloneNode(D),void 0,U)}function k(R){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(R),"import= for internal module references should be handled in an earlier transformer.");var Y;return Y=e.append(Y,e.setOriginalNode(e.setTextRange(d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(d.cloneNode(R.name),void 0,void 0,J(R))],h>=2?2:0)),R),R)),Y=M(Y,R),e.singleOrMany(Y)}function M(R,Y){return e.hasSyntacticModifier(Y,1)&&(R=e.append(R,d.createExportDeclaration(void 0,void 0,Y.isTypeOnly,d.createNamedExports([d.createExportSpecifier(!1,void 0,e.idText(Y.name))])))),R}function x(R){return R.isExportEquals?void 0:R}function w(R){if(H.module!==void 0&&H.module>e.ModuleKind.ES2015||!R.exportClause||!e.isNamespaceExport(R.exportClause)||!R.moduleSpecifier)return R;var Y=R.exportClause.name,U=d.getGeneratedNameForNode(Y),$=d.createImportDeclaration(void 0,void 0,d.createImportClause(!1,void 0,d.createNamespaceImport(U)),R.moduleSpecifier,R.assertClause);e.setOriginalNode($,R.exportClause);var T=e.isExportNamespaceAsDefaultDeclaration(R)?d.createExportDefault(U):d.createExportDeclaration(void 0,void 0,!1,d.createNamedExports([d.createExportSpecifier(!1,U,Y)]));return e.setOriginalNode(T,R),[$,T]}function K(R,Y,U){e.isSourceFile(Y)?((e.isExternalModule(Y)||H.isolatedModules)&&H.importHelpers&&(q=new e.Map),v(R,Y,U),q=void 0):v(R,Y,U)}function Z(R,Y){return Y=A(R,Y),q&&e.isIdentifier(Y)&&e.getEmitFlags(Y)&4096?ne(Y):Y}function ne(R){var Y=e.idText(R),U=q.get(Y);return U||q.set(Y,U=d.createUniqueName(Y,48)),U}}e.transformECMAScriptModule=n})(gr||(gr={}));var gr;(function(e){function n(f){var d=f.onSubstituteNode,a=f.onEmitNode,p=e.transformECMAScriptModule(f),N=f.onSubstituteNode,H=f.onEmitNode;f.onSubstituteNode=d,f.onEmitNode=a;var h=e.transformModule(f),v=f.onSubstituteNode,A=f.onEmitNode;f.onSubstituteNode=ie,f.onEmitNode=b,f.enableSubstitution(303),f.enableEmitNotification(303);var q;return B;function ie(k,M){return e.isSourceFile(M)?(q=M,d(k,M)):q?q.impliedNodeFormat===e.ModuleKind.ESNext?N(k,M):v(k,M):d(k,M)}function b(k,M,x){return e.isSourceFile(M)&&(q=M),q?q.impliedNodeFormat===e.ModuleKind.ESNext?H(k,M,x):A(k,M,x):a(k,M,x)}function P(k){return k.impliedNodeFormat===e.ModuleKind.ESNext?p:h}function S(k){if(k.isDeclarationFile)return k;q=k;var M=P(k)(k);return q=void 0,e.Debug.assert(e.isSourceFile(M)),M}function B(k){return k.kind===303?S(k):J(k)}function J(k){return f.factory.createBundle(e.map(k.sourceFiles,S),k.prepends)}}e.transformNodeModule=n})(gr||(gr={}));var gr;(function(e){function n(a){return e.isVariableDeclaration(a)||e.isPropertyDeclaration(a)||e.isPropertySignature(a)||e.isBindingElement(a)||e.isSetAccessor(a)||e.isGetAccessor(a)||e.isConstructSignatureDeclaration(a)||e.isCallSignatureDeclaration(a)||e.isMethodDeclaration(a)||e.isMethodSignature(a)||e.isFunctionDeclaration(a)||e.isParameter(a)||e.isTypeParameterDeclaration(a)||e.isExpressionWithTypeArguments(a)||e.isImportEqualsDeclaration(a)||e.isTypeAliasDeclaration(a)||e.isConstructorDeclaration(a)||e.isIndexSignatureDeclaration(a)||e.isPropertyAccessExpression(a)||e.isJSDocTypeAlias(a)}e.canProduceDiagnostics=n;function f(a){if(e.isSetAccessor(a)||e.isGetAccessor(a))return p;return e.isMethodSignature(a)||e.isMethodDeclaration(a)?H:d(a);function p(v){var A=N(v);return A!==void 0?{diagnosticMessage:A,errorNode:a,typeName:a.name}:void 0}function N(v){return e.isStatic(a)?v.errorModuleName?v.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:a.parent.kind===256?v.errorModuleName?v.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:v.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 H(v){var A=h(v);return A!==void 0?{diagnosticMessage:A,errorNode:a,typeName:a.name}:void 0}function h(v){return e.isStatic(a)?v.errorModuleName?v.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:a.parent.kind===256?v.errorModuleName?v.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:v.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=f;function d(a){if(e.isVariableDeclaration(a)||e.isPropertyDeclaration(a)||e.isPropertySignature(a)||e.isPropertyAccessExpression(a)||e.isBindingElement(a)||e.isConstructorDeclaration(a))return N;return e.isSetAccessor(a)||e.isGetAccessor(a)?H:e.isConstructSignatureDeclaration(a)||e.isCallSignatureDeclaration(a)||e.isMethodDeclaration(a)||e.isMethodSignature(a)||e.isFunctionDeclaration(a)||e.isIndexSignatureDeclaration(a)?h:e.isParameter(a)?e.isParameterPropertyDeclaration(a,a.parent)&&e.hasSyntacticModifier(a.parent,8)?N:v:e.isTypeParameterDeclaration(a)?q:e.isExpressionWithTypeArguments(a)?ie:e.isImportEqualsDeclaration(a)?b:e.isTypeAliasDeclaration(a)||e.isJSDocTypeAlias(a)?P:e.Debug.assertNever(a,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.SyntaxKind[a.kind]));function p(S){if(a.kind===253||a.kind===202)return S.errorModuleName?S.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(a.kind===166||a.kind===205||a.kind===165||a.kind===163&&e.hasSyntacticModifier(a.parent,8))return e.isStatic(a)?S.errorModuleName?S.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:a.parent.kind===256||a.kind===163?S.errorModuleName?S.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:S.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 N(S){var B=p(S);return B!==void 0?{diagnosticMessage:B,errorNode:a,typeName:a.name}:void 0}function H(S){var B;return a.kind===172?e.isStatic(a)?B=S.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:B=S.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(a)?B=S.errorModuleName?S.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:B=S.errorModuleName?S.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:B,errorNode:a.name,typeName:a.name}}function h(S){var B;switch(a.kind){case 174:B=S.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 173:B=S.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 175:B=S.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 168:case 167:e.isStatic(a)?B=S.errorModuleName?S.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:a.parent.kind===256?B=S.errorModuleName?S.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:B=S.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 255:B=S.errorModuleName?S.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: "+a.kind)}return{diagnosticMessage:B,errorNode:a.name||a}}function v(S){var B=A(S);return B!==void 0?{diagnosticMessage:B,errorNode:a,typeName:a.name}:void 0}function A(S){switch(a.parent.kind){case 170:return S.errorModuleName?S.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 174:case 179:return S.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 173:return S.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 175:return S.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 168:case 167:return e.isStatic(a.parent)?S.errorModuleName?S.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:a.parent.parent.kind===256?S.errorModuleName?S.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:S.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 255:case 178:return S.errorModuleName?S.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 172:case 171:return S.errorModuleName?S.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: ".concat(e.SyntaxKind[a.parent.kind]))}}function q(){var S;switch(a.parent.kind){case 256:S=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 257:S=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 194:S=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 179:case 174:S=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 173:S=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 168:case 167:e.isStatic(a.parent)?S=e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:a.parent.parent.kind===256?S=e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:S=e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 178:case 255:S=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 258:S=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: "+a.parent.kind)}return{diagnosticMessage:S,errorNode:a,typeName:a.name}}function ie(){var S;return e.isClassDeclaration(a.parent.parent)?S=e.isHeritageClause(a.parent)&&a.parent.token===117?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:a.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:S=e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:S,errorNode:a,typeName:e.getNameOfDeclaration(a.parent.parent)}}function b(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:a,typeName:a.name}}function P(S){return{diagnosticMessage:S.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(a)?e.Debug.checkDefined(a.typeExpression):a.type,typeName:e.isJSDocTypeAlias(a)?e.getNameOfDeclaration(a):a.name}}}e.createGetSymbolAccessibilityDiagnosticForNode=d})(gr||(gr={}));var gr;(function(e){function n(b,P,S){var B=b.getCompilerOptions(),J=e.transformNodes(P,b,e.factory,B,S?[S]:e.filter(b.getSourceFiles(),e.isSourceFileNotJson),[p],!1);return J.diagnostics}e.getDeclarationDiagnostics=n;function f(b,P){var S=P.text.substring(b.pos,b.end);return e.stringContains(S,"@internal")}function d(b,P){var S=e.getParseTreeNode(b);if(S&&S.kind===163){var B=S.parent.parameters.indexOf(S),J=B>0?S.parent.parameters[B-1]:void 0,k=P.text,M=J?e.concatenate(e.getTrailingCommentRanges(k,e.skipTrivia(k,J.end+1,!1,!0)),e.getLeadingCommentRanges(k,b.pos)):e.getTrailingCommentRanges(k,e.skipTrivia(k,b.pos,!1,!0));return M&&M.length&&f(e.last(M),P)}var x=S&&e.getLeadingCommentRangesOfNode(S,P);return!!e.forEach(x,function(w){return f(w,P)})}e.isInternalDeclaration=d;var a=531469;function p(b){var P=function(){return e.Debug.fail("Diagnostic emitted without context")},S=P,B=!0,J=!1,k=!1,M=!1,x=!1,w,K,Z,ne,R,Y,U=b.factory,$=b.getEmitHost(),T={trackSymbol:O,reportInaccessibleThisError:ge,reportInaccessibleUniqueSymbolError:z,reportCyclicStructureError:Te,reportPrivateInBaseOfClassExpression:Q,reportLikelyUnsafeImportRequiredError:ke,reportTruncationError:Me,moduleResolverHost:$,trackReferencedAmbientModule:j,trackExternalModuleSymbolOfImportTypeNode:Ce,reportNonlocalAugmentation:Ie,reportNonSerializableProperty:Ge},I,y,D,C,m,u,g=b.getEmitResolver(),F=b.getCompilerOptions(),te=F.noResolve,ue=F.stripInternal;return ve;function X(ir){if(!!ir){K=K||new e.Set;for(var Rr=0,sr=ir;Rr<sr.length;Rr++){var ye=sr[Rr];K.add(ye)}}}function j(ir,Rr){var sr=g.getTypeReferenceDirectivesForSymbol(Rr,67108863);if(e.length(sr))return X(sr);var ye=e.getSourceFileOfNode(ir);C.set(e.getOriginalNodeId(ye),ye)}function Se(ir){if(ir.accessibility===0){if(ir&&ir.aliasesToMakeVisible)if(!Z)Z=ir.aliasesToMakeVisible;else for(var Rr=0,sr=ir.aliasesToMakeVisible;Rr<sr.length;Rr++){var ye=sr[Rr];e.pushIfUnique(Z,ye)}}else{var or=S(ir);if(or)return or.typeName?b.addDiagnostic(e.createDiagnosticForNode(ir.errorNode||or.errorNode,or.diagnosticMessage,e.getTextOfNode(or.typeName),ir.errorSymbolName,ir.errorModuleName)):b.addDiagnostic(e.createDiagnosticForNode(ir.errorNode||or.errorNode,or.diagnosticMessage,ir.errorSymbolName,ir.errorModuleName)),!0}return!1}function Ce(ir){J||(Y||(Y=[])).push(ir)}function O(ir,Rr,sr){if(ir.flags&262144)return!1;var ye=Se(g.isSymbolAccessible(ir,Rr,sr,!0));return X(g.getTypeReferenceDirectivesForSymbol(ir,sr)),ye}function Q(ir){(I||y)&&b.addDiagnostic(e.createDiagnosticForNode(I||y,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,ir))}function V(){return I?e.declarationNameToString(I):y&&e.getNameOfDeclaration(y)?e.declarationNameToString(e.getNameOfDeclaration(y)):y&&e.isExportAssignment(y)?y.isExportEquals?"export=":"default":"(Missing)"}function z(){(I||y)&&b.addDiagnostic(e.createDiagnosticForNode(I||y,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,V(),"unique symbol"))}function Te(){(I||y)&&b.addDiagnostic(e.createDiagnosticForNode(I||y,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,V()))}function ge(){(I||y)&&b.addDiagnostic(e.createDiagnosticForNode(I||y,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,V(),"this"))}function ke(ir){(I||y)&&b.addDiagnostic(e.createDiagnosticForNode(I||y,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,V(),ir))}function Me(){(I||y)&&b.addDiagnostic(e.createDiagnosticForNode(I||y,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Ie(ir,Rr,sr){var ye,or=(ye=Rr.declarations)===null||ye===void 0?void 0:ye.find(function(ee){return e.getSourceFileOfNode(ee)===ir}),fe=e.filter(sr.declarations,function(ee){return e.getSourceFileOfNode(ee)!==ir});if(fe)for(var je=0,Ee=fe;je<Ee.length;je++){var We=Ee[je];b.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(We,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(or,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}}function Ge(ir){(I||y)&&b.addDiagnostic(e.createDiagnosticForNode(I||y,e.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,ir))}function he(ir,Rr){var sr=S;S=function(or){return or.errorNode&&e.canProduceDiagnostics(or.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(or.errorNode)(or):{diagnosticMessage:or.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:or.errorNode||ir}};var ye=g.getDeclarationStatementsForSourceFile(ir,a,T,Rr);return S=sr,ye}function ve(ir){if(ir.kind===303&&ir.isDeclarationFile)return ir;if(ir.kind===304){J=!0,C=new e.Map,m=new e.Map;var Rr=!1,sr=U.createBundle(e.map(ir.sourceFiles,function(dr){if(!dr.isDeclarationFile){if(Rr=Rr||dr.hasNoDefaultLib,D=dr,w=dr,Z=void 0,R=!1,ne=new e.Map,S=P,M=!1,x=!1,Ve(dr,C),_e(dr,m),e.isExternalOrCommonJsModule(dr)||e.isJsonSourceFile(dr)){k=!1,B=!1;var et=e.isSourceFileJS(dr)?U.createNodeArray(he(dr,!0)):e.visitNodes(dr.statements,Fr),yt=U.updateSourceFile(dr,[U.createModuleDeclaration([],[U.createModifier(135)],U.createStringLiteral(e.getResolvedExternalModuleName(b.getEmitHost(),dr)),U.createModuleBlock(e.setTextRange(U.createNodeArray(Fe(et)),dr.statements)))],!0,[],[],!1,[]);return yt}B=!0;var Wr=e.isSourceFileJS(dr)?U.createNodeArray(he(dr)):e.visitNodes(dr.statements,Fr);return U.updateSourceFile(dr,Fe(Wr),!0,[],[],!1,[])}}),e.mapDefined(ir.prepends,function(dr){if(dr.kind===306){var et=e.createUnparsedSourceFile(dr,"dts",ue);return Rr=Rr||!!et.hasNoDefaultLib,Ve(et,C),X(et.typeReferenceDirectives),_e(et,m),et}return dr}));sr.syntheticFileReferences=[],sr.syntheticTypeReferences=Ze(),sr.syntheticLibReferences=me(),sr.hasNoDefaultLib=Rr;var ye=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(ir,$,!0).declarationFilePath)),or=fr(sr.syntheticFileReferences,ye);return C.forEach(or),sr}B=!0,M=!1,x=!1,w=ir,D=ir,S=P,J=!1,k=!1,R=!1,Z=void 0,ne=new e.Map,K=void 0,C=Ve(D,new e.Map),m=_e(D,new e.Map);var fe=[],je=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(ir,$,!0).declarationFilePath)),Ee=fr(fe,je),We;if(e.isSourceFileJS(D))We=U.createNodeArray(he(ir)),C.forEach(Ee),u=e.filter(We,e.isAnyImportSyntax);else{var ee=e.visitNodes(ir.statements,Fr);We=e.setTextRange(U.createNodeArray(Fe(ee)),ir.statements),C.forEach(Ee),u=e.filter(We,e.isAnyImportSyntax),e.isExternalModule(ir)&&(!k||M&&!x)&&(We=e.setTextRange(U.createNodeArray(Gt(Gt([],We,!0),[e.createEmptyExports(U)],!1)),We))}var Ne=U.updateSourceFile(ir,We,!0,fe,Ze(),ir.hasNoDefaultLib,me());return Ne.exportedModulesFromDeclarationEmit=Y,Ne;function me(){return e.map(e.arrayFrom(m.keys()),function(dr){return{fileName:dr,pos:-1,end:-1}})}function Ze(){return K?e.mapDefined(e.arrayFrom(K.keys()),xr):[]}function xr(dr){if(u)for(var et=0,yt=u;et<yt.length;et++){var Wr=yt[et];if(e.isImportEqualsDeclaration(Wr)&&e.isExternalModuleReference(Wr.moduleReference)){var tr=Wr.moduleReference.expression;if(e.isStringLiteralLike(tr)&&tr.text===dr)return}else if(e.isImportDeclaration(Wr)&&e.isStringLiteral(Wr.moduleSpecifier)&&Wr.moduleSpecifier.text===dr)return}return{fileName:dr,pos:-1,end:-1}}function fr(dr,et){return function(yt){var Wr;if(yt.isDeclarationFile)Wr=yt.fileName;else{if(J&&e.contains(ir.sourceFiles,yt))return;var tr=e.getOutputPathsFor(yt,$,!0);Wr=tr.declarationFilePath||tr.jsFilePath||yt.fileName}if(Wr){var Ir=e.moduleSpecifiers.getModuleSpecifier(F,D,e.toPath(et,$.getCurrentDirectory(),$.getCanonicalFileName),e.toPath(Wr,$.getCurrentDirectory(),$.getCanonicalFileName),$);if(!e.pathIsRelative(Ir)){X([Ir]);return}var kr=e.getRelativePathToDirectoryOrUrl(et,Wr,$.getCurrentDirectory(),$.getCanonicalFileName,!1);if(e.startsWith(kr,"./")&&e.hasExtension(kr)&&(kr=kr.substring(2)),e.startsWith(kr,"node_modules/")||e.pathContainsNodeModules(kr))return;dr.push({pos:-1,end:-1,fileName:kr})}}}}function Ve(ir,Rr){return te||!e.isUnparsedSource(ir)&&e.isSourceFileJS(ir)||e.forEach(ir.referencedFiles,function(sr){var ye=$.getSourceFileFromReference(ir,sr);ye&&Rr.set(e.getOriginalNodeId(ye),ye)}),Rr}function _e(ir,Rr){return e.forEach(ir.libReferenceDirectives,function(sr){var ye=$.getLibFileFromReference(sr);ye&&Rr.set(e.toFileNameLowerCase(sr.fileName),!0)}),Rr}function Le(ir){if(ir.kind===79)return ir;return ir.kind===201?U.updateArrayBindingPattern(ir,e.visitNodes(ir.elements,Rr)):U.updateObjectBindingPattern(ir,e.visitNodes(ir.elements,Rr));function Rr(sr){return sr.kind===226?sr:U.updateBindingElement(sr,sr.dotDotDotToken,sr.propertyName,Le(sr.name),Xe(sr)?sr.initializer:void 0)}}function qe(ir,Rr,sr){var ye;R||(ye=S,S=e.createGetSymbolAccessibilityDiagnosticForNode(ir));var or=U.updateParameterDeclaration(ir,void 0,H(ir,Rr),ir.dotDotDotToken,Le(ir.name),g.isOptionalParameter(ir)?ir.questionToken||U.createToken(57):void 0,Ae(ir,sr||ir.type,!0),De(ir));return R||(S=ye),or}function Xe(ir){return A(ir)&&g.isLiteralConstDeclaration(e.getParseTreeNode(ir))}function De(ir){if(Xe(ir))return g.createLiteralConstValue(e.getParseTreeNode(ir),T)}function Ae(ir,Rr,sr){if(!sr&&e.hasEffectiveModifier(ir,8)||Xe(ir))return;var ye=ir.kind===163&&(g.isRequiredInitializedParameter(ir)||g.isOptionalUninitializedParameterProperty(ir));if(Rr&&!ye)return e.visitNode(Rr,$e);if(!e.getParseTreeNode(ir))return Rr?e.visitNode(Rr,$e):U.createKeywordTypeNode(130);if(ir.kind===172)return U.createKeywordTypeNode(130);I=ir.name;var or;if(R||(or=S,S=e.createGetSymbolAccessibilityDiagnosticForNode(ir)),ir.kind===253||ir.kind===202)return fe(g.createTypeOfDeclaration(ir,w,a,T));if(ir.kind===163||ir.kind===166||ir.kind===165)return ir.initializer?fe(g.createTypeOfDeclaration(ir,w,a,T,ye)||g.createTypeOfExpression(ir.initializer,w,a,T)):fe(g.createTypeOfDeclaration(ir,w,a,T,ye));return fe(g.createReturnTypeOfSignatureDeclaration(ir,w,a,T));function fe(je){return I=void 0,R||(S=or),je||U.createKeywordTypeNode(130)}}function Ye(ir){switch(ir=e.getParseTreeNode(ir),ir.kind){case 255:case 260:case 257:case 256:case 258:case 259:return!g.isDeclarationVisible(ir);case 253:return!Er(ir);case 264:case 265:case 271:case 270:return!1;case 169:return!0}return!1}function Lr(ir){var Rr;if(ir.body)return!0;var sr=(Rr=ir.symbol.declarations)===null||Rr===void 0?void 0:Rr.filter(function(ye){return e.isFunctionDeclaration(ye)&&!ye.body});return!sr||sr.indexOf(ir)===sr.length-1}function Er(ir){return e.isOmittedExpression(ir)?!1:e.isBindingPattern(ir.name)?e.some(ir.name.elements,Er):g.isDeclarationVisible(ir)}function lr(ir,Rr,sr){if(!e.hasEffectiveModifier(ir,8)){var ye=e.map(Rr,function(or){return qe(or,sr)});if(!!ye)return U.createNodeArray(ye,Rr.hasTrailingComma)}}function Cr(ir,Rr){var sr;if(!Rr){var ye=e.getThisParameter(ir);ye&&(sr=[qe(ye)])}if(e.isSetAccessorDeclaration(ir)){var or=void 0;if(!Rr){var fe=e.getSetAccessorValueParameter(ir);if(fe){var je=In(ir,g.getAllAccessorDeclarations(ir));or=qe(fe,void 0,je)}}or||(or=U.createParameterDeclaration(void 0,void 0,void 0,"value")),sr=e.append(sr,or)}return U.createNodeArray(sr||e.emptyArray)}function Or(ir,Rr){return e.hasEffectiveModifier(ir,8)?void 0:e.visitNodes(Rr,$e)}function Ke(ir){return e.isSourceFile(ir)||e.isTypeAliasDeclaration(ir)||e.isModuleDeclaration(ir)||e.isClassDeclaration(ir)||e.isInterfaceDeclaration(ir)||e.isFunctionLike(ir)||e.isIndexSignatureDeclaration(ir)||e.isMappedTypeNode(ir)}function Pe(ir,Rr){var sr=g.isEntityNameVisible(ir,Rr);Se(sr),X(g.getTypeReferenceDirectivesForEntityName(ir))}function Hr(ir,Rr){return e.hasJSDocNodes(ir)&&e.hasJSDocNodes(Rr)&&(ir.jsDoc=Rr.jsDoc),e.setCommentRange(ir,e.getCommentRange(Rr))}function ur(ir,Rr){if(!!Rr){if(k=k||ir.kind!==260&&ir.kind!==199,e.isStringLiteralLike(Rr))if(J){var sr=e.getExternalModuleNameFromDeclaration(b.getEmitHost(),g,ir);if(sr)return U.createStringLiteral(sr)}else{var ye=g.getSymbolOfExternalModuleSpecifier(Rr);ye&&(Y||(Y=[])).push(ye)}return Rr}}function vr(ir){if(!!g.isDeclarationVisible(ir))if(ir.moduleReference.kind===276){var Rr=e.getExternalModuleImportEqualsDeclarationExpression(ir);return U.updateImportEqualsDeclaration(ir,void 0,ir.modifiers,ir.isTypeOnly,ir.name,U.updateExternalModuleReference(ir.moduleReference,ur(ir,Rr)))}else{var sr=S;return S=e.createGetSymbolAccessibilityDiagnosticForNode(ir),Pe(ir.moduleReference,w),S=sr,ir}}function de(ir){if(!ir.importClause)return U.updateImportDeclaration(ir,void 0,ir.modifiers,ir.importClause,ur(ir,ir.moduleSpecifier),void 0);var Rr=ir.importClause&&ir.importClause.name&&g.isDeclarationVisible(ir.importClause)?ir.importClause.name:void 0;if(!ir.importClause.namedBindings)return Rr&&U.updateImportDeclaration(ir,void 0,ir.modifiers,U.updateImportClause(ir.importClause,ir.importClause.isTypeOnly,Rr,void 0),ur(ir,ir.moduleSpecifier),void 0);if(ir.importClause.namedBindings.kind===267){var sr=g.isDeclarationVisible(ir.importClause.namedBindings)?ir.importClause.namedBindings:void 0;return Rr||sr?U.updateImportDeclaration(ir,void 0,ir.modifiers,U.updateImportClause(ir.importClause,ir.importClause.isTypeOnly,Rr,sr),ur(ir,ir.moduleSpecifier),void 0):void 0}var ye=e.mapDefined(ir.importClause.namedBindings.elements,function(or){return g.isDeclarationVisible(or)?or:void 0});if(ye&&ye.length||Rr)return U.updateImportDeclaration(ir,void 0,ir.modifiers,U.updateImportClause(ir.importClause,ir.importClause.isTypeOnly,Rr,ye&&ye.length?U.updateNamedImports(ir.importClause.namedBindings,ye):void 0),ur(ir,ir.moduleSpecifier),void 0);if(g.isImportRequiredByAugmentation(ir))return U.updateImportDeclaration(ir,void 0,ir.modifiers,void 0,ur(ir,ir.moduleSpecifier),void 0)}function Fe(ir){for(;e.length(Z);){var Rr=Z.shift();if(!e.isLateVisibilityPaintedStatement(Rr))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(e.SyntaxKind?e.SyntaxKind[Rr.kind]:Rr.kind));var sr=B;B=Rr.parent&&e.isSourceFile(Rr.parent)&&!(e.isExternalModule(Rr.parent)&&J);var ye=pr(Rr);B=sr,ne.set(e.getOriginalNodeId(Rr),ye)}return e.visitNodes(ir,or);function or(fe){if(e.isLateVisibilityPaintedStatement(fe)){var je=e.getOriginalNodeId(fe);if(ne.has(je)){var Ee=ne.get(je);return ne.delete(je),Ee&&((e.isArray(Ee)?e.some(Ee,e.needsScopeMarker):e.needsScopeMarker(Ee))&&(M=!0),e.isSourceFile(fe.parent)&&(e.isArray(Ee)?e.some(Ee,e.isExternalModuleIndicator):e.isExternalModuleIndicator(Ee))&&(k=!0)),Ee}}return fe}}function $e(ir){if(lt(ir)||e.isDeclaration(ir)&&(Ye(ir)||e.hasDynamicName(ir)&&!g.isLateBound(e.getParseTreeNode(ir)))||e.isFunctionLike(ir)&&g.isImplementationOfOverload(ir)||e.isSemicolonClassElement(ir))return;var Rr;Ke(ir)&&(Rr=w,w=ir);var sr=S,ye=e.canProduceDiagnostics(ir),or=R,fe=(ir.kind===181||ir.kind===194)&&ir.parent.kind!==258;if((e.isMethodDeclaration(ir)||e.isMethodSignature(ir))&&e.hasEffectiveModifier(ir,8))return ir.symbol&&ir.symbol.declarations&&ir.symbol.declarations[0]!==ir?void 0:dr(U.createPropertyDeclaration(void 0,cn(ir),ir.name,void 0,void 0,void 0));if(ye&&!R&&(S=e.createGetSymbolAccessibilityDiagnosticForNode(ir)),e.isTypeQueryNode(ir)&&Pe(ir.exprName,w),fe&&(R=!0),ie(ir))switch(ir.kind){case 227:{(e.isEntityName(ir.expression)||e.isEntityNameExpression(ir.expression))&&Pe(ir.expression,w);var je=e.visitEachChild(ir,$e,b);return dr(U.updateExpressionWithTypeArguments(je,je.expression,je.typeArguments))}case 177:{Pe(ir.typeName,w);var je=e.visitEachChild(ir,$e,b);return dr(U.updateTypeReferenceNode(je,je.typeName,je.typeArguments))}case 174:return dr(U.updateConstructSignature(ir,Or(ir,ir.typeParameters),lr(ir,ir.parameters),Ae(ir,ir.type)));case 170:{var Ee=U.createConstructorDeclaration(void 0,cn(ir),lr(ir,ir.parameters,0),void 0);return dr(Ee)}case 168:{if(e.isPrivateIdentifier(ir.name))return dr(void 0);var We=U.createMethodDeclaration(void 0,cn(ir),void 0,ir.name,ir.questionToken,Or(ir,ir.typeParameters),lr(ir,ir.parameters),Ae(ir,ir.type),void 0);return dr(We)}case 171:{if(e.isPrivateIdentifier(ir.name))return dr(void 0);var ee=In(ir,g.getAllAccessorDeclarations(ir));return dr(U.updateGetAccessorDeclaration(ir,void 0,cn(ir),ir.name,Cr(ir,e.hasEffectiveModifier(ir,8)),Ae(ir,ee),void 0))}case 172:return e.isPrivateIdentifier(ir.name)?dr(void 0):dr(U.updateSetAccessorDeclaration(ir,void 0,cn(ir),ir.name,Cr(ir,e.hasEffectiveModifier(ir,8)),void 0));case 166:return e.isPrivateIdentifier(ir.name)?dr(void 0):dr(U.updatePropertyDeclaration(ir,void 0,cn(ir),ir.name,ir.questionToken,Ae(ir,ir.type),De(ir)));case 165:return e.isPrivateIdentifier(ir.name)?dr(void 0):dr(U.updatePropertySignature(ir,cn(ir),ir.name,ir.questionToken,Ae(ir,ir.type)));case 167:return e.isPrivateIdentifier(ir.name)?dr(void 0):dr(U.updateMethodSignature(ir,cn(ir),ir.name,ir.questionToken,Or(ir,ir.typeParameters),lr(ir,ir.parameters),Ae(ir,ir.type)));case 173:return dr(U.updateCallSignature(ir,Or(ir,ir.typeParameters),lr(ir,ir.parameters),Ae(ir,ir.type)));case 175:return dr(U.updateIndexSignature(ir,void 0,cn(ir),lr(ir,ir.parameters),e.visitNode(ir.type,$e)||U.createKeywordTypeNode(130)));case 253:return e.isBindingPattern(ir.name)?ze(ir.name):(fe=!0,R=!0,dr(U.updateVariableDeclaration(ir,ir.name,void 0,Ae(ir,ir.type),De(ir))));case 162:return Dr(ir)&&(ir.default||ir.constraint)?dr(U.updateTypeParameterDeclaration(ir,ir.name,void 0,void 0)):dr(e.visitEachChild(ir,$e,b));case 188:{var Ne=e.visitNode(ir.checkType,$e),me=e.visitNode(ir.extendsType,$e),Ze=w;w=ir.trueType;var xr=e.visitNode(ir.trueType,$e);w=Ze;var fr=e.visitNode(ir.falseType,$e);return dr(U.updateConditionalTypeNode(ir,Ne,me,xr,fr))}case 178:return dr(U.updateFunctionTypeNode(ir,e.visitNodes(ir.typeParameters,$e),lr(ir,ir.parameters),e.visitNode(ir.type,$e)));case 179:return dr(U.updateConstructorTypeNode(ir,cn(ir),e.visitNodes(ir.typeParameters,$e),lr(ir,ir.parameters),e.visitNode(ir.type,$e)));case 199:return e.isLiteralImportTypeNode(ir)?dr(U.updateImportTypeNode(ir,U.updateLiteralTypeNode(ir.argument,ur(ir,ir.argument.literal)),ir.qualifier,e.visitNodes(ir.typeArguments,$e,e.isTypeNode),ir.isTypeOf)):dr(ir);default:e.Debug.assertNever(ir,"Attempted to process unhandled node kind: ".concat(e.SyntaxKind[ir.kind]))}return e.isTupleTypeNode(ir)&&e.getLineAndCharacterOfPosition(D,ir.pos).line===e.getLineAndCharacterOfPosition(D,ir.end).line&&e.setEmitFlags(ir,1),dr(e.visitEachChild(ir,$e,b));function dr(et){return et&&ye&&e.hasDynamicName(ir)&&Yr(ir),Ke(ir)&&(w=Rr),ye&&!R&&(S=sr),fe&&(R=or),et===ir?et:et&&e.setOriginalNode(Hr(et,ir),ir)}}function Dr(ir){return ir.parent.kind===168&&e.hasEffectiveModifier(ir.parent,8)}function Fr(ir){if(!!q(ir)&&!lt(ir)){switch(ir.kind){case 271:return e.isSourceFile(ir.parent)&&(k=!0),x=!0,U.updateExportDeclaration(ir,void 0,ir.modifiers,ir.isTypeOnly,ir.exportClause,ur(ir,ir.moduleSpecifier),void 0);case 270:{if(e.isSourceFile(ir.parent)&&(k=!0),x=!0,ir.expression.kind===79)return ir;var Rr=U.createUniqueName("_default",16);S=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:ir}},y=ir;var sr=U.createVariableDeclaration(Rr,void 0,g.createTypeOfExpression(ir.expression,ir,a,T),void 0);y=void 0;var ye=U.createVariableStatement(B?[U.createModifier(135)]:[],U.createVariableDeclarationList([sr],2));return[ye,U.updateExportAssignment(ir,ir.decorators,ir.modifiers,Rr)]}}var or=pr(ir);return ne.set(e.getOriginalNodeId(ir),or),ir}}function He(ir){if(e.isImportEqualsDeclaration(ir)||e.hasEffectiveModifier(ir,512)||!e.canHaveModifiers(ir))return ir;var Rr=U.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(ir)&27646);return U.updateModifiers(ir,Rr)}function pr(ir){if(lt(ir))return;switch(ir.kind){case 264:return vr(ir);case 265:return de(ir)}if(e.isDeclaration(ir)&&Ye(ir)||e.isFunctionLike(ir)&&g.isImplementationOfOverload(ir))return;var Rr;Ke(ir)&&(Rr=w,w=ir);var sr=e.canProduceDiagnostics(ir),ye=S;sr&&(S=e.createGetSymbolAccessibilityDiagnosticForNode(ir));var or=B;switch(ir.kind){case 258:return en(U.updateTypeAliasDeclaration(ir,void 0,cn(ir),ir.name,e.visitNodes(ir.typeParameters,$e,e.isTypeParameterDeclaration),e.visitNode(ir.type,$e,e.isTypeNode)));case 257:return en(U.updateInterfaceDeclaration(ir,void 0,cn(ir),ir.name,Or(ir,ir.typeParameters),zn(ir.heritageClauses),e.visitNodes(ir.members,$e)));case 255:{var fe=en(U.updateFunctionDeclaration(ir,void 0,cn(ir),void 0,ir.name,Or(ir,ir.typeParameters),lr(ir,ir.parameters),Ae(ir,ir.type),void 0));if(fe&&g.isExpandoFunctionDeclaration(ir)&&Lr(ir)){var je=g.getPropertiesOfContainerFunction(ir),Ee=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,fe.name||U.createIdentifier("_default"),U.createModuleBlock([]),16);e.setParent(Ee,w),Ee.locals=e.createSymbolTable(je),Ee.symbol=je[0].parent;var We=[],ee=e.mapDefined(je,function(St){if(!(!St.valueDeclaration||!e.isPropertyAccessExpression(St.valueDeclaration))){S=e.createGetSymbolAccessibilityDiagnosticForNode(St.valueDeclaration);var Ut=g.createTypeOfDeclaration(St.valueDeclaration,Ee,a,T);S=ye;var qt=e.unescapeLeadingUnderscores(St.escapedName),Pn=e.isStringANonContextualKeyword(qt),dn=Pn?U.getGeneratedNameForNode(St.valueDeclaration):U.createIdentifier(qt);Pn&&We.push([dn,qt]);var oa=U.createVariableDeclaration(dn,void 0,Ut,void 0);return U.createVariableStatement(Pn?void 0:[U.createToken(93)],U.createVariableDeclarationList([oa]))}});We.length?ee.push(U.createExportDeclaration(void 0,void 0,!1,U.createNamedExports(e.map(We,function(St){var Ut=St[0],qt=St[1];return U.createExportSpecifier(!1,Ut,qt)})))):ee=e.mapDefined(ee,function(St){return U.updateModifiers(St,0)});var Ne=U.createModuleDeclaration(void 0,cn(ir),ir.name,U.createModuleBlock(ee),16);if(!e.hasEffectiveModifier(fe,512))return[fe,Ne];var me=U.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(fe)&-514|2),Ze=U.updateFunctionDeclaration(fe,void 0,me,void 0,fe.name,fe.typeParameters,fe.parameters,fe.type,void 0),xr=U.updateModuleDeclaration(Ne,void 0,me,Ne.name,Ne.body),fr=U.createExportAssignment(void 0,void 0,!1,Ne.name);return e.isSourceFile(ir.parent)&&(k=!0),x=!0,[Ze,xr,fr]}else return fe}case 260:{B=!1;var dr=ir.body;if(dr&&dr.kind===261){var et=M,yt=x;x=!1,M=!1;var Wr=e.visitNodes(dr.statements,Fr),tr=Fe(Wr);ir.flags&8388608&&(M=!1),!e.isGlobalScopeAugmentation(ir)&&!Rt(tr)&&!x&&(M?tr=U.createNodeArray(Gt(Gt([],tr,!0),[e.createEmptyExports(U)],!1)):tr=e.visitNodes(tr,He));var Ir=U.updateModuleBlock(dr,tr);B=or,M=et,x=yt;var kr=cn(ir);return en(U.updateModuleDeclaration(ir,void 0,kr,e.isExternalModuleAugmentation(ir)?ur(ir,ir.name):ir.name,Ir))}else{B=or;var kr=cn(ir);B=!1,e.visitNode(dr,Fr);var zr=e.getOriginalNodeId(dr),Ir=ne.get(zr);return ne.delete(zr),en(U.updateModuleDeclaration(ir,void 0,kr,ir.name,Ir))}}case 256:{I=ir.name,y=ir;var me=U.createNodeArray(cn(ir)),gt=Or(ir,ir.typeParameters),vt=e.getFirstConstructorWithBody(ir),ut=void 0;if(vt){var ht=S;ut=e.compact(e.flatMap(vt.parameters,function(Ut){if(!e.hasSyntacticModifier(Ut,16476)||lt(Ut))return;if(S=e.createGetSymbolAccessibilityDiagnosticForNode(Ut),Ut.name.kind===79)return Hr(U.createPropertyDeclaration(void 0,cn(Ut),Ut.name,Ut.questionToken,Ae(Ut,Ut.type),De(Ut)),Ut);return qt(Ut.name);function qt(Pn){for(var dn,oa=0,pt=Pn.elements;oa<pt.length;oa++){var _t=pt[oa];e.isOmittedExpression(_t)||(e.isBindingPattern(_t.name)&&(dn=e.concatenate(dn,qt(_t.name))),dn=dn||[],dn.push(U.createPropertyDeclaration(void 0,cn(Ut),_t.name,void 0,Ae(_t,void 0),void 0)))}return dn}})),S=ht}var xt=e.some(ir.members,function(Ut){return!!Ut.name&&e.isPrivateIdentifier(Ut.name)}),wt=xt?[U.createPropertyDeclaration(void 0,void 0,U.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,Qt=e.concatenate(e.concatenate(wt,ut),e.visitNodes(ir.members,$e)),mt=U.createNodeArray(Qt),rn=e.getEffectiveBaseTypeNode(ir);if(rn&&!e.isEntityNameExpression(rn.expression)&&rn.expression.kind!==104){var sa=ir.name?e.unescapeLeadingUnderscores(ir.name.escapedText):"default",ba=U.createUniqueName("".concat(sa,"_base"),16);S=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:rn,typeName:ir.name}};var Jn=U.createVariableDeclaration(ba,void 0,g.createTypeOfExpression(rn.expression,ir,a,T),void 0),na=U.createVariableStatement(B?[U.createModifier(135)]:[],U.createVariableDeclarationList([Jn],2)),Wn=U.createNodeArray(e.map(ir.heritageClauses,function(Ut){if(Ut.token===94){var qt=S;S=e.createGetSymbolAccessibilityDiagnosticForNode(Ut.types[0]);var Pn=U.updateHeritageClause(Ut,e.map(Ut.types,function(dn){return U.updateExpressionWithTypeArguments(dn,ba,e.visitNodes(dn.typeArguments,$e))}));return S=qt,Pn}return U.updateHeritageClause(Ut,e.visitNodes(U.createNodeArray(e.filter(Ut.types,function(dn){return e.isEntityNameExpression(dn.expression)||dn.expression.kind===104})),$e))}));return[na,en(U.updateClassDeclaration(ir,void 0,me,ir.name,gt,Wn,mt))]}else{var Wn=zn(ir.heritageClauses);return en(U.updateClassDeclaration(ir,void 0,me,ir.name,gt,Wn,mt))}}case 236:return en(Jr(ir));case 259:return en(U.updateEnumDeclaration(ir,void 0,U.createNodeArray(cn(ir)),ir.name,U.createNodeArray(e.mapDefined(ir.members,function(St){if(!lt(St)){var Ut=g.getConstantValue(St);return Hr(U.updateEnumMember(St,St.name,Ut!==void 0?typeof Ut=="string"?U.createStringLiteral(Ut):U.createNumericLiteral(Ut):void 0),St)}}))))}return e.Debug.assertNever(ir,"Unhandled top-level node in declaration emit: ".concat(e.SyntaxKind[ir.kind]));function en(St){return Ke(ir)&&(w=Rr),sr&&(S=ye),ir.kind===260&&(B=or),St===ir?St:(y=void 0,I=void 0,St&&e.setOriginalNode(Hr(St,ir),ir))}}function Jr(ir){if(!!e.forEach(ir.declarationList.declarations,Er)){var Rr=e.visitNodes(ir.declarationList.declarations,$e);if(!!e.length(Rr))return U.updateVariableStatement(ir,U.createNodeArray(cn(ir)),U.updateVariableDeclarationList(ir.declarationList,Rr))}}function ze(ir){return e.flatten(e.mapDefined(ir.elements,function(Rr){return Ar(Rr)}))}function Ar(ir){if(ir.kind!==226&&ir.name)return Er(ir)?e.isBindingPattern(ir.name)?ze(ir.name):U.createVariableDeclaration(ir.name,void 0,Ae(ir,void 0),void 0):void 0}function Yr(ir){var Rr;R||(Rr=S,S=e.createGetSymbolAccessibilityDiagnosticForNodeName(ir)),I=ir.name,e.Debug.assert(g.isLateBound(e.getParseTreeNode(ir)));var sr=ir,ye=sr.name.expression;Pe(ye,w),R||(S=Rr),I=void 0}function lt(ir){return!!ue&&!!ir&&d(ir,D)}function tt(ir){return e.isExportAssignment(ir)||e.isExportDeclaration(ir)}function Rt(ir){return e.some(ir,tt)}function cn(ir){var Rr=e.getEffectiveModifierFlags(ir),sr=bn(ir);return Rr===sr?ir.modifiers:U.createModifiersFromModifierFlags(sr)}function bn(ir){var Rr=11003,sr=B&&!N(ir)?2:0,ye=ir.parent.kind===303;return(!ye||J&&ye&&e.isExternalModule(ir.parent))&&(Rr^=2,sr=0),h(ir,Rr,sr)}function In(ir,Rr){var sr=v(ir);return!sr&&ir!==Rr.firstAccessor&&(sr=v(Rr.firstAccessor),S=e.createGetSymbolAccessibilityDiagnosticForNode(Rr.firstAccessor)),!sr&&Rr.secondAccessor&&ir!==Rr.secondAccessor&&(sr=v(Rr.secondAccessor),S=e.createGetSymbolAccessibilityDiagnosticForNode(Rr.secondAccessor)),sr}function zn(ir){return U.createNodeArray(e.filter(e.map(ir,function(Rr){return U.updateHeritageClause(Rr,e.visitNodes(U.createNodeArray(e.filter(Rr.types,function(sr){return e.isEntityNameExpression(sr.expression)||Rr.token===94&&sr.expression.kind===104})),$e))}),function(Rr){return Rr.types&&!!Rr.types.length}))}}e.transformDeclarations=p;function N(b){return b.kind===257}function H(b,P,S){return e.factory.createModifiersFromModifierFlags(h(b,P,S))}function h(b,P,S){P===void 0&&(P=27643),S===void 0&&(S=0);var B=e.getEffectiveModifierFlags(b)&P|S;return B&512&&!(B&1)&&(B^=1),B&512&&B&2&&(B^=2),B}function v(b){if(b)return b.kind===171?b.type:b.parameters.length>0?b.parameters[0].type:void 0}function A(b){switch(b.kind){case 166:case 165:return!e.hasEffectiveModifier(b,8);case 163:case 253:return!0}return!1}function q(b){switch(b.kind){case 255:case 260:case 264:case 257:case 256:case 258:case 259:case 236:case 265:case 271:case 270:return!0}return!1}function ie(b){switch(b.kind){case 174:case 170:case 168:case 171:case 172:case 166:case 165:case 167:case 173:case 175:case 253:case 162:case 227:case 177:case 188:case 178:case 179:case 199:return!0}return!1}})(gr||(gr={}));var gr;(function(e){function n(P){switch(P){case e.ModuleKind.ESNext:case e.ModuleKind.ES2022:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return e.transformNodeModule;default:return e.transformModule}}var f;(function(P){P[P.Uninitialized=0]="Uninitialized",P[P.Initialized=1]="Initialized",P[P.Completed=2]="Completed",P[P.Disposed=3]="Disposed"})(f||(f={}));var d;(function(P){P[P.Substitution=1]="Substitution",P[P.EmitNotifications=2]="EmitNotifications"})(d||(d={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray};function a(P,S,B){return{scriptTransformers:p(P,S,B),declarationTransformers:N(S)}}e.getTransformers=a;function p(P,S,B){if(B)return e.emptyArray;var J=e.getEmitScriptTarget(P),k=e.getEmitModuleKind(P),M=[];return e.addRange(M,S&&e.map(S.before,v)),M.push(e.transformTypeScript),M.push(e.transformClassFields),e.getJSXTransformEnabled(P)&&M.push(e.transformJsx),J<99&&M.push(e.transformESNext),J<8&&M.push(e.transformES2021),J<7&&M.push(e.transformES2020),J<6&&M.push(e.transformES2019),J<5&&M.push(e.transformES2018),J<4&&M.push(e.transformES2017),J<3&&M.push(e.transformES2016),J<2&&(M.push(e.transformES2015),M.push(e.transformGenerators)),M.push(n(k)),J<1&&M.push(e.transformES5),e.addRange(M,S&&e.map(S.after,v)),M}function N(P){var S=[];return S.push(e.transformDeclarations),e.addRange(S,P&&e.map(P.afterDeclarations,A)),S}function H(P){return function(S){return e.isBundle(S)?P.transformBundle(S):P.transformSourceFile(S)}}function h(P,S){return function(B){var J=P(B);return typeof J=="function"?S(B,J):H(J)}}function v(P){return h(P,e.chainBundle)}function A(P){return h(P,function(S,B){return B})}function q(P,S){return S}e.noEmitSubstitution=q;function ie(P,S,B){B(P,S)}e.noEmitNotification=ie;function b(P,S,B,J,k,M,x){for(var w=new Array(353),K,Z,ne,R=0,Y=[],U=[],$=[],T=[],I=0,y=!1,D=[],C=0,m,u,g=q,F=ie,te=0,ue=[],X={factory:B,getCompilerOptions:function(){return J},getEmitResolver:function(){return P},getEmitHost:function(){return S},getEmitHelperFactory:e.memoize(function(){return e.createEmitHelperFactory(X)}),startLexicalEnvironment:qe,suspendLexicalEnvironment:Xe,resumeLexicalEnvironment:De,endLexicalEnvironment:Ae,setLexicalEnvironmentFlags:Ye,getLexicalEnvironmentFlags:Lr,hoistVariableDeclaration:Ve,hoistFunctionDeclaration:_e,addInitializationStatement:Le,startBlockScope:Er,endBlockScope:lr,addBlockScopedVariable:Cr,requestEmitHelper:Or,readEmitHelpers:Ke,enableSubstitution:ke,enableEmitNotification:Ge,isSubstitutionEnabled:Me,isEmitNotificationEnabled:he,get onSubstituteNode(){return g},set onSubstituteNode(Hr){e.Debug.assert(te<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(Hr!==void 0,"Value must not be 'undefined'"),g=Hr},get onEmitNode(){return F},set onEmitNode(Hr){e.Debug.assert(te<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(Hr!==void 0,"Value must not be 'undefined'"),F=Hr},addDiagnostic:function(Hr){ue.push(Hr)}},j=0,Se=k;j<Se.length;j++){var Ce=Se[j];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(Ce)))}e.performance.mark("beforeTransform");var O=M.map(function(Hr){return Hr(X)}),Q=function(Hr){for(var ur=0,vr=O;ur<vr.length;ur++){var de=vr[ur];Hr=de(Hr)}return Hr};te=1;for(var V=[],z=0,Te=k;z<Te.length;z++){var Ce=Te[z];e.tracing===null||e.tracing===void 0||e.tracing.push("emit","transformNodes",Ce.kind===303?{path:Ce.path}:{kind:Ce.kind,pos:Ce.pos,end:Ce.end}),V.push((x?Q:ge)(Ce)),e.tracing===null||e.tracing===void 0||e.tracing.pop()}return te=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:V,substituteNode:Ie,emitNodeWithNotification:ve,isEmitNotificationEnabled:he,dispose:Pe,diagnostics:ue};function ge(Hr){return Hr&&(!e.isSourceFile(Hr)||!Hr.isDeclarationFile)?Q(Hr):Hr}function ke(Hr){e.Debug.assert(te<2,"Cannot modify the transformation context after transformation has completed."),w[Hr]|=1}function Me(Hr){return(w[Hr.kind]&1)!==0&&(e.getEmitFlags(Hr)&4)===0}function Ie(Hr,ur){return e.Debug.assert(te<3,"Cannot substitute a node after the result is disposed."),ur&&Me(ur)&&g(Hr,ur)||ur}function Ge(Hr){e.Debug.assert(te<2,"Cannot modify the transformation context after transformation has completed."),w[Hr]|=2}function he(Hr){return(w[Hr.kind]&2)!==0||(e.getEmitFlags(Hr)&2)!==0}function ve(Hr,ur,vr){e.Debug.assert(te<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),ur&&(he(ur)?F(Hr,ur,vr):vr(Hr,ur))}function Ve(Hr){e.Debug.assert(te>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(te<2,"Cannot modify the lexical environment after transformation has completed.");var ur=e.setEmitFlags(B.createVariableDeclaration(Hr),64);K?K.push(ur):K=[ur],R&1&&(R|=2)}function _e(Hr){e.Debug.assert(te>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(Hr,1048576),Z?Z.push(Hr):Z=[Hr]}function Le(Hr){e.Debug.assert(te>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(Hr,1048576),ne?ne.push(Hr):ne=[Hr]}function qe(){e.Debug.assert(te>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!y,"Lexical environment is suspended."),Y[I]=K,U[I]=Z,$[I]=ne,T[I]=R,I++,K=void 0,Z=void 0,ne=void 0,R=0}function Xe(){e.Debug.assert(te>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!y,"Lexical environment is already suspended."),y=!0}function De(){e.Debug.assert(te>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(y,"Lexical environment is not suspended."),y=!1}function Ae(){e.Debug.assert(te>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!y,"Lexical environment is suspended.");var Hr;if(K||Z||ne){if(Z&&(Hr=Gt([],Z,!0)),K){var ur=B.createVariableStatement(void 0,B.createVariableDeclarationList(K));e.setEmitFlags(ur,1048576),Hr?Hr.push(ur):Hr=[ur]}ne&&(Hr?Hr=Gt(Gt([],Hr,!0),ne,!0):Hr=Gt([],ne,!0))}return I--,K=Y[I],Z=U[I],ne=$[I],R=T[I],I===0&&(Y=[],U=[],$=[],T=[]),Hr}function Ye(Hr,ur){R=ur?R|Hr:R&~Hr}function Lr(){return R}function Er(){e.Debug.assert(te>0,"Cannot start a block scope during initialization."),e.Debug.assert(te<2,"Cannot start a block scope after transformation has completed."),D[C]=m,C++,m=void 0}function lr(){e.Debug.assert(te>0,"Cannot end a block scope during initialization."),e.Debug.assert(te<2,"Cannot end a block scope after transformation has completed.");var Hr=e.some(m)?[B.createVariableStatement(void 0,B.createVariableDeclarationList(m.map(function(ur){return B.createVariableDeclaration(ur)}),1))]:void 0;return C--,m=D[C],C===0&&(D=[]),Hr}function Cr(Hr){e.Debug.assert(C>0,"Cannot add a block scoped variable outside of an iteration body."),(m||(m=[])).push(Hr)}function Or(Hr){if(e.Debug.assert(te>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(te<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!Hr.scoped,"Cannot request a scoped emit helper."),Hr.dependencies)for(var ur=0,vr=Hr.dependencies;ur<vr.length;ur++){var de=vr[ur];Or(de)}u=e.append(u,Hr)}function Ke(){e.Debug.assert(te>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(te<2,"Cannot modify the transformation context after transformation has completed.");var Hr=u;return u=void 0,Hr}function Pe(){if(te<3){for(var Hr=0,ur=k;Hr<ur.length;Hr++){var vr=ur[Hr];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(vr)))}K=void 0,Y=void 0,Z=void 0,U=void 0,g=void 0,F=void 0,u=void 0,te=3}}}e.transformNodes=b,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:q,onEmitNode:ie,addDiagnostic:e.noop}})(gr||(gr={}));var gr;(function(e){var n=U();function f(y){return e.fileExtensionIs(y,".tsbuildinfo")}e.isBuildInfoFile=f;function d(y,D,C,m,u,g){m===void 0&&(m=!1);var F=e.isArray(C)?C:e.getSourceFilesToEmit(y,C,m),te=y.getCompilerOptions();if(e.outFile(te)){var ue=y.getPrependNodes();if(F.length||ue.length){var X=e.factory.createBundle(F,ue),j=D(N(X,y,m),X);if(j)return j}}else{if(!u)for(var Se=0,Ce=F;Se<Ce.length;Se++){var O=Ce[Se],j=D(N(O,y,m),O);if(j)return j}if(g){var Q=a(te);if(Q)return D({buildInfoPath:Q},void 0)}}}e.forEachEmittedFile=d;function a(y){var D=y.configFilePath;if(!!e.isIncrementalCompilation(y)){if(y.tsBuildInfoFile)return y.tsBuildInfoFile;var C=e.outFile(y),m;if(C)m=e.removeFileExtension(C);else{if(!D)return;var u=e.removeFileExtension(D);m=y.outDir?y.rootDir?e.resolvePath(y.outDir,e.getRelativePathFromDirectory(y.rootDir,u,!0)):e.combinePaths(y.outDir,e.getBaseFileName(u)):u}return m+".tsbuildinfo"}}e.getTsBuildInfoEmitOutputFilePath=a;function p(y,D){var C=e.outFile(y),m=y.emitDeclarationOnly?void 0:C,u=m&&H(m,y),g=D||e.getEmitDeclarations(y)?e.removeFileExtension(C)+".d.ts":void 0,F=g&&e.getAreDeclarationMapsEnabled(y)?g+".map":void 0,te=a(y);return{jsFilePath:m,sourceMapFilePath:u,declarationFilePath:g,declarationMapPath:F,buildInfoPath:te}}e.getOutputPathsForBundle=p;function N(y,D,C){var m=D.getCompilerOptions();if(y.kind===304)return p(m,C);var u=e.getOwnEmitOutputFilePath(y.fileName,D,h(y.fileName,m)),g=e.isJsonSourceFile(y),F=g&&e.comparePaths(y.fileName,u,D.getCurrentDirectory(),!D.useCaseSensitiveFileNames())===0,te=m.emitDeclarationOnly||F?void 0:u,ue=!te||e.isJsonSourceFile(y)?void 0:H(te,m),X=C||e.getEmitDeclarations(m)&&!g?e.getDeclarationEmitOutputFilePath(y.fileName,D):void 0,j=X&&e.getAreDeclarationMapsEnabled(m)?X+".map":void 0;return{jsFilePath:te,sourceMapFilePath:ue,declarationFilePath:X,declarationMapPath:j,buildInfoPath:void 0}}e.getOutputPathsFor=N;function H(y,D){return D.sourceMap&&!D.inlineSourceMap?y+".map":void 0}function h(y,D){return e.fileExtensionIs(y,".json")?".json":D.jsx===1&&e.fileExtensionIsOneOf(y,[".jsx",".tsx"])?".jsx":e.fileExtensionIsOneOf(y,[".mts",".mjs"])?".mjs":e.fileExtensionIsOneOf(y,[".cts",".cjs"])?".cjs":".js"}e.getOutputExtension=h;function v(y,D,C,m,u){return m?e.resolvePath(m,e.getRelativePathFromDirectory(u?u():B(D,C),y,C)):y}function A(y,D,C,m){return e.changeExtension(v(y,D,C,D.options.declarationDir||D.options.outDir,m),e.getDeclarationEmitExtensionForPath(y))}e.getOutputDeclarationFileName=A;function q(y,D,C,m){if(!D.options.emitDeclarationOnly){var u=e.fileExtensionIs(y,".json"),g=e.changeExtension(v(y,D,C,D.options.outDir,m),h(y,D.options));return!u||e.comparePaths(y,g,e.Debug.checkDefined(D.options.configFilePath),C)!==0?g:void 0}}function ie(){var y;return{addOutput:D,getOutputs:C};function D(m){m&&(y||(y=[])).push(m)}function C(){return y||e.emptyArray}}function b(y,D){var C=p(y.options,!1),m=C.jsFilePath,u=C.sourceMapFilePath,g=C.declarationFilePath,F=C.declarationMapPath,te=C.buildInfoPath;D(m),D(u),D(g),D(F),D(te)}function P(y,D,C,m,u){if(!e.fileExtensionIs(D,".d.ts")){var g=q(D,y,C,u);if(m(g),!e.fileExtensionIs(D,".json")&&(g&&y.options.sourceMap&&m("".concat(g,".map")),e.getEmitDeclarations(y.options))){var F=A(D,y,C,u);m(F),y.options.declarationMap&&m("".concat(F,".map"))}}}function S(y,D,C,m,u){var g;return y.rootDir?(g=e.getNormalizedAbsolutePath(y.rootDir,C),u==null||u(y.rootDir)):y.composite&&y.configFilePath?(g=e.getDirectoryPath(e.normalizeSlashes(y.configFilePath)),u==null||u(g)):g=e.computeCommonSourceDirectoryOfFilenames(D(),C,m),g&&g[g.length-1]!==e.directorySeparator&&(g+=e.directorySeparator),g}e.getCommonSourceDirectory=S;function B(y,D){var C=y.options,m=y.fileNames;return S(C,function(){return e.filter(m,function(u){return!(C.noEmitForJsFiles&&e.fileExtensionIsOneOf(u,e.supportedJSExtensionsFlat))&&!e.fileExtensionIs(u,".d.ts")})},e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(C.configFilePath))),e.createGetCanonicalFileName(!D))}e.getCommonSourceDirectoryOfConfig=B;function J(y,D){var C=ie(),m=C.addOutput,u=C.getOutputs;if(e.outFile(y.options))b(y,m);else{for(var g=e.memoize(function(){return B(y,D)}),F=0,te=y.fileNames;F<te.length;F++){var ue=te[F];P(y,ue,D,m,g)}m(a(y.options))}return u()}e.getAllProjectOutputs=J;function k(y,D,C){D=e.normalizePath(D),e.Debug.assert(e.contains(y.fileNames,D),"Expected fileName to be present in command line");var m=ie(),u=m.addOutput,g=m.getOutputs;return e.outFile(y.options)?b(y,u):P(y,D,C,u),g()}e.getOutputFileNames=k;function M(y,D){if(e.outFile(y.options)){var C=p(y.options,!1).jsFilePath;return e.Debug.checkDefined(C,"project ".concat(y.options.configFilePath," expected to have at least one output"))}for(var m=e.memoize(function(){return B(y,D)}),u=0,g=y.fileNames;u<g.length;u++){var F=g[u];if(!e.fileExtensionIs(F,".d.ts")){var C=q(F,y,D,m);if(C)return C;if(!e.fileExtensionIs(F,".json")&&e.getEmitDeclarations(y.options))return A(F,y,D,m)}}var te=a(y.options);return te||e.Debug.fail("project ".concat(y.options.configFilePath," expected to have at least one output"))}e.getFirstProjectOutput=M;function x(y,D,C,m,u,g,F){var te=m.scriptTransformers,ue=m.declarationTransformers,X=D.getCompilerOptions(),j=X.sourceMap||X.inlineSourceMap||e.getAreDeclarationMapsEnabled(X)?[]:void 0,Se=X.listEmittedFiles?[]:void 0,Ce=e.createDiagnosticCollection(),O=e.getNewLineCharacter(X,function(){return D.getNewLine()}),Q=e.createTextWriter(O),V=e.performance.createTimer("printTime","beforePrint","afterPrint"),z=V.enter,Te=V.exit,ge,ke=!1,Me;return z(),d(D,Ie,e.getSourceFilesToEmit(D,C,F),F,g,!C),Te(),{emitSkipped:ke,diagnostics:Ce.getDiagnostics(),emittedFiles:Se,sourceMaps:j,exportedModulesFromDeclarationEmit:Me};function Ie(Ae,Ye){var Lr=Ae.jsFilePath,Er=Ae.sourceMapFilePath,lr=Ae.declarationFilePath,Cr=Ae.declarationMapPath,Or=Ae.buildInfoPath,Ke;Or&&Ye&&e.isBundle(Ye)&&(Ke=e.getDirectoryPath(e.getNormalizedAbsolutePath(Or,D.getCurrentDirectory())),ge={commonSourceDirectory:Pe(D.getCommonSourceDirectory()),sourceFiles:Ye.sourceFiles.map(function(Hr){return Pe(e.getNormalizedAbsolutePath(Hr.fileName,D.getCurrentDirectory()))})}),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:Lr}),he(Ye,Lr,Er,Pe),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:lr}),ve(Ye,lr,Cr,Pe),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:Or}),Ge(ge,Or),e.tracing===null||e.tracing===void 0||e.tracing.pop(),!ke&&Se&&(u||(Lr&&Se.push(Lr),Er&&Se.push(Er),Or&&Se.push(Or)),lr&&Se.push(lr),Cr&&Se.push(Cr));function Pe(Hr){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(Ke,Hr,D.getCanonicalFileName))}}function Ge(Ae,Ye){if(!(!Ye||C||ke)){var Lr=D.getProgramBuildInfo();if(D.isEmitBlocked(Ye)){ke=!0;return}var Er=e.version;e.writeFile(D,Ce,Ye,w({bundle:Ae,program:Lr,version:Er}),!1)}}function he(Ae,Ye,Lr,Er){if(!(!Ae||u||!Ye)){if(Ye&&D.isEmitBlocked(Ye)||X.noEmit){ke=!0;return}var lr=e.transformNodes(y,D,e.factory,X,[Ae],te,!1),Cr={removeComments:X.removeComments,newLine:X.newLine,noEmitHelpers:X.noEmitHelpers,module:X.module,target:X.target,sourceMap:X.sourceMap,inlineSourceMap:X.inlineSourceMap,inlineSources:X.inlineSources,extendedDiagnostics:X.extendedDiagnostics,writeBundleFileInfo:!!ge,relativeToBuildInfo:Er},Or=Y(Cr,{hasGlobalName:y.hasGlobalName,onEmitNode:lr.emitNodeWithNotification,isEmitNotificationEnabled:lr.isEmitNotificationEnabled,substituteNode:lr.substituteNode});e.Debug.assert(lr.transformed.length===1,"Should only see one output from the transform"),_e(Ye,Lr,lr.transformed[0],Or,X),lr.dispose(),ge&&(ge.js=Or.bundleFileInfo)}}function ve(Ae,Ye,Lr,Er){if(!!Ae){if(!Ye){(u||X.emitDeclarationOnly)&&(ke=!0);return}var lr=e.isSourceFile(Ae)?[Ae]:Ae.sourceFiles,Cr=F?lr:e.filter(lr,e.isSourceFileNotJson),Or=e.outFile(X)?[e.factory.createBundle(Cr,e.isSourceFile(Ae)?void 0:Ae.prepends)]:Cr;u&&!e.getEmitDeclarations(X)&&Cr.forEach(Ve);var Ke=e.transformNodes(y,D,e.factory,X,Or,ue,!1);if(e.length(Ke.diagnostics))for(var Pe=0,Hr=Ke.diagnostics;Pe<Hr.length;Pe++){var ur=Hr[Pe];Ce.add(ur)}var vr={removeComments:X.removeComments,newLine:X.newLine,noEmitHelpers:!0,module:X.module,target:X.target,sourceMap:X.sourceMap,inlineSourceMap:X.inlineSourceMap,extendedDiagnostics:X.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!ge,recordInternalSection:!!ge,relativeToBuildInfo:Er},de=Y(vr,{hasGlobalName:y.hasGlobalName,onEmitNode:Ke.emitNodeWithNotification,isEmitNotificationEnabled:Ke.isEmitNotificationEnabled,substituteNode:Ke.substituteNode}),Fe=!!Ke.diagnostics&&!!Ke.diagnostics.length||!!D.isEmitBlocked(Ye)||!!X.noEmit;if(ke=ke||Fe,(!Fe||F)&&(e.Debug.assert(Ke.transformed.length===1,"Should only see one output from the decl transform"),_e(Ye,Lr,Ke.transformed[0],de,{sourceMap:!F&&X.declarationMap,sourceRoot:X.sourceRoot,mapRoot:X.mapRoot,extendedDiagnostics:X.extendedDiagnostics}),F&&Ke.transformed[0].kind===303)){var $e=Ke.transformed[0];Me=$e.exportedModulesFromDeclarationEmit}Ke.dispose(),ge&&(ge.dts=de.bundleFileInfo)}}function Ve(Ae){if(e.isExportAssignment(Ae)){Ae.expression.kind===79&&y.collectLinkedAliases(Ae.expression,!0);return}else if(e.isExportSpecifier(Ae)){y.collectLinkedAliases(Ae.propertyName||Ae.name,!0);return}e.forEachChild(Ae,Ve)}function _e(Ae,Ye,Lr,Er,lr){var Cr=Lr.kind===304?Lr:void 0,Or=Lr.kind===303?Lr:void 0,Ke=Cr?Cr.sourceFiles:[Or],Pe;if(Le(lr,Lr)&&(Pe=e.createSourceMapGenerator(D,e.getBaseFileName(e.normalizeSlashes(Ae)),qe(lr),Xe(lr,Ae,Or),lr)),Cr?Er.writeBundle(Cr,Q,Pe):Er.writeFile(Or,Q,Pe),Pe){j&&j.push({inputSourceFileNames:Pe.getSources(),sourceMap:Pe.toJSON()});var Hr=De(lr,Pe,Ae,Ye,Or);if(Hr&&(Q.isAtStartOfLine()||Q.rawWrite(O),Q.writeComment("//# ".concat("sourceMappingURL","=").concat(Hr))),Ye){var ur=Pe.toString();e.writeFile(D,Ce,Ye,ur,!1,Ke)}}else Q.writeLine();e.writeFile(D,Ce,Ae,Q.getText(),!!X.emitBOM,Ke),Q.clear()}function Le(Ae,Ye){return(Ae.sourceMap||Ae.inlineSourceMap)&&(Ye.kind!==303||!e.fileExtensionIs(Ye.fileName,".json"))}function qe(Ae){var Ye=e.normalizeSlashes(Ae.sourceRoot||"");return Ye&&e.ensureTrailingDirectorySeparator(Ye)}function Xe(Ae,Ye,Lr){if(Ae.sourceRoot)return D.getCommonSourceDirectory();if(Ae.mapRoot){var Er=e.normalizeSlashes(Ae.mapRoot);return Lr&&(Er=e.getDirectoryPath(e.getSourceFilePathInNewDir(Lr.fileName,D,Er))),e.getRootLength(Er)===0&&(Er=e.combinePaths(D.getCommonSourceDirectory(),Er)),Er}return e.getDirectoryPath(e.normalizePath(Ye))}function De(Ae,Ye,Lr,Er,lr){if(Ae.inlineSourceMap){var Cr=Ye.toString(),Or=e.base64encode(e.sys,Cr);return"data:application/json;base64,".concat(Or)}var Ke=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(Er)));if(Ae.mapRoot){var Pe=e.normalizeSlashes(Ae.mapRoot);return lr&&(Pe=e.getDirectoryPath(e.getSourceFilePathInNewDir(lr.fileName,D,Pe))),e.getRootLength(Pe)===0?(Pe=e.combinePaths(D.getCommonSourceDirectory(),Pe),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(Lr)),e.combinePaths(Pe,Ke),D.getCurrentDirectory(),D.getCanonicalFileName,!0))):encodeURI(e.combinePaths(Pe,Ke))}return encodeURI(Ke)}}e.emitFiles=x;function w(y){return JSON.stringify(y)}e.getBuildInfoText=w;function K(y){return JSON.parse(y)}e.getBuildInfo=K,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(y){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 Z(y,D,C){var m,u=e.Debug.checkDefined(y.js),g=((m=u.sources)===null||m===void 0?void 0:m.prologues)&&e.arrayToMap(u.sources.prologues,function(F){return F.file});return y.sourceFiles.map(function(F,te){var ue,X,j=g==null?void 0:g.get(te),Se=j==null?void 0:j.directives.map(function(Q){var V=e.setTextRange(e.factory.createStringLiteral(Q.expression.text),Q.expression),z=e.setTextRange(e.factory.createExpressionStatement(V),Q);return e.setParent(V,z),z}),Ce=e.factory.createToken(1),O=e.factory.createSourceFile(Se!=null?Se:[],Ce,0);return O.fileName=e.getRelativePathFromDirectory(C.getCurrentDirectory(),e.getNormalizedAbsolutePath(F,D),!C.useCaseSensitiveFileNames()),O.text=(ue=j==null?void 0:j.text)!==null&&ue!==void 0?ue:"",e.setTextRangePosWidth(O,0,(X=j==null?void 0:j.text.length)!==null&&X!==void 0?X:0),e.setEachParent(O.statements,O),e.setTextRangePosWidth(Ce,O.end,0),e.setParent(Ce,O),O})}function ne(y,D,C,m){var u=p(y.options,!1),g=u.buildInfoPath,F=u.jsFilePath,te=u.sourceMapFilePath,ue=u.declarationFilePath,X=u.declarationMapPath,j=D.readFile(e.Debug.checkDefined(g));if(!j)return g;var Se=D.readFile(e.Debug.checkDefined(F));if(!Se)return F;var Ce=te&&D.readFile(te);if(te&&!Ce||y.options.inlineSourceMap)return te||"inline sourcemap decoding";var O=ue&&D.readFile(ue);if(ue&&!O)return ue;var Q=X&&D.readFile(X);if(X&&!Q||y.options.inlineSourceMap)return X||"inline sourcemap decoding";var V=K(j);if(!V.bundle||!V.bundle.js||O&&!V.bundle.dts)return g;var z=e.getDirectoryPath(e.getNormalizedAbsolutePath(g,D.getCurrentDirectory())),Te=e.createInputFiles(Se,O,te,Ce,X,Q,F,ue,g,V,!0),ge=[],ke=e.createPrependNodes(y.projectReferences,C,function(Ge){return D.readFile(Ge)}),Me=Z(V.bundle,z,D),Ie={getPrependNodes:e.memoize(function(){return Gt(Gt([],ke,!0),[Te],!1)}),getCanonicalFileName:D.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(V.bundle.commonSourceDirectory,z)},getCompilerOptions:function(){return y.options},getCurrentDirectory:function(){return D.getCurrentDirectory()},getNewLine:function(){return D.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return Me},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(Ge,he,ve){switch(Ge){case F:if(Se===he)return;break;case te:if(Ce===he)return;break;case g:var Ve=K(he);Ve.program=V.program;var _e=V.bundle,Le=_e.js,qe=_e.dts,Xe=_e.sourceFiles;Ve.bundle.js.sources=Le.sources,qe&&(Ve.bundle.dts.sources=qe.sources),Ve.bundle.sourceFiles=Xe,ge.push({name:Ge,text:w(Ve),writeByteOrderMark:ve});return;case ue:if(O===he)return;break;case X:if(Q===he)return;break;default:e.Debug.fail("Unexpected path: ".concat(Ge))}ge.push({name:Ge,text:he,writeByteOrderMark:ve})},isEmitBlocked:e.returnFalse,readFile:function(Ge){return D.readFile(Ge)},fileExists:function(Ge){return D.fileExists(Ge)},useCaseSensitiveFileNames:function(){return D.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented};return x(e.notImplementedResolver,Ie,void 0,e.getTransformers(y.options,m)),ge}e.emitUsingBuildInfo=ne;var R;(function(y){y[y.Notification=0]="Notification",y[y.Substitution=1]="Substitution",y[y.Comments=2]="Comments",y[y.SourceMaps=3]="SourceMaps",y[y.Emit=4]="Emit"})(R||(R={}));function Y(y,D){y===void 0&&(y={}),D===void 0&&(D={});var C=D.hasGlobalName,m=D.onEmitNode,u=m===void 0?e.noEmitNotification:m,g=D.isEmitNotificationEnabled,F=D.substituteNode,te=F===void 0?e.noEmitSubstitution:F,ue=D.onBeforeEmitNode,X=D.onAfterEmitNode,j=D.onBeforeEmitNodeArray,Se=D.onAfterEmitNodeArray,Ce=D.onBeforeEmitToken,O=D.onAfterEmitToken,Q=!!y.extendedDiagnostics,V=e.getNewLineCharacter(y),z=e.getEmitModuleKind(y),Te=new e.Map,ge,ke,Me,Ie,Ge,he,ve,Ve,_e=y.preserveSourceNewlines,Le,qe,Xe,De=Yl,Ae,Ye=y.writeBundleFileInfo?{sections:[]}:void 0,Lr=Ye?e.Debug.checkDefined(y.relativeToBuildInfo):void 0,Er=y.recordInternalSection,lr=0,Cr="text",Or=!0,Ke,Pe,Hr=-1,ur,vr=-1,de=-1,Fe=-1,$e=-1,Dr,Fr,He=!1,pr=!!y.removeComments,Jr,ze,Ar=e.performance.createTimerIf(Q,"commentTime","beforeComment","afterComment"),Yr=Ar.enter,lt=Ar.exit,tt=e.factory.parenthesizer,Rt=ft();return et(),{printNode:cn,printList:bn,printFile:zn,printBundle:In,writeNode:Rr,writeList:sr,writeFile:Ne,writeBundle:We,bundleFileInfo:Ye};function cn(E,Qe,nt){switch(E){case 0:e.Debug.assert(e.isSourceFile(Qe),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(Qe),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(Qe),"Expected an Expression node.");break}switch(Qe.kind){case 303:return zn(Qe);case 304:return In(Qe);case 305:return ir(Qe)}return Rr(E,Qe,nt,me()),Ze()}function bn(E,Qe,nt){return sr(E,Qe,nt,me()),Ze()}function In(E){return We(E,me(),void 0),Ze()}function zn(E){return Ne(E,me(),void 0),Ze()}function ir(E){return ee(E,me()),Ze()}function Rr(E,Qe,nt,Ot){var fa=qe;dr(Ot,void 0),xr(E,Qe,nt),et(),qe=fa}function sr(E,Qe,nt,Ot){var fa=qe;dr(Ot,void 0),nt&&fr(nt),mo(void 0,Qe,E),et(),qe=fa}function ye(){return qe.getTextPosWithWriteLine?qe.getTextPosWithWriteLine():qe.getTextPos()}function or(E,Qe,nt){var Ot=e.lastOrUndefined(Ye.sections);Ot&&Ot.kind===nt?Ot.end=Qe:Ye.sections.push({pos:E,end:Qe,kind:nt})}function fe(E){if(Er&&Ye&&ge&&(e.isDeclaration(E)||e.isVariableStatement(E))&&e.isInternalDeclaration(E,ge)&&Cr!=="internal"){var Qe=Cr;return Ee(qe.getTextPos()),lr=ye(),Cr="internal",Qe}}function je(E){E&&(Ee(qe.getTextPos()),lr=ye(),Cr=E)}function Ee(E){return lr<E?(or(lr,E,Cr),!0):!1}function We(E,Qe,nt){var Ot;Ae=!1;var fa=qe;dr(Qe,nt),wu(E),td(E),na(E),Ud(E);for(var Oa=0,ia=E.prepends;Oa<ia.length;Oa++){var ti=ia[Oa];fs();var Na=qe.getTextPos(),Ua=Ye&&Ye.sections;if(Ua&&(Ye.sections=[]),xr(4,ti,void 0),Ye){var Go=Ye.sections;Ye.sections=Ua,ti.oldFileOfCurrentEmit?(Ot=Ye.sections).push.apply(Ot,Go):(Go.forEach(function(md){return e.Debug.assert(e.isBundleFileTextLike(md))}),Ye.sections.push({pos:Na,end:qe.getTextPos(),kind:"prepend",data:Lr(ti.fileName),texts:Go}))}}lr=ye();for(var cl=0,os=E.sourceFiles;cl<os.length;cl++){var is=os[cl];xr(0,is,is)}if(Ye&&E.sourceFiles.length){var Vl=qe.getTextPos();if(Ee(Vl)){var Zc=Ru(E);Zc&&(Ye.sources||(Ye.sources={}),Ye.sources.prologues=Zc);var $c=Jn(E);$c&&(Ye.sources||(Ye.sources={}),Ye.sources.helpers=$c)}}et(),qe=fa}function ee(E,Qe){var nt=qe;dr(Qe,void 0),xr(4,E,void 0),et(),qe=nt}function Ne(E,Qe,nt){Ae=!0;var Ot=qe;dr(Qe,nt),wu(E),td(E),xr(0,E,E),et(),qe=Ot}function me(){return Xe||(Xe=e.createTextWriter(V))}function Ze(){var E=Xe.getText();return Xe.clear(),E}function xr(E,Qe,nt){nt&&fr(nt),vt(E,Qe,void 0)}function fr(E){ge=E,Dr=void 0,Fr=void 0,E&&Fc(E)}function dr(E,Qe){E&&y.omitTrailingSemicolon&&(E=e.getTrailingSemicolonDeferringWriter(E)),qe=E,Ke=Qe,Or=!qe||!Ke}function et(){ke=[],Me=[],Ie=new e.Set,Ge=[],he=0,ve=[],ge=void 0,Dr=void 0,Fr=void 0,dr(void 0,void 0)}function yt(){return Dr||(Dr=e.getLineStarts(ge))}function Wr(E,Qe){if(E!==void 0){var nt=fe(E);vt(4,E,Qe),je(nt)}}function tr(E){E!==void 0&&vt(2,E,void 0)}function Ir(E,Qe){E!==void 0&&vt(1,E,Qe)}function kr(E){vt(e.isStringLiteral(E)?6:4,E)}function zr(E){_e&&e.getEmitFlags(E)&134217728&&(_e=!1)}function gt(E){_e=E}function vt(E,Qe,nt){ze=nt;var Ot=xt(0,E,Qe);Ot(E,Qe),ze=void 0}function ut(E){return!pr&&!e.isSourceFile(E)}function ht(E){return!Or&&!e.isSourceFile(E)&&!e.isInJsonFile(E)&&!e.isUnparsedSource(E)&&!e.isUnparsedPrepend(E)}function xt(E,Qe,nt){switch(E){case 0:if(u!==e.noEmitNotification&&(!g||g(nt)))return Qt;case 1:if(te!==e.noEmitSubstitution&&(Jr=te(Qe,nt)||nt)!==nt)return ze&&(Jr=ze(Jr)),ba;case 2:if(ut(nt))return Bu;case 3:if(ht(nt))return Yc;case 4:return mt;default:return e.Debug.assertNever(E)}}function wt(E,Qe,nt){return xt(E+1,Qe,nt)}function Qt(E,Qe){var nt=wt(0,E,Qe);u(E,Qe,nt)}function mt(E,Qe){if(ue==null||ue(Qe),_e){var nt=_e;zr(Qe),rn(E,Qe),gt(nt)}else rn(E,Qe);X==null||X(Qe),ze=void 0}function rn(E,Qe,nt){if(nt===void 0&&(nt=!0),nt){var Ot=e.getSnippetElement(Qe);if(Ot)return oa(E,Qe,Ot)}if(E===0)return ec(e.cast(Qe,e.isSourceFile));if(E===2)return Pt(e.cast(Qe,e.isIdentifier));if(E===6)return St(e.cast(Qe,e.isStringLiteral),!0);if(E===3)return sa(e.cast(Qe,e.isTypeParameterDeclaration));if(E===5)return e.Debug.assertNode(Qe,e.isEmptyStatement),Co(!0);if(E===4){switch(Qe.kind){case 15:case 16:case 17:return St(Qe,!1);case 79:return Pt(Qe);case 80:return It(Qe);case 160:return rt(Qe);case 161:return Qn(Qe);case 162:return Ra(Qe);case 163:return Ci(Qe);case 164:return _i(Qe);case 165:return va(Qe);case 166:return yi(Qe);case 167:return ro(Qe);case 168:return Ka(Qe);case 169:return Pi(Qe);case 170:return io(Qe);case 171:case 172:return ji(Qe);case 173:return Hi(Qe);case 174:return to(Qe);case 175:return No(Qe);case 176:return Ha(Qe);case 177:return Yo(Qe);case 178:return co(Qe);case 179:return Mo(Qe);case 180:return Fo(Qe);case 181:return zo(Qe);case 182:return Es(Qe);case 183:return yr(Qe);case 184:return tn(Qe);case 186:return Un(Qe);case 187:return Oe(Qe);case 188:return oe(Qe);case 189:return mr(Qe);case 190:return se(Qe);case 227:return gi(Qe);case 191:return Be();case 192:return er(Qe);case 193:return hr(Qe);case 194:return qr(Qe);case 195:return Dt(Qe);case 196:return dt(Qe);case 197:return Jt(Qe);case 198:return lo(Qe);case 199:return Sn(Qe);case 200:return ta(Qe);case 201:return xa(Qe);case 202:return Di(Qe);case 232:return Nr(Qe);case 233:return Lo();case 234:return Us(Qe);case 236:return Pl(Qe);case 235:return Co(!1);case 237:return Vs(Qe);case 238:return Ql(Qe);case 239:return uc(Qe);case 240:return cu(Qe);case 241:return no(Qe);case 242:return ql(Qe);case 243:return fc(Qe);case 244:return xc(Qe);case 245:return Ic(Qe);case 246:return uu(Qe);case 247:return dc(Qe);case 248:return Nc(Qe);case 249:return Pr(Qe);case 250:return $r(Qe);case 251:return Lt(Qe);case 252:return Kt(Qe);case 253:return pn(Qe);case 254:return fn(Qe);case 255:return kn(Qe);case 256:return jt(Qe);case 257:return ha(Qe);case 258:return ri(Qe);case 259:return Ta(Qe);case 260:return Ya(Qe);case 261:return fi(Qe);case 262:return ci(Qe);case 263:return pc(Qe);case 264:return Si(Qe);case 265:return bo(Qe);case 266:return Ns(Qe);case 267:return Ys(Qe);case 273:return ku(Qe);case 268:return Nu(Qe);case 269:return gf(Qe);case 270:return Zl(Qe);case 271:return jc(Qe);case 272:return ol(Qe);case 274:return kc(Qe);case 292:return Mr(Qe);case 293:return $l(Qe);case 275:return;case 276:return Zf(Qe);case 11:return Jc(Qe);case 279:case 282:return Hc(Qe);case 280:case 283:return qp(Qe);case 284:return Xp(Qe);case 285:return dl(Qe);case 286:return Rs(Qe);case 287:return ks(Qe);case 288:return Ou(Qe);case 289:return kd(Qe);case 290:return $f(Qe);case 291:return Od(Qe);case 294:return Rd(Qe);case 295:return Yp(Qe);case 296:return yp(Qe);case 297:return Xl(Qe);case 298:return qt(Qe);case 305:case 299:return Ut(Qe);case 300:case 301:return Pn(Qe);case 302:return dn(Qe);case 303:return ec(Qe);case 304:return e.Debug.fail("Bundles should be printed using printBundle");case 306:return e.Debug.fail("InputFiles should not be printed");case 307:return mc(Qe);case 308:return wd(Qe);case 310:return Ln("*");case 311:return Ln("?");case 312:return hi(Qe);case 313:return Zi(Qe);case 314:return Po(Qe);case 315:return za(Qe);case 185:case 316:return Cs(Qe);case 317:return;case 318:return C_(Qe);case 320:return Gd(Qe);case 321:return Zp(Qe);case 325:case 330:return Qp(Qe);case 326:case 327:return Pd(Qe);case 328:case 329:return;case 331:case 332:case 333:case 334:case 335:return;case 336:return Ep(Qe);case 338:case 345:return Bd(Qe);case 337:case 339:case 340:case 341:return ed(Qe);case 342:return Md(Qe);case 343:return Fd(Qe);case 344:return bp(Qe);case 347:case 351:case 350:return}if(e.isExpression(Qe)&&(E=1,te!==e.noEmitSubstitution)){var fa=te(E,Qe)||Qe;fa!==Qe&&(Qe=fa,ze&&(Qe=ze(Qe)))}}if(E===1)switch(Qe.kind){case 8:case 9:return en(Qe);case 10:case 13:case 14:return St(Qe,!1);case 79:return Pt(Qe);case 80:return It(Qe);case 203:return $a(Qe);case 204:return Ji(Qe);case 205:return So(Qe);case 206:return bt(Qe);case 207:return Mn(Qe);case 208:return da(Qe);case 209:return ei(Qe);case 210:return bi(Qe);case 211:return xi(Qe);case 212:return ka(Qe);case 213:return mi(Qe);case 214:return Gi(Qe);case 215:return Ro(Qe);case 216:return ko(Qe);case 217:return es(Qe);case 218:return as(Qe);case 219:return wr(Qe);case 220:return Rt(Qe);case 221:return Zt(Qe);case 222:return Re(Qe);case 223:return Qr(Qe);case 224:return vn(Qe);case 225:return Xn(Qe);case 226:return;case 228:return Ia(Qe);case 229:return oo(Qe);case 230:return Wo(Qe);case 231:return e.Debug.fail("SyntheticExpression should never be printed.");case 277:return hf(Qe);case 278:return Nd(Qe);case 281:return _s(Qe);case 346:return e.Debug.fail("SyntaxList should not be printed");case 347:return;case 348:return Ef(Qe);case 349:return $p(Qe);case 350:case 351:return;case 352:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}if(e.isKeyword(Qe.kind))return ws(Qe,ii);if(e.isTokenKind(Qe.kind))return ws(Qe,Ln);e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(Qe.kind),"."))}function sa(E){Wr(E.name),Dn(),ii("in"),Dn(),Wr(E.constraint)}function ba(E,Qe){var nt=wt(1,E,Qe);e.Debug.assertIsDefined(Jr),Qe=Jr,Jr=void 0,nt(E,Qe)}function Jn(E){var Qe;if(!(z===e.ModuleKind.None||y.noEmitHelpers)){for(var nt=new e.Map,Ot=0,fa=E.sourceFiles;Ot<fa.length;Ot++){var Oa=fa[Ot],ia=e.getExternalHelpersModuleName(Oa)!==void 0,ti=Wn(Oa);if(!!ti)for(var Na=0,Ua=ti;Na<Ua.length;Na++){var Go=Ua[Na];!Go.scoped&&!ia&&!nt.get(Go.name)&&(nt.set(Go.name,!0),(Qe||(Qe=[])).push(Go.name))}}return Qe}}function na(E){var Qe=!1,nt=E.kind===304?E:void 0;if(!(nt&&z===e.ModuleKind.None)){for(var Ot=nt?nt.prepends.length:0,fa=nt?nt.sourceFiles.length+Ot:1,Oa=0;Oa<fa;Oa++){var ia=nt?Oa<Ot?nt.prepends[Oa]:nt.sourceFiles[Oa-Ot]:E,ti=e.isSourceFile(ia)?ia:e.isUnparsedSource(ia)?void 0:ge,Na=y.noEmitHelpers||!!ti&&e.hasRecordedExternalHelpers(ti),Ua=(e.isSourceFile(ia)||e.isUnparsedSource(ia))&&!Ae,Go=e.isUnparsedSource(ia)?ia.helpers:Wn(ia);if(Go)for(var cl=0,os=Go;cl<os.length;cl++){var is=os[cl];if(is.scoped){if(nt)continue}else{if(Na)continue;if(Ua){if(Te.get(is.name))continue;Te.set(is.name,!0)}}var Vl=ye();typeof is.text=="string"?Df(is.text):Df(is.text(If)),Ye&&Ye.sections.push({pos:Vl,end:qe.getTextPos(),kind:"emitHelpers",data:is.name}),Qe=!0}}return Qe}}function Wn(E){var Qe=e.getEmitHelpers(E);return Qe&&e.stableSort(Qe,e.compareEmitHelpers)}function en(E){St(E,!1)}function St(E,Qe){var nt=Js(E,y.neverAsciiEscape,Qe);(y.sourceMap||y.inlineSourceMap)&&(E.kind===10||e.isTemplateLiteralKind(E.kind))?ms(nt):e_(nt)}function Ut(E){for(var Qe=0,nt=E.texts;Qe<nt.length;Qe++){var Ot=nt[Qe];fs(),Wr(Ot)}}function qt(E){qe.rawWrite(E.parent.text.substring(E.pos,E.end))}function Pn(E){var Qe=ye();qt(E),Ye&&or(Qe,qe.getTextPos(),E.kind===300?"text":"internal")}function dn(E){var Qe=ye();if(qt(E),Ye){var nt=e.clone(E.section);nt.pos=Qe,nt.end=qe.getTextPos(),Ye.sections.push(nt)}}function oa(E,Qe,nt){switch(nt.kind){case 1:pt(E,Qe,nt);break;case 0:_t(nt);break}}function pt(E,Qe,nt){rs("${".concat(nt.order,":")),rn(E,Qe,!1),rs("}")}function _t(E){rs("$".concat(E.order))}function Pt(E){var Qe=E.symbol?od:De;Qe(Gu(E,!1),E.symbol),mo(E,E.typeArguments,53776)}function It(E){var Qe=E.symbol?od:De;Qe(Gu(E,!1),E.symbol)}function rt(E){Cn(E.left),Ln("."),Wr(E.right)}function Cn(E){E.kind===79?Ir(E):Wr(E)}function Qn(E){Ln("["),Ir(E.expression,tt.parenthesizeExpressionOfComputedPropertyName),Ln("]")}function Ra(E){Wr(E.name),E.constraint&&(Dn(),ii("extends"),Dn(),Wr(E.constraint)),E.default&&(Dn(),Rc("="),Dn(),Wr(E.default))}function Ci(E){Ml(E,E.decorators),js(E,E.modifiers),Wr(E.dotDotDotToken),Pu(E.name,sd),Wr(E.questionToken),E.parent&&E.parent.kind===315&&!E.name?Wr(E.type):gc(E.type),nd(E.initializer,E.type?E.type.end:E.questionToken?E.questionToken.end:E.name?E.name.end:E.modifiers?E.modifiers.end:E.decorators?E.decorators.end:E.pos,E,tt.parenthesizeExpressionForDisallowedComma)}function _i(E){Ln("@"),Ir(E.expression,tt.parenthesizeLeftSideOfAccess)}function va(E){Ml(E,E.decorators),js(E,E.modifiers),Pu(E.name,N_),Wr(E.questionToken),gc(E.type),us()}function yi(E){Ml(E,E.decorators),js(E,E.modifiers),Wr(E.name),Wr(E.questionToken),Wr(E.exclamationToken),gc(E.type),nd(E.initializer,E.type?E.type.end:E.questionToken?E.questionToken.end:E.name.end,E),us()}function ro(E){Gl(E),Ml(E,E.decorators),js(E,E.modifiers),Wr(E.name),Wr(E.questionToken),Fl(E,E.typeParameters),pl(E,E.parameters),gc(E.type),us(),Kc(E)}function Ka(E){Ml(E,E.decorators),js(E,E.modifiers),Wr(E.asteriskToken),Wr(E.name),Wr(E.questionToken),Fa(E,ua)}function Pi(E){Ml(E,E.decorators),js(E,E.modifiers),ii("static"),rr(E.body)}function io(E){js(E,E.modifiers),ii("constructor"),Fa(E,ua)}function ji(E){Ml(E,E.decorators),js(E,E.modifiers),ii(E.kind===171?"get":"set"),Dn(),Wr(E.name),Fa(E,ua)}function Hi(E){Gl(E),Ml(E,E.decorators),js(E,E.modifiers),Fl(E,E.typeParameters),pl(E,E.parameters),gc(E.type),us(),Kc(E)}function to(E){Gl(E),Ml(E,E.decorators),js(E,E.modifiers),ii("new"),Dn(),Fl(E,E.typeParameters),pl(E,E.parameters),gc(E.type),us(),Kc(E)}function No(E){Ml(E,E.decorators),js(E,E.modifiers),Wd(E,E.parameters),gc(E.type),us()}function lo(E){Wr(E.type),Wr(E.literal)}function Lo(){us()}function Ha(E){E.assertsModifier&&(Wr(E.assertsModifier),Dn()),Wr(E.parameterName),E.type&&(Dn(),ii("is"),Dn(),Wr(E.type))}function Yo(E){Wr(E.typeName),Sl(E,E.typeArguments)}function co(E){Gl(E),Fl(E,E.typeParameters),Tf(E,E.parameters),Dn(),Ln("=>"),Dn(),Wr(E.type),Kc(E)}function za(E){ii("function"),pl(E,E.parameters),Ln(":"),Wr(E.type)}function hi(E){Ln("?"),Wr(E.type)}function Zi(E){Ln("!"),Wr(E.type)}function Po(E){Wr(E.type),Ln("=")}function Mo(E){Gl(E),js(E,E.modifiers),ii("new"),Dn(),Fl(E,E.typeParameters),pl(E,E.parameters),Dn(),Ln("=>"),Dn(),Wr(E.type),Kc(E)}function Fo(E){ii("typeof"),Dn(),Wr(E.exprName)}function zo(E){Ln("{");var Qe=e.getEmitFlags(E)&1?768:32897;mo(E,E.members,Qe|524288),Ln("}")}function Es(E){Wr(E.elementType,tt.parenthesizeElementTypeOfArrayType),Ln("["),Ln("]")}function Cs(E){Ln("..."),Wr(E.type)}function yr(E){La(22,E.pos,Ln,E);var Qe=e.getEmitFlags(E)&1?528:657;mo(E,E.elements,Qe|524288),La(23,E.elements.end,Ln,E)}function dt(E){Wr(E.dotDotDotToken),Wr(E.name),Wr(E.questionToken),La(58,E.name.end,Ln,E),Dn(),Wr(E.type)}function tn(E){Wr(E.type,tt.parenthesizeElementTypeOfArrayType),Ln("?")}function Un(E){mo(E,E.types,516,tt.parenthesizeMemberOfElementType)}function Oe(E){mo(E,E.types,520,tt.parenthesizeMemberOfElementType)}function oe(E){Wr(E.checkType,tt.parenthesizeMemberOfConditionalType),Dn(),ii("extends"),Dn(),Wr(E.extendsType,tt.parenthesizeMemberOfConditionalType),Dn(),Ln("?"),Dn(),Wr(E.trueType),Dn(),Ln(":"),Dn(),Wr(E.falseType)}function mr(E){ii("infer"),Dn(),Wr(E.typeParameter)}function se(E){Ln("("),Wr(E.type),Ln(")")}function Be(){ii("this")}function er(E){Pc(E.operator,ii),Dn(),Wr(E.type,tt.parenthesizeMemberOfElementType)}function hr(E){Wr(E.objectType,tt.parenthesizeMemberOfElementType),Ln("["),Wr(E.indexType),Ln("]")}function qr(E){var Qe=e.getEmitFlags(E);Ln("{"),Qe&1?Dn():(fs(),wc()),E.readonlyToken&&(Wr(E.readonlyToken),E.readonlyToken.kind!==144&&ii("readonly"),Dn()),Ln("["),vt(3,E.typeParameter),E.nameType&&(Dn(),ii("as"),Dn(),Wr(E.nameType)),Ln("]"),E.questionToken&&(Wr(E.questionToken),E.questionToken.kind!==57&&Ln("?")),Ln(":"),Dn(),Wr(E.type),us(),Qe&1?Dn():(fs(),Hs()),Ln("}")}function Dt(E){Ir(E.literal)}function Jt(E){Wr(E.head),mo(E,E.templateSpans,262144)}function Sn(E){E.isTypeOf&&(ii("typeof"),Dn()),ii("import"),Ln("("),Wr(E.argument),Ln(")"),E.qualifier&&(Ln("."),Wr(E.qualifier)),Sl(E,E.typeArguments)}function ta(E){Ln("{"),mo(E,E.elements,525136),Ln("}")}function xa(E){Ln("["),mo(E,E.elements,524880),Ln("]")}function Di(E){Wr(E.dotDotDotToken),E.propertyName&&(Wr(E.propertyName),Ln(":"),Dn()),Wr(E.name),nd(E.initializer,E.name.end,E,tt.parenthesizeExpressionForDisallowedComma)}function $a(E){var Qe=E.elements,nt=E.multiLine?65536:0;Dl(E,Qe,8914|nt,tt.parenthesizeExpressionForDisallowedComma)}function Ji(E){e.forEach(E.properties,wn);var Qe=e.getEmitFlags(E)&65536;Qe&&wc();var nt=E.multiLine?65536:0,Ot=ge.languageVersion>=1&&!e.isJsonSourceFile(ge)?64:0;mo(E,E.properties,526226|Ot|nt),Qe&&Hs()}function So(E){Ir(E.expression,tt.parenthesizeLeftSideOfAccess);var Qe=E.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),E.expression.end,E.name.pos),nt=yc(E,E.expression,Qe),Ot=yc(E,Qe,E.name);hc(nt,!1);var fa=Qe.kind!==28&&cs(E.expression)&&!qe.hasTrailingComment()&&!qe.hasTrailingWhitespace();fa&&Ln("."),E.questionDotToken?Wr(Qe):La(Qe.kind,E.expression.end,Ln,E),hc(Ot,!1),Wr(E.name),Lf(nt,Ot)}function cs(E){if(E=e.skipPartiallyEmittedExpressions(E),e.isNumericLiteral(E)){var Qe=Js(E,!0,!1);return!E.numericLiteralFlags&&!e.stringContains(Qe,e.tokenToString(24))}else if(e.isAccessExpression(E)){var nt=e.getConstantValue(E);return typeof nt=="number"&&isFinite(nt)&&Math.floor(nt)===nt}}function bt(E){Ir(E.expression,tt.parenthesizeLeftSideOfAccess),Wr(E.questionDotToken),La(22,E.expression.end,Ln,E),Ir(E.argumentExpression),La(23,E.argumentExpression.end,Ln,E)}function Mn(E){var Qe=e.getEmitFlags(E)&536870912;Qe&&(Ln("("),ms("0"),Ln(","),Dn()),Ir(E.expression,tt.parenthesizeLeftSideOfAccess),Qe&&Ln(")"),Wr(E.questionDotToken),Sl(E,E.typeArguments),Dl(E,E.arguments,2576,tt.parenthesizeExpressionForDisallowedComma)}function da(E){La(103,E.pos,ii,E),Dn(),Ir(E.expression,tt.parenthesizeExpressionOfNew),Sl(E,E.typeArguments),Dl(E,E.arguments,18960,tt.parenthesizeExpressionForDisallowedComma)}function ei(E){var Qe=e.getEmitFlags(E)&536870912;Qe&&(Ln("("),ms("0"),Ln(","),Dn()),Ir(E.tag,tt.parenthesizeLeftSideOfAccess),Qe&&Ln(")"),Sl(E,E.typeArguments),Dn(),Ir(E.template)}function bi(E){Ln("<"),Wr(E.type),Ln(">"),Ir(E.expression,tt.parenthesizeOperandOfPrefixUnary)}function xi(E){var Qe=La(20,E.pos,Ln,E),nt=ld(E.expression,E);Ir(E.expression,void 0),cd(E.expression,E),Lf(nt),La(21,E.expression?E.expression.end:Qe,Ln,E)}function ka(E){Ts(E.name),Kn(E)}function mi(E){Ml(E,E.decorators),js(E,E.modifiers),Fa(E,Xi)}function Xi(E){Fl(E,E.typeParameters),Tf(E,E.parameters),gc(E.type),Dn(),Wr(E.equalsGreaterThanToken)}function Gi(E){La(89,E.pos,ii,E),Dn(),Ir(E.expression,tt.parenthesizeOperandOfPrefixUnary)}function Ro(E){La(112,E.pos,ii,E),Dn(),Ir(E.expression,tt.parenthesizeOperandOfPrefixUnary)}function ko(E){La(114,E.pos,ii,E),Dn(),Ir(E.expression,tt.parenthesizeOperandOfPrefixUnary)}function es(E){La(132,E.pos,ii,E),Dn(),Ir(E.expression,tt.parenthesizeOperandOfPrefixUnary)}function as(E){Pc(E.operator,Rc),pe(E)&&Dn(),Ir(E.operand,tt.parenthesizeOperandOfPrefixUnary)}function pe(E){var Qe=E.operand;return Qe.kind===218&&(E.operator===39&&(Qe.operator===39||Qe.operator===45)||E.operator===40&&(Qe.operator===40||Qe.operator===46))}function wr(E){Ir(E.operand,tt.parenthesizeOperandOfPostfixUnary),Pc(E.operator,Rc)}function ft(){return e.createBinaryExpressionTrampoline(E,Qe,nt,Ot,fa,void 0);function E(ia,ti){if(ti){ti.stackIndex++,ti.preserveSourceNewlinesStack[ti.stackIndex]=_e,ti.containerPosStack[ti.stackIndex]=de,ti.containerEndStack[ti.stackIndex]=Fe,ti.declarationListContainerEndStack[ti.stackIndex]=$e;var Na=ti.shouldEmitCommentsStack[ti.stackIndex]=ut(ia),Ua=ti.shouldEmitSourceMapsStack[ti.stackIndex]=ht(ia);ue==null||ue(ia),Na&&dd(ia),Ua&&Lp(ia),zr(ia)}else ti={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return ti}function Qe(ia,ti,Na){return Oa(ia,Na,"left")}function nt(ia,ti,Na){var Ua=ia.kind!==27,Go=yc(Na,Na.left,ia),cl=yc(Na,ia,Na.right);hc(Go,Ua),Xc(ia.pos),ws(ia,ia.kind===101?ii:Rc),Wu(ia.end,!0),hc(cl,!0)}function Ot(ia,ti,Na){return Oa(ia,Na,"right")}function fa(ia,ti){var Na=yc(ia,ia.left,ia.operatorToken),Ua=yc(ia,ia.operatorToken,ia.right);if(Lf(Na,Ua),ti.stackIndex>0){var Go=ti.preserveSourceNewlinesStack[ti.stackIndex],cl=ti.containerPosStack[ti.stackIndex],os=ti.containerEndStack[ti.stackIndex],is=ti.declarationListContainerEndStack[ti.stackIndex],Vl=ti.shouldEmitCommentsStack[ti.stackIndex],Zc=ti.shouldEmitSourceMapsStack[ti.stackIndex];gt(Go),Zc&&pd(ia),Vl&&zd(ia,cl,os,is),X==null||X(ia),ti.stackIndex--}}function Oa(ia,ti,Na){var Ua=Na==="left"?tt.getParenthesizeLeftSideOfBinaryForOperator(ti.operatorToken.kind):tt.getParenthesizeRightSideOfBinaryForOperator(ti.operatorToken.kind),Go=xt(0,1,ia);if(Go===ba&&(e.Debug.assertIsDefined(Jr),ia=Ua(e.cast(Jr,e.isExpression)),Go=wt(1,1,ia),Jr=void 0),(Go===Bu||Go===Yc||Go===mt)&&e.isBinaryExpression(ia))return ia;ze=Ua,Go(1,ia)}}function Zt(E){var Qe=yc(E,E.condition,E.questionToken),nt=yc(E,E.questionToken,E.whenTrue),Ot=yc(E,E.whenTrue,E.colonToken),fa=yc(E,E.colonToken,E.whenFalse);Ir(E.condition,tt.parenthesizeConditionOfConditionalExpression),hc(Qe,!0),Wr(E.questionToken),hc(nt,!0),Ir(E.whenTrue,tt.parenthesizeBranchOfConditionalExpression),Lf(Qe,nt),hc(Ot,!0),Wr(E.colonToken),hc(fa,!0),Ir(E.whenFalse,tt.parenthesizeBranchOfConditionalExpression),Lf(Ot,fa)}function Re(E){Wr(E.head),mo(E,E.templateSpans,262144)}function Qr(E){La(125,E.pos,ii,E),Wr(E.asteriskToken),Mu(E.expression,tt.parenthesizeExpressionForDisallowedComma)}function vn(E){La(25,E.pos,Ln,E),Ir(E.expression,tt.parenthesizeExpressionForDisallowedComma)}function Xn(E){Ts(E.name),yn(E)}function gi(E){Ir(E.expression,tt.parenthesizeLeftSideOfAccess),Sl(E,E.typeArguments)}function Ia(E){Ir(E.expression,void 0),E.type&&(Dn(),ii("as"),Dn(),Wr(E.type))}function oo(E){Ir(E.expression,tt.parenthesizeLeftSideOfAccess),Rc("!")}function Wo(E){Sf(E.keywordToken,E.pos,Ln),Ln("."),Wr(E.name)}function Nr(E){Ir(E.expression),Wr(E.literal)}function Us(E){il(E,!E.multiLine&&ud(E))}function il(E,Qe){La(18,E.pos,Ln,E);var nt=Qe||e.getEmitFlags(E)&1?768:129;mo(E,E.statements,nt),La(19,E.statements.end,Ln,E,!!(nt&1))}function Pl(E){js(E,E.modifiers),Wr(E.declarationList),us()}function Co(E){E?Ln(";"):us()}function Vs(E){Ir(E.expression,tt.parenthesizeExpressionOfExpressionStatement),(!e.isJsonSourceFile(ge)||e.nodeIsSynthesized(E.expression))&&us()}function Ql(E){var Qe=La(99,E.pos,ii,E);Dn(),La(20,Qe,Ln,E),Ir(E.expression),La(21,E.expression.end,Ln,E),vc(E,E.thenStatement),E.elseStatement&&(Qu(E,E.thenStatement,E.elseStatement),La(91,E.thenStatement.end,ii,E),E.elseStatement.kind===238?(Dn(),Wr(E.elseStatement)):vc(E,E.elseStatement))}function zl(E,Qe){var nt=La(115,Qe,ii,E);Dn(),La(20,nt,Ln,E),Ir(E.expression),La(21,E.expression.end,Ln,E)}function uc(E){La(90,E.pos,ii,E),vc(E,E.statement),e.isBlock(E.statement)&&!_e?Dn():Qu(E,E.statement,E.expression),zl(E,E.statement.end),us()}function cu(E){zl(E,E.pos),vc(E,E.statement)}function no(E){var Qe=La(97,E.pos,ii,E);Dn();var nt=La(20,Qe,Ln,E);Ws(E.initializer),nt=La(26,E.initializer?E.initializer.end:nt,Ln,E),Mu(E.condition),nt=La(26,E.condition?E.condition.end:nt,Ln,E),Mu(E.incrementor),La(21,E.incrementor?E.incrementor.end:nt,Ln,E),vc(E,E.statement)}function ql(E){var Qe=La(97,E.pos,ii,E);Dn(),La(20,Qe,Ln,E),Ws(E.initializer),Dn(),La(101,E.initializer.end,ii,E),Dn(),Ir(E.expression),La(21,E.expression.end,Ln,E),vc(E,E.statement)}function fc(E){var Qe=La(97,E.pos,ii,E);Dn(),I_(E.awaitModifier),La(20,Qe,Ln,E),Ws(E.initializer),Dn(),La(159,E.initializer.end,ii,E),Dn(),Ir(E.expression),La(21,E.expression.end,Ln,E),vc(E,E.statement)}function Ws(E){E!==void 0&&(E.kind===254?Wr(E):Ir(E))}function xc(E){La(86,E.pos,ii,E),ad(E.label),us()}function Ic(E){La(81,E.pos,ii,E),ad(E.label),us()}function La(E,Qe,nt,Ot,fa){var Oa=e.getParseTreeNode(Ot),ia=Oa&&Oa.kind===Ot.kind,ti=Qe;if(ia&&ge&&(Qe=e.skipTrivia(ge.text,Qe)),ia&&Ot.pos!==ti){var Na=fa&&ge&&!e.positionsAreOnSameLine(ti,Qe,ge);Na&&wc(),Xc(ti),Na&&Hs()}if(Qe=Pc(E,nt,Qe),ia&&Ot.end!==Qe){var Ua=Ot.kind===287;Wu(Qe,!Ua,Ua)}return Qe}function uu(E){La(105,E.pos,ii,E),Mu(E.expression),us()}function dc(E){var Qe=La(116,E.pos,ii,E);Dn(),La(20,Qe,Ln,E),Ir(E.expression),La(21,E.expression.end,Ln,E),vc(E,E.statement)}function Nc(E){var Qe=La(107,E.pos,ii,E);Dn(),La(20,Qe,Ln,E),Ir(E.expression),La(21,E.expression.end,Ln,E),Dn(),Wr(E.caseBlock)}function Pr(E){Wr(E.label),La(58,E.label.end,Ln,E),Dn(),Wr(E.statement)}function $r(E){La(109,E.pos,ii,E),Mu(E.expression),us()}function Lt(E){La(111,E.pos,ii,E),Dn(),Wr(E.tryBlock),E.catchClause&&(Qu(E,E.tryBlock,E.catchClause),Wr(E.catchClause)),E.finallyBlock&&(Qu(E,E.catchClause||E.tryBlock,E.finallyBlock),La(96,(E.catchClause||E.tryBlock).end,ii,E),Dn(),Wr(E.finallyBlock))}function Kt(E){Sf(87,E.pos,ii),us()}function pn(E){Wr(E.name),Wr(E.exclamationToken),gc(E.type),nd(E.initializer,E.type?E.type.end:E.name.end,E,tt.parenthesizeExpressionForDisallowedComma)}function fn(E){ii(e.isLet(E)?"let":e.isVarConst(E)?"const":"var"),Dn(),mo(E,E.declarations,528)}function kn(E){Kn(E)}function Kn(E){Ml(E,E.decorators),js(E,E.modifiers),ii("function"),Wr(E.asteriskToken),Dn(),tr(E.name),Fa(E,ua)}function Fa(E,Qe){var nt=E.body;if(nt)if(e.isBlock(nt)){var Ot=e.getEmitFlags(E)&65536;Ot&&wc(),Gl(E),e.forEach(E.parameters,Ga),Ga(E.body),Qe(E),rr(nt),Kc(E),Ot&&Hs()}else Qe(E),Dn(),Ir(nt,tt.parenthesizeConciseBodyOfArrowFunction);else Qe(E),us()}function ua(E){Fl(E,E.typeParameters),pl(E,E.parameters),gc(E.type)}function le(E){if(e.getEmitFlags(E)&1)return!0;if(E.multiLine||!e.nodeIsSynthesized(E)&&!e.rangeIsOnSingleLine(E,ge)||ll(E,E.statements,2)||Fu(E,E.statements,2))return!1;for(var Qe,nt=0,Ot=E.statements;nt<Ot.length;nt++){var fa=Ot[nt];if(r_(Qe,fa,2)>0)return!1;Qe=fa}return!0}function rr(E){ue==null||ue(E),Dn(),Ln("{"),wc();var Qe=le(E)?br:ct;Uu?Uu(E,E.statements,Qe):Qe(E),Hs(),Sf(19,E.statements.end,Ln,E),X==null||X(E)}function br(E){ct(E,!0)}function ct(E,Qe){var nt=Vd(E.statements),Ot=qe.getTextPos();na(E),nt===0&&Ot===qe.getTextPos()&&Qe?(Hs(),mo(E,E.statements,768),wc()):mo(E,E.statements,1,void 0,nt)}function jt(E){yn(E)}function yn(E){e.forEach(E.members,wn),Ml(E,E.decorators),js(E,E.modifiers),ii("class"),E.name&&(Dn(),tr(E.name));var Qe=e.getEmitFlags(E)&65536;Qe&&wc(),Fl(E,E.typeParameters),mo(E,E.heritageClauses,0),Dn(),Ln("{"),mo(E,E.members,129),Ln("}"),Qe&&Hs()}function ha(E){Ml(E,E.decorators),js(E,E.modifiers),ii("interface"),Dn(),Wr(E.name),Fl(E,E.typeParameters),mo(E,E.heritageClauses,512),Dn(),Ln("{"),mo(E,E.members,129),Ln("}")}function ri(E){Ml(E,E.decorators),js(E,E.modifiers),ii("type"),Dn(),Wr(E.name),Fl(E,E.typeParameters),Dn(),Ln("="),Dn(),Wr(E.type),us()}function Ta(E){js(E,E.modifiers),ii("enum"),Dn(),Wr(E.name),Dn(),Ln("{"),mo(E,E.members,145),Ln("}")}function Ya(E){js(E,E.modifiers),~E.flags&1024&&(ii(E.flags&16?"namespace":"module"),Dn()),Wr(E.name);var Qe=E.body;if(!Qe)return us();for(;Qe&&e.isModuleDeclaration(Qe);)Ln("."),Wr(Qe.name),Qe=Qe.body;Dn(),Wr(Qe)}function fi(E){Gl(E),e.forEach(E.statements,Ga),il(E,ud(E)),Kc(E)}function ci(E){La(18,E.pos,Ln,E),mo(E,E.clauses,129),La(19,E.clauses.end,Ln,E,!0)}function Si(E){js(E,E.modifiers),La(100,E.modifiers?E.modifiers.end:E.pos,ii,E),Dn(),E.isTypeOnly&&(La(151,E.pos,ii,E),Dn()),Wr(E.name),Dn(),La(63,E.name.end,Ln,E),Dn(),Do(E.moduleReference),us()}function Do(E){E.kind===79?Ir(E):Wr(E)}function bo(E){js(E,E.modifiers),La(100,E.modifiers?E.modifiers.end:E.pos,ii,E),Dn(),E.importClause&&(Wr(E.importClause),Dn(),La(155,E.importClause.end,ii,E),Dn()),Ir(E.moduleSpecifier),E.assertClause&&ad(E.assertClause),us()}function Ns(E){E.isTypeOnly&&(La(151,E.pos,ii,E),Dn()),Wr(E.name),E.name&&E.namedBindings&&(La(27,E.name.end,Ln,E),Dn()),Wr(E.namedBindings)}function Ys(E){var Qe=La(41,E.pos,Ln,E);Dn(),La(127,Qe,ii,E),Dn(),Wr(E.name)}function Nu(E){vf(E)}function gf(E){fo(E)}function Zl(E){var Qe=La(93,E.pos,ii,E);Dn(),E.isExportEquals?La(63,Qe,Rc,E):La(88,Qe,ii,E),Dn(),Ir(E.expression,E.isExportEquals?tt.getParenthesizeRightSideOfBinaryForOperator(63):tt.parenthesizeExpressionOfExportDefault),us()}function jc(E){var Qe=La(93,E.pos,ii,E);if(Dn(),E.isTypeOnly&&(Qe=La(151,Qe,ii,E),Dn()),E.exportClause?Wr(E.exportClause):Qe=La(41,Qe,Ln,E),E.moduleSpecifier){Dn();var nt=E.exportClause?E.exportClause.end:Qe;La(155,nt,ii,E),Dn(),Ir(E.moduleSpecifier)}E.assertClause&&ad(E.assertClause),us()}function Mr(E){La(129,E.pos,ii,E),Dn();var Qe=E.elements;mo(E,Qe,526226)}function $l(E){Wr(E.name),Ln(":"),Dn();var Qe=E.value;if((e.getEmitFlags(Qe)&512)===0){var nt=e.getCommentRange(Qe);Wu(nt.pos)}Wr(Qe)}function pc(E){var Qe=La(93,E.pos,ii,E);Dn(),Qe=La(127,Qe,ii,E),Dn(),Qe=La(142,Qe,ii,E),Dn(),Wr(E.name),us()}function ku(E){var Qe=La(41,E.pos,Ln,E);Dn(),La(127,Qe,ii,E),Dn(),Wr(E.name)}function ol(E){vf(E)}function kc(E){fo(E)}function vf(E){Ln("{"),mo(E,E.elements,525136),Ln("}")}function fo(E){E.isTypeOnly&&(ii("type"),Dn()),E.propertyName&&(Wr(E.propertyName),Dn(),La(127,E.propertyName.end,ii,E),Dn()),Wr(E.name)}function Zf(E){ii("require"),Ln("("),Ir(E.expression),Ln(")")}function hf(E){Wr(E.openingElement),mo(E,E.children,262144),Wr(E.closingElement)}function Nd(E){Ln("<"),yf(E.tagName),Sl(E,E.typeArguments),Dn(),Wr(E.attributes),Ln("/>")}function _s(E){Wr(E.openingFragment),mo(E,E.children,262144),Wr(E.closingFragment)}function Hc(E){if(Ln("<"),e.isJsxOpeningElement(E)){var Qe=ld(E.tagName,E);yf(E.tagName),Sl(E,E.typeArguments),E.attributes.properties&&E.attributes.properties.length>0&&Dn(),Wr(E.attributes),cd(E.attributes,E),Lf(Qe)}Ln(">")}function Jc(E){qe.writeLiteral(E.text)}function qp(E){Ln("</"),e.isJsxClosingElement(E)&&yf(E.tagName),Ln(">")}function dl(E){mo(E,E.properties,262656)}function Xp(E){Wr(E.name),x_("=",Ln,E.initializer,kr)}function Rs(E){Ln("{..."),Ir(E.expression),Ln("}")}function Ja(E){var Qe=!1;return e.forEachTrailingCommentRange((ge==null?void 0:ge.text)||"",E+1,function(){return Qe=!0}),Qe}function Zn(E){var Qe=!1;return e.forEachLeadingCommentRange((ge==null?void 0:ge.text)||"",E+1,function(){return Qe=!0}),Qe}function Oc(E){return Ja(E)||Zn(E)}function ks(E){var Qe;if(E.expression||!pr&&!e.nodeIsSynthesized(E)&&Oc(E.pos)){var nt=ge&&!e.nodeIsSynthesized(E)&&e.getLineAndCharacterOfPosition(ge,E.pos).line!==e.getLineAndCharacterOfPosition(ge,E.end).line;nt&&qe.increaseIndent();var Ot=La(18,E.pos,Ln,E);Wr(E.dotDotDotToken),Ir(E.expression),La(19,((Qe=E.expression)===null||Qe===void 0?void 0:Qe.end)||Ot,Ln,E),nt&&qe.decreaseIndent()}}function yf(E){E.kind===79?Ir(E):Wr(E)}function Ou(E){La(82,E.pos,ii,E),Dn(),Ir(E.expression,tt.parenthesizeExpressionForDisallowedComma),Uo(E,E.statements,E.expression.end)}function kd(E){var Qe=La(88,E.pos,ii,E);Uo(E,E.statements,Qe)}function Uo(E,Qe,nt){var Ot=Qe.length===1&&(e.nodeIsSynthesized(E)||e.nodeIsSynthesized(Qe[0])||e.rangeStartPositionsAreOnSameLine(E,Qe[0],ge)),fa=163969;Ot?(Sf(58,nt,Ln,E),Dn(),fa&=-130):La(58,nt,Ln,E),mo(E,Qe,fa)}function $f(E){Dn(),Pc(E.token,ii),Dn(),mo(E,E.types,528)}function Od(E){var Qe=La(83,E.pos,ii,E);Dn(),E.variableDeclaration&&(La(20,Qe,Ln,E),Wr(E.variableDeclaration),La(21,E.variableDeclaration.end,Ln,E),Dn()),Wr(E.block)}function Rd(E){Wr(E.name),Ln(":"),Dn();var Qe=E.initializer;if((e.getEmitFlags(Qe)&512)===0){var nt=e.getCommentRange(Qe);Wu(nt.pos)}Ir(Qe,tt.parenthesizeExpressionForDisallowedComma)}function Yp(E){Wr(E.name),E.objectAssignmentInitializer&&(Dn(),Ln("="),Dn(),Ir(E.objectAssignmentInitializer,tt.parenthesizeExpressionForDisallowedComma))}function yp(E){E.expression&&(La(25,E.pos,Ln,E),Ir(E.expression,tt.parenthesizeExpressionForDisallowedComma))}function Xl(E){Wr(E.name),nd(E.initializer,E.name.end,E,tt.parenthesizeExpressionForDisallowedComma)}function C_(E){if(De("/**"),E.comment){var Qe=e.getTextOfJSDocComment(E.comment);if(Qe)for(var nt=Qe.split(/\r\n?|\n/g),Ot=0,fa=nt;Ot<fa.length;Ot++){var Oa=fa[Ot];fs(),Dn(),Ln("*"),Dn(),De(Oa)}}E.tags&&(E.tags.length===1&&E.tags[0].kind===341&&!E.comment?(Dn(),Wr(E.tags[0])):mo(E,E.tags,33)),Dn(),De("*/")}function ed(E){fu(E.tagName),mc(E.typeExpression),_c(E.comment)}function bp(E){fu(E.tagName),Wr(E.name),_c(E.comment)}function wd(E){Dn(),Ln("{"),Wr(E.name),Ln("}")}function Pd(E){fu(E.tagName),Dn(),Ln("{"),Wr(E.class),Ln("}"),_c(E.comment)}function Md(E){fu(E.tagName),mc(E.constraint),Dn(),mo(E,E.typeParameters,528),_c(E.comment)}function Fd(E){fu(E.tagName),E.typeExpression&&(E.typeExpression.kind===307?mc(E.typeExpression):(Dn(),Ln("{"),De("Object"),E.typeExpression.isArrayType&&(Ln("["),Ln("]")),Ln("}"))),E.fullName&&(Dn(),Wr(E.fullName)),_c(E.comment),E.typeExpression&&E.typeExpression.kind===320&&Gd(E.typeExpression)}function Ep(E){fu(E.tagName),E.name&&(Dn(),Wr(E.name)),_c(E.comment),Zp(E.typeExpression)}function Qp(E){fu(E.tagName),_c(E.comment)}function Gd(E){mo(E,e.factory.createNodeArray(E.jsDocPropertyTags),33)}function Zp(E){E.typeParameters&&mo(E,e.factory.createNodeArray(E.typeParameters),33),E.parameters&&mo(E,e.factory.createNodeArray(E.parameters),33),E.type&&(fs(),Dn(),Ln("*"),Dn(),Wr(E.type))}function Bd(E){fu(E.tagName),mc(E.typeExpression),Dn(),E.isBracketed&&Ln("["),Wr(E.name),E.isBracketed&&Ln("]"),_c(E.comment)}function fu(E){Ln("@"),Wr(E)}function _c(E){var Qe=e.getTextOfJSDocComment(E);Qe&&(Dn(),De(Qe))}function mc(E){E&&(Dn(),Ln("{"),Wr(E.type),Ln("}"))}function ec(E){fs();var Qe=E.statements;if(Uu){var nt=Qe.length===0||!e.isPrologueDirective(Qe[0])||e.nodeIsSynthesized(Qe[0]);if(nt){Uu(E,Qe,Sp);return}}Sp(E)}function Ud(E){Tp(!!E.hasNoDefaultLib,E.syntheticFileReferences||[],E.syntheticTypeReferences||[],E.syntheticLibReferences||[]);for(var Qe=0,nt=E.prepends;Qe<nt.length;Qe++){var Ot=nt[Qe];if(e.isUnparsedSource(Ot)&&Ot.syntheticReferences)for(var fa=0,Oa=Ot.syntheticReferences;fa<Oa.length;fa++){var ia=Oa[fa];Wr(ia),fs()}}}function bf(E){E.isDeclarationFile&&Tp(E.hasNoDefaultLib,E.referencedFiles,E.typeReferenceDirectives,E.libReferenceDirectives)}function Tp(E,Qe,nt,Ot){if(E){var fa=qe.getTextPos();sl('/// <reference no-default-lib="true"/>'),Ye&&Ye.sections.push({pos:fa,end:qe.getTextPos(),kind:"no-default-lib"}),fs()}if(ge&&ge.moduleName&&(sl('/// <amd-module name="'.concat(ge.moduleName,'" />')),fs()),ge&&ge.amdDependencies)for(var Oa=0,ia=ge.amdDependencies;Oa<ia.length;Oa++){var ti=ia[Oa];ti.name?sl('/// <amd-dependency name="'.concat(ti.name,'" path="').concat(ti.path,'" />')):sl('/// <amd-dependency path="'.concat(ti.path,'" />')),fs()}for(var Na=0,Ua=Qe;Na<Ua.length;Na++){var Go=Ua[Na],fa=qe.getTextPos();sl('/// <reference path="'.concat(Go.fileName,'" />')),Ye&&Ye.sections.push({pos:fa,end:qe.getTextPos(),kind:"reference",data:Go.fileName}),fs()}for(var cl=0,os=nt;cl<os.length;cl++){var Go=os[cl],fa=qe.getTextPos();sl('/// <reference types="'.concat(Go.fileName,'" />')),Ye&&Ye.sections.push({pos:fa,end:qe.getTextPos(),kind:"type",data:Go.fileName}),fs()}for(var is=0,Vl=Ot;is<Vl.length;is++){var Go=Vl[is],fa=qe.getTextPos();sl('/// <reference lib="'.concat(Go.fileName,'" />')),Ye&&Ye.sections.push({pos:fa,end:qe.getTextPos(),kind:"lib",data:Go.fileName}),fs()}}function Sp(E){var Qe=E.statements;Gl(E),e.forEach(E.statements,Ga),na(E);var nt=e.findIndex(Qe,function(Ot){return!e.isPrologueDirective(Ot)});bf(E),mo(E,Qe,1,void 0,nt===-1?Qe.length:nt),Kc(E)}function Ef(E){Ir(E.expression)}function $p(E){Dl(E,E.elements,528,void 0)}function Vd(E,Qe,nt,Ot){for(var fa=!!Qe,Oa=0;Oa<E.length;Oa++){var ia=E[Oa];if(e.isPrologueDirective(ia)){var ti=nt?!nt.has(ia.expression.text):!0;if(ti){fa&&(fa=!1,fr(Qe)),fs();var Na=qe.getTextPos();Wr(ia),Ot&&Ye&&Ye.sections.push({pos:Na,end:qe.getTextPos(),kind:"prologue",data:ia.expression.text}),nt&&nt.add(ia.expression.text)}}else return Oa}return E.length}function rd(E,Qe){for(var nt=0,Ot=E;nt<Ot.length;nt++){var fa=Ot[nt];if(!Qe.has(fa.data)){fs();var Oa=qe.getTextPos();Wr(fa),Ye&&Ye.sections.push({pos:Oa,end:qe.getTextPos(),kind:"prologue",data:fa.data}),Qe&&Qe.add(fa.data)}}}function td(E){if(e.isSourceFile(E))Vd(E.statements,E);else{for(var Qe=new e.Set,nt=0,Ot=E.prepends;nt<Ot.length;nt++){var fa=Ot[nt];rd(fa.prologues,Qe)}for(var Oa=0,ia=E.sourceFiles;Oa<ia.length;Oa++){var ti=ia[Oa];Vd(ti.statements,ti,Qe,!0)}fr(void 0)}}function Ru(E){for(var Qe=new e.Set,nt,Ot=0;Ot<E.sourceFiles.length;Ot++){for(var fa=E.sourceFiles[Ot],Oa=void 0,ia=0,ti=0,Na=fa.statements;ti<Na.length;ti++){var Ua=Na[ti];if(!e.isPrologueDirective(Ua))break;Qe.has(Ua.expression.text)||(Qe.add(Ua.expression.text),(Oa||(Oa=[])).push({pos:Ua.pos,end:Ua.end,expression:{pos:Ua.expression.pos,end:Ua.expression.end,text:Ua.expression.text}}),ia=ia<Ua.end?Ua.end:ia)}Oa&&(nt||(nt=[])).push({file:Ot,text:fa.text.substring(0,ia),directives:Oa})}return nt}function wu(E){if(e.isSourceFile(E)||e.isUnparsedSource(E)){var Qe=e.getShebang(E.text);if(Qe)return sl(Qe),fs(),!0}else{for(var nt=0,Ot=E.prepends;nt<Ot.length;nt++){var fa=Ot[nt];if(e.Debug.assertNode(fa,e.isUnparsedSource),wu(fa))return!0}for(var Oa=0,ia=E.sourceFiles;Oa<ia.length;Oa++){var ti=ia[Oa];if(wu(ti))return!0}}}function Pu(E,Qe){if(!!E){var nt=De;De=Qe,Wr(E),De=nt}}function js(E,Qe){Qe&&Qe.length&&(mo(E,Qe,262656),Dn())}function gc(E){E&&(Ln(":"),Dn(),Wr(E))}function nd(E,Qe,nt,Ot){E&&(Dn(),La(63,Qe,Rc,nt),Dn(),Ir(E,Ot))}function x_(E,Qe,nt,Ot){nt&&(Qe(E),Ot(nt))}function ad(E){E&&(Dn(),Wr(E))}function Mu(E,Qe){E&&(Dn(),Ir(E,Qe))}function I_(E){E&&(Wr(E),Dn())}function vc(E,Qe){e.isBlock(Qe)||e.getEmitFlags(E)&1?(Dn(),Wr(Qe)):(fs(),wc(),e.isEmptyStatement(Qe)?vt(5,Qe):Wr(Qe),Hs())}function Ml(E,Qe){mo(E,Qe,2146305)}function Sl(E,Qe){mo(E,Qe,53776,tt.parenthesizeMemberOfElementType)}function Fl(E,Qe){if(e.isFunctionLike(E)&&E.typeArguments)return Sl(E,E.typeArguments);mo(E,Qe,53776)}function pl(E,Qe){mo(E,Qe,2576)}function Dp(E,Qe){var nt=e.singleOrUndefined(Qe);return nt&&nt.pos===E.pos&&e.isArrowFunction(E)&&!E.type&&!e.some(E.decorators)&&!e.some(E.modifiers)&&!e.some(E.typeParameters)&&!e.some(nt.decorators)&&!e.some(nt.modifiers)&&!nt.dotDotDotToken&&!nt.questionToken&&!nt.type&&!nt.initializer&&e.isIdentifier(nt.name)}function Tf(E,Qe){Dp(E,Qe)?mo(E,Qe,528):pl(E,Qe)}function Wd(E,Qe){mo(E,Qe,8848)}function id(E){switch(E&60){case 0:break;case 16:Ln(",");break;case 4:Dn(),Ln("|");break;case 32:Dn(),Ln("*"),Dn();break;case 8:Dn(),Ln("&");break}}function mo(E,Qe,nt,Ot,fa,Oa){wo(Wr,E,Qe,nt,Ot,fa,Oa)}function Dl(E,Qe,nt,Ot,fa,Oa){wo(Ir,E,Qe,nt,Ot,fa,Oa)}function wo(E,Qe,nt,Ot,fa,Oa,ia){Oa===void 0&&(Oa=0),ia===void 0&&(ia=nt?nt.length-Oa:0);var ti=nt===void 0;if(!(ti&&Ot&16384)){var Na=nt===void 0||Oa>=nt.length||ia===0;if(Na&&Ot&32768){j&&j(nt),Se&&Se(nt);return}if(Ot&15360&&(Ln($(Ot)),Na&&nt&&Wu(nt.pos,!0)),j&&j(nt),Na)Ot&1&&!(_e&&(!Qe||e.rangeIsOnSingleLine(Qe,ge)))?fs():Ot&256&&!(Ot&524288)&&Dn();else{e.Debug.type(nt);var Ua=(Ot&262144)===0,Go=Ua,cl=ll(Qe,nt,Ot);cl?(fs(cl),Go=!1):Ot&256&&Dn(),Ot&128&&wc();for(var os=void 0,is=void 0,Vl=!1,Zc=0;Zc<ia;Zc++){var $c=nt[Oa+Zc];if(Ot&32)fs(),id(Ot);else if(os){Ot&60&&os.end!==(Qe?Qe.end:-1)&&Xc(os.end),id(Ot),je(is);var md=r_(os,$c,Ot);md>0?((Ot&131)===0&&(wc(),Vl=!0),fs(md),Go=!1):os&&Ot&512&&Dn()}if(is=fe($c),Go){if(Wu){var n_=e.getCommentRange($c);Wu(n_.pos)}}else Go=Ua;Le=$c.pos,E.length===1?E($c):E($c,fa),Vl&&(Hs(),Vl=!1),os=$c}var tf=os?e.getEmitFlags(os):0,Mf=pr||!!(tf&1024),a_=(nt==null?void 0:nt.hasTrailingComma)&&Ot&64&&Ot&16;a_&&(os&&!Mf?La(27,os.end,Ln,os):Ln(",")),os&&(Qe?Qe.end:-1)!==os.end&&Ot&60&&!Mf&&Xc(a_&&(nt==null?void 0:nt.end)?nt.end:os.end),Ot&128&&Hs(),je(is);var gd=Fu(Qe,nt,Ot);gd?fs(gd):Ot&2097408&&Dn()}Se&&Se(nt),Ot&15360&&(Na&&nt&&Xc(nt.end),Ln(T(Ot)))}}function ms(E){qe.writeLiteral(E)}function e_(E){qe.writeStringLiteral(E)}function Yl(E){qe.write(E)}function od(E,Qe){qe.writeSymbol(E,Qe)}function Ln(E){qe.writePunctuation(E)}function us(){qe.writeTrailingSemicolon(";")}function ii(E){qe.writeKeyword(E)}function Rc(E){qe.writeOperator(E)}function sd(E){qe.writeParameter(E)}function sl(E){qe.writeComment(E)}function Dn(){qe.writeSpace(" ")}function N_(E){qe.writeProperty(E)}function rs(E){qe.nonEscapingWrite?qe.nonEscapingWrite(E):qe.write(E)}function fs(E){E===void 0&&(E=1);for(var Qe=0;Qe<E;Qe++)qe.writeLine(Qe>0)}function wc(){qe.increaseIndent()}function Hs(){qe.decreaseIndent()}function Sf(E,Qe,nt,Ot){return Or?Pc(E,nt,Qe):_d(Ot,E,nt,Qe,Pc)}function ws(E,Qe){Ce&&Ce(E),Qe(e.tokenToString(E.kind)),O&&O(E)}function Pc(E,Qe,nt){var Ot=e.tokenToString(E);return Qe(Ot),nt<0?nt:nt+Ot.length}function Qu(E,Qe,nt){if(e.getEmitFlags(E)&1)Dn();else if(_e){var Ot=yc(E,Qe,nt);Ot?fs(Ot):Dn()}else fs()}function Df(E){for(var Qe=E.split(/\r\n?|\n/g),nt=e.guessIndentation(Qe),Ot=0,fa=Qe;Ot<fa.length;Ot++){var Oa=fa[Ot],ia=nt?Oa.slice(nt):Oa;ia.length&&(fs(),De(ia))}}function hc(E,Qe){E?(wc(),fs(E)):Qe&&Dn()}function Lf(E,Qe){E&&Hs(),Qe&&Hs()}function ll(E,Qe,nt){if(nt&2||_e){if(nt&65536)return 1;var Ot=Qe[0];if(Ot===void 0)return!E||e.rangeIsOnSingleLine(E,ge)?0:1;if(Ot.pos===Le||Ot.kind===11)return 0;if(E&&!e.positionIsSynthesized(E.pos)&&!e.nodeIsSynthesized(Ot)&&(!Ot.parent||e.getOriginalNode(Ot.parent)===e.getOriginalNode(E)))return _e?Af(function(fa){return e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(Ot.pos,E.pos,ge,fa)}):e.rangeStartPositionsAreOnSameLine(E,Ot,ge)?0:1;if(Cf(Ot,nt))return 1}return nt&1?1:0}function r_(E,Qe,nt){if(nt&2||_e){if(E===void 0||Qe===void 0||Qe.kind===11)return 0;if(!e.nodeIsSynthesized(E)&&!e.nodeIsSynthesized(Qe))return _e&&ef(E,Qe)?Af(function(Ot){return e.getLinesBetweenRangeEndAndRangeStart(E,Qe,ge,Ot)}):!_e&&Xd(E,Qe)?e.rangeEndIsOnSameLineAsRangeStart(E,Qe,ge)?0:1:nt&65536?1:0;if(Cf(E,nt)||Cf(Qe,nt))return 1}else if(e.getStartsOnNewLine(Qe))return 1;return nt&1?1:0}function Fu(E,Qe,nt){if(nt&2||_e){if(nt&65536)return 1;var Ot=e.lastOrUndefined(Qe);if(Ot===void 0)return!E||e.rangeIsOnSingleLine(E,ge)?0:1;if(E&&!e.positionIsSynthesized(E.pos)&&!e.nodeIsSynthesized(Ot)&&(!Ot.parent||Ot.parent===E)){if(_e){var fa=e.isNodeArray(Qe)&&!e.positionIsSynthesized(Qe.end)?Qe.end:Ot.end;return Af(function(Oa){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(fa,E.end,ge,Oa)})}return e.rangeEndPositionsAreOnSameLine(E,Ot,ge)?0:1}if(Cf(Ot,nt))return 1}return nt&1&&!(nt&131072)?1:0}function Af(E){e.Debug.assert(!!_e);var Qe=E(!0);return Qe===0?E(!1):Qe}function ld(E,Qe){var nt=_e&&ll(Qe,[E],0);return nt&&hc(nt,!1),!!nt}function cd(E,Qe){var nt=_e&&Fu(Qe,[E],0);nt&&fs(nt)}function Cf(E,Qe){if(e.nodeIsSynthesized(E)){var nt=e.getStartsOnNewLine(E);return nt===void 0?(Qe&65536)!==0:nt}return(Qe&65536)!==0}function yc(E,Qe,nt){return e.getEmitFlags(E)&131072?0:(E=xf(E),Qe=xf(Qe),nt=xf(nt),e.getStartsOnNewLine(nt)?1:!e.nodeIsSynthesized(E)&&!e.nodeIsSynthesized(Qe)&&!e.nodeIsSynthesized(nt)?_e?Af(function(Ot){return e.getLinesBetweenRangeEndAndRangeStart(Qe,nt,ge,Ot)}):e.rangeEndIsOnSameLineAsRangeStart(Qe,nt,ge)?0:1:0)}function ud(E){return E.statements.length===0&&e.rangeEndIsOnSameLineAsRangeStart(E,E,ge)}function xf(E){for(;E.kind===211&&e.nodeIsSynthesized(E);)E=E.expression;return E}function Gu(E,Qe){return e.isGeneratedIdentifier(E)?jd(E):(e.isIdentifier(E)||e.isPrivateIdentifier(E))&&(e.nodeIsSynthesized(E)||!E.parent||!ge||E.parent&&ge&&e.getSourceFileOfNode(E)!==e.getOriginalNode(ge))?e.idText(E):E.kind===10&&E.textSourceNode?Gu(E.textSourceNode,Qe):e.isLiteralExpression(E)&&(e.nodeIsSynthesized(E)||!E.parent)?E.text:e.getSourceTextOfNodeFromSourceFile(ge,E,Qe)}function Js(E,Qe,nt){if(E.kind===10&&E.textSourceNode){var Ot=E.textSourceNode;if(e.isIdentifier(Ot)||e.isNumericLiteral(Ot)){var fa=e.isNumericLiteral(Ot)?Ot.text:Gu(Ot);return nt?'"'.concat(e.escapeJsxAttributeString(fa),'"'):Qe||e.getEmitFlags(E)&16777216?'"'.concat(e.escapeString(fa),'"'):'"'.concat(e.escapeNonAsciiString(fa),'"')}else return Js(Ot,Qe,nt)}var Oa=(Qe?1:0)|(nt?2:0)|(y.terminateUnterminatedLiterals?4:0)|(y.target&&y.target===99?8:0);return e.getLiteralText(E,ge,Oa)}function Gl(E){E&&e.getEmitFlags(E)&524288||(Ge.push(he),he=0,ve.push(Ve))}function Kc(E){E&&e.getEmitFlags(E)&524288||(he=Ge.pop(),Ve=ve.pop())}function fd(E){(!Ve||Ve===e.lastOrUndefined(ve))&&(Ve=new e.Set),Ve.add(E)}function Ga(E){if(!!E)switch(E.kind){case 234:e.forEach(E.statements,Ga);break;case 249:case 247:case 239:case 240:Ga(E.statement);break;case 238:Ga(E.thenStatement),Ga(E.elseStatement);break;case 241:case 243:case 242:Ga(E.initializer),Ga(E.statement);break;case 248:Ga(E.caseBlock);break;case 262:e.forEach(E.clauses,Ga);break;case 288:case 289:e.forEach(E.statements,Ga);break;case 251:Ga(E.tryBlock),Ga(E.catchClause),Ga(E.finallyBlock);break;case 291:Ga(E.variableDeclaration),Ga(E.block);break;case 236:Ga(E.declarationList);break;case 254:e.forEach(E.declarations,Ga);break;case 253:case 163:case 202:case 256:Ts(E.name);break;case 255:Ts(E.name),e.getEmitFlags(E)&524288&&(e.forEach(E.parameters,Ga),Ga(E.body));break;case 200:case 201:e.forEach(E.elements,Ga);break;case 265:Ga(E.importClause);break;case 266:Ts(E.name),Ga(E.namedBindings);break;case 267:Ts(E.name);break;case 273:Ts(E.name);break;case 268:e.forEach(E.elements,Ga);break;case 269:Ts(E.propertyName||E.name);break}}function wn(E){if(!!E)switch(E.kind){case 294:case 295:case 166:case 168:case 171:case 172:Ts(E.name);break}}function Ts(E){E&&(e.isGeneratedIdentifier(E)?jd(E):e.isBindingPattern(E)&&Ga(E))}function jd(E){if((E.autoGenerateFlags&7)===4)return rc(Nf(E),E.autoGenerateFlags);var Qe=E.autoGenerateId;return Me[Qe]||(Me[Qe]=nc(E))}function rc(E,Qe){var nt=e.getNodeId(E);return ke[nt]||(ke[nt]=Kd(E,Qe))}function Zu(E){return zc(E)&&!Ie.has(E)&&!(Ve&&Ve.has(E))}function zc(E){return ge?e.isFileLevelUniqueName(ge,E,C):!0}function Hd(E,Qe){for(var nt=Qe;e.isNodeDescendantOf(nt,Qe);nt=nt.nextContainer)if(nt.locals){var Ot=nt.locals.get(e.escapeLeadingUnderscores(E));if(Ot&&Ot.flags&3257279)return!1}return!0}function Ll(E,Qe){if(E&&!(he&E)){var nt=E===268435456?"_i":"_n";if(Zu(nt))return he|=E,Qe&&fd(nt),nt}for(;;){var Ot=he&268435455;if(he++,Ot!==8&&Ot!==13){var nt=Ot<26?"_"+String.fromCharCode(97+Ot):"_"+(Ot-26);if(Zu(nt))return Qe&&fd(nt),nt}}}function tc(E,Qe,nt,Ot){if(Qe===void 0&&(Qe=Zu),nt&&Qe(E))return Ot?fd(E):Ie.add(E),E;E.charCodeAt(E.length-1)!==95&&(E+="_");for(var fa=1;;){var Oa=E+fa;if(Qe(Oa))return Ot?fd(Oa):Ie.add(Oa),Oa;fa++}}function If(E){return tc(E,zc,!0)}function $u(E){var Qe=Gu(E.name);return Hd(Qe,E)?Qe:tc(Qe)}function Qs(E){var Qe=e.getExternalModuleName(E),nt=e.isStringLiteral(Qe)?e.makeIdentifierFromModuleName(Qe.text):"module";return tc(nt)}function Jd(){return tc("default")}function jo(){return tc("class")}function Bl(E){return e.isIdentifier(E.name)?rc(E.name):Ll(0)}function Kd(E,Qe){switch(E.kind){case 79:return tc(Gu(E),Zu,!!(Qe&16),!!(Qe&8));case 260:case 259:return $u(E);case 265:case 271:return Qs(E);case 255:case 256:case 270:return Jd();case 225:return jo();case 168:case 171:case 172:return Bl(E);case 161:return Ll(0,!0);default:return Ll(0)}}function nc(E){switch(E.autoGenerateFlags&7){case 1:return Ll(0,!!(E.autoGenerateFlags&8));case 2:return Ll(268435456,!!(E.autoGenerateFlags&8));case 3:return tc(e.idText(E),E.autoGenerateFlags&32?zc:Zu,!!(E.autoGenerateFlags&16),!!(E.autoGenerateFlags&8))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}function Nf(E){for(var Qe=E.autoGenerateId,nt=E,Ot=nt.original;Ot&&(nt=Ot,!(e.isIdentifier(nt)&&!!(nt.autoGenerateFlags&4)&&nt.autoGenerateId!==Qe));)Ot=nt.original;return nt}function Bu(E,Qe){var nt=wt(2,E,Qe),Ot=de,fa=Fe,Oa=$e;dd(Qe),nt(E,Qe),zd(Qe,Ot,fa,Oa)}function dd(E){var Qe=e.getEmitFlags(E),nt=e.getCommentRange(E);Al(E,Qe,nt.pos,nt.end),Qe&2048&&(pr=!0)}function zd(E,Qe,nt,Ot){var fa=e.getEmitFlags(E),Oa=e.getCommentRange(E);fa&2048&&(pr=!1),ts(E,fa,Oa.pos,Oa.end,Qe,nt,Ot)}function Al(E,Qe,nt,Ot){Yr(),He=!1;var fa=nt<0||(Qe&512)!==0||E.kind===11,Oa=Ot<0||(Qe&1024)!==0||E.kind===11;(nt>0||Ot>0)&&nt!==Ot&&(fa||Of(nt,E.kind!==347),(!fa||nt>=0&&(Qe&512)!==0)&&(de=nt),(!Oa||Ot>=0&&(Qe&1024)!==0)&&(Fe=Ot,E.kind===254&&($e=Ot))),e.forEach(e.getSyntheticLeadingComments(E),du),lt()}function ts(E,Qe,nt,Ot,fa,Oa,ia){Yr();var ti=Ot<0||(Qe&1024)!==0||E.kind===11;e.forEach(e.getSyntheticTrailingComments(E),qd),(nt>0||Ot>0)&&nt!==Ot&&(de=fa,Fe=Oa,$e=ia,!ti&&E.kind!==347&&Yd(Ot)),lt()}function du(E){(E.hasLeadingNewline||E.kind===2)&&qe.writeLine(),ac(E),E.hasTrailingNewLine||E.kind===2?qe.writeLine():qe.writeSpace(" ")}function qd(E){qe.isAtStartOfLine()||qe.writeSpace(" "),ac(E),E.hasTrailingNewLine&&qe.writeLine()}function ac(E){var Qe=kf(E),nt=E.kind===3?e.computeLineStarts(Qe):void 0;e.writeCommentRange(Qe,nt,qe,0,Qe.length,V)}function kf(E){return E.kind===3?"/*".concat(E.text,"*/"):"//".concat(E.text)}function Uu(E,Qe,nt){Yr();var Ot=Qe.pos,fa=Qe.end,Oa=e.getEmitFlags(E),ia=Ot<0||(Oa&512)!==0,ti=pr||fa<0||(Oa&1024)!==0;ia||Zd(Qe),lt(),Oa&2048&&!pr?(pr=!0,nt(E),pr=!1):nt(E),Yr(),ti||(Of(Qe.end,!0),He&&!qe.isAtStartOfLine()&&qe.writeLine()),lt()}function Xd(E,Qe){return E=e.getOriginalNode(E),E.parent&&E.parent===e.getOriginalNode(Qe).parent}function ef(E,Qe){if(Qe.pos<E.end)return!1;E=e.getOriginalNode(E),Qe=e.getOriginalNode(Qe);var nt=E.parent;if(!nt||nt!==Qe.parent)return!1;var Ot=e.getContainingNodeArray(E),fa=Ot==null?void 0:Ot.indexOf(E);return fa!==void 0&&fa>-1&&Ot.indexOf(Qe)===fa+1}function Of(E,Qe){He=!1,Qe?E===0&&(ge==null?void 0:ge.isDeclarationFile)?pu(E,qc):pu(E,Vu):E===0&&pu(E,bc)}function bc(E,Qe,nt,Ot,fa){$d(E,Qe)&&Vu(E,Qe,nt,Ot,fa)}function qc(E,Qe,nt,Ot,fa){$d(E,Qe)||Vu(E,Qe,nt,Ot,fa)}function rf(E,Qe){return y.onlyPrintJsDocStyle?e.isJSDocLikeText(E,Qe)||e.isPinnedComment(E,Qe):!0}function Vu(E,Qe,nt,Ot,fa){!rf(ge.text,E)||(He||(e.emitNewLineBeforeLeadingCommentOfPosition(yt(),qe,fa,E),He=!0),Ul(E),e.writeCommentRange(ge.text,yt(),qe,E,Qe,V),Ul(Qe),Ot?qe.writeLine():nt===3&&qe.writeSpace(" "))}function Xc(E){pr||E===-1||Of(E,!0)}function Yd(E){gn(E,Ec)}function Ec(E,Qe,nt,Ot){!rf(ge.text,E)||(qe.isAtStartOfLine()||qe.writeSpace(" "),Ul(E),e.writeCommentRange(ge.text,yt(),qe,E,Qe,V),Ul(Qe),Ot&&qe.writeLine())}function Wu(E,Qe,nt){pr||(Yr(),gn(E,Qe?Ec:nt?t_:Wa),lt())}function t_(E,Qe,nt){Ul(E),e.writeCommentRange(ge.text,yt(),qe,E,Qe,V),Ul(Qe),nt===2&&qe.writeLine()}function Wa(E,Qe,nt,Ot){Ul(E),e.writeCommentRange(ge.text,yt(),qe,E,Qe,V),Ul(Qe),Ot?qe.writeLine():qe.writeSpace(" ")}function pu(E,Qe){ge&&(de===-1||E!==de)&&(Rf(E)?Qd(Qe):e.forEachLeadingCommentRange(ge.text,E,Qe,E))}function gn(E,Qe){ge&&(Fe===-1||E!==Fe&&E!==$e)&&e.forEachTrailingCommentRange(ge.text,E,Qe)}function Rf(E){return Fr!==void 0&&e.last(Fr).nodePos===E}function Qd(E){var Qe=e.last(Fr).detachedCommentEndPos;Fr.length-1?Fr.pop():Fr=void 0,e.forEachLeadingCommentRange(ge.text,Qe,E,Qe)}function Zd(E){var Qe=e.emitDetachedComments(ge.text,yt(),qe,Mc,E,V,pr);Qe&&(Fr?Fr.push(Qe):Fr=[Qe])}function Mc(E,Qe,nt,Ot,fa,Oa){!rf(ge.text,Ot)||(Ul(Ot),e.writeCommentRange(E,Qe,nt,Ot,fa,Oa),Ul(fa))}function $d(E,Qe){return e.isRecognizedTripleSlashComment(ge.text,E,Qe)}function k_(E){return E.parsedSourceMap===void 0&&E.sourceMapText!==void 0&&(E.parsedSourceMap=e.tryParseRawSourceMap(E.sourceMapText)||!1),E.parsedSourceMap||void 0}function Yc(E,Qe){var nt=wt(3,E,Qe);Lp(Qe),nt(E,Qe),pd(Qe)}function Lp(E){var Qe=e.getEmitFlags(E),nt=e.getSourceMapRange(E);if(e.isUnparsedNode(E)){e.Debug.assertIsDefined(E.parent,"UnparsedNodes must have parent pointers");var Ot=k_(E.parent);Ot&&Ke&&Ke.appendSourceMap(qe.getLine(),qe.getColumn(),Ot,E.parent.sourceMapPath,E.parent.getLineAndCharacterOfPosition(E.pos),E.parent.getLineAndCharacterOfPosition(E.end))}else{var fa=nt.source||Pe;E.kind!==347&&(Qe&16)===0&&nt.pos>=0&&wf(nt.source||Pe,Ap(fa,nt.pos)),Qe&64&&(Or=!0)}}function pd(E){var Qe=e.getEmitFlags(E),nt=e.getSourceMapRange(E);e.isUnparsedNode(E)||(Qe&64&&(Or=!1),E.kind!==347&&(Qe&32)===0&&nt.end>=0&&wf(nt.source||Pe,nt.end))}function Ap(E,Qe){return E.skipTrivia?E.skipTrivia(Qe):e.skipTrivia(E.text,Qe)}function Ul(E){if(!(Or||e.positionIsSynthesized(E)||Pf(Pe))){var Qe=e.getLineAndCharacterOfPosition(Pe,E),nt=Qe.line,Ot=Qe.character;Ke.addMapping(qe.getLine(),qe.getColumn(),Hr,nt,Ot,void 0)}}function wf(E,Qe){if(E!==Pe){var nt=Pe,Ot=Hr;Fc(E),Ul(Qe),Qc(nt,Ot)}else Ul(Qe)}function _d(E,Qe,nt,Ot,fa){if(Or||E&&e.isInJsonFile(E))return fa(Qe,nt,Ot);var Oa=E&&E.emitNode,ia=Oa&&Oa.flags||0,ti=Oa&&Oa.tokenSourceMapRanges&&Oa.tokenSourceMapRanges[Qe],Na=ti&&ti.source||Pe;return Ot=Ap(Na,ti?ti.pos:Ot),(ia&128)===0&&Ot>=0&&wf(Na,Ot),Ot=fa(Qe,nt,Ot),ti&&(Ot=ti.end),(ia&256)===0&&Ot>=0&&wf(Na,Ot),Ot}function Fc(E){if(!Or){if(Pe=E,E===ur){Hr=vr;return}Pf(E)||(Hr=Ke.addSource(E.fileName),y.inlineSources&&Ke.setSourceContent(Hr,E.text),ur=E,vr=Hr)}}function Qc(E,Qe){Pe=E,Hr=Qe}function Pf(E){return e.fileExtensionIs(E.fileName,".json")}}e.createPrinter=Y;function U(){var y=[];return y[1024]=["{","}"],y[2048]=["(",")"],y[4096]=["<",">"],y[8192]=["[","]"],y}function $(y){return n[y&15360][0]}function T(y){return n[y&15360][1]}var I;(function(y){y[y.Auto=0]="Auto",y[y.CountMask=268435455]="CountMask",y[y._i=268435456]="_i"})(I||(I={}))})(gr||(gr={}));var gr;(function(e){function n(S,B,J){if(!S.getDirectories||!S.readDirectory)return;var k=new e.Map,M=e.createGetCanonicalFileName(J);return{useCaseSensitiveFileNames:J,fileExists:I,readFile:function(X,j){return S.readFile(X,j)},directoryExists:S.directoryExists&&y,getDirectories:C,readDirectory:m,createDirectory:S.createDirectory&&D,writeFile:S.writeFile&&T,addOrDeleteFileOrDirectory:g,addOrDeleteFile:F,clearCache:ue,realpath:S.realpath&&u};function x(X){return e.toPath(X,B,M)}function w(X){return k.get(e.ensureTrailingDirectorySeparator(X))}function K(X){return w(e.getDirectoryPath(X))}function Z(X){return e.getBaseFileName(e.normalizePath(X))}function ne(X,j){var Se;if(!S.realpath||e.ensureTrailingDirectorySeparator(x(S.realpath(X)))===j){var Ce={files:e.map(S.readDirectory(X,void 0,void 0,["*.*"]),Z)||[],directories:S.getDirectories(X)||[]};return k.set(e.ensureTrailingDirectorySeparator(j),Ce),Ce}if(!((Se=S.directoryExists)===null||Se===void 0)&&Se.call(S,X))return k.set(j,!1),!1}function R(X,j){j=e.ensureTrailingDirectorySeparator(j);var Se=w(j);if(Se)return Se;try{return ne(X,j)}catch{e.Debug.assert(!k.has(e.ensureTrailingDirectorySeparator(j)));return}}function Y(X,j){return M(X)===M(j)}function U(X,j){return e.some(X,function(Se){return Y(Se,j)})}function $(X,j,Se){if(U(X,j)){if(!Se)return e.filterMutate(X,function(Ce){return!Y(Ce,j)})}else if(Se)return X.push(j)}function T(X,j,Se){var Ce=x(X),O=K(Ce);return O&&te(O,Z(X),!0),S.writeFile(X,j,Se)}function I(X){var j=x(X),Se=K(j);return Se&&U(Se.files,Z(X))||S.fileExists(X)}function y(X){var j=x(X);return k.has(e.ensureTrailingDirectorySeparator(j))||S.directoryExists(X)}function D(X){var j=x(X),Se=K(j),Ce=Z(X);Se&&$(Se.directories,Ce,!0),S.createDirectory(X)}function C(X){var j=x(X),Se=R(X,j);return Se?Se.directories.slice():S.getDirectories(X)}function m(X,j,Se,Ce,O){var Q=x(X),V=R(X,Q),z;if(V!==void 0)return e.matchFiles(X,j,Se,Ce,J,B,O,Te,u);return S.readDirectory(X,j,Se,Ce,O);function Te(ke){var Me=x(ke);if(Me===Q)return V||ge(ke,Me);var Ie=R(ke,Me);return Ie!==void 0?Ie||ge(ke,Me):e.emptyFileSystemEntries}function ge(ke,Me){if(z&&Me===Q)return z;var Ie={files:e.map(S.readDirectory(ke,void 0,void 0,["*.*"]),Z)||e.emptyArray,directories:S.getDirectories(ke)||e.emptyArray};return Me===Q&&(z=Ie),Ie}}function u(X){return S.realpath?S.realpath(X):X}function g(X,j){var Se=w(j);if(Se!==void 0){ue();return}var Ce=K(j);if(!!Ce){if(!S.directoryExists){ue();return}var O=Z(X),Q={fileExists:S.fileExists(j),directoryExists:S.directoryExists(j)};return Q.directoryExists||U(Ce.directories,O)?ue():te(Ce,O,Q.fileExists),Q}}function F(X,j,Se){if(Se!==e.FileWatcherEventKind.Changed){var Ce=K(j);Ce&&te(Ce,Z(X),Se===e.FileWatcherEventKind.Created)}}function te(X,j,Se){$(X.files,j,Se)}function ue(){k.clear()}}e.createCachedDirectoryStructureHost=n,function(S){S[S.None=0]="None",S[S.Partial=1]="Partial",S[S.Full=2]="Full"}(e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}));function f(S,B,J,k,M){var x,w=e.arrayToMap(((x=B==null?void 0:B.configFile)===null||x===void 0?void 0:x.extendedSourceFiles)||e.emptyArray,M);J.forEach(function(K,Z){w.has(Z)||(K.projects.delete(S),K.close())}),w.forEach(function(K,Z){var ne=J.get(Z);ne?ne.projects.add(S):J.set(Z,{projects:new e.Set([S]),watcher:k(K,Z),close:function(){var R=J.get(Z);!R||R.projects.size!==0||(R.watcher.close(),J.delete(Z))}})})}e.updateSharedExtendedConfigFileWatcher=f;function d(S,B){B.forEach(function(J){J.projects.delete(S)&&J.close()})}e.clearSharedExtendedConfigFileWatcher=d;function a(S,B,J){!S.delete(B)||S.forEach(function(k,M){var x,w=k.extendedResult;!((x=w.extendedSourceFiles)===null||x===void 0)&&x.some(function(K){return J(K)===B})&&a(S,M,J)})}e.cleanExtendedConfigCache=a;function p(S,B,J){var k=new e.Map(S);e.mutateMap(B,k,{createNewValue:J,onDeleteValue:e.closeFileWatcher})}e.updatePackageJsonWatch=p;function N(S,B,J){var k=S.getMissingFilePaths(),M=e.arrayToMap(k,e.identity,e.returnTrue);e.mutateMap(B,M,{createNewValue:J,onDeleteValue:e.closeFileWatcher})}e.updateMissingFilePathsWatch=N;function H(S,B,J){e.mutateMap(S,B,{createNewValue:k,onDeleteValue:P,onExistingValue:M});function k(x,w){return{watcher:J(x,w),flags:w}}function M(x,w,K){x.flags!==w&&(x.watcher.close(),S.set(K,k(K,w)))}}e.updateWatchingWildcardDirectories=H;function h(S){var B=S.watchedDirPath,J=S.fileOrDirectory,k=S.fileOrDirectoryPath,M=S.configFileName,x=S.options,w=S.program,K=S.extraFileExtensions,Z=S.currentDirectory,ne=S.useCaseSensitiveFileNames,R=S.writeLog,Y=S.toPath,U=e.removeIgnoredPath(k);if(!U)return R("Project: ".concat(M," Detected ignored path: ").concat(J)),!0;if(k=U,k===B)return!1;if(e.hasExtension(k)&&!e.isSupportedSourceFileName(J,x,K))return R("Project: ".concat(M," Detected file add/remove of non supported extension: ").concat(J)),!0;if(e.isExcludedFile(J,x.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(M),Z),ne,Z))return R("Project: ".concat(M," Detected excluded file: ").concat(J)),!0;if(!w||e.outFile(x)||x.outDir)return!1;if(e.fileExtensionIs(k,".d.ts")){if(x.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(k,e.supportedJSExtensionsFlat))return!1;var $=e.removeFileExtension(k),T=e.isArray(w)?void 0:v(w)?w.getProgramOrUndefined():w,I=!T&&!e.isArray(w)?w:void 0;if(y($+".ts")||y($+".tsx"))return R("Project: ".concat(M," Detected output file: ").concat(J)),!0;return!1;function y(D){return T?!!T.getSourceFileByPath(D):I?I.getState().fileInfos.has(D):!!e.find(w,function(C){return Y(C)===D})}}e.isIgnoredFileFromWildCardWatching=h;function v(S){return!!S.getState}function A(S,B){return S?S.isEmittedFile(B):!1}e.isEmittedFileOfProgram=A;var q;(function(S){S[S.None=0]="None",S[S.TriggerOnly=1]="TriggerOnly",S[S.Verbose=2]="Verbose"})(q=e.WatchLogLevel||(e.WatchLogLevel={}));function ie(S,B,J,k){e.setSysLog(B===q.Verbose?J:e.noop);var M={watchFile:function(I,y,D,C){return S.watchFile(I,y,D,C)},watchDirectory:function(I,y,D,C){return S.watchDirectory(I,y,(D&1)!==0,C)}},x=B!==q.None?{watchFile:$("watchFile"),watchDirectory:$("watchDirectory")}:void 0,w=B===q.Verbose?{watchFile:Y,watchDirectory:U}:x||M,K=B===q.Verbose?R:e.returnNoopFileWatcher;return{watchFile:Z("watchFile"),watchDirectory:Z("watchDirectory")};function Z(I){return function(y,D,C,m,u,g){var F;return e.matchesExclude(y,I==="watchFile"?m==null?void 0:m.excludeFiles:m==null?void 0:m.excludeDirectories,ne(),((F=S.getCurrentDirectory)===null||F===void 0?void 0:F.call(S))||"")?K(y,C,m,u,g):w[I].call(void 0,y,D,C,m,u,g)}}function ne(){return typeof S.useCaseSensitiveFileNames=="boolean"?S.useCaseSensitiveFileNames:S.useCaseSensitiveFileNames()}function R(I,y,D,C,m){return J("ExcludeWatcher:: Added:: ".concat(T(I,y,D,C,m,k))),{close:function(){return J("ExcludeWatcher:: Close:: ".concat(T(I,y,D,C,m,k)))}}}function Y(I,y,D,C,m,u){J("FileWatcher:: Added:: ".concat(T(I,D,C,m,u,k)));var g=x.watchFile(I,y,D,C,m,u);return{close:function(){J("FileWatcher:: Close:: ".concat(T(I,D,C,m,u,k))),g.close()}}}function U(I,y,D,C,m,u){var g="DirectoryWatcher:: Added:: ".concat(T(I,D,C,m,u,k));J(g);var F=e.timestamp(),te=x.watchDirectory(I,y,D,C,m,u),ue=e.timestamp()-F;return J("Elapsed:: ".concat(ue,"ms ").concat(g)),{close:function(){var X="DirectoryWatcher:: Close:: ".concat(T(I,D,C,m,u,k));J(X);var j=e.timestamp();te.close();var Se=e.timestamp()-j;J("Elapsed:: ".concat(Se,"ms ").concat(X))}}}function $(I){return function(y,D,C,m,u,g){return M[I].call(void 0,y,function(){for(var F=[],te=0;te<arguments.length;te++)F[te]=arguments[te];var ue="".concat(I==="watchFile"?"FileWatcher":"DirectoryWatcher",":: Triggered with ").concat(F[0]," ").concat(F[1]!==void 0?F[1]:"",":: ").concat(T(y,C,m,u,g,k));J(ue);var X=e.timestamp();D.call.apply(D,Gt([void 0],F,!1));var j=e.timestamp()-X;J("Elapsed:: ".concat(j,"ms ").concat(ue))},C,m,u,g)}}function T(I,y,D,C,m,u){return"WatchInfo: ".concat(I," ").concat(y," ").concat(JSON.stringify(D)," ").concat(u?u(C,m):m===void 0?C:"".concat(C," ").concat(m))}}e.getWatchFactory=ie;function b(S){var B=S==null?void 0:S.fallbackPolling;return{watchFile:B!==void 0?B:e.WatchFileKind.PriorityPollingInterval}}e.getFallbackOptions=b;function P(S){S.watcher.close()}e.closeFileWatcherOf=P})(gr||(gr={}));var gr;(function(e){function n(z,Te,ge){return ge===void 0&&(ge="tsconfig.json"),e.forEachAncestorDirectory(z,function(ke){var Me=e.combinePaths(ke,ge);return Te(Me)?Me:void 0})}e.findConfigFile=n;function f(z,Te){var ge=e.getDirectoryPath(Te),ke=e.isRootedDiskPath(z)?z:e.combinePaths(ge,z);return e.normalizePath(ke)}e.resolveTripleslashReference=f;function d(z,Te,ge){var ke,Me=e.forEach(z,function(Ie){var Ge=e.getNormalizedPathComponents(Ie,Te);if(Ge.pop(),!ke){ke=Ge;return}for(var he=Math.min(ke.length,Ge.length),ve=0;ve<he;ve++)if(ge(ke[ve])!==ge(Ge[ve])){if(ve===0)return!0;ke.length=ve;break}Ge.length<ke.length&&(ke.length=Ge.length)});return Me?"":ke?e.getPathFromPathComponents(ke):Te}e.computeCommonSourceDirectoryOfFilenames=d;function a(z,Te){return p(z,Te)}e.createCompilerHost=a;function p(z,Te,ge){ge===void 0&&(ge=e.sys);var ke=new e.Map,Me=e.createGetCanonicalFileName(ge.useCaseSensitiveFileNames),Ie=e.maybeBind(ge,ge.createHash)||e.generateDjb2Hash;function Ge(Ae,Ye,Lr){var Er;try{e.performance.mark("beforeIORead"),Er=De.readFile(Ae),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(lr){Lr&&Lr(lr.message),Er=""}return Er!==void 0?e.createSourceFile(Ae,Er,Ye,Te):void 0}function he(Ae){return ke.has(Ae)?!0:(De.directoryExists||ge.directoryExists)(Ae)?(ke.set(Ae,!0),!0):!1}function ve(Ae,Ye,Lr,Er){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(Ae,Ye,Lr,function(lr,Cr,Or){return _e(lr,Cr,Or)},function(lr){return(De.createDirectory||ge.createDirectory)(lr)},function(lr){return he(lr)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(lr){Er&&Er(lr.message)}}var Ve;function _e(Ae,Ye,Lr){if(!e.isWatchSet(z)||!ge.getModifiedTime){ge.writeFile(Ae,Ye,Lr);return}Ve||(Ve=new e.Map);var Er=Ie(Ye),lr=ge.getModifiedTime(Ae);if(lr){var Cr=Ve.get(Ae);if(Cr&&Cr.byteOrderMark===Lr&&Cr.hash===Er&&Cr.mtime.getTime()===lr.getTime())return}ge.writeFile(Ae,Ye,Lr);var Or=ge.getModifiedTime(Ae)||e.missingFileModifiedTime;Ve.set(Ae,{hash:Er,byteOrderMark:Lr,mtime:Or})}function Le(){return e.getDirectoryPath(e.normalizePath(ge.getExecutingFilePath()))}var qe=e.getNewLineCharacter(z,function(){return ge.newLine}),Xe=ge.realpath&&function(Ae){return ge.realpath(Ae)},De={getSourceFile:Ge,getDefaultLibLocation:Le,getDefaultLibFileName:function(Ae){return e.combinePaths(Le(),e.getDefaultLibFileName(Ae))},writeFile:ve,getCurrentDirectory:e.memoize(function(){return ge.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return ge.useCaseSensitiveFileNames},getCanonicalFileName:Me,getNewLine:function(){return qe},fileExists:function(Ae){return ge.fileExists(Ae)},readFile:function(Ae){return ge.readFile(Ae)},trace:function(Ae){return ge.write(Ae+qe)},directoryExists:function(Ae){return ge.directoryExists(Ae)},getEnvironmentVariable:function(Ae){return ge.getEnvironmentVariable?ge.getEnvironmentVariable(Ae):""},getDirectories:function(Ae){return ge.getDirectories(Ae)},realpath:Xe,readDirectory:function(Ae,Ye,Lr,Er,lr){return ge.readDirectory(Ae,Ye,Lr,Er,lr)},createDirectory:function(Ae){return ge.createDirectory(Ae)},createHash:e.maybeBind(ge,ge.createHash)};return De}e.createCompilerHostWorker=p;function N(z,Te,ge){var ke=z.readFile,Me=z.fileExists,Ie=z.directoryExists,Ge=z.createDirectory,he=z.writeFile,ve=new e.Map,Ve=new e.Map,_e=new e.Map,Le=new e.Map,qe=function(Ae){var Ye=Te(Ae),Lr=ve.get(Ye);return Lr!==void 0?Lr!==!1?Lr:void 0:Xe(Ye,Ae)},Xe=function(Ae,Ye){var Lr=ke.call(z,Ye);return ve.set(Ae,Lr!==void 0?Lr:!1),Lr};z.readFile=function(Ae){var Ye=Te(Ae),Lr=ve.get(Ye);return Lr!==void 0?Lr!==!1?Lr:void 0:!e.fileExtensionIs(Ae,".json")&&!e.isBuildInfoFile(Ae)?ke.call(z,Ae):Xe(Ye,Ae)};var De=ge?function(Ae,Ye,Lr,Er){var lr=Te(Ae),Cr=Le.get(lr);if(Cr)return Cr;var Or=ge(Ae,Ye,Lr,Er);return Or&&(e.isDeclarationFileName(Ae)||e.fileExtensionIs(Ae,".json"))&&Le.set(lr,Or),Or}:void 0;return z.fileExists=function(Ae){var Ye=Te(Ae),Lr=Ve.get(Ye);if(Lr!==void 0)return Lr;var Er=Me.call(z,Ae);return Ve.set(Ye,!!Er),Er},he&&(z.writeFile=function(Ae,Ye,Lr,Er,lr){var Cr=Te(Ae);Ve.delete(Cr);var Or=ve.get(Cr);if(Or!==void 0&&Or!==Ye)ve.delete(Cr),Le.delete(Cr);else if(De){var Ke=Le.get(Cr);Ke&&Ke.text!==Ye&&Le.delete(Cr)}he.call(z,Ae,Ye,Lr,Er,lr)}),Ie&&Ge&&(z.directoryExists=function(Ae){var Ye=Te(Ae),Lr=_e.get(Ye);if(Lr!==void 0)return Lr;var Er=Ie.call(z,Ae);return _e.set(Ye,!!Er),Er},z.createDirectory=function(Ae){var Ye=Te(Ae);_e.delete(Ye),Ge.call(z,Ae)}),{originalReadFile:ke,originalFileExists:Me,originalDirectoryExists:Ie,originalCreateDirectory:Ge,originalWriteFile:he,getSourceFileWithCache:De,readFileWithCache:qe}}e.changeCompilerHostLikeToUseCache=N;function H(z,Te,ge){var ke;return ke=e.addRange(ke,z.getConfigFileParsingDiagnostics()),ke=e.addRange(ke,z.getOptionsDiagnostics(ge)),ke=e.addRange(ke,z.getSyntacticDiagnostics(Te,ge)),ke=e.addRange(ke,z.getGlobalDiagnostics(ge)),ke=e.addRange(ke,z.getSemanticDiagnostics(Te,ge)),e.getEmitDeclarations(z.getCompilerOptions())&&(ke=e.addRange(ke,z.getDeclarationDiagnostics(Te,ge))),e.sortAndDeduplicateDiagnostics(ke||e.emptyArray)}e.getPreEmitDiagnostics=H;function h(z,Te){for(var ge="",ke=0,Me=z;ke<Me.length;ke++){var Ie=Me[ke];ge+=v(Ie,Te)}return ge}e.formatDiagnostics=h;function v(z,Te){var ge="".concat(e.diagnosticCategoryName(z)," TS").concat(z.code,": ").concat(K(z.messageText,Te.getNewLine())).concat(Te.getNewLine());if(z.file){var ke=e.getLineAndCharacterOfPosition(z.file,z.start),Me=ke.line,Ie=ke.character,Ge=z.file.fileName,he=e.convertToRelativePath(Ge,Te.getCurrentDirectory(),function(ve){return Te.getCanonicalFileName(ve)});return"".concat(he,"(").concat(Me+1,",").concat(Ie+1,"): ")+ge}return ge}e.formatDiagnostic=v;var A;(function(z){z.Grey="\x1B[90m",z.Red="\x1B[91m",z.Yellow="\x1B[93m",z.Blue="\x1B[94m",z.Cyan="\x1B[96m"})(A=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var q="\x1B[7m",ie=" ",b="\x1B[0m",P="...",S=" ",B=" ";function J(z){switch(z){case e.DiagnosticCategory.Error:return A.Red;case e.DiagnosticCategory.Warning:return A.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return A.Blue}}function k(z,Te){return Te+z+b}e.formatColorAndReset=k;function M(z,Te,ge,ke,Me,Ie){var Ge=e.getLineAndCharacterOfPosition(z,Te),he=Ge.line,ve=Ge.character,Ve=e.getLineAndCharacterOfPosition(z,Te+ge),_e=Ve.line,Le=Ve.character,qe=e.getLineAndCharacterOfPosition(z,z.text.length).line,Xe=_e-he>=4,De=(_e+1+"").length;Xe&&(De=Math.max(P.length,De));for(var Ae="",Ye=he;Ye<=_e;Ye++){Ae+=Ie.getNewLine(),Xe&&he+1<Ye&&Ye<_e-1&&(Ae+=ke+k(e.padLeft(P,De),q)+ie+Ie.getNewLine(),Ye=_e-1);var Lr=e.getPositionOfLineAndCharacter(z,Ye,0),Er=Ye<qe?e.getPositionOfLineAndCharacter(z,Ye+1,0):z.text.length,lr=z.text.slice(Lr,Er);if(lr=e.trimStringEnd(lr),lr=lr.replace(/\t/g," "),Ae+=ke+k(e.padLeft(Ye+1+"",De),q)+ie,Ae+=lr+Ie.getNewLine(),Ae+=ke+k(e.padLeft("",De),q)+ie,Ae+=Me,Ye===he){var Cr=Ye===_e?Le:void 0;Ae+=lr.slice(0,ve).replace(/\S/g," "),Ae+=lr.slice(ve,Cr).replace(/./g,"~")}else Ye===_e?Ae+=lr.slice(0,Le).replace(/./g,"~"):Ae+=lr.replace(/./g,"~");Ae+=b}return Ae}function x(z,Te,ge,ke){ke===void 0&&(ke=k);var Me=e.getLineAndCharacterOfPosition(z,Te),Ie=Me.line,Ge=Me.character,he=ge?e.convertToRelativePath(z.fileName,ge.getCurrentDirectory(),function(Ve){return ge.getCanonicalFileName(Ve)}):z.fileName,ve="";return ve+=ke(he,A.Cyan),ve+=":",ve+=ke("".concat(Ie+1),A.Yellow),ve+=":",ve+=ke("".concat(Ge+1),A.Yellow),ve}e.formatLocation=x;function w(z,Te){for(var ge="",ke=0,Me=z;ke<Me.length;ke++){var Ie=Me[ke];if(Ie.file){var Ge=Ie.file,he=Ie.start;ge+=x(Ge,he,Te),ge+=" - "}if(ge+=k(e.diagnosticCategoryName(Ie),J(Ie.category)),ge+=k(" TS".concat(Ie.code,": "),A.Grey),ge+=K(Ie.messageText,Te.getNewLine()),Ie.file&&(ge+=Te.getNewLine(),ge+=M(Ie.file,Ie.start,Ie.length,"",J(Ie.category),Te)),Ie.relatedInformation){ge+=Te.getNewLine();for(var ve=0,Ve=Ie.relatedInformation;ve<Ve.length;ve++){var _e=Ve[ve],Ge=_e.file,he=_e.start,Le=_e.length,qe=_e.messageText;Ge&&(ge+=Te.getNewLine(),ge+=S+x(Ge,he,Te),ge+=M(Ge,he,Le,B,A.Cyan,Te)),ge+=Te.getNewLine(),ge+=B+K(qe,Te.getNewLine())}}ge+=Te.getNewLine()}return ge}e.formatDiagnosticsWithColorAndContext=w;function K(z,Te,ge){if(ge===void 0&&(ge=0),e.isString(z))return z;if(z===void 0)return"";var ke="";if(ge){ke+=Te;for(var Me=0;Me<ge;Me++)ke+=" "}if(ke+=z.messageText,ge++,z.next)for(var Ie=0,Ge=z.next;Ie<Ge.length;Ie++){var he=Ge[Ie];ke+=K(he,Te,ge)}return ke}e.flattenDiagnosticMessageText=K;function Z(z,Te,ge,ke){if(z.length===0)return[];for(var Me=[],Ie=new e.Map,Ge=0,he=z;Ge<he.length;Ge++){var ve=he[Ge],Ve=void 0;Ie.has(ve)?Ve=Ie.get(ve):Ie.set(ve,Ve=ke(ve,Te,ge)),Me.push(Ve)}return Me}e.loadWithLocalCache=Z;function ne(z,Te){if(z.impliedNodeFormat!==void 0)return R(z,V(z,Te))}e.getModeForResolutionAtIndex=ne;function R(z,Te){var ge;if(z.impliedNodeFormat!==void 0){if(z.impliedNodeFormat!==e.ModuleKind.ESNext)return e.isImportCall(e.walkUpParenthesizedExpressions(Te.parent))?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;var ke=(ge=e.walkUpParenthesizedExpressions(Te.parent))===null||ge===void 0?void 0:ge.parent;return ke&&e.isImportEqualsDeclaration(ke)?e.ModuleKind.CommonJS:e.ModuleKind.ESNext}}e.getModeForUsageLocation=R;function Y(z,Te,ge,ke,Me){if(z.length===0)return[];for(var Ie=[],Ge=new e.Map,he=0,ve=0,Ve=z;ve<Ve.length;ve++){var _e=Ve[ve],Le=void 0,qe=ne(Te,he);he++;var Xe=qe!==void 0?"".concat(qe,"|").concat(_e):_e;Ge.has(Xe)?Le=Ge.get(Xe):Ge.set(Xe,Le=Me(_e,qe,ge,ke)),Ie.push(Le)}return Ie}e.loadWithModeAwareCache=Y;function U(z,Te){return $(void 0,z,function(ge,ke){return ge&&Te(ge,ke)})}e.forEachResolvedProjectReference=U;function $(z,Te,ge,ke){var Me;return Ie(z,Te,void 0);function Ie(Ge,he,ve){if(ke){var Ve=ke(Ge,ve);if(Ve)return Ve}return e.forEach(he,function(_e,Le){if(!(_e&&(Me==null?void 0:Me.has(_e.sourceFile.path)))){var qe=ge(_e,ve,Le);return qe||!_e?qe:((Me||(Me=new e.Set)).add(_e.sourceFile.path),Ie(_e.commandLine.projectReferences,_e.references,_e))}})}}e.inferredTypesContainingFile="__inferred type names__.ts";function T(z){switch(z==null?void 0:z.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}e.isReferencedFile=T;function I(z){return z.pos!==void 0}e.isReferenceFileLocation=I;function y(z,Te){var ge,ke,Me,Ie,Ge,he,ve,Ve=e.Debug.checkDefined(z(Te.file)),_e=Te.kind,Le=Te.index,qe,Xe,De;switch(_e){case e.FileIncludeKind.Import:var Ae=V(Ve,Le);if(De=(Ge=(Ie=Ve.resolvedModules)===null||Ie===void 0?void 0:Ie.get(Ae.text,ne(Ve,Le)))===null||Ge===void 0?void 0:Ge.packageId,Ae.pos===-1)return{file:Ve,packageId:De,text:Ae.text};qe=e.skipTrivia(Ve.text,Ae.pos),Xe=Ae.end;break;case e.FileIncludeKind.ReferenceFile:ge=Ve.referencedFiles[Le],qe=ge.pos,Xe=ge.end;break;case e.FileIncludeKind.TypeReferenceDirective:ke=Ve.typeReferenceDirectives[Le],qe=ke.pos,Xe=ke.end,De=(ve=(he=Ve.resolvedTypeReferenceDirectiveNames)===null||he===void 0?void 0:he.get(e.toFileNameLowerCase(Ve.typeReferenceDirectives[Le].fileName),Ve.impliedNodeFormat))===null||ve===void 0?void 0:ve.packageId;break;case e.FileIncludeKind.LibReferenceDirective:Me=Ve.libReferenceDirectives[Le],qe=Me.pos,Xe=Me.end;break;default:return e.Debug.assertNever(_e)}return{file:Ve,pos:qe,end:Xe,packageId:De}}e.getReferencedFileLocation=y;function D(z,Te,ge,ke,Me,Ie,Ge,he,ve){if(!z||(Ge==null?void 0:Ge())||!e.arrayIsEqualTo(z.getRootFileNames(),Te))return!1;var Ve;if(!e.arrayIsEqualTo(z.getProjectReferences(),ve,Xe)||z.getSourceFiles().some(Le)||z.getMissingFilePaths().some(Me))return!1;var _e=z.getCompilerOptions();if(!e.compareDataObjects(_e,ge))return!1;if(_e.configFile&&ge.configFile)return _e.configFile.text===ge.configFile.text;return!0;function Le(Ae){return!qe(Ae)||Ie(Ae.path)}function qe(Ae){return Ae.version===ke(Ae.resolvedPath,Ae.fileName)}function Xe(Ae,Ye,Lr){return e.projectReferenceIsEqualTo(Ae,Ye)&&De(z.getResolvedProjectReferences()[Lr],Ae)}function De(Ae,Ye){if(Ae){if(e.contains(Ve,Ae))return!0;var Lr=Ce(Ye),Er=he(Lr);return!Er||Ae.commandLine.options.configFile!==Er.options.configFile||!e.arrayIsEqualTo(Ae.commandLine.fileNames,Er.fileNames)?!1:((Ve||(Ve=[])).push(Ae),!e.forEach(Ae.references,function(Cr,Or){return!De(Cr,Ae.commandLine.projectReferences[Or])}))}var lr=Ce(Ye);return!he(lr)}}e.isProgramUptoDate=D;function C(z){return z.options.configFile?Gt(Gt([],z.options.configFile.parseDiagnostics,!0),z.errors,!0):z.errors}e.getConfigFileParsingDiagnostics=C;function m(z,Te,ge,ke){switch(e.getEmitModuleResolutionKind(ke)){case e.ModuleResolutionKind.Node12:case e.ModuleResolutionKind.NodeNext:return e.fileExtensionIsOneOf(z,[".d.mts",".mts",".mjs"])?e.ModuleKind.ESNext:e.fileExtensionIsOneOf(z,[".d.cts",".cts",".cjs"])?e.ModuleKind.CommonJS:e.fileExtensionIsOneOf(z,[".d.ts",".ts",".tsx",".js",".jsx"])?Me():void 0;default:return}function Me(){var Ie=e.getPackageScopeForPath(z,Te,ge,ke);return(Ie==null?void 0:Ie.packageJsonContent.type)==="module"?e.ModuleKind.ESNext:e.ModuleKind.CommonJS}}e.getImpliedNodeFormatForFile=m;function u(z,Te){return z?e.optionsHaveChanges(z.getCompilerOptions(),Te,e.sourceFileAffectingCompilerOptions):!1}function g(z,Te,ge,ke,Me){return{rootNames:z,options:Te,host:ge,oldProgram:ke,configFileParsingDiagnostics:Me}}function F(z,Te,ge,ke,Me){var Ie,Ge,he,ve,Ve=e.isArray(z)?g(z,Te,ge,ke,Me):z,_e=Ve.rootNames,Le=Ve.options,qe=Ve.configFileParsingDiagnostics,Xe=Ve.projectReferences,De=Ve.oldProgram,Ae,Ye,Lr,Er,lr,Cr,Or,Ke,Pe=new e.Map,Hr=e.createMultiMap(),ur={},vr={},de=new e.Map,Fe,$e=typeof Le.maxNodeModuleJsDepth=="number"?Le.maxNodeModuleJsDepth:0,Dr=0,Fr=new e.Map,He=new e.Map;e.tracing===null||e.tracing===void 0||e.tracing.push("program","createProgram",{configFilePath:Le.configFilePath,rootDir:Le.rootDir},!0),e.performance.mark("beforeProgram");var pr=Ve.host||a(Le),Jr=j(pr),ze=Le.noLib,Ar=e.memoize(function(){return pr.getDefaultLibFileName(Le)}),Yr=pr.getDefaultLibLocation?pr.getDefaultLibLocation():e.getDirectoryPath(Ar()),lt=e.createDiagnosticCollection(),tt=pr.getCurrentDirectory(),Rt=e.getSupportedExtensions(Le),cn=e.getSupportedExtensionsWithJsonIfResolveJsonModule(Le,Rt),bn=new e.Map,In,zn,ir,Rr,sr=pr.hasInvalidatedResolution||e.returnFalse;if(pr.resolveModuleNames)Rr=function(Pr,$r,Lt,Kt,pn){return pr.resolveModuleNames(e.Debug.checkEachDefined(Pr),Lt,Kt,pn,Le,$r).map(function(fn){if(!fn||fn.extension!==void 0)return fn;var kn=e.clone(fn);return kn.extension=e.extensionFromPath(fn.resolvedFileName),kn})},zn=(Ie=pr.getModuleResolutionCache)===null||Ie===void 0?void 0:Ie.call(pr);else{zn=e.createModuleResolutionCache(tt,vn,Le);var ye=function(Pr,$r,Lt,Kt){return e.resolveModuleName(Pr,Lt,Le,pr,zn,Kt,$r).resolvedModule};Rr=function(Pr,$r,Lt,Kt,pn){return Y(e.Debug.checkEachDefined(Pr),$r,Lt,pn,ye)}}var or;if(pr.resolveTypeReferenceDirectives)or=function(Pr,$r,Lt){return pr.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(Pr),$r,Lt,Le)};else{ir=e.createTypeReferenceDirectiveResolutionCache(tt,vn,void 0,zn==null?void 0:zn.getPackageJsonInfoCache());var fe=function(Pr,$r,Lt){return e.resolveTypeReferenceDirective(Pr,$r,Le,pr,Lt,ir).resolvedTypeReferenceDirective};or=function(Pr,$r,Lt){return Z(e.Debug.checkEachDefined(Pr),$r,Lt,fe)}}var je=new e.Map,Ee=new e.Map,We=e.createMultiMap(),ee=!1,Ne=new e.Map,me,Ze=pr.useCaseSensitiveFileNames()?new e.Map:void 0,xr,fr,dr,et,yt=!!(!((Ge=pr.useSourceOfProjectReferenceRedirect)===null||Ge===void 0)&&Ge.call(pr))&&!Le.disableSourceOfProjectReferenceRedirect,Wr=te({compilerHost:pr,getSymlinkCache:Nc,useSourceOfProjectReferenceRedirect:yt,toPath:pt,getResolvedProjectReferences:Ci,getSourceOfProjectReferenceRedirect:ko,forEachResolvedProjectReference:Ro}),tr=Wr.onProgramCreateComplete,Ir=Wr.fileExists,kr=Wr.directoryExists,zr=pr.readFile.bind(pr);e.tracing===null||e.tracing===void 0||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!De});var gt=u(De,Le);e.tracing===null||e.tracing===void 0||e.tracing.pop();var vt;if(e.tracing===null||e.tracing===void 0||e.tracing.push("program","tryReuseStructureFromOldProgram",{}),vt=Cn(),e.tracing===null||e.tracing===void 0||e.tracing.pop(),vt!==2){Ae=[],Ye=[],Xe&&(xr||(xr=Xe.map(Ia)),_e.length&&(xr==null||xr.forEach(function(Pr,$r){if(!!Pr){var Lt=e.outFile(Pr.commandLine.options);if(yt){if(Lt||e.getEmitModuleKind(Pr.commandLine.options)===e.ModuleKind.None)for(var Kt=0,pn=Pr.commandLine.fileNames;Kt<pn.length;Kt++){var fn=pn[Kt];cs(fn,{kind:e.FileIncludeKind.SourceFromProjectReference,index:$r})}}else if(Lt)cs(e.changeExtension(Lt,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:$r});else if(e.getEmitModuleKind(Pr.commandLine.options)===e.ModuleKind.None)for(var kn=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(Pr.commandLine,!pr.useCaseSensitiveFileNames())}),Kn=0,Fa=Pr.commandLine.fileNames;Kn<Fa.length;Kn++){var fn=Fa[Kn];!e.fileExtensionIs(fn,".d.ts")&&!e.fileExtensionIs(fn,".json")&&cs(e.getOutputDeclarationFileName(fn,Pr.commandLine,!pr.useCaseSensitiveFileNames(),kn),{kind:e.FileIncludeKind.OutputFromProjectReference,index:$r})}}}))),e.tracing===null||e.tracing===void 0||e.tracing.push("program","processRootFiles",{count:_e.length}),e.forEach(_e,function(Pr,$r){return Dt(Pr,!1,!1,{kind:e.FileIncludeKind.RootFile,index:$r})}),e.tracing===null||e.tracing===void 0||e.tracing.pop();var ut=_e.length?e.getAutomaticTypeDirectiveNames(Le,pr):e.emptyArray;if(ut.length){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferences",{count:ut.length});for(var ht=Le.configFilePath?e.getDirectoryPath(Le.configFilePath):pr.getCurrentDirectory(),xt=e.combinePaths(ht,e.inferredTypesContainingFile),wt=St(ut,xt),Qt=0;Qt<ut.length;Qt++)ft(ut[Qt],wt[Qt],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:ut[Qt],packageId:(he=wt[Qt])===null||he===void 0?void 0:he.packageId});e.tracing===null||e.tracing===void 0||e.tracing.pop()}if(_e.length&&!ze){var mt=Ar();!Le.lib&&mt?Dt(mt,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(Le.lib,function(Pr,$r){Dt(Re(Pr),!0,!1,{kind:e.FileIncludeKind.LibFile,index:$r})})}me=e.arrayFrom(e.mapDefinedIterator(Ne.entries(),function(Pr){var $r=Pr[0],Lt=Pr[1];return Lt===void 0?$r:void 0})),Lr=e.stableSort(Ae,Pn).concat(Ye),Ae=void 0,Ye=void 0}if(e.Debug.assert(!!me),De&&pr.onReleaseOldSourceFile){for(var rn=De.getSourceFiles(),sa=0,ba=rn;sa<ba.length;sa++){var Jn=ba[sa],na=lo(Jn.resolvedPath);(gt||!na||Jn.resolvedPath===Jn.path&&na.resolvedPath!==Jn.path)&&pr.onReleaseOldSourceFile(Jn,De.getCompilerOptions(),!!lo(Jn.path))}pr.getParsedCommandLine||De.forEachResolvedProjectReference(function(Pr){as(Pr.sourceFile.path)||pr.onReleaseOldSourceFile(Pr.sourceFile,De.getCompilerOptions(),!1)})}De&&pr.onReleaseParsedCommandLine&&$(De.getProjectReferences(),De.getResolvedProjectReferences(),function(Pr,$r,Lt){var Kt=($r==null?void 0:$r.commandLine.projectReferences[Lt])||De.getProjectReferences()[Lt],pn=Ce(Kt);fr!=null&&fr.has(pt(pn))||pr.onReleaseParsedCommandLine(pn,Pr,De.getCompilerOptions())}),ir=void 0,De=void 0;var Wn={getRootFileNames:function(){return _e},getSourceFile:No,getSourceFileByPath:lo,getSourceFiles:function(){return Lr},getMissingFilePaths:function(){return me},getModuleResolutionCache:function(){return zn},getFilesByNameMap:function(){return Ne},getCompilerOptions:function(){return Le},getSyntacticDiagnostics:Ha,getOptionsDiagnostics:Be,getGlobalDiagnostics:hr,getSemanticDiagnostics:Yo,getCachedSemanticDiagnostics:co,getSuggestionDiagnostics:dt,getDeclarationDiagnostics:Zi,getBindAndCheckDiagnostics:za,getProgramDiagnostics:hi,getTypeChecker:io,getClassifiableNames:Pt,getDiagnosticsProducingTypeChecker:Ka,getCommonSourceDirectory:_t,emit:ji,getCurrentDirectory:function(){return tt},getNodeCount:function(){return Ka().getNodeCount()},getIdentifierCount:function(){return Ka().getIdentifierCount()},getSymbolCount:function(){return Ka().getSymbolCount()},getTypeCount:function(){return Ka().getTypeCount()},getInstantiationCount:function(){return Ka().getInstantiationCount()},getRelationCacheSizes:function(){return Ka().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return Fe},getResolvedTypeReferenceDirectives:function(){return de},isSourceFileFromExternalLibrary:yi,isSourceFileDefaultLibrary:ro,dropDiagnosticsProducingTypeChecker:Pi,getSourceFileFromReference:$a,getLibFileFromReference:Di,sourceFileToPackageName:Ee,redirectTargetsMap:We,usesUriStyleNodeCoreModules:ee,isEmittedFile:uu,getConfigFileParsingDiagnostics:qr,getResolvedModuleWithFailedLookupLocationsFromCache:oa,getProjectReferences:_i,getResolvedProjectReferences:Ci,getProjectReferenceRedirect:ka,getResolvedProjectReferenceToRedirect:Gi,getResolvedProjectReferenceByPath:as,forEachResolvedProjectReference:Ro,isSourceOfProjectReferenceRedirect:es,emitBuildInfo:Ra,fileExists:Ir,readFile:zr,directoryExists:kr,getSymlinkCache:Nc,realpath:(ve=pr.realpath)===null||ve===void 0?void 0:ve.bind(pr),useCaseSensitiveFileNames:function(){return pr.useCaseSensitiveFileNames()},getFileIncludeReasons:function(){return Hr},structureIsReused:vt};return tr(),Fe==null||Fe.forEach(function(Pr){switch(Pr.kind){case 1:return lt.add(Wo(Pr.file&&lo(Pr.file),Pr.fileProcessingReason,Pr.diagnostic,Pr.args||e.emptyArray));case 0:var $r=y(lo,Pr.reason),Lt=$r.file,Kt=$r.pos,pn=$r.end;return lt.add(e.createFileDiagnostic.apply(void 0,Gt([Lt,e.Debug.checkDefined(Kt),e.Debug.checkDefined(pn)-Kt,Pr.diagnostic],Pr.args||e.emptyArray,!1)));default:e.Debug.assertNever(Pr)}}),oo(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Wn;function en(Pr,$r,Lt){if(!Pr.length)return e.emptyArray;var Kt=e.getNormalizedAbsolutePath($r.originalFileName,tt),pn=Ut($r);e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:Kt}),e.performance.mark("beforeResolveModule");var fn=Rr(Pr,$r,Kt,Lt,pn);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),fn}function St(Pr,$r){if(!Pr.length)return[];var Lt=e.isString($r)?$r:e.getNormalizedAbsolutePath($r.originalFileName,tt),Kt=e.isString($r)?void 0:Ut($r);e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Lt}),e.performance.mark("beforeResolveTypeReference");var pn=or(Pr,Lt,Kt);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),pn}function Ut(Pr){var $r=Gi(Pr.originalFileName);if($r||!e.fileExtensionIsOneOf(Pr.originalFileName,[".d.ts",".d.cts",".d.mts"]))return $r;var Lt=qt(Pr.path);if(Lt)return Lt;if(!(!pr.realpath||!Le.preserveSymlinks||!e.stringContains(Pr.originalFileName,e.nodeModulesPathPart))){var Kt=pt(pr.realpath(Pr.originalFileName));return Kt===Pr.path?void 0:qt(Kt)}}function qt(Pr){var $r=ko(Pr);if(e.isString($r))return Gi($r);if(!!$r)return Ro(function(Lt){var Kt=e.outFile(Lt.commandLine.options);if(!!Kt)return pt(Kt)===Pr?Lt:void 0})}function Pn(Pr,$r){return e.compareValues(dn(Pr),dn($r))}function dn(Pr){if(e.containsPath(Yr,Pr.fileName,!1)){var $r=e.getBaseFileName(Pr.fileName);if($r==="lib.d.ts"||$r==="lib.es6.d.ts")return 0;var Lt=e.removeSuffix(e.removePrefix($r,"lib."),".d.ts"),Kt=e.libs.indexOf(Lt);if(Kt!==-1)return Kt+1}return e.libs.length+2}function oa(Pr,$r,Lt){return zn&&e.resolveModuleNameFromCache(Pr,$r,zn,Lt)}function pt(Pr){return e.toPath(Pr,tt,vn)}function _t(){if(lr===void 0){var Pr=e.filter(Lr,function($r){return e.sourceFileMayBeEmitted($r,Wn)});lr=e.getCommonSourceDirectory(Le,function(){return e.mapDefined(Pr,function($r){return $r.isDeclarationFile?void 0:$r.fileName})},tt,vn,function($r){return gi(Pr,$r)})}return lr}function Pt(){var Pr;if(!Ke){io(),Ke=new e.Set;for(var $r=0,Lt=Lr;$r<Lt.length;$r++){var Kt=Lt[$r];(Pr=Kt.classifiableNames)===null||Pr===void 0||Pr.forEach(function(pn){return Ke.add(pn)})}}return Ke}function It(Pr,$r){if(vt===0&&!$r.ambientModuleNames.length)return en(Pr,$r,void 0);var Lt=De&&De.getSourceFile($r.fileName);if(Lt!==$r&&$r.resolvedModules){for(var Kt=[],pn=0,fn=0,kn=Pr;fn<kn.length;fn++){var Kn=kn[fn],Fa=$r.resolvedModules.get(Kn,ne($r,pn));pn++,Kt.push(Fa)}return Kt}for(var ua,le,rr,br={},pn=0;pn<Pr.length;pn++){var Kn=Pr[pn];if($r===Lt&&!sr(Lt.path)){var ct=e.getResolvedModule(Lt,Kn,ne(Lt,pn));if(ct){e.isTraceEnabled(Le,pr)&&e.trace(pr,ct.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,Kn,e.getNormalizedAbsolutePath($r.originalFileName,tt),ct.resolvedFileName,ct.packageId&&e.packageIdToString(ct.packageId)),(le||(le=new Array(Pr.length)))[pn]=ct,(rr||(rr=[])).push(Kn);continue}}var jt=!1;e.contains($r.ambientModuleNames,Kn)?(jt=!0,e.isTraceEnabled(Le,pr)&&e.trace(pr,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,Kn,e.getNormalizedAbsolutePath($r.originalFileName,tt))):jt=ri(Kn,pn),jt?(le||(le=new Array(Pr.length)))[pn]=br:(ua||(ua=[])).push(Kn)}var yn=ua&&ua.length?en(ua,$r,rr):e.emptyArray;if(!le)return e.Debug.assert(yn.length===Pr.length),yn;for(var ha=0,pn=0;pn<le.length;pn++)le[pn]?le[pn]===br&&(le[pn]=void 0):(le[pn]=yn[ha],ha++);return e.Debug.assert(ha===yn.length),le;function ri(Ta,Ya){if(Ya>=e.length(Lt==null?void 0:Lt.imports)+e.length(Lt==null?void 0:Lt.moduleAugmentations))return!1;var fi=e.getResolvedModule(Lt,Ta,Lt&&ne(Lt,Ya)),ci=fi&&De.getSourceFile(fi.resolvedFileName);if(fi&&ci)return!1;var Si=Pe.get(Ta);return Si?(e.isTraceEnabled(Le,pr)&&e.trace(pr,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,Ta,Si),!0):!1}}function rt(){return!$(De.getProjectReferences(),De.getResolvedProjectReferences(),function(Pr,$r,Lt){var Kt=($r?$r.commandLine.projectReferences:Xe)[Lt],pn=Ia(Kt);return Pr?!pn||pn.sourceFile!==Pr.sourceFile||!e.arrayIsEqualTo(Pr.commandLine.fileNames,pn.commandLine.fileNames):pn!==void 0},function(Pr,$r){var Lt=$r?as($r.sourceFile.path).commandLine.projectReferences:Xe;return!e.arrayIsEqualTo(Pr,Lt,e.projectReferenceIsEqualTo)})}function Cn(){var Pr;if(!De)return 0;var $r=De.getCompilerOptions();if(e.changesAffectModuleResolution($r,Le))return 0;var Lt=De.getRootFileNames();if(!e.arrayIsEqualTo(Lt,_e)||!rt())return 0;Xe&&(xr=Xe.map(Ia));var Kt=[],pn=[];if(vt=2,De.getMissingFilePaths().some(function(ol){return pr.fileExists(ol)}))return 0;var fn=De.getSourceFiles(),kn;(function(ol){ol[ol.Exists=0]="Exists",ol[ol.Modified=1]="Modified"})(kn||(kn={}));for(var Kn=new e.Map,Fa=0,ua=fn;Fa<ua.length;Fa++){var le=ua[Fa],rr=pr.getSourceFileByPath?pr.getSourceFileByPath(le.fileName,le.resolvedPath,e.getEmitScriptTarget(Le),void 0,gt):pr.getSourceFile(le.fileName,e.getEmitScriptTarget(Le),void 0,gt);if(!rr)return 0;e.Debug.assert(!rr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var br=void 0;if(le.redirectInfo){if(rr!==le.redirectInfo.unredirected)return 0;br=!1,rr=le}else if(De.redirectTargetsMap.has(le.path)){if(rr!==le)return 0;br=!1}else br=rr!==le;rr.path=le.path,rr.originalFileName=le.originalFileName,rr.resolvedPath=le.resolvedPath,rr.fileName=le.fileName;var ct=De.sourceFileToPackageName.get(le.path);if(ct!==void 0){var jt=Kn.get(ct),yn=br?1:0;if(jt!==void 0&&yn===1||jt===1)return 0;Kn.set(ct,yn)}br?(e.arrayIsEqualTo(le.libReferenceDirectives,rr.libReferenceDirectives,Jt)||(vt=1),le.hasNoDefaultLib!==rr.hasNoDefaultLib&&(vt=1),e.arrayIsEqualTo(le.referencedFiles,rr.referencedFiles,Jt)||(vt=1),xa(rr),e.arrayIsEqualTo(le.imports,rr.imports,Sn)||(vt=1),e.arrayIsEqualTo(le.moduleAugmentations,rr.moduleAugmentations,Sn)||(vt=1),(le.flags&3145728)!==(rr.flags&3145728)&&(vt=1),e.arrayIsEqualTo(le.typeReferenceDirectives,rr.typeReferenceDirectives,Jt)||(vt=1),pn.push({oldFile:le,newFile:rr})):sr(le.path)&&(vt=1,pn.push({oldFile:le,newFile:rr})),Kt.push(rr)}if(vt!==2)return vt;for(var ha=pn.map(function(ol){return ol.oldFile}),ri=0,Ta=fn;ri<Ta.length;ri++){var Ya=Ta[ri];if(!e.contains(ha,Ya))for(var fi=0,ci=Ya.ambientModuleNames;fi<ci.length;fi++){var Si=ci[fi];Pe.set(Si,Ya.fileName)}}for(var Do=0,bo=pn;Do<bo.length;Do++){var Ns=bo[Do],le=Ns.oldFile,rr=Ns.newFile,Ys=Q(rr),Nu=It(Ys,rr),gf=e.hasChangesInResolutions(Ys,Nu,le.resolvedModules,le,e.moduleResolutionIsEqualTo);gf?(vt=1,rr.resolvedModules=e.zipToModeAwareCache(rr,Ys,Nu)):rr.resolvedModules=le.resolvedModules;var Zl=e.map(rr.typeReferenceDirectives,function(vf){return e.toFileNameLowerCase(vf.fileName)}),jc=St(Zl,rr),Mr=e.hasChangesInResolutions(Zl,jc,le.resolvedTypeReferenceDirectiveNames,le,e.typeDirectiveIsEqualTo);Mr?(vt=1,rr.resolvedTypeReferenceDirectiveNames=e.zipToModeAwareCache(rr,Zl,jc)):rr.resolvedTypeReferenceDirectiveNames=le.resolvedTypeReferenceDirectiveNames}if(vt!==2)return vt;if(e.changesAffectingProgramStructure($r,Le)||((Pr=pr.hasChangedAutomaticTypeDirectiveNames)===null||Pr===void 0?void 0:Pr.call(pr)))return 1;me=De.getMissingFilePaths(),e.Debug.assert(Kt.length===De.getSourceFiles().length);for(var $l=0,pc=Kt;$l<pc.length;$l++){var rr=pc[$l];Ne.set(rr.path,rr)}var ku=De.getFilesByNameMap();return ku.forEach(function(ol,kc){if(!ol){Ne.set(kc,ol);return}if(ol.path===kc){De.isSourceFileFromExternalLibrary(ol)&&He.set(ol.path,!0);return}Ne.set(kc,Ne.get(ol.path))}),Lr=Kt,Hr=De.getFileIncludeReasons(),Fe=De.getFileProcessingDiagnostics(),de=De.getResolvedTypeReferenceDirectives(),Ee=De.sourceFileToPackageName,We=De.redirectTargetsMap,ee=De.usesUriStyleNodeCoreModules,2}function Qn(Pr){return{getPrependNodes:va,getCanonicalFileName:vn,getCommonSourceDirectory:Wn.getCommonSourceDirectory,getCompilerOptions:Wn.getCompilerOptions,getCurrentDirectory:function(){return tt},getNewLine:function(){return pr.getNewLine()},getSourceFile:Wn.getSourceFile,getSourceFileByPath:Wn.getSourceFileByPath,getSourceFiles:Wn.getSourceFiles,getLibFileFromReference:Wn.getLibFileFromReference,isSourceFileFromExternalLibrary:yi,getResolvedProjectReferenceToRedirect:Gi,getProjectReferenceRedirect:ka,isSourceOfProjectReferenceRedirect:es,getSymlinkCache:Nc,writeFile:Pr||function($r,Lt,Kt,pn,fn){return pr.writeFile($r,Lt,Kt,pn,fn)},isEmitBlocked:Hi,readFile:function($r){return pr.readFile($r)},fileExists:function($r){var Lt=pt($r);return lo(Lt)?!0:e.contains(me,Lt)?!1:pr.fileExists($r)},useCaseSensitiveFileNames:function(){return pr.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return Wn.getProgramBuildInfo&&Wn.getProgramBuildInfo()},getSourceFileFromReference:function($r,Lt){return Wn.getSourceFileFromReference($r,Lt)},redirectTargetsMap:We,getFileIncludeReasons:Wn.getFileIncludeReasons}}function Ra(Pr){e.Debug.assert(!e.outFile(Le)),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var $r=e.emitFiles(e.notImplementedResolver,Qn(Pr),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(),$r}function Ci(){return xr}function _i(){return Xe}function va(){return Se(Xe,function(Pr,$r){var Lt;return(Lt=xr[$r])===null||Lt===void 0?void 0:Lt.commandLine},function(Pr){var $r=pt(Pr),Lt=lo($r);return Lt?Lt.text:Ne.has($r)?void 0:pr.readFile($r)})}function yi(Pr){return!!He.get(Pr.path)}function ro(Pr){if(Pr.hasNoDefaultLib)return!0;if(!Le.noLib)return!1;var $r=pr.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return Le.lib?e.some(Le.lib,function(Lt){return $r(Pr.fileName,Re(Lt))}):$r(Pr.fileName,Ar())}function Ka(){return Cr||(Cr=e.createTypeChecker(Wn,!0))}function Pi(){Cr=void 0}function io(){return Or||(Or=e.createTypeChecker(Wn,!1))}function ji(Pr,$r,Lt,Kt,pn,fn){e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emit",{path:Pr==null?void 0:Pr.path},!0);var kn=Mo(function(){return to(Wn,Pr,$r,Lt,Kt,pn,fn)});return e.tracing===null||e.tracing===void 0||e.tracing.pop(),kn}function Hi(Pr){return bn.has(pt(Pr))}function to(Pr,$r,Lt,Kt,pn,fn,kn){if(!kn){var Kn=ue(Pr,$r,Lt,Kt);if(Kn)return Kn}var Fa=Ka().getEmitResolver(e.outFile(Le)?void 0:$r,Kt);e.performance.mark("beforeEmit");var ua=e.emitFiles(Fa,Qn(Lt),$r,e.getTransformers(Le,fn,pn),pn,!1,kn);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),ua}function No(Pr){return lo(pt(Pr))}function lo(Pr){return Ne.get(Pr)||void 0}function Lo(Pr,$r,Lt){return Pr?$r(Pr,Lt):e.sortAndDeduplicateDiagnostics(e.flatMap(Wn.getSourceFiles(),function(Kt){return Lt&&Lt.throwIfCancellationRequested(),$r(Kt,Lt)}))}function Ha(Pr,$r){return Lo(Pr,Po,$r)}function Yo(Pr,$r){return Lo(Pr,Fo,$r)}function co(Pr){var $r;return Pr?($r=ur.perFile)===null||$r===void 0?void 0:$r.get(Pr.path):ur.allDiagnostics}function za(Pr,$r){return zo(Pr,$r)}function hi(Pr){var $r;if(e.skipTypeChecking(Pr,Le,Wn))return e.emptyArray;var Lt=lt.getDiagnostics(Pr.fileName);return!(($r=Pr.commentDirectives)===null||$r===void 0)&&$r.length?yr(Pr,Pr.commentDirectives,Lt).diagnostics:Lt}function Zi(Pr,$r){var Lt=Wn.getCompilerOptions();return!Pr||e.outFile(Lt)?Oe(Pr,$r):Lo(Pr,se,$r)}function Po(Pr){return e.isSourceFileJS(Pr)?(Pr.additionalSyntacticDiagnostics||(Pr.additionalSyntacticDiagnostics=Un(Pr)),e.concatenate(Pr.additionalSyntacticDiagnostics,Pr.parseDiagnostics)):Pr.parseDiagnostics}function Mo(Pr){try{return Pr()}catch($r){throw $r instanceof e.OperationCanceledException&&(Or=void 0,Cr=void 0),$r}}function Fo(Pr,$r){return e.concatenate(X(zo(Pr,$r),Le),hi(Pr))}function zo(Pr,$r){return mr(Pr,$r,ur,Es)}function Es(Pr,$r){return Mo(function(){if(e.skipTypeChecking(Pr,Le,Wn))return e.emptyArray;var Lt=Ka();e.Debug.assert(!!Pr.bindDiagnostics);var Kt=e.isCheckJsEnabledForFile(Pr,Le),pn=!!Pr.checkJsDirective&&Pr.checkJsDirective.enabled===!1,fn=!pn&&(Pr.scriptKind===3||Pr.scriptKind===4||Pr.scriptKind===5||Kt||Pr.scriptKind===7),kn=fn?Pr.bindDiagnostics:e.emptyArray,Kn=fn?Lt.getDiagnostics(Pr,$r):e.emptyArray;return Cs(Pr,fn,kn,Kn,Kt?Pr.jsDocDiagnostics:void 0)})}function Cs(Pr,$r){for(var Lt,Kt=[],pn=2;pn<arguments.length;pn++)Kt[pn-2]=arguments[pn];var fn=e.flatten(Kt);if(!$r||!(!((Lt=Pr.commentDirectives)===null||Lt===void 0)&&Lt.length))return fn;for(var kn=yr(Pr,Pr.commentDirectives,fn),Kn=kn.diagnostics,Fa=kn.directives,ua=0,le=Fa.getUnusedExpectations();ua<le.length;ua++){var rr=le[ua];Kn.push(e.createDiagnosticForRange(Pr,rr.range,e.Diagnostics.Unused_ts_expect_error_directive))}return Kn}function yr(Pr,$r,Lt){var Kt=e.createCommentDirectivesMap(Pr,$r),pn=Lt.filter(function(fn){return tn(fn,Kt)===-1});return{diagnostics:pn,directives:Kt}}function dt(Pr,$r){return Mo(function(){return Ka().getSuggestionDiagnostics(Pr,$r)})}function tn(Pr,$r){var Lt=Pr.file,Kt=Pr.start;if(!Lt)return-1;for(var pn=e.getLineStarts(Lt),fn=e.computeLineAndCharacterOfPosition(pn,Kt).line-1;fn>=0;){if($r.markUsed(fn))return fn;var kn=Lt.text.slice(pn[fn],pn[fn+1]).trim();if(kn!==""&&!/^(\s*)\/\/(.*)$/.test(kn))return-1;fn--}return-1}function Un(Pr){return Mo(function(){var $r=[];return Lt(Pr,Pr),e.forEachChildRecursively(Pr,Lt,Kt),$r;function Lt(Kn,Fa){switch(Fa.kind){case 163:case 166:case 168:if(Fa.questionToken===Kn)return $r.push(kn(Kn,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 167:case 170:case 171:case 172:case 212:case 255:case 213:case 253:if(Fa.type===Kn)return $r.push(kn(Kn,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Kn.kind){case 266:if(Kn.isTypeOnly)return $r.push(kn(Fa,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 271:if(Kn.isTypeOnly)return $r.push(kn(Kn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 264:return $r.push(kn(Kn,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 270:if(Kn.isExportEquals)return $r.push(kn(Kn,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 290:var ua=Kn;if(ua.token===117)return $r.push(kn(Kn,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 257:var le=e.tokenToString(118);return e.Debug.assertIsDefined(le),$r.push(kn(Kn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,le)),"skip";case 260:var rr=Kn.flags&16?e.tokenToString(142):e.tokenToString(141);return e.Debug.assertIsDefined(rr),$r.push(kn(Kn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,rr)),"skip";case 258:return $r.push(kn(Kn,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 259:var br=e.Debug.checkDefined(e.tokenToString(92));return $r.push(kn(Kn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,br)),"skip";case 229:return $r.push(kn(Kn,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 228:return $r.push(kn(Kn.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 210:e.Debug.fail()}}function Kt(Kn,Fa){switch(Fa.decorators===Kn&&!Le.experimentalDecorators&&$r.push(kn(Fa,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)),Fa.kind){case 256:case 225:case 168:case 170:case 171:case 172:case 212:case 255:case 213:if(Kn===Fa.typeParameters)return $r.push(fn(Kn,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 236:if(Kn===Fa.modifiers)return pn(Fa.modifiers,Fa.kind===236),"skip";break;case 166:if(Kn===Fa.modifiers){for(var ua=0,le=Kn;ua<le.length;ua++){var rr=le[ua];rr.kind!==124&&$r.push(kn(rr,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(rr.kind)))}return"skip"}break;case 163:if(Kn===Fa.modifiers)return $r.push(fn(Kn,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 207:case 208:case 227:case 278:case 279:case 209:if(Kn===Fa.typeArguments)return $r.push(fn(Kn,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function pn(Kn,Fa){for(var ua=0,le=Kn;ua<le.length;ua++){var rr=le[ua];switch(rr.kind){case 85:if(Fa)continue;case 123:case 121:case 122:case 144:case 135:case 126:case 158:$r.push(kn(rr,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(rr.kind)));break;case 124:case 93:case 88:}}}function fn(Kn,Fa,ua,le,rr){var br=Kn.pos;return e.createFileDiagnostic(Pr,br,Kn.end-br,Fa,ua,le,rr)}function kn(Kn,Fa,ua,le,rr){return e.createDiagnosticForNodeInSourceFile(Pr,Kn,Fa,ua,le,rr)}})}function Oe(Pr,$r){return mr(Pr,$r,vr,oe)}function oe(Pr,$r){return Mo(function(){var Lt=Ka().getEmitResolver(Pr,$r);return e.getDeclarationDiagnostics(Qn(e.noop),Lt,Pr)||e.emptyArray})}function mr(Pr,$r,Lt,Kt){var pn,fn=Pr?(pn=Lt.perFile)===null||pn===void 0?void 0:pn.get(Pr.path):Lt.allDiagnostics;if(fn)return fn;var kn=Kt(Pr,$r);return Pr?(Lt.perFile||(Lt.perFile=new e.Map)).set(Pr.path,kn):Lt.allDiagnostics=kn,kn}function se(Pr,$r){return Pr.isDeclarationFile?[]:Oe(Pr,$r)}function Be(){return e.sortAndDeduplicateDiagnostics(e.concatenate(lt.getGlobalDiagnostics(),er()))}function er(){if(!Le.configFile)return e.emptyArray;var Pr=lt.getDiagnostics(Le.configFile.fileName);return Ro(function($r){Pr=e.concatenate(Pr,lt.getDiagnostics($r.sourceFile.fileName))}),Pr}function hr(){return _e.length?e.sortAndDeduplicateDiagnostics(Ka().getGlobalDiagnostics().slice()):e.emptyArray}function qr(){return qe||e.emptyArray}function Dt(Pr,$r,Lt,Kt){So(e.normalizePath(Pr),$r,Lt,void 0,Kt)}function Jt(Pr,$r){return Pr.fileName===$r.fileName}function Sn(Pr,$r){return Pr.kind===79?$r.kind===79&&Pr.escapedText===$r.escapedText:$r.kind===10&&Pr.text===$r.text}function ta(Pr,$r){var Lt=e.factory.createStringLiteral(Pr),Kt=e.factory.createImportDeclaration(void 0,void 0,void 0,Lt,void 0);return e.addEmitFlags(Kt,67108864),e.setParent(Lt,Kt),e.setParent(Kt,$r),Lt.flags&=-9,Kt.flags&=-9,Lt}function xa(Pr){if(Pr.imports)return;var $r=e.isSourceFileJS(Pr),Lt=e.isExternalModule(Pr),Kt,pn,fn;if((Le.isolatedModules||Lt)&&!Pr.isDeclarationFile){Le.importHelpers&&(Kt=[ta(e.externalHelpersModuleNameText,Pr)]);var kn=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(Le,Pr),Le);kn&&(Kt||(Kt=[])).push(ta(kn,Pr))}for(var Kn=0,Fa=Pr.statements;Kn<Fa.length;Kn++){var ua=Fa[Kn];le(ua,!1)}(Pr.flags&1048576||$r)&&rr(Pr),Pr.imports=Kt||e.emptyArray,Pr.moduleAugmentations=pn||e.emptyArray,Pr.ambientModuleNames=fn||e.emptyArray;return;function le(ct,jt){if(e.isAnyImportOrReExport(ct)){var yn=e.getExternalModuleName(ct);yn&&e.isStringLiteral(yn)&&yn.text&&(!jt||!e.isExternalModuleNameRelative(yn.text))&&(e.setParentRecursive(ct,!1),Kt=e.append(Kt,yn),!ee&&Dr===0&&!Pr.isDeclarationFile&&(ee=e.startsWith(yn.text,"node:")))}else if(e.isModuleDeclaration(ct)&&e.isAmbientModule(ct)&&(jt||e.hasSyntacticModifier(ct,2)||Pr.isDeclarationFile)){ct.name.parent=ct;var ha=e.getTextOfIdentifierOrLiteral(ct.name);if(Lt||jt&&!e.isExternalModuleNameRelative(ha))(pn||(pn=[])).push(ct.name);else if(!jt){Pr.isDeclarationFile&&(fn||(fn=[])).push(ha);var ri=ct.body;if(ri)for(var Ta=0,Ya=ri.statements;Ta<Ya.length;Ta++){var fi=Ya[Ta];le(fi,!0)}}}}function rr(ct){for(var jt=/import|require/g;jt.exec(ct.text)!==null;){var yn=br(ct,jt.lastIndex);$r&&e.isRequireCall(yn,!0)||e.isImportCall(yn)&&yn.arguments.length>=1&&e.isStringLiteralLike(yn.arguments[0])?(e.setParentRecursive(yn,!1),Kt=e.append(Kt,yn.arguments[0])):e.isLiteralImportTypeNode(yn)&&(e.setParentRecursive(yn,!1),Kt=e.append(Kt,yn.argument.literal))}}function br(ct,jt){for(var yn=ct,ha=function(Ta){if(Ta.pos<=jt&&(jt<Ta.end||jt===Ta.end&&Ta.kind===1))return Ta};;){var ri=$r&&e.hasJSDocNodes(yn)&&e.forEach(yn.jsDoc,ha)||e.forEachChild(yn,ha);if(!ri)return yn;yn=ri}}}function Di(Pr){var $r=e.toFileNameLowerCase(Pr.fileName),Lt=e.libMap.get($r);if(Lt)return No(Re(Lt))}function $a(Pr,$r){return Ji(f($r.fileName,Pr.fileName),No)}function Ji(Pr,$r,Lt,Kt){if(e.hasExtension(Pr)){var pn=pr.getCanonicalFileName(Pr);if(!Le.allowNonTsExtensions&&!e.forEach(e.flatten(cn),function(ua){return e.fileExtensionIs(pn,ua)})){Lt&&(e.hasJSFileExtension(pn)?Lt(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Pr):Lt(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Pr,"'"+e.flatten(Rt).join("', '")+"'"));return}var fn=$r(Pr);if(Lt)if(fn)T(Kt)&&pn===pr.getCanonicalFileName(lo(Kt.file).fileName)&&Lt(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var kn=ka(Pr);kn?Lt(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,kn,Pr):Lt(e.Diagnostics.File_0_not_found,Pr)}return fn}else{var Kn=Le.allowNonTsExtensions&&$r(Pr);if(Kn)return Kn;if(Lt&&Le.allowNonTsExtensions){Lt(e.Diagnostics.File_0_not_found,Pr);return}var Fa=e.forEach(Rt[0],function(ua){return $r(Pr+ua)});return Lt&&!Fa&&Lt(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Pr,"'"+e.flatten(Rt).join("', '")+"'"),Fa}}function So(Pr,$r,Lt,Kt,pn){Ji(Pr,function(fn){return da(fn,$r,Lt,pn,Kt)},function(fn){for(var kn=[],Kn=1;Kn<arguments.length;Kn++)kn[Kn-1]=arguments[Kn];return Nr(void 0,pn,fn,kn)},pn)}function cs(Pr,$r){return So(Pr,!1,!1,void 0,$r)}function bt(Pr,$r,Lt){var Kt=!T(Lt)&&e.some(Hr.get($r.path),T);Kt?Nr($r,Lt,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[$r.fileName,Pr]):Nr($r,Lt,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Pr,$r.fileName])}function Mn(Pr,$r,Lt,Kt,pn,fn){var kn=Object.create(Pr);return kn.fileName=Lt,kn.path=Kt,kn.resolvedPath=pn,kn.originalFileName=fn,kn.redirectInfo={redirectTarget:Pr,unredirected:$r},He.set(Kt,Dr>0),Object.defineProperties(kn,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(Kn){this.redirectInfo.redirectTarget.id=Kn}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(Kn){this.redirectInfo.redirectTarget.symbol=Kn}}}),kn}function da(Pr,$r,Lt,Kt,pn){e.tracing===null||e.tracing===void 0||e.tracing.push("program","findSourceFile",{fileName:Pr,isDefaultLib:$r||void 0,fileIncludeKind:e.FileIncludeKind[Kt.kind]});var fn=ei(Pr,$r,Lt,Kt,pn);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),fn}function ei(Pr,$r,Lt,Kt,pn){var fn=pt(Pr);if(yt){var kn=ko(fn);if(!kn&&pr.realpath&&Le.preserveSymlinks&&e.isDeclarationFileName(Pr)&&e.stringContains(Pr,e.nodeModulesPathPart)){var Kn=pt(pr.realpath(Pr));Kn!==fn&&(kn=ko(Kn))}if(kn){var Fa=e.isString(kn)?da(kn,$r,Lt,Kt,pn):void 0;return Fa&&xi(Fa,fn,void 0),Fa}}var ua=Pr;if(Ne.has(fn)){var le=Ne.get(fn);if(bi(le||void 0,Kt),le&&Le.forceConsistentCasingInFileNames){var rr=le.fileName,br=pt(rr)!==pt(Pr);br&&(Pr=ka(Pr)||Pr);var ct=e.getNormalizedAbsolutePathWithoutRoot(rr,tt),jt=e.getNormalizedAbsolutePathWithoutRoot(Pr,tt);ct!==jt&&bt(Pr,le,Kt)}return le&&He.get(le.path)&&Dr===0?(He.set(le.path,!1),Le.noResolve||(pe(le,$r),wr(le)),Le.noLib||Qr(le),Fr.set(le.path,!1),Xn(le)):le&&Fr.get(le.path)&&Dr<$e&&(Fr.set(le.path,!1),Xn(le)),le||void 0}var yn;if(T(Kt)&&!yt){var ha=mi(Pr);if(ha){if(e.outFile(ha.commandLine.options))return;var ri=Xi(ha,Pr);Pr=ri,yn=pt(ri)}}var Ta=pr.getSourceFile(Pr,e.getEmitScriptTarget(Le),function(bo){return Nr(void 0,Kt,e.Diagnostics.Cannot_read_file_0_Colon_1,[Pr,bo])},gt);if(pn){var Ya=e.packageIdToString(pn),fi=je.get(Ya);if(fi){var ci=Mn(fi,Ta,Pr,fn,pt(Pr),ua);return We.add(fi.path,Pr),xi(ci,fn,yn),bi(ci,Kt),Ee.set(fn,pn.name),Ye.push(ci),ci}else Ta&&(je.set(Ya,Ta),Ee.set(fn,pn.name))}if(xi(Ta,fn,yn),Ta){if(He.set(fn,Dr>0),Ta.fileName=Pr,Ta.path=fn,Ta.resolvedPath=pt(Pr),Ta.originalFileName=ua,Ta.impliedNodeFormat=m(Ta.resolvedPath,zn==null?void 0:zn.getPackageJsonInfoCache(),pr,Le),bi(Ta,Kt),pr.useCaseSensitiveFileNames()){var Si=e.toFileNameLowerCase(fn),Do=Ze.get(Si);Do?bt(Pr,Do,Kt):Ze.set(Si,Ta)}ze=ze||Ta.hasNoDefaultLib&&!Lt,Le.noResolve||(pe(Ta,$r),wr(Ta)),Le.noLib||Qr(Ta),Xn(Ta),$r?Ae.push(Ta):Ye.push(Ta)}return Ta}function bi(Pr,$r){Pr&&Hr.add(Pr.path,$r)}function xi(Pr,$r,Lt){Lt?(Ne.set(Lt,Pr),Ne.set($r,Pr||!1)):Ne.set($r,Pr)}function ka(Pr){var $r=mi(Pr);return $r&&Xi($r,Pr)}function mi(Pr){if(!(!xr||!xr.length||e.fileExtensionIs(Pr,".d.ts")||e.fileExtensionIs(Pr,".json")))return Gi(Pr)}function Xi(Pr,$r){var Lt=e.outFile(Pr.commandLine.options);return Lt?e.changeExtension(Lt,".d.ts"):e.getOutputDeclarationFileName($r,Pr.commandLine,!pr.useCaseSensitiveFileNames())}function Gi(Pr){dr===void 0&&(dr=new e.Map,Ro(function(Lt){pt(Le.configFilePath)!==Lt.sourceFile.path&&Lt.commandLine.fileNames.forEach(function(Kt){return dr.set(pt(Kt),Lt.sourceFile.path)})}));var $r=dr.get(pt(Pr));return $r&&as($r)}function Ro(Pr){return e.forEachResolvedProjectReference(xr,Pr)}function ko(Pr){if(!!e.isDeclarationFileName(Pr))return et===void 0&&(et=new e.Map,Ro(function($r){var Lt=e.outFile($r.commandLine.options);if(Lt){var Kt=e.changeExtension(Lt,".d.ts");et.set(pt(Kt),!0)}else{var pn=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig($r.commandLine,!pr.useCaseSensitiveFileNames())});e.forEach($r.commandLine.fileNames,function(fn){if(!e.fileExtensionIs(fn,".d.ts")&&!e.fileExtensionIs(fn,".json")){var kn=e.getOutputDeclarationFileName(fn,$r.commandLine,!pr.useCaseSensitiveFileNames(),pn);et.set(pt(kn),fn)}})}})),et.get(Pr)}function es(Pr){return yt&&!!Gi(Pr)}function as(Pr){if(!!fr)return fr.get(Pr)||void 0}function pe(Pr,$r){e.forEach(Pr.referencedFiles,function(Lt,Kt){So(f(Lt.fileName,Pr.fileName),$r,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:Pr.path,index:Kt})})}function wr(Pr){var $r=e.map(Pr.typeReferenceDirectives,function(Kn){return e.toFileNameLowerCase(Kn.fileName)});if(!!$r)for(var Lt=St($r,Pr),Kt=0;Kt<$r.length;Kt++){var pn=Pr.typeReferenceDirectives[Kt],fn=Lt[Kt],kn=e.toFileNameLowerCase(pn.fileName);e.setResolvedTypeReferenceDirective(Pr,kn,fn),ft(kn,fn,{kind:e.FileIncludeKind.TypeReferenceDirective,file:Pr.path,index:Kt})}}function ft(Pr,$r,Lt){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferenceDirective",{directive:Pr,hasResolved:!!It,refKind:Lt.kind,refPath:T(Lt)?Lt.file:void 0}),Zt(Pr,$r,Lt),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function Zt(Pr,$r,Lt){var Kt=de.get(Pr);if(!(Kt&&Kt.primary)){var pn=!0;if($r){if($r.isExternalLibraryImport&&Dr++,$r.primary)So($r.resolvedFileName,!1,!1,$r.packageId,Lt);else if(Kt){if($r.resolvedFileName!==Kt.resolvedFileName){var fn=pr.readFile($r.resolvedFileName),kn=No(Kt.resolvedFileName);fn!==kn.text&&Nr(kn,Lt,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[Pr,$r.resolvedFileName,Kt.resolvedFileName])}pn=!1}else So($r.resolvedFileName,!1,!1,$r.packageId,Lt);$r.isExternalLibraryImport&&Dr--}else Nr(void 0,Lt,e.Diagnostics.Cannot_find_type_definition_file_for_0,[Pr]);pn&&de.set(Pr,$r)}}function Re(Pr){for(var $r=Pr.split("."),Lt=$r[1],Kt=2;$r[Kt]&&$r[Kt]!=="d";)Lt+=(Kt===2?"/":"-")+$r[Kt],Kt++;var pn=e.combinePaths(tt,"__lib_node_modules_lookup_".concat(Pr,"__.ts")),fn=e.resolveModuleName("@typescript/lib-"+Lt,pn,{moduleResolution:e.ModuleResolutionKind.NodeJs},pr,zn);return fn!=null&&fn.resolvedModule?fn.resolvedModule.resolvedFileName:e.combinePaths(Yr,Pr)}function Qr(Pr){e.forEach(Pr.libReferenceDirectives,function($r,Lt){var Kt=e.toFileNameLowerCase($r.fileName),pn=e.libMap.get(Kt);if(pn)Dt(Re(pn),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:Pr.path,index:Lt});else{var fn=e.removeSuffix(e.removePrefix(Kt,"lib."),".d.ts"),kn=e.getSpellingSuggestion(fn,e.libs,e.identity),Kn=kn?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;(Fe||(Fe=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:Pr.path,index:Lt},diagnostic:Kn,args:[Kt,kn]})}})}function vn(Pr){return pr.getCanonicalFileName(Pr)}function Xn(Pr){var $r;if(xa(Pr),Pr.imports.length||Pr.moduleAugmentations.length){var Lt=Q(Pr),Kt=It(Lt,Pr);e.Debug.assert(Kt.length===Lt.length);for(var pn=(yt?($r=Ut(Pr))===null||$r===void 0?void 0:$r.commandLine.options:void 0)||Le,fn=0;fn<Lt.length;fn++){var kn=Kt[fn];if(e.setResolvedModule(Pr,Lt[fn],kn,ne(Pr,fn)),!!kn){var Kn=kn.isExternalLibraryImport,Fa=!e.resolutionExtensionIsTSOrJson(kn.extension),ua=Kn&&Fa,le=kn.resolvedFileName;Kn&&Dr++;var rr=ua&&Dr>$e,br=le&&!O(pn,kn)&&!pn.noResolve&&fn<Pr.imports.length&&!rr&&!(Fa&&!e.getAllowJSCompilerOption(pn))&&(e.isInJSFile(Pr.imports[fn])||!(Pr.imports[fn].flags&4194304));rr?Fr.set(Pr.path,!0):br&&da(le,!1,!1,{kind:e.FileIncludeKind.Import,file:Pr.path,index:fn},kn.packageId),Kn&&Dr--}}}else Pr.resolvedModules=void 0}function gi(Pr,$r){for(var Lt=!0,Kt=pr.getCanonicalFileName(e.getNormalizedAbsolutePath($r,tt)),pn=0,fn=Pr;pn<fn.length;pn++){var kn=fn[pn];if(!kn.isDeclarationFile){var Kn=pr.getCanonicalFileName(e.getNormalizedAbsolutePath(kn.fileName,tt));Kn.indexOf(Kt)!==0&&(Us(kn,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[kn.fileName,$r]),Lt=!1)}}return Lt}function Ia(Pr){fr||(fr=new e.Map);var $r=Ce(Pr),Lt=pt($r),Kt=fr.get(Lt);if(Kt!==void 0)return Kt||void 0;var pn,fn;if(pr.getParsedCommandLine){if(pn=pr.getParsedCommandLine($r),!pn){xi(void 0,Lt,void 0),fr.set(Lt,!1);return}fn=e.Debug.checkDefined(pn.options.configFile),e.Debug.assert(!fn.path||fn.path===Lt),xi(fn,Lt,void 0)}else{var kn=e.getNormalizedAbsolutePath(e.getDirectoryPath($r),pr.getCurrentDirectory());if(fn=pr.getSourceFile($r,100),xi(fn,Lt,void 0),fn===void 0){fr.set(Lt,!1);return}pn=e.parseJsonSourceFileConfigFileContent(fn,Jr,kn,void 0,$r)}fn.fileName=$r,fn.path=Lt,fn.resolvedPath=Lt,fn.originalFileName=$r;var Kn={commandLine:pn,sourceFile:fn};return fr.set(Lt,Kn),pn.projectReferences&&(Kn.references=pn.projectReferences.map(Ia)),Kn}function oo(){var Pr=e.stringContains(e.version,"-dev");Pr||(e.getEmitModuleKind(Le)===e.ModuleKind.Node12?ql("module",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"module","node12"):e.getEmitModuleKind(Le)===e.ModuleKind.NodeNext?ql("module",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"module","nodenext"):e.getEmitModuleResolutionKind(Le)===e.ModuleResolutionKind.Node12?ql("moduleResolution",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"moduleResolution","node12"):e.getEmitModuleResolutionKind(Le)===e.ModuleResolutionKind.NodeNext&&ql("moduleResolution",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"moduleResolution","nodenext")),Le.strictPropertyInitialization&&!e.getStrictOptionValue(Le,"strictNullChecks")&&no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),Le.exactOptionalPropertyTypes&&!e.getStrictOptionValue(Le,"strictNullChecks")&&no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),Le.isolatedModules&&(Le.out&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),Le.outFile&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),Le.inlineSourceMap&&(Le.sourceMap&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),Le.mapRoot&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),Le.composite&&(Le.declaration===!1&&no(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),Le.incremental===!1&&no(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var $r=e.outFile(Le);if(Le.tsBuildInfoFile?e.isIncrementalCompilation(Le)||no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):Le.incremental&&!$r&&!Le.configFilePath&<.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),Pl(),Le.composite)for(var Lt=new e.Set(_e.map(pt)),Kt=0,pn=Lr;Kt<pn.length;Kt++){var fn=pn[Kt];e.sourceFileMayBeEmitted(fn,Wn)&&!Lt.has(fn.path)&&Us(fn,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[fn.fileName,Le.configFilePath||""])}if(Le.paths){for(var kn in Le.paths)if(!!e.hasProperty(Le.paths,kn))if(e.hasZeroOrOneAsteriskCharacter(kn)||Vs(!0,kn,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,kn),e.isArray(Le.paths[kn])){var Kn=Le.paths[kn].length;Kn===0&&Vs(!1,kn,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,kn);for(var Fa=0;Fa<Kn;Fa++){var ua=Le.paths[kn][Fa],le=typeof ua;le==="string"?(e.hasZeroOrOneAsteriskCharacter(ua)||Co(kn,Fa,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,ua,kn),!Le.baseUrl&&!e.pathIsRelative(ua)&&!e.pathIsAbsolute(ua)&&Co(kn,Fa,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Co(kn,Fa,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,ua,kn,le)}}else Vs(!1,kn,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,kn)}!Le.sourceMap&&!Le.inlineSourceMap&&(Le.inlineSources&&no(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),Le.sourceRoot&&no(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),Le.out&&Le.outFile&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),Le.mapRoot&&!(Le.sourceMap||Le.declarationMap)&&no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),Le.declarationDir&&(e.getEmitDeclarations(Le)||no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),$r&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",Le.out?"out":"outFile")),Le.declarationMap&&!e.getEmitDeclarations(Le)&&no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),Le.lib&&Le.noLib&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),Le.noImplicitUseStrict&&e.getStrictOptionValue(Le,"alwaysStrict")&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var rr=e.getEmitScriptTarget(Le),br=e.find(Lr,function(Ya){return e.isExternalModule(Ya)&&!Ya.isDeclarationFile});if(Le.isolatedModules){Le.module===e.ModuleKind.None&&rr<2&&no(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),Le.preserveConstEnums===!1&&no(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");var ct=e.find(Lr,function(Ya){return!e.isExternalModule(Ya)&&!e.isSourceFileJS(Ya)&&!Ya.isDeclarationFile&&Ya.scriptKind!==6});if(ct){var jt=e.getErrorSpanForNode(ct,ct);lt.add(e.createFileDiagnostic(ct,jt.start,jt.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(ct.fileName)))}}else if(br&&rr<2&&Le.module===e.ModuleKind.None){var jt=e.getErrorSpanForNode(br,br.externalModuleIndicator);lt.add(e.createFileDiagnostic(br,jt.start,jt.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if($r&&!Le.emitDeclarationOnly){if(Le.module&&!(Le.module===e.ModuleKind.AMD||Le.module===e.ModuleKind.System))no(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,Le.out?"out":"outFile","module");else if(Le.module===void 0&&br){var jt=e.getErrorSpanForNode(br,br.externalModuleIndicator);lt.add(e.createFileDiagnostic(br,jt.start,jt.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,Le.out?"out":"outFile"))}}if(Le.resolveJsonModule&&(e.getEmitModuleResolutionKind(Le)!==e.ModuleResolutionKind.NodeJs&&e.getEmitModuleResolutionKind(Le)!==e.ModuleResolutionKind.Node12&&e.getEmitModuleResolutionKind(Le)!==e.ModuleResolutionKind.NodeNext?no(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(Le)||no(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),Le.outDir||Le.rootDir||Le.sourceRoot||Le.mapRoot){var yn=_t();Le.outDir&&yn===""&&Lr.some(function(Ya){return e.getRootLength(Ya.fileName)>1})&&no(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(Le.useDefineForClassFields&&rr===0&&no(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),Le.checkJs&&!e.getAllowJSCompilerOption(Le)&<.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),Le.emitDeclarationOnly&&(e.getEmitDeclarations(Le)||no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),Le.noEmit&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),Le.emitDecoratorMetadata&&!Le.experimentalDecorators&&no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),Le.jsxFactory?(Le.reactNamespace&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(Le.jsx===4||Le.jsx===5)&&no(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+Le.jsx)),e.parseIsolatedEntityName(Le.jsxFactory,rr)||ql("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,Le.jsxFactory)):Le.reactNamespace&&!e.isIdentifierText(Le.reactNamespace,rr)&&ql("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,Le.reactNamespace),Le.jsxFragmentFactory&&(Le.jsxFactory||no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(Le.jsx===4||Le.jsx===5)&&no(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+Le.jsx)),e.parseIsolatedEntityName(Le.jsxFragmentFactory,rr)||ql("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,Le.jsxFragmentFactory)),Le.reactNamespace&&(Le.jsx===4||Le.jsx===5)&&no(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+Le.jsx)),Le.jsxImportSource&&Le.jsx===2&&no(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+Le.jsx)),Le.preserveValueImports&&e.getEmitModuleKind(Le)<e.ModuleKind.ES2015&&ql("importsNotUsedAsValues",e.Diagnostics.Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later),!Le.noEmit&&!Le.suppressOutputPathCheck){var ha=Qn(),ri=new e.Set;e.forEachEmittedFile(ha,function(Ya){Le.emitDeclarationOnly||Ta(Ya.jsFilePath,ri),Ta(Ya.declarationFilePath,ri)})}function Ta(Ya,fi){if(Ya){var ci=pt(Ya);if(Ne.has(ci)){var Si=void 0;Le.configFilePath||(Si=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)),Si=e.chainDiagnosticMessages(Si,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,Ya),La(Ya,e.createCompilerDiagnosticFromMessageChain(Si))}var Do=pr.useCaseSensitiveFileNames()?ci:e.toFileNameLowerCase(ci);fi.has(Do)?La(Ya,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Ya)):fi.add(Do)}}}function Wo(Pr,$r,Lt,Kt){var pn,fn,kn,Kn=T($r)?$r:void 0;Pr&&((pn=Hr.get(Pr.path))===null||pn===void 0||pn.forEach(br)),$r&&br($r),Kn&&(fn==null?void 0:fn.length)===1&&(fn=void 0);var Fa=Kn&&y(lo,Kn),ua=fn&&e.chainDiagnosticMessages(fn,e.Diagnostics.The_file_is_in_the_program_because_Colon),le=Pr&&e.explainIfFileIsRedirect(Pr),rr=e.chainDiagnosticMessages.apply(void 0,Gt([le?ua?Gt([ua],le,!0):le:ua,Lt],Kt||e.emptyArray,!1));return Fa&&I(Fa)?e.createFileDiagnosticFromMessageChain(Fa.file,Fa.pos,Fa.end-Fa.pos,rr,kn):e.createCompilerDiagnosticFromMessageChain(rr,kn);function br(ct){(fn||(fn=[])).push(e.fileIncludeReasonToDiagnostics(Wn,ct)),!Kn&&T(ct)?Kn=ct:Kn!==ct&&(kn=e.append(kn,il(ct))),ct===$r&&($r=void 0)}}function Nr(Pr,$r,Lt,Kt){(Fe||(Fe=[])).push({kind:1,file:Pr&&Pr.path,fileProcessingReason:$r,diagnostic:Lt,args:Kt})}function Us(Pr,$r,Lt){lt.add(Wo(Pr,void 0,$r,Lt))}function il(Pr){if(T(Pr)){var $r=y(lo,Pr),Lt;switch(Pr.kind){case e.FileIncludeKind.Import:Lt=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:Lt=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:Lt=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:Lt=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(Pr)}return I($r)?e.createFileDiagnostic($r.file,$r.pos,$r.end-$r.pos,Lt):void 0}if(!!Le.configFile){var Kt,pn;switch(Pr.kind){case e.FileIncludeKind.RootFile:if(!Le.configFile.configFileSpecs)return;var fn=e.getNormalizedAbsolutePath(_e[Pr.index],tt),kn=e.getMatchedFileSpec(Wn,fn);if(kn){Kt=e.getTsConfigPropArrayElementValue(Le.configFile,"files",kn),pn=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var Kn=e.getMatchedIncludeSpec(Wn,fn);if(!Kn)return;Kt=e.getTsConfigPropArrayElementValue(Le.configFile,"include",Kn),pn=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var Fa=e.Debug.checkDefined(xr==null?void 0:xr[Pr.index]),ua=$(Xe,xr,function(jt,yn,ha){return jt===Fa?{sourceFile:(yn==null?void 0:yn.sourceFile)||Le.configFile,index:ha}:void 0});if(!ua)return;var le=ua.sourceFile,rr=ua.index,br=e.firstDefined(e.getTsConfigPropArray(le,"references"),function(jt){return e.isArrayLiteralExpression(jt.initializer)?jt.initializer:void 0});return br&&br.elements.length>rr?e.createDiagnosticForNodeInSourceFile(le,br.elements[rr],Pr.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(!Le.types)return;Kt=cu("types",Pr.typeReference),pn=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(Pr.index!==void 0){Kt=cu("lib",Le.lib[Pr.index]),pn=e.Diagnostics.File_is_library_specified_here;break}var ct=e.forEachEntry(e.targetOptionDeclaration.type,function(jt,yn){return jt===e.getEmitScriptTarget(Le)?yn:void 0});Kt=ct?uc("target",ct):void 0,pn=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(Pr)}return Kt&&e.createDiagnosticForNodeInSourceFile(Le.configFile,Kt,pn)}}function Pl(){var Pr=Le.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(Le);$(Xe,xr,function($r,Lt,Kt){var pn=(Lt?Lt.commandLine.projectReferences:Xe)[Kt],fn=Lt&&Lt.sourceFile;if(!$r){fc(fn,Kt,e.Diagnostics.File_0_not_found,pn.path);return}var kn=$r.commandLine.options;if(!kn.composite||kn.noEmit){var Kn=Lt?Lt.commandLine.fileNames:_e;Kn.length&&(kn.composite||fc(fn,Kt,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,pn.path),kn.noEmit&&fc(fn,Kt,e.Diagnostics.Referenced_project_0_may_not_disable_emit,pn.path))}if(pn.prepend){var Fa=e.outFile(kn);Fa?pr.fileExists(Fa)||fc(fn,Kt,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,Fa,pn.path):fc(fn,Kt,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,pn.path)}!Lt&&Pr&&Pr===e.getTsBuildInfoEmitOutputFilePath(kn)&&(fc(fn,Kt,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Pr,pn.path),bn.set(pt(Pr),!0))})}function Co(Pr,$r,Lt,Kt,pn,fn){for(var kn=!0,Kn=zl(),Fa=0,ua=Kn;Fa<ua.length;Fa++){var le=ua[Fa];if(e.isObjectLiteralExpression(le.initializer))for(var rr=0,br=e.getPropertyAssignment(le.initializer,Pr);rr<br.length;rr++){var ct=br[rr],jt=ct.initializer;e.isArrayLiteralExpression(jt)&&jt.elements.length>$r&&(lt.add(e.createDiagnosticForNodeInSourceFile(Le.configFile,jt.elements[$r],Lt,Kt,pn,fn)),kn=!1)}}kn&<.add(e.createCompilerDiagnostic(Lt,Kt,pn,fn))}function Vs(Pr,$r,Lt,Kt){for(var pn=!0,fn=zl(),kn=0,Kn=fn;kn<Kn.length;kn++){var Fa=Kn[kn];e.isObjectLiteralExpression(Fa.initializer)&&Ic(Fa.initializer,Pr,$r,void 0,Lt,Kt)&&(pn=!1)}pn&<.add(e.createCompilerDiagnostic(Lt,Kt))}function Ql(Pr){var $r=xc();return $r&&e.getPropertyAssignment($r,Pr)}function zl(){return Ql("paths")||e.emptyArray}function uc(Pr,$r){var Lt=Ql(Pr);return Lt&&e.firstDefined(Lt,function(Kt){return e.isStringLiteral(Kt.initializer)&&Kt.initializer.text===$r?Kt.initializer:void 0})}function cu(Pr,$r){var Lt=xc();return Lt&&e.getPropertyArrayElementValue(Lt,Pr,$r)}function no(Pr,$r,Lt,Kt){Ws(!0,$r,Lt,Pr,$r,Lt,Kt)}function ql(Pr,$r,Lt,Kt){Ws(!1,Pr,void 0,$r,Lt,Kt)}function fc(Pr,$r,Lt,Kt,pn){var fn=e.firstDefined(e.getTsConfigPropArray(Pr||Le.configFile,"references"),function(kn){return e.isArrayLiteralExpression(kn.initializer)?kn.initializer:void 0});fn&&fn.elements.length>$r?lt.add(e.createDiagnosticForNodeInSourceFile(Pr||Le.configFile,fn.elements[$r],Lt,Kt,pn)):lt.add(e.createCompilerDiagnostic(Lt,Kt,pn))}function Ws(Pr,$r,Lt,Kt,pn,fn,kn){var Kn=xc(),Fa=!Kn||!Ic(Kn,Pr,$r,Lt,Kt,pn,fn,kn);Fa&<.add(e.createCompilerDiagnostic(Kt,pn,fn,kn))}function xc(){if(In===void 0){In=!1;var Pr=e.getTsConfigObjectLiteralExpression(Le.configFile);if(Pr)for(var $r=0,Lt=e.getPropertyAssignment(Pr,"compilerOptions");$r<Lt.length;$r++){var Kt=Lt[$r];if(e.isObjectLiteralExpression(Kt.initializer)){In=Kt.initializer;break}}}return In||void 0}function Ic(Pr,$r,Lt,Kt,pn,fn,kn,Kn){for(var Fa=e.getPropertyAssignment(Pr,Lt,Kt),ua=0,le=Fa;ua<le.length;ua++){var rr=le[ua];lt.add(e.createDiagnosticForNodeInSourceFile(Le.configFile,$r?rr.name:rr.initializer,pn,fn,kn,Kn))}return!!Fa.length}function La(Pr,$r){bn.set(pt(Pr),!0),lt.add($r)}function uu(Pr){if(Le.noEmit)return!1;var $r=pt(Pr);if(lo($r))return!1;var Lt=e.outFile(Le);if(Lt)return dc($r,Lt)||dc($r,e.removeFileExtension(Lt)+".d.ts");if(Le.declarationDir&&e.containsPath(Le.declarationDir,$r,tt,!pr.useCaseSensitiveFileNames()))return!0;if(Le.outDir)return e.containsPath(Le.outDir,$r,tt,!pr.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf($r,e.supportedJSExtensionsFlat)||e.fileExtensionIs($r,".d.ts")){var Kt=e.removeFileExtension($r);return!!lo(Kt+".ts")||!!lo(Kt+".tsx")}return!1}function dc(Pr,$r){return e.comparePaths(Pr,$r,tt,!pr.useCaseSensitiveFileNames())===0}function Nc(){return pr.getSymlinkCache?pr.getSymlinkCache():(Er||(Er=e.createSymlinkCache(tt,vn)),Lr&&de&&!Er.hasProcessedResolutions()&&Er.setSymlinksFromResolutions(Lr,de),Er)}}e.createProgram=F;function te(z){var Te,ge=z.compilerHost.fileExists,ke=z.compilerHost.directoryExists,Me=z.compilerHost.getDirectories,Ie=z.compilerHost.realpath;if(!z.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:e.noop,fileExists:ve};z.compilerHost.fileExists=ve;var Ge;return ke&&(Ge=z.compilerHost.directoryExists=function(Xe){return ke.call(z.compilerHost,Xe)?(Le(Xe),!0):z.getResolvedProjectReferences()?(Te||(Te=new e.Set,z.forEachResolvedProjectReference(function(De){var Ae=e.outFile(De.commandLine.options);if(Ae)Te.add(e.getDirectoryPath(z.toPath(Ae)));else{var Ye=De.commandLine.options.declarationDir||De.commandLine.options.outDir;Ye&&Te.add(z.toPath(Ye))}})),qe(Xe,!1)):!1}),Me&&(z.compilerHost.getDirectories=function(Xe){return!z.getResolvedProjectReferences()||ke&&ke.call(z.compilerHost,Xe)?Me.call(z.compilerHost,Xe):[]}),Ie&&(z.compilerHost.realpath=function(Xe){var De;return((De=z.getSymlinkCache().getSymlinkedFiles())===null||De===void 0?void 0:De.get(z.toPath(Xe)))||Ie.call(z.compilerHost,Xe)}),{onProgramCreateComplete:he,fileExists:ve,directoryExists:Ge};function he(){z.compilerHost.fileExists=ge,z.compilerHost.directoryExists=ke,z.compilerHost.getDirectories=Me}function ve(Xe){return ge.call(z.compilerHost,Xe)?!0:!z.getResolvedProjectReferences()||!e.isDeclarationFileName(Xe)?!1:qe(Xe,!0)}function Ve(Xe){var De=z.getSourceOfProjectReferenceRedirect(z.toPath(Xe));return De!==void 0?e.isString(De)?ge.call(z.compilerHost,De):!0:void 0}function _e(Xe){var De=z.toPath(Xe),Ae="".concat(De).concat(e.directorySeparator);return e.forEachKey(Te,function(Ye){return De===Ye||e.startsWith(Ye,Ae)||e.startsWith(De,"".concat(Ye,"/"))})}function Le(Xe){var De;if(!(!z.getResolvedProjectReferences()||e.containsIgnoredPath(Xe))&&!(!Ie||!e.stringContains(Xe,e.nodeModulesPathPart))){var Ae=z.getSymlinkCache(),Ye=e.ensureTrailingDirectorySeparator(z.toPath(Xe));if(!(!((De=Ae.getSymlinkedDirectories())===null||De===void 0)&&De.has(Ye))){var Lr=e.normalizePath(Ie.call(z.compilerHost,Xe)),Er;if(Lr===Xe||(Er=e.ensureTrailingDirectorySeparator(z.toPath(Lr)))===Ye){Ae.setSymlinkedDirectory(Ye,!1);return}Ae.setSymlinkedDirectory(Xe,{real:e.ensureTrailingDirectorySeparator(Lr),realPath:Er})}}}function qe(Xe,De){var Ae,Ye=De?function(Or){return Ve(Or)}:function(Or){return _e(Or)},Lr=Ye(Xe);if(Lr!==void 0)return Lr;var Er=z.getSymlinkCache(),lr=Er.getSymlinkedDirectories();if(!lr)return!1;var Cr=z.toPath(Xe);return e.stringContains(Cr,e.nodeModulesPathPart)?De&&((Ae=Er.getSymlinkedFiles())===null||Ae===void 0?void 0:Ae.has(Cr))?!0:e.firstDefinedIterator(lr.entries(),function(Or){var Ke=Or[0],Pe=Or[1];if(!(!Pe||!e.startsWith(Cr,Ke))){var Hr=Ye(Cr.replace(Ke,Pe.realPath));if(De&&Hr){var ur=e.getNormalizedAbsolutePath(Xe,z.compilerHost.getCurrentDirectory());Er.setSymlinkedFile(Cr,"".concat(Pe.real).concat(ur.replace(new RegExp(Ke,"i"),"")))}return Hr}})||!1:!1}}e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function ue(z,Te,ge,ke){var Me=z.getCompilerOptions();if(Me.noEmit)return z.getSemanticDiagnostics(Te,ke),Te||e.outFile(Me)?e.emitSkippedWithNoDiagnostics:z.emitBuildInfo(ge,ke);if(!!Me.noEmitOnError){var Ie=Gt(Gt(Gt(Gt([],z.getOptionsDiagnostics(ke),!0),z.getSyntacticDiagnostics(Te,ke),!0),z.getGlobalDiagnostics(ke),!0),z.getSemanticDiagnostics(Te,ke),!0);if(Ie.length===0&&e.getEmitDeclarations(z.getCompilerOptions())&&(Ie=z.getDeclarationDiagnostics(void 0,ke)),!!Ie.length){var Ge;if(!Te&&!e.outFile(Me)){var he=z.emitBuildInfo(ge,ke);he.diagnostics&&(Ie=Gt(Gt([],Ie,!0),he.diagnostics,!0)),Ge=he.emittedFiles}return{diagnostics:Ie,sourceMaps:void 0,emittedFiles:Ge,emitSkipped:!0}}}}e.handleNoEmitOptions=ue;function X(z,Te){return e.filter(z,function(ge){return!ge.skippedOn||!Te[ge.skippedOn]})}e.filterSemanticDiagnostics=X;function j(z,Te){return Te===void 0&&(Te=z),{fileExists:function(ge){return Te.fileExists(ge)},readDirectory:function(ge,ke,Me,Ie,Ge){return e.Debug.assertIsDefined(Te.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),Te.readDirectory(ge,ke,Me,Ie,Ge)},readFile:function(ge){return Te.readFile(ge)},useCaseSensitiveFileNames:z.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return z.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:z.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:z.trace?function(ge){return z.trace(ge)}:void 0}}e.parseConfigHostFromCompilerHostLike=j;function Se(z,Te,ge){if(!z)return e.emptyArray;for(var ke,Me=0;Me<z.length;Me++){var Ie=z[Me],Ge=Te(Ie,Me);if(Ie.prepend&&Ge&&Ge.options){var he=e.outFile(Ge.options);if(!he)continue;var ve=e.getOutputPathsForBundle(Ge.options,!0),Ve=ve.jsFilePath,_e=ve.sourceMapFilePath,Le=ve.declarationFilePath,qe=ve.declarationMapPath,Xe=ve.buildInfoPath,De=e.createInputFiles(ge,Ve,_e,Le,qe,Xe);(ke||(ke=[])).push(De)}}return ke||e.emptyArray}e.createPrependNodes=Se;function Ce(z,Te){var ge=Te||z;return e.resolveConfigFileProjectName(ge.path)}e.resolveProjectReferencePath=Ce;function O(z,Te){var ge=Te.extension;switch(ge){case".ts":case".d.ts":return;case".tsx":return ke();case".jsx":return ke()||Me();case".js":return Me();case".json":return Ie()}function ke(){return z.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function Me(){return e.getAllowJSCompilerOption(z)||!e.getStrictOptionValue(z,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function Ie(){return z.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}}e.getResolutionDiagnostic=O;function Q(z){for(var Te=z.imports,ge=z.moduleAugmentations,ke=Te.map(function(he){return he.text}),Me=0,Ie=ge;Me<Ie.length;Me++){var Ge=Ie[Me];Ge.kind===10&&ke.push(Ge.text)}return ke}function V(z,Te){var ge=z.imports,ke=z.moduleAugmentations;if(Te<ge.length)return ge[Te];for(var Me=ge.length,Ie=0,Ge=ke;Ie<Ge.length;Ie++){var he=Ge[Ie];if(he.kind===10){if(Te===Me)return he;Me++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.getModuleNameStringLiteralAt=V})(gr||(gr={}));var gr;(function(e){function n(f,d,a,p,N,H){var h=[],v=f.emit(d,b,p,a,N,H),A=v.emitSkipped,q=v.diagnostics,ie=v.exportedModulesFromDeclarationEmit;return{outputFiles:h,emitSkipped:A,diagnostics:q,exportedModulesFromDeclarationEmit:ie};function b(P,S,B){h.push({name:P,writeByteOrderMark:B,text:S})}}e.getFileEmitOutput=n,function(f){var d=0;function a(){function I(y,D,C){var m=0,u={id:d++,version:function(){return m},clone:function(){return I(new e.Map(y),new e.Map(D),C&&new e.Set(C))},forEach:function(g){return y.forEach(g)},getKeys:function(g){return D.get(g)},getValues:function(g){return y.get(g)},hasKey:function(g){return y.has(g)},keys:function(){return y.keys()},deletedKeys:function(){return C},deleteKey:function(g){(C||(C=new e.Set)).add(g);var F=y.get(g);return F?(F.forEach(function(te){return N(D,te,g)}),y.delete(g),m++,!0):!1},set:function(g,F){var te=!!(C!=null&&C.delete(g)),ue=y.get(g);return y.set(g,F),ue==null||ue.forEach(function(X){F.has(X)||(te=!0,N(D,X,g))}),F.forEach(function(X){ue!=null&&ue.has(X)||(te=!0,p(D,X,g))}),te&&m++,u}};return u}return I(new e.Map,new e.Map,void 0)}f.createManyToManyPathMap=a;function p(I,y,D){var C=I.get(y);C||(C=new e.Set,I.set(y,C)),C.add(D)}function N(I,y,D,C){C===void 0&&(C=!0);var m=I.get(y);return m!=null&&m.delete(D)?(C&&!m.size&&I.delete(y),!0):!1}function H(I){return e.mapDefined(I.declarations,function(y){var D;return(D=e.getSourceFileOfNode(y))===null||D===void 0?void 0:D.resolvedPath})}function h(I,y){var D=I.getSymbolAtLocation(y);return D&&H(D)}function v(I,y,D,C){return e.toPath(I.getProjectReferenceRedirect(y)||y,D,C)}function A(I,y,D){var C;if(y.imports&&y.imports.length>0)for(var m=I.getTypeChecker(),u=0,g=y.imports;u<g.length;u++){var F=g[u],te=h(m,F);te==null||te.forEach(Ie)}var ue=e.getDirectoryPath(y.resolvedPath);if(y.referencedFiles&&y.referencedFiles.length>0)for(var X=0,j=y.referencedFiles;X<j.length;X++){var Se=j[X],Ce=v(I,Se.fileName,ue,D);Ie(Ce)}if(y.resolvedTypeReferenceDirectiveNames&&y.resolvedTypeReferenceDirectiveNames.forEach(function(Ge){if(!!Ge){var he=Ge.resolvedFileName,ve=v(I,he,ue,D);Ie(ve)}}),y.moduleAugmentations.length)for(var m=I.getTypeChecker(),O=0,Q=y.moduleAugmentations;O<Q.length;O++){var V=Q[O];if(!!e.isStringLiteral(V)){var z=m.getSymbolAtLocation(V);!z||Me(z)}}for(var Te=0,ge=I.getTypeChecker().getAmbientModules();Te<ge.length;Te++){var ke=ge[Te];ke.declarations&&ke.declarations.length>1&&Me(ke)}return C;function Me(Ge){if(!!Ge.declarations)for(var he=0,ve=Ge.declarations;he<ve.length;he++){var Ve=ve[he],_e=e.getSourceFileOfNode(Ve);_e&&_e!==y&&Ie(_e.resolvedPath)}}function Ie(Ge){(C||(C=new e.Set)).add(Ge)}}function q(I,y){return y&&!y.referencedMap==!I}f.canReuseOldState=q;function ie(I,y,D,C){var m=new e.Map,u=I.getCompilerOptions().module!==e.ModuleKind.None?a():void 0,g=u?a():void 0,F=new e.Set,te=q(u,D);I.getTypeChecker();for(var ue=0,X=I.getSourceFiles();ue<X.length;ue++){var j=X[ue],Se=e.Debug.checkDefined(j.version,"Program intended to be used with Builder should have source files with versions set"),Ce=te?D.fileInfos.get(j.resolvedPath):void 0;if(u){var O=A(I,j,y);if(O&&u.set(j.resolvedPath,O),te){var Q=D.exportedModulesMap.getValues(j.resolvedPath);Q&&g.set(j.resolvedPath,Q)}}m.set(j.resolvedPath,{version:Se,signature:Ce&&Ce.signature,affectsGlobalScope:Y(j)||void 0,impliedFormat:j.impliedNodeFormat})}return{fileInfos:m,referencedMap:u,exportedModulesMap:g,hasCalledUpdateShapeSignature:F,useFileVersionAsSignature:!C&&!te}}f.create=ie;function b(I){I.allFilesExcludingDefaultLibraryFile=void 0,I.allFileNames=void 0}f.releaseCache=b;function P(I){var y,D;return{fileInfos:new e.Map(I.fileInfos),referencedMap:(y=I.referencedMap)===null||y===void 0?void 0:y.clone(),exportedModulesMap:(D=I.exportedModulesMap)===null||D===void 0?void 0:D.clone(),hasCalledUpdateShapeSignature:new e.Set(I.hasCalledUpdateShapeSignature),useFileVersionAsSignature:I.useFileVersionAsSignature}}f.clone=P;function S(I,y,D,C,m,u,g){var F=u||new e.Map,te=y.getSourceFileByPath(D);if(!te)return e.emptyArray;if(!k(I,y,te,F,C,m,g))return[te];var ue=(I.referencedMap?T:$)(I,y,te,F,C,m,g);return u||B(I,F),ue}f.getFilesAffectedBy=S;function B(I,y){y.forEach(function(D,C){return J(I,D,C)})}f.updateSignaturesFromCache=B;function J(I,y,D){I.fileInfos.get(D).signature=y,I.hasCalledUpdateShapeSignature.add(D)}f.updateSignatureOfFile=J;function k(I,y,D,C,m,u,g,F){if(F===void 0&&(F=I.useFileVersionAsSignature),e.Debug.assert(!!D),e.Debug.assert(!g||!!I.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),I.hasCalledUpdateShapeSignature.has(D.resolvedPath)||C.has(D.resolvedPath))return!1;var te=I.fileInfos.get(D.resolvedPath);if(!te)return e.Debug.fail();var ue=te.signature,X;if(!D.isDeclarationFile&&!F){var j=n(y,D,!0,m,void 0,!0),Se=e.firstOrUndefined(j.outputFiles);Se&&(e.Debug.assert(e.fileExtensionIsOneOf(Se.name,[".d.ts",".d.mts",".d.cts"]),"File extension for signature expected to be dts",function(){return"Found: ".concat(e.getAnyExtensionFromPath(Se.name)," for ").concat(Se.name,":: All output files: ").concat(JSON.stringify(j.outputFiles.map(function(O){return O.name})))}),X=(u||e.generateDjb2Hash)(Se.text),g&&X!==ue&&M(D,j.exportedModulesFromDeclarationEmit,g))}if(X===void 0&&(X=D.version,g&&X!==ue)){var Ce=I.referencedMap?I.referencedMap.getValues(D.resolvedPath):void 0;Ce?g.set(D.resolvedPath,Ce):g.deleteKey(D.resolvedPath)}return C.set(D.resolvedPath,X),X!==ue}f.updateShapeSignature=k;function M(I,y,D){if(!y){D.deleteKey(I.resolvedPath);return}var C;y.forEach(function(u){return m(H(u))}),C?D.set(I.resolvedPath,C):D.deleteKey(I.resolvedPath);function m(u){u!=null&&u.length&&(C||(C=new e.Set),u.forEach(function(g){return C.add(g)}))}}function x(I,y){var D;if(y){e.Debug.assert(!!I.exportedModulesMap);var C=y.id,m=y.version();if(I.previousCache){if(I.previousCache.id===C&&I.previousCache.version===m)return;I.previousCache.id=C,I.previousCache.version=m}else I.previousCache={id:C,version:m};(D=y.deletedKeys())===null||D===void 0||D.forEach(function(u){return I.exportedModulesMap.deleteKey(u)}),y.forEach(function(u,g){return I.exportedModulesMap.set(g,u)})}}f.updateExportedFilesMapFromCache=x;function w(I,y,D){var C=y.getCompilerOptions();if(e.outFile(C)||!I.referencedMap||Y(D))return K(I,y);for(var m=new e.Set,u=[D.resolvedPath];u.length;){var g=u.pop();if(!m.has(g)){m.add(g);var F=I.referencedMap.getValues(g);if(F)for(var te=F.keys(),ue=te.next();!ue.done;ue=te.next())u.push(ue.value)}}return e.arrayFrom(e.mapDefinedIterator(m.keys(),function(X){var j,Se;return(Se=(j=y.getSourceFileByPath(X))===null||j===void 0?void 0:j.fileName)!==null&&Se!==void 0?Se:X}))}f.getAllDependencies=w;function K(I,y){if(!I.allFileNames){var D=y.getSourceFiles();I.allFileNames=D===e.emptyArray?e.emptyArray:D.map(function(C){return C.fileName})}return I.allFileNames}function Z(I,y){var D=I.referencedMap.getKeys(y);return D?e.arrayFrom(D.keys()):[]}f.getReferencedByPaths=Z;function ne(I){for(var y=0,D=I.statements;y<D.length;y++){var C=D[y];if(!e.isModuleWithStringLiteralName(C))return!1}return!0}function R(I){return e.some(I.moduleAugmentations,function(y){return e.isGlobalScopeAugmentation(y.parent)})}function Y(I){return R(I)||!e.isExternalOrCommonJsModule(I)&&!e.isJsonSourceFile(I)&&!ne(I)}function U(I,y,D){if(I.allFilesExcludingDefaultLibraryFile)return I.allFilesExcludingDefaultLibraryFile;var C;D&&F(D);for(var m=0,u=y.getSourceFiles();m<u.length;m++){var g=u[m];g!==D&&F(g)}return I.allFilesExcludingDefaultLibraryFile=C||e.emptyArray,I.allFilesExcludingDefaultLibraryFile;function F(te){y.isSourceFileDefaultLibrary(te)||(C||(C=[])).push(te)}}f.getAllFilesExcludingDefaultLibraryFile=U;function $(I,y,D){var C=y.getCompilerOptions();return C&&e.outFile(C)?[D]:U(I,y,D)}function T(I,y,D,C,m,u,g){if(Y(D))return U(I,y,D);var F=y.getCompilerOptions();if(F&&(F.isolatedModules||e.outFile(F)))return[D];var te=new e.Map;te.set(D.resolvedPath,D);for(var ue=Z(I,D.resolvedPath);ue.length>0;){var X=ue.pop();if(!te.has(X)){var j=y.getSourceFileByPath(X);te.set(X,j),j&&k(I,y,j,C,m,u,g)&&ue.push.apply(ue,Z(I,j.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(te.values(),function(Se){return Se}))}}(e.BuilderState||(e.BuilderState={}))})(gr||(gr={}));var gr;(function(e){(function(m){m[m.DtsOnly=0]="DtsOnly",m[m.Full=1]="Full"})(e.BuilderFileEmit||(e.BuilderFileEmit={}));function n(m,u){return m===u||m!==void 0&&u!==void 0&&m.size===u.size&&!e.forEachKey(m,function(g){return!u.has(g)})}function f(m,u,g,F){var te=e.BuilderState.create(m,u,g,F);te.program=m;var ue=m.getCompilerOptions();te.compilerOptions=ue,e.outFile(ue)||(te.semanticDiagnosticsPerFile=new e.Map),te.changedFilesSet=new e.Set;var X=e.BuilderState.canReuseOldState(te.referencedMap,g),j=X?g.compilerOptions:void 0,Se=X&&g.semanticDiagnosticsPerFile&&!!te.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(ue,j);if(X){if(!g.currentChangedFilePath){var Ce=g.currentAffectedFilesSignatures;e.Debug.assert(!g.affectedFiles&&(!Ce||!Ce.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var O=g.changedFilesSet;Se&&e.Debug.assert(!O||!e.forEachKey(O,function(ge){return g.semanticDiagnosticsPerFile.has(ge)}),"Semantic diagnostics shouldnt be available for changed files"),O==null||O.forEach(function(ge){return te.changedFilesSet.add(ge)}),!e.outFile(ue)&&g.affectedFilesPendingEmit&&(te.affectedFilesPendingEmit=g.affectedFilesPendingEmit.slice(),te.affectedFilesPendingEmitKind=g.affectedFilesPendingEmitKind&&new e.Map(g.affectedFilesPendingEmitKind),te.affectedFilesPendingEmitIndex=g.affectedFilesPendingEmitIndex,te.seenAffectedFiles=new e.Set)}var Q=te.referencedMap,V=X?g.referencedMap:void 0,z=Se&&!ue.skipLibCheck==!j.skipLibCheck,Te=z&&!ue.skipDefaultLibCheck==!j.skipDefaultLibCheck;return te.fileInfos.forEach(function(ge,ke){var Me,Ie;if(!X||!(Me=g.fileInfos.get(ke))||Me.version!==ge.version||!n(Ie=Q&&Q.getValues(ke),V&&V.getValues(ke))||Ie&&e.forEachKey(Ie,function(ve){return!te.fileInfos.has(ve)&&g.fileInfos.has(ve)}))te.changedFilesSet.add(ke);else if(Se){var Ge=m.getSourceFileByPath(ke);if(Ge.isDeclarationFile&&!z||Ge.hasNoDefaultLib&&!Te)return;var he=g.semanticDiagnosticsPerFile.get(ke);he&&(te.semanticDiagnosticsPerFile.set(ke,g.hasReusableDiagnostic?d(he,m,u):he),te.semanticDiagnosticsFromOldState||(te.semanticDiagnosticsFromOldState=new e.Set),te.semanticDiagnosticsFromOldState.add(ke))}}),X&&e.forEachEntry(g.fileInfos,function(ge,ke){return ge.affectsGlobalScope&&!te.fileInfos.has(ke)})?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(te,m,void 0).forEach(function(ge){return te.changedFilesSet.add(ge.resolvedPath)}):j&&!e.outFile(ue)&&e.compilerOptionsAffectEmit(ue,j)&&(m.getSourceFiles().forEach(function(ge){return I(te,ge.resolvedPath,1)}),e.Debug.assert(!te.seenAffectedFiles||!te.seenAffectedFiles.size),te.seenAffectedFiles=te.seenAffectedFiles||new e.Set),X&&e.forEachEntry(g.fileInfos,function(ge,ke){te.fileInfos.has(ke)&&te.fileInfos.get(ke).impliedFormat!==ge.impliedFormat&&te.changedFilesSet.add(ke)}),te.buildInfoEmitPending=!!te.changedFilesSet.size,te}function d(m,u,g){if(!m.length)return e.emptyArray;var F=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(u.getCompilerOptions()),u.getCurrentDirectory()));return m.map(function(ue){var X=a(ue,u,te);X.reportsUnnecessary=ue.reportsUnnecessary,X.reportsDeprecated=ue.reportDeprecated,X.source=ue.source,X.skippedOn=ue.skippedOn;var j=ue.relatedInformation;return X.relatedInformation=j?j.length?j.map(function(Se){return a(Se,u,te)}):[]:void 0,X});function te(ue){return e.toPath(ue,F,g)}}function a(m,u,g){var F=m.file;return Rn(Rn({},m),{file:F?u.getSourceFileByPath(g(F)):void 0})}function p(m){e.BuilderState.releaseCache(m),m.program=void 0}function N(m){var u,g=e.BuilderState.clone(m);return g.semanticDiagnosticsPerFile=m.semanticDiagnosticsPerFile&&new e.Map(m.semanticDiagnosticsPerFile),g.changedFilesSet=new e.Set(m.changedFilesSet),g.affectedFiles=m.affectedFiles,g.affectedFilesIndex=m.affectedFilesIndex,g.currentChangedFilePath=m.currentChangedFilePath,g.currentAffectedFilesSignatures=m.currentAffectedFilesSignatures&&new e.Map(m.currentAffectedFilesSignatures),g.currentAffectedFilesExportedModulesMap=(u=m.currentAffectedFilesExportedModulesMap)===null||u===void 0?void 0:u.clone(),g.seenAffectedFiles=m.seenAffectedFiles&&new e.Set(m.seenAffectedFiles),g.cleanedDiagnosticsOfLibFiles=m.cleanedDiagnosticsOfLibFiles,g.semanticDiagnosticsFromOldState=m.semanticDiagnosticsFromOldState&&new e.Set(m.semanticDiagnosticsFromOldState),g.program=m.program,g.compilerOptions=m.compilerOptions,g.affectedFilesPendingEmit=m.affectedFilesPendingEmit&&m.affectedFilesPendingEmit.slice(),g.affectedFilesPendingEmitKind=m.affectedFilesPendingEmitKind&&new e.Map(m.affectedFilesPendingEmitKind),g.affectedFilesPendingEmitIndex=m.affectedFilesPendingEmitIndex,g.seenEmittedFiles=m.seenEmittedFiles&&new e.Map(m.seenEmittedFiles),g.programEmitComplete=m.programEmitComplete,g}function H(m,u){e.Debug.assert(!u||!m.affectedFiles||m.affectedFiles[m.affectedFilesIndex-1]!==u||!m.semanticDiagnosticsPerFile.has(u.resolvedPath))}function h(m,u,g){for(;;){var F=m.affectedFiles;if(F){for(var te=m.seenAffectedFiles,ue=m.affectedFilesIndex;ue<F.length;){var X=F[ue];if(!te.has(X.resolvedPath))return m.affectedFilesIndex=ue,A(m,X,u,g),X;ue++}m.changedFilesSet.delete(m.currentChangedFilePath),m.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(m,m.currentAffectedFilesSignatures),m.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(m,m.currentAffectedFilesExportedModulesMap),m.affectedFiles=void 0}var j=m.changedFilesSet.keys().next();if(j.done)return;var Se=e.Debug.checkDefined(m.program),Ce=Se.getCompilerOptions();if(e.outFile(Ce))return e.Debug.assert(!m.semanticDiagnosticsPerFile),Se;m.currentAffectedFilesSignatures||(m.currentAffectedFilesSignatures=new e.Map),m.exportedModulesMap&&(m.currentAffectedFilesExportedModulesMap||(m.currentAffectedFilesExportedModulesMap=e.BuilderState.createManyToManyPathMap())),m.affectedFiles=e.BuilderState.getFilesAffectedBy(m,Se,j.value,u,g,m.currentAffectedFilesSignatures,m.currentAffectedFilesExportedModulesMap),m.currentChangedFilePath=j.value,m.affectedFilesIndex=0,m.seenAffectedFiles||(m.seenAffectedFiles=new e.Set)}}function v(m){var u=m.affectedFilesPendingEmit;if(u){for(var g=m.seenEmittedFiles||(m.seenEmittedFiles=new e.Map),F=m.affectedFilesPendingEmitIndex;F<u.length;F++){var te=e.Debug.checkDefined(m.program).getSourceFileByPath(u[F]);if(te){var ue=g.get(te.resolvedPath),X=e.Debug.checkDefined(e.Debug.checkDefined(m.affectedFilesPendingEmitKind).get(te.resolvedPath));if(ue===void 0||ue<X)return m.affectedFilesPendingEmitIndex=F,{affectedFile:te,emitKind:X}}}m.affectedFilesPendingEmit=void 0,m.affectedFilesPendingEmitKind=void 0,m.affectedFilesPendingEmitIndex=void 0}}function A(m,u,g,F){var te;if(ie(m,u.resolvedPath),m.allFilesExcludingDefaultLibraryFile===m.affectedFiles){if(!m.cleanedDiagnosticsOfLibFiles){m.cleanedDiagnosticsOfLibFiles=!0;var ue=e.Debug.checkDefined(m.program),X=ue.getCompilerOptions();e.forEach(ue.getSourceFiles(),function(j){return ue.isSourceFileDefaultLibrary(j)&&!e.skipTypeChecking(j,X,ue)&&ie(m,j.resolvedPath)})}e.BuilderState.updateShapeSignature(m,e.Debug.checkDefined(m.program),u,e.Debug.checkDefined(m.currentAffectedFilesSignatures),g,F,m.currentAffectedFilesExportedModulesMap);return}else e.Debug.assert(m.hasCalledUpdateShapeSignature.has(u.resolvedPath)||((te=m.currentAffectedFilesSignatures)===null||te===void 0?void 0:te.has(u.resolvedPath)),"Signature not updated for affected file: ".concat(u.fileName));m.compilerOptions.assumeChangesOnlyAffectDirectDependencies||P(m,u,function(j,Se){return q(j,Se,g,F)})}function q(m,u,g,F){if(ie(m,u),!m.changedFilesSet.has(u)){var te=e.Debug.checkDefined(m.program),ue=te.getSourceFileByPath(u);ue&&(e.BuilderState.updateShapeSignature(m,te,ue,e.Debug.checkDefined(m.currentAffectedFilesSignatures),g,F,m.currentAffectedFilesExportedModulesMap,!0),e.getEmitDeclarations(m.compilerOptions)&&I(m,u,0))}}function ie(m,u){return m.semanticDiagnosticsFromOldState?(m.semanticDiagnosticsFromOldState.delete(u),m.semanticDiagnosticsPerFile.delete(u),!m.semanticDiagnosticsFromOldState.size):!0}function b(m,u){var g=e.Debug.checkDefined(m.currentAffectedFilesSignatures).get(u),F=e.Debug.checkDefined(m.fileInfos.get(u)).signature;return g!==F}function P(m,u,g){var F,te;if(!(!m.exportedModulesMap||!m.changedFilesSet.has(u.resolvedPath))&&!!b(m,u.resolvedPath)){if(m.compilerOptions.isolatedModules){var ue=new e.Map;ue.set(u.resolvedPath,!0);for(var X=e.BuilderState.getReferencedByPaths(m,u.resolvedPath);X.length>0;){var j=X.pop();if(!ue.has(j)&&(ue.set(j,!0),g(m,j),b(m,j))){var Se=e.Debug.checkDefined(m.program).getSourceFileByPath(j);X.push.apply(X,e.BuilderState.getReferencedByPaths(m,Se.resolvedPath))}}}e.Debug.assert(!!m.currentAffectedFilesExportedModulesMap);var Ce=new e.Set;(F=m.currentAffectedFilesExportedModulesMap.getKeys(u.resolvedPath))===null||F===void 0||F.forEach(function(O){return S(m,O,Ce,g)}),(te=m.exportedModulesMap.getKeys(u.resolvedPath))===null||te===void 0||te.forEach(function(O){var Q;return!m.currentAffectedFilesExportedModulesMap.hasKey(O)&&!(!((Q=m.currentAffectedFilesExportedModulesMap.deletedKeys())===null||Q===void 0)&&Q.has(O))&&S(m,O,Ce,g)})}}function S(m,u,g,F){var te;(te=m.referencedMap.getKeys(u))===null||te===void 0||te.forEach(function(ue){return B(m,ue,g,F)})}function B(m,u,g,F){var te,ue,X;!e.tryAddToSet(g,u)||(F(m,u),e.Debug.assert(!!m.currentAffectedFilesExportedModulesMap),(te=m.currentAffectedFilesExportedModulesMap.getKeys(u))===null||te===void 0||te.forEach(function(j){return B(m,j,g,F)}),(ue=m.exportedModulesMap.getKeys(u))===null||ue===void 0||ue.forEach(function(j){var Se;return!m.currentAffectedFilesExportedModulesMap.hasKey(j)&&!(!((Se=m.currentAffectedFilesExportedModulesMap.deletedKeys())===null||Se===void 0)&&Se.has(j))&&B(m,j,g,F)}),(X=m.referencedMap.getKeys(u))===null||X===void 0||X.forEach(function(j){return!g.has(j)&&F(m,j)}))}function J(m,u,g,F,te){te?m.buildInfoEmitPending=!1:u===m.program?(m.changedFilesSet.clear(),m.programEmitComplete=!0):(m.seenAffectedFiles.add(u.resolvedPath),g!==void 0&&(m.seenEmittedFiles||(m.seenEmittedFiles=new e.Map)).set(u.resolvedPath,g),F?(m.affectedFilesPendingEmitIndex++,m.buildInfoEmitPending=!0):m.affectedFilesIndex++)}function k(m,u,g){return J(m,g),{result:u,affected:g}}function M(m,u,g,F,te,ue){return J(m,g,F,te,ue),{result:u,affected:g}}function x(m,u,g){return e.concatenate(w(m,u,g),e.Debug.checkDefined(m.program).getProgramDiagnostics(u))}function w(m,u,g){var F=u.resolvedPath;if(m.semanticDiagnosticsPerFile){var te=m.semanticDiagnosticsPerFile.get(F);if(te)return e.filterSemanticDiagnostics(te,m.compilerOptions)}var ue=e.Debug.checkDefined(m.program).getBindAndCheckDiagnostics(u,g);return m.semanticDiagnosticsPerFile&&m.semanticDiagnosticsPerFile.set(F,ue),e.filterSemanticDiagnostics(ue,m.compilerOptions)}function K(m,u){if(e.outFile(m.compilerOptions))return;var g=e.Debug.checkDefined(m.program).getCurrentDirectory(),F=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(m.compilerOptions),g)),te=[],ue=new e.Map,X,j,Se=e.arrayFrom(m.fileInfos.entries(),function(qe){var Xe=qe[0],De=qe[1],Ae=_e(Xe);e.Debug.assert(te[Ae-1]===Ve(Xe));var Ye=m.currentAffectedFilesSignatures&&m.currentAffectedFilesSignatures.get(Xe),Lr=Ye!=null?Ye:De.signature;return De.version===Lr?De.affectsGlobalScope?{version:De.version,signature:void 0,affectsGlobalScope:!0,impliedFormat:De.impliedFormat}:De.version:Lr!==void 0?Ye===void 0?De:{version:De.version,signature:Ye,affectsGlobalScope:De.affectsGlobalScope,impliedFormat:De.impliedFormat}:{version:De.version,signature:!1,affectsGlobalScope:De.affectsGlobalScope,impliedFormat:De.impliedFormat}}),Ce;m.referencedMap&&(Ce=e.arrayFrom(m.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map(function(qe){return[_e(qe),Le(m.referencedMap.getValues(qe))]}));var O;m.exportedModulesMap&&(O=e.mapDefined(e.arrayFrom(m.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),function(qe){var Xe;if(m.currentAffectedFilesExportedModulesMap){if(!((Xe=m.currentAffectedFilesExportedModulesMap.deletedKeys())===null||Xe===void 0)&&Xe.has(qe))return;var De=m.currentAffectedFilesExportedModulesMap.getValues(qe);if(De)return[_e(qe),Le(De)]}return[_e(qe),Le(m.exportedModulesMap.getValues(qe))]}));var Q;if(m.semanticDiagnosticsPerFile)for(var V=0,z=e.arrayFrom(m.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);V<z.length;V++){var Te=z[V],ge=m.semanticDiagnosticsPerFile.get(Te);(Q||(Q=[])).push(ge.length?[_e(Te),m.hasReusableDiagnostic?ge:R(ge,Ve)]:_e(Te))}var ke;if(m.affectedFilesPendingEmit)for(var Me=new e.Set,Ie=0,Ge=m.affectedFilesPendingEmit.slice(m.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);Ie<Ge.length;Ie++){var he=Ge[Ie];e.tryAddToSet(Me,he)&&(ke||(ke=[])).push([_e(he),m.affectedFilesPendingEmitKind.get(he)])}return{fileNames:te,fileInfos:Se,options:Z(m.compilerOptions,ve),fileIdsList:X,referencedMap:Ce,exportedModulesMap:O,semanticDiagnosticsPerFile:Q,affectedFilesPendingEmit:ke};function ve(qe){return Ve(e.getNormalizedAbsolutePath(qe,g))}function Ve(qe){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(F,qe,u))}function _e(qe){var Xe=ue.get(qe);return Xe===void 0&&(te.push(Ve(qe)),ue.set(qe,Xe=te.length)),Xe}function Le(qe){var Xe=e.arrayFrom(qe.keys(),_e).sort(e.compareValues),De=Xe.join(),Ae=j==null?void 0:j.get(De);return Ae===void 0&&((X||(X=[])).push(Xe),(j||(j=new e.Map)).set(De,Ae=X.length)),Ae}}function Z(m,u){for(var g,F=e.getOptionsNameMap().optionsNameMap,te=0,ue=e.getOwnKeys(m).sort(e.compareStringsCaseSensitive);te<ue.length;te++){var X=ue[te],j=X.toLowerCase(),Se=F.get(j);((Se==null?void 0:Se.affectsEmit)||(Se==null?void 0:Se.affectsSemanticDiagnostics)||j==="strict"||j==="skiplibcheck"||j==="skipdefaultlibcheck")&&((g||(g={}))[X]=ne(Se,m[X],u))}return g}function ne(m,u,g){if(m){if(m.type==="list"){var F=u;if(m.element.isFilePath&&F.length)return F.map(g)}else if(m.isFilePath)return g(u)}return u}function R(m,u){return e.Debug.assert(!!m.length),m.map(function(g){var F=Y(g,u);F.reportsUnnecessary=g.reportsUnnecessary,F.reportDeprecated=g.reportsDeprecated,F.source=g.source,F.skippedOn=g.skippedOn;var te=g.relatedInformation;return F.relatedInformation=te?te.length?te.map(function(ue){return Y(ue,u)}):[]:void 0,F})}function Y(m,u){var g=m.file;return Rn(Rn({},m),{file:g?u(g.resolvedPath):void 0})}var U;(function(m){m[m.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",m[m.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"})(U=e.BuilderProgramKind||(e.BuilderProgramKind={}));function $(m,u,g,F,te,ue){var X,j,Se;return m===void 0?(e.Debug.assert(u===void 0),X=g,Se=F,e.Debug.assert(!!Se),j=Se.getProgram()):e.isArray(m)?(Se=F,j=e.createProgram({rootNames:m,options:u,host:g,oldProgram:Se&&Se.getProgramOrUndefined(),configFileParsingDiagnostics:te,projectReferences:ue}),X=g):(j=m,X=u,Se=g,te=F),{host:X,newProgram:j,oldProgram:Se,configFileParsingDiagnostics:te||e.emptyArray}}e.getBuilderCreationParameters=$;function T(m,u){var g=u.newProgram,F=u.host,te=u.oldProgram,ue=u.configFileParsingDiagnostics,X=te&&te.getState();if(X&&g===X.program&&ue===g.getConfigFileParsingDiagnostics())return g=void 0,X=void 0,te;var j=e.createGetCanonicalFileName(F.useCaseSensitiveFileNames()),Se=e.maybeBind(F,F.createHash),Ce=f(g,j,X,F.disableUseFileVersionAsSignature),O;g.getProgramBuildInfo=function(){return K(Ce,j)},g=void 0,te=void 0,X=void 0;var Q=function(){return Ce},V=C(Q,ue);return V.getState=Q,V.backupState=function(){e.Debug.assert(O===void 0),O=N(Ce)},V.restoreState=function(){Ce=e.Debug.checkDefined(O),O=void 0},V.getAllDependencies=function(Ie){return e.BuilderState.getAllDependencies(Ce,e.Debug.checkDefined(Ce.program),Ie)},V.getSemanticDiagnostics=Me,V.emit=ge,V.releaseProgram=function(){p(Ce),O=void 0},m===U.SemanticDiagnosticsBuilderProgram?V.getSemanticDiagnosticsOfNextAffectedFile=ke:m===U.EmitAndSemanticDiagnosticsBuilderProgram?(V.getSemanticDiagnosticsOfNextAffectedFile=ke,V.emitNextAffectedFile=Te,V.emitBuildInfo=z):e.notImplemented(),V;function z(Ie,Ge){if(Ce.buildInfoEmitPending){var he=e.Debug.checkDefined(Ce.program).emitBuildInfo(Ie||e.maybeBind(F,F.writeFile),Ge);return Ce.buildInfoEmitPending=!1,he}return e.emitSkippedWithNoDiagnostics}function Te(Ie,Ge,he,ve){var Ve=h(Ce,Ge,Se),_e=1,Le=!1;if(!Ve)if(e.outFile(Ce.compilerOptions)){var De=e.Debug.checkDefined(Ce.program);if(Ce.programEmitComplete)return;Ve=De}else{var qe=v(Ce);if(!qe){if(!Ce.buildInfoEmitPending)return;var Xe=e.Debug.checkDefined(Ce.program);return M(Ce,Xe.emitBuildInfo(Ie||e.maybeBind(F,F.writeFile),Ge),Xe,1,!1,!0)}Ve=qe.affectedFile,_e=qe.emitKind,Le=!0}return M(Ce,e.Debug.checkDefined(Ce.program).emit(Ve===Ce.program?void 0:Ve,Ie||e.maybeBind(F,F.writeFile),Ge,he||_e===0,ve),Ve,_e,Le)}function ge(Ie,Ge,he,ve,Ve){var _e=!1,Le,qe,Xe;m!==U.EmitAndSemanticDiagnosticsBuilderProgram&&!Ie&&!e.outFile(Ce.compilerOptions)&&!Ce.compilerOptions.noEmit&&Ce.compilerOptions.noEmitOnError&&(_e=!0,Le=Ce.affectedFilesPendingEmit&&Ce.affectedFilesPendingEmit.slice(),qe=Ce.affectedFilesPendingEmitKind&&new e.Map(Ce.affectedFilesPendingEmitKind),Xe=Ce.affectedFilesPendingEmitIndex),m===U.EmitAndSemanticDiagnosticsBuilderProgram&&H(Ce,Ie);var De=e.handleNoEmitOptions(V,Ie,Ge,he);if(De)return De;if(_e&&(Ce.affectedFilesPendingEmit=Le,Ce.affectedFilesPendingEmitKind=qe,Ce.affectedFilesPendingEmitIndex=Xe),!Ie&&m===U.EmitAndSemanticDiagnosticsBuilderProgram){for(var Ae=[],Ye=!1,Lr=void 0,Er=[],lr=void 0;lr=Te(Ge,he,ve,Ve);)Ye=Ye||lr.result.emitSkipped,Lr=e.addRange(Lr,lr.result.diagnostics),Er=e.addRange(Er,lr.result.emittedFiles),Ae=e.addRange(Ae,lr.result.sourceMaps);return{emitSkipped:Ye,diagnostics:Lr||e.emptyArray,emittedFiles:Er,sourceMaps:Ae}}return e.Debug.checkDefined(Ce.program).emit(Ie,Ge||e.maybeBind(F,F.writeFile),he,ve,Ve)}function ke(Ie,Ge){for(;;){var he=h(Ce,Ie,Se);if(he){if(he===Ce.program)return k(Ce,Ce.program.getSemanticDiagnostics(void 0,Ie),he)}else return;if((m===U.EmitAndSemanticDiagnosticsBuilderProgram||Ce.compilerOptions.noEmit||Ce.compilerOptions.noEmitOnError)&&I(Ce,he.resolvedPath,1),Ge&&Ge(he)){J(Ce,he);continue}return k(Ce,x(Ce,he,Ie),he)}}function Me(Ie,Ge){H(Ce,Ie);var he=e.Debug.checkDefined(Ce.program).getCompilerOptions();if(e.outFile(he))return e.Debug.assert(!Ce.semanticDiagnosticsPerFile),e.Debug.checkDefined(Ce.program).getSemanticDiagnostics(Ie,Ge);if(Ie)return x(Ce,Ie,Ge);for(;ke(Ge););for(var ve,Ve=0,_e=e.Debug.checkDefined(Ce.program).getSourceFiles();Ve<_e.length;Ve++){var Le=_e[Ve];ve=e.addRange(ve,x(Ce,Le,Ge))}return ve||e.emptyArray}}e.createBuilderProgram=T;function I(m,u,g){m.affectedFilesPendingEmit||(m.affectedFilesPendingEmit=[]),m.affectedFilesPendingEmitKind||(m.affectedFilesPendingEmitKind=new e.Map);var F=m.affectedFilesPendingEmitKind.get(u);m.affectedFilesPendingEmit.push(u),m.affectedFilesPendingEmitKind.set(u,F||g),m.affectedFilesPendingEmitIndex===void 0&&(m.affectedFilesPendingEmitIndex=0)}function y(m){return e.isString(m)?{version:m,signature:m,affectsGlobalScope:void 0,impliedFormat:void 0}:e.isString(m.signature)?m:{version:m.version,signature:m.signature===!1?void 0:m.version,affectsGlobalScope:m.affectsGlobalScope,impliedFormat:m.impliedFormat}}e.toBuilderStateFileInfo=y;function D(m,u,g){var F,te=e.getDirectoryPath(e.getNormalizedAbsolutePath(u,g.getCurrentDirectory())),ue=e.createGetCanonicalFileName(g.useCaseSensitiveFileNames()),X=m.fileNames.map(O),j=(F=m.fileIdsList)===null||F===void 0?void 0:F.map(function(ge){return new e.Set(ge.map(V))}),Se=new e.Map;m.fileInfos.forEach(function(ge,ke){return Se.set(V(ke+1),y(ge))});var Ce={fileInfos:Se,compilerOptions:m.options?e.convertToOptionsWithAbsolutePaths(m.options,Q):{},referencedMap:Te(m.referencedMap),exportedModulesMap:Te(m.exportedModulesMap),semanticDiagnosticsPerFile:m.semanticDiagnosticsPerFile&&e.arrayToMap(m.semanticDiagnosticsPerFile,function(ge){return V(e.isNumber(ge)?ge:ge[0])},function(ge){return e.isNumber(ge)?e.emptyArray:ge[1]}),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(m.affectedFilesPendingEmit,function(ge){return V(ge[0])}),affectedFilesPendingEmitKind:m.affectedFilesPendingEmit&&e.arrayToMap(m.affectedFilesPendingEmit,function(ge){return V(ge[0])},function(ge){return ge[1]}),affectedFilesPendingEmitIndex:m.affectedFilesPendingEmit&&0};return{getState:function(){return Ce},backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return Ce.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 O(ge){return e.toPath(ge,te,ue)}function Q(ge){return e.getNormalizedAbsolutePath(ge,te)}function V(ge){return X[ge-1]}function z(ge){return j[ge-1]}function Te(ge){if(!!ge){var ke=e.BuilderState.createManyToManyPathMap();return ge.forEach(function(Me){var Ie=Me[0],Ge=Me[1];return ke.set(V(Ie),z(Ge))}),ke}}}e.createBuildProgramUsingProgramBuildInfo=D;function C(m,u){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:g,getProgramOrUndefined:function(){return m().program},releaseProgram:function(){return m().program=void 0},getCompilerOptions:function(){return m().compilerOptions},getSourceFile:function(F){return g().getSourceFile(F)},getSourceFiles:function(){return g().getSourceFiles()},getOptionsDiagnostics:function(F){return g().getOptionsDiagnostics(F)},getGlobalDiagnostics:function(F){return g().getGlobalDiagnostics(F)},getConfigFileParsingDiagnostics:function(){return u},getSyntacticDiagnostics:function(F,te){return g().getSyntacticDiagnostics(F,te)},getDeclarationDiagnostics:function(F,te){return g().getDeclarationDiagnostics(F,te)},getSemanticDiagnostics:function(F,te){return g().getSemanticDiagnostics(F,te)},emit:function(F,te,ue,X,j){return g().emit(F,te,ue,X,j)},emitBuildInfo:function(F,te){return g().emitBuildInfo(F,te)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return g().getCurrentDirectory()},close:e.noop};function g(){return e.Debug.checkDefined(m().program)}}e.createRedirectedBuilderProgram=C})(gr||(gr={}));var gr;(function(e){function n(a,p,N,H,h,v){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(a,p,N,H,h,v))}e.createSemanticDiagnosticsBuilderProgram=n;function f(a,p,N,H,h,v){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(a,p,N,H,h,v))}e.createEmitAndSemanticDiagnosticsBuilderProgram=f;function d(a,p,N,H,h,v){var A=e.getBuilderCreationParameters(a,p,N,H,h,v),q=A.newProgram,ie=A.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram(function(){return{program:q,compilerOptions:q.getCompilerOptions()}},ie)}e.createAbstractBuilder=d})(gr||(gr={}));var gr;(function(e){function n(p){return e.endsWith(p,"/node_modules/.staging")?e.removeSuffix(p,"/.staging"):e.some(e.ignoredPaths,function(N){return e.stringContains(p,N)})?void 0:p}e.removeIgnoredPath=n;function f(p){var N=e.getRootLength(p);if(p.length===N)return!1;var H=p.indexOf(e.directorySeparator,N);if(H===-1)return!1;var h=p.substring(N,H+1),v=N>1||p.charCodeAt(0)!==47;if(v&&p.search(/[a-zA-Z]:/)!==0&&h.search(/[a-zA-z]\$\//)===0){if(H=p.indexOf(e.directorySeparator,H+1),H===-1)return!1;h=p.substring(N+h.length,H+1)}if(v&&h.search(/users\//i)!==0)return!0;for(var A=H+1,q=2;q>0;q--)if(A=p.indexOf(e.directorySeparator,A)+1,A===0)return!1;return!0}e.canWatchDirectory=f;function d(p,N,H){var h,v,A,q=e.createMultiMap(),ie=[],b=e.createMultiMap(),P=!1,S,B,J,k=e.memoize(function(){return p.getCurrentDirectory()}),M=p.getCachedDirectoryStructureHost(),x=new e.Map,w=e.createCacheWithRedirects(),K=e.createCacheWithRedirects(),Z=e.createModuleResolutionCache(k(),p.getCanonicalFileName,void 0,w,K),ne=new e.Map,R=e.createCacheWithRedirects(),Y=e.createTypeReferenceDirectiveResolutionCache(k(),p.getCanonicalFileName,void 0,Z.getPackageJsonInfoCache(),R),U=[".ts",".tsx",".js",".jsx",".json"],$=new e.Map,T=new e.Map,I=N&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(N,k())),y=I&&p.toPath(I),D=y!==void 0?y.split(e.directorySeparator).length:0,C=new e.Map;return{getModuleResolutionCache:function(){return Z},startRecordingFilesWithChangedResolutions:te,finishRecordingFilesWithChangedResolutions:ue,startCachingPerDirectoryResolution:Se,finishCachingPerDirectoryResolution:Ce,resolveModuleNames:Te,getResolvedModuleWithFailedLookupLocationsFromCache:ge,resolveTypeReferenceDirectives:z,removeResolutionsFromProjectReferenceRedirects:Ae,removeResolutionsOfFile:Ye,hasChangedAutomaticTypeDirectiveNames:function(){return P},invalidateResolutionOfFile:Er,invalidateResolutionsOfFailedLookupLocations:Or,setFilesWithInvalidatedNonRelativeUnresolvedImports:lr,createHasInvalidatedResolution:j,isFileWithInvalidatedNonRelativeUnresolvedImports:X,updateTypeRootsWatch:vr,closeTypeRootsWatch:Pe,clear:F};function m(Fe){return Fe.resolvedModule}function u(Fe){return Fe.resolvedTypeReferenceDirective}function g(Fe,$e){return Fe===void 0||$e.length<=Fe.length?!1:e.startsWith($e,Fe)&&$e[Fe.length]===e.directorySeparator}function F(){e.clearMap(T,e.closeFileWatcherOf),$.clear(),q.clear(),Pe(),x.clear(),ne.clear(),b.clear(),ie.length=0,S=void 0,B=void 0,J=void 0,Se(),P=!1}function te(){h=[]}function ue(){var Fe=h;return h=void 0,Fe}function X(Fe){if(!A)return!1;var $e=A.get(Fe);return!!$e&&!!$e.length}function j(Fe){if(Or(),Fe)return v=void 0,e.returnTrue;var $e=v;return v=void 0,function(Dr){return!!$e&&$e.has(Dr)||X(Dr)}}function Se(){Z.clear(),Y.clear(),q.forEach(Ve),q.clear()}function Ce(){A=void 0,Se(),T.forEach(function(Fe,$e){Fe.refCount===0&&(T.delete($e),Fe.watcher.close())}),P=!1}function O(Fe,$e,Dr,Fr,He){var pr,Jr=e.resolveModuleName(Fe,$e,Dr,Fr,Z,He);if(!p.getGlobalCache)return Jr;var ze=p.getGlobalCache();if(ze!==void 0&&!e.isExternalModuleNameRelative(Fe)&&!(Jr.resolvedModule&&e.extensionIsTS(Jr.resolvedModule.extension))){var Ar=e.loadModuleFromGlobalCache(e.Debug.checkDefined(p.globalCacheResolutionModuleName)(Fe),p.projectName,Dr,Fr,ze,Z),Yr=Ar.resolvedModule,lt=Ar.failedLookupLocations;if(Yr)return Jr.resolvedModule=Yr,(pr=Jr.failedLookupLocations).push.apply(pr,lt),Jr}return Jr}function Q(Fe,$e,Dr,Fr,He){return e.resolveTypeReferenceDirective(Fe,$e,Dr,Fr,He,Y)}function V(Fe){var $e,Dr,Fr,He=Fe.names,pr=Fe.containingFile,Jr=Fe.redirectedReference,ze=Fe.cache,Ar=Fe.perDirectoryCacheWithRedirects,Yr=Fe.loader,lt=Fe.getResolutionWithResolvedFileName,tt=Fe.shouldRetryResolution,Rt=Fe.reusedNames,cn=Fe.logChanges,bn=Fe.containingSourceFile,In=p.toPath(pr),zn=ze.get(In)||ze.set(In,e.createModeAwareCache()).get(In),ir=e.getDirectoryPath(In),Rr=Ar.getOrCreateMapOfCacheRedirects(Jr),sr=Rr.get(ir);sr||(sr=e.createModeAwareCache(),Rr.set(ir,sr));for(var ye=[],or=p.getCompilationSettings(),fe=cn&&X(In),je=p.getCurrentProgram(),Ee=je&&je.getResolvedProjectReferenceToRedirect(pr),We=Ee?!Jr||Jr.sourceFile.path!==Ee.sourceFile.path:!!Jr,ee=e.createModeAwareCache(),Ne=0,me=0,Ze=He;me<Ze.length;me++){var xr=Ze[me],fr=bn?e.getModeForResolutionAtIndex(bn,Ne):void 0;Ne++;var dr=zn.get(xr,fr);if(!ee.has(xr,fr)&&We||!dr||dr.isInvalidated||fe&&!e.isExternalModuleNameRelative(xr)&&tt(dr)){var et=dr,yt=sr.get(xr,fr);if(yt){dr=yt;var Wr=(($e=p.getCompilerHost)===null||$e===void 0?void 0:$e.call(p))||p;if(e.isTraceEnabled(or,Wr)){var tr=lt(dr);e.trace(Wr,Yr===O?tr!=null&&tr.resolvedFileName?tr.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:tr!=null&&tr.resolvedFileName?tr.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,xr,pr,e.getDirectoryPath(pr),tr==null?void 0:tr.resolvedFileName,(tr==null?void 0:tr.packagetId)&&e.packageIdToString(tr.packagetId))}}else dr=Yr(xr,pr,or,((Dr=p.getCompilerHost)===null||Dr===void 0?void 0:Dr.call(p))||p,Jr,bn),sr.set(xr,fr,dr),p.onDiscoveredSymlink&&a(dr)&&p.onDiscoveredSymlink();zn.set(xr,fr,dr),he(xr,dr,In,lt),et&&Le(et,In,lt),cn&&h&&!Ir(et,dr)&&(h.push(In),cn=!1)}else{var Wr=((Fr=p.getCompilerHost)===null||Fr===void 0?void 0:Fr.call(p))||p;if(e.isTraceEnabled(or,Wr)&&!ee.has(xr,fr)){var tr=lt(dr);e.trace(Wr,Yr===O?tr!=null&&tr.resolvedFileName?tr.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:tr!=null&&tr.resolvedFileName?tr.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,xr,pr,tr==null?void 0:tr.resolvedFileName,(tr==null?void 0:tr.packagetId)&&e.packageIdToString(tr.packagetId))}}e.Debug.assert(dr!==void 0&&!dr.isInvalidated),ee.set(xr,fr,!0),ye.push(lt(dr))}return zn.forEach(function(kr,zr,gt){!ee.has(zr,gt)&&!e.contains(Rt,zr)&&(Le(kr,In,lt),zn.delete(zr,gt))}),ye;function Ir(kr,zr){if(kr===zr)return!0;if(!kr||!zr)return!1;var gt=lt(kr),vt=lt(zr);return gt===vt?!0:!gt||!vt?!1:gt.resolvedFileName===vt.resolvedFileName}}function z(Fe,$e,Dr){return V({names:Fe,containingFile:$e,redirectedReference:Dr,cache:ne,perDirectoryCacheWithRedirects:R,loader:Q,getResolutionWithResolvedFileName:u,shouldRetryResolution:function(Fr){return Fr.resolvedTypeReferenceDirective===void 0}})}function Te(Fe,$e,Dr,Fr,He){return V({names:Fe,containingFile:$e,redirectedReference:Fr,cache:x,perDirectoryCacheWithRedirects:w,loader:O,getResolutionWithResolvedFileName:m,shouldRetryResolution:function(pr){return!pr.resolvedModule||!e.resolutionExtensionIsTSOrJson(pr.resolvedModule.extension)},reusedNames:Dr,logChanges:H,containingSourceFile:He})}function ge(Fe,$e,Dr){var Fr=x.get(p.toPath($e));if(!!Fr)return Fr.get(Fe,Dr)}function ke(Fe){return e.endsWith(Fe,"/node_modules/@types")}function Me(Fe,$e){if(g(y,$e)){Fe=e.isRootedDiskPath(Fe)?e.normalizePath(Fe):e.getNormalizedAbsolutePath(Fe,k());var Dr=$e.split(e.directorySeparator),Fr=Fe.split(e.directorySeparator);return e.Debug.assert(Fr.length===Dr.length,"FailedLookup: ".concat(Fe," failedLookupLocationPath: ").concat($e)),Dr.length>D+1?{dir:Fr.slice(0,D+1).join(e.directorySeparator),dirPath:Dr.slice(0,D+1).join(e.directorySeparator)}:{dir:I,dirPath:y,nonRecursive:!1}}return Ie(e.getDirectoryPath(e.getNormalizedAbsolutePath(Fe,k())),e.getDirectoryPath($e))}function Ie(Fe,$e){for(;e.pathContainsNodeModules($e);)Fe=e.getDirectoryPath(Fe),$e=e.getDirectoryPath($e);if(e.isNodeModulesDirectory($e))return f(e.getDirectoryPath($e))?{dir:Fe,dirPath:$e}:void 0;var Dr=!0,Fr,He;if(y!==void 0)for(;!g($e,y);){var pr=e.getDirectoryPath($e);if(pr===$e)break;Dr=!1,Fr=$e,He=Fe,$e=pr,Fe=e.getDirectoryPath(Fe)}return f($e)?{dir:He||Fe,dirPath:Fr||$e,nonRecursive:Dr}:void 0}function Ge(Fe){return e.fileExtensionIsOneOf(Fe,U)}function he(Fe,$e,Dr,Fr){if($e.refCount)$e.refCount++,e.Debug.assertDefined($e.files);else{$e.refCount=1,e.Debug.assert(e.length($e.files)===0),e.isExternalModuleNameRelative(Fe)?ve($e):q.add(Fe,$e);var He=Fr($e);He&&He.resolvedFileName&&b.add(p.toPath(He.resolvedFileName),$e)}($e.files||($e.files=[])).push(Dr)}function ve(Fe){e.Debug.assert(!!Fe.refCount);var $e=Fe.failedLookupLocations;if(!!$e.length){ie.push(Fe);for(var Dr=!1,Fr=0,He=$e;Fr<He.length;Fr++){var pr=He[Fr],Jr=p.toPath(pr),ze=Me(pr,Jr);if(ze){var Ar=ze.dir,Yr=ze.dirPath,lt=ze.nonRecursive;if(!Ge(Jr)){var tt=$.get(Jr)||0;$.set(Jr,tt+1)}Yr===y?(e.Debug.assert(!lt),Dr=!0):_e(Ar,Yr,lt)}}Dr&&_e(I,y,!0)}}function Ve(Fe,$e){var Dr=p.getCurrentProgram();(!Dr||!Dr.getTypeChecker().tryFindAmbientModuleWithoutAugmentations($e))&&Fe.forEach(ve)}function _e(Fe,$e,Dr){var Fr=T.get($e);Fr?(e.Debug.assert(!!Dr==!!Fr.nonRecursive),Fr.refCount++):T.set($e,{watcher:Xe(Fe,$e,Dr),refCount:1,nonRecursive:Dr})}function Le(Fe,$e,Dr){if(e.unorderedRemoveItem(e.Debug.assertDefined(Fe.files),$e),Fe.refCount--,!Fe.refCount){var Fr=Dr(Fe);if(Fr&&Fr.resolvedFileName&&b.remove(p.toPath(Fr.resolvedFileName),Fe),!!e.unorderedRemoveItem(ie,Fe)){for(var He=Fe.failedLookupLocations,pr=!1,Jr=0,ze=He;Jr<ze.length;Jr++){var Ar=ze[Jr],Yr=p.toPath(Ar),lt=Me(Ar,Yr);if(lt){var tt=lt.dirPath,Rt=$.get(Yr);Rt&&(Rt===1?$.delete(Yr):(e.Debug.assert(Rt>1),$.set(Yr,Rt-1))),tt===y?pr=!0:qe(tt)}}pr&&qe(y)}}}function qe(Fe){var $e=T.get(Fe);$e.refCount--}function Xe(Fe,$e,Dr){return p.watchDirectoryOfFailedLookupLocation(Fe,function(Fr){var He=p.toPath(Fr);M&&M.addOrDeleteFileOrDirectory(Fr,He),Cr(He,$e===He)},Dr?0:1)}function De(Fe,$e,Dr){var Fr=Fe.get($e);Fr&&(Fr.forEach(function(He){return Le(He,$e,Dr)}),Fe.delete($e))}function Ae(Fe){if(!!e.fileExtensionIs(Fe,".json")){var $e=p.getCurrentProgram();if(!!$e){var Dr=$e.getResolvedProjectReferenceByPath(Fe);!Dr||Dr.commandLine.fileNames.forEach(function(Fr){return Ye(p.toPath(Fr))})}}}function Ye(Fe){De(x,Fe,m),De(ne,Fe,u)}function Lr(Fe,$e){if(!Fe)return!1;for(var Dr=!1,Fr=0,He=Fe;Fr<He.length;Fr++){var pr=He[Fr];if(!(pr.isInvalidated||!$e(pr))){pr.isInvalidated=Dr=!0;for(var Jr=0,ze=e.Debug.assertDefined(pr.files);Jr<ze.length;Jr++){var Ar=ze[Jr];(v||(v=new e.Set)).add(Ar),P=P||e.endsWith(Ar,e.inferredTypesContainingFile)}}}return Dr}function Er(Fe){Ye(Fe);var $e=P;Lr(b.get(Fe),e.returnTrue)&&P&&!$e&&p.onChangedAutomaticTypeDirectiveNames()}function lr(Fe){e.Debug.assert(A===Fe||A===void 0),A=Fe}function Cr(Fe,$e){if($e)(J||(J=[])).push(Fe);else{var Dr=n(Fe);if(!Dr||(Fe=Dr,p.fileIsOpen(Fe)))return!1;var Fr=e.getDirectoryPath(Fe);if(ke(Fe)||e.isNodeModulesDirectory(Fe)||ke(Fr)||e.isNodeModulesDirectory(Fr))(S||(S=[])).push(Fe),(B||(B=new e.Set)).add(Fe);else{if(!Ge(Fe)&&!$.has(Fe)||e.isEmittedFileOfProgram(p.getCurrentProgram(),Fe))return!1;(S||(S=[])).push(Fe);var He=e.parseNodeModuleFromPath(Fe);He&&(B||(B=new e.Set)).add(He)}}p.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Or(){if(!S&&!B&&!J)return!1;var Fe=Lr(ie,Ke);return S=void 0,B=void 0,J=void 0,Fe}function Ke(Fe){return Fe.failedLookupLocations.some(function($e){var Dr=p.toPath($e);return e.contains(S,Dr)||e.firstDefinedIterator((B==null?void 0:B.keys())||e.emptyIterator,function(Fr){return e.startsWith(Dr,Fr)?!0:void 0})||(J==null?void 0:J.some(function(Fr){return g(Fr,Dr)}))})}function Pe(){e.clearMap(C,e.closeFileWatcher)}function Hr(Fe,$e){if(g(y,$e))return y;var Dr=Ie(Fe,$e);return Dr&&T.has(Dr.dirPath)?Dr.dirPath:void 0}function ur(Fe,$e){return p.watchTypeRootsDirectory($e,function(Dr){var Fr=p.toPath(Dr);M&&M.addOrDeleteFileOrDirectory(Dr,Fr),P=!0,p.onChangedAutomaticTypeDirectiveNames();var He=Hr($e,Fe);He&&Cr(Fr,He===Fr)},1)}function vr(){var Fe=p.getCompilationSettings();if(Fe.types){Pe();return}var $e=e.getEffectiveTypeRoots(Fe,{directoryExists:de,getCurrentDirectory:k});$e?e.mutateMap(C,e.arrayToMap($e,function(Dr){return p.toPath(Dr)}),{createNewValue:ur,onDeleteValue:e.closeFileWatcher}):Pe()}function de(Fe){var $e=e.getDirectoryPath(e.getDirectoryPath(Fe)),Dr=p.toPath($e);return Dr===y||f(Dr)}}e.createResolutionCache=d;function a(p){var N,H;return!!(((N=p.resolvedModule)===null||N===void 0?void 0:N.originalPath)||((H=p.resolvedTypeReferenceDirective)===null||H===void 0?void 0:H.originalPath))}})(gr||(gr={}));var gr;(function(e){(function(n){var f;(function(X){X[X.Relative=0]="Relative",X[X.NonRelative=1]="NonRelative",X[X.Shortest=2]="Shortest",X[X.ExternalNonRelative=3]="ExternalNonRelative"})(f||(f={}));var d;(function(X){X[X.Minimal=0]="Minimal",X[X.Index=1]="Index",X[X.JsExtension=2]="JsExtension"})(d||(d={}));function a(X,j,Se,Ce){var O=j.importModuleSpecifierPreference,Q=j.importModuleSpecifierEnding;return{relativePreference:O==="relative"?0:O==="non-relative"?1:O==="project-relative"?3:2,ending:V()};function V(){switch(Q){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return x(Ce)||N(Se,Ce.path,X)?2:e.getEmitModuleResolutionKind(Se)!==e.ModuleResolutionKind.NodeJs?1:0}}}function p(X,j,Se,Ce){return{relativePreference:e.isExternalModuleNameRelative(j)?0:1,ending:e.hasJSFileExtension(j)||N(X,Se,Ce)?2:e.getEmitModuleResolutionKind(X)!==e.ModuleResolutionKind.NodeJs||e.endsWith(j,"index")?1:0}}function N(X,j,Se){return e.getEmitModuleResolutionKind(X)!==e.ModuleResolutionKind.Node12&&e.getEmitModuleResolutionKind(X)!==e.ModuleResolutionKind.NodeNext?!1:e.getImpliedNodeFormatForFile(j,void 0,H(Se),X)!==e.ModuleKind.CommonJS}function H(X){var j;return{fileExists:X.fileExists,readFile:e.Debug.checkDefined(X.readFile),directoryExists:X.directoryExists,getCurrentDirectory:X.getCurrentDirectory,realpath:X.realpath,useCaseSensitiveFileNames:(j=X.useCaseSensitiveFileNames)===null||j===void 0?void 0:j.call(X)}}function h(X,j,Se,Ce,O){var Q=q(X,j,Se,Ce,p(X,O,j,Ce),{});if(Q!==O)return Q}n.updateModuleSpecifier=h;function v(X,j,Se,Ce,O){return q(X,Se,Ce,O,a(O,{},X,j),{})}n.getModuleSpecifier=v;function A(X,j,Se,Ce,O){var Q=J(j,Ce),V=ne(j,Se,Ce,O);return e.firstDefined(V,function(z){return y(z,Q,Ce,X,!0)})}n.getNodeModulesPackageName=A;function q(X,j,Se,Ce,O,Q){var V=J(j,Ce),z=ne(j,Se,Ce,Q);return e.firstDefined(z,function(Te){return y(Te,V,Ce,X)})||k(Se,V,X,Ce,O)}function ie(X,j,Se,Ce){return b(X,j,Se,Ce)[0]}n.tryGetModuleSpecifiersFromCache=ie;function b(X,j,Se,Ce){var O,Q=e.getSourceFileOfModule(X);if(!Q)return e.emptyArray;var V=(O=Se.getModuleSpecifierCache)===null||O===void 0?void 0:O.call(Se),z=V==null?void 0:V.get(j.path,Q.path,Ce);return[z==null?void 0:z.moduleSpecifiers,Q,z==null?void 0:z.modulePaths,V]}function P(X,j,Se,Ce,O,Q){return S(X,j,Se,Ce,O,Q).moduleSpecifiers}n.getModuleSpecifiers=P;function S(X,j,Se,Ce,O,Q){var V=!1,z=Y(X,j);if(z)return{moduleSpecifiers:[z],computedWithoutCache:V};var Te=b(X,Ce,O,Q),ge=Te[0],ke=Te[1],Me=Te[2],Ie=Te[3];if(ge)return{moduleSpecifiers:ge,computedWithoutCache:V};if(!ke)return{moduleSpecifiers:e.emptyArray,computedWithoutCache:V};V=!0,Me||(Me=R(Ce.path,ke.originalFileName,O));var Ge=B(Me,Se,Ce,O,Q);return Ie==null||Ie.set(Ce.path,ke.path,Q,Me,Ge),{moduleSpecifiers:Ge,computedWithoutCache:V}}n.getModuleSpecifiersWithCacheInfo=S;function B(X,j,Se,Ce,O){var Q=J(Se.path,Ce),V=a(Ce,O,j,Se),z=e.forEach(X,function(Le){return e.forEach(Ce.getFileIncludeReasons().get(e.toPath(Le.path,Ce.getCurrentDirectory(),Q.getCanonicalFileName)),function(qe){if(!(qe.kind!==e.FileIncludeKind.Import||qe.file!==Se.path)){var Xe=e.getModuleNameStringLiteralAt(Se,qe.index).text;return V.relativePreference!==1||!e.pathIsRelative(Xe)?Xe:void 0}})});if(z){var Te=[z];return Te}for(var ge=e.some(X,function(Le){return Le.isInNodeModules}),ke,Me,Ie,Ge=0,he=X;Ge<he.length;Ge++){var ve=he[Ge],Ve=y(ve,Q,Ce,j);if(ke=e.append(ke,Ve),Ve&&ve.isRedirect)return ke;if(!Ve&&!ve.isRedirect){var _e=k(ve.path,Q,j,Ce,V);e.pathIsBareSpecifier(_e)?Me=e.append(Me,_e):(!ge||ve.isInNodeModules)&&(Ie=e.append(Ie,_e))}}return Me!=null&&Me.length?Me:ke!=null&&ke.length?ke:e.Debug.checkDefined(Ie)}function J(X,j){var Se=e.createGetCanonicalFileName(j.useCaseSensitiveFileNames?j.useCaseSensitiveFileNames():!0),Ce=e.getDirectoryPath(X);return{getCanonicalFileName:Se,importingSourceFileName:X,sourceDirectory:Ce}}function k(X,j,Se,Ce,O){var Q=O.ending,V=O.relativePreference,z=Se.baseUrl,Te=Se.paths,ge=Se.rootDirs,ke=j.sourceDirectory,Me=j.getCanonicalFileName,Ie=ge&&I(ge,X,ke,Me,Q,Se)||u(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(ke,X,Me)),Q,Se);if(!z&&!Te||V===0)return Ie;var Ge=e.getNormalizedAbsolutePath(e.getPathsBasePath(Se,Ce)||z,Ce.getCurrentDirectory()),he=te(X,Ge,Me);if(!he)return Ie;var ve=u(he,Q,Se),Ve=Te&&U(e.removeFileExtension(he),ve,Te),_e=Ve===void 0&&z!==void 0?ve:Ve;if(!_e)return Ie;if(V===1)return _e;if(V===3){var Le=Se.configFilePath?e.toPath(e.getDirectoryPath(Se.configFilePath),Ce.getCurrentDirectory(),j.getCanonicalFileName):j.getCanonicalFileName(Ce.getCurrentDirectory()),qe=e.toPath(X,Le,Me),Xe=e.startsWith(ke,Le),De=e.startsWith(qe,Le);if(Xe&&!De||!Xe&&De)return _e;var Ae=K(Ce,e.getDirectoryPath(qe)),Ye=K(Ce,ke);return Ye!==Ae?_e:Ie}return V!==2&&e.Debug.assertNever(V),ue(_e)||M(Ie)<M(_e)?Ie:_e}function M(X){for(var j=0,Se=e.startsWith(X,"./")?2:0;Se<X.length;Se++)X.charCodeAt(Se)===47&&j++;return j}n.countPathComponents=M;function x(X){var j=X.imports;return e.firstDefined(j,function(Se){var Ce=Se.text;return e.pathIsRelative(Ce)?e.hasJSFileExtension(Ce):void 0})||!1}function w(X,j){return e.compareBooleans(j.isRedirect,X.isRedirect)||e.compareNumberOfDirectorySeparators(X.path,j.path)}function K(X,j){return X.getNearestAncestorDirectoryWithPackageJson?X.getNearestAncestorDirectoryWithPackageJson(j):!!e.forEachAncestorDirectory(j,function(Se){return X.fileExists(e.combinePaths(Se,"package.json"))?!0:void 0})}function Z(X,j,Se,Ce,O){var Q,V=e.hostGetCanonicalFileName(Se),z=Se.getCurrentDirectory(),Te=Se.isSourceOfProjectReferenceRedirect(j)?Se.getProjectReferenceRedirect(j):void 0,ge=e.toPath(j,z,V),ke=Se.redirectTargetsMap.get(ge)||e.emptyArray,Me=Gt(Gt(Gt([],Te?[Te]:e.emptyArray,!0),[j],!1),ke,!0),Ie=Me.map(function(Le){return e.getNormalizedAbsolutePath(Le,z)}),Ge=!e.every(Ie,e.containsIgnoredPath);if(!Ce){var he=e.forEach(Ie,function(Le){return!(Ge&&e.containsIgnoredPath(Le))&&O(Le,Te===Le)});if(he)return he}var ve=(Q=Se.getSymlinkCache)===null||Q===void 0?void 0:Q.call(Se).getSymlinkedDirectoriesByRealpath(),Ve=e.getNormalizedAbsolutePath(j,z),_e=ve&&e.forEachAncestorDirectory(e.getDirectoryPath(Ve),function(Le){var qe=ve.get(e.ensureTrailingDirectorySeparator(e.toPath(Le,z,V)));if(!!qe)return e.startsWithDirectory(X,Le,V)?!1:e.forEach(Ie,function(Xe){if(!!e.startsWithDirectory(Xe,Le,V))for(var De=e.getRelativePathFromDirectory(Le,Xe,V),Ae=0,Ye=qe;Ae<Ye.length;Ae++){var Lr=Ye[Ae],Er=e.resolvePath(Lr,De),lr=O(Er,Xe===Te);if(Ge=!0,lr)return lr}})});return _e||(Ce?e.forEach(Ie,function(Le){return Ge&&e.containsIgnoredPath(Le)?void 0:O(Le,Le===Te)}):void 0)}n.forEachFileNameOfModule=Z;function ne(X,j,Se,Ce,O){var Q;O===void 0&&(O=e.toPath(j,Se.getCurrentDirectory(),e.hostGetCanonicalFileName(Se)));var V=(Q=Se.getModuleSpecifierCache)===null||Q===void 0?void 0:Q.call(Se);if(V){var z=V.get(X,O,Ce);if(z!=null&&z.modulePaths)return z.modulePaths}var Te=R(X,j,Se);return V&&V.setModulePaths(X,O,Ce,Te),Te}function R(X,j,Se){var Ce=e.hostGetCanonicalFileName(Se),O=new e.Map;Z(X,j,Se,!0,function(Me,Ie){var Ge=e.pathContainsNodeModules(Me);O.set(Me,{path:Ce(Me),isRedirect:Ie,isInNodeModules:Ge})});for(var Q=[],V=function(Me){var Ie=e.ensureTrailingDirectorySeparator(Me),Ge;O.forEach(function(ve,Ve){var _e=ve.path,Le=ve.isRedirect,qe=ve.isInNodeModules;e.startsWith(_e,Ie)&&((Ge||(Ge=[])).push({path:Ve,isRedirect:Le,isInNodeModules:qe}),O.delete(Ve))}),Ge&&(Ge.length>1&&Ge.sort(w),Q.push.apply(Q,Ge));var he=e.getDirectoryPath(Me);if(he===Me)return z=Me,"break";Me=he,z=Me},z,Te=e.getDirectoryPath(X);O.size!==0;){var ge=V(Te);if(Te=z,ge==="break")break}if(O.size){var ke=e.arrayFrom(O.values());ke.length>1&&ke.sort(w),Q.push.apply(Q,ke)}return Q}function Y(X,j){var Se,Ce=(Se=X.declarations)===null||Se===void 0?void 0:Se.find(function(V){return e.isNonGlobalAmbientModule(V)&&(!e.isExternalModuleAugmentation(V)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(V.name)))});if(Ce)return Ce.name.text;var O=e.mapDefined(X.declarations,function(V){var z,Te,ge,ke;if(!e.isModuleDeclaration(V))return;var Me=ve(V);if(!(((z=Me==null?void 0:Me.parent)===null||z===void 0?void 0:z.parent)&&e.isModuleBlock(Me.parent)&&e.isAmbientModule(Me.parent.parent)&&e.isSourceFile(Me.parent.parent.parent)))return;var Ie=(ke=(ge=(Te=Me.parent.parent.symbol.exports)===null||Te===void 0?void 0:Te.get("export="))===null||ge===void 0?void 0:ge.valueDeclaration)===null||ke===void 0?void 0:ke.expression;if(!Ie)return;var Ge=j.getSymbolAtLocation(Ie);if(!Ge)return;var he=(Ge==null?void 0:Ge.flags)&2097152?j.getAliasedSymbol(Ge):Ge;if(he===V.symbol)return Me.parent.parent;function ve(Ve){for(;Ve.flags&4;)Ve=Ve.parent;return Ve}}),Q=O[0];if(Q)return Q.name.text}function U(X,j,Se){for(var Ce in Se)for(var O=0,Q=Se[Ce];O<Q.length;O++){var V=Q[O],z=e.removeFileExtension(e.normalizePath(V)),Te=z.indexOf("*");if(Te!==-1){var ge=z.substr(0,Te),ke=z.substr(Te+1);if(j.length>=ge.length+ke.length&&e.startsWith(j,ge)&&e.endsWith(j,ke)||!ke&&j===e.removeTrailingDirectorySeparator(ge)){var Me=j.substr(ge.length,j.length-ke.length-ge.length);return Ce.replace("*",Me)}}else if(z===j||z===X)return Ce}}var $;(function(X){X[X.Exact=0]="Exact",X[X.Directory=1]="Directory",X[X.Pattern=2]="Pattern"})($||($={}));function T(X,j,Se,Ce,O,Q,V){if(V===void 0&&(V=0),typeof O=="string"){var z=e.getNormalizedAbsolutePath(e.combinePaths(Se,O),void 0),Te=e.hasTSFileExtension(j)?e.removeFileExtension(j)+F(j,X):void 0;switch(V){case 0:if(e.comparePaths(j,z)===0||Te&&e.comparePaths(Te,z)===0)return{moduleFileToTry:Ce};break;case 1:if(e.containsPath(z,j)){var ge=e.getRelativePathFromDirectory(z,j,!1);return{moduleFileToTry:e.getNormalizedAbsolutePath(e.combinePaths(e.combinePaths(Ce,O),ge),void 0)}}break;case 2:var ke=z.indexOf("*"),Me=z.slice(0,ke),Ie=z.slice(ke+1);if(e.startsWith(j,Me)&&e.endsWith(j,Ie)){var Ge=j.slice(Me.length,j.length-Ie.length);return{moduleFileToTry:Ce.replace("*",Ge)}}if(Te&&e.startsWith(Te,Me)&&e.endsWith(Te,Ie)){var Ge=Te.slice(Me.length,Te.length-Ie.length);return{moduleFileToTry:Ce.replace("*",Ge)}}break}}else{if(Array.isArray(O))return e.forEach(O,function(qe){return T(X,j,Se,Ce,qe,Q)});if(typeof O=="object"&&O!==null){if(e.allKeysStartWithDot(O))return e.forEach(e.getOwnKeys(O),function(qe){var Xe=e.getNormalizedAbsolutePath(e.combinePaths(Ce,qe),void 0),De=e.endsWith(qe,"/")?1:e.stringContains(qe,"*")?2:0;return T(X,j,Se,Xe,O[qe],Q,De)});for(var he=0,ve=e.getOwnKeys(O);he<ve.length;he++){var Ve=ve[he];if(Ve==="default"||Q.indexOf(Ve)>=0||e.isApplicableVersionedTypesKey(Q,Ve)){var _e=O[Ve],Le=T(X,j,Se,Ce,_e,Q);if(Le)return Le}}}}}function I(X,j,Se,Ce,O,Q){var V=m(j,X,Ce);if(V!==void 0){var z=m(Se,X,Ce),Te=z!==void 0?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(z,V,Ce)):V;return e.getEmitModuleResolutionKind(Q)===e.ModuleResolutionKind.NodeJs?u(Te,O,Q):e.removeFileExtension(Te)}}function y(X,j,Se,Ce,O){var Q=X.path,V=X.isRedirect,z=j.getCanonicalFileName,Te=j.sourceDirectory;if(!Se.fileExists||!Se.readFile)return;var ge=C(Q);if(!ge)return;var ke=Q,Me=!1;if(!O)for(var Ie=ge.packageRootIndex,Ge=void 0;;){var he=Ye(Ie),ve=he.moduleFileToTry,Ve=he.packageRootPath,_e=he.blockedByExports,Le=he.verbatimFromExports;if(e.getEmitModuleResolutionKind(Ce)!==e.ModuleResolutionKind.Classic){if(_e)return;if(Le)return ve}if(Ve){ke=Ve,Me=!0;break}if(Ge||(Ge=ve),Ie=Q.indexOf(e.directorySeparator,Ie+1),Ie===-1){ke=Lr(Ge);break}}if(V&&!Me)return;var qe=Se.getGlobalTypingsCacheLocation&&Se.getGlobalTypingsCacheLocation(),Xe=z(ke.substring(0,ge.topLevelNodeModulesIndex));if(!(e.startsWith(Te,Xe)||qe&&e.startsWith(z(qe),Xe)))return;var De=ke.substring(ge.topLevelPackageNameIndex+1),Ae=e.getPackageNameFromTypesPackageName(De);return e.getEmitModuleResolutionKind(Ce)===e.ModuleResolutionKind.Classic&&Ae===De?void 0:Ae;function Ye(Er){var lr=Q.substring(0,Er),Cr=e.combinePaths(lr,"package.json"),Or=Q;if(Se.fileExists(Cr)){var Ke=JSON.parse(Se.readFile(Cr));if(e.getEmitModuleResolutionKind(Ce)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(Ce)===e.ModuleResolutionKind.NodeNext){var Pe=Ke.exports&&typeof Ke.name=="string"?T(Ce,Q,lr,Ke.name,Ke.exports,["node","types"]):void 0;if(Pe){var Hr=e.hasTSFileExtension(Pe.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(Pe.moduleFileToTry)+F(Pe.moduleFileToTry,Ce)}:Pe;return Rn(Rn({},Hr),{verbatimFromExports:!0})}if(Ke.exports)return{moduleFileToTry:Q,blockedByExports:!0}}var ur=Ke.typesVersions?e.getPackageJsonTypesVersionsPaths(Ke.typesVersions):void 0;if(ur){var vr=Q.slice(lr.length+1),de=U(e.removeFileExtension(vr),u(vr,0,Ce),ur.paths);de!==void 0&&(Or=e.combinePaths(lr,de))}var Fe=Ke.typings||Ke.types||Ke.main;if(e.isString(Fe)){var $e=e.toPath(Fe,lr,z);if(e.removeFileExtension($e)===e.removeFileExtension(z(Or)))return{packageRootPath:lr,moduleFileToTry:Or}}}return{moduleFileToTry:Or}}function Lr(Er){var lr=e.removeFileExtension(Er);return z(lr.substring(ge.fileNameIndex))==="/index"&&!D(Se,lr.substring(0,ge.fileNameIndex))?lr.substring(0,ge.fileNameIndex):lr}}function D(X,j){if(!!X.fileExists)for(var Se=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}])),Ce=0,O=Se;Ce<O.length;Ce++){var Q=O[Ce],V=j+Q;if(X.fileExists(V))return V}}function C(X){var j=0,Se=0,Ce=0,O=0,Q;(function(ge){ge[ge.BeforeNodeModules=0]="BeforeNodeModules",ge[ge.NodeModules=1]="NodeModules",ge[ge.Scope=2]="Scope",ge[ge.PackageContent=3]="PackageContent"})(Q||(Q={}));for(var V=0,z=0,Te=0;z>=0;)switch(V=z,z=X.indexOf("/",V+1),Te){case 0:X.indexOf(e.nodeModulesPathPart,V)===V&&(j=V,Se=z,Te=1);break;case 1:case 2:Te===1&&X.charAt(V+1)==="@"?Te=2:(Ce=z,Te=3);break;case 3:X.indexOf(e.nodeModulesPathPart,V)===V?Te=1:Te=3;break}return O=V,Te>1?{topLevelNodeModulesIndex:j,topLevelPackageNameIndex:Se,packageRootIndex:Ce,fileNameIndex:O}:void 0}function m(X,j,Se){return e.firstDefined(j,function(Ce){var O=te(X,Ce,Se);return ue(O)?void 0:O})}function u(X,j,Se){if(e.fileExtensionIsOneOf(X,[".json",".mjs",".cjs"]))return X;var Ce=e.removeFileExtension(X);if(e.fileExtensionIsOneOf(X,[".d.mts",".mts",".d.cts",".cts"]))return Ce+g(X,Se);switch(j){case 0:return e.removeSuffix(Ce,"/index");case 1:return Ce;case 2:return Ce+g(X,Se);default:return e.Debug.assertNever(j)}}function g(X,j){var Se;return(Se=F(X,j))!==null&&Se!==void 0?Se:e.Debug.fail("Extension ".concat(e.extensionFromPath(X)," is unsupported:: FileName:: ").concat(X))}function F(X,j){var Se=e.tryGetExtensionFromPath(X);switch(Se){case".ts":case".d.ts":return".js";case".tsx":return j.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return Se;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}n.tryGetJSExtensionForFile=F;function te(X,j,Se){var Ce=e.getRelativePathToDirectoryOrUrl(j,X,j,Se,!1);return e.isRootedDiskPath(Ce)?void 0:Ce}function ue(X){return e.startsWith(X,"..")}})(e.moduleSpecifiers||(e.moduleSpecifiers={}))})(gr||(gr={}));var gr;(function(e){var n=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function f(y,D){var C=y===e.sys&&n?n:{getCurrentDirectory:function(){return y.getCurrentDirectory()},getNewLine:function(){return y.newLine},getCanonicalFileName:e.createGetCanonicalFileName(y.useCaseSensitiveFileNames)};if(!D)return function(u){return y.write(e.formatDiagnostic(u,C))};var m=new Array(1);return function(u){m[0]=u,y.write(e.formatDiagnosticsWithColorAndContext(m,C)+C.getNewLine()),m[0]=void 0}}e.createDiagnosticReporter=f;function d(y,D,C){return y.clearScreen&&!C.preserveWatchOutput&&!C.extendedDiagnostics&&!C.diagnostics&&e.contains(e.screenStartingMessageCodes,D.code)?(y.clearScreen(),!0):!1}e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code];function a(y,D){return e.contains(e.screenStartingMessageCodes,y.code)?D+D:D}function p(y){return y.now?y.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):new Date().toLocaleTimeString()}e.getLocaleTimeString=p;function N(y,D){return D?function(C,m,u){d(y,C,u);var g="[".concat(e.formatColorAndReset(p(y),e.ForegroundColorEscapeSequences.Grey),"] ");g+="".concat(e.flattenDiagnosticMessageText(C.messageText,y.newLine)).concat(m+m),y.write(g)}:function(C,m,u){var g="";d(y,C,u)||(g+=m),g+="".concat(p(y)," - "),g+="".concat(e.flattenDiagnosticMessageText(C.messageText,y.newLine)).concat(a(C,m)),y.write(g)}}e.createWatchStatusReporter=N;function H(y,D,C,m,u,g){var F=u;F.onUnRecoverableConfigFileDiagnostic=function(ue){return U(u,g,ue)};var te=e.getParsedCommandLineOfConfigFile(y,D,F,C,m);return F.onUnRecoverableConfigFileDiagnostic=void 0,te}e.parseConfigFileWithSystem=H;function h(y){return e.countWhere(y,function(D){return D.category===e.DiagnosticCategory.Error})}e.getErrorCountForSummary=h;function v(y){return y===1?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}e.getWatchErrorSummaryDiagnosticMessage=v;function A(y,D){if(y===0)return"";var C=e.createCompilerDiagnostic(y===1?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,y);return"".concat(D).concat(e.flattenDiagnosticMessageText(C.messageText,D)).concat(D).concat(D)}e.getErrorSummaryText=A;function q(y){return!!y.getState}e.isBuilderProgram=q;function ie(y,D){var C=y.getCompilerOptions();C.explainFiles?b(q(y)?y.getProgram():y,D):(C.listFiles||C.listFilesOnly)&&e.forEach(y.getSourceFiles(),function(m){D(m.fileName)})}e.listFiles=ie;function b(y,D){for(var C,m,u=y.getFileIncludeReasons(),g=e.createGetCanonicalFileName(y.useCaseSensitiveFileNames()),F=function(j){return e.convertToRelativePath(j,y.getCurrentDirectory(),g)},te=0,ue=y.getSourceFiles();te<ue.length;te++){var X=ue[te];D("".concat(k(X,F))),(C=u.get(X.path))===null||C===void 0||C.forEach(function(j){return D(" ".concat(J(y,j,F).messageText))}),(m=P(X,F))===null||m===void 0||m.forEach(function(j){return D(" ".concat(j.messageText))})}}e.explainFiles=b;function P(y,D){var C;return y.path!==y.resolvedPath&&(C||(C=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,k(y.originalFileName,D))),y.redirectInfo&&(C||(C=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,k(y.redirectInfo.redirectTarget,D))),C}e.explainIfFileIsRedirect=P;function S(y,D){var C,m=y.getCompilerOptions().configFile;if(!!(!((C=m==null?void 0:m.configFileSpecs)===null||C===void 0)&&C.validatedFilesSpec)){var u=e.createGetCanonicalFileName(y.useCaseSensitiveFileNames()),g=u(D),F=e.getDirectoryPath(e.getNormalizedAbsolutePath(m.fileName,y.getCurrentDirectory()));return e.find(m.configFileSpecs.validatedFilesSpec,function(te){return u(e.getNormalizedAbsolutePath(te,F))===g})}}e.getMatchedFileSpec=S;function B(y,D){var C,m,u=y.getCompilerOptions().configFile;if(!!(!((C=u==null?void 0:u.configFileSpecs)===null||C===void 0)&&C.validatedIncludeSpecs)){var g=e.fileExtensionIs(D,".json"),F=e.getDirectoryPath(e.getNormalizedAbsolutePath(u.fileName,y.getCurrentDirectory())),te=y.useCaseSensitiveFileNames();return e.find((m=u==null?void 0:u.configFileSpecs)===null||m===void 0?void 0:m.validatedIncludeSpecs,function(ue){if(g&&!e.endsWith(ue,".json"))return!1;var X=e.getPatternFromSpec(ue,F,"files");return!!X&&e.getRegexFromPattern("(".concat(X,")$"),te).test(D)})}}e.getMatchedIncludeSpec=B;function J(y,D,C){var m,u,g=y.getCompilerOptions();if(e.isReferencedFile(D)){var F=e.getReferencedFileLocation(function(V){return y.getSourceFileByPath(V)},D),te=e.isReferenceFileLocation(F)?F.file.text.substring(F.pos,F.end):'"'.concat(F.text,'"'),ue=void 0;switch(e.Debug.assert(e.isReferenceFileLocation(F)||D.kind===e.FileIncludeKind.Import,"Only synthetic references are imports"),D.kind){case e.FileIncludeKind.Import:e.isReferenceFileLocation(F)?ue=F.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:e.Diagnostics.Imported_via_0_from_file_1:F.text===e.externalHelpersModuleNameText?ue=F.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:ue=F.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(!F.packageId),ue=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:ue=F.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(!F.packageId),ue=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(D)}return e.chainDiagnosticMessages(void 0,ue,te,k(F.file,C),F.packageId&&e.packageIdToString(F.packageId))}switch(D.kind){case e.FileIncludeKind.RootFile:if(!(!((m=g.configFile)===null||m===void 0)&&m.configFileSpecs))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);var X=e.getNormalizedAbsolutePath(y.getRootFileNames()[D.index],y.getCurrentDirectory()),j=S(y,X);if(j)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var Se=B(y,X);return Se?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,Se,k(g.configFile,C)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var Ce=D.kind===e.FileIncludeKind.OutputFromProjectReference,O=e.Debug.checkDefined((u=y.getResolvedProjectReferences())===null||u===void 0?void 0:u[D.index]);return e.chainDiagnosticMessages(void 0,e.outFile(g)?Ce?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:Ce?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,k(O.sourceFile.fileName,C),g.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,g.types?D.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:D.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,D.typeReference,D.packageId&&e.packageIdToString(D.packageId));case e.FileIncludeKind.LibFile:if(D.index!==void 0)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,g.lib[D.index]);var Q=e.forEachEntry(e.targetOptionDeclaration.type,function(V,z){return V===e.getEmitScriptTarget(g)?z:void 0});return e.chainDiagnosticMessages(void 0,Q?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,Q);default:e.Debug.assertNever(D)}}e.fileIncludeReasonToDiagnostics=J;function k(y,D){var C=e.isString(y)?y:y.fileName;return D?D(C):C}function M(y,D,C,m,u,g,F,te){var ue=!!y.getCompilerOptions().listFilesOnly,X=y.getConfigFileParsingDiagnostics().slice(),j=X.length;e.addRange(X,y.getSyntacticDiagnostics(void 0,g)),X.length===j&&(e.addRange(X,y.getOptionsDiagnostics(g)),ue||(e.addRange(X,y.getGlobalDiagnostics(g)),X.length===j&&e.addRange(X,y.getSemanticDiagnostics(void 0,g))));var Se=ue?{emitSkipped:!0,diagnostics:e.emptyArray}:y.emit(void 0,u,g,F,te),Ce=Se.emittedFiles,O=Se.diagnostics;e.addRange(X,O);var Q=e.sortAndDeduplicateDiagnostics(X);if(Q.forEach(D),C){var V=y.getCurrentDirectory();e.forEach(Ce,function(z){var Te=e.getNormalizedAbsolutePath(z,V);C("TSFILE: ".concat(Te))}),ie(y,C)}return m&&m(h(Q)),{emitResult:Se,diagnostics:Q}}e.emitFilesAndReportErrors=M;function x(y,D,C,m,u,g,F,te){var ue=M(y,D,C,m,u,g,F,te),X=ue.emitResult,j=ue.diagnostics;return X.emitSkipped&&j.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:j.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.emitFilesAndReportErrorsAndGetExitStatus=x,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher};function w(y,D){y===void 0&&(y=e.sys);var C=D||N(y);return{onWatchStatusChange:C,watchFile:e.maybeBind(y,y.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(y,y.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(y,y.setTimeout)||e.noop,clearTimeout:e.maybeBind(y,y.clearTimeout)||e.noop}}e.createWatchHost=w,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 K(y,D){var C=y.trace?D.extendedDiagnostics?e.WatchLogLevel.Verbose:D.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,m=C!==e.WatchLogLevel.None?function(g){return y.trace(g)}:e.noop,u=e.getWatchFactory(y,C,m);return u.writeLog=m,u}e.createWatchFactory=K;function Z(y,D,C){C===void 0&&(C=y);var m=y.useCaseSensitiveFileNames(),u=e.memoize(function(){return y.getNewLine()});return{getSourceFile:function(F,te,ue){var X;try{e.performance.mark("beforeIORead"),X=y.readFile(F,D().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(j){ue&&ue(j.message),X=""}return X!==void 0?e.createSourceFile(F,X,te):void 0},getDefaultLibLocation:e.maybeBind(y,y.getDefaultLibLocation),getDefaultLibFileName:function(F){return y.getDefaultLibFileName(F)},writeFile:g,getCurrentDirectory:e.memoize(function(){return y.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return m},getCanonicalFileName:e.createGetCanonicalFileName(m),getNewLine:function(){return e.getNewLineCharacter(D(),u)},fileExists:function(F){return y.fileExists(F)},readFile:function(F){return y.readFile(F)},trace:e.maybeBind(y,y.trace),directoryExists:e.maybeBind(C,C.directoryExists),getDirectories:e.maybeBind(C,C.getDirectories),realpath:e.maybeBind(y,y.realpath),getEnvironmentVariable:e.maybeBind(y,y.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(y,y.createHash),readDirectory:e.maybeBind(y,y.readDirectory),disableUseFileVersionAsSignature:y.disableUseFileVersionAsSignature};function g(F,te,ue,X){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(F,te,ue,function(j,Se,Ce){return y.writeFile(j,Se,Ce)},function(j){return y.createDirectory(j)},function(j){return y.directoryExists(j)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(j){X&&X(j.message)}}}e.createCompilerHostFromProgramHost=Z;function ne(y,D){var C=y.getSourceFile,m=e.maybeBind(D,D.createHash)||e.generateDjb2Hash;y.getSourceFile=function(){for(var u=[],g=0;g<arguments.length;g++)u[g]=arguments[g];var F=C.call.apply(C,Gt([y],u,!1));return F&&(F.version=m(F.text)),F}}e.setGetSourceFileAsHashVersioned=ne;function R(y,D){var C=e.memoize(function(){return e.getDirectoryPath(e.normalizePath(y.getExecutingFilePath()))});return{useCaseSensitiveFileNames:function(){return y.useCaseSensitiveFileNames},getNewLine:function(){return y.newLine},getCurrentDirectory:e.memoize(function(){return y.getCurrentDirectory()}),getDefaultLibLocation:C,getDefaultLibFileName:function(m){return e.combinePaths(C(),e.getDefaultLibFileName(m))},fileExists:function(m){return y.fileExists(m)},readFile:function(m,u){return y.readFile(m,u)},directoryExists:function(m){return y.directoryExists(m)},getDirectories:function(m){return y.getDirectories(m)},readDirectory:function(m,u,g,F,te){return y.readDirectory(m,u,g,F,te)},realpath:e.maybeBind(y,y.realpath),getEnvironmentVariable:e.maybeBind(y,y.getEnvironmentVariable),trace:function(m){return y.write(m+y.newLine)},createDirectory:function(m){return y.createDirectory(m)},writeFile:function(m,u,g){return y.writeFile(m,u,g)},createHash:e.maybeBind(y,y.createHash),createProgram:D||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:y.disableUseFileVersionAsSignature}}e.createProgramHost=R;function Y(y,D,C,m){y===void 0&&(y=e.sys);var u=function(F){return y.write(F+y.newLine)},g=R(y,D);return e.copyProperties(g,w(y,m)),g.afterProgramCreate=function(F){var te=F.getCompilerOptions(),ue=e.getNewLineCharacter(te,function(){return y.newLine});M(F,C,u,function(X){return g.onWatchStatusChange(e.createCompilerDiagnostic(v(X),X),ue,te,X)})},g}function U(y,D,C){D(C),y.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}function $(y){var D=y.configFileName,C=y.optionsToExtend,m=y.watchOptionsToExtend,u=y.extraFileExtensions,g=y.system,F=y.createProgram,te=y.reportDiagnostic,ue=y.reportWatchStatus,X=te||f(g),j=Y(g,F,X,ue);return j.onUnRecoverableConfigFileDiagnostic=function(Se){return U(g,X,Se)},j.configFileName=D,j.optionsToExtend=C,j.watchOptionsToExtend=m,j.extraFileExtensions=u,j}e.createWatchCompilerHostOfConfigFile=$;function T(y){var D=y.rootFiles,C=y.options,m=y.watchOptions,u=y.projectReferences,g=y.system,F=y.createProgram,te=y.reportDiagnostic,ue=y.reportWatchStatus,X=Y(g,F,te||f(g),ue);return X.rootFiles=D,X.options=C,X.watchOptions=m,X.projectReferences=u,X}e.createWatchCompilerHostOfFilesAndCompilerOptions=T;function I(y){var D=y.system||e.sys,C=y.host||(y.host=e.createIncrementalCompilerHost(y.options,D)),m=e.createIncrementalProgram(y),u=x(m,y.reportDiagnostic||f(D),function(g){return C.trace&&C.trace(g)},y.reportErrorSummary||y.options.pretty?function(g){return D.write(A(g,D.newLine))}:void 0);return y.afterProgramEmitAndDiagnostics&&y.afterProgramEmitAndDiagnostics(m),u}e.performIncrementalCompilation=I})(gr||(gr={}));var gr;(function(e){function n(N,H){if(!e.outFile(N)){var h=e.getTsBuildInfoEmitOutputFilePath(N);if(!!h){var v=H.readFile(h);if(!!v){var A=e.getBuildInfo(v);if(A.version===e.version&&!!A.program)return e.createBuildProgramUsingProgramBuildInfo(A.program,h,H)}}}}e.readBuilderProgram=n;function f(N,H){H===void 0&&(H=e.sys);var h=e.createCompilerHostWorker(N,void 0,H);return h.createHash=e.maybeBind(H,H.createHash),h.disableUseFileVersionAsSignature=H.disableUseFileVersionAsSignature,e.setGetSourceFileAsHashVersioned(h,H),e.changeCompilerHostLikeToUseCache(h,function(v){return e.toPath(v,h.getCurrentDirectory(),h.getCanonicalFileName)}),h}e.createIncrementalCompilerHost=f;function d(N){var H=N.rootNames,h=N.options,v=N.configFileParsingDiagnostics,A=N.projectReferences,q=N.host,ie=N.createProgram;q=q||f(h),ie=ie||e.createEmitAndSemanticDiagnosticsBuilderProgram;var b=n(h,q);return ie(H,h,q,b,v,A)}e.createIncrementalProgram=d;function a(N,H,h,v,A,q,ie,b){return e.isArray(N)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:N,options:H,watchOptions:b,projectReferences:ie,system:h,createProgram:v,reportDiagnostic:A,reportWatchStatus:q}):e.createWatchCompilerHostOfConfigFile({configFileName:N,optionsToExtend:H,watchOptionsToExtend:ie,extraFileExtensions:b,system:h,createProgram:v,reportDiagnostic:A,reportWatchStatus:q})}e.createWatchCompilerHost=a;function p(N){var H,h,v,A,q,ie,b,P,S,B=N.extendedConfigCache,J=!1,k=new e.Map,M,x=!1,w=N.useCaseSensitiveFileNames(),K=N.getCurrentDirectory(),Z=N.configFileName,ne=N.optionsToExtend,R=ne===void 0?{}:ne,Y=N.watchOptionsToExtend,U=N.extraFileExtensions,$=N.createProgram,T=N.rootFiles,I=N.options,y=N.watchOptions,D=N.projectReferences,C,m,u=!1,g=!1,F=Z===void 0?void 0:e.createCachedDirectoryStructureHost(N,K,w),te=F||N,ue=e.parseConfigHostFromCompilerHostLike(N,te),X=_e();Z&&N.configFileParsingResult&&(Fr(N.configFileParsingResult),X=_e()),lr(e.Diagnostics.Starting_compilation_in_watch_mode),Z&&!N.configFileParsingResult&&(X=e.getNewLineCharacter(R,function(){return N.getNewLine()}),e.Debug.assert(!T),Dr(),X=_e());var j=e.createWatchFactory(N,I),Se=j.watchFile,Ce=j.watchDirectory,O=j.writeLog,Q=e.createGetCanonicalFileName(w);O("Current directory: ".concat(K," CaseSensitiveFileNames: ").concat(w));var V;Z&&(V=Se(Z,ur,e.PollingInterval.High,y,e.WatchType.ConfigFile));var z=e.createCompilerHostFromProgramHost(N,function(){return I},te);e.setGetSourceFileAsHashVersioned(z,N);var Te=z.getSourceFile;z.getSourceFile=function(Rr){for(var sr=[],ye=1;ye<arguments.length;ye++)sr[ye-1]=arguments[ye];return Ae.apply(void 0,Gt([Rr,Le(Rr)],sr,!1))},z.getSourceFileByPath=Ae,z.getNewLine=function(){return X},z.fileExists=De,z.onReleaseOldSourceFile=Er,z.onReleaseParsedCommandLine=Jr,z.toPath=Le,z.getCompilationSettings=function(){return I},z.useSourceOfProjectReferenceRedirect=e.maybeBind(N,N.useSourceOfProjectReferenceRedirect),z.watchDirectoryOfFailedLookupLocation=function(Rr,sr,ye){return Ce(Rr,sr,ye,y,e.WatchType.FailedLookupLocations)},z.watchTypeRootsDirectory=function(Rr,sr,ye){return Ce(Rr,sr,ye,y,e.WatchType.TypeRoots)},z.getCachedDirectoryStructureHost=function(){return F},z.scheduleInvalidateResolutionsOfFailedLookupLocations=Ke,z.onInvalidatedResolution=Hr,z.onChangedAutomaticTypeDirectiveNames=Hr,z.fileIsOpen=e.returnFalse,z.getCurrentProgram=Ge,z.writeLog=O,z.getParsedCommandLine=He;var ge=e.createResolutionCache(z,Z?e.getDirectoryPath(e.getNormalizedAbsolutePath(Z,K)):K,!1);z.resolveModuleNames=N.resolveModuleNames?function(){for(var Rr=[],sr=0;sr<arguments.length;sr++)Rr[sr]=arguments[sr];return N.resolveModuleNames.apply(N,Rr)}:function(Rr,sr,ye,or,fe,je){return ge.resolveModuleNames(Rr,sr,ye,or,je)},z.resolveTypeReferenceDirectives=N.resolveTypeReferenceDirectives?function(){for(var Rr=[],sr=0;sr<arguments.length;sr++)Rr[sr]=arguments[sr];return N.resolveTypeReferenceDirectives.apply(N,Rr)}:function(Rr,sr,ye){return ge.resolveTypeReferenceDirectives(Rr,sr,ye)};var ke=!!N.resolveModuleNames||!!N.resolveTypeReferenceDirectives;return H=n(I,z),he(),bn(),Z&&zn(Le(Z),I,y,e.WatchType.ExtendedConfigFile),Z?{getCurrentProgram:Ie,getProgram:de,close:Me}:{getCurrentProgram:Ie,getProgram:de,updateRootFileNames:Ve,close:Me};function Me(){Or(),ge.clear(),e.clearMap(k,function(Rr){Rr&&Rr.fileWatcher&&(Rr.fileWatcher.close(),Rr.fileWatcher=void 0)}),V&&(V.close(),V=void 0),B==null||B.clear(),B=void 0,S&&(e.clearMap(S,e.closeFileWatcherOf),S=void 0),q&&(e.clearMap(q,e.closeFileWatcherOf),q=void 0),v&&(e.clearMap(v,e.closeFileWatcher),v=void 0),P&&(e.clearMap(P,function(Rr){var sr;(sr=Rr.watcher)===null||sr===void 0||sr.close(),Rr.watcher=void 0,Rr.watchedDirectories&&e.clearMap(Rr.watchedDirectories,e.closeFileWatcherOf),Rr.watchedDirectories=void 0}),P=void 0),A&&(e.clearMap(A,e.closeFileWatcher),A=void 0)}function Ie(){return H}function Ge(){return H&&H.getProgramOrUndefined()}function he(){O("Synchronizing program"),Or();var Rr=Ie();x&&(X=_e(),Rr&&(J||e.changesAffectModuleResolution(Rr.getCompilerOptions(),I))&&ge.clear());var sr=ge.createHasInvalidatedResolution(ke||J);return e.isProgramUptoDate(Ge(),T,I,Lr,De,sr,Cr,He,D)?g&&(H=$(void 0,void 0,z,H,m,D),g=!1):ve(sr),J=!1,N.afterProgramCreate&&Rr!==H&&N.afterProgramCreate(H),H}function ve(Rr){O("CreatingProgramWith::"),O(" roots: ".concat(JSON.stringify(T))),O(" options: ".concat(JSON.stringify(I))),D&&O(" projectReferences: ".concat(JSON.stringify(D)));var sr=x||!Ge();x=!1,g=!1,ge.startCachingPerDirectoryResolution(),z.hasInvalidatedResolution=Rr,z.hasChangedAutomaticTypeDirectiveNames=Cr,H=$(T,I,z,H,m,D);var ye=e.map(ge.getModuleResolutionCache().getPackageJsonInfoCache().entries(),function(Ee){var We=Ee[0],ee=Ee[1];return[z.realpath?Le(z.realpath(We)):We,ee]});if(ge.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(H.getProgram(),v||(v=new e.Map),lt),e.updatePackageJsonWatch(ye,A||(A=new e.Map),tt),sr&&ge.updateTypeRootsWatch(),M){for(var or=0,fe=M;or<fe.length;or++){var je=fe[or];v.has(je)||k.delete(je)}M=void 0}}function Ve(Rr){e.Debug.assert(!Z,"Cannot update root file names with config file watch mode"),T=Rr,Hr()}function _e(){return e.getNewLineCharacter(I||R,function(){return N.getNewLine()})}function Le(Rr){return e.toPath(Rr,K,Q)}function qe(Rr){return typeof Rr=="boolean"}function Xe(Rr){return typeof Rr.version=="boolean"}function De(Rr){var sr=Le(Rr);return qe(k.get(sr))?!1:te.fileExists(Rr)}function Ae(Rr,sr,ye,or,fe){var je=k.get(sr);if(!qe(je)){if(je===void 0||fe||Xe(je)){var Ee=Te(Rr,ye,or);if(je)Ee?(je.sourceFile=Ee,je.version=Ee.version,je.fileWatcher||(je.fileWatcher=ze(sr,Rr,Ar,e.PollingInterval.Low,y,e.WatchType.SourceFile))):(je.fileWatcher&&je.fileWatcher.close(),k.set(sr,!1));else if(Ee){var We=ze(sr,Rr,Ar,e.PollingInterval.Low,y,e.WatchType.SourceFile);k.set(sr,{sourceFile:Ee,version:Ee.version,fileWatcher:We})}else k.set(sr,!1);return Ee&&(Ee.impliedNodeFormat=e.getImpliedNodeFormatForFile(sr,ge.getModuleResolutionCache().getPackageJsonInfoCache(),z,z.getCompilationSettings())),Ee}return je.sourceFile}}function Ye(Rr){var sr=k.get(Rr);sr!==void 0&&(qe(sr)?k.set(Rr,{version:!1}):sr.version=!1)}function Lr(Rr){var sr=k.get(Rr);return!sr||!sr.version?void 0:sr.version}function Er(Rr,sr,ye){var or=k.get(Rr.resolvedPath);or!==void 0&&(qe(or)?(M||(M=[])).push(Rr.path):or.sourceFile===Rr&&(or.fileWatcher&&or.fileWatcher.close(),k.delete(Rr.resolvedPath),ye||ge.removeResolutionsOfFile(Rr.path)))}function lr(Rr){N.onWatchStatusChange&&N.onWatchStatusChange(e.createCompilerDiagnostic(Rr),X,I||R)}function Cr(){return ge.hasChangedAutomaticTypeDirectiveNames()}function Or(){return b?(N.clearTimeout(b),b=void 0,!0):!1}function Ke(){if(!N.setTimeout||!N.clearTimeout)return ge.invalidateResolutionsOfFailedLookupLocations();var Rr=Or();O("Scheduling invalidateFailedLookup".concat(Rr?", Cancelled earlier one":"")),b=N.setTimeout(Pe,250)}function Pe(){b=void 0,ge.invalidateResolutionsOfFailedLookupLocations()&&Hr()}function Hr(){!N.setTimeout||!N.clearTimeout||(ie&&N.clearTimeout(ie),O("Scheduling update"),ie=N.setTimeout(vr,250))}function ur(){e.Debug.assert(!!Z),h=e.ConfigFileProgramReloadLevel.Full,Hr()}function vr(){ie=void 0,lr(e.Diagnostics.File_change_detected_Starting_incremental_compilation),de()}function de(){switch(h){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),Fe();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),$e();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),he();break}return e.perfLogger.logStopUpdateProgram("Done"),Ie()}function Fe(){O("Reloading new file names and options"),T=e.getFileNamesFromConfigSpecs(I.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(Z),K),I,ue,U),e.updateErrorForNoInputFiles(T,e.getNormalizedAbsolutePath(Z,K),I.configFile.configFileSpecs,m,u)&&(g=!0),he()}function $e(){O("Reloading config file: ".concat(Z)),h=e.ConfigFileProgramReloadLevel.None,F&&F.clearCache(),Dr(),x=!0,he(),bn(),zn(Le(Z),I,y,e.WatchType.ExtendedConfigFile)}function Dr(){Fr(e.getParsedCommandLineOfConfigFile(Z,R,ue,B||(B=new e.Map),Y,U))}function Fr(Rr){T=Rr.fileNames,I=Rr.options,y=Rr.watchOptions,D=Rr.projectReferences,C=Rr.wildcardDirectories,m=e.getConfigFileParsingDiagnostics(Rr).slice(),u=e.canJsonReportNoInputFiles(Rr.raw),g=!0}function He(Rr){var sr=Le(Rr),ye=P==null?void 0:P.get(sr);if(ye){if(!ye.reloadLevel)return ye.parsedCommandLine;if(ye.parsedCommandLine&&ye.reloadLevel===e.ConfigFileProgramReloadLevel.Partial&&!N.getParsedCommandLine){O("Reloading new file names and options");var or=e.getFileNamesFromConfigSpecs(ye.parsedCommandLine.options.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(Rr),K),I,ue);return ye.parsedCommandLine=Rn(Rn({},ye.parsedCommandLine),{fileNames:or}),ye.reloadLevel=void 0,ye.parsedCommandLine}}O("Loading config file: ".concat(Rr));var fe=N.getParsedCommandLine?N.getParsedCommandLine(Rr):pr(Rr);return ye?(ye.parsedCommandLine=fe,ye.reloadLevel=void 0):(P||(P=new e.Map)).set(sr,ye={parsedCommandLine:fe}),ir(Rr,sr,ye),fe}function pr(Rr){var sr=ue.onUnRecoverableConfigFileDiagnostic;ue.onUnRecoverableConfigFileDiagnostic=e.noop;var ye=e.getParsedCommandLineOfConfigFile(Rr,void 0,ue,B||(B=new e.Map),Y);return ue.onUnRecoverableConfigFileDiagnostic=sr,ye}function Jr(Rr){var sr,ye=Le(Rr),or=P==null?void 0:P.get(ye);!or||(P.delete(ye),or.watchedDirectories&&e.clearMap(or.watchedDirectories,e.closeFileWatcherOf),(sr=or.watcher)===null||sr===void 0||sr.close(),e.clearSharedExtendedConfigFileWatcher(ye,S))}function ze(Rr,sr,ye,or,fe,je){return Se(sr,function(Ee,We){return ye(Ee,We,Rr)},or,fe,je)}function Ar(Rr,sr,ye){Yr(Rr,ye,sr),sr===e.FileWatcherEventKind.Deleted&&k.has(ye)&&ge.invalidateResolutionOfFile(ye),Ye(ye),Hr()}function Yr(Rr,sr,ye){F&&F.addOrDeleteFile(Rr,sr,ye)}function lt(Rr){return P!=null&&P.has(Rr)?e.noopFileWatcher:ze(Rr,Rr,cn,e.PollingInterval.Medium,y,e.WatchType.MissingFile)}function tt(Rr){return k.has(Rr)?e.noopFileWatcher:ze(Rr,Rr,Rt,e.PollingInterval.High,y,e.WatchType.PackageJson)}function Rt(Rr,sr,ye){Yr(Rr,ye,sr),h=e.ConfigFileProgramReloadLevel.Full,J=!0,Hr()}function cn(Rr,sr,ye){Yr(Rr,ye,sr),sr===e.FileWatcherEventKind.Created&&v.has(ye)&&(v.get(ye).close(),v.delete(ye),Ye(ye),Hr())}function bn(){C?e.updateWatchingWildcardDirectories(q||(q=new e.Map),new e.Map(e.getEntries(C)),In):q&&e.clearMap(q,e.closeFileWatcherOf)}function In(Rr,sr){return Ce(Rr,function(ye){e.Debug.assert(!!Z);var or=Le(ye);F&&F.addOrDeleteFileOrDirectory(ye,or),Ye(or),!e.isIgnoredFileFromWildCardWatching({watchedDirPath:Le(Rr),fileOrDirectory:ye,fileOrDirectoryPath:or,configFileName:Z,extraFileExtensions:U,options:I,program:Ie()||T,currentDirectory:K,useCaseSensitiveFileNames:w,writeLog:O,toPath:Le})&&h!==e.ConfigFileProgramReloadLevel.Full&&(h=e.ConfigFileProgramReloadLevel.Partial,Hr())},sr,y,e.WatchType.WildcardDirectory)}function zn(Rr,sr,ye,or){e.updateSharedExtendedConfigFileWatcher(Rr,sr,S||(S=new e.Map),function(fe,je){return Se(fe,function(Ee,We){var ee;Yr(fe,je,We),B&&e.cleanExtendedConfigCache(B,je,Le);var Ne=(ee=S.get(je))===null||ee===void 0?void 0:ee.projects;!(Ne!=null&&Ne.size)||Ne.forEach(function(me){if(Le(Z)===me)h=e.ConfigFileProgramReloadLevel.Full;else{var Ze=P==null?void 0:P.get(me);Ze&&(Ze.reloadLevel=e.ConfigFileProgramReloadLevel.Full),ge.removeResolutionsFromProjectReferenceRedirects(me)}Hr()})},e.PollingInterval.High,ye,or)},Le)}function ir(Rr,sr,ye){var or,fe,je,Ee,We;ye.watcher||(ye.watcher=Se(Rr,function(ee,Ne){Yr(Rr,sr,Ne);var me=P==null?void 0:P.get(sr);me&&(me.reloadLevel=e.ConfigFileProgramReloadLevel.Full),ge.removeResolutionsFromProjectReferenceRedirects(sr),Hr()},e.PollingInterval.High,((or=ye.parsedCommandLine)===null||or===void 0?void 0:or.watchOptions)||y,e.WatchType.ConfigFileOfReferencedProject)),!((fe=ye.parsedCommandLine)===null||fe===void 0)&&fe.wildcardDirectories?e.updateWatchingWildcardDirectories(ye.watchedDirectories||(ye.watchedDirectories=new e.Map),new e.Map(e.getEntries((je=ye.parsedCommandLine)===null||je===void 0?void 0:je.wildcardDirectories)),function(ee,Ne){var me;return Ce(ee,function(Ze){var xr=Le(Ze);F&&F.addOrDeleteFileOrDirectory(Ze,xr),Ye(xr);var fr=P==null?void 0:P.get(sr);!(fr!=null&&fr.parsedCommandLine)||e.isIgnoredFileFromWildCardWatching({watchedDirPath:Le(ee),fileOrDirectory:Ze,fileOrDirectoryPath:xr,configFileName:Rr,options:fr.parsedCommandLine.options,program:fr.parsedCommandLine.fileNames,currentDirectory:K,useCaseSensitiveFileNames:w,writeLog:O,toPath:Le})||fr.reloadLevel!==e.ConfigFileProgramReloadLevel.Full&&(fr.reloadLevel=e.ConfigFileProgramReloadLevel.Partial,Hr())},Ne,((me=ye.parsedCommandLine)===null||me===void 0?void 0:me.watchOptions)||y,e.WatchType.WildcardDirectoryOfReferencedProject)}):ye.watchedDirectories&&(e.clearMap(ye.watchedDirectories,e.closeFileWatcherOf),ye.watchedDirectories=void 0),zn(sr,(Ee=ye.parsedCommandLine)===null||Ee===void 0?void 0:Ee.options,((We=ye.parsedCommandLine)===null||We===void 0?void 0:We.watchOptions)||y,e.WatchType.ExtendedConfigOfReferencedProject)}}e.createWatchProgram=p})(gr||(gr={}));var gr;(function(e){(function(f){f[f.Unbuildable=0]="Unbuildable",f[f.UpToDate=1]="UpToDate",f[f.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",f[f.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",f[f.OutputMissing=4]="OutputMissing",f[f.OutOfDateWithSelf=5]="OutOfDateWithSelf",f[f.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",f[f.UpstreamOutOfDate=7]="UpstreamOutOfDate",f[f.UpstreamBlocked=8]="UpstreamBlocked",f[f.ComputingUpstream=9]="ComputingUpstream",f[f.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",f[f.ContainerOnly=11]="ContainerOnly"})(e.UpToDateStatusType||(e.UpToDateStatusType={}));function n(f){return e.fileExtensionIs(f,".json")?f:e.combinePaths(f,"tsconfig.json")}e.resolveConfigFileProjectName=n})(gr||(gr={}));var gr;(function(e){var n=new Date(-864e13),f=new Date(864e13),d;(function(de){de[de.None=0]="None",de[de.Success=1]="Success",de[de.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",de[de.ConfigFileErrors=4]="ConfigFileErrors",de[de.SyntaxErrors=8]="SyntaxErrors",de[de.TypeErrors=16]="TypeErrors",de[de.DeclarationEmitErrors=32]="DeclarationEmitErrors",de[de.EmitErrors=64]="EmitErrors",de[de.AnyErrors=124]="AnyErrors"})(d||(d={}));function a(de,Fe,$e){var Dr=de.get(Fe),Fr;return Dr||(Fr=$e(),de.set(Fe,Fr)),Dr||Fr}function p(de,Fe){return a(de,Fe,function(){return new e.Map})}function N(de,Fe){return Fe>de?Fe:de}function H(de){return e.fileExtensionIs(de,".d.ts")}function h(de){return!!de&&!!de.buildOrder}e.isCircularBuildOrder=h;function v(de){return h(de)?de.buildOrder:de}e.getBuildOrderFromAnyBuildOrder=v;function A(de,Fe){return function($e){var Dr=Fe?"[".concat(e.formatColorAndReset(e.getLocaleTimeString(de),e.ForegroundColorEscapeSequences.Grey),"] "):"".concat(e.getLocaleTimeString(de)," - ");Dr+="".concat(e.flattenDiagnosticMessageText($e.messageText,de.newLine)).concat(de.newLine+de.newLine),de.write(Dr)}}e.createBuilderStatusReporter=A;function q(de,Fe,$e,Dr){var Fr=e.createProgramHost(de,Fe);return Fr.getModifiedTime=de.getModifiedTime?function(He){return de.getModifiedTime(He)}:e.returnUndefined,Fr.setModifiedTime=de.setModifiedTime?function(He,pr){return de.setModifiedTime(He,pr)}:e.noop,Fr.deleteFile=de.deleteFile?function(He){return de.deleteFile(He)}:e.noop,Fr.reportDiagnostic=$e||e.createDiagnosticReporter(de),Fr.reportSolutionBuilderStatus=Dr||A(de),Fr.now=e.maybeBind(de,de.now),Fr}function ie(de,Fe,$e,Dr,Fr){de===void 0&&(de=e.sys);var He=q(de,Fe,$e,Dr);return He.reportErrorSummary=Fr,He}e.createSolutionBuilderHost=ie;function b(de,Fe,$e,Dr,Fr){de===void 0&&(de=e.sys);var He=q(de,Fe,$e,Dr),pr=e.createWatchHost(de,Fr);return e.copyProperties(He,pr),He}e.createSolutionBuilderWithWatchHost=b;function P(de){var Fe={};return e.commonOptionsWithBuild.forEach(function($e){e.hasProperty(de,$e.name)&&(Fe[$e.name]=de[$e.name])}),Fe}function S(de,Fe,$e){return Ye(!1,de,Fe,$e)}e.createSolutionBuilder=S;function B(de,Fe,$e,Dr){return Ye(!0,de,Fe,$e,Dr)}e.createSolutionBuilderWithWatch=B;function J(de,Fe,$e,Dr,Fr){var He=Fe,pr=Fe,Jr=He.getCurrentDirectory(),ze=e.createGetCanonicalFileName(He.useCaseSensitiveFileNames()),Ar=P(Dr),Yr=e.createCompilerHostFromProgramHost(He,function(){return Rr.projectCompilerOptions});e.setGetSourceFileAsHashVersioned(Yr,He),Yr.getParsedCommandLine=function(sr){return K(Rr,sr,M(Rr,sr))},Yr.resolveModuleNames=e.maybeBind(He,He.resolveModuleNames),Yr.resolveTypeReferenceDirectives=e.maybeBind(He,He.resolveTypeReferenceDirectives);var lt=Yr.resolveModuleNames?void 0:e.createModuleResolutionCache(Jr,ze),tt=Yr.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(Jr,ze,void 0,lt==null?void 0:lt.getPackageJsonInfoCache());if(!Yr.resolveModuleNames){var Rt=function(sr,ye,or,fe){return e.resolveModuleName(sr,or,Rr.projectCompilerOptions,Yr,lt,fe,ye).resolvedModule};Yr.resolveModuleNames=function(sr,ye,or,fe,je,Ee){return e.loadWithModeAwareCache(e.Debug.checkEachDefined(sr),e.Debug.checkDefined(Ee),ye,fe,Rt)},Yr.getModuleResolutionCache=function(){return lt}}if(!Yr.resolveTypeReferenceDirectives){var cn=function(sr,ye,or){return e.resolveTypeReferenceDirective(sr,ye,Rr.projectCompilerOptions,Yr,or,Rr.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective};Yr.resolveTypeReferenceDirectives=function(sr,ye,or){return e.loadWithLocalCache(e.Debug.checkEachDefined(sr),ye,or,cn)}}var bn=e.createWatchFactory(pr,Dr),In=bn.watchFile,zn=bn.watchDirectory,ir=bn.writeLog,Rr={host:He,hostWithWatch:pr,currentDirectory:Jr,getCanonicalFileName:ze,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(He),write:e.maybeBind(He,He.trace),options:Dr,baseCompilerOptions:Ar,rootNames:$e,baseWatchOptions:Fr,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:Yr,moduleResolutionCache:lt,typeReferenceDirectiveResolutionCache:tt,buildOrder:void 0,readFileWithCache:function(sr){return He.readFile(sr)},projectCompilerOptions:Ar,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:de,currentInvalidatedProject:void 0,watch:de,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:In,watchDirectory:zn,writeLog:ir};return Rr}function k(de,Fe){return e.toPath(Fe,de.currentDirectory,de.getCanonicalFileName)}function M(de,Fe){var $e=de.resolvedConfigFilePaths,Dr=$e.get(Fe);if(Dr!==void 0)return Dr;var Fr=k(de,Fe);return $e.set(Fe,Fr),Fr}function x(de){return!!de.options}function w(de,Fe){var $e=de.configFileCache.get(Fe);return $e&&x($e)?$e:void 0}function K(de,Fe,$e){var Dr=de.configFileCache,Fr=Dr.get($e);if(Fr)return x(Fr)?Fr:void 0;var He,pr=de.parseConfigFileHost,Jr=de.baseCompilerOptions,ze=de.baseWatchOptions,Ar=de.extendedConfigCache,Yr=de.host,lt;return Yr.getParsedCommandLine?(lt=Yr.getParsedCommandLine(Fe),lt||(He=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,Fe))):(pr.onUnRecoverableConfigFileDiagnostic=function(tt){return He=tt},lt=e.getParsedCommandLineOfConfigFile(Fe,Jr,pr,Ar,ze),pr.onUnRecoverableConfigFileDiagnostic=e.noop),Dr.set($e,lt||He),lt}function Z(de,Fe){return e.resolveConfigFileProjectName(e.resolvePath(de.currentDirectory,Fe))}function ne(de,Fe){for(var $e=new e.Map,Dr=new e.Map,Fr=[],He,pr,Jr=0,ze=Fe;Jr<ze.length;Jr++){var Ar=ze[Jr];Yr(Ar)}return pr?{buildOrder:He||e.emptyArray,circularDiagnostics:pr}:He||e.emptyArray;function Yr(lt,tt){var Rt=M(de,lt);if(!Dr.has(Rt)){if($e.has(Rt)){tt||(pr||(pr=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,Fr.join(`\r
|
|
`)));return}$e.set(Rt,!0),Fr.push(lt);var cn=K(de,lt,Rt);if(cn&&cn.projectReferences)for(var bn=0,In=cn.projectReferences;bn<In.length;bn++){var zn=In[bn],ir=Z(de,zn.path);Yr(ir,tt||zn.circular)}Fr.pop(),Dr.set(Rt,!0),(He||(He=[])).push(lt)}}}function R(de){return de.buildOrder||Y(de)}function Y(de){var Fe=ne(de,de.rootNames.map(function(Fr){return Z(de,Fr)}));de.resolvedConfigFilePaths.clear();var $e=new e.Map(v(Fe).map(function(Fr){return[M(de,Fr),!0]})),Dr={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(de.configFileCache,$e,Dr),e.mutateMapSkippingNewValues(de.projectStatus,$e,Dr),e.mutateMapSkippingNewValues(de.buildInfoChecked,$e,Dr),e.mutateMapSkippingNewValues(de.builderPrograms,$e,Dr),e.mutateMapSkippingNewValues(de.diagnostics,$e,Dr),e.mutateMapSkippingNewValues(de.projectPendingBuild,$e,Dr),e.mutateMapSkippingNewValues(de.projectErrorsReported,$e,Dr),de.watch&&(e.mutateMapSkippingNewValues(de.allWatchedConfigFiles,$e,{onDeleteValue:e.closeFileWatcher}),de.allWatchedExtendedConfigFiles.forEach(function(Fr){Fr.projects.forEach(function(He){$e.has(He)||Fr.projects.delete(He)}),Fr.close()}),e.mutateMapSkippingNewValues(de.allWatchedWildcardDirectories,$e,{onDeleteValue:function(Fr){return Fr.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(de.allWatchedInputFiles,$e,{onDeleteValue:function(Fr){return Fr.forEach(e.closeFileWatcher)}}),e.mutateMapSkippingNewValues(de.allWatchedPackageJsonFiles,$e,{onDeleteValue:function(Fr){return Fr.forEach(e.closeFileWatcher)}})),de.buildOrder=Fe}function U(de,Fe,$e){var Dr=Fe&&Z(de,Fe),Fr=R(de);if(h(Fr))return Fr;if(Dr){var He=M(de,Dr),pr=e.findIndex(Fr,function(ze){return M(de,ze)===He});if(pr===-1)return}var Jr=Dr?ne(de,[Dr]):Fr;return e.Debug.assert(!h(Jr)),e.Debug.assert(!$e||Dr!==void 0),e.Debug.assert(!$e||Jr[Jr.length-1]===Dr),$e?Jr.slice(0,Jr.length-1):Jr}function $(de){de.cache&&T(de);var Fe=de.compilerHost,$e=de.host,Dr=de.readFileWithCache,Fr=Fe.getSourceFile,He=e.changeCompilerHostLikeToUseCache($e,function(Rt){return k(de,Rt)},function(){for(var Rt=[],cn=0;cn<arguments.length;cn++)Rt[cn]=arguments[cn];return Fr.call.apply(Fr,Gt([Fe],Rt,!1))}),pr=He.originalReadFile,Jr=He.originalFileExists,ze=He.originalDirectoryExists,Ar=He.originalCreateDirectory,Yr=He.originalWriteFile,lt=He.getSourceFileWithCache,tt=He.readFileWithCache;de.readFileWithCache=tt,Fe.getSourceFile=lt,de.cache={originalReadFile:pr,originalFileExists:Jr,originalDirectoryExists:ze,originalCreateDirectory:Ar,originalWriteFile:Yr,originalReadFileWithCache:Dr,originalGetSourceFile:Fr}}function T(de){if(!!de.cache){var Fe=de.cache,$e=de.host,Dr=de.compilerHost,Fr=de.extendedConfigCache,He=de.moduleResolutionCache,pr=de.typeReferenceDirectiveResolutionCache;$e.readFile=Fe.originalReadFile,$e.fileExists=Fe.originalFileExists,$e.directoryExists=Fe.originalDirectoryExists,$e.createDirectory=Fe.originalCreateDirectory,$e.writeFile=Fe.originalWriteFile,Dr.getSourceFile=Fe.originalGetSourceFile,de.readFileWithCache=Fe.originalReadFileWithCache,Fr.clear(),He==null||He.clear(),pr==null||pr.clear(),de.cache=void 0}}function I(de,Fe){de.projectStatus.delete(Fe),de.diagnostics.delete(Fe)}function y(de,Fe,$e){var Dr=de.projectPendingBuild,Fr=Dr.get(Fe);(Fr===void 0||Fr<$e)&&Dr.set(Fe,$e)}function D(de,Fe){if(!!de.allProjectBuildPending){de.allProjectBuildPending=!1,de.options.watch&&lr(de,e.Diagnostics.Starting_compilation_in_watch_mode),$(de);var $e=v(R(de));$e.forEach(function(Dr){return de.projectPendingBuild.set(M(de,Dr),e.ConfigFileProgramReloadLevel.None)}),Fe&&Fe.throwIfCancellationRequested()}}var C;(function(de){de[de.Build=0]="Build",de[de.UpdateBundle=1]="UpdateBundle",de[de.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"})(C=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={}));function m(de,Fe){return de.projectPendingBuild.delete(Fe),de.currentInvalidatedProject=void 0,de.diagnostics.has(Fe)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function u(de,Fe,$e,Dr,Fr){var He=!0;return{kind:C.UpdateOutputFileStamps,project:Fe,projectPath:$e,buildOrder:Fr,getCompilerOptions:function(){return Dr.options},getCurrentDirectory:function(){return de.currentDirectory},updateOutputFileStatmps:function(){Te(de,Dr,$e),He=!1},done:function(){return He&&Te(de,Dr,$e),m(de,$e)}}}var g;(function(de){de[de.CreateProgram=0]="CreateProgram",de[de.SyntaxDiagnostics=1]="SyntaxDiagnostics",de[de.SemanticDiagnostics=2]="SemanticDiagnostics",de[de.Emit=3]="Emit",de[de.EmitBundle=4]="EmitBundle",de[de.EmitBuildInfo=5]="EmitBuildInfo",de[de.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",de[de.QueueReferencingProjects=7]="QueueReferencingProjects",de[de.Done=8]="Done"})(g||(g={}));function F(de,Fe,$e,Dr,Fr,He,pr){var Jr=de===C.Build?g.CreateProgram:g.EmitBundle,ze,Ar,Yr;return de===C.Build?{kind:de,project:$e,projectPath:Dr,buildOrder:pr,getCompilerOptions:function(){return He.options},getCurrentDirectory:function(){return Fe.currentDirectory},getBuilderProgram:function(){return tt(e.identity)},getProgram:function(){return tt(function(fe){return fe.getProgramOrUndefined()})},getSourceFile:function(fe){return tt(function(je){return je.getSourceFile(fe)})},getSourceFiles:function(){return Rt(function(fe){return fe.getSourceFiles()})},getOptionsDiagnostics:function(fe){return Rt(function(je){return je.getOptionsDiagnostics(fe)})},getGlobalDiagnostics:function(fe){return Rt(function(je){return je.getGlobalDiagnostics(fe)})},getConfigFileParsingDiagnostics:function(){return Rt(function(fe){return fe.getConfigFileParsingDiagnostics()})},getSyntacticDiagnostics:function(fe,je){return Rt(function(Ee){return Ee.getSyntacticDiagnostics(fe,je)})},getAllDependencies:function(fe){return Rt(function(je){return je.getAllDependencies(fe)})},getSemanticDiagnostics:function(fe,je){return Rt(function(Ee){return Ee.getSemanticDiagnostics(fe,je)})},getSemanticDiagnosticsOfNextAffectedFile:function(fe,je){return tt(function(Ee){return Ee.getSemanticDiagnosticsOfNextAffectedFile&&Ee.getSemanticDiagnosticsOfNextAffectedFile(fe,je)})},emit:function(fe,je,Ee,We,ee){if(fe||We)return tt(function(Ne){var me,Ze;return Ne.emit(fe,je,Ee,We,ee||((Ze=(me=Fe.host).getCustomTransformers)===null||Ze===void 0?void 0:Ze.call(me,$e)))});if(or(g.SemanticDiagnostics,Ee),Jr===g.EmitBuildInfo)return Rr(je,Ee);if(Jr===g.Emit)return ir(je,Ee,ee)},done:lt}:{kind:de,project:$e,projectPath:Dr,buildOrder:pr,getCompilerOptions:function(){return He.options},getCurrentDirectory:function(){return Fe.currentDirectory},emit:function(fe,je){return Jr!==g.EmitBundle?Yr:ye(fe,je)},done:lt};function lt(fe,je,Ee){return or(g.Done,fe,je,Ee),m(Fe,Dr)}function tt(fe){return or(g.CreateProgram),ze&&fe(ze)}function Rt(fe){return tt(fe)||e.emptyArray}function cn(){var fe,je;if(e.Debug.assert(ze===void 0),Fe.options.dry){Er(Fe,e.Diagnostics.A_non_dry_build_would_build_project_0,$e),Ar=d.Success,Jr=g.QueueReferencingProjects;return}if(Fe.options.verbose&&Er(Fe,e.Diagnostics.Building_project_0,$e),He.fileNames.length===0){Or(Fe,Dr,e.getConfigFileParsingDiagnostics(He)),Ar=d.None,Jr=g.QueueReferencingProjects;return}var Ee=Fe.host,We=Fe.compilerHost;Fe.projectCompilerOptions=He.options,(fe=Fe.moduleResolutionCache)===null||fe===void 0||fe.update(He.options),(je=Fe.typeReferenceDirectiveResolutionCache)===null||je===void 0||je.update(He.options),ze=Ee.createProgram(He.fileNames,He.options,We,j(Fe,Dr,He),e.getConfigFileParsingDiagnostics(He),He.projectReferences),Fe.watch&&(Fe.lastCachedPackageJsonLookups.set(Dr,Fe.moduleResolutionCache&&e.map(Fe.moduleResolutionCache.getPackageJsonInfoCache().entries(),function(ee){var Ne=ee[0],me=ee[1];return[Fe.host.realpath&&me?k(Fe,Fe.host.realpath(Ne)):Ne,me]})),Fe.builderPrograms.set(Dr,ze)),Jr++}function bn(fe,je,Ee){var We;fe.length?(We=Ce(Fe,Dr,ze,He,fe,je,Ee),Ar=We.buildResult,Jr=We.step):Jr++}function In(fe){e.Debug.assertIsDefined(ze),bn(Gt(Gt(Gt(Gt([],ze.getConfigFileParsingDiagnostics(),!0),ze.getOptionsDiagnostics(fe),!0),ze.getGlobalDiagnostics(fe),!0),ze.getSyntacticDiagnostics(void 0,fe),!0),d.SyntaxErrors,"Syntactic")}function zn(fe){bn(e.Debug.checkDefined(ze).getSemanticDiagnostics(void 0,fe),d.TypeErrors,"Semantic")}function ir(fe,je,Ee){var We,ee,Ne;e.Debug.assertIsDefined(ze),e.Debug.assert(Jr===g.Emit),ze.backupState();var me,Ze=function(zr){return(me||(me=[])).push(zr)},xr=[],fr=e.emitFilesAndReportErrors(ze,Ze,void 0,void 0,function(zr,gt,vt){return xr.push({name:zr,text:gt,writeByteOrderMark:vt})},je,!1,Ee||((Ne=(ee=Fe.host).getCustomTransformers)===null||Ne===void 0?void 0:Ne.call(ee,$e))).emitResult;if(me)return ze.restoreState(),We=Ce(Fe,Dr,ze,He,me,d.DeclarationEmitErrors,"Declaration file"),Ar=We.buildResult,Jr=We.step,{emitSkipped:!0,diagnostics:fr.diagnostics};var dr=Fe.host,et=Fe.compilerHost,yt=d.DeclarationOutputUnchanged,Wr=n,tr=!1,Ir=e.createDiagnosticCollection(),kr=new e.Map;return xr.forEach(function(zr){var gt=zr.name,vt=zr.text,ut=zr.writeByteOrderMark,ht;!tr&&H(gt)&&(dr.fileExists(gt)&&Fe.readFileWithCache(gt)===vt?ht=dr.getModifiedTime(gt):(yt&=~d.DeclarationOutputUnchanged,tr=!0)),kr.set(k(Fe,gt),gt),e.writeFile(fe?{writeFile:fe}:et,Ir,gt,vt,ut),ht!==void 0&&(Wr=N(ht,Wr))}),sr(Ir,kr,Wr,tr,xr.length?xr[0].name:e.getFirstProjectOutput(He,!dr.useCaseSensitiveFileNames()),yt),fr}function Rr(fe,je){e.Debug.assertIsDefined(ze),e.Debug.assert(Jr===g.EmitBuildInfo);var Ee=ze.emitBuildInfo(fe,je);return Ee.diagnostics.length&&(Cr(Fe,Ee.diagnostics),Fe.diagnostics.set(Dr,Gt(Gt([],Fe.diagnostics.get(Dr),!0),Ee.diagnostics,!0)),Ar=d.EmitErrors&Ar),Ee.emittedFiles&&Fe.write&&Ee.emittedFiles.forEach(function(We){return X(Fe,He,We)}),Se(Fe,ze,He),Jr=g.QueueReferencingProjects,Ee}function sr(fe,je,Ee,We,ee,Ne){var me,Ze=fe.getDiagnostics();if(Ze.length)return me=Ce(Fe,Dr,ze,He,Ze,d.EmitErrors,"Emit"),Ar=me.buildResult,Jr=me.step,Ze;Fe.write&&je.forEach(function(fr){return X(Fe,He,fr)});var xr=z(Fe,He,Ee,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,je);return Fe.diagnostics.delete(Dr),Fe.projectStatus.set(Dr,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:We?f:xr,oldestOutputFileName:ee}),Se(Fe,ze,He),Jr=g.QueueReferencingProjects,Ar=Ne,Ze}function ye(fe,je){var Ee,We;if(e.Debug.assert(de===C.UpdateBundle),Fe.options.dry){Er(Fe,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,$e),Ar=d.Success,Jr=g.QueueReferencingProjects;return}Fe.options.verbose&&Er(Fe,e.Diagnostics.Updating_output_of_project_0,$e);var ee=Fe.compilerHost;Fe.projectCompilerOptions=He.options;var Ne=e.emitUsingBuildInfo(He,ee,function(fr){var dr=Z(Fe,fr.path);return K(Fe,dr,M(Fe,dr))},je||((We=(Ee=Fe.host).getCustomTransformers)===null||We===void 0?void 0:We.call(Ee,$e)));if(e.isString(Ne))return Er(Fe,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,$e,Lr(Fe,Ne)),Jr=g.BuildInvalidatedProjectOfBundle,Yr=F(C.Build,Fe,$e,Dr,Fr,He,pr);e.Debug.assert(!!Ne.length);var me=e.createDiagnosticCollection(),Ze=new e.Map;Ne.forEach(function(fr){var dr=fr.name,et=fr.text,yt=fr.writeByteOrderMark;Ze.set(k(Fe,dr),dr),e.writeFile(fe?{writeFile:fe}:ee,me,dr,et,yt)});var xr=sr(me,Ze,n,!1,Ne[0].name,d.DeclarationOutputUnchanged);return{emitSkipped:!1,diagnostics:xr}}function or(fe,je,Ee,We){for(;Jr<=fe&&Jr<g.Done;){var ee=Jr;switch(Jr){case g.CreateProgram:cn();break;case g.SyntaxDiagnostics:In(je);break;case g.SemanticDiagnostics:zn(je);break;case g.Emit:ir(Ee,je,We);break;case g.EmitBuildInfo:Rr(Ee,je);break;case g.EmitBundle:ye(Ee,We);break;case g.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(Yr).done(je,Ee,We),Jr=g.Done;break;case g.QueueReferencingProjects:ge(Fe,$e,Dr,Fr,He,pr,e.Debug.checkDefined(Ar)),Jr++;break;case g.Done:default:e.assertType(Jr)}e.Debug.assert(Jr>ee)}}}function te(de,Fe,$e){var Dr=de.options;return Fe.type!==e.UpToDateStatusType.OutOfDateWithPrepend||Dr.force?!0:$e.fileNames.length===0||!!e.getConfigFileParsingDiagnostics($e).length||!e.isIncrementalCompilation($e.options)}function ue(de,Fe,$e){if(!!de.projectPendingBuild.size&&!h(Fe)){if(de.currentInvalidatedProject)return e.arrayIsEqualTo(de.currentInvalidatedProject.buildOrder,Fe)?de.currentInvalidatedProject:void 0;for(var Dr=de.options,Fr=de.projectPendingBuild,He=0;He<Fe.length;He++){var pr=Fe[He],Jr=M(de,pr),ze=de.projectPendingBuild.get(Jr);if(ze!==void 0){$e&&($e=!1,Hr(de,Fe));var Ar=K(de,pr,Jr);if(!Ar){Ke(de,Jr),Fr.delete(Jr);continue}ze===e.ConfigFileProgramReloadLevel.Full?(Ve(de,pr,Jr,Ar),_e(de,Jr,Ar),Le(de,pr,Jr,Ar),qe(de,pr,Jr,Ar),Xe(de,pr,Jr,Ar)):ze===e.ConfigFileProgramReloadLevel.Partial&&(Ar.fileNames=e.getFileNamesFromConfigSpecs(Ar.options.configFile.configFileSpecs,e.getDirectoryPath(pr),Ar.options,de.parseConfigFileHost),e.updateErrorForNoInputFiles(Ar.fileNames,pr,Ar.options.configFile.configFileSpecs,Ar.errors,e.canJsonReportNoInputFiles(Ar.raw)),qe(de,pr,Jr,Ar),Xe(de,pr,Jr,Ar));var Yr=V(de,Ar,Jr);if(vr(de,pr,Yr),!Dr.force){if(Yr.type===e.UpToDateStatusType.UpToDate){Or(de,Jr,e.getConfigFileParsingDiagnostics(Ar)),Fr.delete(Jr),Dr.dry&&Er(de,e.Diagnostics.Project_0_is_up_to_date,pr);continue}if(Yr.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return Or(de,Jr,e.getConfigFileParsingDiagnostics(Ar)),u(de,pr,Jr,Ar,Fe)}if(Yr.type===e.UpToDateStatusType.UpstreamBlocked){Or(de,Jr,e.getConfigFileParsingDiagnostics(Ar)),Fr.delete(Jr),Dr.verbose&&Er(de,Yr.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,pr,Yr.upstreamProjectName);continue}if(Yr.type===e.UpToDateStatusType.ContainerOnly){Or(de,Jr,e.getConfigFileParsingDiagnostics(Ar)),Fr.delete(Jr);continue}return F(te(de,Yr,Ar)?C.Build:C.UpdateBundle,de,pr,Jr,He,Ar,Fe)}}}}function X(de,Fe,$e){var Dr=de.write;Dr&&Fe.options.listEmittedFiles&&Dr("TSFILE: ".concat($e))}function j(de,Fe,$e){var Dr=de.options,Fr=de.builderPrograms,He=de.compilerHost;if(!Dr.force){var pr=Fr.get(Fe);return pr||e.readBuilderProgram($e.options,He)}}function Se(de,Fe,$e){Fe?(Fe&&de.write&&e.listFiles(Fe,de.write),de.host.afterProgramEmitAndDiagnostics&&de.host.afterProgramEmitAndDiagnostics(Fe),Fe.releaseProgram()):de.host.afterEmitBundle&&de.host.afterEmitBundle($e),de.projectCompilerOptions=de.baseCompilerOptions}function Ce(de,Fe,$e,Dr,Fr,He,pr){var Jr=!(He&d.SyntaxErrors)&&$e&&!e.outFile($e.getCompilerOptions());return Or(de,Fe,Fr),de.projectStatus.set(Fe,{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(pr," errors")}),Jr?{buildResult:He,step:g.EmitBuildInfo}:(Se(de,$e,Dr),{buildResult:He,step:g.QueueReferencingProjects})}function O(de,Fe,$e,Dr){var Fr=e.getModifiedTime(de.host,Fe);if($e<Fr)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:Dr,newerInputFileName:Fe}}function Q(de,Fe,$e){for(var Dr=!!de.options.force,Fr=void 0,He=n,pr=de.host,Jr=0,ze=Fe.fileNames;Jr<ze.length;Jr++){var Ar=ze[Jr];if(!pr.fileExists(Ar))return{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(Ar," does not exist")};if(!Dr){var Yr=e.getModifiedTime(pr,Ar);Yr>He&&(Fr=Ar,He=Yr)}}if(!Fe.fileNames.length&&!e.canJsonReportNoInputFiles(Fe.raw))return{type:e.UpToDateStatusType.ContainerOnly};var lt=e.getAllProjectOutputs(Fe,!pr.useCaseSensitiveFileNames()),tt="(none)",Rt=f,cn="(none)",bn=n,In,zn=n,ir=!1;if(!Dr)for(var Rr=0,sr=lt;Rr<sr.length;Rr++){var ye=sr[Rr];if(!pr.fileExists(ye)){In=ye;break}var or=e.getModifiedTime(pr,ye);if(or<Rt&&(Rt=or,tt=ye),or<He){ir=!0;break}if(or>bn&&(bn=or,cn=ye),H(ye)){var fe=e.getModifiedTime(pr,ye);zn=N(zn,fe)}}var je=!1,Ee=!1,We;if(Fe.projectReferences){de.projectStatus.set($e,{type:e.UpToDateStatusType.ComputingUpstream});for(var ee=0,Ne=Fe.projectReferences;ee<Ne.length;ee++){var me=Ne[ee];Ee=Ee||!!me.prepend;var Ze=e.resolveProjectReferencePath(me),xr=M(de,Ze),fr=V(de,K(de,Ze,xr),xr);if(!(fr.type===e.UpToDateStatusType.ComputingUpstream||fr.type===e.UpToDateStatusType.ContainerOnly)){if(fr.type===e.UpToDateStatusType.Unbuildable||fr.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:me.path,upstreamProjectBlocked:fr.type===e.UpToDateStatusType.UpstreamBlocked};if(fr.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:me.path};if(!Dr&&!In){if(fr.newestInputFileTime&&fr.newestInputFileTime<=Rt)continue;if(fr.newestDeclarationFileContentChangedTime&&fr.newestDeclarationFileContentChangedTime<=Rt){je=!0,We=me.path;continue}return e.Debug.assert(tt!==void 0,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:tt,newerProjectName:me.path}}}}}if(In!==void 0)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:In};if(ir)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:tt,newerInputFileName:Fr};var dr=O(de,Fe.options.configFilePath,Rt,tt);if(dr)return dr;var et=e.forEach(Fe.options.configFile.extendedSourceFiles||e.emptyArray,function(kr){return O(de,kr,Rt,tt)});if(et)return et;var yt=e.forEach(de.lastCachedPackageJsonLookups.get($e)||e.emptyArray,function(kr){var zr=kr[0];return O(de,zr,Rt,tt)});if(yt)return yt;if(!Dr&&!de.buildInfoChecked.has($e)){de.buildInfoChecked.set($e,!0);var Wr=e.getTsBuildInfoEmitOutputFilePath(Fe.options);if(Wr){var tr=de.readFileWithCache(Wr),Ir=tr&&e.getBuildInfo(tr);if(Ir&&(Ir.bundle||Ir.program)&&Ir.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:Ir.version}}}return Ee&&je?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:tt,newerProjectName:We}:{type:je?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:zn,newestInputFileTime:He,newestOutputFileTime:bn,newestInputFileName:Fr,newestOutputFileName:cn,oldestOutputFileName:tt}}function V(de,Fe,$e){if(Fe===void 0)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var Dr=de.projectStatus.get($e);if(Dr!==void 0)return Dr;var Fr=Q(de,Fe,$e);return de.projectStatus.set($e,Fr),Fr}function z(de,Fe,$e,Dr,Fr){if(Fe.options.noEmit)return $e;var He=de.host,pr=e.getAllProjectOutputs(Fe,!He.useCaseSensitiveFileNames());if(!Fr||pr.length!==Fr.size)for(var Jr=!!de.options.verbose,ze=He.now?He.now():new Date,Ar=0,Yr=pr;Ar<Yr.length;Ar++){var lt=Yr[Ar];Fr&&Fr.has(k(de,lt))||(Jr&&(Jr=!1,Er(de,Dr,Fe.options.configFilePath)),H(lt)&&($e=N($e,e.getModifiedTime(He,lt))),He.setModifiedTime(lt,ze))}return $e}function Te(de,Fe,$e){if(de.options.dry)return Er(de,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,Fe.options.configFilePath);var Dr=z(de,Fe,n,e.Diagnostics.Updating_output_timestamps_of_project_0);de.projectStatus.set($e,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:Dr,oldestOutputFileName:e.getFirstProjectOutput(Fe,!de.host.useCaseSensitiveFileNames())})}function ge(de,Fe,$e,Dr,Fr,He,pr){if(!(pr&d.AnyErrors)&&!!Fr.options.composite)for(var Jr=Dr+1;Jr<He.length;Jr++){var ze=He[Jr],Ar=M(de,ze);if(!de.projectPendingBuild.has(Ar)){var Yr=K(de,ze,Ar);if(!(!Yr||!Yr.projectReferences))for(var lt=0,tt=Yr.projectReferences;lt<tt.length;lt++){var Rt=tt[lt],cn=Z(de,Rt.path);if(M(de,cn)===$e){var bn=de.projectStatus.get(Ar);if(bn)switch(bn.type){case e.UpToDateStatusType.UpToDate:if(pr&d.DeclarationOutputUnchanged){Rt.prepend?de.projectStatus.set(Ar,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:bn.oldestOutputFileName,newerProjectName:Fe}):bn.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:pr&d.DeclarationOutputUnchanged||de.projectStatus.set(Ar,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:bn.type===e.UpToDateStatusType.OutOfDateWithPrepend?bn.outOfDateOutputFileName:bn.oldestOutputFileName,newerProjectName:Fe});break;case e.UpToDateStatusType.UpstreamBlocked:M(de,Z(de,bn.upstreamProjectName))===$e&&I(de,Ar);break}y(de,Ar,e.ConfigFileProgramReloadLevel.None);break}}}}}function ke(de,Fe,$e,Dr,Fr,He){var pr=U(de,Fe,He);if(!pr)return e.ExitStatus.InvalidProject_OutputsSkipped;D(de,$e);for(var Jr=!0,ze=0;;){var Ar=ue(de,pr,Jr);if(!Ar)break;Jr=!1,Ar.done($e,Dr,Fr==null?void 0:Fr(Ar.project)),de.diagnostics.has(Ar.projectPath)||ze++}return T(de),Pe(de,pr),De(de,pr),h(pr)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:pr.some(function(Yr){return de.diagnostics.has(M(de,Yr))})?ze?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function Me(de,Fe,$e){var Dr=U(de,Fe,$e);if(!Dr)return e.ExitStatus.InvalidProject_OutputsSkipped;if(h(Dr))return Cr(de,Dr.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var Fr=de.options,He=de.host,pr=Fr.dry?[]:void 0,Jr=0,ze=Dr;Jr<ze.length;Jr++){var Ar=ze[Jr],Yr=M(de,Ar),lt=K(de,Ar,Yr);if(lt===void 0){Ke(de,Yr);continue}var tt=e.getAllProjectOutputs(lt,!He.useCaseSensitiveFileNames());if(!!tt.length)for(var Rt=new e.Set(lt.fileNames.map(function(zn){return k(de,zn)})),cn=0,bn=tt;cn<bn.length;cn++){var In=bn[cn];Rt.has(k(de,In))||He.fileExists(In)&&(pr?pr.push(In):(He.deleteFile(In),Ie(de,Yr,e.ConfigFileProgramReloadLevel.None)))}}return pr&&Er(de,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,pr.map(function(zn){return`\r
|
|
* `.concat(zn)}).join("")),e.ExitStatus.Success}function Ie(de,Fe,$e){de.host.getParsedCommandLine&&$e===e.ConfigFileProgramReloadLevel.Partial&&($e=e.ConfigFileProgramReloadLevel.Full),$e===e.ConfigFileProgramReloadLevel.Full&&(de.configFileCache.delete(Fe),de.buildOrder=void 0),de.needsSummary=!0,I(de,Fe),y(de,Fe,$e),$(de)}function Ge(de,Fe,$e){de.reportFileChangeDetected=!0,Ie(de,Fe,$e),he(de)}function he(de){var Fe=de.hostWithWatch;!Fe.setTimeout||!Fe.clearTimeout||(de.timerToBuildInvalidatedProject&&Fe.clearTimeout(de.timerToBuildInvalidatedProject),de.timerToBuildInvalidatedProject=Fe.setTimeout(ve,250,de))}function ve(de){de.timerToBuildInvalidatedProject=void 0,de.reportFileChangeDetected&&(de.reportFileChangeDetected=!1,de.projectErrorsReported.clear(),lr(de,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var Fe=R(de),$e=ue(de,Fe,!1);if($e&&($e.done(),de.projectPendingBuild.size)){de.watch&&!de.timerToBuildInvalidatedProject&&he(de);return}T(de),Pe(de,Fe)}function Ve(de,Fe,$e,Dr){!de.watch||de.allWatchedConfigFiles.has($e)||de.allWatchedConfigFiles.set($e,de.watchFile(Fe,function(){Ge(de,$e,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,Dr==null?void 0:Dr.watchOptions,e.WatchType.ConfigFile,Fe))}function _e(de,Fe,$e){e.updateSharedExtendedConfigFileWatcher(Fe,$e==null?void 0:$e.options,de.allWatchedExtendedConfigFiles,function(Dr,Fr){return de.watchFile(Dr,function(){var He;return(He=de.allWatchedExtendedConfigFiles.get(Fr))===null||He===void 0?void 0:He.projects.forEach(function(pr){return Ge(de,pr,e.ConfigFileProgramReloadLevel.Full)})},e.PollingInterval.High,$e==null?void 0:$e.watchOptions,e.WatchType.ExtendedConfigFile)},function(Dr){return k(de,Dr)})}function Le(de,Fe,$e,Dr){!de.watch||e.updateWatchingWildcardDirectories(p(de.allWatchedWildcardDirectories,$e),new e.Map(e.getEntries(Dr.wildcardDirectories)),function(Fr,He){return de.watchDirectory(Fr,function(pr){var Jr;e.isIgnoredFileFromWildCardWatching({watchedDirPath:k(de,Fr),fileOrDirectory:pr,fileOrDirectoryPath:k(de,pr),configFileName:Fe,currentDirectory:de.currentDirectory,options:Dr.options,program:de.builderPrograms.get($e)||((Jr=w(de,$e))===null||Jr===void 0?void 0:Jr.fileNames),useCaseSensitiveFileNames:de.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(ze){return de.writeLog(ze)},toPath:function(ze){return k(de,ze)}})||Ge(de,$e,e.ConfigFileProgramReloadLevel.Partial)},He,Dr==null?void 0:Dr.watchOptions,e.WatchType.WildcardDirectory,Fe)})}function qe(de,Fe,$e,Dr){!de.watch||e.mutateMap(p(de.allWatchedInputFiles,$e),e.arrayToMap(Dr.fileNames,function(Fr){return k(de,Fr)}),{createNewValue:function(Fr,He){return de.watchFile(He,function(){return Ge(de,$e,e.ConfigFileProgramReloadLevel.None)},e.PollingInterval.Low,Dr==null?void 0:Dr.watchOptions,e.WatchType.SourceFile,Fe)},onDeleteValue:e.closeFileWatcher})}function Xe(de,Fe,$e,Dr){!de.watch||!de.lastCachedPackageJsonLookups||e.mutateMap(p(de.allWatchedPackageJsonFiles,$e),new e.Map(de.lastCachedPackageJsonLookups.get($e)),{createNewValue:function(Fr,He){return de.watchFile(Fr,function(){return Ge(de,$e,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,Dr==null?void 0:Dr.watchOptions,e.WatchType.PackageJson,Fe)},onDeleteValue:e.closeFileWatcher})}function De(de,Fe){if(!!de.watchAllProjectsPending){de.watchAllProjectsPending=!1;for(var $e=0,Dr=v(Fe);$e<Dr.length;$e++){var Fr=Dr[$e],He=M(de,Fr),pr=K(de,Fr,He);Ve(de,Fr,He,pr),_e(de,He,pr),pr&&(Le(de,Fr,He,pr),qe(de,Fr,He,pr),Xe(de,Fr,He,pr))}}}function Ae(de){e.clearMap(de.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(de.allWatchedExtendedConfigFiles,e.closeFileWatcherOf),e.clearMap(de.allWatchedWildcardDirectories,function(Fe){return e.clearMap(Fe,e.closeFileWatcherOf)}),e.clearMap(de.allWatchedInputFiles,function(Fe){return e.clearMap(Fe,e.closeFileWatcher)}),e.clearMap(de.allWatchedPackageJsonFiles,function(Fe){return e.clearMap(Fe,e.closeFileWatcher)})}function Ye(de,Fe,$e,Dr,Fr){var He=J(de,Fe,$e,Dr,Fr);return{build:function(pr,Jr,ze,Ar){return ke(He,pr,Jr,ze,Ar)},clean:function(pr){return Me(He,pr)},buildReferences:function(pr,Jr,ze,Ar){return ke(He,pr,Jr,ze,Ar,!0)},cleanReferences:function(pr){return Me(He,pr,!0)},getNextInvalidatedProject:function(pr){return D(He,pr),ue(He,R(He),!1)},getBuildOrder:function(){return R(He)},getUpToDateStatusOfProject:function(pr){var Jr=Z(He,pr),ze=M(He,Jr);return V(He,K(He,Jr,ze),ze)},invalidateProject:function(pr,Jr){return Ie(He,pr,Jr||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return ve(He)},getAllParsedConfigs:function(){return e.arrayFrom(e.mapDefinedIterator(He.configFileCache.values(),function(pr){return x(pr)?pr:void 0}))},close:function(){return Ae(He)}}}function Lr(de,Fe){return e.convertToRelativePath(Fe,de.currentDirectory,function($e){return de.getCanonicalFileName($e)})}function Er(de,Fe){for(var $e=[],Dr=2;Dr<arguments.length;Dr++)$e[Dr-2]=arguments[Dr];de.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,Gt([Fe],$e,!1)))}function lr(de,Fe){for(var $e,Dr,Fr=[],He=2;He<arguments.length;He++)Fr[He-2]=arguments[He];(Dr=($e=de.hostWithWatch).onWatchStatusChange)===null||Dr===void 0||Dr.call($e,e.createCompilerDiagnostic.apply(void 0,Gt([Fe],Fr,!1)),de.host.getNewLine(),de.baseCompilerOptions)}function Cr(de,Fe){var $e=de.host;Fe.forEach(function(Dr){return $e.reportDiagnostic(Dr)})}function Or(de,Fe,$e){Cr(de,$e),de.projectErrorsReported.set(Fe,!0),$e.length&&de.diagnostics.set(Fe,$e)}function Ke(de,Fe){Or(de,Fe,[de.configFileCache.get(Fe)])}function Pe(de,Fe){if(!!de.needsSummary){de.needsSummary=!1;var $e=de.watch||!!de.host.reportErrorSummary,Dr=de.diagnostics,Fr=0;h(Fe)?(Hr(de,Fe.buildOrder),Cr(de,Fe.circularDiagnostics),$e&&(Fr+=e.getErrorCountForSummary(Fe.circularDiagnostics))):(Fe.forEach(function(He){var pr=M(de,He);de.projectErrorsReported.has(pr)||Cr(de,Dr.get(pr)||e.emptyArray)}),$e&&Dr.forEach(function(He){return Fr+=e.getErrorCountForSummary(He)})),de.watch?lr(de,e.getWatchErrorSummaryDiagnosticMessage(Fr),Fr):de.host.reportErrorSummary&&de.host.reportErrorSummary(Fr)}}function Hr(de,Fe){de.options.verbose&&Er(de,e.Diagnostics.Projects_in_this_build_Colon_0,Fe.map(function($e){return`\r
|
|
* `+Lr(de,$e)}).join(""))}function ur(de,Fe,$e){if(de.options.force&&($e.type===e.UpToDateStatusType.UpToDate||$e.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes))return Er(de,e.Diagnostics.Project_0_is_being_forcibly_rebuilt,Lr(de,Fe));switch($e.type){case e.UpToDateStatusType.OutOfDateWithSelf:return Er(de,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Lr(de,Fe),Lr(de,$e.outOfDateOutputFileName),Lr(de,$e.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return Er(de,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Lr(de,Fe),Lr(de,$e.outOfDateOutputFileName),Lr(de,$e.newerProjectName));case e.UpToDateStatusType.OutputMissing:return Er(de,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Lr(de,Fe),Lr(de,$e.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if($e.newestInputFileTime!==void 0)return Er(de,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,Lr(de,Fe),Lr(de,$e.newestInputFileName||""),Lr(de,$e.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return Er(de,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Lr(de,Fe),Lr(de,$e.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return Er(de,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Lr(de,Fe));case e.UpToDateStatusType.UpstreamOutOfDate:return Er(de,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Lr(de,Fe),Lr(de,$e.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return Er(de,$e.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,Lr(de,Fe),Lr(de,$e.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return Er(de,e.Diagnostics.Failed_to_parse_file_0_Colon_1,Lr(de,Fe),$e.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return Er(de,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Lr(de,Fe),$e.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType($e)}}function vr(de,Fe,$e){de.options.verbose&&ur(de,Fe,$e)}})(gr||(gr={}));var gr;(function(e){(function(n){n.ActionSet="action::set",n.ActionInvalidate="action::invalidate",n.ActionPackageInstalled="action::packageInstalled",n.EventTypesRegistry="event::typesRegistry",n.EventBeginInstallTypes="event::beginInstallTypes",n.EventEndInstallTypes="event::endInstallTypes",n.EventInitializationFailed="event::initializationFailed",function(p){p.GlobalCacheLocation="--globalTypingsCacheLocation",p.LogFile="--logFile",p.EnableTelemetry="--enableTelemetry",p.TypingSafeListLocation="--typingSafeListLocation",p.TypesMapLocation="--typesMapLocation",p.NpmLocation="--npmLocation",p.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"}(n.Arguments||(n.Arguments={}));function f(p){return e.sys.args.indexOf(p)>=0}n.hasArgument=f;function d(p){var N=e.sys.args.indexOf(p);return N>=0&&N<e.sys.args.length-1?e.sys.args[N+1]:void 0}n.findArgument=d;function a(){var p=new Date;return"".concat(e.padLeft(p.getHours().toString(),2,"0"),":").concat(e.padLeft(p.getMinutes().toString(),2,"0"),":").concat(e.padLeft(p.getSeconds().toString(),2,"0"),".").concat(e.padLeft(p.getMilliseconds().toString(),3,"0"))}n.nowString=a})(e.server||(e.server={}))})(gr||(gr={}));var gr;(function(e){(function(n){function f(b,P){var S=new e.Version(e.getProperty(P,"ts".concat(e.versionMajorMinor))||e.getProperty(P,"latest"));return S.compareTo(b.version)<=0}n.isTypingUpToDate=f;var d=["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"];n.prefixedNodeCoreModuleList=d.map(function(b){return"node:".concat(b)}),n.nodeCoreModuleList=Gt(Gt([],d,!0),n.prefixedNodeCoreModuleList,!0),n.nodeCoreModules=new e.Set(n.nodeCoreModuleList);function a(b){return n.nodeCoreModules.has(b)?"node":b}n.nonRelativeModuleNameForTypingCache=a;function p(b,P){var S=e.readConfigFile(P,function(B){return b.readFile(B)});return new e.Map(e.getEntries(S.config))}n.loadSafeList=p;function N(b,P){var S=e.readConfigFile(P,function(B){return b.readFile(B)});if(S.config)return new e.Map(e.getEntries(S.config.simpleMap))}n.loadTypesMap=N;function H(b,P,S,B,J,k,M,x,w){if(!M||!M.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var K=new e.Map;S=e.mapDefined(S,function(ue){var X=e.normalizePath(ue);if(e.hasJSFileExtension(X))return X});var Z=[];M.include&&u(M.include,"Explicitly included types");var ne=M.exclude||[],R=new e.Set(S.map(e.getDirectoryPath));if(R.add(B),R.forEach(function(ue){var X=e.combinePaths(ue,"package.json");g(X,Z);var j=e.combinePaths(ue,"bower.json");g(j,Z);var Se=e.combinePaths(ue,"bower_components");te(Se,Z);var Ce=e.combinePaths(ue,"node_modules");te(Ce,Z)}),M.disableFilenameBasedTypeAcquisition||F(S),x){var Y=e.deduplicate(x.map(a),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive);u(Y,"Inferred typings from unresolved imports")}k.forEach(function(ue,X){var j=w.get(X);K.has(X)&&K.get(X)===void 0&&j!==void 0&&f(ue,j)&&K.set(X,ue.typingLocation)});for(var U=0,$=ne;U<$.length;U++){var T=$[U],I=K.delete(T);I&&P&&P("Typing for ".concat(T," is in exclude list, will be ignored."))}var y=[],D=[];K.forEach(function(ue,X){ue!==void 0?D.push(ue):y.push(X)});var C={cachedTypingPaths:D,newTypingNames:y,filesToWatch:Z};return P&&P("Result: ".concat(JSON.stringify(C))),C;function m(ue){K.has(ue)||K.set(ue,void 0)}function u(ue,X){P&&P("".concat(X,": ").concat(JSON.stringify(ue))),e.forEach(ue,m)}function g(ue,X){if(!!b.fileExists(ue)){X.push(ue);var j=e.readConfigFile(ue,function(Ce){return b.readFile(Ce)}).config,Se=e.flatMap([j.dependencies,j.devDependencies,j.optionalDependencies,j.peerDependencies],e.getOwnKeys);u(Se,"Typing names in '".concat(ue,"' dependencies"))}}function F(ue){var X=e.mapDefined(ue,function(Se){if(!!e.hasJSFileExtension(Se)){var Ce=e.removeFileExtension(e.getBaseFileName(Se.toLowerCase())),O=e.removeMinAndVersionNumbers(Ce);return J.get(O)}});X.length&&u(X,"Inferred typings from file names");var j=e.some(ue,function(Se){return e.fileExtensionIs(Se,".jsx")});j&&(P&&P("Inferred 'react' typings due to presence of '.jsx' extension"),m("react"))}function te(ue,X){if(X.push(ue),!!b.directoryExists(ue)){var j=b.readDirectory(ue,[".json"],void 0,void 0,2);P&&P("Searching for typing names in ".concat(ue,"; all files: ").concat(JSON.stringify(j)));for(var Se=[],Ce=0,O=j;Ce<O.length;Ce++){var Q=O[Ce],V=e.normalizePath(Q),z=e.getBaseFileName(V);if(!(z!=="package.json"&&z!=="bower.json")){var Te=e.readConfigFile(V,function(Ie){return b.readFile(Ie)}),ge=Te.config;if(!(z==="package.json"&&ge._requiredBy&&e.filter(ge._requiredBy,function(Ie){return Ie[0]==="#"||Ie==="/"}).length===0)&&!!ge.name){var ke=ge.types||ge.typings;if(ke){var Me=e.getNormalizedAbsolutePath(ke,e.getDirectoryPath(V));P&&P(" Package '".concat(ge.name,"' provides its own types.")),K.set(ge.name,Me)}else Se.push(ge.name)}}}u(Se," Found package names")}}}n.discoverTypings=H,function(b){b[b.Ok=0]="Ok",b[b.EmptyName=1]="EmptyName",b[b.NameTooLong=2]="NameTooLong",b[b.NameStartsWithDot=3]="NameStartsWithDot",b[b.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",b[b.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters"}(n.NameValidationResult||(n.NameValidationResult={}));var h=214;function v(b){return A(b,!0)}n.validatePackageName=v;function A(b,P){if(!b)return 1;if(b.length>h)return 2;if(b.charCodeAt(0)===46)return 3;if(b.charCodeAt(0)===95)return 4;if(P){var S=/^@([^/]+)\/([^/]+)$/.exec(b);if(S){var B=A(S[1],!1);if(B!==0)return{name:S[1],isScopeName:!0,result:B};var J=A(S[2],!1);return J!==0?{name:S[2],isScopeName:!1,result:J}:0}}return encodeURIComponent(b)!==b?5:0}function q(b,P){return typeof b=="object"?ie(P,b.result,b.name,b.isScopeName):ie(P,b,P,!1)}n.renderPackageNameValidationFailure=q;function ie(b,P,S,B){var J=B?"Scope":"Package";switch(P){case 1:return"'".concat(b,"':: ").concat(J," name '").concat(S,"' cannot be empty");case 2:return"'".concat(b,"':: ").concat(J," name '").concat(S,"' should be less than ").concat(h," characters");case 3:return"'".concat(b,"':: ").concat(J," name '").concat(S,"' cannot start with '.'");case 4:return"'".concat(b,"':: ").concat(J," name '").concat(S,"' cannot start with '_'");case 5:return"'".concat(b,"':: ").concat(J," name '").concat(S,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(P)}}})(e.JsTyping||(e.JsTyping={}))})(gr||(gr={}));var gr;(function(e){(function(a){var p=function(){function H(h){this.text=h}return H.prototype.getText=function(h,v){return h===0&&v===this.text.length?this.text:this.text.substring(h,v)},H.prototype.getLength=function(){return this.text.length},H.prototype.getChangeRange=function(){},H}();function N(H){return new p(H)}a.fromString=N})(e.ScriptSnapshot||(e.ScriptSnapshot={})),function(a){a[a.Dependencies=1]="Dependencies",a[a.DevDependencies=2]="DevDependencies",a[a.PeerDependencies=4]="PeerDependencies",a[a.OptionalDependencies=8]="OptionalDependencies",a[a.All=15]="All"}(e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={})),function(a){a[a.Off=0]="Off",a[a.On=1]="On",a[a.Auto=2]="Auto"}(e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={})),function(a){a[a.Semantic=0]="Semantic",a[a.PartialSemantic=1]="PartialSemantic",a[a.Syntactic=2]="Syntactic"}(e.LanguageServiceMode||(e.LanguageServiceMode={})),e.emptyOptions={},function(a){a.Original="original",a.TwentyTwenty="2020"}(e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})),function(a){a[a.Invoked=1]="Invoked",a[a.TriggerCharacter=2]="TriggerCharacter",a[a.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions"}(e.CompletionTriggerKind||(e.CompletionTriggerKind={})),function(a){a.Type="Type",a.Parameter="Parameter",a.Enum="Enum"}(e.InlayHintKind||(e.InlayHintKind={})),function(a){a.none="none",a.definition="definition",a.reference="reference",a.writtenReference="writtenReference"}(e.HighlightSpanKind||(e.HighlightSpanKind={}));var n;(function(a){a[a.None=0]="None",a[a.Block=1]="Block",a[a.Smart=2]="Smart"})(n=e.IndentStyle||(e.IndentStyle={}));var f;(function(a){a.Ignore="ignore",a.Insert="insert",a.Remove="remove"})(f=e.SemicolonPreference||(e.SemicolonPreference={}));function d(a){return{indentSize:4,tabSize:4,newLineCharacter:a||`
|
|
`,convertTabsToSpaces:!0,indentStyle:n.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:f.Ignore,trimTrailingWhitespace:!0}}e.getDefaultFormatCodeSettings=d,e.testFormatSettings=d(`
|
|
`),function(a){a[a.aliasName=0]="aliasName",a[a.className=1]="className",a[a.enumName=2]="enumName",a[a.fieldName=3]="fieldName",a[a.interfaceName=4]="interfaceName",a[a.keyword=5]="keyword",a[a.lineBreak=6]="lineBreak",a[a.numericLiteral=7]="numericLiteral",a[a.stringLiteral=8]="stringLiteral",a[a.localName=9]="localName",a[a.methodName=10]="methodName",a[a.moduleName=11]="moduleName",a[a.operator=12]="operator",a[a.parameterName=13]="parameterName",a[a.propertyName=14]="propertyName",a[a.punctuation=15]="punctuation",a[a.space=16]="space",a[a.text=17]="text",a[a.typeParameterName=18]="typeParameterName",a[a.enumMemberName=19]="enumMemberName",a[a.functionName=20]="functionName",a[a.regularExpressionLiteral=21]="regularExpressionLiteral",a[a.link=22]="link",a[a.linkName=23]="linkName",a[a.linkText=24]="linkText"}(e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={})),function(a){a.Comment="comment",a.Region="region",a.Code="code",a.Imports="imports"}(e.OutliningSpanKind||(e.OutliningSpanKind={})),function(a){a[a.JavaScript=0]="JavaScript",a[a.SourceMap=1]="SourceMap",a[a.Declaration=2]="Declaration"}(e.OutputFileType||(e.OutputFileType={})),function(a){a[a.None=0]="None",a[a.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",a[a.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",a[a.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",a[a.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",a[a.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",a[a.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"}(e.EndOfLineState||(e.EndOfLineState={})),function(a){a[a.Punctuation=0]="Punctuation",a[a.Keyword=1]="Keyword",a[a.Operator=2]="Operator",a[a.Comment=3]="Comment",a[a.Whitespace=4]="Whitespace",a[a.Identifier=5]="Identifier",a[a.NumberLiteral=6]="NumberLiteral",a[a.BigIntLiteral=7]="BigIntLiteral",a[a.StringLiteral=8]="StringLiteral",a[a.RegExpLiteral=9]="RegExpLiteral"}(e.TokenClass||(e.TokenClass={})),function(a){a.unknown="",a.warning="warning",a.keyword="keyword",a.scriptElement="script",a.moduleElement="module",a.classElement="class",a.localClassElement="local class",a.interfaceElement="interface",a.typeElement="type",a.enumElement="enum",a.enumMemberElement="enum member",a.variableElement="var",a.localVariableElement="local var",a.functionElement="function",a.localFunctionElement="local function",a.memberFunctionElement="method",a.memberGetAccessorElement="getter",a.memberSetAccessorElement="setter",a.memberVariableElement="property",a.constructorImplementationElement="constructor",a.callSignatureElement="call",a.indexSignatureElement="index",a.constructSignatureElement="construct",a.parameterElement="parameter",a.typeParameterElement="type parameter",a.primitiveType="primitive type",a.label="label",a.alias="alias",a.constElement="const",a.letElement="let",a.directory="directory",a.externalModuleName="external module name",a.jsxAttribute="JSX attribute",a.string="string",a.link="link",a.linkName="link name",a.linkText="link text"}(e.ScriptElementKind||(e.ScriptElementKind={})),function(a){a.none="",a.publicMemberModifier="public",a.privateMemberModifier="private",a.protectedMemberModifier="protected",a.exportedModifier="export",a.ambientModifier="declare",a.staticModifier="static",a.abstractModifier="abstract",a.optionalModifier="optional",a.deprecatedModifier="deprecated",a.dtsModifier=".d.ts",a.tsModifier=".ts",a.tsxModifier=".tsx",a.jsModifier=".js",a.jsxModifier=".jsx",a.jsonModifier=".json",a.dmtsModifier=".d.mts",a.mtsModifier=".mts",a.mjsModifier=".mjs",a.dctsModifier=".d.cts",a.ctsModifier=".cts",a.cjsModifier=".cjs"}(e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(a){a.comment="comment",a.identifier="identifier",a.keyword="keyword",a.numericLiteral="number",a.bigintLiteral="bigint",a.operator="operator",a.stringLiteral="string",a.whiteSpace="whitespace",a.text="text",a.punctuation="punctuation",a.className="class name",a.enumName="enum name",a.interfaceName="interface name",a.moduleName="module name",a.typeParameterName="type parameter name",a.typeAliasName="type alias name",a.parameterName="parameter name",a.docCommentTagName="doc comment tag name",a.jsxOpenTagName="jsx open tag name",a.jsxCloseTagName="jsx close tag name",a.jsxSelfClosingTagName="jsx self closing tag name",a.jsxAttribute="jsx attribute",a.jsxText="jsx text",a.jsxAttributeStringLiteralValue="jsx attribute string literal value"}(e.ClassificationTypeNames||(e.ClassificationTypeNames={})),function(a){a[a.comment=1]="comment",a[a.identifier=2]="identifier",a[a.keyword=3]="keyword",a[a.numericLiteral=4]="numericLiteral",a[a.operator=5]="operator",a[a.stringLiteral=6]="stringLiteral",a[a.regularExpressionLiteral=7]="regularExpressionLiteral",a[a.whiteSpace=8]="whiteSpace",a[a.text=9]="text",a[a.punctuation=10]="punctuation",a[a.className=11]="className",a[a.enumName=12]="enumName",a[a.interfaceName=13]="interfaceName",a[a.moduleName=14]="moduleName",a[a.typeParameterName=15]="typeParameterName",a[a.typeAliasName=16]="typeAliasName",a[a.parameterName=17]="parameterName",a[a.docCommentTagName=18]="docCommentTagName",a[a.jsxOpenTagName=19]="jsxOpenTagName",a[a.jsxCloseTagName=20]="jsxCloseTagName",a[a.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",a[a.jsxAttribute=22]="jsxAttribute",a[a.jsxText=23]="jsxText",a[a.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",a[a.bigintLiteral=25]="bigintLiteral"}(e.ClassificationType||(e.ClassificationType={}))})(gr||(gr={}));var gr;(function(e){e.scanner=e.createScanner(99,!0),function(le){le[le.None=0]="None",le[le.Value=1]="Value",le[le.Type=2]="Type",le[le.Namespace=4]="Namespace",le[le.All=7]="All"}(e.SemanticMeaning||(e.SemanticMeaning={}));function n(le){switch(le.kind){case 253:return e.isInJSFile(le)&&e.getJSDocEnumTag(le)?7:1;case 163:case 202:case 166:case 165:case 294:case 295:case 168:case 167:case 170:case 171:case 172:case 255:case 212:case 213:case 291:case 284:return 1;case 162:case 257:case 258:case 181:return 2;case 343:return le.name===void 0?3:2;case 297:case 256:return 3;case 260:return e.isAmbientModule(le)||e.getModuleInstanceState(le)===1?5:4;case 259:case 268:case 269:case 264:case 265:case 270:case 271:return 7;case 303:return 5}return 7}e.getMeaningFromDeclaration=n;function f(le){le=Cr(le);var rr=le.parent;if(le.kind===303)return 1;if(e.isExportAssignment(rr)||e.isExportSpecifier(rr)||e.isExternalModuleReference(rr)||e.isImportSpecifier(rr)||e.isImportClause(rr)||e.isImportEqualsDeclaration(rr)&&le===rr.name){for(var br=rr;br;){if(e.isImportEqualsDeclaration(br)||e.isImportClause(br)||e.isExportDeclaration(br))return br.isTypeOnly?2:7;br=br.parent}return 7}else return a(le)?d(le):e.isDeclarationName(le)?n(rr):e.isEntityName(le)&&e.findAncestor(le,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:h(le)?2:p(le)?4:e.isTypeParameterDeclaration(rr)?(e.Debug.assert(e.isJSDocTemplateTag(rr.parent)),2):e.isLiteralTypeNode(rr)?3:1}e.getMeaningFromLocation=f;function d(le){var rr=le.kind===160?le:e.isQualifiedName(le.parent)&&le.parent.right===le?le.parent:void 0;return rr&&rr.parent.kind===264?7:4}function a(le){for(;le.parent.kind===160;)le=le.parent;return e.isInternalModuleImportEqualsDeclaration(le.parent)&&le.parent.moduleReference===le}e.isInRightSideOfInternalImportEqualsDeclaration=a;function p(le){return N(le)||H(le)}function N(le){var rr=le,br=!0;if(rr.parent.kind===160){for(;rr.parent&&rr.parent.kind===160;)rr=rr.parent;br=rr.right===le}return rr.parent.kind===177&&!br}function H(le){var rr=le,br=!0;if(rr.parent.kind===205){for(;rr.parent&&rr.parent.kind===205;)rr=rr.parent;br=rr.name===le}if(!br&&rr.parent.kind===227&&rr.parent.parent.kind===290){var ct=rr.parent.parent.parent;return ct.kind===256&&rr.parent.parent.token===117||ct.kind===257&&rr.parent.parent.token===94}return!1}function h(le){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(le)&&(le=le.parent),le.kind){case 108:return!e.isExpressionNode(le);case 191:return!0}switch(le.parent.kind){case 177:return!0;case 199:return!le.parent.isTypeOf;case 227:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(le.parent)}return!1}function v(le,rr,br){return rr===void 0&&(rr=!1),br===void 0&&(br=!1),k(le,e.isCallExpression,S,rr,br)}e.isCallExpressionTarget=v;function A(le,rr,br){return rr===void 0&&(rr=!1),br===void 0&&(br=!1),k(le,e.isNewExpression,S,rr,br)}e.isNewExpressionTarget=A;function q(le,rr,br){return rr===void 0&&(rr=!1),br===void 0&&(br=!1),k(le,e.isCallOrNewExpression,S,rr,br)}e.isCallOrNewExpressionTarget=q;function ie(le,rr,br){return rr===void 0&&(rr=!1),br===void 0&&(br=!1),k(le,e.isTaggedTemplateExpression,B,rr,br)}e.isTaggedTemplateTag=ie;function b(le,rr,br){return rr===void 0&&(rr=!1),br===void 0&&(br=!1),k(le,e.isDecorator,S,rr,br)}e.isDecoratorTarget=b;function P(le,rr,br){return rr===void 0&&(rr=!1),br===void 0&&(br=!1),k(le,e.isJsxOpeningLikeElement,J,rr,br)}e.isJsxOpeningLikeElementTagName=P;function S(le){return le.expression}function B(le){return le.tag}function J(le){return le.tagName}function k(le,rr,br,ct,jt){var yn=ct?x(le):M(le);return jt&&(yn=e.skipOuterExpressions(yn)),!!yn&&!!yn.parent&&rr(yn.parent)&&br(yn.parent)===yn}function M(le){return $(le)?le.parent:le}e.climbPastPropertyAccess=M;function x(le){return $(le)||T(le)?le.parent:le}e.climbPastPropertyOrElementAccess=x;function w(le,rr){for(;le;){if(le.kind===249&&le.label.escapedText===rr)return le.label;le=le.parent}}e.getTargetLabel=w;function K(le,rr){return e.isPropertyAccessExpression(le.expression)?le.expression.name.text===rr:!1}e.hasPropertyAccessExpressionWithName=K;function Z(le){var rr;return e.isIdentifier(le)&&((rr=e.tryCast(le.parent,e.isBreakOrContinueStatement))===null||rr===void 0?void 0:rr.label)===le}e.isJumpStatementTarget=Z;function ne(le){var rr;return e.isIdentifier(le)&&((rr=e.tryCast(le.parent,e.isLabeledStatement))===null||rr===void 0?void 0:rr.label)===le}e.isLabelOfLabeledStatement=ne;function R(le){return ne(le)||Z(le)}e.isLabelName=R;function Y(le){var rr;return((rr=e.tryCast(le.parent,e.isJSDocTag))===null||rr===void 0?void 0:rr.tagName)===le}e.isTagName=Y;function U(le){var rr;return((rr=e.tryCast(le.parent,e.isQualifiedName))===null||rr===void 0?void 0:rr.right)===le}e.isRightSideOfQualifiedName=U;function $(le){var rr;return((rr=e.tryCast(le.parent,e.isPropertyAccessExpression))===null||rr===void 0?void 0:rr.name)===le}e.isRightSideOfPropertyAccess=$;function T(le){var rr;return((rr=e.tryCast(le.parent,e.isElementAccessExpression))===null||rr===void 0?void 0:rr.argumentExpression)===le}e.isArgumentExpressionOfElementAccess=T;function I(le){var rr;return((rr=e.tryCast(le.parent,e.isModuleDeclaration))===null||rr===void 0?void 0:rr.name)===le}e.isNameOfModuleDeclaration=I;function y(le){var rr;return e.isIdentifier(le)&&((rr=e.tryCast(le.parent,e.isFunctionLike))===null||rr===void 0?void 0:rr.name)===le}e.isNameOfFunctionDeclaration=y;function D(le){switch(le.parent.kind){case 166:case 165:case 294:case 297:case 168:case 167:case 171:case 172:case 260:return e.getNameOfDeclaration(le.parent)===le;case 206:return le.parent.argumentExpression===le;case 161:return!0;case 195:return le.parent.parent.kind===193;default:return!1}}e.isLiteralNameOfPropertyDeclarationOrIndexAccess=D;function C(le){return e.isExternalModuleImportEqualsDeclaration(le.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(le.parent.parent)===le}e.isExpressionOfExternalModuleImportEqualsDeclaration=C;function m(le){for(e.isJSDocTypeAlias(le)&&(le=le.parent.parent);;){if(le=le.parent,!le)return;switch(le.kind){case 303:case 168:case 167:case 255:case 212:case 171:case 172:case 256:case 257:case 259:case 260:return le}}}e.getContainerNode=m;function u(le){switch(le.kind){case 303:return e.isExternalModule(le)?"module":"script";case 260:return"module";case 256:case 225:return"class";case 257:return"interface";case 258:case 336:case 343:return"type";case 259:return"enum";case 253:return ha(le);case 202:return ha(e.getRootDeclaration(le));case 213:case 255:case 212:return"function";case 171:return"getter";case 172:return"setter";case 168:case 167:return"method";case 294:var rr=le.initializer;return e.isFunctionLike(rr)?"method":"property";case 166:case 165:case 295:case 296:return"property";case 175:return"index";case 174:return"construct";case 173:return"call";case 170:case 169:return"constructor";case 162:return"type parameter";case 297:return"enum member";case 163:return e.hasSyntacticModifier(le,16476)?"property":"parameter";case 264:case 269:case 274:case 267:case 273:return"alias";case 220:var br=e.getAssignmentDeclarationKind(le),ct=le.right;switch(br){case 7:case 8:case 9:case 0:return"";case 1:case 2:var jt=u(ct);return jt===""?"const":jt;case 3:return e.isFunctionExpression(ct)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(ct)?"method":"property";case 6:return"local class";default:return e.assertType(br),""}case 79:return e.isImportClause(le.parent)?"alias":"";case 270:var yn=u(le.expression);return yn===""?"const":yn;default:return""}function ha(ri){return e.isVarConst(ri)?"const":e.isLet(ri)?"let":"var"}}e.getNodeKind=u;function g(le){switch(le.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(le)&&le.parent.kind===163;default:return!1}}e.isThis=g;var F=/^\/\/\/\s*</;function te(le,rr){var br=e.getLineStarts(rr),ct=rr.getLineAndCharacterOfPosition(le).line;return br[ct]}e.getLineStartPositionForPosition=te;function ue(le,rr){return Ce(le.pos,le.end,rr)}e.rangeContainsRange=ue;function X(le,rr){return Se(le,rr.pos)&&Se(le,rr.end)}e.rangeContainsRangeExclusive=X;function j(le,rr){return le.pos<=rr&&rr<=le.end}e.rangeContainsPosition=j;function Se(le,rr){return le.pos<rr&&rr<le.end}e.rangeContainsPositionExclusive=Se;function Ce(le,rr,br){return le<=br.pos&&rr>=br.end}e.startEndContainsRange=Ce;function O(le,rr,br){return le.pos<=rr&&le.end>=br}e.rangeContainsStartEnd=O;function Q(le,rr,br){return z(le.pos,le.end,rr,br)}e.rangeOverlapsWithStartEnd=Q;function V(le,rr,br,ct){return z(le.getStart(rr),le.end,br,ct)}e.nodeOverlapsWithStartEnd=V;function z(le,rr,br,ct){var jt=Math.max(le,br),yn=Math.min(rr,ct);return jt<yn}e.startEndOverlapsWithStartEnd=z;function Te(le,rr,br){return e.Debug.assert(le.pos<=rr),rr<le.end||!ge(le,br)}e.positionBelongsToNode=Te;function ge(le,rr){if(le===void 0||e.nodeIsMissing(le))return!1;switch(le.kind){case 256:case 257:case 259:case 204:case 200:case 181:case 234:case 261:case 262:case 268:case 272:return ke(le,19,rr);case 291:return ge(le.block,rr);case 208:if(!le.arguments)return!0;case 207:case 211:case 190:return ke(le,21,rr);case 178:case 179:return ge(le.type,rr);case 170:case 171:case 172:case 255:case 212:case 168:case 167:case 174:case 173:case 213:return le.body?ge(le.body,rr):le.type?ge(le.type,rr):Ie(le,21,rr);case 260:return!!le.body&&ge(le.body,rr);case 238:return le.elseStatement?ge(le.elseStatement,rr):ge(le.thenStatement,rr);case 237:return ge(le.expression,rr)||Ie(le,26,rr);case 203:case 201:case 206:case 161:case 183:return ke(le,23,rr);case 175:return le.type?ge(le.type,rr):Ie(le,23,rr);case 288:case 289:return!1;case 241:case 242:case 243:case 240:return ge(le.statement,rr);case 239:return Ie(le,115,rr)?ke(le,21,rr):ge(le.statement,rr);case 180:return ge(le.exprName,rr);case 215:case 214:case 216:case 223:case 224:var br=le;return ge(br.expression,rr);case 209:return ge(le.template,rr);case 222:var ct=e.lastOrUndefined(le.templateSpans);return ge(ct,rr);case 232:return e.nodeIsPresent(le.literal);case 271:case 265:return e.nodeIsPresent(le.moduleSpecifier);case 218:return ge(le.operand,rr);case 220:return ge(le.right,rr);case 221:return ge(le.whenFalse,rr);default:return!0}}function ke(le,rr,br){var ct=le.getChildren(br);if(ct.length){var jt=e.last(ct);if(jt.kind===rr)return!0;if(jt.kind===26&&ct.length!==1)return ct[ct.length-2].kind===rr}return!1}function Me(le){var rr=he(le);if(!!rr){var br=rr.getChildren(),ct=e.indexOfNode(br,le);return{listItemIndex:ct,list:rr}}}e.findListItemInfo=Me;function Ie(le,rr,br){return!!Ge(le,rr,br)}e.hasChildOfKind=Ie;function Ge(le,rr,br){return e.find(le.getChildren(br),function(ct){return ct.kind===rr})}e.findChildOfKind=Ge;function he(le){var rr=e.find(le.parent.getChildren(),function(br){return e.isSyntaxList(br)&&ue(br,le)});return e.Debug.assert(!rr||e.contains(rr.getChildren(),le)),rr}e.findContainingList=he;function ve(le){return le.kind===88}function Ve(le){return le.kind===84}function _e(le){return le.kind===98}function Le(le){if(e.isNamedDeclaration(le))return le.name;if(e.isClassDeclaration(le)){var rr=le.modifiers&&e.find(le.modifiers,ve);if(rr)return rr}if(e.isClassExpression(le)){var br=e.find(le.getChildren(),Ve);if(br)return br}}function qe(le){if(e.isNamedDeclaration(le))return le.name;if(e.isFunctionDeclaration(le)){var rr=e.find(le.modifiers,ve);if(rr)return rr}if(e.isFunctionExpression(le)){var br=e.find(le.getChildren(),_e);if(br)return br}}function Xe(le){var rr;return e.findAncestor(le,function(br){return e.isTypeNode(br)&&(rr=br),!e.isQualifiedName(br.parent)&&!e.isTypeNode(br.parent)&&!e.isTypeElement(br.parent)}),rr}function De(le,rr){var br=ko(le,rr);if(br)return br;var ct=Xe(le);return ct&&rr.getTypeAtLocation(ct)}e.getContextualTypeFromParentOrAncestorTypeNode=De;function Ae(le,rr){if(!rr)switch(le.kind){case 256:case 225:return Le(le);case 255:case 212:return qe(le)}if(e.isNamedDeclaration(le))return le.name}function Ye(le,rr){if(le.importClause){if(le.importClause.name&&le.importClause.namedBindings)return;if(le.importClause.name)return le.importClause.name;if(le.importClause.namedBindings){if(e.isNamedImports(le.importClause.namedBindings)){var br=e.singleOrUndefined(le.importClause.namedBindings.elements);return br?br.name:void 0}else if(e.isNamespaceImport(le.importClause.namedBindings))return le.importClause.namedBindings.name}}if(!rr)return le.moduleSpecifier}function Lr(le,rr){if(le.exportClause){if(e.isNamedExports(le.exportClause)){var br=e.singleOrUndefined(le.exportClause.elements);return br?le.exportClause.elements[0].name:void 0}else if(e.isNamespaceExport(le.exportClause))return le.exportClause.name}if(!rr)return le.moduleSpecifier}function Er(le){if(le.types.length===1)return le.types[0].expression}function lr(le,rr){var br=le.parent;if(e.isModifier(le)&&(rr||le.kind!==88)?e.contains(br.modifiers,le):le.kind===84?e.isClassDeclaration(br)||e.isClassExpression(le):le.kind===98?e.isFunctionDeclaration(br)||e.isFunctionExpression(le):le.kind===118?e.isInterfaceDeclaration(br):le.kind===92?e.isEnumDeclaration(br):le.kind===151?e.isTypeAliasDeclaration(br):le.kind===142||le.kind===141?e.isModuleDeclaration(br):le.kind===100?e.isImportEqualsDeclaration(br):le.kind===136?e.isGetAccessorDeclaration(br):le.kind===148&&e.isSetAccessorDeclaration(br)){var ct=Ae(br,rr);if(ct)return ct}if((le.kind===113||le.kind===85||le.kind===119)&&e.isVariableDeclarationList(br)&&br.declarations.length===1){var jt=br.declarations[0];if(e.isIdentifier(jt.name))return jt.name}if(le.kind===151){if(e.isImportClause(br)&&br.isTypeOnly){var ct=Ye(br.parent,rr);if(ct)return ct}if(e.isExportDeclaration(br)&&br.isTypeOnly){var ct=Lr(br,rr);if(ct)return ct}}if(le.kind===127){if(e.isImportSpecifier(br)&&br.propertyName||e.isExportSpecifier(br)&&br.propertyName||e.isNamespaceImport(br)||e.isNamespaceExport(br))return br.name;if(e.isExportDeclaration(br)&&br.exportClause&&e.isNamespaceExport(br.exportClause))return br.exportClause.name}if(le.kind===100&&e.isImportDeclaration(br)){var ct=Ye(br,rr);if(ct)return ct}if(le.kind===93){if(e.isExportDeclaration(br)){var ct=Lr(br,rr);if(ct)return ct}if(e.isExportAssignment(br))return e.skipOuterExpressions(br.expression)}if(le.kind===145&&e.isExternalModuleReference(br))return br.expression;if(le.kind===155&&(e.isImportDeclaration(br)||e.isExportDeclaration(br))&&br.moduleSpecifier)return br.moduleSpecifier;if((le.kind===94||le.kind===117)&&e.isHeritageClause(br)&&br.token===le.kind){var ct=Er(br);if(ct)return ct}if(le.kind===94){if(e.isTypeParameterDeclaration(br)&&br.constraint&&e.isTypeReferenceNode(br.constraint))return br.constraint.typeName;if(e.isConditionalTypeNode(br)&&e.isTypeReferenceNode(br.extendsType))return br.extendsType.typeName}if(le.kind===137&&e.isInferTypeNode(br))return br.typeParameter.name;if(le.kind===101&&e.isTypeParameterDeclaration(br)&&e.isMappedTypeNode(br.parent))return br.name;if(le.kind===140&&e.isTypeOperatorNode(br)&&br.operator===140&&e.isTypeReferenceNode(br.type))return br.type.typeName;if(le.kind===144&&e.isTypeOperatorNode(br)&&br.operator===144&&e.isArrayTypeNode(br.type)&&e.isTypeReferenceNode(br.type.elementType))return br.type.elementType.typeName;if(!rr){if((le.kind===103&&e.isNewExpression(br)||le.kind===114&&e.isVoidExpression(br)||le.kind===112&&e.isTypeOfExpression(br)||le.kind===132&&e.isAwaitExpression(br)||le.kind===125&&e.isYieldExpression(br)||le.kind===89&&e.isDeleteExpression(br))&&br.expression)return e.skipOuterExpressions(br.expression);if((le.kind===101||le.kind===102)&&e.isBinaryExpression(br)&&br.operatorToken===le)return e.skipOuterExpressions(br.right);if(le.kind===127&&e.isAsExpression(br)&&e.isTypeReferenceNode(br.type))return br.type.typeName;if(le.kind===101&&e.isForInStatement(br)||le.kind===159&&e.isForOfStatement(br))return e.skipOuterExpressions(br.expression)}return le}function Cr(le){return lr(le,!1)}e.getAdjustedReferenceLocation=Cr;function Or(le){return lr(le,!0)}e.getAdjustedRenameLocation=Or;function Ke(le,rr){return Pe(le,rr,function(br){return e.isPropertyNameLiteral(br)||e.isKeyword(br.kind)||e.isPrivateIdentifier(br)})}e.getTouchingPropertyName=Ke;function Pe(le,rr,br){return ur(le,rr,!1,br,!1)}e.getTouchingToken=Pe;function Hr(le,rr){return ur(le,rr,!0,void 0,!1)}e.getTokenAtPosition=Hr;function ur(le,rr,br,ct,jt){var yn=le,ha,ri=function(){var fi=yn.getChildren(le),ci=e.binarySearchKey(fi,rr,function(Si,Do){return Do},function(Si,Do){var bo=br?fi[Si].getFullStart():fi[Si].getStart(le,!0);return bo>rr?1:Ya(fi[Si])?fi[Si-1]&&Ya(fi[Si-1])?1:0:ct&&bo===rr&&fi[Si-1]&&fi[Si-1].getEnd()===rr&&Ya(fi[Si-1])?1:-1});return ha?{value:ha}:ci>=0&&fi[ci]?(yn=fi[ci],"continue-outer"):{value:yn}};e:for(;;){var Ta=ri();if(typeof Ta=="object")return Ta.value;switch(Ta){case"continue-outer":continue e}}function Ya(fi){var ci=br?fi.getFullStart():fi.getStart(le,!0);if(ci>rr)return!1;var Si=fi.getEnd();if(rr<Si||rr===Si&&(fi.kind===1||jt))return!0;if(ct&&Si===rr){var Do=$e(rr,le,fi);if(Do&&ct(Do))return ha=Do,!0}return!1}}function vr(le,rr){for(var br=Hr(le,rr);ze(br);){var ct=Fe(br,br.parent,le);if(!ct)return;br=ct}return br}e.findFirstNonJsxWhitespaceToken=vr;function de(le,rr){var br=Hr(le,rr);return e.isToken(br)&&rr>br.getStart(le)&&rr<br.getEnd()?br:$e(rr,le)}e.findTokenOnLeftOfPosition=de;function Fe(le,rr,br){return ct(rr);function ct(jt){return e.isToken(jt)&&jt.pos===le.end?jt:e.firstDefined(jt.getChildren(br),function(yn){var ha=yn.pos<=le.pos&&yn.end>le.end||yn.pos===le.end;return ha&&Rr(yn,br)?ct(yn):void 0})}}e.findNextToken=Fe;function $e(le,rr,br,ct){var jt=yn(br||rr);return e.Debug.assert(!(jt&&ze(jt))),jt;function yn(ha){if(Dr(ha)&&ha.kind!==1)return ha;var ri=ha.getChildren(rr),Ta=e.binarySearchKey(ri,le,function(bo,Ns){return Ns},function(bo,Ns){return le<ri[bo].end?!ri[bo-1]||le>=ri[bo-1].end?0:1:-1});if(Ta>=0&&ri[Ta]){var Ya=ri[Ta];if(le<Ya.end){var fi=Ya.getStart(rr,!ct),ci=fi>=le||!Rr(Ya,rr)||ze(Ya);if(ci){var Si=He(ri,Ta,rr,ha.kind);return Si&&Fr(Si,rr)}else return yn(Ya)}}e.Debug.assert(br!==void 0||ha.kind===303||ha.kind===1||e.isJSDocCommentContainingNode(ha));var Do=He(ri,ri.length,rr,ha.kind);return Do&&Fr(Do,rr)}}e.findPrecedingToken=$e;function Dr(le){return e.isToken(le)&&!ze(le)}function Fr(le,rr){if(Dr(le))return le;var br=le.getChildren(rr);if(br.length===0)return le;var ct=He(br,br.length,rr,le.kind);return ct&&Fr(ct,rr)}function He(le,rr,br,ct){for(var jt=rr-1;jt>=0;jt--){var yn=le[jt];if(ze(yn))jt===0&&(ct===11||ct===278)&&e.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Rr(le[jt],br))return le[jt]}}function pr(le,rr,br){if(br===void 0&&(br=$e(rr,le)),br&&e.isStringTextContainingNode(br)){var ct=br.getStart(le),jt=br.getEnd();if(ct<rr&&rr<jt)return!0;if(rr===jt)return!!br.isUnterminated}return!1}e.isInString=pr;function Jr(le,rr){var br=Hr(le,rr);return br?!!(br.kind===11||br.kind===29&&br.parent.kind===11||br.kind===29&&br.parent.kind===287||br&&br.kind===19&&br.parent.kind===287||br.kind===29&&br.parent.kind===280):!1}e.isInsideJsxElementOrAttribute=Jr;function ze(le){return e.isJsxText(le)&&le.containsOnlyTriviaWhiteSpaces}function Ar(le,rr){var br=Hr(le,rr);return e.isTemplateLiteralKind(br.kind)&&rr>br.getStart(le)}e.isInTemplateString=Ar;function Yr(le,rr){var br=Hr(le,rr);return!!(e.isJsxText(br)||br.kind===18&&e.isJsxExpression(br.parent)&&e.isJsxElement(br.parent.parent)||br.kind===29&&e.isJsxOpeningLikeElement(br.parent)&&e.isJsxElement(br.parent.parent))}e.isInJSXText=Yr;function lt(le,rr){function br(ct){for(;ct;)if(ct.kind>=278&&ct.kind<=287||ct.kind===11||ct.kind===29||ct.kind===31||ct.kind===79||ct.kind===19||ct.kind===18||ct.kind===43)ct=ct.parent;else if(ct.kind===277){if(rr>ct.getStart(le))return!0;ct=ct.parent}else return!1;return!1}return br(Hr(le,rr))}e.isInsideJsxElement=lt;function tt(le,rr,br){var ct=e.tokenToString(le.kind),jt=e.tokenToString(rr),yn=le.getFullStart(),ha=br.text.lastIndexOf(jt,yn);if(ha!==-1){if(br.text.lastIndexOf(ct,yn-1)<ha){var ri=$e(ha+1,br);if(ri&&ri.kind===rr)return ri}for(var Ta=le.kind,Ya=0;;){var fi=$e(le.getFullStart(),br);if(!fi)return;if(le=fi,le.kind===rr){if(Ya===0)return le;Ya--}else le.kind===Ta&&Ya++}}}e.findPrecedingMatchingToken=tt;function Rt(le,rr,br){return rr?le.getNonNullableType():br?le.getNonOptionalType():le}e.removeOptionality=Rt;function cn(le,rr,br){var ct=In(le,rr);return ct!==void 0&&(e.isPartOfTypeNode(ct.called)||bn(ct.called,ct.nTypeArguments,br).length!==0||cn(ct.called,rr,br))}e.isPossiblyTypeArgumentPosition=cn;function bn(le,rr,br){var ct=br.getTypeAtLocation(le);e.isOptionalChain(le.parent)&&(ct=Rt(ct,e.isOptionalChainRoot(le.parent),!0));var jt=e.isNewExpression(le.parent)?ct.getConstructSignatures():ct.getCallSignatures();return jt.filter(function(yn){return!!yn.typeParameters&&yn.typeParameters.length>=rr})}e.getPossibleGenericSignatures=bn;function In(le,rr){if(rr.text.lastIndexOf("<",le?le.pos:rr.text.length)!==-1)for(var br=le,ct=0,jt=0;br;){switch(br.kind){case 29:if(br=$e(br.getFullStart(),rr),br&&br.kind===28&&(br=$e(br.getFullStart(),rr)),!br||!e.isIdentifier(br))return;if(!ct)return e.isDeclarationName(br)?void 0:{called:br,nTypeArguments:jt};ct--;break;case 49:ct=3;break;case 48:ct=2;break;case 31:ct++;break;case 19:if(br=tt(br,18,rr),!br)return;break;case 21:if(br=tt(br,20,rr),!br)return;break;case 23:if(br=tt(br,22,rr),!br)return;break;case 27:jt++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 140:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(br))break;return}br=$e(br.getFullStart(),rr)}}e.getPossibleTypeArgumentsInfo=In;function zn(le,rr,br){return e.formatting.getRangeOfEnclosingComment(le,rr,void 0,br)}e.isInComment=zn;function ir(le,rr){var br=Hr(le,rr);return!!e.findAncestor(br,e.isJSDoc)}e.hasDocComment=ir;function Rr(le,rr){return le.kind===1?!!le.jsDoc:le.getWidth(rr)!==0}function sr(le,rr){rr===void 0&&(rr=0);var br=[],ct=e.isDeclaration(le)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(le)&~rr:0;return ct&8&&br.push("private"),ct&16&&br.push("protected"),ct&4&&br.push("public"),(ct&32||e.isClassStaticBlockDeclaration(le))&&br.push("static"),ct&128&&br.push("abstract"),ct&1&&br.push("export"),ct&8192&&br.push("deprecated"),le.flags&8388608&&br.push("declare"),le.kind===270&&br.push("export"),br.length>0?br.join(","):""}e.getNodeModifiers=sr;function ye(le){if(le.kind===177||le.kind===207)return le.typeArguments;if(e.isFunctionLike(le)||le.kind===256||le.kind===257)return le.typeParameters}e.getTypeArgumentOrTypeParameterList=ye;function or(le){return le===2||le===3}e.isComment=or;function fe(le){return!!(le===10||le===13||e.isTemplateLiteralKind(le))}e.isStringOrRegularExpressionOrTemplateLiteral=fe;function je(le){return 18<=le&&le<=78}e.isPunctuation=je;function Ee(le,rr,br){return e.isTemplateLiteralKind(le.kind)&&le.getStart(br)<rr&&rr<le.end||!!le.isUnterminated&&rr===le.end}e.isInsideTemplateLiteral=Ee;function We(le){switch(le){case 123:case 121:case 122:return!0}return!1}e.isAccessibilityModifier=We;function ee(le){var rr=e.clone(le);return e.setConfigFileInOptions(rr,le&&le.configFile),rr}e.cloneCompilerOptions=ee;function Ne(le){return!!((le.kind===203||le.kind===204)&&(le.parent.kind===220&&le.parent.left===le&&le.parent.operatorToken.kind===63||le.parent.kind===243&&le.parent.initializer===le||Ne(le.parent.kind===294?le.parent.parent:le.parent)))}e.isArrayLiteralOrObjectLiteralDestructuringPattern=Ne;function me(le,rr){return xr(le,rr,!0)}e.isInReferenceComment=me;function Ze(le,rr){return xr(le,rr,!1)}e.isInNonReferenceComment=Ze;function xr(le,rr,br){var ct=zn(le,rr,void 0);return!!ct&&br===F.test(le.text.substring(ct.pos,ct.end))}function fr(le){if(!!le)switch(le.kind){case 10:case 14:return et(le);default:return dr(le)}}e.getReplacementSpanForContextToken=fr;function dr(le,rr,br){return e.createTextSpanFromBounds(le.getStart(rr),(br||le).getEnd())}e.createTextSpanFromNode=dr;function et(le){if(!le.isUnterminated)return e.createTextSpanFromBounds(le.getStart()+1,le.getEnd()-1)}e.createTextSpanFromStringLiteralLikeContent=et;function yt(le,rr){return e.createRange(le.getStart(rr),le.end)}e.createTextRangeFromNode=yt;function Wr(le){return e.createTextSpanFromBounds(le.pos,le.end)}e.createTextSpanFromRange=Wr;function tr(le){return e.createRange(le.start,le.start+le.length)}e.createTextRangeFromSpan=tr;function Ir(le,rr,br){return kr(e.createTextSpan(le,rr),br)}e.createTextChangeFromStartLength=Ir;function kr(le,rr){return{span:le,newText:rr}}e.createTextChange=kr,e.typeKeywords=[130,128,157,133,95,137,140,143,104,146,147,144,149,150,110,114,152,153,154];function zr(le){return e.contains(e.typeKeywords,le)}e.isTypeKeyword=zr;function gt(le){return le.kind===151}e.isTypeKeywordToken=gt;function vt(le){return gt(le)||e.isIdentifier(le)&&le.text==="type"}e.isTypeKeywordTokenOrIdentifier=vt;function ut(le){return!!(le.flags&1536)&&le.name.charCodeAt(0)===34}e.isExternalModuleSymbol=ut;function ht(){var le=[];return function(rr){var br=e.getNodeId(rr);return!le[br]&&(le[br]=!0)}}e.nodeSeenTracker=ht;function xt(le){return le.getText(0,le.getLength())}e.getSnapshotText=xt;function wt(le,rr){for(var br="",ct=0;ct<rr;ct++)br+=le;return br}e.repeatString=wt;function Qt(le){return le.isTypeParameter()&&le.getConstraint()||le}e.skipConstraint=Qt;function mt(le){return le.kind===161?e.isStringOrNumericLiteralLike(le.expression)?le.expression.text:void 0:e.isPrivateIdentifier(le)?e.idText(le):e.getTextOfIdentifierOrLiteral(le)}e.getNameFromPropertyName=mt;function rn(le){return le.getSourceFiles().some(function(rr){return!rr.isDeclarationFile&&!le.isSourceFileFromExternalLibrary(rr)&&!!(rr.externalModuleIndicator||rr.commonJsModuleIndicator)})}e.programContainsModules=rn;function sa(le){return le.getSourceFiles().some(function(rr){return!rr.isDeclarationFile&&!le.isSourceFileFromExternalLibrary(rr)&&!!rr.externalModuleIndicator})}e.programContainsEsModules=sa;function ba(le){return!!le.module||e.getEmitScriptTarget(le)>=2||!!le.noEmit}e.compilerOptionsIndicateEsModules=ba;function Jn(le,rr){return{fileExists:function(br){return le.fileExists(br)},getCurrentDirectory:function(){return rr.getCurrentDirectory()},readFile:e.maybeBind(rr,rr.readFile),useCaseSensitiveFileNames:e.maybeBind(rr,rr.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(rr,rr.getSymlinkCache)||le.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(rr,rr.getModuleSpecifierCache),getGlobalTypingsCacheLocation:e.maybeBind(rr,rr.getGlobalTypingsCacheLocation),redirectTargetsMap:le.redirectTargetsMap,getProjectReferenceRedirect:function(br){return le.getProjectReferenceRedirect(br)},isSourceOfProjectReferenceRedirect:function(br){return le.isSourceOfProjectReferenceRedirect(br)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(rr,rr.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return le.getFileIncludeReasons()}}}e.createModuleSpecifierResolutionHost=Jn;function na(le,rr){return Rn(Rn({},Jn(le,rr)),{getCommonSourceDirectory:function(){return le.getCommonSourceDirectory()}})}e.getModuleSpecifierResolverHost=na;function Wn(le,rr,br,ct){return le||rr&&rr.length?en(le,rr,br,ct):void 0}e.makeImportIfNecessary=Wn;function en(le,rr,br,ct,jt){return e.factory.createImportDeclaration(void 0,void 0,le||rr?e.factory.createImportClause(!!jt,le,rr&&rr.length?e.factory.createNamedImports(rr):void 0):void 0,typeof br=="string"?St(br,ct):br,void 0)}e.makeImport=en;function St(le,rr){return e.factory.createStringLiteral(le,rr===0)}e.makeStringLiteral=St,function(le){le[le.Single=0]="Single",le[le.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={}));function Ut(le,rr){return e.isStringDoubleQuoted(le,rr)?1:0}e.quotePreferenceFromString=Ut;function qt(le,rr){if(rr.quotePreference&&rr.quotePreference!=="auto")return rr.quotePreference==="single"?0:1;var br=le.imports&&e.find(le.imports,function(ct){return e.isStringLiteral(ct)&&!e.nodeIsSynthesized(ct.parent)});return br?Ut(br,le):1}e.getQuotePreference=qt;function Pn(le){switch(le){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(le)}}e.getQuoteFromPreference=Pn;function dn(le){var rr=oa(le);return rr===void 0?void 0:e.unescapeLeadingUnderscores(rr)}e.symbolNameNoDefault=dn;function oa(le){return le.escapedName!=="default"?le.escapedName:e.firstDefined(le.declarations,function(rr){var br=e.getNameOfDeclaration(rr);return br&&br.kind===79?br.escapedText:void 0})}e.symbolEscapedNameNoDefault=oa;function pt(le){return e.isStringLiteralLike(le)&&(e.isExternalModuleReference(le.parent)||e.isImportDeclaration(le.parent)||e.isRequireCall(le.parent,!1)&&le.parent.arguments[0]===le||e.isImportCall(le.parent)&&le.parent.arguments[0]===le)}e.isModuleSpecifierLike=pt;function _t(le){return e.isBindingElement(le)&&e.isObjectBindingPattern(le.parent)&&e.isIdentifier(le.name)&&!le.propertyName}e.isObjectBindingElementWithoutPropertyName=_t;function Pt(le,rr){var br=le.getTypeAtLocation(rr.parent);return br&&le.getPropertyOfType(br,rr.name.text)}e.getPropertySymbolFromBindingElement=Pt;function It(le,rr,br){if(!!le)for(;le.parent;){if(e.isSourceFile(le.parent)||!rt(br,le.parent,rr))return le;le=le.parent}}e.getParentNodeInSpan=It;function rt(le,rr,br){return e.textSpanContainsPosition(le,rr.getStart(br))&&rr.getEnd()<=e.textSpanEnd(le)}function Cn(le,rr){return le.modifiers&&e.find(le.modifiers,function(br){return br.kind===rr})}e.findModifier=Cn;function Qn(le,rr,br,ct){var jt=e.isArray(br)?br[0]:br,yn=jt.kind===236?e.isRequireVariableStatement:e.isAnyImportSyntax,ha=e.filter(rr.statements,yn),ri=e.isArray(br)?e.stableSort(br,e.OrganizeImports.compareImportsOrRequireStatements):[br];if(!ha.length)le.insertNodesAtTopOfFile(rr,ri,ct);else if(ha&&e.OrganizeImports.importsAreSorted(ha))for(var Ta=0,Ya=ri;Ta<Ya.length;Ta++){var fi=Ya[Ta],ci=e.OrganizeImports.getImportDeclarationInsertionIndex(ha,fi);if(ci===0){var Si=ha[0]===rr.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};le.insertNodeBefore(rr,ha[0],fi,!1,Si)}else{var Do=ha[ci-1];le.insertNodeAfter(rr,Do,fi)}}else{var bo=e.lastOrUndefined(ha);bo?le.insertNodesAfter(rr,bo,ri):le.insertNodesAtTopOfFile(rr,ri,ct)}}e.insertImports=Qn;function Ra(le,rr){return e.Debug.assert(le.isTypeOnly),e.cast(le.getChildAt(0,rr),gt)}e.getTypeKeywordOfTypeOnlyImport=Ra;function Ci(le,rr){return!!le&&!!rr&&le.start===rr.start&&le.length===rr.length}e.textSpansEqual=Ci;function _i(le,rr){return le.fileName===rr.fileName&&Ci(le.textSpan,rr.textSpan)}e.documentSpansEqual=_i;function va(le,rr){if(le){for(var br=0;br<le.length;br++)if(le.indexOf(le[br])===br){var ct=rr(le[br],br);if(ct)return ct}}}e.forEachUnique=va;function yi(le,rr,br){for(var ct=rr;ct<br;ct++)if(!e.isWhiteSpaceLike(le.charCodeAt(ct)))return!1;return!0}e.isTextWhiteSpaceLike=yi;function ro(le){var rr=le.declarations?e.firstOrUndefined(le.declarations):void 0;return!!e.findAncestor(rr,function(br){return e.isParameter(br)?!0:e.isBindingElement(br)||e.isObjectBindingPattern(br)||e.isArrayBindingPattern(br)?!1:"quit"})}e.isFirstDeclarationOfSymbolParameter=ro;var Ka=Pi();function Pi(){var le=e.defaultMaximumTruncationLength*10,rr,br,ct,jt;fi();var yn=function(ci){return ri(ci,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var ci=rr.length&&rr[rr.length-1].text;return jt>le&&ci&&ci!=="..."&&(e.isWhiteSpaceLike(ci.charCodeAt(ci.length-1))||rr.push(ji(" ",e.SymbolDisplayPartKind.space)),rr.push(ji("...",e.SymbolDisplayPartKind.punctuation))),rr},writeKeyword:function(ci){return ri(ci,e.SymbolDisplayPartKind.keyword)},writeOperator:function(ci){return ri(ci,e.SymbolDisplayPartKind.operator)},writePunctuation:function(ci){return ri(ci,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(ci){return ri(ci,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(ci){return ri(ci,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(ci){return ri(ci,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(ci){return ri(ci,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(ci){return ri(ci,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(ci){return ri(ci,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:Ta,writeLine:Ya,write:yn,writeComment:yn,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 ct},increaseIndent:function(){ct++},decreaseIndent:function(){ct--},clear:fi,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function ha(){if(!(jt>le)&&br){var ci=e.getIndentString(ct);ci&&(jt+=ci.length,rr.push(ji(ci,e.SymbolDisplayPartKind.space))),br=!1}}function ri(ci,Si){jt>le||(ha(),jt+=ci.length,rr.push(ji(ci,Si)))}function Ta(ci,Si){jt>le||(ha(),jt+=ci.length,rr.push(io(ci,Si)))}function Ya(){jt>le||(jt+=1,rr.push(yr()),br=!0)}function fi(){rr=[],br=!0,ct=0,jt=0}}function io(le,rr){return ji(le,br(rr));function br(ct){var jt=ct.flags;return jt&3?ro(ct)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:jt&4||jt&32768||jt&65536?e.SymbolDisplayPartKind.propertyName:jt&8?e.SymbolDisplayPartKind.enumMemberName:jt&16?e.SymbolDisplayPartKind.functionName:jt&32?e.SymbolDisplayPartKind.className:jt&64?e.SymbolDisplayPartKind.interfaceName:jt&384?e.SymbolDisplayPartKind.enumName:jt&1536?e.SymbolDisplayPartKind.moduleName:jt&8192?e.SymbolDisplayPartKind.methodName:jt&262144?e.SymbolDisplayPartKind.typeParameterName:jt&524288||jt&2097152?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}}e.symbolPart=io;function ji(le,rr){return{text:le,kind:e.SymbolDisplayPartKind[rr]}}e.displayPart=ji;function Hi(){return ji(" ",e.SymbolDisplayPartKind.space)}e.spacePart=Hi;function to(le){return ji(e.tokenToString(le),e.SymbolDisplayPartKind.keyword)}e.keywordPart=to;function No(le){return ji(e.tokenToString(le),e.SymbolDisplayPartKind.punctuation)}e.punctuationPart=No;function lo(le){return ji(e.tokenToString(le),e.SymbolDisplayPartKind.operator)}e.operatorPart=lo;function Lo(le){return ji(le,e.SymbolDisplayPartKind.parameterName)}e.parameterNamePart=Lo;function Ha(le){return ji(le,e.SymbolDisplayPartKind.propertyName)}e.propertyNamePart=Ha;function Yo(le){var rr=e.stringToToken(le);return rr===void 0?co(le):to(rr)}e.textOrKeywordPart=Yo;function co(le){return ji(le,e.SymbolDisplayPartKind.text)}e.textPart=co;function za(le){return ji(le,e.SymbolDisplayPartKind.aliasName)}e.typeAliasNamePart=za;function hi(le){return ji(le,e.SymbolDisplayPartKind.typeParameterName)}e.typeParameterNamePart=hi;function Zi(le){return ji(le,e.SymbolDisplayPartKind.linkText)}e.linkTextPart=Zi;function Po(le,rr){return{text:le,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(rr).fileName,textSpan:dr(rr)}}}e.linkNamePart=Po;function Mo(le){return ji(le,e.SymbolDisplayPartKind.link)}e.linkPart=Mo;function Fo(le,rr){var br,ct=e.isJSDocLink(le)?"link":e.isJSDocLinkCode(le)?"linkcode":"linkplain",jt=[Mo("{@".concat(ct," "))];if(!le.name)le.text&&jt.push(Zi(le.text));else{var yn=rr==null?void 0:rr.getSymbolAtLocation(le.name),ha=zo(le.text),ri=e.getTextOfNode(le.name)+le.text.slice(0,ha),Ta=le.text.slice(ha),Ya=(yn==null?void 0:yn.valueDeclaration)||((br=yn==null?void 0:yn.declarations)===null||br===void 0?void 0:br[0]);Ya?(jt.push(Po(ri,Ya)),Ta&&jt.push(Zi(Ta))):jt.push(Zi(ri+(ha?"":" ")+Ta))}return jt.push(Mo("}")),jt}e.buildLinkParts=Fo;function zo(le){if(le.indexOf("()")===0)return 2;if(le[0]!=="<")return 0;for(var rr=0,br=0;br<le.length;)if(le[br]==="<"&&rr++,le[br]===">"&&rr--,br++,!rr)return br;return 0}var Es=`\r
|
|
`;function Cs(le,rr){var br;return(rr==null?void 0:rr.newLineCharacter)||((br=le.getNewLine)===null||br===void 0?void 0:br.call(le))||Es}e.getNewLineOrDefaultFromHost=Cs;function yr(){return ji(`
|
|
`,e.SymbolDisplayPartKind.lineBreak)}e.lineBreakPart=yr;function dt(le){try{return le(Ka),Ka.displayParts()}finally{Ka.clear()}}e.mapToDisplayParts=dt;function tn(le,rr,br,ct){return ct===void 0&&(ct=0),dt(function(jt){le.writeType(rr,br,ct|1024|16384,jt)})}e.typeToDisplayParts=tn;function Un(le,rr,br,ct,jt){return jt===void 0&&(jt=0),dt(function(yn){le.writeSymbol(rr,br,ct,jt|8,yn)})}e.symbolToDisplayParts=Un;function Oe(le,rr,br,ct){return ct===void 0&&(ct=0),ct|=25632,dt(function(jt){le.writeSignature(rr,br,ct,void 0,jt)})}e.signatureToDisplayParts=Oe;function oe(le){return!!le.parent&&e.isImportOrExportSpecifier(le.parent)&&le.parent.propertyName===le}e.isImportOrExportSpecifierName=oe;function mr(le,rr){return e.ensureScriptKind(le,rr.getScriptKind&&rr.getScriptKind(le))}e.getScriptKind=mr;function se(le,rr){for(var br=le;er(br)||Be(br)&&br.target;)Be(br)&&br.target?br=br.target:br=e.skipAlias(br,rr);return br}e.getSymbolTarget=se;function Be(le){return(le.flags&33554432)!==0}function er(le){return(le.flags&2097152)!==0}function hr(le,rr){return e.getSymbolId(e.skipAlias(le,rr))}e.getUniqueSymbolId=hr;function qr(le,rr){for(;e.isWhiteSpaceLike(le.charCodeAt(rr));)rr+=1;return rr}e.getFirstNonSpaceCharacterPosition=qr;function Dt(le,rr){for(;rr>-1&&e.isWhiteSpaceSingleLine(le.charCodeAt(rr));)rr-=1;return rr+1}e.getPrecedingNonSpaceCharacterPosition=Dt;function Jt(le,rr){rr===void 0&&(rr=!0);var br=le&&ta(le);return br&&!rr&&$a(br),br}e.getSynthesizedDeepClone=Jt;function Sn(le,rr,br){var ct=br(le);return ct?e.setOriginalNode(ct,le):ct=ta(le,br),ct&&!rr&&$a(ct),ct}e.getSynthesizedDeepCloneWithReplacements=Sn;function ta(le,rr){var br=rr?function(ha){return Sn(ha,!0,rr)}:Jt,ct=rr?function(ha){return ha&&Di(ha,!0,rr)}:function(ha){return ha&&xa(ha)},jt=e.visitEachChild(le,br,e.nullTransformationContext,ct,br);if(jt===le){var yn=e.isStringLiteral(le)?e.setOriginalNode(e.factory.createStringLiteralFromNode(le),le):e.isNumericLiteral(le)?e.setOriginalNode(e.factory.createNumericLiteral(le.text,le.numericLiteralFlags),le):e.factory.cloneNode(le);return e.setTextRange(yn,le)}return jt.parent=void 0,jt}function xa(le,rr){return rr===void 0&&(rr=!0),le&&e.factory.createNodeArray(le.map(function(br){return Jt(br,rr)}),le.hasTrailingComma)}e.getSynthesizedDeepClones=xa;function Di(le,rr,br){return e.factory.createNodeArray(le.map(function(ct){return Sn(ct,rr,br)}),le.hasTrailingComma)}e.getSynthesizedDeepClonesWithReplacements=Di;function $a(le){Ji(le),So(le)}e.suppressLeadingAndTrailingTrivia=$a;function Ji(le){Mn(le,512,da)}e.suppressLeadingTrivia=Ji;function So(le){Mn(le,1024,e.getLastChild)}e.suppressTrailingTrivia=So;function cs(le,rr){var br=le.getSourceFile(),ct=br.text;bt(le,ct)?xi(le,rr,br):mi(le,rr,br),ka(le,rr,br)}e.copyComments=cs;function bt(le,rr){for(var br=le.getFullStart(),ct=le.getStart(),jt=br;jt<ct;jt++)if(rr.charCodeAt(jt)===10)return!0;return!1}function Mn(le,rr,br){e.addEmitFlags(le,rr);var ct=br(le);ct&&Mn(ct,rr,br)}function da(le){return le.forEachChild(function(rr){return rr})}function ei(le,rr){for(var br=le,ct=1;!e.isFileLevelUniqueName(rr,br);ct++)br="".concat(le,"_").concat(ct);return br}e.getUniqueName=ei;function bi(le,rr,br,ct){for(var jt=0,yn=-1,ha=0,ri=le;ha<ri.length;ha++){var Ta=ri[ha],Ya=Ta.fileName,fi=Ta.textChanges;e.Debug.assert(Ya===rr);for(var ci=0,Si=fi;ci<Si.length;ci++){var Do=Si[ci],bo=Do.span,Ns=Do.newText,Ys=Gi(Ns,br);if(Ys!==-1&&(yn=bo.start+jt+Ys,!ct))return yn;jt+=Ns.length-bo.length}}return e.Debug.assert(ct),e.Debug.assert(yn>=0),yn}e.getRenameLocation=bi;function xi(le,rr,br,ct,jt){e.forEachLeadingCommentRange(br.text,le.pos,Xi(rr,br,ct,jt,e.addSyntheticLeadingComment))}e.copyLeadingComments=xi;function ka(le,rr,br,ct,jt){e.forEachTrailingCommentRange(br.text,le.end,Xi(rr,br,ct,jt,e.addSyntheticTrailingComment))}e.copyTrailingComments=ka;function mi(le,rr,br,ct,jt){e.forEachTrailingCommentRange(br.text,le.pos,Xi(rr,br,ct,jt,e.addSyntheticLeadingComment))}e.copyTrailingAsLeadingComments=mi;function Xi(le,rr,br,ct,jt){return function(yn,ha,ri,Ta){ri===3?(yn+=2,ha-=2):yn+=2,jt(le,br||ri,rr.text.slice(yn,ha),ct!==void 0?ct:Ta)}}function Gi(le,rr){if(e.startsWith(le,rr))return 0;var br=le.indexOf(" "+rr);return br===-1&&(br=le.indexOf("."+rr)),br===-1&&(br=le.indexOf('"'+rr)),br===-1?-1:br+1}function Ro(le){return e.isBinaryExpression(le)&&le.operatorToken.kind===27||e.isObjectLiteralExpression(le)||e.isAsExpression(le)&&e.isObjectLiteralExpression(le.expression)}e.needsParentheses=Ro;function ko(le,rr){var br=le.parent;switch(br.kind){case 208:return rr.getContextualType(br);case 220:{var ct=br,jt=ct.left,yn=ct.operatorToken,ha=ct.right;return as(yn.kind)?rr.getTypeAtLocation(le===ha?jt:ha):rr.getContextualType(le)}case 288:return br.expression===le?ft(br,rr):void 0;default:return rr.getContextualType(le)}}e.getContextualTypeFromParent=ko;function es(le,rr,br){var ct=qt(le,rr),jt=JSON.stringify(br);return ct===0?"'".concat(e.stripQuotes(jt).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):jt}e.quote=es;function as(le){switch(le){case 36:case 34:case 37:case 35:return!0;default:return!1}}e.isEqualityOperatorKind=as;function pe(le){switch(le.kind){case 10:case 14:case 222:case 209:return!0;default:return!1}}e.isStringLiteralOrTemplate=pe;function wr(le){return!!le.getStringIndexType()||!!le.getNumberIndexType()}e.hasIndexSignature=wr;function ft(le,rr){return rr.getTypeAtLocation(le.parent.parent.expression)}e.getSwitchedType=ft,e.ANONYMOUS="anonymous function";function Zt(le,rr,br,ct){var jt=br.getTypeChecker(),yn=!0,ha=function(){return yn=!1},ri=jt.typeToTypeNode(le,rr,1,{trackSymbol:function(Ta,Ya,fi){return yn=yn&&jt.isSymbolAccessible(Ta,Ya,fi,!1).accessibility===0,!yn},reportInaccessibleThisError:ha,reportPrivateInBaseOfClassExpression:ha,reportInaccessibleUniqueSymbolError:ha,moduleResolverHost:na(br,ct)});return yn?ri:void 0}e.getTypeNodeIfAccessible=Zt;function Re(le){return le===173||le===174||le===175||le===165||le===167}e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Re;function Qr(le){return le===255||le===170||le===168||le===171||le===172}e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=Qr;function vn(le){return le===260}e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=vn;function Xn(le){return le===236||le===237||le===239||le===244||le===245||le===246||le===250||le===252||le===166||le===258||le===265||le===264||le===271||le===263||le===270}e.syntaxRequiresTrailingSemicolonOrASI=Xn,e.syntaxMayBeASICandidate=e.or(Re,Qr,vn,Xn);function gi(le,rr){var br=le.getLastToken(rr);if(br&&br.kind===26)return!1;if(Re(le.kind)){if(br&&br.kind===27)return!1}else if(vn(le.kind)){var ct=e.last(le.getChildren(rr));if(ct&&e.isModuleBlock(ct))return!1}else if(Qr(le.kind)){var ct=e.last(le.getChildren(rr));if(ct&&e.isFunctionBlock(ct))return!1}else if(!Xn(le.kind))return!1;if(le.kind===239)return!0;var jt=e.findAncestor(le,function(Ta){return!Ta.parent}),yn=Fe(le,jt,rr);if(!yn||yn.kind===19)return!0;var ha=rr.getLineAndCharacterOfPosition(le.getEnd()).line,ri=rr.getLineAndCharacterOfPosition(yn.getStart(rr)).line;return ha!==ri}function Ia(le,rr,br){var ct=e.findAncestor(rr,function(jt){return jt.end!==le?"quit":e.syntaxMayBeASICandidate(jt.kind)});return!!ct&&gi(ct,br)}e.positionIsASICandidate=Ia;function oo(le){var rr=0,br=0,ct=5;return e.forEachChild(le,function jt(yn){if(Xn(yn.kind)){var ha=yn.getLastToken(le);ha&&ha.kind===26?rr++:br++}return rr+br>=ct?!0:e.forEachChild(yn,jt)}),rr===0&&br<=1?!0:rr/br>1/ct}e.probablyUsesSemicolons=oo;function Wo(le,rr){return Co(le,le.getDirectories,rr)||[]}e.tryGetDirectories=Wo;function Nr(le,rr,br,ct,jt){return Co(le,le.readDirectory,rr,br,ct,jt)||e.emptyArray}e.tryReadDirectory=Nr;function Us(le,rr){return Co(le,le.fileExists,rr)}e.tryFileExists=Us;function il(le,rr){return Pl(function(){return e.directoryProbablyExists(rr,le)})||!1}e.tryDirectoryExists=il;function Pl(le){try{return le()}catch{return}}e.tryAndIgnoreErrors=Pl;function Co(le,rr){for(var br=[],ct=2;ct<arguments.length;ct++)br[ct-2]=arguments[ct];return Pl(function(){return rr&&rr.apply(le,br)})}e.tryIOAndConsumeErrors=Co;function Vs(le,rr,br){var ct=[];return e.forEachAncestorDirectory(le,function(jt){if(jt===br)return!0;var yn=e.combinePaths(jt,"package.json");Us(rr,yn)&&ct.push(yn)}),ct}e.findPackageJsons=Vs;function Ql(le,rr){var br;return e.forEachAncestorDirectory(le,function(ct){if(ct==="node_modules"||(br=e.findConfigFile(ct,function(jt){return Us(rr,jt)},"package.json"),br))return!0}),br}e.findPackageJson=Ql;function zl(le,rr){if(!rr.fileExists)return[];var br=[];return e.forEachAncestorDirectory(e.getDirectoryPath(le),function(ct){var jt=e.combinePaths(ct,"package.json");if(rr.fileExists(jt)){var yn=uc(jt,rr);yn&&br.push(yn)}}),br}e.getPackageJsonsVisibleToFile=zl;function uc(le,rr){if(!rr.readFile)return;var br=["dependencies","devDependencies","optionalDependencies","peerDependencies"],ct=rr.readFile(le)||"",jt=no(ct),yn={};if(jt)for(var ha=0,ri=br;ha<ri.length;ha++){var Ta=ri[ha],Ya=jt[Ta];if(!!Ya){var fi=new e.Map;for(var ci in Ya)fi.set(ci,Ya[ci]);yn[Ta]=fi}}var Si=[[1,yn.dependencies],[2,yn.devDependencies],[8,yn.optionalDependencies],[4,yn.peerDependencies]];return Rn(Rn({},yn),{parseable:!!jt,fileName:le,get:Do,has:function(bo,Ns){return!!Do(bo,Ns)}});function Do(bo,Ns){Ns===void 0&&(Ns=15);for(var Ys=0,Nu=Si;Ys<Nu.length;Ys++){var gf=Nu[Ys],Zl=gf[0],jc=gf[1];if(jc&&Ns&Zl){var Mr=jc.get(bo);if(Mr!==void 0)return Mr}}}}e.createPackageJsonInfo=uc;function cu(le,rr,br){var ct=(br.getPackageJsonsVisibleToFile&&br.getPackageJsonsVisibleToFile(le.fileName)||zl(le.fileName,br)).filter(function(Si){return Si.parseable}),jt;return{allowsImportingAmbientModule:ha,allowsImportingSourceFile:ri,allowsImportingSpecifier:Ta};function yn(Si){for(var Do=ci(Si),bo=0,Ns=ct;bo<Ns.length;bo++){var Ys=Ns[bo];if(Ys.has(Do)||Ys.has(e.getTypesPackageName(Do)))return!0}return!1}function ha(Si,Do){if(!ct.length||!Si.valueDeclaration)return!0;var bo=Si.valueDeclaration.getSourceFile(),Ns=fi(bo.fileName,Do);if(typeof Ns>"u")return!0;var Ys=e.stripQuotes(Si.getName());return Ya(Ys)?!0:yn(Ns)||yn(Ys)}function ri(Si,Do){if(!ct.length)return!0;var bo=fi(Si.fileName,Do);return bo?yn(bo):!0}function Ta(Si){return!ct.length||Ya(Si)||e.pathIsRelative(Si)||e.isRootedDiskPath(Si)?!0:yn(Si)}function Ya(Si){return!!(e.isSourceFileJS(le)&&e.JsTyping.nodeCoreModules.has(Si)&&(jt===void 0&&(jt=ql(le)),jt))}function fi(Si,Do){if(!!e.stringContains(Si,"node_modules")){var bo=e.moduleSpecifiers.getNodeModulesPackageName(br.getCompilationSettings(),le.path,Si,Do,rr);if(!!bo&&!e.pathIsRelative(bo)&&!e.isRootedDiskPath(bo))return ci(bo)}}function ci(Si){var Do=e.getPathComponents(e.getPackageNameFromTypesPackageName(Si)).slice(1);return e.startsWith(Do[0],"@")?"".concat(Do[0],"/").concat(Do[1]):Do[0]}}e.createPackageJsonImportFilter=cu;function no(le){try{return JSON.parse(le)}catch{return}}function ql(le){return e.some(le.imports,function(rr){var br=rr.text;return e.JsTyping.nodeCoreModules.has(br)})}e.consumesNodeCoreModules=ql;function fc(le){return e.contains(e.getPathComponents(le),"node_modules")}e.isInsideNodeModules=fc;function Ws(le){return le.file!==void 0&&le.start!==void 0&&le.length!==void 0}e.isDiagnosticWithLocation=Ws;function xc(le,rr){var br=dr(le),ct=e.binarySearchKey(rr,br,e.identity,e.compareTextSpans);if(ct>=0){var jt=rr[ct];return e.Debug.assertEqual(jt.file,le.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(jt,Ws)}}e.findDiagnosticForNode=xc;function Ic(le,rr){var br,ct=e.binarySearchKey(rr,le.start,function(ri){return ri.start},e.compareValues);for(ct<0&&(ct=~ct);((br=rr[ct-1])===null||br===void 0?void 0:br.start)===le.start;)ct--;for(var jt=[],yn=e.textSpanEnd(le);;){var ha=e.tryCast(rr[ct],Ws);if(!ha||ha.start>yn)break;e.textSpanContainsTextSpan(le,ha)&&jt.push(ha),ct++}return jt}e.getDiagnosticsWithinSpan=Ic;function La(le){var rr=le.startPosition,br=le.endPosition;return e.createTextSpanFromBounds(rr,br===void 0?rr:br)}e.getRefactorContextSpan=La;function uu(le,rr){var br=Hr(le,rr.start),ct=e.findAncestor(br,function(jt){return jt.getStart(le)<rr.start||jt.getEnd()>e.textSpanEnd(rr)?"quit":e.isExpression(jt)&&Ci(rr,dr(jt,le))});return ct}e.getFixableErrorSpanExpression=uu;function dc(le,rr,br){return br===void 0&&(br=e.identity),le?e.isArray(le)?br(e.map(le,rr)):rr(le,0):void 0}e.mapOneOrMany=dc;function Nc(le){return e.isArray(le)?e.first(le):le}e.firstOrOnly=Nc;function Pr(le,rr){return!(le.flags&33554432)&&(le.escapedName==="export="||le.escapedName==="default")?e.firstDefined(le.declarations,function(br){var ct;return e.isExportAssignment(br)?(ct=e.tryCast(e.skipOuterExpressions(br.expression),e.isIdentifier))===null||ct===void 0?void 0:ct.text:void 0})||e.codefix.moduleSymbolToValidIdentifier($r(le),rr):le.name}e.getNameForExportedSymbol=Pr;function $r(le){var rr;return e.Debug.checkDefined(le.parent,"Symbol parent was undefined. Flags: ".concat(e.Debug.formatSymbolFlags(le.flags),". ")+"Declarations: ".concat((rr=le.declarations)===null||rr===void 0?void 0:rr.map(function(br){var ct=e.Debug.formatSyntaxKind(br.kind),jt=e.isInJSFile(br),yn=br.expression;return(jt?"[JS]":"")+ct+(yn?" (expression: ".concat(e.Debug.formatSyntaxKind(yn.kind),")"):"")}).join(", "),"."))}function Lt(le,rr,br){var ct=rr.length;if(ct+br>le.length)return!1;for(var jt=0;jt<ct;jt++)if(rr.charCodeAt(jt)!==le.charCodeAt(jt+br))return!1;return!0}e.stringContainsAt=Lt;function Kt(le){return le.charCodeAt(0)===95}e.startsWithUnderscore=Kt;function pn(le){return!fn(le)}e.isGlobalDeclaration=pn;function fn(le){var rr=le.getSourceFile();return!rr.externalModuleIndicator&&!rr.commonJsModuleIndicator?!1:e.isInJSFile(le)||!e.findAncestor(le,e.isGlobalScopeAugmentation)}e.isNonGlobalDeclaration=fn;function kn(le){return!!(e.getCombinedNodeFlagsAlwaysIncludeJSDoc(le)&8192)}e.isDeprecatedDeclaration=kn;function Kn(le,rr){var br=e.firstDefined(le.imports,function(ct){if(e.JsTyping.nodeCoreModules.has(ct.text))return e.startsWith(ct.text,"node:")});return br!=null?br:rr.usesUriStyleNodeCoreModules}e.shouldUseUriStyleNodeCoreModules=Kn;function Fa(le){return le===`
|
|
`?1:0}e.getNewLineKind=Fa;function ua(le){return e.isArray(le)?e.formatStringFromArgs(e.getLocaleSpecificMessage(le[0]),le.slice(1)):e.getLocaleSpecificMessage(le)}e.diagnosticToString=ua})(gr||(gr={}));var gr;(function(e){(function(ie){ie[ie.Named=0]="Named",ie[ie.Default=1]="Default",ie[ie.Namespace=2]="Namespace",ie[ie.CommonJS=3]="CommonJS"})(e.ImportKind||(e.ImportKind={})),function(ie){ie[ie.Named=0]="Named",ie[ie.Default=1]="Default",ie[ie.ExportEquals=2]="ExportEquals",ie[ie.UMD=3]="UMD"}(e.ExportKind||(e.ExportKind={}));function n(ie){var b=1,P=e.createMultiMap(),S=new e.Map,B,J={isUsableByFile:function(Z){return Z===B},isEmpty:function(){return!P.size},clear:function(){P.clear(),S.clear(),B=void 0},add:function(Z,ne,R,Y,U,$,T,I,y){Z!==B&&(J.clear(),B=Z);var D=$===1,C=D&&e.getLocalSymbolForExportDefault(ne)||ne,m=$===0||e.isExternalModuleSymbol(C)?e.unescapeLeadingUnderscores(R):e.getNameForExportedSymbol(C,I),u=e.stripQuotes(Y.name),g=b++,F=e.skipAlias(ne,y),te=ne.flags&33554432?void 0:ne,ue=Y.flags&33554432?void 0:Y;(!te||!ue)&&S.set(g,[ne,Y]),P.add(M(m,ne,e.isExternalModuleNameRelative(u)?void 0:u,y),{id:g,symbolTableKey:R,symbolName:m,moduleName:u,moduleFile:U,moduleFileName:U==null?void 0:U.fileName,exportKind:$,targetFlags:F.flags,isFromPackageJson:T,symbol:te,moduleSymbol:ue})},get:function(Z,ne){if(Z===B){var R=P.get(ne);return R==null?void 0:R.map(k)}},forEach:function(Z,ne){Z===B&&P.forEach(function(R,Y){var U=x(Y),$=U.symbolName,T=U.ambientModuleName;ne(R.map(k),$,!!T,Y)})},releaseSymbols:function(){S.clear()},onFileChanged:function(Z,ne,R){return w(Z)&&w(ne)?!1:B&&B!==ne.path||R&&e.consumesNodeCoreModules(Z)!==e.consumesNodeCoreModules(ne)||!e.arrayIsEqualTo(Z.moduleAugmentations,ne.moduleAugmentations)||!K(Z,ne)?(J.clear(),!0):(B=ne.path,!1)}};return e.Debug.isDebugging&&Object.defineProperty(J,"__cache",{get:function(){return P}}),J;function k(Z){if(Z.symbol&&Z.moduleSymbol)return Z;var ne=Z.id,R=Z.exportKind,Y=Z.targetFlags,U=Z.isFromPackageJson,$=Z.moduleFileName,T=S.get(ne)||e.emptyArray,I=T[0],y=T[1];if(I&&y)return{symbol:I,moduleSymbol:y,moduleFileName:$,exportKind:R,targetFlags:Y,isFromPackageJson:U};var D=(U?ie.getPackageJsonAutoImportProvider():ie.getCurrentProgram()).getTypeChecker(),C=Z.moduleSymbol||y||e.Debug.checkDefined(Z.moduleFile?D.getMergedSymbol(Z.moduleFile.symbol):D.tryFindAmbientModule(Z.moduleName)),m=Z.symbol||I||e.Debug.checkDefined(R===2?D.resolveExternalModuleSymbol(C):D.tryGetMemberInModuleExportsAndProperties(e.unescapeLeadingUnderscores(Z.symbolTableKey),C),"Could not find symbol '".concat(Z.symbolName,"' by key '").concat(Z.symbolTableKey,"' in module ").concat(C.name));return S.set(ne,[m,C]),{symbol:m,moduleSymbol:C,moduleFileName:$,exportKind:R,targetFlags:Y,isFromPackageJson:U}}function M(Z,ne,R,Y){var U=R||"";return"".concat(Z,"|").concat(e.getSymbolId(e.skipAlias(ne,Y)),"|").concat(U)}function x(Z){var ne=Z.substring(0,Z.indexOf("|")),R=Z.substring(Z.lastIndexOf("|")+1),Y=R===""?void 0:R;return{symbolName:ne,ambientModuleName:Y}}function w(Z){return!Z.commonJsModuleIndicator&&!Z.externalModuleIndicator&&!Z.moduleAugmentations&&!Z.ambientModuleNames}function K(Z,ne){if(!e.arrayIsEqualTo(Z.ambientModuleNames,ne.ambientModuleNames))return!1;for(var R=-1,Y=-1,U=function(D){var C=function(m){return e.isNonGlobalAmbientModule(m)&&m.name.text===D};if(R=e.findIndex(Z.statements,C,R+1),Y=e.findIndex(ne.statements,C,Y+1),Z.statements[R]!==ne.statements[Y])return{value:!1}},$=0,T=ne.ambientModuleNames;$<T.length;$++){var I=T[$],y=U(I);if(typeof y=="object")return y.value}return!0}}e.createCacheableExportInfoMap=n;function f(ie,b,P,S,B,J,k){var M;if(b===P)return!1;var x=k==null?void 0:k.get(b.path,P.path,S);if((x==null?void 0:x.isAutoImportable)!==void 0)return x.isAutoImportable;var w=e.hostGetCanonicalFileName(J),K=(M=J.getGlobalTypingsCacheLocation)===null||M===void 0?void 0:M.call(J),Z=!!e.moduleSpecifiers.forEachFileNameOfModule(b.fileName,P.fileName,J,!1,function(R){var Y=ie.getSourceFile(R);return(Y===P||!Y)&&d(b.fileName,R,w,K)});if(B){var ne=Z&&B.allowsImportingSourceFile(P,J);return k==null||k.setIsAutoImportable(b.path,P.path,S,ne),ne}return Z}e.isImportableFile=f;function d(ie,b,P,S){var B=e.forEachAncestorDirectory(b,function(k){return e.getBaseFileName(k)==="node_modules"?k:void 0}),J=B&&e.getDirectoryPath(P(B));return J===void 0||e.startsWith(P(ie),J)||!!S&&e.startsWith(P(S),J)}function a(ie,b,P,S){var B,J;p(ie.getTypeChecker(),ie.getSourceFiles(),function(x,w){return S(x,w,ie,!1)});var k=P&&((B=b.getPackageJsonAutoImportProvider)===null||B===void 0?void 0:B.call(b));if(k){var M=e.timestamp();p(k.getTypeChecker(),k.getSourceFiles(),function(x,w){return S(x,w,k,!0)}),(J=b.log)===null||J===void 0||J.call(b,"forEachExternalModuleToImportFrom autoImportProvider: ".concat(e.timestamp()-M))}}e.forEachExternalModuleToImportFrom=a;function p(ie,b,P){for(var S=0,B=ie.getAmbientModules();S<B.length;S++){var J=B[S];e.stringContains(J.name,"*")||P(J,void 0)}for(var k=0,M=b;k<M.length;k++){var x=M[k];e.isExternalOrCommonJsModule(x)&&P(ie.getMergedSymbol(x.symbol),x)}}function N(ie,b,P,S){var B,J,k,M,x,w=e.timestamp();(B=b.getPackageJsonAutoImportProvider)===null||B===void 0||B.call(b);var K=((J=b.getCachedExportInfoMap)===null||J===void 0?void 0:J.call(b))||n({getCurrentProgram:function(){return P},getPackageJsonAutoImportProvider:function(){var Y;return(Y=b.getPackageJsonAutoImportProvider)===null||Y===void 0?void 0:Y.call(b)}});if(K.isUsableByFile(ie.path))return(k=b.log)===null||k===void 0||k.call(b,"getExportInfoMap: cache hit"),K;(M=b.log)===null||M===void 0||M.call(b,"getExportInfoMap: cache miss or empty; calculating new results");var Z=P.getCompilerOptions(),ne=e.getEmitScriptTarget(Z),R=0;return a(P,b,!0,function(Y,U,$,T){++R%100===0&&(S==null||S.throwIfCancellationRequested());var I=new e.Map,y=$.getTypeChecker(),D=H(Y,y,Z);D&&h(D.symbol,y)&&K.add(ie.path,D.symbol,D.exportKind===1?"default":"export=",Y,U,D.exportKind,T,ne,y),y.forEachExportAndPropertyOfModule(Y,function(C,m){C!==(D==null?void 0:D.symbol)&&h(C,y)&&e.addToSeen(I,m)&&K.add(ie.path,C,m,Y,U,0,T,ne,y)})}),(x=b.log)===null||x===void 0||x.call(b,"getExportInfoMap: done in ".concat(e.timestamp()-w," ms")),K}e.getExportInfoMap=N;function H(ie,b,P){var S=v(ie,b);if(!!S){var B=S.symbol,J=S.exportKind,k=A(B,b,P);return k&&Rn({symbol:B,exportKind:J},k)}}e.getDefaultLikeExportInfo=H;function h(ie,b){return!b.isUndefinedSymbol(ie)&&!b.isUnknownSymbol(ie)&&!e.isKnownSymbol(ie)&&!e.isPrivateIdentifierSymbol(ie)}function v(ie,b){var P=b.resolveExternalModuleSymbol(ie);if(P!==ie)return{symbol:P,exportKind:2};var S=b.tryGetMemberInModuleExports("default",ie);if(S)return{symbol:S,exportKind:1}}function A(ie,b,P){var S=e.getLocalSymbolForExportDefault(ie);if(S)return{symbolForMeaning:S,name:S.name};var B=q(ie);if(B!==void 0)return{symbolForMeaning:ie,name:B};if(ie.flags&2097152){var J=b.getImmediateAliasedSymbol(ie);if(J&&J.parent)return A(J,b,P)}return ie.escapedName!=="default"&&ie.escapedName!=="export="?{symbolForMeaning:ie,name:ie.getName()}:{symbolForMeaning:ie,name:e.getNameForExportedSymbol(ie,P.target)}}function q(ie){return ie.declarations&&e.firstDefined(ie.declarations,function(b){var P;if(e.isExportAssignment(b))return(P=e.tryCast(e.skipOuterExpressions(b.expression),e.isIdentifier))===null||P===void 0?void 0:P.text;if(e.isExportSpecifier(b))return e.Debug.assert(b.name.text==="default","Expected the specifier to be a default export"),b.propertyName&&b.propertyName.text})}})(gr||(gr={}));var gr;(function(e){function n(){var w=e.createScanner(99,!1);function K(ne,R,Y){return p(Z(ne,R,Y),ne)}function Z(ne,R,Y){var U=0,$=0,T=[],I=h(R),y=I.prefix,D=I.pushTemplate;ne=y+ne;var C=y.length;D&&T.push(15),w.setText(ne);var m=0,u=[],g=0;do{U=w.scan(),e.isTrivia(U)||(ue(),$=U);var F=w.getTextPos();if(a(w.getTokenPos(),F,C,q(U),u),F>=ne.length){var te=d(w,U,e.lastOrUndefined(T));te!==void 0&&(m=te)}}while(U!==1);function ue(){switch(U){case 43:case 68:!f[$]&&w.reScanSlashToken()===13&&(U=13);break;case 29:$===79&&g++;break;case 31:g>0&&g--;break;case 130:case 149:case 146:case 133:case 150:g>0&&!Y&&(U=79);break;case 15:T.push(U);break;case 18:T.length>0&&T.push(U);break;case 19:if(T.length>0){var X=e.lastOrUndefined(T);X===15?(U=w.reScanTemplateToken(!1),U===17?T.pop():e.Debug.assertEqual(U,16,"Should have been a template middle.")):(e.Debug.assertEqual(X,18,"Should have been an open brace"),T.pop())}break;default:if(!e.isKeyword(U))break;($===24||e.isKeyword($)&&e.isKeyword(U)&&!H($,U))&&(U=79)}}return{endOfLineState:m,spans:u}}return{getClassificationsForLine:K,getEncodedLexicalClassifications:Z}}e.createClassifier=n;var f=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],function(w){return w},function(){return!0});function d(w,K,Z){switch(K){case 10:{if(!w.isUnterminated())return;for(var ne=w.getTokenText(),R=ne.length-1,Y=0;ne.charCodeAt(R-Y)===92;)Y++;return(Y&1)===0?void 0:ne.charCodeAt(0)===34?3:2}case 3:return w.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(K)){if(!w.isUnterminated())return;switch(K){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+K)}}return Z===15?6:void 0}}function a(w,K,Z,ne,R){if(ne!==8){w===0&&Z>0&&(w+=Z);var Y=K-w;Y>0&&R.push(w-Z,Y,ne)}}function p(w,K){for(var Z=[],ne=w.spans,R=0,Y=0;Y<ne.length;Y+=3){var U=ne[Y],$=ne[Y+1],T=ne[Y+2];if(R>=0){var I=U-R;I>0&&Z.push({length:I,classification:e.TokenClass.Whitespace})}Z.push({length:$,classification:N(T)}),R=U+$}var y=K.length-R;return y>0&&Z.push({length:y,classification:e.TokenClass.Whitespace}),{entries:Z,finalLexState:w.endOfLineState}}function N(w){switch(w){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 H(w,K){if(!e.isAccessibilityModifier(w))return!0;switch(K){case 136:case 148:case 134:case 124:return!0;default:return!1}}function h(w){switch(w){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(w)}}function v(w){switch(w){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 A(w){switch(w){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function q(w){if(e.isKeyword(w))return 3;if(v(w)||A(w))return 5;if(w>=18&&w<=78)return 10;switch(w){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(w)?6:2}}function ie(w,K,Z,ne,R){return k(P(w,K,Z,ne,R))}e.getSemanticClassifications=ie;function b(w,K){switch(K){case 260:case 256:case 257:case 255:case 225:case 212:case 213:w.throwIfCancellationRequested()}}function P(w,K,Z,ne,R){var Y=[];return Z.forEachChild(function $(T){if(!(!T||!e.textSpanIntersectsWith(R,T.pos,T.getFullWidth()))){if(b(K,T.kind),e.isIdentifier(T)&&!e.nodeIsMissing(T)&&ne.has(T.escapedText)){var I=w.getSymbolAtLocation(T),y=I&&S(I,e.getMeaningFromLocation(T),w);y&&U(T.getStart(Z),T.getEnd(),y)}T.forEachChild($)}}),{spans:Y,endOfLineState:0};function U($,T,I){var y=T-$;e.Debug.assert(y>0,"Classification had non-positive length of ".concat(y)),Y.push($),Y.push(y),Y.push(I)}}e.getEncodedSemanticClassifications=P;function S(w,K,Z){var ne=w.getFlags();if((ne&2885600)!==0)return ne&32?11:ne&384?12:ne&524288?16:ne&1536?K&4||K&1&&B(w)?14:void 0:ne&2097152?S(Z.getAliasedSymbol(w),K,Z):K&2?ne&64?13:ne&262144?15:void 0:void 0}function B(w){return e.some(w.declarations,function(K){return e.isModuleDeclaration(K)&&e.getModuleInstanceState(K)===1})}function J(w){switch(w){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 k(w){e.Debug.assert(w.spans.length%3===0);for(var K=w.spans,Z=[],ne=0;ne<K.length;ne+=3)Z.push({textSpan:e.createTextSpan(K[ne],K[ne+1]),classificationType:J(K[ne+2])});return Z}function M(w,K,Z){return k(x(w,K,Z))}e.getSyntacticClassifications=M;function x(w,K,Z){var ne=Z.start,R=Z.length,Y=e.createScanner(99,!1,K.languageVariant,K.text),U=e.createScanner(99,!1,K.languageVariant,K.text),$=[];return j(K),{spans:$,endOfLineState:0};function T(Se,Ce,O){$.push(Se),$.push(Ce),$.push(O)}function I(Se){for(Y.setTextPos(Se.pos);;){var Ce=Y.getTextPos();if(!e.couldStartTrivia(K.text,Ce))return Ce;var O=Y.scan(),Q=Y.getTextPos(),V=Q-Ce;if(!e.isTrivia(O))return Ce;switch(O){case 4:case 5:continue;case 2:case 3:y(Se,O,Ce,V),Y.setTextPos(Q);continue;case 7:var z=K.text,Te=z.charCodeAt(Ce);if(Te===60||Te===62){T(Ce,V,1);continue}e.Debug.assert(Te===124||Te===61),g(z,Ce,Q);break;case 6:break;default:e.Debug.assertNever(O)}}}function y(Se,Ce,O,Q){if(Ce===3){var V=e.parseIsolatedJSDocComment(K.text,O,Q);if(V&&V.jsDoc){e.setParent(V.jsDoc,Se),C(V.jsDoc);return}}else if(Ce===2&&m(O,Q))return;D(O,Q)}function D(Se,Ce){T(Se,Ce,1)}function C(Se){var Ce,O,Q,V,z,Te,ge,ke=Se.pos;if(Se.tags)for(var Me=0,Ie=Se.tags;Me<Ie.length;Me++){var Ge=Ie[Me];Ge.pos!==ke&&D(ke,Ge.pos-ke),T(Ge.pos,1,10),T(Ge.tagName.pos,Ge.tagName.end-Ge.tagName.pos,18),ke=Ge.tagName.end;var he=Ge.tagName.end;switch(Ge.kind){case 338:var ve=Ge;Le(ve),he=ve.isNameFirst&&((Ce=ve.typeExpression)===null||Ce===void 0?void 0:Ce.end)||ve.name.end;break;case 345:var Ve=Ge;he=Ve.isNameFirst&&((O=Ve.typeExpression)===null||O===void 0?void 0:O.end)||Ve.name.end;break;case 342:u(Ge),ke=Ge.end,he=Ge.typeParameters.end;break;case 343:var _e=Ge;he=((Q=_e.typeExpression)===null||Q===void 0?void 0:Q.kind)===307&&((V=_e.fullName)===null||V===void 0?void 0:V.end)||((z=_e.typeExpression)===null||z===void 0?void 0:z.end)||he;break;case 336:he=Ge.typeExpression.end;break;case 341:j(Ge.typeExpression),ke=Ge.end,he=Ge.typeExpression.end;break;case 340:case 337:he=Ge.typeExpression.end;break;case 339:j(Ge.typeExpression),ke=Ge.end,he=((Te=Ge.typeExpression)===null||Te===void 0?void 0:Te.end)||he;break;case 344:he=((ge=Ge.name)===null||ge===void 0?void 0:ge.end)||he;break;case 326:case 327:he=Ge.class.end;break}typeof Ge.comment=="object"?D(Ge.comment.pos,Ge.comment.end-Ge.comment.pos):typeof Ge.comment=="string"&&D(he,Ge.end-he)}ke!==Se.end&&D(ke,Se.end-ke);return;function Le(qe){qe.isNameFirst&&(D(ke,qe.name.pos-ke),T(qe.name.pos,qe.name.end-qe.name.pos,17),ke=qe.name.end),qe.typeExpression&&(D(ke,qe.typeExpression.pos-ke),j(qe.typeExpression),ke=qe.typeExpression.end),qe.isNameFirst||(D(ke,qe.name.pos-ke),T(qe.name.pos,qe.name.end-qe.name.pos,17),ke=qe.name.end)}}function m(Se,Ce){var O=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,Q=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,V=K.text.substr(Se,Ce),z=O.exec(V);if(!z||!z[3]||!(z[3]in e.commentPragmas))return!1;var Te=Se;D(Te,z[1].length),Te+=z[1].length,T(Te,z[2].length,10),Te+=z[2].length,T(Te,z[3].length,21),Te+=z[3].length;for(var ge=z[4],ke=Te;;){var Me=Q.exec(ge);if(!Me)break;var Ie=Te+Me.index+Me[1].length;Ie>ke&&(D(ke,Ie-ke),ke=Ie),T(ke,Me[2].length,22),ke+=Me[2].length,Me[3].length&&(D(ke,Me[3].length),ke+=Me[3].length),T(ke,Me[4].length,5),ke+=Me[4].length,Me[5].length&&(D(ke,Me[5].length),ke+=Me[5].length),T(ke,Me[6].length,24),ke+=Me[6].length}Te+=z[4].length,Te>ke&&D(ke,Te-ke),z[5]&&(T(Te,z[5].length,10),Te+=z[5].length);var Ge=Se+Ce;return Te<Ge&&D(Te,Ge-Te),!0}function u(Se){for(var Ce=0,O=Se.getChildren();Ce<O.length;Ce++){var Q=O[Ce];j(Q)}}function g(Se,Ce,O){var Q;for(Q=Ce;Q<O&&!e.isLineBreak(Se.charCodeAt(Q));Q++);for(T(Ce,Q-Ce,1),U.setTextPos(Q);U.getTextPos()<O;)F()}function F(){var Se=U.getTextPos(),Ce=U.scan(),O=U.getTextPos(),Q=X(Ce);Q&&T(Se,O-Se,Q)}function te(Se){if(e.isJSDoc(Se)||e.nodeIsMissing(Se))return!0;var Ce=ue(Se);if(!e.isToken(Se)&&Se.kind!==11&&Ce===void 0)return!1;var O=Se.kind===11?Se.pos:I(Se),Q=Se.end-O;if(e.Debug.assert(Q>=0),Q>0){var V=Ce||X(Se.kind,Se);V&&T(O,Q,V)}return!0}function ue(Se){switch(Se.parent&&Se.parent.kind){case 279:if(Se.parent.tagName===Se)return 19;break;case 280:if(Se.parent.tagName===Se)return 20;break;case 278:if(Se.parent.tagName===Se)return 21;break;case 284:if(Se.parent.name===Se)return 22;break}}function X(Se,Ce){if(e.isKeyword(Se))return 3;if((Se===29||Se===31)&&Ce&&e.getTypeArgumentOrTypeParameterList(Ce.parent))return 10;if(e.isPunctuation(Se)){if(Ce){var O=Ce.parent;if(Se===63&&(O.kind===253||O.kind===166||O.kind===163||O.kind===284)||O.kind===220||O.kind===218||O.kind===219||O.kind===221)return 5}return 10}else{if(Se===8)return 4;if(Se===9)return 25;if(Se===10)return Ce&&Ce.parent.kind===284?24:6;if(Se===13)return 6;if(e.isTemplateLiteralKind(Se))return 6;if(Se===11)return 23;if(Se===79){if(Ce)switch(Ce.parent.kind){case 256:return Ce.parent.name===Ce?11:void 0;case 162:return Ce.parent.name===Ce?15:void 0;case 257:return Ce.parent.name===Ce?13:void 0;case 259:return Ce.parent.name===Ce?12:void 0;case 260:return Ce.parent.name===Ce?14:void 0;case 163:return Ce.parent.name===Ce?e.isThisIdentifier(Ce)?3:17:void 0}return 2}}}function j(Se){if(!!Se&&e.decodedTextSpanIntersectsWith(ne,R,Se.pos,Se.getFullWidth())){b(w,Se.kind);for(var Ce=0,O=Se.getChildren(K);Ce<O.length;Ce++){var Q=O[Ce];te(Q)||j(Q)}}}}e.getEncodedSyntacticClassifications=x})(gr||(gr={}));var gr;(function(e){(function(n){(function(f){(function(S){S[S.typeOffset=8]="typeOffset",S[S.modifierMask=255]="modifierMask"})(f.TokenEncodingConsts||(f.TokenEncodingConsts={})),function(S){S[S.class=0]="class",S[S.enum=1]="enum",S[S.interface=2]="interface",S[S.namespace=3]="namespace",S[S.typeParameter=4]="typeParameter",S[S.type=5]="type",S[S.parameter=6]="parameter",S[S.variable=7]="variable",S[S.enumMember=8]="enumMember",S[S.property=9]="property",S[S.function=10]="function",S[S.member=11]="member"}(f.TokenType||(f.TokenType={})),function(S){S[S.declaration=0]="declaration",S[S.static=1]="static",S[S.async=2]="async",S[S.readonly=3]="readonly",S[S.defaultLibrary=4]="defaultLibrary",S[S.local=5]="local"}(f.TokenModifier||(f.TokenModifier={}));function d(S,B,J,k){var M=a(S,B,J,k);e.Debug.assert(M.spans.length%3===0);for(var x=M.spans,w=[],K=0;K<x.length;K+=3)w.push({textSpan:e.createTextSpan(x[K],x[K+1]),classificationType:x[K+2]});return w}f.getSemanticClassifications=d;function a(S,B,J,k){return{spans:p(S,J,k,B),endOfLineState:0}}f.getEncodedSemanticClassifications=a;function p(S,B,J,k){var M=[],x=function(w,K,Z){M.push(w.getStart(B),w.getWidth(B),(K+1<<8)+Z)};return S&&B&&N(S,B,J,x,k),M}function N(S,B,J,k,M){var x=S.getTypeChecker(),w=!1;function K(Z){switch(Z.kind){case 260:case 256:case 257:case 255:case 225:case 212:case 213:M.throwIfCancellationRequested()}if(!(!Z||!e.textSpanIntersectsWith(J,Z.pos,Z.getFullWidth())||Z.getFullWidth()===0)){var ne=w;if((e.isJsxElement(Z)||e.isJsxSelfClosingElement(Z))&&(w=!0),e.isJsxExpression(Z)&&(w=!1),e.isIdentifier(Z)&&!w&&!q(Z)&&!e.isInfinityOrNaNString(Z.escapedText)){var R=x.getSymbolAtLocation(Z);if(R){R.flags&2097152&&(R=x.getAliasedSymbol(R));var Y=H(R,e.getMeaningFromLocation(Z));if(Y!==void 0){var U=0;if(Z.parent){var $=e.isBindingElement(Z.parent)||P.get(Z.parent.kind)===Y;$&&Z.parent.name===Z&&(U=1<<0)}Y===6&&b(Z)&&(Y=9),Y=h(x,Z,Y);var T=R.valueDeclaration;if(T){var I=e.getCombinedModifierFlags(T),y=e.getCombinedNodeFlags(T);I&32&&(U|=1<<1),I&256&&(U|=1<<2),Y!==0&&Y!==2&&(I&64||y&2||R.getFlags()&8)&&(U|=1<<3),(Y===7||Y===10)&&v(T,B)&&(U|=1<<5),S.isSourceFileDefaultLibrary(T.getSourceFile())&&(U|=1<<4)}else R.declarations&&R.declarations.some(function(D){return S.isSourceFileDefaultLibrary(D.getSourceFile())})&&(U|=1<<4);k(Z,Y,U)}}}e.forEachChild(Z,K),w=ne}}K(B)}function H(S,B){var J=S.getFlags();if(J&32)return 0;if(J&384)return 1;if(J&524288)return 5;if(J&64){if(B&2)return 2}else if(J&262144)return 4;var k=S.valueDeclaration||S.declarations&&S.declarations[0];return k&&e.isBindingElement(k)&&(k=A(k)),k&&P.get(k.kind)}function h(S,B,J){if(J===7||J===9||J===6){var k=S.getTypeAtLocation(B);if(k){var M=function(x){return x(k)||k.isUnion()&&k.types.some(x)};if(J!==6&&M(function(x){return x.getConstructSignatures().length>0}))return 0;if(M(function(x){return x.getCallSignatures().length>0})&&!M(function(x){return x.getProperties().length>0})||ie(B))return J===9?11:10}}return J}function v(S,B){return e.isBindingElement(S)&&(S=A(S)),e.isVariableDeclaration(S)?(!e.isSourceFile(S.parent.parent.parent)||e.isCatchClause(S.parent))&&S.getSourceFile()===B:e.isFunctionDeclaration(S)?!e.isSourceFile(S.parent)&&S.getSourceFile()===B:!1}function A(S){for(;;)if(e.isBindingElement(S.parent.parent))S=S.parent.parent;else return S.parent.parent}function q(S){var B=S.parent;return B&&(e.isImportClause(B)||e.isImportSpecifier(B)||e.isNamespaceImport(B))}function ie(S){for(;b(S);)S=S.parent;return e.isCallExpression(S.parent)&&S.parent.expression===S}function b(S){return e.isQualifiedName(S.parent)&&S.parent.right===S||e.isPropertyAccessExpression(S.parent)&&S.parent.name===S}var P=new e.Map([[253,7],[163,6],[166,9],[260,3],[259,1],[297,8],[256,0],[168,11],[255,10],[212,10],[167,11],[171,9],[172,9],[165,9],[257,2],[258,5],[162,4],[294,9],[295,9]])})(n.v2020||(n.v2020={}))})(e.classifier||(e.classifier={}))})(gr||(gr={}));var gr;(function(e){(function(n){(function(f){function d(V,z,Te,ge,ke,Me,Ie,Ge){if(e.isInReferenceComment(V,z)){var he=F(V,z,ge,ke);return he&&H(he)}if(e.isInString(V,z,Te)){if(!Te||!e.isStringLiteralLike(Te))return;var he=A(V,Te,z,Me.getTypeChecker(),ge,ke,Ge);return a(he,Te,V,ke,Me,Ie,ge,Ge)}}f.getStringLiteralCompletions=d;function a(V,z,Te,ge,ke,Me,Ie,Ge){if(V!==void 0){var he=e.createTextSpanFromStringLiteralLikeContent(z);switch(V.kind){case 0:return H(V.paths);case 1:{var ve=[];return n.getCompletionEntriesFromSymbols(V.symbols,ve,z,z,Te,Te,ge,ke,99,Me,4,Ge,Ie),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:V.hasIndexSignature,optionalReplacementSpan:he,entries:ve}}case 2:{var ve=V.types.map(function(_e){return{name:_e.value,kindModifiers:"",kind:"string",sortText:n.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(z)}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:V.isNewIdentifier,optionalReplacementSpan:he,entries:ve}}default:return e.Debug.assertNever(V)}}}function p(V,z,Te,ge,ke,Me,Ie,Ge,he){if(!(!ge||!e.isStringLiteralLike(ge))){var ve=A(z,ge,Te,ke,Me,Ie,he);return ve&&N(V,ge,ve,z,ke,Ge)}}f.getStringLiteralCompletionDetails=p;function N(V,z,Te,ge,ke,Me){switch(Te.kind){case 0:{var Ie=e.find(Te.paths,function(Ge){return Ge.name===V});return Ie&&n.createCompletionDetails(V,h(Ie.extension),Ie.kind,[e.textPart(V)])}case 1:{var Ie=e.find(Te.symbols,function(he){return he.name===V});return Ie&&n.createCompletionDetailsForSymbol(Ie,ke,ge,z,Me)}case 2:return e.find(Te.types,function(Ge){return Ge.value===V})?n.createCompletionDetails(V,"","type",[e.textPart(V)]):void 0;default:return e.Debug.assertNever(Te)}}function H(V){var z=!1,Te=!0,ge=V.map(function(ke){var Me=ke.name,Ie=ke.kind,Ge=ke.span,he=ke.extension;return{name:Me,kind:Ie,kindModifiers:h(he),sortText:n.SortText.LocationPriority,replacementSpan:Ge}});return{isGlobalCompletion:z,isMemberCompletion:!1,isNewIdentifierLocation:Te,entries:ge}}function h(V){switch(V){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return e.Debug.fail("Extension ".concat(".tsbuildinfo"," is unsupported."));case void 0:return"";default:return e.Debug.assertNever(V)}}var v;(function(V){V[V.Paths=0]="Paths",V[V.Properties=1]="Properties",V[V.Types=2]="Types"})(v||(v={}));function A(V,z,Te,ge,ke,Me,Ie){var Ge=q(z.parent);switch(Ge.kind){case 195:{var he=q(Ge.parent);switch(he.kind){case 177:{var ve=he,Ve=e.findAncestor(Ge,function(Cr){return Cr.parent===ve});return Ve?{kind:2,types:B(ge.getTypeArgumentConstraint(Ve)),isNewIdentifier:!1}:void 0}case 193:var _e=he,Le=_e.indexType,qe=_e.objectType;return e.rangeContainsPosition(Le,Te)?P(ge.getTypeFromTypeNode(qe)):void 0;case 199:return{kind:0,paths:x(V,z,ke,Me,ge,Ie)};case 186:{if(!e.isTypeReferenceNode(he.parent))return;var Xe=ie(he,Ge),De=B(ge.getTypeArgumentConstraint(he)).filter(function(Cr){return!e.contains(Xe,Cr.value)});return{kind:2,types:De,isNewIdentifier:!1}}default:return}}case 294:return e.isObjectLiteralExpression(Ge.parent)&&Ge.name===z?S(ge,Ge.parent):lr();case 206:{var Ae=Ge,Ye=Ae.expression,Lr=Ae.argumentExpression;return z===e.skipParentheses(Lr)?P(ge.getTypeAtLocation(Ye)):void 0}case 207:case 208:if(!Q(z)&&!e.isImportCall(Ge)){var Er=e.SignatureHelp.getArgumentInfoForCompletions(z,Te,V);return Er?b(Er,ge):lr()}case 265:case 271:case 276:return{kind:0,paths:x(V,z,ke,Me,ge,Ie)};default:return lr()}function lr(){return{kind:2,types:B(e.getContextualTypeFromParent(z,ge)),isNewIdentifier:!1}}}function q(V){switch(V.kind){case 190:return e.walkUpParenthesizedTypes(V);case 211:return e.walkUpParenthesizedExpressions(V);default:return V}}function ie(V,z){return e.mapDefined(V.types,function(Te){return Te!==z&&e.isLiteralTypeNode(Te)&&e.isStringLiteral(Te.literal)?Te.literal.text:void 0})}function b(V,z){var Te=!1,ge=new e.Map,ke=[];z.getResolvedSignature(V.invocation,ke,V.argumentCount);var Me=e.flatMap(ke,function(Ie){if(!(!e.signatureHasRestParameter(Ie)&&V.argumentCount>Ie.parameters.length)){var Ge=z.getParameterType(Ie,V.argumentIndex);return Te=Te||!!(Ge.flags&4),B(Ge,ge)}});return{kind:2,types:Me,isNewIdentifier:Te}}function P(V){return V&&{kind:1,symbols:e.filter(V.getApparentProperties(),function(z){return!(z.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(z.valueDeclaration))}),hasIndexSignature:e.hasIndexSignature(V)}}function S(V,z){var Te=V.getContextualType(z);if(!!Te){var ge=V.getContextualType(z,4),ke=n.getPropertiesForObjectExpression(Te,ge,z,V);return{kind:1,symbols:ke,hasIndexSignature:e.hasIndexSignature(Te)}}}function B(V,z){return z===void 0&&(z=new e.Map),V?(V=e.skipConstraint(V),V.isUnion()?e.flatMap(V.types,function(Te){return B(Te,z)}):V.isStringLiteral()&&!(V.flags&1024)&&e.addToSeen(z,V.value)?[V]:e.emptyArray):e.emptyArray}function J(V,z,Te){return{name:V,kind:z,extension:Te}}function k(V){return J(V,"directory",void 0)}function M(V,z,Te){var ge=X(V,z),ke=V.length===0?void 0:e.createTextSpan(z,V.length);return Te.map(function(Me){var Ie=Me.name,Ge=Me.kind,he=Me.extension;return Math.max(Ie.indexOf(e.directorySeparator),Ie.indexOf(e.altDirectorySeparator))!==-1?{name:Ie,kind:Ge,extension:he,span:ke}:{name:Ie,kind:Ge,extension:he,span:ge}})}function x(V,z,Te,ge,ke,Me){return M(z.text,z.getStart(V)+1,w(V,z,Te,ge,ke,Me))}function w(V,z,Te,ge,ke,Me){var Ie=e.normalizeSlashes(z.text),Ge=V.path,he=e.getDirectoryPath(Ge);return j(Ie)||!Te.baseUrl&&(e.isRootedDiskPath(Ie)||e.isUrl(Ie))?Z(Ie,he,Te,ge,Ge,ve()):I(Ie,he,Te,ge,ke);function ve(){var Ve=e.isStringLiteralLike(z)?e.getModeForUsageLocation(V,z):void 0;return Me.importModuleSpecifierEnding==="js"||Ve===e.ModuleKind.ESNext?2:0}}function K(V,z){return z===void 0&&(z=0),{extensions:e.flatten(ne(V)),includeExtensionsOption:z}}function Z(V,z,Te,ge,ke,Me){var Ie=K(Te,Me);return Te.rootDirs?Y(Te.rootDirs,V,z,Ie,Te,ge,ke):$(V,z,Ie,ge,ke)}function ne(V){var z=e.getSupportedExtensions(V);return e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.NodeJs?e.getSupportedExtensionsWithJsonIfResolveJsonModule(V,z):z}function R(V,z,Te,ge){V=V.map(function(Me){return e.normalizePath(e.isRootedDiskPath(Me)?Me:e.combinePaths(z,Me))});var ke=e.firstDefined(V,function(Me){return e.containsPath(Me,Te,z,ge)?Te.substr(Me.length):void 0});return e.deduplicate(Gt(Gt([],V.map(function(Me){return e.combinePaths(Me,ke)}),!0),[Te],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function Y(V,z,Te,ge,ke,Me,Ie){var Ge=ke.project||Me.getCurrentDirectory(),he=!(Me.useCaseSensitiveFileNames&&Me.useCaseSensitiveFileNames()),ve=R(V,Ge,Te,he);return e.flatMap(ve,function(Ve){return $(z,Ve,ge,Me,Ie)})}var U;(function(V){V[V.Exclude=0]="Exclude",V[V.Include=1]="Include",V[V.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"})(U||(U={}));function $(V,z,Te,ge,ke,Me){var Ie=Te.extensions,Ge=Te.includeExtensionsOption;Me===void 0&&(Me=[]),V===void 0&&(V=""),V=e.normalizeSlashes(V),e.hasTrailingDirectorySeparator(V)||(V=e.getDirectoryPath(V)),V===""&&(V="."+e.directorySeparator),V=e.ensureTrailingDirectorySeparator(V);var he=e.resolvePath(z,V),ve=e.hasTrailingDirectorySeparator(he)?he:e.getDirectoryPath(he),Ve=!(ge.useCaseSensitiveFileNames&&ge.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(ge,ve))return Me;var _e=e.tryReadDirectory(ge,ve,Ie,void 0,["./*"]);if(_e){for(var Le=new e.Map,qe=0,Xe=_e;qe<Xe.length;qe++){var De=Xe[qe];if(De=e.normalizePath(De),!(ke&&e.comparePaths(De,ke,z,Ve)===0)){var Ae=void 0,Ye=e.moduleSpecifiers.tryGetJSExtensionForFile(De,ge.getCompilationSettings());Ge===0&&!e.fileExtensionIsOneOf(De,[".json",".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])?(Ae=e.removeFileExtension(e.getBaseFileName(De)),Le.set(Ae,e.tryGetExtensionFromPath(De))):(e.fileExtensionIsOneOf(De,[".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])||Ge===2)&&Ye?(Ae=e.changeExtension(e.getBaseFileName(De),Ye),Le.set(Ae,Ye)):(Ae=e.getBaseFileName(De),Le.set(Ae,e.tryGetExtensionFromPath(De)))}}Le.forEach(function(Fe,$e){Me.push(J($e,"script",Fe))})}var Lr=e.tryGetDirectories(ge,ve);if(Lr)for(var Er=0,lr=Lr;Er<lr.length;Er++){var Cr=lr[Er],Or=e.getBaseFileName(e.normalizePath(Cr));Or!=="@types"&&Me.push(k(Or))}var Ke=e.findPackageJson(ve,ge);if(Ke){var Pe=e.readJson(Ke,ge),Hr=Pe.typesVersions;if(typeof Hr=="object"){var ur=e.getPackageJsonTypesVersionsPaths(Hr),vr=ur&&ur.paths,de=he.slice(e.ensureTrailingDirectorySeparator(ve).length);vr&&T(Me,de,ve,Ie,vr,ge)}}return Me}function T(V,z,Te,ge,ke,Me){for(var Ie in ke)if(!!e.hasProperty(ke,Ie)){var Ge=ke[Ie];if(Ge)for(var he=function(De,Ae,Ye){V.some(function(Lr){return Lr.name===De})||V.push(J(De,Ae,Ye))},ve=0,Ve=D(Ie,Ge,z,Te,ge,Me);ve<Ve.length;ve++){var _e=Ve[ve],Le=_e.name,qe=_e.kind,Xe=_e.extension;he(Le,qe,Xe)}}}function I(V,z,Te,ge,ke){var Me=Te.baseUrl,Ie=Te.paths,Ge=[],he=K(Te);if(Me){var ve=Te.project||ge.getCurrentDirectory(),Ve=e.normalizePath(e.combinePaths(ve,Me));$(V,Ve,he,ge,void 0,Ge),Ie&&T(Ge,V,Ve,he.extensions,Ie,ge)}for(var _e=y(V),Le=0,qe=g(V,_e,ke);Le<qe.length;Le++){var Xe=qe[Le];Ge.push(J(Xe,"external module name",void 0))}if(te(ge,Te,z,_e,he,Ge),e.getEmitModuleResolutionKind(Te)===e.ModuleResolutionKind.NodeJs){var De=!1;if(_e===void 0)for(var Ae=function(lr){Ge.some(function(Cr){return Cr.name===lr})||(De=!0,Ge.push(J(lr,"external module name",void 0)))},Ye=0,Lr=ue(ge,z);Ye<Lr.length;Ye++){var Er=Lr[Ye];Ae(Er)}De||e.forEachAncestorDirectory(z,function(lr){var Cr=e.combinePaths(lr,"node_modules");e.tryDirectoryExists(ge,Cr)&&$(V,Cr,he,ge,void 0,Ge)})}return Ge}function y(V){return O(V)?e.hasTrailingDirectorySeparator(V)?V:e.getDirectoryPath(V):void 0}function D(V,z,Te,ge,ke,Me){if(!e.endsWith(V,"*"))return e.stringContains(V,"*")?e.emptyArray:he(V);var Ie=V.slice(0,V.length-1),Ge=e.tryRemovePrefix(Te,Ie);return Ge===void 0?he(Ie):e.flatMap(z,function(ve){return C(Ge,ge,ve,ke,Me)});function he(ve){return e.startsWith(ve,Te)?[k(ve)]:e.emptyArray}}function C(V,z,Te,ge,ke){if(!ke.readDirectory)return;var Me=e.tryParsePattern(Te);if(Me===void 0||e.isString(Me))return;var Ie=e.resolvePath(Me.prefix),Ge=e.hasTrailingDirectorySeparator(Me.prefix)?Ie:e.getDirectoryPath(Ie),he=e.hasTrailingDirectorySeparator(Me.prefix)?"":e.getBaseFileName(Ie),ve=O(V),Ve=ve?e.hasTrailingDirectorySeparator(V)?V:e.getDirectoryPath(V):void 0,_e=ve?e.combinePaths(Ge,he+Ve):Ge,Le=e.normalizePath(Me.suffix),qe=e.normalizePath(e.combinePaths(z,_e)),Xe=ve?qe:e.ensureTrailingDirectorySeparator(qe)+he,De=Le?"**/*":"./*",Ae=e.mapDefined(e.tryReadDirectory(ke,qe,ge,void 0,[De]),function(Er){var lr=e.tryGetExtensionFromPath(Er),Cr=Lr(Er);return Cr===void 0?void 0:J(e.removeFileExtension(Cr),"script",lr)}),Ye=e.mapDefined(e.tryGetDirectories(ke,qe).map(function(Er){return e.combinePaths(qe,Er)}),function(Er){var lr=Lr(Er);return lr===void 0?void 0:k(lr)});return Gt(Gt([],Ae,!0),Ye,!0);function Lr(Er){var lr=m(e.normalizePath(Er),Xe,Le);return lr===void 0?void 0:u(lr)}}function m(V,z,Te){return e.startsWith(V,z)&&e.endsWith(V,Te)?V.slice(z.length,V.length-Te.length):void 0}function u(V){return V[0]===e.directorySeparator?V.slice(1):V}function g(V,z,Te){var ge=Te.getAmbientModules().map(function(Ie){return e.stripQuotes(Ie.name)}),ke=ge.filter(function(Ie){return e.startsWith(Ie,V)});if(z!==void 0){var Me=e.ensureTrailingDirectorySeparator(z);return ke.map(function(Ie){return e.removePrefix(Ie,Me)})}return ke}function F(V,z,Te,ge){var ke=e.getTokenAtPosition(V,z),Me=e.getLeadingCommentRanges(V.text,ke.pos),Ie=Me&&e.find(Me,function(Xe){return z>=Xe.pos&&z<=Xe.end});if(!!Ie){var Ge=V.text.slice(Ie.pos,z),he=Se.exec(Ge);if(!!he){var ve=he[1],Ve=he[2],_e=he[3],Le=e.getDirectoryPath(V.path),qe=Ve==="path"?$(_e,Le,K(Te,1),ge,V.path):Ve==="types"?te(ge,Te,Le,y(_e),K(Te)):e.Debug.fail();return M(_e,Ie.pos+ve.length,qe)}}}function te(V,z,Te,ge,ke,Me){Me===void 0&&(Me=[]);for(var Ie=new e.Map,Ge=e.tryAndIgnoreErrors(function(){return e.getEffectiveTypeRoots(z,V)})||e.emptyArray,he=0,ve=Ge;he<ve.length;he++){var Ve=ve[he];De(Ve)}for(var _e=0,Le=e.findPackageJsons(Te,V);_e<Le.length;_e++){var qe=Le[_e],Xe=e.combinePaths(e.getDirectoryPath(qe),"node_modules/@types");De(Xe)}return Me;function De(Ae){if(!!e.tryDirectoryExists(V,Ae))for(var Ye=0,Lr=e.tryGetDirectories(V,Ae);Ye<Lr.length;Ye++){var Er=Lr[Ye],lr=e.unmangleScopedPackageName(Er);if(!(z.types&&!e.contains(z.types,lr)))if(ge===void 0)Ie.has(lr)||(Me.push(J(lr,"external module name",void 0)),Ie.set(lr,!0));else{var Cr=e.combinePaths(Ae,Er),Or=e.tryRemoveDirectoryPrefix(ge,lr,e.hostGetCanonicalFileName(V));Or!==void 0&&$(Or,Cr,ke,V,void 0,Me)}}}}function ue(V,z){if(!V.readFile||!V.fileExists)return e.emptyArray;for(var Te=[],ge=0,ke=e.findPackageJsons(z,V);ge<ke.length;ge++)for(var Me=ke[ge],Ie=e.readJson(Me,V),Ge=0,he=Ce;Ge<he.length;Ge++){var ve=he[Ge],Ve=Ie[ve];if(!!Ve)for(var _e in Ve)Ve.hasOwnProperty(_e)&&!e.startsWith(_e,"@types/")&&Te.push(_e)}return Te}function X(V,z){var Te=Math.max(V.lastIndexOf(e.directorySeparator),V.lastIndexOf(e.altDirectorySeparator)),ge=Te!==-1?Te+1:0,ke=V.length-ge;return ke===0||e.isIdentifierText(V.substr(ge,ke),99)?void 0:e.createTextSpan(z+ge,ke)}function j(V){if(V&&V.length>=2&&V.charCodeAt(0)===46){var z=V.length>=3&&V.charCodeAt(1)===46?2:1,Te=V.charCodeAt(z);return Te===47||Te===92}return!1}var Se=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,Ce=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function O(V){return e.stringContains(V,e.directorySeparator)}function Q(V){return e.isCallExpression(V.parent)&&e.firstOrUndefined(V.parent.arguments)===V&&e.isIdentifier(V.parent.expression)&&V.parent.expression.escapedText==="require"}})(n.StringCompletions||(n.StringCompletions={}))})(e.Completions||(e.Completions={}))})(gr||(gr={}));var gr;(function(e){(function(n){n.moduleSpecifierResolutionLimit=100,n.moduleSpecifierResolutionCacheAttemptLimit=1e3;var f;(function(fe){fe.LocalDeclarationPriority="10",fe.LocationPriority="11",fe.OptionalMember="12",fe.MemberDeclaredBySpreadAssignment="13",fe.SuggestedClassMembers="14",fe.GlobalsOrKeywords="15",fe.AutoImportSuggestions="16",fe.JavascriptIdentifiers="17",fe.DeprecatedLocalDeclarationPriority="18",fe.DeprecatedLocationPriority="19",fe.DeprecatedOptionalMember="20",fe.DeprecatedMemberDeclaredBySpreadAssignment="21",fe.DeprecatedSuggestedClassMembers="22",fe.DeprecatedGlobalsOrKeywords="23",fe.DeprecatedAutoImportSuggestions="24"})(f=n.SortText||(n.SortText={}));var d;(function(fe){fe[fe.LocalDeclarationPriority=10]="LocalDeclarationPriority",fe[fe.LocationPriority=11]="LocationPriority",fe[fe.OptionalMember=12]="OptionalMember",fe[fe.MemberDeclaredBySpreadAssignment=13]="MemberDeclaredBySpreadAssignment",fe[fe.SuggestedClassMembers=14]="SuggestedClassMembers",fe[fe.GlobalsOrKeywords=15]="GlobalsOrKeywords",fe[fe.AutoImportSuggestions=16]="AutoImportSuggestions",fe[fe._JavaScriptIdentifiers=17]="_JavaScriptIdentifiers",fe[fe._DeprecatedStart=18]="_DeprecatedStart",fe[fe._First=10]="_First",fe[fe.DeprecatedOffset=8]="DeprecatedOffset"})(d||(d={}));var a;(function(fe){fe.ThisProperty="ThisProperty/",fe.ClassMemberSnippet="ClassMemberSnippet/"})(a=n.CompletionSource||(n.CompletionSource={}));var p;(function(fe){fe[fe.ThisType=1]="ThisType",fe[fe.SymbolMember=2]="SymbolMember",fe[fe.Export=4]="Export",fe[fe.Promise=8]="Promise",fe[fe.Nullable=16]="Nullable",fe[fe.ResolvedExport=32]="ResolvedExport",fe[fe.SymbolMemberNoExport=2]="SymbolMemberNoExport",fe[fe.SymbolMemberExport=6]="SymbolMemberExport"})(p||(p={}));function N(fe){return!!(fe.kind&1)}function H(fe){return!!(fe.kind&2)}function h(fe){return!!(fe&&fe.kind&4)}function v(fe){return!!(fe&&fe.kind===32)}function A(fe){return h(fe)||v(fe)}function q(fe){return(h(fe)||v(fe))&&!!fe.isFromPackageJson}function ie(fe){return!!(fe.kind&8)}function b(fe){return!!(fe.kind&16)}var P;(function(fe){fe[fe.None=0]="None",fe[fe.All=1]="All",fe[fe.ClassElementKeywords=2]="ClassElementKeywords",fe[fe.InterfaceElementKeywords=3]="InterfaceElementKeywords",fe[fe.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",fe[fe.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",fe[fe.TypeAssertionKeywords=6]="TypeAssertionKeywords",fe[fe.TypeKeywords=7]="TypeKeywords",fe[fe.TypeKeyword=8]="TypeKeyword",fe[fe.Last=7]="Last"})(P||(P={}));var S;(function(fe){fe[fe.Continue=0]="Continue",fe[fe.Success=1]="Success",fe[fe.Fail=2]="Fail"})(S||(S={}));function B(fe,je,Ee,We,ee,Ne,me){var Ze,xr,fr,dr=e.timestamp(),et=!1,yt=0,Wr=0,tr=0,Ir=0,kr=me({tryResolve:gt,resolutionLimitExceeded:function(){return et}}),zr=Ir?" (".concat((tr/Ir*100).toFixed(1),"% hit rate)"):"";return(Ze=je.log)===null||Ze===void 0||Ze.call(je,"".concat(fe,": resolved ").concat(Wr," module specifiers, plus ").concat(yt," ambient and ").concat(tr," from cache").concat(zr)),(xr=je.log)===null||xr===void 0||xr.call(je,"".concat(fe,": response is ").concat(et?"incomplete":"complete")),(fr=je.log)===null||fr===void 0||fr.call(je,"".concat(fe,": ").concat(e.timestamp()-dr)),kr;function gt(vt,ut){if(ut){var ht=e.codefix.getModuleSpecifierForBestExportInfo(vt,We,Ee,je,ee);return ht&&yt++,ht}var xt=Ne||ee.allowIncompleteCompletions&&Wr<n.moduleSpecifierResolutionLimit,wt=!xt&&ee.allowIncompleteCompletions&&Ir<n.moduleSpecifierResolutionCacheAttemptLimit,Qt=xt||wt?e.codefix.getModuleSpecifierForBestExportInfo(vt,We,Ee,je,ee,wt):void 0;return(!xt&&!wt||wt&&!Qt)&&(et=!0),Wr+=(Qt==null?void 0:Qt.computedWithoutCacheCount)||0,tr+=vt.length-Wr,wt&&Ir++,Qt}}function J(fe,je,Ee,We,ee,Ne,me,Ze,xr){var fr,dr=De(ee,We).previousToken;if(!(me&&!e.isInString(We,ee,dr)&&!ze(We,me,dr,ee))){if(me===" ")return Ne.includeCompletionsForImportStatements&&Ne.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var et=je.getCompilerOptions(),yt=Ne.allowIncompleteCompletions?(fr=fe.getIncompleteCompletionsCache)===null||fr===void 0?void 0:fr.call(fe):void 0;if(yt&&Ze===3&&dr&&e.isIdentifier(dr)){var Wr=M(yt,We,dr,je,fe,Ne,xr);if(Wr)return Wr}else yt==null||yt.clear();var tr=n.StringCompletions.getStringLiteralCompletions(We,ee,dr,et,fe,je,Ee,Ne);if(tr)return tr;if(dr&&e.isBreakOrContinueStatement(dr.parent)&&(dr.kind===81||dr.kind===86||dr.kind===79))return V(dr.parent);var Ir=Xe(je,Ee,We,U(We,et),ee,Ne,void 0,fe,xr);if(!!Ir)switch(Ir.kind){case 0:var kr=Y(We,fe,je,et,Ee,Ir,Ne);return kr!=null&&kr.isIncomplete&&(yt==null||yt.set(kr)),kr;case 1:return x(e.JsDoc.getJSDocTagNameCompletions());case 2:return x(e.JsDoc.getJSDocTagCompletions());case 3:return x(e.JsDoc.getJSDocParameterNameCompletions(Ir.tag));case 4:return K(Ir.keywordCompletions,Ir.isNewIdentifierLocation);default:return e.Debug.assertNever(Ir)}}}n.getCompletionsAtPosition=J;function k(fe){return!!(fe!=null&&fe.moduleSpecifier)}function M(fe,je,Ee,We,ee,Ne,me){var Ze=fe.get();if(!!Ze){var xr=Ee.text.toLowerCase(),fr=e.getExportInfoMap(je,ee,We,me),dr=B("continuePreviousIncompleteResponse",ee,We,je,Ne,!1,function(et){var yt=e.mapDefined(Ze.entries,function(Wr){if(!Wr.hasAction||!Wr.source||!Wr.data||k(Wr.data))return Wr;if(!!ye(Wr.name,xr)){var tr=e.Debug.checkDefined(Ae(Wr.name,Wr.data,We,ee)).origin,Ir=fr.get(je.path,Wr.data.exportMapKey),kr=Ir&&et.tryResolve(Ir,!e.isExternalModuleNameRelative(e.stripQuotes(tr.moduleSymbol.name)));if(!kr)return Wr;var zr=Rn(Rn({},tr),{kind:32,moduleSpecifier:kr.moduleSpecifier});return Wr.data=ue(zr),Wr.source=O(zr),Wr.sourceDisplay=[e.textPart(zr.moduleSpecifier)],Wr}});return et.resolutionLimitExceeded()||(Ze.isIncomplete=void 0),yt});return Ze.entries=dr,Ze}}function x(fe){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:fe}}function w(fe){return{name:e.tokenToString(fe),kind:"keyword",kindModifiers:"",sortText:f.GlobalsOrKeywords}}function K(fe,je){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:je,entries:fe.slice()}}function Z(fe,je,Ee){return{kind:4,keywordCompletions:lr(fe,je),isNewIdentifierLocation:Ee}}function ne(fe){switch(fe){case 151:return 8;default:e.Debug.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function R(fe){return(fe==null?void 0:fe.kind)===79?e.createTextSpanFromNode(fe):void 0}function Y(fe,je,Ee,We,ee,Ne,me){var Ze=Ne.symbols,xr=Ne.contextToken,fr=Ne.completionKind,dr=Ne.isInSnippetScope,et=Ne.isNewIdentifierLocation,yt=Ne.location,Wr=Ne.propertyAccessToConvert,tr=Ne.keywordFilters,Ir=Ne.literals,kr=Ne.symbolToOriginInfoMap,zr=Ne.recommendedCompletion,gt=Ne.isJsxInitializer,vt=Ne.isTypeOnlyLocation,ut=Ne.isJsxIdentifierExpected,ht=Ne.isRightOfOpenTag,xt=Ne.importCompletionNode,wt=Ne.insideJsDocTagTypeExpression,Qt=Ne.symbolToSortTextIdMap,mt=Ne.hasUnresolvedAutoImports;if(e.getLanguageVariant(fe.scriptKind)===1){var rn=T(yt,fe);if(rn)return rn}var sa=[];if(U(fe,We)){var ba=Q(Ze,sa,void 0,xr,yt,fe,je,Ee,e.getEmitScriptTarget(We),ee,fr,me,We,vt,Wr,ut,gt,xt,zr,kr,Qt,ut,ht);I(fe,yt.pos,ba,e.getEmitScriptTarget(We),sa)}else{if(!et&&(!Ze||Ze.length===0)&&tr===0)return;Q(Ze,sa,void 0,xr,yt,fe,je,Ee,e.getEmitScriptTarget(We),ee,fr,me,We,vt,Wr,ut,gt,xt,zr,kr,Qt,ut,ht)}if(tr!==0)for(var Jn=new e.Set(sa.map(function(Pn){return Pn.name})),na=0,Wn=lr(tr,!wt&&e.isSourceFileJS(fe));na<Wn.length;na++){var en=Wn[na];Jn.has(en.name)||sa.push(en)}for(var St=0,Ut=Ir;St<Ut.length;St++){var qt=Ut[St];sa.push(D(fe,me,qt))}return{isGlobalCompletion:dr,isIncomplete:me.allowIncompleteCompletions&&mt?!0:void 0,isMemberCompletion:$(fr),isNewIdentifierLocation:et,optionalReplacementSpan:R(yt),entries:sa}}function U(fe,je){return e.isSourceFileJS(fe)&&!e.isCheckJsEnabledForFile(fe,je)}function $(fe){switch(fe){case 0:case 3:case 2:return!0;default:return!1}}function T(fe,je){var Ee=e.findAncestor(fe,function(fr){switch(fr.kind){case 280:return!0;case 43:case 31:case 79:case 205:return!1;default:return"quit"}});if(Ee){var We=!!e.findChildOfKind(Ee,31,je),ee=Ee.parent.openingElement.tagName,Ne=ee.getText(je),me=Ne+(We?"":">"),Ze=e.createTextSpanFromNode(Ee.tagName),xr={name:me,kind:"class",kindModifiers:void 0,sortText:f.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:Ze,entries:[xr]}}}function I(fe,je,Ee,We,ee){e.getNameTable(fe).forEach(function(Ne,me){if(Ne!==je){var Ze=e.unescapeLeadingUnderscores(me);!Ee.has(Ze)&&e.isIdentifierText(Ze,We)&&(Ee.add(Ze),ee.push({name:Ze,kind:"warning",kindModifiers:"",sortText:f.JavascriptIdentifiers,isFromUncheckedFile:!0}))}})}function y(fe,je,Ee){return typeof Ee=="object"?e.pseudoBigIntToString(Ee)+"n":e.isString(Ee)?e.quote(fe,je,Ee):JSON.stringify(Ee)}function D(fe,je,Ee){return{name:y(fe,je,Ee),kind:"string",kindModifiers:"",sortText:f.LocationPriority}}function C(fe,je,Ee,We,ee,Ne,me,Ze,xr,fr,dr,et,yt,Wr,tr,Ir,kr,zr,gt,vt,ut){var ht,xt,wt,Qt=e.getReplacementSpanForContextToken(Ee),mt,rn,sa=O(dr),ba,Jn,na=Ze.getTypeChecker(),Wn=dr&&b(dr),en=dr&&H(dr)||fr;if(dr&&N(dr))wt=fr?"this".concat(Wn?"?.":"","[").concat(Se(Ne,zr,xr),"]"):"this".concat(Wn?"?.":".").concat(xr);else if((en||Wn)&&yt){wt=en?fr?"[".concat(Se(Ne,zr,xr),"]"):"[".concat(xr,"]"):xr,(Wn||yt.questionDotToken)&&(wt="?.".concat(wt));var St=e.findChildOfKind(yt,24,Ne)||e.findChildOfKind(yt,28,Ne);if(!St)return;var Ut=e.startsWith(xr,yt.name.text)?yt.name.end:St.end;Qt=e.createTextSpanFromBounds(St.getStart(Ne),Ut)}if(Wr&&(wt===void 0&&(wt=xr),wt="{".concat(wt,"}"),typeof Wr!="boolean"&&(Qt=e.createTextSpanFromNode(Wr,Ne))),dr&&ie(dr)&&yt){wt===void 0&&(wt=xr);var qt=e.findPrecedingToken(yt.pos,Ne),Pn="";qt&&e.positionIsASICandidate(qt.end,qt.parent,Ne)&&(Pn=";"),Pn+="(await ".concat(yt.expression.getText(),")"),wt=fr?"".concat(Pn).concat(wt):"".concat(Pn).concat(Wn?"?.":".").concat(wt),Qt=e.createTextSpanFromBounds(yt.getStart(Ne),yt.end)}if(v(dr)&&(ba=[e.textPart(dr.moduleSpecifier)],tr&&(ht=j(xr,tr,We,dr,Ir,kr,zr),wt=ht.insertText,Qt=ht.replacementSpan,rn=zr.includeCompletionsWithSnippetText?!0:void 0)),zr.includeCompletionsWithClassMemberSnippets&&zr.includeCompletionsWithInsertText&>===3&&m(fe,ee)){var dn=void 0;xt=u(me,Ze,kr,zr,xr,fe,ee,We),wt=xt.insertText,rn=xt.isSnippet,dn=xt.importAdder,dn!=null&&dn.hasFixes()&&(Jn=!0,sa=a.ClassMemberSnippet)}if(vt&&!ut&&zr.includeCompletionsWithSnippetText&&zr.jsxAttributeCompletionStyle&&zr.jsxAttributeCompletionStyle!=="none"){var oa=zr.jsxAttributeCompletionStyle==="braces",pt=na.getTypeOfSymbolAtLocation(fe,ee);zr.jsxAttributeCompletionStyle==="auto"&&!(pt.flags&528)&&!(pt.flags&1048576&&e.find(pt.types,function(_t){return!!(_t.flags&528)}))&&(pt.flags&402653316||pt.flags&1048576&&e.every(pt.types,function(_t){return!!(_t.flags&402686084)})?(wt="".concat(e.escapeSnippetText(xr),"=").concat(e.quote(Ne,zr,"$1")),rn=!0):oa=!0),oa&&(wt="".concat(e.escapeSnippetText(xr),"={$1}"),rn=!0)}if(!(wt!==void 0&&!zr.includeCompletionsWithInsertText))return(h(dr)||v(dr))&&(mt=ue(dr),Jn=!tr),{name:xr,kind:e.SymbolDisplay.getSymbolKind(na,fe,ee),kindModifiers:e.SymbolDisplay.getSymbolModifiers(na,fe),sortText:je,source:sa,hasAction:Jn?!0:void 0,isRecommended:Ce(fe,et,na)||void 0,insertText:wt,replacementSpan:Qt,sourceDisplay:ba,isSnippet:rn,isPackageJsonImport:q(dr)||void 0,isImportStatementCompletion:!!tr||void 0,data:mt}}function m(fe,je){if(e.isInJSFile(je))return!1;var Ee=106500;return!!(fe.flags&Ee)&&(e.isClassLike(je)||je.parent&&je.parent.parent&&e.isClassElement(je.parent)&&je===je.parent.name&&e.isClassLike(je.parent.parent)||je.parent&&e.isSyntaxList(je)&&e.isClassLike(je.parent))}function u(fe,je,Ee,We,ee,Ne,me,Ze){var xr=e.findAncestor(me,e.isClassLike);if(!xr)return{insertText:ee};var fr,dr=ee,et=je.getTypeChecker(),yt=me.getSourceFile(),Wr=te({removeComments:!0,module:Ee.module,target:Ee.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(Ee,e.maybeBind(fe,fe.getNewLine)))}),tr=e.codefix.createImportAdder(yt,je,We,fe),Ir;if(We.includeCompletionsWithSnippetText){fr=!0;var kr=e.factory.createExpressionStatement(e.factory.createIdentifier(""));e.setSnippetElement(kr,{kind:0,order:0}),Ir=e.factory.createBlock([kr],!0)}else Ir=e.factory.createBlock([],!0);var zr=0,gt=Ze&&F(Ze)===126,vt=[];return e.codefix.addNewNodeForMemberSymbol(Ne,xr,yt,{program:je,host:fe},We,tr,function(ut){var ht=0;gt&&(ht|=128),e.isClassElement(ut)&&et.getMemberOverrideModifierStatus(xr,ut)===1&&(ht|=16384);var xt=0;vt.length||(Ze&&(xt=g(Ze)),zr=ut.modifierFlagsCache|ht|xt),ut=e.factory.updateModifiers(ut,zr&~xt),vt.push(ut)},Ir,2,gt),vt.length&&(dr=Wr.printSnippetList(131073,e.factory.createNodeArray(vt),yt)),{insertText:dr,isSnippet:fr,importAdder:tr}}function g(fe){var je=0,Ee;return(Ee=F(fe))&&(je|=e.modifierToFlag(Ee)),e.isPropertyDeclaration(fe.parent)&&(je|=e.modifiersToFlags(fe.parent.modifiers)),je}function F(fe){if(e.isModifier(fe))return fe.kind;if(e.isIdentifier(fe)&&fe.originalKeywordKind&&e.isModifierKind(fe.originalKeywordKind))return fe.originalKeywordKind}function te(fe){var je=e.createPrinter(fe),Ee=e.createTextWriter(e.getNewLineCharacter(fe)),We=Rn(Rn({},Ee),{write:function(Ne){return Ee.write(e.escapeSnippetText(Ne))},nonEscapingWrite:Ee.write,writeLiteral:function(Ne){return Ee.writeLiteral(e.escapeSnippetText(Ne))},writeStringLiteral:function(Ne){return Ee.writeStringLiteral(e.escapeSnippetText(Ne))},writeSymbol:function(Ne,me){return Ee.writeSymbol(e.escapeSnippetText(Ne),me)},writeParameter:function(Ne){return Ee.writeParameter(e.escapeSnippetText(Ne))},writeComment:function(Ne){return Ee.writeComment(e.escapeSnippetText(Ne))},writeProperty:function(Ne){return Ee.writeProperty(e.escapeSnippetText(Ne))}});return{printSnippetList:ee};function ee(Ne,me,Ze){return We.clear(),je.writeList(Ne,me,Ze,We),We.getText()}}function ue(fe){var je=fe.fileName?void 0:e.stripQuotes(fe.moduleSymbol.name),Ee=fe.isFromPackageJson?!0:void 0;if(v(fe)){var We={exportName:fe.exportName,moduleSpecifier:fe.moduleSpecifier,ambientModuleName:je,fileName:fe.fileName,isPackageJsonImport:Ee};return We}var ee={exportName:fe.exportName,exportMapKey:fe.exportMapKey,fileName:fe.fileName,ambientModuleName:fe.fileName?void 0:e.stripQuotes(fe.moduleSymbol.name),isPackageJsonImport:fe.isFromPackageJson?!0:void 0};return ee}function X(fe,je,Ee){var We=fe.exportName==="default",ee=!!fe.isPackageJsonImport;if(k(fe)){var Ne={kind:32,exportName:fe.exportName,moduleSpecifier:fe.moduleSpecifier,symbolName:je,fileName:fe.fileName,moduleSymbol:Ee,isDefaultExport:We,isFromPackageJson:ee};return Ne}var me={kind:4,exportName:fe.exportName,exportMapKey:fe.exportMapKey,symbolName:je,fileName:fe.fileName,moduleSymbol:Ee,isDefaultExport:We,isFromPackageJson:ee};return me}function j(fe,je,Ee,We,ee,Ne,me){var Ze,xr,fr,dr=je.getSourceFile(),et=e.createTextSpanFromNode(e.findAncestor(je,e.or(e.isImportDeclaration,e.isImportEqualsDeclaration))||je,dr),yt=e.quote(dr,me,We.moduleSpecifier),Wr=We.isDefaultExport?1:We.exportName==="export="?2:0,tr=me.includeCompletionsWithSnippetText?"$1":"",Ir=e.codefix.getImportKind(dr,Wr,Ne,!0),kr=((xr=(Ze=e.tryCast(je,e.isImportDeclaration))===null||Ze===void 0?void 0:Ze.importClause)===null||xr===void 0?void 0:xr.isTypeOnly)||((fr=e.tryCast(je,e.isImportEqualsDeclaration))===null||fr===void 0?void 0:fr.isTypeOnly),zr=cn(je,Ee),gt=kr?" ".concat(e.tokenToString(151)," "):" ",vt=zr?"".concat(e.tokenToString(151)," "):"",ut=ee?";":"";switch(Ir){case 3:return{replacementSpan:et,insertText:"import".concat(gt).concat(e.escapeSnippetText(fe)).concat(tr," = require(").concat(yt,")").concat(ut)};case 1:return{replacementSpan:et,insertText:"import".concat(gt).concat(e.escapeSnippetText(fe)).concat(tr," from ").concat(yt).concat(ut)};case 2:return{replacementSpan:et,insertText:"import".concat(gt,"* as ").concat(e.escapeSnippetText(fe)," from ").concat(yt).concat(ut)};case 0:return{replacementSpan:et,insertText:"import".concat(gt,"{ ").concat(vt).concat(e.escapeSnippetText(fe)).concat(tr," } from ").concat(yt).concat(ut)}}}function Se(fe,je,Ee){return/^\d+$/.test(Ee)?Ee:e.quote(fe,je,Ee)}function Ce(fe,je,Ee){return fe===je||!!(fe.flags&1048576)&&Ee.getExportSymbolOfSymbol(fe)===je}function O(fe){if(h(fe))return e.stripQuotes(fe.moduleSymbol.name);if(v(fe))return fe.moduleSpecifier;if((fe==null?void 0:fe.kind)===1)return a.ThisProperty}function Q(fe,je,Ee,We,ee,Ne,me,Ze,xr,fr,dr,et,yt,Wr,tr,Ir,kr,zr,gt,vt,ut,ht,xt){for(var wt,Qt=e.timestamp(),mt=zn(ee),rn=e.probablyUsesSemicolons(Ne),sa=Ze.getTypeChecker(),ba=new e.Map,Jn=0;Jn<fe.length;Jn++){var na=fe[Jn],Wn=vt==null?void 0:vt[Jn],en=Ye(na,xr,Wn,dr,!!Ir);if(!(!en||ba.get(en.name)||dr===1&&ut&&!pt(na,ut))){var St=en.name,Ut=en.needsConvertPropertyAccess,qt=(wt=ut==null?void 0:ut[e.getSymbolId(na)])!==null&&wt!==void 0?wt:11,Pn=(sr(na,sa)?8+qt:qt).toString(),dn=C(na,Pn,Ee,We,ee,Ne,me,Ze,St,Ut,Wn,gt,tr,kr,zr,rn,yt,et,dr,ht,xt);if(!!dn){var oa=!Wn&&!(na.parent===void 0&&!e.some(na.declarations,function(_t){return _t.getSourceFile()===ee.getSourceFile()}));ba.set(St,oa),je.push(dn)}}}return fr("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-Qt)),{has:function(_t){return ba.has(_t)},add:function(_t){return ba.set(_t,!0)}};function pt(_t,Pt){if(!e.isSourceFile(ee)){if(e.isExportAssignment(ee.parent))return!0;if(mt&&_t.valueDeclaration===mt)return!1;var It=e.skipAlias(_t,sa);if(!!Ne.externalModuleIndicator&&!yt.allowUmdGlobalAccess&&Pt[e.getSymbolId(_t)]===15&&(Pt[e.getSymbolId(It)]===16||Pt[e.getSymbolId(It)]===11))return!1;if(_t=It,e.isInRightSideOfInternalImportEqualsDeclaration(ee))return!!(_t.flags&1920);if(Wr)return Rr(_t,sa)}return!!(e.getCombinedLocalAndExportSymbolFlags(_t)&111551)}}n.getCompletionEntriesFromSymbols=Q;function V(fe){var je=z(fe);if(je.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:je}}function z(fe){for(var je=[],Ee=new e.Map,We=fe;We&&!e.isFunctionLike(We);){if(e.isLabeledStatement(We)){var ee=We.label.text;Ee.has(ee)||(Ee.set(ee,!0),je.push({name:ee,kindModifiers:"",kind:"label",sortText:f.LocationPriority}))}We=We.parent}return je}function Te(fe,je,Ee,We,ee,Ne,me){if(ee.data){var Ze=Ae(ee.name,ee.data,fe,Ne);if(Ze){var xr=De(We,Ee),fr=xr.contextToken,dr=xr.previousToken;return{type:"symbol",symbol:Ze.symbol,location:e.getTouchingPropertyName(Ee,We),previousToken:dr,contextToken:fr,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:Ze.origin}}}var et=fe.getCompilerOptions(),yt=Xe(fe,je,Ee,U(Ee,et),We,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},ee,Ne);if(!yt)return{type:"none"};if(yt.kind!==0)return{type:"request",request:yt};var Wr=yt.symbols,tr=yt.literals,Ir=yt.location,kr=yt.completionKind,zr=yt.symbolToOriginInfoMap,gt=yt.contextToken,vt=yt.previousToken,ut=yt.isJsxInitializer,ht=yt.isTypeOnlyLocation,xt=e.find(tr,function(wt){return y(Ee,me,wt)===ee.name});return xt!==void 0?{type:"literal",literal:xt}:e.firstDefined(Wr,function(wt,Qt){var mt=zr[Qt],rn=Ye(wt,e.getEmitScriptTarget(et),mt,kr,yt.isJsxIdentifierExpected);return rn&&rn.name===ee.name&&(ee.source===a.ClassMemberSnippet&&wt.flags&106500||O(mt)===ee.source)?{type:"symbol",symbol:wt,location:Ir,origin:mt,contextToken:gt,previousToken:vt,isJsxInitializer:ut,isTypeOnlyLocation:ht}:void 0})||{type:"none"}}function ge(fe,je,Ee,We,ee,Ne,me,Ze,xr){var fr=fe.getTypeChecker(),dr=fe.getCompilerOptions(),et=ee.name,yt=ee.source,Wr=ee.data,tr=e.findPrecedingToken(We,Ee);if(e.isInString(Ee,We,tr))return n.StringCompletions.getStringLiteralCompletionDetails(et,Ee,We,tr,fr,dr,Ne,xr,Ze);var Ir=Te(fe,je,Ee,We,ee,Ne,Ze);switch(Ir.type){case"request":{var kr=Ir.request;switch(kr.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(et);case 2:return e.JsDoc.getJSDocTagCompletionDetails(et);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(et);case 4:return e.some(kr.keywordCompletions,function(rn){return rn.name===et})?ke(et,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(kr)}}case"symbol":{var zr=Ir.symbol,gt=Ir.location,vt=Ir.contextToken,ut=Ir.origin,ht=Ir.previousToken,xt=Ge(et,gt,vt,ut,zr,fe,Ne,dr,Ee,We,ht,me,Ze,Wr,yt),wt=xt.codeActions,Qt=xt.sourceDisplay;return Me(zr,fr,Ee,gt,xr,wt,Qt)}case"literal":{var mt=Ir.literal;return ke(y(Ee,Ze,mt),"string",typeof mt=="string"?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral)}case"none":return Er().some(function(rn){return rn.name===et})?ke(et,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(Ir)}}n.getCompletionEntryDetails=ge;function ke(fe,je,Ee){return Ie(fe,"",je,[e.displayPart(fe,Ee)])}function Me(fe,je,Ee,We,ee,Ne,me){var Ze=je.runWithCancellationToken(ee,function(yt){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(yt,fe,Ee,We,We,7)}),xr=Ze.displayParts,fr=Ze.documentation,dr=Ze.symbolKind,et=Ze.tags;return Ie(fe.name,e.SymbolDisplay.getSymbolModifiers(je,fe),dr,xr,fr,et,Ne,me)}n.createCompletionDetailsForSymbol=Me;function Ie(fe,je,Ee,We,ee,Ne,me,Ze){return{name:fe,kindModifiers:je,kind:Ee,displayParts:We,documentation:ee,tags:Ne,codeActions:me,source:Ze,sourceDisplay:Ze}}n.createCompletionDetails=Ie;function Ge(fe,je,Ee,We,ee,Ne,me,Ze,xr,fr,dr,et,yt,Wr,tr){if(Wr!=null&&Wr.moduleSpecifier){var Ir=De(fr,xr),kr=Ir.contextToken,zr=Ir.previousToken;if(zr&&Rt(kr||zr).replacementNode)return{codeActions:void 0,sourceDisplay:[e.textPart(Wr.moduleSpecifier)]}}if(tr===a.ClassMemberSnippet){var gt=u(me,Ne,Ze,yt,fe,ee,je,Ee).importAdder;if(gt){var vt=e.textChanges.ChangeTracker.with({host:me,formatContext:et,preferences:yt},gt.writeFixes);return{sourceDisplay:void 0,codeActions:[{changes:vt,description:e.diagnosticToString([e.Diagnostics.Includes_imports_of_types_referenced_by_0,fe])}]}}}if(!We||!(h(We)||v(We)))return{codeActions:void 0,sourceDisplay:void 0};var ut=We.isFromPackageJson?me.getPackageJsonAutoImportProvider().getTypeChecker():Ne.getTypeChecker(),ht=We.moduleSymbol,xt=ut.getMergedSymbol(e.skipAlias(ee.exportSymbol||ee,ut)),wt=e.codefix.getImportCompletionAction(xt,ht,xr,e.getNameForExportedSymbol(ee,e.getEmitScriptTarget(Ze)),me,Ne,et,dr&&e.isIdentifier(dr)?dr.getStart(xr):fr,yt),Qt=wt.moduleSpecifier,mt=wt.codeAction;return e.Debug.assert(!(Wr!=null&&Wr.moduleSpecifier)||Qt===Wr.moduleSpecifier),{sourceDisplay:[e.textPart(Qt)],codeActions:[mt]}}function he(fe,je,Ee,We,ee,Ne,me){var Ze=Te(fe,je,Ee,We,ee,Ne,me);return Ze.type==="symbol"?Ze.symbol:void 0}n.getCompletionEntrySymbol=he;var ve;(function(fe){fe[fe.Data=0]="Data",fe[fe.JsDocTagName=1]="JsDocTagName",fe[fe.JsDocTag=2]="JsDocTag",fe[fe.JsDocParameterName=3]="JsDocParameterName",fe[fe.Keywords=4]="Keywords"})(ve||(ve={})),function(fe){fe[fe.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",fe[fe.Global=1]="Global",fe[fe.PropertyAccess=2]="PropertyAccess",fe[fe.MemberLike=3]="MemberLike",fe[fe.String=4]="String",fe[fe.None=5]="None"}(n.CompletionKind||(n.CompletionKind={}));function Ve(fe,je,Ee){return e.firstDefined(je&&(je.isUnion()?je.types:[je]),function(We){var ee=We&&We.symbol;return ee&&ee.flags&424&&!e.isAbstractConstructorSymbol(ee)?Le(ee,fe,Ee):void 0})}function _e(fe,je,Ee,We){var ee=fe.parent;switch(fe.kind){case 79:return e.getContextualTypeFromParent(fe,We);case 63:switch(ee.kind){case 253:return We.getContextualType(ee.initializer);case 220:return We.getTypeAtLocation(ee.left);case 284:return We.getContextualTypeForJsxAttribute(ee);default:return}case 103:return We.getContextualType(ee);case 82:return e.getSwitchedType(e.cast(ee,e.isCaseClause),We);case 18:return e.isJsxExpression(ee)&&!e.isJsxElement(ee.parent)&&!e.isJsxFragment(ee.parent)?We.getContextualTypeForJsxAttribute(ee.parent):void 0;default:var Ne=e.SignatureHelp.getArgumentInfoForCompletions(fe,je,Ee);return Ne?We.getContextualTypeForArgumentAtIndex(Ne.invocation,Ne.argumentIndex+(fe.kind===27?1:0)):e.isEqualityOperatorKind(fe.kind)&&e.isBinaryExpression(ee)&&e.isEqualityOperatorKind(ee.operatorToken.kind)?We.getTypeAtLocation(ee.left):We.getContextualType(fe)}}function Le(fe,je,Ee){var We=Ee.getAccessibleSymbolChain(fe,je,67108863,!1);return We?e.first(We):fe.parent&&(qe(fe.parent)?fe:Le(fe.parent,je,Ee))}function qe(fe){var je;return!!(!((je=fe.declarations)===null||je===void 0)&&je.some(function(Ee){return Ee.kind===303}))}function Xe(fe,je,Ee,We,ee,Ne,me,Ze,xr){var fr=fe.getTypeChecker(),dr=e.timestamp(),et=e.getTokenAtPosition(Ee,ee);je("getCompletionData: Get current token: "+(e.timestamp()-dr)),dr=e.timestamp();var yt=e.isInComment(Ee,ee,et);je("getCompletionData: Is inside comment: "+(e.timestamp()-dr));var Wr=!1,tr=!1;if(yt){if(e.hasDocComment(Ee,ee)){if(Ee.text.charCodeAt(ee-1)===64)return{kind:1};var Ir=e.getLineStartPositionForPosition(ee,Ee);if(!/[^\*|\s(/)]/.test(Ee.text.substring(Ir,ee)))return{kind:2}}var kr=vr(et,ee);if(kr){if(kr.tagName.pos<=ee&&ee<=kr.tagName.end)return{kind:1};if(ro(kr)&&kr.typeExpression&&kr.typeExpression.kind===307&&(et=e.getTokenAtPosition(Ee,ee),(!et||!e.isDeclarationName(et)&&(et.parent.kind!==345||et.parent.name!==et))&&(Wr=cs(kr.typeExpression))),!Wr&&e.isJSDocParameterTag(kr)&&(e.nodeIsMissing(kr.name)||kr.name.pos<=ee&&ee<=kr.name.end))return{kind:3,tag:kr}}if(!Wr){je("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}dr=e.timestamp();var zr=!Wr&&e.isSourceFileJS(Ee),gt=De(ee,Ee),vt=gt.previousToken,ut=gt.contextToken;je("getCompletionData: Get previous token: "+(e.timestamp()-dr));var ht=et,xt,wt=!1,Qt=!1,mt=!1,rn=!1,sa=!1,ba=!1,Jn,na=e.getTouchingPropertyName(Ee,ee),Wn=0,en=!1;if(ut){var St=Rt(ut);if(en=St.isNewIdentifierLocation,St.keywordCompletion){if(St.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[w(St.keywordCompletion)],isNewIdentifierLocation:en};Wn=ne(St.keywordCompletion)}if(St.replacementNode&&Ne.includeCompletionsForImportStatements&&Ne.includeCompletionsWithInsertText&&(Jn=St.replacementNode),!Jn&&Fo(ut))return je("Returning an empty list because completion was requested in an invalid position."),Wn?Z(Wn,zr,Es()):void 0;var Ut=ut.parent;if(ut.kind===24||ut.kind===28)switch(wt=ut.kind===24,Qt=ut.kind===28,Ut.kind){case 205:xt=Ut,ht=xt.expression;var qt=e.getLeftmostAccessExpression(xt);if(e.nodeIsMissing(qt)||(e.isCallExpression(ht)||e.isFunctionLike(ht))&&ht.end===ut.pos&&ht.getChildCount(Ee)&&e.last(ht.getChildren(Ee)).kind!==21)return;break;case 160:ht=Ut.left;break;case 260:ht=Ut.name;break;case 199:ht=Ut;break;case 230:ht=Ut.getFirstToken(Ee),e.Debug.assert(ht.kind===100||ht.kind===103);break;default:return}else if(!Jn&&Ee.languageVariant===1){if(Ut&&Ut.kind===205&&(ut=Ut,Ut=Ut.parent),et.parent===na)switch(et.kind){case 31:(et.parent.kind===277||et.parent.kind===279)&&(na=et);break;case 43:et.parent.kind===278&&(na=et);break}switch(Ut.kind){case 280:ut.kind===43&&(rn=!0,na=ut);break;case 220:if(!Ar(Ut))break;case 278:case 277:case 279:ba=!0,ut.kind===29&&(mt=!0,na=ut);break;case 287:case 286:vt.kind===19&&et.kind===31&&(ba=!0);break;case 284:if(Ut.initializer===vt&&vt.end<ee){ba=!0;break}switch(vt.kind){case 63:sa=!0;break;case 79:ba=!0,Ut!==vt.parent&&!Ut.initializer&&e.findChildOfKind(Ut,63,Ee)&&(sa=vt)}break}}}var Pn=e.timestamp(),dn=5,oa=!1,pt=!1,_t=[],Pt=[],It=[],rt=new e.Map,Cn=co(),Qn=e.memoizeOne(function(bt){return e.createModuleSpecifierResolutionHost(bt?Ze.getPackageJsonAutoImportProvider():fe,Ze)});if(wt||Qt)Ka();else if(mt)_t=fr.getJsxIntrinsicTagNamesAt(na),e.Debug.assertEachIsDefined(_t,"getJsxIntrinsicTagNames() should all be defined"),Hi(),dn=1,Wn=0;else if(rn){var Ra=ut.parent.parent.openingElement.tagName,Ci=fr.getSymbolAtLocation(Ra);Ci&&(_t=[Ci]),dn=1,Wn=0}else if(!Hi())return Wn?Z(Wn,zr,en):void 0;je("getCompletionData: Semantic work: "+(e.timestamp()-Pn));var _i=vt&&_e(vt,ee,Ee,fr),va=e.mapDefined(_i&&(_i.isUnion()?_i.types:[_i]),function(bt){return bt.isLiteral()&&!(bt.flags&1024)?bt.value:void 0}),yi=vt&&_i&&Ve(vt,_i,fr);return{kind:0,symbols:_t,completionKind:dn,isInSnippetScope:tr,propertyAccessToConvert:xt,isNewIdentifierLocation:en,location:na,keywordFilters:Wn,literals:va,symbolToOriginInfoMap:Pt,recommendedCompletion:yi,previousToken:vt,contextToken:ut,isJsxInitializer:sa,insideJsDocTagTypeExpression:Wr,symbolToSortTextIdMap:It,isTypeOnlyLocation:Cn,isJsxIdentifierExpected:ba,isRightOfOpenTag:mt,importCompletionNode:Jn,hasUnresolvedAutoImports:pt};function ro(bt){switch(bt.kind){case 338:case 345:case 339:case 341:case 343:return!0;default:return!1}}function Ka(){dn=2;var bt=e.isLiteralImportTypeNode(ht),Mn=Wr||bt&&!ht.isTypeOf||e.isPartOfTypeNode(ht.parent)||e.isPossiblyTypeArgumentPosition(ut,Ee,fr),da=e.isInRightSideOfInternalImportEqualsDeclaration(ht);if(e.isEntityName(ht)||bt||e.isPropertyAccessExpression(ht)){var ei=e.isModuleDeclaration(ht.parent);ei&&(en=!0);var bi=fr.getSymbolAtLocation(ht);if(bi&&(bi=e.skipAlias(bi,fr),bi.flags&1920)){var xi=fr.getExportsOfModule(bi);e.Debug.assertEachIsDefined(xi,"getExportsOfModule() should all be defined");for(var ka=function(ft){return fr.isValidPropertyAccess(bt?ht:ht.parent,ft.name)},mi=function(ft){return Rr(ft,fr)},Xi=ei?function(ft){var Zt;return!!(ft.flags&1920)&&!(!((Zt=ft.declarations)===null||Zt===void 0)&&Zt.every(function(Re){return Re.parent===ht.parent}))}:da?function(ft){return mi(ft)||ka(ft)}:Mn?mi:ka,Gi=0,Ro=xi;Gi<Ro.length;Gi++){var ko=Ro[Gi];Xi(ko)&&_t.push(ko)}if(!Mn&&bi.declarations&&bi.declarations.some(function(ft){return ft.kind!==303&&ft.kind!==260&&ft.kind!==259})){var es=fr.getTypeOfSymbolAtLocation(bi,ht).getNonOptionalType(),as=!1;if(es.isNullableType()){var pe=wt&&!Qt&&Ne.includeAutomaticOptionalChainCompletions!==!1;(pe||Qt)&&(es=es.getNonNullableType(),pe&&(as=!0))}Pi(es,!!(ht.flags&32768),as)}return}}if(!Mn){var wr=e.getThisContainer(ht,!1);!e.isSourceFile(wr)&&wr.parent&&fr.getTypeAtLocation(wr);var es=fr.getTypeAtLocation(ht).getNonOptionalType(),as=!1;if(es.isNullableType()){var pe=wt&&!Qt&&Ne.includeAutomaticOptionalChainCompletions!==!1;(pe||Qt)&&(es=es.getNonNullableType(),pe&&(as=!0))}Pi(es,!!(ht.flags&32768),as)}}function Pi(bt,Mn,da){en=!!bt.getStringIndexType(),Qt&&e.some(bt.getCallSignatures())&&(en=!0);var ei=ht.kind===199?ht:ht.parent;if(We)_t.push.apply(_t,e.filter(Dr(bt,fr),function(Ro){return fr.isValidPropertyAccessForCompletions(ei,bt,Ro)}));else for(var bi=0,xi=bt.getApparentProperties();bi<xi.length;bi++){var ka=xi[bi];fr.isValidPropertyAccessForCompletions(ei,bt,ka)&&io(ka,!1,da)}if(Mn&&Ne.includeCompletionsWithInsertText){var mi=fr.getPromisedTypeOfPromise(bt);if(mi)for(var Xi=0,Gi=mi.getApparentProperties();Xi<Gi.length;Xi++){var ka=Gi[Xi];fr.isValidPropertyAccessForCompletions(ei,mi,ka)&&io(ka,!0,da)}}}function io(bt,Mn,da){var ei,bi=e.firstDefined(bt.declarations,function(ft){return e.tryCast(e.getNameOfDeclaration(ft),e.isComputedPropertyName)});if(bi){var xi=ji(bi.expression),ka=xi&&fr.getSymbolAtLocation(xi),mi=ka&&Le(ka,ut,fr);if(mi&&e.addToSeen(rt,e.getSymbolId(mi))){var Xi=_t.length;_t.push(mi);var Gi=mi.parent;if(!Gi||!e.isExternalModuleSymbol(Gi)||fr.tryGetMemberInModuleExportsAndProperties(mi.name,Gi)!==mi)Pt[Xi]={kind:wr(2)};else{var Ro=e.isExternalModuleNameRelative(e.stripQuotes(Gi.name))?(ei=e.getSourceFileOfModule(Gi))===null||ei===void 0?void 0:ei.fileName:void 0,ko=(e.codefix.getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Ro,isFromPackageJson:!1,moduleSymbol:Gi,symbol:mi,targetFlags:e.skipAlias(mi,fr).flags}],Ee,fe,Ze,Ne)||{}).moduleSpecifier;if(ko){var es={kind:wr(6),moduleSymbol:Gi,isDefaultExport:!1,symbolName:mi.name,exportName:mi.name,fileName:Ro,moduleSpecifier:ko};Pt[Xi]=es}}}else Ne.includeCompletionsWithInsertText&&(pe(bt),as(bt),_t.push(bt))}else pe(bt),as(bt),_t.push(bt);function as(ft){lt(ft)&&(It[e.getSymbolId(ft)]=10)}function pe(ft){Ne.includeCompletionsWithInsertText&&(Mn&&e.addToSeen(rt,e.getSymbolId(ft))?Pt[_t.length]={kind:wr(8)}:da&&(Pt[_t.length]={kind:16}))}function wr(ft){return da?ft|16:ft}}function ji(bt){return e.isIdentifier(bt)?bt:e.isPropertyAccessExpression(bt)?ji(bt.expression):void 0}function Hi(){var bt=yr()||dt()||lo()||tn()||Un()||to()||Oe()||No()||(Lo(),1);return bt===1}function to(){return se(ut)?(dn=5,en=!0,Wn=4,1):0}function No(){var bt=er(ut),Mn=bt&&fr.getContextualType(bt.attributes);if(!Mn)return 0;var da=bt&&fr.getContextualType(bt.attributes,4);return _t=e.concatenate(_t,So(de(Mn,da,bt.attributes,fr),bt.attributes.properties)),Di(),dn=3,en=!1,1}function lo(){return Jn?(en=!0,Zi(),1):0}function Lo(){Wn=Be(ut)?5:1,dn=1,en=Es(),vt!==ut&&e.Debug.assert(!!vt,"Expected 'contextToken' to be defined when different from 'previousToken'.");var bt=vt!==ut?vt.getStart():ee,Mn=Mo(ut,bt,Ee)||Ee;tr=Yo(Mn);var da=(Cn?0:111551)|788968|1920|2097152;_t=e.concatenate(_t,fr.getSymbolsInScope(Mn,da)),e.Debug.assertEachIsDefined(_t,"getSymbolsInScope() should all be defined");for(var ei=0,bi=_t;ei<bi.length;ei++){var xi=bi[ei];!fr.isArgumentsSymbol(xi)&&!e.some(xi.declarations,function(Gi){return Gi.getSourceFile()===Ee})&&(It[e.getSymbolId(xi)]=15)}if(Ne.includeCompletionsWithInsertText&&Mn.kind!==303){var ka=fr.tryGetThisTypeAt(Mn,!1);if(ka&&!Yr(ka,Ee,fr))for(var mi=0,Xi=Dr(ka,fr);mi<Xi.length;mi++){var xi=Xi[mi];Pt[_t.length]={kind:1},_t.push(xi),It[e.getSymbolId(xi)]=14}}Zi(),Cn&&(Wn=ut&&e.isAssertionExpression(ut.parent)?6:7)}function Ha(){return Jn?!0:oa||!Ne.includeCompletionsForModuleExports?!1:Ee.externalModuleIndicator||Ee.commonJsModuleIndicator||e.compilerOptionsIndicateEsModules(fe.getCompilerOptions())?!0:e.programContainsModules(fe)}function Yo(bt){switch(bt.kind){case 303:case 222:case 287:case 234:return!0;default:return e.isStatement(bt)}}function co(){return Wr||!!Jn&&e.isTypeOnlyImportOrExportDeclaration(na.parent)||!za(ut)&&(e.isPossiblyTypeArgumentPosition(ut,Ee,fr)||e.isPartOfTypeNode(na)||hi(ut))}function za(bt){return bt&&(bt.kind===112&&(bt.parent.kind===180||e.isTypeOfExpression(bt.parent))||bt.kind===128&&bt.parent.kind===176)}function hi(bt){if(bt){var Mn=bt.parent.kind;switch(bt.kind){case 58:return Mn===166||Mn===165||Mn===163||Mn===253||e.isFunctionLikeKind(Mn);case 63:return Mn===258;case 127:return Mn===228;case 29:return Mn===177||Mn===210;case 94:return Mn===162}}return!1}function Zi(){var bt,Mn;if(!Ha()||(e.Debug.assert(!(me!=null&&me.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),me&&!me.source))return;var da=vt===ut&&Jn&&cn(Jn,ut),ei=da?"":vt&&e.isIdentifier(vt)?vt.text.toLowerCase():"",bi=(bt=Ze.getModuleSpecifierCache)===null||bt===void 0?void 0:bt.call(Ze),xi=e.getExportInfoMap(Ee,Ze,fe,xr),ka=(Mn=Ze.getPackageJsonAutoImportProvider)===null||Mn===void 0?void 0:Mn.call(Ze),mi=me?void 0:e.createPackageJsonImportFilter(Ee,Ne,Ze);B("collectAutoImports",Ze,fe,Ee,Ne,!!Jn,function(Gi){xi.forEach(Ee.path,function(Ro,ko,es,as){if(!!e.isIdentifierText(ko,e.getEmitScriptTarget(Ze.getCompilationSettings()))&&!(!me&&e.isStringANonContextualKeyword(ko))&&!(!Cn&&!Jn&&!(Ro[0].targetFlags&111551))&&!(Cn&&!(Ro[0].targetFlags&790504))){var pe=me&&e.some(Ro,function(gi){return me.source===e.stripQuotes(gi.moduleSymbol.name)});if(pe||!me&&ye(ko,ei)){var wr=e.find(Ro,Xi);if(!wr)return;var ft=Gi.tryResolve(Ro,es)||{},Zt=ft.exportInfo,Re=Zt===void 0?wr:Zt,Qr=ft.moduleSpecifier,vn=Re.exportKind===1,Xn=vn&&e.getLocalSymbolForExportDefault(Re.symbol)||Re.symbol;Po(Xn,{kind:Qr?32:4,moduleSpecifier:Qr,symbolName:ko,exportMapKey:as,exportName:Re.exportKind===2?"export=":Re.symbol.name,fileName:Re.moduleFileName,isDefaultExport:vn,moduleSymbol:Re.moduleSymbol,isFromPackageJson:Re.isFromPackageJson})}}}),pt=Gi.resolutionLimitExceeded()});function Xi(Gi){var Ro=e.tryCast(Gi.moduleSymbol.valueDeclaration,e.isSourceFile);if(!Ro){var ko=e.stripQuotes(Gi.moduleSymbol.name);return e.JsTyping.nodeCoreModules.has(ko)&&e.startsWith(ko,"node:")!==e.shouldUseUriStyleNodeCoreModules(Ee,fe)?!1:mi?mi.allowsImportingAmbientModule(Gi.moduleSymbol,Qn(Gi.isFromPackageJson)):!0}return e.isImportableFile(Gi.isFromPackageJson?ka:fe,Ee,Ro,Ne,mi,Qn(Gi.isFromPackageJson),bi)}}function Po(bt,Mn){var da=e.getSymbolId(bt);It[da]!==15&&(Pt[_t.length]=Mn,It[da]=Jn?11:16,_t.push(bt))}function Mo(bt,Mn,da){for(var ei=bt;ei&&!e.positionBelongsToNode(ei,Mn,da);)ei=ei.parent;return ei}function Fo(bt){var Mn=e.timestamp(),da=Cs(bt)||hr(bt)||Jt(bt)||zo(bt)||e.isBigIntLiteral(bt);return je("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-Mn)),da}function zo(bt){if(bt.kind===11)return!0;if(bt.kind===31&&bt.parent){if(bt.parent.kind===279)return na.parent.kind!==279;if(bt.parent.kind===280||bt.parent.kind===278)return!!bt.parent.parent&&bt.parent.parent.kind===277}return!1}function Es(){if(ut){var bt=ut.parent.kind,Mn=ur(ut);switch(Mn){case 27:return bt===207||bt===170||bt===208||bt===203||bt===220||bt===178||bt===204;case 20:return bt===207||bt===170||bt===208||bt===211||bt===190;case 22:return bt===203||bt===175||bt===161;case 141:case 142:case 100:return!0;case 24:return bt===260;case 18:return bt===256||bt===204;case 63:return bt===253||bt===220;case 15:return bt===222;case 16:return bt===232;case 131:return bt===168||bt===295;case 41:return bt===168}if(Pe(Mn))return!0}return!1}function Cs(bt){return(e.isRegularExpressionLiteral(bt)||e.isStringTextContainingNode(bt))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(bt)),ee)||ee===bt.end&&(!!bt.isUnterminated||e.isRegularExpressionLiteral(bt)))}function yr(){var bt=He(ut);if(!bt)return 0;var Mn=e.isIntersectionTypeNode(bt.parent)?bt.parent:void 0,da=Mn||bt,ei=pr(da,fr);if(!ei)return 0;var bi=fr.getTypeFromTypeNode(da),xi=Dr(ei,fr),ka=Dr(bi,fr),mi=new e.Set;return ka.forEach(function(Xi){return mi.add(Xi.escapedName)}),_t=e.concatenate(_t,e.filter(xi,function(Xi){return!mi.has(Xi.escapedName)})),dn=0,en=!0,1}function dt(){var bt=oe(ut);if(!bt)return 0;dn=0;var Mn,da;if(bt.kind===204){var ei=tt(bt,fr);if(ei===void 0)return bt.flags&16777216?2:(oa=!0,0);var bi=fr.getContextualType(bt,4),xi=(bi||ei).getStringIndexType(),ka=(bi||ei).getNumberIndexType();if(en=!!xi||!!ka,Mn=de(ei,bi,bt,fr),da=bt.properties,Mn.length===0&&!ka)return oa=!0,0}else{e.Debug.assert(bt.kind===200),en=!1;var mi=e.getRootDeclaration(bt.parent);if(!e.isVariableLike(mi))return e.Debug.fail("Root declaration is not variable-like.");var Xi=e.hasInitializer(mi)||e.hasType(mi)||mi.parent.parent.kind===243;if(!Xi&&mi.kind===163&&(e.isExpression(mi.parent)?Xi=!!fr.getContextualType(mi.parent):(mi.parent.kind===168||mi.parent.kind===172)&&(Xi=e.isExpression(mi.parent.parent)&&!!fr.getContextualType(mi.parent.parent))),Xi){var Gi=fr.getTypeAtLocation(bt);if(!Gi)return 2;Mn=fr.getPropertiesOfType(Gi).filter(function(Ro){return fr.isPropertyAccessible(bt,!1,!1,Gi,Ro)}),da=bt.elements}}return Mn&&Mn.length>0&&(_t=e.concatenate(_t,ta(Mn,e.Debug.checkDefined(da)))),Di(),1}function tn(){if(!ut)return 0;var bt=ut.kind===18||ut.kind===27?e.tryCast(ut.parent,e.isNamedImportsOrExports):e.isTypeKeywordTokenOrIdentifier(ut)?e.tryCast(ut.parent.parent,e.isNamedImportsOrExports):void 0;if(!bt)return 0;e.isTypeKeywordTokenOrIdentifier(ut)||(Wn=8);var Mn=(bt.kind===268?bt.parent.parent:bt.parent).moduleSpecifier;if(!Mn)return en=!0,bt.kind===268?2:0;var da=fr.getSymbolAtLocation(Mn);if(!da)return en=!0,2;dn=3,en=!1;var ei=fr.getExportsAndPropertiesOfModule(da),bi=new e.Set(bt.elements.filter(function(ka){return!cs(ka)}).map(function(ka){return(ka.propertyName||ka.name).escapedText})),xi=ei.filter(function(ka){return ka.escapedName!=="default"&&!bi.has(ka.escapedName)});return _t=e.concatenate(_t,xi),xi.length||(Wn=0),1}function Un(){var bt,Mn=ut&&(ut.kind===18||ut.kind===27)?e.tryCast(ut.parent,e.isNamedExports):void 0;if(!Mn)return 0;var da=e.findAncestor(Mn,e.or(e.isSourceFile,e.isModuleDeclaration));return dn=5,en=!1,(bt=da.locals)===null||bt===void 0||bt.forEach(function(ei,bi){var xi,ka;_t.push(ei),!((ka=(xi=da.symbol)===null||xi===void 0?void 0:xi.exports)===null||ka===void 0)&&ka.has(bi)&&(It[e.getSymbolId(ei)]=12)}),1}function Oe(){var bt=Fr(Ee,ut,na,ee);if(!bt)return 0;if(dn=3,en=!0,Wn=ut.kind===41?0:e.isClassLike(bt)?2:3,!e.isClassLike(bt))return 1;var Mn=ut.kind===26?ut.parent.parent:ut.parent,da=e.isClassElement(Mn)?e.getEffectiveModifierFlags(Mn):0;if(ut.kind===79&&!cs(ut))switch(ut.getText()){case"private":da=da|8;break;case"static":da=da|32;break;case"override":da=da|16384;break}if(e.isClassStaticBlockDeclaration(Mn)&&(da|=32),!(da&8)){var ei=e.isClassLike(bt)&&da&16384?e.singleElementArray(e.getEffectiveBaseTypeNode(bt)):e.getAllSuperTypeNodes(bt),bi=e.flatMap(ei,function(xi){var ka=fr.getTypeAtLocation(xi);return da&32?(ka==null?void 0:ka.symbol)&&fr.getPropertiesOfType(fr.getTypeOfSymbolAtLocation(ka.symbol,bt)):ka&&fr.getPropertiesOfType(ka)});_t=e.concatenate(_t,Ji(bi,bt.members,da))}return 1}function oe(bt){if(bt){var Mn=bt.parent;switch(bt.kind){case 18:case 27:if(e.isObjectLiteralExpression(Mn)||e.isObjectBindingPattern(Mn))return Mn;break;case 41:return e.isMethodDeclaration(Mn)?e.tryCast(Mn.parent,e.isObjectLiteralExpression):void 0;case 79:return bt.text==="async"&&e.isShorthandPropertyAssignment(bt.parent)?bt.parent.parent:void 0}}}function mr(bt){return!!bt.parent&&e.isParameter(bt.parent)&&e.isConstructorDeclaration(bt.parent.parent)&&(e.isParameterPropertyModifier(bt.kind)||e.isDeclarationName(bt))}function se(bt){if(bt){var Mn=bt.parent;switch(bt.kind){case 20:case 27:return e.isConstructorDeclaration(bt.parent)?bt.parent:void 0;default:if(mr(bt))return Mn.parent}}}function Be(bt){if(bt){var Mn,da=e.findAncestor(bt.parent,function(ei){return e.isClassLike(ei)?"quit":e.isFunctionLikeDeclaration(ei)&&Mn===ei.body?!0:(Mn=ei,!1)});return da&&da}}function er(bt){if(bt){var Mn=bt.parent;switch(bt.kind){case 31:case 30:case 43:case 79:case 205:case 285:case 284:case 286:if(Mn&&(Mn.kind===278||Mn.kind===279)){if(bt.kind===31){var da=e.findPrecedingToken(bt.pos,Ee,void 0);if(!Mn.typeArguments||da&&da.kind===43)break}return Mn}else if(Mn.kind===284)return Mn.parent.parent;break;case 10:if(Mn&&(Mn.kind===284||Mn.kind===286))return Mn.parent.parent;break;case 19:if(Mn&&Mn.kind===287&&Mn.parent&&Mn.parent.kind===284)return Mn.parent.parent.parent;if(Mn&&Mn.kind===286)return Mn.parent.parent;break}}}function hr(bt){var Mn=bt.parent,da=Mn.kind;switch(bt.kind){case 27:return da===253||Sn(bt)||da===236||da===259||Dt(da)||da===257||da===201||da===258||e.isClassLike(Mn)&&!!Mn.typeParameters&&Mn.typeParameters.end>=bt.pos;case 24:return da===201;case 58:return da===202;case 22:return da===201;case 20:return da===291||Dt(da);case 18:return da===259;case 29:return da===256||da===225||da===257||da===258||e.isFunctionLikeKind(da);case 124:return da===166&&!e.isClassLike(Mn.parent);case 25:return da===163||!!Mn.parent&&Mn.parent.kind===201;case 123:case 121:case 122:return da===163&&!e.isConstructorDeclaration(Mn.parent);case 127:return da===269||da===274||da===267;case 136:case 148:return!Jr(bt);case 79:if(da===269&&bt===Mn.name&&bt.text==="type")return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 137:return!0;case 151:return da!==269;case 41:return e.isFunctionLike(bt.parent)&&!e.isMethodDeclaration(bt.parent)}if(Pe(ur(bt))&&Jr(bt)||mr(bt)&&(!e.isIdentifier(bt)||e.isParameterPropertyModifier(ur(bt))||cs(bt)))return!1;switch(ur(bt)){case 126:case 84:case 85:case 135:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 131:return e.isPropertyDeclaration(bt.parent)}var ei=e.findAncestor(bt.parent,e.isClassLike);if(ei&&bt===vt&&qr(bt,ee))return!1;var bi=e.getAncestor(bt.parent,166);if(bi&&bt!==vt&&e.isClassLike(vt.parent.parent)&&ee<=vt.end){if(qr(bt,vt.end))return!1;if(bt.kind!==63&&(e.isInitializedProperty(bi)||e.hasType(bi)))return!0}return e.isDeclarationName(bt)&&!e.isShorthandPropertyAssignment(bt.parent)&&!e.isJsxAttribute(bt.parent)&&!(e.isClassLike(bt.parent)&&(bt!==vt||ee>vt.end))}function qr(bt,Mn){return bt.kind!==63&&(bt.kind===26||!e.positionsAreOnSameLine(bt.end,Mn,Ee))}function Dt(bt){return e.isFunctionLikeKind(bt)&&bt!==170}function Jt(bt){if(bt.kind===8){var Mn=bt.getFullText();return Mn.charAt(Mn.length-1)==="."}return!1}function Sn(bt){return bt.parent.kind===254&&!e.isPossiblyTypeArgumentPosition(bt,Ee,fr)}function ta(bt,Mn){if(Mn.length===0)return bt;for(var da=new e.Set,ei=new e.Set,bi=0,xi=Mn;bi<xi.length;bi++){var ka=xi[bi];if(!(ka.kind!==294&&ka.kind!==295&&ka.kind!==202&&ka.kind!==168&&ka.kind!==171&&ka.kind!==172&&ka.kind!==296)&&!cs(ka)){var mi=void 0;if(e.isSpreadAssignment(ka))xa(ka,da);else if(e.isBindingElement(ka)&&ka.propertyName)ka.propertyName.kind===79&&(mi=ka.propertyName.escapedText);else{var Xi=e.getNameOfDeclaration(ka);mi=Xi&&e.isPropertyNameLiteral(Xi)?e.getEscapedTextOfIdentifierOrLiteral(Xi):void 0}mi!==void 0&&ei.add(mi)}}var Gi=bt.filter(function(Ro){return!ei.has(Ro.escapedName)});return $a(da,Gi),Gi}function xa(bt,Mn){var da=bt.expression,ei=fr.getSymbolAtLocation(da),bi=ei&&fr.getTypeOfSymbolAtLocation(ei,da),xi=bi&&bi.properties;xi&&xi.forEach(function(ka){Mn.add(ka.name)})}function Di(){_t.forEach(function(bt){var Mn;if(bt.flags&16777216){var da=e.getSymbolId(bt);It[da]=(Mn=It[da])!==null&&Mn!==void 0?Mn:12}})}function $a(bt,Mn){if(bt.size!==0)for(var da=0,ei=Mn;da<ei.length;da++){var bi=ei[da];bt.has(bi.name)&&(It[e.getSymbolId(bi)]=13)}}function Ji(bt,Mn,da){for(var ei=new e.Set,bi=0,xi=Mn;bi<xi.length;bi++){var ka=xi[bi];if(!(ka.kind!==166&&ka.kind!==168&&ka.kind!==171&&ka.kind!==172)&&!cs(ka)&&!e.hasEffectiveModifier(ka,8)&&e.isStatic(ka)===!!(da&32)){var mi=e.getPropertyNameForPropertyNameNode(ka.name);mi&&ei.add(mi)}}return bt.filter(function(Xi){return!ei.has(Xi.escapedName)&&!!Xi.declarations&&!(e.getDeclarationModifierFlagsFromSymbol(Xi)&8)&&!(Xi.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(Xi.valueDeclaration))})}function So(bt,Mn){for(var da=new e.Set,ei=new e.Set,bi=0,xi=Mn;bi<xi.length;bi++){var ka=xi[bi];cs(ka)||(ka.kind===284?da.add(ka.name.escapedText):e.isJsxSpreadAttribute(ka)&&xa(ka,ei))}var mi=bt.filter(function(Xi){return!da.has(Xi.escapedName)});return $a(ei,mi),mi}function cs(bt){return bt.getStart(Ee)<=ee&&ee<=bt.getEnd()}}function De(fe,je){var Ee=e.findPrecedingToken(fe,je);if(Ee&&fe<=Ee.end&&(e.isMemberName(Ee)||e.isKeyword(Ee.kind))){var We=e.findPrecedingToken(Ee.getFullStart(),je,void 0);return{contextToken:We,previousToken:Ee}}return{contextToken:Ee,previousToken:Ee}}function Ae(fe,je,Ee,We){var ee=je.isPackageJsonImport?We.getPackageJsonAutoImportProvider():Ee,Ne=ee.getTypeChecker(),me=je.ambientModuleName?Ne.tryFindAmbientModule(je.ambientModuleName):je.fileName?Ne.getMergedSymbol(e.Debug.checkDefined(ee.getSourceFile(je.fileName)).symbol):void 0;if(!!me){var Ze=je.exportName==="export="?Ne.resolveExternalModuleSymbol(me):Ne.tryGetMemberInModuleExportsAndProperties(je.exportName,me);if(!!Ze){var xr=je.exportName==="default";return Ze=xr&&e.getLocalSymbolForExportDefault(Ze)||Ze,{symbol:Ze,origin:X(je,fe,me)}}}}function Ye(fe,je,Ee,We,ee){var Ne=A(Ee)?Ee.symbolName:fe.name;if(!(Ne===void 0||fe.flags&1536&&e.isSingleOrDoubleQuote(Ne.charCodeAt(0))||e.isKnownSymbol(fe))){var me={name:Ne,needsConvertPropertyAccess:!1};if(e.isIdentifierText(Ne,je,ee?1:0)||fe.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(fe.valueDeclaration))return me;switch(We){case 3:return;case 0:return{name:JSON.stringify(Ne),needsConvertPropertyAccess:!1};case 2:case 1:return Ne.charCodeAt(0)===32?void 0:{name:Ne,needsConvertPropertyAccess:!0};case 5:case 4:return me;default:e.Debug.assertNever(We)}}}var Lr=[],Er=e.memoize(function(){for(var fe=[],je=81;je<=159;je++)fe.push({name:e.tokenToString(je),kind:"keyword",kindModifiers:"",sortText:f.GlobalsOrKeywords});return fe});function lr(fe,je){if(!je)return Cr(fe);var Ee=fe+7+1;return Lr[Ee]||(Lr[Ee]=Cr(fe).filter(function(We){return!Or(e.stringToToken(We.name))}))}function Cr(fe){return Lr[fe]||(Lr[fe]=Er().filter(function(je){var Ee=e.stringToToken(je.name);switch(fe){case 0:return!1;case 1:return Hr(Ee)||Ee===135||Ee===141||Ee===151||Ee===142||Ee===126||e.isTypeKeyword(Ee)&&Ee!==152;case 5:return Hr(Ee);case 2:return Pe(Ee);case 3:return Ke(Ee);case 4:return e.isParameterPropertyModifier(Ee);case 6:return e.isTypeKeyword(Ee)||Ee===85;case 7:return e.isTypeKeyword(Ee);case 8:return Ee===151;default:return e.Debug.assertNever(fe)}}))}function Or(fe){switch(fe){case 126:case 130:case 157:case 133:case 135:case 92:case 156:case 117:case 137:case 118:case 139:case 140:case 141:case 142:case 143:case 146:case 147:case 158:case 121:case 122:case 123:case 144:case 149:case 150:case 151:case 153:case 154:return!0;default:return!1}}function Ke(fe){return fe===144}function Pe(fe){switch(fe){case 126:case 134:case 136:case 148:case 131:case 135:case 158:return!0;default:return e.isClassMemberModifier(fe)}}function Hr(fe){return fe===131||fe===132||fe===127||!e.isContextualKeyword(fe)&&!Pe(fe)}function ur(fe){return e.isIdentifier(fe)?fe.originalKeywordKind||0:fe.kind}function vr(fe,je){var Ee=e.findAncestor(fe,e.isJSDoc);return Ee&&Ee.tags&&(e.rangeContainsPosition(Ee,je)?e.findLast(Ee.tags,function(We){return We.pos<je}):void 0)}function de(fe,je,Ee,We){var ee=je&&je!==fe,Ne=ee&&!(je.flags&3)?We.getUnionType([fe,je]):fe,me=Fe(Ne,Ee,We);return Ne.isClass()&&$e(me)?[]:ee?e.filter(me,Ze):me;function Ze(xr){return e.some(xr.declarations,function(fr){return fr.parent!==Ee})}}n.getPropertiesForObjectExpression=de;function Fe(fe,je,Ee){return fe.isUnion()?Ee.getAllPossiblePropertiesOfTypes(e.filter(fe.types,function(We){return!(We.flags&131068||Ee.isArrayLikeType(We)||Ee.isTypeInvalidDueToUnionDiscriminant(We,je)||e.typeHasCallOrConstructSignatures(We,Ee)||We.isClass()&&$e(We.getApparentProperties()))})):fe.getApparentProperties()}function $e(fe){return e.some(fe,function(je){return!!(e.getDeclarationModifierFlagsFromSymbol(je)&24)})}function Dr(fe,je){return fe.isUnion()?e.Debug.checkEachDefined(je.getAllPossiblePropertiesOfTypes(fe.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(fe.getApparentProperties(),"getApparentProperties() should all be defined")}function Fr(fe,je,Ee,We){switch(Ee.kind){case 346:return e.tryCast(Ee.parent,e.isObjectTypeDeclaration);case 1:var ee=e.tryCast(e.lastOrUndefined(e.cast(Ee.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(ee&&!e.findChildOfKind(ee,19,fe))return ee;break;case 79:{if(e.isPropertyDeclaration(Ee.parent)&&Ee.parent.initializer===Ee)return;if(Jr(Ee))return e.findAncestor(Ee,e.isObjectTypeDeclaration)}}if(!!je){if(Ee.kind===134||e.isIdentifier(je)&&e.isPropertyDeclaration(je.parent)&&e.isClassLike(Ee))return e.findAncestor(je,e.isClassLike);switch(je.kind){case 63:return;case 26:case 19:return Jr(Ee)&&Ee.parent.name===Ee?Ee.parent.parent:e.tryCast(Ee,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(je.parent,e.isObjectTypeDeclaration);default:if(!Jr(je))return e.getLineAndCharacterOfPosition(fe,je.getEnd()).line!==e.getLineAndCharacterOfPosition(fe,We).line&&e.isObjectTypeDeclaration(Ee)?Ee:void 0;var Ne=e.isClassLike(je.parent.parent)?Pe:Ke;return Ne(je.kind)||je.kind===41||e.isIdentifier(je)&&Ne(e.stringToToken(je.text))?je.parent.parent:void 0}}}function He(fe){if(!!fe){var je=fe.parent;switch(fe.kind){case 18:if(e.isTypeLiteralNode(je))return je;break;case 26:case 27:case 79:if(je.kind===165&&e.isTypeLiteralNode(je.parent))return je.parent;break}}}function pr(fe,je){if(!!fe){if(e.isTypeNode(fe)&&e.isTypeReferenceType(fe.parent))return je.getTypeArgumentConstraint(fe);var Ee=pr(fe.parent,je);if(!!Ee)switch(fe.kind){case 165:return je.getTypeOfPropertyOfContextualType(Ee,fe.symbol.escapedName);case 187:case 181:case 186:return Ee}}}function Jr(fe){return fe.parent&&e.isClassOrTypeElement(fe.parent)&&e.isObjectTypeDeclaration(fe.parent.parent)}function ze(fe,je,Ee,We){switch(je){case".":case"@":return!0;case'"':case"'":case"`":return!!Ee&&e.isStringLiteralOrTemplate(Ee)&&We===Ee.getStart(fe)+1;case"#":return!!Ee&&e.isPrivateIdentifier(Ee)&&!!e.getContainingClass(Ee);case"<":return!!Ee&&Ee.kind===29&&(!e.isBinaryExpression(Ee.parent)||Ar(Ee.parent));case"/":return!!Ee&&(e.isStringLiteralLike(Ee)?!!e.tryGetImportFromModuleSpecifier(Ee):Ee.kind===43&&e.isJsxClosingElement(Ee.parent));case" ":return!!Ee&&e.isImportKeyword(Ee)&&Ee.parent.kind===303;default:return e.Debug.assertNever(je)}}function Ar(fe){var je=fe.left;return e.nodeIsMissing(je)}function Yr(fe,je,Ee){var We=Ee.resolveName("self",void 0,111551,!1);if(We&&Ee.getTypeOfSymbolAtLocation(We,je)===fe)return!0;var ee=Ee.resolveName("global",void 0,111551,!1);if(ee&&Ee.getTypeOfSymbolAtLocation(ee,je)===fe)return!0;var Ne=Ee.resolveName("globalThis",void 0,111551,!1);return!!(Ne&&Ee.getTypeOfSymbolAtLocation(Ne,je)===fe)}function lt(fe){return!!(fe.valueDeclaration&&e.getEffectiveModifierFlags(fe.valueDeclaration)&32&&e.isClassLike(fe.valueDeclaration.parent))}function tt(fe,je){var Ee=je.getContextualType(fe);if(Ee)return Ee;if(e.isBinaryExpression(fe.parent)&&fe.parent.operatorToken.kind===63&&fe===fe.parent.left)return je.getTypeAtLocation(fe.parent)}function Rt(fe){var je,Ee=!1,We=ee();return{isKeywordOnlyCompletion:Ee,keywordCompletion:je,isNewIdentifierLocation:!!(We||je===151),replacementNode:We&&e.rangeIsOnSingleLine(We,We.getSourceFile())?We:void 0};function ee(){var Ne=fe.parent;if(e.isImportEqualsDeclaration(Ne))return je=fe.kind===151?void 0:151,In(Ne.moduleReference)?Ne:void 0;if(cn(Ne,fe)&&bn(Ne.parent))return Ne;if(e.isNamedImports(Ne)||e.isNamespaceImport(Ne)){if(!Ne.parent.isTypeOnly&&(fe.kind===18||fe.kind===100||fe.kind===27)&&(je=151),bn(Ne))if(fe.kind===19||fe.kind===79)Ee=!0,je=155;else return Ne.parent.parent;return}if(e.isImportKeyword(fe)&&e.isSourceFile(Ne))return je=151,fe;if(e.isImportKeyword(fe)&&e.isImportDeclaration(Ne))return je=151,In(Ne.moduleSpecifier)?Ne:void 0}}function cn(fe,je){return e.isImportSpecifier(fe)&&(fe.isTypeOnly||je===fe.name&&e.isTypeKeywordTokenOrIdentifier(je))}function bn(fe){return In(fe.parent.parent.moduleSpecifier)&&(e.isNamespaceImport(fe)||fe.elements.length<2)&&!fe.parent.name}function In(fe){var je;return e.nodeIsMissing(fe)?!0:!(!((je=e.tryCast(e.isExternalModuleReference(fe)?fe.expression:fe,e.isStringLiteralLike))===null||je===void 0)&&je.text)}function zn(fe){var je=e.findAncestor(fe,function(Ee){return e.isFunctionBlock(Ee)||ir(Ee)||e.isBindingPattern(Ee)?"quit":e.isVariableDeclaration(Ee)});return je}function ir(fe){return fe.parent&&e.isArrowFunction(fe.parent)&&fe.parent.body===fe}function Rr(fe,je,Ee){Ee===void 0&&(Ee=new e.Map);var We=e.skipAlias(fe.exportSymbol||fe,je);return!!(We.flags&788968)||je.isUnknownSymbol(We)||!!(We.flags&1536)&&e.addToSeen(Ee,e.getSymbolId(We))&&je.getExportsOfModule(We).some(function(ee){return Rr(ee,je,Ee)})}function sr(fe,je){var Ee=e.skipAlias(fe,je).declarations;return!!e.length(Ee)&&e.every(Ee,e.isDeprecatedDeclaration)}function ye(fe,je){if(je.length===0)return!0;for(var Ee=!1,We,ee=0,Ne=fe.length,me=0;me<Ne;me++){var Ze=fe.charCodeAt(me),xr=je.charCodeAt(ee);if((Ze===xr||Ze===or(xr))&&(Ee||(Ee=We===void 0||97<=We&&We<=122&&65<=Ze&&Ze<=90||We===95&&Ze!==95),Ee&&ee++,ee===je.length))return!0;We=Ze}return!1}function or(fe){return 97<=fe&&fe<=122?fe-32:fe}})(e.Completions||(e.Completions={}))})(gr||(gr={}));var gr;(function(e){(function(n){function f($,T,I,y,D){var C=e.getTouchingPropertyName(I,y);if(C.parent&&(e.isJsxOpeningElement(C.parent)&&C.parent.tagName===C||e.isJsxClosingElement(C.parent))){var m=C.parent.parent,u=m.openingElement,g=m.closingElement,F=[u,g].map(function(te){var ue=te.tagName;return d(ue,I)});return[{fileName:I.fileName,highlightSpans:F}]}return a(y,C,$,T,D)||p(C,I)}n.getDocumentHighlights=f;function d($,T){return{fileName:T.fileName,textSpan:e.createTextSpanFromNode($,T),kind:"none"}}function a($,T,I,y,D){var C=new e.Set(D.map(function(F){return F.fileName})),m=e.FindAllReferences.getReferenceEntriesForNode($,T,I,D,y,void 0,C);if(!!m){var u=e.arrayToMultiMap(m.map(e.FindAllReferences.toHighlightSpan),function(F){return F.fileName},function(F){return F.span}),g=e.createGetCanonicalFileName(I.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(u.entries()),function(F){var te=F[0],ue=F[1];if(!C.has(te)){if(!I.redirectTargetsMap.has(e.toPath(te,I.getCurrentDirectory(),g)))return;var X=I.getSourceFile(te),j=e.find(D,function(Se){return!!Se.redirectInfo&&Se.redirectInfo.redirectTarget===X});te=j.fileName,e.Debug.assert(C.has(te))}return{fileName:te,highlightSpans:ue}})}}function p($,T){var I=N($,T);return I&&[{fileName:T.fileName,highlightSpans:I}]}function N($,T){switch($.kind){case 99:case 91:return e.isIfStatement($.parent)?R($.parent,T):void 0;case 105:return D($.parent,e.isReturnStatement,w);case 109:return D($.parent,e.isThrowStatement,x);case 111:case 83:case 96:var I=$.kind===83?$.parent.parent:$.parent;return D(I,e.isTryStatement,M);case 107:return D($.parent,e.isSwitchStatement,k);case 82:case 88:return e.isDefaultClause($.parent)||e.isCaseClause($.parent)?D($.parent.parent.parent,e.isSwitchStatement,k):void 0;case 81:case 86:return D($.parent,e.isBreakOrContinueStatement,J);case 97:case 115:case 90:return D($.parent,function(m){return e.isIterationStatement(m,!0)},B);case 134:return y(e.isConstructorDeclaration,[134]);case 136:case 148:return y(e.isAccessor,[136,148]);case 132:return D($.parent,e.isAwaitExpression,K);case 131:return C(K($));case 125:return C(Z($));default:return e.isModifierKind($.kind)&&(e.isDeclaration($.parent)||e.isVariableStatement($.parent))?C(b($.kind,$.parent)):void 0}function y(m,u){return D($.parent,m,function(g){return e.mapDefined(g.symbol.declarations,function(F){return m(F)?e.find(F.getChildren(T),function(te){return e.contains(u,te.kind)}):void 0})})}function D(m,u,g){return u(m)?C(g(m,T)):void 0}function C(m){return m&&m.map(function(u){return d(u,T)})}}function H($){return e.isThrowStatement($)?[$]:e.isTryStatement($)?e.concatenate($.catchClause?H($.catchClause):$.tryBlock&&H($.tryBlock),$.finallyBlock&&H($.finallyBlock)):e.isFunctionLike($)?void 0:A($,H)}function h($){for(var T=$;T.parent;){var I=T.parent;if(e.isFunctionBlock(I)||I.kind===303)return I;if(e.isTryStatement(I)&&I.tryBlock===T&&I.catchClause)return T;T=I}}function v($){return e.isBreakOrContinueStatement($)?[$]:e.isFunctionLike($)?void 0:A($,v)}function A($,T){var I=[];return $.forEachChild(function(y){var D=T(y);D!==void 0&&I.push.apply(I,e.toArray(D))}),I}function q($,T){var I=ie(T);return!!I&&I===$}function ie($){return e.findAncestor($,function(T){switch(T.kind){case 248:if($.kind===244)return!1;case 241:case 242:case 243:case 240:case 239:return!$.label||U(T,$.label.escapedText);default:return e.isFunctionLike(T)&&"quit"}})}function b($,T){return e.mapDefined(P(T,e.modifierToFlag($)),function(I){return e.findModifier(I,$)})}function P($,T){var I=$.parent;switch(I.kind){case 261:case 303:case 234:case 288:case 289:return T&128&&e.isClassDeclaration($)?Gt(Gt([],$.members,!0),[$],!1):I.statements;case 170:case 168:case 255:return Gt(Gt([],I.parameters,!0),e.isClassLike(I.parent)?I.parent.members:[],!0);case 256:case 225:case 257:case 181:var y=I.members;if(T&92){var D=e.find(I.members,e.isConstructorDeclaration);if(D)return Gt(Gt([],y,!0),D.parameters,!0)}else if(T&128)return Gt(Gt([],y,!0),[I],!1);return y;case 204:return;default:e.Debug.assertNever(I,"Invalid container kind.")}}function S($,T){for(var I=[],y=2;y<arguments.length;y++)I[y-2]=arguments[y];return T&&e.contains(I,T.kind)?($.push(T),!0):!1}function B($){var T=[];if(S(T,$.getFirstToken(),97,115,90)&&$.kind===239)for(var I=$.getChildren(),y=I.length-1;y>=0&&!S(T,I[y],115);y--);return e.forEach(v($.statement),function(D){q($,D)&&S(T,D.getFirstToken(),81,86)}),T}function J($){var T=ie($);if(T)switch(T.kind){case 241:case 242:case 243:case 239:case 240:return B(T);case 248:return k(T)}}function k($){var T=[];return S(T,$.getFirstToken(),107),e.forEach($.caseBlock.clauses,function(I){S(T,I.getFirstToken(),82,88),e.forEach(v(I),function(y){q($,y)&&S(T,y.getFirstToken(),81)})}),T}function M($,T){var I=[];if(S(I,$.getFirstToken(),111),$.catchClause&&S(I,$.catchClause.getFirstToken(),83),$.finallyBlock){var y=e.findChildOfKind($,96,T);S(I,y,96)}return I}function x($,T){var I=h($);if(!!I){var y=[];return e.forEach(H(I),function(D){y.push(e.findChildOfKind(D,109,T))}),e.isFunctionBlock(I)&&e.forEachReturnStatement(I,function(D){y.push(e.findChildOfKind(D,105,T))}),y}}function w($,T){var I=e.getContainingFunction($);if(!!I){var y=[];return e.forEachReturnStatement(e.cast(I.body,e.isBlock),function(D){y.push(e.findChildOfKind(D,105,T))}),e.forEach(H(I.body),function(D){y.push(e.findChildOfKind(D,109,T))}),y}}function K($){var T=e.getContainingFunction($);if(!!T){var I=[];return T.modifiers&&T.modifiers.forEach(function(y){S(I,y,131)}),e.forEachChild(T,function(y){ne(y,function(D){e.isAwaitExpression(D)&&S(I,D.getFirstToken(),132)})}),I}}function Z($){var T=e.getContainingFunction($);if(!!T){var I=[];return e.forEachChild(T,function(y){ne(y,function(D){e.isYieldExpression(D)&&S(I,D.getFirstToken(),125)})}),I}}function ne($,T){T($),!e.isFunctionLike($)&&!e.isClassLike($)&&!e.isInterfaceDeclaration($)&&!e.isModuleDeclaration($)&&!e.isTypeAliasDeclaration($)&&!e.isTypeNode($)&&e.forEachChild($,function(I){return ne(I,T)})}function R($,T){for(var I=Y($,T),y=[],D=0;D<I.length;D++){if(I[D].kind===91&&D<I.length-1){for(var C=I[D],m=I[D+1],u=!0,g=m.getStart(T)-1;g>=C.end;g--)if(!e.isWhiteSpaceSingleLine(T.text.charCodeAt(g))){u=!1;break}if(u){y.push({fileName:T.fileName,textSpan:e.createTextSpanFromBounds(C.getStart(),m.end),kind:"reference"}),D++;continue}}y.push(d(I[D],T))}return y}function Y($,T){for(var I=[];e.isIfStatement($.parent)&&$.parent.elseStatement===$;)$=$.parent;for(;;){var y=$.getChildren(T);S(I,y[0],99);for(var D=y.length-1;D>=0&&!S(I,y[D],91);D--);if(!$.elseStatement||!e.isIfStatement($.elseStatement))break;$=$.elseStatement}return I}function U($,T){return!!e.findAncestor($.parent,function(I){return e.isLabeledStatement(I)?I.label.escapedText===T:"quit"})}})(e.DocumentHighlights||(e.DocumentHighlights={}))})(gr||(gr={}));var gr;(function(e){function n(p){return!!p.sourceFile}function f(p,N){return d(p,N)}e.createDocumentRegistry=f;function d(p,N,H){N===void 0&&(N="");var h=new e.Map,v=e.createGetCanonicalFileName(!!p);function A(){var x=e.arrayFrom(h.keys()).filter(function(w){return w&&w.charAt(0)==="_"}).map(function(w){var K=h.get(w),Z=[];return K.forEach(function(ne,R){n(ne)?Z.push({name:R,scriptKind:ne.sourceFile.scriptKind,refCount:ne.languageServiceRefCount}):ne.forEach(function(Y,U){return Z.push({name:R,scriptKind:U,refCount:Y.languageServiceRefCount})})}),Z.sort(function(ne,R){return R.refCount-ne.refCount}),{bucket:w,sourceFiles:Z}});return JSON.stringify(x,void 0,2)}function q(x,w,K,Z,ne){var R=e.toPath(x,N,v),Y=a(w);return ie(x,R,w,Y,K,Z,ne)}function ie(x,w,K,Z,ne,R,Y){return B(x,w,K,Z,ne,R,!0,Y)}function b(x,w,K,Z,ne){var R=e.toPath(x,N,v),Y=a(w);return P(x,R,w,Y,K,Z,ne)}function P(x,w,K,Z,ne,R,Y){return B(x,w,K,Z,ne,R,!1,Y)}function S(x,w){var K=n(x)?x:x.get(e.Debug.checkDefined(w,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(w===void 0||!K||K.sourceFile.scriptKind===w,"Script kind should match provided ScriptKind:".concat(w," and sourceFile.scriptKind: ").concat(K==null?void 0:K.sourceFile.scriptKind,", !entry: ").concat(!K)),K}function B(x,w,K,Z,ne,R,Y,U){U=e.ensureScriptKind(x,U);var $=U===6?100:e.getEmitScriptTarget(K),T=e.getOrUpdate(h,Z,function(){return new e.Map}),I=T.get(w),y=I&&S(I,U);if(!y&&H){var D=H.getDocument(Z,w);D&&(e.Debug.assert(Y),y={sourceFile:D,languageServiceRefCount:0},C())}if(y)y.sourceFile.version!==R&&(y.sourceFile=e.updateLanguageServiceSourceFile(y.sourceFile,ne,R,ne.getChangeRange(y.sourceFile.scriptSnapshot)),H&&H.setDocument(Z,w,y.sourceFile)),Y&&y.languageServiceRefCount++;else{var D=e.createLanguageServiceSourceFile(x,ne,$,R,!1,U);H&&H.setDocument(Z,w,D),y={sourceFile:D,languageServiceRefCount:1},C()}return e.Debug.assert(y.languageServiceRefCount!==0),y.sourceFile;function C(){if(!I)T.set(w,y);else if(n(I)){var m=new e.Map;m.set(I.sourceFile.scriptKind,I),m.set(U,y),T.set(w,m)}else I.set(U,y)}}function J(x,w,K){var Z=e.toPath(x,N,v),ne=a(w);return k(Z,ne,K)}function k(x,w,K){var Z=e.Debug.checkDefined(h.get(w)),ne=Z.get(x),R=S(ne,K);R.languageServiceRefCount--,e.Debug.assert(R.languageServiceRefCount>=0),R.languageServiceRefCount===0&&(n(ne)?Z.delete(x):(ne.delete(K),ne.size===1&&Z.set(x,e.firstDefinedIterator(ne.values(),e.identity))))}function M(x,w){return e.arrayFrom(h.entries(),function(K){var Z=K[0],ne=K[1],R=ne.get(x),Y=R&&S(R,w);return[Z,Y&&Y.languageServiceRefCount]})}return{acquireDocument:q,acquireDocumentWithKey:ie,updateDocument:b,updateDocumentWithKey:P,releaseDocument:J,releaseDocumentWithKey:k,getLanguageServiceRefCounts:M,reportStats:A,getKeyForCompilationSettings:a}}e.createDocumentRegistryInternal=d;function a(p){return e.sourceFileAffectingCompilerOptions.map(function(N){return e.getCompilerOptionValue(p,N)}).join("|")}})(gr||(gr={}));var gr;(function(e){(function(n){function f(x,w,K,Z){var ne=H(x,K,Z);return function(R,Y,U){var $=d(x,w,ne,Y,K,Z),T=$.directImports,I=$.indirectUsers;return Rn({indirectUsers:I},a(T,R,Y.exportKind,K,U))}}n.createImportTracker=f,function(x){x[x.Named=0]="Named",x[x.Default=1]="Default",x[x.ExportEquals=2]="ExportEquals"}(n.ExportKind||(n.ExportKind={})),function(x){x[x.Import=0]="Import",x[x.Export=1]="Export"}(n.ImportExport||(n.ImportExport={}));function d(x,w,K,Z,ne,R){var Y=Z.exportingModuleSymbol,U=Z.exportKind,$=e.nodeSeenTracker(),T=e.nodeSeenTracker(),I=[],y=!!Y.globalExports,D=y?void 0:[];return m(Y),{directImports:I,indirectUsers:C()};function C(){if(y)return x;if(Y.declarations)for(var X=0,j=Y.declarations;X<j.length;X++){var Se=j[X];e.isExternalModuleAugmentation(Se)&&w.has(Se.getSourceFile().fileName)&&te(Se)}return D.map(e.getSourceFileOfNode)}function m(X){var j=ue(X);if(j)for(var Se=0,Ce=j;Se<Ce.length;Se++){var O=Ce[Se];if(!!$(O))switch(R&&R.throwIfCancellationRequested(),O.kind){case 207:if(e.isImportCall(O)){u(O);break}if(!y){var Q=O.parent;if(U===2&&Q.kind===253){var V=Q.name;if(V.kind===79){I.push(V);break}}}break;case 79:break;case 264:F(O,O.name,e.hasSyntacticModifier(O,1),!1);break;case 265:I.push(O);var z=O.importClause&&O.importClause.namedBindings;z&&z.kind===267?F(O,z.name,!1,!0):!y&&e.isDefaultImport(O)&&te(J(O));break;case 271:O.exportClause?O.exportClause.kind===273?te(J(O),!0):I.push(O):m(B(O,ne));break;case 199:O.isTypeOf&&!O.qualifier&&g(O)&&te(O.getSourceFile(),!0),I.push(O);break;default:e.Debug.failBadSyntaxKind(O,"Unexpected import kind.")}}}function u(X){var j=e.findAncestor(X,k)||X.getSourceFile();te(j,!!g(X,!0))}function g(X,j){return j===void 0&&(j=!1),e.findAncestor(X,function(Se){return j&&k(Se)?"quit":e.some(Se.modifiers,function(Ce){return Ce.kind===93})})}function F(X,j,Se,Ce){if(U===2)Ce||I.push(X);else if(!y){var O=J(X);e.Debug.assert(O.kind===303||O.kind===260),Se||p(O,j,ne)?te(O,!0):te(O)}}function te(X,j){j===void 0&&(j=!1),e.Debug.assert(!y);var Se=T(X);if(!!Se&&(D.push(X),!!j)){var Ce=ne.getMergedSymbol(X.symbol);if(!!Ce){e.Debug.assert(!!(Ce.flags&1536));var O=ue(Ce);if(O)for(var Q=0,V=O;Q<V.length;Q++){var z=V[Q];e.isImportTypeNode(z)||te(J(z),!0)}}}}function ue(X){return K.get(e.getSymbolId(X).toString())}}function a(x,w,K,Z,ne){var R=[],Y=[];function U(u,g){R.push([u,g])}if(x)for(var $=0,T=x;$<T.length;$++){var I=T[$];y(I)}return{importSearches:R,singleReferences:Y};function y(u){if(u.kind===264){M(u)&&D(u.name);return}if(u.kind===79){D(u);return}if(u.kind===199){if(u.qualifier){var g=e.getFirstIdentifier(u.qualifier);g.escapedText===e.symbolName(w)&&Y.push(g)}else K===2&&Y.push(u.argument.literal);return}if(u.moduleSpecifier.kind===10){if(u.kind===271){u.exportClause&&e.isNamedExports(u.exportClause)&&C(u.exportClause);return}var F=u.importClause||{name:void 0,namedBindings:void 0},te=F.name,ue=F.namedBindings;if(ue)switch(ue.kind){case 267:D(ue.name);break;case 268:(K===0||K===1)&&C(ue);break;default:e.Debug.assertNever(ue)}if(te&&(K===1||K===2)&&(!ne||te.escapedText===e.symbolEscapedNameNoDefault(w))){var X=Z.getSymbolAtLocation(te);U(te,X)}}}function D(u){K===2&&(!ne||m(u.escapedText))&&U(u,Z.getSymbolAtLocation(u))}function C(u){if(!!u)for(var g=0,F=u.elements;g<F.length;g++){var te=F[g],ue=te.name,X=te.propertyName;if(!!m((X||ue).escapedText))if(X)Y.push(X),(!ne||ue.escapedText===w.escapedName)&&U(ue,Z.getSymbolAtLocation(ue));else{var j=te.kind===274&&te.propertyName?Z.getExportSpecifierLocalTargetSymbol(te):Z.getSymbolAtLocation(ue);U(ue,j)}}}function m(u){return u===w.escapedName||K!==0&&u==="default"}}function p(x,w,K){var Z=K.getSymbolAtLocation(w);return!!h(x,function(ne){if(!!e.isExportDeclaration(ne)){var R=ne.exportClause,Y=ne.moduleSpecifier;return!Y&&R&&e.isNamedExports(R)&&R.elements.some(function(U){return K.getExportSpecifierLocalTargetSymbol(U)===Z})}})}function N(x,w,K){for(var Z=[],ne=x.getTypeChecker(),R=0,Y=w;R<Y.length;R++){var U=Y[R],$=K.valueDeclaration;if(($==null?void 0:$.kind)===303){for(var T=0,I=U.referencedFiles;T<I.length;T++){var y=I[T];x.getSourceFileFromReference(U,y)===$&&Z.push({kind:"reference",referencingFile:U,ref:y})}for(var D=0,C=U.typeReferenceDirectives;D<C.length;D++){var y=C[D],m=x.getResolvedTypeReferenceDirectives().get(y.fileName);m!==void 0&&m.resolvedFileName===$.fileName&&Z.push({kind:"reference",referencingFile:U,ref:y})}}v(U,function(u,g){var F=ne.getSymbolAtLocation(g);F===K&&Z.push({kind:"import",literal:g})})}return Z}n.findModuleReferences=N;function H(x,w,K){for(var Z=new e.Map,ne=0,R=x;ne<R.length;ne++){var Y=R[ne];K&&K.throwIfCancellationRequested(),v(Y,function(U,$){var T=w.getSymbolAtLocation($);if(T){var I=e.getSymbolId(T).toString(),y=Z.get(I);y||Z.set(I,y=[]),y.push(U)}})}return Z}function h(x,w){return e.forEach(x.kind===303?x.statements:x.body.statements,function(K){return w(K)||k(K)&&e.forEach(K.body&&K.body.statements,w)})}function v(x,w){if(x.externalModuleIndicator||x.imports!==void 0)for(var K=0,Z=x.imports;K<Z.length;K++){var ne=Z[K];w(e.importFromModuleSpecifier(ne),ne)}else h(x,function(R){switch(R.kind){case 271:case 265:{var Y=R;Y.moduleSpecifier&&e.isStringLiteral(Y.moduleSpecifier)&&w(Y,Y.moduleSpecifier);break}case 264:{var Y=R;M(Y)&&w(Y,Y.moduleReference.expression);break}}})}function A(x,w,K,Z){return Z?ne():ne()||R();function ne(){var $,T=x.parent,I=T.parent;if(w.exportSymbol)return T.kind===205?(($=w.declarations)===null||$===void 0?void 0:$.some(function(u){return u===T}))&&e.isBinaryExpression(I)?m(I,!1):void 0:Y(w.exportSymbol,U(T));var y=ie(T,x);if(y&&e.hasSyntacticModifier(y,1))if(e.isImportEqualsDeclaration(y)&&y.moduleReference===x){if(Z)return;var D=K.getSymbolAtLocation(y.name);return{kind:0,symbol:D}}else return Y(w,U(y));else{if(e.isNamespaceExport(T))return Y(w,0);if(e.isExportAssignment(T))return C(T);if(e.isExportAssignment(I))return C(I);if(e.isBinaryExpression(T))return m(T,!0);if(e.isBinaryExpression(I))return m(I,!0);if(e.isJSDocTypedefTag(T))return Y(w,0)}function C(u){if(!!u.symbol.parent){var g=u.isExportEquals?2:1;return{kind:1,symbol:w,exportInfo:{exportingModuleSymbol:u.symbol.parent,exportKind:g}}}}function m(u,g){var F;switch(e.getAssignmentDeclarationKind(u)){case 1:F=0;break;case 2:F=2;break;default:return}var te=g?K.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(u.left,e.isAccessExpression))):w;return te&&Y(te,F)}}function R(){var $=b(x);if(!!$){var T=K.getImmediateAliasedSymbol(w);if(!!T){T=S(T,K),T.escapedName==="export="&&(T=q(T,K));var I=e.symbolEscapedNameNoDefault(T);if(I===void 0||I==="default"||I===w.escapedName)return{kind:0,symbol:T}}}}function Y($,T){var I=P($,T,K);return I&&{kind:1,symbol:$,exportInfo:I}}function U($){return e.hasSyntacticModifier($,512)?1:0}}n.getImportOrExportSymbol=A;function q(x,w){if(x.flags&2097152)return e.Debug.checkDefined(w.getImmediateAliasedSymbol(x));var K=e.Debug.checkDefined(x.valueDeclaration);return e.isExportAssignment(K)?e.Debug.checkDefined(K.expression.symbol):e.isBinaryExpression(K)?e.Debug.checkDefined(K.right.symbol):e.isSourceFile(K)?e.Debug.checkDefined(K.symbol):e.Debug.fail()}function ie(x,w){var K=e.isVariableDeclaration(x)?x:e.isBindingElement(x)?e.walkUpBindingElementsAndPatterns(x):void 0;return K?x.name!==w||e.isCatchClause(K.parent)?void 0:e.isVariableStatement(K.parent.parent)?K.parent.parent:void 0:x}function b(x){var w=x.parent;switch(w.kind){case 264:return w.name===x&&M(w);case 269:return!w.propertyName;case 266:case 267:return e.Debug.assert(w.name===x),!0;case 202:return e.isInJSFile(x)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(w);default:return!1}}function P(x,w,K){var Z=x.parent;if(!!Z){var ne=K.getMergedSymbol(Z);return e.isExternalModuleSymbol(ne)?{exportingModuleSymbol:ne,exportKind:w}:void 0}}n.getExportInfo=P;function S(x,w){if(x.declarations)for(var K=0,Z=x.declarations;K<Z.length;K++){var ne=Z[K];if(e.isExportSpecifier(ne)&&!ne.propertyName&&!ne.parent.parent.moduleSpecifier)return w.getExportSpecifierLocalTargetSymbol(ne);if(e.isPropertyAccessExpression(ne)&&e.isModuleExportsAccessExpression(ne.expression)&&!e.isPrivateIdentifier(ne.name))return w.getSymbolAtLocation(ne);if(e.isShorthandPropertyAssignment(ne)&&e.isBinaryExpression(ne.parent.parent)&&e.getAssignmentDeclarationKind(ne.parent.parent)===2)return w.getExportSpecifierLocalTargetSymbol(ne.name)}return x}function B(x,w){return w.getMergedSymbol(J(x).symbol)}function J(x){if(x.kind===207)return x.getSourceFile();var w=x.parent;return w.kind===303?w:(e.Debug.assert(w.kind===261),e.cast(w.parent,k))}function k(x){return x.kind===260&&x.name.kind===10}function M(x){return x.moduleReference.kind===276&&x.moduleReference.expression.kind===10}})(e.FindAllReferences||(e.FindAllReferences={}))})(gr||(gr={}));var gr;(function(e){(function(n){(function(T){T[T.Symbol=0]="Symbol",T[T.Label=1]="Label",T[T.Keyword=2]="Keyword",T[T.This=3]="This",T[T.String=4]="String",T[T.TripleSlashReference=5]="TripleSlashReference"})(n.DefinitionKind||(n.DefinitionKind={})),function(T){T[T.Span=0]="Span",T[T.Node=1]="Node",T[T.StringLiteral=2]="StringLiteral",T[T.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",T[T.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"}(n.EntryKind||(n.EntryKind={}));function f(T,I){return I===void 0&&(I=1),{kind:I,node:T.name||T,context:a(T)}}n.nodeEntry=f;function d(T){return T&&T.kind===void 0}n.isContextWithStartAndEndNode=d;function a(T){if(e.isDeclaration(T))return p(T);if(!!T.parent){if(!e.isDeclaration(T.parent)&&!e.isExportAssignment(T.parent)){if(e.isInJSFile(T)){var I=e.isBinaryExpression(T.parent)?T.parent:e.isAccessExpression(T.parent)&&e.isBinaryExpression(T.parent.parent)&&T.parent.parent.left===T.parent?T.parent.parent:void 0;if(I&&e.getAssignmentDeclarationKind(I)!==0)return p(I)}if(e.isJsxOpeningElement(T.parent)||e.isJsxClosingElement(T.parent))return T.parent.parent;if(e.isJsxSelfClosingElement(T.parent)||e.isLabeledStatement(T.parent)||e.isBreakOrContinueStatement(T.parent))return T.parent;if(e.isStringLiteralLike(T)){var y=e.tryGetImportFromModuleSpecifier(T);if(y){var D=e.findAncestor(y,function(m){return e.isDeclaration(m)||e.isStatement(m)||e.isJSDocTag(m)});return e.isDeclaration(D)?p(D):D}}var C=e.findAncestor(T,e.isComputedPropertyName);return C?p(C.parent):void 0}if(T.parent.name===T||e.isConstructorDeclaration(T.parent)||e.isExportAssignment(T.parent)||(e.isImportOrExportSpecifier(T.parent)||e.isBindingElement(T.parent))&&T.parent.propertyName===T||T.kind===88&&e.hasSyntacticModifier(T.parent,513))return p(T.parent)}}function p(T){if(!!T)switch(T.kind){case 253:return!e.isVariableDeclarationList(T.parent)||T.parent.declarations.length!==1?T:e.isVariableStatement(T.parent.parent)?T.parent.parent:e.isForInOrOfStatement(T.parent.parent)?p(T.parent.parent):T.parent;case 202:return p(T.parent.parent);case 269:return T.parent.parent.parent;case 274:case 267:return T.parent.parent;case 266:case 273:return T.parent;case 220:return e.isExpressionStatement(T.parent)?T.parent:T;case 243:case 242:return{start:T.initializer,end:T.expression};case 294:case 295:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(T.parent)?p(e.findAncestor(T.parent,function(I){return e.isBinaryExpression(I)||e.isForInOrOfStatement(I)})):T;default:return T}}n.getContextNode=p;function N(T,I,y){if(!!y){var D=d(y)?Z(y.start,I,y.end):Z(y,I);return D.start!==T.start||D.length!==T.length?{contextSpan:D}:void 0}}n.toContextSpan=N,function(T){T[T.Other=0]="Other",T[T.References=1]="References",T[T.Rename=2]="Rename"}(n.FindReferencesUse||(n.FindReferencesUse={}));function H(T,I,y,D,C){var m=e.getTouchingPropertyName(D,C),u=$.getReferencedSymbolsForNode(C,m,T,y,I,{use:1}),g=T.getTypeChecker(),F=g.getSymbolAtLocation(m);return!u||!u.length?void 0:e.mapDefined(u,function(te){var ue=te.definition,X=te.references;return ue&&{definition:g.runWithCancellationToken(I,function(j){return b(ue,j,m)}),references:X.map(function(j){return J(j,F)})}})}n.findReferencedSymbols=H;function h(T,I,y,D,C){var m=e.getTouchingPropertyName(D,C),u,g=v(T,I,y,m,C);if(m.parent.kind===205||m.parent.kind===202||m.parent.kind===206||m.kind===106)u=g&&Gt([],g,!0);else for(var F=g&&Gt([],g,!0),te=new e.Map;F&&F.length;){var ue=F.shift();if(!!e.addToSeen(te,e.getNodeId(ue.node))){u=e.append(u,ue);var X=v(T,I,y,ue.node,ue.node.pos);X&&F.push.apply(F,X)}}var j=T.getTypeChecker();return e.map(u,function(Se){return x(Se,j)})}n.getImplementationsAtPosition=h;function v(T,I,y,D,C){if(D.kind!==303){var m=T.getTypeChecker();if(D.parent.kind===295){var u=[];return $.getReferenceEntriesForShorthandPropertyAssignment(D,m,function(F){return u.push(f(F))}),u}else if(D.kind===106||e.isSuperProperty(D.parent)){var g=m.getSymbolAtLocation(D);return g.valueDeclaration&&[f(g.valueDeclaration)]}else return q(C,D,T,y,I,{implementations:!0,use:1})}}function A(T,I,y,D,C,m,u){return e.map(ie($.getReferencedSymbolsForNode(C,D,T,y,I,m)),function(g){return u(g,D,T.getTypeChecker())})}n.findReferenceOrRenameEntries=A;function q(T,I,y,D,C,m,u){return m===void 0&&(m={}),u===void 0&&(u=new e.Set(D.map(function(g){return g.fileName}))),ie($.getReferencedSymbolsForNode(T,I,y,D,C,m,u))}n.getReferenceEntriesForNode=q;function ie(T){return T&&e.flatMap(T,function(I){return I.references})}function b(T,I,y){var D=function(){switch(T.type){case 0:{var ue=T.symbol,X=S(ue,I,y),j=X.displayParts,Se=X.kind,Ce=j.map(function(Te){return Te.text}).join(""),O=ue.declarations&&e.firstOrUndefined(ue.declarations),Q=O?e.getNameOfDeclaration(O)||O:y;return Rn(Rn({},P(Q)),{name:Ce,kind:Se,displayParts:j,context:p(O)})}case 1:{var Q=T.node;return Rn(Rn({},P(Q)),{name:Q.text,kind:"label",displayParts:[e.displayPart(Q.text,e.SymbolDisplayPartKind.text)]})}case 2:{var Q=T.node,V=e.tokenToString(Q.kind);return Rn(Rn({},P(Q)),{name:V,kind:"keyword",displayParts:[{text:V,kind:"keyword"}]})}case 3:{var Q=T.node,ue=I.getSymbolAtLocation(Q),z=ue&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(I,ue,Q.getSourceFile(),e.getContainerNode(Q),Q).displayParts||[e.textPart("this")];return Rn(Rn({},P(Q)),{name:"this",kind:"var",displayParts:z})}case 4:{var Q=T.node;return Rn(Rn({},P(Q)),{name:Q.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(Q),e.SymbolDisplayPartKind.stringLiteral)]})}case 5:return{textSpan:e.createTextSpanFromRange(T.reference),sourceFile:T.file,name:T.reference.fileName,kind:"string",displayParts:[e.displayPart('"'.concat(T.reference.fileName,'"'),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(T)}}(),C=D.sourceFile,m=D.textSpan,u=D.name,g=D.kind,F=D.displayParts,te=D.context;return Rn({containerKind:"",containerName:"",fileName:C.fileName,kind:g,name:u,textSpan:m,displayParts:F},N(m,C,te))}function P(T){var I=T.getSourceFile();return{sourceFile:I,textSpan:Z(e.isComputedPropertyName(T)?T.expression:T,I)}}function S(T,I,y){var D=$.getIntersectingMeaningFromDeclarations(y,T),C=T.declarations&&e.firstOrUndefined(T.declarations)||y,m=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(I,T,C.getSourceFile(),C,C,D),u=m.displayParts,g=m.symbolKind;return{displayParts:u,kind:g}}function B(T,I,y,D){return Rn(Rn({},k(T)),D&&M(T,I,y))}n.toRenameLocation=B;function J(T,I){var y=k(T);if(T.kind===0)return Rn(Rn({},y),{isWriteAccess:!1,isDefinition:!1});var D=T.kind,C=T.node;return Rn(Rn({},y),{isWriteAccess:R(C),isDefinition:Y(C,I),isInString:D===2?!0:void 0})}n.toReferenceEntry=J;function k(T){if(T.kind===0)return{textSpan:T.textSpan,fileName:T.fileName};var I=T.node.getSourceFile(),y=Z(T.node,I);return Rn({textSpan:y,fileName:I.fileName},N(y,I,T.context))}function M(T,I,y){if(T.kind!==0&&e.isIdentifier(I)){var D=T.node,C=T.kind,m=D.parent,u=I.text,g=e.isShorthandPropertyAssignment(m);if(g||e.isObjectBindingElementWithoutPropertyName(m)&&m.name===D&&m.dotDotDotToken===void 0){var F={prefixText:u+": "},te={suffixText:": "+u};if(C===3)return F;if(C===4)return te;if(g){var ue=m.parent;return e.isObjectLiteralExpression(ue)&&e.isBinaryExpression(ue.parent)&&e.isModuleExportsAccessExpression(ue.parent.left)?F:te}else return F}else if(e.isImportSpecifier(m)&&!m.propertyName){var X=e.isExportSpecifier(I.parent)?y.getExportSpecifierLocalTargetSymbol(I.parent):y.getSymbolAtLocation(I);return e.contains(X.declarations,m)?{prefixText:u+" as "}:e.emptyOptions}else if(e.isExportSpecifier(m)&&!m.propertyName)return I===T.node||y.getSymbolAtLocation(I)===y.getSymbolAtLocation(T.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}return e.emptyOptions}function x(T,I){var y=k(T);if(T.kind!==0){var D=T.node;return Rn(Rn({},y),w(D,I))}else return Rn(Rn({},y),{kind:"",displayParts:[]})}function w(T,I){var y=I.getSymbolAtLocation(e.isDeclaration(T)&&T.name?T.name:T);return y?S(y,I,T):T.kind===204?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:T.kind===225?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(T),displayParts:[]}}function K(T){var I=k(T);if(T.kind===0)return{fileName:I.fileName,span:{textSpan:I.textSpan,kind:"reference"}};var y=R(T.node),D=Rn({textSpan:I.textSpan,kind:y?"writtenReference":"reference",isInString:T.kind===2?!0:void 0},I.contextSpan&&{contextSpan:I.contextSpan});return{fileName:I.fileName,span:D}}n.toHighlightSpan=K;function Z(T,I,y){var D=T.getStart(I),C=(y||T).getEnd();return e.isStringLiteralLike(T)&&(e.Debug.assert(y===void 0),D+=1,C-=1),e.createTextSpanFromBounds(D,C)}function ne(T){return T.kind===0?T.textSpan:Z(T.node,T.node.getSourceFile())}n.getTextSpanOfEntry=ne;function R(T){var I=e.getDeclarationFromName(T);return!!I&&U(I)||T.kind===88||e.isWriteAccess(T)}function Y(T,I){var y;if(!I)return!1;var D=e.getDeclarationFromName(T)||(T.kind===88?T.parent:e.isLiteralComputedPropertyDeclarationName(T)||T.kind===134&&e.isConstructorDeclaration(T.parent)?T.parent.parent:void 0),C=D&&e.isBinaryExpression(D)?D.left:void 0;return!!(D&&((y=I.declarations)===null||y===void 0?void 0:y.some(function(m){return m===D||m===C})))}function U(T){if(T.flags&8388608)return!0;switch(T.kind){case 220:case 202:case 256:case 225:case 88:case 259:case 297:case 274:case 266:case 264:case 269:case 257:case 336:case 343:case 284:case 260:case 263:case 267:case 273:case 163:case 295:case 258:case 162:return!0;case 294:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(T.parent);case 255:case 212:case 170:case 168:case 171:case 172:return!!T.body;case 253:case 166:return!!T.initializer||e.isCatchClause(T.parent);case 167:case 165:case 345:case 338:return!1;default:return e.Debug.failBadSyntaxKind(T)}}var $;(function(T){function I(Ee,We,ee,Ne,me,Ze,xr){var fr,dr;if(Ze===void 0&&(Ze={}),xr===void 0&&(xr=new e.Set(Ne.map(function(wt){return wt.fileName}))),Ze.use===1?We=e.getAdjustedReferenceLocation(We):Ze.use===2&&(We=e.getAdjustedRenameLocation(We)),e.isSourceFile(We)){var et=e.GoToDefinition.getReferenceAtPosition(We,Ee,ee);if(!(et!=null&&et.file))return;var yt=ee.getTypeChecker().getMergedSymbol(et.file.symbol);if(yt)return F(ee,yt,!1,Ne,xr);var Wr=ee.getFileIncludeReasons();return Wr?[{definition:{type:5,reference:et.reference,file:We},references:D(et.file,Wr,ee)||e.emptyArray}]:void 0}if(!Ze.implementations){var tr=ue(We,Ne,me);if(tr)return tr}var Ir=ee.getTypeChecker(),kr=Ir.getSymbolAtLocation(e.isConstructorDeclaration(We)&&We.parent.name||We);if(!kr){if(!Ze.implementations&&e.isStringLiteralLike(We)){if(e.isModuleSpecifierLike(We)){var Wr=ee.getFileIncludeReasons(),zr=(dr=(fr=We.getSourceFile().resolvedModules)===null||fr===void 0?void 0:fr.get(We.text,e.getModeForUsageLocation(We.getSourceFile(),We)))===null||dr===void 0?void 0:dr.resolvedFileName,gt=zr?ee.getSourceFile(zr):void 0;if(gt)return[{definition:{type:4,node:We},references:D(gt,Wr,ee)||e.emptyArray}]}return tt(We,Ne,Ir,me)}return}if(kr.escapedName==="export=")return F(ee,kr.parent,!1,Ne,xr);var vt=m(kr,ee,Ne,me,Ze,xr);if(vt&&!(kr.flags&33554432))return vt;var ut=C(We,kr,Ir),ht=ut&&m(ut,ee,Ne,me,Ze,xr),xt=X(kr,We,Ne,xr,Ir,me,Ze);return u(ee,vt,xt,ht)}T.getReferencedSymbolsForNode=I;function y(Ee,We,ee,Ne){var me,Ze;Ne===void 0&&(Ne=new e.Set(ee.map(function(et){return et.fileName})));var xr=(me=We.getSourceFile(Ee))===null||me===void 0?void 0:me.symbol;if(xr)return((Ze=F(We,xr,!1,ee,Ne)[0])===null||Ze===void 0?void 0:Ze.references)||e.emptyArray;var fr=We.getFileIncludeReasons(),dr=We.getSourceFile(Ee);return dr&&fr&&D(dr,fr,We)||e.emptyArray}T.getReferencesForFileName=y;function D(Ee,We,ee){for(var Ne,me=We.get(Ee.path)||e.emptyArray,Ze=0,xr=me;Ze<xr.length;Ze++){var fr=xr[Ze];if(e.isReferencedFile(fr)){var dr=ee.getSourceFileByPath(fr.file),et=e.getReferencedFileLocation(ee.getSourceFileByPath,fr);e.isReferenceFileLocation(et)&&(Ne=e.append(Ne,{kind:0,fileName:dr.fileName,textSpan:e.createTextSpanFromRange(et)}))}}return Ne}function C(Ee,We,ee){if(Ee.parent&&e.isNamespaceExportDeclaration(Ee.parent)){var Ne=ee.getAliasedSymbol(We),me=ee.getMergedSymbol(Ne);if(Ne!==me)return me}}function m(Ee,We,ee,Ne,me,Ze){var xr=Ee.flags&1536&&Ee.declarations&&e.find(Ee.declarations,e.isSourceFile);if(!!xr){var fr=Ee.exports.get("export="),dr=F(We,Ee,!!fr,ee,Ze);if(!fr||!Ze.has(xr.fileName))return dr;var et=We.getTypeChecker();return Ee=e.skipAlias(fr,et),u(We,dr,X(Ee,void 0,ee,Ze,et,Ne,me))}}function u(Ee){for(var We=[],ee=1;ee<arguments.length;ee++)We[ee-1]=arguments[ee];for(var Ne,me=0,Ze=We;me<Ze.length;me++){var xr=Ze[me];if(!(!xr||!xr.length)){if(!Ne){Ne=xr;continue}for(var fr=function(Wr){if(!Wr.definition||Wr.definition.type!==0)return Ne.push(Wr),"continue";var tr=Wr.definition.symbol,Ir=e.findIndex(Ne,function(zr){return!!zr.definition&&zr.definition.type===0&&zr.definition.symbol===tr});if(Ir===-1)return Ne.push(Wr),"continue";var kr=Ne[Ir];Ne[Ir]={definition:kr.definition,references:kr.references.concat(Wr.references).sort(function(zr,gt){var vt=g(Ee,zr),ut=g(Ee,gt);if(vt!==ut)return e.compareValues(vt,ut);var ht=ne(zr),xt=ne(gt);return ht.start!==xt.start?e.compareValues(ht.start,xt.start):e.compareValues(ht.length,xt.length)})}},dr=0,et=xr;dr<et.length;dr++){var yt=et[dr];fr(yt)}}}return Ne}function g(Ee,We){var ee=We.kind===0?Ee.getSourceFile(We.fileName):We.node.getSourceFile();return Ee.getSourceFiles().indexOf(ee)}function F(Ee,We,ee,Ne,me){e.Debug.assert(!!We.valueDeclaration);var Ze=e.mapDefined(n.findModuleReferences(Ee,Ne,We),function(kr){if(kr.kind==="import"){var zr=kr.literal.parent;if(e.isLiteralTypeNode(zr)){var gt=e.cast(zr.parent,e.isImportTypeNode);if(ee&&!gt.qualifier)return}return f(kr.literal)}else return{kind:0,fileName:kr.referencingFile.fileName,textSpan:e.createTextSpanFromRange(kr.ref)}});if(We.declarations)for(var xr=0,fr=We.declarations;xr<fr.length;xr++){var dr=fr[xr];switch(dr.kind){case 303:break;case 260:me.has(dr.getSourceFile().fileName)&&Ze.push(f(dr.name));break;default:e.Debug.assert(!!(We.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var et=We.exports.get("export=");if(et!=null&&et.declarations)for(var yt=0,Wr=et.declarations;yt<Wr.length;yt++){var dr=Wr[yt],tr=dr.getSourceFile();if(me.has(tr.fileName)){var Ir=e.isBinaryExpression(dr)&&e.isPropertyAccessExpression(dr.left)?dr.left.expression:e.isExportAssignment(dr)?e.Debug.checkDefined(e.findChildOfKind(dr,93,tr)):e.getNameOfDeclaration(dr)||dr;Ze.push(f(Ir))}}return Ze.length?[{definition:{type:0,symbol:We},references:Ze}]:e.emptyArray}function te(Ee){return Ee.kind===144&&e.isTypeOperatorNode(Ee.parent)&&Ee.parent.operator===144}function ue(Ee,We,ee){if(e.isTypeKeyword(Ee.kind))return Ee.kind===114&&e.isVoidExpression(Ee.parent)||Ee.kind===144&&!te(Ee)?void 0:De(We,Ee.kind,ee,Ee.kind===144?te:void 0);if(e.isStaticModifier(Ee)&&e.isClassStaticBlockDeclaration(Ee.parent))return[{definition:{type:2,node:Ee},references:[f(Ee)]}];if(e.isJumpStatementTarget(Ee)){var Ne=e.getTargetLabel(Ee.parent,Ee.text);return Ne&&qe(Ne.parent,Ne)}else if(e.isLabelOfLabeledStatement(Ee))return qe(Ee.parent,Ee);if(e.isThis(Ee))return lt(Ee,We,ee);if(Ee.kind===106)return Ar(Ee)}function X(Ee,We,ee,Ne,me,Ze,xr){var fr=We&&Ce(Ee,We,me,!je(xr))||Ee,dr=We?ir(We,fr):7,et=[],yt=new V(ee,Ne,We?Se(We):0,me,Ze,dr,xr,et),Wr=!je(xr)||!fr.declarations?void 0:e.find(fr.declarations,e.isExportSpecifier);if(Wr)lr(Wr.name,fr,Wr,yt.createSearch(We,Ee,void 0),yt,!0,!0);else if(We&&We.kind===88&&fr.escapedName==="default"&&fr.parent)Hr(We,fr,yt),z(We,fr,{exportingModuleSymbol:fr.parent,exportKind:1},yt);else{var tr=yt.createSearch(We,fr,void 0,{allSearchSymbols:We?Rt(fr,We,me,xr.use===2,!!xr.providePrefixAndSuffixTextForRename,!!xr.implementations):[fr]});j(fr,yt,tr)}return et}function j(Ee,We,ee){var Ne=Ge(Ee);if(Ne)Ye(Ne,Ne.getSourceFile(),ee,We,!(e.isSourceFile(Ne)&&!e.contains(We.sourceFiles,Ne)));else for(var me=0,Ze=We.sourceFiles;me<Ze.length;me++){var xr=Ze[me];We.cancellationToken.throwIfCancellationRequested(),Me(xr,ee,We)}}function Se(Ee){switch(Ee.kind){case 170:case 134:return 1;case 79:if(e.isClassLike(Ee.parent))return e.Debug.assert(Ee.parent.name===Ee),2;default:return 0}}function Ce(Ee,We,ee,Ne){var me=We.parent;return e.isExportSpecifier(me)&&Ne?Cr(We,Ee,me,ee):e.firstDefined(Ee.declarations,function(Ze){if(!Ze.parent){if(Ee.flags&33554432)return;e.Debug.fail("Unexpected symbol at ".concat(e.Debug.formatSyntaxKind(We.kind),": ").concat(e.Debug.formatSymbol(Ee)))}return e.isTypeLiteralNode(Ze.parent)&&e.isUnionTypeNode(Ze.parent.parent)?ee.getPropertyOfType(ee.getTypeFromTypeNode(Ze.parent.parent),Ee.name):void 0})}var O;(function(Ee){Ee[Ee.None=0]="None",Ee[Ee.Constructor=1]="Constructor",Ee[Ee.Class=2]="Class"})(O||(O={}));function Q(Ee){if(!!(Ee.flags&33555968)){var We=Ee.declarations&&e.find(Ee.declarations,function(ee){return!e.isSourceFile(ee)&&!e.isModuleDeclaration(ee)});return We&&We.symbol}}var V=function(){function Ee(We,ee,Ne,me,Ze,xr,fr,dr){this.sourceFiles=We,this.sourceFilesSet=ee,this.specialSearchKind=Ne,this.checker=me,this.cancellationToken=Ze,this.searchMeaning=xr,this.options=fr,this.result=dr,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return Ee.prototype.includesSourceFile=function(We){return this.sourceFilesSet.has(We.fileName)},Ee.prototype.getImportSearches=function(We,ee){return this.importTracker||(this.importTracker=n.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(We,ee,this.options.use===2)},Ee.prototype.createSearch=function(We,ee,Ne,me){me===void 0&&(me={});var Ze=me.text,xr=Ze===void 0?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(ee)||Q(ee)||ee)):Ze,fr=me.allSearchSymbols,dr=fr===void 0?[ee]:fr,et=e.escapeLeadingUnderscores(xr),yt=this.options.implementations&&We?fe(We,ee,this.checker):void 0;return{symbol:ee,comingFrom:Ne,text:xr,escapedText:et,parents:yt,allSearchSymbols:dr,includes:function(Wr){return e.contains(dr,Wr)}}},Ee.prototype.referenceAdder=function(We){var ee=e.getSymbolId(We),Ne=this.symbolIdToReferences[ee];return Ne||(Ne=this.symbolIdToReferences[ee]=[],this.result.push({definition:{type:0,symbol:We},references:Ne})),function(me,Ze){return Ne.push(f(me,Ze))}},Ee.prototype.addStringOrCommentReference=function(We,ee){this.result.push({definition:void 0,references:[{kind:0,fileName:We,textSpan:ee}]})},Ee.prototype.markSearchedSymbols=function(We,ee){for(var Ne=e.getNodeId(We),me=this.sourceFileToSeenSymbols[Ne]||(this.sourceFileToSeenSymbols[Ne]=new e.Set),Ze=!1,xr=0,fr=ee;xr<fr.length;xr++){var dr=fr[xr];Ze=e.tryAddToSet(me,e.getSymbolId(dr))||Ze}return Ze},Ee}();function z(Ee,We,ee,Ne){var me=Ne.getImportSearches(We,ee),Ze=me.importSearches,xr=me.singleReferences,fr=me.indirectUsers;if(xr.length)for(var dr=Ne.referenceAdder(We),et=0,yt=xr;et<yt.length;et++){var Wr=yt[et];ge(Wr,Ne)&&dr(Wr)}for(var tr=0,Ir=Ze;tr<Ir.length;tr++){var kr=Ir[tr],zr=kr[0],gt=kr[1];Ae(zr.getSourceFile(),Ne.createSearch(zr,gt,1),Ne)}if(fr.length){var vt=void 0;switch(ee.exportKind){case 0:vt=Ne.createSearch(Ee,We,1);break;case 1:vt=Ne.options.use===2?void 0:Ne.createSearch(Ee,We,1,{text:"default"});break}if(vt)for(var ut=0,ht=fr;ut<ht.length;ut++){var xt=ht[ut];Me(xt,vt,Ne)}}}function Te(Ee,We,ee,Ne,me,Ze,xr,fr){for(var dr=n.createImportTracker(Ee,new e.Set(Ee.map(function(mt){return mt.fileName})),We,ee),et=dr(Ne,{exportKind:xr?1:0,exportingModuleSymbol:me},!1),yt=et.importSearches,Wr=et.indirectUsers,tr=0,Ir=yt;tr<Ir.length;tr++){var kr=Ir[tr][0];fr(kr)}for(var zr=0,gt=Wr;zr<gt.length;zr++)for(var vt=gt[zr],ut=0,ht=_e(vt,xr?"default":Ze);ut<ht.length;ut++){var xt=ht[ut],wt=We.getSymbolAtLocation(xt),Qt=e.some(wt==null?void 0:wt.declarations,function(mt){return!!e.tryCast(mt,e.isExportAssignment)});e.isIdentifier(xt)&&!e.isImportOrExportSpecifier(xt.parent)&&(wt===Ne||Qt)&&fr(xt)}}T.eachExportReference=Te;function ge(Ee,We){return Lr(Ee,We)?We.options.use!==2?!0:e.isIdentifier(Ee)?!(e.isImportOrExportSpecifier(Ee.parent)&&Ee.escapedText==="default"):!1:!1}function ke(Ee,We){if(!!Ee.declarations)for(var ee=0,Ne=Ee.declarations;ee<Ne.length;ee++){var me=Ne[ee],Ze=me.getSourceFile();Ae(Ze,We.createSearch(me,Ee,0),We,We.includesSourceFile(Ze))}}function Me(Ee,We,ee){e.getNameTable(Ee).get(We.escapedText)!==void 0&&Ae(Ee,We,ee)}function Ie(Ee,We){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(Ee.parent.parent)?We.getPropertySymbolOfDestructuringAssignment(Ee):void 0}function Ge(Ee){var We=Ee.declarations,ee=Ee.flags,Ne=Ee.parent,me=Ee.valueDeclaration;if(me&&(me.kind===212||me.kind===225))return me;if(!!We){if(ee&8196){var Ze=e.find(We,function(Ir){return e.hasEffectiveModifier(Ir,8)||e.isPrivateIdentifierClassElementDeclaration(Ir)});return Ze?e.getAncestor(Ze,256):void 0}if(!We.some(e.isObjectBindingElementWithoutPropertyName)){var xr=Ne&&!(Ee.flags&262144);if(!(xr&&!(e.isExternalModuleSymbol(Ne)&&!Ne.globalExports))){for(var fr,dr=0,et=We;dr<et.length;dr++){var yt=et[dr],Wr=e.getContainerNode(yt);if(fr&&fr!==Wr||!Wr||Wr.kind===303&&!e.isExternalOrCommonJsModule(Wr))return;if(fr=Wr,e.isFunctionExpression(fr))for(var tr=void 0;tr=e.getNextJSDocCommentLocation(fr);)fr=tr}return xr?fr.getSourceFile():fr}}}}function he(Ee,We,ee,Ne){return Ne===void 0&&(Ne=ee),ve(Ee,We,ee,function(){return!0},Ne)||!1}T.isSymbolReferencedInFile=he;function ve(Ee,We,ee,Ne,me){me===void 0&&(me=ee);var Ze=e.isParameterPropertyDeclaration(Ee.parent,Ee.parent.parent)?e.first(We.getSymbolsOfParameterPropertyDeclaration(Ee.parent,Ee.text)):We.getSymbolAtLocation(Ee);if(!!Ze)for(var xr=0,fr=_e(ee,Ze.name,me);xr<fr.length;xr++){var dr=fr[xr];if(!(!e.isIdentifier(dr)||dr===Ee||dr.escapedText!==Ee.escapedText)){var et=We.getSymbolAtLocation(dr);if(et===Ze||We.getShorthandAssignmentValueSymbol(dr.parent)===Ze||e.isExportSpecifier(dr.parent)&&Cr(dr,et,dr.parent,We)===Ze){var yt=Ne(dr);if(yt)return yt}}}}T.eachSymbolReferenceInFile=ve;function Ve(Ee,We,ee,Ne){if(!Ee.name||!e.isIdentifier(Ee.name))return!1;for(var me=e.Debug.checkDefined(ee.getSymbolAtLocation(Ee.name)),Ze=0,xr=We;Ze<xr.length;Ze++)for(var fr=xr[Ze],dr=0,et=_e(fr,me.name);dr<et.length;dr++){var yt=et[dr];if(!(!e.isIdentifier(yt)||yt===Ee.name||yt.escapedText!==Ee.name.escapedText)){var Wr=e.climbPastPropertyAccess(yt),tr=e.isCallExpression(Wr.parent)&&Wr.parent.expression===Wr?Wr.parent:void 0,Ir=ee.getSymbolAtLocation(yt);if(Ir&&ee.getRootSymbols(Ir).some(function(kr){return kr===me})&&Ne(yt,tr))return!0}}return!1}T.someSignatureUsage=Ve;function _e(Ee,We,ee){return ee===void 0&&(ee=Ee),Le(Ee,We,ee).map(function(Ne){return e.getTouchingPropertyName(Ee,Ne)})}function Le(Ee,We,ee){ee===void 0&&(ee=Ee);var Ne=[];if(!We||!We.length)return Ne;for(var me=Ee.text,Ze=me.length,xr=We.length,fr=me.indexOf(We,ee.pos);fr>=0&&!(fr>ee.end);){var dr=fr+xr;(fr===0||!e.isIdentifierPart(me.charCodeAt(fr-1),99))&&(dr===Ze||!e.isIdentifierPart(me.charCodeAt(dr),99))&&Ne.push(fr),fr=me.indexOf(We,fr+xr+1)}return Ne}function qe(Ee,We){var ee=Ee.getSourceFile(),Ne=We.text,me=e.mapDefined(_e(ee,Ne,Ee),function(Ze){return Ze===We||e.isJumpStatementTarget(Ze)&&e.getTargetLabel(Ze,Ne)===We?f(Ze):void 0});return[{definition:{type:1,node:We},references:me}]}function Xe(Ee,We){switch(Ee.kind){case 80:if(e.isJSDocMemberName(Ee.parent))return!0;case 79:return Ee.text.length===We.length;case 14:case 10:{var ee=Ee;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(ee)||e.isNameOfModuleDeclaration(Ee)||e.isExpressionOfExternalModuleImportEqualsDeclaration(Ee)||e.isCallExpression(Ee.parent)&&e.isBindableObjectDefinePropertyCall(Ee.parent)&&Ee.parent.arguments[1]===Ee)&&ee.text.length===We.length}case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(Ee)&&Ee.text.length===We.length;case 88:return We.length===7;default:return!1}}function De(Ee,We,ee,Ne){var me=e.flatMap(Ee,function(Ze){return ee.throwIfCancellationRequested(),e.mapDefined(_e(Ze,e.tokenToString(We),Ze),function(xr){if(xr.kind===We&&(!Ne||Ne(xr)))return f(xr)})});return me.length?[{definition:{type:2,node:me[0].node},references:me}]:void 0}function Ae(Ee,We,ee,Ne){return Ne===void 0&&(Ne=!0),ee.cancellationToken.throwIfCancellationRequested(),Ye(Ee,Ee,We,ee,Ne)}function Ye(Ee,We,ee,Ne,me){if(!!Ne.markSearchedSymbols(We,ee.allSearchSymbols))for(var Ze=0,xr=Le(We,ee.text,Ee);Ze<xr.length;Ze++){var fr=xr[Ze];Er(We,fr,ee,Ne,me)}}function Lr(Ee,We){return!!(e.getMeaningFromLocation(Ee)&We.searchMeaning)}function Er(Ee,We,ee,Ne,me){var Ze=e.getTouchingPropertyName(Ee,We);if(!Xe(Ze,ee.text)){!Ne.options.implementations&&(Ne.options.findInStrings&&e.isInString(Ee,We)||Ne.options.findInComments&&e.isInNonReferenceComment(Ee,We))&&Ne.addStringOrCommentReference(Ee.fileName,e.createTextSpan(We,ee.text.length));return}if(!!Lr(Ze,Ne)){var xr=Ne.checker.getSymbolAtLocation(Ze);if(!!xr){var fr=Ze.parent;if(!(e.isImportSpecifier(fr)&&fr.propertyName===Ze)){if(e.isExportSpecifier(fr)){e.Debug.assert(Ze.kind===79),lr(Ze,xr,fr,ee,Ne,me);return}var dr=zn(ee,xr,Ze,Ne);if(!dr){Pe(xr,ee,Ne);return}switch(Ne.specialSearchKind){case 0:me&&Hr(Ze,dr,Ne);break;case 1:ur(Ze,Ee,ee,Ne);break;case 2:vr(Ze,ee,Ne);break;default:e.Debug.assertNever(Ne.specialSearchKind)}e.isInJSFile(Ze)&&Ze.parent.kind===202&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(Ze.parent)&&(xr=Ze.parent.symbol,!xr)||Ke(Ze,xr,ee,Ne)}}}}function lr(Ee,We,ee,Ne,me,Ze,xr){e.Debug.assert(!xr||!!me.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var fr=ee.parent,dr=ee.propertyName,et=ee.name,yt=fr.parent,Wr=Cr(Ee,We,ee,me.checker);if(!xr&&!Ne.includes(Wr))return;if(dr?Ee===dr?(yt.moduleSpecifier||vt(),Ze&&me.options.use!==2&&me.markSeenReExportRHS(et)&&Hr(et,e.Debug.checkDefined(ee.symbol),me)):me.markSeenReExportRHS(Ee)&&vt():me.options.use===2&&et.escapedText==="default"||vt(),!je(me.options)||xr){var tr=Ee.originalKeywordKind===88||ee.name.originalKeywordKind===88,Ir=tr?1:0,kr=e.Debug.checkDefined(ee.symbol),zr=n.getExportInfo(kr,Ir,me.checker);zr&&z(Ee,kr,zr,me)}if(Ne.comingFrom!==1&&yt.moduleSpecifier&&!dr&&!je(me.options)){var gt=me.checker.getExportSpecifierLocalTargetSymbol(ee);gt&&ke(gt,me)}function vt(){Ze&&Hr(Ee,Wr,me)}}function Cr(Ee,We,ee,Ne){return Or(Ee,ee)&&Ne.getExportSpecifierLocalTargetSymbol(ee)||We}function Or(Ee,We){var ee=We.parent,Ne=We.propertyName,me=We.name;return e.Debug.assert(Ne===Ee||me===Ee),Ne?Ne===Ee:!ee.parent.moduleSpecifier}function Ke(Ee,We,ee,Ne){var me=n.getImportOrExportSymbol(Ee,We,Ne.checker,ee.comingFrom===1);if(!!me){var Ze=me.symbol;me.kind===0?je(Ne.options)||ke(Ze,Ne):z(Ee,Ze,me.exportInfo,Ne)}}function Pe(Ee,We,ee){var Ne=Ee.flags,me=Ee.valueDeclaration,Ze=ee.checker.getShorthandAssignmentValueSymbol(me),xr=me&&e.getNameOfDeclaration(me);!(Ne&33554432)&&xr&&We.includes(Ze)&&Hr(xr,Ze,ee)}function Hr(Ee,We,ee){var Ne="kind"in We?We:{kind:void 0,symbol:We},me=Ne.kind,Ze=Ne.symbol,xr=ee.referenceAdder(Ze);ee.options.implementations?He(Ee,xr,ee):xr(Ee,me)}function ur(Ee,We,ee,Ne){e.isNewExpressionTarget(Ee)&&Hr(Ee,ee.symbol,Ne);var me=function(){return Ne.referenceAdder(ee.symbol)};if(e.isClassLike(Ee.parent))e.Debug.assert(Ee.kind===88||Ee.parent.name===Ee),de(ee.symbol,We,me());else{var Ze=or(Ee);Ze&&($e(Ze,me()),Fr(Ze,Ne))}}function vr(Ee,We,ee){Hr(Ee,We.symbol,ee);var Ne=Ee.parent;if(!(ee.options.use===2||!e.isClassLike(Ne))){e.Debug.assert(Ne.name===Ee);for(var me=ee.referenceAdder(We.symbol),Ze=0,xr=Ne.members;Ze<xr.length;Ze++){var fr=xr[Ze];!(e.isMethodOrAccessor(fr)&&e.isStatic(fr))||fr.body&&fr.body.forEachChild(function dr(et){et.kind===108?me(et):!e.isFunctionLike(et)&&!e.isClassLike(et)&&et.forEachChild(dr)})}}}function de(Ee,We,ee){var Ne=Fe(Ee);if(Ne&&Ne.declarations)for(var me=0,Ze=Ne.declarations;me<Ze.length;me++){var xr=Ze[me],fr=e.findChildOfKind(xr,134,We);e.Debug.assert(xr.kind===170&&!!fr),ee(fr)}Ee.exports&&Ee.exports.forEach(function(dr){var et=dr.valueDeclaration;if(et&&et.kind===168){var yt=et.body;yt&&ye(yt,108,function(Wr){e.isNewExpressionTarget(Wr)&&ee(Wr)})}})}function Fe(Ee){return Ee.members&&Ee.members.get("__constructor")}function $e(Ee,We){var ee=Fe(Ee.symbol);if(!!(ee&&ee.declarations))for(var Ne=0,me=ee.declarations;Ne<me.length;Ne++){var Ze=me[Ne];e.Debug.assert(Ze.kind===170);var xr=Ze.body;xr&&ye(xr,106,function(fr){e.isCallExpressionTarget(fr)&&We(fr)})}}function Dr(Ee){return!!Fe(Ee.symbol)}function Fr(Ee,We){if(!Dr(Ee)){var ee=Ee.symbol,Ne=We.createSearch(void 0,ee,void 0);j(ee,We,Ne)}}function He(Ee,We,ee){if(e.isDeclarationName(Ee)&&Rr(Ee.parent)){We(Ee);return}if(Ee.kind!==79)return;Ee.parent.kind===295&&sr(Ee,ee.checker,We);var Ne=pr(Ee);if(Ne){We(Ne);return}var me=e.findAncestor(Ee,function(dr){return!e.isQualifiedName(dr.parent)&&!e.isTypeNode(dr.parent)&&!e.isTypeElement(dr.parent)}),Ze=me.parent;if(e.hasType(Ze)&&Ze.type===me&&ee.markSeenContainingTypeReference(Ze))if(e.hasInitializer(Ze))fr(Ze.initializer);else if(e.isFunctionLike(Ze)&&Ze.body){var xr=Ze.body;xr.kind===234?e.forEachReturnStatement(xr,function(dr){dr.expression&&fr(dr.expression)}):fr(xr)}else e.isAssertionExpression(Ze)&&fr(Ze.expression);function fr(dr){Jr(dr)&&We(dr)}}function pr(Ee){return e.isIdentifier(Ee)||e.isPropertyAccessExpression(Ee)?pr(Ee.parent):e.isExpressionWithTypeArguments(Ee)?e.tryCast(Ee.parent.parent,e.isClassLike):void 0}function Jr(Ee){switch(Ee.kind){case 211:return Jr(Ee.expression);case 213:case 212:case 204:case 225:case 203:return!0;default:return!1}}function ze(Ee,We,ee,Ne){if(Ee===We)return!0;var me=e.getSymbolId(Ee)+","+e.getSymbolId(We),Ze=ee.get(me);if(Ze!==void 0)return Ze;ee.set(me,!1);var xr=!!Ee.declarations&&Ee.declarations.some(function(fr){return e.getAllSuperTypeNodes(fr).some(function(dr){var et=Ne.getTypeAtLocation(dr);return!!et&&!!et.symbol&&ze(et.symbol,We,ee,Ne)})});return ee.set(me,xr),xr}function Ar(Ee){var We=e.getSuperContainer(Ee,!1);if(!!We){var ee=32;switch(We.kind){case 166:case 165:case 168:case 167:case 170:case 171:case 172:ee&=e.getSyntacticModifierFlags(We),We=We.parent;break;default:return}var Ne=We.getSourceFile(),me=e.mapDefined(_e(Ne,"super",We),function(Ze){if(Ze.kind===106){var xr=e.getSuperContainer(Ze,!1);return xr&&e.isStatic(xr)===!!ee&&xr.parent.symbol===We.symbol?f(Ze):void 0}});return[{definition:{type:0,symbol:We.symbol},references:me}]}}function Yr(Ee){return Ee.kind===79&&Ee.parent.kind===163&&Ee.parent.name===Ee}function lt(Ee,We,ee){var Ne=e.getThisContainer(Ee,!1),me=32;switch(Ne.kind){case 168:case 167:if(e.isObjectLiteralMethod(Ne)){me&=e.getSyntacticModifierFlags(Ne),Ne=Ne.parent;break}case 166:case 165:case 170:case 171:case 172:me&=e.getSyntacticModifierFlags(Ne),Ne=Ne.parent;break;case 303:if(e.isExternalModule(Ne)||Yr(Ee))return;case 255:case 212:break;default:return}var Ze=e.flatMap(Ne.kind===303?We:[Ne.getSourceFile()],function(fr){return ee.throwIfCancellationRequested(),_e(fr,"this",e.isSourceFile(Ne)?fr:Ne).filter(function(dr){if(!e.isThis(dr))return!1;var et=e.getThisContainer(dr,!1);switch(Ne.kind){case 212:case 255:return Ne.symbol===et.symbol;case 168:case 167:return e.isObjectLiteralMethod(Ne)&&Ne.symbol===et.symbol;case 225:case 256:case 204:return et.parent&&Ne.symbol===et.parent.symbol&&e.isStatic(et)===!!me;case 303:return et.kind===303&&!e.isExternalModule(et)&&!Yr(dr)}})}).map(function(fr){return f(fr)}),xr=e.firstDefined(Ze,function(fr){return e.isParameter(fr.node.parent)?fr.node:void 0});return[{definition:{type:3,node:xr||Ee},references:Ze}]}function tt(Ee,We,ee,Ne){var me=e.getContextualTypeFromParentOrAncestorTypeNode(Ee,ee),Ze=e.flatMap(We,function(xr){return Ne.throwIfCancellationRequested(),e.mapDefined(_e(xr,Ee.text),function(fr){if(e.isStringLiteralLike(fr)&&fr.text===Ee.text)if(me){var dr=e.getContextualTypeFromParentOrAncestorTypeNode(fr,ee);if(me!==ee.getStringType()&&me===dr)return f(fr,2)}else return f(fr,2)})});return[{definition:{type:4,node:Ee},references:Ze}]}function Rt(Ee,We,ee,Ne,me,Ze){var xr=[];return cn(Ee,We,ee,Ne,!(Ne&&me),function(fr,dr,et){et&&In(Ee)!==In(et)&&(et=void 0),xr.push(et||dr||fr)},function(){return!Ze}),xr}function cn(Ee,We,ee,Ne,me,Ze,xr){var fr=e.getContainingObjectLiteralElement(We);if(fr){var dr=ee.getShorthandAssignmentValueSymbol(We.parent);if(dr&&Ne)return Ze(dr,void 0,void 0,3);var et=ee.getContextualType(fr.parent),yt=et&&e.firstDefined(e.getPropertySymbolsFromContextualType(fr,ee,et,!0),function(sa){return mt(sa,4)});if(yt)return yt;var Wr=Ie(We,ee),tr=Wr&&Ze(Wr,void 0,void 0,4);if(tr)return tr;var Ir=dr&&Ze(dr,void 0,void 0,3);if(Ir)return Ir}var kr=C(We,Ee,ee);if(kr){var zr=Ze(kr,void 0,void 0,1);if(zr)return zr}var gt=mt(Ee);if(gt)return gt;if(Ee.valueDeclaration&&e.isParameterPropertyDeclaration(Ee.valueDeclaration,Ee.valueDeclaration.parent)){var vt=ee.getSymbolsOfParameterPropertyDeclaration(e.cast(Ee.valueDeclaration,e.isParameter),Ee.name);return e.Debug.assert(vt.length===2&&!!(vt[0].flags&1)&&!!(vt[1].flags&4)),mt(Ee.flags&1?vt[1]:vt[0])}var ut=e.getDeclarationOfKind(Ee,274);if(!Ne||ut&&!ut.propertyName){var ht=ut&&ee.getExportSpecifierLocalTargetSymbol(ut);if(ht){var xt=Ze(ht,void 0,void 0,1);if(xt)return xt}}if(!Ne){var wt=void 0;return me?wt=e.isObjectBindingElementWithoutPropertyName(We.parent)?e.getPropertySymbolFromBindingElement(ee,We.parent):void 0:wt=rn(Ee,ee),wt&&mt(wt,4)}e.Debug.assert(Ne);var Qt=me;if(Qt){var wt=rn(Ee,ee);return wt&&mt(wt,4)}function mt(sa,ba){return e.firstDefined(ee.getRootSymbols(sa),function(Jn){return Ze(sa,Jn,void 0,ba)||(Jn.parent&&Jn.parent.flags&96&&xr(Jn)?bn(Jn.parent,Jn.name,ee,function(na){return Ze(sa,Jn,na,ba)}):void 0)})}function rn(sa,ba){var Jn=e.getDeclarationOfKind(sa,202);if(Jn&&e.isObjectBindingElementWithoutPropertyName(Jn))return e.getPropertySymbolFromBindingElement(ba,Jn)}}function bn(Ee,We,ee,Ne){var me=new e.Map;return Ze(Ee);function Ze(xr){if(!(!(xr.flags&96)||!e.addToSeen(me,e.getSymbolId(xr))))return e.firstDefined(xr.declarations,function(fr){return e.firstDefined(e.getAllSuperTypeNodes(fr),function(dr){var et=ee.getTypeAtLocation(dr),yt=et&&et.symbol&&ee.getPropertyOfType(et,We);return et&&yt&&(e.firstDefined(ee.getRootSymbols(yt),Ne)||Ze(et.symbol))})})}}function In(Ee){if(!Ee.valueDeclaration)return!1;var We=e.getEffectiveModifierFlags(Ee.valueDeclaration);return!!(We&32)}function zn(Ee,We,ee,Ne){var me=Ne.checker;return cn(We,ee,me,!1,Ne.options.use!==2||!!Ne.options.providePrefixAndSuffixTextForRename,function(Ze,xr,fr,dr){return fr&&In(We)!==In(fr)&&(fr=void 0),Ee.includes(fr||xr||Ze)?{symbol:xr&&!(e.getCheckFlags(Ze)&6)?xr:Ze,kind:dr}:void 0},function(Ze){return!(Ee.parents&&!Ee.parents.some(function(xr){return ze(Ze.parent,xr,Ne.inheritsFromCache,me)}))})}function ir(Ee,We){var ee=e.getMeaningFromLocation(Ee),Ne=We.declarations;if(Ne){var me=void 0;do{me=ee;for(var Ze=0,xr=Ne;Ze<xr.length;Ze++){var fr=xr[Ze],dr=e.getMeaningFromDeclaration(fr);dr&ee&&(ee|=dr)}}while(ee!==me)}return ee}T.getIntersectingMeaningFromDeclarations=ir;function Rr(Ee){return Ee.flags&8388608?!(e.isInterfaceDeclaration(Ee)||e.isTypeAliasDeclaration(Ee)):e.isVariableLike(Ee)?e.hasInitializer(Ee):e.isFunctionLikeDeclaration(Ee)?!!Ee.body:e.isClassLike(Ee)||e.isModuleOrEnumDeclaration(Ee)}function sr(Ee,We,ee){var Ne=We.getSymbolAtLocation(Ee),me=We.getShorthandAssignmentValueSymbol(Ne.valueDeclaration);if(me)for(var Ze=0,xr=me.getDeclarations();Ze<xr.length;Ze++){var fr=xr[Ze];e.getMeaningFromDeclaration(fr)&1&&ee(fr)}}T.getReferenceEntriesForShorthandPropertyAssignment=sr;function ye(Ee,We,ee){e.forEachChild(Ee,function(Ne){Ne.kind===We&&ee(Ne),ye(Ne,We,ee)})}function or(Ee){return e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(Ee).parent)}function fe(Ee,We,ee){var Ne=e.isRightSideOfPropertyAccess(Ee)?Ee.parent:void 0,me=Ne&&ee.getTypeAtLocation(Ne.expression),Ze=e.mapDefined(me&&(me.isUnionOrIntersection()?me.types:me.symbol===We.parent?void 0:[me]),function(xr){return xr.symbol&&xr.symbol.flags&96?xr.symbol:void 0});return Ze.length===0?void 0:Ze}function je(Ee){return Ee.use===2&&Ee.providePrefixAndSuffixTextForRename}})($=n.Core||(n.Core={}))})(e.FindAllReferences||(e.FindAllReferences={}))})(gr||(gr={}));var gr;(function(e){(function(n){function f(D){return(e.isFunctionExpression(D)||e.isClassExpression(D))&&e.isNamedDeclaration(D)}function d(D){return(e.isFunctionExpression(D)||e.isArrowFunction(D)||e.isClassExpression(D))&&e.isVariableDeclaration(D.parent)&&D===D.parent.initializer&&e.isIdentifier(D.parent.name)&&!!(e.getCombinedNodeFlags(D.parent)&2)}function a(D){return e.isSourceFile(D)||e.isModuleDeclaration(D)||e.isFunctionDeclaration(D)||e.isFunctionExpression(D)||e.isClassDeclaration(D)||e.isClassExpression(D)||e.isClassStaticBlockDeclaration(D)||e.isMethodDeclaration(D)||e.isMethodSignature(D)||e.isGetAccessorDeclaration(D)||e.isSetAccessorDeclaration(D)}function p(D){return e.isSourceFile(D)||e.isModuleDeclaration(D)&&e.isIdentifier(D.name)||e.isFunctionDeclaration(D)||e.isClassDeclaration(D)||e.isClassStaticBlockDeclaration(D)||e.isMethodDeclaration(D)||e.isMethodSignature(D)||e.isGetAccessorDeclaration(D)||e.isSetAccessorDeclaration(D)||f(D)||d(D)}function N(D){return e.isSourceFile(D)?D:e.isNamedDeclaration(D)?D.name:d(D)?D.parent.name:e.Debug.checkDefined(D.modifiers&&e.find(D.modifiers,H))}function H(D){return D.kind===88}function h(D,C){var m=N(C);return m&&D.getSymbolAtLocation(m)}function v(D,C){if(e.isSourceFile(C))return{text:C.fileName,pos:0,end:0};if((e.isFunctionDeclaration(C)||e.isClassDeclaration(C))&&!e.isNamedDeclaration(C)){var m=C.modifiers&&e.find(C.modifiers,H);if(m)return{text:"default",pos:m.getStart(),end:m.getEnd()}}if(e.isClassStaticBlockDeclaration(C)){var u=C.getSourceFile(),g=e.skipTrivia(u.text,e.moveRangePastModifiers(C).pos),F=g+6,te=D.getTypeChecker(),ue=te.getSymbolAtLocation(C.parent),X=ue?"".concat(te.symbolToString(ue,C.parent)," "):"";return{text:"".concat(X,"static {}"),pos:g,end:F}}var j=d(C)?C.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(C),"Expected call hierarchy item to have a name"),Se=e.isIdentifier(j)?e.idText(j):e.isStringOrNumericLiteralLike(j)?j.text:e.isComputedPropertyName(j)&&e.isStringOrNumericLiteralLike(j.expression)?j.expression.text:void 0;if(Se===void 0){var te=D.getTypeChecker(),ue=te.getSymbolAtLocation(j);ue&&(Se=te.symbolToString(ue,C))}if(Se===void 0){var Ce=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});Se=e.usingSingleLineStringWriter(function(O){return Ce.writeNode(4,C,C.getSourceFile(),O)})}return{text:Se,pos:j.getStart(),end:j.getEnd()}}function A(D){var C,m;if(d(D))return e.isModuleBlock(D.parent.parent.parent.parent)&&e.isIdentifier(D.parent.parent.parent.parent.parent.name)?D.parent.parent.parent.parent.parent.name.getText():void 0;switch(D.kind){case 171:case 172:case 168:return D.parent.kind===204?(C=e.getAssignedName(D.parent))===null||C===void 0?void 0:C.getText():(m=e.getNameOfDeclaration(D.parent))===null||m===void 0?void 0:m.getText();case 255:case 256:case 260:if(e.isModuleBlock(D.parent)&&e.isIdentifier(D.parent.parent.name))return D.parent.parent.name.getText()}}function q(D,C){if(C.body)return C;if(e.isConstructorDeclaration(C))return e.getFirstConstructorWithBody(C.parent);if(e.isFunctionDeclaration(C)||e.isMethodDeclaration(C)){var m=h(D,C);return m&&m.valueDeclaration&&e.isFunctionLikeDeclaration(m.valueDeclaration)&&m.valueDeclaration.body?m.valueDeclaration:void 0}return C}function ie(D,C){var m=h(D,C),u;if(m&&m.declarations){var g=e.indicesOf(m.declarations),F=e.map(m.declarations,function(Ce){return{file:Ce.getSourceFile().fileName,pos:Ce.pos}});g.sort(function(Ce,O){return e.compareStringsCaseSensitive(F[Ce].file,F[O].file)||F[Ce].pos-F[O].pos});for(var te=e.map(g,function(Ce){return m.declarations[Ce]}),ue=void 0,X=0,j=te;X<j.length;X++){var Se=j[X];p(Se)&&((!ue||ue.parent!==Se.parent||ue.end!==Se.pos)&&(u=e.append(u,Se)),ue=Se)}}return u}function b(D,C){var m,u,g;return e.isClassStaticBlockDeclaration(C)?C:e.isFunctionLikeDeclaration(C)?(u=(m=q(D,C))!==null&&m!==void 0?m:ie(D,C))!==null&&u!==void 0?u:C:(g=ie(D,C))!==null&&g!==void 0?g:C}function P(D,C){for(var m=D.getTypeChecker(),u=!1;;){if(p(C))return b(m,C);if(a(C)){var g=e.findAncestor(C,p);return g&&b(m,g)}if(e.isDeclarationName(C)){if(p(C.parent))return b(m,C.parent);if(a(C.parent)){var g=e.findAncestor(C.parent,p);return g&&b(m,g)}return e.isVariableDeclaration(C.parent)&&C.parent.initializer&&d(C.parent.initializer)?C.parent.initializer:void 0}if(e.isConstructorDeclaration(C))return p(C.parent)?C.parent:void 0;if(C.kind===124&&e.isClassStaticBlockDeclaration(C.parent)){C=C.parent;continue}if(e.isVariableDeclaration(C)&&C.initializer&&d(C.initializer))return C.initializer;if(!u){var F=m.getSymbolAtLocation(C);if(F&&(F.flags&2097152&&(F=m.getAliasedSymbol(F)),F.valueDeclaration)){u=!0,C=F.valueDeclaration;continue}}return}}n.resolveCallHierarchyDeclaration=P;function S(D,C){var m=C.getSourceFile(),u=v(D,C),g=A(C),F=e.getNodeKind(C),te=e.getNodeModifiers(C),ue=e.createTextSpanFromBounds(e.skipTrivia(m.text,C.getFullStart(),!1,!0),C.getEnd()),X=e.createTextSpanFromBounds(u.pos,u.end);return{file:m.fileName,kind:F,kindModifiers:te,name:u.text,containerName:g,span:ue,selectionSpan:X}}n.createCallHierarchyItem=S;function B(D){return D!==void 0}function J(D){if(D.kind===1){var C=D.node;if(e.isCallOrNewExpressionTarget(C,!0,!0)||e.isTaggedTemplateTag(C,!0,!0)||e.isDecoratorTarget(C,!0,!0)||e.isJsxOpeningLikeElementTagName(C,!0,!0)||e.isRightSideOfPropertyAccess(C)||e.isArgumentExpressionOfElementAccess(C)){var m=C.getSourceFile(),u=e.findAncestor(C,p)||m;return{declaration:u,range:e.createTextRangeFromNode(C,m)}}}}function k(D){return e.getNodeId(D.declaration)}function M(D,C){return{from:D,fromSpans:C}}function x(D,C){return M(S(D,C[0].declaration),e.map(C,function(m){return e.createTextSpanFromRange(m.range)}))}function w(D,C,m){if(e.isSourceFile(C)||e.isModuleDeclaration(C)||e.isClassStaticBlockDeclaration(C))return[];var u=N(C),g=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(D,m,D.getSourceFiles(),u,0,{use:1},J),B);return g?e.group(g,k,function(F){return x(D,F)}):[]}n.getIncomingCalls=w;function K(D,C){function m(g){var F=e.isTaggedTemplateExpression(g)?g.tag:e.isJsxOpeningLikeElement(g)?g.tagName:e.isAccessExpression(g)||e.isClassStaticBlockDeclaration(g)?g:g.expression,te=P(D,F);if(te){var ue=e.createTextRangeFromNode(F,g.getSourceFile());if(e.isArray(te))for(var X=0,j=te;X<j.length;X++){var Se=j[X];C.push({declaration:Se,range:ue})}else C.push({declaration:te,range:ue})}}function u(g){if(!!g&&!(g.flags&8388608)){if(p(g)){if(e.isClassLike(g))for(var F=0,te=g.members;F<te.length;F++){var ue=te[F];ue.name&&e.isComputedPropertyName(ue.name)&&u(ue.name.expression)}return}switch(g.kind){case 79:case 264:case 265:case 271:case 257:case 258:return;case 169:m(g);return;case 210:case 228:u(g.expression);return;case 253:case 163:u(g.name),u(g.initializer);return;case 207:m(g),u(g.expression),e.forEach(g.arguments,u);return;case 208:m(g),u(g.expression),e.forEach(g.arguments,u);return;case 209:m(g),u(g.tag),u(g.template);return;case 279:case 278:m(g),u(g.tagName),u(g.attributes);return;case 164:m(g),u(g.expression);return;case 205:case 206:m(g),e.forEachChild(g,u);break}e.isPartOfTypeNode(g)||e.forEachChild(g,u)}}return u}function Z(D,C){e.forEach(D.statements,C)}function ne(D,C){!e.hasSyntacticModifier(D,2)&&D.body&&e.isModuleBlock(D.body)&&e.forEach(D.body.statements,C)}function R(D,C,m){var u=q(D,C);u&&(e.forEach(u.parameters,m),m(u.body))}function Y(D,C){C(D.body)}function U(D,C){e.forEach(D.decorators,C);var m=e.getClassExtendsHeritageElement(D);m&&C(m.expression);for(var u=0,g=D.members;u<g.length;u++){var F=g[u];e.forEach(F.decorators,C),e.isPropertyDeclaration(F)?C(F.initializer):e.isConstructorDeclaration(F)&&F.body?(e.forEach(F.parameters,C),C(F.body)):e.isClassStaticBlockDeclaration(F)&&C(F)}}function $(D,C){var m=[],u=K(D,m);switch(C.kind){case 303:Z(C,u);break;case 260:ne(C,u);break;case 255:case 212:case 213:case 168:case 171:case 172:R(D.getTypeChecker(),C,u);break;case 256:case 225:U(C,u);break;case 169:Y(C,u);break;default:e.Debug.assertNever(C)}return m}function T(D,C){return{to:D,fromSpans:C}}function I(D,C){return T(S(D,C[0].declaration),e.map(C,function(m){return e.createTextSpanFromRange(m.range)}))}function y(D,C){return C.flags&8388608||e.isMethodSignature(C)?[]:e.group($(D,C),k,function(m){return I(D,m)})}n.getOutgoingCalls=y})(e.CallHierarchy||(e.CallHierarchy={}))})(gr||(gr={}));var gr;(function(e){function n(b,P,S,B,J,k,M){var x=e.hostUsesCaseSensitiveFileNames(B),w=e.createGetCanonicalFileName(x),K=f(P,S,w,M),Z=f(S,P,w,M);return e.textChanges.ChangeTracker.with({host:B,formatContext:J,preferences:k},function(ne){a(b,ne,K,P,S,B.getCurrentDirectory(),x),p(b,ne,K,Z,B,w)})}e.getEditsForFileRename=n;function f(b,P,S,B){var J=S(b);return function(M){var x=B&&B.tryGetSourcePosition({fileName:M,pos:0}),w=k(x?x.fileName:M);return x?w===void 0?void 0:d(x.fileName,w,M,S):w};function k(M){if(S(M)===J)return P;var x=e.tryRemoveDirectoryPrefix(M,J,S);return x===void 0?void 0:P+"/"+x}}e.getPathUpdater=f;function d(b,P,S,B){var J=e.getRelativePathFromFile(b,P,B);return H(e.getDirectoryPath(S),J)}function a(b,P,S,B,J,k,M){var x=b.getCompilerOptions().configFile;if(!x)return;var w=e.getDirectoryPath(x.fileName),K=e.getTsConfigObjectLiteralExpression(x);if(!K)return;ie(K,function(Y,U){switch(U){case"files":case"include":case"exclude":{var $=Z(Y);if($||U!=="include"||!e.isArrayLiteralExpression(Y.initializer))return;var T=e.mapDefined(Y.initializer.elements,function(y){return e.isStringLiteral(y)?y.text:void 0});if(T.length===0)return;var I=e.getFileMatcherPatterns(w,[],T,M,k);e.getRegexFromPattern(e.Debug.checkDefined(I.includeFilePattern),M).test(B)&&!e.getRegexFromPattern(e.Debug.checkDefined(I.includeFilePattern),M).test(J)&&P.insertNodeAfter(x,e.last(Y.initializer.elements),e.factory.createStringLiteral(R(J)));return}case"compilerOptions":ie(Y.initializer,function(y,D){var C=e.getOptionFromName(D);C&&(C.isFilePath||C.type==="list"&&C.element.isFilePath)?Z(y):D==="paths"&&ie(y.initializer,function(m){if(!!e.isArrayLiteralExpression(m.initializer))for(var u=0,g=m.initializer.elements;u<g.length;u++){var F=g[u];ne(F)}})});return}});function Z(Y){for(var U=e.isArrayLiteralExpression(Y.initializer)?Y.initializer.elements:[Y.initializer],$=!1,T=0,I=U;T<I.length;T++){var y=I[T];$=ne(y)||$}return $}function ne(Y){if(!e.isStringLiteral(Y))return!1;var U=H(w,Y.text),$=S(U);return $!==void 0?(P.replaceRangeWithText(x,q(Y,x),R($)),!0):!1}function R(Y){return e.getRelativePathFromDirectory(w,Y,!M)}}function p(b,P,S,B,J,k){for(var M=b.getSourceFiles(),x=function(ne){var R=S(ne.fileName),Y=R!=null?R:ne.fileName,U=e.getDirectoryPath(Y),$=B(ne.fileName),T=$||ne.fileName,I=e.getDirectoryPath(T),y=R!==void 0||$!==void 0;A(ne,P,function(D){if(!!e.pathIsRelative(D)){var C=H(I,D),m=S(C);return m===void 0?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(U,m,k))}},function(D){var C=b.getTypeChecker().getSymbolAtLocation(D);if(!((C==null?void 0:C.declarations)&&C.declarations.some(function(u){return e.isAmbientModule(u)}))){var m=$!==void 0?v(D,e.resolveModuleName(D.text,T,b.getCompilerOptions(),J),S,M):h(C,D,ne,b,J,S);return m!==void 0&&(m.updated||y&&e.pathIsRelative(D.text))?e.moduleSpecifiers.updateModuleSpecifier(b.getCompilerOptions(),k(Y),m.newFileName,e.createModuleSpecifierResolutionHost(b,J),D.text):void 0}})},w=0,K=M;w<K.length;w++){var Z=K[w];x(Z)}}function N(b,P){return e.normalizePath(e.combinePaths(b,P))}function H(b,P){return e.ensurePathIsNonModuleName(N(b,P))}function h(b,P,S,B,J,k){if(b){var M=e.find(b.declarations,e.isSourceFile).fileName,x=k(M);return x===void 0?{newFileName:M,updated:!1}:{newFileName:x,updated:!0}}else{var w=e.getModeForUsageLocation(S,P),K=J.resolveModuleNames?J.getResolvedModuleWithFailedLookupLocationsFromCache&&J.getResolvedModuleWithFailedLookupLocationsFromCache(P.text,S.fileName,w):B.getResolvedModuleWithFailedLookupLocationsFromCache(P.text,S.fileName,w);return v(P,K,k,B.getSourceFiles())}}function v(b,P,S,B){if(!P)return;if(P.resolvedModule){var J=w(P.resolvedModule.resolvedFileName);if(J)return J}var k=e.forEach(P.failedLookupLocations,M)||e.pathIsRelative(b.text)&&e.forEach(P.failedLookupLocations,x);if(k)return k;return P.resolvedModule&&{newFileName:P.resolvedModule.resolvedFileName,updated:!1};function M(K){var Z=S(K);return Z&&e.find(B,function(ne){return ne.fileName===Z})?x(K):void 0}function x(K){return e.endsWith(K,"/package.json")?void 0:w(K)}function w(K){var Z=S(K);return Z&&{newFileName:Z,updated:!0}}}function A(b,P,S,B){for(var J=0,k=b.referencedFiles||e.emptyArray;J<k.length;J++){var M=k[J],x=S(M.fileName);x!==void 0&&x!==b.text.slice(M.pos,M.end)&&P.replaceRangeWithText(b,M,x)}for(var w=0,K=b.imports;w<K.length;w++){var Z=K[w],x=B(Z);x!==void 0&&x!==Z.text&&P.replaceRangeWithText(b,q(Z,b),x)}}function q(b,P){return e.createRange(b.getStart(P)+1,b.end-1)}function ie(b,P){if(!!e.isObjectLiteralExpression(b))for(var S=0,B=b.properties;S<B.length;S++){var J=B[S];e.isPropertyAssignment(J)&&e.isStringLiteral(J.name)&&P(J,J.name.text)}}})(gr||(gr={}));var gr;(function(e){(function(n){function f(ne,R,Y){var U=N(R,Y,ne),$=U&&[x(U.reference.fileName,U.fileName,U.unverified)]||e.emptyArray;if(U!=null&&U.file)return $;var T=e.getTouchingPropertyName(R,Y);if(T!==R){var I=T.parent,y=ne.getTypeChecker();if(T.kind===158||e.isJSDocOverrideTag(T)&&e.rangeContainsPosition(T.tagName,Y))return p(y,T)||e.emptyArray;if(e.isJumpStatementTarget(T)){var D=e.getTargetLabel(T.parent,T.text);return D?[B(y,D,"label",T.text,void 0)]:void 0}if(e.isStaticModifier(T)&&e.isClassStaticBlockDeclaration(T.parent)){var C=T.parent.parent,m=ie(C,y),u=e.filter(C.members,e.isClassStaticBlockDeclaration),g=m?y.symbolToString(m,C):"",F=T.getSourceFile();return e.map(u,function(V){var z=e.moveRangePastModifiers(V).pos;return z=e.skipTrivia(F.text,z),B(y,V,"constructor","static {}",g,{start:z,length:6})})}var te=ie(T,y);if(!te)return e.concatenate($,q(T,y));var ue=K(y,T);if(ue&&!(e.isJsxOpeningLikeElement(T.parent)&&Z(ue))){var X=k(y,ue);if(y.getRootSymbols(te).some(function(V){return d(V,ue)}))return[X];var j=P(y,te,T,ue)||e.emptyArray;return T.kind===106?Gt([X],j,!0):Gt(Gt([],j,!0),[X],!1)}if(T.parent.kind===295){var Se=y.getShorthandAssignmentValueSymbol(te.valueDeclaration),Ce=Se!=null&&Se.declarations?Se.declarations.map(function(V){return S(V,y,Se,T)}):e.emptyArray;return e.concatenate(Ce,a(y,T)||e.emptyArray)}if(e.isPropertyName(T)&&e.isBindingElement(I)&&e.isObjectBindingPattern(I.parent)&&T===(I.propertyName||I.name)){var O=e.getNameFromPropertyName(T),Q=y.getTypeAtLocation(I.parent);return O===void 0?e.emptyArray:e.flatMap(Q.isUnion()?Q.types:[Q],function(V){var z=V.getProperty(O);return z&&P(y,z,T)})}return e.concatenate($,a(y,T)||P(y,te,T))}}n.getDefinitionAtPosition=f;function d(ne,R){return ne===R.symbol||ne===R.symbol.parent||e.isAssignmentExpression(R.parent)||!e.isCallLikeExpression(R.parent)&&ne===R.parent.symbol}function a(ne,R){var Y=e.getContainingObjectLiteralElement(R);if(Y){var U=Y&&ne.getContextualType(Y.parent);if(U)return e.flatMap(e.getPropertySymbolsFromContextualType(Y,ne,U,!1),function($){return P(ne,$,R)})}}function p(ne,R){var Y=e.findAncestor(R,e.isClassElement);if(!!(Y&&Y.name)){var U=e.findAncestor(Y,e.isClassLike);if(!!U){var $=e.getEffectiveBaseTypeNode(U),T=$?ne.getTypeAtLocation($):void 0;if(!!T){var I=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(Y.name)),y=e.hasStaticModifier(Y)?ne.getPropertyOfType(ne.getTypeOfSymbolAtLocation(T.symbol,U),I):ne.getPropertyOfType(T,I);if(!!y)return P(ne,y,R)}}}}function N(ne,R,Y){var U,$,T=M(ne.referencedFiles,R);if(T){var I=Y.getSourceFileFromReference(ne,T);return I&&{reference:T,fileName:I.fileName,file:I,unverified:!1}}var y=M(ne.typeReferenceDirectives,R);if(y){var D=Y.getResolvedTypeReferenceDirectives().get(y.fileName),I=D&&Y.getSourceFile(D.resolvedFileName);return I&&{reference:y,fileName:I.fileName,file:I,unverified:!1}}var C=M(ne.libReferenceDirectives,R);if(C){var I=Y.getLibFileFromReference(C);return I&&{reference:C,fileName:I.fileName,file:I,unverified:!1}}if(!((U=ne.resolvedModules)===null||U===void 0)&&U.size()){var m=e.getTokenAtPosition(ne,R);if(e.isModuleSpecifierLike(m)&&e.isExternalModuleNameRelative(m.text)&&ne.resolvedModules.has(m.text,e.getModeForUsageLocation(ne,m))){var u=($=ne.resolvedModules.get(m.text,e.getModeForUsageLocation(ne,m)))===null||$===void 0?void 0:$.resolvedFileName,g=u||e.resolvePath(e.getDirectoryPath(ne.fileName),m.text);return{file:Y.getSourceFile(g),fileName:g,reference:{pos:m.getStart(),end:m.getEnd(),fileName:m.text},unverified:!u}}}}n.getReferenceAtPosition=N;function H(ne,R,Y){var U=e.getTouchingPropertyName(R,Y);if(U!==R){var $=ne.getSymbolAtLocation(U);if(!!$){var T=ne.getTypeOfSymbolAtLocation($,U),I=v($,T,ne),y=I&&h(I,ne,U);return y&&y.length!==0?y:h(T,ne,U)}}}n.getTypeDefinitionAtPosition=H;function h(ne,R,Y){return e.flatMap(ne.isUnion()&&!(ne.flags&32)?ne.types:[ne],function(U){return U.symbol&&P(R,U.symbol,Y)})}function v(ne,R,Y){if(R.symbol===ne||ne.valueDeclaration&&R.symbol&&e.isVariableDeclaration(ne.valueDeclaration)&&ne.valueDeclaration.initializer===R.symbol.valueDeclaration){var U=R.getCallSignatures();if(U.length===1)return Y.getReturnTypeOfSignature(e.first(U))}}function A(ne,R,Y){var U=f(ne,R,Y);if(!(!U||U.length===0)){var $=M(R.referencedFiles,Y)||M(R.typeReferenceDirectives,Y)||M(R.libReferenceDirectives,Y);if($)return{definitions:U,textSpan:e.createTextSpanFromRange($)};var T=e.getTouchingPropertyName(R,Y),I=e.createTextSpan(T.getStart(),T.getWidth());return{definitions:U,textSpan:I}}}n.getDefinitionAndBoundSpan=A;function q(ne,R){return e.mapDefined(R.getIndexInfosAtLocation(ne),function(Y){return Y.declaration&&k(R,Y.declaration)})}function ie(ne,R){var Y=R.getSymbolAtLocation(ne);if((Y==null?void 0:Y.declarations)&&Y.flags&2097152&&b(ne,Y.declarations[0])){var U=R.getAliasedSymbol(Y);if(U.declarations)return U}return Y}function b(ne,R){if(ne.kind!==79)return!1;if(ne.parent===R)return!0;switch(R.kind){case 266:case 264:return!0;case 269:return R.parent.kind===268;case 202:case 253:return e.isInJSFile(R)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(R);default:return!1}}function P(ne,R,Y,U){var $=e.filter(R.declarations,function(D){return D!==U&&(!e.isAssignmentDeclaration(D)||D===R.valueDeclaration)})||void 0;return T()||I()||e.map($,function(D){return S(D,ne,R,Y)});function T(){if(R.flags&32&&!(R.flags&19)&&(e.isNewExpressionTarget(Y)||Y.kind===134)){var D=e.find($,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration");return y(D.members,!0)}}function I(){return e.isCallOrNewExpressionTarget(Y)||e.isNameOfFunctionDeclaration(Y)?y($,!1):void 0}function y(D,C){if(!!D){var m=D.filter(C?e.isConstructorDeclaration:e.isFunctionLike),u=m.filter(function(g){return!!g.body});return m.length?u.length!==0?u.map(function(g){return S(g,ne,R,Y)}):[S(e.last(m),ne,R,Y)]:void 0}}}function S(ne,R,Y,U){var $=R.symbolToString(Y),T=e.SymbolDisplay.getSymbolKind(R,Y,U),I=Y.parent?R.symbolToString(Y.parent,U):"";return B(R,ne,T,$,I)}function B(ne,R,Y,U,$,T){var I=R.getSourceFile();if(!T){var y=e.getNameOfDeclaration(R)||R;T=e.createTextSpanFromNode(y,I)}return Rn(Rn({fileName:I.fileName,textSpan:T,kind:Y,name:U,containerKind:void 0,containerName:$},e.FindAllReferences.toContextSpan(T,I,e.FindAllReferences.getContextNode(R))),{isLocal:!J(ne,R)})}function J(ne,R){if(ne.isDeclarationVisible(R))return!0;if(!R.parent)return!1;if(e.hasInitializer(R.parent)&&R.parent.initializer===R)return J(ne,R.parent);switch(R.kind){case 166:case 171:case 172:case 168:if(e.hasEffectiveModifier(R,8))return!1;case 170:case 294:case 295:case 204:case 225:case 213:case 212:return J(ne,R.parent);default:return!1}}function k(ne,R){return S(R,ne,R.symbol,R)}function M(ne,R){return e.find(ne,function(Y){return e.textRangeContainsPositionInclusive(Y,R)})}n.findReferenceInPosition=M;function x(ne,R,Y){return{fileName:R,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:ne,containerName:void 0,containerKind:void 0,unverified:Y}}function w(ne){var R=e.findAncestor(ne,function(U){return!e.isRightSideOfPropertyAccess(U)}),Y=R==null?void 0:R.parent;return Y&&e.isCallLikeExpression(Y)&&e.getInvokedExpression(Y)===R?Y:void 0}function K(ne,R){var Y=w(R),U=Y&&ne.getResolvedSignature(Y);return e.tryCast(U&&U.declaration,function($){return e.isFunctionLike($)&&!e.isFunctionTypeNode($)})}function Z(ne){switch(ne.kind){case 170:case 179:case 174:return!0;default:return!1}}})(e.GoToDefinition||(e.GoToDefinition={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f=["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"],d,a;function p(R,Y){var U=[];return e.forEachUnique(R,function($){for(var T=0,I=H($);T<I.length;T++){var y=I[T];if(!(y.comment===void 0||e.isJSDoc(y)&&$.kind!==343&&$.kind!==336&&y.tags&&y.tags.some(function(C){return C.kind===343||C.kind===336})&&!y.tags.some(function(C){return C.kind===338||C.kind===339}))){var D=v(y.comment,Y);e.contains(U,D,N)||U.push(D)}}}),e.flatten(e.intersperse(U,[e.lineBreakPart()]))}n.getJsDocCommentsFromDeclarations=p;function N(R,Y){return e.arraysEqual(R,Y,function(U,$){return U.kind===$.kind&&U.text===$.text})}function H(R){switch(R.kind){case 338:case 345:return[R];case 336:case 343:return[R,R.parent];default:return e.getJSDocCommentsAndTags(R)}}function h(R,Y){var U=[];return e.forEachUnique(R,function($){var T=e.getJSDocTags($);if(!(T.some(function(C){return C.kind===343||C.kind===336})&&!T.some(function(C){return C.kind===338||C.kind===339})))for(var I=0,y=T;I<y.length;I++){var D=y[I];U.push({name:D.tagName.text,text:A(D,Y)})}}),U}n.getJsDocTagsFromDeclarations=h;function v(R,Y){return typeof R=="string"?[e.textPart(R)]:e.flatMap(R,function(U){return U.kind===319?[e.textPart(U.text)]:e.buildLinkParts(U,Y)})}function A(R,Y){var U=R.comment,$=R.kind,T=q($);switch($){case 327:return y(R.class);case 326:return y(R.class);case 342:return D(R.typeParameters.map(function(C){return C.getText()}).join(", "));case 341:return y(R.typeExpression);case 343:case 336:case 345:case 338:case 344:var I=R.name;return I?y(I):U===void 0?void 0:v(U,Y);default:return U===void 0?void 0:v(U,Y)}function y(C){return D(C.getText())}function D(C){return U?C.match(/^https?$/)?Gt([e.textPart(C)],v(U,Y),!0):Gt([T(C),e.spacePart()],v(U,Y),!0):[e.textPart(C)]}}function q(R){switch(R){case 338:return e.parameterNamePart;case 345:return e.propertyNamePart;case 342:return e.typeParameterNamePart;case 343:case 336:return e.typeAliasNamePart;default:return e.textPart}}function ie(){return d||(d=e.map(f,function(R){return{name:R,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}n.getJSDocTagNameCompletions=ie,n.getJSDocTagNameCompletionDetails=P;function b(){return a||(a=e.map(f,function(R){return{name:"@".concat(R),kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}n.getJSDocTagCompletions=b;function P(R){return{name:R,kind:"",kindModifiers:"",displayParts:[e.textPart(R)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}n.getJSDocTagCompletionDetails=P;function S(R){if(!e.isIdentifier(R.name))return e.emptyArray;var Y=R.name.text,U=R.parent,$=U.parent;return e.isFunctionLike($)?e.mapDefined($.parameters,function(T){if(!!e.isIdentifier(T.name)){var I=T.name.text;if(!(U.tags.some(function(y){return y!==R&&e.isJSDocParameterTag(y)&&e.isIdentifier(y.name)&&y.name.escapedText===I})||Y!==void 0&&!e.startsWith(I,Y)))return{name:I,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}}):[]}n.getJSDocParameterNameCompletions=S;function B(R){return{name:R,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(R)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}n.getJSDocParameterNameCompletionDetails=B;function J(R,Y,U,$){var T=e.getTokenAtPosition(Y,U),I=e.findAncestor(T,e.isJSDoc);if(!(I&&(I.comment!==void 0||e.length(I.tags)))){var y=T.getStart(Y);if(!(!I&&y<U)){var D=w(T,$);if(!!D){var C=D.commentOwner,m=D.parameters,u=D.hasReturn;if(!(C.getStart(Y)<U)){var g=k(Y,U),F=e.hasJSFileExtension(Y.fileName),te=(m?M(m||[],F,g,R):"")+(u?x(g,R):""),ue="/**",X=" */";if(te){var j=ue+R+g+" * ",Se=y===U?R+g:"",Ce=j+R+te+g+X+Se;return{newText:Ce,caretOffset:j.length}}return{newText:ue+X,caretOffset:3}}}}}}n.getDocCommentTemplateAtPosition=J;function k(R,Y){for(var U=R.text,$=e.getLineStartPositionForPosition(Y,R),T=$;T<=Y&&e.isWhiteSpaceSingleLine(U.charCodeAt(T));T++);return U.slice($,T)}function M(R,Y,U,$){return R.map(function(T,I){var y=T.name,D=T.dotDotDotToken,C=y.kind===79?y.text:"param"+I,m=Y?D?"{...any} ":"{any} ":"";return"".concat(U," * @param ").concat(m).concat(C).concat($)}).join("")}function x(R,Y){return"".concat(R," * @returns").concat(Y)}function w(R,Y){return e.forEachAncestor(R,function(U){return K(U,Y)})}function K(R,Y){switch(R.kind){case 255:case 212:case 168:case 170:case 167:case 213:var U=R;return{commentOwner:R,parameters:U.parameters,hasReturn:Z(U,Y)};case 294:return K(R.initializer,Y);case 256:case 257:case 165:case 259:case 297:case 258:return{commentOwner:R};case 236:{var $=R,T=$.declarationList.declarations,I=T.length===1&&T[0].initializer?ne(T[0].initializer):void 0;return I?{commentOwner:R,parameters:I.parameters,hasReturn:Z(I,Y)}:{commentOwner:R}}case 303:return"quit";case 260:return R.parent.kind===260?void 0:{commentOwner:R};case 237:return K(R.expression,Y);case 220:{var y=R;return e.getAssignmentDeclarationKind(y)===0?"quit":e.isFunctionLike(y.right)?{commentOwner:R,parameters:y.right.parameters,hasReturn:Z(y.right,Y)}:{commentOwner:R}}case 166:var D=R.initializer;if(D&&(e.isFunctionExpression(D)||e.isArrowFunction(D)))return{commentOwner:R,parameters:D.parameters,hasReturn:Z(D,Y)}}}function Z(R,Y){return!!(Y!=null&&Y.generateReturnInDocTemplate)&&(e.isArrowFunction(R)&&e.isExpression(R.body)||e.isFunctionLikeDeclaration(R)&&R.body&&e.isBlock(R.body)&&!!e.forEachReturnStatement(R.body,function(U){return U}))}function ne(R){for(;R.kind===211;)R=R.expression;switch(R.kind){case 212:case 213:return R;case 225:return e.find(R.members,e.isConstructorDeclaration)}}})(e.JsDoc||(e.JsDoc={}))})(gr||(gr={}));var gr;(function(e){(function(n){function f(q,ie,b,P,S,B){var J=e.createPatternMatcher(P);if(!J)return e.emptyArray;for(var k=[],M=function(Z){if(b.throwIfCancellationRequested(),B&&Z.isDeclarationFile)return"continue";Z.getNamedDeclarations().forEach(function(ne,R){d(J,R,ne,ie,Z.fileName,k)})},x=0,w=q;x<w.length;x++){var K=w[x];M(K)}return k.sort(v),(S===void 0?k:k.slice(0,S)).map(A)}n.getNavigateToItems=f;function d(q,ie,b,P,S,B){var J=q.getMatchForLastSegmentOfPattern(ie);if(!!J)for(var k=0,M=b;k<M.length;k++){var x=M[k];if(!!a(x,P))if(q.patternContainsDots){var w=q.getFullMatch(h(x),ie);w&&B.push({name:ie,fileName:S,matchKind:w.kind,isCaseSensitive:w.isCaseSensitive,declaration:x})}else B.push({name:ie,fileName:S,matchKind:J.kind,isCaseSensitive:J.isCaseSensitive,declaration:x})}}function a(q,ie){switch(q.kind){case 266:case 269:case 264:var b=ie.getSymbolAtLocation(q.name),P=ie.getAliasedSymbol(b);return b.escapedName!==P.escapedName;default:return!0}}function p(q,ie){var b=e.getNameOfDeclaration(q);return!!b&&(H(b,ie)||b.kind===161&&N(b.expression,ie))}function N(q,ie){return H(q,ie)||e.isPropertyAccessExpression(q)&&(ie.push(q.name.text),!0)&&N(q.expression,ie)}function H(q,ie){return e.isPropertyNameLiteral(q)&&(ie.push(e.getTextOfIdentifierOrLiteral(q)),!0)}function h(q){var ie=[],b=e.getNameOfDeclaration(q);if(b&&b.kind===161&&!N(b.expression,ie))return e.emptyArray;ie.shift();for(var P=e.getContainerNode(q);P;){if(!p(P,ie))return e.emptyArray;P=e.getContainerNode(P)}return ie.reverse()}function v(q,ie){return e.compareValues(q.matchKind,ie.matchKind)||e.compareStringsCaseSensitiveUI(q.name,ie.name)}function A(q){var ie=q.declaration,b=e.getContainerNode(ie),P=b&&e.getNameOfDeclaration(b);return{name:q.name,kind:e.getNodeKind(ie),kindModifiers:e.getNodeModifiers(ie),matchKind:e.PatternMatchKind[q.matchKind],isCaseSensitive:q.isCaseSensitive,fileName:q.fileName,textSpan:e.createTextSpanFromNode(ie),containerName:P?P.text:"",containerKind:P?e.getNodeKind(b):""}}})(e.NavigateTo||(e.NavigateTo={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f,d=/\s+/g,a=150,p,N,H=[],h,v=[],A,q=[];function ie(_e,Le){p=Le,N=_e;try{return e.map(Ce(k(_e)),Q)}finally{P()}}n.getNavigationBarItems=ie;function b(_e,Le){p=Le,N=_e;try{return O(k(_e))}finally{P()}}n.getNavigationTree=b;function P(){N=void 0,p=void 0,H=[],h=void 0,q=[]}function S(_e){return Ve(_e.getText(N))}function B(_e){return _e.node.kind}function J(_e,Le){_e.children?_e.children.push(Le):_e.children=[Le]}function k(_e){e.Debug.assert(!H.length);var Le={node:_e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};h=Le;for(var qe=0,Xe=_e.statements;qe<Xe.length;qe++){var De=Xe[qe];T(De)}return R(),e.Debug.assert(!h&&!H.length),Le}function M(_e,Le){J(h,x(_e,Le))}function x(_e,Le){return{node:_e,name:Le||(e.isDeclaration(_e)||e.isExpression(_e)?e.getNameOfDeclaration(_e):void 0),additionalNodes:void 0,parent:h,children:void 0,indent:h.indent+1}}function w(_e){A||(A=new e.Map),A.set(_e,!0)}function K(_e){for(var Le=0;Le<_e;Le++)R()}function Z(_e,Le){for(var qe=[];!e.isPropertyNameLiteral(Le);){var Xe=e.getNameOrArgument(Le),De=e.getElementOrPropertyAccessName(Le);Le=Le.expression,!(De==="prototype"||e.isPrivateIdentifier(Xe))&&qe.push(Xe)}qe.push(Le);for(var Ae=qe.length-1;Ae>0;Ae--){var Xe=qe[Ae];ne(_e,Xe)}return[qe.length-1,qe[0]]}function ne(_e,Le){var qe=x(_e,Le);J(h,qe),H.push(h),v.push(A),A=void 0,h=qe}function R(){h.children&&(I(h.children,h),ue(h.children)),h=H.pop(),A=v.pop()}function Y(_e,Le,qe){ne(_e,qe),T(Le),R()}function U(_e){_e.initializer&&ve(_e.initializer)?(ne(_e),e.forEachChild(_e.initializer,T),R()):Y(_e,_e.initializer)}function $(_e){return!e.hasDynamicName(_e)||_e.kind!==220&&e.isPropertyAccessExpression(_e.name.expression)&&e.isIdentifier(_e.name.expression.expression)&&e.idText(_e.name.expression.expression)==="Symbol"}function T(_e){var Le;if(p.throwIfCancellationRequested(),!(!_e||e.isToken(_e)))switch(_e.kind){case 170:var qe=_e;Y(qe,qe.body);for(var Xe=0,De=qe.parameters;Xe<De.length;Xe++){var Ae=De[Xe];e.isParameterPropertyDeclaration(Ae,qe)&&M(Ae)}break;case 168:case 171:case 172:case 167:$(_e)&&Y(_e,_e.body);break;case 166:$(_e)&&U(_e);break;case 165:$(_e)&&M(_e);break;case 266:var Ye=_e;Ye.name&&M(Ye.name);var Lr=Ye.namedBindings;if(Lr)if(Lr.kind===267)M(Lr);else for(var Er=0,lr=Lr.elements;Er<lr.length;Er++){var Cr=lr[Er];M(Cr)}break;case 295:Y(_e,_e.name);break;case 296:var Or=_e.expression;e.isIdentifier(Or)?M(_e,Or):M(_e);break;case 202:case 294:case 253:{var Ke=_e;e.isBindingPattern(Ke.name)?T(Ke.name):U(Ke);break}case 255:var Pe=_e.name;Pe&&e.isIdentifier(Pe)&&w(Pe.text),Y(_e,_e.body);break;case 213:case 212:Y(_e,_e.body);break;case 259:ne(_e);for(var Hr=0,ur=_e.members;Hr<ur.length;Hr++){var vr=ur[Hr];ke(vr)||M(vr)}R();break;case 256:case 225:case 257:ne(_e);for(var de=0,Fe=_e.members;de<Fe.length;de++){var vr=Fe[de];T(vr)}R();break;case 260:Y(_e,ge(_e).body);break;case 270:{var $e=_e.expression,Ke=e.isObjectLiteralExpression($e)||e.isCallExpression($e)?$e:e.isArrowFunction($e)||e.isFunctionExpression($e)?$e.body:void 0;Ke?(ne(_e),T(Ke),R()):M(_e);break}case 274:case 264:case 175:case 173:case 174:case 258:M(_e);break;case 207:case 220:{var Dr=e.getAssignmentDeclarationKind(_e);switch(Dr){case 1:case 2:Y(_e,_e.right);return;case 6:case 3:{var Fr=_e,He=Fr.left,pr=Dr===3?He.expression:He,Jr=0,ze=void 0;e.isIdentifier(pr.expression)?(w(pr.expression.text),ze=pr.expression):(Le=Z(Fr,pr.expression),Jr=Le[0],ze=Le[1]),Dr===6?e.isObjectLiteralExpression(Fr.right)&&Fr.right.properties.length>0&&(ne(Fr,ze),e.forEachChild(Fr.right,T),R()):e.isFunctionExpression(Fr.right)||e.isArrowFunction(Fr.right)?Y(_e,Fr.right,ze):(ne(Fr,ze),Y(_e,Fr.right,He.name),R()),K(Jr);return}case 7:case 9:{var Ar=_e,ze=Dr===7?Ar.arguments[0]:Ar.arguments[0].expression,Yr=Ar.arguments[1],lt=Z(_e,ze),Jr=lt[0],tt=lt[1];ne(_e,tt),ne(_e,e.setTextRange(e.factory.createIdentifier(Yr.text),Yr)),T(_e.arguments[2]),R(),R(),K(Jr);return}case 5:{var Fr=_e,He=Fr.left,Rt=He.expression;if(e.isIdentifier(Rt)&&e.getElementOrPropertyAccessName(He)!=="prototype"&&A&&A.has(Rt.text)){e.isFunctionExpression(Fr.right)||e.isArrowFunction(Fr.right)?Y(_e,Fr.right,Rt):e.isBindableStaticAccessExpression(He)&&(ne(Fr,Rt),Y(Fr.left,Fr.right,e.getNameOrArgument(He)),R());return}break}case 4:case 0:case 8:break;default:e.Debug.assertNever(Dr)}}default:e.hasJSDocNodes(_e)&&e.forEach(_e.jsDoc,function(cn){e.forEach(cn.tags,function(bn){e.isJSDocTypeAlias(bn)&&M(bn)})}),e.forEachChild(_e,T)}}function I(_e,Le){var qe=new e.Map;e.filterMutate(_e,function(Xe,De){var Ae=Xe.name||e.getNameOfDeclaration(Xe.node),Ye=Ae&&S(Ae);if(!Ye)return!0;var Lr=qe.get(Ye);if(!Lr)return qe.set(Ye,Xe),!0;if(Lr instanceof Array){for(var Er=0,lr=Lr;Er<lr.length;Er++){var Cr=lr[Er];if(C(Cr,Xe,De,Le))return!1}return Lr.push(Xe),!0}else{var Cr=Lr;return C(Cr,Xe,De,Le)?!1:(qe.set(Ye,[Cr,Xe]),!0)}})}var y=(f={},f[5]=!0,f[3]=!0,f[7]=!0,f[9]=!0,f[0]=!1,f[1]=!1,f[2]=!1,f[8]=!1,f[6]=!0,f[4]=!1,f);function D(_e,Le,qe,Xe){function De(Ke){return e.isFunctionExpression(Ke)||e.isFunctionDeclaration(Ke)||e.isVariableDeclaration(Ke)}var Ae=e.isBinaryExpression(Le.node)||e.isCallExpression(Le.node)?e.getAssignmentDeclarationKind(Le.node):0,Ye=e.isBinaryExpression(_e.node)||e.isCallExpression(_e.node)?e.getAssignmentDeclarationKind(_e.node):0;if(y[Ae]&&y[Ye]||De(_e.node)&&y[Ae]||De(Le.node)&&y[Ye]||e.isClassDeclaration(_e.node)&&u(_e.node)&&y[Ae]||e.isClassDeclaration(Le.node)&&y[Ye]||e.isClassDeclaration(_e.node)&&u(_e.node)&&De(Le.node)||e.isClassDeclaration(Le.node)&&De(_e.node)&&u(_e.node)){var Lr=_e.additionalNodes&&e.lastOrUndefined(_e.additionalNodes)||_e.node;if(!e.isClassDeclaration(_e.node)&&!e.isClassDeclaration(Le.node)||De(_e.node)||De(Le.node)){var Er=De(_e.node)?_e.node:De(Le.node)?Le.node:void 0;if(Er!==void 0){var lr=e.setTextRange(e.factory.createConstructorDeclaration(void 0,void 0,[],void 0),Er),Cr=x(lr);Cr.indent=_e.indent+1,Cr.children=_e.node===Er?_e.children:Le.children,_e.children=_e.node===Er?e.concatenate([Cr],Le.children||[Le]):e.concatenate(_e.children||[Rn({},_e)],[Cr])}else(_e.children||Le.children)&&(_e.children=e.concatenate(_e.children||[Rn({},_e)],Le.children||[Le]),_e.children&&(I(_e.children,_e),ue(_e.children)));Lr=_e.node=e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,_e.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),_e.node)}else _e.children=e.concatenate(_e.children,Le.children),_e.children&&I(_e.children,_e);var Or=Le.node;return Xe.children[qe-1].node.end===Lr.end?e.setTextRange(Lr,{pos:Lr.pos,end:Or.end}):(_e.additionalNodes||(_e.additionalNodes=[]),_e.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,_e.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),Le.node))),!0}return Ae!==0}function C(_e,Le,qe,Xe){return D(_e,Le,qe,Xe)?!0:m(_e.node,Le.node,Xe)?(te(_e,Le),!0):!1}function m(_e,Le,qe){if(_e.kind!==Le.kind||_e.parent!==Le.parent&&!(g(_e,qe)&&g(Le,qe)))return!1;switch(_e.kind){case 166:case 168:case 171:case 172:return e.isStatic(_e)===e.isStatic(Le);case 260:return F(_e,Le)&&Te(_e)===Te(Le);default:return!0}}function u(_e){return!!(_e.flags&8)}function g(_e,Le){var qe=e.isModuleBlock(_e.parent)?_e.parent.parent:_e.parent;return qe===Le.node||e.contains(Le.additionalNodes,qe)}function F(_e,Le){return!_e.body||!Le.body?_e.body===Le.body:_e.body.kind===Le.body.kind&&(_e.body.kind!==260||F(_e.body,Le.body))}function te(_e,Le){var qe;_e.additionalNodes=_e.additionalNodes||[],_e.additionalNodes.push(Le.node),Le.additionalNodes&&(qe=_e.additionalNodes).push.apply(qe,Le.additionalNodes),_e.children=e.concatenate(_e.children,Le.children),_e.children&&(I(_e.children,_e),ue(_e.children))}function ue(_e){_e.sort(X)}function X(_e,Le){return e.compareStringsCaseSensitiveUI(j(_e.node),j(Le.node))||e.compareValues(B(_e),B(Le))}function j(_e){if(_e.kind===260)return z(_e);var Le=e.getNameOfDeclaration(_e);if(Le&&e.isPropertyName(Le)){var qe=e.getPropertyNameForPropertyNameNode(Le);return qe&&e.unescapeLeadingUnderscores(qe)}switch(_e.kind){case 212:case 213:case 225:return Ge(_e);default:return}}function Se(_e,Le){if(_e.kind===260)return Ve(z(_e));if(Le){var qe=e.isIdentifier(Le)?Le.text:e.isElementAccessExpression(Le)?"[".concat(S(Le.argumentExpression),"]"):S(Le);if(qe.length>0)return Ve(qe)}switch(_e.kind){case 303:var Xe=_e;return e.isExternalModule(Xe)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(Xe.fileName)))),'"'):"<global>";case 270:return e.isExportAssignment(_e)&&_e.isExportEquals?"export=":"default";case 213:case 255:case 212:case 256:case 225:return e.getSyntacticModifierFlags(_e)&512?"default":Ge(_e);case 170:return"constructor";case 174:return"new()";case 173:return"()";case 175:return"[]";default:return"<unknown>"}}function Ce(_e){var Le=[];function qe(De){if(Xe(De)&&(Le.push(De),De.children))for(var Ae=0,Ye=De.children;Ae<Ye.length;Ae++){var Lr=Ye[Ae];qe(Lr)}}return qe(_e),Le;function Xe(De){if(De.children)return!0;switch(B(De)){case 256:case 225:case 259:case 257:case 260:case 303:case 258:case 343:case 336:return!0;case 213:case 255:case 212:return Ae(De);default:return!1}function Ae(Ye){if(!Ye.node.body)return!1;switch(B(Ye.parent)){case 261:case 303:case 168:case 170:return!0;default:return!1}}}}function O(_e){return{text:Se(_e.node,_e.name),kind:e.getNodeKind(_e.node),kindModifiers:Ie(_e.node),spans:V(_e),nameSpan:_e.name&&Me(_e.name),childItems:e.map(_e.children,O)}}function Q(_e){return{text:Se(_e.node,_e.name),kind:e.getNodeKind(_e.node),kindModifiers:Ie(_e.node),spans:V(_e),childItems:e.map(_e.children,Le)||q,indent:_e.indent,bolded:!1,grayed:!1};function Le(qe){return{text:Se(qe.node,qe.name),kind:e.getNodeKind(qe.node),kindModifiers:e.getNodeModifiers(qe.node),spans:V(qe),childItems:q,indent:0,bolded:!1,grayed:!1}}}function V(_e){var Le=[Me(_e.node)];if(_e.additionalNodes)for(var qe=0,Xe=_e.additionalNodes;qe<Xe.length;qe++){var De=Xe[qe];Le.push(Me(De))}return Le}function z(_e){return e.isAmbientModule(_e)?e.getTextOfNode(_e.name):Te(_e)}function Te(_e){for(var Le=[e.getTextOfIdentifierOrLiteral(_e.name)];_e.body&&_e.body.kind===260;)_e=_e.body,Le.push(e.getTextOfIdentifierOrLiteral(_e.name));return Le.join(".")}function ge(_e){return _e.body&&e.isModuleDeclaration(_e.body)?ge(_e.body):_e}function ke(_e){return!_e.name||_e.name.kind===161}function Me(_e){return _e.kind===303?e.createTextSpanFromRange(_e):e.createTextSpanFromNode(_e,N)}function Ie(_e){return _e.parent&&_e.parent.kind===253&&(_e=_e.parent),e.getNodeModifiers(_e)}function Ge(_e){var Le=_e.parent;if(_e.name&&e.getFullWidth(_e.name)>0)return Ve(e.declarationNameToString(_e.name));if(e.isVariableDeclaration(Le))return Ve(e.declarationNameToString(Le.name));if(e.isBinaryExpression(Le)&&Le.operatorToken.kind===63)return S(Le.left).replace(d,"");if(e.isPropertyAssignment(Le))return S(Le.name);if(e.getSyntacticModifierFlags(_e)&512)return"default";if(e.isClassLike(_e))return"<class>";if(e.isCallExpression(Le)){var qe=he(Le.expression);if(qe!==void 0){if(qe=Ve(qe),qe.length>a)return"".concat(qe," callback");var Xe=Ve(e.mapDefined(Le.arguments,function(De){return e.isStringLiteralLike(De)?De.getText(N):void 0}).join(", "));return"".concat(qe,"(").concat(Xe,") callback")}}return"<function>"}function he(_e){if(e.isIdentifier(_e))return _e.text;if(e.isPropertyAccessExpression(_e)){var Le=he(_e.expression),qe=_e.name.text;return Le===void 0?qe:"".concat(Le,".").concat(qe)}else return}function ve(_e){switch(_e.kind){case 213:case 212:case 225:return!0;default:return!1}}function Ve(_e){return _e=_e.length>a?_e.substring(0,a)+"...":_e,_e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(e.NavigationBar||(e.NavigationBar={}))})(gr||(gr={}));var gr;(function(e){(function(n){function f(K,Z,ne,R,Y,U){var $=e.textChanges.ChangeTracker.fromContext({host:ne,formatContext:Z,preferences:Y}),T=function(te){return e.stableSort(N(d(te,K,R,U)),function(ue,X){return M(ue,X)})},I=K.statements.filter(e.isImportDeclaration);F(I,T);var y=K.statements.filter(e.isExportDeclaration);F(y,h);for(var D=0,C=K.statements.filter(e.isAmbientModule);D<C.length;D++){var m=C[D];if(!!m.body){var u=m.body.statements.filter(e.isImportDeclaration);F(u,T);var g=m.body.statements.filter(e.isExportDeclaration);F(g,h)}}return $.getChanges();function F(te,ue){if(e.length(te)!==0){e.suppressLeadingTrivia(te[0]);var X=e.group(te,function(Q){return p(Q.moduleSpecifier)}),j=e.stableSort(X,function(Q,V){return ie(Q[0].moduleSpecifier,V[0].moduleSpecifier)}),Se=e.flatMap(j,function(Q){return p(Q[0].moduleSpecifier)?ue(Q):Q});if(Se.length===0)$.deleteNodes(K,te,{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},!0);else{var Ce={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(ne,Z.options)};$.replaceNodeWithNodes(K,te[0],Se,Ce);var O=$.nodeHasTrailingComment(K,te[0],Ce);$.deleteNodes(K,te.slice(1),{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},O)}}}}n.organizeImports=f;function d(K,Z,ne,R){if(R)return K;for(var Y=ne.getTypeChecker(),U=Y.getJsxNamespace(Z),$=Y.getJsxFragmentFactory(Z),T=!!(Z.transformFlags&2),I=[],y=0,D=K;y<D.length;y++){var C=D[y],m=C.importClause,u=C.moduleSpecifier;if(!m){I.push(C);continue}var g=m.name,F=m.namedBindings;if(g&&!ue(g)&&(g=void 0),F)if(e.isNamespaceImport(F))ue(F.name)||(F=void 0);else{var te=F.elements.filter(function(X){return ue(X.name)});te.length<F.elements.length&&(F=te.length?e.factory.updateNamedImports(F,te):void 0)}g||F?I.push(v(C,g,F)):a(Z,u)&&(Z.isDeclarationFile?I.push(e.factory.createImportDeclaration(C.decorators,C.modifiers,void 0,u,void 0)):I.push(C))}return I;function ue(X){return T&&(X.text===U||$&&X.text===$)||e.FindAllReferences.Core.isSymbolReferencedInFile(X,Y,Z)}}function a(K,Z){var ne=e.isStringLiteral(Z)&&Z.text;return e.isString(ne)&&e.some(K.moduleAugmentations,function(R){return e.isStringLiteral(R)&&R.text===ne})}function p(K){return K!==void 0&&e.isStringLiteralLike(K)?K.text:void 0}function N(K){var Z;if(K.length===0)return K;var ne=H(K),R=ne.importWithoutClause,Y=ne.typeOnlyImports,U=ne.regularImports,$=[];R&&$.push(R);for(var T=0,I=[U,Y];T<I.length;T++){var y=I[T],D=y===Y,C=y.defaultImports,m=y.namespaceImports,u=y.namedImports;if(!D&&C.length===1&&m.length===1&&u.length===0){var g=C[0];$.push(v(g,g.importClause.name,m[0].importClause.namedBindings));continue}for(var F=e.stableSort(m,function(Te,ge){return b(Te.importClause.namedBindings.name,ge.importClause.namedBindings.name)}),te=0,ue=F;te<ue.length;te++){var X=ue[te];$.push(v(X,void 0,X.importClause.namedBindings))}if(!(C.length===0&&u.length===0)){var j=void 0,Se=[];if(C.length===1)j=C[0].importClause.name;else for(var Ce=0,O=C;Ce<O.length;Ce++){var g=O[Ce];Se.push(e.factory.createImportSpecifier(!1,e.factory.createIdentifier("default"),g.importClause.name))}Se.push.apply(Se,e.flatMap(u,function(Te){return Te.importClause.namedBindings.elements}));var Q=A(Se),V=C.length>0?C[0]:u[0],z=Q.length===0?j?void 0:e.factory.createNamedImports(e.emptyArray):u.length===0?e.factory.createNamedImports(Q):e.factory.updateNamedImports(u[0].importClause.namedBindings,Q);D&&j&&z?($.push(v(V,j,void 0)),$.push(v((Z=u[0])!==null&&Z!==void 0?Z:V,void 0,z))):$.push(v(V,j,z))}}return $}n.coalesceImports=N;function H(K){for(var Z,ne={defaultImports:[],namespaceImports:[],namedImports:[]},R={defaultImports:[],namespaceImports:[],namedImports:[]},Y=0,U=K;Y<U.length;Y++){var $=U[Y];if($.importClause===void 0){Z=Z||$;continue}var T=$.importClause.isTypeOnly?ne:R,I=$.importClause,y=I.name,D=I.namedBindings;y&&T.defaultImports.push($),D&&(e.isNamespaceImport(D)?T.namespaceImports.push($):T.namedImports.push($))}return{importWithoutClause:Z,typeOnlyImports:ne,regularImports:R}}function h(K){if(K.length===0)return K;var Z=m(K),ne=Z.exportWithoutClause,R=Z.namedExports,Y=Z.typeOnlyExports,U=[];ne&&U.push(ne);for(var $=0,T=[R,Y];$<T.length;$++){var I=T[$];if(I.length!==0){var y=[];y.push.apply(y,e.flatMap(I,function(u){return u.exportClause&&e.isNamedExports(u.exportClause)?u.exportClause.elements:e.emptyArray}));var D=A(y),C=I[0];U.push(e.factory.updateExportDeclaration(C,C.decorators,C.modifiers,C.isTypeOnly,C.exportClause&&(e.isNamedExports(C.exportClause)?e.factory.updateNamedExports(C.exportClause,D):e.factory.updateNamespaceExport(C.exportClause,C.exportClause.name)),C.moduleSpecifier,C.assertClause))}}return U;function m(u){for(var g,F=[],te=[],ue=0,X=u;ue<X.length;ue++){var j=X[ue];j.exportClause===void 0?g=g||j:j.isTypeOnly?te.push(j):F.push(j)}return{exportWithoutClause:g,namedExports:F,typeOnlyExports:te}}}n.coalesceExports=h;function v(K,Z,ne){return e.factory.updateImportDeclaration(K,K.decorators,K.modifiers,e.factory.updateImportClause(K.importClause,K.importClause.isTypeOnly,Z,ne),K.moduleSpecifier,K.assertClause)}function A(K){return e.stableSort(K,q)}function q(K,Z){return e.compareBooleans(K.isTypeOnly,Z.isTypeOnly)||b(K.propertyName||K.name,Z.propertyName||Z.name)||b(K.name,Z.name)}n.compareImportOrExportSpecifiers=q;function ie(K,Z){var ne=K===void 0?void 0:p(K),R=Z===void 0?void 0:p(Z);return e.compareBooleans(ne===void 0,R===void 0)||e.compareBooleans(e.isExternalModuleNameRelative(ne),e.isExternalModuleNameRelative(R))||e.compareStringsCaseInsensitive(ne,R)}n.compareModuleSpecifiers=ie;function b(K,Z){return e.compareStringsCaseInsensitive(K.text,Z.text)}function P(K){var Z;switch(K.kind){case 264:return(Z=e.tryCast(K.moduleReference,e.isExternalModuleReference))===null||Z===void 0?void 0:Z.expression;case 265:return K.moduleSpecifier;case 236:return K.declarationList.declarations[0].initializer.arguments[0]}}function S(K){return e.arrayIsSorted(K,M)}n.importsAreSorted=S;function B(K){return e.arrayIsSorted(K,q)}n.importSpecifiersAreSorted=B;function J(K,Z){var ne=e.binarySearch(K,Z,e.identity,M);return ne<0?~ne:ne}n.getImportDeclarationInsertionIndex=J;function k(K,Z){var ne=e.binarySearch(K,Z,e.identity,q);return ne<0?~ne:ne}n.getImportSpecifierInsertionIndex=k;function M(K,Z){return ie(P(K),P(Z))||x(K,Z)}n.compareImportsOrRequireStatements=M;function x(K,Z){return e.compareValues(w(K),w(Z))}function w(K){var Z;switch(K.kind){case 265:return K.importClause?K.importClause.isTypeOnly?1:((Z=K.importClause.namedBindings)===null||Z===void 0?void 0:Z.kind)===267?2:K.importClause.name?3:4:0;case 264:return 5;case 236:return 6}}})(e.OrganizeImports||(e.OrganizeImports={}))})(gr||(gr={}));var gr;(function(e){(function(n){function f(S,B){var J=[];return d(S,B,J),a(S,J),J.sort(function(k,M){return k.textSpan.start-M.textSpan.start})}n.collectElements=f;function d(S,B,J){for(var k=40,M=0,x=Gt(Gt([],S.statements,!0),[S.endOfFileToken],!1),w=x.length;M<w;){for(;M<w&&!e.isAnyImportSyntax(x[M]);)ne(x[M]),M++;if(M===w)break;for(var K=M;M<w&&e.isAnyImportSyntax(x[M]);)h(x[M],S,B,J),M++;var Z=M-1;Z!==K&&J.push(v(e.findChildOfKind(x[K],100,S).getStart(S),x[Z].getEnd(),"imports"))}function ne(R){var Y;if(k!==0){B.throwIfCancellationRequested(),(e.isDeclaration(R)||e.isVariableStatement(R)||e.isReturnStatement(R)||R.kind===1)&&h(R,S,B,J),e.isFunctionLike(R)&&e.isBinaryExpression(R.parent)&&e.isPropertyAccessExpression(R.parent.left)&&h(R.parent.left,S,B,J),(e.isBlock(R)||e.isModuleBlock(R))&&H(R.statements.end,S,B,J),(e.isClassLike(R)||e.isInterfaceDeclaration(R))&&H(R.members.end,S,B,J);var U=A(R,S);U&&J.push(U),k--,e.isCallExpression(R)?(k++,ne(R.expression),k--,R.arguments.forEach(ne),(Y=R.typeArguments)===null||Y===void 0||Y.forEach(ne)):e.isIfStatement(R)&&R.elseStatement&&e.isIfStatement(R.elseStatement)?(ne(R.expression),ne(R.thenStatement),k++,ne(R.elseStatement),k--):R.forEachChild(ne),k++}}}function a(S,B){for(var J=[],k=S.getLineStarts(),M=0,x=k;M<x.length;M++){var w=x[M],K=S.getLineEndOfPosition(w),Z=S.text.substring(w,K),ne=N(Z);if(!(!ne||e.isInComment(S,w)))if(ne[1]){var Y=J.pop();Y&&(Y.textSpan.length=K-Y.textSpan.start,Y.hintSpan.length=K-Y.textSpan.start,B.push(Y))}else{var R=e.createTextSpanFromBounds(S.text.indexOf("//",w),K);J.push(b(R,"region",R,!1,ne[2]||"#region"))}}}var p=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function N(S){return S=e.trimStringStart(S),e.startsWith(S,"//")?(S=e.trimString(S.slice(2)),p.exec(S)):null}function H(S,B,J,k){var M=e.getLeadingCommentRanges(B.text,S);if(!M)return;for(var x=-1,w=-1,K=0,Z=B.getFullText(),ne=0,R=M;ne<R.length;ne++){var Y=R[ne],U=Y.kind,$=Y.pos,T=Y.end;switch(J.throwIfCancellationRequested(),U){case 2:var I=Z.slice($,T);if(N(I)){y(),K=0;break}K===0&&(x=$),w=T,K++;break;case 3:y(),k.push(v($,T,"comment")),K=0;break;default:e.Debug.assertNever(U)}}y();function y(){K>1&&k.push(v(x,w,"comment"))}}function h(S,B,J,k){e.isJsxText(S)||H(S.pos,B,J,k)}function v(S,B,J){return b(e.createTextSpanFromBounds(S,B),J)}function A(S,B){switch(S.kind){case 234:if(e.isFunctionLike(S.parent))return q(S.parent,S,B);switch(S.parent.kind){case 239:case 242:case 243:case 241:case 238:case 240:case 247:case 291:return Y(S.parent);case 251:var J=S.parent;if(J.tryBlock===S)return Y(S.parent);if(J.finallyBlock===S){var k=e.findChildOfKind(J,96,B);if(k)return Y(k)}default:return b(e.createTextSpanFromNode(S,B),"code")}case 261:return Y(S.parent);case 256:case 225:case 257:case 259:case 262:case 181:case 200:return Y(S);case 183:return Y(S,!1,!e.isTupleTypeNode(S.parent),22);case 288:case 289:return U(S.statements);case 204:return R(S);case 203:return R(S,22);case 277:return w(S);case 281:return K(S);case 278:case 279:return Z(S.attributes);case 222:case 14:return ne(S);case 201:return Y(S,!1,!e.isBindingElement(S.parent),22);case 213:return x(S);case 207:return M(S)}function M($){if(!!$.arguments.length){var T=e.findChildOfKind($,20,B),I=e.findChildOfKind($,21,B);if(!(!T||!I||e.positionsAreOnSameLine(T.pos,I.pos,B)))return ie(T,I,$,B,!1,!0)}}function x($){if(!(e.isBlock($.body)||e.positionsAreOnSameLine($.body.getFullStart(),$.body.getEnd(),B))){var T=e.createTextSpanFromBounds($.body.getFullStart(),$.body.getEnd());return b(T,"code",e.createTextSpanFromNode($))}}function w($){var T=e.createTextSpanFromBounds($.openingElement.getStart(B),$.closingElement.getEnd()),I=$.openingElement.tagName.getText(B),y="<"+I+">...</"+I+">";return b(T,"code",T,!1,y)}function K($){var T=e.createTextSpanFromBounds($.openingFragment.getStart(B),$.closingFragment.getEnd()),I="<>...</>";return b(T,"code",T,!1,I)}function Z($){if($.properties.length!==0)return v($.getStart(B),$.getEnd(),"code")}function ne($){if(!($.kind===14&&$.text.length===0))return v($.getStart(B),$.getEnd(),"code")}function R($,T){return T===void 0&&(T=18),Y($,!1,!e.isArrayLiteralExpression($.parent)&&!e.isCallExpression($.parent),T)}function Y($,T,I,y,D){T===void 0&&(T=!1),I===void 0&&(I=!0),y===void 0&&(y=18),D===void 0&&(D=y===18?19:23);var C=e.findChildOfKind(S,y,B),m=e.findChildOfKind(S,D,B);return C&&m&&ie(C,m,$,B,T,I)}function U($){return $.length?b(e.createTextSpanFromRange($),"code"):void 0}}function q(S,B,J){var k=P(S,B,J),M=e.findChildOfKind(B,19,J);return k&&M&&ie(k,M,S,J,S.kind!==213)}function ie(S,B,J,k,M,x){M===void 0&&(M=!1),x===void 0&&(x=!0);var w=e.createTextSpanFromBounds(x?S.getFullStart():S.getStart(k),B.getEnd());return b(w,"code",e.createTextSpanFromNode(J,k),M)}function b(S,B,J,k,M){return J===void 0&&(J=S),k===void 0&&(k=!1),M===void 0&&(M="..."),{textSpan:S,kind:B,hintSpan:J,bannerText:M,autoCollapse:k}}function P(S,B,J){if(e.isNodeArrayMultiLine(S.parameters,J)){var k=e.findChildOfKind(S,20,J);if(k)return k}return e.findChildOfKind(B,18,J)}})(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))})(gr||(gr={}));var gr;(function(e){var n;(function(y){y[y.exact=0]="exact",y[y.prefix=1]="prefix",y[y.substring=2]="substring",y[y.camelCase=3]="camelCase"})(n=e.PatternMatchKind||(e.PatternMatchKind={}));function f(y,D){return{kind:y,isCaseSensitive:D}}function d(y){var D=new e.Map,C=y.trim().split(".").map(function(m){return b(m.trim())});if(!C.some(function(m){return!m.subWordTextChunks.length}))return{getFullMatch:function(m,u){return a(m,u,C,D)},getMatchForLastSegmentOfPattern:function(m){return H(m,e.last(C),D)},patternContainsDots:C.length>1}}e.createPatternMatcher=d;function a(y,D,C,m){var u=H(D,e.last(C),m);if(!!u&&!(C.length-1>y.length)){for(var g,F=C.length-2,te=y.length-1;F>=0;F-=1,te-=1)g=h(g,H(y[te],C[F],m));return g}}function p(y,D){var C=D.get(y);return C||D.set(y,C=Z(y)),C}function N(y,D,C){var m=B(y,D.textLowerCase);if(m===0)return f(D.text.length===y.length?n.exact:n.prefix,e.startsWith(y,D.text));if(D.isLowerCase){if(m===-1)return;for(var u=p(y,C),g=0,F=u;g<F.length;g++){var te=F[g];if(A(y,te,D.text,!0))return f(n.substring,A(y,te,D.text,!1))}if(D.text.length<y.length&&P(y.charCodeAt(m)))return f(n.substring,!1)}else{if(y.indexOf(D.text)>0)return f(n.substring,!0);if(D.characterSpans.length>0){var ue=p(y,C),X=ie(y,ue,D,!1)?!0:ie(y,ue,D,!0)?!1:void 0;if(X!==void 0)return f(n.camelCase,X)}}}function H(y,D,C){if(I(D.totalTextChunk.text,function(X){return X!==32&&X!==42})){var m=N(y,D.totalTextChunk,C);if(m)return m}for(var u=D.subWordTextChunks,g,F=0,te=u;F<te.length;F++){var ue=te[F];g=h(g,N(y,ue,C))}return g}function h(y,D){return e.min(y,D,v)}function v(y,D){return y===void 0?1:D===void 0?-1:e.compareValues(y.kind,D.kind)||e.compareBooleans(!y.isCaseSensitive,!D.isCaseSensitive)}function A(y,D,C,m,u){return u===void 0&&(u={start:0,length:C.length}),u.length<=D.length&&T(0,u.length,function(g){return q(C.charCodeAt(u.start+g),y.charCodeAt(D.start+g),m)})}function q(y,D,C){return C?J(y)===J(D):y===D}function ie(y,D,C,m){for(var u=C.characterSpans,g=0,F=0;;){if(F===u.length)return!0;if(g===D.length)return!1;for(var te=D[g],ue=!1;F<u.length;F++){var X=u[F];if(ue&&(!P(C.text.charCodeAt(u[F-1].start))||!P(C.text.charCodeAt(u[F].start)))||!A(y,te,C.text,m,X))break;ue=!0,te=e.createTextSpan(te.start+X.length,te.length-X.length)}g++}}function b(y){return{totalTextChunk:w(y),subWordTextChunks:x(y)}}function P(y){if(y>=65&&y<=90)return!0;if(y<127||!e.isUnicodeIdentifierStart(y,99))return!1;var D=String.fromCharCode(y);return D===D.toUpperCase()}function S(y){if(y>=97&&y<=122)return!0;if(y<127||!e.isUnicodeIdentifierStart(y,99))return!1;var D=String.fromCharCode(y);return D===D.toLowerCase()}function B(y,D){for(var C=y.length-D.length,m=function(F){if(I(D,function(te,ue){return J(y.charCodeAt(ue+F))===te}))return{value:F}},u=0;u<=C;u++){var g=m(u);if(typeof g=="object")return g.value}return-1}function J(y){return y>=65&&y<=90?97+(y-65):y<127?y:String.fromCharCode(y).toLowerCase().charCodeAt(0)}function k(y){return y>=48&&y<=57}function M(y){return P(y)||S(y)||k(y)||y===95||y===36}function x(y){for(var D=[],C=0,m=0,u=0;u<y.length;u++){var g=y.charCodeAt(u);M(g)?(m===0&&(C=u),m++):m>0&&(D.push(w(y.substr(C,m))),m=0)}return m>0&&D.push(w(y.substr(C,m))),D}function w(y){var D=y.toLowerCase();return{text:y,textLowerCase:D,isLowerCase:y===D,characterSpans:K(y)}}function K(y){return ne(y,!1)}e.breakIntoCharacterSpans=K;function Z(y){return ne(y,!0)}e.breakIntoWordSpans=Z;function ne(y,D){for(var C=[],m=0,u=1;u<y.length;u++){var g=k(y.charCodeAt(u-1)),F=k(y.charCodeAt(u)),te=$(y,D,u),ue=D&&U(y,u,m);(R(y.charCodeAt(u-1))||R(y.charCodeAt(u))||g!==F||te||ue)&&(Y(y,m,u)||C.push(e.createTextSpan(m,u-m)),m=u)}return Y(y,m,y.length)||C.push(e.createTextSpan(m,y.length-m)),C}function R(y){switch(y){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 Y(y,D,C){return I(y,function(m){return R(m)&&m!==95},D,C)}function U(y,D,C){return D!==C&&D+1<y.length&&P(y.charCodeAt(D))&&S(y.charCodeAt(D+1))&&I(y,P,C,D)}function $(y,D,C){var m=P(y.charCodeAt(C-1)),u=P(y.charCodeAt(C));return u&&(!D||!m)}function T(y,D,C){for(var m=y;m<D;m++)if(!C(m))return!1;return!0}function I(y,D,C,m){return C===void 0&&(C=0),m===void 0&&(m=y.length),T(C,m,function(u){return D(y.charCodeAt(u),u)})}})(gr||(gr={}));var gr;(function(e){function n(f,d,a){d===void 0&&(d=!0),a===void 0&&(a=!1);var p={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},N=[],H,h,v,A=0,q=!1;function ie(){return h=v,v=e.scanner.scan(),v===18?A++:v===19&&A--,v}function b(){var T=e.scanner.getTokenValue(),I=e.scanner.getTokenPos();return{fileName:T,pos:I,end:I+T.length}}function P(){H||(H=[]),H.push({ref:b(),depth:A})}function S(){N.push(b()),B()}function B(){A===0&&(q=!0)}function J(){var T=e.scanner.getToken();return T===135?(T=ie(),T===141&&(T=ie(),T===10&&P()),!0):!1}function k(){if(h===24)return!1;var T=e.scanner.getToken();if(T===100){if(T=ie(),T===20){if(T=ie(),T===10||T===14)return S(),!0}else{if(T===10)return S(),!0;if(T===151){var I=e.scanner.lookAhead(function(){var y=e.scanner.scan();return y!==155&&(y===41||y===18||y===79||e.isKeyword(y))});I&&(T=ie())}if(T===79||e.isKeyword(T))if(T=ie(),T===155){if(T=ie(),T===10)return S(),!0}else if(T===63){if(x(!0))return!0}else if(T===27)T=ie();else return!0;if(T===18){for(T=ie();T!==19&&T!==1;)T=ie();T===19&&(T=ie(),T===155&&(T=ie(),T===10&&S()))}else T===41&&(T=ie(),T===127&&(T=ie(),(T===79||e.isKeyword(T))&&(T=ie(),T===155&&(T=ie(),T===10&&S()))))}return!0}return!1}function M(){var T=e.scanner.getToken();if(T===93){if(B(),T=ie(),T===151){var I=e.scanner.lookAhead(function(){var y=e.scanner.scan();return y===41||y===18});I&&(T=ie())}if(T===18){for(T=ie();T!==19&&T!==1;)T=ie();T===19&&(T=ie(),T===155&&(T=ie(),T===10&&S()))}else if(T===41)T=ie(),T===155&&(T=ie(),T===10&&S());else if(T===100){if(T=ie(),T===151){var I=e.scanner.lookAhead(function(){var D=e.scanner.scan();return D===79||e.isKeyword(D)});I&&(T=ie())}if((T===79||e.isKeyword(T))&&(T=ie(),T===63&&x(!0)))return!0}return!0}return!1}function x(T,I){I===void 0&&(I=!1);var y=T?ie():e.scanner.getToken();return y===145?(y=ie(),y===20&&(y=ie(),(y===10||I&&y===14)&&S()),!0):!1}function w(){var T=e.scanner.getToken();if(T===79&&e.scanner.getTokenValue()==="define"){if(T=ie(),T!==20)return!0;if(T=ie(),T===10||T===14)if(T=ie(),T===27)T=ie();else return!0;if(T!==22)return!0;for(T=ie();T!==23&&T!==1;)(T===10||T===14)&&S(),T=ie();return!0}return!1}function K(){for(e.scanner.setText(f),ie();e.scanner.getToken()!==1;)J()||k()||M()||a&&(x(!1,!0)||w())||ie();e.scanner.setText(void 0)}if(d&&K(),e.processCommentPragmas(p,f),e.processPragmasIntoFields(p,e.noop),q){if(H)for(var Z=0,ne=H;Z<ne.length;Z++){var R=ne[Z];N.push(R.ref)}return{referencedFiles:p.referencedFiles,typeReferenceDirectives:p.typeReferenceDirectives,libReferenceDirectives:p.libReferenceDirectives,importedFiles:N,isLibFile:!!p.hasNoDefaultLib,ambientExternalModules:void 0}}else{var Y=void 0;if(H)for(var U=0,$=H;U<$.length;U++){var R=$[U];R.depth===0?(Y||(Y=[]),Y.push(R.ref.fileName)):N.push(R.ref)}return{referencedFiles:p.referencedFiles,typeReferenceDirectives:p.typeReferenceDirectives,libReferenceDirectives:p.libReferenceDirectives,importedFiles:N,isLibFile:!!p.hasNoDefaultLib,ambientExternalModules:Y}}}e.preProcessFile=n})(gr||(gr={}));var gr;(function(e){(function(n){function f(A,q,ie,b){var P=e.getAdjustedRenameLocation(e.getTouchingPropertyName(q,ie));if(v(P)){var S=d(P,A.getTypeChecker(),q,A,b);if(S)return S}return H(e.Diagnostics.You_cannot_rename_this_element)}n.getRenameInfo=f;function d(A,q,ie,b,P){var S=q.getSymbolAtLocation(A);if(!S){if(e.isStringLiteralLike(A)){var B=e.getContextualTypeFromParentOrAncestorTypeNode(A,q);if(B&&(B.flags&128||B.flags&1048576&&e.every(B.types,function(Z){return!!(Z.flags&128)})))return N(A.text,A.text,"string","",A,ie)}else if(e.isLabelName(A)){var J=e.getTextOfNode(A);return N(J,J,"label","",A,ie)}return}var k=S.declarations;if(!(!k||k.length===0)){if(k.some(function(Z){return a(b,Z)}))return H(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(e.isIdentifier(A)&&A.originalKeywordKind===88&&S.parent&&S.parent.flags&1536)){if(e.isStringLiteralLike(A)&&e.tryGetImportFromModuleSpecifier(A))return P&&P.allowRenameOfImportPath?p(A,ie,S):void 0;var M=e.SymbolDisplay.getSymbolKind(q,S,A),x=e.isImportOrExportSpecifierName(A)||e.isStringOrNumericLiteralLike(A)&&A.parent.kind===161?e.stripQuotes(e.getTextOfIdentifierOrLiteral(A)):void 0,w=x||q.symbolToString(S),K=x||q.getFullyQualifiedName(S);return N(w,K,M,e.SymbolDisplay.getSymbolModifiers(q,S),A,ie)}}}function a(A,q){var ie=q.getSourceFile();return A.isSourceFileDefaultLibrary(ie)&&e.fileExtensionIs(ie.fileName,".d.ts")}function p(A,q,ie){if(!e.isExternalModuleNameRelative(A.text))return H(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var b=ie.declarations&&e.find(ie.declarations,e.isSourceFile);if(!!b){var P=e.endsWith(A.text,"/index")||e.endsWith(A.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(b.fileName),"/index"),S=P===void 0?b.fileName:P,B=P===void 0?"module":"directory",J=A.text.lastIndexOf("/")+1,k=e.createTextSpan(A.getStart(q)+1+J,A.text.length-J);return{canRename:!0,fileToRename:S,kind:B,displayName:S,fullDisplayName:S,kindModifiers:"",triggerSpan:k}}}function N(A,q,ie,b,P,S){return{canRename:!0,fileToRename:void 0,kind:ie,displayName:A,fullDisplayName:q,kindModifiers:b,triggerSpan:h(P,S)}}function H(A){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(A)}}function h(A,q){var ie=A.getStart(q),b=A.getWidth(q);return e.isStringLiteralLike(A)&&(ie+=1,b-=2),e.createTextSpan(ie,b)}function v(A){switch(A.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(A);default:return!1}}n.nodeIsEligibleForRename=v})(e.Rename||(e.Rename={}))})(gr||(gr={}));var gr;(function(e){(function(n){function f(ie,b){var P,S={textSpan:e.createTextSpanFromBounds(b.getFullStart(),b.getEnd())},B=b;e:for(;;){var J=p(B);if(!J.length)break;for(var k=0;k<J.length;k++){var M=J[k-1],x=J[k],w=J[k+1];if(e.getTokenPosOfNode(x,b,!0)>ie)break e;var K=e.singleOrUndefined(e.getTrailingCommentRanges(b.text,x.end));if(K&&K.kind===2&&T(K.pos,K.end),d(b,ie,x)){if(e.isBlock(x)||e.isTemplateSpan(x)||e.isTemplateHead(x)||e.isTemplateTail(x)||M&&e.isTemplateHead(M)||e.isVariableDeclarationList(x)&&e.isVariableStatement(B)||e.isSyntaxList(x)&&e.isVariableDeclarationList(B)||e.isVariableDeclaration(x)&&e.isSyntaxList(B)&&J.length===1||e.isJSDocTypeExpression(x)||e.isJSDocSignature(x)||e.isJSDocTypeLiteral(x)){B=x;break}if(e.isTemplateSpan(B)&&w&&e.isTemplateMiddleOrTemplateTail(w)){var Z=x.getFullStart()-2,ne=w.getStart()+1;$(Z,ne)}var R=e.isSyntaxList(x)&&v(M)&&A(w)&&!e.positionsAreOnSameLine(M.getStart(),w.getStart(),b),Y=R?M.getEnd():x.getStart(),U=R?w.getStart():q(b,x);e.hasJSDocNodes(x)&&((P=x.jsDoc)===null||P===void 0?void 0:P.length)&&$(e.first(x.jsDoc).getStart(),U),$(Y,U),(e.isStringLiteral(x)||e.isTemplateLiteral(x))&&$(Y+1,U-1),B=x;break}if(k===J.length-1)break e}}return S;function $(I,y){if(I!==y){var D=e.createTextSpanFromBounds(I,y);(!S||!e.textSpansEqual(D,S.textSpan)&&e.textSpanIntersectsWithPosition(D,ie))&&(S=Rn({textSpan:D},S&&{parent:S}))}}function T(I,y){$(I,y);for(var D=I;b.text.charCodeAt(D)===47;)D++;$(D,y)}}n.getSmartSelectionRange=f;function d(ie,b,P){if(e.Debug.assert(P.pos<=b),b<P.end)return!0;var S=P.getEnd();return S===b?e.getTouchingPropertyName(ie,b).pos<P.end:!1}var a=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function p(ie){if(e.isSourceFile(ie))return N(ie.getChildAt(0).getChildren(),a);if(e.isMappedTypeNode(ie)){var b=ie.getChildren(),P=b[0],S=b.slice(1),B=e.Debug.checkDefined(S.pop());e.Debug.assertEqual(P.kind,18),e.Debug.assertEqual(B.kind,19);var J=N(S,function(w){return w===ie.readonlyToken||w.kind===144||w===ie.questionToken||w.kind===57}),k=N(J,function(w){var K=w.kind;return K===22||K===162||K===23});return[P,h(H(k,function(w){var K=w.kind;return K===58})),B]}if(e.isPropertySignature(ie)){var S=N(ie.getChildren(),function(K){return K===ie.name||e.contains(ie.modifiers,K)});return H(S,function(K){var Z=K.kind;return Z===58})}if(e.isParameter(ie)){var M=N(ie.getChildren(),function(w){return w===ie.dotDotDotToken||w===ie.name}),x=N(M,function(w){return w===M[0]||w===ie.questionToken});return H(x,function(w){var K=w.kind;return K===63})}return e.isBindingElement(ie)?H(ie.getChildren(),function(w){var K=w.kind;return K===63}):ie.getChildren()}function N(ie,b){for(var P=[],S,B=0,J=ie;B<J.length;B++){var k=J[B];b(k)?(S=S||[],S.push(k)):(S&&(P.push(h(S)),S=void 0),P.push(k))}return S&&P.push(h(S)),P}function H(ie,b,P){if(P===void 0&&(P=!0),ie.length<2)return ie;var S=e.findIndex(ie,b);if(S===-1)return ie;var B=ie.slice(0,S),J=ie[S],k=e.last(ie),M=P&&k.kind===26,x=ie.slice(S+1,M?ie.length-1:void 0),w=e.compact([B.length?h(B):void 0,J,x.length?h(x):void 0]);return M?w.concat(k):w}function h(ie){return e.Debug.assertGreaterThanOrEqual(ie.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(ie),ie[0].pos,e.last(ie).end)}function v(ie){var b=ie&&ie.kind;return b===18||b===22||b===20||b===279}function A(ie){var b=ie&&ie.kind;return b===19||b===23||b===21||b===280}function q(ie,b){switch(b.kind){case 338:case 336:case 345:case 343:case 340:return ie.getLineEndOfPosition(b.getStart());default:return b.getEnd()}}})(e.SmartSelectionRange||(e.SmartSelectionRange={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f;(function(X){X[X.Call=0]="Call",X[X.TypeArgs=1]="TypeArgs",X[X.Contextual=2]="Contextual"})(f||(f={}));function d(X,j,Se,Ce,O){var Q=X.getTypeChecker(),V=e.findTokenOnLeftOfPosition(j,Se);if(!!V){var z=!!Ce&&Ce.kind==="characterTyped";if(!(z&&(e.isInString(j,Se,V)||e.isInComment(j,Se)))){var Te=!!Ce&&Ce.kind==="invoked",ge=R(V,Se,j,Q,Te);if(!!ge){O.throwIfCancellationRequested();var ke=p(ge,Q,j,V,z);return O.throwIfCancellationRequested(),ke?Q.runWithCancellationToken(O,function(Me){return ke.kind===0?I(ke.candidates,ke.resolvedSignature,ge,j,Me):y(ke.symbol,ge,j,Me)}):e.isSourceFileJS(j)?H(ge,X,O):void 0}}}}n.getSignatureHelpItems=d;var a;(function(X){X[X.Candidate=0]="Candidate",X[X.Type=1]="Type"})(a||(a={}));function p(X,j,Se,Ce,O){var Q=X.invocation,V=X.argumentCount;switch(Q.kind){case 0:{if(O&&!N(Ce,Q.node,Se))return;var z=[],Te=j.getResolvedSignatureForSignatureHelp(Q.node,z,V);return z.length===0?void 0:{kind:0,candidates:z,resolvedSignature:Te}}case 1:{var ge=Q.called;if(O&&!h(Ce,Se,e.isIdentifier(ge)?ge.parent:ge))return;var z=e.getPossibleGenericSignatures(ge,V,j);if(z.length!==0)return{kind:0,candidates:z,resolvedSignature:e.first(z)};var ke=j.getSymbolAtLocation(ge);return ke&&{kind:1,symbol:ke}}case 2:return{kind:0,candidates:[Q.signature],resolvedSignature:Q.signature};default:return e.Debug.assertNever(Q)}}function N(X,j,Se){if(!e.isCallOrNewExpression(j))return!1;var Ce=j.getChildren(Se);switch(X.kind){case 20:return e.contains(Ce,X);case 27:{var O=e.findContainingList(X);return!!O&&e.contains(Ce,O)}case 29:return h(X,Se,j.expression);default:return!1}}function H(X,j,Se){if(X.invocation.kind!==2){var Ce=U(X.invocation),O=e.isPropertyAccessExpression(Ce)?Ce.name.text:void 0,Q=j.getTypeChecker();return O===void 0?void 0:e.firstDefined(j.getSourceFiles(),function(V){return e.firstDefined(V.getNamedDeclarations().get(O),function(z){var Te=z.symbol&&Q.getTypeOfSymbolAtLocation(z.symbol,z),ge=Te&&Te.getCallSignatures();if(ge&&ge.length)return Q.runWithCancellationToken(Se,function(ke){return I(ge,ge[0],X,V,ke,!0)})})})}}function h(X,j,Se){for(var Ce=X.getFullStart(),O=X.parent;O;){var Q=e.findPrecedingToken(Ce,j,O,!0);if(Q)return e.rangeContainsRange(Se,Q);O=O.parent}return e.Debug.fail("Could not find preceding token")}function v(X,j,Se){var Ce=ie(X,j,Se);return!Ce||Ce.isTypeParameterList||Ce.invocation.kind!==0?void 0:{invocation:Ce.invocation.node,argumentCount:Ce.argumentCount,argumentIndex:Ce.argumentIndex}}n.getArgumentInfoForCompletions=v;function A(X,j){var Se=q(X,j);if(!!Se){var Ce=Se.list,O=Se.argumentIndex,Q=x(Ce);O!==0&&e.Debug.assertLessThan(O,Q);var V=Z(Ce,j);return{list:Ce,argumentIndex:O,argumentCount:Q,argumentsSpan:V}}}function q(X,j){if(X.kind===29||X.kind===20)return{list:Y(X.parent,X,j),argumentIndex:0};var Se=e.findContainingList(X);return Se&&{list:Se,argumentIndex:M(Se,X)}}function ie(X,j,Se){var Ce=X.parent;if(e.isCallOrNewExpression(Ce)){var O=Ce,Q=A(X,Se);if(!Q)return;var V=Q.list,z=Q.argumentIndex,Te=Q.argumentCount,ge=Q.argumentsSpan,ke=!!Ce.typeArguments&&Ce.typeArguments.pos===V.pos;return{isTypeParameterList:ke,invocation:{kind:0,node:O},argumentsSpan:ge,argumentIndex:z,argumentCount:Te}}else{if(e.isNoSubstitutionTemplateLiteral(X)&&e.isTaggedTemplateExpression(Ce))return e.isInsideTemplateLiteral(X,j,Se)?K(Ce,0,Se):void 0;if(e.isTemplateHead(X)&&Ce.parent.kind===209){var Me=Ce,Ie=Me.parent;e.Debug.assert(Me.kind===222);var z=e.isInsideTemplateLiteral(X,j,Se)?0:1;return K(Ie,z,Se)}else if(e.isTemplateSpan(Ce)&&e.isTaggedTemplateExpression(Ce.parent.parent)){var Ge=Ce,Ie=Ce.parent.parent;if(e.isTemplateTail(X)&&!e.isInsideTemplateLiteral(X,j,Se))return;var he=Ge.parent.templateSpans.indexOf(Ge),z=w(he,X,j,Se);return K(Ie,z,Se)}else if(e.isJsxOpeningLikeElement(Ce)){var ve=Ce.attributes.pos,Ve=e.skipTrivia(Se.text,Ce.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:Ce},argumentsSpan:e.createTextSpan(ve,Ve-ve),argumentIndex:0,argumentCount:1}}else{var _e=e.getPossibleTypeArgumentsInfo(X,Se);if(_e){var Le=_e.called,qe=_e.nTypeArguments,O={kind:1,called:Le},ge=e.createTextSpanFromBounds(Le.getStart(Se),X.end);return{isTypeParameterList:!0,invocation:O,argumentsSpan:ge,argumentIndex:qe,argumentCount:qe+1}}return}}}function b(X,j,Se,Ce){return B(X,j,Se,Ce)||ie(X,j,Se)}function P(X){return e.isBinaryExpression(X.parent)?P(X.parent):X}function S(X){return e.isBinaryExpression(X.left)?S(X.left)+1:2}function B(X,j,Se,Ce){var O=J(X,Se,Ce);if(!!O){var Q=O.contextualType,V=O.argumentIndex,z=O.argumentCount,Te=O.argumentsSpan,ge=Q.getNonNullableType(),ke=ge.getCallSignatures();if(ke.length===1){var Me={kind:2,signature:e.first(ke),node:X,symbol:k(ge.symbol)};return{isTypeParameterList:!1,invocation:Me,argumentsSpan:Te,argumentIndex:V,argumentCount:z}}}}function J(X,j,Se){if(!(X.kind!==20&&X.kind!==27)){var Ce=X.parent;switch(Ce.kind){case 211:case 168:case 212:case 213:var O=A(X,j);if(!O)return;var Q=O.argumentIndex,V=O.argumentCount,z=O.argumentsSpan,Te=e.isMethodDeclaration(Ce)?Se.getContextualTypeForObjectLiteralElement(Ce):Se.getContextualType(Ce);return Te&&{contextualType:Te,argumentIndex:Q,argumentCount:V,argumentsSpan:z};case 220:{var ge=P(Ce),ke=Se.getContextualType(ge),Me=X.kind===20?0:S(Ce)-1,Ie=S(ge);return ke&&{contextualType:ke,argumentIndex:Me,argumentCount:Ie,argumentsSpan:e.createTextSpanFromNode(Ce)}}default:return}}}function k(X){return X.name==="__type"&&e.firstDefined(X.declarations,function(j){return e.isFunctionTypeNode(j)?j.parent.symbol:void 0})||X}function M(X,j){for(var Se=0,Ce=0,O=X.getChildren();Ce<O.length;Ce++){var Q=O[Ce];if(Q===j)break;Q.kind!==27&&Se++}return Se}function x(X){var j=X.getChildren(),Se=e.countWhere(j,function(Ce){return Ce.kind!==27});return j.length>0&&e.last(j).kind===27&&Se++,Se}function w(X,j,Se,Ce){return e.Debug.assert(Se>=j.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(j)?e.isInsideTemplateLiteral(j,Se,Ce)?0:X+2:X+1}function K(X,j,Se){var Ce=e.isNoSubstitutionTemplateLiteral(X.template)?1:X.template.templateSpans.length+1;return j!==0&&e.Debug.assertLessThan(j,Ce),{isTypeParameterList:!1,invocation:{kind:0,node:X},argumentsSpan:ne(X,Se),argumentIndex:j,argumentCount:Ce}}function Z(X,j){var Se=X.getFullStart(),Ce=e.skipTrivia(j.text,X.getEnd(),!1);return e.createTextSpan(Se,Ce-Se)}function ne(X,j){var Se=X.template,Ce=Se.getStart(),O=Se.getEnd();if(Se.kind===222){var Q=e.last(Se.templateSpans);Q.literal.getFullWidth()===0&&(O=e.skipTrivia(j.text,O,!1))}return e.createTextSpan(Ce,O-Ce)}function R(X,j,Se,Ce,O){for(var Q=function(Te){e.Debug.assert(e.rangeContainsRange(Te.parent,Te),"Not a subspan",function(){return"Child: ".concat(e.Debug.formatSyntaxKind(Te.kind),", parent: ").concat(e.Debug.formatSyntaxKind(Te.parent.kind))});var ge=b(Te,j,Se,Ce);if(ge)return{value:ge}},V=X;!e.isSourceFile(V)&&(O||!e.isBlock(V));V=V.parent){var z=Q(V);if(typeof z=="object")return z.value}}function Y(X,j,Se){var Ce=X.getChildren(Se),O=Ce.indexOf(j);return e.Debug.assert(O>=0&&Ce.length>O+1),Ce[O+1]}function U(X){return X.kind===0?e.getInvokedExpression(X.node):X.called}function $(X){return X.kind===0?X.node:X.kind===1?X.called:X.node}var T=70246400;function I(X,j,Se,Ce,O,Q){var V,z=Se.isTypeParameterList,Te=Se.argumentCount,ge=Se.argumentsSpan,ke=Se.invocation,Me=Se.argumentIndex,Ie=$(ke),Ge=ke.kind===2?ke.symbol:O.getSymbolAtLocation(U(ke))||Q&&((V=j.declaration)===null||V===void 0?void 0:V.symbol),he=Ge?e.symbolToDisplayParts(O,Ge,Q?Ce:void 0,void 0):e.emptyArray,ve=e.map(X,function(Cr){return m(Cr,he,z,O,Ie,Ce)});Me!==0&&e.Debug.assertLessThan(Me,Te);for(var Ve=0,_e=0,Le=0;Le<ve.length;Le++){var qe=ve[Le];if(X[Le]===j&&(Ve=_e,qe.length>1))for(var Xe=0,De=0,Ae=qe;De<Ae.length;De++){var Ye=Ae[De];if(Ye.isVariadic||Ye.parameters.length>=Te){Ve=_e+Xe;break}Xe++}_e+=qe.length}e.Debug.assert(Ve!==-1);var Lr={items:e.flatMapToMutable(ve,e.identity),applicableSpan:ge,selectedItemIndex:Ve,argumentIndex:Me,argumentCount:Te},Er=Lr.items[Ve];if(Er.isVariadic){var lr=e.findIndex(Er.parameters,function(Cr){return!!Cr.isRest});-1<lr&&lr<Er.parameters.length-1?Lr.argumentIndex=Er.parameters.length:Lr.argumentIndex=Math.min(Lr.argumentIndex,Er.parameters.length-1)}return Lr}function y(X,j,Se,Ce){var O=j.argumentCount,Q=j.argumentsSpan,V=j.invocation,z=j.argumentIndex,Te=Ce.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(X);if(!!Te){var ge=[D(X,Te,Ce,$(V),Se)];return{items:ge,applicableSpan:Q,selectedItemIndex:0,argumentIndex:z,argumentCount:O}}}function D(X,j,Se,Ce,O){var Q=e.symbolToDisplayParts(Se,X),V=e.createPrinter({removeComments:!0}),z=j.map(function(Me){return ue(Me,Se,Ce,O,V)}),Te=X.getDocumentationComment(Se),ge=X.getJsDocTags(Se),ke=Gt(Gt([],Q,!0),[e.punctuationPart(29)],!1);return{isVariadic:!1,prefixDisplayParts:ke,suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:C,parameters:z,documentation:Te,tags:ge}}var C=[e.punctuationPart(27),e.spacePart()];function m(X,j,Se,Ce,O,Q){var V=(Se?g:F)(X,Ce,O,Q);return e.map(V,function(z){var Te=z.isVariadic,ge=z.parameters,ke=z.prefix,Me=z.suffix,Ie=Gt(Gt([],j,!0),ke,!0),Ge=Gt(Gt([],Me,!0),u(X,O,Ce),!0),he=X.getDocumentationComment(Ce),ve=X.getJsDocTags();return{isVariadic:Te,prefixDisplayParts:Ie,suffixDisplayParts:Ge,separatorDisplayParts:C,parameters:ge,documentation:he,tags:ve}})}function u(X,j,Se){return e.mapToDisplayParts(function(Ce){Ce.writePunctuation(":"),Ce.writeSpace(" ");var O=Se.getTypePredicateOfSignature(X);O?Se.writeTypePredicate(O,j,void 0,Ce):Se.writeType(Se.getReturnTypeOfSignature(X),j,void 0,Ce)})}function g(X,j,Se,Ce){var O=(X.target||X).typeParameters,Q=e.createPrinter({removeComments:!0}),V=(O||e.emptyArray).map(function(Te){return ue(Te,j,Se,Ce,Q)}),z=X.thisParameter?[j.symbolToParameterDeclaration(X.thisParameter,Se,T)]:[];return j.getExpandedParameters(X).map(function(Te){var ge=e.factory.createNodeArray(Gt(Gt([],z,!0),e.map(Te,function(Me){return j.symbolToParameterDeclaration(Me,Se,T)}),!0)),ke=e.mapToDisplayParts(function(Me){Q.writeList(2576,ge,Ce,Me)});return{isVariadic:!1,parameters:V,prefix:[e.punctuationPart(29)],suffix:Gt([e.punctuationPart(31)],ke,!0)}})}function F(X,j,Se,Ce){var O=e.createPrinter({removeComments:!0}),Q=e.mapToDisplayParts(function(Te){if(X.typeParameters&&X.typeParameters.length){var ge=e.factory.createNodeArray(X.typeParameters.map(function(ke){return j.typeParameterToDeclaration(ke,Se,T)}));O.writeList(53776,ge,Ce,Te)}}),V=j.getExpandedParameters(X),z=j.hasEffectiveRestParameter(X)?V.length===1?function(Te){return!0}:function(Te){return!!(Te.length&&Te[Te.length-1].checkFlags&32768)}:function(Te){return!1};return V.map(function(Te){return{isVariadic:z(Te),parameters:Te.map(function(ge){return te(ge,j,Se,Ce,O)}),prefix:Gt(Gt([],Q,!0),[e.punctuationPart(20)],!1),suffix:[e.punctuationPart(21)]}})}function te(X,j,Se,Ce,O){var Q=e.mapToDisplayParts(function(Te){var ge=j.symbolToParameterDeclaration(X,Se,T);O.writeNode(4,ge,Ce,Te)}),V=j.isOptionalParameter(X.valueDeclaration),z=!!(X.checkFlags&32768);return{name:X.name,documentation:X.getDocumentationComment(j),displayParts:Q,isOptional:V,isRest:z}}function ue(X,j,Se,Ce,O){var Q=e.mapToDisplayParts(function(V){var z=j.typeParameterToDeclaration(X,Se,T);O.writeNode(4,z,Ce,V)});return{name:X.symbol.name,documentation:X.symbol.getDocumentationComment(j),displayParts:Q,isOptional:!1,isRest:!1}}})(e.SignatureHelp||(e.SignatureHelp={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f=30,d=function(H){return new RegExp("^\\s?/\\*\\*?\\s?".concat(H,"\\s?\\*\\/\\s?$"))};function a(H){return H.includeInlayParameterNameHints==="literals"||H.includeInlayParameterNameHints==="all"}function p(H){return H.includeInlayParameterNameHints==="literals"}function N(H){var h=H.file,v=H.program,A=H.span,q=H.cancellationToken,ie=H.preferences,b=h.text,P=v.getCompilerOptions(),S=v.getTypeChecker(),B=[];return J(h),B;function J(g){if(!(!g||g.getFullWidth()===0)){switch(g.kind){case 260:case 256:case 257:case 255:case 225:case 212:case 168:case 213:q.throwIfCancellationRequested()}if(!!e.textSpanIntersectsWith(A,g.pos,g.getFullWidth())&&!e.isTypeNode(g))return ie.includeInlayVariableTypeHints&&e.isVariableDeclaration(g)||ie.includeInlayPropertyDeclarationTypeHints&&e.isPropertyDeclaration(g)?ne(g):ie.includeInlayEnumMemberValueHints&&e.isEnumMember(g)?K(g):a(ie)&&(e.isCallExpression(g)||e.isNewExpression(g))?R(g):(ie.includeInlayFunctionParameterTypeHints&&e.isFunctionLikeDeclaration(g)&&e.hasContextSensitiveParameters(g)&&y(g),ie.includeInlayFunctionLikeReturnTypeHints&&k(g)&&T(g)),e.forEachChild(g,J)}}function k(g){return e.isArrowFunction(g)||e.isFunctionExpression(g)||e.isFunctionDeclaration(g)||e.isMethodDeclaration(g)||e.isGetAccessorDeclaration(g)}function M(g,F,te){B.push({text:"".concat(te?"...":"").concat(C(g,f),":"),position:F,kind:"Parameter",whitespaceAfter:!0})}function x(g,F){B.push({text:": ".concat(C(g,f)),position:F,kind:"Type",whitespaceBefore:!0})}function w(g,F){B.push({text:"= ".concat(C(g,f)),position:F,kind:"Enum",whitespaceBefore:!0})}function K(g){if(!g.initializer){var F=S.getConstantValue(g);F!==void 0&&w(F.toString(),g.end)}}function Z(g){return g.symbol&&g.symbol.flags&1536}function ne(g){if(!(!g.initializer||e.isBindingPattern(g.name))){var F=e.getEffectiveTypeAnnotationNode(g);if(!F){var te=S.getTypeAtLocation(g);if(!Z(te)){var ue=m(te);ue&&x(ue,g.name.end)}}}}function R(g){var F=g.arguments;if(!(!F||!F.length)){var te=[],ue=S.getResolvedSignatureForSignatureHelp(g,te);if(!(!ue||!te.length))for(var X=0;X<F.length;++X){var j=F[X],Se=e.skipParentheses(j);if(!(p(ie)&&!$(Se))){var Ce=S.getParameterIdentifierNameAtPosition(ue,X);if(Ce){var O=Ce[0],Q=Ce[1],V=ie.includeInlayParameterNameHintsWhenArgumentMatchesName||!Y(Se,O);if(!V&&!Q)continue;var z=e.unescapeLeadingUnderscores(O);if(U(Se,z))continue;M(z,j.getStart(),Q)}}}}}function Y(g,F){return e.isIdentifier(g)?g.text===F:e.isPropertyAccessExpression(g)?g.name.text===F:!1}function U(g,F){if(!e.isIdentifierText(F,P.target,e.getLanguageVariant(h.scriptKind)))return!1;var te=e.getLeadingCommentRanges(b,g.pos);if(!(te!=null&&te.length))return!1;var ue=d(F);return e.some(te,function(X){return ue.test(b.substring(X.pos,X.end))})}function $(g){switch(g.kind){case 218:{var F=g.operand;return e.isLiteralExpression(F)||e.isIdentifier(F)&&e.isInfinityOrNaNString(F.escapedText)}case 110:case 95:case 104:case 14:case 222:return!0;case 79:{var te=g.escapedText;return u(te)||e.isInfinityOrNaNString(te)}}return e.isLiteralExpression(g)}function T(g){if(!(e.isArrowFunction(g)&&!e.findChildOfKind(g,20,h))){var F=e.getEffectiveReturnTypeNode(g);if(!(F||!g.body)){var te=S.getSignatureFromDeclaration(g);if(!!te){var ue=S.getReturnTypeOfSignature(te);if(!Z(ue)){var X=m(ue);!X||x(X,I(g))}}}}}function I(g){var F=e.findChildOfKind(g,21,h);return F?F.end:g.parameters.end}function y(g){var F=S.getSignatureFromDeclaration(g);if(!!F)for(var te=0;te<g.parameters.length&&te<F.parameters.length;++te){var ue=g.parameters[te],X=e.getEffectiveTypeAnnotationNode(ue);if(!X){var j=D(F.parameters[te]);!j||x(j,ue.name.end)}}}function D(g){var F=g.valueDeclaration;if(!(!F||!e.isParameter(F))){var te=S.getTypeOfSymbolAtLocation(g,F);if(!Z(te))return m(te)}}function C(g,F){return g.length>F?g.substr(0,F-3)+"...":g}function m(g){var F=71286784,te={removeComments:!0},ue=e.createPrinter(te);return e.usingSingleLineStringWriter(function(X){var j=S.typeToTypeNode(g,void 0,F,X);e.Debug.assertIsDefined(j,"should always get typenode"),ue.writeNode(4,j,h,X)})}function u(g){return g==="undefined"}}n.provideInlayHints=N})(e.InlayHints||(e.InlayHints={}))})(gr||(gr={}));var gr;(function(e){var n=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function f(N){var H=e.createGetCanonicalFileName(N.useCaseSensitiveFileNames()),h=N.getCurrentDirectory(),v=new e.Map,A=new e.Map;return{tryGetSourcePosition:b,tryGetGeneratedPosition:P,toLineColumnOffset:k,clearCache:M};function q(x){return e.toPath(x,h,H)}function ie(x,w){var K=q(x),Z=A.get(K);if(Z)return Z;var ne;if(N.getDocumentPositionMapper)ne=N.getDocumentPositionMapper(x,w);else if(N.readFile){var R=J(x);ne=R&&e.getDocumentPositionMapper({getSourceFileLike:J,getCanonicalFileName:H,log:function(Y){return N.log(Y)}},x,e.getLineInfo(R.text,e.getLineStarts(R)),function(Y){return!N.fileExists||N.fileExists(Y)?N.readFile(Y):void 0})}return A.set(K,ne||e.identitySourceMapConsumer),ne||e.identitySourceMapConsumer}function b(x){if(!!e.isDeclarationFileName(x.fileName)){var w=S(x.fileName);if(!!w){var K=ie(x.fileName).getSourcePosition(x);return!K||K===x?void 0:b(K)||K}}}function P(x){if(!e.isDeclarationFileName(x.fileName)){var w=S(x.fileName);if(!!w){var K=N.getProgram();if(!K.isSourceOfProjectReferenceRedirect(w.fileName)){var Z=K.getCompilerOptions(),ne=e.outFile(Z),R=ne?e.removeFileExtension(ne)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(x.fileName,K.getCompilerOptions(),h,K.getCommonSourceDirectory(),H);if(R!==void 0){var Y=ie(R,x.fileName).getGeneratedPosition(x);return Y===x?void 0:Y}}}}}function S(x){var w=N.getProgram();if(!!w){var K=q(x),Z=w.getSourceFileByPath(K);return Z&&Z.resolvedPath===K?Z:void 0}}function B(x){var w=q(x),K=v.get(w);if(K!==void 0)return K||void 0;if(!N.readFile||N.fileExists&&!N.fileExists(w)){v.set(w,!1);return}var Z=N.readFile(w),ne=Z?p(Z):!1;return v.set(w,ne),ne||void 0}function J(x){return N.getSourceFileLike?N.getSourceFileLike(x):S(x)||B(x)}function k(x,w){var K=J(x);return K.getLineAndCharacterOfPosition(w)}function M(){v.clear(),A.clear()}}e.getSourceMapper=f;function d(N,H,h,v){var A=e.tryGetSourceMappingURL(h);if(A){var q=n.exec(A);if(q){if(q[1]){var ie=q[1];return a(N,e.base64decode(e.sys,ie),H)}A=void 0}}var b=[];A&&b.push(A),b.push(H+".map");for(var P=A&&e.getNormalizedAbsolutePath(A,e.getDirectoryPath(H)),S=0,B=b;S<B.length;S++){var J=B[S],k=e.getNormalizedAbsolutePath(J,e.getDirectoryPath(H)),M=v(k,P);if(e.isString(M))return a(N,M,k);if(M!==void 0)return M||void 0}}e.getDocumentPositionMapper=d;function a(N,H,h){var v=e.tryParseRawSourceMap(H);if(!(!v||!v.sources||!v.file||!v.mappings)&&!(v.sourcesContent&&v.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(N,v,h)}function p(N,H){return{text:N,lineMap:H,getLineAndCharacterOfPosition:function(h){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),h)}}}})(gr||(gr={}));var gr;(function(e){var n=new e.Map;function f(M,x,w){x.getSemanticDiagnostics(M,w);var K=[],Z=x.getTypeChecker(),ne=M.impliedNodeFormat===e.ModuleKind.CommonJS||e.fileExtensionIsOneOf(M.fileName,[".cts",".cjs"]);!ne&&M.commonJsModuleIndicator&&(e.programContainsEsModules(x)||e.compilerOptionsIndicateEsModules(x.getCompilerOptions()))&&d(M)&&K.push(e.createDiagnosticForNode(v(M.commonJsModuleIndicator),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));var R=e.isSourceFileJS(M);if(n.clear(),C(M),e.getAllowSyntheticDefaultImports(x.getCompilerOptions()))for(var Y=0,U=M.imports;Y<U.length;Y++){var $=U[Y],T=e.importFromModuleSpecifier($),I=p(T);if(!!I){var y=e.getResolvedModule(M,$.text,e.getModeForUsageLocation(M,$)),D=y&&x.getSourceFile(y.resolvedFileName);D&&D.externalModuleIndicator&&e.isExportAssignment(D.externalModuleIndicator)&&D.externalModuleIndicator.isExportEquals&&K.push(e.createDiagnosticForNode(I,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(K,M.bindSuggestionDiagnostics),e.addRange(K,x.getSuggestionDiagnostics(M,w)),K.sort(function(m,u){return m.start-u.start});function C(m){if(R)J(m,Z)&&K.push(e.createDiagnosticForNode(e.isVariableDeclaration(m.parent)?m.parent.name:m,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(m)&&m.parent===M&&m.declarationList.flags&2&&m.declarationList.declarations.length===1){var u=m.declarationList.declarations[0].initializer;u&&e.isRequireCall(u,!0)&&K.push(e.createDiagnosticForNode(u,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(m)&&K.push(e.createDiagnosticForNode(m.name||m,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}k(m)&&N(m,Z,K),m.forEachChild(C)}}e.computeSuggestionDiagnostics=f;function d(M){return M.statements.some(function(x){switch(x.kind){case 236:return x.declarationList.declarations.some(function(Z){return!!Z.initializer&&e.isRequireCall(a(Z.initializer),!0)});case 237:{var w=x.expression;if(!e.isBinaryExpression(w))return e.isRequireCall(w,!0);var K=e.getAssignmentDeclarationKind(w);return K===1||K===2}default:return!1}})}function a(M){return e.isPropertyAccessExpression(M)?a(M.expression):M}function p(M){switch(M.kind){case 265:var x=M.importClause,w=M.moduleSpecifier;return x&&!x.name&&x.namedBindings&&x.namedBindings.kind===267&&e.isStringLiteral(w)?x.namedBindings.name:void 0;case 264:return M.name;default:return}}function N(M,x,w){H(M,x)&&!n.has(B(M))&&w.push(e.createDiagnosticForNode(!M.name&&e.isVariableDeclaration(M.parent)&&e.isIdentifier(M.parent.name)?M.parent.name:M,e.Diagnostics.This_may_be_converted_to_an_async_function))}function H(M,x){return!e.isAsyncFunction(M)&&M.body&&e.isBlock(M.body)&&A(M.body,x)&&h(M,x)}function h(M,x){var w=x.getSignatureFromDeclaration(M),K=w?x.getReturnTypeOfSignature(w):void 0;return!!K&&!!x.getPromisedTypeOfPromise(K)}e.returnsPromise=h;function v(M){return e.isBinaryExpression(M)?M.left:M}function A(M,x){return!!e.forEachReturnStatement(M,function(w){return q(w,x)})}function q(M,x){return e.isReturnStatement(M)&&!!M.expression&&ie(M.expression,x)}e.isReturnStatementWithFixablePromiseHandler=q;function ie(M,x){if(!b(M)||!P(M)||!M.arguments.every(function(K){return S(K,x)}))return!1;for(var w=M.expression.expression;b(w)||e.isPropertyAccessExpression(w);)if(e.isCallExpression(w)){if(!P(w)||!w.arguments.every(function(K){return S(K,x)}))return!1;w=w.expression.expression}else w=w.expression;return!0}e.isFixablePromiseHandler=ie;function b(M){return e.isCallExpression(M)&&(e.hasPropertyAccessExpressionWithName(M,"then")||e.hasPropertyAccessExpressionWithName(M,"catch")||e.hasPropertyAccessExpressionWithName(M,"finally"))}function P(M){var x=M.expression.name.text,w=x==="then"?2:x==="catch"||x==="finally"?1:0;return M.arguments.length>w?!1:M.arguments.length<w?!0:w===1||e.some(M.arguments,function(K){return K.kind===104||e.isIdentifier(K)&&K.text==="undefined"})}function S(M,x){switch(M.kind){case 255:case 212:var w=e.getFunctionFlags(M);if(w&1)return!1;case 213:n.set(B(M),!0);case 104:return!0;case 79:case 205:{var K=x.getSymbolAtLocation(M);return K?x.isUndefinedSymbol(K)||e.some(e.skipAlias(K,x).declarations,function(Z){return e.isFunctionLike(Z)||e.hasInitializer(Z)&&!!Z.initializer&&e.isFunctionLike(Z.initializer)}):!1}default:return!1}}function B(M){return"".concat(M.pos.toString(),":").concat(M.end.toString())}function J(M,x){var w,K,Z,ne;if(M.kind===212){if(e.isVariableDeclaration(M.parent)&&((w=M.symbol.members)===null||w===void 0?void 0:w.size))return!0;var R=x.getSymbolOfExpando(M,!1);return!!(R&&(((K=R.exports)===null||K===void 0?void 0:K.size)||((Z=R.members)===null||Z===void 0?void 0:Z.size)))}return M.kind===255?!!(!((ne=M.symbol.members)===null||ne===void 0)&&ne.size):!1}function k(M){switch(M.kind){case 255:case 168:case 212:case 213:return!0;default:return!1}}e.canBeConvertedToAsync=k})(gr||(gr={}));var gr;(function(e){(function(n){var f=70246400;function d(v,A,q){var ie=a(v,A,q);if(ie!=="")return ie;var b=e.getCombinedLocalAndExportSymbolFlags(A);return b&32?e.getDeclarationOfKind(A,225)?"local class":"class":b&384?"enum":b&524288?"type":b&64?"interface":b&262144?"type parameter":b&8?"enum member":b&2097152?"alias":b&1536?"module":ie}n.getSymbolKind=d;function a(v,A,q){var ie=v.getRootSymbols(A);if(ie.length===1&&e.first(ie).flags&8192&&v.getTypeOfSymbolAtLocation(A,q).getNonNullableType().getCallSignatures().length!==0)return"method";if(v.isUndefinedSymbol(A))return"var";if(v.isArgumentsSymbol(A))return"local var";if(q.kind===108&&e.isExpression(q))return"parameter";var b=e.getCombinedLocalAndExportSymbolFlags(A);if(b&3)return e.isFirstDeclarationOfSymbolParameter(A)?"parameter":A.valueDeclaration&&e.isVarConst(A.valueDeclaration)?"const":e.forEach(A.declarations,e.isLet)?"let":h(A)?"local var":"var";if(b&16)return h(A)?"local function":"function";if(b&32768)return"getter";if(b&65536)return"setter";if(b&8192)return"method";if(b&16384)return"constructor";if(b&4){if(b&33554432&&A.checkFlags&6){var P=e.forEach(v.getRootSymbols(A),function(B){var J=B.getFlags();if(J&98311)return"property"});if(!P){var S=v.getTypeOfSymbolAtLocation(A,q);return S.getCallSignatures().length?"method":"property"}return P}switch(q.parent&&q.parent.kind){case 279:case 277:case 278:return q.kind===79?"property":"JSX attribute";case 284:return"JSX attribute";default:return"property"}}return""}function p(v){if(v.declarations&&v.declarations.length){var A=v.declarations,q=A[0],ie=A.slice(1),b=e.length(ie)&&e.isDeprecatedDeclaration(q)&&e.some(ie,function(S){return!e.isDeprecatedDeclaration(S)})?8192:0,P=e.getNodeModifiers(q,b);if(P)return P.split(",")}return[]}function N(v,A){if(!A)return"";var q=new e.Set(p(A));if(A.flags&2097152){var ie=v.getAliasedSymbol(A);ie!==A&&e.forEach(p(ie),function(b){q.add(b)})}return A.flags&16777216&&q.add("optional"),q.size>0?e.arrayFrom(q.values()).join(","):""}n.getSymbolModifiers=N;function H(v,A,q,ie,b,P,S){var B;P===void 0&&(P=e.getMeaningFromLocation(b));var J=[],k=[],M=[],x=e.getCombinedLocalAndExportSymbolFlags(A),w=P&1?a(v,A,b):"",K=!1,Z=b.kind===108&&e.isInExpressionContext(b),ne,R,Y,U,$=!1;if(b.kind===108&&!Z)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(w!==""||x&32||x&2097152){(w==="getter"||w==="setter")&&(w="property");var T=void 0;if(ne=Z?v.getTypeAtLocation(b):v.getTypeOfSymbolAtLocation(A,b),b.parent&&b.parent.kind===205){var I=b.parent.name;(I===b||I&&I.getFullWidth()===0)&&(b=b.parent)}var y=void 0;if(e.isCallOrNewExpression(b)?y=b:(e.isCallExpressionTarget(b)||e.isNewExpressionTarget(b)||b.parent&&(e.isJsxOpeningLikeElement(b.parent)||e.isTaggedTemplateExpression(b.parent))&&e.isFunctionLike(A.valueDeclaration))&&(y=b.parent),y){T=v.getResolvedSignature(y);var D=y.kind===208||e.isCallExpression(y)&&y.expression.kind===106,C=D?ne.getConstructSignatures():ne.getCallSignatures();if(T&&!e.contains(C,T.target)&&!e.contains(C,T)&&(T=C.length?C[0]:void 0),T){switch(D&&x&32?(w="constructor",Ve(ne.symbol,w)):x&2097152?(w="alias",_e(w),J.push(e.spacePart()),D&&(T.flags&4&&(J.push(e.keywordPart(126)),J.push(e.spacePart())),J.push(e.keywordPart(103)),J.push(e.spacePart())),ve(A)):Ve(A,w),w){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":J.push(e.punctuationPart(58)),J.push(e.spacePart()),!(e.getObjectFlags(ne)&16)&&ne.symbol&&(e.addRange(J,e.symbolToDisplayParts(v,ne.symbol,ie,void 0,5)),J.push(e.lineBreakPart())),D&&(T.flags&4&&(J.push(e.keywordPart(126)),J.push(e.spacePart())),J.push(e.keywordPart(103)),J.push(e.spacePart())),Le(T,C,262144);break;default:Le(T,C)}K=!0,$=C.length>1}}else if(e.isNameOfFunctionDeclaration(b)&&!(x&98304)||b.kind===134&&b.parent.kind===170){var m=b.parent,u=A.declarations&&e.find(A.declarations,function(Xe){return Xe===(b.kind===134?m.parent:m)});if(u){var C=m.kind===170?ne.getNonNullableType().getConstructSignatures():ne.getNonNullableType().getCallSignatures();v.isImplementationOfOverload(m)?T=C[0]:T=v.getSignatureFromDeclaration(m),m.kind===170?(w="constructor",Ve(ne.symbol,w)):Ve(m.kind===173&&!(ne.symbol.flags&2048||ne.symbol.flags&4096)?ne.symbol:A,w),T&&Le(T,C),K=!0,$=C.length>1}}}if(x&32&&!K&&!Z&&(Ge(),e.getDeclarationOfKind(A,225)?_e("local class"):J.push(e.keywordPart(84)),J.push(e.spacePart()),ve(A),qe(A,q)),x&64&&P&2&&(Ie(),J.push(e.keywordPart(118)),J.push(e.spacePart()),ve(A),qe(A,q)),x&524288&&P&2&&(Ie(),J.push(e.keywordPart(151)),J.push(e.spacePart()),ve(A),qe(A,q),J.push(e.spacePart()),J.push(e.operatorPart(63)),J.push(e.spacePart()),e.addRange(J,e.typeToDisplayParts(v,v.getDeclaredTypeOfSymbol(A),ie,8388608))),x&384&&(Ie(),e.some(A.declarations,function(Xe){return e.isEnumDeclaration(Xe)&&e.isEnumConst(Xe)})&&(J.push(e.keywordPart(85)),J.push(e.spacePart())),J.push(e.keywordPart(92)),J.push(e.spacePart()),ve(A)),x&1536&&!Z){Ie();var g=e.getDeclarationOfKind(A,260),F=g&&g.name&&g.name.kind===79;J.push(e.keywordPart(F?142:141)),J.push(e.spacePart()),ve(A)}if(x&262144&&P&2)if(Ie(),J.push(e.punctuationPart(20)),J.push(e.textPart("type parameter")),J.push(e.punctuationPart(21)),J.push(e.spacePart()),ve(A),A.parent)he(),ve(A.parent,ie),qe(A.parent,ie);else{var te=e.getDeclarationOfKind(A,162);if(te===void 0)return e.Debug.fail();var g=te.parent;if(g)if(e.isFunctionLikeKind(g.kind)){he();var T=v.getSignatureFromDeclaration(g);g.kind===174?(J.push(e.keywordPart(103)),J.push(e.spacePart())):g.kind!==173&&g.name&&ve(g.symbol),e.addRange(J,e.signatureToDisplayParts(v,T,q,32))}else g.kind===258&&(he(),J.push(e.keywordPart(151)),J.push(e.spacePart()),ve(g.symbol),qe(g.symbol,q))}if(x&8){w="enum member",Ve(A,"enum member");var g=(B=A.declarations)===null||B===void 0?void 0:B[0];if((g==null?void 0:g.kind)===297){var ue=v.getConstantValue(g);ue!==void 0&&(J.push(e.spacePart()),J.push(e.operatorPart(63)),J.push(e.spacePart()),J.push(e.displayPart(e.getTextOfConstantValue(ue),typeof ue=="number"?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(A.flags&2097152){if(Ie(),!K){var X=v.getAliasedSymbol(A);if(X!==A&&X.declarations&&X.declarations.length>0){var j=X.declarations[0],Se=e.getNameOfDeclaration(j);if(Se){var Ce=e.isModuleWithStringLiteralName(j)&&e.hasSyntacticModifier(j,2),O=A.name!=="default"&&!Ce,Q=H(v,X,e.getSourceFileOfNode(j),j,Se,P,O?A:X);J.push.apply(J,Q.displayParts),J.push(e.lineBreakPart()),Y=Q.documentation,U=Q.tags}else Y=X.getContextualDocumentationComment(j,v),U=X.getJsDocTags(v)}}if(A.declarations)switch(A.declarations[0].kind){case 263:J.push(e.keywordPart(93)),J.push(e.spacePart()),J.push(e.keywordPart(142));break;case 270:J.push(e.keywordPart(93)),J.push(e.spacePart()),J.push(e.keywordPart(A.declarations[0].isExportEquals?63:88));break;case 274:J.push(e.keywordPart(93));break;default:J.push(e.keywordPart(100))}J.push(e.spacePart()),ve(A),e.forEach(A.declarations,function(Xe){if(Xe.kind===264){var De=Xe;if(e.isExternalModuleImportEqualsDeclaration(De))J.push(e.spacePart()),J.push(e.operatorPart(63)),J.push(e.spacePart()),J.push(e.keywordPart(145)),J.push(e.punctuationPart(20)),J.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(De)),e.SymbolDisplayPartKind.stringLiteral)),J.push(e.punctuationPart(21));else{var Ae=v.getSymbolAtLocation(De.moduleReference);Ae&&(J.push(e.spacePart()),J.push(e.operatorPart(63)),J.push(e.spacePart()),ve(Ae,ie))}return!0}})}if(!K)if(w!==""){if(ne){if(Z?(Ie(),J.push(e.keywordPart(108))):Ve(A,w),w==="property"||w==="JSX attribute"||x&3||w==="local var"||Z){if(J.push(e.punctuationPart(58)),J.push(e.spacePart()),ne.symbol&&ne.symbol.flags&262144){var V=e.mapToDisplayParts(function(Xe){var De=v.typeParameterToDeclaration(ne,ie,f);Me().writeNode(4,De,e.getSourceFileOfNode(e.getParseTreeNode(ie)),Xe)});e.addRange(J,V)}else e.addRange(J,e.typeToDisplayParts(v,ne,ie));if(A.target&&A.target.tupleLabelDeclaration){var z=A.target.tupleLabelDeclaration;e.Debug.assertNode(z.name,e.isIdentifier),J.push(e.spacePart()),J.push(e.punctuationPart(20)),J.push(e.textPart(e.idText(z.name))),J.push(e.punctuationPart(21))}}else if(x&16||x&8192||x&16384||x&131072||x&98304||w==="method"){var C=ne.getNonNullableType().getCallSignatures();C.length&&(Le(C[0],C),$=C.length>1)}}}else w=d(v,A,b);if(k.length===0&&!$&&(k=A.getContextualDocumentationComment(ie,v)),k.length===0&&x&4&&A.parent&&A.declarations&&e.forEach(A.parent.declarations,function(Xe){return Xe.kind===303}))for(var Te=0,ge=A.declarations;Te<ge.length;Te++){var g=ge[Te];if(!(!g.parent||g.parent.kind!==220)){var ke=v.getSymbolAtLocation(g.parent.right);if(!!ke&&(k=ke.getDocumentationComment(v),M=ke.getJsDocTags(v),k.length>0))break}}return M.length===0&&!$&&(M=A.getJsDocTags(v)),k.length===0&&Y&&(k=Y),M.length===0&&U&&(M=U),{displayParts:J,documentation:k,symbolKind:w,tags:M.length===0?void 0:M};function Me(){return R||(R=e.createPrinter({removeComments:!0})),R}function Ie(){J.length&&J.push(e.lineBreakPart()),Ge()}function Ge(){S&&(_e("alias"),J.push(e.spacePart()))}function he(){J.push(e.spacePart()),J.push(e.keywordPart(101)),J.push(e.spacePart())}function ve(Xe,De){S&&Xe===A&&(Xe=S);var Ae=e.symbolToDisplayParts(v,Xe,De||q,void 0,7);e.addRange(J,Ae),A.flags&16777216&&J.push(e.punctuationPart(57))}function Ve(Xe,De){Ie(),De&&(_e(De),Xe&&!e.some(Xe.declarations,function(Ae){return e.isArrowFunction(Ae)||(e.isFunctionExpression(Ae)||e.isClassExpression(Ae))&&!Ae.name})&&(J.push(e.spacePart()),ve(Xe)))}function _e(Xe){switch(Xe){case"var":case"function":case"let":case"const":case"constructor":J.push(e.textOrKeywordPart(Xe));return;default:J.push(e.punctuationPart(20)),J.push(e.textOrKeywordPart(Xe)),J.push(e.punctuationPart(21));return}}function Le(Xe,De,Ae){Ae===void 0&&(Ae=0),e.addRange(J,e.signatureToDisplayParts(v,Xe,ie,Ae|32)),De.length>1&&(J.push(e.spacePart()),J.push(e.punctuationPart(20)),J.push(e.operatorPart(39)),J.push(e.displayPart((De.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),J.push(e.spacePart()),J.push(e.textPart(De.length===2?"overload":"overloads")),J.push(e.punctuationPart(21))),k=Xe.getDocumentationComment(v),M=Xe.getJsDocTags(),De.length>1&&k.length===0&&M.length===0&&(k=De[0].getDocumentationComment(v),M=De[0].getJsDocTags())}function qe(Xe,De){var Ae=e.mapToDisplayParts(function(Ye){var Lr=v.symbolToTypeParameterDeclarations(Xe,De,f);Me().writeList(53776,Lr,e.getSourceFileOfNode(e.getParseTreeNode(De)),Ye)});e.addRange(J,Ae)}}n.getSymbolDisplayPartsDocumentationAndSymbolKind=H;function h(v){return v.parent?!1:e.forEach(v.declarations,function(A){if(A.kind===212)return!0;if(A.kind!==253&&A.kind!==255)return!1;for(var q=A.parent;!e.isFunctionBlock(q);q=q.parent)if(q.kind===303||q.kind===261)return!1;return!0})}})(e.SymbolDisplay||(e.SymbolDisplay={}))})(gr||(gr={}));var gr;(function(e){function n(p,N){var H=[],h=N.compilerOptions?a(N.compilerOptions,H):{},v=e.getDefaultCompilerOptions();for(var A in v)e.hasProperty(v,A)&&h[A]===void 0&&(h[A]=v[A]);for(var q=0,ie=e.transpileOptionValueCompilerOptions;q<ie.length;q++){var b=ie[q];h[b.name]=b.transpileOptionValue}h.suppressOutputPathCheck=!0,h.allowNonTsExtensions=!0;var P=N.fileName||(N.compilerOptions&&N.compilerOptions.jsx?"module.tsx":"module.ts"),S=e.createSourceFile(P,p,e.getEmitScriptTarget(h));N.moduleName&&(S.moduleName=N.moduleName),N.renamedDependencies&&(S.renamedDependencies=new e.Map(e.getEntries(N.renamedDependencies)));var B=e.getNewLineCharacter(h),J,k,M={getSourceFile:function(w){return w===e.normalizePath(P)?S:void 0},writeFile:function(w,K){e.fileExtensionIs(w,".map")?(e.Debug.assertEqual(k,void 0,"Unexpected multiple source map outputs, file:",w),k=K):(e.Debug.assertEqual(J,void 0,"Unexpected multiple outputs, file:",w),J=K)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(w){return w},getCurrentDirectory:function(){return""},getNewLine:function(){return B},fileExists:function(w){return w===P},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},x=e.createProgram([P],h,M);return N.reportDiagnostics&&(e.addRange(H,x.getSyntacticDiagnostics(S)),e.addRange(H,x.getOptionsDiagnostics())),x.emit(void 0,void 0,void 0,void 0,N.transformers),J===void 0?e.Debug.fail("Output generation failed"):{outputText:J,diagnostics:H,sourceMapText:k}}e.transpileModule=n;function f(p,N,H,h,v){var A=n(p,{compilerOptions:N,fileName:H,reportDiagnostics:!!h,moduleName:v});return e.addRange(h,A.diagnostics),A.outputText}e.transpile=f;var d;function a(p,N){d=d||e.filter(e.optionDeclarations,function(q){return typeof q.type=="object"&&!e.forEachEntry(q.type,function(ie){return typeof ie!="number"})}),p=e.cloneCompilerOptions(p);for(var H=function(q){if(!e.hasProperty(p,q.name))return"continue";var ie=p[q.name];e.isString(ie)?p[q.name]=e.parseCustomTypeOption(q,ie,N):e.forEachEntry(q.type,function(b){return b===ie})||N.push(e.createCompilerDiagnosticForInvalidCustomType(q))},h=0,v=d;h<v.length;h++){var A=v[h];H(A)}return p}e.fixupCompilerOptions=a})(gr||(gr={}));var gr;(function(e){(function(n){(function(d){d[d.FormatDocument=0]="FormatDocument",d[d.FormatSelection=1]="FormatSelection",d[d.FormatOnEnter=2]="FormatOnEnter",d[d.FormatOnSemicolon=3]="FormatOnSemicolon",d[d.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",d[d.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"})(n.FormattingRequestKind||(n.FormattingRequestKind={}));var f=function(){function d(a,p,N){this.sourceFile=a,this.formattingRequestKind=p,this.options=N}return d.prototype.updateContext=function(a,p,N,H,h){this.currentTokenSpan=e.Debug.checkDefined(a),this.currentTokenParent=e.Debug.checkDefined(p),this.nextTokenSpan=e.Debug.checkDefined(N),this.nextTokenParent=e.Debug.checkDefined(H),this.contextNode=e.Debug.checkDefined(h),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},d.prototype.ContextNodeAllOnSameLine=function(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},d.prototype.NextNodeAllOnSameLine=function(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},d.prototype.TokensAreOnSameLine=function(){if(this.tokensAreOnSameLine===void 0){var a=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,p=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=a===p}return this.tokensAreOnSameLine},d.prototype.ContextNodeBlockIsOnOneLine=function(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},d.prototype.NextNodeBlockIsOnOneLine=function(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},d.prototype.NodeIsOnOneLine=function(a){var p=this.sourceFile.getLineAndCharacterOfPosition(a.getStart(this.sourceFile)).line,N=this.sourceFile.getLineAndCharacterOfPosition(a.getEnd()).line;return p===N},d.prototype.BlockIsOnOneLine=function(a){var p=e.findChildOfKind(a,18,this.sourceFile),N=e.findChildOfKind(a,19,this.sourceFile);if(p&&N){var H=this.sourceFile.getLineAndCharacterOfPosition(p.getEnd()).line,h=this.sourceFile.getLineAndCharacterOfPosition(N.getStart(this.sourceFile)).line;return H===h}return!1},d}();n.FormattingContext=f})(e.formatting||(e.formatting={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f=e.createScanner(99,!1,0),d=e.createScanner(99,!1,1),a;(function(N){N[N.Scan=0]="Scan",N[N.RescanGreaterThanToken=1]="RescanGreaterThanToken",N[N.RescanSlashToken=2]="RescanSlashToken",N[N.RescanTemplateToken=3]="RescanTemplateToken",N[N.RescanJsxIdentifier=4]="RescanJsxIdentifier",N[N.RescanJsxText=5]="RescanJsxText",N[N.RescanJsxAttributeValue=6]="RescanJsxAttributeValue"})(a||(a={}));function p(N,H,h,v,A){var q=H===1?d:f;q.setText(N),q.setTextPos(h);var ie=!0,b,P,S,B,J,k=A({advance:M,readTokenInfo:U,readEOFTokenRange:T,isOnToken:I,isOnEOF:y,getCurrentLeadingTrivia:function(){return b},lastTrailingTriviaWasNewLine:function(){return ie},skipToEndOf:C,skipToStartOf:m});return J=void 0,q.setText(void 0),k;function M(){J=void 0;var u=q.getStartPos()!==h;u?ie=!!P&&e.last(P).kind===4:q.scan(),b=void 0,P=void 0;for(var g=q.getStartPos();g<v;){var F=q.getToken();if(!e.isTrivia(F))break;q.scan();var te={pos:g,end:q.getStartPos(),kind:F};g=q.getStartPos(),b=e.append(b,te)}S=q.getStartPos()}function x(u){switch(u.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}function w(u){if(u.parent)switch(u.parent.kind){case 284:case 279:case 280:case 278:return e.isKeyword(u.kind)||u.kind===79}return!1}function K(u){return e.isJsxText(u)}function Z(u){return u.kind===13}function ne(u){return u.kind===16||u.kind===17}function R(u){return u.parent&&e.isJsxAttribute(u.parent)&&u.parent.initializer===u}function Y(u){return u===43||u===68}function U(u){e.Debug.assert(I());var g=x(u)?1:Z(u)?2:ne(u)?3:w(u)?4:K(u)?5:R(u)?6:0;if(J&&g===B)return D(J,u);q.getStartPos()!==S&&(e.Debug.assert(J!==void 0),q.setTextPos(S),q.scan());var F=$(u,g),te=n.createTextRangeWithKind(q.getStartPos(),q.getTextPos(),F);for(P&&(P=void 0);q.getStartPos()<v&&(F=q.scan(),!!e.isTrivia(F));){var ue=n.createTextRangeWithKind(q.getStartPos(),q.getTextPos(),F);if(P||(P=[]),P.push(ue),F===4){q.scan();break}}return J={leadingTrivia:b,trailingTrivia:P,token:te},D(J,u)}function $(u,g){var F=q.getToken();switch(B=0,g){case 1:if(F===31){B=1;var te=q.reScanGreaterToken();return e.Debug.assert(u.kind===te),te}break;case 2:if(Y(F)){B=2;var te=q.reScanSlashToken();return e.Debug.assert(u.kind===te),te}break;case 3:if(F===19)return B=3,q.reScanTemplateToken(!1);break;case 4:return B=4,q.scanJsxIdentifier();case 5:return B=5,q.reScanJsxToken(!1);case 6:return B=6,q.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(g)}return F}function T(){return e.Debug.assert(y()),n.createTextRangeWithKind(q.getStartPos(),q.getTextPos(),1)}function I(){var u=J?J.token.kind:q.getToken(),g=J?J.token.pos:q.getStartPos();return g<v&&u!==1&&!e.isTrivia(u)}function y(){var u=J?J.token.kind:q.getToken();return u===1}function D(u,g){return e.isToken(g)&&u.token.kind!==g.kind&&(u.token.kind=g.kind),u}function C(u){q.setTextPos(u.end),S=q.getStartPos(),B=void 0,J=void 0,ie=!1,b=void 0,P=void 0}function m(u){q.setTextPos(u.pos),S=q.getStartPos(),B=void 0,J=void 0,ie=!1,b=void 0,P=void 0}}n.getFormattingScanner=p})(e.formatting||(e.formatting={}))})(gr||(gr={}));var gr;(function(e){(function(n){n.anyContext=e.emptyArray,function(f){f[f.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",f[f.StopProcessingTokenActions=2]="StopProcessingTokenActions",f[f.InsertSpace=4]="InsertSpace",f[f.InsertNewLine=8]="InsertNewLine",f[f.DeleteSpace=16]="DeleteSpace",f[f.DeleteToken=32]="DeleteToken",f[f.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",f[f.StopAction=3]="StopAction",f[f.ModifySpaceAction=28]="ModifySpaceAction",f[f.ModifyTokenAction=96]="ModifyTokenAction"}(n.RuleAction||(n.RuleAction={})),function(f){f[f.None=0]="None",f[f.CanDeleteNewLines=1]="CanDeleteNewLines"}(n.RuleFlags||(n.RuleFlags={}))})(e.formatting||(e.formatting={}))})(gr||(gr={}));var gr;(function(e){(function(n){function f(){for(var Ke=[],Pe=0;Pe<=159;Pe++)Pe!==1&&Ke.push(Pe);function Hr(){for(var ir=[],Rr=0;Rr<arguments.length;Rr++)ir[Rr]=arguments[Rr];return{tokens:Ke.filter(function(sr){return!ir.some(function(ye){return ye===sr})}),isSpecific:!1}}var ur={tokens:Ke,isSpecific:!1},vr=a(Gt(Gt([],Ke,!0),[3],!1)),de=a(Gt(Gt([],Ke,!0),[1],!1)),Fe=N(81,159),$e=N(29,78),Dr=[101,102,159,127,139],Fr=[45,46,54,53],He=[8,9,79,20,22,18,108,103],pr=[79,20,108,103],Jr=[79,21,23,103],ze=[79,20,108,103],Ar=[79,21,23,103],Yr=[2,3],lt=Gt([79],e.typeKeywords,!0),tt=vr,Rt=a([79,3,84,93,100]),cn=a([21,3,90,111,96,91]),bn=[d("IgnoreBeforeComment",ur,Yr,n.anyContext,1),d("IgnoreAfterLineComment",2,ur,n.anyContext,1),d("NotSpaceBeforeColon",ur,58,[O,B,J],16),d("SpaceAfterColon",58,ur,[O,B],4),d("NoSpaceBeforeQuestionMark",ur,57,[O,B,J],16),d("SpaceAfterQuestionMarkInConditionalOperator",57,ur,[O,M],4),d("NoSpaceAfterQuestionMark",57,ur,[O],16),d("NoSpaceBeforeDot",ur,[24,28],[O],16),d("NoSpaceAfterDot",[24,28],ur,[O],16),d("NoSpaceBetweenImportParenInImportType",100,20,[O,Ce],16),d("NoSpaceAfterUnaryPrefixOperator",Fr,He,[O,B],16),d("NoSpaceAfterUnaryPreincrementOperator",45,pr,[O],16),d("NoSpaceAfterUnaryPredecrementOperator",46,ze,[O],16),d("NoSpaceBeforeUnaryPostincrementOperator",Jr,45,[O,Er],16),d("NoSpaceBeforeUnaryPostdecrementOperator",Ar,46,[O,Er],16),d("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[O,S],4),d("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[O,S],4),d("SpaceAfterAddWhenFollowedByPreincrement",39,45,[O,S],4),d("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[O,S],4),d("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[O,S],4),d("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[O,S],4),d("NoSpaceAfterCloseBrace",19,[27,26],[O],16),d("NewLineBeforeCloseBraceInBlockContext",vr,19,[Z],8),d("SpaceAfterCloseBrace",19,Hr(21),[O,C],4),d("SpaceBetweenCloseBraceAndElse",19,91,[O],4),d("SpaceBetweenCloseBraceAndWhile",19,115,[O],4),d("NoSpaceBetweenEmptyBraceBrackets",18,19,[O,u],16),d("SpaceAfterConditionalClosingParen",21,22,[m],4),d("NoSpaceBetweenFunctionKeywordAndStar",98,41,[I],16),d("SpaceAfterStarInGeneratorDeclaration",41,79,[I],4),d("SpaceAfterFunctionInFuncDecl",98,ur,[$],4),d("NewLineAfterOpenBraceInBlockContext",18,ur,[Z],8),d("SpaceAfterGetSetInMember",[136,148],79,[$],4),d("NoSpaceBetweenYieldKeywordAndStar",125,41,[O,Ye],16),d("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],ur,[O,Ye],4),d("NoSpaceBetweenReturnAndSemicolon",105,26,[O],16),d("SpaceAfterCertainKeywords",[113,109,103,89,105,112,132],ur,[O],4),d("SpaceAfterLetConstInVariableDeclaration",[119,85],ur,[O,he],4),d("NoSpaceBeforeOpenParenInFuncCall",ur,20,[O,te,ue],16),d("SpaceBeforeBinaryKeywordOperator",ur,Dr,[O,S],4),d("SpaceAfterBinaryKeywordOperator",Dr,ur,[O,S],4),d("SpaceAfterVoidOperator",114,ur,[O,Ae],4),d("SpaceBetweenAsyncAndOpenParen",131,20,[Se,O],4),d("SpaceBetweenAsyncAndFunctionKeyword",131,[98,79],[O],4),d("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[O],16),d("SpaceBeforeJsxAttribute",ur,79,[Te,O],4),d("SpaceBeforeSlashInJsxOpeningElement",ur,43,[ke,O],4),d("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[ke,O],16),d("NoSpaceBeforeEqualInJsxAttribute",ur,63,[ge,O],16),d("NoSpaceAfterEqualInJsxAttribute",63,ur,[ge,O],16),d("NoSpaceAfterModuleImport",[141,145],20,[O],16),d("SpaceAfterCertainTypeScriptKeywords",[126,84,135,88,92,93,94,136,117,100,118,141,142,121,123,122,144,148,124,151,155,140,137],ur,[O],4),d("SpaceBeforeCertainTypeScriptKeywords",ur,[94,117,155],[O],4),d("SpaceAfterModuleName",10,18,[Ve],4),d("SpaceBeforeArrow",ur,38,[O],4),d("SpaceAfterArrow",38,ur,[O],4),d("NoSpaceAfterEllipsis",25,79,[O],16),d("NoSpaceAfterOptionalParameters",57,[21,27],[O,B],16),d("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[O,_e],16),d("NoSpaceBeforeOpenAngularBracket",lt,29,[O,Xe],16),d("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[O,Xe],16),d("NoSpaceAfterOpenAngularBracket",29,ur,[O,Xe],16),d("NoSpaceBeforeCloseAngularBracket",ur,31,[O,Xe],16),d("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[O,Xe,T],16),d("SpaceBeforeAt",[21,79],59,[O],4),d("NoSpaceAfterAt",59,ur,[O],16),d("SpaceAfterDecorator",ur,[126,79,93,88,84,124,123,121,122,136,148,22,41],[Ie],4),d("NoSpaceBeforeNonNullAssertionOperator",ur,53,[O,Lr],16),d("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[O,Le],16),d("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[O],4)],In=[d("SpaceAfterConstructor",134,20,[h("insertSpaceAfterConstructor"),O],4),d("NoSpaceAfterConstructor",134,20,[A("insertSpaceAfterConstructor"),O],16),d("SpaceAfterComma",27,ur,[h("insertSpaceAfterCommaDelimiter"),O,V,X,j],4),d("NoSpaceAfterComma",27,ur,[A("insertSpaceAfterCommaDelimiter"),O,V],16),d("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[h("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),$],4),d("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[A("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),$],16),d("SpaceAfterKeywordInControl",Fe,20,[h("insertSpaceAfterKeywordsInControlFlowStatements"),m],4),d("NoSpaceAfterKeywordInControl",Fe,20,[A("insertSpaceAfterKeywordsInControlFlowStatements"),m],16),d("SpaceAfterOpenParen",20,ur,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),O],4),d("SpaceBeforeCloseParen",ur,21,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),O],4),d("SpaceBetweenOpenParens",20,20,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),O],4),d("NoSpaceBetweenParens",20,21,[O],16),d("NoSpaceAfterOpenParen",20,ur,[A("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),O],16),d("NoSpaceBeforeCloseParen",ur,21,[A("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),O],16),d("SpaceAfterOpenBracket",22,ur,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),O],4),d("SpaceBeforeCloseBracket",ur,23,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),O],4),d("NoSpaceBetweenBrackets",22,23,[O],16),d("NoSpaceAfterOpenBracket",22,ur,[A("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),O],16),d("NoSpaceBeforeCloseBracket",ur,23,[A("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),O],16),d("SpaceAfterOpenBrace",18,ur,[ie("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),w],4),d("SpaceBeforeCloseBrace",ur,19,[ie("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),w],4),d("NoSpaceBetweenEmptyBraceBrackets",18,19,[O,u],16),d("NoSpaceAfterOpenBrace",18,ur,[v("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),O],16),d("NoSpaceBeforeCloseBrace",ur,19,[v("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),O],16),d("SpaceBetweenEmptyBraceBrackets",18,19,[h("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),d("NoSpaceBetweenEmptyBraceBrackets",18,19,[v("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),O],16),d("SpaceAfterTemplateHeadAndMiddle",[15,16],ur,[h("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Q],4,1),d("SpaceBeforeTemplateMiddleAndTail",ur,[16,17],[h("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),O],4),d("NoSpaceAfterTemplateHeadAndMiddle",[15,16],ur,[A("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Q],16,1),d("NoSpaceBeforeTemplateMiddleAndTail",ur,[16,17],[A("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),O],16),d("SpaceAfterOpenBraceInJsxExpression",18,ur,[h("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),O,z],4),d("SpaceBeforeCloseBraceInJsxExpression",ur,19,[h("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),O,z],4),d("NoSpaceAfterOpenBraceInJsxExpression",18,ur,[A("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),O,z],16),d("NoSpaceBeforeCloseBraceInJsxExpression",ur,19,[A("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),O,z],16),d("SpaceAfterSemicolonInFor",26,ur,[h("insertSpaceAfterSemicolonInForStatements"),O,b],4),d("NoSpaceAfterSemicolonInFor",26,ur,[A("insertSpaceAfterSemicolonInForStatements"),O,b],16),d("SpaceBeforeBinaryOperator",ur,$e,[h("insertSpaceBeforeAndAfterBinaryOperators"),O,S],4),d("SpaceAfterBinaryOperator",$e,ur,[h("insertSpaceBeforeAndAfterBinaryOperators"),O,S],4),d("NoSpaceBeforeBinaryOperator",ur,$e,[A("insertSpaceBeforeAndAfterBinaryOperators"),O,S],16),d("NoSpaceAfterBinaryOperator",$e,ur,[A("insertSpaceBeforeAndAfterBinaryOperators"),O,S],16),d("SpaceBeforeOpenParenInFuncDecl",ur,20,[h("insertSpaceBeforeFunctionParenthesis"),O,$],4),d("NoSpaceBeforeOpenParenInFuncDecl",ur,20,[A("insertSpaceBeforeFunctionParenthesis"),O,$],16),d("NewLineBeforeOpenBraceInControl",cn,18,[h("placeOpenBraceOnNewLineForControlBlocks"),m,K],8,1),d("NewLineBeforeOpenBraceInFunction",tt,18,[h("placeOpenBraceOnNewLineForFunctions"),$,K],8,1),d("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",Rt,18,[h("placeOpenBraceOnNewLineForFunctions"),y,K],8,1),d("SpaceAfterTypeAssertion",31,ur,[h("insertSpaceAfterTypeAssertion"),O,De],4),d("NoSpaceAfterTypeAssertion",31,ur,[A("insertSpaceAfterTypeAssertion"),O,De],16),d("SpaceBeforeTypeAnnotation",ur,[57,58],[h("insertSpaceBeforeTypeAnnotation"),O,k],4),d("NoSpaceBeforeTypeAnnotation",ur,[57,58],[A("insertSpaceBeforeTypeAnnotation"),O,k],16),d("NoOptionalSemicolon",26,de,[H("semicolons",e.SemicolonPreference.Remove),Cr],32),d("OptionalSemicolon",ur,de,[H("semicolons",e.SemicolonPreference.Insert),Or],64)],zn=[d("NoSpaceBeforeSemicolon",ur,26,[O],16),d("SpaceBeforeOpenBraceInControl",cn,18,[q("placeOpenBraceOnNewLineForControlBlocks"),m,ve,x],4,1),d("SpaceBeforeOpenBraceInFunction",tt,18,[q("placeOpenBraceOnNewLineForFunctions"),$,Y,ve,x],4,1),d("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",Rt,18,[q("placeOpenBraceOnNewLineForFunctions"),y,ve,x],4,1),d("NoSpaceBeforeComma",ur,27,[O],16),d("NoSpaceBeforeOpenBracket",Hr(131,82),22,[O],16),d("NoSpaceAfterCloseBracket",23,ur,[O,Me],16),d("SpaceAfterSemicolon",26,ur,[O],4),d("SpaceBetweenForAndAwaitKeyword",97,132,[O],4),d("SpaceBetweenStatements",[21,90,91,82],ur,[O,V,P],4),d("SpaceAfterTryCatchFinally",[111,83,96],18,[O],4)];return Gt(Gt(Gt([],bn,!0),In,!0),zn,!0)}n.getAllRules=f;function d(Ke,Pe,Hr,ur,vr,de){return de===void 0&&(de=0),{leftTokenRange:p(Pe),rightTokenRange:p(Hr),rule:{debugName:Ke,context:ur,action:vr,flags:de}}}function a(Ke){return{tokens:Ke,isSpecific:!0}}function p(Ke){return typeof Ke=="number"?a([Ke]):e.isArray(Ke)?a(Ke):Ke}function N(Ke,Pe,Hr){Hr===void 0&&(Hr=[]);for(var ur=[],vr=Ke;vr<=Pe;vr++)e.contains(Hr,vr)||ur.push(vr);return a(ur)}function H(Ke,Pe){return function(Hr){return Hr.options&&Hr.options[Ke]===Pe}}function h(Ke){return function(Pe){return Pe.options&&Pe.options.hasOwnProperty(Ke)&&!!Pe.options[Ke]}}function v(Ke){return function(Pe){return Pe.options&&Pe.options.hasOwnProperty(Ke)&&!Pe.options[Ke]}}function A(Ke){return function(Pe){return!Pe.options||!Pe.options.hasOwnProperty(Ke)||!Pe.options[Ke]}}function q(Ke){return function(Pe){return!Pe.options||!Pe.options.hasOwnProperty(Ke)||!Pe.options[Ke]||Pe.TokensAreOnSameLine()}}function ie(Ke){return function(Pe){return!Pe.options||!Pe.options.hasOwnProperty(Ke)||!!Pe.options[Ke]}}function b(Ke){return Ke.contextNode.kind===241}function P(Ke){return!b(Ke)}function S(Ke){switch(Ke.contextNode.kind){case 220:return Ke.contextNode.operatorToken.kind!==27;case 221:case 188:case 228:case 274:case 269:case 176:case 186:case 187:return!0;case 202:case 258:case 264:case 270:case 253:case 163:case 297:case 166:case 165:return Ke.currentTokenSpan.kind===63||Ke.nextTokenSpan.kind===63;case 242:case 162:return Ke.currentTokenSpan.kind===101||Ke.nextTokenSpan.kind===101||Ke.currentTokenSpan.kind===63||Ke.nextTokenSpan.kind===63;case 243:return Ke.currentTokenSpan.kind===159||Ke.nextTokenSpan.kind===159}return!1}function B(Ke){return!S(Ke)}function J(Ke){return!k(Ke)}function k(Ke){var Pe=Ke.contextNode.kind;return Pe===166||Pe===165||Pe===163||Pe===253||e.isFunctionLikeKind(Pe)}function M(Ke){return Ke.contextNode.kind===221||Ke.contextNode.kind===188}function x(Ke){return Ke.TokensAreOnSameLine()||Y(Ke)}function w(Ke){return Ke.contextNode.kind===200||Ke.contextNode.kind===194||ne(Ke)}function K(Ke){return Y(Ke)&&!(Ke.NextNodeAllOnSameLine()||Ke.NextNodeBlockIsOnOneLine())}function Z(Ke){return R(Ke)&&!(Ke.ContextNodeAllOnSameLine()||Ke.ContextNodeBlockIsOnOneLine())}function ne(Ke){return R(Ke)&&(Ke.ContextNodeAllOnSameLine()||Ke.ContextNodeBlockIsOnOneLine())}function R(Ke){return U(Ke.contextNode)}function Y(Ke){return U(Ke.nextTokenParent)}function U(Ke){if(D(Ke))return!0;switch(Ke.kind){case 234:case 262:case 204:case 261:return!0}return!1}function $(Ke){switch(Ke.contextNode.kind){case 255:case 168:case 167:case 171:case 172:case 173:case 212:case 170:case 213:case 257:return!0}return!1}function T(Ke){return!$(Ke)}function I(Ke){return Ke.contextNode.kind===255||Ke.contextNode.kind===212}function y(Ke){return D(Ke.contextNode)}function D(Ke){switch(Ke.kind){case 256:case 225:case 257:case 259:case 181:case 260:case 271:case 272:case 265:case 268:return!0}return!1}function C(Ke){switch(Ke.currentTokenParent.kind){case 256:case 260:case 259:case 291:case 261:case 248:return!0;case 234:{var Pe=Ke.currentTokenParent.parent;if(!Pe||Pe.kind!==213&&Pe.kind!==212)return!0}}return!1}function m(Ke){switch(Ke.contextNode.kind){case 238:case 248:case 241:case 242:case 243:case 240:case 251:case 239:case 247:case 291:return!0;default:return!1}}function u(Ke){return Ke.contextNode.kind===204}function g(Ke){return Ke.contextNode.kind===207}function F(Ke){return Ke.contextNode.kind===208}function te(Ke){return g(Ke)||F(Ke)}function ue(Ke){return Ke.currentTokenSpan.kind!==27}function X(Ke){return Ke.nextTokenSpan.kind!==23}function j(Ke){return Ke.nextTokenSpan.kind!==21}function Se(Ke){return Ke.contextNode.kind===213}function Ce(Ke){return Ke.contextNode.kind===199}function O(Ke){return Ke.TokensAreOnSameLine()&&Ke.contextNode.kind!==11}function Q(Ke){return Ke.contextNode.kind!==11}function V(Ke){return Ke.contextNode.kind!==277&&Ke.contextNode.kind!==281}function z(Ke){return Ke.contextNode.kind===287||Ke.contextNode.kind===286}function Te(Ke){return Ke.nextTokenParent.kind===284}function ge(Ke){return Ke.contextNode.kind===284}function ke(Ke){return Ke.contextNode.kind===278}function Me(Ke){return!$(Ke)&&!Y(Ke)}function Ie(Ke){return Ke.TokensAreOnSameLine()&&!!Ke.contextNode.decorators&&Ge(Ke.currentTokenParent)&&!Ge(Ke.nextTokenParent)}function Ge(Ke){for(;e.isExpressionNode(Ke);)Ke=Ke.parent;return Ke.kind===164}function he(Ke){return Ke.currentTokenParent.kind===254&&Ke.currentTokenParent.getStart(Ke.sourceFile)===Ke.currentTokenSpan.pos}function ve(Ke){return Ke.formattingRequestKind!==2}function Ve(Ke){return Ke.contextNode.kind===260}function _e(Ke){return Ke.contextNode.kind===181}function Le(Ke){return Ke.contextNode.kind===174}function qe(Ke,Pe){if(Ke.kind!==29&&Ke.kind!==31)return!1;switch(Pe.kind){case 177:case 210:case 258:case 256:case 225:case 257:case 255:case 212:case 213:case 168:case 167:case 173:case 174:case 207:case 208:case 227:return!0;default:return!1}}function Xe(Ke){return qe(Ke.currentTokenSpan,Ke.currentTokenParent)||qe(Ke.nextTokenSpan,Ke.nextTokenParent)}function De(Ke){return Ke.contextNode.kind===210}function Ae(Ke){return Ke.currentTokenSpan.kind===114&&Ke.currentTokenParent.kind===216}function Ye(Ke){return Ke.contextNode.kind===223&&Ke.contextNode.expression!==void 0}function Lr(Ke){return Ke.contextNode.kind===229}function Er(Ke){return!lr(Ke)}function lr(Ke){switch(Ke.contextNode.kind){case 238:case 241:case 242:case 243:case 239:case 240:return!0;default:return!1}}function Cr(Ke){var Pe=Ke.nextTokenSpan.kind,Hr=Ke.nextTokenSpan.pos;if(e.isTrivia(Pe)){var ur=Ke.nextTokenParent===Ke.currentTokenParent?e.findNextToken(Ke.currentTokenParent,e.findAncestor(Ke.currentTokenParent,function(Fe){return!Fe.parent}),Ke.sourceFile):Ke.nextTokenParent.getFirstToken(Ke.sourceFile);if(!ur)return!0;Pe=ur.kind,Hr=ur.getStart(Ke.sourceFile)}var vr=Ke.sourceFile.getLineAndCharacterOfPosition(Ke.currentTokenSpan.pos).line,de=Ke.sourceFile.getLineAndCharacterOfPosition(Hr).line;return vr===de?Pe===19||Pe===1:Pe===233||Pe===26?!1:Ke.contextNode.kind===257||Ke.contextNode.kind===258?!e.isPropertySignature(Ke.currentTokenParent)||!!Ke.currentTokenParent.type||Pe!==20:e.isPropertyDeclaration(Ke.currentTokenParent)?!Ke.currentTokenParent.initializer:Ke.currentTokenParent.kind!==241&&Ke.currentTokenParent.kind!==235&&Ke.currentTokenParent.kind!==233&&Pe!==22&&Pe!==20&&Pe!==39&&Pe!==40&&Pe!==43&&Pe!==13&&Pe!==27&&Pe!==222&&Pe!==15&&Pe!==14&&Pe!==24}function Or(Ke){return e.positionIsASICandidate(Ke.currentTokenSpan.end,Ke.currentTokenParent,Ke.sourceFile)}})(e.formatting||(e.formatting={}))})(gr||(gr={}));var gr;(function(e){(function(n){function f(B,J){return{options:B,getRules:a(),host:J}}n.getFormatContext=f;var d;function a(){return d===void 0&&(d=N(n.getAllRules())),d}function p(B){var J=0;return B&1&&(J|=28),B&2&&(J|=96),B&28&&(J|=28),B&96&&(J|=96),J}function N(B){var J=H(B);return function(k){var M=J[h(k.currentTokenSpan.kind,k.nextTokenSpan.kind)];if(M){for(var x=[],w=0,K=0,Z=M;K<Z.length;K++){var ne=Z[K],R=~p(w);ne.action&R&&e.every(ne.context,function(Y){return Y(k)})&&(x.push(ne),w|=ne.action)}if(x.length)return x}}}function H(B){for(var J=new Array(q*q),k=new Array(J.length),M=0,x=B;M<x.length;M++)for(var w=x[M],K=w.leftTokenRange.isSpecific&&w.rightTokenRange.isSpecific,Z=0,ne=w.leftTokenRange.tokens;Z<ne.length;Z++)for(var R=ne[Z],Y=0,U=w.rightTokenRange.tokens;Y<U.length;Y++){var $=U[Y],T=h(R,$),I=J[T];I===void 0&&(I=J[T]=[]),b(I,w.rule,K,k,T)}return J}function h(B,J){return e.Debug.assert(B<=159&&J<=159,"Must compute formatting context from tokens"),B*q+J}var v=5,A=31,q=159+1,ie;(function(B){B[B.StopRulesSpecific=0]="StopRulesSpecific",B[B.StopRulesAny=v*1]="StopRulesAny",B[B.ContextRulesSpecific=v*2]="ContextRulesSpecific",B[B.ContextRulesAny=v*3]="ContextRulesAny",B[B.NoContextRulesSpecific=v*4]="NoContextRulesSpecific",B[B.NoContextRulesAny=v*5]="NoContextRulesAny"})(ie||(ie={}));function b(B,J,k,M,x){var w=J.action&3?k?ie.StopRulesSpecific:ie.StopRulesAny:J.context!==n.anyContext?k?ie.ContextRulesSpecific:ie.ContextRulesAny:k?ie.NoContextRulesSpecific:ie.NoContextRulesAny,K=M[x]||0;B.splice(P(K,w),0,J),M[x]=S(K,w)}function P(B,J){for(var k=0,M=0;M<=J;M+=v)k+=B&A,B>>=v;return k}function S(B,J){var k=(B>>J&A)+1;return e.Debug.assert((k&A)===k,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),B&~(A<<J)|k<<J}})(e.formatting||(e.formatting={}))})(gr||(gr={}));var gr;(function(e){(function(n){function f(T,I,y){var D={pos:T,end:I,kind:y};return e.Debug.isDebugging&&Object.defineProperty(D,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(y)}}),D}n.createTextRangeWithKind=f;var d;(function(T){T[T.Unknown=-1]="Unknown"})(d||(d={}));function a(T,I,y){var D=I.getLineAndCharacterOfPosition(T).line;if(D===0)return[];for(var C=e.getEndLinePosition(D,I);e.isWhiteSpaceSingleLine(I.text.charCodeAt(C));)C--;e.isLineBreak(I.text.charCodeAt(C))&&C--;var m={pos:e.getStartPositionOfLine(D-1,I),end:C+1};return M(m,I,y,2)}n.formatOnEnter=a;function p(T,I,y){var D=A(T,26,I);return k(q(D),I,y,3)}n.formatOnSemicolon=p;function N(T,I,y){var D=A(T,18,I);if(!D)return[];var C=D.parent,m=q(C),u={pos:e.getLineStartPositionForPosition(m.getStart(I),I),end:T};return M(u,I,y,4)}n.formatOnOpeningCurly=N;function H(T,I,y){var D=A(T,19,I);return k(q(D),I,y,5)}n.formatOnClosingCurly=H;function h(T,I){var y={pos:0,end:T.text.length};return M(y,T,I,0)}n.formatDocument=h;function v(T,I,y,D){var C={pos:e.getLineStartPositionForPosition(T,y),end:I};return M(C,y,D,1)}n.formatSelection=v;function A(T,I,y){var D=e.findPrecedingToken(T,y);return D&&D.kind===I&&T===D.getEnd()?D:void 0}function q(T){for(var I=T;I&&I.parent&&I.parent.end===T.end&&!ie(I.parent,I);)I=I.parent;return I}function ie(T,I){switch(T.kind){case 256:case 257:return e.rangeContainsRange(T.members,I);case 260:var y=T.body;return!!y&&y.kind===261&&e.rangeContainsRange(y.statements,I);case 303:case 234:case 261:return e.rangeContainsRange(T.statements,I);case 291:return e.rangeContainsRange(T.block.statements,I)}return!1}function b(T,I){return y(I);function y(D){var C=e.forEachChild(D,function(u){return e.startEndContainsRange(u.getStart(I),u.end,T)&&u});if(C){var m=y(C);if(m)return m}return D}}function P(T,I){if(!T.length)return C;var y=T.filter(function(m){return e.rangeOverlapsWithStartEnd(I,m.start,m.start+m.length)}).sort(function(m,u){return m.start-u.start});if(!y.length)return C;var D=0;return function(m){for(;;){if(D>=y.length)return!1;var u=y[D];if(m.end<=u.start)return!1;if(e.startEndOverlapsWithStartEnd(m.pos,m.end,u.start,u.start+u.length))return!0;D++}};function C(){return!1}}function S(T,I,y){var D=T.getStart(y);if(D===I.pos&&T.end===I.end)return D;var C=e.findPrecedingToken(I.pos,y);return!C||C.end>=I.pos?T.pos:C.end}function B(T,I,y){for(var D=-1,C;T;){var m=y.getLineAndCharacterOfPosition(T.getStart(y)).line;if(D!==-1&&m!==D)break;if(n.SmartIndenter.shouldIndentChildNode(I,T,C,y))return I.indentSize;D=m,C=T,T=T.parent}return 0}function J(T,I,y,D,C,m){var u={pos:0,end:I.text.length};return n.getFormattingScanner(I.text,y,u.pos,u.end,function(g){return x(u,T,D,C,g,m,1,function(F){return!1},I)})}n.formatNodeGivenIndentation=J;function k(T,I,y,D){if(!T)return[];var C={pos:e.getLineStartPositionForPosition(T.getStart(I),I),end:T.end};return M(C,I,y,D)}function M(T,I,y,D){var C=b(T,I);return n.getFormattingScanner(I.text,I.languageVariant,S(C,T,I),T.end,function(m){return x(T,C,n.SmartIndenter.getIndentationForNode(C,T,I,y.options),B(C,y.options,I),m,y,D,P(I.parseDiagnostics,T),I)})}function x(T,I,y,D,C,m,u,g,F){var te=m.options,ue=m.getRules,X=m.host,j=new n.FormattingContext(F,u,te),Se,Ce,O,Q,V=-1,z=[];if(C.advance(),C.isOnToken()){var Te=F.getLineAndCharacterOfPosition(I.getStart(F)).line,ge=Te;I.decorators&&(ge=F.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(I,F)).line),Ve(I,I,Te,ge,y,D)}if(!C.isOnToken()){var ke=n.SmartIndenter.nodeWillIndentChild(te,I,void 0,F,!1)?y+te.indentSize:y,Me=C.getCurrentLeadingTrivia();Me&&(_e(Me,ke,!1,function(vr){return qe(vr,F.getLineAndCharacterOfPosition(vr.pos),I,I,void 0)}),te.trimTrailingWhitespace!==!1&&Cr(Me))}return z;function Ie(vr,de,Fe,$e,Dr){if(e.rangeOverlapsWithStartEnd($e,vr,de)||e.rangeContainsStartEnd($e,vr,de)){if(Dr!==-1)return Dr}else{var Fr=F.getLineAndCharacterOfPosition(vr).line,He=e.getLineStartPositionForPosition(vr,F),pr=n.SmartIndenter.findFirstNonWhitespaceColumn(He,vr,F,te);if(Fr!==Fe||vr===pr){var Jr=n.SmartIndenter.getBaseIndentation(te);return Jr>pr?Jr:pr}}return-1}function Ge(vr,de,Fe,$e,Dr,Fr){var He=n.SmartIndenter.shouldIndentChildNode(te,vr)?te.indentSize:0;return Fr===de?{indentation:de===Q?V:Dr.getIndentation(),delta:Math.min(te.indentSize,Dr.getDelta(vr)+He)}:Fe===-1?vr.kind===20&&de===Q?{indentation:V,delta:Dr.getDelta(vr)}:n.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement($e,vr,de,F)||n.SmartIndenter.childIsUnindentedBranchOfConditionalExpression($e,vr,de,F)||n.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument($e,vr,de,F)?{indentation:Dr.getIndentation(),delta:He}:{indentation:Dr.getIndentation()+Dr.getDelta(vr),delta:He}:{indentation:Fe,delta:He}}function he(vr){if(vr.modifiers&&vr.modifiers.length)return vr.modifiers[0].kind;switch(vr.kind){case 256:return 84;case 257:return 118;case 255:return 98;case 259:return 259;case 171:return 136;case 172:return 148;case 168:if(vr.asteriskToken)return 41;case 166:case 163:var de=e.getNameOfDeclaration(vr);if(de)return de.kind}}function ve(vr,de,Fe,$e){return{getIndentationForComment:function(He,pr,Jr){switch(He){case 19:case 23:case 21:return Fe+Fr(Jr)}return pr!==-1?pr:Fe},getIndentationForToken:function(He,pr,Jr,ze){return!ze&&Dr(He,pr,Jr)?Fe+Fr(Jr):Fe},getIndentation:function(){return Fe},getDelta:Fr,recomputeIndentation:function(He,pr){n.SmartIndenter.shouldIndentChildNode(te,pr,vr,F)&&(Fe+=He?te.indentSize:-te.indentSize,$e=n.SmartIndenter.shouldIndentChildNode(te,vr)?te.indentSize:0)}};function Dr(He,pr,Jr){switch(pr){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(Jr.kind){case 279:case 280:case 278:case 227:return!1}break;case 22:case 23:if(Jr.kind!==194)return!1;break}return de!==He&&!(vr.decorators&&pr===he(vr))}function Fr(He){return n.SmartIndenter.nodeWillIndentChild(te,vr,He,F,!0)?$e:0}}function Ve(vr,de,Fe,$e,Dr,Fr){if(!e.rangeOverlapsWithStartEnd(T,vr.getStart(F),vr.getEnd()))return;var He=ve(vr,Fe,Dr,Fr),pr=de;for(e.forEachChild(vr,function(tt){Ar(tt,-1,vr,He,Fe,$e,!1)},function(tt){Yr(tt,vr,Fe,He)});C.isOnToken();){var Jr=C.readTokenInfo(vr);if(Jr.token.end>vr.end)break;lt(Jr,vr,He,vr)}if(!vr.parent&&C.isOnEOF()){var ze=C.readEOFTokenRange();ze.end<=vr.end&&Se&&Xe(ze,F.getLineAndCharacterOfPosition(ze.pos).line,vr,Se,O,Ce,de,He)}function Ar(tt,Rt,cn,bn,In,zn,ir,Rr){var sr=tt.getStart(F),ye=F.getLineAndCharacterOfPosition(sr).line,or=ye;tt.decorators&&(or=F.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(tt,F)).line);var fe=-1;if(ir&&e.rangeContainsRange(T,cn)&&(fe=Ie(sr,tt.end,In,T,Rt),fe!==-1&&(Rt=fe)),!e.rangeOverlapsWithStartEnd(T,tt.pos,tt.end))return tt.end<T.pos&&C.skipToEndOf(tt),Rt;if(tt.getFullWidth()===0)return Rt;for(;C.isOnToken();){var je=C.readTokenInfo(vr);if(je.token.end>sr){je.token.pos>sr&&C.skipToStartOf(tt);break}lt(je,vr,bn,vr)}if(!C.isOnToken())return Rt;if(e.isToken(tt)){var je=C.readTokenInfo(tt);if(tt.kind!==11)return e.Debug.assert(je.token.end===tt.end,"Token end is child end"),lt(je,vr,bn,tt),Rt}var Ee=tt.kind===164?ye:zn,We=Ge(tt,ye,fe,vr,bn,Ee);return Ve(tt,pr,ye,or,We.indentation,We.delta),pr=vr,Rr&&cn.kind===203&&Rt===-1&&(Rt=We.indentation),Rt}function Yr(tt,Rt,cn,bn){e.Debug.assert(e.isNodeArray(tt));var In=Z(Rt,tt),zn=bn,ir=cn;if(In!==0)for(;C.isOnToken();){var Rr=C.readTokenInfo(Rt);if(Rr.token.end>tt.pos)break;if(Rr.token.kind===In){ir=F.getLineAndCharacterOfPosition(Rr.token.pos).line,lt(Rr,Rt,bn,Rt);var sr=void 0;if(V!==-1)sr=V;else{var ye=e.getLineStartPositionForPosition(Rr.token.pos,F);sr=n.SmartIndenter.findFirstNonWhitespaceColumn(ye,Rr.token.pos,F,te)}zn=ve(Rt,cn,sr,te.indentSize)}else lt(Rr,Rt,bn,Rt)}for(var or=-1,fe=0;fe<tt.length;fe++){var je=tt[fe];or=Ar(je,or,vr,zn,ir,ir,!0,fe===0)}var Ee=ne(In);if(Ee!==0&&C.isOnToken()){var Rr=C.readTokenInfo(Rt);if(Rr.token.kind===27&&e.isCallLikeExpression(Rt)){var We=F.getLineAndCharacterOfPosition(Rr.token.pos).line;ir!==We&&(C.advance(),Rr=C.isOnToken()?C.readTokenInfo(Rt):void 0)}Rr&&Rr.token.kind===Ee&&e.rangeContainsRange(Rt,Rr.token)&<(Rr,Rt,zn,Rt,!0)}}function lt(tt,Rt,cn,bn,In){e.Debug.assert(e.rangeContainsRange(Rt,tt.token));var zn=C.lastTrailingTriviaWasNewLine(),ir=!1;tt.leadingTrivia&&Le(tt.leadingTrivia,Rt,pr,cn);var Rr=0,sr=e.rangeContainsRange(T,tt.token),ye=F.getLineAndCharacterOfPosition(tt.token.pos);if(sr){var or=g(tt.token),fe=Se;if(Rr=qe(tt.token,ye,Rt,pr,cn),!or)if(Rr===0){var je=fe&&F.getLineAndCharacterOfPosition(fe.end).line;ir=zn&&ye.line!==je}else ir=Rr===1}if(tt.trailingTrivia&&Le(tt.trailingTrivia,Rt,pr,cn),ir){var Ee=sr&&!g(tt.token)?cn.getIndentationForToken(ye.line,tt.token.kind,bn,!!In):-1,We=!0;if(tt.leadingTrivia){var ee=cn.getIndentationForComment(tt.token.kind,Ee,bn);We=_e(tt.leadingTrivia,ee,We,function(Ne){return De(Ne.pos,ee,!1)})}Ee!==-1&&We&&(De(tt.token.pos,Ee,Rr===1),Q=ye.line,V=Ee)}C.advance(),pr=Rt}}function _e(vr,de,Fe,$e){for(var Dr=0,Fr=vr;Dr<Fr.length;Dr++){var He=Fr[Dr],pr=e.rangeContainsRange(T,He);switch(He.kind){case 3:pr&&Lr(He,de,!Fe),Fe=!1;break;case 2:Fe&&pr&&$e(He),Fe=!1;break;case 4:Fe=!0;break}}return Fe}function Le(vr,de,Fe,$e){for(var Dr=0,Fr=vr;Dr<Fr.length;Dr++){var He=Fr[Dr];if(e.isComment(He.kind)&&e.rangeContainsRange(T,He)){var pr=F.getLineAndCharacterOfPosition(He.pos);qe(He,pr,de,Fe,$e)}}}function qe(vr,de,Fe,$e,Dr){var Fr=g(vr),He=0;if(!Fr)if(Se)He=Xe(vr,de.line,Fe,Se,O,Ce,$e,Dr);else{var pr=F.getLineAndCharacterOfPosition(T.pos);Er(pr.line,de.line)}return Se=vr,Ce=Fe,O=de.line,He}function Xe(vr,de,Fe,$e,Dr,Fr,He,pr){j.updateContext($e,Fr,vr,Fe,He);var Jr=ue(j),ze=j.options.trimTrailingWhitespace!==!1,Ar=0;return Jr?e.forEachRight(Jr,function(Yr){switch(Ar=ur(Yr,$e,Dr,vr,de),Ar){case 2:Fe.getStart(F)===vr.pos&&pr.recomputeIndentation(!1,He);break;case 1:Fe.getStart(F)===vr.pos&&pr.recomputeIndentation(!0,He);break;default:e.Debug.assert(Ar===0)}ze=ze&&!(Yr.action&16)&&Yr.flags!==1}):ze=ze&&vr.kind!==1,de!==Dr&&ze&&Er(Dr,de,$e),Ar}function De(vr,de,Fe){var $e=$(de,te);if(Fe)Pe(vr,0,$e);else{var Dr=F.getLineAndCharacterOfPosition(vr),Fr=e.getStartPositionOfLine(Dr.line,F);(de!==Ae(Fr,Dr.character)||Ye($e,Fr))&&Pe(Fr,Dr.character,$e)}}function Ae(vr,de){for(var Fe=0,$e=0;$e<de;$e++)F.text.charCodeAt(vr+$e)===9?Fe+=te.tabSize-Fe%te.tabSize:Fe++;return Fe}function Ye(vr,de){return vr!==F.text.substr(de,vr.length)}function Lr(vr,de,Fe,$e){$e===void 0&&($e=!0);var Dr=F.getLineAndCharacterOfPosition(vr.pos).line,Fr=F.getLineAndCharacterOfPosition(vr.end).line;if(Dr===Fr){Fe||De(vr.pos,de,!1);return}for(var He=[],pr=vr.pos,Jr=Dr;Jr<Fr;Jr++){var ze=e.getEndLinePosition(Jr,F);He.push({pos:pr,end:ze}),pr=e.getStartPositionOfLine(Jr+1,F)}if($e&&He.push({pos:pr,end:vr.end}),He.length!==0){var Ar=e.getStartPositionOfLine(Dr,F),Yr=n.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(Ar,He[0].pos,F,te),lt=0;Fe&&(lt=1,Dr++);for(var tt=de-Yr.column,Rt=lt;Rt<He.length;Rt++,Dr++){var cn=e.getStartPositionOfLine(Dr,F),bn=Rt===0?Yr:n.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(He[Rt].pos,He[Rt].end,F,te),In=bn.column+tt;if(In>0){var zn=$(In,te);Pe(cn,bn.character,zn)}else Ke(cn,bn.character)}}}function Er(vr,de,Fe){for(var $e=vr;$e<de;$e++){var Dr=e.getStartPositionOfLine($e,F),Fr=e.getEndLinePosition($e,F);if(!(Fe&&(e.isComment(Fe.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(Fe.kind))&&Fe.pos<=Fr&&Fe.end>Fr)){var He=lr(Dr,Fr);He!==-1&&(e.Debug.assert(He===Dr||!e.isWhiteSpaceSingleLine(F.text.charCodeAt(He-1))),Ke(He,Fr+1-He))}}}function lr(vr,de){for(var Fe=de;Fe>=vr&&e.isWhiteSpaceSingleLine(F.text.charCodeAt(Fe));)Fe--;return Fe!==de?Fe+1:-1}function Cr(vr){for(var de=Se?Se.end:T.pos,Fe=0,$e=vr;Fe<$e.length;Fe++){var Dr=$e[Fe];e.isComment(Dr.kind)&&(de<Dr.pos&&Or(de,Dr.pos-1,Se),de=Dr.end+1)}de<T.end&&Or(de,T.end,Se)}function Or(vr,de,Fe){var $e=F.getLineAndCharacterOfPosition(vr).line,Dr=F.getLineAndCharacterOfPosition(de).line;Er($e,Dr+1,Fe)}function Ke(vr,de){de&&z.push(e.createTextChangeFromStartLength(vr,de,""))}function Pe(vr,de,Fe){(de||Fe)&&z.push(e.createTextChangeFromStartLength(vr,de,Fe))}function Hr(vr,de){de&&z.push(e.createTextChangeFromStartLength(vr,0,de))}function ur(vr,de,Fe,$e,Dr){var Fr=Dr!==Fe;switch(vr.action){case 1:return 0;case 16:if(de.end!==$e.pos)return Ke(de.end,$e.pos-de.end),Fr?2:0;break;case 32:Ke(de.pos,de.end-de.pos);break;case 8:if(vr.flags!==1&&Fe!==Dr)return 0;var He=Dr-Fe;if(He!==1)return Pe(de.end,$e.pos-de.end,e.getNewLineOrDefaultFromHost(X,te)),Fr?0:1;break;case 4:if(vr.flags!==1&&Fe!==Dr)return 0;var pr=$e.pos-de.end;if(pr!==1||F.text.charCodeAt(de.end)!==32)return Pe(de.end,$e.pos-de.end," "),Fr?2:0;break;case 64:Hr(de.end,";")}return 0}}var w;(function(T){T[T.None=0]="None",T[T.LineAdded=1]="LineAdded",T[T.LineRemoved=2]="LineRemoved"})(w||(w={}));function K(T,I,y,D){D===void 0&&(D=e.getTokenAtPosition(T,I));var C=e.findAncestor(D,e.isJSDoc);C&&(D=C.parent);var m=D.getStart(T);if(!(m<=I&&I<D.getEnd())){y=y===null?void 0:y===void 0?e.findPrecedingToken(I,T):y;var u=y&&e.getTrailingCommentRanges(T.text,y.end),g=e.getLeadingCommentRangesOfNode(D,T),F=e.concatenate(u,g);return F&&e.find(F,function(te){return e.rangeContainsPositionExclusive(te,I)||I===te.end&&(te.kind===2||I===T.getFullWidth())})}}n.getRangeOfEnclosingComment=K;function Z(T,I){switch(T.kind){case 170:case 255:case 212:case 168:case 167:case 213:if(T.typeParameters===I)return 29;if(T.parameters===I)return 20;break;case 207:case 208:if(T.typeArguments===I)return 29;if(T.arguments===I)return 20;break;case 177:if(T.typeArguments===I)return 29;break;case 181:return 18}return 0}function ne(T){switch(T){case 20:return 21;case 29:return 31;case 18:return 19}return 0}var R,Y,U;function $(T,I){var y=!R||R.tabSize!==I.tabSize||R.indentSize!==I.indentSize;if(y&&(R={tabSize:I.tabSize,indentSize:I.indentSize},Y=U=void 0),I.convertTabsToSpaces){var u=void 0,g=Math.floor(T/I.indentSize),F=T%I.indentSize;return U||(U=[]),U[g]===void 0?(u=e.repeatString(" ",I.indentSize*g),U[g]=u):u=U[g],F?u+e.repeatString(" ",F):u}else{var D=Math.floor(T/I.tabSize),C=T-D*I.tabSize,m=void 0;return Y||(Y=[]),Y[D]===void 0?Y[D]=m=e.repeatString(" ",D):m=Y[D],C?m+e.repeatString(" ",C):m}}n.getIndentationString=$})(e.formatting||(e.formatting={}))})(gr||(gr={}));var gr;(function(e){(function(n){(function(f){var d;(function(u){u[u.Unknown=-1]="Unknown"})(d||(d={}));function a(u,g,F,te){if(te===void 0&&(te=!1),u>g.text.length)return v(F);if(F.indentStyle===e.IndentStyle.None)return 0;var ue=e.findPrecedingToken(u,g,void 0,!0),X=n.getRangeOfEnclosingComment(g,u,ue||null);if(X&&X.kind===3)return p(g,u,F,X);if(!ue)return v(F);var j=e.isStringOrRegularExpressionOrTemplateLiteral(ue.kind);if(j&&ue.getStart(g)<=u&&u<ue.end)return 0;var Se=g.getLineAndCharacterOfPosition(u).line;if(F.indentStyle===e.IndentStyle.Block)return N(g,u,F);if(ue.kind===27&&ue.parent.kind!==220){var Ce=ie(ue,g,F);if(Ce!==-1)return Ce}var O=K(u,ue.parent,g);return O&&!e.rangeContainsRange(O,ue)?R(O,g,F)+F.indentSize:H(g,u,ue,Se,te,F)}f.getIndentation=a;function p(u,g,F,te){var ue=e.getLineAndCharacterOfPosition(u,g).line-1,X=e.getLineAndCharacterOfPosition(u,te.pos).line;if(e.Debug.assert(X>=0),ue<=X)return I(e.getStartPositionOfLine(X,u),g,u,F);var j=e.getStartPositionOfLine(ue,u),Se=T(j,g,u,F),Ce=Se.column,O=Se.character;if(Ce===0)return Ce;var Q=u.text.charCodeAt(j+O);return Q===42?Ce-1:Ce}function N(u,g,F){for(var te=g;te>0;){var ue=u.text.charCodeAt(te);if(!e.isWhiteSpaceLike(ue))break;te--}var X=e.getLineStartPositionForPosition(te,u);return I(X,te,u,F)}function H(u,g,F,te,ue,X){for(var j,Se=F;Se;){if(e.positionBelongsToNode(Se,g,u)&&C(X,Se,j,u,!0)){var Ce=B(Se,u),O=S(F,Se,te,u),Q=O!==0?ue&&O===2?X.indentSize:0:te!==Ce.line?X.indentSize:0;return A(Se,Ce,void 0,Q,u,!0,X)}var V=Y(Se,u,X,!0);if(V!==-1)return V;j=Se,Se=Se.parent}return v(X)}function h(u,g,F,te){var ue=F.getLineAndCharacterOfPosition(u.getStart(F));return A(u,ue,g,0,F,!1,te)}f.getIndentationForNode=h;function v(u){return u.baseIndentSize||0}f.getBaseIndentation=v;function A(u,g,F,te,ue,X,j){for(var Se,Ce=u.parent;Ce;){var O=!0;if(F){var Q=u.getStart(ue);O=Q<F.pos||Q>F.end}var V=q(Ce,u,ue),z=V.line===g.line||k(Ce,u,g.line,ue);if(O){var Te=(Se=w(u,ue))===null||Se===void 0?void 0:Se[0],ge=!!Te&&B(Te,ue).line>V.line,ke=Y(u,ue,j,ge);if(ke!==-1||(ke=b(u,Ce,g,z,ue,j),ke!==-1))return ke+te}C(j,Ce,u,ue,X)&&!z&&(te+=j.indentSize);var Me=J(Ce,u,g.line,ue);u=Ce,Ce=u.parent,g=Me?ue.getLineAndCharacterOfPosition(u.getStart(ue)):V}return te+v(j)}function q(u,g,F){var te=w(g,F),ue=te?te.pos:u.getStart(F);return F.getLineAndCharacterOfPosition(ue)}function ie(u,g,F){var te=e.findListItemInfo(u);return te&&te.listItemIndex>0?U(te.list.getChildren(),te.listItemIndex-1,g,F):-1}function b(u,g,F,te,ue,X){var j=(e.isDeclaration(u)||e.isStatementButNotDeclaration(u))&&(g.kind===303||!te);return j?$(F,ue,X):-1}var P;(function(u){u[u.Unknown=0]="Unknown",u[u.OpenBrace=1]="OpenBrace",u[u.CloseBrace=2]="CloseBrace"})(P||(P={}));function S(u,g,F,te){var ue=e.findNextToken(u,g,te);if(!ue)return 0;if(ue.kind===18)return 1;if(ue.kind===19){var X=B(ue,te).line;return F===X?2:0}return 0}function B(u,g){return g.getLineAndCharacterOfPosition(u.getStart(g))}function J(u,g,F,te){if(!(e.isCallExpression(u)&&e.contains(u.arguments,g)))return!1;var ue=u.expression.getEnd(),X=e.getLineAndCharacterOfPosition(te,ue).line;return X===F}f.isArgumentAndStartLineOverlapsExpressionBeingCalled=J;function k(u,g,F,te){if(u.kind===238&&u.elseStatement===g){var ue=e.findChildOfKind(u,91,te);e.Debug.assert(ue!==void 0);var X=B(ue,te).line;return X===F}return!1}f.childStartsOnTheSameLineWithElseInIfStatement=k;function M(u,g,F,te){if(e.isConditionalExpression(u)&&(g===u.whenTrue||g===u.whenFalse)){var ue=e.getLineAndCharacterOfPosition(te,u.condition.end).line;if(g===u.whenTrue)return F===ue;var X=B(u.whenTrue,te).line,j=e.getLineAndCharacterOfPosition(te,u.whenTrue.end).line;return ue===X&&j===F}return!1}f.childIsUnindentedBranchOfConditionalExpression=M;function x(u,g,F,te){if(e.isCallOrNewExpression(u)){if(!u.arguments)return!1;var ue=e.find(u.arguments,function(Ce){return Ce.pos===g.pos});if(!ue)return!1;var X=u.arguments.indexOf(ue);if(X===0)return!1;var j=u.arguments[X-1],Se=e.getLineAndCharacterOfPosition(te,j.getEnd()).line;if(F===Se)return!0}return!1}f.argumentStartsOnSameLineAsPreviousArgument=x;function w(u,g){return u.parent&&Z(u.getStart(g),u.getEnd(),u.parent,g)}f.getContainingList=w;function K(u,g,F){return g&&Z(u,u,g,F)}function Z(u,g,F,te){switch(F.kind){case 177:return ue(F.typeArguments);case 204:return ue(F.properties);case 203:return ue(F.elements);case 181:return ue(F.members);case 255:case 212:case 213:case 168:case 167:case 173:case 170:case 179:case 174:return ue(F.typeParameters)||ue(F.parameters);case 256:case 225:case 257:case 258:case 342:return ue(F.typeParameters);case 208:case 207:return ue(F.typeArguments)||ue(F.arguments);case 254:return ue(F.declarations);case 268:case 272:return ue(F.elements);case 200:case 201:return ue(F.elements)}function ue(X){return X&&e.rangeContainsStartEnd(ne(F,X,te),u,g)?X:void 0}}function ne(u,g,F){for(var te=u.getChildren(F),ue=1;ue<te.length-1;ue++)if(te[ue].pos===g.pos&&te[ue].end===g.end)return{pos:te[ue-1].end,end:te[ue+1].getStart(F)};return g}function R(u,g,F){return u?$(g.getLineAndCharacterOfPosition(u.pos),g,F):-1}function Y(u,g,F,te){if(u.parent&&u.parent.kind===254)return-1;var ue=w(u,g);if(ue){var X=ue.indexOf(u);if(X!==-1){var j=U(ue,X,g,F);if(j!==-1)return j}return R(ue,g,F)+(te?F.indentSize:0)}return-1}function U(u,g,F,te){e.Debug.assert(g>=0&&g<u.length);for(var ue=u[g],X=B(ue,F),j=g-1;j>=0;j--)if(u[j].kind!==27){var Se=F.getLineAndCharacterOfPosition(u[j].end).line;if(Se!==X.line)return $(X,F,te);X=B(u[j],F)}return-1}function $(u,g,F){var te=g.getPositionOfLineAndCharacter(u.line,0);return I(te,te+u.character,g,F)}function T(u,g,F,te){for(var ue=0,X=0,j=u;j<g;j++){var Se=F.text.charCodeAt(j);if(!e.isWhiteSpaceSingleLine(Se))break;Se===9?X+=te.tabSize+X%te.tabSize:X++,ue++}return{column:X,character:ue}}f.findFirstNonWhitespaceCharacterAndColumn=T;function I(u,g,F,te){return T(u,g,F,te).column}f.findFirstNonWhitespaceColumn=I;function y(u,g,F,te,ue){var X=F?F.kind:0;switch(g.kind){case 237:case 256:case 225:case 257:case 259:case 258:case 203:case 234:case 261:case 204:case 181:case 194:case 183:case 262:case 289:case 288:case 211:case 205:case 207:case 208:case 236:case 270:case 246:case 221:case 201:case 200:case 279:case 282:case 278:case 287:case 167:case 173:case 174:case 163:case 178:case 179:case 190:case 209:case 217:case 272:case 268:case 274:case 269:case 166:return!0;case 253:case 294:case 220:if(!u.indentMultiLineObjectLiteralBeginningOnBlankLine&&te&&X===204)return m(te,F);if(g.kind===220&&te&&F&&X===277){var j=te.getLineAndCharacterOfPosition(e.skipTrivia(te.text,g.pos)).line,Se=te.getLineAndCharacterOfPosition(e.skipTrivia(te.text,F.pos)).line;return j!==Se}if(g.kind!==220)return!0;break;case 239:case 240:case 242:case 243:case 241:case 238:case 255:case 212:case 168:case 170:case 171:case 172:return X!==234;case 213:return te&&X===211?m(te,F):X!==234;case 271:return X!==272;case 265:return X!==266||!!F.namedBindings&&F.namedBindings.kind!==268;case 277:return X!==280;case 281:return X!==283;case 187:case 186:if(X===181||X===183)return!1;break}return ue}f.nodeWillIndentChild=y;function D(u,g){switch(u){case 246:case 250:case 244:case 245:return g.kind!==234;default:return!1}}function C(u,g,F,te,ue){return ue===void 0&&(ue=!1),y(u,g,F,te,!1)&&!(ue&&F&&D(F.kind,g))}f.shouldIndentChildNode=C;function m(u,g){var F=e.skipTrivia(u.text,g.pos),te=u.getLineAndCharacterOfPosition(F).line,ue=u.getLineAndCharacterOfPosition(g.end).line;return te===ue}})(n.SmartIndenter||(n.SmartIndenter={}))})(e.formatting||(e.formatting={}))})(gr||(gr={}));var gr;(function(e){(function(n){function f(u){var g=u.__pos;return e.Debug.assert(typeof g=="number"),g}function d(u,g){e.Debug.assert(typeof g=="number"),u.__pos=g}function a(u){var g=u.__end;return e.Debug.assert(typeof g=="number"),g}function p(u,g){e.Debug.assert(typeof g=="number"),u.__end=g}var N;(function(u){u[u.Exclude=0]="Exclude",u[u.IncludeAll=1]="IncludeAll",u[u.JSDoc=2]="JSDoc",u[u.StartLine=3]="StartLine"})(N=n.LeadingTriviaOption||(n.LeadingTriviaOption={}));var H;(function(u){u[u.Exclude=0]="Exclude",u[u.ExcludeWhitespace=1]="ExcludeWhitespace",u[u.Include=2]="Include"})(H=n.TrailingTriviaOption||(n.TrailingTriviaOption={}));function h(u,g){return e.skipTrivia(u,g,!1,!0)}function v(u,g){for(var F=g;F<u.length;){var te=u.charCodeAt(F);if(e.isWhiteSpaceSingleLine(te)){F++;continue}return te===47}return!1}var A={leadingTriviaOption:N.Exclude,trailingTriviaOption:H.Exclude},q;(function(u){u[u.Remove=0]="Remove",u[u.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",u[u.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",u[u.Text=3]="Text"})(q||(q={}));function ie(u,g,F,te){return{pos:b(u,g,te),end:S(u,F,te)}}function b(u,g,F,te){var ue,X;te===void 0&&(te=!1);var j=F.leadingTriviaOption;if(j===N.Exclude)return g.getStart(u);if(j===N.StartLine){var Se=g.getStart(u),Ce=e.getLineStartPositionForPosition(Se,u);return e.rangeContainsPosition(g,Ce)?Ce:Se}if(j===N.JSDoc){var O=e.getJSDocCommentRanges(g,u.text);if(O!=null&&O.length)return e.getLineStartPositionForPosition(O[0].pos,u)}var Q=g.getFullStart(),V=g.getStart(u);if(Q===V)return V;var z=e.getLineStartPositionForPosition(Q,u),Te=e.getLineStartPositionForPosition(V,u);if(Te===z)return j===N.IncludeAll?Q:V;if(te){var ge=((ue=e.getLeadingCommentRanges(u.text,Q))===null||ue===void 0?void 0:ue[0])||((X=e.getTrailingCommentRanges(u.text,Q))===null||X===void 0?void 0:X[0]);if(ge)return e.skipTrivia(u.text,ge.end,!0,!0)}var ke=Q>0?1:0,Me=e.getStartPositionOfLine(e.getLineOfLocalPosition(u,z)+ke,u);return Me=h(u.text,Me),e.getStartPositionOfLine(e.getLineOfLocalPosition(u,Me),u)}function P(u,g,F){var te=g.end,ue=F.trailingTriviaOption;if(ue===H.Include){var X=e.getTrailingCommentRanges(u.text,te);if(X)for(var j=e.getLineOfLocalPosition(u,g.end),Se=0,Ce=X;Se<Ce.length;Se++){var O=Ce[Se];if(O.kind===2||e.getLineOfLocalPosition(u,O.pos)>j)break;var Q=e.getLineOfLocalPosition(u,O.end);if(Q>j)return e.skipTrivia(u.text,O.end,!0,!0)}}}function S(u,g,F){var te,ue=g.end,X=F.trailingTriviaOption;if(X===H.Exclude)return ue;if(X===H.ExcludeWhitespace){var j=e.concatenate(e.getTrailingCommentRanges(u.text,ue),e.getLeadingCommentRanges(u.text,ue)),Se=(te=j==null?void 0:j[j.length-1])===null||te===void 0?void 0:te.end;return Se||ue}var Ce=P(u,g,F);if(Ce)return Ce;var O=e.skipTrivia(u.text,ue,!0);return O!==ue&&(X===H.Include||e.isLineBreak(u.text.charCodeAt(O-1)))?O:ue}function B(u,g){return!!g&&!!u.parent&&(g.kind===27||g.kind===26&&u.parent.kind===204)}function J(u){return e.isFunctionExpression(u)||e.isFunctionDeclaration(u)}n.isThisTypeAnnotatable=J;var k=function(){function u(g,F){this.newLineCharacter=g,this.formatContext=F,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return u.fromContext=function(g){return new u(e.getNewLineOrDefaultFromHost(g.host,g.formatContext.options),g.formatContext)},u.with=function(g,F){var te=u.fromContext(g);return F(te),te.getChanges()},u.prototype.pushRaw=function(g,F){e.Debug.assertEqual(g.fileName,F.fileName);for(var te=0,ue=F.textChanges;te<ue.length;te++){var X=ue[te];this.changes.push({kind:q.Text,sourceFile:g,text:X.newText,range:e.createTextRangeFromSpan(X.span)})}},u.prototype.deleteRange=function(g,F){this.changes.push({kind:q.Remove,sourceFile:g,range:F})},u.prototype.delete=function(g,F){this.deletedNodes.push({sourceFile:g,node:F})},u.prototype.deleteNode=function(g,F,te){te===void 0&&(te={leadingTriviaOption:N.IncludeAll}),this.deleteRange(g,ie(g,F,F,te))},u.prototype.deleteNodes=function(g,F,te,ue){te===void 0&&(te={leadingTriviaOption:N.IncludeAll});for(var X=0,j=F;X<j.length;X++){var Se=j[X],Ce=b(g,Se,te,ue),O=S(g,Se,te);this.deleteRange(g,{pos:Ce,end:O}),ue=!!P(g,Se,te)}},u.prototype.deleteModifier=function(g,F){this.deleteRange(g,{pos:F.getStart(g),end:e.skipTrivia(g.text,F.end,!0)})},u.prototype.deleteNodeRange=function(g,F,te,ue){ue===void 0&&(ue={leadingTriviaOption:N.IncludeAll});var X=b(g,F,ue),j=S(g,te,ue);this.deleteRange(g,{pos:X,end:j})},u.prototype.deleteNodeRangeExcludingEnd=function(g,F,te,ue){ue===void 0&&(ue={leadingTriviaOption:N.IncludeAll});var X=b(g,F,ue),j=te===void 0?g.text.length:b(g,te,ue);this.deleteRange(g,{pos:X,end:j})},u.prototype.replaceRange=function(g,F,te,ue){ue===void 0&&(ue={}),this.changes.push({kind:q.ReplaceWithSingleNode,sourceFile:g,range:F,options:ue,node:te})},u.prototype.replaceNode=function(g,F,te,ue){ue===void 0&&(ue=A),this.replaceRange(g,ie(g,F,F,ue),te,ue)},u.prototype.replaceNodeRange=function(g,F,te,ue,X){X===void 0&&(X=A),this.replaceRange(g,ie(g,F,te,X),ue,X)},u.prototype.replaceRangeWithNodes=function(g,F,te,ue){ue===void 0&&(ue={}),this.changes.push({kind:q.ReplaceWithMultipleNodes,sourceFile:g,range:F,options:ue,nodes:te})},u.prototype.replaceNodeWithNodes=function(g,F,te,ue){ue===void 0&&(ue=A),this.replaceRangeWithNodes(g,ie(g,F,F,ue),te,ue)},u.prototype.replaceNodeWithText=function(g,F,te){this.replaceRangeWithText(g,ie(g,F,F,A),te)},u.prototype.replaceNodeRangeWithNodes=function(g,F,te,ue,X){X===void 0&&(X=A),this.replaceRangeWithNodes(g,ie(g,F,te,X),ue,X)},u.prototype.nodeHasTrailingComment=function(g,F,te){return te===void 0&&(te=A),!!P(g,F,te)},u.prototype.nextCommaToken=function(g,F){var te=e.findNextToken(F,F.parent,g);return te&&te.kind===27?te:void 0},u.prototype.replacePropertyAssignment=function(g,F,te){var ue=this.nextCommaToken(g,F)?"":","+this.newLineCharacter;this.replaceNode(g,F,te,{suffix:ue})},u.prototype.insertNodeAt=function(g,F,te,ue){ue===void 0&&(ue={}),this.replaceRange(g,e.createRange(F),te,ue)},u.prototype.insertNodesAt=function(g,F,te,ue){ue===void 0&&(ue={}),this.replaceRangeWithNodes(g,e.createRange(F),te,ue)},u.prototype.insertNodeAtTopOfFile=function(g,F,te){this.insertAtTopOfFile(g,F,te)},u.prototype.insertNodesAtTopOfFile=function(g,F,te){this.insertAtTopOfFile(g,F,te)},u.prototype.insertAtTopOfFile=function(g,F,te){var ue=T(g),X={prefix:ue===0?void 0:this.newLineCharacter,suffix:(e.isLineBreak(g.text.charCodeAt(ue))?"":this.newLineCharacter)+(te?this.newLineCharacter:"")};e.isArray(F)?this.insertNodesAt(g,ue,F,X):this.insertNodeAt(g,ue,F,X)},u.prototype.insertFirstParameter=function(g,F,te){var ue=e.firstOrUndefined(F);ue?this.insertNodeBefore(g,ue,te):this.insertNodeAt(g,F.pos,te)},u.prototype.insertNodeBefore=function(g,F,te,ue,X){ue===void 0&&(ue=!1),X===void 0&&(X={}),this.insertNodeAt(g,b(g,F,X),te,this.getOptionsForInsertNodeBefore(F,te,ue))},u.prototype.insertModifierAt=function(g,F,te,ue){ue===void 0&&(ue={}),this.insertNodeAt(g,F,e.factory.createToken(te),ue)},u.prototype.insertModifierBefore=function(g,F,te){return this.insertModifierAt(g,te.getStart(g),F,{suffix:" "})},u.prototype.insertCommentBeforeLine=function(g,F,te,ue){var X=e.getStartPositionOfLine(F,g),j=e.getFirstNonSpaceCharacterPosition(g.text,X),Se=I(g,j),Ce=e.getTouchingToken(g,Se?j:te),O=g.text.slice(X,j),Q="".concat(Se?"":this.newLineCharacter,"//").concat(ue).concat(this.newLineCharacter).concat(O);this.insertText(g,Ce.getStart(g),Q)},u.prototype.insertJsdocCommentBefore=function(g,F,te){var ue=F.getStart(g);if(F.jsDoc)for(var X=0,j=F.jsDoc;X<j.length;X++){var Se=j[X];this.deleteRange(g,{pos:e.getLineStartPositionForPosition(Se.getStart(g),g),end:S(g,Se,{})})}var Ce=e.getPrecedingNonSpaceCharacterPosition(g.text,ue-1),O=g.text.slice(Ce,ue);this.insertNodeAt(g,ue,te,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+O})},u.prototype.replaceRangeWithText=function(g,F,te){this.changes.push({kind:q.Text,sourceFile:g,range:F,text:te})},u.prototype.insertText=function(g,F,te){this.replaceRangeWithText(g,e.createRange(F),te)},u.prototype.tryInsertTypeAnnotation=function(g,F,te){var ue,X;if(e.isFunctionLike(F)){if(X=e.findChildOfKind(F,21,g),!X){if(!e.isArrowFunction(F))return!1;X=e.first(F.parameters)}}else X=(ue=F.kind===253?F.exclamationToken:F.questionToken)!==null&&ue!==void 0?ue:F.name;return this.insertNodeAt(g,X.end,te,{prefix:": "}),!0},u.prototype.tryInsertThisTypeAnnotation=function(g,F,te){var ue=e.findChildOfKind(F,20,g).getStart(g)+1,X=F.parameters.length?", ":"";this.insertNodeAt(g,ue,te,{prefix:"this: ",suffix:X})},u.prototype.insertTypeParameters=function(g,F,te){var ue=(e.findChildOfKind(F,20,g)||e.first(F.parameters)).getStart(g);this.insertNodesAt(g,ue,te,{prefix:"<",suffix:">",joiner:", "})},u.prototype.getOptionsForInsertNodeBefore=function(g,F,te){return e.isStatement(g)||e.isClassElement(g)?{suffix:te?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(g)?{suffix:", "}:e.isParameter(g)?e.isParameter(F)?{suffix:", "}:{}:e.isStringLiteral(g)&&e.isImportDeclaration(g.parent)||e.isNamedImports(g)?{suffix:", "}:e.isImportSpecifier(g)?{suffix:","+(te?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(g)},u.prototype.insertNodeAtConstructorStart=function(g,F,te){var ue=e.firstOrUndefined(F.body.statements);!ue||!F.body.multiLine?this.replaceConstructorBody(g,F,Gt([te],F.body.statements,!0)):this.insertNodeBefore(g,ue,te)},u.prototype.insertNodeAtConstructorStartAfterSuperCall=function(g,F,te){var ue=e.find(F.body.statements,function(X){return e.isExpressionStatement(X)&&e.isSuperCall(X.expression)});!ue||!F.body.multiLine?this.replaceConstructorBody(g,F,Gt(Gt([],F.body.statements,!0),[te],!1)):this.insertNodeAfter(g,ue,te)},u.prototype.insertNodeAtConstructorEnd=function(g,F,te){var ue=e.lastOrUndefined(F.body.statements);!ue||!F.body.multiLine?this.replaceConstructorBody(g,F,Gt(Gt([],F.body.statements,!0),[te],!1)):this.insertNodeAfter(g,ue,te)},u.prototype.replaceConstructorBody=function(g,F,te){this.replaceNode(g,F.body,e.factory.createBlock(te,!0))},u.prototype.insertNodeAtEndOfScope=function(g,F,te){var ue=b(g,F.getLastToken(),{});this.insertNodeAt(g,ue,te,{prefix:e.isLineBreak(g.text.charCodeAt(F.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},u.prototype.insertNodeAtClassStart=function(g,F,te){this.insertNodeAtStartWorker(g,F,te)},u.prototype.insertNodeAtObjectStart=function(g,F,te){this.insertNodeAtStartWorker(g,F,te)},u.prototype.insertNodeAtStartWorker=function(g,F,te){var ue,X=(ue=this.guessIndentationFromExistingMembers(g,F))!==null&&ue!==void 0?ue:this.computeIndentationForNewMember(g,F);this.insertNodeAt(g,w(F).pos,te,this.getInsertNodeAtStartInsertOptions(g,F,X))},u.prototype.guessIndentationFromExistingMembers=function(g,F){for(var te,ue=F,X=0,j=w(F);X<j.length;X++){var Se=j[X];if(e.rangeStartPositionsAreOnSameLine(ue,Se,g))return;var Ce=Se.getStart(g),O=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(Ce,g),Ce,g,this.formatContext.options);if(te===void 0)te=O;else if(O!==te)return;ue=Se}return te},u.prototype.computeIndentationForNewMember=function(g,F){var te,ue=F.getStart(g);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(ue,g),ue,g,this.formatContext.options)+((te=this.formatContext.options.indentSize)!==null&&te!==void 0?te:4)},u.prototype.getInsertNodeAtStartInsertOptions=function(g,F,te){var ue=w(F),X=ue.length===0,j=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(F),{node:F,sourceFile:g}),Se=e.isObjectLiteralExpression(F)&&(!e.isJsonSourceFile(g)||!X),Ce=e.isObjectLiteralExpression(F)&&e.isJsonSourceFile(g)&&X&&!j;return{indentation:te,prefix:(Ce?",":"")+this.newLineCharacter,suffix:Se?",":""}},u.prototype.insertNodeAfterComma=function(g,F,te){var ue=this.insertNodeAfterWorker(g,this.nextCommaToken(g,F)||F,te);this.insertNodeAt(g,ue,te,this.getInsertNodeAfterOptions(g,F))},u.prototype.insertNodeAfter=function(g,F,te){var ue=this.insertNodeAfterWorker(g,F,te);this.insertNodeAt(g,ue,te,this.getInsertNodeAfterOptions(g,F))},u.prototype.insertNodeAtEndOfList=function(g,F,te){this.insertNodeAt(g,F.end,te,{prefix:", "})},u.prototype.insertNodesAfter=function(g,F,te){var ue=this.insertNodeAfterWorker(g,F,e.first(te));this.insertNodesAt(g,ue,te,this.getInsertNodeAfterOptions(g,F))},u.prototype.insertNodeAfterWorker=function(g,F,te){y(F,te)&&g.text.charCodeAt(F.end-1)!==59&&this.replaceRange(g,e.createRange(F.end),e.factory.createToken(26));var ue=S(g,F,{});return ue},u.prototype.getInsertNodeAfterOptions=function(g,F){var te=this.getInsertNodeAfterOptionsWorker(F);return Rn(Rn({},te),{prefix:F.end===g.end&&e.isStatement(F)?te.prefix?`
|
|
`.concat(te.prefix):`
|
|
`:te.prefix})},u.prototype.getInsertNodeAfterOptionsWorker=function(g){switch(g.kind){case 256:case 260:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 253:case 10:case 79:return{prefix:", "};case 294:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 163:return{};default:return e.Debug.assert(e.isStatement(g)||e.isClassOrTypeElement(g)),{suffix:this.newLineCharacter}}},u.prototype.insertName=function(g,F,te){if(e.Debug.assert(!F.name),F.kind===213){var ue=e.findChildOfKind(F,38,g),X=e.findChildOfKind(F,20,g);X?(this.insertNodesAt(g,X.getStart(g),[e.factory.createToken(98),e.factory.createIdentifier(te)],{joiner:" "}),C(this,g,ue)):(this.insertText(g,e.first(F.parameters).getStart(g),"function ".concat(te,"(")),this.replaceRange(g,ue,e.factory.createToken(21))),F.body.kind!==234&&(this.insertNodesAt(g,F.body.getStart(g),[e.factory.createToken(18),e.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(g,F.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var j=e.findChildOfKind(F,F.kind===212?98:84,g).end;this.insertNodeAt(g,j,e.factory.createIdentifier(te),{prefix:" "})}},u.prototype.insertExportModifier=function(g,F){this.insertText(g,F.getStart(g),"export ")},u.prototype.insertNodeInListAfter=function(g,F,te,ue){if(ue===void 0&&(ue=e.formatting.SmartIndenter.getContainingList(F,g)),!ue){e.Debug.fail("node is not a list element");return}var X=e.indexOfNode(ue,F);if(!(X<0)){var j=F.getEnd();if(X!==ue.length-1){var Se=e.getTokenAtPosition(g,F.end);if(Se&&B(F,Se)){var Ce=ue[X+1],O=h(g.text,Ce.getFullStart()),Q="".concat(e.tokenToString(Se.kind)).concat(g.text.substring(Se.end,O));this.insertNodesAt(g,O,[te],{suffix:Q})}}else{var V=F.getStart(g),z=e.getLineStartPositionForPosition(V,g),Te=void 0,ge=!1;if(ue.length===1)Te=27;else{var ke=e.findPrecedingToken(F.pos,g);Te=B(F,ke)?ke.kind:27;var Me=e.getLineStartPositionForPosition(ue[X-1].getStart(g),g);ge=Me!==z}if(v(g.text,F.end)&&(ge=!0),ge){this.replaceRange(g,e.createRange(j),e.factory.createToken(Te));for(var Ie=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(z,V,g,this.formatContext.options),Ge=e.skipTrivia(g.text,j,!0,!1);Ge!==j&&e.isLineBreak(g.text.charCodeAt(Ge-1));)Ge--;this.replaceRange(g,e.createRange(Ge),te,{indentation:Ie,prefix:this.newLineCharacter})}else this.replaceRange(g,e.createRange(j),te,{prefix:"".concat(e.tokenToString(Te)," ")})}}},u.prototype.parenthesizeExpression=function(g,F){this.replaceRange(g,e.rangeOfNode(F),e.factory.createParenthesizedExpression(F))},u.prototype.finishClassesWithNodesInsertedAtStart=function(){var g=this;this.classesWithNodesInsertedAtStart.forEach(function(F){var te=F.node,ue=F.sourceFile,X=x(te,ue),j=X[0],Se=X[1];if(j!==void 0&&Se!==void 0){var Ce=w(te).length===0,O=e.positionsAreOnSameLine(j,Se,ue);Ce&&O&&j!==Se-1&&g.deleteRange(ue,e.createRange(j,Se-1)),O&&g.insertText(ue,Se-1,g.newLineCharacter)}})},u.prototype.finishDeleteDeclarations=function(){for(var g=this,F=new e.Set,te=function(Q,V){ue.deletedNodes.some(function(z){return z.sourceFile===Q&&e.rangeContainsRangeExclusive(z.node,V)})||(e.isArray(V)?ue.deleteRange(Q,e.rangeOfTypeParameters(Q,V)):D.deleteDeclaration(ue,F,Q,V))},ue=this,X=0,j=this.deletedNodes;X<j.length;X++){var Se=j[X],Ce=Se.sourceFile,O=Se.node;te(Ce,O)}F.forEach(function(Q){var V=Q.getSourceFile(),z=e.formatting.SmartIndenter.getContainingList(Q,V);if(Q===e.last(z)){var Te=e.findLastIndex(z,function(ge){return!F.has(ge)},z.length-2);Te!==-1&&g.deleteRange(V,{pos:z[Te].end,end:M(V,z[Te+1])})}})},u.prototype.getChanges=function(g){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var F=Z.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,g),te=0,ue=this.newFiles;te<ue.length;te++){var X=ue[te],j=X.oldFile,Se=X.fileName,Ce=X.statements;F.push(Z.newFileChanges(j,Se,Ce,this.newLineCharacter,this.formatContext))}return F},u.prototype.createNewFile=function(g,F,te){this.newFiles.push({oldFile:g,fileName:F,statements:te})},u}();n.ChangeTracker=k;function M(u,g){return e.skipTrivia(u.text,b(u,g,{leadingTriviaOption:N.IncludeAll}),!1,!0)}function x(u,g){var F=e.findChildOfKind(u,18,g),te=e.findChildOfKind(u,19,g);return[F==null?void 0:F.end,te==null?void 0:te.end]}function w(u){return e.isObjectLiteralExpression(u)?u.properties:u.members}function K(u,g,F,te){return Z.newFileChangesWorker(void 0,g,u,F,te)}n.getNewFileText=K;var Z;(function(u){function g(Ce,O,Q,V){return e.mapDefined(e.group(Ce,function(z){return z.sourceFile.path}),function(z){for(var Te=z[0].sourceFile,ge=e.stableSort(z,function(Ge,he){return Ge.range.pos-he.range.pos||Ge.range.end-he.range.end}),ke=function(Ge){e.Debug.assert(ge[Ge].range.end<=ge[Ge+1].range.pos,"Changes overlap",function(){return"".concat(JSON.stringify(ge[Ge].range)," and ").concat(JSON.stringify(ge[Ge+1].range))})},Me=0;Me<ge.length-1;Me++)ke(Me);var Ie=e.mapDefined(ge,function(Ge){var he=e.createTextSpanFromRange(Ge.range),ve=ue(Ge,Te,O,Q,V);if(!(he.length===ve.length&&e.stringContainsAt(Te.text,ve,he.start)))return e.createTextChange(he,ve)});return Ie.length>0?{fileName:Te.fileName,textChanges:Ie}:void 0})}u.getTextChangesFromChanges=g;function F(Ce,O,Q,V,z){var Te=te(Ce,e.getScriptKindFromFileName(O),Q,V,z);return{fileName:O,textChanges:[e.createTextChange(e.createTextSpan(0,0),Te)],isNewFile:!0}}u.newFileChanges=F;function te(Ce,O,Q,V,z){var Te=Q.map(function(Me){return Me===4?"":Se(Me,Ce,V).text}).join(V),ge=e.createSourceFile("any file name",Te,99,!0,O),ke=e.formatting.formatDocument(ge,z);return ne(Te,ke)+V}u.newFileChangesWorker=te;function ue(Ce,O,Q,V,z){var Te;if(Ce.kind===q.Remove)return"";if(Ce.kind===q.Text)return Ce.text;var ge=Ce.options,ke=ge===void 0?{}:ge,Me=Ce.range.pos,Ie=function(ve){return j(ve,O,Me,ke,Q,V,z)},Ge=Ce.kind===q.ReplaceWithMultipleNodes?Ce.nodes.map(function(ve){return e.removeSuffix(Ie(ve),Q)}).join(((Te=Ce.options)===null||Te===void 0?void 0:Te.joiner)||Q):Ie(Ce.node),he=ke.preserveLeadingWhitespace||ke.indentation!==void 0||e.getLineStartPositionForPosition(Me,O)===Me?Ge:Ge.replace(/^\s+/,"");return(ke.prefix||"")+he+(!ke.suffix||e.endsWith(he,ke.suffix)?"":ke.suffix)}function X(Ce,O){var Q=Ce.options,V=!Q.semicolons||Q.semicolons===e.SemicolonPreference.Ignore,z=Q.semicolons===e.SemicolonPreference.Remove||V&&!e.probablyUsesSemicolons(O);return Rn(Rn({},Q),{semicolons:z?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}function j(Ce,O,Q,V,z,Te,ge){var ke=V.indentation,Me=V.prefix,Ie=V.delta,Ge=Se(Ce,O,z),he=Ge.node,ve=Ge.text;ge&&ge(he,ve);var Ve=X(Te,O),_e=ke!==void 0?ke:e.formatting.SmartIndenter.getIndentation(Q,O,Ve,Me===z||e.getLineStartPositionForPosition(Q,O)===Q);Ie===void 0&&(Ie=e.formatting.SmartIndenter.shouldIndentChildNode(Ve,Ce)&&Ve.indentSize||0);var Le={text:ve,getLineAndCharacterOfPosition:function(Xe){return e.getLineAndCharacterOfPosition(this,Xe)}},qe=e.formatting.formatNodeGivenIndentation(he,Le,O.languageVariant,_e,Ie,Rn(Rn({},Te),{options:Ve}));return ne(ve,qe)}function Se(Ce,O,Q){var V=$(Q),z=e.getNewLineKind(Q);return e.createPrinter({newLine:z,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},V).writeNode(4,Ce,O,V),{text:V.getText(),node:Y(Ce)}}u.getNonformattedText=Se})(Z||(Z={}));function ne(u,g){for(var F=g.length-1;F>=0;F--){var te=g[F],ue=te.span,X=te.newText;u="".concat(u.substring(0,ue.start)).concat(X).concat(u.substring(e.textSpanEnd(ue)))}return u}n.applyChanges=ne;function R(u){return e.skipTrivia(u,0)===u.length}function Y(u){var g=e.visitEachChild(u,Y,e.nullTransformationContext,U,Y),F=e.nodeIsSynthesized(g)?g:Object.create(g);return e.setTextRangePosEnd(F,f(u),a(u)),F}function U(u,g,F,te,ue){var X=e.visitNodes(u,g,F,te,ue);if(!X)return X;var j=X===u?e.factory.createNodeArray(X.slice(0)):X;return e.setTextRangePosEnd(j,f(u),a(u)),j}function $(u){var g=0,F=e.createTextWriter(u),te=function(Or){Or&&d(Or,g)},ue=function(Or){Or&&p(Or,g)},X=function(Or){Or&&d(Or,g)},j=function(Or){Or&&p(Or,g)},Se=function(Or){Or&&d(Or,g)},Ce=function(Or){Or&&p(Or,g)};function O(Or,Ke){if(Ke||!R(Or)){g=F.getTextPos();for(var Pe=0;e.isWhiteSpaceLike(Or.charCodeAt(Or.length-Pe-1));)Pe++;g-=Pe}}function Q(Or){F.write(Or),O(Or,!1)}function V(Or){F.writeComment(Or)}function z(Or){F.writeKeyword(Or),O(Or,!1)}function Te(Or){F.writeOperator(Or),O(Or,!1)}function ge(Or){F.writePunctuation(Or),O(Or,!1)}function ke(Or){F.writeTrailingSemicolon(Or),O(Or,!1)}function Me(Or){F.writeParameter(Or),O(Or,!1)}function Ie(Or){F.writeProperty(Or),O(Or,!1)}function Ge(Or){F.writeSpace(Or),O(Or,!1)}function he(Or){F.writeStringLiteral(Or),O(Or,!1)}function ve(Or,Ke){F.writeSymbol(Or,Ke),O(Or,!1)}function Ve(Or){F.writeLine(Or)}function _e(){F.increaseIndent()}function Le(){F.decreaseIndent()}function qe(){return F.getText()}function Xe(Or){F.rawWrite(Or),O(Or,!1)}function De(Or){F.writeLiteral(Or),O(Or,!0)}function Ae(){return F.getTextPos()}function Ye(){return F.getLine()}function Lr(){return F.getColumn()}function Er(){return F.getIndent()}function lr(){return F.isAtStartOfLine()}function Cr(){F.clear(),g=0}return{onBeforeEmitNode:te,onAfterEmitNode:ue,onBeforeEmitNodeArray:X,onAfterEmitNodeArray:j,onBeforeEmitToken:Se,onAfterEmitToken:Ce,write:Q,writeComment:V,writeKeyword:z,writeOperator:Te,writePunctuation:ge,writeTrailingSemicolon:ke,writeParameter:Me,writeProperty:Ie,writeSpace:Ge,writeStringLiteral:he,writeSymbol:ve,writeLine:Ve,increaseIndent:_e,decreaseIndent:Le,getText:qe,rawWrite:Xe,writeLiteral:De,getTextPos:Ae,getLine:Ye,getColumn:Lr,getIndent:Er,isAtStartOfLine:lr,hasTrailingComment:function(){return F.hasTrailingComment()},hasTrailingWhitespace:function(){return F.hasTrailingWhitespace()},clear:Cr}}function T(u){for(var g,F=0,te=u.statements;F<te.length;F++){var ue=te[F];if(e.isPrologueDirective(ue))g=ue;else break}var X=0,j=u.text;if(g)return X=g.end,Ie(),X;var Se=e.getShebang(j);Se!==void 0&&(X=Se.length,Ie());var Ce=e.getLeadingCommentRanges(j,X);if(!Ce)return X;for(var O,Q,V=0,z=Ce;V<z.length;V++){var Te=z[V];if(Te.kind===3){if(e.isPinnedComment(j,Te.pos)){O={range:Te,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(j,Te.pos,Te.end)){O={range:Te,pinnedOrTripleSlash:!0};continue}if(O){if(O.pinnedOrTripleSlash)break;var ge=u.getLineAndCharacterOfPosition(Te.pos).line,ke=u.getLineAndCharacterOfPosition(O.range.end).line;if(ge>=ke+2)break}if(u.statements.length){Q===void 0&&(Q=u.getLineAndCharacterOfPosition(u.statements[0].getStart()).line);var Me=u.getLineAndCharacterOfPosition(Te.end).line;if(Q<Me+2)break}O={range:Te,pinnedOrTripleSlash:!1}}return O&&(X=O.range.end,Ie()),X;function Ie(){if(X<j.length){var Ge=j.charCodeAt(X);e.isLineBreak(Ge)&&(X++,X<j.length&&Ge===13&&j.charCodeAt(X)===10&&X++)}}}function I(u,g){return!e.isInComment(u,g)&&!e.isInString(u,g)&&!e.isInTemplateString(u,g)&&!e.isInJSXText(u,g)}n.isValidLocationToAddComment=I;function y(u,g){return(e.isPropertySignature(u)||e.isPropertyDeclaration(u))&&e.isClassOrTypeElement(g)&&g.name.kind===161||e.isStatementButNotDeclaration(u)&&e.isStatementButNotDeclaration(g)}var D;(function(u){function g(X,j,Se,Ce){switch(Ce.kind){case 163:{var O=Ce.parent;e.isArrowFunction(O)&&O.parameters.length===1&&!e.findChildOfKind(O,20,Se)?X.replaceNodeWithText(Se,Ce,"()"):m(X,j,Se,Ce);break}case 265:case 264:var Q=Se.imports.length&&Ce===e.first(Se.imports).parent||Ce===e.find(Se.statements,e.isAnyImportSyntax);C(X,Se,Ce,{leadingTriviaOption:Q?N.Exclude:e.hasJSDocNodes(Ce)?N.JSDoc:N.StartLine});break;case 202:var V=Ce.parent,z=V.kind===201&&Ce!==e.last(V.elements);z?C(X,Se,Ce):m(X,j,Se,Ce);break;case 253:ue(X,j,Se,Ce);break;case 162:m(X,j,Se,Ce);break;case 269:var Te=Ce.parent;Te.elements.length===1?te(X,Se,Te):m(X,j,Se,Ce);break;case 267:te(X,Se,Ce);break;case 26:C(X,Se,Ce,{trailingTriviaOption:H.Exclude});break;case 98:C(X,Se,Ce,{leadingTriviaOption:N.Exclude});break;case 256:case 255:C(X,Se,Ce,{leadingTriviaOption:e.hasJSDocNodes(Ce)?N.JSDoc:N.StartLine});break;default:Ce.parent?e.isImportClause(Ce.parent)&&Ce.parent.name===Ce?F(X,Se,Ce.parent):e.isCallExpression(Ce.parent)&&e.contains(Ce.parent.arguments,Ce)?m(X,j,Se,Ce):C(X,Se,Ce):C(X,Se,Ce)}}u.deleteDeclaration=g;function F(X,j,Se){if(!Se.namedBindings)C(X,j,Se.parent);else{var Ce=Se.name.getStart(j),O=e.getTokenAtPosition(j,Se.name.end);if(O&&O.kind===27){var Q=e.skipTrivia(j.text,O.end,!1,!0);X.deleteRange(j,{pos:Ce,end:Q})}else C(X,j,Se.name)}}function te(X,j,Se){if(Se.parent.name){var Ce=e.Debug.checkDefined(e.getTokenAtPosition(j,Se.pos-1));X.deleteRange(j,{pos:Ce.getStart(j),end:Se.end})}else{var O=e.getAncestor(Se,265);C(X,j,O)}}function ue(X,j,Se,Ce){var O=Ce.parent;if(O.kind===291){X.deleteNodeRange(Se,e.findChildOfKind(O,20,Se),e.findChildOfKind(O,21,Se));return}if(O.declarations.length!==1){m(X,j,Se,Ce);return}var Q=O.parent;switch(Q.kind){case 243:case 242:X.replaceNode(Se,Ce,e.factory.createObjectLiteralExpression());break;case 241:C(X,Se,O);break;case 236:C(X,Se,Q,{leadingTriviaOption:e.hasJSDocNodes(Q)?N.JSDoc:N.StartLine});break;default:e.Debug.assertNever(Q)}}})(D||(D={}));function C(u,g,F,te){te===void 0&&(te={leadingTriviaOption:N.IncludeAll});var ue=b(g,F,te),X=S(g,F,te);u.deleteRange(g,{pos:ue,end:X})}n.deleteNode=C;function m(u,g,F,te){var ue=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(te,F)),X=e.indexOfNode(ue,te);if(e.Debug.assert(X!==-1),ue.length===1){C(u,F,te);return}e.Debug.assert(!g.has(te),"Deleting a node twice"),g.add(te),u.deleteRange(F,{pos:M(F,te),end:X===ue.length-1?S(F,te,{}):M(F,ue[X+1])})}})(e.textChanges||(e.textChanges={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f=e.createMultiMap(),d=new e.Map;function a(k,M,x){return H(k,e.diagnosticToString(x),M,void 0,void 0)}n.createCodeFixActionWithoutFixAll=a;function p(k,M,x,w,K,Z){return H(k,e.diagnosticToString(x),M,w,e.diagnosticToString(K),Z)}n.createCodeFixAction=p;function N(k,M,x,w,K,Z){return H(k,e.diagnosticToString(x),M,w,K&&e.diagnosticToString(K),Z)}n.createCodeFixActionMaybeFixAll=N;function H(k,M,x,w,K,Z){return{fixName:k,description:M,changes:x,fixId:w,fixAllDescription:K,commands:Z?[Z]:void 0}}function h(k){for(var M=0,x=k.errorCodes;M<x.length;M++){var w=x[M];f.add(String(w),k)}if(k.fixIds)for(var K=0,Z=k.fixIds;K<Z.length;K++){var ne=Z[K];e.Debug.assert(!d.has(ne)),d.set(ne,k)}}n.registerCodeFix=h;function v(){return e.arrayFrom(f.keys())}n.getSupportedErrorCodes=v;function A(k,M){for(var x=k.errorCodes,w=0,K=0,Z=M;K<Z.length;K++){var ne=Z[K];if(e.contains(x,ne.code)&&w++,w>1)break}var R=w<2;return function(Y){var U=Y.fixId,$=Y.fixAllDescription,T=uD(Y,["fixId","fixAllDescription"]);return R?T:Rn(Rn({},T),{fixId:U,fixAllDescription:$})}}function q(k){var M=J(k),x=f.get(String(k.errorCode));return e.flatMap(x,function(w){return e.map(w.getCodeActions(k),A(w,M))})}n.getFixes=q;function ie(k){return d.get(e.cast(k.fixId,e.isString)).getAllCodeActions(k)}n.getAllFixes=ie;function b(k,M){return{changes:k,commands:M}}n.createCombinedCodeActions=b;function P(k,M){return{fileName:k,textChanges:M}}n.createFileTextChanges=P;function S(k,M,x){var w=[],K=e.textChanges.ChangeTracker.with(k,function(Z){return B(k,M,function(ne){return x(Z,ne,w)})});return b(K,w.length===0?void 0:w)}n.codeFixAll=S;function B(k,M,x){for(var w=0,K=J(k);w<K.length;w++){var Z=K[w];e.contains(M,Z.code)&&x(Z)}}n.eachDiagnostic=B;function J(k){var M=k.program,x=k.sourceFile,w=k.cancellationToken;return Gt(Gt(Gt([],M.getSemanticDiagnostics(x,w),!0),M.getSyntacticDiagnostics(x,w),!0),e.computeSuggestionDiagnostics(x,M,w),!0)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f=new e.Map;function d(N,H){f.set(N,H)}n.registerRefactor=d;function a(N){return e.arrayFrom(e.flatMapIterator(f.values(),function(H){var h;return N.cancellationToken&&N.cancellationToken.isCancellationRequested()||!(!((h=H.kinds)===null||h===void 0)&&h.some(function(v){return n.refactorKindBeginsWith(v,N.kind)}))?void 0:H.getAvailableActions(N)}))}n.getApplicableRefactors=a;function p(N,H,h){var v=f.get(H);return v&&v.getEditsForAction(N,h)}n.getEditsForRefactor=p})(e.refactor||(e.refactor={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="addConvertToUnknownForNonOverlappingTypes",d=[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];n.registerCodeFix({errorCodes:d,getCodeActions:function(p){var N=e.textChanges.ChangeTracker.with(p,function(H){return a(H,p.sourceFile,p.span.start)});return[n.createCodeFixAction(f,N,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,f,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[f],getAllCodeActions:function(p){return n.codeFixAll(p,d,function(N,H){return a(N,H.file,H.start)})}});function a(p,N,H){var h=e.getTokenAtPosition(N,H),v=e.Debug.checkDefined(e.findAncestor(h,function(q){return e.isAsExpression(q)||e.isTypeAssertionExpression(q)}),"Expected to find an assertion expression"),A=e.isAsExpression(v)?e.factory.createAsExpression(v.expression,e.factory.createKeywordTypeNode(154)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(154),v.expression);p.replaceNode(N,v.expression,A)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){n.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(f){var d=f.sourceFile,a=e.textChanges.ChangeTracker.with(f,function(p){var N=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);p.insertNodeAtEndOfScope(d,d,N)});return[n.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",a,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="addMissingAsync",d=[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];n.registerCodeFix({fixIds:[f],errorCodes:d,getCodeActions:function(h){var v=h.sourceFile,A=h.errorCode,q=h.cancellationToken,ie=h.program,b=h.span,P=e.find(ie.getDiagnosticsProducingTypeChecker().getDiagnostics(v,q),H(b,A)),S=P&&P.relatedInformation&&e.find(P.relatedInformation,function(k){return k.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),B=N(v,S);if(!!B){var J=function(k){return e.textChanges.ChangeTracker.with(h,k)};return[a(h,B,J)]}},getAllCodeActions:function(h){var v=h.sourceFile,A=new e.Set;return n.codeFixAll(h,d,function(q,ie){var b=ie.relatedInformation&&e.find(ie.relatedInformation,function(B){return B.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),P=N(v,b);if(!!P){var S=function(B){return B(q),[]};return a(h,P,S,A)}})}});function a(h,v,A,q){var ie=A(function(b){return p(b,h.sourceFile,v,q)});return n.createCodeFixAction(f,ie,e.Diagnostics.Add_async_modifier_to_containing_function,f,e.Diagnostics.Add_all_missing_async_modifiers)}function p(h,v,A,q){if(!(q&&q.has(e.getNodeId(A)))){q==null||q.add(e.getNodeId(A));var ie=e.factory.updateModifiers(e.getSynthesizedDeepClone(A,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(e.getSyntacticModifierFlags(A)|256)));h.replaceNode(v,A,ie)}}function N(h,v){if(!!v){var A=e.getTokenAtPosition(h,v.start),q=e.findAncestor(A,function(ie){return ie.getStart(h)<v.start||ie.getEnd()>e.textSpanEnd(v)?"quit":(e.isArrowFunction(ie)||e.isMethodDeclaration(ie)||e.isFunctionExpression(ie)||e.isFunctionDeclaration(ie))&&e.textSpansEqual(v,e.createTextSpanFromNode(ie,h))});return q}}function H(h,v){return function(A){var q=A.start,ie=A.length,b=A.relatedInformation,P=A.code;return e.isNumber(q)&&e.isNumber(ie)&&e.textSpansEqual({start:q,length:ie},h)&&P===v&&!!b&&e.some(b,function(S){return S.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})}}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="addMissingAwait",d=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,a=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],p=Gt([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,d],a,!0);n.registerCodeFix({fixIds:[f],errorCodes:p,getCodeActions:function(B){var J=B.sourceFile,k=B.errorCode,M=B.span,x=B.cancellationToken,w=B.program,K=N(J,k,M,x,w);if(!!K){var Z=B.program.getTypeChecker(),ne=function(R){return e.textChanges.ChangeTracker.with(B,R)};return e.compact([H(B,K,k,Z,ne),h(B,K,k,Z,ne)])}},getAllCodeActions:function(B){var J=B.sourceFile,k=B.program,M=B.cancellationToken,x=B.program.getTypeChecker(),w=new e.Set;return n.codeFixAll(B,p,function(K,Z){var ne=N(J,Z.code,Z,M,k);if(!!ne){var R=function(Y){return Y(K),[]};return H(B,ne,Z.code,x,R,w)||h(B,ne,Z.code,x,R,w)}})}});function N(B,J,k,M,x){var w=e.getFixableErrorSpanExpression(B,k);return w&&v(B,J,k,M,x)&&b(w)?w:void 0}function H(B,J,k,M,x,w){var K=B.sourceFile,Z=B.program,ne=B.cancellationToken,R=A(J,K,ne,Z,M);if(R){var Y=x(function(U){e.forEach(R.initializers,function($){var T=$.expression;return P(U,k,K,M,T,w)}),w&&R.needsSecondPassForFixAll&&P(U,k,K,M,J,w)});return n.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",Y,R.initializers.length===1?[e.Diagnostics.Add_await_to_initializer_for_0,R.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function h(B,J,k,M,x,w){var K=x(function(Z){return P(Z,k,B.sourceFile,M,J,w)});return n.createCodeFixAction(f,K,e.Diagnostics.Add_await,f,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function v(B,J,k,M,x){var w=x.getDiagnosticsProducingTypeChecker(),K=w.getDiagnostics(B,M);return e.some(K,function(Z){var ne=Z.start,R=Z.length,Y=Z.relatedInformation,U=Z.code;return e.isNumber(ne)&&e.isNumber(R)&&e.textSpansEqual({start:ne,length:R},k)&&U===J&&!!Y&&e.some(Y,function($){return $.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}function A(B,J,k,M,x){var w=q(B,x);if(!!w){for(var K=w.isCompleteFix,Z,ne=function($){var T=x.getSymbolAtLocation($);if(!T)return"continue";var I=e.tryCast(T.valueDeclaration,e.isVariableDeclaration),y=I&&e.tryCast(I.name,e.isIdentifier),D=e.getAncestor(I,236);if(!I||!D||I.type||!I.initializer||D.getSourceFile()!==J||e.hasSyntacticModifier(D,1)||!y||!b(I.initializer))return K=!1,"continue";var C=M.getSemanticDiagnostics(J,k),m=e.FindAllReferences.Core.eachSymbolReferenceInFile(y,x,J,function(u){return $!==u&&!ie(u,C,J,x)});if(m)return K=!1,"continue";(Z||(Z=[])).push({expression:I.initializer,declarationSymbol:T})},R=0,Y=w.identifiers;R<Y.length;R++){var U=Y[R];ne(U)}return Z&&{initializers:Z,needsSecondPassForFixAll:!K}}}function q(B,J){if(e.isPropertyAccessExpression(B.parent)&&e.isIdentifier(B.parent.expression))return{identifiers:[B.parent.expression],isCompleteFix:!0};if(e.isIdentifier(B))return{identifiers:[B],isCompleteFix:!0};if(e.isBinaryExpression(B)){for(var k=void 0,M=!0,x=0,w=[B.left,B.right];x<w.length;x++){var K=w[x],Z=J.getTypeAtLocation(K);if(J.getPromisedTypeOfPromise(Z)){if(!e.isIdentifier(K)){M=!1;continue}(k||(k=[])).push(K)}}return k&&{identifiers:k,isCompleteFix:M}}}function ie(B,J,k,M){var x=e.isPropertyAccessExpression(B.parent)?B.parent.name:e.isBinaryExpression(B.parent)?B.parent:B,w=e.find(J,function(K){return K.start===x.getStart(k)&&K.start+K.length===x.getEnd()});return w&&e.contains(p,w.code)||M.getTypeAtLocation(x).flags&1}function b(B){return B.kind&32768||!!e.findAncestor(B,function(J){return J.parent&&e.isArrowFunction(J.parent)&&J.parent.body===J||e.isBlock(J)&&(J.parent.kind===255||J.parent.kind===212||J.parent.kind===213||J.parent.kind===168)})}function P(B,J,k,M,x,w){if(e.isBinaryExpression(x))for(var K=0,Z=[x.left,x.right];K<Z.length;K++){var ne=Z[K];if(w&&e.isIdentifier(ne)){var R=M.getSymbolAtLocation(ne);if(R&&w.has(e.getSymbolId(R)))continue}var Y=M.getTypeAtLocation(ne),U=M.getPromisedTypeOfPromise(Y)?e.factory.createAwaitExpression(ne):ne;B.replaceNode(k,ne,U)}else if(J===d&&e.isPropertyAccessExpression(x.parent)){if(w&&e.isIdentifier(x.parent.expression)){var R=M.getSymbolAtLocation(x.parent.expression);if(R&&w.has(e.getSymbolId(R)))return}B.replaceNode(k,x.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(x.parent.expression))),S(B,x.parent.expression,k)}else if(e.contains(a,J)&&e.isCallOrNewExpression(x.parent)){if(w&&e.isIdentifier(x)){var R=M.getSymbolAtLocation(x);if(R&&w.has(e.getSymbolId(R)))return}B.replaceNode(k,x,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(x))),S(B,x,k)}else{if(w&&e.isVariableDeclaration(x.parent)&&e.isIdentifier(x.parent.name)){var R=M.getSymbolAtLocation(x.parent.name);if(R&&!e.tryAddToSet(w,e.getSymbolId(R)))return}B.replaceNode(k,x,e.factory.createAwaitExpression(x))}}function S(B,J,k){var M=e.findPrecedingToken(J.pos,k);M&&e.positionIsASICandidate(M.end,M.parent,k)&&B.insertText(k,J.getStart(k),";")}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="addMissingConst",d=[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];n.registerCodeFix({errorCodes:d,getCodeActions:function(A){var q=e.textChanges.ChangeTracker.with(A,function(ie){return a(ie,A.sourceFile,A.span.start,A.program)});if(q.length>0)return[n.createCodeFixAction(f,q,e.Diagnostics.Add_const_to_unresolved_variable,f,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[f],getAllCodeActions:function(A){var q=new e.Set;return n.codeFixAll(A,d,function(ie,b){return a(ie,b.file,b.start,A.program,q)})}});function a(A,q,ie,b,P){var S=e.getTokenAtPosition(q,ie),B=e.findAncestor(S,function(w){return e.isForInOrOfStatement(w.parent)?w.parent.initializer===w:N(w)?!1:"quit"});if(B)return p(A,B,q,P);var J=S.parent;if(e.isBinaryExpression(J)&&J.operatorToken.kind===63&&e.isExpressionStatement(J.parent))return p(A,S,q,P);if(e.isArrayLiteralExpression(J)){var k=b.getTypeChecker();return e.every(J.elements,function(w){return H(w,k)})?p(A,J,q,P):void 0}var M=e.findAncestor(S,function(w){return e.isExpressionStatement(w.parent)?!0:h(w)?!1:"quit"});if(M){var x=b.getTypeChecker();return v(M,x)?p(A,M,q,P):void 0}}function p(A,q,ie,b){(!b||e.tryAddToSet(b,q))&&A.insertModifierBefore(ie,85,q)}function N(A){switch(A.kind){case 79:case 203:case 204:case 294:case 295:return!0;default:return!1}}function H(A,q){var ie=e.isIdentifier(A)?A:e.isAssignmentExpression(A,!0)&&e.isIdentifier(A.left)?A.left:void 0;return!!ie&&!q.getSymbolAtLocation(ie)}function h(A){switch(A.kind){case 79:case 220:case 27:return!0;default:return!1}}function v(A,q){return e.isBinaryExpression(A)?A.operatorToken.kind===27?e.every([A.left,A.right],function(ie){return v(ie,q)}):A.operatorToken.kind===63&&e.isIdentifier(A.left)&&!q.getSymbolAtLocation(A.left):!1}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="addMissingDeclareProperty",d=[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];n.registerCodeFix({errorCodes:d,getCodeActions:function(p){var N=e.textChanges.ChangeTracker.with(p,function(H){return a(H,p.sourceFile,p.span.start)});if(N.length>0)return[n.createCodeFixAction(f,N,e.Diagnostics.Prefix_with_declare,f,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[f],getAllCodeActions:function(p){var N=new e.Set;return n.codeFixAll(p,d,function(H,h){return a(H,h.file,h.start,N)})}});function a(p,N,H,h){var v=e.getTokenAtPosition(N,H);if(!!e.isIdentifier(v)){var A=v.parent;A.kind===166&&(!h||e.tryAddToSet(h,A))&&p.insertModifierBefore(N,135,A)}}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="addMissingInvocationForDecorator",d=[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];n.registerCodeFix({errorCodes:d,getCodeActions:function(p){var N=e.textChanges.ChangeTracker.with(p,function(H){return a(H,p.sourceFile,p.span.start)});return[n.createCodeFixAction(f,N,e.Diagnostics.Call_decorator_expression,f,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[f],getAllCodeActions:function(p){return n.codeFixAll(p,d,function(N,H){return a(N,H.file,H.start)})}});function a(p,N,H){var h=e.getTokenAtPosition(N,H),v=e.findAncestor(h,e.isDecorator);e.Debug.assert(!!v,"Expected position to be owned by a decorator.");var A=e.factory.createCallExpression(v.expression,void 0,void 0);p.replaceNode(N,v.expression,A)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="addNameToNamelessParameter",d=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(p){var N=e.textChanges.ChangeTracker.with(p,function(H){return a(H,p.sourceFile,p.span.start)});return[n.createCodeFixAction(f,N,e.Diagnostics.Add_parameter_name,f,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[f],getAllCodeActions:function(p){return n.codeFixAll(p,d,function(N,H){return a(N,H.file,H.start)})}});function a(p,N,H){var h=e.getTokenAtPosition(N,H),v=h.parent;if(!e.isParameter(v))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(h.kind));var A=v.parent.parameters.indexOf(v);e.Debug.assert(!v.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(A>-1,"Parameter not found in parent parameter list.");var q=e.factory.createTypeReferenceNode(v.name,void 0),ie=e.factory.createParameterDeclaration(void 0,v.modifiers,v.dotDotDotToken,"arg"+A,v.questionToken,v.dotDotDotToken?e.factory.createArrayTypeNode(q):q,v.initializer);p.replaceNode(N,v,ie)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="addOptionalPropertyUndefined",d=[e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(h){var v=h.program.getTypeChecker(),A=a(h.sourceFile,h.span,v);if(!!A.length){var q=e.textChanges.ChangeTracker.with(h,function(ie){return H(ie,A)});return[n.createCodeFixActionWithoutFixAll(f,q,e.Diagnostics.Add_undefined_to_optional_property_type)]}},fixIds:[f]});function a(h,v,A){var q,ie,b=N(e.getFixableErrorSpanExpression(h,v),A);if(!b)return e.emptyArray;var P=b.source,S=b.target,B=p(P,S,A)?A.getTypeAtLocation(S.expression):A.getTypeAtLocation(S);return!((ie=(q=B.symbol)===null||q===void 0?void 0:q.declarations)===null||ie===void 0)&&ie.some(function(J){return e.getSourceFileOfNode(J).fileName.match(/\.d\.ts$/)})?e.emptyArray:A.getExactOptionalProperties(B)}function p(h,v,A){return e.isPropertyAccessExpression(v)&&!!A.getExactOptionalProperties(A.getTypeAtLocation(v.expression)).length&&A.getTypeAtLocation(h)===A.getUndefinedType()}function N(h,v){var A;if(h){if(e.isBinaryExpression(h.parent)&&h.parent.operatorToken.kind===63)return{source:h.parent.right,target:h.parent.left};if(e.isVariableDeclaration(h.parent)&&h.parent.initializer)return{source:h.parent.initializer,target:h.parent.name};if(e.isCallExpression(h.parent)){var q=v.getSymbolAtLocation(h.parent.expression);if(!(q!=null&&q.valueDeclaration)||!e.isFunctionLikeKind(q.valueDeclaration.kind)||!e.isExpression(h))return;var ie=h.parent.arguments.indexOf(h);if(ie===-1)return;var b=q.valueDeclaration.parameters[ie].name;if(e.isIdentifier(b))return{source:h,target:b}}else if(e.isPropertyAssignment(h.parent)&&e.isIdentifier(h.parent.name)||e.isShorthandPropertyAssignment(h.parent)){var P=N(h.parent.parent,v);if(!P)return;var S=v.getPropertyOfType(v.getTypeAtLocation(P.target),h.parent.name.text),B=(A=S==null?void 0:S.declarations)===null||A===void 0?void 0:A[0];return B?{source:e.isPropertyAssignment(h.parent)?h.parent.initializer:h.parent.name,target:B}:void 0}}else return}function H(h,v){for(var A=0,q=v;A<q.length;A++){var ie=q[A],b=ie.valueDeclaration;if(b&&(e.isPropertySignature(b)||e.isPropertyDeclaration(b))&&b.type){var P=e.factory.createUnionTypeNode(Gt(Gt([],b.type.kind===186?b.type.types:[b.type],!0),[e.factory.createTypeReferenceNode("undefined")],!1));h.replaceNode(b.getSourceFile(),b.type,P)}}}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="annotateWithTypeFromJSDoc",d=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(J){var k=a(J.sourceFile,J.span.start);if(!!k){var M=e.textChanges.ChangeTracker.with(J,function(x){return H(x,J.sourceFile,k)});return[n.createCodeFixAction(f,M,e.Diagnostics.Annotate_with_type_from_JSDoc,f,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[f],getAllCodeActions:function(J){return n.codeFixAll(J,d,function(k,M){var x=a(M.file,M.start);x&&H(k,M.file,x)})}});function a(J,k){var M=e.getTokenAtPosition(J,k);return e.tryCast(e.isParameter(M.parent)?M.parent.parent:M.parent,p)}function p(J){return h(J)&&N(J)}n.parameterShouldGetTypeFromJSDoc=p;function N(J){return e.isFunctionLikeDeclaration(J)?J.parameters.some(N)||!J.type&&!!e.getJSDocReturnType(J):!J.type&&!!e.getJSDocType(J)}function H(J,k,M){if(e.isFunctionLikeDeclaration(M)&&(e.getJSDocReturnType(M)||M.parameters.some(function($){return!!e.getJSDocType($)}))){if(!M.typeParameters){var x=e.getJSDocTypeParameterDeclarations(M);x.length&&J.insertTypeParameters(k,M,x)}var w=e.isArrowFunction(M)&&!e.findChildOfKind(M,20,k);w&&J.insertNodeBefore(k,e.first(M.parameters),e.factory.createToken(20));for(var K=0,Z=M.parameters;K<Z.length;K++){var ne=Z[K];if(!ne.type){var R=e.getJSDocType(ne);R&&J.tryInsertTypeAnnotation(k,ne,v(R))}}if(w&&J.insertNodeAfter(k,e.last(M.parameters),e.factory.createToken(21)),!M.type){var Y=e.getJSDocReturnType(M);Y&&J.tryInsertTypeAnnotation(k,M,v(Y))}}else{var U=e.Debug.checkDefined(e.getJSDocType(M),"A JSDocType for this declaration should exist");e.Debug.assert(!M.type,"The JSDocType decl should have a type"),J.tryInsertTypeAnnotation(k,M,v(U))}}function h(J){return e.isFunctionLikeDeclaration(J)||J.kind===253||J.kind===165||J.kind===166}function v(J){switch(J.kind){case 310:case 311:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 314:return A(J);case 313:return v(J.type);case 312:return q(J);case 316:return ie(J);case 315:return b(J);case 177:return S(J);default:var k=e.visitEachChild(J,v,e.nullTransformationContext);return e.setEmitFlags(k,1),k}}function A(J){return e.factory.createUnionTypeNode([e.visitNode(J.type,v),e.factory.createTypeReferenceNode("undefined",e.emptyArray)])}function q(J){return e.factory.createUnionTypeNode([e.visitNode(J.type,v),e.factory.createTypeReferenceNode("null",e.emptyArray)])}function ie(J){return e.factory.createArrayTypeNode(e.visitNode(J.type,v))}function b(J){var k;return e.factory.createFunctionTypeNode(e.emptyArray,J.parameters.map(P),(k=J.type)!==null&&k!==void 0?k:e.factory.createKeywordTypeNode(130))}function P(J){var k=J.parent.parameters.indexOf(J),M=J.type.kind===316&&k===J.parent.parameters.length-1,x=J.name||(M?"rest":"arg"+k),w=M?e.factory.createToken(25):J.dotDotDotToken;return e.factory.createParameterDeclaration(J.decorators,J.modifiers,w,x,J.questionToken,e.visitNode(J.type,v),J.initializer)}function S(J){var k=J.typeName,M=J.typeArguments;if(e.isIdentifier(J.typeName)){if(e.isJSDocIndexSignature(J))return B(J);var x=J.typeName.text;switch(J.typeName.text){case"String":case"Boolean":case"Object":case"Number":x=x.toLowerCase();break;case"array":case"date":case"promise":x=x[0].toUpperCase()+x.slice(1);break}k=e.factory.createIdentifier(x),(x==="Array"||x==="Promise")&&!J.typeArguments?M=e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)]):M=e.visitNodes(J.typeArguments,v)}return e.factory.createTypeReferenceNode(k,M)}function B(J){var k=e.factory.createParameterDeclaration(void 0,void 0,void 0,J.typeArguments[0].kind===146?"n":"s",void 0,e.factory.createTypeReferenceNode(J.typeArguments[0].kind===146?"number":"string",[]),void 0),M=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[k],J.typeArguments[1])]);return e.setEmitFlags(M,1),M}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="convertFunctionToEs6Class",d=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(h){var v=e.textChanges.ChangeTracker.with(h,function(A){return a(A,h.sourceFile,h.span.start,h.program.getTypeChecker(),h.preferences,h.program.getCompilerOptions())});return[n.createCodeFixAction(f,v,e.Diagnostics.Convert_function_to_an_ES2015_class,f,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[f],getAllCodeActions:function(h){return n.codeFixAll(h,d,function(v,A){return a(v,A.file,A.start,h.program.getTypeChecker(),h.preferences,h.program.getCompilerOptions())})}});function a(h,v,A,q,ie,b){var P=q.getSymbolAtLocation(e.getTokenAtPosition(v,A));if(!P||!P.valueDeclaration||!(P.flags&19))return;var S=P.valueDeclaration;if(e.isFunctionDeclaration(S))h.replaceNode(v,S,x(S));else if(e.isVariableDeclaration(S)){var B=M(S);if(!B)return;var J=S.parent.parent;e.isVariableDeclarationList(S.parent)&&S.parent.declarations.length>1?(h.delete(v,S),h.insertNodeAfter(v,J,B)):h.replaceNode(v,J,B)}function k(w){var K=[];return w.members&&w.members.forEach(function(R,Y){if(Y==="constructor"&&R.valueDeclaration){h.delete(v,R.valueDeclaration.parent);return}var U=ne(R,void 0);U&&K.push.apply(K,U)}),w.exports&&w.exports.forEach(function(R){if(R.name==="prototype"&&R.declarations){var Y=R.declarations[0];if(R.declarations.length===1&&e.isPropertyAccessExpression(Y)&&e.isBinaryExpression(Y.parent)&&Y.parent.operatorToken.kind===63&&e.isObjectLiteralExpression(Y.parent.right)){var U=Y.parent.right,$=ne(U.symbol,void 0);$&&K.push.apply(K,$)}}else{var $=ne(R,[e.factory.createToken(124)]);$&&K.push.apply(K,$)}}),K;function Z(R,Y){return e.isAccessExpression(R)?e.isPropertyAccessExpression(R)&&N(R)?!0:e.isFunctionLike(Y):e.every(R.properties,function(U){return!!(e.isMethodDeclaration(U)||e.isGetOrSetAccessorDeclaration(U)||e.isPropertyAssignment(U)&&e.isFunctionExpression(U.initializer)&&!!U.name||N(U))})}function ne(R,Y){var U=[];if(!(R.flags&8192)&&!(R.flags&4096))return U;var $=R.valueDeclaration,T=$.parent,I=T.right;if(!Z($,I))return U;var y=T.parent&&T.parent.kind===237?T.parent:T;if(h.delete(v,y),!I)return U.push(e.factory.createPropertyDeclaration([],Y,R.name,void 0,void 0,void 0)),U;if(e.isAccessExpression($)&&(e.isFunctionExpression(I)||e.isArrowFunction(I))){var D=e.getQuotePreference(v,ie),C=H($,b,D);return C?u(U,I,C):U}else{if(e.isObjectLiteralExpression(I))return e.flatMap(I.properties,function(te){return e.isMethodDeclaration(te)||e.isGetOrSetAccessorDeclaration(te)?U.concat(te):e.isPropertyAssignment(te)&&e.isFunctionExpression(te.initializer)?u(U,te.initializer,te.name):N(te)?U:[]});if(e.isSourceFileJS(v)||!e.isPropertyAccessExpression($))return U;var m=e.factory.createPropertyDeclaration(void 0,Y,$.name,void 0,void 0,I);return e.copyLeadingComments(T.parent,m,v),U.push(m),U}function u(te,ue,X){return e.isFunctionExpression(ue)?g(te,ue,X):F(te,ue,X)}function g(te,ue,X){var j=e.concatenate(Y,p(ue,131)),Se=e.factory.createMethodDeclaration(void 0,j,void 0,X,void 0,void 0,ue.parameters,void 0,ue.body);return e.copyLeadingComments(T,Se,v),te.concat(Se)}function F(te,ue,X){var j=ue.body,Se;j.kind===234?Se=j:Se=e.factory.createBlock([e.factory.createReturnStatement(j)]);var Ce=e.concatenate(Y,p(ue,131)),O=e.factory.createMethodDeclaration(void 0,Ce,void 0,X,void 0,void 0,ue.parameters,void 0,Se);return e.copyLeadingComments(T,O,v),te.concat(O)}}}function M(w){var K=w.initializer;if(!(!K||!e.isFunctionExpression(K)||!e.isIdentifier(w.name))){var Z=k(w.symbol);K.body&&Z.unshift(e.factory.createConstructorDeclaration(void 0,void 0,K.parameters,K.body));var ne=p(w.parent.parent,93),R=e.factory.createClassDeclaration(void 0,ne,w.name,void 0,void 0,Z);return R}}function x(w){var K=k(P);w.body&&K.unshift(e.factory.createConstructorDeclaration(void 0,void 0,w.parameters,w.body));var Z=p(w,93),ne=e.factory.createClassDeclaration(void 0,Z,w.name,void 0,void 0,K);return ne}}function p(h,v){return e.filter(h.modifiers,function(A){return A.kind===v})}function N(h){return h.name?!!(e.isIdentifier(h.name)&&h.name.text==="constructor"):!1}function H(h,v,A){if(e.isPropertyAccessExpression(h))return h.name;var q=h.argumentExpression;if(e.isNumericLiteral(q))return q;if(e.isStringLiteralLike(q))return e.isIdentifierText(q.text,e.getEmitScriptTarget(v))?e.factory.createIdentifier(q.text):e.isNoSubstitutionTemplateLiteral(q)?e.factory.createStringLiteral(q.text,A===0):q}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="convertToAsyncFunction",d=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],a=!0;n.registerCodeFix({errorCodes:d,getCodeActions:function(O){a=!0;var Q=e.textChanges.ChangeTracker.with(O,function(V){return N(V,O.sourceFile,O.span.start,O.program.getTypeChecker())});return a?[n.createCodeFixAction(f,Q,e.Diagnostics.Convert_to_async_function,f,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[f],getAllCodeActions:function(O){return n.codeFixAll(O,d,function(Q,V){return N(Q,V.file,V.start,O.program.getTypeChecker())})}});var p;(function(O){O[O.Identifier=0]="Identifier",O[O.BindingPattern=1]="BindingPattern"})(p||(p={}));function N(O,Q,V,z){var Te=e.getTokenAtPosition(Q,V),ge;if(e.isIdentifier(Te)&&e.isVariableDeclaration(Te.parent)&&Te.parent.initializer&&e.isFunctionLikeDeclaration(Te.parent.initializer)?ge=Te.parent.initializer:ge=e.tryCast(e.getContainingFunction(e.getTokenAtPosition(Q,V)),e.canBeConvertedToAsync),!!ge){var ke=new e.Map,Me=e.isInJSFile(ge),Ie=h(ge,z),Ge=b(ge,z,ke);if(!!e.returnsPromise(Ge,z)){var he=Ge.body&&e.isBlock(Ge.body)?H(Ge.body,z):e.emptyArray,ve={checker:z,synthNamesMap:ke,setOfExpressionsToReturn:Ie,isInJSFile:Me};if(!!he.length){var Ve=ge.modifiers?ge.modifiers.end:ge.decorators?e.skipTrivia(Q.text,ge.decorators.end):ge.getStart(Q),_e=ge.modifiers?{prefix:" "}:{suffix:" "};O.insertModifierAt(Q,Ve,131,_e);for(var Le=function(Ye){if(e.forEachChild(Ye,function Lr(Er){if(e.isCallExpression(Er)){var lr=J(Er,Er,ve,!1);if(S())return!0;O.replaceNodeWithNodes(Q,Ye,lr)}else if(!e.isFunctionLike(Er)&&(e.forEachChild(Er,Lr),S()))return!0}),S())return{value:void 0}},qe=0,Xe=he;qe<Xe.length;qe++){var De=Xe[qe],Ae=Le(De);if(typeof Ae=="object")return Ae.value}}}}}function H(O,Q){var V=[];return e.forEachReturnStatement(O,function(z){e.isReturnStatementWithFixablePromiseHandler(z,Q)&&V.push(z)}),V}function h(O,Q){if(!O.body)return new e.Set;var V=new e.Set;return e.forEachChild(O.body,function z(Te){v(Te,Q,"then")?(V.add(e.getNodeId(Te)),e.forEach(Te.arguments,z)):v(Te,Q,"catch")||v(Te,Q,"finally")?(V.add(e.getNodeId(Te)),e.forEachChild(Te,z)):ie(Te,Q)?V.add(e.getNodeId(Te)):e.forEachChild(Te,z)}),V}function v(O,Q,V){if(!e.isCallExpression(O))return!1;var z=e.hasPropertyAccessExpressionWithName(O,V),Te=z&&Q.getTypeAtLocation(O);return!!(Te&&Q.getPromisedTypeOfPromise(Te))}function A(O,Q){return(e.getObjectFlags(O)&4)!==0&&O.target===Q}function q(O,Q,V){if(O.expression.name.escapedText!=="finally"){var z=V.getTypeAtLocation(O.expression.expression);if(A(z,V.getPromiseType())||A(z,V.getPromiseLikeType()))if(O.expression.name.escapedText==="then"){if(Q===e.elementAt(O.arguments,0))return e.elementAt(O.typeArguments,0);if(Q===e.elementAt(O.arguments,1))return e.elementAt(O.typeArguments,1)}else return e.elementAt(O.typeArguments,0)}}function ie(O,Q){return e.isExpression(O)?!!Q.getPromisedTypeOfPromise(Q.getTypeAtLocation(O)):!1}function b(O,Q,V){var z=new e.Map,Te=e.createMultiMap();return e.forEachChild(O,function ge(ke){if(!e.isIdentifier(ke)){e.forEachChild(ke,ge);return}var Me=Q.getSymbolAtLocation(ke);if(Me){var Ie=Q.getTypeAtLocation(ke),Ge=I(Ie,Q),he=e.getSymbolId(Me).toString();if(Ge&&!e.isParameter(ke.parent)&&!e.isFunctionLikeDeclaration(ke.parent)&&!V.has(he)){var ve=e.firstOrUndefined(Ge.parameters),Ve=(ve==null?void 0:ve.valueDeclaration)&&e.isParameter(ve.valueDeclaration)&&e.tryCast(ve.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),_e=P(Ve,Te);V.set(he,_e),Te.add(Ve.text,Me)}else if(ke.parent&&(e.isParameter(ke.parent)||e.isVariableDeclaration(ke.parent)||e.isBindingElement(ke.parent))){var Le=ke.text,qe=Te.get(Le);if(qe&&qe.some(function(Ae){return Ae!==Me})){var Xe=P(ke,Te);z.set(he,Xe.identifier),V.set(he,Xe),Te.add(Le,Me)}else{var De=e.getSynthesizedDeepClone(ke);V.set(he,u(De)),Te.add(Le,Me)}}}}),e.getSynthesizedDeepCloneWithReplacements(O,!0,function(ge){if(e.isBindingElement(ge)&&e.isIdentifier(ge.name)&&e.isObjectBindingPattern(ge.parent)){var ke=Q.getSymbolAtLocation(ge.name),Me=ke&&z.get(String(e.getSymbolId(ke)));if(Me&&Me.text!==(ge.name||ge.propertyName).getText())return e.factory.createBindingElement(ge.dotDotDotToken,ge.propertyName||ge.name,Me,ge.initializer)}else if(e.isIdentifier(ge)){var ke=Q.getSymbolAtLocation(ge),Me=ke&&z.get(String(e.getSymbolId(ke)));if(Me)return e.factory.createIdentifier(Me.text)}})}function P(O,Q){var V=(Q.get(O.text)||e.emptyArray).length,z=V===0?O:e.factory.createIdentifier(O.text+"_"+V);return u(z)}function S(){return!a}function B(){return a=!1,e.emptyArray}function J(O,Q,V,z,Te){if(v(Q,V.checker,"then"))return ne(Q,e.elementAt(Q.arguments,0),e.elementAt(Q.arguments,1),V,z,Te);if(v(Q,V.checker,"catch"))return Z(Q,e.elementAt(Q.arguments,0),V,z,Te);if(v(Q,V.checker,"finally"))return K(Q,e.elementAt(Q.arguments,0),V,z,Te);if(e.isPropertyAccessExpression(Q))return J(O,Q.expression,V,z,Te);var ge=V.checker.getTypeAtLocation(Q);return ge&&V.checker.getPromisedTypeOfPromise(ge)?(e.Debug.assertNode(e.getOriginalNode(Q).parent,e.isPropertyAccessExpression),R(O,Q,V,z,Te)):B()}function k(O,Q){var V=O.checker;if(Q.kind===104)return!0;if(e.isIdentifier(Q)&&!e.isGeneratedIdentifier(Q)&&e.idText(Q)==="undefined"){var z=V.getSymbolAtLocation(Q);return!z||V.isUndefinedSymbol(z)}return!1}function M(O){var Q=e.factory.createUniqueName(O.identifier.text,16);return u(Q)}function x(O,Q,V){var z;return V&&!Ce(O,Q)&&(j(V)?(z=V,Q.synthNamesMap.forEach(function(Te,ge){if(Te.identifier.text===V.identifier.text){var ke=M(V);Q.synthNamesMap.set(ge,ke)}})):z=u(e.factory.createUniqueName("result",16),V.types),X(z)),z}function w(O,Q,V,z,Te){var ge=[],ke;if(z&&!Ce(O,Q)){ke=e.getSynthesizedDeepClone(X(z));var Me=z.types,Ie=Q.checker.getUnionType(Me,2),Ge=Q.isInJSFile?void 0:Q.checker.typeToTypeNode(Ie,void 0,void 0),he=[e.factory.createVariableDeclaration(ke,void 0,Ge)],ve=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(he,1));ge.push(ve)}return ge.push(V),Te&&ke&&Se(Te)&&ge.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(ue(Te)),void 0,void 0,ke)],2))),ge}function K(O,Q,V,z,Te){if(!Q||k(V,Q))return J(O,O.expression.expression,V,z,Te);var ge=x(O,V,Te),ke=J(O,O.expression.expression,V,!0,ge);if(S())return B();var Me=$(Q,z,void 0,void 0,O,V);if(S())return B();var Ie=e.factory.createBlock(ke),Ge=e.factory.createBlock(Me),he=e.factory.createTryStatement(Ie,void 0,Ge);return w(O,V,he,ge,Te)}function Z(O,Q,V,z,Te){if(!Q||k(V,Q))return J(O,O.expression.expression,V,z,Te);var ge=C(Q,V),ke=x(O,V,Te),Me=J(O,O.expression.expression,V,!0,ke);if(S())return B();var Ie=$(Q,z,ke,ge,O,V);if(S())return B();var Ge=e.factory.createBlock(Me),he=e.factory.createCatchClause(ge&&e.getSynthesizedDeepClone(te(ge)),e.factory.createBlock(Ie)),ve=e.factory.createTryStatement(Ge,he,void 0);return w(O,V,ve,ke,Te)}function ne(O,Q,V,z,Te,ge){if(!Q||k(z,Q))return Z(O,V,z,Te,ge);if(V&&!k(z,V))return B();var ke=C(Q,z),Me=J(O.expression.expression,O.expression.expression,z,!0,ke);if(S())return B();var Ie=$(Q,Te,ge,ke,O,z);return S()?B():e.concatenate(Me,Ie)}function R(O,Q,V,z,Te){if(Ce(O,V)){var ge=e.getSynthesizedDeepClone(Q);return z&&(ge=e.factory.createAwaitExpression(ge)),[e.factory.createReturnStatement(ge)]}return Y(Te,e.factory.createAwaitExpression(Q),void 0)}function Y(O,Q,V){return!O||m(O)?[e.factory.createExpressionStatement(Q)]:j(O)&&O.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(F(O)),Q))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(te(O)),void 0,V,Q)],2))]}function U(O,Q){if(Q&&O){var V=e.factory.createUniqueName("result",16);return Gt(Gt([],Y(u(V),O,Q),!0),[e.factory.createReturnStatement(V)],!1)}return[e.factory.createReturnStatement(O)]}function $(O,Q,V,z,Te,ge){var ke;switch(O.kind){case 104:break;case 205:case 79:if(!z)break;var Me=e.factory.createCallExpression(e.getSynthesizedDeepClone(O),void 0,j(z)?[F(z)]:[]);if(Ce(Te,ge))return U(Me,q(Te,O,ge.checker));var Ie=ge.checker.getTypeAtLocation(O),Ge=ge.checker.getSignaturesOfType(Ie,0);if(!Ge.length)return B();var he=Ge[0].getReturnType(),ve=Y(V,e.factory.createAwaitExpression(Me),q(Te,O,ge.checker));return V&&V.types.push(ge.checker.getAwaitedType(he)||he),ve;case 212:case 213:{var Ve=O.body,_e=(ke=I(ge.checker.getTypeAtLocation(O),ge.checker))===null||ke===void 0?void 0:ke.getReturnType();if(e.isBlock(Ve)){for(var Le=[],qe=!1,Xe=0,De=Ve.statements;Xe<De.length;Xe++){var Ae=De[Xe];if(e.isReturnStatement(Ae))if(qe=!0,e.isReturnStatementWithFixablePromiseHandler(Ae,ge.checker))Le=Le.concat(D(ge,Ae,Q,V));else{var Ye=_e&&Ae.expression?T(ge.checker,_e,Ae.expression):Ae.expression;Le.push.apply(Le,U(Ye,q(Te,O,ge.checker)))}else{if(Q&&e.forEachReturnStatement(Ae,e.returnTrue))return B();Le.push(Ae)}}return Ce(Te,ge)?Le.map(function(lr){return e.getSynthesizedDeepClone(lr)}):y(Le,V,ge,qe)}else{var Lr=e.isFixablePromiseHandler(Ve,ge.checker)?D(ge,e.factory.createReturnStatement(Ve),Q,V):e.emptyArray;if(Lr.length>0)return Lr;if(_e){var Ye=T(ge.checker,_e,Ve);if(Ce(Te,ge))return U(Ye,q(Te,O,ge.checker));var Er=Y(V,Ye,void 0);return V&&V.types.push(ge.checker.getAwaitedType(_e)||_e),Er}else return B()}}default:return B()}return e.emptyArray}function T(O,Q,V){var z=e.getSynthesizedDeepClone(V);return O.getPromisedTypeOfPromise(Q)?e.factory.createAwaitExpression(z):z}function I(O,Q){var V=Q.getSignaturesOfType(O,0);return e.lastOrUndefined(V)}function y(O,Q,V,z){for(var Te=[],ge=0,ke=O;ge<ke.length;ge++){var Me=ke[ge];if(e.isReturnStatement(Me)){if(Me.expression){var Ie=ie(Me.expression,V.checker)?e.factory.createAwaitExpression(Me.expression):Me.expression;Q===void 0?Te.push(e.factory.createExpressionStatement(Ie)):j(Q)&&Q.hasBeenDeclared?Te.push(e.factory.createExpressionStatement(e.factory.createAssignment(F(Q),Ie))):Te.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(te(Q),void 0,void 0,Ie)],2)))}}else Te.push(e.getSynthesizedDeepClone(Me))}return!z&&Q!==void 0&&Te.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(te(Q),void 0,void 0,e.factory.createIdentifier("undefined"))],2))),Te}function D(O,Q,V,z){var Te=[];return e.forEachChild(Q,function ge(ke){if(e.isCallExpression(ke)){var Me=J(ke,ke,O,V,z);if(Te=Te.concat(Me),Te.length>0)return}else e.isFunctionLike(ke)||e.forEachChild(ke,ge)}),Te}function C(O,Q){var V=[],z;if(e.isFunctionLikeDeclaration(O)){if(O.parameters.length>0){var Te=O.parameters[0].name;z=ge(Te)}}else e.isIdentifier(O)?z=ke(O):e.isPropertyAccessExpression(O)&&e.isIdentifier(O.name)&&(z=ke(O.name));if(!z||"identifier"in z&&z.identifier.text==="undefined")return;return z;function ge(Ge){if(e.isIdentifier(Ge))return ke(Ge);var he=e.flatMap(Ge.elements,function(ve){return e.isOmittedExpression(ve)?[]:[ge(ve.name)]});return g(Ge,he)}function ke(Ge){var he=Ie(Ge),ve=Me(he);if(!ve)return u(Ge,V);var Ve=Q.synthNamesMap.get(e.getSymbolId(ve).toString());return Ve||u(Ge,V)}function Me(Ge){return Ge.symbol?Ge.symbol:Q.checker.getSymbolAtLocation(Ge)}function Ie(Ge){return Ge.original?Ge.original:Ge}}function m(O){return O?j(O)?!O.identifier.text:e.every(O.elements,m):!0}function u(O,Q){return Q===void 0&&(Q=[]),{kind:0,identifier:O,types:Q,hasBeenDeclared:!1,hasBeenReferenced:!1}}function g(O,Q,V){return Q===void 0&&(Q=e.emptyArray),V===void 0&&(V=[]),{kind:1,bindingPattern:O,elements:Q,types:V}}function F(O){return O.hasBeenReferenced=!0,O.identifier}function te(O){return j(O)?X(O):ue(O)}function ue(O){for(var Q=0,V=O.elements;Q<V.length;Q++){var z=V[Q];te(z)}return O.bindingPattern}function X(O){return O.hasBeenDeclared=!0,O.identifier}function j(O){return O.kind===0}function Se(O){return O.kind===1}function Ce(O,Q){return!!O.original&&Q.setOfExpressionsToReturn.has(e.getNodeId(O.original))}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){n.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions:function(D){var C=D.sourceFile,m=D.program,u=D.preferences,g=e.textChanges.ChangeTracker.with(D,function(F){var te=d(C,m.getTypeChecker(),F,e.getEmitScriptTarget(m.getCompilerOptions()),e.getQuotePreference(C,u));if(te)for(var ue=0,X=m.getSourceFiles();ue<X.length;ue++){var j=X[ue];f(j,C,F,e.getQuotePreference(j,u))}});return[n.createCodeFixActionWithoutFixAll("convertToEsModule",g,e.Diagnostics.Convert_to_ES_module)]}});function f(D,C,m,u){for(var g=0,F=D.imports;g<F.length;g++){var te=F[g],ue=e.getResolvedModule(D,te.text,e.getModeForUsageLocation(D,te));if(!(!ue||ue.resolvedFileName!==C.fileName)){var X=e.importFromModuleSpecifier(te);switch(X.kind){case 264:m.replaceNode(D,X,e.makeImport(X.name,void 0,te,u));break;case 207:e.isRequireCall(X,!1)&&m.replaceNode(D,X,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(X),"default"));break}}}}function d(D,C,m,u,g){var F={original:K(D),additional:new e.Set},te=a(D,C,F);p(D,te,m);for(var ue=!1,X,j=0,Se=e.filter(D.statements,e.isVariableStatement);j<Se.length;j++){var Ce=Se[j],O=h(D,Ce,m,C,F,u,g);O&&e.copyEntries(O,X!=null?X:X=new e.Map)}for(var Q=0,V=e.filter(D.statements,function(Te){return!e.isVariableStatement(Te)});Q<V.length;Q++){var Ce=V[Q],z=H(D,Ce,C,m,F,u,te,X,g);ue=ue||z}return X==null||X.forEach(function(Te,ge){m.replaceNode(D,ge,Te)}),ue}function a(D,C,m){var u=new e.Map;return N(D,function(g){var F=g.name,te=F.text,ue=F.originalKeywordKind;!u.has(te)&&(ue!==void 0&&e.isNonContextualKeyword(ue)||C.resolveName(te,g,111551,!0))&&u.set(te,w("_".concat(te),m))}),u}function p(D,C,m){N(D,function(u,g){if(!g){var F=u.name.text;m.replaceNode(D,u,e.factory.createIdentifier(C.get(F)||F))}})}function N(D,C){D.forEachChild(function m(u){if(e.isPropertyAccessExpression(u)&&e.isExportsOrModuleExportsOrAlias(D,u.expression)&&e.isIdentifier(u.name)){var g=u.parent;C(u,e.isBinaryExpression(g)&&g.left===u&&g.operatorToken.kind===63)}u.forEachChild(m)})}function H(D,C,m,u,g,F,te,ue,X){switch(C.kind){case 236:return h(D,C,u,m,g,F,X),!1;case 237:{var j=C.expression;switch(j.kind){case 207:return e.isRequireCall(j,!0)&&u.replaceNode(D,C,e.makeImport(void 0,void 0,j.arguments[0],X)),!1;case 220:{var Se=j.operatorToken;return Se.kind===63&&A(D,m,j,u,te,ue)}}}default:return!1}}function h(D,C,m,u,g,F,te){var ue=C.declarationList,X=!1,j=e.map(ue.declarations,function(Ce){var O=Ce.name,Q=Ce.initializer;if(Q){if(e.isExportsOrModuleExportsOrAlias(D,Q))return X=!0,y([]);if(e.isRequireCall(Q,!0))return X=!0,M(O,Q.arguments[0],u,g,F,te);if(e.isPropertyAccessExpression(Q)&&e.isRequireCall(Q.expression,!0))return X=!0,v(O,Q.name.text,Q.expression.arguments[0],g,te)}return y([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([Ce],ue.flags))])});if(X){m.replaceNodeWithNodes(D,C,e.flatMap(j,function(Ce){return Ce.newImports}));var Se;return e.forEach(j,function(Ce){Ce.useSitesToUnqualify&&e.copyEntries(Ce.useSitesToUnqualify,Se!=null?Se:Se=new e.Map)}),Se}}function v(D,C,m,u,g){switch(D.kind){case 200:case 201:{var F=w(C,u);return y([U(F,C,m,g),T(void 0,D,e.factory.createIdentifier(F))])}case 79:return y([U(D.text,C,m,g)]);default:return e.Debug.assertNever(D,"Convert to ES module got invalid syntax form ".concat(D.kind))}}function A(D,C,m,u,g,F){var te=m.left,ue=m.right;if(!e.isPropertyAccessExpression(te))return!1;if(e.isExportsOrModuleExportsOrAlias(D,te))if(e.isExportsOrModuleExportsOrAlias(D,ue))u.delete(D,m.parent);else{var X=e.isObjectLiteralExpression(ue)?q(ue,F):e.isRequireCall(ue,!0)?b(ue.arguments[0],C):void 0;return X?(u.replaceNodeWithNodes(D,m.parent,X[0]),X[1]):(u.replaceRangeWithText(D,e.createRange(te.getStart(D),ue.pos),"export default"),!0)}else e.isExportsOrModuleExportsOrAlias(D,te.expression)&&ie(D,m,u,g);return!1}function q(D,C){var m=e.mapAllOrFail(D.properties,function(u){switch(u.kind){case 171:case 172:case 295:case 296:return;case 294:return e.isIdentifier(u.name)?J(u.name.text,u.initializer,C):void 0;case 168:return e.isIdentifier(u.name)?R(u.name.text,[e.factory.createToken(93)],u,C):void 0;default:e.Debug.assertNever(u,"Convert to ES6 got invalid prop kind ".concat(u.kind))}});return m&&[m,!1]}function ie(D,C,m,u){var g=C.left.name.text,F=u.get(g);if(F!==void 0){var te=[T(void 0,F,C.right),I([e.factory.createExportSpecifier(!1,F,g)])];m.replaceNodeWithNodes(D,C.parent,te)}else B(C,D,m)}function b(D,C){var m=D.text,u=C.getSymbolAtLocation(D),g=u?u.exports:e.emptyMap;return g.has("export=")?[[S(m)],!0]:g.has("default")?g.size>1?[[P(m),S(m)],!0]:[[S(m)],!0]:[[P(m)],!1]}function P(D){return I(void 0,D)}function S(D){return I([e.factory.createExportSpecifier(!1,void 0,"default")],D)}function B(D,C,m){var u=D.left,g=D.right,F=D.parent,te=u.name.text;if((e.isFunctionExpression(g)||e.isArrowFunction(g)||e.isClassExpression(g))&&(!g.name||g.name.text===te)){m.replaceRange(C,{pos:u.getStart(C),end:g.getStart(C)},e.factory.createToken(93),{suffix:" "}),g.name||m.insertName(C,g,te);var ue=e.findChildOfKind(F,26,C);ue&&m.delete(C,ue)}else m.replaceNodeRangeWithNodes(C,u.expression,e.findChildOfKind(u,24,C),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "})}function J(D,C,m){var u=[e.factory.createToken(93)];switch(C.kind){case 212:{var g=C.name;if(g&&g.text!==D)return F()}case 213:return R(D,u,C,m);case 225:return Y(D,u,C,m);default:return F()}function F(){return T(u,e.factory.createIdentifier(D),k(C,m))}}function k(D,C){if(!C||!e.some(e.arrayFrom(C.keys()),function(u){return e.rangeContainsRange(D,u)}))return D;return e.isArray(D)?e.getSynthesizedDeepClonesWithReplacements(D,!0,m):e.getSynthesizedDeepCloneWithReplacements(D,!0,m);function m(u){if(u.kind===205){var g=C.get(u);return C.delete(u),g}}}function M(D,C,m,u,g,F){switch(D.kind){case 200:{var te=e.mapAllOrFail(D.elements,function(X){return X.dotDotDotToken||X.initializer||X.propertyName&&!e.isIdentifier(X.propertyName)||!e.isIdentifier(X.name)?void 0:$(X.propertyName&&X.propertyName.text,X.name.text)});if(te)return y([e.makeImport(void 0,te,C,F)])}case 201:{var ue=w(n.moduleSpecifierToValidIdentifier(C.text,g),u);return y([e.makeImport(e.factory.createIdentifier(ue),void 0,C,F),T(void 0,e.getSynthesizedDeepClone(D),e.factory.createIdentifier(ue))])}case 79:return x(D,C,m,u,F);default:return e.Debug.assertNever(D,"Convert to ES module got invalid name kind ".concat(D.kind))}}function x(D,C,m,u,g){for(var F=m.getSymbolAtLocation(D),te=new e.Map,ue=!1,X,j=0,Se=u.original.get(D.text);j<Se.length;j++){var Ce=Se[j];if(!(m.getSymbolAtLocation(Ce)!==F||Ce===D)){var O=Ce.parent;if(e.isPropertyAccessExpression(O)){var Q=O.name.text;if(Q==="default"){ue=!0;var V=Ce.getText();(X!=null?X:X=new e.Map).set(O,e.factory.createIdentifier(V))}else{e.Debug.assert(O.expression===Ce,"Didn't expect expression === use");var z=te.get(Q);z===void 0&&(z=w(Q,u),te.set(Q,z)),(X!=null?X:X=new e.Map).set(O,e.factory.createIdentifier(z))}}else ue=!0}}var Te=te.size===0?void 0:e.arrayFrom(e.mapIterator(te.entries(),function(ge){var ke=ge[0],Me=ge[1];return e.factory.createImportSpecifier(!1,ke===Me?void 0:e.factory.createIdentifier(ke),e.factory.createIdentifier(Me))}));return Te||(ue=!0),y([e.makeImport(ue?e.getSynthesizedDeepClone(D):void 0,Te,C,g)],X)}function w(D,C){for(;C.original.has(D)||C.additional.has(D);)D="_".concat(D);return C.additional.add(D),D}function K(D){var C=e.createMultiMap();return Z(D,function(m){return C.add(m.text,m)}),C}function Z(D,C){e.isIdentifier(D)&&ne(D)&&C(D),D.forEachChild(function(m){return Z(m,C)})}function ne(D){var C=D.parent;switch(C.kind){case 205:return C.name!==D;case 202:return C.propertyName!==D;case 269:return C.propertyName!==D;default:return!0}}function R(D,C,m,u){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(m.decorators),e.concatenate(C,e.getSynthesizedDeepClones(m.modifiers)),e.getSynthesizedDeepClone(m.asteriskToken),D,e.getSynthesizedDeepClones(m.typeParameters),e.getSynthesizedDeepClones(m.parameters),e.getSynthesizedDeepClone(m.type),e.factory.converters.convertToFunctionBlock(k(m.body,u)))}function Y(D,C,m,u){return e.factory.createClassDeclaration(e.getSynthesizedDeepClones(m.decorators),e.concatenate(C,e.getSynthesizedDeepClones(m.modifiers)),D,e.getSynthesizedDeepClones(m.typeParameters),e.getSynthesizedDeepClones(m.heritageClauses),k(m.members,u))}function U(D,C,m,u){return C==="default"?e.makeImport(e.factory.createIdentifier(D),void 0,m,u):e.makeImport(void 0,[$(C,D)],m,u)}function $(D,C){return e.factory.createImportSpecifier(!1,D!==void 0&&D!==C?e.factory.createIdentifier(D):void 0,e.factory.createIdentifier(C))}function T(D,C,m){return e.factory.createVariableStatement(D,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(C,void 0,void 0,m)],2))}function I(D,C){return e.factory.createExportDeclaration(void 0,void 0,!1,D&&e.factory.createNamedExports(D),C===void 0?void 0:e.factory.createStringLiteral(C))}function y(D,C){return{newImports:D,useSitesToUnqualify:C}}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="correctQualifiedNameToIndexedAccessType",d=[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];n.registerCodeFix({errorCodes:d,getCodeActions:function(N){var H=a(N.sourceFile,N.span.start);if(!!H){var h=e.textChanges.ChangeTracker.with(N,function(A){return p(A,N.sourceFile,H)}),v="".concat(H.left.text,'["').concat(H.right.text,'"]');return[n.createCodeFixAction(f,h,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,v],f,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[f],getAllCodeActions:function(N){return n.codeFixAll(N,d,function(H,h){var v=a(h.file,h.start);v&&p(H,h.file,v)})}});function a(N,H){var h=e.findAncestor(e.getTokenAtPosition(N,H),e.isQualifiedName);return e.Debug.assert(!!h,"Expected position to be owned by a qualified name."),e.isIdentifier(h.left)?h:void 0}function p(N,H,h){var v=h.right.text,A=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(h.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(v)));N.replaceNode(H,h,A)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],d="convertToTypeOnlyExport";n.registerCodeFix({errorCodes:f,getCodeActions:function(H){var h=e.textChanges.ChangeTracker.with(H,function(v){return p(v,a(H.span,H.sourceFile),H)});if(h.length)return[n.createCodeFixAction(d,h,e.Diagnostics.Convert_to_type_only_export,d,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[d],getAllCodeActions:function(H){var h=new e.Map;return n.codeFixAll(H,f,function(v,A){var q=a(A,H.sourceFile);q&&e.addToSeen(h,e.getNodeId(q.parent.parent))&&p(v,q,H)})}});function a(H,h){return e.tryCast(e.getTokenAtPosition(h,H.start).parent,e.isExportSpecifier)}function p(H,h,v){if(!!h){var A=h.parent,q=A.parent,ie=N(h,v);if(ie.length===A.elements.length)H.insertModifierBefore(v.sourceFile,151,A);else{var b=e.factory.updateExportDeclaration(q,q.decorators,q.modifiers,!1,e.factory.updateNamedExports(A,e.filter(A.elements,function(S){return!e.contains(ie,S)})),q.moduleSpecifier,void 0),P=e.factory.createExportDeclaration(void 0,void 0,!0,e.factory.createNamedExports(ie),q.moduleSpecifier,void 0);H.replaceNode(v.sourceFile,q,b,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),H.insertNodeAfter(v.sourceFile,q,P)}}}function N(H,h){var v=H.parent;if(v.elements.length===1)return v.elements;var A=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(v),h.program.getSemanticDiagnostics(h.sourceFile,h.cancellationToken));return e.filter(v.elements,function(q){var ie;return q===H||((ie=e.findDiagnosticForNode(q,A))===null||ie===void 0?void 0:ie.code)===f[0]})}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],d="convertToTypeOnlyImport";n.registerCodeFix({errorCodes:f,getCodeActions:function(N){var H=e.textChanges.ChangeTracker.with(N,function(h){var v=a(N.span,N.sourceFile);p(h,v,N)});if(H.length)return[n.createCodeFixAction(d,H,e.Diagnostics.Convert_to_type_only_import,d,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[d],getAllCodeActions:function(N){return n.codeFixAll(N,f,function(H,h){var v=a(h,N.sourceFile);p(H,v,N)})}});function a(N,H){return e.tryCast(e.getTokenAtPosition(H,N.start).parent,e.isImportDeclaration)}function p(N,H,h){if(!!(H!=null&&H.importClause)){var v=H.importClause;N.insertText(h.sourceFile,H.getStart()+6," type"),v.name&&v.namedBindings&&(N.deleteNodeRangeExcludingEnd(h.sourceFile,v.name,H.importClause.namedBindings),N.insertNodeBefore(h.sourceFile,H,e.factory.updateImportDeclaration(H,void 0,void 0,e.factory.createImportClause(!0,v.name,void 0),H.moduleSpecifier,void 0)))}}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="convertLiteralTypeToMappedType",d=[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];n.registerCodeFix({errorCodes:d,getCodeActions:function(N){var H=N.sourceFile,h=N.span,v=a(H,h.start);if(!!v){var A=v.name,q=v.constraint,ie=e.textChanges.ChangeTracker.with(N,function(b){return p(b,H,v)});return[n.createCodeFixAction(f,ie,[e.Diagnostics.Convert_0_to_1_in_0,q,A],f,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[f],getAllCodeActions:function(N){return n.codeFixAll(N,d,function(H,h){var v=a(h.file,h.start);v&&p(H,h.file,v)})}});function a(N,H){var h=e.getTokenAtPosition(N,H);if(e.isIdentifier(h)){var v=e.cast(h.parent.parent,e.isPropertySignature),A=h.getText(N);return{container:e.cast(v.parent,e.isTypeLiteralNode),typeNode:v.type,constraint:A,name:A==="K"?"P":"K"}}}function p(N,H,h){var v=h.container,A=h.typeNode,q=h.constraint,ie=h.name;N.replaceNode(H,v,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(ie,e.factory.createTypeReferenceNode(q)),void 0,void 0,A,void 0))}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f=[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],d="fixClassIncorrectlyImplementsInterface";n.registerCodeFix({errorCodes:f,getCodeActions:function(h){var v=h.sourceFile,A=h.span,q=a(v,A.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(q),function(ie){var b=e.textChanges.ChangeTracker.with(h,function(P){return N(h,ie,v,q,P,h.preferences)});return b.length===0?void 0:n.createCodeFixAction(d,b,[e.Diagnostics.Implement_interface_0,ie.getText(v)],d,e.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[d],getAllCodeActions:function(h){var v=new e.Map;return n.codeFixAll(h,f,function(A,q){var ie=a(q.file,q.start);if(e.addToSeen(v,e.getNodeId(ie)))for(var b=0,P=e.getEffectiveImplementsTypeNodes(ie);b<P.length;b++){var S=P[b];N(h,S,q.file,ie,A,h.preferences)}})}});function a(h,v){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(h,v)),"There should be a containing class")}function p(h){return!h.valueDeclaration||!(e.getEffectiveModifierFlags(h.valueDeclaration)&8)}function N(h,v,A,q,ie,b){var P=h.program.getTypeChecker(),S=H(q,P),B=P.getTypeAtLocation(v),J=P.getPropertiesOfType(B),k=J.filter(e.and(p,function(ne){return!S.has(ne.escapedName)})),M=P.getTypeAtLocation(q),x=e.find(q.members,function(ne){return e.isConstructorDeclaration(ne)});M.getNumberIndexType()||K(B,1),M.getStringIndexType()||K(B,0);var w=n.createImportAdder(A,h.program,b,h.host);n.createMissingMemberNodes(q,k,A,h,b,w,function(ne){return Z(A,q,ne)}),w.writeFixes(ie);function K(ne,R){var Y=P.getIndexInfoOfType(ne,R);Y&&Z(A,q,P.indexInfoToIndexSignatureDeclaration(Y,q,void 0,n.getNoopSymbolTrackerWithResolver(h)))}function Z(ne,R,Y){x?ie.insertNodeAfter(ne,x,Y):ie.insertNodeAtClassStart(ne,R,Y)}}function H(h,v){var A=e.getEffectiveBaseTypeNode(h);if(!A)return e.createSymbolTable();var q=v.getTypeAtLocation(A),ie=v.getPropertiesOfType(q);return e.createSymbolTable(ie.filter(p))}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){n.importFixName="import";var f="fixMissingImport",d=[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];n.registerCodeFix({errorCodes:d,getCodeActions:function(Ie){var Ge=Ie.errorCode,he=Ie.preferences,ve=Ie.sourceFile,Ve=Ie.span,_e=Ie.program,Le=R(Ie,Ge,Ve.start,!0);if(!!Le){var qe=Le.fixes,Xe=Le.symbolName,De=e.getQuotePreference(ve,he);return qe.map(function(Ae){return ue(Ie,ve,Xe,Ae,De,_e.getCompilerOptions())})}},fixIds:[f],getAllCodeActions:function(Ie){var Ge=Ie.sourceFile,he=Ie.program,ve=Ie.preferences,Ve=Ie.host,_e=p(Ge,he,!0,ve,Ve);return n.eachDiagnostic(Ie,d,function(Le){return _e.addImportFromDiagnostic(Le,Ie)}),n.createCombinedCodeActions(e.textChanges.ChangeTracker.with(Ie,_e.writeFixes))}});function a(Ie,Ge,he,ve){return p(Ie,Ge,!1,he,ve)}n.createImportAdder=a;function p(Ie,Ge,he,ve,Ve){var _e=Ge.getCompilerOptions(),Le=[],qe=[],Xe=new e.Map,De=new e.Map;return{addImportFromDiagnostic:Ae,addImportFromExportedSymbol:Ye,writeFixes:Er,hasFixes:lr};function Ae(Cr,Or){var Ke=R(Or,Cr.code,Cr.start,he);!Ke||!Ke.fixes.length||Lr(Ke)}function Ye(Cr,Or){var Ke=e.Debug.checkDefined(Cr.parent),Pe=e.getNameForExportedSymbol(Cr,e.getEmitScriptTarget(_e)),Hr=Ge.getTypeChecker(),ur=Hr.getMergedSymbol(e.skipAlias(Cr,Hr)),vr=ie(Ie,ur,Ke,Pe,Ve,Ge,ve,he),de=w(Ie,Ge),Fe=v(Ie,vr,Ke,Pe,Ge,void 0,!!Or,de,Ve,ve);Fe&&Lr({fixes:[Fe],symbolName:Pe})}function Lr(Cr){var Or,Ke,Pe=Cr.fixes,Hr=Cr.symbolName,ur=e.first(Pe);switch(ur.kind){case 0:Le.push(ur);break;case 1:qe.push(ur);break;case 2:{var vr=ur.importClauseOrBindingPattern,de=ur.importKind,Fe=ur.addAsTypeOnly,$e=String(e.getNodeId(vr)),Dr=Xe.get($e);if(Dr||Xe.set($e,Dr={importClauseOrBindingPattern:vr,defaultImport:void 0,namedImports:new e.Map}),de===0){var Fr=Dr==null?void 0:Dr.namedImports.get(Hr);Dr.namedImports.set(Hr,Jr(Fr,Fe))}else e.Debug.assert(Dr.defaultImport===void 0||Dr.defaultImport.name===Hr,"(Add to Existing) Default import should be missing or match symbolName"),Dr.defaultImport={name:Hr,addAsTypeOnly:Jr((Or=Dr.defaultImport)===null||Or===void 0?void 0:Or.addAsTypeOnly,Fe)};break}case 3:{var He=ur.moduleSpecifier,de=ur.importKind,pr=ur.useRequire,Fe=ur.addAsTypeOnly,Dr=ze(He,de,pr,Fe);switch(e.Debug.assert(Dr.useRequire===pr,"(Add new) Tried to add an `import` and a `require` for the same module"),de){case 1:e.Debug.assert(Dr.defaultImport===void 0||Dr.defaultImport.name===Hr,"(Add new) Default import should be missing or match symbolName"),Dr.defaultImport={name:Hr,addAsTypeOnly:Jr((Ke=Dr.defaultImport)===null||Ke===void 0?void 0:Ke.addAsTypeOnly,Fe)};break;case 0:var Fr=(Dr.namedImports||(Dr.namedImports=new e.Map)).get(Hr);Dr.namedImports.set(Hr,Jr(Fr,Fe));break;case 3:case 2:e.Debug.assert(Dr.namespaceLikeImport===void 0||Dr.namespaceLikeImport.name===Hr,"Namespacelike import shoudl be missing or match symbolName"),Dr.namespaceLikeImport={importKind:de,name:Hr,addAsTypeOnly:Fe};break}break}default:e.Debug.assertNever(ur,"fix wasn't never - got kind ".concat(ur.kind))}function Jr(Yr,lt){return Math.max(Yr!=null?Yr:0,lt)}function ze(Yr,lt,tt,Rt){var cn=Ar(Yr,!0),bn=Ar(Yr,!1),In=De.get(cn),zn=De.get(bn),ir={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:tt};return lt===1&&Rt===2?In||(De.set(cn,ir),ir):Rt===1&&(In||zn)?In||zn:zn||(De.set(bn,ir),ir)}function Ar(Yr,lt){return"".concat(lt?1:0,"|").concat(Yr)}}function Er(Cr){for(var Or=e.getQuotePreference(Ie,ve),Ke=0,Pe=Le;Ke<Pe.length;Ke++){var Hr=Pe[Ke];Se(Cr,Ie,Hr)}for(var ur=0,vr=qe;ur<vr.length;ur++){var Hr=vr[ur];Ce(Cr,Ie,Hr,Or)}Xe.forEach(function(Fe){var $e=Fe.importClauseOrBindingPattern,Dr=Fe.defaultImport,Fr=Fe.namedImports;j(Cr,Ie,$e,Dr,e.arrayFrom(Fr.entries(),function(He){var pr=He[0],Jr=He[1];return{addAsTypeOnly:Jr,name:pr}}),_e)});var de;De.forEach(function(Fe,$e){var Dr=Fe.useRequire,Fr=Fe.defaultImport,He=Fe.namedImports,pr=Fe.namespaceLikeImport,Jr=$e.slice(2),ze=Dr?z:V,Ar=ze(Jr,Or,Fr,He&&e.arrayFrom(He.entries(),function(Yr){var lt=Yr[0],tt=Yr[1];return{addAsTypeOnly:tt,name:lt}}),pr);de=e.combine(de,Ar)}),de&&e.insertImports(Cr,Ie,de,!0)}function lr(){return Le.length>0||qe.length>0||Xe.size>0||De.size>0}}var N;(function(Ie){Ie[Ie.UseNamespace=0]="UseNamespace",Ie[Ie.JsdocTypeImport=1]="JsdocTypeImport",Ie[Ie.AddToExisting=2]="AddToExisting",Ie[Ie.AddNew=3]="AddNew"})(N||(N={}));var H;(function(Ie){Ie[Ie.Allowed=1]="Allowed",Ie[Ie.Required=2]="Required",Ie[Ie.NotAllowed=4]="NotAllowed"})(H||(H={}));function h(Ie,Ge,he,ve,Ve,_e,Le,qe,Xe){var De=_e.getCompilerOptions(),Ae=e.pathIsBareSpecifier(e.stripQuotes(Ge.name))?[q(Ie,Ge,_e,Ve)]:ie(he,Ie,Ge,ve,Ve,_e,Xe,!0),Ye=w(he,_e),Lr=e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(he,qe)),Er=e.Debug.checkDefined(v(he,Ae,Ge,ve,_e,qe,Lr,Ye,Ve,Xe));return{moduleSpecifier:Er.moduleSpecifier,codeAction:A(ue({host:Ve,formatContext:Le,preferences:Xe},he,ve,Er,e.getQuotePreference(he,Xe),De))}}n.getImportCompletionAction=h;function v(Ie,Ge,he,ve,Ve,_e,Le,qe,Xe,De){return e.Debug.assert(Ge.some(function(Ae){return Ae.moduleSymbol===he||Ae.symbol.parent===he}),"Some exportInfo should match the specified moduleSymbol"),U(P(Ge,ve,_e,Le,qe,Ve,Ie,Xe,De),Ie,Ve,Xe,De)}function A(Ie){var Ge=Ie.description,he=Ie.changes,ve=Ie.commands;return{description:Ge,changes:he,commands:ve}}function q(Ie,Ge,he,ve){var Ve,_e,Le=he.getCompilerOptions(),qe=De(he.getTypeChecker(),!1);if(qe)return qe;var Xe=(_e=(Ve=ve.getPackageJsonAutoImportProvider)===null||Ve===void 0?void 0:Ve.call(ve))===null||_e===void 0?void 0:_e.getTypeChecker();return e.Debug.checkDefined(Xe&&De(Xe,!0),"Could not find symbol in specified module for code actions");function De(Ae,Ye){var Lr=e.getDefaultLikeExportInfo(Ge,Ae,Le);if(Lr&&e.skipAlias(Lr.symbol,Ae)===Ie)return{symbol:Lr.symbol,moduleSymbol:Ge,moduleFileName:void 0,exportKind:Lr.exportKind,targetFlags:e.skipAlias(Ie,Ae).flags,isFromPackageJson:Ye};var Er=Ae.tryGetMemberInModuleExportsAndProperties(Ie.name,Ge);if(Er&&e.skipAlias(Er,Ae)===Ie)return{symbol:Er,moduleSymbol:Ge,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(Ie,Ae).flags,isFromPackageJson:Ye}}}function ie(Ie,Ge,he,ve,Ve,_e,Le,qe){var Xe=[],De=_e.getCompilerOptions(),Ae=e.memoizeOne(function(Lr){return e.createModuleSpecifierResolutionHost(Lr?Ve.getPackageJsonAutoImportProvider():_e,Ve)});return e.forEachExternalModuleToImportFrom(_e,Ve,qe,function(Lr,Er,lr,Cr){var Or=lr.getTypeChecker();if(!(Er&&Lr!==he&&e.startsWith(Ie.fileName,e.getDirectoryPath(Er.fileName)))){var Ke=e.getDefaultLikeExportInfo(Lr,Or,De);Ke&&(Ke.name===ve||ke(Lr,e.getEmitScriptTarget(De))===ve)&&e.skipAlias(Ke.symbol,Or)===Ge&&Ye(lr,Er,Cr)&&Xe.push({symbol:Ke.symbol,moduleSymbol:Lr,moduleFileName:Er==null?void 0:Er.fileName,exportKind:Ke.exportKind,targetFlags:e.skipAlias(Ke.symbol,Or).flags,isFromPackageJson:Cr});for(var Pe=0,Hr=Or.getExportsAndPropertiesOfModule(Lr);Pe<Hr.length;Pe++){var ur=Hr[Pe];ur.name===ve&&Or.getMergedSymbol(e.skipAlias(ur,Or))===Ge&&Ye(lr,Er,Cr)&&Xe.push({symbol:ur,moduleSymbol:Lr,moduleFileName:Er==null?void 0:Er.fileName,exportKind:0,targetFlags:e.skipAlias(ur,Or).flags,isFromPackageJson:Cr})}}}),Xe;function Ye(Lr,Er,lr){var Cr;return!Er||e.isImportableFile(Lr,Ie,Er,Le,void 0,Ae(lr),(Cr=Ve.getModuleSpecifierCache)===null||Cr===void 0?void 0:Cr.call(Ve))}}function b(Ie,Ge,he,ve,Ve,_e){var Le=K(he,Ge,void 0,!1,!1,Ie,ve,Ve,_e),qe=Le.fixes,Xe=Le.computedWithoutCacheCount,De=U(qe,Ge,he,ve,Ve);return De&&Rn(Rn({},De),{computedWithoutCacheCount:Xe})}n.getModuleSpecifierForBestExportInfo=b;function P(Ie,Ge,he,ve,Ve,_e,Le,qe,Xe){var De=_e.getTypeChecker(),Ae=e.flatMap(Ie,function(lr){return x(lr,De,Le,_e.getCompilerOptions())}),Ye=he===void 0?void 0:S(Ae,Ge,he,De),Lr=M(Ae,ve,De,_e.getCompilerOptions()),Er=Lr?[Lr]:Z(Ie,Ae,_e,Le,he,ve,Ve,qe,Xe);return Gt(Gt([],Ye?[Ye]:e.emptyArray,!0),Er,!0)}function S(Ie,Ge,he,ve){return e.firstDefined(Ie,function(Ve){var _e=Ve.declaration,Le=J(_e),qe=e.tryGetModuleSpecifierFromDeclaration(_e);if(Le&&qe){var Xe=B(_e,ve);if(Xe&&Xe.exports.has(e.escapeLeadingUnderscores(Ge)))return{kind:0,namespacePrefix:Le,position:he,moduleSpecifier:qe}}})}function B(Ie,Ge){var he;switch(Ie.kind){case 253:return Ge.resolveExternalModuleName(Ie.initializer.arguments[0]);case 264:return Ge.getAliasedSymbol(Ie.symbol);case 265:var ve=e.tryCast((he=Ie.importClause)===null||he===void 0?void 0:he.namedBindings,e.isNamespaceImport);return ve&&Ge.getAliasedSymbol(ve.symbol);default:return e.Debug.assertNever(Ie)}}function J(Ie){var Ge,he,ve;switch(Ie.kind){case 253:return(Ge=e.tryCast(Ie.name,e.isIdentifier))===null||Ge===void 0?void 0:Ge.text;case 264:return Ie.name.text;case 265:return(ve=e.tryCast((he=Ie.importClause)===null||he===void 0?void 0:he.namedBindings,e.isNamespaceImport))===null||ve===void 0?void 0:ve.name.text;default:return e.Debug.assertNever(Ie)}}function k(Ie,Ge,he,ve,Ve,_e){return Ie?Ge&&_e.importsNotUsedAsValues===2||_e.isolatedModules&&_e.preserveValueImports&&(!(ve&111551)||!!Ve.getTypeOnlyAliasDeclaration(he))?2:1:4}function M(Ie,Ge,he,ve){return e.firstDefined(Ie,function(Ve){var _e=Ve.declaration,Le=Ve.importKind,qe=Ve.symbol,Xe=Ve.targetFlags;if(!(Le===3||Le===2||_e.kind===264)){if(_e.kind===253)return(Le===0||Le===1)&&_e.name.kind===200?{kind:2,importClauseOrBindingPattern:_e.name,importKind:Le,moduleSpecifier:_e.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;var De=_e.importClause;if(!(!De||!e.isStringLiteralLike(_e.moduleSpecifier))){var Ae=De.name,Ye=De.namedBindings;if(!(De.isTypeOnly&&!(Le===0&&Ye))){var Lr=k(Ge,!1,qe,Xe,he,ve);if(!(Le===1&&(Ae||Lr===2&&Ye))&&!(Le===0&&(Ye==null?void 0:Ye.kind)===267))return{kind:2,importClauseOrBindingPattern:De,importKind:Le,moduleSpecifier:_e.moduleSpecifier.text,addAsTypeOnly:Lr}}}}})}function x(Ie,Ge,he,ve){var Ve=Ie.moduleSymbol,_e=Ie.exportKind,Le=Ie.targetFlags,qe=Ie.symbol;if(!(Le&111551)&&e.isSourceFileJS(he))return e.emptyArray;var Xe=D(he,_e,ve);return e.mapDefined(he.imports,function(De){var Ae=e.importFromModuleSpecifier(De);if(e.isVariableDeclarationInitializedToRequire(Ae.parent))return Ge.resolveExternalModuleName(De)===Ve?{declaration:Ae.parent,importKind:Xe,symbol:qe,targetFlags:Le}:void 0;if(Ae.kind===265||Ae.kind===264)return Ge.getSymbolAtLocation(De)===Ve?{declaration:Ae,importKind:Xe,symbol:qe,targetFlags:Le}:void 0})}function w(Ie,Ge){if(!e.isSourceFileJS(Ie))return!1;if(Ie.commonJsModuleIndicator&&!Ie.externalModuleIndicator)return!0;if(Ie.externalModuleIndicator&&!Ie.commonJsModuleIndicator)return!1;var he=Ge.getCompilerOptions();if(he.configFile)return e.getEmitModuleKind(he)<e.ModuleKind.ES2015;for(var ve=0,Ve=Ge.getSourceFiles();ve<Ve.length;ve++){var _e=Ve[ve];if(!(_e===Ie||!e.isSourceFileJS(_e)||Ge.isSourceFileFromExternalLibrary(_e))){if(_e.commonJsModuleIndicator&&!_e.externalModuleIndicator)return!0;if(_e.externalModuleIndicator&&!_e.commonJsModuleIndicator)return!1}}return!0}function K(Ie,Ge,he,ve,Ve,_e,Le,qe,Xe){var De=e.isSourceFileJS(Ge),Ae=Ie.getCompilerOptions(),Ye=e.createModuleSpecifierResolutionHost(Ie,Le),Lr=e.memoizeOne(function(Or){return Or?Le.getPackageJsonAutoImportProvider().getTypeChecker():Ie.getTypeChecker()}),Er=Xe?function(Or){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(Or,Ge,Ye,qe),computedWithoutCache:!1}}:function(Or,Ke){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(Or,Ke,Ae,Ge,Ye,qe)},lr=0,Cr=e.flatMap(_e,function(Or){var Ke=Lr(Or.isFromPackageJson),Pe=Er(Or.moduleSymbol,Ke),Hr=Pe.computedWithoutCache,ur=Pe.moduleSpecifiers,vr=!!(Or.targetFlags&111551),de=k(ve,!0,Or.symbol,Or.targetFlags,Ke,Ae);return lr+=Hr?1:0,ur==null?void 0:ur.map(function(Fe){return!vr&&De&&he!==void 0?{kind:1,moduleSpecifier:Fe,position:he,exportInfo:Or}:{kind:3,moduleSpecifier:Fe,importKind:D(Ge,Or.exportKind,Ae),useRequire:Ve,addAsTypeOnly:de,exportInfo:Or}})});return{computedWithoutCacheCount:lr,fixes:Cr}}function Z(Ie,Ge,he,ve,Ve,_e,Le,qe,Xe){var De=e.firstDefined(Ge,function(Ae){return ne(Ae,_e,Le,he.getTypeChecker(),he.getCompilerOptions())});return De?[De]:K(he,ve,Ve,_e,Le,Ie,qe,Xe).fixes}function ne(Ie,Ge,he,ve,Ve){var _e=Ie.declaration,Le=Ie.importKind,qe=Ie.symbol,Xe=Ie.targetFlags,De=e.tryGetModuleSpecifierFromDeclaration(_e);if(De){var Ae=he?4:k(Ge,!0,qe,Xe,ve,Ve);return{kind:3,moduleSpecifier:De,importKind:Le,addAsTypeOnly:Ae,useRequire:he}}}function R(Ie,Ge,he,ve){var Ve=e.getTokenAtPosition(Ie.sourceFile,he),_e=Ge===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?I(Ie,Ve):e.isIdentifier(Ve)?m(Ie,Ve,ve):void 0;return _e&&Rn(Rn({},_e),{fixes:Y(_e.fixes,Ie.sourceFile,Ie.program,Ie.host,Ie.preferences)})}function Y(Ie,Ge,he,ve,Ve){var _e=e.createPackageJsonImportFilter(Ge,Ve,ve).allowsImportingSpecifier;return e.sort(Ie,function(Le,qe){return e.compareValues(Le.kind,qe.kind)||$(Le,qe,Ge,he,_e)})}function U(Ie,Ge,he,ve,Ve){if(!!e.some(Ie)){if(Ie[0].kind===0||Ie[0].kind===2)return Ie[0];var _e=e.createPackageJsonImportFilter(Ge,Ve,ve).allowsImportingSpecifier;return Ie.reduce(function(Le,qe){return $(qe,Le,Ge,he,_e)===-1?qe:Le})}}function $(Ie,Ge,he,ve,Ve){return Ie.kind!==0&&Ge.kind!==0?e.compareBooleans(Ve(Ge.moduleSpecifier),Ve(Ie.moduleSpecifier))||T(Ie.moduleSpecifier,Ge.moduleSpecifier,he,ve)||e.compareNumberOfDirectorySeparators(Ie.moduleSpecifier,Ge.moduleSpecifier):0}function T(Ie,Ge,he,ve){return e.startsWith(Ie,"node:")&&!e.startsWith(Ge,"node:")?e.shouldUseUriStyleNodeCoreModules(he,ve)?-1:1:e.startsWith(Ge,"node:")&&!e.startsWith(Ie,"node:")?e.shouldUseUriStyleNodeCoreModules(he,ve)?1:-1:0}function I(Ie,Ge){var he=Ie.sourceFile,ve=Ie.program,Ve=Ie.host,_e=Ie.preferences,Le=ve.getTypeChecker(),qe=y(Ge,Le);if(!!qe){var Xe=Le.getAliasedSymbol(qe),De=qe.name,Ae=[{symbol:qe,moduleSymbol:Xe,moduleFileName:void 0,exportKind:3,targetFlags:Xe.flags,isFromPackageJson:!1}],Ye=w(he,ve),Lr=P(Ae,De,e.isIdentifier(Ge)?Ge.getStart(he):void 0,!1,Ye,ve,he,Ve,_e);return{fixes:Lr,symbolName:De}}}function y(Ie,Ge){var he=e.isIdentifier(Ie)?Ge.getSymbolAtLocation(Ie):void 0;if(e.isUMDExportSymbol(he))return he;var ve=Ie.parent;return e.isJsxOpeningLikeElement(ve)&&ve.tagName===Ie||e.isJsxOpeningFragment(ve)?e.tryCast(Ge.resolveName(Ge.getJsxNamespace(ve),e.isJsxOpeningLikeElement(ve)?Ie:ve,111551,!1),e.isUMDExportSymbol):void 0}function D(Ie,Ge,he,ve){switch(Ge){case 0:return 0;case 1:return 1;case 2:return te(Ie,he,!!ve);case 3:return C(Ie,he,!!ve);default:return e.Debug.assertNever(Ge)}}n.getImportKind=D;function C(Ie,Ge,he){if(e.getAllowSyntheticDefaultImports(Ge))return 1;var ve=e.getEmitModuleKind(Ge);switch(ve){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(Ie)&&(e.isExternalModule(Ie)||he)?2:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return Ie.impliedNodeFormat===e.ModuleKind.ESNext?2:3;default:return e.Debug.assertNever(ve,"Unexpected moduleKind ".concat(ve))}}function m(Ie,Ge,he){var ve=Ie.sourceFile,Ve=Ie.program,_e=Ie.cancellationToken,Le=Ie.host,qe=Ie.preferences,Xe=Ve.getTypeChecker(),De=Ve.getCompilerOptions(),Ae=g(ve,Xe,Ge,De);e.Debug.assert(Ae!=="default","'default' isn't a legal identifier and couldn't occur here");var Ye=e.isValidTypeOnlyAliasUseSite(Ge),Lr=w(ve,Ve),Er=F(Ae,e.getMeaningFromLocation(Ge),_e,ve,Ve,he,Le,qe),lr=e.arrayFrom(e.flatMapIterator(Er.entries(),function(Cr){Cr[0];var Or=Cr[1];return P(Or,Ae,Ge.getStart(ve),Ye,Lr,Ve,ve,Le,qe)}));return{fixes:lr,symbolName:Ae}}function u(Ie){return Ie===2||Ie===3}function g(Ie,Ge,he,ve){var Ve=he.parent;if((e.isJsxOpeningLikeElement(Ve)||e.isJsxClosingElement(Ve))&&Ve.tagName===he&&u(ve.jsx)){var _e=Ge.getJsxNamespace(Ie);if(e.isIntrinsicJsxName(he.text)||!Ge.resolveName(_e,Ve,111551,!0))return _e}return he.text}function F(Ie,Ge,he,ve,Ve,_e,Le,qe){var Xe,De=e.createMultiMap(),Ae=e.createPackageJsonImportFilter(ve,qe,Le),Ye=(Xe=Le.getModuleSpecifierCache)===null||Xe===void 0?void 0:Xe.call(Le),Lr=e.memoizeOne(function(lr){return e.createModuleSpecifierResolutionHost(lr?Le.getPackageJsonAutoImportProvider():Ve,Le)});function Er(lr,Cr,Or,Ke,Pe,Hr){var ur=Lr(Hr);if(Cr&&e.isImportableFile(Pe,ve,Cr,qe,Ae,ur,Ye)||!Cr&&Ae.allowsImportingAmbientModule(lr,ur)){var vr=Pe.getTypeChecker();De.add(e.getUniqueSymbolId(Or,vr).toString(),{symbol:Or,moduleSymbol:lr,moduleFileName:Cr==null?void 0:Cr.fileName,exportKind:Ke,targetFlags:e.skipAlias(Or,vr).flags,isFromPackageJson:Hr})}}return e.forEachExternalModuleToImportFrom(Ve,Le,_e,function(lr,Cr,Or,Ke){var Pe=Or.getTypeChecker();he.throwIfCancellationRequested();var Hr=Or.getCompilerOptions(),ur=e.getDefaultLikeExportInfo(lr,Pe,Hr);ur&&(ur.name===Ie||ke(lr,e.getEmitScriptTarget(Hr))===Ie)&&ge(ur.symbolForMeaning,Ge)&&Er(lr,Cr,ur.symbol,ur.exportKind,Or,Ke);var vr=Pe.tryGetMemberInModuleExportsAndProperties(Ie,lr);vr&&ge(vr,Ge)&&Er(lr,Cr,vr,0,Or,Ke)}),De}function te(Ie,Ge,he){var ve=e.getAllowSyntheticDefaultImports(Ge),Ve=e.isInJSFile(Ie);if(!Ve&&e.getEmitModuleKind(Ge)>=e.ModuleKind.ES2015)return ve?1:2;if(Ve)return e.isExternalModule(Ie)||he?ve?1:2:3;for(var _e=0,Le=Ie.statements;_e<Le.length;_e++){var qe=Le[_e];if(e.isImportEqualsDeclaration(qe)&&!e.nodeIsMissing(qe.moduleReference))return 3}return ve?1:3}function ue(Ie,Ge,he,ve,Ve,_e){var Le,qe=e.textChanges.ChangeTracker.with(Ie,function(Xe){Le=X(Xe,Ge,he,ve,Ve,_e)});return n.createCodeFixAction(n.importFixName,qe,Le,f,e.Diagnostics.Add_all_missing_imports)}function X(Ie,Ge,he,ve,Ve,_e){switch(ve.kind){case 0:return Se(Ie,Ge,ve),[e.Diagnostics.Change_0_to_1,he,"".concat(ve.namespacePrefix,".").concat(he)];case 1:return Ce(Ie,Ge,ve,Ve),[e.Diagnostics.Change_0_to_1,he,O(ve.moduleSpecifier,Ve)+he];case 2:{var Le=ve.importClauseOrBindingPattern,qe=ve.importKind,Xe=ve.addAsTypeOnly,De=ve.moduleSpecifier;j(Ie,Ge,Le,qe===1?{name:he,addAsTypeOnly:Xe}:void 0,qe===0?[{name:he,addAsTypeOnly:Xe}]:e.emptyArray,_e);var Ae=e.stripQuotes(De);return[qe===1?e.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:e.Diagnostics.Add_0_to_existing_import_declaration_from_1,he,Ae]}case 3:{var qe=ve.importKind,De=ve.moduleSpecifier,Xe=ve.addAsTypeOnly,Ye=ve.useRequire,Lr=Ye?z:V,Er=qe===1?{name:he,addAsTypeOnly:Xe}:void 0,lr=qe===0?[{name:he,addAsTypeOnly:Xe}]:void 0,Cr=qe===2||qe===3?{importKind:qe,name:he,addAsTypeOnly:Xe}:void 0;return e.insertImports(Ie,Ge,Lr(De,Ve,Er,lr,Cr),!0),[qe===1?e.Diagnostics.Import_default_0_from_module_1:e.Diagnostics.Import_0_from_module_1,he,De]}default:return e.Debug.assertNever(ve,"Unexpected fix kind ".concat(ve.kind))}}function j(Ie,Ge,he,ve,Ve,_e){var Le;if(he.kind===200){ve&&$e(he,ve.name,"default");for(var qe=0,Xe=Ve;qe<Xe.length;qe++){var De=Xe[qe];$e(he,De.name,void 0)}return}var Ae=he.isTypeOnly&&e.some(Gt([ve],Ve,!0),function(Dr){return(Dr==null?void 0:Dr.addAsTypeOnly)===4}),Ye=he.namedBindings&&((Le=e.tryCast(he.namedBindings,e.isNamedImports))===null||Le===void 0?void 0:Le.elements),Lr=Ae&&_e.preserveValueImports&&_e.isolatedModules;if(ve&&(e.Debug.assert(!he.name,"Cannot add a default import to an import clause that already has one"),Ie.insertNodeAt(Ge,he.getStart(Ge),e.factory.createIdentifier(ve.name),{suffix:", "})),Ve.length){var Er=e.stableSort(Ve.map(function(Dr){return e.factory.createImportSpecifier((!he.isTypeOnly||Ae)&&Q(Dr),void 0,e.factory.createIdentifier(Dr.name))}),e.OrganizeImports.compareImportOrExportSpecifiers);if((Ye==null?void 0:Ye.length)&&e.OrganizeImports.importSpecifiersAreSorted(Ye))for(var lr=0,Cr=Er;lr<Cr.length;lr++){var Or=Cr[lr],Ke=Lr&&!Or.isTypeOnly?0:e.OrganizeImports.getImportSpecifierInsertionIndex(Ye,Or),Pe=he.namedBindings.elements[Ke-1];Pe?Ie.insertNodeInListAfter(Ge,Pe,Or):Ie.insertNodeBefore(Ge,Ye[0],Or,!e.positionsAreOnSameLine(Ye[0].getStart(),he.parent.getStart(),Ge))}else if(Ye!=null&&Ye.length)for(var Hr=0,ur=Er;Hr<ur.length;Hr++){var Or=ur[Hr];Ie.insertNodeInListAfter(Ge,e.last(Ye),Or,Ye)}else if(Er.length){var vr=e.factory.createNamedImports(Er);he.namedBindings?Ie.replaceNode(Ge,he.namedBindings,vr):Ie.insertNodeAfter(Ge,e.Debug.checkDefined(he.name,"Import clause must have either named imports or a default import"),vr)}}if(Ae&&(Ie.delete(Ge,e.getTypeKeywordOfTypeOnlyImport(he,Ge)),Lr&&Ye))for(var de=0,Fe=Ye;de<Fe.length;de++){var De=Fe[de];Ie.insertModifierBefore(Ge,151,De)}function $e(Dr,Fr,He){var pr=e.factory.createBindingElement(void 0,He,Fr);Dr.elements.length?Ie.insertNodeInListAfter(Ge,e.last(Dr.elements),pr):Ie.replaceNode(Ge,Dr,e.factory.createObjectBindingPattern([pr]))}}function Se(Ie,Ge,he){var ve=he.namespacePrefix,Ve=he.position;Ie.insertText(Ge,Ve,ve+".")}function Ce(Ie,Ge,he,ve){var Ve=he.moduleSpecifier,_e=he.position;Ie.insertText(Ge,_e,O(Ve,ve))}function O(Ie,Ge){var he=e.getQuoteFromPreference(Ge);return"import(".concat(he).concat(Ie).concat(he,").")}function Q(Ie){var Ge=Ie.addAsTypeOnly;return Ge===2}function V(Ie,Ge,he,ve,Ve){var _e=e.makeStringLiteral(Ie,Ge),Le;if(he!==void 0||(ve==null?void 0:ve.length)){var qe=(!he||Q(he))&&e.every(ve,Q);Le=e.combine(Le,e.makeImport(he&&e.factory.createIdentifier(he.name),ve==null?void 0:ve.map(function(De){var Ae=De.addAsTypeOnly,Ye=De.name;return e.factory.createImportSpecifier(!qe&&Ae===2,void 0,e.factory.createIdentifier(Ye))}),Ie,Ge,qe))}if(Ve){var Xe=Ve.importKind===3?e.factory.createImportEqualsDeclaration(void 0,void 0,Q(Ve),e.factory.createIdentifier(Ve.name),e.factory.createExternalModuleReference(_e)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(Q(Ve),void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(Ve.name))),_e,void 0);Le=e.combine(Le,Xe)}return e.Debug.checkDefined(Le)}function z(Ie,Ge,he,ve,Ve){var _e=e.makeStringLiteral(Ie,Ge),Le;if(he||(ve==null?void 0:ve.length)){var qe=(ve==null?void 0:ve.map(function(De){var Ae=De.name;return e.factory.createBindingElement(void 0,void 0,Ae)}))||[];he&&qe.unshift(e.factory.createBindingElement(void 0,"default",he.name));var Xe=Te(e.factory.createObjectBindingPattern(qe),_e);Le=e.combine(Le,Xe)}if(Ve){var Xe=Te(Ve.name,_e);Le=e.combine(Le,Xe)}return e.Debug.checkDefined(Le)}function Te(Ie,Ge){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(typeof Ie=="string"?e.factory.createIdentifier(Ie):Ie,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[Ge]))],2))}function ge(Ie,Ge){var he=Ie.declarations;return e.some(he,function(ve){return!!(e.getMeaningFromDeclaration(ve)&Ge)})}function ke(Ie,Ge){return Me(e.removeFileExtension(e.stripQuotes(Ie.name)),Ge)}n.moduleSymbolToValidIdentifier=ke;function Me(Ie,Ge){var he=e.getBaseFileName(e.removeSuffix(Ie,"/index")),ve="",Ve=!0,_e=he.charCodeAt(0);e.isIdentifierStart(_e,Ge)?ve+=String.fromCharCode(_e):Ve=!1;for(var Le=1;Le<he.length;Le++){var qe=he.charCodeAt(Le),Xe=e.isIdentifierPart(qe,Ge);if(Xe){var De=String.fromCharCode(qe);Ve||(De=De.toUpperCase()),ve+=De}Ve=Xe}return e.isStringANonContextualKeyword(ve)?"_".concat(ve):ve||"_"}n.moduleSpecifierToValidIdentifier=Me})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f,d="fixOverrideModifier",a="fixAddOverrideModifier",p="fixRemoveOverrideModifier",N=[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],H=(f={},f[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,a,e.Diagnostics.Add_all_missing_override_modifiers],f[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,p,e.Diagnostics.Remove_all_unnecessary_override_modifiers],f[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,a,e.Diagnostics.Add_all_missing_override_modifiers],f[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,a,e.Diagnostics.Remove_all_unnecessary_override_modifiers],f[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,p,e.Diagnostics.Remove_all_unnecessary_override_modifiers],f);n.registerCodeFix({errorCodes:N,getCodeActions:function(b){var P=b.errorCode,S=b.span,B=b.sourceFile,J=H[P];if(!J)return e.emptyArray;var k=J[0],M=J[1],x=J[2];if(e.isSourceFileJS(B))return e.emptyArray;var w=e.textChanges.ChangeTracker.with(b,function(K){return h(K,b,P,S.start)});return[n.createCodeFixActionMaybeFixAll(d,w,k,M,x)]},fixIds:[d,a,p],getAllCodeActions:function(b){return n.codeFixAll(b,N,function(P,S){var B=S.code,J=S.start,k=S.file,M=H[B];!M||M[1]!==b.fixId||e.isSourceFileJS(k)||h(P,b,B,J)})}});function h(b,P,S,B){switch(S){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 v(b,P.sourceFile,B);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 A(b,P.sourceFile,B);default:e.Debug.fail("Unexpected error code: "+S)}}function v(b,P,S){var B=ie(P,S),J=B.modifiers||e.emptyArray,k=e.find(J,e.isStaticModifier),M=e.find(J,e.isAbstractModifier),x=e.find(J,function(Z){return e.isAccessibilityModifier(Z.kind)}),w=M?M.end:k?k.end:x?x.end:B.decorators?e.skipTrivia(P.text,B.decorators.end):B.getStart(P),K=x||k||M?{prefix:" "}:{suffix:" "};b.insertModifierAt(P,w,158,K)}function A(b,P,S){var B=ie(P,S),J=B.modifiers&&e.find(B.modifiers,function(k){return k.kind===158});e.Debug.assertIsDefined(J),b.deleteModifier(P,J)}function q(b){switch(b.kind){case 170:case 166:case 168:case 171:case 172:return!0;case 163:return e.isParameterPropertyDeclaration(b,b.parent);default:return!1}}function ie(b,P){var S=e.getTokenAtPosition(b,P),B=e.findAncestor(S,function(J){return e.isClassLike(J)?"quit":q(J)});return e.Debug.assert(B&&q(B)),B}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixNoPropertyAccessFromIndexSignature",d=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];n.registerCodeFix({errorCodes:d,fixIds:[f],getCodeActions:function(N){var H=N.sourceFile,h=N.span,v=N.preferences,A=p(H,h.start),q=e.textChanges.ChangeTracker.with(N,function(ie){return a(ie,N.sourceFile,A,v)});return[n.createCodeFixAction(f,q,[e.Diagnostics.Use_element_access_for_0,A.name.text],f,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:function(N){return n.codeFixAll(N,d,function(H,h){return a(H,h.file,p(h.file,h.start),N.preferences)})}});function a(N,H,h,v){var A=e.getQuotePreference(H,v),q=e.factory.createStringLiteral(h.name.text,A===0);N.replaceNode(H,h,e.isPropertyAccessChain(h)?e.factory.createElementAccessChain(h.expression,h.questionDotToken,q):e.factory.createElementAccessExpression(h.expression,q))}function p(N,H){return e.cast(e.getTokenAtPosition(N,H).parent,e.isPropertyAccessExpression)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixImplicitThis",d=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(p){var N=p.sourceFile,H=p.program,h=p.span,v,A=e.textChanges.ChangeTracker.with(p,function(q){v=a(q,N,h.start,H.getTypeChecker())});return v?[n.createCodeFixAction(f,A,v,f,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[f],getAllCodeActions:function(p){return n.codeFixAll(p,d,function(N,H){a(N,H.file,H.start,p.program.getTypeChecker())})}});function a(p,N,H,h){var v=e.getTokenAtPosition(N,H);e.Debug.assert(v.kind===108);var A=e.getThisContainer(v,!1);if(!(!e.isFunctionDeclaration(A)&&!e.isFunctionExpression(A))&&!e.isSourceFile(e.getThisContainer(A,!1))){var q=e.Debug.assertDefined(e.findChildOfKind(A,98,N)),ie=A.name,b=e.Debug.assertDefined(A.body);return e.isFunctionExpression(A)?ie&&e.FindAllReferences.Core.isSymbolReferencedInFile(ie,h,N,b)?void 0:(p.delete(N,q),ie&&p.delete(N,ie),p.insertText(N,b.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,ie?ie.text:e.ANONYMOUS]):(p.replaceNode(N,q,e.factory.createToken(85)),p.insertText(N,ie.end," = "),p.insertText(N,b.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,ie.text])}}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixIncorrectNamedTupleSyntax",d=[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];n.registerCodeFix({errorCodes:d,getCodeActions:function(N){var H=N.sourceFile,h=N.span,v=a(H,h.start),A=e.textChanges.ChangeTracker.with(N,function(q){return p(q,H,v)});return[n.createCodeFixAction(f,A,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,f,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[f]});function a(N,H){var h=e.getTokenAtPosition(N,H);return e.findAncestor(h,function(v){return v.kind===196})}function p(N,H,h){if(!!h){for(var v=h.type,A=!1,q=!1;v.kind===184||v.kind===185||v.kind===190;)v.kind===184?A=!0:v.kind===185&&(q=!0),v=v.type;var ie=e.factory.updateNamedTupleMember(h,h.dotDotDotToken||(q?e.factory.createToken(25):void 0),h.name,h.questionToken||(A?e.factory.createToken(57):void 0),v);ie!==h&&N.replaceNode(H,h,ie)}}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixSpelling",d=[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_namespace_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.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(h){var v=h.sourceFile,A=h.errorCode,q=a(v,h.span.start,h,A);if(!!q){var ie=q.node,b=q.suggestedSymbol,P=e.getEmitScriptTarget(h.host.getCompilationSettings()),S=e.textChanges.ChangeTracker.with(h,function(B){return p(B,v,ie,b,P)});return[n.createCodeFixAction("spelling",S,[e.Diagnostics.Change_spelling_to_0,e.symbolName(b)],f,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[f],getAllCodeActions:function(h){return n.codeFixAll(h,d,function(v,A){var q=a(A.file,A.start,h,A.code),ie=e.getEmitScriptTarget(h.host.getCompilationSettings());q&&p(v,h.sourceFile,q.node,q.suggestedSymbol,ie)})}});function a(h,v,A,q){var ie=e.getTokenAtPosition(h,v),b=ie.parent;if(!((q===e.Diagnostics.No_overload_matches_this_call.code||q===e.Diagnostics.Type_0_is_not_assignable_to_type_1.code)&&!e.isJsxAttribute(b))){var P=A.program.getTypeChecker(),S;if(e.isPropertyAccessExpression(b)&&b.name===ie){e.Debug.assert(e.isMemberName(ie),"Expected an identifier for spelling (property access)");var B=P.getTypeAtLocation(b.expression);b.flags&32&&(B=P.getNonNullableType(B)),S=P.getSuggestedSymbolForNonexistentProperty(ie,B)}else if(e.isBinaryExpression(b)&&b.operatorToken.kind===101&&b.left===ie&&e.isPrivateIdentifier(ie)){var J=P.getTypeAtLocation(b.right);S=P.getSuggestedSymbolForNonexistentProperty(ie,J)}else if(e.isQualifiedName(b)&&b.right===ie){var k=P.getSymbolAtLocation(b.left);k&&k.flags&1536&&(S=P.getSuggestedSymbolForNonexistentModule(b.right,k))}else if(e.isImportSpecifier(b)&&b.name===ie){e.Debug.assertNode(ie,e.isIdentifier,"Expected an identifier for spelling (import)");var M=e.findAncestor(ie,e.isImportDeclaration),x=H(h,A,M);x&&x.symbol&&(S=P.getSuggestedSymbolForNonexistentModule(ie,x.symbol))}else if(e.isJsxAttribute(b)&&b.name===ie){e.Debug.assertNode(ie,e.isIdentifier,"Expected an identifier for JSX attribute");var w=e.findAncestor(ie,e.isJsxOpeningLikeElement),K=P.getContextualTypeForArgumentAtIndex(w,0);S=P.getSuggestedSymbolForNonexistentJSXAttribute(ie,K)}else if(e.hasSyntacticModifier(b,16384)&&e.isClassElement(b)&&b.name===ie){var Z=e.findAncestor(ie,e.isClassLike),ne=Z?e.getEffectiveBaseTypeNode(Z):void 0,R=ne?P.getTypeAtLocation(ne):void 0;R&&(S=P.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(ie),R))}else{var Y=e.getMeaningFromLocation(ie),U=e.getTextOfNode(ie);e.Debug.assert(U!==void 0,"name should be defined"),S=P.getSuggestedSymbolForNonexistentSymbol(ie,U,N(Y))}return S===void 0?void 0:{node:ie,suggestedSymbol:S}}}function p(h,v,A,q,ie){var b=e.symbolName(q);if(!e.isIdentifierText(b,ie)&&e.isPropertyAccessExpression(A.parent)){var P=q.valueDeclaration;P&&e.isNamedDeclaration(P)&&e.isPrivateIdentifier(P.name)?h.replaceNode(v,A,e.factory.createIdentifier(b)):h.replaceNode(v,A.parent,e.factory.createElementAccessExpression(A.parent.expression,e.factory.createStringLiteral(b)))}else h.replaceNode(v,A,e.factory.createIdentifier(b))}function N(h){var v=0;return h&4&&(v|=1920),h&2&&(v|=788968),h&1&&(v|=111551),v}function H(h,v,A){if(!(!A||!e.isStringLiteralLike(A.moduleSpecifier))){var q=e.getResolvedModule(h,A.moduleSpecifier.text,e.getModeForUsageLocation(h,A.moduleSpecifier));if(!!q)return v.program.getSourceFile(q.resolvedFileName)}}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="returnValueCorrect",d="fixAddReturnStatement",a="fixRemoveBracesFromArrowFunctionBody",p="fixWrapTheBlockWithParen",N=[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],H;(function(M){M[M.MissingReturnStatement=0]="MissingReturnStatement",M[M.MissingParentheses=1]="MissingParentheses"})(H||(H={})),n.registerCodeFix({errorCodes:N,fixIds:[d,a,p],getCodeActions:function(M){var x=M.program,w=M.sourceFile,K=M.span.start,Z=M.errorCode,ne=q(x.getTypeChecker(),w,K,Z);if(!!ne)return ne.kind===H.MissingReturnStatement?e.append([B(M,ne.expression,ne.statement)],e.isArrowFunction(ne.declaration)?J(M,ne.declaration,ne.expression,ne.commentSource):void 0):[k(M,ne.declaration,ne.expression)]},getAllCodeActions:function(M){return n.codeFixAll(M,N,function(x,w){var K=q(M.program.getTypeChecker(),w.file,w.start,w.code);if(!!K)switch(M.fixId){case d:b(x,w.file,K.expression,K.statement);break;case a:if(!e.isArrowFunction(K.declaration))return;P(x,w.file,K.declaration,K.expression,K.commentSource,!1);break;case p:if(!e.isArrowFunction(K.declaration))return;S(x,w.file,K.declaration,K.expression);break;default:e.Debug.fail(JSON.stringify(M.fixId))}})}});function h(M,x,w){var K=M.createSymbol(4,x.escapedText);K.type=M.getTypeAtLocation(w);var Z=e.createSymbolTable([K]);return M.createAnonymousType(void 0,Z,[],[],[])}function v(M,x,w,K){if(!(!x.body||!e.isBlock(x.body)||e.length(x.body.statements)!==1)){var Z=e.first(x.body.statements);if(e.isExpressionStatement(Z)&&A(M,x,M.getTypeAtLocation(Z.expression),w,K))return{declaration:x,kind:H.MissingReturnStatement,expression:Z.expression,statement:Z,commentSource:Z.expression};if(e.isLabeledStatement(Z)&&e.isExpressionStatement(Z.statement)){var ne=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(Z.label,Z.statement.expression)]),R=h(M,Z.label,Z.statement.expression);if(A(M,x,R,w,K))return e.isArrowFunction(x)?{declaration:x,kind:H.MissingParentheses,expression:ne,statement:Z,commentSource:Z.statement.expression}:{declaration:x,kind:H.MissingReturnStatement,expression:ne,statement:Z,commentSource:Z.statement.expression}}else if(e.isBlock(Z)&&e.length(Z.statements)===1){var Y=e.first(Z.statements);if(e.isLabeledStatement(Y)&&e.isExpressionStatement(Y.statement)){var ne=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(Y.label,Y.statement.expression)]),R=h(M,Y.label,Y.statement.expression);if(A(M,x,R,w,K))return{declaration:x,kind:H.MissingReturnStatement,expression:ne,statement:Z,commentSource:Y}}}}}function A(M,x,w,K,Z){if(Z){var ne=M.getSignatureFromDeclaration(x);if(ne){e.hasSyntacticModifier(x,256)&&(w=M.createPromiseType(w));var R=M.createSignature(x,ne.typeParameters,ne.thisParameter,ne.parameters,w,void 0,ne.minArgumentCount,ne.flags);w=M.createAnonymousType(void 0,e.createSymbolTable(),[R],[],[])}else w=M.getAnyType()}return M.isTypeAssignableTo(w,K)}function q(M,x,w,K){var Z=e.getTokenAtPosition(x,w);if(!!Z.parent){var ne=e.findAncestor(Z.parent,e.isFunctionLikeDeclaration);switch(K){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return!ne||!ne.body||!ne.type||!e.rangeContainsRange(ne.type,Z)?void 0:v(M,ne,M.getTypeFromTypeNode(ne.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!ne||!e.isCallExpression(ne.parent)||!ne.body)return;var R=ne.parent.arguments.indexOf(ne),Y=M.getContextualTypeForArgumentAtIndex(ne.parent,R);return Y?v(M,ne,Y,!0):void 0;case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(Z)||!e.isVariableLike(Z.parent)&&!e.isJsxAttribute(Z.parent))return;var U=ie(Z.parent);return!U||!e.isFunctionLikeDeclaration(U)||!U.body?void 0:v(M,U,M.getTypeAtLocation(Z.parent),!0)}}}function ie(M){switch(M.kind){case 253:case 163:case 202:case 166:case 294:return M.initializer;case 284:return M.initializer&&(e.isJsxExpression(M.initializer)?M.initializer.expression:void 0);case 295:case 165:case 297:case 345:case 338:return}}function b(M,x,w,K){e.suppressLeadingAndTrailingTrivia(w);var Z=e.probablyUsesSemicolons(x);M.replaceNode(x,K,e.factory.createReturnStatement(w),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:Z?";":void 0})}function P(M,x,w,K,Z,ne){var R=ne||e.needsParentheses(K)?e.factory.createParenthesizedExpression(K):K;e.suppressLeadingAndTrailingTrivia(Z),e.copyComments(Z,R),M.replaceNode(x,w.body,R)}function S(M,x,w,K){M.replaceNode(x,w.body,e.factory.createParenthesizedExpression(K))}function B(M,x,w){var K=e.textChanges.ChangeTracker.with(M,function(Z){return b(Z,M.sourceFile,x,w)});return n.createCodeFixAction(f,K,e.Diagnostics.Add_a_return_statement,d,e.Diagnostics.Add_all_missing_return_statement)}function J(M,x,w,K){var Z=e.textChanges.ChangeTracker.with(M,function(ne){return P(ne,M.sourceFile,x,w,K,!1)});return n.createCodeFixAction(f,Z,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function k(M,x,w){var K=e.textChanges.ChangeTracker.with(M,function(Z){return S(Z,M.sourceFile,x,w)});return n.createCodeFixAction(f,K,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,p,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixMissingMember",d="fixMissingProperties",a="fixMissingAttributes",p="fixMissingFunctionDeclaration",N=[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.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code];n.registerCodeFix({errorCodes:N,getCodeActions:function(T){var I=T.program.getTypeChecker(),y=h(T.sourceFile,T.span.start,T.errorCode,I,T.program);if(!!y){if(y.kind===3){var D=e.textChanges.ChangeTracker.with(T,function(C){return ne(C,T,y)});return[n.createCodeFixAction(d,D,e.Diagnostics.Add_missing_properties,d,e.Diagnostics.Add_all_missing_properties)]}if(y.kind===4){var D=e.textChanges.ChangeTracker.with(T,function(m){return Z(m,T,y)});return[n.createCodeFixAction(a,D,e.Diagnostics.Add_missing_attributes,a,e.Diagnostics.Add_all_missing_attributes)]}if(y.kind===2){var D=e.textChanges.ChangeTracker.with(T,function(m){return K(m,T,y)});return[n.createCodeFixAction(p,D,[e.Diagnostics.Add_missing_function_declaration_0,y.token.text],p,e.Diagnostics.Add_all_missing_function_declarations)]}if(y.kind===0){var D=e.textChanges.ChangeTracker.with(T,function(m){return w(m,T.program.getTypeChecker(),y)});return[n.createCodeFixAction(f,D,[e.Diagnostics.Add_missing_enum_member_0,y.token.text],f,e.Diagnostics.Add_all_missing_members)]}return e.concatenate(M(T,y),A(T,y))}},fixIds:[f,p,d,a],getAllCodeActions:function(T){var I=T.program,y=T.fixId,D=I.getTypeChecker(),C=new e.Map,m=new e.Map;return n.createCombinedCodeActions(e.textChanges.ChangeTracker.with(T,function(u){n.eachDiagnostic(T,N,function(g){var F=h(g.file,g.start,g.code,D,T.program);if(!(!F||!e.addToSeen(C,e.getNodeId(F.parentDeclaration)+"#"+F.token.text))){if(y===p&&F.kind===2)K(u,T,F);else if(y===d&&F.kind===3)ne(u,T,F);else if(y===a&&F.kind===4)Z(u,T,F);else if(F.kind===0&&w(u,D,F),F.kind===1){var te=F.parentDeclaration,ue=F.token,X=e.getOrUpdate(m,te,function(){return[]});X.some(function(j){return j.token.text===ue.text})||X.push(F)}}}),m.forEach(function(g,F){for(var te=n.getAllSupers(F,D),ue=function(Ce){if(te.some(function(Me){var Ie=m.get(Me);return!!Ie&&Ie.some(function(Ge){var he=Ge.token;return he.text===Ce.token.text})}))return"continue";var O=Ce.parentDeclaration,Q=Ce.declSourceFile,V=Ce.modifierFlags,z=Ce.token,Te=Ce.call,ge=Ce.isJSFile;if(Te&&!e.isPrivateIdentifier(z))x(T,u,Te,z,V&32,O,Q);else if(ge&&!e.isInterfaceDeclaration(O))ie(u,Q,O,z,!!(V&32));else{var ke=S(I.getTypeChecker(),O,z);B(u,Q,O,z.text,ke,V&32)}},X=0,j=g;X<j.length;X++){var Se=j[X];ue(Se)}})}))}});var H;(function(T){T[T.Enum=0]="Enum",T[T.ClassOrInterface=1]="ClassOrInterface",T[T.Function=2]="Function",T[T.ObjectLiteral=3]="ObjectLiteral",T[T.JsxAttributes=4]="JsxAttributes"})(H||(H={}));function h(T,I,y,D,C){var m=e.getTokenAtPosition(T,I),u=m.parent;if(y===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(m.kind===18&&e.isObjectLiteralExpression(u)&&e.isCallExpression(u.parent)))return;var g=e.findIndex(u.parent.arguments,function(he){return he===u});if(g<0)return;var F=e.singleOrUndefined(D.getSignaturesOfType(D.getTypeAtLocation(u.parent.expression),0));if(!(F&&F.declaration&&F.parameters[g]))return;var te=F.parameters[g].valueDeclaration;if(!(te&&e.isParameter(te)&&e.isIdentifier(te.name)))return;var ue=e.arrayFrom(D.getUnmatchedProperties(D.getTypeAtLocation(u),D.getTypeAtLocation(te),!1,!1));return e.length(ue)?{kind:3,token:te.name,properties:ue,indentation:0,parentDeclaration:u}:void 0}if(!!e.isMemberName(m)){if(e.isIdentifier(m)&&e.hasInitializer(u)&&u.initializer&&e.isObjectLiteralExpression(u.initializer)){var ue=e.arrayFrom(D.getUnmatchedProperties(D.getTypeAtLocation(u.initializer),D.getTypeAtLocation(m),!1,!1));return e.length(ue)?{kind:3,token:m,properties:ue,indentation:void 0,parentDeclaration:u.initializer}:void 0}if(e.isIdentifier(m)&&e.isJsxOpeningLikeElement(m.parent)){var X=$(D,m.parent);return e.length(X)?{kind:4,token:m,attributes:X,parentDeclaration:m.parent}:void 0}if(e.isIdentifier(m)&&e.isCallExpression(u))return{kind:2,token:m,call:u,sourceFile:T,modifierFlags:0,parentDeclaration:T};if(!!e.isPropertyAccessExpression(u)){var j=e.skipConstraint(D.getTypeAtLocation(u.expression)),Se=j.symbol;if(!(!Se||!Se.declarations)){if(e.isIdentifier(m)&&e.isCallExpression(u.parent)){var Ce=e.find(Se.declarations,e.isModuleDeclaration),O=Ce==null?void 0:Ce.getSourceFile();if(Ce&&O&&!v(C,O))return{kind:2,token:m,call:u.parent,sourceFile:T,modifierFlags:1,parentDeclaration:Ce};var Q=e.find(Se.declarations,e.isSourceFile);if(T.commonJsModuleIndicator)return;if(Q&&!v(C,Q))return{kind:2,token:m,call:u.parent,sourceFile:Q,modifierFlags:1,parentDeclaration:Q}}var V=e.find(Se.declarations,e.isClassLike);if(!(!V&&e.isPrivateIdentifier(m))){var z=V||e.find(Se.declarations,e.isInterfaceDeclaration);if(z&&!v(C,z.getSourceFile())){var Te=(j.target||j)!==D.getDeclaredTypeOfSymbol(Se);if(Te&&(e.isPrivateIdentifier(m)||e.isInterfaceDeclaration(z)))return;var ge=z.getSourceFile(),ke=(Te?32:0)|(e.startsWithUnderscore(m.text)?8:0),Me=e.isSourceFileJS(ge),Ie=e.tryCast(u.parent,e.isCallExpression);return{kind:1,token:m,call:Ie,modifierFlags:ke,parentDeclaration:z,declSourceFile:ge,isJSFile:Me}}var Ge=e.find(Se.declarations,e.isEnumDeclaration);if(Ge&&!e.isPrivateIdentifier(m)&&!v(C,Ge.getSourceFile()))return{kind:0,token:m,parentDeclaration:Ge}}}}}}function v(T,I){return T.isSourceFileFromExternalLibrary(I)||T.isSourceFileDefaultLibrary(I)}function A(T,I){return I.isJSFile?e.singleElementArray(q(T,I)):P(T,I)}function q(T,I){var y=I.parentDeclaration,D=I.declSourceFile,C=I.modifierFlags,m=I.token;if(!e.isInterfaceDeclaration(y)){var u=e.textChanges.ChangeTracker.with(T,function(F){return ie(F,D,y,m,!!(C&32))});if(u.length!==0){var g=C&32?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(m)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return n.createCodeFixAction(f,u,[g,m.text],f,e.Diagnostics.Add_all_missing_members)}}}function ie(T,I,y,D,C){var m=D.text;if(C){if(y.kind===225)return;var u=y.name.getText(),g=b(e.factory.createIdentifier(u),m);T.insertNodeAfter(I,y,g)}else if(e.isPrivateIdentifier(D)){var F=e.factory.createPropertyDeclaration(void 0,void 0,m,void 0,void 0,void 0),te=J(y);te?T.insertNodeAfter(I,te,F):T.insertNodeAtClassStart(I,y,F)}else{var ue=e.getFirstConstructorWithBody(y);if(!ue)return;var X=b(e.factory.createThis(),m);T.insertNodeAtConstructorEnd(I,ue,X)}}function b(T,I){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(T,I),Y()))}function P(T,I){var y=I.parentDeclaration,D=I.declSourceFile,C=I.modifierFlags,m=I.token,u=m.text,g=C&32,F=S(T.program.getTypeChecker(),y,m),te=function(X){return e.textChanges.ChangeTracker.with(T,function(j){return B(j,D,y,u,F,X)})},ue=[n.createCodeFixAction(f,te(C&32),[g?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,u],f,e.Diagnostics.Add_all_missing_members)];return g||e.isPrivateIdentifier(m)||(C&8&&ue.unshift(n.createCodeFixActionWithoutFixAll(f,te(8),[e.Diagnostics.Declare_private_property_0,u])),ue.push(k(T,D,y,m.text,F))),ue}function S(T,I,y){var D;if(y.parent.parent.kind===220){var C=y.parent.parent,m=y.parent===C.left?C.right:C.left,u=T.getWidenedType(T.getBaseTypeOfLiteralType(T.getTypeAtLocation(m)));D=T.typeToTypeNode(u,I,1)}else{var g=T.getContextualType(y.parent);D=g?T.typeToTypeNode(g,void 0,1):void 0}return D||e.factory.createKeywordTypeNode(130)}function B(T,I,y,D,C,m){var u=e.factory.createPropertyDeclaration(void 0,m?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(m)):void 0,D,void 0,C,void 0),g=J(y);g?T.insertNodeAfter(I,g,u):T.insertNodeAtClassStart(I,y,u)}function J(T){for(var I,y=0,D=T.members;y<D.length;y++){var C=D[y];if(!e.isPropertyDeclaration(C))break;I=C}return I}function k(T,I,y,D,C){var m=e.factory.createKeywordTypeNode(149),u=e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,m,void 0),g=e.factory.createIndexSignature(void 0,void 0,[u],C),F=e.textChanges.ChangeTracker.with(T,function(te){return te.insertNodeAtClassStart(I,y,g)});return n.createCodeFixActionWithoutFixAll(f,F,[e.Diagnostics.Add_index_signature_for_property_0,D])}function M(T,I){var y=I.parentDeclaration,D=I.declSourceFile,C=I.modifierFlags,m=I.token,u=I.call;if(u!==void 0&&!e.isPrivateIdentifier(m)){var g=m.text,F=function(ue){return e.textChanges.ChangeTracker.with(T,function(X){return x(T,X,u,m,ue,y,D)})},te=[n.createCodeFixAction(f,F(C&32),[C&32?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,g],f,e.Diagnostics.Add_all_missing_members)];return C&8&&te.unshift(n.createCodeFixActionWithoutFixAll(f,F(8),[e.Diagnostics.Declare_private_method_0,g])),te}}function x(T,I,y,D,C,m,u){var g=n.createImportAdder(u,T.program,T.preferences,T.host),F=n.createSignatureDeclarationFromCallExpression(168,T,g,y,D,C,m),te=e.findAncestor(y,function(ue){return e.isMethodDeclaration(ue)||e.isConstructorDeclaration(ue)});te&&te.parent===m?I.insertNodeAfter(u,te,F):I.insertNodeAtClassStart(u,m,F),g.writeFixes(I)}function w(T,I,y){var D=y.token,C=y.parentDeclaration,m=e.some(C.members,function(g){var F=I.getTypeAtLocation(g);return!!(F&&F.flags&402653316)}),u=e.factory.createEnumMember(D,m?e.factory.createStringLiteral(D.text):void 0);T.replaceNode(C.getSourceFile(),C,e.factory.updateEnumDeclaration(C,C.decorators,C.modifiers,C.name,e.concatenate(C.members,e.singleElementArray(u))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}function K(T,I,y){var D=n.createImportAdder(I.sourceFile,I.program,I.preferences,I.host),C=n.createSignatureDeclarationFromCallExpression(255,I,D,y.call,e.idText(y.token),y.modifierFlags,y.parentDeclaration);T.insertNodeAtEndOfScope(y.sourceFile,y.parentDeclaration,C)}function Z(T,I,y){var D=n.createImportAdder(I.sourceFile,I.program,I.preferences,I.host),C=e.getQuotePreference(I.sourceFile,I.preferences),m=I.program.getTypeChecker(),u=y.parentDeclaration.attributes,g=e.some(u.properties,e.isJsxSpreadAttribute),F=e.map(y.attributes,function(X){var j=X.valueDeclaration?R(I,m,D,C,m.getTypeAtLocation(X.valueDeclaration)):Y();return e.factory.createJsxAttribute(e.factory.createIdentifier(X.name),e.factory.createJsxExpression(void 0,j))}),te=e.factory.createJsxAttributes(g?Gt(Gt([],F,!0),u.properties,!0):Gt(Gt([],u.properties,!0),F,!0)),ue={prefix:u.pos===u.end?" ":void 0};T.replaceNode(I.sourceFile,u,te,ue)}function ne(T,I,y){var D=n.createImportAdder(I.sourceFile,I.program,I.preferences,I.host),C=e.getQuotePreference(I.sourceFile,I.preferences),m=I.program.getTypeChecker(),u=e.map(y.properties,function(F){var te=F.valueDeclaration?R(I,m,D,C,m.getTypeAtLocation(F.valueDeclaration)):Y();return e.factory.createPropertyAssignment(F.name,te)}),g={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,indentation:y.indentation};T.replaceNode(I.sourceFile,y.parentDeclaration,e.factory.createObjectLiteralExpression(Gt(Gt([],y.parentDeclaration.properties,!0),u,!0),!0),g)}function R(T,I,y,D,C){if(C.flags&3)return Y();if(C.flags&134217732)return e.factory.createStringLiteral("",D===0);if(C.flags&8)return e.factory.createNumericLiteral(0);if(C.flags&64)return e.factory.createBigIntLiteral("0n");if(C.flags&16)return e.factory.createFalse();if(C.flags&1056){var m=C.symbol.exports?e.firstOrUndefined(e.arrayFrom(C.symbol.exports.values())):C.symbol,u=I.symbolToExpression(C.symbol.parent?C.symbol.parent:C.symbol,111551,void 0,void 0);return m===void 0||u===void 0?e.factory.createNumericLiteral(0):e.factory.createPropertyAccessExpression(u,I.symbolToString(m))}if(C.flags&256)return e.factory.createNumericLiteral(C.value);if(C.flags&2048)return e.factory.createBigIntLiteral(C.value);if(C.flags&128)return e.factory.createStringLiteral(C.value,D===0);if(C.flags&512)return C===I.getFalseType()||C===I.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(C.flags&65536)return e.factory.createNull();if(C.flags&1048576){var g=e.firstDefined(C.types,function(Ce){return R(T,I,y,D,Ce)});return g!=null?g:Y()}if(I.isArrayLikeType(C))return e.factory.createArrayLiteralExpression();if(U(C)){var F=e.map(I.getPropertiesOfType(C),function(Ce){var O=Ce.valueDeclaration?R(T,I,y,D,I.getTypeAtLocation(Ce.valueDeclaration)):Y();return e.factory.createPropertyAssignment(Ce.name,O)});return e.factory.createObjectLiteralExpression(F,!0)}if(e.getObjectFlags(C)&16){var te=e.find(C.symbol.declarations||e.emptyArray,e.or(e.isFunctionTypeNode,e.isMethodSignature,e.isMethodDeclaration));if(te===void 0)return Y();var ue=I.getSignaturesOfType(C,0);if(ue===void 0)return Y();var X=n.createSignatureDeclarationFromSignature(212,T,D,ue[0],n.createStubbedBody(e.Diagnostics.Function_not_implemented.message,D),void 0,void 0,void 0,void 0,y);return X!=null?X:Y()}if(e.getObjectFlags(C)&1){var j=e.getClassLikeDeclarationOfSymbol(C.symbol);if(j===void 0||e.hasAbstractModifier(j))return Y();var Se=e.getFirstConstructorWithBody(j);return Se&&e.length(Se.parameters)?Y():e.factory.createNewExpression(e.factory.createIdentifier(C.symbol.name),void 0,void 0)}return Y()}function Y(){return e.factory.createIdentifier("undefined")}function U(T){return T.flags&524288&&(e.getObjectFlags(T)&128||T.symbol&&e.tryCast(e.singleOrUndefined(T.symbol.declarations),e.isTypeLiteralNode))}function $(T,I){var y=T.getContextualType(I.attributes);if(y===void 0)return e.emptyArray;var D=y.getProperties();if(!e.length(D))return e.emptyArray;for(var C=new e.Set,m=0,u=I.attributes.properties;m<u.length;m++){var g=u[m];if(e.isJsxAttribute(g)&&C.add(g.name.escapedText),e.isJsxSpreadAttribute(g))for(var F=T.getTypeAtLocation(g.expression),te=0,ue=F.getProperties();te<ue.length;te++){var X=ue[te];C.add(X.escapedName)}}return e.filter(D,function(j){return!(j.flags&16777216||e.getCheckFlags(j)&48||C.has(j.escapedName))})}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="addMissingNewOperator",d=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(N){var H=N.sourceFile,h=N.span,v=e.textChanges.ChangeTracker.with(N,function(A){return a(A,H,h)});return[n.createCodeFixAction(f,v,e.Diagnostics.Add_missing_new_operator_to_call,f,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[f],getAllCodeActions:function(N){return n.codeFixAll(N,d,function(H,h){return a(H,N.sourceFile,h)})}});function a(N,H,h){var v=e.cast(p(H,h),e.isCallExpression),A=e.factory.createNewExpression(v.expression,v.typeArguments,v.arguments);N.replaceNode(H,v,A)}function p(N,H){for(var h=e.getTokenAtPosition(N,H.start),v=e.textSpanEnd(H);h.end<v;)h=h.parent;return h}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixCannotFindModule",d="installTypesPackage",a=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,p=[a,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(v){var A=v.host,q=v.sourceFile,ie=v.span.start,b=H(q,ie);if(b!==void 0){var P=h(b,A,v.errorCode);return P===void 0?[]:[n.createCodeFixAction(f,[],[e.Diagnostics.Install_0,P],d,e.Diagnostics.Install_all_missing_types_packages,N(q.fileName,P))]}},fixIds:[d],getAllCodeActions:function(v){return n.codeFixAll(v,p,function(A,q,ie){var b=H(q.file,q.start);if(b!==void 0)switch(v.fixId){case d:{var P=h(b,v.host,q.code);P&&ie.push(N(q.file.fileName,P));break}default:e.Debug.fail("Bad fixId: ".concat(v.fixId))}})}});function N(v,A){return{type:"install package",file:v,packageName:A}}function H(v,A){var q=e.tryCast(e.getTokenAtPosition(v,A),e.isStringLiteral);if(!!q){var ie=q.text,b=e.parsePackageName(ie).packageName;return e.isExternalModuleNameRelative(b)?void 0:b}}function h(v,A,q){var ie;return q===a?e.JsTyping.nodeCoreModules.has(v)?"@types/node":void 0:!((ie=A.isKnownTypesPackageName)===null||ie===void 0)&&ie.call(A,v)?e.getTypesPackageName(v):void 0}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f=[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],d="fixClassDoesntImplementInheritedAbstractMember";n.registerCodeFix({errorCodes:f,getCodeActions:function(H){var h=H.sourceFile,v=H.span,A=e.textChanges.ChangeTracker.with(H,function(q){return p(a(h,v.start),h,H,q,H.preferences)});return A.length===0?void 0:[n.createCodeFixAction(d,A,e.Diagnostics.Implement_inherited_abstract_class,d,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[d],getAllCodeActions:function(H){var h=new e.Map;return n.codeFixAll(H,f,function(v,A){var q=a(A.file,A.start);e.addToSeen(h,e.getNodeId(q))&&p(q,H.sourceFile,H,v,H.preferences)})}});function a(H,h){var v=e.getTokenAtPosition(H,h);return e.cast(v.parent,e.isClassLike)}function p(H,h,v,A,q){var ie=e.getEffectiveBaseTypeNode(H),b=v.program.getTypeChecker(),P=b.getTypeAtLocation(ie),S=b.getPropertiesOfType(P).filter(N),B=n.createImportAdder(h,v.program,q,v.host);n.createMissingMemberNodes(H,S,h,v,q,B,function(J){return A.insertNodeAtClassStart(h,H,J)}),B.writeFixes(A)}function N(H){var h=e.getSyntacticModifierFlags(e.first(H.getDeclarations()));return!(h&8)&&!!(h&128)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="classSuperMustPrecedeThisAccess",d=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(H){var h=H.sourceFile,v=H.span,A=p(h,v.start);if(!!A){var q=A.constructor,ie=A.superCall,b=e.textChanges.ChangeTracker.with(H,function(P){return a(P,h,q,ie)});return[n.createCodeFixAction(f,b,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,f,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[f],getAllCodeActions:function(H){var h=H.sourceFile,v=new e.Map;return n.codeFixAll(H,d,function(A,q){var ie=p(q.file,q.start);if(!!ie){var b=ie.constructor,P=ie.superCall;e.addToSeen(v,e.getNodeId(b.parent))&&a(A,h,b,P)}})}});function a(H,h,v,A){H.insertNodeAtConstructorStart(h,v,A),H.delete(h,A)}function p(H,h){var v=e.getTokenAtPosition(H,h);if(v.kind===108){var A=e.getContainingFunction(v),q=N(A.body);return q&&!q.expression.arguments.some(function(ie){return e.isPropertyAccessExpression(ie)&&ie.expression===v})?{constructor:A,superCall:q}:void 0}}function N(H){return e.isExpressionStatement(H)&&e.isSuperCall(H.expression)?H:e.isFunctionLike(H)?void 0:e.forEachChild(H,N)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="constructorForDerivedNeedSuperCall",d=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(N){var H=N.sourceFile,h=N.span,v=a(H,h.start),A=e.textChanges.ChangeTracker.with(N,function(q){return p(q,H,v)});return[n.createCodeFixAction(f,A,e.Diagnostics.Add_missing_super_call,f,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[f],getAllCodeActions:function(N){return n.codeFixAll(N,d,function(H,h){return p(H,N.sourceFile,a(h.file,h.start))})}});function a(N,H){var h=e.getTokenAtPosition(N,H);return e.Debug.assert(e.isConstructorDeclaration(h.parent),"token should be at the constructor declaration"),h.parent}function p(N,H,h){var v=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));N.insertNodeAtConstructorStart(H,h,v)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="enableExperimentalDecorators",d=[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];n.registerCodeFix({errorCodes:d,getCodeActions:function(p){var N=p.program.getCompilerOptions().configFile;if(N!==void 0){var H=e.textChanges.ChangeTracker.with(p,function(h){return a(h,N)});return[n.createCodeFixActionWithoutFixAll(f,H,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[f],getAllCodeActions:function(p){return n.codeFixAll(p,d,function(N){var H=p.program.getCompilerOptions().configFile;H!==void 0&&a(N,H)})}});function a(p,N){n.setJsonCompilerOptionValue(p,N,"experimentalDecorators",e.factory.createTrue())}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixEnableJsxFlag",d=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(p){var N=p.program.getCompilerOptions().configFile;if(N!==void 0){var H=e.textChanges.ChangeTracker.with(p,function(h){return a(h,N)});return[n.createCodeFixActionWithoutFixAll(f,H,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[f],getAllCodeActions:function(p){return n.codeFixAll(p,d,function(N){var H=p.program.getCompilerOptions().configFile;H!==void 0&&a(N,H)})}});function a(p,N){n.setJsonCompilerOptionValue(p,N,"jsx",e.factory.createStringLiteral("react"))}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){n.registerCodeFix({errorCodes:[e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_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_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(f){var d=f.program.getCompilerOptions(),a=d.configFile;if(a!==void 0){var p=[],N=e.getEmitModuleKind(d),H=N>=e.ModuleKind.ES2015&&N<e.ModuleKind.ESNext;if(H){var h=e.textChanges.ChangeTracker.with(f,function(q){n.setJsonCompilerOptionValue(q,a,"module",e.factory.createStringLiteral("esnext"))});p.push(n.createCodeFixActionWithoutFixAll("fixModuleOption",h,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var v=e.getEmitScriptTarget(d),A=v<4||v>99;if(A){var h=e.textChanges.ChangeTracker.with(f,function(ie){var b=e.getTsConfigObjectLiteralExpression(a);if(!!b){var P=[["target",e.factory.createStringLiteral("es2017")]];N===e.ModuleKind.CommonJS&&P.push(["module",e.factory.createStringLiteral("commonjs")]),n.setJsonCompilerOptionValues(ie,a,P)}});p.push(n.createCodeFixActionWithoutFixAll("fixTargetOption",h,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return p.length?p:void 0}}})})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixPropertyAssignment",d=[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];n.registerCodeFix({errorCodes:d,fixIds:[f],getCodeActions:function(N){var H=N.sourceFile,h=N.span,v=p(H,h.start),A=e.textChanges.ChangeTracker.with(N,function(q){return a(q,N.sourceFile,v)});return[n.createCodeFixAction(f,A,[e.Diagnostics.Change_0_to_1,"=",":"],f,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(N){return n.codeFixAll(N,d,function(H,h){return a(H,h.file,p(h.file,h.start))})}});function a(N,H,h){N.replaceNode(H,h,e.factory.createPropertyAssignment(h.name,h.objectAssignmentInitializer))}function p(N,H){return e.cast(e.getTokenAtPosition(N,H).parent,e.isShorthandPropertyAssignment)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="extendsInterfaceBecomesImplements",d=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(N){var H=N.sourceFile,h=a(H,N.span.start);if(!!h){var v=h.extendsToken,A=h.heritageClauses,q=e.textChanges.ChangeTracker.with(N,function(ie){return p(ie,H,v,A)});return[n.createCodeFixAction(f,q,e.Diagnostics.Change_extends_to_implements,f,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[f],getAllCodeActions:function(N){return n.codeFixAll(N,d,function(H,h){var v=a(h.file,h.start);v&&p(H,h.file,v.extendsToken,v.heritageClauses)})}});function a(N,H){var h=e.getTokenAtPosition(N,H),v=e.getContainingClass(h).heritageClauses,A=v[0].getFirstToken();return A.kind===94?{extendsToken:A,heritageClauses:v}:void 0}function p(N,H,h,v){if(N.replaceNode(H,h,e.factory.createToken(117)),v.length===2&&v[0].token===94&&v[1].token===117){var A=v[1].getFirstToken(),q=A.getFullStart();N.replaceRange(H,{pos:q,end:q},e.factory.createToken(27));for(var ie=H.text,b=A.end;b<ie.length&&e.isWhiteSpaceSingleLine(ie.charCodeAt(b));)b++;N.deleteRange(H,{pos:A.getStart(),end:b})}}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="forgottenThisPropertyAccess",d=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,a=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,d];n.registerCodeFix({errorCodes:a,getCodeActions:function(H){var h=H.sourceFile,v=p(h,H.span.start,H.errorCode);if(!!v){var A=e.textChanges.ChangeTracker.with(H,function(q){return N(q,h,v)});return[n.createCodeFixAction(f,A,[e.Diagnostics.Add_0_to_unresolved_variable,v.className||"this"],f,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[f],getAllCodeActions:function(H){return n.codeFixAll(H,a,function(h,v){var A=p(v.file,v.start,v.code);A&&N(h,H.sourceFile,A)})}});function p(H,h,v){var A=e.getTokenAtPosition(H,h);if(e.isIdentifier(A)||e.isPrivateIdentifier(A))return{node:A,className:v===d?e.getContainingClass(A).name.text:void 0}}function N(H,h,v){var A=v.node,q=v.className;e.suppressLeadingAndTrailingTrivia(A),H.replaceNode(h,A,e.factory.createPropertyAccessExpression(q?e.factory.createIdentifier(q):e.factory.createThis(),A))}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixInvalidJsxCharacters_expression",d="fixInvalidJsxCharacters_htmlEntity",a=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];n.registerCodeFix({errorCodes:a,fixIds:[f,d],getCodeActions:function(h){var v=h.sourceFile,A=h.preferences,q=h.span,ie=e.textChanges.ChangeTracker.with(h,function(P){return H(P,A,v,q.start,!1)}),b=e.textChanges.ChangeTracker.with(h,function(P){return H(P,A,v,q.start,!0)});return[n.createCodeFixAction(f,ie,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,f,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),n.createCodeFixAction(d,b,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,d,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(h){return n.codeFixAll(h,a,function(v,A){return H(v,h.preferences,A.file,A.start,h.fixId===d)})}});var p={">":">","}":"}"};function N(h){return e.hasProperty(p,h)}function H(h,v,A,q,ie){var b=A.getText()[q];if(!!N(b)){var P=ie?p[b]:"{".concat(e.quote(A,v,b),"}");h.replaceRangeWithText(A,{pos:q,end:q+1},P)}}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="unusedIdentifier",d="unusedIdentifier_prefix",a="unusedIdentifier_delete",p="unusedIdentifier_deleteImports",N="unusedIdentifier_infer",H=[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];n.registerCodeFix({errorCodes:H,getCodeActions:function(Y){var U=Y.errorCode,$=Y.sourceFile,T=Y.program,I=Y.cancellationToken,y=T.getTypeChecker(),D=T.getSourceFiles(),C=e.getTokenAtPosition($,Y.span.start);if(e.isJSDocTemplateTag(C))return[v(e.textChanges.ChangeTracker.with(Y,function(Se){return Se.delete($,C)}),e.Diagnostics.Remove_template_tag)];if(C.kind===29){var m=e.textChanges.ChangeTracker.with(Y,function(Se){return A(Se,$,C)});return[v(m,e.Diagnostics.Remove_type_parameters)]}var u=ie(C);if(u){var m=e.textChanges.ChangeTracker.with(Y,function(Ce){return Ce.delete($,u)});return[n.createCodeFixAction(f,m,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(u)],p,e.Diagnostics.Delete_all_unused_imports)]}else if(q(C)){var g=e.textChanges.ChangeTracker.with(Y,function(Se){return k($,C,Se,y,D,T,I,!1)});if(g.length)return[n.createCodeFixAction(f,g,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,C.getText($)],p,e.Diagnostics.Delete_all_unused_imports)]}if(e.isObjectBindingPattern(C.parent)||e.isArrayBindingPattern(C.parent)){if(e.isParameter(C.parent.parent)){var F=C.parent.elements,te=[F.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(F,function(Se){return Se.getText($)}).join(", ")];return[v(e.textChanges.ChangeTracker.with(Y,function(Se){return S(Se,$,C.parent)}),te)]}return[v(e.textChanges.ChangeTracker.with(Y,function(Se){return Se.delete($,C.parent.parent)}),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(b($,C))return[v(e.textChanges.ChangeTracker.with(Y,function(Se){return P(Se,$,C.parent)}),e.Diagnostics.Remove_variable_statement)];var ue=[];if(C.kind===137){var m=e.textChanges.ChangeTracker.with(Y,function(Ce){return h(Ce,$,C)}),X=e.cast(C.parent,e.isInferTypeNode).typeParameter.name.text;ue.push(n.createCodeFixAction(f,m,[e.Diagnostics.Replace_infer_0_with_unknown,X],N,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var g=e.textChanges.ChangeTracker.with(Y,function(Ce){return k($,C,Ce,y,D,T,I,!1)});if(g.length){var X=e.isComputedPropertyName(C.parent)?C.parent:C;ue.push(v(g,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,X.getText($)]))}}var j=e.textChanges.ChangeTracker.with(Y,function(Se){return B(Se,U,$,C)});return j.length&&ue.push(n.createCodeFixAction(f,j,[e.Diagnostics.Prefix_0_with_an_underscore,C.getText($)],d,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),ue},fixIds:[d,a,p,N],getAllCodeActions:function(Y){var U=Y.sourceFile,$=Y.program,T=Y.cancellationToken,I=$.getTypeChecker(),y=$.getSourceFiles();return n.codeFixAll(Y,H,function(D,C){var m=e.getTokenAtPosition(U,C.start);switch(Y.fixId){case d:B(D,C.code,U,m);break;case p:{var u=ie(m);u?D.delete(U,u):q(m)&&k(U,m,D,I,y,$,T,!0);break}case a:{if(m.kind===137||q(m))break;if(e.isJSDocTemplateTag(m))D.delete(U,m);else if(m.kind===29)A(D,U,m);else if(e.isObjectBindingPattern(m.parent)){if(m.parent.parent.initializer)break;(!e.isParameter(m.parent.parent)||w(m.parent.parent,I,y))&&D.delete(U,m.parent.parent)}else{if(e.isArrayBindingPattern(m.parent.parent)&&m.parent.parent.parent.initializer)break;b(U,m)?P(D,U,m.parent):k(U,m,D,I,y,$,T,!0)}break}case N:m.kind===137&&h(D,U,m);break;default:e.Debug.fail(JSON.stringify(Y.fixId))}})}});function h(Y,U,$){Y.replaceNode(U,$.parent,e.factory.createKeywordTypeNode(154))}function v(Y,U){return n.createCodeFixAction(f,Y,U,a,e.Diagnostics.Delete_all_unused_declarations)}function A(Y,U,$){Y.delete(U,e.Debug.checkDefined(e.cast($.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function q(Y){return Y.kind===100||Y.kind===79&&(Y.parent.kind===269||Y.parent.kind===266)}function ie(Y){return Y.kind===100?e.tryCast(Y.parent,e.isImportDeclaration):void 0}function b(Y,U){return e.isVariableDeclarationList(U.parent)&&e.first(U.parent.getChildren(Y))===U}function P(Y,U,$){Y.delete(U,$.parent.kind===236?$.parent:$)}function S(Y,U,$){e.forEach($.elements,function(T){return Y.delete(U,T)})}function B(Y,U,$,T){U!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(T.kind===137&&(T=e.cast(T.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(T)&&J(T)&&(Y.replaceNode($,T,e.factory.createIdentifier("_".concat(T.text))),e.isParameter(T.parent)&&e.getJSDocParameterTags(T.parent).forEach(function(I){e.isIdentifier(I.name)&&Y.replaceNode($,I.name,e.factory.createIdentifier("_".concat(I.name.text)))})))}function J(Y){switch(Y.parent.kind){case 163:case 162:return!0;case 253:{var U=Y.parent;switch(U.parent.parent.kind){case 243:case 242:return!0}}}return!1}function k(Y,U,$,T,I,y,D,C){M(U,$,Y,T,I,y,D,C),e.isIdentifier(U)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(U,T,Y,function(m){e.isPropertyAccessExpression(m.parent)&&m.parent.name===m&&(m=m.parent),!C&&R(m)&&$.delete(Y,m.parent.parent)})}function M(Y,U,$,T,I,y,D,C){var m=Y.parent;if(e.isParameter(m))x(U,$,m,T,I,y,D,C);else if(!(C&&e.isIdentifier(Y)&&e.FindAllReferences.Core.isSymbolReferencedInFile(Y,T,$))){var u=e.isImportClause(m)?Y:e.isComputedPropertyName(m)?m.parent:m;e.Debug.assert(u!==$,"should not delete whole source file"),U.delete($,u)}}function x(Y,U,$,T,I,y,D,C){C===void 0&&(C=!1),K(T,U,$,I,y,D,C)&&($.modifiers&&$.modifiers.length>0&&(!e.isIdentifier($.name)||e.FindAllReferences.Core.isSymbolReferencedInFile($.name,T,U))?$.modifiers.forEach(function(m){return Y.deleteModifier(U,m)}):!$.initializer&&w($,T,I)&&Y.delete(U,$))}function w(Y,U,$){var T=Y.parent.parameters.indexOf(Y);return!e.FindAllReferences.Core.someSignatureUsage(Y.parent,$,U,function(I,y){return!y||y.arguments.length>T})}function K(Y,U,$,T,I,y,D){var C=$.parent;switch(C.kind){case 168:case 170:var m=C.parameters.indexOf($),u=e.isMethodDeclaration(C)?C.name:C,g=e.FindAllReferences.Core.getReferencedSymbolsForNode(C.pos,u,I,T,y);if(g)for(var F=0,te=g;F<te.length;F++)for(var ue=te[F],X=0,j=ue.references;X<j.length;X++){var Se=j[X];if(Se.kind===1){var Ce=e.isSuperKeyword(Se.node)&&e.isCallExpression(Se.node.parent)&&Se.node.parent.arguments.length>m,O=e.isPropertyAccessExpression(Se.node.parent)&&e.isSuperKeyword(Se.node.parent.expression)&&e.isCallExpression(Se.node.parent.parent)&&Se.node.parent.parent.arguments.length>m,Q=(e.isMethodDeclaration(Se.node.parent)||e.isMethodSignature(Se.node.parent))&&Se.node.parent!==$.parent&&Se.node.parent.parameters.length>m;if(Ce||O||Q)return!1}}return!0;case 255:return C.name&&Z(Y,U,C.name)?ne(C,$,D):!0;case 212:case 213:return ne(C,$,D);case 172:return!1;default:return e.Debug.failBadSyntaxKind(C)}}function Z(Y,U,$){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile($,Y,U,function(T){return e.isIdentifier(T)&&e.isCallExpression(T.parent)&&T.parent.arguments.indexOf(T)>=0})}function ne(Y,U,$){var T=Y.parameters,I=T.indexOf(U);return e.Debug.assert(I!==-1,"The parameter should already be in the list"),$?T.slice(I+1).every(function(y){return e.isIdentifier(y.name)&&!y.symbol.isReferenced}):I===T.length-1}function R(Y){return(e.isBinaryExpression(Y.parent)&&Y.parent.left===Y||(e.isPostfixUnaryExpression(Y.parent)||e.isPrefixUnaryExpression(Y.parent))&&Y.parent.operand===Y)&&e.isExpressionStatement(Y.parent.parent)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixUnreachableCode",d=[e.Diagnostics.Unreachable_code_detected.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(N){var H=e.textChanges.ChangeTracker.with(N,function(h){return a(h,N.sourceFile,N.span.start,N.span.length,N.errorCode)});return[n.createCodeFixAction(f,H,e.Diagnostics.Remove_unreachable_code,f,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[f],getAllCodeActions:function(N){return n.codeFixAll(N,d,function(H,h){return a(H,h.file,h.start,h.length,h.code)})}});function a(N,H,h,v,A){var q=e.getTokenAtPosition(H,h),ie=e.findAncestor(q,e.isStatement);if(ie.getStart(H)!==q.getStart(H)){var b=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(ie.kind),tokenKind:e.Debug.formatSyntaxKind(q.kind),errorCode:A,start:h,length:v});e.Debug.fail("Token and statement should start at the same point. "+b)}var P=(e.isBlock(ie.parent)?ie.parent:ie).parent;if(!e.isBlock(ie.parent)||ie===e.first(ie.parent.statements))switch(P.kind){case 238:if(P.elseStatement){if(e.isBlock(ie.parent))break;N.replaceNode(H,ie,e.factory.createBlock(e.emptyArray));return}case 240:case 241:N.delete(H,P);return}if(e.isBlock(ie.parent)){var S=h+v,B=e.Debug.checkDefined(p(e.sliceAfter(ie.parent.statements,ie),function(J){return J.pos<S}),"Some statement should be last");N.deleteNodeRange(H,ie,B)}else N.delete(H,ie)}function p(N,H){for(var h,v=0,A=N;v<A.length;v++){var q=A[v];if(!H(q))break;h=q}return h}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixUnusedLabel",d=[e.Diagnostics.Unused_label.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(p){var N=e.textChanges.ChangeTracker.with(p,function(H){return a(H,p.sourceFile,p.span.start)});return[n.createCodeFixAction(f,N,e.Diagnostics.Remove_unused_label,f,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[f],getAllCodeActions:function(p){return n.codeFixAll(p,d,function(N,H){return a(N,H.file,H.start)})}});function a(p,N,H){var h=e.getTokenAtPosition(N,H),v=e.cast(h.parent,e.isLabeledStatement),A=h.getStart(N),q=v.statement.getStart(N),ie=e.positionsAreOnSameLine(A,q,N)?q:e.skipTrivia(N.text,e.findChildOfKind(v,58,N).end,!0);p.deleteRange(N,{pos:A,end:ie})}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixJSDocTypes_plain",d="fixJSDocTypes_nullable",a=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];n.registerCodeFix({errorCodes:a,getCodeActions:function(h){var v=h.sourceFile,A=h.program.getTypeChecker(),q=N(v,h.span.start,A);if(!q)return;var ie=q.typeNode,b=q.type,P=ie.getText(v),S=[B(b,f,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return ie.kind===312&&S.push(B(A.getNullableType(b,32768),d,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),S;function B(J,k,M){var x=e.textChanges.ChangeTracker.with(h,function(w){return p(w,v,ie,J,A)});return n.createCodeFixAction("jdocTypes",x,[e.Diagnostics.Change_0_to_1,P,A.typeToString(J)],k,M)}},fixIds:[f,d],getAllCodeActions:function(h){var v=h.fixId,A=h.program,q=h.sourceFile,ie=A.getTypeChecker();return n.codeFixAll(h,a,function(b,P){var S=N(P.file,P.start,ie);if(!!S){var B=S.typeNode,J=S.type,k=B.kind===312&&v===d?ie.getNullableType(J,32768):J;p(b,q,B,k,ie)}})}});function p(h,v,A,q,ie){h.replaceNode(v,A,ie.typeToTypeNode(q,A,void 0))}function N(h,v,A){var q=e.findAncestor(e.getTokenAtPosition(h,v),H),ie=q&&q.type;return ie&&{typeNode:ie,type:A.getTypeFromTypeNode(ie)}}function H(h){switch(h.kind){case 228:case 173:case 174:case 255:case 171:case 175:case 194:case 168:case 167:case 163:case 166:case 165:case 172:case 258:case 210:case 253:return!0;default:return!1}}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixMissingCallParentheses",d=[e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];n.registerCodeFix({errorCodes:d,fixIds:[f],getCodeActions:function(N){var H=N.sourceFile,h=N.span,v=p(H,h.start);if(!!v){var A=e.textChanges.ChangeTracker.with(N,function(q){return a(q,N.sourceFile,v)});return[n.createCodeFixAction(f,A,e.Diagnostics.Add_missing_call_parentheses,f,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:function(N){return n.codeFixAll(N,d,function(H,h){var v=p(h.file,h.start);v&&a(H,h.file,v)})}});function a(N,H,h){N.replaceNodeWithText(H,h,"".concat(h.text,"()"))}function p(N,H){var h=e.getTokenAtPosition(N,H);if(e.isPropertyAccessExpression(h.parent)){for(var v=h.parent;e.isPropertyAccessExpression(v.parent);)v=v.parent;return v.name}if(e.isIdentifier(h))return h}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixAwaitInSyncFunction",d=[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];n.registerCodeFix({errorCodes:d,getCodeActions:function(H){var h=H.sourceFile,v=H.span,A=p(h,v.start);if(!!A){var q=e.textChanges.ChangeTracker.with(H,function(ie){return N(ie,h,A)});return[n.createCodeFixAction(f,q,e.Diagnostics.Add_async_modifier_to_containing_function,f,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[f],getAllCodeActions:function(H){var h=new e.Map;return n.codeFixAll(H,d,function(v,A){var q=p(A.file,A.start);!q||!e.addToSeen(h,e.getNodeId(q.insertBefore))||N(v,H.sourceFile,q)})}});function a(H){if(H.type)return H.type;if(e.isVariableDeclaration(H.parent)&&H.parent.type&&e.isFunctionTypeNode(H.parent.type))return H.parent.type.type}function p(H,h){var v=e.getTokenAtPosition(H,h),A=e.getContainingFunction(v);if(!!A){var q;switch(A.kind){case 168:q=A.name;break;case 255:case 212:q=e.findChildOfKind(A,98,H);break;case 213:var ie=A.typeParameters?29:20;q=e.findChildOfKind(A,ie,H)||e.first(A.parameters);break;default:return}return q&&{insertBefore:q,returnType:a(A)}}}function N(H,h,v){var A=v.insertBefore,q=v.returnType;if(q){var ie=e.getEntityNameFromTypeNode(q);(!ie||ie.kind!==79||ie.text!=="Promise")&&H.replaceNode(h,q,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([q])))}H.insertModifierBefore(h,131,A)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f=[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],d="fixPropertyOverrideAccessor";n.registerCodeFix({errorCodes:f,getCodeActions:function(p){var N=a(p.sourceFile,p.span.start,p.span.length,p.errorCode,p);if(N)return[n.createCodeFixAction(d,N,e.Diagnostics.Generate_get_and_set_accessors,d,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[d],getAllCodeActions:function(p){return n.codeFixAll(p,f,function(N,H){var h=a(H.file,H.start,H.length,H.code,p);if(h)for(var v=0,A=h;v<A.length;v++){var q=A[v];N.pushRaw(p.sourceFile,q)}})}});function a(p,N,H,h,v){var A,q;if(h===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)A=N,q=N+H;else if(h===e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var ie=v.program.getTypeChecker(),b=e.getTokenAtPosition(p,N).parent;e.Debug.assert(e.isAccessor(b),"error span of fixPropertyOverrideAccessor should only be on an accessor");var P=b.parent;e.Debug.assert(e.isClassLike(P),"erroneous accessors should only be inside classes");var S=e.singleOrUndefined(n.getAllSupers(P,ie));if(!S)return[];var B=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(b.name)),J=ie.getPropertyOfType(ie.getTypeAtLocation(S),B);if(!J||!J.valueDeclaration)return[];A=J.valueDeclaration.pos,q=J.valueDeclaration.end,p=e.getSourceFileOfNode(J.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+h);return n.generateAccessorFromProperty(p,v.program,A,q,v,e.Diagnostics.Generate_get_and_set_accessors.message)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="inferFromUsage",d=[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];n.registerCodeFix({errorCodes:d,getCodeActions:function(Z){var ne=Z.sourceFile,R=Z.program,Y=Z.span.start,U=Z.errorCode,$=Z.cancellationToken,T=Z.host,I=Z.preferences,y=e.getTokenAtPosition(ne,Y),D,C=e.textChanges.ChangeTracker.with(Z,function(u){D=N(u,ne,y,U,R,$,e.returnTrue,T,I)}),m=D&&e.getNameOfDeclaration(D);return!m||C.length===0?void 0:[n.createCodeFixAction(f,C,[a(U,y),m.getText(ne)],f,e.Diagnostics.Infer_all_types_from_usage)]},fixIds:[f],getAllCodeActions:function(Z){var ne=Z.sourceFile,R=Z.program,Y=Z.cancellationToken,U=Z.host,$=Z.preferences,T=e.nodeSeenTracker();return n.codeFixAll(Z,d,function(I,y){N(I,ne,e.getTokenAtPosition(y.file,y.start),y.code,R,Y,T,U,$)})}});function a(Z,ne){switch(Z){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(ne))?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 p(Z){switch(Z){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 Z}function N(Z,ne,R,Y,U,$,T,I,y){if(!(!e.isParameterPropertyModifier(R.kind)&&R.kind!==79&&R.kind!==25&&R.kind!==108)){var D=R.parent,C=n.createImportAdder(ne,U,y,I);switch(Y=p(Y),Y){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(D)&&T(D)||e.isPropertyDeclaration(D)||e.isPropertySignature(D))return H(Z,C,ne,D,U,I,$),C.writeFixes(Z),D;if(e.isPropertyAccessExpression(D)){var m=M(D.name,U,$),u=e.getTypeNodeIfAccessible(m,D,U,I);if(u){var g=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(u),void 0);S(Z,ne,e.cast(D.parent.parent,e.isExpressionStatement),[g])}return C.writeFixes(Z),D}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:{var F=U.getTypeChecker().getSymbolAtLocation(R);return F&&F.valueDeclaration&&e.isVariableDeclaration(F.valueDeclaration)&&T(F.valueDeclaration)?(H(Z,C,ne,F.valueDeclaration,U,I,$),C.writeFixes(Z),F.valueDeclaration):void 0}}var te=e.getContainingFunction(R);if(te!==void 0){var ue;switch(Y){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(te)){q(Z,C,ne,te,U,I,$),ue=te;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(T(te)){var X=e.cast(D,e.isParameter);h(Z,C,ne,X,te,U,I,$),ue=X}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(te)&&e.isIdentifier(te.name)&&(ie(Z,C,ne,te,M(te.name,U,$),U,I),ue=te);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(te)&&(q(Z,C,ne,te,U,I,$),ue=te);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(te)&&T(te)&&(v(Z,ne,te,U,I,$),ue=te);break;default:return e.Debug.fail(String(Y))}return C.writeFixes(Z),ue}}}function H(Z,ne,R,Y,U,$,T){e.isIdentifier(Y.name)&&ie(Z,ne,R,Y,M(Y.name,U,T),U,$)}function h(Z,ne,R,Y,U,$,T,I){if(!!e.isIdentifier(Y.name)){var y=x(U,R,$,I);if(e.Debug.assert(U.parameters.length===y.length,"Parameter count and inference count should match"),e.isInJSFile(U))P(Z,R,y,$,T);else{var D=e.isArrowFunction(U)&&!e.findChildOfKind(U,20,R);D&&Z.insertNodeBefore(R,e.first(U.parameters),e.factory.createToken(20));for(var C=0,m=y;C<m.length;C++){var u=m[C],g=u.declaration,F=u.type;g&&!g.type&&!g.initializer&&ie(Z,ne,R,g,F,$,T)}D&&Z.insertNodeAfter(R,e.last(U.parameters),e.factory.createToken(21))}}}function v(Z,ne,R,Y,U,$){var T=w(R,ne,Y,$);if(!(!T||!T.length)){var I=K(Y,T,$).thisParameter(),y=e.getTypeNodeIfAccessible(I,R,Y,U);!y||(e.isInJSFile(R)?A(Z,ne,R,y):Z.tryInsertThisTypeAnnotation(ne,R,y))}}function A(Z,ne,R,Y){S(Z,ne,R,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(Y))])}function q(Z,ne,R,Y,U,$,T){var I=e.firstOrUndefined(Y.parameters);if(I&&e.isIdentifier(Y.name)&&e.isIdentifier(I.name)){var y=M(Y.name,U,T);y===U.getTypeChecker().getAnyType()&&(y=M(I.name,U,T)),e.isInJSFile(Y)?P(Z,R,[{declaration:I,type:y}],U,$):ie(Z,ne,R,I,y,U,$)}}function ie(Z,ne,R,Y,U,$,T){var I=e.getTypeNodeIfAccessible(U,Y,$,T);if(I)if(e.isInJSFile(R)&&Y.kind!==165){var y=e.isVariableDeclaration(Y)?e.tryCast(Y.parent.parent,e.isVariableStatement):Y;if(!y)return;var D=e.factory.createJSDocTypeExpression(I),C=e.isGetAccessorDeclaration(Y)?e.factory.createJSDocReturnTag(void 0,D,void 0):e.factory.createJSDocTypeTag(void 0,D,void 0);S(Z,R,y,[C])}else b(I,Y,R,Z,ne,e.getEmitScriptTarget($.getCompilerOptions()))||Z.tryInsertTypeAnnotation(R,Y,I)}function b(Z,ne,R,Y,U,$){var T=n.tryGetAutoImportableReferenceFromTypeNode(Z,$);return T&&Y.tryInsertTypeAnnotation(R,ne,T.typeNode)?(e.forEach(T.symbols,function(I){return U.addImportFromExportedSymbol(I,!0)}),!0):!1}function P(Z,ne,R,Y,U){var $=R.length&&R[0].declaration.parent;if(!!$){var T=e.mapDefined(R,function(D){var C=D.declaration;if(!(C.initializer||e.getJSDocType(C)||!e.isIdentifier(C.name))){var m=D.type&&e.getTypeNodeIfAccessible(D.type,C,Y,U);if(m){var u=e.factory.cloneNode(C.name);return e.setEmitFlags(u,3584),{name:e.factory.cloneNode(C.name),param:C,isOptional:!!D.isOptional,typeNode:m}}}});if(!!T.length)if(e.isArrowFunction($)||e.isFunctionExpression($)){var I=e.isArrowFunction($)&&!e.findChildOfKind($,20,ne);I&&Z.insertNodeBefore(ne,e.first($.parameters),e.factory.createToken(20)),e.forEach(T,function(D){var C=D.typeNode,m=D.param,u=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(C)),g=e.factory.createJSDocComment(void 0,[u]);Z.insertNodeAt(ne,m.getStart(ne),g,{suffix:" "})}),I&&Z.insertNodeAfter(ne,e.last($.parameters),e.factory.createToken(21))}else{var y=e.map(T,function(D){var C=D.name,m=D.typeNode,u=D.isOptional;return e.factory.createJSDocParameterTag(void 0,C,!!u,e.factory.createJSDocTypeExpression(m),!1,void 0)});S(Z,ne,$,y)}}}function S(Z,ne,R,Y){var U=e.flatMap(R.jsDoc,function(D){return typeof D.comment=="string"?e.factory.createJSDocText(D.comment):D.comment}),$=e.flatMapToMutable(R.jsDoc,function(D){return D.tags}),T=Y.filter(function(D){return!$||!$.some(function(C,m){var u=J(C,D);return u&&($[m]=u),!!u})}),I=e.factory.createJSDocComment(e.factory.createNodeArray(e.intersperse(U,e.factory.createJSDocText(`
|
|
`))),e.factory.createNodeArray(Gt(Gt([],$||e.emptyArray,!0),T,!0))),y=R.kind===213?B(R):R;y.jsDoc=R.jsDoc,y.jsDocCache=R.jsDocCache,Z.insertJsdocCommentBefore(ne,y,I)}n.addJSDocTags=S;function B(Z){return Z.parent.kind===166?Z.parent:Z.parent.parent}function J(Z,ne){if(Z.kind===ne.kind)switch(Z.kind){case 338:{var R=Z,Y=ne;return e.isIdentifier(R.name)&&e.isIdentifier(Y.name)&&R.name.escapedText===Y.name.escapedText?e.factory.createJSDocParameterTag(void 0,Y.name,!1,Y.typeExpression,Y.isNameFirst,R.comment):void 0}case 339:return e.factory.createJSDocReturnTag(void 0,ne.typeExpression,Z.comment)}}function k(Z,ne,R){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,Z,ne,ne.getSourceFiles(),R),function(Y){return Y.kind!==0?e.tryCast(Y.node,e.isIdentifier):void 0})}function M(Z,ne,R){var Y=k(Z,ne,R);return K(ne,Y,R).single()}function x(Z,ne,R,Y){var U=w(Z,ne,R,Y);return U&&K(R,U,Y).parameters(Z)||Z.parameters.map(function($){return{declaration:$,type:e.isIdentifier($.name)?M($.name,R,Y):R.getTypeChecker().getAnyType()}})}function w(Z,ne,R,Y){var U;switch(Z.kind){case 170:U=e.findChildOfKind(Z,134,ne);break;case 213:case 212:var $=Z.parent;U=(e.isVariableDeclaration($)||e.isPropertyDeclaration($))&&e.isIdentifier($.name)?$.name:Z.name;break;case 255:case 168:case 167:U=Z.name;break}if(!!U)return k(U,R,Y)}function K(Z,ne,R){var Y=Z.getTypeChecker(),U={string:function(){return Y.getStringType()},number:function(){return Y.getNumberType()},Array:function(De){return Y.createArrayType(De)},Promise:function(De){return Y.createPromiseType(De)}},$=[Y.getStringType(),Y.getNumberType(),Y.createArrayType(Y.getAnyType()),Y.createPromiseType(Y.getAnyType())];return{single:y,parameters:D,thisParameter:C};function T(){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 I(De){for(var Ae=new e.Map,Ye=0,Lr=De;Ye<Lr.length;Ye++){var Er=Lr[Ye];Er.properties&&Er.properties.forEach(function(Cr,Or){Ae.has(Or)||Ae.set(Or,[]),Ae.get(Or).push(Cr)})}var lr=new e.Map;return Ae.forEach(function(Cr,Or){lr.set(Or,I(Cr))}),{isNumber:De.some(function(Cr){return Cr.isNumber}),isString:De.some(function(Cr){return Cr.isString}),isNumberOrString:De.some(function(Cr){return Cr.isNumberOrString}),candidateTypes:e.flatMap(De,function(Cr){return Cr.candidateTypes}),properties:lr,calls:e.flatMap(De,function(Cr){return Cr.calls}),constructs:e.flatMap(De,function(Cr){return Cr.constructs}),numberIndex:e.forEach(De,function(Cr){return Cr.numberIndex}),stringIndex:e.forEach(De,function(Cr){return Cr.stringIndex}),candidateThisTypes:e.flatMap(De,function(Cr){return Cr.candidateThisTypes}),inferredTypes:void 0}}function y(){return Te(m(ne))}function D(De){if(!(ne.length===0||!De.parameters)){for(var Ae=T(),Ye=0,Lr=ne;Ye<Lr.length;Ye++){var Er=Lr[Ye];R.throwIfCancellationRequested(),u(Er,Ae)}var lr=Gt(Gt([],Ae.constructs||[],!0),Ae.calls||[],!0);return De.parameters.map(function(Cr,Or){for(var Ke=[],Pe=e.isRestParameter(Cr),Hr=!1,ur=0,vr=lr;ur<vr.length;ur++){var de=vr[ur];if(de.argumentTypes.length<=Or)Hr=e.isInJSFile(De),Ke.push(Y.getUndefinedType());else if(Pe)for(var Fe=Or;Fe<de.argumentTypes.length;Fe++)Ke.push(Y.getBaseTypeOfLiteralType(de.argumentTypes[Fe]));else Ke.push(Y.getBaseTypeOfLiteralType(de.argumentTypes[Or]))}if(e.isIdentifier(Cr.name)){var $e=m(k(Cr.name,Z,R));Ke.push.apply(Ke,Pe?e.mapDefined($e,Y.getElementTypeOfArrayType):$e)}var Dr=Te(Ke);return{type:Pe?Y.createArrayType(Dr):Dr,isOptional:Hr&&!Pe,declaration:Cr}})}}function C(){for(var De=T(),Ae=0,Ye=ne;Ae<Ye.length;Ae++){var Lr=Ye[Ae];R.throwIfCancellationRequested(),u(Lr,De)}return Te(De.candidateThisTypes||e.emptyArray)}function m(De){for(var Ae=T(),Ye=0,Lr=De;Ye<Lr.length;Ye++){var Er=Lr[Ye];R.throwIfCancellationRequested(),u(Er,Ae)}return ke(Ae)}function u(De,Ae){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(De);)De=De.parent;switch(De.parent.kind){case 237:F(De,Ae);break;case 219:Ae.isNumber=!0;break;case 218:te(De.parent,Ae);break;case 220:ue(De,De.parent,Ae);break;case 288:case 289:X(De.parent,Ae);break;case 207:case 208:De.parent.expression===De?j(De.parent,Ae):g(De,Ae);break;case 205:Se(De.parent,Ae);break;case 206:Ce(De.parent,De,Ae);break;case 294:case 295:O(De.parent,Ae);break;case 166:Q(De.parent,Ae);break;case 253:{var Ye=De.parent,Lr=Ye.name,Er=Ye.initializer;if(De===Lr){Er&&qe(Ae,Y.getTypeAtLocation(Er));break}}default:return g(De,Ae)}}function g(De,Ae){e.isExpressionNode(De)&&qe(Ae,Y.getContextualType(De))}function F(De,Ae){qe(Ae,e.isCallExpression(De)?Y.getVoidType():Y.getAnyType())}function te(De,Ae){switch(De.operator){case 45:case 46:case 40:case 54:Ae.isNumber=!0;break;case 39:Ae.isNumberOrString=!0;break}}function ue(De,Ae,Ye){switch(Ae.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 Lr=Y.getTypeAtLocation(Ae.left===De?Ae.right:Ae.left);Lr.flags&1056?qe(Ye,Lr):Ye.isNumber=!0;break;case 64:case 39:var Er=Y.getTypeAtLocation(Ae.left===De?Ae.right:Ae.left);Er.flags&1056?qe(Ye,Er):Er.flags&296?Ye.isNumber=!0:Er.flags&402653316?Ye.isString=!0:Er.flags&1||(Ye.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:qe(Ye,Y.getTypeAtLocation(Ae.left===De?Ae.right:Ae.left));break;case 101:De===Ae.left&&(Ye.isString=!0);break;case 56:case 60:De===Ae.left&&(De.parent.parent.kind===253||e.isAssignmentExpression(De.parent.parent,!0))&&qe(Ye,Y.getTypeAtLocation(Ae.right));break}}function X(De,Ae){qe(Ae,Y.getTypeAtLocation(De.parent.parent.expression))}function j(De,Ae){var Ye={argumentTypes:[],return_:T()};if(De.arguments)for(var Lr=0,Er=De.arguments;Lr<Er.length;Lr++){var lr=Er[Lr];Ye.argumentTypes.push(Y.getTypeAtLocation(lr))}u(De,Ye.return_),De.kind===207?(Ae.calls||(Ae.calls=[])).push(Ye):(Ae.constructs||(Ae.constructs=[])).push(Ye)}function Se(De,Ae){var Ye=e.escapeLeadingUnderscores(De.name.text);Ae.properties||(Ae.properties=new e.Map);var Lr=Ae.properties.get(Ye)||T();u(De,Lr),Ae.properties.set(Ye,Lr)}function Ce(De,Ae,Ye){if(Ae===De.argumentExpression){Ye.isNumberOrString=!0;return}else{var Lr=Y.getTypeAtLocation(De.argumentExpression),Er=T();u(De,Er),Lr.flags&296?Ye.numberIndex=Er:Ye.stringIndex=Er}}function O(De,Ae){var Ye=e.isVariableDeclaration(De.parent.parent)?De.parent.parent:De.parent;Xe(Ae,Y.getTypeAtLocation(Ye))}function Q(De,Ae){Xe(Ae,Y.getTypeAtLocation(De.parent))}function V(De,Ae){for(var Ye=[],Lr=0,Er=De;Lr<Er.length;Lr++)for(var lr=Er[Lr],Cr=0,Or=Ae;Cr<Or.length;Cr++){var Ke=Or[Cr],Pe=Ke.high,Hr=Ke.low;Pe(lr)&&(e.Debug.assert(!Hr(lr),"Priority can't have both low and high"),Ye.push(Hr))}return De.filter(function(ur){return Ye.every(function(vr){return!vr(ur)})})}function z(De){return Te(ke(De))}function Te(De){if(!De.length)return Y.getAnyType();var Ae=Y.getUnionType([Y.getStringType(),Y.getNumberType()]),Ye=[{high:function(lr){return lr===Y.getStringType()||lr===Y.getNumberType()},low:function(lr){return lr===Ae}},{high:function(lr){return!(lr.flags&16385)},low:function(lr){return!!(lr.flags&16385)}},{high:function(lr){return!(lr.flags&114689)&&!(e.getObjectFlags(lr)&16)},low:function(lr){return!!(e.getObjectFlags(lr)&16)}}],Lr=V(De,Ye),Er=Lr.filter(function(lr){return e.getObjectFlags(lr)&16});return Er.length&&(Lr=Lr.filter(function(lr){return!(e.getObjectFlags(lr)&16)}),Lr.push(ge(Er))),Y.getWidenedType(Y.getUnionType(Lr.map(Y.getBaseTypeOfLiteralType),2))}function ge(De){if(De.length===1)return De[0];for(var Ae=[],Ye=[],Lr=[],Er=[],lr=!1,Cr=!1,Or=e.createMultiMap(),Ke=0,Pe=De;Ke<Pe.length;Ke++){for(var Hr=Pe[Ke],ur=0,vr=Y.getPropertiesOfType(Hr);ur<vr.length;ur++){var de=vr[ur];Or.add(de.name,de.valueDeclaration?Y.getTypeOfSymbolAtLocation(de,de.valueDeclaration):Y.getAnyType())}Ae.push.apply(Ae,Y.getSignaturesOfType(Hr,0)),Ye.push.apply(Ye,Y.getSignaturesOfType(Hr,1));var Fe=Y.getIndexInfoOfType(Hr,0);Fe&&(Lr.push(Fe.type),lr=lr||Fe.isReadonly);var $e=Y.getIndexInfoOfType(Hr,1);$e&&(Er.push($e.type),Cr=Cr||$e.isReadonly)}var Dr=e.mapEntries(Or,function(He,pr){var Jr=pr.length<De.length?16777216:0,ze=Y.createSymbol(4|Jr,He);return ze.type=Y.getUnionType(pr),[He,ze]}),Fr=[];return Lr.length&&Fr.push(Y.createIndexInfo(Y.getStringType(),Y.getUnionType(Lr),lr)),Er.length&&Fr.push(Y.createIndexInfo(Y.getNumberType(),Y.getUnionType(Er),Cr)),Y.createAnonymousType(De[0].symbol,Dr,Ae,Ye,Fr)}function ke(De){var Ae,Ye,Lr,Er=[];return De.isNumber&&Er.push(Y.getNumberType()),De.isString&&Er.push(Y.getStringType()),De.isNumberOrString&&Er.push(Y.getUnionType([Y.getStringType(),Y.getNumberType()])),De.numberIndex&&Er.push(Y.createArrayType(z(De.numberIndex))),(((Ae=De.properties)===null||Ae===void 0?void 0:Ae.size)||((Ye=De.calls)===null||Ye===void 0?void 0:Ye.length)||((Lr=De.constructs)===null||Lr===void 0?void 0:Lr.length)||De.stringIndex)&&Er.push(Me(De)),Er.push.apply(Er,(De.candidateTypes||[]).map(function(lr){return Y.getBaseTypeOfLiteralType(lr)})),Er.push.apply(Er,Ie(De)),Er}function Me(De){var Ae=new e.Map;De.properties&&De.properties.forEach(function(lr,Cr){var Or=Y.createSymbol(4,Cr);Or.type=z(lr),Ae.set(Cr,Or)});var Ye=De.calls?[Le(De.calls)]:[],Lr=De.constructs?[Le(De.constructs)]:[],Er=De.stringIndex?[Y.createIndexInfo(Y.getStringType(),z(De.stringIndex),!1)]:[];return Y.createAnonymousType(void 0,Ae,Ye,Lr,Er)}function Ie(De){if(!De.properties||!De.properties.size)return[];var Ae=$.filter(function(Ye){return Ge(Ye,De)});return 0<Ae.length&&Ae.length<3?Ae.map(function(Ye){return he(Ye,De)}):[]}function Ge(De,Ae){return Ae.properties?!e.forEachEntry(Ae.properties,function(Ye,Lr){var Er=Y.getTypeOfPropertyOfType(De,Lr);if(!Er)return!0;if(Ye.calls){var lr=Y.getSignaturesOfType(Er,0);return!lr.length||!Y.isTypeAssignableTo(Er,_e(Ye.calls))}else return!Y.isTypeAssignableTo(Er,z(Ye))}):!1}function he(De,Ae){if(!(e.getObjectFlags(De)&4)||!Ae.properties)return De;var Ye=De.target,Lr=e.singleOrUndefined(Ye.typeParameters);if(!Lr)return De;var Er=[];return Ae.properties.forEach(function(lr,Cr){var Or=Y.getTypeOfPropertyOfType(Ye,Cr);e.Debug.assert(!!Or,"generic should have all the properties of its reference."),Er.push.apply(Er,ve(Or,z(lr),Lr))}),U[De.symbol.escapedName](Te(Er))}function ve(De,Ae,Ye){if(De===Ye)return[Ae];if(De.flags&3145728)return e.flatMap(De.types,function(Pe){return ve(Pe,Ae,Ye)});if(e.getObjectFlags(De)&4&&e.getObjectFlags(Ae)&4){var Lr=Y.getTypeArguments(De),Er=Y.getTypeArguments(Ae),lr=[];if(Lr&&Er)for(var Cr=0;Cr<Lr.length;Cr++)Er[Cr]&&lr.push.apply(lr,ve(Lr[Cr],Er[Cr],Ye));return lr}var Or=Y.getSignaturesOfType(De,0),Ke=Y.getSignaturesOfType(Ae,0);return Or.length===1&&Ke.length===1?Ve(Or[0],Ke[0],Ye):[]}function Ve(De,Ae,Ye){for(var Lr=[],Er=0;Er<De.parameters.length;Er++){var lr=De.parameters[Er],Cr=Ae.parameters[Er],Or=De.declaration&&e.isRestParameter(De.declaration.parameters[Er]);if(!Cr)break;var Ke=lr.valueDeclaration?Y.getTypeOfSymbolAtLocation(lr,lr.valueDeclaration):Y.getAnyType(),Pe=Or&&Y.getElementTypeOfArrayType(Ke);Pe&&(Ke=Pe);var Hr=Cr.type||(Cr.valueDeclaration?Y.getTypeOfSymbolAtLocation(Cr,Cr.valueDeclaration):Y.getAnyType());Lr.push.apply(Lr,ve(Ke,Hr,Ye))}var ur=Y.getReturnTypeOfSignature(De),vr=Y.getReturnTypeOfSignature(Ae);return Lr.push.apply(Lr,ve(ur,vr,Ye)),Lr}function _e(De){return Y.createAnonymousType(void 0,e.createSymbolTable(),[Le(De)],e.emptyArray,e.emptyArray)}function Le(De){for(var Ae=[],Ye=Math.max.apply(Math,De.map(function(Cr){return Cr.argumentTypes.length})),Lr=function(Cr){var Or=Y.createSymbol(1,e.escapeLeadingUnderscores("arg".concat(Cr)));Or.type=Te(De.map(function(Ke){return Ke.argumentTypes[Cr]||Y.getUndefinedType()})),De.some(function(Ke){return Ke.argumentTypes[Cr]===void 0})&&(Or.flags|=16777216),Ae.push(Or)},Er=0;Er<Ye;Er++)Lr(Er);var lr=z(I(De.map(function(Cr){return Cr.return_})));return Y.createSignature(void 0,void 0,void 0,Ae,lr,void 0,Ye,0)}function qe(De,Ae){Ae&&!(Ae.flags&1)&&!(Ae.flags&131072)&&(De.candidateTypes||(De.candidateTypes=[])).push(Ae)}function Xe(De,Ae){Ae&&!(Ae.flags&1)&&!(Ae.flags&131072)&&(De.candidateThisTypes||(De.candidateThisTypes=[])).push(Ae)}}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixReturnTypeInAsyncFunction",d=[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];n.registerCodeFix({errorCodes:d,fixIds:[f],getCodeActions:function(N){var H=N.sourceFile,h=N.program,v=N.span,A=h.getTypeChecker(),q=a(H,h.getTypeChecker(),v.start);if(!!q){var ie=q.returnTypeNode,b=q.returnType,P=q.promisedTypeNode,S=q.promisedType,B=e.textChanges.ChangeTracker.with(N,function(J){return p(J,H,ie,P)});return[n.createCodeFixAction(f,B,[e.Diagnostics.Replace_0_with_Promise_1,A.typeToString(b),A.typeToString(S)],f,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:function(N){return n.codeFixAll(N,d,function(H,h){var v=a(h.file,N.program.getTypeChecker(),h.start);v&&p(H,h.file,v.returnTypeNode,v.promisedTypeNode)})}});function a(N,H,h){if(!e.isInJSFile(N)){var v=e.getTokenAtPosition(N,h),A=e.findAncestor(v,e.isFunctionLikeDeclaration),q=A==null?void 0:A.type;if(!!q){var ie=H.getTypeFromTypeNode(q),b=H.getAwaitedType(ie)||H.getVoidType(),P=H.typeToTypeNode(b,q,void 0);if(P)return{returnTypeNode:q,returnType:ie,promisedTypeNode:P,promisedType:b}}}}function p(N,H,h,v){N.replaceNode(H,h,e.factory.createTypeReferenceNode("Promise",[v]))}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="disableJsDiagnostics",d="disableJsDiagnostics",a=e.mapDefined(Object.keys(e.Diagnostics),function(N){var H=e.Diagnostics[N];return H.category===e.DiagnosticCategory.Error?H.code:void 0});n.registerCodeFix({errorCodes:a,getCodeActions:function(N){var H=N.sourceFile,h=N.program,v=N.span,A=N.host,q=N.formatContext;if(!(!e.isInJSFile(H)||!e.isCheckJsEnabledForFile(H,h.getCompilerOptions()))){var ie=H.checkJsDirective?"":e.getNewLineOrDefaultFromHost(A,q.options),b=[n.createCodeFixActionWithoutFixAll(f,[n.createFileTextChanges(H.fileName,[e.createTextChange(H.checkJsDirective?e.createTextSpanFromBounds(H.checkJsDirective.pos,H.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck".concat(ie))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(H,v.start)&&b.unshift(n.createCodeFixAction(f,e.textChanges.ChangeTracker.with(N,function(P){return p(P,H,v.start)}),e.Diagnostics.Ignore_this_error_message,d,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),b}},fixIds:[d],getAllCodeActions:function(N){var H=new e.Set;return n.codeFixAll(N,a,function(h,v){e.textChanges.isValidLocationToAddComment(v.file,v.start)&&p(h,v.file,v.start,H)})}});function p(N,H,h,v){var A=e.getLineAndCharacterOfPosition(H,h).line;(!v||e.tryAddToSet(v,A))&&N.insertCommentBeforeLine(H,A,h," @ts-ignore")}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){function f(K,Z,ne,R,Y,U,$){for(var T=K.symbol.members,I=0,y=Z;I<y.length;I++){var D=y[I];T.has(D.escapedName)||a(D,K,ne,R,Y,U,$,void 0)}}n.createMissingMemberNodes=f;function d(K){return{trackSymbol:function(){return!1},moduleResolverHost:e.getModuleSpecifierResolverHost(K.program,K.host)}}n.getNoopSymbolTrackerWithResolver=d,function(K){K[K.Method=1]="Method",K[K.Property=2]="Property",K[K.All=3]="All"}(n.PreserveOptionalFlags||(n.PreserveOptionalFlags={}));function a(K,Z,ne,R,Y,U,$,T,I,y){I===void 0&&(I=3),y===void 0&&(y=!1);var D=K.getDeclarations();if(!(D&&D.length))return;var C=R.program.getTypeChecker(),m=e.getEmitScriptTarget(R.program.getCompilerOptions()),u=D[0],g=e.getSynthesizedDeepClone(e.getNameOfDeclaration(u),!1),F=P(e.getEffectiveModifierFlags(u)),te=F?e.factory.createNodeArray([F]):void 0,ue=C.getWidenedType(C.getTypeOfSymbolAtLocation(K,Z)),X=!!(K.flags&16777216),j=!!(Z.flags&8388608)||y,Se=e.getQuotePreference(ne,Y);switch(u.kind){case 165:case 166:var Ce=Se===0?268435456:void 0,O=C.typeToTypeNode(ue,Z,Ce,d(R));if(U){var Q=M(O,m);Q&&(O=Q.typeNode,w(U,Q.symbols))}$(e.factory.createPropertyDeclaration(void 0,te,g,X&&I&2?e.factory.createToken(57):void 0,O,void 0));break;case 171:case 172:{var V=C.typeToTypeNode(ue,Z,void 0,d(R)),z=e.getAllAccessorDeclarations(D,u),Te=z.secondAccessor?[z.firstAccessor,z.secondAccessor]:[z.firstAccessor];if(U){var Q=M(V,m);Q&&(V=Q.typeNode,w(U,Q.symbols))}for(var ge=0,ke=Te;ge<ke.length;ge++){var Me=ke[ge];if(e.isGetAccessorDeclaration(Me))$(e.factory.createGetAccessorDeclaration(void 0,te,g,e.emptyArray,V,j?void 0:T||ie(Se)));else{e.Debug.assertNode(Me,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var Ie=e.getSetAccessorValueParameter(Me),Ge=Ie&&e.isIdentifier(Ie.name)?e.idText(Ie.name):void 0;$(e.factory.createSetAccessorDeclaration(void 0,te,g,h(1,[Ge],[V],1,!1),j?void 0:T||ie(Se)))}}break}case 167:case 168:var he=C.getSignaturesOfType(ue,0);if(!e.some(he))break;if(D.length===1){e.Debug.assert(he.length===1,"One declaration implies one signature");var ve=he[0];Le(Se,ve,te,g,j?void 0:T||ie(Se));break}for(var Ve=0,_e=he;Ve<_e.length;Ve++){var ve=_e[Ve];Le(Se,ve,e.getSynthesizedDeepClones(te,!1),e.getSynthesizedDeepClone(g,!1))}if(!j)if(D.length>he.length){var ve=C.getSignatureFromDeclaration(D[D.length-1]);Le(Se,ve,te,g,T||ie(Se))}else e.Debug.assert(D.length===he.length,"Declarations and signatures should match count"),$(v(C,R,Z,he,g,X&&!!(I&1),te,Se,T));break}function Le(qe,Xe,De,Ae,Ye){var Lr=p(168,R,qe,Xe,Ye,Ae,De,X&&!!(I&1),Z,U);Lr&&$(Lr)}}n.addNewNodeForMemberSymbol=a;function p(K,Z,ne,R,Y,U,$,T,I,y){var D=Z.program,C=D.getTypeChecker(),m=e.getEmitScriptTarget(D.getCompilerOptions()),u=1073742081|(ne===0?268435456:0),g=C.signatureToSignatureDeclaration(R,K,I,u,d(Z));if(!!g){var F=g.typeParameters,te=g.parameters,ue=g.type;if(y){if(F){var X=e.sameMap(F,function(Q){var V=Q.constraint,z=Q.default;if(V){var Te=M(V,m);Te&&(V=Te.typeNode,w(y,Te.symbols))}if(z){var Te=M(z,m);Te&&(z=Te.typeNode,w(y,Te.symbols))}return e.factory.updateTypeParameterDeclaration(Q,Q.name,V,z)});F!==X&&(F=e.setTextRange(e.factory.createNodeArray(X,F.hasTrailingComma),F))}var j=e.sameMap(te,function(Q){var V=M(Q.type,m),z=Q.type;return V&&(z=V.typeNode,w(y,V.symbols)),e.factory.updateParameterDeclaration(Q,Q.decorators,Q.modifiers,Q.dotDotDotToken,Q.name,Q.questionToken,z,Q.initializer)});if(te!==j&&(te=e.setTextRange(e.factory.createNodeArray(j,te.hasTrailingComma),te)),ue){var Se=M(ue,m);Se&&(ue=Se.typeNode,w(y,Se.symbols))}}var Ce=T?e.factory.createToken(57):void 0,O=g.asteriskToken;if(e.isFunctionExpression(g))return e.factory.updateFunctionExpression(g,$,g.asteriskToken,e.tryCast(U,e.isIdentifier),F,te,ue,Y!=null?Y:g.body);if(e.isArrowFunction(g))return e.factory.updateArrowFunction(g,$,F,te,ue,g.equalsGreaterThanToken,Y!=null?Y:g.body);if(e.isMethodDeclaration(g))return e.factory.updateMethodDeclaration(g,void 0,$,O,U!=null?U:e.factory.createIdentifier(""),Ce,F,te,ue,Y)}}n.createSignatureDeclarationFromSignature=p;function N(K,Z,ne,R,Y,U,$){var T=e.getQuotePreference(Z.sourceFile,Z.preferences),I=e.getEmitScriptTarget(Z.program.getCompilerOptions()),y=d(Z),D=Z.program.getTypeChecker(),C=e.isInJSFile($),m=R.typeArguments,u=R.arguments,g=R.parent,F=C?void 0:D.getContextualType(R),te=e.map(u,function(Q){return e.isIdentifier(Q)?Q.text:e.isPropertyAccessExpression(Q)&&e.isIdentifier(Q.name)?Q.name.text:void 0}),ue=C?[]:e.map(u,function(Q){return H(D,ne,D.getBaseTypeOfLiteralType(D.getTypeAtLocation(Q)),$,I,void 0,y)}),X=U?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(U)):void 0,j=e.isYieldExpression(g)?e.factory.createToken(41):void 0,Se=C||m===void 0?void 0:e.map(m,function(Q,V){return e.factory.createTypeParameterDeclaration(84+m.length-1<=90?String.fromCharCode(84+V):"T".concat(V))}),Ce=h(u.length,te,ue,void 0,C),O=C||F===void 0?void 0:D.typeToTypeNode(F,$,void 0,y);return K===168?e.factory.createMethodDeclaration(void 0,X,j,Y,void 0,Se,Ce,O,e.isInterfaceDeclaration($)?void 0:ie(T)):e.factory.createFunctionDeclaration(void 0,X,j,Y,Se,Ce,O,b(e.Diagnostics.Function_not_implemented.message,T))}n.createSignatureDeclarationFromCallExpression=N;function H(K,Z,ne,R,Y,U,$){var T=K.typeToTypeNode(ne,R,U,$);if(T&&e.isImportTypeNode(T)){var I=M(T,Y);I&&(w(Z,I.symbols),T=I.typeNode)}return e.getSynthesizedDeepClone(T)}n.typeToAutoImportableTypeNode=H;function h(K,Z,ne,R,Y){for(var U=[],$=0;$<K;$++){var T=e.factory.createParameterDeclaration(void 0,void 0,void 0,Z&&Z[$]||"arg".concat($),R!==void 0&&$>=R?e.factory.createToken(57):void 0,Y?void 0:ne&&ne[$]||e.factory.createKeywordTypeNode(130),void 0);U.push(T)}return U}function v(K,Z,ne,R,Y,U,$,T,I){for(var y=R[0],D=R[0].minArgumentCount,C=!1,m=0,u=R;m<u.length;m++){var g=u[m];D=Math.min(g.minArgumentCount,D),e.signatureHasRestParameter(g)&&(C=!0),g.parameters.length>=y.parameters.length&&(!e.signatureHasRestParameter(g)||e.signatureHasRestParameter(y))&&(y=g)}var F=y.parameters.length-(e.signatureHasRestParameter(y)?1:0),te=y.parameters.map(function(Se){return Se.name}),ue=h(F,te,void 0,D,!1);if(C){var X=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(130)),j=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),te[F]||"rest",F>=D?e.factory.createToken(57):void 0,X,void 0);ue.push(j)}return q($,Y,U,void 0,ue,A(R,K,Z,ne),T,I)}function A(K,Z,ne,R){if(e.length(K)){var Y=Z.getUnionType(e.map(K,Z.getReturnTypeOfSignature));return Z.typeToTypeNode(Y,R,void 0,d(ne))}}function q(K,Z,ne,R,Y,U,$,T){return e.factory.createMethodDeclaration(void 0,K,void 0,Z,ne?e.factory.createToken(57):void 0,R,Y,U,T||ie($))}function ie(K){return b(e.Diagnostics.Method_not_implemented.message,K)}function b(K,Z){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(K,Z===0)]))],!0)}n.createStubbedBody=b;function P(K){if(K&4)return e.factory.createToken(123);if(K&16)return e.factory.createToken(122)}function S(K,Z,ne){var R=e.getTsConfigObjectLiteralExpression(Z);if(!!R){var Y=k(R,"compilerOptions");if(Y===void 0){K.insertNodeAtObjectStart(Z,R,J("compilerOptions",e.factory.createObjectLiteralExpression(ne.map(function(m){var u=m[0],g=m[1];return J(u,g)}),!0)));return}var U=Y.initializer;if(!!e.isObjectLiteralExpression(U))for(var $=0,T=ne;$<T.length;$++){var I=T[$],y=I[0],D=I[1],C=k(U,y);C===void 0?K.insertNodeAtObjectStart(Z,U,J(y,D)):K.replaceNode(Z,C.initializer,D)}}}n.setJsonCompilerOptionValues=S;function B(K,Z,ne,R){S(K,Z,[[ne,R]])}n.setJsonCompilerOptionValue=B;function J(K,Z){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(K),Z)}n.createJsonPropertyAssignment=J;function k(K,Z){return e.find(K.properties,function(ne){return e.isPropertyAssignment(ne)&&!!ne.name&&e.isStringLiteral(ne.name)&&ne.name.text===Z})}n.findJsonProperty=k;function M(K,Z){var ne,R=e.visitNode(K,Y);if(ne&&R)return{typeNode:R,symbols:ne};function Y(U){var $;if(e.isLiteralImportTypeNode(U)&&U.qualifier){var T=e.getFirstIdentifier(U.qualifier),I=e.getNameForExportedSymbol(T.symbol,Z),y=I!==T.text?x(U.qualifier,e.factory.createIdentifier(I)):U.qualifier;ne=e.append(ne,T.symbol);var D=($=U.typeArguments)===null||$===void 0?void 0:$.map(Y);return e.factory.createTypeReferenceNode(y,D)}return e.visitEachChild(U,Y,e.nullTransformationContext)}}n.tryGetAutoImportableReferenceFromTypeNode=M;function x(K,Z){return K.kind===79?Z:e.factory.createQualifiedName(x(K.left,Z),K.right)}function w(K,Z){Z.forEach(function(ne){return K.addImportFromExportedSymbol(ne,!0)})}n.importSymbols=w})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){function f(M,x,w,K,Z,ne){var R=v(M,x,w,K);if(!(!R||e.refactor.isRefactorErrorInfo(R))){var Y=e.textChanges.ChangeTracker.fromContext(Z),U=R.isStatic,$=R.isReadonly,T=R.fieldName,I=R.accessorName,y=R.originalName,D=R.type,C=R.container,m=R.declaration;e.suppressLeadingAndTrailingTrivia(T),e.suppressLeadingAndTrailingTrivia(I),e.suppressLeadingAndTrailingTrivia(m),e.suppressLeadingAndTrailingTrivia(C);var u,g;if(e.isClassLike(C)){var F=e.getEffectiveModifierFlags(m);if(e.isSourceFileJS(M)){var te=e.createModifiers(F);u=te,g=te}else u=e.createModifiers(H(F)),g=e.createModifiers(h(F))}P(Y,M,m,D,T,g);var ue=A(T,I,D,u,U,C);if(e.suppressLeadingAndTrailingTrivia(ue),S(Y,M,ue,m,C),$){var X=e.getFirstConstructorWithBody(C);X&&B(Y,M,X,T.text,y)}else{var j=q(T,I,D,u,U,C);e.suppressLeadingAndTrailingTrivia(j),S(Y,M,j,m,C)}return Y.getChanges()}}n.generateAccessorFromProperty=f;function d(M){return e.isIdentifier(M)||e.isStringLiteral(M)}function a(M){return e.isParameterPropertyDeclaration(M,M.parent)||e.isPropertyDeclaration(M)||e.isPropertyAssignment(M)}function p(M,x){return e.isIdentifier(x)?e.factory.createIdentifier(M):e.factory.createStringLiteral(M)}function N(M,x,w){var K=x?w.name:e.factory.createThis();return e.isIdentifier(M)?e.factory.createPropertyAccessExpression(K,M):e.factory.createElementAccessExpression(K,e.factory.createStringLiteralFromNode(M))}function H(M){return M&=-65,M&=-9,M&16||(M|=4),M}function h(M){return M&=-5,M&=-17,M|=8,M}function v(M,x,w,K,Z){Z===void 0&&(Z=!0);var ne=e.getTokenAtPosition(M,w),R=w===K&&Z,Y=e.findAncestor(ne.parent,a),U=124;if(!Y||!(e.nodeOverlapsWithStartEnd(Y.name,M,w,K)||R))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!d(Y.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if((e.getEffectiveModifierFlags(Y)|U)!==U)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var $=Y.name.text,T=e.startsWithUnderscore($),I=p(T?$:e.getUniqueName("_".concat($),M),Y.name),y=p(T?e.getUniqueName($.substring(1),M):$,Y.name);return{isStatic:e.hasStaticModifier(Y),isReadonly:e.hasEffectiveReadonlyModifier(Y),type:J(Y,x),container:Y.kind===163?Y.parent.parent:Y.parent,originalName:Y.name.text,declaration:Y,fieldName:I,accessorName:y,renameAccessor:T}}n.getAccessorConvertiblePropertyAtPosition=v;function A(M,x,w,K,Z,ne){return e.factory.createGetAccessorDeclaration(void 0,K,x,void 0,w,e.factory.createBlock([e.factory.createReturnStatement(N(M,Z,ne))],!0))}function q(M,x,w,K,Z,ne){return e.factory.createSetAccessorDeclaration(void 0,K,x,[e.factory.createParameterDeclaration(void 0,void 0,void 0,e.factory.createIdentifier("value"),void 0,w)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(N(M,Z,ne),e.factory.createIdentifier("value")))],!0))}function ie(M,x,w,K,Z,ne){var R=e.factory.updatePropertyDeclaration(w,w.decorators,ne,Z,w.questionToken||w.exclamationToken,K,w.initializer);M.replaceNode(x,w,R)}function b(M,x,w,K){var Z=e.factory.updatePropertyAssignment(w,K,w.initializer);M.replacePropertyAssignment(x,w,Z)}function P(M,x,w,K,Z,ne){e.isPropertyDeclaration(w)?ie(M,x,w,K,Z,ne):e.isPropertyAssignment(w)?b(M,x,w,Z):M.replaceNode(x,w,e.factory.updateParameterDeclaration(w,w.decorators,ne,w.dotDotDotToken,e.cast(Z,e.isIdentifier),w.questionToken,w.type,w.initializer))}function S(M,x,w,K,Z){e.isParameterPropertyDeclaration(K,K.parent)?M.insertNodeAtClassStart(x,Z,w):e.isPropertyAssignment(K)?M.insertNodeAfterComma(x,K,w):M.insertNodeAfter(x,K,w)}function B(M,x,w,K,Z){!w.body||w.body.forEachChild(function ne(R){e.isElementAccessExpression(R)&&R.expression.kind===108&&e.isStringLiteral(R.argumentExpression)&&R.argumentExpression.text===Z&&e.isWriteAccess(R)&&M.replaceNode(x,R.argumentExpression,e.factory.createStringLiteral(K)),e.isPropertyAccessExpression(R)&&R.expression.kind===108&&R.name.text===Z&&e.isWriteAccess(R)&&M.replaceNode(x,R.name,e.factory.createIdentifier(K)),!e.isFunctionLike(R)&&!e.isClassLike(R)&&R.forEachChild(ne)})}function J(M,x){var w=e.getTypeAnnotationNode(M);if(e.isPropertyDeclaration(M)&&w&&M.questionToken){var K=x.getTypeChecker(),Z=K.getTypeFromTypeNode(w);if(!K.isTypeAssignableTo(K.getUndefinedType(),Z)){var ne=e.isUnionTypeNode(w)?w.types:[w];return e.factory.createUnionTypeNode(Gt(Gt([],ne,!0),[e.factory.createKeywordTypeNode(152)],!1))}}return w}function k(M,x){for(var w=[];M;){var K=e.getClassExtendsHeritageElement(M),Z=K&&x.getSymbolAtLocation(K.expression);if(!Z)break;var ne=Z.flags&2097152?x.getAliasedSymbol(Z):Z,R=ne.declarations&&e.find(ne.declarations,e.isClassLike);if(!R)break;w.push(R),M=R}return w}n.getAllSupers=k})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="invalidImportSyntax";function d(h,v){var A=e.getSourceFileOfNode(v),q=e.getNamespaceDeclarationNode(v),ie=h.program.getCompilerOptions(),b=[];return b.push(a(h,A,v,e.makeImport(q.name,void 0,v.moduleSpecifier,e.getQuotePreference(A,h.preferences)))),e.getEmitModuleKind(ie)===e.ModuleKind.CommonJS&&b.push(a(h,A,v,e.factory.createImportEqualsDeclaration(void 0,void 0,!1,q.name,e.factory.createExternalModuleReference(v.moduleSpecifier)))),b}function a(h,v,A,q){var ie=e.textChanges.ChangeTracker.with(h,function(b){return b.replaceNode(v,A,q)});return n.createCodeFixActionWithoutFixAll(f,ie,[e.Diagnostics.Replace_import_with_0,ie[0].textChanges[0].newText])}n.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:p});function p(h){var v=h.sourceFile,A=e.Diagnostics.This_expression_is_not_callable.code===h.errorCode?207:208,q=e.findAncestor(e.getTokenAtPosition(v,h.span.start),function(b){return b.kind===A});if(!q)return[];var ie=q.expression;return H(h,ie)}n.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:N});function N(h){var v=h.sourceFile,A=e.findAncestor(e.getTokenAtPosition(v,h.span.start),function(q){return q.getStart()===h.span.start&&q.getEnd()===h.span.start+h.span.length});return A?H(h,A):[]}function H(h,v){var A=h.program.getTypeChecker().getTypeAtLocation(v);if(!(A.symbol&&A.symbol.originatingImport))return[];var q=[],ie=A.symbol.originatingImport;if(e.isImportCall(ie)||e.addRange(q,d(h,ie)),e.isExpression(v)&&!(e.isNamedDeclaration(v.parent)&&v.parent.name===v)){var b=h.sourceFile,P=e.textChanges.ChangeTracker.with(h,function(S){return S.replaceNode(b,v,e.factory.createPropertyAccessExpression(v,"default"),{})});q.push(n.createCodeFixActionWithoutFixAll(f,P,e.Diagnostics.Use_synthetic_default_member))}return q}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="strictClassInitialization",d="addMissingPropertyDefiniteAssignmentAssertions",a="addMissingPropertyUndefinedType",p="addMissingPropertyInitializer",N=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];n.registerCodeFix({errorCodes:N,getCodeActions:function(B){var J=H(B.sourceFile,B.span.start);if(!!J){var k=[A(B,J),h(B,J)];return e.append(k,ie(B,J)),k}},fixIds:[d,a,p],getAllCodeActions:function(B){return n.codeFixAll(B,N,function(J,k){var M=H(k.file,k.start);if(!!M)switch(B.fixId){case d:v(J,k.file,M);break;case a:q(J,k.file,M);break;case p:var x=B.program.getTypeChecker(),w=P(x,M);if(!w)return;b(J,k.file,M,w);break;default:e.Debug.fail(JSON.stringify(B.fixId))}})}});function H(B,J){var k=e.getTokenAtPosition(B,J);return e.isIdentifier(k)?e.cast(k.parent,e.isPropertyDeclaration):void 0}function h(B,J){var k=e.textChanges.ChangeTracker.with(B,function(M){return v(M,B.sourceFile,J)});return n.createCodeFixAction(f,k,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,J.getText()],d,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function v(B,J,k){var M=e.factory.updatePropertyDeclaration(k,k.decorators,k.modifiers,k.name,e.factory.createToken(53),k.type,k.initializer);B.replaceNode(J,k,M)}function A(B,J){var k=e.textChanges.ChangeTracker.with(B,function(M){return q(M,B.sourceFile,J)});return n.createCodeFixAction(f,k,[e.Diagnostics.Add_undefined_type_to_property_0,J.name.getText()],a,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function q(B,J,k){var M=e.factory.createKeywordTypeNode(152),x=k.type,w=e.isUnionTypeNode(x)?x.types.concat(M):[x,M];B.replaceNode(J,x,e.factory.createUnionTypeNode(w))}function ie(B,J){var k=B.program.getTypeChecker(),M=P(k,J);if(!!M){var x=e.textChanges.ChangeTracker.with(B,function(w){return b(w,B.sourceFile,J,M)});return n.createCodeFixAction(f,x,[e.Diagnostics.Add_initializer_to_property_0,J.name.getText()],p,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}}function b(B,J,k,M){var x=e.factory.updatePropertyDeclaration(k,k.decorators,k.modifiers,k.name,k.questionToken,k.type,M);B.replaceNode(J,k,x)}function P(B,J){return S(B,B.getTypeFromTypeNode(J.type))}function S(B,J){if(J.flags&512)return J===B.getFalseType()||J===B.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(J.isStringLiteral())return e.factory.createStringLiteral(J.value);if(J.isNumberLiteral())return e.factory.createNumericLiteral(J.value);if(J.flags&2048)return e.factory.createBigIntLiteral(J.value);if(J.isUnion())return e.firstDefined(J.types,function(x){return S(B,x)});if(J.isClass()){var k=e.getClassLikeDeclarationOfSymbol(J.symbol);if(!k||e.hasSyntacticModifier(k,128))return;var M=e.getFirstConstructorWithBody(k);return M&&M.parameters.length?void 0:e.factory.createNewExpression(e.factory.createIdentifier(J.symbol.name),void 0,void 0)}else if(B.isArrayLikeType(J))return e.factory.createArrayLiteralExpression()}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="requireInTs",d=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(H){var h=p(H.sourceFile,H.program,H.span.start);if(!!h){var v=e.textChanges.ChangeTracker.with(H,function(A){return a(A,H.sourceFile,h)});return[n.createCodeFixAction(f,v,e.Diagnostics.Convert_require_to_import,f,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[f],getAllCodeActions:function(H){return n.codeFixAll(H,d,function(h,v){var A=p(v.file,H.program,v.start);A&&a(h,H.sourceFile,A)})}});function a(H,h,v){var A=v.allowSyntheticDefaults,q=v.defaultImportName,ie=v.namedImports,b=v.statement,P=v.required;H.replaceNode(h,b,q&&!A?e.factory.createImportEqualsDeclaration(void 0,void 0,!1,q,e.factory.createExternalModuleReference(P)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,q,ie),P,void 0))}function p(H,h,v){var A=e.getTokenAtPosition(H,v).parent;if(!e.isRequireCall(A,!0))throw e.Debug.failBadSyntaxKind(A);var q=e.cast(A.parent,e.isVariableDeclaration),ie=e.tryCast(q.name,e.isIdentifier),b=e.isObjectBindingPattern(q.name)?N(q.name):void 0;if(ie||b)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(h.getCompilerOptions()),defaultImportName:ie,namedImports:b,statement:e.cast(q.parent.parent,e.isVariableStatement),required:e.first(A.arguments)}}function N(H){for(var h=[],v=0,A=H.elements;v<A.length;v++){var q=A[v];if(!e.isIdentifier(q.name)||q.initializer)return;h.push(e.factory.createImportSpecifier(!1,e.tryCast(q.propertyName,e.isIdentifier),q.name))}if(h.length)return e.factory.createNamedImports(h)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="useDefaultImport",d=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(N){var H=N.sourceFile,h=N.span.start,v=a(H,h);if(!!v){var A=e.textChanges.ChangeTracker.with(N,function(q){return p(q,H,v,N.preferences)});return[n.createCodeFixAction(f,A,e.Diagnostics.Convert_to_default_import,f,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[f],getAllCodeActions:function(N){return n.codeFixAll(N,d,function(H,h){var v=a(h.file,h.start);v&&p(H,h.file,v,N.preferences)})}});function a(N,H){var h=e.getTokenAtPosition(N,H);if(!!e.isIdentifier(h)){var v=h.parent;if(e.isImportEqualsDeclaration(v)&&e.isExternalModuleReference(v.moduleReference))return{importNode:v,name:h,moduleSpecifier:v.moduleReference.expression};if(e.isNamespaceImport(v)){var A=v.parent.parent;return{importNode:A,name:h,moduleSpecifier:A.moduleSpecifier}}}}function p(N,H,h,v){N.replaceNode(H,h.importNode,e.makeImport(h.name,void 0,h.moduleSpecifier,e.getQuotePreference(H,v)))}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="useBigintLiteral",d=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(p){var N=e.textChanges.ChangeTracker.with(p,function(H){return a(H,p.sourceFile,p.span)});if(N.length>0)return[n.createCodeFixAction(f,N,e.Diagnostics.Convert_to_a_bigint_numeric_literal,f,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[f],getAllCodeActions:function(p){return n.codeFixAll(p,d,function(N,H){return a(N,H.file,H)})}});function a(p,N,H){var h=e.tryCast(e.getTokenAtPosition(N,H.start),e.isNumericLiteral);if(!!h){var v=h.getText(N)+"n";p.replaceNode(N,h,e.factory.createBigIntLiteral(v))}}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixAddModuleReferTypeMissingTypeof",d=f,a=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];n.registerCodeFix({errorCodes:a,getCodeActions:function(H){var h=H.sourceFile,v=H.span,A=p(h,v.start),q=e.textChanges.ChangeTracker.with(H,function(ie){return N(ie,h,A)});return[n.createCodeFixAction(d,q,e.Diagnostics.Add_missing_typeof,d,e.Diagnostics.Add_missing_typeof)]},fixIds:[d],getAllCodeActions:function(H){return n.codeFixAll(H,a,function(h,v){return N(h,H.sourceFile,p(v.file,v.start))})}});function p(H,h){var v=e.getTokenAtPosition(H,h);return e.Debug.assert(v.kind===100,"This token should be an ImportKeyword"),e.Debug.assert(v.parent.kind===199,"Token parent should be an ImportType"),v.parent}function N(H,h,v){var A=e.factory.updateImportTypeNode(v,v.argument,v.qualifier,v.typeArguments,!0);H.replaceNode(h,v,A)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="wrapJsxInFragment",d=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(H){var h=H.sourceFile,v=H.span,A=a(h,v.start);if(!!A){var q=e.textChanges.ChangeTracker.with(H,function(ie){return p(ie,h,A)});return[n.createCodeFixAction(f,q,e.Diagnostics.Wrap_in_JSX_fragment,f,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[f],getAllCodeActions:function(H){return n.codeFixAll(H,d,function(h,v){var A=a(H.sourceFile,v.start);!A||p(h,H.sourceFile,A)})}});function a(H,h){var v=e.getTokenAtPosition(H,h),A=v.parent,q=A.parent;if(!(!e.isBinaryExpression(q)&&(q=q.parent,!e.isBinaryExpression(q)))&&!!e.nodeIsMissing(q.operatorToken))return q}function p(H,h,v){var A=N(v);A&&H.replaceNode(h,v,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),A,e.factory.createJsxJsxClosingFragment()))}function N(H){for(var h=[],v=H;;)if(e.isBinaryExpression(v)&&e.nodeIsMissing(v.operatorToken)&&v.operatorToken.kind===27){if(h.push(v.left),e.isJsxChild(v.right))return h.push(v.right),h;if(e.isBinaryExpression(v.right)){v=v.right;continue}else return}else return}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixConvertToMappedObjectType",d=f,a=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];n.registerCodeFix({errorCodes:a,getCodeActions:function(h){var v=h.sourceFile,A=h.span,q=p(v,A.start);if(!!q){var ie=e.textChanges.ChangeTracker.with(h,function(P){return H(P,v,q)}),b=e.idText(q.container.name);return[n.createCodeFixAction(d,ie,[e.Diagnostics.Convert_0_to_mapped_object_type,b],d,[e.Diagnostics.Convert_0_to_mapped_object_type,b])]}},fixIds:[d],getAllCodeActions:function(h){return n.codeFixAll(h,a,function(v,A){var q=p(A.file,A.start);q&&H(v,A.file,q)})}});function p(h,v){var A=e.getTokenAtPosition(h,v),q=e.cast(A.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(q.parent)){var ie=e.isInterfaceDeclaration(q.parent)?q.parent:e.cast(q.parent.parent,e.isTypeAliasDeclaration);return{indexSignature:q,container:ie}}}function N(h,v){return e.factory.createTypeAliasDeclaration(h.decorators,h.modifiers,h.name,h.typeParameters,v)}function H(h,v,A){var q=A.indexSignature,ie=A.container,b=e.isInterfaceDeclaration(ie)?ie.members:ie.type.members,P=b.filter(function(M){return!e.isIndexSignatureDeclaration(M)}),S=e.first(q.parameters),B=e.factory.createTypeParameterDeclaration(e.cast(S.name,e.isIdentifier),S.type),J=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(q)?e.factory.createModifier(144):void 0,B,void 0,q.questionToken,q.type,void 0),k=e.factory.createIntersectionTypeNode(Gt(Gt(Gt([],e.getAllSuperTypeNodes(ie),!0),[J],!1),P.length?[e.factory.createTypeLiteralNode(P)]:e.emptyArray,!0));h.replaceNode(v,ie,N(ie,k))}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="removeAccidentalCallParentheses",d=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(a){var p=e.findAncestor(e.getTokenAtPosition(a.sourceFile,a.span.start),e.isCallExpression);if(!!p){var N=e.textChanges.ChangeTracker.with(a,function(H){H.deleteRange(a.sourceFile,{pos:p.expression.end,end:p.end})});return[n.createCodeFixActionWithoutFixAll(f,N,e.Diagnostics.Remove_parentheses)]}},fixIds:[f]})})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="removeUnnecessaryAwait",d=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(p){var N=e.textChanges.ChangeTracker.with(p,function(H){return a(H,p.sourceFile,p.span)});if(N.length>0)return[n.createCodeFixAction(f,N,e.Diagnostics.Remove_unnecessary_await,f,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[f],getAllCodeActions:function(p){return n.codeFixAll(p,d,function(N,H){return a(N,H.file,H)})}});function a(p,N,H){var h=e.tryCast(e.getTokenAtPosition(N,H.start),function(P){return P.kind===132}),v=h&&e.tryCast(h.parent,e.isAwaitExpression);if(!!v){var A=v,q=e.isParenthesizedExpression(v.parent);if(q){var ie=e.getLeftmostExpression(v.expression,!1);if(e.isIdentifier(ie)){var b=e.findPrecedingToken(v.parent.pos,N);b&&b.kind!==103&&(A=v.parent)}}p.replaceNode(N,A,v.expression)}}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],d="splitTypeOnlyImport";n.registerCodeFix({errorCodes:f,fixIds:[d],getCodeActions:function(N){var H=e.textChanges.ChangeTracker.with(N,function(h){return p(h,a(N.sourceFile,N.span),N)});if(H.length)return[n.createCodeFixAction(d,H,e.Diagnostics.Split_into_two_separate_import_declarations,d,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(N){return n.codeFixAll(N,f,function(H,h){p(H,a(N.sourceFile,h),N)})}});function a(N,H){return e.findAncestor(e.getTokenAtPosition(N,H.start),e.isImportDeclaration)}function p(N,H,h){if(!!H){var v=e.Debug.checkDefined(H.importClause);N.replaceNode(h.sourceFile,H,e.factory.updateImportDeclaration(H,H.decorators,H.modifiers,e.factory.updateImportClause(v,v.isTypeOnly,v.name,void 0),H.moduleSpecifier,H.assertClause)),N.insertNodeAfter(h.sourceFile,H,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(v,v.isTypeOnly,void 0,v.namedBindings),H.moduleSpecifier,H.assertClause))}}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixConvertConstToLet",d=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(N){var H=N.sourceFile,h=N.span,v=N.program,A=a(H,h.start,v);if(A!==void 0){var q=e.textChanges.ChangeTracker.with(N,function(ie){return p(ie,H,A)});return[n.createCodeFixAction(f,q,e.Diagnostics.Convert_const_to_let,f,e.Diagnostics.Convert_const_to_let)]}},fixIds:[f]});function a(N,H,h){var v,A=h.getTypeChecker(),q=A.getSymbolAtLocation(e.getTokenAtPosition(N,H)),ie=e.tryCast((v=q==null?void 0:q.valueDeclaration)===null||v===void 0?void 0:v.parent,e.isVariableDeclarationList);if(ie!==void 0){var b=e.findChildOfKind(ie,85,N);if(b!==void 0)return e.createRange(b.pos,b.end)}}function p(N,H,h){N.replaceRangeWithText(H,h,"let")}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="fixExpectedComma",d=e.Diagnostics._0_expected.code,a=[d];n.registerCodeFix({errorCodes:a,getCodeActions:function(H){var h=H.sourceFile,v=p(h,H.span.start,H.errorCode);if(!!v){var A=e.textChanges.ChangeTracker.with(H,function(q){return N(q,h,v)});return[n.createCodeFixAction(f,A,[e.Diagnostics.Change_0_to_1,";",","],f,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[f],getAllCodeActions:function(H){return n.codeFixAll(H,a,function(h,v){var A=p(v.file,v.start,v.code);A&&N(h,H.sourceFile,A)})}});function p(H,h,v){var A=e.getTokenAtPosition(H,h);return A.kind===26&&A.parent&&(e.isObjectLiteralExpression(A.parent)||e.isArrayLiteralExpression(A.parent))?{node:A}:void 0}function N(H,h,v){var A=v.node,q=e.factory.createToken(27);H.replaceNode(h,A,q)}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="addVoidToPromise",d="addVoidToPromise",a=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];n.registerCodeFix({errorCodes:a,fixIds:[d],getCodeActions:function(H){var h=e.textChanges.ChangeTracker.with(H,function(v){return p(v,H.sourceFile,H.span,H.program)});if(h.length>0)return[n.createCodeFixAction(f,h,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,d,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(H){return n.codeFixAll(H,a,function(h,v){return p(h,v.file,v,H.program,new e.Set)})}});function p(H,h,v,A,q){var ie=e.getTokenAtPosition(h,v.start);if(!(!e.isIdentifier(ie)||!e.isCallExpression(ie.parent)||ie.parent.expression!==ie||ie.parent.arguments.length!==0)){var b=A.getTypeChecker(),P=b.getSymbolAtLocation(ie),S=P==null?void 0:P.valueDeclaration;if(!(!S||!e.isParameter(S)||!e.isNewExpression(S.parent.parent))&&!(q!=null&&q.has(S))){q==null||q.add(S);var B=N(S.parent.parent);if(e.some(B)){var J=B[0],k=!e.isUnionTypeNode(J)&&!e.isParenthesizedTypeNode(J)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([J,e.factory.createKeywordTypeNode(114)]).types[0]);k&&H.insertText(h,J.pos,"("),H.insertText(h,J.end,k?") | void":" | void")}else{var M=b.getResolvedSignature(ie.parent),x=M==null?void 0:M.parameters[0],w=x&&b.getTypeOfSymbolAtLocation(x,S.parent.parent);e.isInJSFile(S)?(!w||w.flags&3)&&(H.insertText(h,S.parent.parent.end,")"),H.insertText(h,e.skipTrivia(h.text,S.parent.parent.pos),"/** @type {Promise<void>} */(")):(!w||w.flags&2)&&H.insertText(h,S.parent.parent.expression.end,"<void>")}}}}function N(H){var h;if(e.isInJSFile(H)){if(e.isParenthesizedExpression(H.parent)){var v=(h=e.getJSDocTypeTag(H.parent))===null||h===void 0?void 0:h.typeExpression.type;if(v&&e.isTypeReferenceNode(v)&&e.isIdentifier(v.typeName)&&e.idText(v.typeName)==="Promise")return v.typeArguments}}else return H.typeArguments}})(e.codefix||(e.codefix={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="Convert export",d={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},a={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};n.registerRefactor(f,{kinds:[d.kind,a.kind],getAvailableActions:function(b){var P=p(b,b.triggerReason==="invoked");if(!P)return e.emptyArray;if(!n.isRefactorErrorInfo(P)){var S=P.wasDefault?d:a;return[{name:f,description:S.description,actions:[S]}]}return b.preferences.provideRefactorNotApplicableReason?[{name:f,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[Rn(Rn({},d),{notApplicableReason:P.error}),Rn(Rn({},a),{notApplicableReason:P.error})]}]:e.emptyArray},getEditsForAction:function(b,P){e.Debug.assert(P===d.name||P===a.name,"Unexpected action name");var S=p(b);e.Debug.assert(S&&!n.isRefactorErrorInfo(S),"Expected applicable refactor info");var B=e.textChanges.ChangeTracker.with(b,function(J){return N(b.file,b.program,S,J,b.cancellationToken)});return{edits:B,renameFilename:void 0,renameLocation:void 0}}});function p(b,P){P===void 0&&(P=!0);var S=b.file,B=b.program,J=e.getRefactorContextSpan(b),k=e.getTokenAtPosition(S,J.start),M=!!(k.parent&&e.getSyntacticModifierFlags(k.parent)&1)&&P?k.parent:e.getParentNodeInSpan(k,S,J);if(!M||!e.isSourceFile(M.parent)&&!(e.isModuleBlock(M.parent)&&e.isAmbientModule(M.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var x=e.isSourceFile(M.parent)?M.parent.symbol:M.parent.parent.symbol,w=e.getSyntacticModifierFlags(M)||(e.isExportAssignment(M)&&!M.isExportEquals?513:0),K=!!(w&512);if(!(w&1)||!K&&x.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var Z=B.getTypeChecker(),ne=function($){return e.isIdentifier($)&&Z.getSymbolAtLocation($)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(M.kind){case 255:case 256:case 257:case 259:case 258:case 260:{var R=M;return R.name?ne(R.name)||{exportNode:R,exportName:R.name,wasDefault:K,exportingModuleSymbol:x}:void 0}case 236:{var Y=M;if(!(Y.declarationList.flags&2)||Y.declarationList.declarations.length!==1)return;var U=e.first(Y.declarationList.declarations);return U.initializer?(e.Debug.assert(!K,"Can't have a default flag here"),ne(U.name)||{exportNode:Y,exportName:U.name,wasDefault:K,exportingModuleSymbol:x}):void 0}case 270:{var R=M;return R.isExportEquals?void 0:ne(R.expression)||{exportNode:R,exportName:R.expression,wasDefault:K,exportingModuleSymbol:x}}default:return}}function N(b,P,S,B,J){H(b,S,B,P.getTypeChecker()),h(P,S,B,J)}function H(b,P,S,B){var J=P.wasDefault,k=P.exportNode,M=P.exportName;if(J)if(e.isExportAssignment(k)&&!k.isExportEquals){var x=k.expression,w=ie(x.text,x.text);S.replaceNode(b,k,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([w])))}else S.delete(b,e.Debug.checkDefined(e.findModifier(k,88),"Should find a default keyword in modifier list"));else{var K=e.Debug.checkDefined(e.findModifier(k,93),"Should find an export keyword in modifier list");switch(k.kind){case 255:case 256:case 257:S.insertNodeAfter(b,K,e.factory.createToken(88));break;case 236:var Z=e.first(k.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(M,B,b)&&!Z.type){S.replaceNode(b,k,e.factory.createExportDefault(e.Debug.checkDefined(Z.initializer,"Initializer was previously known to be present")));break}case 259:case 258:case 260:S.deleteModifier(b,K),S.insertNodeAfter(b,k,e.factory.createExportDefault(e.factory.createIdentifier(M.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(k.kind))}}}function h(b,P,S,B){var J=P.wasDefault,k=P.exportName,M=P.exportingModuleSymbol,x=b.getTypeChecker(),w=e.Debug.checkDefined(x.getSymbolAtLocation(k),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(b.getSourceFiles(),x,B,w,M,k.text,J,function(K){var Z=K.getSourceFile();J?v(Z,K,S,k.text):A(Z,K,S)})}function v(b,P,S,B){var J=P.parent;switch(J.kind){case 205:S.replaceNode(b,P,e.factory.createIdentifier(B));break;case 269:case 274:{var k=J;S.replaceNode(b,k,q(B,k.name.text));break}case 266:{var M=J;e.Debug.assert(M.name===P,"Import clause name should match provided ref");var k=q(B,P.text),x=M.namedBindings;if(!x)S.replaceNode(b,P,e.factory.createNamedImports([k]));else if(x.kind===267){S.deleteRange(b,{pos:P.getStart(b),end:x.getStart(b)});var w=e.isStringLiteral(M.parent.moduleSpecifier)?e.quotePreferenceFromString(M.parent.moduleSpecifier,b):1,K=e.makeImport(void 0,[q(B,P.text)],M.parent.moduleSpecifier,w);S.insertNodeAfter(b,M.parent,K)}else S.delete(b,P),S.insertNodeAtEndOfList(b,x.elements,k);break}default:e.Debug.failBadSyntaxKind(J)}}function A(b,P,S){var B=P.parent;switch(B.kind){case 205:S.replaceNode(b,P,e.factory.createIdentifier("default"));break;case 269:{var J=e.factory.createIdentifier(B.name.text);B.parent.elements.length===1?S.replaceNode(b,B.parent,J):(S.delete(b,B),S.insertNodeBefore(b,B.parent,J));break}case 274:{S.replaceNode(b,B,ie("default",B.name.text));break}default:e.Debug.assertNever(B,"Unexpected parent kind ".concat(B.kind))}}function q(b,P){return e.factory.createImportSpecifier(!1,b===P?void 0:e.factory.createIdentifier(b),e.factory.createIdentifier(P))}function ie(b,P){return e.factory.createExportSpecifier(!1,b===P?void 0:e.factory.createIdentifier(b),e.factory.createIdentifier(P))}})(e.refactor||(e.refactor={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="Convert import",d={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},a={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"};n.registerRefactor(f,{kinds:[d.kind,a.kind],getAvailableActions:function(ie){var b=p(ie,ie.triggerReason==="invoked");if(!b)return e.emptyArray;if(!n.isRefactorErrorInfo(b)){var P=b.kind===267,S=P?d:a;return[{name:f,description:S.description,actions:[S]}]}return ie.preferences.provideRefactorNotApplicableReason?[{name:f,description:d.description,actions:[Rn(Rn({},d),{notApplicableReason:b.error})]},{name:f,description:a.description,actions:[Rn(Rn({},a),{notApplicableReason:b.error})]}]:e.emptyArray},getEditsForAction:function(ie,b){e.Debug.assert(b===d.name||b===a.name,"Unexpected action name");var P=p(ie);e.Debug.assert(P&&!n.isRefactorErrorInfo(P),"Expected applicable refactor info");var S=e.textChanges.ChangeTracker.with(ie,function(B){return N(ie.file,ie.program,B,P)});return{edits:S,renameFilename:void 0,renameLocation:void 0}}});function p(ie,b){b===void 0&&(b=!0);var P=ie.file,S=e.getRefactorContextSpan(ie),B=e.getTokenAtPosition(P,S.start),J=b?e.findAncestor(B,e.isImportDeclaration):e.getParentNodeInSpan(B,P,S);if(!J||!e.isImportDeclaration(J))return{error:"Selection is not an import declaration."};var k=S.start+S.length,M=e.findNextToken(J,J.parent,P);if(!(M&&k>M.getStart())){var x=J.importClause;return x?x.namedBindings?x.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 N(ie,b,P,S){var B=b.getTypeChecker();S.kind===267?H(ie,B,P,S,e.getAllowSyntheticDefaultImports(b.getCompilerOptions())):A(ie,B,P,S)}function H(ie,b,P,S,B){var J=!1,k=[],M=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(S.name,b,ie,function($){if(!e.isPropertyAccessOrQualifiedName($.parent))J=!0;else{var T=h($.parent).text;b.resolveName(T,$,67108863,!0)&&M.set(T,!0),e.Debug.assert(v($.parent)===$,"Parent expression should match id"),k.push($.parent)}});for(var x=new e.Map,w=0,K=k;w<K.length;w++){var Z=K[w],ne=h(Z).text,R=x.get(ne);R===void 0&&x.set(ne,R=M.has(ne)?e.getUniqueName(ne,ie):ne),P.replaceNode(ie,Z,e.factory.createIdentifier(R))}var Y=[];x.forEach(function($,T){Y.push(e.factory.createImportSpecifier(!1,$===T?void 0:e.factory.createIdentifier(T),e.factory.createIdentifier($)))});var U=S.parent.parent;J&&!B?P.insertNodeAfter(ie,U,q(U,void 0,Y)):P.replaceNode(ie,U,q(U,J?e.factory.createIdentifier(S.name.text):void 0,Y))}function h(ie){return e.isPropertyAccessExpression(ie)?ie.name:ie.right}function v(ie){return e.isPropertyAccessExpression(ie)?ie.expression:ie.left}function A(ie,b,P,S){var B=S.parent.parent,J=B.moduleSpecifier,k=new e.Set;S.elements.forEach(function(T){var I=b.getSymbolAtLocation(T.name);I&&k.add(I)});var M=J&&e.isStringLiteral(J)?e.codefix.moduleSpecifierToValidIdentifier(J.text,99):"module";function x(T){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(T.name,b,ie,function(I){var y=b.resolveName(M,I,67108863,!0);return y?k.has(y)?e.isExportSpecifier(I.parent):!0:!1})}for(var w=S.elements.some(x),K=w?e.getUniqueName(M,ie):M,Z=new e.Set,ne=function(T){var I=(T.propertyName||T.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(T.name,b,ie,function(y){var D=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(K),I);e.isShorthandPropertyAssignment(y.parent)?P.replaceNode(ie,y.parent,e.factory.createPropertyAssignment(y.text,D)):e.isExportSpecifier(y.parent)?Z.add(T):P.replaceNode(ie,y,D)})},R=0,Y=S.elements;R<Y.length;R++){var U=Y[R];ne(U)}if(P.replaceNode(ie,S,e.factory.createNamespaceImport(e.factory.createIdentifier(K))),Z.size){var $=e.arrayFrom(Z.values()).map(function(T){return e.factory.createImportSpecifier(T.isTypeOnly,T.propertyName&&e.factory.createIdentifier(T.propertyName.text),e.factory.createIdentifier(T.name.text))});P.insertNodeAfter(ie,S.parent.parent,q(B,void 0,$))}}function q(ie,b,P){return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,b,P&&P.length?e.factory.createNamedImports(P):void 0),ie.moduleSpecifier,void 0)}})(e.refactor||(e.refactor={}))})(gr||(gr={}));var gr;(function(e){(function(n){(function(f){var d="Convert to optional chain expression",a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),p={name:d,description:a,kind:"refactor.rewrite.expression.optionalChain"};n.registerRefactor(d,{kinds:[p.kind],getAvailableActions:N,getEditsForAction:H});function N(ne){var R=q(ne,ne.triggerReason==="invoked");return R?n.isRefactorErrorInfo(R)?ne.preferences.provideRefactorNotApplicableReason?[{name:d,description:a,actions:[Rn(Rn({},p),{notApplicableReason:R.error})]}]:e.emptyArray:[{name:d,description:a,actions:[p]}]:e.emptyArray}function H(ne,R){var Y=q(ne);e.Debug.assert(Y&&!n.isRefactorErrorInfo(Y),"Expected applicable refactor info");var U=e.textChanges.ChangeTracker.with(ne,function($){return Z(ne.file,ne.program.getTypeChecker(),$,Y)});return{edits:U,renameFilename:void 0,renameLocation:void 0}}function h(ne){return e.isBinaryExpression(ne)||e.isConditionalExpression(ne)}function v(ne){return e.isExpressionStatement(ne)||e.isReturnStatement(ne)||e.isVariableStatement(ne)}function A(ne){return h(ne)||v(ne)}function q(ne,R){R===void 0&&(R=!0);var Y=ne.file,U=ne.program,$=e.getRefactorContextSpan(ne),T=$.length===0;if(!(T&&!R)){var I=e.getTokenAtPosition(Y,$.start),y=e.findTokenOnLeftOfPosition(Y,$.start+$.length),D=e.createTextSpanFromBounds(I.pos,y&&y.end>=I.pos?y.getEnd():I.getEnd()),C=T?M(I):k(I,D),m=C&&A(C)?x(C):void 0;if(!m)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var u=U.getTypeChecker();return e.isConditionalExpression(m)?ie(m,u):b(m)}}function ie(ne,R){var Y=ne.condition,U=w(ne.whenTrue);if(!U||R.isNullableType(R.getTypeAtLocation(U)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(Y)||e.isIdentifier(Y))&&S(Y,U.expression))return{finalExpression:U,occurrences:[Y],expression:ne};if(e.isBinaryExpression(Y)){var $=P(U.expression,Y);return $?{finalExpression:U,occurrences:$,expression:ne}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}function b(ne){if(ne.operatorToken.kind!==55)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var R=w(ne.right);if(!R)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var Y=P(R.expression,ne.left);return Y?{finalExpression:R,occurrences:Y,expression:ne}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}function P(ne,R){for(var Y=[];e.isBinaryExpression(R)&&R.operatorToken.kind===55;){var U=S(e.skipParentheses(ne),e.skipParentheses(R.right));if(!U)break;Y.push(U),ne=U,R=R.left}var $=S(ne,R);return $&&Y.push($),Y.length>0?Y:void 0}function S(ne,R){if(!(!e.isIdentifier(R)&&!e.isPropertyAccessExpression(R)&&!e.isElementAccessExpression(R)))return B(ne,R)?R:void 0}function B(ne,R){for(;(e.isCallExpression(ne)||e.isPropertyAccessExpression(ne)||e.isElementAccessExpression(ne))&&J(ne)!==J(R);)ne=ne.expression;for(;e.isPropertyAccessExpression(ne)&&e.isPropertyAccessExpression(R)||e.isElementAccessExpression(ne)&&e.isElementAccessExpression(R);){if(J(ne)!==J(R))return!1;ne=ne.expression,R=R.expression}return e.isIdentifier(ne)&&e.isIdentifier(R)&&ne.getText()===R.getText()}function J(ne){if(e.isIdentifier(ne)||e.isStringOrNumericLiteralLike(ne))return ne.getText();if(e.isPropertyAccessExpression(ne))return J(ne.name);if(e.isElementAccessExpression(ne))return J(ne.argumentExpression)}function k(ne,R){for(;ne.parent;){if(A(ne)&&R.length!==0&&ne.end>=R.start+R.length)return ne;ne=ne.parent}}function M(ne){for(;ne.parent;){if(A(ne)&&!A(ne.parent))return ne;ne=ne.parent}}function x(ne){if(h(ne))return ne;if(e.isVariableStatement(ne)){var R=e.getSingleVariableOfVariableStatement(ne),Y=R==null?void 0:R.initializer;return Y&&h(Y)?Y:void 0}return ne.expression&&h(ne.expression)?ne.expression:void 0}function w(ne){if(ne=e.skipParentheses(ne),e.isBinaryExpression(ne))return w(ne.left);if((e.isPropertyAccessExpression(ne)||e.isElementAccessExpression(ne)||e.isCallExpression(ne))&&!e.isOptionalChain(ne))return ne}function K(ne,R,Y){if(e.isPropertyAccessExpression(R)||e.isElementAccessExpression(R)||e.isCallExpression(R)){var U=K(ne,R.expression,Y),$=Y.length>0?Y[Y.length-1]:void 0,T=($==null?void 0:$.getText())===R.expression.getText();if(T&&Y.pop(),e.isCallExpression(R))return T?e.factory.createCallChain(U,e.factory.createToken(28),R.typeArguments,R.arguments):e.factory.createCallChain(U,R.questionDotToken,R.typeArguments,R.arguments);if(e.isPropertyAccessExpression(R))return T?e.factory.createPropertyAccessChain(U,e.factory.createToken(28),R.name):e.factory.createPropertyAccessChain(U,R.questionDotToken,R.name);if(e.isElementAccessExpression(R))return T?e.factory.createElementAccessChain(U,e.factory.createToken(28),R.argumentExpression):e.factory.createElementAccessChain(U,R.questionDotToken,R.argumentExpression)}return R}function Z(ne,R,Y,U,$){var T=U.finalExpression,I=U.occurrences,y=U.expression,D=I[I.length-1],C=K(R,T,I);C&&(e.isPropertyAccessExpression(C)||e.isElementAccessExpression(C)||e.isCallExpression(C))&&(e.isBinaryExpression(y)?Y.replaceNodeRange(ne,D,T,C):e.isConditionalExpression(y)&&Y.replaceNode(ne,y,e.factory.createBinaryExpression(C,e.factory.createToken(60),y.whenFalse)))}})(n.convertToOptionalChainExpression||(n.convertToOptionalChainExpression={}))})(e.refactor||(e.refactor={}))})(gr||(gr={}));var gr;(function(e){(function(n){(function(f){var d="Convert overload list to single signature",a=e.Diagnostics.Convert_overload_list_to_single_signature.message,p={name:d,description:a,kind:"refactor.rewrite.function.overloadList"};n.registerRefactor(d,{kinds:[p.kind],getEditsForAction:H,getAvailableActions:N});function N(A){var q=A.file,ie=A.startPosition,b=A.program,P=v(q,ie,b);return P?[{name:d,description:a,actions:[p]}]:e.emptyArray}function H(A){var q=A.file,ie=A.startPosition,b=A.program,P=v(q,ie,b);if(!P)return;var S=b.getTypeChecker(),B=P[P.length-1],J=B;switch(B.kind){case 167:{J=e.factory.updateMethodSignature(B,B.modifiers,B.name,B.questionToken,B.typeParameters,M(P),B.type);break}case 168:{J=e.factory.updateMethodDeclaration(B,B.decorators,B.modifiers,B.asteriskToken,B.name,B.questionToken,B.typeParameters,M(P),B.type,B.body);break}case 173:{J=e.factory.updateCallSignature(B,B.typeParameters,M(P),B.type);break}case 170:{J=e.factory.updateConstructorDeclaration(B,B.decorators,B.modifiers,M(P),B.body);break}case 174:{J=e.factory.updateConstructSignature(B,B.typeParameters,M(P),B.type);break}case 255:{J=e.factory.updateFunctionDeclaration(B,B.decorators,B.modifiers,B.asteriskToken,B.name,B.typeParameters,M(P),B.type,B.body);break}default:return e.Debug.failBadSyntaxKind(B,"Unhandled signature kind in overload list conversion refactoring")}if(J===B)return;var k=e.textChanges.ChangeTracker.with(A,function(K){K.replaceNodeRange(q,P[0],P[P.length-1],J)});return{renameFilename:void 0,renameLocation:void 0,edits:k};function M(K){var Z=K[K.length-1];return e.isFunctionLikeDeclaration(Z)&&Z.body&&(K=K.slice(0,K.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(K,x)))])}function x(K){var Z=e.map(K.parameters,w);return e.setEmitFlags(e.factory.createTupleTypeNode(Z),e.some(Z,function(ne){return!!e.length(e.getSyntheticLeadingComments(ne))})?0:1)}function w(K){e.Debug.assert(e.isIdentifier(K.name));var Z=e.setTextRange(e.factory.createNamedTupleMember(K.dotDotDotToken,K.name,K.questionToken,K.type||e.factory.createKeywordTypeNode(130)),K),ne=K.symbol&&K.symbol.getDocumentationComment(S);if(ne){var R=e.displayPartsToString(ne);R.length&&e.setSyntheticLeadingComments(Z,[{text:`*
|
|
`.concat(R.split(`
|
|
`).map(function(Y){return" * ".concat(Y)}).join(`
|
|
`),`
|
|
`),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return Z}}function h(A){switch(A.kind){case 167:case 168:case 173:case 170:case 174:case 255:return!0}return!1}function v(A,q,ie){var b=e.getTokenAtPosition(A,q),P=e.findAncestor(b,h);if(!!P){var S=ie.getTypeChecker(),B=P.symbol;if(!!B){var J=B.declarations;if(!(e.length(J)<=1)&&!!e.every(J,function(K){return e.getSourceFileOfNode(K)===A})&&!!h(J[0])){var k=J[0].kind;if(!!e.every(J,function(K){return K.kind===k})){var M=J;if(!e.some(M,function(K){return!!K.typeParameters||e.some(K.parameters,function(Z){return!!Z.decorators||!!Z.modifiers||!e.isIdentifier(Z.name)})})){var x=e.mapDefined(M,function(K){return S.getSignatureFromDeclaration(K)});if(e.length(x)===e.length(J)){var w=S.getReturnTypeOfSignature(x[0]);if(!!e.every(x,function(K){return S.getReturnTypeOfSignature(K)===w}))return M}}}}}}}})(n.addOrRemoveBracesToArrowFunction||(n.addOrRemoveBracesToArrowFunction={}))})(e.refactor||(e.refactor={}))})(gr||(gr={}));var gr;(function(e){(function(n){(function(f){var d="Extract Symbol",a={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},p={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};n.registerRefactor(d,{kinds:[a.kind,p.kind],getAvailableActions:N,getEditsForAction:H});function N(V){var z=V.kind,Te=A(V.file,e.getRefactorContextSpan(V),V.triggerReason==="invoked"),ge=Te.targetRange;if(ge===void 0){if(!Te.errors||Te.errors.length===0||!V.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var ke=[];return n.refactorKindBeginsWith(p.kind,z)&&ke.push({name:d,description:p.description,actions:[Rn(Rn({},p),{notApplicableReason:Cr(Te.errors)})]}),n.refactorKindBeginsWith(a.kind,z)&&ke.push({name:d,description:a.description,actions:[Rn(Rn({},a),{notApplicableReason:Cr(Te.errors)})]}),ke}var Me=J(ge,V);if(Me===void 0)return e.emptyArray;for(var Ie=[],Ge=new e.Map,he,ve=[],Ve=new e.Map,_e,Le=0,qe=0,Xe=Me;qe<Xe.length;qe++){var De=Xe[qe],Ae=De.functionExtraction,Ye=De.constantExtraction,Lr=Ae.description;if(n.refactorKindBeginsWith(p.kind,z)&&(Ae.errors.length===0?Ge.has(Lr)||(Ge.set(Lr,!0),Ie.push({description:Lr,name:"function_scope_".concat(Le),kind:p.kind})):he||(he={description:Lr,name:"function_scope_".concat(Le),notApplicableReason:Cr(Ae.errors),kind:p.kind})),n.refactorKindBeginsWith(a.kind,z))if(Ye.errors.length===0){var Er=Ye.description;Ve.has(Er)||(Ve.set(Er,!0),ve.push({description:Er,name:"constant_scope_".concat(Le),kind:a.kind}))}else _e||(_e={description:Lr,name:"constant_scope_".concat(Le),notApplicableReason:Cr(Ye.errors),kind:a.kind});Le++}var lr=[];return Ie.length?lr.push({name:d,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:Ie}):V.preferences.provideRefactorNotApplicableReason&&he&&lr.push({name:d,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[he]}),ve.length?lr.push({name:d,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:ve}):V.preferences.provideRefactorNotApplicableReason&&_e&&lr.push({name:d,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[_e]}),lr.length?lr:e.emptyArray;function Cr(Or){var Ke=Or[0].messageText;return typeof Ke!="string"&&(Ke=Ke.messageText),Ke}}f.getAvailableActions=N;function H(V,z){var Te=A(V.file,e.getRefactorContextSpan(V)),ge=Te.targetRange,ke=/^function_scope_(\d+)$/.exec(z);if(ke){var Me=+ke[1];return e.Debug.assert(isFinite(Me),"Expected to parse a finite number from the function scope index"),S(ge,V,Me)}var Ie=/^constant_scope_(\d+)$/.exec(z);if(Ie){var Me=+Ie[1];return e.Debug.assert(isFinite(Me),"Expected to parse a finite number from the constant scope index"),B(ge,V,Me)}e.Debug.fail("Unrecognized action name")}f.getEditsForAction=H;var h;(function(V){function z(Te){return{message:Te,code:0,category:e.DiagnosticCategory.Message,key:Te}}V.cannotExtractRange=z("Cannot extract range."),V.cannotExtractImport=z("Cannot extract import statement."),V.cannotExtractSuper=z("Cannot extract super call."),V.cannotExtractJSDoc=z("Cannot extract JSDoc."),V.cannotExtractEmpty=z("Cannot extract empty range."),V.expressionExpected=z("expression expected."),V.uselessConstantType=z("No reason to extract constant of type."),V.statementOrExpressionExpected=z("Statement or expression expected."),V.cannotExtractRangeContainingConditionalBreakOrContinueStatements=z("Cannot extract range containing conditional break or continue statements."),V.cannotExtractRangeContainingConditionalReturnStatement=z("Cannot extract range containing conditional return statement."),V.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=z("Cannot extract range containing labeled break or continue with target outside of the range."),V.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=z("Cannot extract range containing writes to references located outside of the target range in generators."),V.typeWillNotBeVisibleInTheNewScope=z("Type will not visible in the new scope."),V.functionWillNotBeVisibleInTheNewScope=z("Function will not visible in the new scope."),V.cannotExtractIdentifier=z("Select more than a single identifier."),V.cannotExtractExportedEntity=z("Cannot extract exported declaration"),V.cannotWriteInExpression=z("Cannot write back side-effects when extracting an expression"),V.cannotExtractReadonlyPropertyInitializerOutsideConstructor=z("Cannot move initialization of read-only class property outside of the constructor"),V.cannotExtractAmbientBlock=z("Cannot extract code from ambient contexts"),V.cannotAccessVariablesFromNestedScopes=z("Cannot access variables from nested scopes"),V.cannotExtractToJSClass=z("Cannot extract constant to a class scope in JS"),V.cannotExtractToExpressionArrowFunction=z("Cannot extract constant to an arrow function without a block")})(h=f.Messages||(f.Messages={}));var v;(function(V){V[V.None=0]="None",V[V.HasReturn=1]="HasReturn",V[V.IsGenerator=2]="IsGenerator",V[V.IsAsyncFunction=4]="IsAsyncFunction",V[V.UsesThis=8]="UsesThis",V[V.InStaticRegion=16]="InStaticRegion"})(v||(v={}));function A(V,z,Te){Te===void 0&&(Te=!0);var ge=z.length;if(ge===0&&!Te)return{errors:[e.createFileDiagnostic(V,z.start,ge,h.cannotExtractEmpty)]};var ke=ge===0&&Te,Me=e.findFirstNonJsxWhitespaceToken(V,z.start),Ie=e.findTokenOnLeftOfPosition(V,e.textSpanEnd(z)),Ge=Me&&Ie&&Te?q(Me,Ie,V):z,he=ke?Se(Me):e.getParentNodeInSpan(Me,V,Ge),ve=ke?he:e.getParentNodeInSpan(Ie,V,Ge),Ve=[],_e=v.None;if(!he||!ve)return{errors:[e.createFileDiagnostic(V,z.start,ge,h.cannotExtractRange)]};if(e.isJSDoc(he))return{errors:[e.createFileDiagnostic(V,z.start,ge,h.cannotExtractJSDoc)]};if(he.parent!==ve.parent)return{errors:[e.createFileDiagnostic(V,z.start,ge,h.cannotExtractRange)]};if(he!==ve){if(!O(he.parent))return{errors:[e.createFileDiagnostic(V,z.start,ge,h.cannotExtractRange)]};for(var Le=[],qe=he,Xe=0,De=qe.parent.statements;Xe<De.length;Xe++){var Ae=De[Xe];if(Ae===he||Le.length){var Ye=Ke(Ae);if(Ye)return{errors:Ye};Le.push(Ae)}if(Ae===ve)break}return Le.length?{targetRange:{range:Le,facts:_e,declarations:Ve}}:{errors:[e.createFileDiagnostic(V,z.start,ge,h.cannotExtractRange)]}}if(e.isReturnStatement(he)&&!he.expression)return{errors:[e.createFileDiagnostic(V,z.start,ge,h.cannotExtractRange)]};var Lr=lr(he),Er=Cr(Lr)||Ke(Lr);if(Er)return{errors:Er};return{targetRange:{range:ie(Lr),facts:_e,declarations:Ve}};function lr(Pe){if(e.isReturnStatement(Pe)){if(Pe.expression)return Pe.expression}else if(e.isVariableStatement(Pe)){for(var Hr=0,ur=void 0,vr=0,de=Pe.declarationList.declarations;vr<de.length;vr++){var Fe=de[vr];Fe.initializer&&(Hr++,ur=Fe.initializer)}if(Hr===1)return ur}else if(e.isVariableDeclaration(Pe)&&Pe.initializer)return Pe.initializer;return Pe}function Cr(Pe){if(e.isIdentifier(e.isExpressionStatement(Pe)?Pe.expression:Pe))return[e.createDiagnosticForNode(Pe,h.cannotExtractIdentifier)]}function Or(Pe,Hr){for(var ur=Pe;ur!==Hr;){if(ur.kind===166){e.isStatic(ur)&&(_e|=v.InStaticRegion);break}else if(ur.kind===163){var vr=e.getContainingFunction(ur);vr.kind===170&&(_e|=v.InStaticRegion);break}else ur.kind===168&&e.isStatic(ur)&&(_e|=v.InStaticRegion);ur=ur.parent}}function Ke(Pe){var Hr;if(function(Dr){Dr[Dr.None=0]="None",Dr[Dr.Break=1]="Break",Dr[Dr.Continue=2]="Continue",Dr[Dr.Return=4]="Return"}(Hr||(Hr={})),e.Debug.assert(Pe.pos<=Pe.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(Pe.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!e.isStatement(Pe)&&!(e.isExpressionNode(Pe)&&Ce(Pe)))return[e.createDiagnosticForNode(Pe,h.statementOrExpressionExpected)];if(Pe.flags&8388608)return[e.createDiagnosticForNode(Pe,h.cannotExtractAmbientBlock)];var ur=e.getContainingClass(Pe);ur&&Or(Pe,ur);var vr,de=4,Fe;return $e(Pe),vr;function $e(Dr){if(vr)return!0;if(e.isDeclaration(Dr)){var Fr=Dr.kind===253?Dr.parent.parent:Dr;if(e.hasSyntacticModifier(Fr,1))return(vr||(vr=[])).push(e.createDiagnosticForNode(Dr,h.cannotExtractExportedEntity)),!0;Ve.push(Dr.symbol)}switch(Dr.kind){case 265:return(vr||(vr=[])).push(e.createDiagnosticForNode(Dr,h.cannotExtractImport)),!0;case 270:return(vr||(vr=[])).push(e.createDiagnosticForNode(Dr,h.cannotExtractExportedEntity)),!0;case 106:if(Dr.parent.kind===207){var He=e.getContainingClass(Dr);if(He.pos<z.start||He.end>=z.start+z.length)return(vr||(vr=[])).push(e.createDiagnosticForNode(Dr,h.cannotExtractSuper)),!0}else _e|=v.UsesThis;break;case 213:e.forEachChild(Dr,function ze(Ar){if(e.isThis(Ar))_e|=v.UsesThis;else{if(e.isClassLike(Ar)||e.isFunctionLike(Ar)&&!e.isArrowFunction(Ar))return!1;e.forEachChild(Ar,ze)}});case 256:case 255:e.isSourceFile(Dr.parent)&&Dr.parent.externalModuleIndicator===void 0&&(vr||(vr=[])).push(e.createDiagnosticForNode(Dr,h.functionWillNotBeVisibleInTheNewScope));case 225:case 212:case 168:case 170:case 171:case 172:return!1}var pr=de;switch(Dr.kind){case 238:de=0;break;case 251:de=0;break;case 234:Dr.parent&&Dr.parent.kind===251&&Dr.parent.finallyBlock===Dr&&(de=4);break;case 289:case 288:de|=1;break;default:e.isIterationStatement(Dr,!1)&&(de|=3);break}switch(Dr.kind){case 191:case 108:_e|=v.UsesThis;break;case 249:{var Jr=Dr.label;(Fe||(Fe=[])).push(Jr.escapedText),e.forEachChild(Dr,$e),Fe.pop();break}case 245:case 244:{var Jr=Dr.label;Jr?e.contains(Fe,Jr.escapedText)||(vr||(vr=[])).push(e.createDiagnosticForNode(Dr,h.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):de&(Dr.kind===245?1:2)||(vr||(vr=[])).push(e.createDiagnosticForNode(Dr,h.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 217:_e|=v.IsAsyncFunction;break;case 223:_e|=v.IsGenerator;break;case 246:de&4?_e|=v.HasReturn:(vr||(vr=[])).push(e.createDiagnosticForNode(Dr,h.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(Dr,$e);break}de=pr}}}f.getRangeToExtract=A;function q(V,z,Te){var ge=V.getStart(Te),ke=z.getEnd();return Te.text.charCodeAt(ke)===59&&ke++,{start:ge,length:ke-ge}}function ie(V){if(e.isStatement(V))return[V];if(e.isExpressionNode(V))return e.isExpressionStatement(V.parent)?[V.parent]:V}function b(V){return e.isFunctionLikeDeclaration(V)||e.isSourceFile(V)||e.isModuleBlock(V)||e.isClassLike(V)}function P(V){var z=te(V.range)?e.first(V.range):V.range;if(V.facts&v.UsesThis){var Te=e.getContainingClass(z);if(Te){var ge=e.findAncestor(z,e.isFunctionLikeDeclaration);return ge?[ge,Te]:[Te]}}for(var ke=[];;)if(z=z.parent,z.kind===163&&(z=e.findAncestor(z,function(Me){return e.isFunctionLikeDeclaration(Me)}).parent),b(z)&&(ke.push(z),z.kind===303))return ke}function S(V,z,Te){var ge=k(V,z),ke=ge.scopes,Me=ge.readsAndWrites,Ie=Me.target,Ge=Me.usagesPerScope,he=Me.functionErrorsPerScope,ve=Me.exposedVariableDeclarations;return e.Debug.assert(!he[Te].length,"The extraction went missing? How?"),z.cancellationToken.throwIfCancellationRequested(),R(Ie,ke[Te],Ge[Te],ve,V,z)}function B(V,z,Te){var ge=k(V,z),ke=ge.scopes,Me=ge.readsAndWrites,Ie=Me.target,Ge=Me.usagesPerScope,he=Me.constantErrorsPerScope,ve=Me.exposedVariableDeclarations;e.Debug.assert(!he[Te].length,"The extraction went missing? How?"),e.Debug.assert(ve.length===0,"Extract constant accepted a range containing a variable declaration?"),z.cancellationToken.throwIfCancellationRequested();var Ve=e.isExpression(Ie)?Ie:Ie.statements[0].expression;return Y(Ve,ke[Te],Ge[Te],V.facts,z)}function J(V,z){var Te=k(V,z),ge=Te.scopes,ke=Te.readsAndWrites,Me=ke.functionErrorsPerScope,Ie=ke.constantErrorsPerScope,Ge=ge.map(function(he,ve){var Ve=M(he),_e=x(he),Le=e.isFunctionLikeDeclaration(he)?w(he):e.isClassLike(he)?K(he):Z(he),qe,Xe;return Le===1?(qe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[Ve,"global"]),Xe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[_e,"global"])):Le===0?(qe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[Ve,"module"]),Xe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[_e,"module"])):(qe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[Ve,Le]),Xe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[_e,Le])),ve===0&&!e.isClassLike(he)&&(Xe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[_e])),{functionExtraction:{description:qe,errors:Me[ve]},constantExtraction:{description:Xe,errors:Ie[ve]}}});return Ge}function k(V,z){var Te=z.file,ge=P(V),ke=ue(V,Te),Me=j(V,ge,ke,Te,z.program.getTypeChecker(),z.cancellationToken);return{scopes:ge,readsAndWrites:Me}}function M(V){return e.isFunctionLikeDeclaration(V)?"inner function":e.isClassLike(V)?"method":"function"}function x(V){return e.isClassLike(V)?"readonly field":"constant"}function w(V){switch(V.kind){case 170:return"constructor";case 212:case 255:return V.name?"function '".concat(V.name.text,"'"):e.ANONYMOUS;case 213:return"arrow function";case 168:return"method '".concat(V.name.getText(),"'");case 171:return"'get ".concat(V.name.getText(),"'");case 172:return"'set ".concat(V.name.getText(),"'");default:throw e.Debug.assertNever(V,"Unexpected scope kind ".concat(V.kind))}}function K(V){return V.kind===256?V.name?"class '".concat(V.name.text,"'"):"anonymous class declaration":V.name?"class expression '".concat(V.name.text,"'"):"anonymous class expression"}function Z(V){return V.kind===261?"namespace '".concat(V.parent.name.getText(),"'"):V.externalModuleIndicator?0:1}var ne;(function(V){V[V.Module=0]="Module",V[V.Global=1]="Global"})(ne||(ne={}));function R(V,z,Te,ge,ke,Me){var Ie=Te.usages,Ge=Te.typeParameterUsages,he=Te.substitutions,ve=Me.program.getTypeChecker(),Ve=e.getEmitScriptTarget(Me.program.getCompilerOptions()),_e=e.codefix.createImportAdder(Me.file,Me.program,Me.preferences,Me.host),Le=z.getSourceFile(),qe=e.getUniqueName(e.isClassLike(z)?"newMethod":"newFunction",Le),Xe=e.isInJSFile(z),De=e.factory.createIdentifier(qe),Ae,Ye=[],Lr=[],Er;Ie.forEach(function(We,ee){var Ne;if(!Xe){var me=ve.getTypeOfSymbolAtLocation(We.symbol,We.node);me=ve.getBaseTypeOfLiteralType(me),Ne=e.codefix.typeToAutoImportableTypeNode(ve,_e,me,z,Ve,1)}var Ze=e.factory.createParameterDeclaration(void 0,void 0,void 0,ee,void 0,Ne);Ye.push(Ze),We.usage===2&&(Er||(Er=[])).push(We),Lr.push(e.factory.createIdentifier(ee))});var lr=e.arrayFrom(Ge.values()).map(function(We){return{type:We,declaration:$(We)}}),Cr=lr.sort(T),Or=Cr.length===0?void 0:Cr.map(function(We){return We.declaration}),Ke=Or!==void 0?Or.map(function(We){return e.factory.createTypeReferenceNode(We.name,void 0)}):void 0;if(e.isExpression(V)&&!Xe){var Pe=ve.getContextualType(V);Ae=ve.typeToTypeNode(Pe,z,1)}var Hr=y(V,ge,Er,he,!!(ke.facts&v.HasReturn)),ur=Hr.body,vr=Hr.returnValueProperty;e.suppressLeadingAndTrailingTrivia(ur);var de;if(e.isClassLike(z)){var Fe=Xe?[]:[e.factory.createModifier(121)];ke.facts&v.InStaticRegion&&Fe.push(e.factory.createModifier(124)),ke.facts&v.IsAsyncFunction&&Fe.push(e.factory.createModifier(131)),de=e.factory.createMethodDeclaration(void 0,Fe.length?Fe:void 0,ke.facts&v.IsGenerator?e.factory.createToken(41):void 0,De,void 0,Or,Ye,Ae,ur)}else de=e.factory.createFunctionDeclaration(void 0,ke.facts&v.IsAsyncFunction?[e.factory.createToken(131)]:void 0,ke.facts&v.IsGenerator?e.factory.createToken(41):void 0,De,Or,Ye,Ae,ur);var $e=e.textChanges.ChangeTracker.fromContext(Me),Dr=(te(ke.range)?e.last(ke.range):ke.range).end,Fr=m(Dr,z);Fr?$e.insertNodeBefore(Me.file,Fr,de,!0):$e.insertNodeAtEndOfScope(Me.file,z,de),_e.writeFixes($e);var He=[],pr=I(z,ke,qe),Jr=e.factory.createCallExpression(pr,Ke,Lr);if(ke.facts&v.IsGenerator&&(Jr=e.factory.createYieldExpression(e.factory.createToken(41),Jr)),ke.facts&v.IsAsyncFunction&&(Jr=e.factory.createAwaitExpression(Jr)),Q(V)&&(Jr=e.factory.createJsxExpression(void 0,Jr)),ge.length&&!Er)if(e.Debug.assert(!vr,"Expected no returnValueProperty"),e.Debug.assert(!(ke.facts&v.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),ge.length===1){var ze=ge[0];He.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(ze.name),void 0,e.getSynthesizedDeepClone(ze.type),Jr)],ze.parent.flags)))}else{for(var Ar=[],Yr=[],lt=ge[0].parent.flags,tt=!1,Rt=0,cn=ge;Rt<cn.length;Rt++){var ze=cn[Rt];Ar.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(ze.name)));var bn=ve.typeToTypeNode(ve.getBaseTypeOfLiteralType(ve.getTypeAtLocation(ze)),z,1);Yr.push(e.factory.createPropertySignature(void 0,ze.symbol.name,void 0,bn)),tt=tt||ze.type!==void 0,lt=lt&ze.parent.flags}var In=tt?e.factory.createTypeLiteralNode(Yr):void 0;In&&e.setEmitFlags(In,1),He.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(Ar),void 0,In,Jr)],lt)))}else if(ge.length||Er){if(ge.length)for(var zn=0,ir=ge;zn<ir.length;zn++){var ze=ir[zn],Rr=ze.parent.flags;Rr&2&&(Rr=Rr&-3|1),He.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(ze.symbol.name,void 0,Ee(ze.type))],Rr)))}vr&&He.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(vr,void 0,Ee(Ae))],1)));var sr=F(ge,Er);vr&&sr.unshift(e.factory.createShorthandPropertyAssignment(vr)),sr.length===1?(e.Debug.assert(!vr,"Shouldn't have returnValueProperty here"),He.push(e.factory.createExpressionStatement(e.factory.createAssignment(sr[0].name,Jr))),ke.facts&v.HasReturn&&He.push(e.factory.createReturnStatement())):(He.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression(sr),Jr))),vr&&He.push(e.factory.createReturnStatement(e.factory.createIdentifier(vr))))}else ke.facts&v.HasReturn?He.push(e.factory.createReturnStatement(Jr)):te(ke.range)?He.push(e.factory.createExpressionStatement(Jr)):He.push(Jr);te(ke.range)?$e.replaceNodeRangeWithNodes(Me.file,e.first(ke.range),e.last(ke.range),He):$e.replaceNodeWithNodes(Me.file,ke.range,He);var ye=$e.getChanges(),or=te(ke.range)?e.first(ke.range):ke.range,fe=or.getSourceFile().fileName,je=e.getRenameLocation(ye,fe,qe,!1);return{renameFilename:fe,renameLocation:je,edits:ye};function Ee(We){if(We!==void 0){for(var ee=e.getSynthesizedDeepClone(We),Ne=ee;e.isParenthesizedTypeNode(Ne);)Ne=Ne.type;return e.isUnionTypeNode(Ne)&&e.find(Ne.types,function(me){return me.kind===152})?ee:e.factory.createUnionTypeNode([ee,e.factory.createKeywordTypeNode(152)])}}}function Y(V,z,Te,ge,ke){var Me,Ie=Te.substitutions,Ge=ke.program.getTypeChecker(),he=z.getSourceFile(),ve=e.getUniqueName(e.isClassLike(z)?"newProperty":"newLocal",he),Ve=e.isInJSFile(z),_e=Ve||!Ge.isContextSensitive(V)?void 0:Ge.typeToTypeNode(Ge.getContextualType(V),z,1),Le=D(e.skipParentheses(V),Ie);Me=Hr(_e,Le),_e=Me.variableType,Le=Me.initializer,e.suppressLeadingAndTrailingTrivia(Le);var qe=e.textChanges.ChangeTracker.fromContext(ke);if(e.isClassLike(z)){e.Debug.assert(!Ve,"Cannot extract to a JS class");var Xe=[];Xe.push(e.factory.createModifier(121)),ge&v.InStaticRegion&&Xe.push(e.factory.createModifier(124)),Xe.push(e.factory.createModifier(144));var De=e.factory.createPropertyDeclaration(void 0,Xe,ve,void 0,_e,Le),Ae=e.factory.createPropertyAccessExpression(ge&v.InStaticRegion?e.factory.createIdentifier(z.name.getText()):e.factory.createThis(),e.factory.createIdentifier(ve));Q(V)&&(Ae=e.factory.createJsxExpression(void 0,Ae));var Ye=V.pos,Lr=u(Ye,z);qe.insertNodeBefore(ke.file,Lr,De,!0),qe.replaceNode(ke.file,V,Ae)}else{var Er=e.factory.createVariableDeclaration(ve,void 0,_e,Le),lr=U(V,z);if(lr){qe.insertNodeBefore(ke.file,lr,Er);var Ae=e.factory.createIdentifier(ve);qe.replaceNode(ke.file,V,Ae)}else if(V.parent.kind===237&&z===e.findAncestor(V,b)){var Cr=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([Er],2));qe.replaceNode(ke.file,V.parent,Cr)}else{var Cr=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([Er],2)),Lr=g(V,z);if(Lr.pos===0?qe.insertNodeAtTopOfFile(ke.file,Cr,!1):qe.insertNodeBefore(ke.file,Lr,Cr,!1),V.parent.kind===237)qe.delete(ke.file,V.parent);else{var Ae=e.factory.createIdentifier(ve);Q(V)&&(Ae=e.factory.createJsxExpression(void 0,Ae)),qe.replaceNode(ke.file,V,Ae)}}}var Or=qe.getChanges(),Ke=V.getSourceFile().fileName,Pe=e.getRenameLocation(Or,Ke,ve,!0);return{renameFilename:Ke,renameLocation:Pe,edits:Or};function Hr(ur,vr){if(ur===void 0)return{variableType:ur,initializer:vr};if(!e.isFunctionExpression(vr)&&!e.isArrowFunction(vr)||!!vr.typeParameters)return{variableType:ur,initializer:vr};var de=Ge.getTypeAtLocation(V),Fe=e.singleOrUndefined(Ge.getSignaturesOfType(de,0));if(!Fe)return{variableType:ur,initializer:vr};if(Fe.getTypeParameters())return{variableType:ur,initializer:vr};for(var $e=[],Dr=!1,Fr=0,He=vr.parameters;Fr<He.length;Fr++){var pr=He[Fr];if(pr.type)$e.push(pr);else{var Jr=Ge.getTypeAtLocation(pr);Jr===Ge.getAnyType()&&(Dr=!0),$e.push(e.factory.updateParameterDeclaration(pr,pr.decorators,pr.modifiers,pr.dotDotDotToken,pr.name,pr.questionToken,pr.type||Ge.typeToTypeNode(Jr,z,1),pr.initializer))}}if(Dr)return{variableType:ur,initializer:vr};if(ur=void 0,e.isArrowFunction(vr))vr=e.factory.updateArrowFunction(vr,V.modifiers,vr.typeParameters,$e,vr.type||Ge.typeToTypeNode(Fe.getReturnType(),z,1),vr.equalsGreaterThanToken,vr.body);else{if(Fe&&!!Fe.thisParameter){var ze=e.firstOrUndefined($e);if(!ze||e.isIdentifier(ze.name)&&ze.name.escapedText!=="this"){var Ar=Ge.getTypeOfSymbolAtLocation(Fe.thisParameter,V);$e.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,Ge.typeToTypeNode(Ar,z,1)))}}vr=e.factory.updateFunctionExpression(vr,V.modifiers,vr.asteriskToken,vr.name,vr.typeParameters,$e,vr.type||Ge.typeToTypeNode(Fe.getReturnType(),z,1),vr.body)}return{variableType:ur,initializer:vr}}}function U(V,z){for(var Te;V!==void 0&&V!==z;){if(e.isVariableDeclaration(V)&&V.initializer===Te&&e.isVariableDeclarationList(V.parent)&&V.parent.declarations.length>1)return V;Te=V,V=V.parent}}function $(V){var z,Te=V.symbol;if(Te&&Te.declarations)for(var ge=0,ke=Te.declarations;ge<ke.length;ge++){var Me=ke[ge];(z===void 0||Me.pos<z.pos)&&(z=Me)}return z}function T(V,z){var Te=V.type,ge=V.declaration,ke=z.type,Me=z.declaration;return e.compareProperties(ge,Me,"pos",e.compareValues)||e.compareStringsCaseSensitive(Te.symbol?Te.symbol.getName():"",ke.symbol?ke.symbol.getName():"")||e.compareValues(Te.id,ke.id)}function I(V,z,Te){var ge=e.factory.createIdentifier(Te);if(e.isClassLike(V)){var ke=z.facts&v.InStaticRegion?e.factory.createIdentifier(V.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(ke,ge)}else return ge}function y(V,z,Te,ge,ke){var Me=Te!==void 0||z.length>0;if(e.isBlock(V)&&!Me&&ge.size===0)return{body:e.factory.createBlock(V.statements,!0),returnValueProperty:void 0};var Ie,Ge=!1,he=e.factory.createNodeArray(e.isBlock(V)?V.statements.slice(0):[e.isStatement(V)?V:e.factory.createReturnStatement(e.skipParentheses(V))]);if(Me||ge.size){var ve=e.visitNodes(he,_e).slice();if(Me&&!ke&&e.isStatement(V)){var Ve=F(z,Te);Ve.length===1?ve.push(e.factory.createReturnStatement(Ve[0].name)):ve.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(Ve)))}return{body:e.factory.createBlock(ve,!0),returnValueProperty:Ie}}else return{body:e.factory.createBlock(he,!0),returnValueProperty:void 0};function _e(Le){if(!Ge&&e.isReturnStatement(Le)&&Me){var qe=F(z,Te);return Le.expression&&(Ie||(Ie="__return"),qe.unshift(e.factory.createPropertyAssignment(Ie,e.visitNode(Le.expression,_e)))),qe.length===1?e.factory.createReturnStatement(qe[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(qe))}else{var Xe=Ge;Ge=Ge||e.isFunctionLikeDeclaration(Le)||e.isClassLike(Le);var De=ge.get(e.getNodeId(Le).toString()),Ae=De?e.getSynthesizedDeepClone(De):e.visitEachChild(Le,_e,e.nullTransformationContext);return Ge=Xe,Ae}}}function D(V,z){return z.size?Te(V):V;function Te(ge){var ke=z.get(e.getNodeId(ge).toString());return ke?e.getSynthesizedDeepClone(ke):e.visitEachChild(ge,Te,e.nullTransformationContext)}}function C(V){if(e.isFunctionLikeDeclaration(V)){var z=V.body;if(e.isBlock(z))return z.statements}else{if(e.isModuleBlock(V)||e.isSourceFile(V))return V.statements;if(e.isClassLike(V))return V.members;e.assertType(V)}return e.emptyArray}function m(V,z){return e.find(C(z),function(Te){return Te.pos>=V&&e.isFunctionLikeDeclaration(Te)&&!e.isConstructorDeclaration(Te)})}function u(V,z){var Te=z.members;e.Debug.assert(Te.length>0,"Found no members");for(var ge,ke=!0,Me=0,Ie=Te;Me<Ie.length;Me++){var Ge=Ie[Me];if(Ge.pos>V)return ge||Te[0];if(ke&&!e.isPropertyDeclaration(Ge)){if(ge!==void 0)return Ge;ke=!1}ge=Ge}return ge===void 0?e.Debug.fail():ge}function g(V,z){e.Debug.assert(!e.isClassLike(z));for(var Te,ge=V;ge!==z;ge=ge.parent)b(ge)&&(Te=ge);for(var ge=(Te||V).parent;;ge=ge.parent){if(O(ge)){for(var ke=void 0,Me=0,Ie=ge.statements;Me<Ie.length;Me++){var Ge=Ie[Me];if(Ge.pos>V.pos)break;ke=Ge}return!ke&&e.isCaseClause(ge)?(e.Debug.assert(e.isSwitchStatement(ge.parent.parent),"Grandparent isn't a switch statement"),ge.parent.parent):e.Debug.checkDefined(ke,"prevStatement failed to get set")}e.Debug.assert(ge!==z,"Didn't encounter a block-like before encountering scope")}}function F(V,z){var Te=e.map(V,function(ke){return e.factory.createShorthandPropertyAssignment(ke.symbol.name)}),ge=e.map(z,function(ke){return e.factory.createShorthandPropertyAssignment(ke.symbol.name)});return Te===void 0?ge:ge===void 0?Te:Te.concat(ge)}function te(V){return e.isArray(V)}function ue(V,z){return te(V.range)?{pos:e.first(V.range).getStart(z),end:e.last(V.range).getEnd()}:V.range}var X;(function(V){V[V.Read=1]="Read",V[V.Write=2]="Write"})(X||(X={}));function j(V,z,Te,ge,ke,Me){var Ie=new e.Map,Ge=[],he=[],ve=[],Ve=[],_e=[],Le=new e.Map,qe=[],Xe,De=te(V.range)?V.range.length===1&&e.isExpressionStatement(V.range[0])?V.range[0].expression:void 0:V.range,Ae;if(De===void 0){var Ye=V.range,Lr=e.first(Ye).getStart(),Er=e.last(Ye).end;Ae=e.createFileDiagnostic(ge,Lr,Er-Lr,h.expressionExpected)}else ke.getTypeAtLocation(De).flags&147456&&(Ae=e.createDiagnosticForNode(De,h.uselessConstantType));for(var lr=0,Cr=z;lr<Cr.length;lr++){var Or=Cr[lr];Ge.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),he.push(new e.Map),ve.push([]);var Ke=[];Ae&&Ke.push(Ae),e.isClassLike(Or)&&e.isInJSFile(Or)&&Ke.push(e.createDiagnosticForNode(Or,h.cannotExtractToJSClass)),e.isArrowFunction(Or)&&!e.isBlock(Or.body)&&Ke.push(e.createDiagnosticForNode(Or,h.cannotExtractToExpressionArrowFunction)),Ve.push(Ke)}var Pe=new e.Map,Hr=te(V.range)?e.factory.createBlock(V.range):V.range,ur=te(V.range)?e.first(V.range):V.range,vr=lt(ur);if(Rt(Hr),vr&&!te(V.range)){var de=ke.getContextualType(V.range);tt(de)}if(Ie.size>0){for(var Fe=new e.Map,$e=0,Dr=ur;Dr!==void 0&&$e<z.length;Dr=Dr.parent)if(Dr===z[$e]&&(Fe.forEach(function(Rr,sr){Ge[$e].typeParameterUsages.set(sr,Rr)}),$e++),e.isDeclarationWithTypeParameters(Dr))for(var Fr=0,He=e.getEffectiveTypeParameterDeclarations(Dr);Fr<He.length;Fr++){var pr=He[Fr],Jr=ke.getTypeAtLocation(pr);Ie.has(Jr.id.toString())&&Fe.set(Jr.id.toString(),Jr)}e.Debug.assert($e===z.length,"Should have iterated all scopes")}if(_e.length){var ze=e.isBlockScope(z[0],z[0].parent)?z[0]:e.getEnclosingBlockScopeContainer(z[0]);e.forEachChild(ze,In)}for(var Ar=function(Rr){var sr=Ge[Rr];if(Rr>0&&(sr.usages.size>0||sr.typeParameterUsages.size>0)){var ye=te(V.range)?V.range[0]:V.range;Ve[Rr].push(e.createDiagnosticForNode(ye,h.cannotAccessVariablesFromNestedScopes))}var or=!1,fe;if(Ge[Rr].usages.forEach(function(Ee){Ee.usage===2&&(or=!0,Ee.symbol.flags&106500&&Ee.symbol.valueDeclaration&&e.hasEffectiveModifier(Ee.symbol.valueDeclaration,64)&&(fe=Ee.symbol.valueDeclaration))}),e.Debug.assert(te(V.range)||qe.length===0,"No variable declarations expected if something was extracted"),or&&!te(V.range)){var je=e.createDiagnosticForNode(V.range,h.cannotWriteInExpression);ve[Rr].push(je),Ve[Rr].push(je)}else if(fe&&Rr>0){var je=e.createDiagnosticForNode(fe,h.cannotExtractReadonlyPropertyInitializerOutsideConstructor);ve[Rr].push(je),Ve[Rr].push(je)}else if(Xe){var je=e.createDiagnosticForNode(Xe,h.cannotExtractExportedEntity);ve[Rr].push(je),Ve[Rr].push(je)}},Yr=0;Yr<z.length;Yr++)Ar(Yr);return{target:Hr,usagesPerScope:Ge,functionErrorsPerScope:ve,constantErrorsPerScope:Ve,exposedVariableDeclarations:qe};function lt(Rr){return!!e.findAncestor(Rr,function(sr){return e.isDeclarationWithTypeParameters(sr)&&e.getEffectiveTypeParameterDeclarations(sr).length!==0})}function tt(Rr){for(var sr=ke.getSymbolWalker(function(){return Me.throwIfCancellationRequested(),!0}),ye=sr.walkType(Rr).visitedTypes,or=0,fe=ye;or<fe.length;or++){var je=fe[or];je.isTypeParameter()&&Ie.set(je.id.toString(),je)}}function Rt(Rr,sr){if(sr===void 0&&(sr=1),vr){var ye=ke.getTypeAtLocation(Rr);tt(ye)}if(e.isDeclaration(Rr)&&Rr.symbol&&_e.push(Rr),e.isAssignmentExpression(Rr))Rt(Rr.left,2),Rt(Rr.right);else if(e.isUnaryExpressionWithWrite(Rr))Rt(Rr.operand,2);else if(e.isPropertyAccessExpression(Rr)||e.isElementAccessExpression(Rr))e.forEachChild(Rr,Rt);else if(e.isIdentifier(Rr)){if(!Rr.parent||e.isQualifiedName(Rr.parent)&&Rr!==Rr.parent.left||e.isPropertyAccessExpression(Rr.parent)&&Rr!==Rr.parent.expression)return;cn(Rr,sr,e.isPartOfTypeNode(Rr))}else e.forEachChild(Rr,Rt)}function cn(Rr,sr,ye){var or=bn(Rr,sr,ye);if(or)for(var fe=0;fe<z.length;fe++){var je=he[fe].get(or);je&&Ge[fe].substitutions.set(e.getNodeId(Rr).toString(),je)}}function bn(Rr,sr,ye){var or=zn(Rr);if(!!or){var fe=e.getSymbolId(or).toString(),je=Pe.get(fe);if(je&&je>=sr)return fe;if(Pe.set(fe,sr),je){for(var Ee=0,We=Ge;Ee<We.length;Ee++){var ee=We[Ee],Ne=ee.usages.get(Rr.text);Ne&&ee.usages.set(Rr.text,{usage:sr,symbol:or,node:Rr})}return fe}var me=or.getDeclarations(),Ze=me&&e.find(me,function(gt){return gt.getSourceFile()===ge});if(!!Ze&&!e.rangeContainsStartEnd(Te,Ze.getStart(),Ze.end)){if(V.facts&v.IsGenerator&&sr===2){for(var xr=e.createDiagnosticForNode(Rr,h.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),fr=0,dr=ve;fr<dr.length;fr++){var et=dr[fr];et.push(xr)}for(var yt=0,Wr=Ve;yt<Wr.length;yt++){var et=Wr[yt];et.push(xr)}}for(var tr=0;tr<z.length;tr++){var Ir=z[tr],kr=ke.resolveName(or.name,Ir,or.flags,!1);if(kr!==or&&!he[tr].has(fe)){var zr=ir(or.exportSymbol||or,Ir,ye);if(zr)he[tr].set(fe,zr);else if(ye){if(!(or.flags&262144)){var xr=e.createDiagnosticForNode(Rr,h.typeWillNotBeVisibleInTheNewScope);ve[tr].push(xr),Ve[tr].push(xr)}}else Ge[tr].usages.set(Rr.text,{usage:sr,symbol:or,node:Rr})}}return fe}}}function In(Rr){if(!(Rr===V.range||te(V.range)&&V.range.indexOf(Rr)>=0)){var sr=e.isIdentifier(Rr)?zn(Rr):ke.getSymbolAtLocation(Rr);if(sr){var ye=e.find(_e,function(fe){return fe.symbol===sr});if(ye)if(e.isVariableDeclaration(ye)){var or=ye.symbol.id.toString();Le.has(or)||(qe.push(ye),Le.set(or,!0))}else Xe=Xe||ye}e.forEachChild(Rr,In)}}function zn(Rr){return Rr.parent&&e.isShorthandPropertyAssignment(Rr.parent)&&Rr.parent.name===Rr?ke.getShorthandAssignmentValueSymbol(Rr.parent):ke.getSymbolAtLocation(Rr)}function ir(Rr,sr,ye){if(!!Rr){var or=Rr.getDeclarations();if(or&&or.some(function(je){return je.parent===sr}))return e.factory.createIdentifier(Rr.name);var fe=ir(Rr.parent,sr,ye);if(fe!==void 0)return ye?e.factory.createQualifiedName(fe,e.factory.createIdentifier(Rr.name)):e.factory.createPropertyAccessExpression(fe,Rr.name)}}}function Se(V){return e.findAncestor(V,function(z){return z.parent&&Ce(z)&&!e.isBinaryExpression(z.parent)})}function Ce(V){var z=V.parent;switch(z.kind){case 297:return!1}switch(V.kind){case 10:return z.kind!==265&&z.kind!==269;case 224:case 200:case 202:return!1;case 79:return z.kind!==202&&z.kind!==269&&z.kind!==274}return!0}function O(V){switch(V.kind){case 234:case 303:case 261:case 288:return!0;default:return!1}}function Q(V){return(e.isJsxElement(V)||e.isJsxSelfClosingElement(V)||e.isJsxFragment(V))&&(e.isJsxElement(V.parent)||e.isJsxFragment(V.parent))}})(n.extractSymbol||(n.extractSymbol={}))})(e.refactor||(e.refactor={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="Extract type",d={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},a={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},p={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};n.registerRefactor(f,{kinds:[d.kind,a.kind,p.kind],getAvailableActions:function(b){var P=N(b,b.triggerReason==="invoked");return P?n.isRefactorErrorInfo(P)?b.preferences.provideRefactorNotApplicableReason?[{name:f,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[Rn(Rn({},p),{notApplicableReason:P.error}),Rn(Rn({},d),{notApplicableReason:P.error}),Rn(Rn({},a),{notApplicableReason:P.error})]}]:e.emptyArray:[{name:f,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:P.isJS?[p]:e.append([d],P.typeElements&&a)}]:e.emptyArray},getEditsForAction:function(b,P){var S=b.file,B=N(b);e.Debug.assert(B&&!n.isRefactorErrorInfo(B),"Expected to find a range to extract");var J=e.getUniqueName("NewType",S),k=e.textChanges.ChangeTracker.with(b,function(w){switch(P){case d.name:return e.Debug.assert(!B.isJS,"Invalid actionName/JS combo"),A(w,S,J,B);case p.name:return e.Debug.assert(B.isJS,"Invalid actionName/JS combo"),ie(w,S,J,B);case a.name:return e.Debug.assert(!B.isJS&&!!B.typeElements,"Invalid actionName/JS combo"),q(w,S,J,B);default:e.Debug.fail("Unexpected action name")}}),M=S.fileName,x=e.getRenameLocation(k,M,J,!1);return{edits:k,renameFilename:M,renameLocation:x}}});function N(b,P){P===void 0&&(P=!0);var S=b.file,B=b.startPosition,J=e.isSourceFileJS(S),k=e.getTokenAtPosition(S,B),M=e.createTextRangeFromSpan(e.getRefactorContextSpan(b)),x=M.pos===M.end&&P,w=e.findAncestor(k,function(Y){return Y.parent&&e.isTypeNode(Y)&&!h(M,Y.parent,S)&&(x||e.nodeOverlapsWithStartEnd(k,S,M.pos,M.end))});if(!w||!e.isTypeNode(w))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var K=b.program.getTypeChecker(),Z=e.Debug.checkDefined(e.findAncestor(w,e.isStatement),"Should find a statement"),ne=v(K,w,Z,S);if(!ne)return{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)};var R=H(K,w);return{isJS:J,selection:w,firstStatement:Z,typeParameters:ne,typeElements:R}}function H(b,P){if(!!P)if(e.isIntersectionTypeNode(P)){for(var S=[],B=new e.Map,J=0,k=P.types;J<k.length;J++){var M=k[J],x=H(b,M);if(!x||!x.every(function(w){return w.name&&e.addToSeen(B,e.getNameFromPropertyName(w.name))}))return;e.addRange(S,x)}return S}else{if(e.isParenthesizedTypeNode(P))return H(b,P.type);if(e.isTypeLiteralNode(P))return P.members}}function h(b,P,S){return e.rangeContainsStartEnd(b,e.skipTrivia(S.text,P.pos),P.end)}function v(b,P,S,B){var J=[];return k(P)?void 0:J;function k(M){var x;if(e.isTypeReferenceNode(M)){if(e.isIdentifier(M.typeName)){var w=b.resolveName(M.typeName.text,M.typeName,262144,!0),K=e.tryCast((x=w==null?void 0:w.declarations)===null||x===void 0?void 0:x[0],e.isTypeParameterDeclaration);K&&h(S,K,B)&&!h(P,K,B)&&e.pushIfUnique(J,K)}}else if(e.isInferTypeNode(M)){var Z=e.findAncestor(M,function(R){return e.isConditionalTypeNode(R)&&h(R.extendsType,M,B)});if(!Z||!h(P,Z,B))return!0}else if(e.isTypePredicateNode(M)||e.isThisTypeNode(M)){var ne=e.findAncestor(M.parent,e.isFunctionLike);if(ne&&ne.type&&h(ne.type,M,B)&&!h(P,ne,B))return!0}else if(e.isTypeQueryNode(M)){if(e.isIdentifier(M.exprName)){var w=b.resolveName(M.exprName.text,M.exprName,111551,!1);if((w==null?void 0:w.valueDeclaration)&&h(S,w.valueDeclaration,B)&&!h(P,w.valueDeclaration,B))return!0}else if(e.isThisIdentifier(M.exprName.left)&&!h(P,M.parent,B))return!0}return B&&e.isTupleTypeNode(M)&&e.getLineAndCharacterOfPosition(B,M.pos).line===e.getLineAndCharacterOfPosition(B,M.end).line&&e.setEmitFlags(M,1),e.forEachChild(M,k)}}function A(b,P,S,B){var J=B.firstStatement,k=B.selection,M=B.typeParameters,x=e.factory.createTypeAliasDeclaration(void 0,void 0,S,M.map(function(w){return e.factory.updateTypeParameterDeclaration(w,w.name,w.constraint,void 0)}),k);b.insertNodeBefore(P,J,e.ignoreSourceNewlines(x),!0),b.replaceNode(P,k,e.factory.createTypeReferenceNode(S,M.map(function(w){return e.factory.createTypeReferenceNode(w.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function q(b,P,S,B){var J,k=B.firstStatement,M=B.selection,x=B.typeParameters,w=B.typeElements,K=e.factory.createInterfaceDeclaration(void 0,void 0,S,x,void 0,w);e.setTextRange(K,(J=w[0])===null||J===void 0?void 0:J.parent),b.insertNodeBefore(P,k,e.ignoreSourceNewlines(K),!0),b.replaceNode(P,M,e.factory.createTypeReferenceNode(S,x.map(function(Z){return e.factory.createTypeReferenceNode(Z.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function ie(b,P,S,B){var J=B.firstStatement,k=B.selection,M=B.typeParameters,x=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression(k),e.factory.createIdentifier(S)),w=[];e.forEach(M,function(K){var Z=e.getEffectiveConstraintOfTypeParameter(K),ne=e.factory.createTypeParameterDeclaration(K.name),R=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),Z&&e.cast(Z,e.isJSDocTypeExpression),[ne]);w.push(R)}),b.insertNodeBefore(P,J,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(w,[x]))),!0),b.replaceNode(P,k,e.factory.createTypeReferenceNode(S,M.map(function(K){return e.factory.createTypeReferenceNode(K.name,void 0)})))}})(e.refactor||(e.refactor={}))})(gr||(gr={}));var gr;(function(e){(function(n){(function(f){var d="Generate 'get' and 'set' accessors",a=e.Diagnostics.Generate_get_and_set_accessors.message,p={name:d,description:a,kind:"refactor.rewrite.property.generateAccessors"};n.registerRefactor(d,{kinds:[p.kind],getEditsForAction:function(N,H){if(!!N.endPosition){var h=e.codefix.getAccessorConvertiblePropertyAtPosition(N.file,N.program,N.startPosition,N.endPosition);e.Debug.assert(h&&!n.isRefactorErrorInfo(h),"Expected applicable refactor info");var v=e.codefix.generateAccessorFromProperty(N.file,N.program,N.startPosition,N.endPosition,N,H);if(!!v){var A=N.file.fileName,q=h.renameAccessor?h.accessorName:h.fieldName,ie=e.isIdentifier(q)?0:-1,b=ie+e.getRenameLocation(v,A,q.text,e.isParameter(h.declaration));return{renameFilename:A,renameLocation:b,edits:v}}}},getAvailableActions:function(N){if(!N.endPosition)return e.emptyArray;var H=e.codefix.getAccessorConvertiblePropertyAtPosition(N.file,N.program,N.startPosition,N.endPosition,N.triggerReason==="invoked");return H?n.isRefactorErrorInfo(H)?N.preferences.provideRefactorNotApplicableReason?[{name:d,description:a,actions:[Rn(Rn({},p),{notApplicableReason:H.error})]}]:e.emptyArray:[{name:d,description:a,actions:[p]}]:e.emptyArray}})})(n.generateGetAccessorAndSetAccessor||(n.generateGetAccessorAndSetAccessor={}))})(e.refactor||(e.refactor={}))})(gr||(gr={}));var gr;(function(e){(function(n){function f(a){return a.error!==void 0}n.isRefactorErrorInfo=f;function d(a,p){return p?a.substr(0,p.length)===p:!0}n.refactorKindBeginsWith=d})(e.refactor||(e.refactor={}))})(gr||(gr={}));var gr;(function(e){(function(n){var f="Move to a new file",d=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),a={name:f,description:d,kind:"refactor.move.newFile"};n.registerRefactor(f,{kinds:[a.kind],getAvailableActions:function(he){var ve=H(he);return he.preferences.allowTextChangesInNewFiles&&ve?[{name:f,description:d,actions:[a]}]:he.preferences.provideRefactorNotApplicableReason?[{name:f,description:d,actions:[Rn(Rn({},a),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction:function(he,ve){e.Debug.assert(ve===f,"Wrong refactor invoked");var Ve=e.Debug.checkDefined(H(he)),_e=e.textChanges.ChangeTracker.with(he,function(Le){return N(he.file,he.program,Ve,Le,he.host,he.preferences)});return{edits:_e,renameFilename:void 0,renameLocation:void 0}}});function p(he){var ve=he.file,Ve=e.createTextRangeFromSpan(e.getRefactorContextSpan(he)),_e=ve.statements,Le=e.findIndex(_e,function(De){return De.end>Ve.pos});if(Le!==-1){var qe=_e[Le];if(e.isNamedDeclaration(qe)&&qe.name&&e.rangeContainsRange(qe.name,Ve))return{toMove:[_e[Le]],afterLast:_e[Le+1]};if(!(Ve.pos>qe.getStart(ve))){var Xe=e.findIndex(_e,function(De){return De.end>Ve.end},Le);if(!(Xe!==-1&&(Xe===0||_e[Xe].getStart(ve)<Ve.end)))return{toMove:_e.slice(Le,Xe===-1?_e.length:Xe),afterLast:Xe===-1?void 0:_e[Xe]}}}}function N(he,ve,Ve,_e,Le,qe){var Xe=ve.getTypeChecker(),De=y(he,Ve.all,Xe),Ae=e.getDirectoryPath(he.fileName),Ye=e.extensionFromPath(he.fileName),Lr=T(I(De.movedSymbols),Ye,Ae,Le),Er=Lr+Ye;_e.createNewFile(he,e.combinePaths(Ae,Er),q(he,De,_e,Ve,ve,Lr,qe)),A(ve,_e,he.fileName,Er,e.hostGetCanonicalFileName(Le))}function H(he){var ve=p(he);if(ve!==void 0){var Ve=[],_e=[],Le=ve.toMove,qe=ve.afterLast;return e.getRangesWhere(Le,h,function(Xe,De){for(var Ae=Xe;Ae<De;Ae++)Ve.push(Le[Ae]);_e.push({first:Le[Xe],afterLast:qe})}),Ve.length===0?void 0:{all:Ve,ranges:_e}}}function h(he){return!v(he)&&!e.isPrologueDirective(he)}function v(he){switch(he.kind){case 265:return!0;case 264:return!e.hasSyntacticModifier(he,1);case 236:return he.declarationList.declarations.every(function(ve){return!!ve.initializer&&e.isRequireCall(ve.initializer,!0)});default:return!1}}function A(he,ve,Ve,_e,Le){var qe=he.getCompilerOptions().configFile;if(!!qe){var Xe=e.normalizePath(e.combinePaths(Ve,"..",_e)),De=e.getRelativePathFromFile(qe.fileName,Xe,Le),Ae=qe.statements[0]&&e.tryCast(qe.statements[0].expression,e.isObjectLiteralExpression),Ye=Ae&&e.find(Ae.properties,function(Lr){return e.isPropertyAssignment(Lr)&&e.isStringLiteral(Lr.name)&&Lr.name.text==="files"});Ye&&e.isArrayLiteralExpression(Ye.initializer)&&ve.insertNodeInListAfter(qe,e.last(Ye.initializer.elements),e.factory.createStringLiteral(De),Ye.initializer.elements)}}function q(he,ve,Ve,_e,Le,qe,Xe){var De=Le.getTypeChecker(),Ae=e.takeWhile(he.statements,e.isPrologueDirective);if(!he.externalModuleIndicator&&!he.commonJsModuleIndicator)return ie(he,_e.ranges,Ve),Gt(Gt([],Ae,!0),_e.all,!0);var Ye=!!he.externalModuleIndicator,Lr=e.getQuotePreference(he,Xe),Er=x(ve.oldFileImportsFromNewFile,qe,Ye,Lr);Er&&e.insertImports(Ve,he,Er,!0),b(he,_e.all,Ve,ve.unusedImportsFromOldFile,De),ie(he,_e.ranges,Ve),P(Ve,Le,he,ve.movedSymbols,qe);var lr=$(he,ve.oldImportsNeededByNewFile,ve.newFileImportsFromOldFile,Ve,De,Ye,Lr),Cr=ne(he,_e.all,ve.oldFileImportsFromNewFile,Ye);return lr.length&&Cr.length?Gt(Gt(Gt(Gt([],Ae,!0),lr,!0),[4],!1),Cr,!0):Gt(Gt(Gt([],Ae,!0),lr,!0),Cr,!0)}function ie(he,ve,Ve){for(var _e=0,Le=ve;_e<Le.length;_e++){var qe=Le[_e],Xe=qe.first,De=qe.afterLast;Ve.deleteNodeRangeExcludingEnd(he,Xe,De)}}function b(he,ve,Ve,_e,Le){for(var qe=0,Xe=he.statements;qe<Xe.length;qe++){var De=Xe[qe];e.contains(ve,De)||M(De,function(Ae){return R(he,Ae,Ve,function(Ye){return _e.has(Le.getSymbolAtLocation(Ye))})})}}function P(he,ve,Ve,_e,Le){for(var qe=ve.getTypeChecker(),Xe=function(Lr){if(Lr===Ve)return"continue";for(var Er=function(Ke){M(Ke,function(Pe){if(qe.getSymbolAtLocation(k(Pe))===Ve.symbol){var Hr=function(Fe){var $e=e.isBindingElement(Fe.parent)?e.getPropertySymbolFromBindingElement(qe,Fe.parent):e.skipAlias(qe.getSymbolAtLocation(Fe),qe);return!!$e&&_e.has($e)};R(Lr,Pe,he,Hr);var ur=e.combinePaths(e.getDirectoryPath(k(Pe).text),Le),vr=m(Pe,e.factory.createStringLiteral(ur),Hr);vr&&he.insertNodeAfter(Lr,Ke,vr);var de=S(Pe);de&&B(he,Lr,qe,_e,Le,ur,de,Pe)}})},lr=0,Cr=Lr.statements;lr<Cr.length;lr++){var Or=Cr[lr];Er(Or)}},De=0,Ae=ve.getSourceFiles();De<Ae.length;De++){var Ye=Ae[De];Xe(Ye)}}function S(he){switch(he.kind){case 265:return he.importClause&&he.importClause.namedBindings&&he.importClause.namedBindings.kind===267?he.importClause.namedBindings.name:void 0;case 264:return he.name;case 253:return e.tryCast(he.name,e.isIdentifier);default:return e.Debug.assertNever(he,"Unexpected node kind ".concat(he.kind))}}function B(he,ve,Ve,_e,Le,qe,Xe,De){var Ae=e.codefix.moduleSpecifierToValidIdentifier(Le,99),Ye=!1,Lr=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(Xe,Ve,ve,function(Ke){!e.isPropertyAccessExpression(Ke.parent)||(Ye=Ye||!!Ve.resolveName(Ae,Ke,67108863,!0),_e.has(Ve.getSymbolAtLocation(Ke.parent.name))&&Lr.push(Ke))}),Lr.length){for(var Er=Ye?e.getUniqueName(Ae,ve):Ae,lr=0,Cr=Lr;lr<Cr.length;lr++){var Or=Cr[lr];he.replaceNode(ve,Or,e.factory.createIdentifier(Er))}he.insertNodeAfter(ve,De,J(De,Le,qe))}}function J(he,ve,Ve){var _e=e.factory.createIdentifier(ve),Le=e.factory.createStringLiteral(Ve);switch(he.kind){case 265:return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(_e)),Le,void 0);case 264:return e.factory.createImportEqualsDeclaration(void 0,void 0,!1,_e,e.factory.createExternalModuleReference(Le));case 253:return e.factory.createVariableDeclaration(_e,void 0,void 0,Z(Le));default:return e.Debug.assertNever(he,"Unexpected node kind ".concat(he.kind))}}function k(he){return he.kind===265?he.moduleSpecifier:he.kind===264?he.moduleReference.expression:he.initializer.arguments[0]}function M(he,ve){if(e.isImportDeclaration(he))e.isStringLiteral(he.moduleSpecifier)&&ve(he);else if(e.isImportEqualsDeclaration(he))e.isExternalModuleReference(he.moduleReference)&&e.isStringLiteralLike(he.moduleReference.expression)&&ve(he);else if(e.isVariableStatement(he))for(var Ve=0,_e=he.declarationList.declarations;Ve<_e.length;Ve++){var Le=_e[Ve];Le.initializer&&e.isRequireCall(Le.initializer,!0)&&ve(Le)}}function x(he,ve,Ve,_e){var Le,qe=[];return he.forEach(function(Xe){Xe.escapedName==="default"?Le=e.factory.createIdentifier(e.symbolNameNoDefault(Xe)):qe.push(Xe.name)}),w(Le,qe,ve,Ve,_e)}function w(he,ve,Ve,_e,Le){if(Ve=e.ensurePathIsNonModuleName(Ve),_e){var qe=ve.map(function(De){return e.factory.createImportSpecifier(!1,void 0,e.factory.createIdentifier(De))});return e.makeImportIfNecessary(he,qe,Ve,Le)}else{e.Debug.assert(!he,"No default import should exist");var Xe=ve.map(function(De){return e.factory.createBindingElement(void 0,void 0,De)});return Xe.length?K(e.factory.createObjectBindingPattern(Xe),void 0,Z(e.factory.createStringLiteral(Ve))):void 0}}function K(he,ve,Ve,_e){return _e===void 0&&(_e=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(he,void 0,ve,Ve)],_e))}function Z(he){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[he])}function ne(he,ve,Ve,_e){return e.flatMap(ve,function(Le){if(j(Le)&&!Te(he,Le,_e)&&Ce(Le,function(Xe){return Ve.has(e.Debug.checkDefined(Xe.symbol))})){var qe=ge(Le,_e);if(qe)return qe}return Le})}function R(he,ve,Ve,_e){switch(ve.kind){case 265:Y(he,ve,Ve,_e);break;case 264:_e(ve.name)&&Ve.delete(he,ve);break;case 253:U(he,ve,Ve,_e);break;default:e.Debug.assertNever(ve,"Unexpected import decl kind ".concat(ve.kind))}}function Y(he,ve,Ve,_e){if(!!ve.importClause){var Le=ve.importClause,qe=Le.name,Xe=Le.namedBindings,De=!qe||_e(qe),Ae=!Xe||(Xe.kind===267?_e(Xe.name):Xe.elements.length!==0&&Xe.elements.every(function(lr){return _e(lr.name)}));if(De&&Ae)Ve.delete(he,ve);else if(qe&&De&&Ve.delete(he,qe),Xe){if(Ae)Ve.replaceNode(he,ve.importClause,e.factory.updateImportClause(ve.importClause,ve.importClause.isTypeOnly,qe,void 0));else if(Xe.kind===268)for(var Ye=0,Lr=Xe.elements;Ye<Lr.length;Ye++){var Er=Lr[Ye];_e(Er.name)&&Ve.delete(he,Er)}}}}function U(he,ve,Ve,_e){var Le=ve.name;switch(Le.kind){case 79:_e(Le)&&Ve.delete(he,Le);break;case 201:break;case 200:if(Le.elements.every(function(Ae){return e.isIdentifier(Ae.name)&&_e(Ae.name)}))Ve.delete(he,e.isVariableDeclarationList(ve.parent)&&ve.parent.declarations.length===1?ve.parent.parent:ve);else for(var qe=0,Xe=Le.elements;qe<Xe.length;qe++){var De=Xe[qe];e.isIdentifier(De.name)&&_e(De.name)&&Ve.delete(he,De.name)}break}}function $(he,ve,Ve,_e,Le,qe,Xe){for(var De=[],Ae=0,Ye=he.statements;Ae<Ye.length;Ae++){var Lr=Ye[Ae];M(Lr,function(Or){e.append(De,m(Or,k(Or),function(Ke){return ve.has(Le.getSymbolAtLocation(Ke))}))})}var Er,lr=[],Cr=e.nodeSeenTracker();return Ve.forEach(function(Or){if(!!Or.declarations)for(var Ke=0,Pe=Or.declarations;Ke<Pe.length;Ke++){var Hr=Pe[Ke];if(!!ue(Hr)){var ur=Q(Hr);if(!!ur){var vr=V(Hr);Cr(vr)&&z(he,vr,ur,_e,qe),e.hasSyntacticModifier(Hr,512)?Er=ur:lr.push(ur.text)}}}}),e.append(De,w(Er,lr,e.removeFileExtension(e.getBaseFileName(he.fileName)),qe,Xe)),De}function T(he,ve,Ve,_e){for(var Le=he,qe=1;;qe++){var Xe=e.combinePaths(Ve,Le+ve);if(!_e.fileExists(Xe))return Le;Le="".concat(he,".").concat(qe)}}function I(he){return he.forEachEntry(e.symbolNameNoDefault)||"newFile"}function y(he,ve,Ve){var _e=new te,Le=new te,qe=new te,Xe=e.find(ve,function(ur){return!!(ur.transformFlags&2)}),De=Hr(Xe);De&&Le.add(De);for(var Ae=0,Ye=ve;Ae<Ye.length;Ae++){var Lr=Ye[Ae];Ce(Lr,function(ur){_e.add(e.Debug.checkDefined(e.isExpressionStatement(ur)?Ve.getSymbolAtLocation(ur.expression.left):ur.symbol,"Need a symbol here"))})}for(var Er=0,lr=ve;Er<lr.length;Er++){var Lr=lr[Er];F(Lr,Ve,function(vr){if(!!vr.declarations)for(var de=0,Fe=vr.declarations;de<Fe.length;de++){var $e=Fe[de];D($e)?Le.add(vr):ue($e)&&X($e)===he&&!_e.has(vr)&&qe.add(vr)}})}for(var Cr=Le.clone(),Or=new te,Ke=0,Pe=he.statements;Ke<Pe.length;Ke++){var Lr=Pe[Ke];e.contains(ve,Lr)||(De&&!!(Lr.transformFlags&2)&&Cr.delete(De),F(Lr,Ve,function(vr){_e.has(vr)&&Or.add(vr),Cr.delete(vr)}))}return{movedSymbols:_e,newFileImportsFromOldFile:qe,oldFileImportsFromNewFile:Or,oldImportsNeededByNewFile:Le,unusedImportsFromOldFile:Cr};function Hr(ur){if(ur!==void 0){var vr=Ve.getJsxNamespace(ur),de=Ve.resolveName(vr,ur,1920,!0);return!!de&&e.some(de.declarations,D)?de:void 0}}}function D(he){switch(he.kind){case 264:case 269:case 266:case 267:return!0;case 253:return C(he);case 202:return e.isVariableDeclaration(he.parent.parent)&&C(he.parent.parent);default:return!1}}function C(he){return e.isSourceFile(he.parent.parent.parent)&&!!he.initializer&&e.isRequireCall(he.initializer,!0)}function m(he,ve,Ve){switch(he.kind){case 265:{var _e=he.importClause;if(!_e)return;var Le=_e.name&&Ve(_e.name)?_e.name:void 0,qe=_e.namedBindings&&u(_e.namedBindings,Ve);return Le||qe?e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,Le,qe),ve,void 0):void 0}case 264:return Ve(he.name)?he:void 0;case 253:{var Xe=g(he.name,Ve);return Xe?K(Xe,he.type,Z(ve),he.parent.flags):void 0}default:return e.Debug.assertNever(he,"Unexpected import kind ".concat(he.kind))}}function u(he,ve){if(he.kind===267)return ve(he.name)?he:void 0;var Ve=he.elements.filter(function(_e){return ve(_e.name)});return Ve.length?e.factory.createNamedImports(Ve):void 0}function g(he,ve){switch(he.kind){case 79:return ve(he)?he:void 0;case 201:return he;case 200:{var Ve=he.elements.filter(function(_e){return _e.propertyName||!e.isIdentifier(_e.name)||ve(_e.name)});return Ve.length?e.factory.createObjectBindingPattern(Ve):void 0}}}function F(he,ve,Ve){he.forEachChild(function _e(Le){if(e.isIdentifier(Le)&&!e.isDeclarationName(Le)){var qe=ve.getSymbolAtLocation(Le);qe&&Ve(qe)}else Le.forEachChild(_e)})}var te=function(){function he(){this.map=new e.Map}return he.prototype.add=function(ve){this.map.set(String(e.getSymbolId(ve)),ve)},he.prototype.has=function(ve){return this.map.has(String(e.getSymbolId(ve)))},he.prototype.delete=function(ve){this.map.delete(String(e.getSymbolId(ve)))},he.prototype.forEach=function(ve){this.map.forEach(ve)},he.prototype.forEachEntry=function(ve){return e.forEachEntry(this.map,ve)},he.prototype.clone=function(){var ve=new he;return e.copyEntries(this.map,ve.map),ve},he}();function ue(he){return Se(he)&&e.isSourceFile(he.parent)||e.isVariableDeclaration(he)&&e.isSourceFile(he.parent.parent.parent)}function X(he){return e.isVariableDeclaration(he)?he.parent.parent.parent:he.parent}function j(he){return e.Debug.assert(e.isSourceFile(he.parent),"Node parent should be a SourceFile"),Se(he)||e.isVariableStatement(he)}function Se(he){switch(he.kind){case 255:case 256:case 260:case 259:case 258:case 257:case 264:return!0;default:return!1}}function Ce(he,ve){switch(he.kind){case 255:case 256:case 260:case 259:case 258:case 257:case 264:return ve(he);case 236:return e.firstDefined(he.declarationList.declarations,function(_e){return O(_e.name,ve)});case 237:{var Ve=he.expression;return e.isBinaryExpression(Ve)&&e.getAssignmentDeclarationKind(Ve)===1?ve(he):void 0}}}function O(he,ve){switch(he.kind){case 79:return ve(e.cast(he.parent,function(Ve){return e.isVariableDeclaration(Ve)||e.isBindingElement(Ve)}));case 201:case 200:return e.firstDefined(he.elements,function(Ve){return e.isOmittedExpression(Ve)?void 0:O(Ve.name,ve)});default:return e.Debug.assertNever(he,"Unexpected name kind ".concat(he.kind))}}function Q(he){return e.isExpressionStatement(he)?e.tryCast(he.expression.left.name,e.isIdentifier):e.tryCast(he.name,e.isIdentifier)}function V(he){switch(he.kind){case 253:return he.parent.parent;case 202:return V(e.cast(he.parent.parent,function(ve){return e.isVariableDeclaration(ve)||e.isBindingElement(ve)}));default:return he}}function z(he,ve,Ve,_e,Le){if(!Te(he,ve,Le,Ve))if(Le)e.isExpressionStatement(ve)||_e.insertExportModifier(he,ve);else{var qe=Ie(ve);qe.length!==0&&_e.insertNodesAfter(he,ve,qe.map(Ge))}}function Te(he,ve,Ve,_e){var Le;return Ve?!e.isExpressionStatement(ve)&&e.hasSyntacticModifier(ve,1)||!!(_e&&((Le=he.symbol.exports)===null||Le===void 0?void 0:Le.has(_e.escapedText))):Ie(ve).some(function(qe){return he.symbol.exports.has(e.escapeLeadingUnderscores(qe))})}function ge(he,ve){return ve?[ke(he)]:Me(he)}function ke(he){var ve=e.concatenate([e.factory.createModifier(93)],he.modifiers);switch(he.kind){case 255:return e.factory.updateFunctionDeclaration(he,he.decorators,ve,he.asteriskToken,he.name,he.typeParameters,he.parameters,he.type,he.body);case 256:return e.factory.updateClassDeclaration(he,he.decorators,ve,he.name,he.typeParameters,he.heritageClauses,he.members);case 236:return e.factory.updateVariableStatement(he,ve,he.declarationList);case 260:return e.factory.updateModuleDeclaration(he,he.decorators,ve,he.name,he.body);case 259:return e.factory.updateEnumDeclaration(he,he.decorators,ve,he.name,he.members);case 258:return e.factory.updateTypeAliasDeclaration(he,he.decorators,ve,he.name,he.typeParameters,he.type);case 257:return e.factory.updateInterfaceDeclaration(he,he.decorators,ve,he.name,he.typeParameters,he.heritageClauses,he.members);case 264:return e.factory.updateImportEqualsDeclaration(he,he.decorators,ve,he.isTypeOnly,he.name,he.moduleReference);case 237:return e.Debug.fail();default:return e.Debug.assertNever(he,"Unexpected declaration kind ".concat(he.kind))}}function Me(he){return Gt([he],Ie(he).map(Ge),!0)}function Ie(he){switch(he.kind){case 255:case 256:return[he.name.text];case 236:return e.mapDefined(he.declarationList.declarations,function(ve){return e.isIdentifier(ve.name)?ve.name.text:void 0});case 260:case 259:case 258:case 257:case 264:return e.emptyArray;case 237:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(he,"Unexpected decl kind ".concat(he.kind))}}function Ge(he){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(he)),63,e.factory.createIdentifier(he)))}})(e.refactor||(e.refactor={}))})(gr||(gr={}));var gr;(function(e){(function(n){(function(f){var d="Add or remove braces in an arrow function",a=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,p={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},N={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};n.registerRefactor(d,{kinds:[N.kind],getEditsForAction:h,getAvailableActions:H});function H(A){var q=A.file,ie=A.startPosition,b=A.triggerReason,P=v(q,ie,b==="invoked");return P?n.isRefactorErrorInfo(P)?A.preferences.provideRefactorNotApplicableReason?[{name:d,description:a,actions:[Rn(Rn({},p),{notApplicableReason:P.error}),Rn(Rn({},N),{notApplicableReason:P.error})]}]:e.emptyArray:[{name:d,description:a,actions:[P.addBraces?p:N]}]:e.emptyArray}function h(A,q){var ie=A.file,b=A.startPosition,P=v(ie,b);e.Debug.assert(P&&!n.isRefactorErrorInfo(P),"Expected applicable refactor info");var S=P.expression,B=P.returnStatement,J=P.func,k;if(q===p.name){var M=e.factory.createReturnStatement(S);k=e.factory.createBlock([M],!0),e.copyLeadingComments(S,M,ie,3,!0)}else if(q===N.name&&B){var x=S||e.factory.createVoidZero();k=e.needsParentheses(x)?e.factory.createParenthesizedExpression(x):x,e.copyTrailingAsLeadingComments(B,k,ie,3,!1),e.copyLeadingComments(B,k,ie,3,!1),e.copyTrailingComments(B,k,ie,3,!1)}else e.Debug.fail("invalid action");var w=e.textChanges.ChangeTracker.with(A,function(K){K.replaceNode(ie,J.body,k)});return{renameFilename:void 0,renameLocation:void 0,edits:w}}function v(A,q,ie,b){ie===void 0&&(ie=!0);var P=e.getTokenAtPosition(A,q),S=e.getContainingFunction(P);if(!S)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(S))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(!(!e.rangeContainsRange(S,P)||e.rangeContainsRange(S.body,P)&&!ie)){if(n.refactorKindBeginsWith(p.kind,b)&&e.isExpression(S.body))return{func:S,addBraces:!0,expression:S.body};if(n.refactorKindBeginsWith(N.kind,b)&&e.isBlock(S.body)&&S.body.statements.length===1){var B=e.first(S.body.statements);if(e.isReturnStatement(B))return{func:S,addBraces:!1,expression:B.expression,returnStatement:B}}}}})(n.addOrRemoveBracesToArrowFunction||(n.addOrRemoveBracesToArrowFunction={}))})(e.refactor||(e.refactor={}))})(gr||(gr={}));var gr;(function(e){(function(n){(function(f){var d="Convert parameters to destructured object",a=2,p=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),N={name:d,description:p,kind:"refactor.rewrite.parameters.toDestructured"};n.registerRefactor(d,{kinds:[N.kind],getEditsForAction:h,getAvailableActions:H});function H(u){var g=u.file,F=u.startPosition,te=e.isSourceFileJS(g);if(te)return e.emptyArray;var ue=J(g,F,u.program.getTypeChecker());return ue?[{name:d,description:p,actions:[N]}]:e.emptyArray}function h(u,g){e.Debug.assert(g===d,"Unexpected action name");var F=u.file,te=u.startPosition,ue=u.program,X=u.cancellationToken,j=u.host,Se=J(F,te,ue.getTypeChecker());if(!(!Se||!X)){var Ce=A(Se,ue,X);if(Ce.valid){var O=e.textChanges.ChangeTracker.with(u,function(Q){return v(F,ue,j,Q,Se,Ce)});return{renameFilename:void 0,renameLocation:void 0,edits:O}}return{edits:[]}}}function v(u,g,F,te,ue,X){var j=X.signature,Se=e.map(y(ue,g,F),function(ke){return e.getSynthesizedDeepClone(ke)});if(j){var Ce=e.map(y(j,g,F),function(ke){return e.getSynthesizedDeepClone(ke)});ge(j,Ce)}ge(ue,Se);for(var O=e.sortAndDeduplicate(X.functionCalls,function(ke,Me){return e.compareValues(ke.pos,Me.pos)}),Q=0,V=O;Q<V.length;Q++){var z=V[Q];if(z.arguments&&z.arguments.length){var Te=e.getSynthesizedDeepClone(I(ue,z.arguments),!0);te.replaceNodeRange(e.getSourceFileOfNode(z),e.first(z.arguments),e.last(z.arguments),Te,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function ge(ke,Me){te.replaceNodeRangeWithNodes(u,e.first(ke.parameters),e.last(ke.parameters),Me,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function A(u,g,F){var te=m(u),ue=e.isConstructorDeclaration(u)?C(u):[],X=e.deduplicate(Gt(Gt([],te,!0),ue,!0),e.equateValues),j=g.getTypeChecker(),Se=e.flatMap(X,function(V){return e.FindAllReferences.getReferenceEntriesForNode(-1,V,g,g.getSourceFiles(),F)}),Ce=O(Se);return e.every(Ce.declarations,function(V){return e.contains(X,V)})||(Ce.valid=!1),Ce;function O(V){for(var z={accessExpressions:[],typeUsages:[]},Te={functionCalls:[],declarations:[],classReferences:z,valid:!0},ge=e.map(te,Q),ke=e.map(ue,Q),Me=e.isConstructorDeclaration(u),Ie=e.map(te,function(Ae){return q(Ae,j)}),Ge=0,he=V;Ge<he.length;Ge++){var ve=he[Ge];if(ve.kind===0){Te.valid=!1;continue}if(e.contains(Ie,Q(ve.node))){if(M(ve.node.parent)){Te.signature=ve.node.parent;continue}var Ve=P(ve);if(Ve){Te.functionCalls.push(Ve);continue}}var _e=q(ve.node,j);if(_e&&e.contains(Ie,_e)){var Le=b(ve);if(Le){Te.declarations.push(Le);continue}}if(e.contains(ge,Q(ve.node))||e.isNewExpressionTarget(ve.node)){var qe=ie(ve);if(qe)continue;var Le=b(ve);if(Le){Te.declarations.push(Le);continue}var Ve=P(ve);if(Ve){Te.functionCalls.push(Ve);continue}}if(Me&&e.contains(ke,Q(ve.node))){var qe=ie(ve);if(qe)continue;var Le=b(ve);if(Le){Te.declarations.push(Le);continue}var Xe=S(ve);if(Xe){z.accessExpressions.push(Xe);continue}if(e.isClassDeclaration(u.parent)){var De=B(ve);if(De){z.typeUsages.push(De);continue}}}Te.valid=!1}return Te}function Q(V){var z=j.getSymbolAtLocation(V);return z&&e.getSymbolTarget(z,j)}}function q(u,g){var F=e.getContainingObjectLiteralElement(u);if(F){var te=g.getContextualTypeForObjectLiteralElement(F),ue=te==null?void 0:te.getSymbol();if(ue&&!(e.getCheckFlags(ue)&6))return ue}}function ie(u){var g=u.node;if(e.isImportSpecifier(g.parent)||e.isImportClause(g.parent)||e.isImportEqualsDeclaration(g.parent)||e.isNamespaceImport(g.parent)||e.isExportSpecifier(g.parent)||e.isExportAssignment(g.parent))return g}function b(u){if(e.isDeclaration(u.node.parent))return u.node}function P(u){if(u.node.parent){var g=u.node,F=g.parent;switch(F.kind){case 207:case 208:var te=e.tryCast(F,e.isCallOrNewExpression);if(te&&te.expression===g)return te;break;case 205:var ue=e.tryCast(F,e.isPropertyAccessExpression);if(ue&&ue.parent&&ue.name===g){var X=e.tryCast(ue.parent,e.isCallOrNewExpression);if(X&&X.expression===ue)return X}break;case 206:var j=e.tryCast(F,e.isElementAccessExpression);if(j&&j.parent&&j.argumentExpression===g){var Se=e.tryCast(j.parent,e.isCallOrNewExpression);if(Se&&Se.expression===j)return Se}break}}}function S(u){if(u.node.parent){var g=u.node,F=g.parent;switch(F.kind){case 205:var te=e.tryCast(F,e.isPropertyAccessExpression);if(te&&te.expression===g)return te;break;case 206:var ue=e.tryCast(F,e.isElementAccessExpression);if(ue&&ue.expression===g)return ue;break}}}function B(u){var g=u.node;if(e.getMeaningFromLocation(g)===2||e.isExpressionWithTypeArgumentsInClassExtendsClause(g.parent))return g}function J(u,g,F){var te=e.getTouchingToken(u,g),ue=e.getContainingFunctionDeclaration(te);if(!k(te)&&ue&&x(ue,F)&&e.rangeContainsRange(ue,te)&&!(ue.body&&e.rangeContainsRange(ue.body,te)))return ue}function k(u){var g=e.findAncestor(u,e.isJSDocNode);if(g){var F=e.findAncestor(g,function(te){return!e.isJSDocNode(te)});return!!F&&e.isFunctionLikeDeclaration(F)}return!1}function M(u){return e.isMethodSignature(u)&&(e.isInterfaceDeclaration(u.parent)||e.isTypeLiteralNode(u.parent))}function x(u,g){var F;if(!Z(u.parameters,g))return!1;switch(u.kind){case 255:return K(u)&&w(u,g);case 168:if(e.isObjectLiteralExpression(u.parent)){var te=q(u.name,g);return((F=te==null?void 0:te.declarations)===null||F===void 0?void 0:F.length)===1&&w(u,g)}return w(u,g);case 170:return e.isClassDeclaration(u.parent)?K(u.parent)&&w(u,g):R(u.parent.parent)&&w(u,g);case 212:case 213:return R(u.parent)}return!1}function w(u,g){return!!u.body&&!g.isImplementationOfOverload(u)}function K(u){if(!u.name){var g=e.findModifier(u,88);return!!g}return!0}function Z(u,g){return U(u)>=a&&e.every(u,function(F){return ne(F,g)})}function ne(u,g){if(e.isRestParameter(u)){var F=g.getTypeAtLocation(u);if(!g.isArrayType(F)&&!g.isTupleType(F))return!1}return!u.modifiers&&!u.decorators&&e.isIdentifier(u.name)}function R(u){return e.isVariableDeclaration(u)&&e.isVarConst(u)&&e.isIdentifier(u.name)&&!u.type}function Y(u){return u.length>0&&e.isThis(u[0].name)}function U(u){return Y(u)?u.length-1:u.length}function $(u){return Y(u)&&(u=e.factory.createNodeArray(u.slice(1),u.hasTrailingComma)),u}function T(u,g){return e.isIdentifier(g)&&e.getTextOfIdentifierOrLiteral(g)===u?e.factory.createShorthandPropertyAssignment(u):e.factory.createPropertyAssignment(u,g)}function I(u,g){var F=$(u.parameters),te=e.isRestParameter(e.last(F)),ue=te?g.slice(0,F.length-1):g,X=e.map(ue,function(O,Q){var V=D(F[Q]),z=T(V,O);return e.suppressLeadingAndTrailingTrivia(z.name),e.isPropertyAssignment(z)&&e.suppressLeadingAndTrailingTrivia(z.initializer),e.copyComments(O,z),z});if(te&&g.length>=F.length){var j=g.slice(F.length-1),Se=e.factory.createPropertyAssignment(D(e.last(F)),e.factory.createArrayLiteralExpression(j));X.push(Se)}var Ce=e.factory.createObjectLiteralExpression(X,!1);return Ce}function y(u,g,F){var te=g.getTypeChecker(),ue=$(u.parameters),X=e.map(ue,z),j=e.factory.createObjectBindingPattern(X),Se=Te(ue),Ce;e.every(ue,Me)&&(Ce=e.factory.createObjectLiteralExpression());var O=e.factory.createParameterDeclaration(void 0,void 0,void 0,j,void 0,Se,Ce);if(Y(u.parameters)){var Q=u.parameters[0],V=e.factory.createParameterDeclaration(void 0,void 0,void 0,Q.name,void 0,Q.type);return e.suppressLeadingAndTrailingTrivia(V.name),e.copyComments(Q.name,V.name),Q.type&&(e.suppressLeadingAndTrailingTrivia(V.type),e.copyComments(Q.type,V.type)),e.factory.createNodeArray([V,O])}return e.factory.createNodeArray([O]);function z(Ie){var Ge=e.factory.createBindingElement(void 0,void 0,D(Ie),e.isRestParameter(Ie)&&Me(Ie)?e.factory.createArrayLiteralExpression():Ie.initializer);return e.suppressLeadingAndTrailingTrivia(Ge),Ie.initializer&&Ge.initializer&&e.copyComments(Ie.initializer,Ge.initializer),Ge}function Te(Ie){var Ge=e.map(Ie,ge),he=e.addEmitFlags(e.factory.createTypeLiteralNode(Ge),1);return he}function ge(Ie){var Ge=Ie.type;!Ge&&(Ie.initializer||e.isRestParameter(Ie))&&(Ge=ke(Ie));var he=e.factory.createPropertySignature(void 0,D(Ie),Me(Ie)?e.factory.createToken(57):Ie.questionToken,Ge);return e.suppressLeadingAndTrailingTrivia(he),e.copyComments(Ie.name,he.name),Ie.type&&he.type&&e.copyComments(Ie.type,he.type),he}function ke(Ie){var Ge=te.getTypeAtLocation(Ie);return e.getTypeNodeIfAccessible(Ge,Ie,g,F)}function Me(Ie){if(e.isRestParameter(Ie)){var Ge=te.getTypeAtLocation(Ie);return!te.isTupleType(Ge)}return te.isOptionalParameter(Ie)}}function D(u){return e.getTextOfIdentifierOrLiteral(u.name)}function C(u){switch(u.parent.kind){case 256:var g=u.parent;if(g.name)return[g.name];var F=e.Debug.checkDefined(e.findModifier(g,88),"Nameless class declaration should be a default export");return[F];case 225:var te=u.parent,ue=u.parent.parent,X=te.name;return X?[X,ue.name]:[ue.name]}}function m(u){switch(u.kind){case 255:if(u.name)return[u.name];var g=e.Debug.checkDefined(e.findModifier(u,88),"Nameless function declaration should be a default export");return[g];case 168:return[u.name];case 170:var F=e.Debug.checkDefined(e.findChildOfKind(u,134,u.getSourceFile()),"Constructor declaration should have constructor keyword");if(u.parent.kind===225){var te=u.parent.parent;return[te.name,F]}return[F];case 213:return[u.parent.name];case 212:return u.name?[u.name,u.parent.name]:[u.parent.name];default:return e.Debug.assertNever(u,"Unexpected function declaration kind ".concat(u.kind))}}})(n.convertParamsToDestructuredObject||(n.convertParamsToDestructuredObject={}))})(e.refactor||(e.refactor={}))})(gr||(gr={}));var gr;(function(e){(function(n){(function(f){var d="Convert to template string",a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),p={name:d,description:a,kind:"refactor.rewrite.string"};n.registerRefactor(d,{kinds:[p.kind],getEditsForAction:h,getAvailableActions:N});function N(w){var K=w.file,Z=w.startPosition,ne=H(K,Z),R=q(ne),Y={name:d,description:a,actions:[]};return e.isBinaryExpression(R)&&ie(R).isValidConcatenation?(Y.actions.push(p),[Y]):w.preferences.provideRefactorNotApplicableReason?(Y.actions.push(Rn(Rn({},p),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[Y]):e.emptyArray}function H(w,K){var Z=e.getTokenAtPosition(w,K),ne=q(Z),R=!ie(ne).isValidConcatenation;return R&&e.isParenthesizedExpression(ne.parent)&&e.isBinaryExpression(ne.parent.parent)?ne.parent.parent:Z}function h(w,K){var Z=w.file,ne=w.startPosition,R=H(Z,ne);switch(K){case a:return{edits:v(w,R)};default:return e.Debug.fail("invalid action")}}function v(w,K){var Z=q(K),ne=w.file,R=k(ie(Z),ne),Y=e.getTrailingCommentRanges(ne.text,Z.end);if(Y){var U=Y[Y.length-1],$={pos:Y[0].pos,end:U.end};return e.textChanges.ChangeTracker.with(w,function(T){T.deleteRange(ne,$),T.replaceNode(ne,Z,R)})}else return e.textChanges.ChangeTracker.with(w,function(T){return T.replaceNode(ne,Z,R)})}function A(w){return w.operatorToken.kind!==63}function q(w){var K=e.findAncestor(w.parent,function(Z){switch(Z.kind){case 205:case 206:return!1;case 222:case 220:return!(e.isBinaryExpression(Z.parent)&&A(Z.parent));default:return"quit"}});return K||w}function ie(w){var K=function($){if(!e.isBinaryExpression($))return{nodes:[$],operators:[],validOperators:!0,hasString:e.isStringLiteral($)||e.isNoSubstitutionTemplateLiteral($)};var T=K($.left),I=T.nodes,y=T.operators,D=T.hasString,C=T.validOperators;if(!(D||e.isStringLiteral($.right)||e.isTemplateExpression($.right)))return{nodes:[$],operators:[],hasString:!1,validOperators:!0};var m=$.operatorToken.kind===39,u=C&&m;return I.push($.right),y.push($.operatorToken),{nodes:I,operators:y,hasString:!0,validOperators:u}},Z=K(w),ne=Z.nodes,R=Z.operators,Y=Z.validOperators,U=Z.hasString;return{nodes:ne,operators:R,isValidConcatenation:Y&&U}}var b=function(w,K){return function(Z,ne){Z<w.length&&e.copyTrailingComments(w[Z],ne,K,3,!1)}},P=function(w,K,Z){return function(ne,R){for(;ne.length>0;){var Y=ne.shift();e.copyTrailingComments(w[Y],R,K,3,!1),Z(Y,R)}}};function S(w){return w.replace(/\\.|[$`]/g,function(K){return K[0]==="\\"?K:"\\"+K})}function B(w){var K=e.isTemplateHead(w)||e.isTemplateMiddle(w)?-2:-1;return e.getTextOfNode(w).slice(1,K)}function J(w,K){for(var Z=[],ne="",R="";w<K.length;){var Y=K[w];if(e.isStringLiteralLike(Y))ne+=Y.text,R+=S(e.getTextOfNode(Y).slice(1,-1)),Z.push(w),w++;else if(e.isTemplateExpression(Y)){ne+=Y.head.text,R+=B(Y.head);break}else break}return[w,ne,R,Z]}function k(w,K){var Z=w.nodes,ne=w.operators,R=b(ne,K),Y=P(Z,K,R),U=J(0,Z),$=U[0],T=U[1],I=U[2],y=U[3];if($===Z.length){var D=e.factory.createNoSubstitutionTemplateLiteral(T,I);return Y(y,D),D}var C=[],m=e.factory.createTemplateHead(T,I);Y(y,m);for(var u=function(te){var ue=x(Z[te]);R(te,ue);var X=J(te+1,Z),j=X[0],Se=X[1],Ce=X[2],O=X[3];te=j-1;var Q=te===Z.length-1;if(e.isTemplateExpression(ue)){var V=e.map(ue.templateSpans,function(Te,ge){M(Te);var ke=ge===ue.templateSpans.length-1,Me=Te.literal.text+(ke?Se:""),Ie=B(Te.literal)+(ke?Ce:"");return e.factory.createTemplateSpan(Te.expression,Q?e.factory.createTemplateTail(Me,Ie):e.factory.createTemplateMiddle(Me,Ie))});C.push.apply(C,V)}else{var z=Q?e.factory.createTemplateTail(Se,Ce):e.factory.createTemplateMiddle(Se,Ce);Y(O,z),C.push(e.factory.createTemplateSpan(ue,z))}g=te},g,F=$;F<Z.length;F++)u(F),F=g;return e.factory.createTemplateExpression(m,C)}function M(w){var K=w.getSourceFile();e.copyTrailingComments(w,w.expression,K,3,!1),e.copyTrailingAsLeadingComments(w.expression,w.expression,K,3,!1)}function x(w){return e.isParenthesizedExpression(w)&&(M(w),w=w.expression),w}})(n.convertStringOrTemplateLiteral||(n.convertStringOrTemplateLiteral={}))})(e.refactor||(e.refactor={}))})(gr||(gr={}));var gr;(function(e){(function(n){(function(f){var d="Convert arrow function or function expression",a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),p={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},N={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},H={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};n.registerRefactor(d,{kinds:[p.kind,N.kind,H.kind],getEditsForAction:v,getAvailableActions:h});function h(w){var K=w.file,Z=w.startPosition,ne=w.program,R=w.kind,Y=q(K,Z,ne);if(!Y)return e.emptyArray;var U=Y.selectedVariableDeclaration,$=Y.func,T=[],I=[];if(n.refactorKindBeginsWith(N.kind,R)){var y=U||e.isArrowFunction($)&&e.isVariableDeclaration($.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function);y?I.push(Rn(Rn({},N),{notApplicableReason:y})):T.push(N)}if(n.refactorKindBeginsWith(p.kind,R)){var y=!U&&e.isArrowFunction($)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function);y?I.push(Rn(Rn({},p),{notApplicableReason:y})):T.push(p)}if(n.refactorKindBeginsWith(H.kind,R)){var y=e.isFunctionExpression($)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function);y?I.push(Rn(Rn({},H),{notApplicableReason:y})):T.push(H)}return[{name:d,description:a,actions:T.length===0&&w.preferences.provideRefactorNotApplicableReason?I:T}]}function v(w,K){var Z=w.file,ne=w.startPosition,R=w.program,Y=q(Z,ne,R);if(!!Y){var U=Y.func,$=[];switch(K){case p.name:$.push.apply($,B(w,U));break;case N.name:var T=S(U);if(!T)return;$.push.apply($,J(w,U,T));break;case H.name:if(!e.isFunctionExpression(U))return;$.push.apply($,k(w,U));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:$}}}function A(w){var K=!1;return w.forEachChild(function Z(ne){if(e.isThis(ne)){K=!0;return}!e.isClassLike(ne)&&!e.isFunctionDeclaration(ne)&&!e.isFunctionExpression(ne)&&e.forEachChild(ne,Z)}),K}function q(w,K,Z){var ne=e.getTokenAtPosition(w,K),R=Z.getTypeChecker(),Y=b(w,R,ne.parent);if(Y&&!A(Y.body)&&!R.containsArgumentsReference(Y))return{selectedVariableDeclaration:!0,func:Y};var U=e.getContainingFunction(ne);if(U&&(e.isFunctionExpression(U)||e.isArrowFunction(U))&&!e.rangeContainsRange(U.body,ne)&&!A(U.body)&&!R.containsArgumentsReference(U))return e.isFunctionExpression(U)&&x(w,R,U)?void 0:{selectedVariableDeclaration:!1,func:U}}function ie(w){return e.isVariableDeclaration(w)||e.isVariableDeclarationList(w)&&w.declarations.length===1}function b(w,K,Z){if(!!ie(Z)){var ne=e.isVariableDeclaration(Z)?Z:e.first(Z.declarations),R=ne.initializer;if(R&&(e.isArrowFunction(R)||e.isFunctionExpression(R)&&!x(w,K,R)))return R}}function P(w){if(e.isExpression(w)){var K=e.factory.createReturnStatement(w),Z=w.getSourceFile();return e.suppressLeadingAndTrailingTrivia(K),e.copyTrailingAsLeadingComments(w,K,Z,void 0,!0),e.factory.createBlock([K],!0)}else return w}function S(w){var K=w.parent;if(!(!e.isVariableDeclaration(K)||!e.isVariableDeclarationInVariableStatement(K))){var Z=K.parent,ne=Z.parent;if(!(!e.isVariableDeclarationList(Z)||!e.isVariableStatement(ne)||!e.isIdentifier(K.name)))return{variableDeclaration:K,variableDeclarationList:Z,statement:ne,name:K.name}}}function B(w,K){var Z=w.file,ne=P(K.body),R=e.factory.createFunctionExpression(K.modifiers,K.asteriskToken,void 0,K.typeParameters,K.parameters,K.type,ne);return e.textChanges.ChangeTracker.with(w,function(Y){return Y.replaceNode(Z,K,R)})}function J(w,K,Z){var ne=w.file,R=P(K.body),Y=Z.variableDeclaration,U=Z.variableDeclarationList,$=Z.statement,T=Z.name;e.suppressLeadingTrivia($);var I=e.getCombinedModifierFlags(Y)&1|e.getEffectiveModifierFlags(K),y=e.factory.createModifiersFromModifierFlags(I),D=e.factory.createFunctionDeclaration(K.decorators,e.length(y)?y:void 0,K.asteriskToken,T,K.typeParameters,K.parameters,K.type,R);return U.declarations.length===1?e.textChanges.ChangeTracker.with(w,function(C){return C.replaceNode(ne,$,D)}):e.textChanges.ChangeTracker.with(w,function(C){C.delete(ne,Y),C.insertNodeAfter(ne,$,D)})}function k(w,K){var Z=w.file,ne=K.body.statements,R=ne[0],Y;M(K.body,R)?(Y=R.expression,e.suppressLeadingAndTrailingTrivia(Y),e.copyComments(R,Y)):Y=K.body;var U=e.factory.createArrowFunction(K.modifiers,K.typeParameters,K.parameters,K.type,e.factory.createToken(38),Y);return e.textChanges.ChangeTracker.with(w,function($){return $.replaceNode(Z,K,U)})}function M(w,K){return w.statements.length===1&&e.isReturnStatement(K)&&!!K.expression}function x(w,K,Z){return!!Z.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(Z.name,K,w)}})(n.convertArrowFunctionOrFunctionExpression||(n.convertArrowFunctionOrFunctionExpression={}))})(e.refactor||(e.refactor={}))})(gr||(gr={}));var gr;(function(e){(function(n){(function(f){var d="Infer function return type",a=e.Diagnostics.Infer_function_return_type.message,p={name:d,description:a,kind:"refactor.rewrite.function.returnType"};n.registerRefactor(d,{kinds:[p.kind],getEditsForAction:N,getAvailableActions:H});function N(ie){var b=v(ie);if(b&&!n.isRefactorErrorInfo(b)){var P=e.textChanges.ChangeTracker.with(ie,function(S){return h(ie.file,S,b.declaration,b.returnTypeNode)});return{renameFilename:void 0,renameLocation:void 0,edits:P}}}function H(ie){var b=v(ie);return b?n.isRefactorErrorInfo(b)?ie.preferences.provideRefactorNotApplicableReason?[{name:d,description:a,actions:[Rn(Rn({},p),{notApplicableReason:b.error})]}]:e.emptyArray:[{name:d,description:a,actions:[p]}]:e.emptyArray}function h(ie,b,P,S){var B=e.findChildOfKind(P,21,ie),J=e.isArrowFunction(P)&&B===void 0,k=J?e.first(P.parameters):B;k&&(J&&(b.insertNodeBefore(ie,k,e.factory.createToken(20)),b.insertNodeAfter(ie,k,e.factory.createToken(21))),b.insertNodeAt(ie,k.end,S,{prefix:": "}))}function v(ie){if(!(e.isInJSFile(ie.file)||!n.refactorKindBeginsWith(p.kind,ie.kind))){var b=e.getTokenAtPosition(ie.file,ie.startPosition),P=e.findAncestor(b,function(k){return e.isBlock(k)||k.parent&&e.isArrowFunction(k.parent)&&(k.kind===38||k.parent.body===k)?"quit":A(k)});if(!P||!P.body||P.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var S=ie.program.getTypeChecker(),B=q(S,P);if(!B)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var J=S.typeToTypeNode(B,P,1);if(J)return{declaration:P,returnTypeNode:J}}}function A(ie){switch(ie.kind){case 255:case 212:case 213:case 168:return!0;default:return!1}}function q(ie,b){if(ie.isImplementationOfOverload(b)){var P=ie.getTypeAtLocation(b).getCallSignatures();if(P.length>1)return ie.getUnionType(e.mapDefined(P,function(B){return B.getReturnType()}))}var S=ie.getSignatureFromDeclaration(b);if(S)return ie.getReturnTypeOfSignature(S)}})(n.inferFunctionReturnType||(n.inferFunctionReturnType={}))})(e.refactor||(e.refactor={}))})(gr||(gr={}));var gr;(function(e){e.servicesVersion="0.8";function n(Q,V,z,Te){var ge=e.isNodeKind(Q)?new f(Q,V,z):Q===79?new v(79,V,z):Q===80?new A(80,V,z):new h(Q,V,z);return ge.parent=Te,ge.flags=Te.flags&25358336,ge}var f=function(){function Q(V,z,Te){this.pos=z,this.end=Te,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=V}return Q.prototype.assertHasRealPosition=function(V){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),V||"Node must have a real position for this operation")},Q.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},Q.prototype.getStart=function(V,z){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,V,z)},Q.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},Q.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},Q.prototype.getWidth=function(V){return this.assertHasRealPosition(),this.getEnd()-this.getStart(V)},Q.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},Q.prototype.getLeadingTriviaWidth=function(V){return this.assertHasRealPosition(),this.getStart(V)-this.pos},Q.prototype.getFullText=function(V){return this.assertHasRealPosition(),(V||this.getSourceFile()).text.substring(this.pos,this.end)},Q.prototype.getText=function(V){return this.assertHasRealPosition(),V||(V=this.getSourceFile()),V.text.substring(this.getStart(V),this.getEnd())},Q.prototype.getChildCount=function(V){return this.getChildren(V).length},Q.prototype.getChildAt=function(V,z){return this.getChildren(z)[V]},Q.prototype.getChildren=function(V){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=d(this,V))},Q.prototype.getFirstToken=function(V){this.assertHasRealPosition();var z=this.getChildren(V);if(!!z.length){var Te=e.find(z,function(ge){return ge.kind<307||ge.kind>345});return Te.kind<160?Te:Te.getFirstToken(V)}},Q.prototype.getLastToken=function(V){this.assertHasRealPosition();var z=this.getChildren(V),Te=e.lastOrUndefined(z);if(!!Te)return Te.kind<160?Te:Te.getLastToken(V)},Q.prototype.forEachChild=function(V,z){return e.forEachChild(this,V,z)},Q}();function d(Q,V){if(!e.isNodeKind(Q.kind))return e.emptyArray;var z=[];if(e.isJSDocCommentContainingNode(Q))return Q.forEachChild(function(Me){z.push(Me)}),z;e.scanner.setText((V||Q.getSourceFile()).text);var Te=Q.pos,ge=function(Me){a(z,Te,Me.pos,Q),z.push(Me),Te=Me.end},ke=function(Me){a(z,Te,Me.pos,Q),z.push(p(Me,Q)),Te=Me.end};return e.forEach(Q.jsDoc,ge),Te=Q.pos,Q.forEachChild(ge,ke),a(z,Te,Q.end,Q),e.scanner.setText(void 0),z}function a(Q,V,z,Te){for(e.scanner.setTextPos(V);V<z;){var ge=e.scanner.scan(),ke=e.scanner.getTextPos();if(ke<=z&&(ge===79&&e.Debug.fail("Did not expect ".concat(e.Debug.formatSyntaxKind(Te.kind)," to have an Identifier in its trivia")),Q.push(n(ge,V,ke,Te))),V=ke,ge===1)break}}function p(Q,V){var z=n(346,Q.pos,Q.end,V);z._children=[];for(var Te=Q.pos,ge=0,ke=Q;ge<ke.length;ge++){var Me=ke[ge];a(z._children,Te,Me.pos,V),z._children.push(Me),Te=Me.end}return a(z._children,Te,Q.end,V),z}var N=function(){function Q(V,z){this.pos=V,this.end=z,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return Q.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},Q.prototype.getStart=function(V,z){return e.getTokenPosOfNode(this,V,z)},Q.prototype.getFullStart=function(){return this.pos},Q.prototype.getEnd=function(){return this.end},Q.prototype.getWidth=function(V){return this.getEnd()-this.getStart(V)},Q.prototype.getFullWidth=function(){return this.end-this.pos},Q.prototype.getLeadingTriviaWidth=function(V){return this.getStart(V)-this.pos},Q.prototype.getFullText=function(V){return(V||this.getSourceFile()).text.substring(this.pos,this.end)},Q.prototype.getText=function(V){return V||(V=this.getSourceFile()),V.text.substring(this.getStart(V),this.getEnd())},Q.prototype.getChildCount=function(){return this.getChildren().length},Q.prototype.getChildAt=function(V){return this.getChildren()[V]},Q.prototype.getChildren=function(){return this.kind===1&&this.jsDoc||e.emptyArray},Q.prototype.getFirstToken=function(){},Q.prototype.getLastToken=function(){},Q.prototype.forEachChild=function(){},Q}(),H=function(){function Q(V,z){this.flags=V,this.escapedName=z}return Q.prototype.getFlags=function(){return this.flags},Object.defineProperty(Q.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!1,configurable:!0}),Q.prototype.getEscapedName=function(){return this.escapedName},Q.prototype.getName=function(){return this.name},Q.prototype.getDeclarations=function(){return this.declarations},Q.prototype.getDocumentationComment=function(V){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var z=this.target.tupleLabelDeclaration;this.documentationComment=S([z],V)}else this.documentationComment=S(this.declarations,V);return this.documentationComment},Q.prototype.getContextualDocumentationComment=function(V,z){switch(V==null?void 0:V.kind){case 171:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=e.emptyArray,this.contextualGetAccessorDocumentationComment=S(e.filter(this.declarations,e.isGetAccessor),z)),this.contextualGetAccessorDocumentationComment;case 172:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=e.emptyArray,this.contextualSetAccessorDocumentationComment=S(e.filter(this.declarations,e.isSetAccessor),z)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(z)}},Q.prototype.getJsDocTags=function(V){return this.tags===void 0&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations,V)),this.tags},Q}(),h=function(Q){Mm(V,Q);function V(z,Te,ge){var ke=Q.call(this,Te,ge)||this;return ke.kind=z,ke}return V}(N),v=function(Q){Mm(V,Q);function V(z,Te,ge){var ke=Q.call(this,Te,ge)||this;return ke.kind=79,ke}return Object.defineProperty(V.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),V}(N);v.prototype.kind=79;var A=function(Q){Mm(V,Q);function V(z,Te,ge){return Q.call(this,Te,ge)||this}return Object.defineProperty(V.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),V}(N);A.prototype.kind=80;var q=function(){function Q(V,z){this.checker=V,this.flags=z}return Q.prototype.getFlags=function(){return this.flags},Q.prototype.getSymbol=function(){return this.symbol},Q.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},Q.prototype.getProperty=function(V){return this.checker.getPropertyOfType(this,V)},Q.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},Q.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},Q.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},Q.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},Q.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},Q.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},Q.prototype.isNullableType=function(){return this.checker.isNullableType(this)},Q.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},Q.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},Q.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},Q.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},Q.prototype.isUnion=function(){return!!(this.flags&1048576)},Q.prototype.isIntersection=function(){return!!(this.flags&2097152)},Q.prototype.isUnionOrIntersection=function(){return!!(this.flags&3145728)},Q.prototype.isLiteral=function(){return!!(this.flags&384)},Q.prototype.isStringLiteral=function(){return!!(this.flags&128)},Q.prototype.isNumberLiteral=function(){return!!(this.flags&256)},Q.prototype.isTypeParameter=function(){return!!(this.flags&262144)},Q.prototype.isClassOrInterface=function(){return!!(e.getObjectFlags(this)&3)},Q.prototype.isClass=function(){return!!(e.getObjectFlags(this)&1)},Object.defineProperty(Q.prototype,"typeArguments",{get:function(){if(e.getObjectFlags(this)&4)return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),Q}(),ie=function(){function Q(V,z){this.checker=V,this.flags=z}return Q.prototype.getDeclaration=function(){return this.declaration},Q.prototype.getTypeParameters=function(){return this.typeParameters},Q.prototype.getParameters=function(){return this.parameters},Q.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},Q.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=S(e.singleElementArray(this.declaration),this.checker))},Q.prototype.getJsDocTags=function(){return this.jsDocTags===void 0&&(this.jsDocTags=this.declaration?P(this.declaration,this.checker):[]),this.jsDocTags},Q}();function b(Q){return e.getJSDocTags(Q).some(function(V){return V.tagName.text==="inheritDoc"})}function P(Q,V){var z=e.JsDoc.getJsDocTagsFromDeclarations([Q],V);if(z.length===0||b(Q)){var Te=B(V,Q,function(ge){var ke;return((ke=ge.declarations)===null||ke===void 0?void 0:ke.length)===1?ge.getJsDocTags():void 0});Te&&(z=Gt(Gt([],Te,!0),z,!0))}return z}function S(Q,V){if(!Q)return e.emptyArray;var z=e.JsDoc.getJsDocCommentsFromDeclarations(Q,V);if(V&&(z.length===0||Q.some(b)))for(var Te=new e.Set,ge=0,ke=Q;ge<ke.length;ge++){var Me=ke[ge],Ie=B(V,Me,function(Ge){if(!Te.has(Ge))return Te.add(Ge),Ge.getDocumentationComment(V)});Ie&&(z=z.length===0?Ie.slice():Ie.concat(e.lineBreakPart(),z))}return z}function B(Q,V,z){var Te,ge=((Te=V.parent)===null||Te===void 0?void 0:Te.kind)===170?V.parent.parent:V.parent;if(!!ge)return e.firstDefined(e.getAllSuperTypeNodes(ge),function(ke){var Me=Q.getPropertyOfType(Q.getTypeAtLocation(ke),V.symbol.name);return Me?z(Me):void 0})}var J=function(Q){Mm(V,Q);function V(z,Te,ge){var ke=Q.call(this,z,Te,ge)||this;return ke.kind=303,ke}return V.prototype.update=function(z,Te){return e.updateSourceFile(this,z,Te)},V.prototype.getLineAndCharacterOfPosition=function(z){return e.getLineAndCharacterOfPosition(this,z)},V.prototype.getLineStarts=function(){return e.getLineStarts(this)},V.prototype.getPositionOfLineAndCharacter=function(z,Te,ge){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),z,Te,this.text,ge)},V.prototype.getLineEndOfPosition=function(z){var Te=this.getLineAndCharacterOfPosition(z).line,ge=this.getLineStarts(),ke;Te+1>=ge.length&&(ke=this.getEnd()),ke||(ke=ge[Te+1]-1);var Me=this.getFullText();return Me[ke]===`
|
|
`&&Me[ke-1]==="\r"?ke-1:ke},V.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},V.prototype.computeNamedDeclarations=function(){var z=e.createMultiMap();return this.forEachChild(Me),z;function Te(Ie){var Ge=ke(Ie);Ge&&z.add(Ge,Ie)}function ge(Ie){var Ge=z.get(Ie);return Ge||z.set(Ie,Ge=[]),Ge}function ke(Ie){var Ge=e.getNonAssignedNameOfDeclaration(Ie);return Ge&&(e.isComputedPropertyName(Ge)&&e.isPropertyAccessExpression(Ge.expression)?Ge.expression.name.text:e.isPropertyName(Ge)?e.getNameFromPropertyName(Ge):void 0)}function Me(Ie){switch(Ie.kind){case 255:case 212:case 168:case 167:var Ge=Ie,he=ke(Ge);if(he){var ve=ge(he),Ve=e.lastOrUndefined(ve);Ve&&Ge.parent===Ve.parent&&Ge.symbol===Ve.symbol?Ge.body&&!Ve.body&&(ve[ve.length-1]=Ge):ve.push(Ge)}e.forEachChild(Ie,Me);break;case 256:case 225:case 257:case 258:case 259:case 260:case 264:case 274:case 269:case 266:case 267:case 171:case 172:case 181:Te(Ie),e.forEachChild(Ie,Me);break;case 163:if(!e.hasSyntacticModifier(Ie,16476))break;case 253:case 202:{var _e=Ie;if(e.isBindingPattern(_e.name)){e.forEachChild(_e.name,Me);break}_e.initializer&&Me(_e.initializer)}case 297:case 166:case 165:Te(Ie);break;case 271:var Le=Ie;Le.exportClause&&(e.isNamedExports(Le.exportClause)?e.forEach(Le.exportClause.elements,Me):Me(Le.exportClause.name));break;case 265:var qe=Ie.importClause;qe&&(qe.name&&Te(qe.name),qe.namedBindings&&(qe.namedBindings.kind===267?Te(qe.namedBindings):e.forEach(qe.namedBindings.elements,Me)));break;case 220:e.getAssignmentDeclarationKind(Ie)!==0&&Te(Ie);default:e.forEachChild(Ie,Me)}}},V}(f),k=function(){function Q(V,z,Te){this.fileName=V,this.text=z,this.skipTrivia=Te}return Q.prototype.getLineAndCharacterOfPosition=function(V){return e.getLineAndCharacterOfPosition(this,V)},Q}();function M(){return{getNodeConstructor:function(){return f},getTokenConstructor:function(){return h},getIdentifierConstructor:function(){return v},getPrivateIdentifierConstructor:function(){return A},getSourceFileConstructor:function(){return J},getSymbolConstructor:function(){return H},getTypeConstructor:function(){return q},getSignatureConstructor:function(){return ie},getSourceMapSourceConstructor:function(){return k}}}function x(Q){var V=!0;for(var z in Q)if(e.hasProperty(Q,z)&&!w(z)){V=!1;break}if(V)return Q;var Te={};for(var z in Q)if(e.hasProperty(Q,z)){var ge=w(z)?z:z.charAt(0).toLowerCase()+z.substr(1);Te[ge]=Q[z]}return Te}e.toEditorSettings=x;function w(Q){return!Q.length||Q.charAt(0)===Q.charAt(0).toLowerCase()}function K(Q){return Q?e.map(Q,function(V){return V.text}).join(""):""}e.displayPartsToString=K;function Z(){return{target:1,jsx:1}}e.getDefaultCompilerOptions=Z;function ne(){return e.codefix.getSupportedErrorCodes()}e.getSupportedCodeFixes=ne;var R=function(){function Q(V,z){this.host=V,this.currentDirectory=V.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var Te=V.getScriptFileNames(),ge=0,ke=Te;ge<ke.length;ge++){var Me=ke[ge];this.createEntry(Me,e.toPath(Me,this.currentDirectory,z))}}return Q.prototype.createEntry=function(V,z){var Te,ge=this.host.getScriptSnapshot(V);return ge?Te={hostFileName:V,version:this.host.getScriptVersion(V),scriptSnapshot:ge,scriptKind:e.getScriptKind(V,this.host)}:Te=V,this.fileNameToEntry.set(z,Te),Te},Q.prototype.getEntryByPath=function(V){return this.fileNameToEntry.get(V)},Q.prototype.getHostFileInformation=function(V){var z=this.fileNameToEntry.get(V);return e.isString(z)?void 0:z},Q.prototype.getOrCreateEntryByPath=function(V,z){var Te=this.getEntryByPath(z)||this.createEntry(V,z);return e.isString(Te)?void 0:Te},Q.prototype.getRootFileNames=function(){var V=[];return this.fileNameToEntry.forEach(function(z){e.isString(z)?V.push(z):V.push(z.hostFileName)}),V},Q.prototype.getScriptSnapshot=function(V){var z=this.getHostFileInformation(V);return z&&z.scriptSnapshot},Q}(),Y=function(){function Q(V){this.host=V}return Q.prototype.getCurrentSourceFile=function(V){var z=this.host.getScriptSnapshot(V);if(!z)throw new Error("Could not find file: '"+V+"'.");var Te=e.getScriptKind(V,this.host),ge=this.host.getScriptVersion(V),ke;if(this.currentFileName!==V)ke=$(V,z,99,ge,!0,Te);else if(this.currentFileVersion!==ge){var Me=z.getChangeRange(this.currentFileScriptSnapshot);ke=T(this.currentSourceFile,z,ge,Me)}return ke&&(this.currentFileVersion=ge,this.currentFileName=V,this.currentFileScriptSnapshot=z,this.currentSourceFile=ke),this.currentSourceFile},Q}();function U(Q,V,z){Q.version=z,Q.scriptSnapshot=V}function $(Q,V,z,Te,ge,ke){var Me=e.createSourceFile(Q,e.getSnapshotText(V),z,ge,ke);return U(Me,V,Te),Me}e.createLanguageServiceSourceFile=$;function T(Q,V,z,Te,ge){if(Te&&z!==Q.version){var ke=void 0,Me=Te.span.start!==0?Q.text.substr(0,Te.span.start):"",Ie=e.textSpanEnd(Te.span)!==Q.text.length?Q.text.substr(e.textSpanEnd(Te.span)):"";if(Te.newLength===0)ke=Me&&Ie?Me+Ie:Me||Ie;else{var Ge=V.getText(Te.span.start,Te.span.start+Te.newLength);ke=Me&&Ie?Me+Ge+Ie:Me?Me+Ge:Ge+Ie}var he=e.updateSourceFile(Q,ke,Te,ge);return U(he,V,z),he.nameTable=void 0,Q!==he&&Q.scriptSnapshot&&(Q.scriptSnapshot.dispose&&Q.scriptSnapshot.dispose(),Q.scriptSnapshot=void 0),he}return $(Q.fileName,V,Q.languageVersion,z,!0,Q.scriptKind)}e.updateLanguageServiceSourceFile=T;var I={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},y=function(){function Q(V){this.cancellationToken=V}return Q.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},Q.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},Q}(),D=function(){function Q(V,z){z===void 0&&(z=20),this.hostCancellationToken=V,this.throttleWaitMilliseconds=z,this.lastCancellationCheckTime=0}return Q.prototype.isCancellationRequested=function(){var V=e.timestamp(),z=Math.abs(V-this.lastCancellationCheckTime);return z>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=V,this.hostCancellationToken.isCancellationRequested()):!1},Q.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},Q}();e.ThrottledCancellationToken=D;var C=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],m=Gt(Gt([],C,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function u(Q,V,z){var Te;V===void 0&&(V=e.createDocumentRegistry(Q.useCaseSensitiveFileNames&&Q.useCaseSensitiveFileNames(),Q.getCurrentDirectory()));var ge;z===void 0?ge=e.LanguageServiceMode.Semantic:typeof z=="boolean"?ge=z?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:ge=z;var ke=new Y(Q),Me,Ie,Ge=0,he=Q.getCancellationToken?new y(Q.getCancellationToken()):I,ve=Q.getCurrentDirectory();!e.localizedDiagnosticMessages&&Q.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(Q.getLocalizedDiagnosticMessages());function Ve(pt){Q.log&&Q.log(pt)}var _e=e.hostUsesCaseSensitiveFileNames(Q),Le=e.createGetCanonicalFileName(_e),qe=e.getSourceMapper({useCaseSensitiveFileNames:function(){return _e},getCurrentDirectory:function(){return ve},getProgram:Ae,fileExists:e.maybeBind(Q,Q.fileExists),readFile:e.maybeBind(Q,Q.readFile),getDocumentPositionMapper:e.maybeBind(Q,Q.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(Q,Q.getSourceFileLike),log:Ve});function Xe(pt){var _t=Me.getSourceFile(pt);if(!_t){var Pt=new Error("Could not find source file: '".concat(pt,"'."));throw Pt.ProgramFiles=Me.getSourceFiles().map(function(It){return It.fileName}),Pt}return _t}function De(){var pt,_t,Pt;if(e.Debug.assert(ge!==e.LanguageServiceMode.Syntactic),Q.getProjectVersion){var It=Q.getProjectVersion();if(It){if(Ie===It&&!(!((pt=Q.hasChangedAutomaticTypeDirectiveNames)===null||pt===void 0)&&pt.call(Q)))return;Ie=It}}var rt=Q.getTypeRootsVersion?Q.getTypeRootsVersion():0;Ge!==rt&&(Ve("TypeRoots version has changed; provide new program"),Me=void 0,Ge=rt);var Cn=new R(Q,Le),Qn=Cn.getRootFileNames(),Ra=Q.getCompilationSettings()||Z(),Ci=Q.hasInvalidatedResolution||e.returnFalse,_i=e.maybeBind(Q,Q.hasChangedAutomaticTypeDirectiveNames),va=(_t=Q.getProjectReferences)===null||_t===void 0?void 0:_t.call(Q),yi,ro={useCaseSensitiveFileNames:_e,fileExists:No,readFile:lo,readDirectory:Lo,trace:e.maybeBind(Q,Q.trace),getCurrentDirectory:function(){return ve},onUnRecoverableConfigFileDiagnostic:e.noop};if(e.isProgramUptoDate(Me,Qn,Ra,function(za,hi){return Q.getScriptVersion(hi)},No,Ci,_i,ji,va))return;var Ka={getSourceFile:Yo,getSourceFileByPath:co,getCancellationToken:function(){return he},getCanonicalFileName:Le,useCaseSensitiveFileNames:function(){return _e},getNewLine:function(){return e.getNewLineCharacter(Ra,function(){return e.getNewLineOrDefaultFromHost(Q)})},getDefaultLibFileName:function(za){return Q.getDefaultLibFileName(za)},writeFile:e.noop,getCurrentDirectory:function(){return ve},fileExists:No,readFile:lo,getSymlinkCache:e.maybeBind(Q,Q.getSymlinkCache),realpath:e.maybeBind(Q,Q.realpath),directoryExists:function(za){return e.directoryProbablyExists(za,Q)},getDirectories:function(za){return Q.getDirectories?Q.getDirectories(za):[]},readDirectory:Lo,onReleaseOldSourceFile:Ha,onReleaseParsedCommandLine:to,hasInvalidatedResolution:Ci,hasChangedAutomaticTypeDirectiveNames:_i,trace:ro.trace,resolveModuleNames:e.maybeBind(Q,Q.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(Q,Q.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(Q,Q.useSourceOfProjectReferenceRedirect),getParsedCommandLine:ji};(Pt=Q.setCompilerHost)===null||Pt===void 0||Pt.call(Q,Ka);var Pi=V.getKeyForCompilationSettings(Ra),io={rootNames:Qn,options:Ra,host:Ka,oldProgram:Me,projectReferences:va};Me=e.createProgram(io),Cn=void 0,yi=void 0,qe.clearCache(),Me.getTypeChecker();return;function ji(za){var hi=e.toPath(za,ve,Le),Zi=yi==null?void 0:yi.get(hi);if(Zi!==void 0)return Zi||void 0;var Po=Q.getParsedCommandLine?Q.getParsedCommandLine(za):Hi(za);return(yi||(yi=new e.Map)).set(hi,Po||!1),Po}function Hi(za){var hi=Yo(za,100);if(!!hi)return hi.path=e.toPath(za,ve,Le),hi.resolvedPath=hi.path,hi.originalFileName=hi.fileName,e.parseJsonSourceFileConfigFileContent(hi,ro,e.getNormalizedAbsolutePath(e.getDirectoryPath(za),ve),void 0,e.getNormalizedAbsolutePath(za,ve))}function to(za,hi,Zi){var Po;Q.getParsedCommandLine?(Po=Q.onReleaseParsedCommandLine)===null||Po===void 0||Po.call(Q,za,hi,Zi):hi&&Ha(hi.sourceFile,Zi)}function No(za){var hi=e.toPath(za,ve,Le),Zi=Cn&&Cn.getEntryByPath(hi);return Zi?!e.isString(Zi):!!Q.fileExists&&Q.fileExists(za)}function lo(za){var hi=e.toPath(za,ve,Le),Zi=Cn&&Cn.getEntryByPath(hi);return Zi?e.isString(Zi)?void 0:e.getSnapshotText(Zi.scriptSnapshot):Q.readFile&&Q.readFile(za)}function Lo(za,hi,Zi,Po,Mo){return e.Debug.checkDefined(Q.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),Q.readDirectory(za,hi,Zi,Po,Mo)}function Ha(za,hi){var Zi=V.getKeyForCompilationSettings(hi);V.releaseDocumentWithKey(za.resolvedPath,Zi,za.scriptKind)}function Yo(za,hi,Zi,Po){return co(za,e.toPath(za,ve,Le),hi,Zi,Po)}function co(za,hi,Zi,Po,Mo){e.Debug.assert(Cn!==void 0,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var Fo=Cn&&Cn.getOrCreateEntryByPath(za,hi);if(!!Fo){if(!Mo){var zo=Me&&Me.getSourceFileByPath(hi);if(zo){if(Fo.scriptKind===zo.scriptKind)return V.updateDocumentWithKey(za,hi,Ra,Pi,Fo.scriptSnapshot,Fo.version,Fo.scriptKind);V.releaseDocumentWithKey(zo.resolvedPath,V.getKeyForCompilationSettings(Me.getCompilerOptions()),zo.scriptKind)}}return V.acquireDocumentWithKey(za,hi,Ra,Pi,Fo.scriptSnapshot,Fo.version,Fo.scriptKind)}}}function Ae(){if(ge===e.LanguageServiceMode.Syntactic){e.Debug.assert(Me===void 0);return}return De(),Me}function Ye(){var pt;return(pt=Q.getPackageJsonAutoImportProvider)===null||pt===void 0?void 0:pt.call(Q)}function Lr(){Me=void 0}function Er(){if(Me){var pt=V.getKeyForCompilationSettings(Me.getCompilerOptions());e.forEach(Me.getSourceFiles(),function(_t){return V.releaseDocumentWithKey(_t.resolvedPath,pt,_t.scriptKind)}),Me=void 0}Q=void 0}function lr(pt){return De(),Me.getSyntacticDiagnostics(Xe(pt),he).slice()}function Cr(pt){De();var _t=Xe(pt),Pt=Me.getSemanticDiagnostics(_t,he);if(!e.getEmitDeclarations(Me.getCompilerOptions()))return Pt.slice();var It=Me.getDeclarationDiagnostics(_t,he);return Gt(Gt([],Pt,!0),It,!0)}function Or(pt){return De(),e.computeSuggestionDiagnostics(Xe(pt),Me,he)}function Ke(){return De(),Gt(Gt([],Me.getOptionsDiagnostics(he),!0),Me.getGlobalDiagnostics(he),!0)}function Pe(pt,_t,Pt){Pt===void 0&&(Pt=e.emptyOptions);var It=Rn(Rn({},e.identity(Pt)),{includeCompletionsForModuleExports:Pt.includeCompletionsForModuleExports||Pt.includeExternalModuleExports,includeCompletionsWithInsertText:Pt.includeCompletionsWithInsertText||Pt.includeInsertTextCompletions});return De(),e.Completions.getCompletionsAtPosition(Q,Me,Ve,Xe(pt),_t,It,Pt.triggerCharacter,Pt.triggerKind,he)}function Hr(pt,_t,Pt,It,rt,Cn,Qn){return Cn===void 0&&(Cn=e.emptyOptions),De(),e.Completions.getCompletionEntryDetails(Me,Ve,Xe(pt),_t,{name:Pt,source:rt,data:Qn},Q,It&&e.formatting.getFormatContext(It,Q),Cn,he)}function ur(pt,_t,Pt,It,rt){return rt===void 0&&(rt=e.emptyOptions),De(),e.Completions.getCompletionEntrySymbol(Me,Ve,Xe(pt),_t,{name:Pt,source:It},Q,rt)}function vr(pt,_t){De();var Pt=Xe(pt),It=e.getTouchingPropertyName(Pt,_t);if(It!==Pt){var rt=Me.getTypeChecker(),Cn=de(It),Qn=j(Cn,rt);if(!Qn||rt.isUnknownSymbol(Qn)){var Ra=Fe(Pt,Cn,_t)?rt.getTypeAtLocation(Cn):void 0;return Ra&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(Cn,Pt),displayParts:rt.runWithCancellationToken(he,function(Ka){return e.typeToDisplayParts(Ka,Ra,e.getContainerNode(Cn))}),documentation:Ra.symbol?Ra.symbol.getDocumentationComment(rt):void 0,tags:Ra.symbol?Ra.symbol.getJsDocTags(rt):void 0}}var Ci=rt.runWithCancellationToken(he,function(Ka){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(Ka,Qn,Pt,e.getContainerNode(Cn),Cn)}),_i=Ci.symbolKind,va=Ci.displayParts,yi=Ci.documentation,ro=Ci.tags;return{kind:_i,kindModifiers:e.SymbolDisplay.getSymbolModifiers(rt,Qn),textSpan:e.createTextSpanFromNode(Cn,Pt),displayParts:va,documentation:yi,tags:ro}}}function de(pt){return e.isNewExpression(pt.parent)&&pt.pos===pt.parent.pos?pt.parent.expression:e.isNamedTupleMember(pt.parent)&&pt.pos===pt.parent.pos?pt.parent:pt}function Fe(pt,_t,Pt){switch(_t.kind){case 79:return!e.isLabelName(_t)&&!e.isTagName(_t)&&!e.isConstTypeReference(_t.parent);case 205:case 160:return!e.isInComment(pt,Pt);case 108:case 191:case 106:case 196:return!0;default:return!1}}function $e(pt,_t){return De(),e.GoToDefinition.getDefinitionAtPosition(Me,Xe(pt),_t)}function Dr(pt,_t){return De(),e.GoToDefinition.getDefinitionAndBoundSpan(Me,Xe(pt),_t)}function Fr(pt,_t){return De(),e.GoToDefinition.getTypeDefinitionAtPosition(Me.getTypeChecker(),Xe(pt),_t)}function He(pt,_t){return De(),e.FindAllReferences.getImplementationsAtPosition(Me,he,Me.getSourceFiles(),Xe(pt),_t)}function pr(pt,_t){return e.flatMap(Jr(pt,_t,[pt]),function(Pt){return Pt.highlightSpans.map(function(It){return Rn(Rn({fileName:Pt.fileName,textSpan:It.textSpan,isWriteAccess:It.kind==="writtenReference",isDefinition:!1},It.isInString&&{isInString:!0}),It.contextSpan&&{contextSpan:It.contextSpan})})})}function Jr(pt,_t,Pt){var It=e.normalizePath(pt);e.Debug.assert(Pt.some(function(Qn){return e.normalizePath(Qn)===It})),De();var rt=e.mapDefined(Pt,function(Qn){return Me.getSourceFile(Qn)}),Cn=Xe(pt);return e.DocumentHighlights.getDocumentHighlights(Me,he,Cn,_t,rt)}function ze(pt,_t,Pt,It,rt){De();var Cn=Xe(pt),Qn=e.getAdjustedRenameLocation(e.getTouchingPropertyName(Cn,_t));if(!!e.Rename.nodeIsEligibleForRename(Qn))if(e.isIdentifier(Qn)&&(e.isJsxOpeningElement(Qn.parent)||e.isJsxClosingElement(Qn.parent))&&e.isIntrinsicJsxName(Qn.escapedText)){var Ra=Qn.parent.parent,Ci=Ra.openingElement,_i=Ra.closingElement;return[Ci,_i].map(function(va){var yi=e.createTextSpanFromNode(va.tagName,Cn);return Rn({fileName:Cn.fileName,textSpan:yi},e.FindAllReferences.toContextSpan(yi,Cn,va.parent))})}else return Yr(Qn,_t,{findInStrings:Pt,findInComments:It,providePrefixAndSuffixTextForRename:rt,use:2},function(va,yi,ro){return e.FindAllReferences.toRenameLocation(va,yi,ro,rt||!1)})}function Ar(pt,_t){return De(),Yr(e.getTouchingPropertyName(Xe(pt),_t),_t,{use:1},function(Pt,It,rt){return e.FindAllReferences.toReferenceEntry(Pt,rt.getSymbolAtLocation(It))})}function Yr(pt,_t,Pt,It){De();var rt=Pt&&Pt.use===2?Me.getSourceFiles().filter(function(Cn){return!Me.isSourceFileDefaultLibrary(Cn)}):Me.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(Me,he,rt,pt,_t,Pt,It)}function lt(pt,_t){return De(),e.FindAllReferences.findReferencedSymbols(Me,he,Me.getSourceFiles(),Xe(pt),_t)}function tt(pt){var _t;De();var Pt=(_t=Me.getSourceFile(pt))===null||_t===void 0?void 0:_t.symbol;return e.FindAllReferences.Core.getReferencesForFileName(pt,Me,Me.getSourceFiles()).map(function(It){return e.FindAllReferences.toReferenceEntry(It,Pt)})}function Rt(pt,_t,Pt,It){It===void 0&&(It=!1),De();var rt=Pt?[Xe(Pt)]:Me.getSourceFiles();return e.NavigateTo.getNavigateToItems(rt,Me.getTypeChecker(),he,pt,_t,It)}function cn(pt,_t,Pt){De();var It=Xe(pt),rt=Q.getCustomTransformers&&Q.getCustomTransformers();return e.getFileEmitOutput(Me,It,!!_t,he,rt,Pt)}function bn(pt,_t,Pt){var It=Pt===void 0?e.emptyOptions:Pt,rt=It.triggerReason;De();var Cn=Xe(pt);return e.SignatureHelp.getSignatureHelpItems(Me,Cn,_t,rt,he)}function In(pt){return ke.getCurrentSourceFile(pt)}function zn(pt,_t,Pt){var It=ke.getCurrentSourceFile(pt),rt=e.getTouchingPropertyName(It,_t);if(rt!==It){switch(rt.kind){case 205:case 160:case 10:case 95:case 110:case 104:case 106:case 108:case 191:case 79:break;default:return}for(var Cn=rt;;)if(e.isRightSideOfPropertyAccess(Cn)||e.isRightSideOfQualifiedName(Cn))Cn=Cn.parent;else if(e.isNameOfModuleDeclaration(Cn))if(Cn.parent.parent.kind===260&&Cn.parent.parent.body===Cn.parent)Cn=Cn.parent.parent.name;else break;else break;return e.createTextSpanFromBounds(Cn.getStart(),rt.getEnd())}}function ir(pt,_t){var Pt=ke.getCurrentSourceFile(pt);return e.BreakpointResolver.spanInSourceFileAtLocation(Pt,_t)}function Rr(pt){return e.NavigationBar.getNavigationBarItems(ke.getCurrentSourceFile(pt),he)}function sr(pt){return e.NavigationBar.getNavigationTree(ke.getCurrentSourceFile(pt),he)}function ye(pt,_t,Pt){De();var It=Pt||"original";return It==="2020"?e.classifier.v2020.getSemanticClassifications(Me,he,Xe(pt),_t):e.getSemanticClassifications(Me.getTypeChecker(),he,Xe(pt),Me.getClassifiableNames(),_t)}function or(pt,_t,Pt){De();var It=Pt||"original";return It==="original"?e.getEncodedSemanticClassifications(Me.getTypeChecker(),he,Xe(pt),Me.getClassifiableNames(),_t):e.classifier.v2020.getEncodedSemanticClassifications(Me,he,Xe(pt),_t)}function fe(pt,_t){return e.getSyntacticClassifications(he,ke.getCurrentSourceFile(pt),_t)}function je(pt,_t){return e.getEncodedSyntacticClassifications(he,ke.getCurrentSourceFile(pt),_t)}function Ee(pt){var _t=ke.getCurrentSourceFile(pt);return e.OutliningElementsCollector.collectElements(_t,he)}var We=new e.Map(e.getEntries((Te={},Te[18]=19,Te[20]=21,Te[22]=23,Te[31]=29,Te)));We.forEach(function(pt,_t){return We.set(pt.toString(),Number(_t))});function ee(pt,_t){var Pt=ke.getCurrentSourceFile(pt),It=e.getTouchingToken(Pt,_t),rt=It.getStart(Pt)===_t?We.get(It.kind.toString()):void 0,Cn=rt&&e.findChildOfKind(It.parent,rt,Pt);return Cn?[e.createTextSpanFromNode(It,Pt),e.createTextSpanFromNode(Cn,Pt)].sort(function(Qn,Ra){return Qn.start-Ra.start}):e.emptyArray}function Ne(pt,_t,Pt){var It=e.timestamp(),rt=x(Pt),Cn=ke.getCurrentSourceFile(pt);Ve("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-It)),It=e.timestamp();var Qn=e.formatting.SmartIndenter.getIndentation(_t,Cn,rt);return Ve("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-It)),Qn}function me(pt,_t,Pt,It){var rt=ke.getCurrentSourceFile(pt);return e.formatting.formatSelection(_t,Pt,rt,e.formatting.getFormatContext(x(It),Q))}function Ze(pt,_t){return e.formatting.formatDocument(ke.getCurrentSourceFile(pt),e.formatting.getFormatContext(x(_t),Q))}function xr(pt,_t,Pt,It){var rt=ke.getCurrentSourceFile(pt),Cn=e.formatting.getFormatContext(x(It),Q);if(!e.isInComment(rt,_t))switch(Pt){case"{":return e.formatting.formatOnOpeningCurly(_t,rt,Cn);case"}":return e.formatting.formatOnClosingCurly(_t,rt,Cn);case";":return e.formatting.formatOnSemicolon(_t,rt,Cn);case`
|
|
`:return e.formatting.formatOnEnter(_t,rt,Cn)}return[]}function fr(pt,_t,Pt,It,rt,Cn){Cn===void 0&&(Cn=e.emptyOptions),De();var Qn=Xe(pt),Ra=e.createTextSpanFromBounds(_t,Pt),Ci=e.formatting.getFormatContext(rt,Q);return e.flatMap(e.deduplicate(It,e.equateValues,e.compareValues),function(_i){return he.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:_i,sourceFile:Qn,span:Ra,program:Me,host:Q,cancellationToken:he,formatContext:Ci,preferences:Cn})})}function dr(pt,_t,Pt,It){It===void 0&&(It=e.emptyOptions),De(),e.Debug.assert(pt.type==="file");var rt=Xe(pt.fileName),Cn=e.formatting.getFormatContext(Pt,Q);return e.codefix.getAllFixes({fixId:_t,sourceFile:rt,program:Me,host:Q,cancellationToken:he,formatContext:Cn,preferences:It})}function et(pt,_t,Pt){Pt===void 0&&(Pt=e.emptyOptions),De(),e.Debug.assert(pt.type==="file");var It=Xe(pt.fileName),rt=e.formatting.getFormatContext(_t,Q);return e.OrganizeImports.organizeImports(It,rt,Q,Me,Pt,pt.skipDestructiveCodeActions)}function yt(pt,_t,Pt,It){return It===void 0&&(It=e.emptyOptions),e.getEditsForFileRename(Ae(),pt,_t,Q,e.formatting.getFormatContext(Pt,Q),It,qe)}function Wr(pt,_t){var Pt=typeof pt=="string"?_t:pt;return e.isArray(Pt)?Promise.all(Pt.map(function(It){return tr(It)})):tr(Pt)}function tr(pt){var _t=function(Pt){return e.toPath(Pt,ve,Le)};return e.Debug.assertEqual(pt.type,"install package"),Q.installPackage?Q.installPackage({fileName:_t(pt.file),packageName:pt.packageName}):Promise.reject("Host does not implement `installPackage`")}function Ir(pt,_t,Pt){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(Q),ke.getCurrentSourceFile(pt),_t,Pt)}function kr(pt,_t,Pt){if(Pt===60)return!1;var It=ke.getCurrentSourceFile(pt);if(e.isInString(It,_t))return!1;if(e.isInsideJsxElementOrAttribute(It,_t))return Pt===123;if(e.isInTemplateString(It,_t))return!1;switch(Pt){case 39:case 34:case 96:return!e.isInComment(It,_t)}return!0}function zr(pt,_t){var Pt=ke.getCurrentSourceFile(pt),It=e.findPrecedingToken(_t,Pt);if(!!It){var rt=It.kind===31&&e.isJsxOpeningElement(It.parent)?It.parent.parent:e.isJsxText(It)&&e.isJsxElement(It.parent)?It.parent:void 0;if(rt&&wt(rt))return{newText:"</".concat(rt.openingElement.tagName.getText(Pt),">")};var Cn=It.kind===31&&e.isJsxOpeningFragment(It.parent)?It.parent.parent:e.isJsxText(It)&&e.isJsxFragment(It.parent)?It.parent:void 0;if(Cn&&Qt(Cn))return{newText:"</>"}}}function gt(pt,_t){return{lineStarts:pt.getLineStarts(),firstLine:pt.getLineAndCharacterOfPosition(_t.pos).line,lastLine:pt.getLineAndCharacterOfPosition(_t.end).line}}function vt(pt,_t,Pt){for(var It=ke.getCurrentSourceFile(pt),rt=[],Cn=gt(It,_t),Qn=Cn.lineStarts,Ra=Cn.firstLine,Ci=Cn.lastLine,_i=Pt||!1,va=Number.MAX_VALUE,yi=new e.Map,ro=new RegExp(/\S/),Ka=e.isInsideJsxElement(It,Qn[Ra]),Pi=Ka?"{/*":"//",io=Ra;io<=Ci;io++){var ji=It.text.substring(Qn[io],It.getLineEndOfPosition(Qn[io])),Hi=ro.exec(ji);Hi&&(va=Math.min(va,Hi.index),yi.set(io.toString(),Hi.index),ji.substr(Hi.index,Pi.length)!==Pi&&(_i=Pt===void 0||Pt))}for(var io=Ra;io<=Ci;io++)if(!(Ra!==Ci&&Qn[io]===_t.end)){var to=yi.get(io.toString());to!==void 0&&(Ka?rt.push.apply(rt,ut(pt,{pos:Qn[io]+va,end:It.getLineEndOfPosition(Qn[io])},_i,Ka)):_i?rt.push({newText:Pi,span:{length:0,start:Qn[io]+va}}):It.text.substr(Qn[io]+to,Pi.length)===Pi&&rt.push({newText:"",span:{length:Pi.length,start:Qn[io]+to}}))}return rt}function ut(pt,_t,Pt,It){for(var rt,Cn=ke.getCurrentSourceFile(pt),Qn=[],Ra=Cn.text,Ci=!1,_i=Pt||!1,va=[],yi=_t.pos,ro=It!==void 0?It:e.isInsideJsxElement(Cn,yi),Ka=ro?"{/*":"/*",Pi=ro?"*/}":"*/",io=ro?"\\{\\/\\*":"\\/\\*",ji=ro?"\\*\\/\\}":"\\*\\/";yi<=_t.end;){var Hi=Ra.substr(yi,Ka.length)===Ka?Ka.length:0,to=e.isInComment(Cn,yi+Hi);if(to)ro&&(to.pos--,to.end++),va.push(to.pos),to.kind===3&&va.push(to.end),Ci=!0,yi=to.end+1;else{var No=Ra.substring(yi,_t.end).search("(".concat(io,")|(").concat(ji,")"));_i=Pt!==void 0?Pt:_i||!e.isTextWhiteSpaceLike(Ra,yi,No===-1?_t.end:yi+No),yi=No===-1?_t.end+1:yi+No+Pi.length}}if(_i||!Ci){((rt=e.isInComment(Cn,_t.pos))===null||rt===void 0?void 0:rt.kind)!==2&&e.insertSorted(va,_t.pos,e.compareValues),e.insertSorted(va,_t.end,e.compareValues);var lo=va[0];Ra.substr(lo,Ka.length)!==Ka&&Qn.push({newText:Ka,span:{length:0,start:lo}});for(var Lo=1;Lo<va.length-1;Lo++)Ra.substr(va[Lo]-Pi.length,Pi.length)!==Pi&&Qn.push({newText:Pi,span:{length:0,start:va[Lo]}}),Ra.substr(va[Lo],Ka.length)!==Ka&&Qn.push({newText:Ka,span:{length:0,start:va[Lo]}});Qn.length%2!==0&&Qn.push({newText:Pi,span:{length:0,start:va[va.length-1]}})}else for(var Ha=0,Yo=va;Ha<Yo.length;Ha++){var co=Yo[Ha],za=co-Pi.length>0?co-Pi.length:0,Hi=Ra.substr(za,Pi.length)===Pi?Pi.length:0;Qn.push({newText:"",span:{length:Ka.length,start:co-Hi}})}return Qn}function ht(pt,_t){var Pt=ke.getCurrentSourceFile(pt),It=gt(Pt,_t),rt=It.firstLine,Cn=It.lastLine;return rt===Cn&&_t.pos!==_t.end?ut(pt,_t,!0):vt(pt,_t,!0)}function xt(pt,_t){var Pt=ke.getCurrentSourceFile(pt),It=[],rt=_t.pos,Cn=_t.end;rt===Cn&&(Cn+=e.isInsideJsxElement(Pt,rt)?2:1);for(var Qn=rt;Qn<=Cn;Qn++){var Ra=e.isInComment(Pt,Qn);if(Ra){switch(Ra.kind){case 2:It.push.apply(It,vt(pt,{end:Ra.end,pos:Ra.pos+1},!1));break;case 3:It.push.apply(It,ut(pt,{end:Ra.end,pos:Ra.pos+1},!1))}Qn=Ra.end+1}}return It}function wt(pt){var _t=pt.openingElement,Pt=pt.closingElement,It=pt.parent;return!e.tagNamesAreEquivalent(_t.tagName,Pt.tagName)||e.isJsxElement(It)&&e.tagNamesAreEquivalent(_t.tagName,It.openingElement.tagName)&&wt(It)}function Qt(pt){var _t=pt.closingFragment,Pt=pt.parent;return!!(_t.flags&65536)||e.isJsxFragment(Pt)&&Qt(Pt)}function mt(pt,_t,Pt){var It=ke.getCurrentSourceFile(pt),rt=e.formatting.getRangeOfEnclosingComment(It,_t);return rt&&(!Pt||rt.kind===3)?e.createTextSpanFromRange(rt):void 0}function rn(pt,_t){De();var Pt=Xe(pt);he.throwIfCancellationRequested();var It=Pt.text,rt=[];if(_t.length>0&&!ji(Pt.fileName))for(var Cn=Pi(),Qn=void 0;Qn=Cn.exec(It);){he.throwIfCancellationRequested();var Ra=3;e.Debug.assert(Qn.length===_t.length+Ra);var Ci=Qn[1],_i=Qn.index+Ci.length;if(!!e.isInComment(Pt,_i)){for(var va=void 0,yi=0;yi<_t.length;yi++)Qn[yi+Ra]&&(va=_t[yi]);if(va===void 0)return e.Debug.fail();if(!io(It.charCodeAt(_i+va.text.length))){var ro=Qn[2];rt.push({descriptor:va,message:ro,position:_i})}}}return rt;function Ka(Hi){return Hi.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Pi(){var Hi=/(?:\/\/+\s*)/.source,to=/(?:\/\*+\s*)/.source,No=/(?:^(?:\s|\*)*)/.source,lo="("+No+"|"+Hi+"|"+to+")",Lo="(?:"+e.map(_t,function(hi){return"("+Ka(hi.text)+")"}).join("|")+")",Ha=/(?:$|\*\/)/.source,Yo=/(?:.*?)/.source,co="("+Lo+Yo+")",za=lo+co+Ha;return new RegExp(za,"gim")}function io(Hi){return Hi>=97&&Hi<=122||Hi>=65&&Hi<=90||Hi>=48&&Hi<=57}function ji(Hi){return e.stringContains(Hi,"/node_modules/")}}function sa(pt,_t,Pt){return De(),e.Rename.getRenameInfo(Me,Xe(pt),_t,Pt)}function ba(pt,_t,Pt,It,rt,Cn){var Qn=typeof _t=="number"?[_t,void 0]:[_t.pos,_t.end],Ra=Qn[0],Ci=Qn[1];return{file:pt,startPosition:Ra,endPosition:Ci,program:Ae(),host:Q,formatContext:e.formatting.getFormatContext(It,Q),cancellationToken:he,preferences:Pt,triggerReason:rt,kind:Cn}}function Jn(pt,_t,Pt){return{file:pt,program:Ae(),host:Q,span:_t,preferences:Pt,cancellationToken:he}}function na(pt,_t){return e.SmartSelectionRange.getSmartSelectionRange(_t,ke.getCurrentSourceFile(pt))}function Wn(pt,_t,Pt,It,rt){Pt===void 0&&(Pt=e.emptyOptions),De();var Cn=Xe(pt);return e.refactor.getApplicableRefactors(ba(Cn,_t,Pt,e.emptyOptions,It,rt))}function en(pt,_t,Pt,It,rt,Cn){Cn===void 0&&(Cn=e.emptyOptions),De();var Qn=Xe(pt);return e.refactor.getEditsForRefactor(ba(Qn,Pt,Cn,_t),It,rt)}function St(pt,_t){return _t===0?{line:0,character:0}:qe.toLineColumnOffset(pt,_t)}function Ut(pt,_t){De();var Pt=e.CallHierarchy.resolveCallHierarchyDeclaration(Me,e.getTouchingPropertyName(Xe(pt),_t));return Pt&&e.mapOneOrMany(Pt,function(It){return e.CallHierarchy.createCallHierarchyItem(Me,It)})}function qt(pt,_t){De();var Pt=Xe(pt),It=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(Me,_t===0?Pt:e.getTouchingPropertyName(Pt,_t)));return It?e.CallHierarchy.getIncomingCalls(Me,It,he):[]}function Pn(pt,_t){De();var Pt=Xe(pt),It=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(Me,_t===0?Pt:e.getTouchingPropertyName(Pt,_t)));return It?e.CallHierarchy.getOutgoingCalls(Me,It):[]}function dn(pt,_t,Pt){Pt===void 0&&(Pt=e.emptyOptions),De();var It=Xe(pt);return e.InlayHints.provideInlayHints(Jn(It,_t,Pt))}var oa={dispose:Er,cleanupSemanticCache:Lr,getSyntacticDiagnostics:lr,getSemanticDiagnostics:Cr,getSuggestionDiagnostics:Or,getCompilerOptionsDiagnostics:Ke,getSyntacticClassifications:fe,getSemanticClassifications:ye,getEncodedSyntacticClassifications:je,getEncodedSemanticClassifications:or,getCompletionsAtPosition:Pe,getCompletionEntryDetails:Hr,getCompletionEntrySymbol:ur,getSignatureHelpItems:bn,getQuickInfoAtPosition:vr,getDefinitionAtPosition:$e,getDefinitionAndBoundSpan:Dr,getImplementationAtPosition:He,getTypeDefinitionAtPosition:Fr,getReferencesAtPosition:Ar,findReferences:lt,getFileReferences:tt,getOccurrencesAtPosition:pr,getDocumentHighlights:Jr,getNameOrDottedNameSpan:zn,getBreakpointStatementAtPosition:ir,getNavigateToItems:Rt,getRenameInfo:sa,getSmartSelectionRange:na,findRenameLocations:ze,getNavigationBarItems:Rr,getNavigationTree:sr,getOutliningSpans:Ee,getTodoComments:rn,getBraceMatchingAtPosition:ee,getIndentationAtPosition:Ne,getFormattingEditsForRange:me,getFormattingEditsForDocument:Ze,getFormattingEditsAfterKeystroke:xr,getDocCommentTemplateAtPosition:Ir,isValidBraceCompletionAtPosition:kr,getJsxClosingTagAtPosition:zr,getSpanOfEnclosingComment:mt,getCodeFixesAtPosition:fr,getCombinedCodeFix:dr,applyCodeActionCommand:Wr,organizeImports:et,getEditsForFileRename:yt,getEmitOutput:cn,getNonBoundSourceFile:In,getProgram:Ae,getAutoImportProvider:Ye,getApplicableRefactors:Wn,getEditsForRefactor:en,toLineColumnOffset:St,getSourceMapper:function(){return qe},clearSourceMapperCache:function(){return qe.clearCache()},prepareCallHierarchy:Ut,provideCallHierarchyIncomingCalls:qt,provideCallHierarchyOutgoingCalls:Pn,toggleLineComment:vt,toggleMultilineComment:ut,commentSelection:ht,uncommentSelection:xt,provideInlayHints:dn};switch(ge){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:C.forEach(function(pt){return oa[pt]=function(){throw new Error("LanguageService Operation: ".concat(pt," not allowed in LanguageServiceMode.PartialSemantic"))}});break;case e.LanguageServiceMode.Syntactic:m.forEach(function(pt){return oa[pt]=function(){throw new Error("LanguageService Operation: ".concat(pt," not allowed in LanguageServiceMode.Syntactic"))}});break;default:e.Debug.assertNever(ge)}return oa}e.createLanguageService=u;function g(Q){return Q.nameTable||F(Q),Q.nameTable}e.getNameTable=g;function F(Q){var V=Q.nameTable=new e.Map;Q.forEachChild(function z(Te){if(e.isIdentifier(Te)&&!e.isTagName(Te)&&Te.escapedText||e.isStringOrNumericLiteralLike(Te)&&te(Te)){var ge=e.getEscapedTextOfIdentifierOrLiteral(Te);V.set(ge,V.get(ge)===void 0?Te.pos:-1)}else if(e.isPrivateIdentifier(Te)){var ge=Te.escapedText;V.set(ge,V.get(ge)===void 0?Te.pos:-1)}if(e.forEachChild(Te,z),e.hasJSDocNodes(Te))for(var ke=0,Me=Te.jsDoc;ke<Me.length;ke++){var Ie=Me[ke];e.forEachChild(Ie,z)}})}function te(Q){return e.isDeclarationName(Q)||Q.parent.kind===276||Ce(Q)||e.isLiteralComputedPropertyDeclarationName(Q)}function ue(Q){var V=X(Q);return V&&(e.isObjectLiteralExpression(V.parent)||e.isJsxAttributes(V.parent))?V:void 0}e.getContainingObjectLiteralElement=ue;function X(Q){switch(Q.kind){case 10:case 14:case 8:if(Q.parent.kind===161)return e.isObjectLiteralElement(Q.parent.parent)?Q.parent.parent:void 0;case 79:return e.isObjectLiteralElement(Q.parent)&&(Q.parent.parent.kind===204||Q.parent.parent.kind===285)&&Q.parent.name===Q?Q.parent:void 0}}function j(Q,V){var z=ue(Q);if(z){var Te=V.getContextualType(z.parent),ge=Te&&Se(z,V,Te,!1);if(ge&&ge.length===1)return e.first(ge)}return V.getSymbolAtLocation(Q)}function Se(Q,V,z,Te){var ge=e.getNameFromPropertyName(Q.name);if(!ge)return e.emptyArray;if(!z.isUnion()){var ke=z.getProperty(ge);return ke?[ke]:e.emptyArray}var Me=e.mapDefined(z.types,function(Ie){return(e.isObjectLiteralExpression(Q.parent)||e.isJsxAttributes(Q.parent))&&V.isTypeInvalidDueToUnionDiscriminant(Ie,Q.parent)?void 0:Ie.getProperty(ge)});if(Te&&(Me.length===0||Me.length===z.types.length)){var ke=z.getProperty(ge);if(ke)return[ke]}return Me.length===0?e.mapDefined(z.types,function(Ie){return Ie.getProperty(ge)}):Me}e.getPropertySymbolsFromContextualType=Se;function Ce(Q){return Q&&Q.parent&&Q.parent.kind===206&&Q.parent.argumentExpression===Q}function O(Q){if(typeof __dirname<"u")return __dirname+e.directorySeparator+e.getDefaultLibFileName(Q);throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}e.getDefaultLibFilePath=O,e.setObjectAllocator(M())})(gr||(gr={}));var gr;(function(e){(function(n){function f(d,a){if(d.isDeclarationFile)return;var p=e.getTokenAtPosition(d,a),N=d.getLineAndCharacterOfPosition(a).line;if(d.getLineAndCharacterOfPosition(p.getStart(d)).line>N){var H=e.findPrecedingToken(p.pos,d);if(!H||d.getLineAndCharacterOfPosition(H.getEnd()).line!==N)return;p=H}if(p.flags&8388608)return;return P(p);function h(S,B){var J=S.decorators?e.skipTrivia(d.text,S.decorators.end):S.getStart(d);return e.createTextSpanFromBounds(J,(B||S).getEnd())}function v(S,B){return h(S,e.findNextToken(B,B.parent,d))}function A(S,B){return S&&N===d.getLineAndCharacterOfPosition(S.getStart(d)).line?P(S):P(B)}function q(S){return e.createTextSpanFromBounds(e.skipTrivia(d.text,S.pos),S.end)}function ie(S){return P(e.findPrecedingToken(S.pos,d))}function b(S){return P(e.findNextToken(S,S.parent,d))}function P(S){if(S){var B=S.parent;switch(S.kind){case 236:return ne(S.declarationList.declarations[0]);case 253:case 166:case 165:return ne(S);case 163:return Y(S);case 255:case 168:case 167:case 171:case 172:case 170:case 212:case 213:return $(S);case 234:if(e.isFunctionBlock(S))return T(S);case 261:return I(S);case 291:return I(S.block);case 237:return h(S.expression);case 246:return h(S.getChildAt(0),S.expression);case 240:return v(S,S.expression);case 239:return P(S.statement);case 252:return h(S.getChildAt(0));case 238:return v(S,S.expression);case 249:return P(S.statement);case 245:case 244:return h(S.getChildAt(0),S.label);case 241:return D(S);case 242:return v(S,S.expression);case 243:return y(S);case 248:return v(S,S.expression);case 288:case 289:return P(S.statements[0]);case 251:return I(S.tryBlock);case 250:return h(S,S.expression);case 270:return h(S,S.expression);case 264:return h(S,S.moduleReference);case 265:return h(S,S.moduleSpecifier);case 271:return h(S,S.moduleSpecifier);case 260:if(e.getModuleInstanceState(S)!==1)return;case 256:case 259:case 297:case 202:return h(S);case 247:return P(S.statement);case 164:return q(B.decorators);case 200:case 201:return C(S);case 257:case 258:return;case 26:case 1:return A(e.findPrecedingToken(S.pos,d));case 27:return ie(S);case 18:return u(S);case 19:return g(S);case 23:return F(S);case 20:return te(S);case 21:return ue(S);case 58:return X(S);case 31:case 29:return j(S);case 115:return Se(S);case 91:case 83:case 96:return b(S);case 159:return Ce(S);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(S))return m(S);if((S.kind===79||S.kind===224||S.kind===294||S.kind===295)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(B))return h(S);if(S.kind===220){var J=S,k=J.left,M=J.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(k))return m(k);if(M.kind===63&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(S.parent))return h(S);if(M.kind===27)return P(k)}if(e.isExpressionNode(S))switch(B.kind){case 239:return ie(S);case 164:return P(S.parent);case 241:case 243:return h(S);case 220:if(S.parent.operatorToken.kind===27)return h(S);break;case 213:if(S.parent.body===S)return h(S);break}switch(S.parent.kind){case 294:if(S.parent.name===S&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(S.parent.parent))return P(S.parent.initializer);break;case 210:if(S.parent.type===S)return b(S.parent.type);break;case 253:case 163:{var x=S.parent,w=x.initializer,K=x.type;if(w===S||K===S||e.isAssignmentOperator(S.kind))return ie(S);break}case 220:{var k=S.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(k)&&S!==k)return ie(S);break}default:if(e.isFunctionLike(S.parent)&&S.parent.type===S)return ie(S)}return P(S.parent)}}function Z(O){return e.isVariableDeclarationList(O.parent)&&O.parent.declarations[0]===O?h(e.findPrecedingToken(O.pos,d,O.parent),O):h(O)}function ne(O){if(O.parent.parent.kind===242)return P(O.parent.parent);var Q=O.parent;if(e.isBindingPattern(O.name))return C(O.name);if(O.initializer||e.hasSyntacticModifier(O,1)||Q.parent.kind===243)return Z(O);if(e.isVariableDeclarationList(O.parent)&&O.parent.declarations[0]!==O)return P(e.findPrecedingToken(O.pos,d,O.parent))}function R(O){return!!O.initializer||O.dotDotDotToken!==void 0||e.hasSyntacticModifier(O,12)}function Y(O){if(e.isBindingPattern(O.name))return C(O.name);if(R(O))return h(O);var Q=O.parent,V=Q.parameters.indexOf(O);return e.Debug.assert(V!==-1),V!==0?Y(Q.parameters[V-1]):P(Q.body)}function U(O){return e.hasSyntacticModifier(O,1)||O.parent.kind===256&&O.kind!==170}function $(O){if(!!O.body)return U(O)?h(O):P(O.body)}function T(O){var Q=O.statements.length?O.statements[0]:O.getLastToken();return U(O.parent)?A(O.parent,Q):P(Q)}function I(O){switch(O.parent.kind){case 260:if(e.getModuleInstanceState(O.parent)!==1)return;case 240:case 238:case 242:return A(O.parent,O.statements[0]);case 241:case 243:return A(e.findPrecedingToken(O.pos,d,O.parent),O.statements[0])}return P(O.statements[0])}function y(O){if(O.initializer.kind===254){var Q=O.initializer;if(Q.declarations.length>0)return P(Q.declarations[0])}else return P(O.initializer)}function D(O){if(O.initializer)return y(O);if(O.condition)return h(O.condition);if(O.incrementor)return h(O.incrementor)}function C(O){var Q=e.forEach(O.elements,function(V){return V.kind!==226?V:void 0});return Q?P(Q):O.parent.kind===202?h(O.parent):Z(O.parent)}function m(O){e.Debug.assert(O.kind!==201&&O.kind!==200);var Q=O.kind===203?O.elements:O.properties,V=e.forEach(Q,function(z){return z.kind!==226?z:void 0});return V?P(V):h(O.parent.kind===220?O.parent:O)}function u(O){switch(O.parent.kind){case 259:var Q=O.parent;return A(e.findPrecedingToken(O.pos,d,O.parent),Q.members.length?Q.members[0]:Q.getLastToken(d));case 256:var V=O.parent;return A(e.findPrecedingToken(O.pos,d,O.parent),V.members.length?V.members[0]:V.getLastToken(d));case 262:return A(O.parent.parent,O.parent.clauses[0])}return P(O.parent)}function g(O){switch(O.parent.kind){case 261:if(e.getModuleInstanceState(O.parent.parent)!==1)return;case 259:case 256:return h(O);case 234:if(e.isFunctionBlock(O.parent))return h(O);case 291:return P(e.lastOrUndefined(O.parent.statements));case 262:var Q=O.parent,V=e.lastOrUndefined(Q.clauses);return V?P(e.lastOrUndefined(V.statements)):void 0;case 200:var z=O.parent;return P(e.lastOrUndefined(z.elements)||z);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(O.parent)){var Te=O.parent;return h(e.lastOrUndefined(Te.properties)||Te)}return P(O.parent)}}function F(O){switch(O.parent.kind){case 201:var Q=O.parent;return h(e.lastOrUndefined(Q.elements)||Q);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(O.parent)){var V=O.parent;return h(e.lastOrUndefined(V.elements)||V)}return P(O.parent)}}function te(O){return O.parent.kind===239||O.parent.kind===207||O.parent.kind===208?ie(O):O.parent.kind===211?b(O):P(O.parent)}function ue(O){switch(O.parent.kind){case 212:case 255:case 213:case 168:case 167:case 171:case 172:case 170:case 240:case 239:case 241:case 243:case 207:case 208:case 211:return ie(O);default:return P(O.parent)}}function X(O){return e.isFunctionLike(O.parent)||O.parent.kind===294||O.parent.kind===163?ie(O):P(O.parent)}function j(O){return O.parent.kind===210?b(O):P(O.parent)}function Se(O){return O.parent.kind===239?v(O,O.parent.expression):P(O.parent)}function Ce(O){return O.parent.kind===243?b(O):P(O.parent)}}}n.spanInSourceFileAtLocation=f})(e.BreakpointResolver||(e.BreakpointResolver={}))})(gr||(gr={}));var gr;(function(e){function n(f,d,a){var p=[];a=e.fixupCompilerOptions(a,p);var N=e.isArray(f)?f:[f],H=e.transformNodes(void 0,void 0,e.factory,a,N,d,!0);return H.diagnostics=e.concatenate(H.diagnostics,p),H}e.transform=n})(gr||(gr={}));var xE=function(){return this}(),gr;(function(e){function n(B,J){B&&B.log("*INTERNAL ERROR* - Exception in typescript services: "+J.message)}var f=function(){function B(J){this.scriptSnapshotShim=J}return B.prototype.getText=function(J,k){return this.scriptSnapshotShim.getText(J,k)},B.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},B.prototype.getChangeRange=function(J){var k=J,M=this.scriptSnapshotShim.getChangeRange(k.scriptSnapshotShim);if(M===null)return null;var x=JSON.parse(M);return e.createTextChangeRange(e.createTextSpan(x.span.start,x.span.length),x.newLength)},B.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},B}(),d=function(){function B(J){var k=this;this.shimHost=J,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(M,x){var w=JSON.parse(k.shimHost.getModuleResolutionsForFile(x));return e.map(M,function(K){var Z=e.getProperty(w,K);return Z?{resolvedFileName:Z,extension:e.extensionFromPath(Z),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(M){return k.shimHost.directoryExists(M)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(M,x){var w=JSON.parse(k.shimHost.getTypeReferenceDirectiveResolutionsForFile(x));return e.map(M,function(K){return e.getProperty(w,K)})})}return B.prototype.log=function(J){this.loggingEnabled&&this.shimHost.log(J)},B.prototype.trace=function(J){this.tracingEnabled&&this.shimHost.trace(J)},B.prototype.error=function(J){this.shimHost.error(J)},B.prototype.getProjectVersion=function(){if(!!this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},B.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},B.prototype.useCaseSensitiveFileNames=function(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1},B.prototype.getCompilationSettings=function(){var J=this.shimHost.getCompilationSettings();if(J===null||J==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var k=JSON.parse(J);return k.allowNonTsExtensions=!0,k},B.prototype.getScriptFileNames=function(){var J=this.shimHost.getScriptFileNames();return JSON.parse(J)},B.prototype.getScriptSnapshot=function(J){var k=this.shimHost.getScriptSnapshot(J);return k&&new f(k)},B.prototype.getScriptKind=function(J){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(J):0},B.prototype.getScriptVersion=function(J){return this.shimHost.getScriptVersion(J)},B.prototype.getLocalizedDiagnosticMessages=function(){var J=this.shimHost.getLocalizedDiagnosticMessages();if(J===null||J==="")return null;try{return JSON.parse(J)}catch(k){return this.log(k.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},B.prototype.getCancellationToken=function(){var J=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(J)},B.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},B.prototype.getDirectories=function(J){return JSON.parse(this.shimHost.getDirectories(J))},B.prototype.getDefaultLibFileName=function(J){return this.shimHost.getDefaultLibFileName(JSON.stringify(J))},B.prototype.readDirectory=function(J,k,M,x,w){var K=e.getFileMatcherPatterns(J,M,x,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(J,JSON.stringify(k),JSON.stringify(K.basePaths),K.excludePattern,K.includeFilePattern,K.includeDirectoryPattern,w))},B.prototype.readFile=function(J,k){return this.shimHost.readFile(J,k)},B.prototype.fileExists=function(J){return this.shimHost.fileExists(J)},B}();e.LanguageServiceShimHostAdapter=d;var a=function(){function B(J){var k=this;this.shimHost=J,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=function(M){return k.shimHost.directoryExists(M)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(M){return k.shimHost.realpath(M)}:this.realpath=void 0}return B.prototype.readDirectory=function(J,k,M,x,w){var K=e.getFileMatcherPatterns(J,M,x,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(J,JSON.stringify(k),JSON.stringify(K.basePaths),K.excludePattern,K.includeFilePattern,K.includeDirectoryPattern,w))},B.prototype.fileExists=function(J){return this.shimHost.fileExists(J)},B.prototype.readFile=function(J){return this.shimHost.readFile(J)},B.prototype.getDirectories=function(J){return JSON.parse(this.shimHost.getDirectories(J))},B}();e.CoreServicesShimHostAdapter=a;function p(B,J,k,M){var x;M&&(B.log(J),x=e.timestamp());var w=k();if(M){var K=e.timestamp();if(B.log("".concat(J," completed in ").concat(K-x," msec")),e.isString(w)){var Z=w;Z.length>128&&(Z=Z.substring(0,128)+"..."),B.log(" result.length=".concat(Z.length,", result='").concat(JSON.stringify(Z),"'"))}}return w}function N(B,J,k,M){return H(B,J,!0,k,M)}function H(B,J,k,M,x){try{var w=p(B,J,M,x);return k?JSON.stringify({result:w}):w}catch(K){return K instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(n(B,K),K.description=J,JSON.stringify({error:K}))}}var h=function(){function B(J){this.factory=J,J.registerShim(this)}return B.prototype.dispose=function(J){this.factory.unregisterShim(this)},B}();function v(B,J){return B.map(function(k){return A(k,J)})}e.realizeDiagnostics=v;function A(B,J){return{message:e.flattenDiagnosticMessageText(B.messageText,J),start:B.start,length:B.length,category:e.diagnosticCategoryName(B),code:B.code,reportsUnnecessary:B.reportsUnnecessary,reportsDeprecated:B.reportsDeprecated}}var q=function(B){Mm(J,B);function J(k,M,x){var w=B.call(this,k)||this;return w.host=M,w.languageService=x,w.logPerformance=!1,w.logger=w.host,w}return J.prototype.forwardJSONCall=function(k,M){return N(this.logger,k,M,this.logPerformance)},J.prototype.dispose=function(k){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,xE&&xE.CollectGarbage&&(xE.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,B.prototype.dispose.call(this,k)},J.prototype.refresh=function(k){this.forwardJSONCall("refresh(".concat(k,")"),function(){return null})},J.prototype.cleanupSemanticCache=function(){var k=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return k.languageService.cleanupSemanticCache(),null})},J.prototype.realizeDiagnostics=function(k){var M=e.getNewLineOrDefaultFromHost(this.host);return v(k,M)},J.prototype.getSyntacticClassifications=function(k,M,x){var w=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(k,"', ").concat(M,", ").concat(x,")"),function(){return w.languageService.getSyntacticClassifications(k,e.createTextSpan(M,x))})},J.prototype.getSemanticClassifications=function(k,M,x){var w=this;return this.forwardJSONCall("getSemanticClassifications('".concat(k,"', ").concat(M,", ").concat(x,")"),function(){return w.languageService.getSemanticClassifications(k,e.createTextSpan(M,x))})},J.prototype.getEncodedSyntacticClassifications=function(k,M,x){var w=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(k,"', ").concat(M,", ").concat(x,")"),function(){return ie(w.languageService.getEncodedSyntacticClassifications(k,e.createTextSpan(M,x)))})},J.prototype.getEncodedSemanticClassifications=function(k,M,x){var w=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(k,"', ").concat(M,", ").concat(x,")"),function(){return ie(w.languageService.getEncodedSemanticClassifications(k,e.createTextSpan(M,x)))})},J.prototype.getSyntacticDiagnostics=function(k){var M=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(k,"')"),function(){var x=M.languageService.getSyntacticDiagnostics(k);return M.realizeDiagnostics(x)})},J.prototype.getSemanticDiagnostics=function(k){var M=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(k,"')"),function(){var x=M.languageService.getSemanticDiagnostics(k);return M.realizeDiagnostics(x)})},J.prototype.getSuggestionDiagnostics=function(k){var M=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(k,"')"),function(){return M.realizeDiagnostics(M.languageService.getSuggestionDiagnostics(k))})},J.prototype.getCompilerOptionsDiagnostics=function(){var k=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var M=k.languageService.getCompilerOptionsDiagnostics();return k.realizeDiagnostics(M)})},J.prototype.getQuickInfoAtPosition=function(k,M){var x=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(k,"', ").concat(M,")"),function(){return x.languageService.getQuickInfoAtPosition(k,M)})},J.prototype.getNameOrDottedNameSpan=function(k,M,x){var w=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(k,"', ").concat(M,", ").concat(x,")"),function(){return w.languageService.getNameOrDottedNameSpan(k,M,x)})},J.prototype.getBreakpointStatementAtPosition=function(k,M){var x=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(k,"', ").concat(M,")"),function(){return x.languageService.getBreakpointStatementAtPosition(k,M)})},J.prototype.getSignatureHelpItems=function(k,M,x){var w=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(k,"', ").concat(M,")"),function(){return w.languageService.getSignatureHelpItems(k,M,x)})},J.prototype.getDefinitionAtPosition=function(k,M){var x=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(k,"', ").concat(M,")"),function(){return x.languageService.getDefinitionAtPosition(k,M)})},J.prototype.getDefinitionAndBoundSpan=function(k,M){var x=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(k,"', ").concat(M,")"),function(){return x.languageService.getDefinitionAndBoundSpan(k,M)})},J.prototype.getTypeDefinitionAtPosition=function(k,M){var x=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(k,"', ").concat(M,")"),function(){return x.languageService.getTypeDefinitionAtPosition(k,M)})},J.prototype.getImplementationAtPosition=function(k,M){var x=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(k,"', ").concat(M,")"),function(){return x.languageService.getImplementationAtPosition(k,M)})},J.prototype.getRenameInfo=function(k,M,x){var w=this;return this.forwardJSONCall("getRenameInfo('".concat(k,"', ").concat(M,")"),function(){return w.languageService.getRenameInfo(k,M,x)})},J.prototype.getSmartSelectionRange=function(k,M){var x=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(k,"', ").concat(M,")"),function(){return x.languageService.getSmartSelectionRange(k,M)})},J.prototype.findRenameLocations=function(k,M,x,w,K){var Z=this;return this.forwardJSONCall("findRenameLocations('".concat(k,"', ").concat(M,", ").concat(x,", ").concat(w,", ").concat(K,")"),function(){return Z.languageService.findRenameLocations(k,M,x,w,K)})},J.prototype.getBraceMatchingAtPosition=function(k,M){var x=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(k,"', ").concat(M,")"),function(){return x.languageService.getBraceMatchingAtPosition(k,M)})},J.prototype.isValidBraceCompletionAtPosition=function(k,M,x){var w=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(k,"', ").concat(M,", ").concat(x,")"),function(){return w.languageService.isValidBraceCompletionAtPosition(k,M,x)})},J.prototype.getSpanOfEnclosingComment=function(k,M,x){var w=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(k,"', ").concat(M,")"),function(){return w.languageService.getSpanOfEnclosingComment(k,M,x)})},J.prototype.getIndentationAtPosition=function(k,M,x){var w=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(k,"', ").concat(M,")"),function(){var K=JSON.parse(x);return w.languageService.getIndentationAtPosition(k,M,K)})},J.prototype.getReferencesAtPosition=function(k,M){var x=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(k,"', ").concat(M,")"),function(){return x.languageService.getReferencesAtPosition(k,M)})},J.prototype.findReferences=function(k,M){var x=this;return this.forwardJSONCall("findReferences('".concat(k,"', ").concat(M,")"),function(){return x.languageService.findReferences(k,M)})},J.prototype.getFileReferences=function(k){var M=this;return this.forwardJSONCall("getFileReferences('".concat(k,")"),function(){return M.languageService.getFileReferences(k)})},J.prototype.getOccurrencesAtPosition=function(k,M){var x=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(k,"', ").concat(M,")"),function(){return x.languageService.getOccurrencesAtPosition(k,M)})},J.prototype.getDocumentHighlights=function(k,M,x){var w=this;return this.forwardJSONCall("getDocumentHighlights('".concat(k,"', ").concat(M,")"),function(){var K=w.languageService.getDocumentHighlights(k,M,JSON.parse(x)),Z=e.toFileNameLowerCase(e.normalizeSlashes(k));return e.filter(K,function(ne){return e.toFileNameLowerCase(e.normalizeSlashes(ne.fileName))===Z})})},J.prototype.getCompletionsAtPosition=function(k,M,x){var w=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(k,"', ").concat(M,", ").concat(x,")"),function(){return w.languageService.getCompletionsAtPosition(k,M,x)})},J.prototype.getCompletionEntryDetails=function(k,M,x,w,K,Z,ne){var R=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(k,"', ").concat(M,", '").concat(x,"')"),function(){var Y=w===void 0?void 0:JSON.parse(w);return R.languageService.getCompletionEntryDetails(k,M,x,Y,K,Z,ne)})},J.prototype.getFormattingEditsForRange=function(k,M,x,w){var K=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(k,"', ").concat(M,", ").concat(x,")"),function(){var Z=JSON.parse(w);return K.languageService.getFormattingEditsForRange(k,M,x,Z)})},J.prototype.getFormattingEditsForDocument=function(k,M){var x=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(k,"')"),function(){var w=JSON.parse(M);return x.languageService.getFormattingEditsForDocument(k,w)})},J.prototype.getFormattingEditsAfterKeystroke=function(k,M,x,w){var K=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(k,"', ").concat(M,", '").concat(x,"')"),function(){var Z=JSON.parse(w);return K.languageService.getFormattingEditsAfterKeystroke(k,M,x,Z)})},J.prototype.getDocCommentTemplateAtPosition=function(k,M,x){var w=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(k,"', ").concat(M,")"),function(){return w.languageService.getDocCommentTemplateAtPosition(k,M,x)})},J.prototype.getNavigateToItems=function(k,M,x){var w=this;return this.forwardJSONCall("getNavigateToItems('".concat(k,"', ").concat(M,", ").concat(x,")"),function(){return w.languageService.getNavigateToItems(k,M,x)})},J.prototype.getNavigationBarItems=function(k){var M=this;return this.forwardJSONCall("getNavigationBarItems('".concat(k,"')"),function(){return M.languageService.getNavigationBarItems(k)})},J.prototype.getNavigationTree=function(k){var M=this;return this.forwardJSONCall("getNavigationTree('".concat(k,"')"),function(){return M.languageService.getNavigationTree(k)})},J.prototype.getOutliningSpans=function(k){var M=this;return this.forwardJSONCall("getOutliningSpans('".concat(k,"')"),function(){return M.languageService.getOutliningSpans(k)})},J.prototype.getTodoComments=function(k,M){var x=this;return this.forwardJSONCall("getTodoComments('".concat(k,"')"),function(){return x.languageService.getTodoComments(k,JSON.parse(M))})},J.prototype.prepareCallHierarchy=function(k,M){var x=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(k,"', ").concat(M,")"),function(){return x.languageService.prepareCallHierarchy(k,M)})},J.prototype.provideCallHierarchyIncomingCalls=function(k,M){var x=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(k,"', ").concat(M,")"),function(){return x.languageService.provideCallHierarchyIncomingCalls(k,M)})},J.prototype.provideCallHierarchyOutgoingCalls=function(k,M){var x=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(k,"', ").concat(M,")"),function(){return x.languageService.provideCallHierarchyOutgoingCalls(k,M)})},J.prototype.provideInlayHints=function(k,M,x){var w=this;return this.forwardJSONCall("provideInlayHints('".concat(k,"', '").concat(JSON.stringify(M),"', ").concat(JSON.stringify(x),")"),function(){return w.languageService.provideInlayHints(k,M,x)})},J.prototype.getEmitOutput=function(k){var M=this;return this.forwardJSONCall("getEmitOutput('".concat(k,"')"),function(){var x=M.languageService.getEmitOutput(k),w=x.diagnostics,K=uD(x,["diagnostics"]);return Rn(Rn({},K),{diagnostics:M.realizeDiagnostics(w)})})},J.prototype.getEmitOutputObject=function(k){var M=this;return H(this.logger,"getEmitOutput('".concat(k,"')"),!1,function(){return M.languageService.getEmitOutput(k)},this.logPerformance)},J.prototype.toggleLineComment=function(k,M){var x=this;return this.forwardJSONCall("toggleLineComment('".concat(k,"', '").concat(JSON.stringify(M),"')"),function(){return x.languageService.toggleLineComment(k,M)})},J.prototype.toggleMultilineComment=function(k,M){var x=this;return this.forwardJSONCall("toggleMultilineComment('".concat(k,"', '").concat(JSON.stringify(M),"')"),function(){return x.languageService.toggleMultilineComment(k,M)})},J.prototype.commentSelection=function(k,M){var x=this;return this.forwardJSONCall("commentSelection('".concat(k,"', '").concat(JSON.stringify(M),"')"),function(){return x.languageService.commentSelection(k,M)})},J.prototype.uncommentSelection=function(k,M){var x=this;return this.forwardJSONCall("uncommentSelection('".concat(k,"', '").concat(JSON.stringify(M),"')"),function(){return x.languageService.uncommentSelection(k,M)})},J}(h);function ie(B){return{spans:B.spans.join(","),endOfLineState:B.endOfLineState}}var b=function(B){Mm(J,B);function J(k,M){var x=B.call(this,k)||this;return x.logger=M,x.logPerformance=!1,x.classifier=e.createClassifier(),x}return J.prototype.getEncodedLexicalClassifications=function(k,M,x){var w=this;return x===void 0&&(x=!1),N(this.logger,"getEncodedLexicalClassifications",function(){return ie(w.classifier.getEncodedLexicalClassifications(k,M,x))},this.logPerformance)},J.prototype.getClassificationsForLine=function(k,M,x){x===void 0&&(x=!1);for(var w=this.classifier.getClassificationsForLine(k,M,x),K="",Z=0,ne=w.entries;Z<ne.length;Z++){var R=ne[Z];K+=R.length+`
|
|
`,K+=R.classification+`
|
|
`}return K+=w.finalLexState,K},J}(h),P=function(B){Mm(J,B);function J(k,M,x){var w=B.call(this,k)||this;return w.logger=M,w.host=x,w.logPerformance=!1,w}return J.prototype.forwardJSONCall=function(k,M){return N(this.logger,k,M,this.logPerformance)},J.prototype.resolveModuleName=function(k,M,x){var w=this;return this.forwardJSONCall("resolveModuleName('".concat(k,"')"),function(){var K=JSON.parse(x),Z=e.resolveModuleName(M,e.normalizeSlashes(k),K,w.host),ne=Z.resolvedModule?Z.resolvedModule.resolvedFileName:void 0;return Z.resolvedModule&&Z.resolvedModule.extension!==".ts"&&Z.resolvedModule.extension!==".tsx"&&Z.resolvedModule.extension!==".d.ts"&&(ne=void 0),{resolvedFileName:ne,failedLookupLocations:Z.failedLookupLocations}})},J.prototype.resolveTypeReferenceDirective=function(k,M,x){var w=this;return this.forwardJSONCall("resolveTypeReferenceDirective(".concat(k,")"),function(){var K=JSON.parse(x),Z=e.resolveTypeReferenceDirective(M,e.normalizeSlashes(k),K,w.host);return{resolvedFileName:Z.resolvedTypeReferenceDirective?Z.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:Z.resolvedTypeReferenceDirective?Z.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:Z.failedLookupLocations}})},J.prototype.getPreProcessedFileInfo=function(k,M){var x=this;return this.forwardJSONCall("getPreProcessedFileInfo('".concat(k,"')"),function(){var w=e.preProcessFile(e.getSnapshotText(M),!0,!0);return{referencedFiles:x.convertFileReferences(w.referencedFiles),importedFiles:x.convertFileReferences(w.importedFiles),ambientExternalModules:w.ambientExternalModules,isLibFile:w.isLibFile,typeReferenceDirectives:x.convertFileReferences(w.typeReferenceDirectives),libReferenceDirectives:x.convertFileReferences(w.libReferenceDirectives)}})},J.prototype.getAutomaticTypeDirectiveNames=function(k){var M=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('".concat(k,"')"),function(){var x=JSON.parse(k);return e.getAutomaticTypeDirectiveNames(x,M.host)})},J.prototype.convertFileReferences=function(k){if(!!k){for(var M=[],x=0,w=k;x<w.length;x++){var K=w[x];M.push({path:e.normalizeSlashes(K.fileName),position:K.pos,length:K.end-K.pos})}return M}},J.prototype.getTSConfigFileInfo=function(k,M){var x=this;return this.forwardJSONCall("getTSConfigFileInfo('".concat(k,"')"),function(){var w=e.parseJsonText(k,e.getSnapshotText(M)),K=e.normalizeSlashes(k),Z=e.parseJsonSourceFileConfigFileContent(w,x.host,e.getDirectoryPath(K),{},K);return{options:Z.options,typeAcquisition:Z.typeAcquisition,files:Z.fileNames,raw:Z.raw,errors:v(Gt(Gt([],w.parseDiagnostics,!0),Z.errors,!0),`\r
|
|
`)}})},J.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},J.prototype.discoverTypings=function(k){var M=this,x=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var w=JSON.parse(k);return M.safeList===void 0&&(M.safeList=e.JsTyping.loadSafeList(M.host,e.toPath(w.safeListPath,w.safeListPath,x))),e.JsTyping.discoverTypings(M.host,function(K){return M.logger.log(K)},w.fileNames,e.toPath(w.projectRootPath,w.projectRootPath,x),M.safeList,w.packageNameToTypingLocation,w.typeAcquisition,w.unresolvedImports,w.typesRegistry)})},J}(h),S=function(){function B(){this._shims=[]}return B.prototype.getServicesVersion=function(){return e.servicesVersion},B.prototype.createLanguageServiceShim=function(J){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(J.useCaseSensitiveFileNames&&J.useCaseSensitiveFileNames(),J.getCurrentDirectory()));var k=new d(J),M=e.createLanguageService(k,this.documentRegistry,!1);return new q(this,J,M)}catch(x){throw n(J,x),x}},B.prototype.createClassifierShim=function(J){try{return new b(this,J)}catch(k){throw n(J,k),k}},B.prototype.createCoreServicesShim=function(J){try{var k=new a(J);return new P(this,J,k)}catch(M){throw n(J,M),M}},B.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},B.prototype.registerShim=function(J){this._shims.push(J)},B.prototype.unregisterShim=function(J){for(var k=0;k<this._shims.length;k++)if(this._shims[k]===J){delete this._shims[k];return}throw new Error("Invalid operation")},B}();e.TypeScriptServicesFactory=S})(gr||(gr={})),function(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,typeof globalThis>"u"&&(window.globalThis=window),delete Object.prototype.__magic__}catch{window.globalThis=window}}(),(typeof process>"u"||process.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=gr.TypeScriptServicesFactory,globalThis.toolsVersion=gr.versionMajorMinor),typeof module<"u"&&module.exports;var gr;(function(e){var n={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,n),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,n),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,n),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,n),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,n),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,n),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,n),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,n),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,n),e.createSuper=e.Debug.deprecate(e.factory.createSuper,n),e.createThis=e.Debug.deprecate(e.factory.createThis,n),e.createNull=e.Debug.deprecate(e.factory.createNull,n),e.createTrue=e.Debug.deprecate(e.factory.createTrue,n),e.createFalse=e.Debug.deprecate(e.factory.createFalse,n),e.createModifier=e.Debug.deprecate(e.factory.createModifier,n),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,n),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,n),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,n),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,n),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,n),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,n),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,n),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,n),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,n),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,n),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,n),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,n),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,n),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,n),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,n),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,n),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,n),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,n),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,n),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,n),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,n),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,n),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,n),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,n),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,n),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,n),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,n),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,n),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,n),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,n),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,n),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,n),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,n),e.createConstructorTypeNode=e.Debug.deprecate(function(f,d,a){return e.factory.createConstructorTypeNode(void 0,f,d,a)},n),e.updateConstructorTypeNode=e.Debug.deprecate(function(f,d,a,p){return e.factory.updateConstructorTypeNode(f,f.modifiers,d,a,p)},n),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,n),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,n),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,n),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,n),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,n),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,n),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,n),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,n),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,n),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,n),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,n),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,n),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,n),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,n),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,n),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,n),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,n),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,n),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,n),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,n),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,n),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,n),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,n),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,n),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,n),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,n),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,n),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,n),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,n),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,n),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,n),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,n),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,n),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,n),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,n),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,n),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,n),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,n),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,n),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,n),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,n),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,n),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,n),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,n),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,n),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,n),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,n),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,n),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,n),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,n),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,n),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,n),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,n),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,n),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,n),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,n),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,n),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,n),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,n),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,n),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,n),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,n),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,n),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,n),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,n),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,n),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,n),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,n),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,n),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,n),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,n),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,n),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,n),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,n),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,n),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,n),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,n),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,n),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,n),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,n),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,n),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,n),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,n),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,n),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,n),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,n),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,n),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,n),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,n),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,n),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,n),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,n),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,n),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,n),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,n),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,n),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,n),e.createBlock=e.Debug.deprecate(e.factory.createBlock,n),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,n),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,n),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,n),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,n),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,n),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,n),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,n),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,n),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,n),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,n),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,n),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,n),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,n),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,n),e.createFor=e.Debug.deprecate(e.factory.createForStatement,n),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,n),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,n),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,n),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,n),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,n),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,n),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,n),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,n),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,n),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,n),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,n),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,n),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,n),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,n),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,n),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,n),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,n),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,n),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,n),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,n),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,n),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,n),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,n),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,n),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,n),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,n),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,n),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,n),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,n),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,n),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,n),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,n),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,n),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,n),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,n),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,n),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,n),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,n),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,n),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,n),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,n),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,n),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,n),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,n),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,n),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,n),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,n),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,n),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,n),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,n),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,n),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,n),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,n),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,n),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,n),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,n),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,n),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,n),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,n),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,n),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,n),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,n),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,n),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,n),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,n),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,n),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,n),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,n),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,n),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,n),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,n),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,n),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,n),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,n),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,n),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,n),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,n),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,n),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,n),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,n),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,n),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,n),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,n),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,n),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,n),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,n),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,n),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,n),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,n),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,n),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,n),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,n),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,n),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,n),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,n),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,n),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,n),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,n),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,n),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,n),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,n),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,n),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,n),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,n),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,n),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,n),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,n),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,n),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,n),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,n),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,n),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,n),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,n),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,n),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,n),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,n),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,n),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,n),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,n),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,n),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,n),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,n),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,n),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,n),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,n),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,n),e.createBundle=e.Debug.deprecate(e.factory.createBundle,n),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,n),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,n),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,n),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,n),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,n),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,n),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,n),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,n),e.createToken=e.Debug.deprecate(function(d){return e.factory.createToken(d)},n),e.createIdentifier=e.Debug.deprecate(function(d){return e.factory.createIdentifier(d,void 0,void 0)},n),e.createTempVariable=e.Debug.deprecate(function(d){return e.factory.createTempVariable(d,void 0)},n),e.getGeneratedNameForNode=e.Debug.deprecate(function(d){return e.factory.getGeneratedNameForNode(d,void 0)},n),e.createOptimisticUniqueName=e.Debug.deprecate(function(d){return e.factory.createUniqueName(d,16)},n),e.createFileLevelUniqueName=e.Debug.deprecate(function(d){return e.factory.createUniqueName(d,48)},n),e.createIndexSignature=e.Debug.deprecate(function(d,a,p,N){return e.factory.createIndexSignature(d,a,p,N)},n),e.createTypePredicateNode=e.Debug.deprecate(function(d,a){return e.factory.createTypePredicateNode(void 0,d,a)},n),e.updateTypePredicateNode=e.Debug.deprecate(function(d,a,p){return e.factory.updateTypePredicateNode(d,void 0,a,p)},n),e.createLiteral=e.Debug.deprecate(function(d){return typeof d=="number"?e.factory.createNumericLiteral(d):typeof d=="object"&&"base10Value"in d?e.factory.createBigIntLiteral(d):typeof d=="boolean"?d?e.factory.createTrue():e.factory.createFalse():typeof d=="string"?e.factory.createStringLiteral(d,void 0):e.factory.createStringLiteralFromNode(d)},{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(d,a,p,N,H){return e.factory.createMethodSignature(void 0,N,H,d,a,p)},n),e.updateMethodSignature=e.Debug.deprecate(function(d,a,p,N,H,h){return e.factory.updateMethodSignature(d,d.modifiers,H,h,a,p,N)},n),e.createTypeOperatorNode=e.Debug.deprecate(function(d,a){var p;return a?p=d:(a=d,p=140),e.factory.createTypeOperatorNode(p,a)},n),e.createTaggedTemplate=e.Debug.deprecate(function(d,a,p){var N;return p?N=a:p=a,e.factory.createTaggedTemplateExpression(d,N,p)},n),e.updateTaggedTemplate=e.Debug.deprecate(function(d,a,p,N){var H;return N?H=p:N=p,e.factory.updateTaggedTemplateExpression(d,a,H,N)},n),e.updateBinary=e.Debug.deprecate(function(d,a,p,N){return N===void 0&&(N=d.operatorToken),typeof N=="number"&&(N=N===d.operatorToken.kind?d.operatorToken:e.factory.createToken(N)),e.factory.updateBinaryExpression(d,a,N,p)},n),e.createConditional=e.Debug.deprecate(function(d,a,p,N,H){return arguments.length===5?e.factory.createConditionalExpression(d,a,p,N,H):arguments.length===3?e.factory.createConditionalExpression(d,e.factory.createToken(57),a,e.factory.createToken(58),p):e.Debug.fail("Argument count mismatch")},n),e.createYield=e.Debug.deprecate(function(d,a){var p;return a?p=d:a=d,e.factory.createYieldExpression(p,a)},n),e.createClassExpression=e.Debug.deprecate(function(d,a,p,N,H){return e.factory.createClassExpression(void 0,d,a,p,N,H)},n),e.updateClassExpression=e.Debug.deprecate(function(d,a,p,N,H,h){return e.factory.updateClassExpression(d,void 0,a,p,N,H,h)},n),e.createPropertySignature=e.Debug.deprecate(function(d,a,p,N,H){var h=e.factory.createPropertySignature(d,a,p,N);return h.initializer=H,h},n),e.updatePropertySignature=e.Debug.deprecate(function(d,a,p,N,H,h){var v=e.factory.updatePropertySignature(d,a,p,N,H);return d.initializer!==h&&(v===d&&(v=e.factory.cloneNode(d)),v.initializer=h),v},n),e.createExpressionWithTypeArguments=e.Debug.deprecate(function(d,a){return e.factory.createExpressionWithTypeArguments(a,d)},n),e.updateExpressionWithTypeArguments=e.Debug.deprecate(function(d,a,p){return e.factory.updateExpressionWithTypeArguments(d,p,a)},n),e.createArrowFunction=e.Debug.deprecate(function(d,a,p,N,H,h){return arguments.length===6?e.factory.createArrowFunction(d,a,p,N,H,h):arguments.length===5?e.factory.createArrowFunction(d,a,p,N,void 0,H):e.Debug.fail("Argument count mismatch")},n),e.updateArrowFunction=e.Debug.deprecate(function(d,a,p,N,H,h,v){return arguments.length===7?e.factory.updateArrowFunction(d,a,p,N,H,h,v):arguments.length===6?e.factory.updateArrowFunction(d,a,p,N,H,d.equalsGreaterThanToken,h):e.Debug.fail("Argument count mismatch")},n),e.createVariableDeclaration=e.Debug.deprecate(function(d,a,p,N){return arguments.length===4?e.factory.createVariableDeclaration(d,a,p,N):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(d,void 0,a,p):e.Debug.fail("Argument count mismatch")},n),e.updateVariableDeclaration=e.Debug.deprecate(function(d,a,p,N,H){return arguments.length===5?e.factory.updateVariableDeclaration(d,a,p,N,H):arguments.length===4?e.factory.updateVariableDeclaration(d,a,d.exclamationToken,p,N):e.Debug.fail("Argument count mismatch")},n),e.createImportClause=e.Debug.deprecate(function(d,a,p){return p===void 0&&(p=!1),e.factory.createImportClause(p,d,a)},n),e.updateImportClause=e.Debug.deprecate(function(d,a,p,N){return e.factory.updateImportClause(d,N,a,p)},n),e.createExportDeclaration=e.Debug.deprecate(function(d,a,p,N,H){return H===void 0&&(H=!1),e.factory.createExportDeclaration(d,a,H,p,N)},n),e.updateExportDeclaration=e.Debug.deprecate(function(d,a,p,N,H,h){return e.factory.updateExportDeclaration(d,a,p,h,N,H,d.assertClause)},n),e.createJSDocParamTag=e.Debug.deprecate(function(d,a,p,N){return e.factory.createJSDocParameterTag(void 0,d,a,p,!1,N?e.factory.createNodeArray([e.factory.createJSDocText(N)]):void 0)},n),e.createComma=e.Debug.deprecate(function(d,a){return e.factory.createComma(d,a)},n),e.createLessThan=e.Debug.deprecate(function(d,a){return e.factory.createLessThan(d,a)},n),e.createAssignment=e.Debug.deprecate(function(d,a){return e.factory.createAssignment(d,a)},n),e.createStrictEquality=e.Debug.deprecate(function(d,a){return e.factory.createStrictEquality(d,a)},n),e.createStrictInequality=e.Debug.deprecate(function(d,a){return e.factory.createStrictInequality(d,a)},n),e.createAdd=e.Debug.deprecate(function(d,a){return e.factory.createAdd(d,a)},n),e.createSubtract=e.Debug.deprecate(function(d,a){return e.factory.createSubtract(d,a)},n),e.createLogicalAnd=e.Debug.deprecate(function(d,a){return e.factory.createLogicalAnd(d,a)},n),e.createLogicalOr=e.Debug.deprecate(function(d,a){return e.factory.createLogicalOr(d,a)},n),e.createPostfixIncrement=e.Debug.deprecate(function(d){return e.factory.createPostfixIncrement(d)},n),e.createLogicalNot=e.Debug.deprecate(function(d){return e.factory.createLogicalNot(d)},n),e.createNode=e.Debug.deprecate(function(d,a,p){return a===void 0&&(a=0),p===void 0&&(p=0),e.setTextRangePosEnd(d===303?e.parseBaseNodeFactory.createBaseSourceFileNode(d):d===79?e.parseBaseNodeFactory.createBaseIdentifierNode(d):d===80?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(d):e.isNodeKind(d)?e.parseBaseNodeFactory.createBaseNode(d):e.parseBaseNodeFactory.createBaseTokenNode(d),a,p)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function(d){var a=e.factory.cloneNode(d);return e.setTextRange(a,d),e.setParent(a,d.parent),a},{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(d){return d.kind===210},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function(d){return e.isMemberName(d)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(gr||(gr={}));var yk=gr.createClassifier,fD=gr.createLanguageService,bk=gr.displayPartsToString,Ek=gr.EndOfLineState,Tk=gr.flattenDiagnosticMessageText,Sk=gr.IndentStyle,Fm=gr.ScriptKind,Dk=gr.ScriptTarget,Lk=gr.TokenClass,dD=gr,Oi={};Oi["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" />
|
|
`,Oi["lib.dom.d.ts"]=`/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
/////////////////////////////
|
|
/// Window APIs
|
|
/////////////////////////////
|
|
|
|
interface AddEventListenerOptions extends EventListenerOptions {
|
|
once?: boolean;
|
|
passive?: boolean;
|
|
signal?: AbortSignal;
|
|
}
|
|
|
|
interface AesCbcParams extends Algorithm {
|
|
iv: BufferSource;
|
|
}
|
|
|
|
interface AesCtrParams extends Algorithm {
|
|
counter: BufferSource;
|
|
length: number;
|
|
}
|
|
|
|
interface AesDerivedKeyParams extends Algorithm {
|
|
length: number;
|
|
}
|
|
|
|
interface AesGcmParams extends Algorithm {
|
|
additionalData?: BufferSource;
|
|
iv: BufferSource;
|
|
tagLength?: number;
|
|
}
|
|
|
|
interface AesKeyAlgorithm extends KeyAlgorithm {
|
|
length: number;
|
|
}
|
|
|
|
interface AesKeyGenParams extends Algorithm {
|
|
length: number;
|
|
}
|
|
|
|
interface Algorithm {
|
|
name: string;
|
|
}
|
|
|
|
interface AnalyserOptions extends AudioNodeOptions {
|
|
fftSize?: number;
|
|
maxDecibels?: number;
|
|
minDecibels?: number;
|
|
smoothingTimeConstant?: number;
|
|
}
|
|
|
|
interface AnimationEventInit extends EventInit {
|
|
animationName?: string;
|
|
elapsedTime?: number;
|
|
pseudoElement?: string;
|
|
}
|
|
|
|
interface AnimationPlaybackEventInit extends EventInit {
|
|
currentTime?: CSSNumberish | null;
|
|
timelineTime?: CSSNumberish | null;
|
|
}
|
|
|
|
interface AssignedNodesOptions {
|
|
flatten?: boolean;
|
|
}
|
|
|
|
interface AudioBufferOptions {
|
|
length: number;
|
|
numberOfChannels?: number;
|
|
sampleRate: number;
|
|
}
|
|
|
|
interface AudioBufferSourceOptions {
|
|
buffer?: AudioBuffer | null;
|
|
detune?: number;
|
|
loop?: boolean;
|
|
loopEnd?: number;
|
|
loopStart?: number;
|
|
playbackRate?: number;
|
|
}
|
|
|
|
interface AudioConfiguration {
|
|
bitrate?: number;
|
|
channels?: string;
|
|
contentType: string;
|
|
samplerate?: number;
|
|
spatialRendering?: boolean;
|
|
}
|
|
|
|
interface AudioContextOptions {
|
|
latencyHint?: AudioContextLatencyCategory | number;
|
|
sampleRate?: number;
|
|
}
|
|
|
|
interface AudioNodeOptions {
|
|
channelCount?: number;
|
|
channelCountMode?: ChannelCountMode;
|
|
channelInterpretation?: ChannelInterpretation;
|
|
}
|
|
|
|
interface AudioProcessingEventInit extends EventInit {
|
|
inputBuffer: AudioBuffer;
|
|
outputBuffer: AudioBuffer;
|
|
playbackTime: number;
|
|
}
|
|
|
|
interface AudioTimestamp {
|
|
contextTime?: number;
|
|
performanceTime?: DOMHighResTimeStamp;
|
|
}
|
|
|
|
interface AudioWorkletNodeOptions extends AudioNodeOptions {
|
|
numberOfInputs?: number;
|
|
numberOfOutputs?: number;
|
|
outputChannelCount?: number[];
|
|
parameterData?: Record<string, number>;
|
|
processorOptions?: any;
|
|
}
|
|
|
|
interface AuthenticationExtensionsClientInputs {
|
|
appid?: string;
|
|
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;
|
|
preferCurrentTab?: boolean;
|
|
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;
|
|
autoGainControl?: ConstrainBoolean;
|
|
channelCount?: ConstrainULong;
|
|
deviceId?: ConstrainDOMString;
|
|
echoCancellation?: ConstrainBoolean;
|
|
facingMode?: ConstrainDOMString;
|
|
frameRate?: ConstrainDouble;
|
|
groupId?: ConstrainDOMString;
|
|
height?: ConstrainULong;
|
|
latency?: ConstrainDouble;
|
|
noiseSuppression?: ConstrainBoolean;
|
|
sampleRate?: ConstrainULong;
|
|
sampleSize?: ConstrainULong;
|
|
suppressLocalAudioPlayback?: ConstrainBoolean;
|
|
width?: ConstrainULong;
|
|
}
|
|
|
|
interface MediaTrackConstraints extends MediaTrackConstraintSet {
|
|
advanced?: MediaTrackConstraintSet[];
|
|
}
|
|
|
|
interface MediaTrackSettings {
|
|
aspectRatio?: number;
|
|
autoGainControl?: boolean;
|
|
deviceId?: string;
|
|
echoCancellation?: boolean;
|
|
facingMode?: string;
|
|
frameRate?: number;
|
|
groupId?: string;
|
|
height?: number;
|
|
noiseSuppression?: boolean;
|
|
restrictOwnAudio?: boolean;
|
|
sampleRate?: number;
|
|
sampleSize?: number;
|
|
width?: number;
|
|
}
|
|
|
|
interface MediaTrackSupportedConstraints {
|
|
aspectRatio?: boolean;
|
|
autoGainControl?: boolean;
|
|
deviceId?: boolean;
|
|
echoCancellation?: boolean;
|
|
facingMode?: boolean;
|
|
frameRate?: boolean;
|
|
groupId?: boolean;
|
|
height?: boolean;
|
|
noiseSuppression?: 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 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?: null;
|
|
}
|
|
|
|
interface ResizeObserverOptions {
|
|
box?: ResizeObserverBoxOptions;
|
|
}
|
|
|
|
interface ResponseInit {
|
|
headers?: HeadersInit;
|
|
status?: number;
|
|
statusText?: string;
|
|
}
|
|
|
|
interface RsaHashedImportParams extends Algorithm {
|
|
hash: HashAlgorithmIdentifier;
|
|
}
|
|
|
|
interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
|
|
hash: KeyAlgorithm;
|
|
}
|
|
|
|
interface RsaHashedKeyGenParams extends RsaKeyGenParams {
|
|
hash: HashAlgorithmIdentifier;
|
|
}
|
|
|
|
interface RsaKeyAlgorithm extends KeyAlgorithm {
|
|
modulusLength: number;
|
|
publicExponent: BigInteger;
|
|
}
|
|
|
|
interface RsaKeyGenParams extends Algorithm {
|
|
modulusLength: number;
|
|
publicExponent: BigInteger;
|
|
}
|
|
|
|
interface RsaOaepParams extends Algorithm {
|
|
label?: BufferSource;
|
|
}
|
|
|
|
interface RsaOtherPrimesInfo {
|
|
d?: string;
|
|
r?: string;
|
|
t?: string;
|
|
}
|
|
|
|
interface RsaPssParams extends Algorithm {
|
|
saltLength: number;
|
|
}
|
|
|
|
interface SVGBoundingBoxOptions {
|
|
clipped?: boolean;
|
|
fill?: boolean;
|
|
markers?: boolean;
|
|
stroke?: boolean;
|
|
}
|
|
|
|
interface ScrollIntoViewOptions extends ScrollOptions {
|
|
block?: ScrollLogicalPosition;
|
|
inline?: ScrollLogicalPosition;
|
|
}
|
|
|
|
interface ScrollOptions {
|
|
behavior?: ScrollBehavior;
|
|
}
|
|
|
|
interface ScrollToOptions extends ScrollOptions {
|
|
left?: number;
|
|
top?: number;
|
|
}
|
|
|
|
interface SecurityPolicyViolationEventInit extends EventInit {
|
|
blockedURI?: string;
|
|
columnNumber?: number;
|
|
disposition: SecurityPolicyViolationEventDisposition;
|
|
documentURI: string;
|
|
effectiveDirective: string;
|
|
lineNumber?: number;
|
|
originalPolicy: string;
|
|
referrer?: string;
|
|
sample?: string;
|
|
sourceFile?: string;
|
|
statusCode: number;
|
|
violatedDirective: string;
|
|
}
|
|
|
|
interface ShadowRootInit {
|
|
delegatesFocus?: boolean;
|
|
mode: ShadowRootMode;
|
|
slotAssignment?: SlotAssignmentMode;
|
|
}
|
|
|
|
interface ShareData {
|
|
files?: File[];
|
|
text?: string;
|
|
title?: string;
|
|
url?: string;
|
|
}
|
|
|
|
interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {
|
|
error: SpeechSynthesisErrorCode;
|
|
}
|
|
|
|
interface SpeechSynthesisEventInit extends EventInit {
|
|
charIndex?: number;
|
|
charLength?: number;
|
|
elapsedTime?: number;
|
|
name?: string;
|
|
utterance: SpeechSynthesisUtterance;
|
|
}
|
|
|
|
interface StaticRangeInit {
|
|
endContainer: Node;
|
|
endOffset: number;
|
|
startContainer: Node;
|
|
startOffset: number;
|
|
}
|
|
|
|
interface StereoPannerOptions extends AudioNodeOptions {
|
|
pan?: number;
|
|
}
|
|
|
|
interface StorageEstimate {
|
|
quota?: number;
|
|
usage?: number;
|
|
}
|
|
|
|
interface StorageEventInit extends EventInit {
|
|
key?: string | null;
|
|
newValue?: string | null;
|
|
oldValue?: string | null;
|
|
storageArea?: Storage | null;
|
|
url?: string;
|
|
}
|
|
|
|
interface StreamPipeOptions {
|
|
preventAbort?: boolean;
|
|
preventCancel?: boolean;
|
|
/**
|
|
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
|
|
*
|
|
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
|
|
*
|
|
* Errors and closures of the source and destination streams propagate as follows:
|
|
*
|
|
* An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
|
|
*
|
|
* An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
|
|
*
|
|
* When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
|
|
*
|
|
* If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
|
|
*
|
|
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
|
|
*/
|
|
preventClose?: boolean;
|
|
signal?: AbortSignal;
|
|
}
|
|
|
|
interface StructuredSerializeOptions {
|
|
transfer?: any[];
|
|
}
|
|
|
|
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 StructuredSerializeOptions {
|
|
targetOrigin?: string;
|
|
}
|
|
|
|
interface WorkerOptions {
|
|
credentials?: RequestCredentials;
|
|
name?: string;
|
|
type?: WorkerType;
|
|
}
|
|
|
|
interface WorkletOptions {
|
|
credentials?: RequestCredentials;
|
|
}
|
|
|
|
type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };
|
|
|
|
declare var NodeFilter: {
|
|
readonly FILTER_ACCEPT: 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;
|
|
// abort(): AbortSignal; - To be re-added in the future
|
|
};
|
|
|
|
interface AbstractRange {
|
|
/** Returns true if range is collapsed, and false otherwise. */
|
|
readonly collapsed: boolean;
|
|
/** Returns range's end node. */
|
|
readonly endContainer: Node;
|
|
/** Returns range's end offset. */
|
|
readonly endOffset: number;
|
|
/** Returns range's start node. */
|
|
readonly startContainer: Node;
|
|
/** Returns range's start offset. */
|
|
readonly startOffset: number;
|
|
}
|
|
|
|
declare var AbstractRange: {
|
|
prototype: AbstractRange;
|
|
new(): AbstractRange;
|
|
};
|
|
|
|
interface AbstractWorkerEventMap {
|
|
"error": ErrorEvent;
|
|
}
|
|
|
|
interface AbstractWorker {
|
|
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
|
|
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
/** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */
|
|
interface AnalyserNode extends AudioNode {
|
|
fftSize: number;
|
|
readonly frequencyBinCount: number;
|
|
maxDecibels: number;
|
|
minDecibels: number;
|
|
smoothingTimeConstant: number;
|
|
getByteFrequencyData(array: Uint8Array): void;
|
|
getByteTimeDomainData(array: Uint8Array): void;
|
|
getFloatFrequencyData(array: Float32Array): void;
|
|
getFloatTimeDomainData(array: Float32Array): void;
|
|
}
|
|
|
|
declare var AnalyserNode: {
|
|
prototype: AnalyserNode;
|
|
new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;
|
|
};
|
|
|
|
interface Animatable {
|
|
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
}
|
|
|
|
interface AnimationEventMap {
|
|
"cancel": AnimationPlaybackEvent;
|
|
"finish": AnimationPlaybackEvent;
|
|
"remove": Event;
|
|
}
|
|
|
|
interface Animation extends EventTarget {
|
|
currentTime: CSSNumberish | null;
|
|
effect: AnimationEffect | null;
|
|
readonly finished: Promise<Animation>;
|
|
id: string;
|
|
oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
|
|
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
|
|
onremove: ((this: Animation, ev: Event) => any) | null;
|
|
readonly pending: boolean;
|
|
readonly playState: AnimationPlayState;
|
|
playbackRate: number;
|
|
readonly ready: Promise<Animation>;
|
|
readonly replaceState: AnimationReplaceState;
|
|
startTime: CSSNumberish | null;
|
|
timeline: AnimationTimeline | null;
|
|
cancel(): void;
|
|
commitStyles(): void;
|
|
finish(): void;
|
|
pause(): void;
|
|
persist(): void;
|
|
play(): void;
|
|
reverse(): void;
|
|
updatePlaybackRate(playbackRate: number): void;
|
|
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var Animation: {
|
|
prototype: Animation;
|
|
new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;
|
|
};
|
|
|
|
interface AnimationEffect {
|
|
getComputedTiming(): ComputedEffectTiming;
|
|
getTiming(): EffectTiming;
|
|
updateTiming(timing?: OptionalEffectTiming): void;
|
|
}
|
|
|
|
declare var AnimationEffect: {
|
|
prototype: AnimationEffect;
|
|
new(): AnimationEffect;
|
|
};
|
|
|
|
/** Events providing information related to animations. */
|
|
interface AnimationEvent extends Event {
|
|
readonly animationName: string;
|
|
readonly elapsedTime: number;
|
|
readonly pseudoElement: string;
|
|
}
|
|
|
|
declare var AnimationEvent: {
|
|
prototype: AnimationEvent;
|
|
new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;
|
|
};
|
|
|
|
interface AnimationFrameProvider {
|
|
cancelAnimationFrame(handle: number): void;
|
|
requestAnimationFrame(callback: FrameRequestCallback): number;
|
|
}
|
|
|
|
interface AnimationPlaybackEvent extends Event {
|
|
readonly currentTime: CSSNumberish | null;
|
|
readonly timelineTime: CSSNumberish | null;
|
|
}
|
|
|
|
declare var AnimationPlaybackEvent: {
|
|
prototype: AnimationPlaybackEvent;
|
|
new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;
|
|
};
|
|
|
|
interface AnimationTimeline {
|
|
readonly currentTime: number | null;
|
|
}
|
|
|
|
declare var AnimationTimeline: {
|
|
prototype: AnimationTimeline;
|
|
new(): AnimationTimeline;
|
|
};
|
|
|
|
/** A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */
|
|
interface Attr extends Node {
|
|
readonly localName: string;
|
|
readonly name: string;
|
|
readonly namespaceURI: string | null;
|
|
readonly ownerDocument: Document;
|
|
readonly ownerElement: Element | null;
|
|
readonly prefix: string | null;
|
|
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;
|
|
};
|
|
|
|
/** Available only in secure contexts. */
|
|
interface AudioWorklet extends Worklet {
|
|
}
|
|
|
|
declare var AudioWorklet: {
|
|
prototype: AudioWorklet;
|
|
new(): AudioWorklet;
|
|
};
|
|
|
|
interface AudioWorkletNodeEventMap {
|
|
"processorerror": Event;
|
|
}
|
|
|
|
/** Available only in secure contexts. */
|
|
interface AudioWorkletNode extends AudioNode {
|
|
onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;
|
|
readonly parameters: AudioParamMap;
|
|
readonly port: MessagePort;
|
|
addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var AudioWorkletNode: {
|
|
prototype: AudioWorkletNode;
|
|
new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;
|
|
};
|
|
|
|
/** Available only in secure contexts. */
|
|
interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
|
|
readonly authenticatorData: ArrayBuffer;
|
|
readonly signature: ArrayBuffer;
|
|
readonly userHandle: ArrayBuffer | null;
|
|
}
|
|
|
|
declare var AuthenticatorAssertionResponse: {
|
|
prototype: AuthenticatorAssertionResponse;
|
|
new(): AuthenticatorAssertionResponse;
|
|
};
|
|
|
|
/** Available only in secure contexts. */
|
|
interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
|
|
readonly attestationObject: ArrayBuffer;
|
|
}
|
|
|
|
declare var AuthenticatorAttestationResponse: {
|
|
prototype: AuthenticatorAttestationResponse;
|
|
new(): AuthenticatorAttestationResponse;
|
|
};
|
|
|
|
/** Available only in secure contexts. */
|
|
interface AuthenticatorResponse {
|
|
readonly clientDataJSON: ArrayBuffer;
|
|
}
|
|
|
|
declare var AuthenticatorResponse: {
|
|
prototype: AuthenticatorResponse;
|
|
new(): AuthenticatorResponse;
|
|
};
|
|
|
|
interface BarProp {
|
|
readonly visible: boolean;
|
|
}
|
|
|
|
declare var BarProp: {
|
|
prototype: BarProp;
|
|
new(): BarProp;
|
|
};
|
|
|
|
interface BaseAudioContextEventMap {
|
|
"statechange": Event;
|
|
}
|
|
|
|
interface BaseAudioContext extends EventTarget {
|
|
/** Available only in secure contexts. */
|
|
readonly audioWorklet: AudioWorklet;
|
|
readonly currentTime: number;
|
|
readonly destination: AudioDestinationNode;
|
|
readonly listener: AudioListener;
|
|
onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;
|
|
readonly sampleRate: number;
|
|
readonly state: AudioContextState;
|
|
createAnalyser(): AnalyserNode;
|
|
createBiquadFilter(): BiquadFilterNode;
|
|
createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
|
|
createBufferSource(): AudioBufferSourceNode;
|
|
createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
|
|
createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
|
|
createConstantSource(): ConstantSourceNode;
|
|
createConvolver(): ConvolverNode;
|
|
createDelay(maxDelayTime?: number): DelayNode;
|
|
createDynamicsCompressor(): DynamicsCompressorNode;
|
|
createGain(): GainNode;
|
|
createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
|
|
createOscillator(): OscillatorNode;
|
|
createPanner(): PannerNode;
|
|
createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
|
|
/** @deprecated */
|
|
createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
|
|
createStereoPanner(): StereoPannerNode;
|
|
createWaveShaper(): WaveShaperNode;
|
|
decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;
|
|
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var BaseAudioContext: {
|
|
prototype: BaseAudioContext;
|
|
new(): BaseAudioContext;
|
|
};
|
|
|
|
/** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */
|
|
interface BeforeUnloadEvent extends Event {
|
|
returnValue: any;
|
|
}
|
|
|
|
declare var BeforeUnloadEvent: {
|
|
prototype: BeforeUnloadEvent;
|
|
new(): BeforeUnloadEvent;
|
|
};
|
|
|
|
/** A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. */
|
|
interface BiquadFilterNode extends AudioNode {
|
|
readonly Q: AudioParam;
|
|
readonly detune: AudioParam;
|
|
readonly frequency: AudioParam;
|
|
readonly gain: AudioParam;
|
|
type: BiquadFilterType;
|
|
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
|
|
}
|
|
|
|
declare var BiquadFilterNode: {
|
|
prototype: BiquadFilterNode;
|
|
new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;
|
|
};
|
|
|
|
/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
|
|
interface Blob {
|
|
readonly size: number;
|
|
readonly type: string;
|
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
slice(start?: number, end?: number, contentType?: string): Blob;
|
|
stream(): ReadableStream;
|
|
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 {
|
|
accentColor: string;
|
|
alignContent: string;
|
|
alignItems: string;
|
|
alignSelf: string;
|
|
alignmentBaseline: string;
|
|
all: string;
|
|
animation: string;
|
|
animationDelay: string;
|
|
animationDirection: string;
|
|
animationDuration: string;
|
|
animationFillMode: string;
|
|
animationIterationCount: string;
|
|
animationName: string;
|
|
animationPlayState: string;
|
|
animationTimingFunction: string;
|
|
appearance: string;
|
|
aspectRatio: string;
|
|
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;
|
|
/** @deprecated This is a legacy alias of \`columnGap\`. */
|
|
gridColumnGap: string;
|
|
gridColumnStart: string;
|
|
/** @deprecated This is a legacy alias of \`gap\`. */
|
|
gridGap: string;
|
|
gridRow: string;
|
|
gridRowEnd: string;
|
|
/** @deprecated This is a legacy alias of \`rowGap\`. */
|
|
gridRowGap: string;
|
|
gridRowStart: string;
|
|
gridTemplate: string;
|
|
gridTemplateAreas: string;
|
|
gridTemplateColumns: string;
|
|
gridTemplateRows: string;
|
|
height: string;
|
|
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 This is a legacy alias of \`boxAlign\`. */
|
|
webkitBoxAlign: string;
|
|
/** @deprecated This is a legacy alias of \`boxFlex\`. */
|
|
webkitBoxFlex: string;
|
|
/** @deprecated This is a legacy alias of \`boxOrdinalGroup\`. */
|
|
webkitBoxOrdinalGroup: string;
|
|
/** @deprecated This is a legacy alias of \`boxOrient\`. */
|
|
webkitBoxOrient: string;
|
|
/** @deprecated This is a legacy alias of \`boxPack\`. */
|
|
webkitBoxPack: string;
|
|
/** @deprecated This is a legacy alias of \`boxShadow\`. */
|
|
webkitBoxShadow: string;
|
|
/** @deprecated This is a legacy alias of \`boxSizing\`. */
|
|
webkitBoxSizing: string;
|
|
/** @deprecated This is a legacy alias of \`filter\`. */
|
|
webkitFilter: string;
|
|
/** @deprecated This is a legacy alias of \`flex\`. */
|
|
webkitFlex: string;
|
|
/** @deprecated This is a legacy alias of \`flexBasis\`. */
|
|
webkitFlexBasis: string;
|
|
/** @deprecated This is a legacy alias of \`flexDirection\`. */
|
|
webkitFlexDirection: string;
|
|
/** @deprecated This is a legacy alias of \`flexFlow\`. */
|
|
webkitFlexFlow: string;
|
|
/** @deprecated This is a legacy alias of \`flexGrow\`. */
|
|
webkitFlexGrow: string;
|
|
/** @deprecated This is a legacy alias of \`flexShrink\`. */
|
|
webkitFlexShrink: string;
|
|
/** @deprecated This is a legacy alias of \`flexWrap\`. */
|
|
webkitFlexWrap: string;
|
|
/** @deprecated This is a legacy alias of \`justifyContent\`. */
|
|
webkitJustifyContent: string;
|
|
webkitLineClamp: string;
|
|
/** @deprecated This is a legacy alias of \`mask\`. */
|
|
webkitMask: string;
|
|
/** @deprecated This is a legacy alias of \`maskBorder\`. */
|
|
webkitMaskBoxImage: string;
|
|
/** @deprecated This is a legacy alias of \`maskBorderOutset\`. */
|
|
webkitMaskBoxImageOutset: string;
|
|
/** @deprecated This is a legacy alias of \`maskBorderRepeat\`. */
|
|
webkitMaskBoxImageRepeat: string;
|
|
/** @deprecated This is a legacy alias of \`maskBorderSlice\`. */
|
|
webkitMaskBoxImageSlice: string;
|
|
/** @deprecated This is a legacy alias of \`maskBorderSource\`. */
|
|
webkitMaskBoxImageSource: string;
|
|
/** @deprecated This is a legacy alias of \`maskBorderWidth\`. */
|
|
webkitMaskBoxImageWidth: string;
|
|
/** @deprecated This is a legacy alias of \`maskClip\`. */
|
|
webkitMaskClip: string;
|
|
webkitMaskComposite: string;
|
|
/** @deprecated This is a legacy alias of \`maskImage\`. */
|
|
webkitMaskImage: string;
|
|
/** @deprecated This is a legacy alias of \`maskOrigin\`. */
|
|
webkitMaskOrigin: string;
|
|
/** @deprecated This is a legacy alias of \`maskPosition\`. */
|
|
webkitMaskPosition: string;
|
|
/** @deprecated This is a legacy alias of \`maskRepeat\`. */
|
|
webkitMaskRepeat: string;
|
|
/** @deprecated This is a legacy alias of \`maskSize\`. */
|
|
webkitMaskSize: string;
|
|
/** @deprecated This is a legacy alias of \`order\`. */
|
|
webkitOrder: string;
|
|
/** @deprecated This is a legacy alias of \`perspective\`. */
|
|
webkitPerspective: string;
|
|
/** @deprecated This is a legacy alias of \`perspectiveOrigin\`. */
|
|
webkitPerspectiveOrigin: string;
|
|
webkitTextFillColor: string;
|
|
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.
|
|
* Available only in secure contexts.
|
|
*/
|
|
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.
|
|
* Available only in secure contexts.
|
|
*/
|
|
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 {
|
|
}
|
|
|
|
/** Available only in secure contexts. */
|
|
interface Clipboard extends EventTarget {
|
|
read(): Promise<ClipboardItems>;
|
|
readText(): Promise<string>;
|
|
write(data: ClipboardItems): Promise<void>;
|
|
writeText(data: string): Promise<void>;
|
|
}
|
|
|
|
declare var Clipboard: {
|
|
prototype: Clipboard;
|
|
new(): Clipboard;
|
|
};
|
|
|
|
/** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */
|
|
interface ClipboardEvent extends Event {
|
|
readonly clipboardData: DataTransfer | null;
|
|
}
|
|
|
|
declare var ClipboardEvent: {
|
|
prototype: ClipboardEvent;
|
|
new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
|
|
};
|
|
|
|
interface ClipboardItem {
|
|
readonly types: ReadonlyArray<string>;
|
|
getType(type: string): Promise<Blob>;
|
|
}
|
|
|
|
declare var ClipboardItem: {
|
|
prototype: ClipboardItem;
|
|
new(items: Record<string, ClipboardItemDataType | PromiseLike<ClipboardItemDataType>>, 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;
|
|
};
|
|
|
|
/** Available only in secure contexts. */
|
|
interface Credential {
|
|
readonly id: string;
|
|
readonly type: string;
|
|
}
|
|
|
|
declare var Credential: {
|
|
prototype: Credential;
|
|
new(): Credential;
|
|
};
|
|
|
|
/** Available only in secure contexts. */
|
|
interface CredentialsContainer {
|
|
create(options?: CredentialCreationOptions): Promise<Credential | null>;
|
|
get(options?: CredentialRequestOptions): Promise<Credential | null>;
|
|
preventSilentAccess(): Promise<void>;
|
|
store(credential: Credential): Promise<Credential>;
|
|
}
|
|
|
|
declare var CredentialsContainer: {
|
|
prototype: CredentialsContainer;
|
|
new(): CredentialsContainer;
|
|
};
|
|
|
|
/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
|
|
interface Crypto {
|
|
/** Available only in secure contexts. */
|
|
readonly subtle: SubtleCrypto;
|
|
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
|
}
|
|
|
|
declare var Crypto: {
|
|
prototype: Crypto;
|
|
new(): Crypto;
|
|
};
|
|
|
|
/**
|
|
* The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface CryptoKey {
|
|
readonly algorithm: KeyAlgorithm;
|
|
readonly extractable: boolean;
|
|
readonly type: KeyType;
|
|
readonly usages: KeyUsage[];
|
|
}
|
|
|
|
declare var CryptoKey: {
|
|
prototype: CryptoKey;
|
|
new(): CryptoKey;
|
|
};
|
|
|
|
interface CustomElementRegistry {
|
|
define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
|
|
get(name: string): CustomElementConstructor | undefined;
|
|
upgrade(root: Node): void;
|
|
whenDefined(name: string): Promise<CustomElementConstructor>;
|
|
}
|
|
|
|
declare var CustomElementRegistry: {
|
|
prototype: CustomElementRegistry;
|
|
new(): CustomElementRegistry;
|
|
};
|
|
|
|
interface CustomEvent<T = any> extends Event {
|
|
/** Returns any custom data event was created with. Typically used for synthetic events. */
|
|
readonly detail: T;
|
|
/** @deprecated */
|
|
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
|
|
}
|
|
|
|
declare var CustomEvent: {
|
|
prototype: CustomEvent;
|
|
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
|
|
};
|
|
|
|
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
|
|
interface DOMException extends Error {
|
|
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.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface DeviceMotionEvent extends Event {
|
|
readonly acceleration: DeviceMotionEventAcceleration | null;
|
|
readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
|
|
readonly interval: number;
|
|
readonly rotationRate: DeviceMotionEventRotationRate | null;
|
|
}
|
|
|
|
declare var DeviceMotionEvent: {
|
|
prototype: DeviceMotionEvent;
|
|
new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
|
|
};
|
|
|
|
/** Available only in secure contexts. */
|
|
interface DeviceMotionEventAcceleration {
|
|
readonly x: number | null;
|
|
readonly y: number | null;
|
|
readonly z: number | null;
|
|
}
|
|
|
|
/** Available only in secure contexts. */
|
|
interface DeviceMotionEventRotationRate {
|
|
readonly alpha: number | null;
|
|
readonly beta: number | null;
|
|
readonly gamma: number | null;
|
|
}
|
|
|
|
/**
|
|
* The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface DeviceOrientationEvent extends Event {
|
|
readonly absolute: boolean;
|
|
readonly alpha: number | null;
|
|
readonly beta: number | null;
|
|
readonly gamma: number | null;
|
|
}
|
|
|
|
declare var DeviceOrientationEvent: {
|
|
prototype: DeviceOrientationEvent;
|
|
new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
|
|
};
|
|
|
|
interface DocumentEventMap extends 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;
|
|
/**
|
|
* 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;
|
|
/**
|
|
* Returns the element for the specified x coordinate and the specified y coordinate.
|
|
* @param x The x-offset
|
|
* @param y The y-offset
|
|
*/
|
|
elementFromPoint(x: number, y: number): Element | null;
|
|
elementsFromPoint(x: number, y: number): Element[];
|
|
getAnimations(): Animation[];
|
|
}
|
|
|
|
interface DocumentTimeline extends AnimationTimeline {
|
|
}
|
|
|
|
declare var DocumentTimeline: {
|
|
prototype: DocumentTimeline;
|
|
new(options?: DocumentTimelineOptions): DocumentTimeline;
|
|
};
|
|
|
|
/** A Node containing a doctype. */
|
|
interface DocumentType extends Node, ChildNode {
|
|
readonly name: string;
|
|
readonly ownerDocument: Document;
|
|
readonly publicId: string;
|
|
readonly systemId: string;
|
|
}
|
|
|
|
declare var DocumentType: {
|
|
prototype: DocumentType;
|
|
new(): DocumentType;
|
|
};
|
|
|
|
/** A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. */
|
|
interface DragEvent extends MouseEvent {
|
|
/** Returns the DataTransfer object for the event. */
|
|
readonly dataTransfer: DataTransfer | null;
|
|
}
|
|
|
|
declare var DragEvent: {
|
|
prototype: DragEvent;
|
|
new(type: string, eventInitDict?: DragEventInit): DragEvent;
|
|
};
|
|
|
|
/** Inherits properties from its parent, AudioNode. */
|
|
interface DynamicsCompressorNode extends AudioNode {
|
|
readonly attack: AudioParam;
|
|
readonly knee: AudioParam;
|
|
readonly ratio: AudioParam;
|
|
readonly reduction: number;
|
|
readonly release: AudioParam;
|
|
readonly threshold: AudioParam;
|
|
}
|
|
|
|
declare var DynamicsCompressorNode: {
|
|
prototype: DynamicsCompressorNode;
|
|
new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;
|
|
};
|
|
|
|
interface EXT_blend_minmax {
|
|
readonly 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;
|
|
}
|
|
|
|
interface ElementInternals extends ARIAMixin {
|
|
/** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */
|
|
readonly shadowRoot: ShadowRoot | null;
|
|
}
|
|
|
|
declare var ElementInternals: {
|
|
prototype: ElementInternals;
|
|
new(): ElementInternals;
|
|
};
|
|
|
|
/** Events providing information related to errors in scripts or in files. */
|
|
interface ErrorEvent extends Event {
|
|
readonly colno: number;
|
|
readonly error: any;
|
|
readonly filename: string;
|
|
readonly lineno: number;
|
|
readonly message: string;
|
|
}
|
|
|
|
declare var ErrorEvent: {
|
|
prototype: ErrorEvent;
|
|
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
|
|
};
|
|
|
|
/** An event which takes place in the DOM. */
|
|
interface Event {
|
|
/** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */
|
|
readonly bubbles: boolean;
|
|
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;
|
|
};
|
|
|
|
interface FileSystemDirectoryReader {
|
|
readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
|
|
}
|
|
|
|
declare var FileSystemDirectoryReader: {
|
|
prototype: FileSystemDirectoryReader;
|
|
new(): FileSystemDirectoryReader;
|
|
};
|
|
|
|
interface FileSystemEntry {
|
|
readonly filesystem: FileSystem;
|
|
readonly fullPath: string;
|
|
readonly isDirectory: boolean;
|
|
readonly isFile: boolean;
|
|
readonly name: string;
|
|
getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
|
|
}
|
|
|
|
declare var FileSystemEntry: {
|
|
prototype: FileSystemEntry;
|
|
new(): FileSystemEntry;
|
|
};
|
|
|
|
interface FileSystemFileEntry extends FileSystemEntry {
|
|
file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;
|
|
}
|
|
|
|
declare var FileSystemFileEntry: {
|
|
prototype: FileSystemFileEntry;
|
|
new(): FileSystemFileEntry;
|
|
};
|
|
|
|
/** 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.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface Gamepad {
|
|
readonly axes: ReadonlyArray<number>;
|
|
readonly buttons: ReadonlyArray<GamepadButton>;
|
|
readonly connected: boolean;
|
|
readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;
|
|
readonly id: string;
|
|
readonly index: number;
|
|
readonly mapping: GamepadMappingType;
|
|
readonly timestamp: DOMHighResTimeStamp;
|
|
}
|
|
|
|
declare var Gamepad: {
|
|
prototype: Gamepad;
|
|
new(): Gamepad;
|
|
};
|
|
|
|
/**
|
|
* An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface GamepadButton {
|
|
readonly pressed: boolean;
|
|
readonly touched: boolean;
|
|
readonly value: number;
|
|
}
|
|
|
|
declare var GamepadButton: {
|
|
prototype: GamepadButton;
|
|
new(): GamepadButton;
|
|
};
|
|
|
|
/**
|
|
* This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface GamepadEvent extends Event {
|
|
readonly gamepad: Gamepad;
|
|
}
|
|
|
|
declare var GamepadEvent: {
|
|
prototype: GamepadEvent;
|
|
new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;
|
|
};
|
|
|
|
/** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */
|
|
interface GamepadHapticActuator {
|
|
readonly type: GamepadHapticActuatorType;
|
|
}
|
|
|
|
declare var GamepadHapticActuator: {
|
|
prototype: GamepadHapticActuator;
|
|
new(): GamepadHapticActuator;
|
|
};
|
|
|
|
interface GenericTransformStream {
|
|
readonly readable: ReadableStream;
|
|
readonly writable: WritableStream;
|
|
}
|
|
|
|
/** An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. */
|
|
interface Geolocation {
|
|
clearWatch(watchId: number): void;
|
|
getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;
|
|
watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;
|
|
}
|
|
|
|
declare var Geolocation: {
|
|
prototype: Geolocation;
|
|
new(): Geolocation;
|
|
};
|
|
|
|
/** Available only in secure contexts. */
|
|
interface GeolocationCoordinates {
|
|
readonly accuracy: number;
|
|
readonly altitude: number | null;
|
|
readonly altitudeAccuracy: number | null;
|
|
readonly heading: number | null;
|
|
readonly latitude: number;
|
|
readonly longitude: number;
|
|
readonly speed: number | null;
|
|
}
|
|
|
|
declare var GeolocationCoordinates: {
|
|
prototype: GeolocationCoordinates;
|
|
new(): GeolocationCoordinates;
|
|
};
|
|
|
|
/** Available only in secure contexts. */
|
|
interface GeolocationPosition {
|
|
readonly coords: GeolocationCoordinates;
|
|
readonly timestamp: 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": SubmitEvent;
|
|
"suspend": Event;
|
|
"timeupdate": Event;
|
|
"toggle": Event;
|
|
"touchcancel": TouchEvent;
|
|
"touchend": TouchEvent;
|
|
"touchmove": TouchEvent;
|
|
"touchstart": TouchEvent;
|
|
"transitioncancel": TransitionEvent;
|
|
"transitionend": TransitionEvent;
|
|
"transitionrun": TransitionEvent;
|
|
"transitionstart": TransitionEvent;
|
|
"volumechange": Event;
|
|
"waiting": Event;
|
|
"webkitanimationend": Event;
|
|
"webkitanimationiteration": Event;
|
|
"webkitanimationstart": Event;
|
|
"webkittransitionend": Event;
|
|
"wheel": WheelEvent;
|
|
}
|
|
|
|
interface GlobalEventHandlers {
|
|
/**
|
|
* Fires when the user aborts the download.
|
|
* @param ev The event.
|
|
*/
|
|
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
/**
|
|
* 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: SubmitEvent) => any) | null;
|
|
/**
|
|
* Occurs if the load operation has been intentionally halted.
|
|
* @param ev The event.
|
|
*/
|
|
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
/**
|
|
* Occurs to indicate the current playback position.
|
|
* @param ev The event.
|
|
*/
|
|
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
/**
|
|
* Occurs when the volume is changed, or playback is muted or unmuted.
|
|
* @param ev The event.
|
|
*/
|
|
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
/**
|
|
* Occurs when playback stops because the next frame of a video resource is not available.
|
|
* @param ev The event.
|
|
*/
|
|
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
/** @deprecated This is a legacy alias of \`onanimationend\`. */
|
|
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
/** @deprecated This is a legacy alias of \`onanimationiteration\`. */
|
|
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
/** @deprecated This is a legacy alias of \`onanimationstart\`. */
|
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
/** @deprecated This is a legacy alias of \`ontransitionend\`. */
|
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
interface HTMLAllCollection {
|
|
/** Returns the number of elements in the collection. */
|
|
readonly length: number;
|
|
/** Returns the item with index index from the collection (determined by tree order). */
|
|
item(nameOrIndex?: string): HTMLCollection | Element | null;
|
|
/**
|
|
* Returns the item with ID or name name from the collection.
|
|
*
|
|
* If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.
|
|
*
|
|
* Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.
|
|
*/
|
|
namedItem(name: string): HTMLCollection | Element | null;
|
|
[index: number]: Element;
|
|
}
|
|
|
|
declare var HTMLAllCollection: {
|
|
prototype: HTMLAllCollection;
|
|
new(): HTMLAllCollection;
|
|
};
|
|
|
|
/** Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. */
|
|
interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
|
/**
|
|
* Sets or retrieves the character set used to encode the object.
|
|
* @deprecated
|
|
*/
|
|
charset: string;
|
|
/**
|
|
* Sets or retrieves the coordinates of the object.
|
|
* @deprecated
|
|
*/
|
|
coords: string;
|
|
download: string;
|
|
/** Sets or retrieves the language code of the object. */
|
|
hreflang: string;
|
|
/**
|
|
* Sets or retrieves the shape of the object.
|
|
* @deprecated
|
|
*/
|
|
name: string;
|
|
ping: string;
|
|
referrerPolicy: string;
|
|
/** Sets or retrieves the relationship between the object and the destination of the link. */
|
|
rel: string;
|
|
readonly relList: DOMTokenList;
|
|
/**
|
|
* Sets or retrieves the relationship between the object and the destination of the link.
|
|
* @deprecated
|
|
*/
|
|
rev: string;
|
|
/**
|
|
* Sets or retrieves the shape of the object.
|
|
* @deprecated
|
|
*/
|
|
shape: string;
|
|
/** Sets or retrieves the window or frame at which to target content. */
|
|
target: string;
|
|
/** Retrieves or sets the text of the object as a string. */
|
|
text: string;
|
|
type: string;
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var HTMLAnchorElement: {
|
|
prototype: HTMLAnchorElement;
|
|
new(): HTMLAnchorElement;
|
|
};
|
|
|
|
/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements. */
|
|
interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
|
/** Sets or retrieves a text alternative to the graphic. */
|
|
alt: string;
|
|
/** Sets or retrieves the coordinates of the object. */
|
|
coords: string;
|
|
download: string;
|
|
/**
|
|
* Sets or gets whether clicks in this region cause action.
|
|
* @deprecated
|
|
*/
|
|
noHref: boolean;
|
|
ping: string;
|
|
referrerPolicy: string;
|
|
rel: string;
|
|
readonly relList: DOMTokenList;
|
|
/** Sets or retrieves the shape of the object. */
|
|
shape: string;
|
|
/** Sets or retrieves the window or frame at which to target content. */
|
|
target: string;
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var HTMLAreaElement: {
|
|
prototype: HTMLAreaElement;
|
|
new(): HTMLAreaElement;
|
|
};
|
|
|
|
/** Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */
|
|
interface HTMLAudioElement extends HTMLMediaElement {
|
|
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var HTMLAudioElement: {
|
|
prototype: HTMLAudioElement;
|
|
new(): HTMLAudioElement;
|
|
};
|
|
|
|
/** A HTML line break element (<br>). It inherits from HTMLElement. */
|
|
interface HTMLBRElement extends HTMLElement {
|
|
/**
|
|
* Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
|
|
* @deprecated
|
|
*/
|
|
clear: string;
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var HTMLBRElement: {
|
|
prototype: HTMLBRElement;
|
|
new(): HTMLBRElement;
|
|
};
|
|
|
|
/** Contains the base URI\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, 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;
|
|
attachInternals(): ElementInternals;
|
|
click(): void;
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var HTMLElement: {
|
|
prototype: HTMLElement;
|
|
new(): HTMLElement;
|
|
};
|
|
|
|
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */
|
|
interface HTMLEmbedElement extends HTMLElement {
|
|
/** @deprecated */
|
|
align: string;
|
|
/** Sets or retrieves the height of the object. */
|
|
height: string;
|
|
/**
|
|
* Sets or retrieves the name of the object.
|
|
* @deprecated
|
|
*/
|
|
name: string;
|
|
/** Sets or retrieves a URL to be loaded by the object. */
|
|
src: string;
|
|
type: string;
|
|
/** Sets or retrieves the width of the object. */
|
|
width: string;
|
|
getSVGDocument(): Document | null;
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var HTMLEmbedElement: {
|
|
prototype: HTMLEmbedElement;
|
|
new(): HTMLEmbedElement;
|
|
};
|
|
|
|
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. */
|
|
interface HTMLFieldSetElement extends HTMLElement {
|
|
disabled: boolean;
|
|
/** Returns an HTMLCollection of the form controls in the element. */
|
|
readonly elements: HTMLCollection;
|
|
/** Retrieves a reference to the form that the object is embedded in. */
|
|
readonly form: HTMLFormElement | null;
|
|
name: string;
|
|
/** Returns the string "fieldset". */
|
|
readonly type: string;
|
|
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
|
|
readonly validationMessage: string;
|
|
/** Returns a ValidityState object that represents the validity states of an element. */
|
|
readonly validity: ValidityState;
|
|
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
|
|
readonly willValidate: boolean;
|
|
/** Returns whether a form will validate when it is submitted, without having to submit it. */
|
|
checkValidity(): boolean;
|
|
reportValidity(): boolean;
|
|
/**
|
|
* Sets a custom error message that is displayed when a form is submitted.
|
|
* @param error Sets a custom error message that is displayed when a form is submitted.
|
|
*/
|
|
setCustomValidity(error: string): void;
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var HTMLFieldSetElement: {
|
|
prototype: HTMLFieldSetElement;
|
|
new(): HTMLFieldSetElement;
|
|
};
|
|
|
|
/**
|
|
* Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text.
|
|
* @deprecated
|
|
*/
|
|
interface HTMLFontElement extends HTMLElement {
|
|
/** @deprecated */
|
|
color: string;
|
|
/**
|
|
* Sets or retrieves the current typeface family.
|
|
* @deprecated
|
|
*/
|
|
face: string;
|
|
/** @deprecated */
|
|
size: string;
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
/** @deprecated */
|
|
declare var HTMLFontElement: {
|
|
prototype: HTMLFontElement;
|
|
new(): HTMLFontElement;
|
|
};
|
|
|
|
/** A collection of HTML form control elements. */
|
|
interface HTMLFormControlsCollection extends HTMLCollectionBase {
|
|
/**
|
|
* Returns the item with ID or name name from the collection.
|
|
*
|
|
* If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.
|
|
*/
|
|
namedItem(name: string): RadioNodeList | Element | null;
|
|
}
|
|
|
|
declare var HTMLFormControlsCollection: {
|
|
prototype: HTMLFormControlsCollection;
|
|
new(): HTMLFormControlsCollection;
|
|
};
|
|
|
|
/** A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. */
|
|
interface HTMLFormElement extends HTMLElement {
|
|
/** Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. */
|
|
acceptCharset: string;
|
|
/** Sets or retrieves the URL to which the form content is sent for processing. */
|
|
action: string;
|
|
/** Specifies whether autocomplete is applied to an editable text field. */
|
|
autocomplete: string;
|
|
/** Retrieves a collection, in source order, of all controls in a given form. */
|
|
readonly elements: HTMLFormControlsCollection;
|
|
/** Sets or retrieves the MIME encoding for the form. */
|
|
encoding: string;
|
|
/** Sets or retrieves the encoding type for the form. */
|
|
enctype: string;
|
|
/** Sets or retrieves the number of objects in a collection. */
|
|
readonly length: number;
|
|
/** Sets or retrieves how to send the form data to the server. */
|
|
method: string;
|
|
/** Sets or retrieves the name of the object. */
|
|
name: string;
|
|
/** Designates a form that is not validated when submitted. */
|
|
noValidate: boolean;
|
|
/** 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;
|
|
/** Available only in secure contexts. */
|
|
readonly mediaKeys: MediaKeys | null;
|
|
/** Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. */
|
|
muted: boolean;
|
|
/** Gets the current network activity for the element. */
|
|
readonly networkState: number;
|
|
onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
|
|
onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
|
|
/** Gets a flag that specifies whether playback is paused. */
|
|
readonly paused: boolean;
|
|
/** Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. */
|
|
playbackRate: number;
|
|
/** Gets TimeRanges for the current media resource that has been played. */
|
|
readonly played: TimeRanges;
|
|
/** Gets or sets a value indicating what data should be preloaded, if any. */
|
|
preload: "none" | "metadata" | "auto" | "";
|
|
readonly readyState: number;
|
|
readonly remote: RemotePlayback;
|
|
/** Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. */
|
|
readonly seekable: TimeRanges;
|
|
/** Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. */
|
|
readonly seeking: boolean;
|
|
/** The address or URL of the a media resource that is to be considered. */
|
|
src: string;
|
|
srcObject: MediaProvider | null;
|
|
readonly textTracks: TextTrackList;
|
|
/** Gets or sets the volume level for audio portions of the media element. */
|
|
volume: number;
|
|
addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;
|
|
/** Returns a string that specifies whether the client can play a given media resource type. */
|
|
canPlayType(type: string): CanPlayTypeResult;
|
|
fastSeek(time: number): void;
|
|
/** Resets the audio or video object and loads a new media resource. */
|
|
load(): void;
|
|
/** Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not. */
|
|
pause(): void;
|
|
/** Loads and starts playback of a media resource. */
|
|
play(): Promise<void>;
|
|
/** Available only in secure contexts. */
|
|
setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
|
|
readonly 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 {
|
|
autofocus: boolean;
|
|
readonly dataset: DOMStringMap;
|
|
nonce?: string;
|
|
tabIndex: number;
|
|
blur(): void;
|
|
focus(options?: FocusOptions): void;
|
|
}
|
|
|
|
/** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */
|
|
interface HTMLOutputElement extends HTMLElement {
|
|
defaultValue: string;
|
|
readonly form: HTMLFormElement | null;
|
|
readonly htmlFor: DOMTokenList;
|
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
name: string;
|
|
/** Returns the string "output". */
|
|
readonly type: string;
|
|
readonly validationMessage: string;
|
|
readonly validity: ValidityState;
|
|
/**
|
|
* Returns the element's current value.
|
|
*
|
|
* Can be set, to change the value.
|
|
*/
|
|
value: string;
|
|
readonly willValidate: boolean;
|
|
checkValidity(): boolean;
|
|
reportValidity(): boolean;
|
|
setCustomValidity(error: string): void;
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var HTMLOutputElement: {
|
|
prototype: HTMLOutputElement;
|
|
new(): HTMLOutputElement;
|
|
};
|
|
|
|
/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */
|
|
interface HTMLParagraphElement extends HTMLElement {
|
|
/**
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
* @deprecated
|
|
*/
|
|
align: string;
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var HTMLParagraphElement: {
|
|
prototype: HTMLParagraphElement;
|
|
new(): HTMLParagraphElement;
|
|
};
|
|
|
|
/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element. */
|
|
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;
|
|
assign(...nodes: (Element | Text)[]): void;
|
|
assignedElements(options?: AssignedNodesOptions): Element[];
|
|
assignedNodes(options?: AssignedNodesOptions): Node[];
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var HTMLSlotElement: {
|
|
prototype: HTMLSlotElement;
|
|
new(): HTMLSlotElement;
|
|
};
|
|
|
|
/** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */
|
|
interface HTMLSourceElement extends HTMLElement {
|
|
/** 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.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface MediaDeviceInfo {
|
|
readonly deviceId: string;
|
|
readonly groupId: string;
|
|
readonly kind: MediaDeviceKind;
|
|
readonly label: string;
|
|
toJSON(): any;
|
|
}
|
|
|
|
declare var MediaDeviceInfo: {
|
|
prototype: MediaDeviceInfo;
|
|
new(): MediaDeviceInfo;
|
|
};
|
|
|
|
interface MediaDevicesEventMap {
|
|
"devicechange": Event;
|
|
}
|
|
|
|
/**
|
|
* Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface MediaDevices extends EventTarget {
|
|
ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
|
|
enumerateDevices(): Promise<MediaDeviceInfo[]>;
|
|
getDisplayMedia(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.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface MediaKeyMessageEvent extends Event {
|
|
readonly message: ArrayBuffer;
|
|
readonly messageType: MediaKeyMessageType;
|
|
}
|
|
|
|
declare var MediaKeyMessageEvent: {
|
|
prototype: MediaKeyMessageEvent;
|
|
new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;
|
|
};
|
|
|
|
interface MediaKeySessionEventMap {
|
|
"keystatuseschange": Event;
|
|
"message": MediaKeyMessageEvent;
|
|
}
|
|
|
|
/**
|
|
* This EncryptedMediaExtensions API interface represents a\xA0context for message exchange with a content decryption module (CDM).
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface MediaKeySession extends EventTarget {
|
|
readonly closed: Promise<MediaKeySessionClosedReason>;
|
|
readonly expiration: number;
|
|
readonly keyStatuses: MediaKeyStatusMap;
|
|
onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
|
|
onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;
|
|
readonly sessionId: string;
|
|
close(): Promise<void>;
|
|
generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
|
|
load(sessionId: string): Promise<boolean>;
|
|
remove(): Promise<void>;
|
|
update(response: BufferSource): Promise<void>;
|
|
addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var MediaKeySession: {
|
|
prototype: MediaKeySession;
|
|
new(): MediaKeySession;
|
|
};
|
|
|
|
/**
|
|
* This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface MediaKeyStatusMap {
|
|
readonly size: number;
|
|
get(keyId: BufferSource): MediaKeyStatus | undefined;
|
|
has(keyId: BufferSource): boolean;
|
|
forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;
|
|
}
|
|
|
|
declare var MediaKeyStatusMap: {
|
|
prototype: MediaKeyStatusMap;
|
|
new(): MediaKeyStatusMap;
|
|
};
|
|
|
|
/**
|
|
* This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface MediaKeySystemAccess {
|
|
readonly keySystem: string;
|
|
createMediaKeys(): Promise<MediaKeys>;
|
|
getConfiguration(): MediaKeySystemConfiguration;
|
|
}
|
|
|
|
declare var MediaKeySystemAccess: {
|
|
prototype: MediaKeySystemAccess;
|
|
new(): MediaKeySystemAccess;
|
|
};
|
|
|
|
/**
|
|
* This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface MediaKeys {
|
|
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
|
|
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
|
|
}
|
|
|
|
declare var MediaKeys: {
|
|
prototype: MediaKeys;
|
|
new(): MediaKeys;
|
|
};
|
|
|
|
interface MediaList {
|
|
readonly length: number;
|
|
mediaText: string;
|
|
toString(): string;
|
|
appendMedium(medium: string): void;
|
|
deleteMedium(medium: string): void;
|
|
item(index: number): string | null;
|
|
[index: number]: string;
|
|
}
|
|
|
|
declare var MediaList: {
|
|
prototype: MediaList;
|
|
new(): MediaList;
|
|
};
|
|
|
|
interface MediaMetadata {
|
|
album: string;
|
|
artist: string;
|
|
artwork: ReadonlyArray<MediaImage>;
|
|
title: string;
|
|
}
|
|
|
|
declare var MediaMetadata: {
|
|
prototype: MediaMetadata;
|
|
new(init?: MediaMetadataInit): MediaMetadata;
|
|
};
|
|
|
|
interface MediaQueryListEventMap {
|
|
"change": MediaQueryListEvent;
|
|
}
|
|
|
|
/** Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true). */
|
|
interface MediaQueryList extends EventTarget {
|
|
readonly matches: boolean;
|
|
readonly media: string;
|
|
onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
|
|
/** @deprecated */
|
|
addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
|
|
/** @deprecated */
|
|
removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
|
|
addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var MediaQueryList: {
|
|
prototype: MediaQueryList;
|
|
new(): MediaQueryList;
|
|
};
|
|
|
|
interface MediaQueryListEvent extends Event {
|
|
readonly matches: boolean;
|
|
readonly media: string;
|
|
}
|
|
|
|
declare var MediaQueryListEvent: {
|
|
prototype: MediaQueryListEvent;
|
|
new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;
|
|
};
|
|
|
|
interface MediaRecorderEventMap {
|
|
"dataavailable": BlobEvent;
|
|
"error": MediaRecorderErrorEvent;
|
|
"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: MediaRecorderErrorEvent) => 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?: StructuredSerializeOptions): void;
|
|
/** Begins dispatching messages received on the port. */
|
|
start(): void;
|
|
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var MessagePort: {
|
|
prototype: MessagePort;
|
|
new(): MessagePort;
|
|
};
|
|
|
|
/**
|
|
* Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.
|
|
* @deprecated
|
|
*/
|
|
interface MimeType {
|
|
/**
|
|
* Returns the MIME type's description.
|
|
* @deprecated
|
|
*/
|
|
readonly description: string;
|
|
/**
|
|
* Returns the Plugin object that implements this MIME type.
|
|
* @deprecated
|
|
*/
|
|
readonly enabledPlugin: Plugin;
|
|
/**
|
|
* Returns the MIME type's typical file extensions, in a comma-separated list.
|
|
* @deprecated
|
|
*/
|
|
readonly suffixes: string;
|
|
/**
|
|
* Returns the MIME type.
|
|
* @deprecated
|
|
*/
|
|
readonly type: string;
|
|
}
|
|
|
|
/** @deprecated */
|
|
declare var MimeType: {
|
|
prototype: MimeType;
|
|
new(): MimeType;
|
|
};
|
|
|
|
/**
|
|
* Returns an array of MimeType instances, each of which contains information\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 {
|
|
/** Available only in secure contexts. */
|
|
readonly clipboard: Clipboard;
|
|
/** Available only in secure contexts. */
|
|
readonly credentials: CredentialsContainer;
|
|
readonly doNotTrack: string | null;
|
|
readonly geolocation: Geolocation;
|
|
readonly maxTouchPoints: number;
|
|
readonly mediaCapabilities: MediaCapabilities;
|
|
/** Available only in secure contexts. */
|
|
readonly mediaDevices: MediaDevices;
|
|
readonly mediaSession: MediaSession;
|
|
readonly permissions: Permissions;
|
|
/** Available only in secure contexts. */
|
|
readonly serviceWorker: ServiceWorkerContainer;
|
|
/** Available only in secure contexts. */
|
|
canShare(data?: ShareData): boolean;
|
|
getGamepads(): (Gamepad | null)[];
|
|
/** Available only in secure contexts. */
|
|
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
|
|
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
|
|
/** Available only in secure contexts. */
|
|
share(data?: ShareData): Promise<void>;
|
|
vibrate(pattern: VibratePattern): boolean;
|
|
}
|
|
|
|
declare var Navigator: {
|
|
prototype: Navigator;
|
|
new(): Navigator;
|
|
};
|
|
|
|
interface NavigatorAutomationInformation {
|
|
readonly webdriver: boolean;
|
|
}
|
|
|
|
interface NavigatorConcurrentHardware {
|
|
readonly hardwareConcurrency: number;
|
|
}
|
|
|
|
interface NavigatorContentUtils {
|
|
/** Available only in secure contexts. */
|
|
registerProtocolHandler(scheme: string, url: string | URL): void;
|
|
}
|
|
|
|
interface NavigatorCookies {
|
|
readonly cookieEnabled: boolean;
|
|
}
|
|
|
|
interface NavigatorID {
|
|
/** @deprecated */
|
|
readonly appCodeName: string;
|
|
/** @deprecated */
|
|
readonly appName: string;
|
|
/** @deprecated */
|
|
readonly appVersion: string;
|
|
/** @deprecated */
|
|
readonly platform: string;
|
|
/** @deprecated */
|
|
readonly product: string;
|
|
/** @deprecated */
|
|
readonly productSub: string;
|
|
readonly userAgent: string;
|
|
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;
|
|
}
|
|
|
|
/** Available only in secure contexts. */
|
|
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;
|
|
};
|
|
|
|
/** Available only in secure contexts. */
|
|
interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
|
|
readonly methodDetails: any;
|
|
readonly methodName: string;
|
|
}
|
|
|
|
declare var PaymentMethodChangeEvent: {
|
|
prototype: PaymentMethodChangeEvent;
|
|
new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;
|
|
};
|
|
|
|
interface PaymentRequestEventMap {
|
|
"paymentmethodchange": Event;
|
|
}
|
|
|
|
/**
|
|
* This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface PaymentRequest extends EventTarget {
|
|
readonly id: string;
|
|
onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
|
|
abort(): Promise<void>;
|
|
canMakePayment(): Promise<boolean>;
|
|
show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;
|
|
addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var PaymentRequest: {
|
|
prototype: PaymentRequest;
|
|
new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
|
|
};
|
|
|
|
/**
|
|
* This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface PaymentRequestUpdateEvent extends Event {
|
|
updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;
|
|
}
|
|
|
|
declare var PaymentRequestUpdateEvent: {
|
|
prototype: PaymentRequestUpdateEvent;
|
|
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
|
|
};
|
|
|
|
/**
|
|
* This Payment Request API interface is returned after a user selects a payment method and approves a payment request.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface PaymentResponse extends EventTarget {
|
|
readonly details: any;
|
|
readonly methodName: string;
|
|
readonly requestId: string;
|
|
complete(result?: PaymentComplete): Promise<void>;
|
|
retry(errorFields?: PaymentValidationErrors): Promise<void>;
|
|
toJSON(): any;
|
|
}
|
|
|
|
declare var PaymentResponse: {
|
|
prototype: PaymentResponse;
|
|
new(): PaymentResponse;
|
|
};
|
|
|
|
interface PerformanceEventMap {
|
|
"resourcetimingbufferfull": Event;
|
|
}
|
|
|
|
/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
|
|
interface Performance extends EventTarget {
|
|
/** @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;
|
|
/** Available only in secure contexts. */
|
|
getCoalescedEvents(): PointerEvent[];
|
|
getPredictedEvents(): PointerEvent[];
|
|
}
|
|
|
|
declare var PointerEvent: {
|
|
prototype: PointerEvent;
|
|
new(type: string, eventInitDict?: PointerEventInit): PointerEvent;
|
|
};
|
|
|
|
/** PopStateEvent is an event handler for the popstate event on the window. */
|
|
interface PopStateEvent extends Event {
|
|
/** Returns a copy of the information that was provided to pushState() or replaceState(). */
|
|
readonly state: any;
|
|
}
|
|
|
|
declare var PopStateEvent: {
|
|
prototype: PopStateEvent;
|
|
new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
|
|
};
|
|
|
|
/** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. */
|
|
interface ProcessingInstruction extends CharacterData, LinkStyle {
|
|
readonly ownerDocument: Document;
|
|
readonly target: string;
|
|
}
|
|
|
|
declare var ProcessingInstruction: {
|
|
prototype: ProcessingInstruction;
|
|
new(): ProcessingInstruction;
|
|
};
|
|
|
|
/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */
|
|
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
|
|
readonly lengthComputable: boolean;
|
|
readonly loaded: number;
|
|
readonly target: T | null;
|
|
readonly total: number;
|
|
}
|
|
|
|
declare var ProgressEvent: {
|
|
prototype: ProgressEvent;
|
|
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
|
|
};
|
|
|
|
interface PromiseRejectionEvent extends Event {
|
|
readonly promise: Promise<any>;
|
|
readonly reason: any;
|
|
}
|
|
|
|
declare var PromiseRejectionEvent: {
|
|
prototype: PromiseRejectionEvent;
|
|
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
|
|
};
|
|
|
|
/** Available only in secure contexts. */
|
|
interface PublicKeyCredential extends Credential {
|
|
readonly 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.
|
|
* Available only in secure contexts.
|
|
*/
|
|
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.
|
|
* Available only in secure contexts.
|
|
*/
|
|
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;
|
|
};
|
|
|
|
/** Available only in secure contexts. */
|
|
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>];
|
|
}
|
|
|
|
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, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
|
|
/** @deprecated */
|
|
readonly className: any;
|
|
readonly ownerSVGElement: SVGSVGElement | null;
|
|
readonly viewportElement: SVGElement | null;
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var SVGElement: {
|
|
prototype: SVGElement;
|
|
new(): SVGElement;
|
|
};
|
|
|
|
/** Provides access to the properties of <ellipse> elements. */
|
|
interface SVGEllipseElement extends SVGGeometryElement {
|
|
readonly cx: SVGAnimatedLength;
|
|
readonly cy: SVGAnimatedLength;
|
|
readonly rx: SVGAnimatedLength;
|
|
readonly ry: SVGAnimatedLength;
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var SVGEllipseElement: {
|
|
prototype: SVGEllipseElement;
|
|
new(): SVGEllipseElement;
|
|
};
|
|
|
|
/** Corresponds to the <feBlend> element. */
|
|
interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
readonly in1: SVGAnimatedString;
|
|
readonly in2: SVGAnimatedString;
|
|
readonly mode: SVGAnimatedEnumeration;
|
|
readonly SVG_FEBLEND_MODE_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.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface ServiceWorker extends EventTarget, AbstractWorker {
|
|
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
|
|
readonly scriptURL: string;
|
|
readonly state: ServiceWorkerState;
|
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var ServiceWorker: {
|
|
prototype: ServiceWorker;
|
|
new(): ServiceWorker;
|
|
};
|
|
|
|
interface ServiceWorkerContainerEventMap {
|
|
"controllerchange": Event;
|
|
"message": MessageEvent;
|
|
"messageerror": MessageEvent;
|
|
}
|
|
|
|
/**
|
|
* The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface ServiceWorkerContainer extends EventTarget {
|
|
readonly controller: ServiceWorker | null;
|
|
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
|
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
readonly ready: Promise<ServiceWorkerRegistration>;
|
|
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
|
|
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
|
|
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
|
|
startMessages(): void;
|
|
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var ServiceWorkerContainer: {
|
|
prototype: ServiceWorkerContainer;
|
|
new(): ServiceWorkerContainer;
|
|
};
|
|
|
|
interface ServiceWorkerRegistrationEventMap {
|
|
"updatefound": Event;
|
|
}
|
|
|
|
/**
|
|
* This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface ServiceWorkerRegistration extends EventTarget {
|
|
readonly active: ServiceWorker | null;
|
|
readonly installing: ServiceWorker | null;
|
|
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;
|
|
};
|
|
|
|
/** Available only in secure contexts. */
|
|
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).
|
|
* Available only in secure contexts.
|
|
*/
|
|
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 {
|
|
/** 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(obj: Blob | MediaSource): string;
|
|
revokeObjectURL(url: string): void;
|
|
};
|
|
|
|
type webkitURL = URL;
|
|
declare var webkitURL: typeof URL;
|
|
|
|
interface URLSearchParams {
|
|
/** Appends a specified key/value pair as a new search parameter. */
|
|
append(name: string, value: string): void;
|
|
/** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
|
|
delete(name: string): void;
|
|
/** Returns the first value associated to the given search parameter. */
|
|
get(name: string): string | null;
|
|
/** Returns all the values association with a given search parameter. */
|
|
getAll(name: string): string[];
|
|
/** Returns a Boolean indicating if such a search parameter exists. */
|
|
has(name: string): boolean;
|
|
/** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
|
|
set(name: string, value: string): void;
|
|
sort(): void;
|
|
/** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
|
|
toString(): string;
|
|
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
|
|
}
|
|
|
|
declare var URLSearchParams: {
|
|
prototype: URLSearchParams;
|
|
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
|
|
toString(): string;
|
|
};
|
|
|
|
interface VTTCue extends TextTrackCue {
|
|
align: AlignSetting;
|
|
line: LineAndPositionSetting;
|
|
lineAlign: LineAlignSetting;
|
|
position: LineAndPositionSetting;
|
|
positionAlign: PositionAlignSetting;
|
|
region: VTTRegion | null;
|
|
size: number;
|
|
snapToLines: boolean;
|
|
text: string;
|
|
vertical: DirectionSetting;
|
|
getCueAsHTML(): DocumentFragment;
|
|
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var VTTCue: {
|
|
prototype: VTTCue;
|
|
new(startTime: number, endTime: number, text: string): VTTCue;
|
|
};
|
|
|
|
interface VTTRegion {
|
|
id: string;
|
|
lines: number;
|
|
regionAnchorX: number;
|
|
regionAnchorY: number;
|
|
scroll: ScrollSetting;
|
|
viewportAnchorX: number;
|
|
viewportAnchorY: number;
|
|
width: number;
|
|
}
|
|
|
|
declare var VTTRegion: {
|
|
prototype: VTTRegion;
|
|
new(): VTTRegion;
|
|
};
|
|
|
|
/** The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid. */
|
|
interface ValidityState {
|
|
readonly badInput: boolean;
|
|
readonly customError: boolean;
|
|
readonly patternMismatch: boolean;
|
|
readonly rangeOverflow: boolean;
|
|
readonly rangeUnderflow: boolean;
|
|
readonly stepMismatch: boolean;
|
|
readonly tooLong: boolean;
|
|
readonly tooShort: boolean;
|
|
readonly typeMismatch: boolean;
|
|
readonly valid: boolean;
|
|
readonly valueMissing: boolean;
|
|
}
|
|
|
|
declare var ValidityState: {
|
|
prototype: ValidityState;
|
|
new(): ValidityState;
|
|
};
|
|
|
|
/** 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;
|
|
/** Available only in secure contexts. */
|
|
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
|
|
/** Available only in secure contexts. */
|
|
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
|
|
/** @deprecated */
|
|
onorientationchange: ((this: Window, ev: Event) => any) | null;
|
|
opener: any;
|
|
/** @deprecated */
|
|
readonly orientation: number;
|
|
readonly outerHeight: number;
|
|
readonly outerWidth: number;
|
|
/** @deprecated This is a legacy alias of \`scrollX\`. */
|
|
readonly pageXOffset: number;
|
|
/** @deprecated This is a legacy alias of \`scrollY\`. */
|
|
readonly pageYOffset: number;
|
|
/**
|
|
* Refers to either the parent WindowProxy, or itself.
|
|
*
|
|
* It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
|
|
*/
|
|
readonly parent: WindowProxy;
|
|
/** Returns true if the personal bar is visible; otherwise, returns false. */
|
|
readonly personalbar: BarProp;
|
|
readonly screen: Screen;
|
|
readonly screenLeft: number;
|
|
readonly screenTop: number;
|
|
readonly screenX: number;
|
|
readonly screenY: number;
|
|
readonly scrollX: number;
|
|
readonly scrollY: number;
|
|
/** Returns true if the scrollbars are visible; otherwise, returns false. */
|
|
readonly scrollbars: BarProp;
|
|
readonly self: Window & typeof globalThis;
|
|
readonly speechSynthesis: SpeechSynthesis;
|
|
/** @deprecated */
|
|
status: string;
|
|
/** Returns true if the status bar is visible; otherwise, returns false. */
|
|
readonly statusbar: BarProp;
|
|
/** Returns true if the toolbar is visible; otherwise, returns false. */
|
|
readonly toolbar: BarProp;
|
|
readonly top: WindowProxy | null;
|
|
readonly visualViewport: VisualViewport;
|
|
readonly window: Window & typeof globalThis;
|
|
alert(message?: any): void;
|
|
blur(): void;
|
|
cancelIdleCallback(handle: number): void;
|
|
/** @deprecated */
|
|
captureEvents(): void;
|
|
/** Closes the window. */
|
|
close(): void;
|
|
confirm(message?: string): boolean;
|
|
/** Moves the focus to the window's browsing context, if any. */
|
|
focus(): void;
|
|
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
|
|
getSelection(): Selection | null;
|
|
matchMedia(query: string): MediaQueryList;
|
|
moveBy(x: number, y: number): void;
|
|
moveTo(x: number, y: number): void;
|
|
open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
|
|
/**
|
|
* Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
|
|
*
|
|
* Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
|
|
*
|
|
* A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
|
|
*
|
|
* If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
|
|
*
|
|
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
|
|
*/
|
|
postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
|
|
postMessage(message: any, options?: WindowPostMessageOptions): void;
|
|
print(): void;
|
|
prompt(message?: string, _default?: string): string | null;
|
|
/** @deprecated */
|
|
releaseEvents(): void;
|
|
requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
|
|
resizeBy(x: number, y: number): void;
|
|
resizeTo(width: number, height: number): void;
|
|
scroll(options?: ScrollToOptions): void;
|
|
scroll(x: number, y: number): void;
|
|
scrollBy(options?: ScrollToOptions): void;
|
|
scrollBy(x: number, y: number): void;
|
|
scrollTo(options?: ScrollToOptions): void;
|
|
scrollTo(x: number, y: number): void;
|
|
/** Cancels the document load. */
|
|
stop(): void;
|
|
addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
[index: number]: Window;
|
|
}
|
|
|
|
declare var Window: {
|
|
prototype: Window;
|
|
new(): Window;
|
|
};
|
|
|
|
interface WindowEventHandlersEventMap {
|
|
"afterprint": Event;
|
|
"beforeprint": Event;
|
|
"beforeunload": BeforeUnloadEvent;
|
|
"gamepadconnected": GamepadEvent;
|
|
"gamepaddisconnected": GamepadEvent;
|
|
"hashchange": HashChangeEvent;
|
|
"languagechange": Event;
|
|
"message": MessageEvent;
|
|
"messageerror": MessageEvent;
|
|
"offline": Event;
|
|
"online": Event;
|
|
"pagehide": PageTransitionEvent;
|
|
"pageshow": PageTransitionEvent;
|
|
"popstate": PopStateEvent;
|
|
"rejectionhandled": PromiseRejectionEvent;
|
|
"storage": StorageEvent;
|
|
"unhandledrejection": PromiseRejectionEvent;
|
|
"unload": Event;
|
|
}
|
|
|
|
interface WindowEventHandlers {
|
|
onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;
|
|
ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
|
|
ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
|
|
onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;
|
|
onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
|
|
onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
|
|
onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
|
|
onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
|
|
onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
|
|
onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
|
|
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
|
|
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
|
|
onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
interface WindowLocalStorage {
|
|
readonly localStorage: Storage;
|
|
}
|
|
|
|
interface WindowOrWorkerGlobalScope {
|
|
/** Available only in secure contexts. */
|
|
readonly caches: CacheStorage;
|
|
readonly crossOriginIsolated: boolean;
|
|
readonly crypto: Crypto;
|
|
readonly indexedDB: IDBFactory;
|
|
readonly isSecureContext: boolean;
|
|
readonly origin: string;
|
|
readonly performance: Performance;
|
|
atob(data: string): string;
|
|
btoa(data: string): string;
|
|
clearInterval(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?: StructuredSerializeOptions): void;
|
|
/** Aborts worker's associated global environment. */
|
|
terminate(): void;
|
|
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var Worker: {
|
|
prototype: Worker;
|
|
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
|
|
};
|
|
|
|
/** Available only in secure contexts. */
|
|
interface Worklet {
|
|
/**
|
|
* Loads and executes the module script given by moduleURL into all of worklet's global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes.
|
|
*
|
|
* The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".
|
|
*
|
|
* Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing.
|
|
*/
|
|
addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;
|
|
}
|
|
|
|
declare var Worklet: {
|
|
prototype: Worklet;
|
|
new(): Worklet;
|
|
};
|
|
|
|
/** This Streams API interface provides\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(message?: string): CompileError;
|
|
(message?: string): CompileError;
|
|
};
|
|
|
|
interface Global {
|
|
value: any;
|
|
valueOf(): any;
|
|
}
|
|
|
|
var Global: {
|
|
prototype: Global;
|
|
new(descriptor: GlobalDescriptor, v?: any): Global;
|
|
};
|
|
|
|
interface Instance {
|
|
readonly exports: Exports;
|
|
}
|
|
|
|
var Instance: {
|
|
prototype: Instance;
|
|
new(module: Module, importObject?: Imports): Instance;
|
|
};
|
|
|
|
interface LinkError extends Error {
|
|
}
|
|
|
|
var LinkError: {
|
|
prototype: LinkError;
|
|
new(message?: string): LinkError;
|
|
(message?: string): LinkError;
|
|
};
|
|
|
|
interface Memory {
|
|
readonly buffer: ArrayBuffer;
|
|
grow(delta: number): number;
|
|
}
|
|
|
|
var Memory: {
|
|
prototype: Memory;
|
|
new(descriptor: MemoryDescriptor): Memory;
|
|
};
|
|
|
|
interface Module {
|
|
}
|
|
|
|
var Module: {
|
|
prototype: Module;
|
|
new(bytes: BufferSource): Module;
|
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
};
|
|
|
|
interface RuntimeError extends Error {
|
|
}
|
|
|
|
var RuntimeError: {
|
|
prototype: RuntimeError;
|
|
new(message?: string): RuntimeError;
|
|
(message?: string): RuntimeError;
|
|
};
|
|
|
|
interface Table {
|
|
readonly length: number;
|
|
get(index: number): any;
|
|
grow(delta: number, value?: any): number;
|
|
set(index: number, value?: any): void;
|
|
}
|
|
|
|
var Table: {
|
|
prototype: Table;
|
|
new(descriptor: TableDescriptor, value?: any): Table;
|
|
};
|
|
|
|
interface GlobalDescriptor {
|
|
mutable?: boolean;
|
|
value: ValueType;
|
|
}
|
|
|
|
interface MemoryDescriptor {
|
|
initial: number;
|
|
maximum?: number;
|
|
shared?: boolean;
|
|
}
|
|
|
|
interface ModuleExportDescriptor {
|
|
kind: ImportExportKind;
|
|
name: string;
|
|
}
|
|
|
|
interface ModuleImportDescriptor {
|
|
kind: ImportExportKind;
|
|
module: string;
|
|
name: string;
|
|
}
|
|
|
|
interface TableDescriptor {
|
|
element: TableKind;
|
|
initial: number;
|
|
maximum?: number;
|
|
}
|
|
|
|
interface WebAssemblyInstantiatedSource {
|
|
instance: Instance;
|
|
module: Module;
|
|
}
|
|
|
|
type ImportExportKind = "function" | "global" | "memory" | "table";
|
|
type TableKind = "anyfunc" | "externref";
|
|
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
|
|
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;
|
|
/** Available only in secure contexts. */
|
|
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
|
|
/** Available only in secure contexts. */
|
|
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
|
|
/** @deprecated */
|
|
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
|
|
declare var opener: any;
|
|
/** @deprecated */
|
|
declare var orientation: number;
|
|
declare var outerHeight: number;
|
|
declare var outerWidth: number;
|
|
/** @deprecated This is a legacy alias of \`scrollX\`. */
|
|
declare var pageXOffset: number;
|
|
/** @deprecated This is a legacy alias of \`scrollY\`. */
|
|
declare var pageYOffset: number;
|
|
/**
|
|
* Refers to either the parent WindowProxy, or itself.
|
|
*
|
|
* It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
|
|
*/
|
|
declare var parent: WindowProxy;
|
|
/** Returns true if the personal bar is visible; otherwise, returns false. */
|
|
declare var personalbar: BarProp;
|
|
declare var screen: Screen;
|
|
declare var screenLeft: number;
|
|
declare var screenTop: number;
|
|
declare var screenX: number;
|
|
declare var screenY: number;
|
|
declare var scrollX: number;
|
|
declare var scrollY: number;
|
|
/** Returns true if the scrollbars are visible; otherwise, returns false. */
|
|
declare var scrollbars: BarProp;
|
|
declare var self: Window & typeof globalThis;
|
|
declare var speechSynthesis: SpeechSynthesis;
|
|
/** @deprecated */
|
|
declare var status: string;
|
|
/** Returns true if the status bar is visible; otherwise, returns false. */
|
|
declare var statusbar: BarProp;
|
|
/** Returns true if the toolbar is visible; otherwise, returns false. */
|
|
declare var toolbar: BarProp;
|
|
declare var top: WindowProxy | null;
|
|
declare var visualViewport: VisualViewport;
|
|
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: SubmitEvent) => any) | null;
|
|
/**
|
|
* Occurs if the load operation has been intentionally halted.
|
|
* @param ev The event.
|
|
*/
|
|
declare var onsuspend: ((this: Window, ev: Event) => any) | null;
|
|
/**
|
|
* Occurs to indicate the current playback position.
|
|
* @param ev The event.
|
|
*/
|
|
declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
|
|
declare var ontoggle: ((this: Window, ev: Event) => any) | null;
|
|
declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
|
|
declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;
|
|
declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;
|
|
declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;
|
|
declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
|
|
declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
|
|
declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
|
|
declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;
|
|
/**
|
|
* Occurs when the volume is changed, or playback is muted or unmuted.
|
|
* @param ev The event.
|
|
*/
|
|
declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
|
|
/**
|
|
* Occurs when playback stops because the next frame of a video resource is not available.
|
|
* @param ev The event.
|
|
*/
|
|
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
|
|
/** @deprecated This is a legacy alias of \`onanimationend\`. */
|
|
declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
|
|
/** @deprecated This is a legacy alias of \`onanimationiteration\`. */
|
|
declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
|
|
/** @deprecated This is a legacy alias of \`onanimationstart\`. */
|
|
declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;
|
|
/** @deprecated This is a legacy alias of \`ontransitionend\`. */
|
|
declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;
|
|
declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
|
|
declare var onafterprint: ((this: Window, ev: Event) => any) | null;
|
|
declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
|
|
declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
|
|
declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;
|
|
declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;
|
|
declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;
|
|
declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
|
|
declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
|
|
declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;
|
|
declare var onoffline: ((this: Window, ev: Event) => any) | null;
|
|
declare var ononline: ((this: Window, ev: Event) => any) | null;
|
|
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
|
|
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
|
|
declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
|
|
declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
|
|
declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
|
|
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
|
|
declare var onunload: ((this: Window, ev: Event) => any) | null;
|
|
declare var localStorage: Storage;
|
|
/** Available only in secure contexts. */
|
|
declare var caches: CacheStorage;
|
|
declare var crossOriginIsolated: boolean;
|
|
declare var crypto: Crypto;
|
|
declare var indexedDB: IDBFactory;
|
|
declare var isSecureContext: boolean;
|
|
declare var origin: string;
|
|
declare var performance: Performance;
|
|
declare function atob(data: string): string;
|
|
declare function btoa(data: string): string;
|
|
declare function clearInterval(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 = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
|
|
type PermissionState = "denied" | "granted" | "prompt";
|
|
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
|
|
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
|
|
type PredefinedColorSpace = "display-p3" | "srgb";
|
|
type PremultiplyAlpha = "default" | "none" | "premultiply";
|
|
type PresentationStyle = "attachment" | "inline" | "unspecified";
|
|
type PublicKeyCredentialType = "public-key";
|
|
type PushEncryptionKeyName = "auth" | "p256dh";
|
|
type 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";
|
|
`,Oi["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 {
|
|
/** Available only in secure contexts. */
|
|
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
|
|
vibrate(pattern: Iterable<number>): boolean;
|
|
}
|
|
|
|
interface NodeList {
|
|
[Symbol.iterator](): IterableIterator<Node>;
|
|
/** Returns an array of key, value pairs for every entry in the list. */
|
|
entries(): IterableIterator<[number, Node]>;
|
|
/** Returns an list of keys in the list. */
|
|
keys(): IterableIterator<number>;
|
|
/** Returns an list of values in the list. */
|
|
values(): IterableIterator<Node>;
|
|
}
|
|
|
|
interface NodeListOf<TNode extends Node> {
|
|
[Symbol.iterator](): IterableIterator<TNode>;
|
|
/** Returns an array of key, value pairs for every entry in the list. */
|
|
entries(): IterableIterator<[number, TNode]>;
|
|
/** Returns an list of keys in the list. */
|
|
keys(): IterableIterator<number>;
|
|
/** Returns an list of values in the list. */
|
|
values(): IterableIterator<TNode>;
|
|
}
|
|
|
|
interface Plugin {
|
|
[Symbol.iterator](): IterableIterator<MimeType>;
|
|
}
|
|
|
|
interface PluginArray {
|
|
[Symbol.iterator](): IterableIterator<Plugin>;
|
|
}
|
|
|
|
interface RTCStatsReport extends ReadonlyMap<string, any> {
|
|
}
|
|
|
|
interface SVGLengthList {
|
|
[Symbol.iterator](): IterableIterator<SVGLength>;
|
|
}
|
|
|
|
interface SVGNumberList {
|
|
[Symbol.iterator](): IterableIterator<SVGNumber>;
|
|
}
|
|
|
|
interface SVGPointList {
|
|
[Symbol.iterator](): IterableIterator<DOMPoint>;
|
|
}
|
|
|
|
interface SVGStringList {
|
|
[Symbol.iterator](): IterableIterator<string>;
|
|
}
|
|
|
|
interface SVGTransformList {
|
|
[Symbol.iterator](): IterableIterator<SVGTransform>;
|
|
}
|
|
|
|
interface SourceBufferList {
|
|
[Symbol.iterator](): IterableIterator<SourceBuffer>;
|
|
}
|
|
|
|
interface SpeechRecognitionResult {
|
|
[Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
|
|
}
|
|
|
|
interface SpeechRecognitionResultList {
|
|
[Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
|
|
}
|
|
|
|
interface StyleSheetList {
|
|
[Symbol.iterator](): IterableIterator<CSSStyleSheet>;
|
|
}
|
|
|
|
interface SubtleCrypto {
|
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: 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;
|
|
}
|
|
`,Oi["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;
|
|
`,Oi["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
|
|
* @deprecated A legacy feature for browser compatibility
|
|
* @param name
|
|
*/
|
|
anchor(name: string): string;
|
|
|
|
/**
|
|
* Returns a \`<big>\` HTML element
|
|
* @deprecated A legacy feature for browser compatibility
|
|
*/
|
|
big(): string;
|
|
|
|
/**
|
|
* Returns a \`<blink>\` HTML element
|
|
* @deprecated A legacy feature for browser compatibility
|
|
*/
|
|
blink(): string;
|
|
|
|
/**
|
|
* Returns a \`<b>\` HTML element
|
|
* @deprecated A legacy feature for browser compatibility
|
|
*/
|
|
bold(): string;
|
|
|
|
/**
|
|
* Returns a \`<tt>\` HTML element
|
|
* @deprecated A legacy feature for browser compatibility
|
|
*/
|
|
fixed(): string;
|
|
|
|
/**
|
|
* Returns a \`<font>\` HTML element and sets the color attribute value
|
|
* @deprecated A legacy feature for browser compatibility
|
|
*/
|
|
fontcolor(color: string): string;
|
|
|
|
/**
|
|
* Returns a \`<font>\` HTML element and sets the size attribute value
|
|
* @deprecated A legacy feature for browser compatibility
|
|
*/
|
|
fontsize(size: number): string;
|
|
|
|
/**
|
|
* Returns a \`<font>\` HTML element and sets the size attribute value
|
|
* @deprecated A legacy feature for browser compatibility
|
|
*/
|
|
fontsize(size: string): string;
|
|
|
|
/**
|
|
* Returns an \`<i>\` HTML element
|
|
* @deprecated A legacy feature for browser compatibility
|
|
*/
|
|
italics(): string;
|
|
|
|
/**
|
|
* Returns an \`<a>\` HTML element and sets the href attribute value
|
|
* @deprecated A legacy feature for browser compatibility
|
|
*/
|
|
link(url: string): string;
|
|
|
|
/**
|
|
* Returns a \`<small>\` HTML element
|
|
* @deprecated A legacy feature for browser compatibility
|
|
*/
|
|
small(): string;
|
|
|
|
/**
|
|
* Returns a \`<strike>\` HTML element
|
|
* @deprecated A legacy feature for browser compatibility
|
|
*/
|
|
strike(): string;
|
|
|
|
/**
|
|
* Returns a \`<sub>\` HTML element
|
|
* @deprecated A legacy feature for browser compatibility
|
|
*/
|
|
sub(): string;
|
|
|
|
/**
|
|
* Returns a \`<sup>\` HTML element
|
|
* @deprecated A legacy feature for browser compatibility
|
|
*/
|
|
sup(): string;
|
|
}
|
|
|
|
interface StringConstructor {
|
|
/**
|
|
* Return the String value whose elements are, in order, the elements in the List elements.
|
|
* If length is 0, the empty string is returned.
|
|
*/
|
|
fromCodePoint(...codePoints: number[]): string;
|
|
|
|
/**
|
|
* String.raw is usually used as a tag function of a Tagged Template String. When called as
|
|
* such, the first argument will be a well formed template call site object and the rest
|
|
* parameter will contain the substitution values. It can also be called directly, for example,
|
|
* to interleave strings and values from your own tag function, and in this case the only thing
|
|
* it needs from the first argument is the raw property.
|
|
* @param template A well-formed template string call site representation.
|
|
* @param substitutions A set of substitution values.
|
|
*/
|
|
raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string;
|
|
}
|
|
`,Oi["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" />
|
|
`,Oi["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;
|
|
}
|
|
`,Oi["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<Awaited<T>[]>;
|
|
|
|
/**
|
|
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
* or rejected.
|
|
* @param values An iterable of Promises.
|
|
* @returns A new Promise.
|
|
*/
|
|
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
|
|
}
|
|
|
|
interface String {
|
|
/** Iterator */
|
|
[Symbol.iterator](): IterableIterator<string>;
|
|
}
|
|
|
|
interface Int8Array {
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
/**
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
*/
|
|
entries(): IterableIterator<[number, number]>;
|
|
/**
|
|
* Returns an list of keys in the array
|
|
*/
|
|
keys(): IterableIterator<number>;
|
|
/**
|
|
* Returns an list of values in the array
|
|
*/
|
|
values(): IterableIterator<number>;
|
|
}
|
|
|
|
interface Int8ArrayConstructor {
|
|
new (elements: Iterable<number>): Int8Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
|
|
}
|
|
|
|
interface Uint8Array {
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
/**
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
*/
|
|
entries(): IterableIterator<[number, number]>;
|
|
/**
|
|
* Returns an list of keys in the array
|
|
*/
|
|
keys(): IterableIterator<number>;
|
|
/**
|
|
* Returns an list of values in the array
|
|
*/
|
|
values(): IterableIterator<number>;
|
|
}
|
|
|
|
interface Uint8ArrayConstructor {
|
|
new (elements: Iterable<number>): Uint8Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
|
|
}
|
|
|
|
interface Uint8ClampedArray {
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
/**
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
*/
|
|
entries(): IterableIterator<[number, number]>;
|
|
|
|
/**
|
|
* Returns an list of keys in the array
|
|
*/
|
|
keys(): IterableIterator<number>;
|
|
|
|
/**
|
|
* Returns an list of values in the array
|
|
*/
|
|
values(): IterableIterator<number>;
|
|
}
|
|
|
|
interface Uint8ClampedArrayConstructor {
|
|
new (elements: Iterable<number>): Uint8ClampedArray;
|
|
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
|
|
}
|
|
|
|
interface Int16Array {
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
/**
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
*/
|
|
entries(): IterableIterator<[number, number]>;
|
|
|
|
/**
|
|
* Returns an list of keys in the array
|
|
*/
|
|
keys(): IterableIterator<number>;
|
|
|
|
/**
|
|
* Returns an list of values in the array
|
|
*/
|
|
values(): IterableIterator<number>;
|
|
}
|
|
|
|
interface Int16ArrayConstructor {
|
|
new (elements: Iterable<number>): Int16Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
|
|
}
|
|
|
|
interface Uint16Array {
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
/**
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
*/
|
|
entries(): IterableIterator<[number, number]>;
|
|
/**
|
|
* Returns an list of keys in the array
|
|
*/
|
|
keys(): IterableIterator<number>;
|
|
/**
|
|
* Returns an list of values in the array
|
|
*/
|
|
values(): IterableIterator<number>;
|
|
}
|
|
|
|
interface Uint16ArrayConstructor {
|
|
new (elements: Iterable<number>): Uint16Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
|
|
}
|
|
|
|
interface Int32Array {
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
/**
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
*/
|
|
entries(): IterableIterator<[number, number]>;
|
|
/**
|
|
* Returns an list of keys in the array
|
|
*/
|
|
keys(): IterableIterator<number>;
|
|
/**
|
|
* Returns an list of values in the array
|
|
*/
|
|
values(): IterableIterator<number>;
|
|
}
|
|
|
|
interface Int32ArrayConstructor {
|
|
new (elements: Iterable<number>): Int32Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
|
|
}
|
|
|
|
interface Uint32Array {
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
/**
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
*/
|
|
entries(): IterableIterator<[number, number]>;
|
|
/**
|
|
* Returns an list of keys in the array
|
|
*/
|
|
keys(): IterableIterator<number>;
|
|
/**
|
|
* Returns an list of values in the array
|
|
*/
|
|
values(): IterableIterator<number>;
|
|
}
|
|
|
|
interface Uint32ArrayConstructor {
|
|
new (elements: Iterable<number>): Uint32Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
|
|
}
|
|
|
|
interface Float32Array {
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
/**
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
*/
|
|
entries(): IterableIterator<[number, number]>;
|
|
/**
|
|
* Returns an list of keys in the array
|
|
*/
|
|
keys(): IterableIterator<number>;
|
|
/**
|
|
* Returns an list of values in the array
|
|
*/
|
|
values(): IterableIterator<number>;
|
|
}
|
|
|
|
interface Float32ArrayConstructor {
|
|
new (elements: Iterable<number>): Float32Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
|
|
}
|
|
|
|
interface Float64Array {
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
/**
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
*/
|
|
entries(): IterableIterator<[number, number]>;
|
|
/**
|
|
* Returns an list of keys in the array
|
|
*/
|
|
keys(): IterableIterator<number>;
|
|
/**
|
|
* Returns an list of values in the array
|
|
*/
|
|
values(): IterableIterator<number>;
|
|
}
|
|
|
|
interface Float64ArrayConstructor {
|
|
new (elements: Iterable<number>): Float64Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
|
|
}
|
|
`,Oi["lib.es2015.promise.d.ts"]=`/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
interface PromiseConstructor {
|
|
/**
|
|
* A reference to the prototype.
|
|
*/
|
|
readonly prototype: Promise<any>;
|
|
|
|
/**
|
|
* Creates a new Promise.
|
|
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
|
|
* a resolve callback used to resolve the promise with a value or the result of another promise,
|
|
* and a reject callback used to reject the promise with a provided reason or error.
|
|
*/
|
|
new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
|
|
|
|
/**
|
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
* resolve, or rejected when any Promise is rejected.
|
|
* @param values An array of Promises.
|
|
* @returns A new Promise.
|
|
*/
|
|
all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>;
|
|
|
|
// see: lib.es2015.iterable.d.ts
|
|
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;
|
|
|
|
/**
|
|
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
* or rejected.
|
|
* @param values An array of Promises.
|
|
* @returns A new Promise.
|
|
*/
|
|
race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
|
|
|
|
// see: lib.es2015.iterable.d.ts
|
|
// race<T>(values: Iterable<T>): 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;
|
|
`,Oi["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;
|
|
`,Oi["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;
|
|
}
|
|
`,Oi["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;`,Oi["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;
|
|
}
|
|
`,Oi["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;
|
|
}`,Oi["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" />`,Oi["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" />`,Oi["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" />
|
|
`,Oi["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" />`,Oi["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[];
|
|
}
|
|
}
|
|
`,Oi["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 };
|
|
}
|
|
`,Oi["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;
|
|
`,Oi["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;
|
|
}
|
|
`,Oi["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;
|
|
}
|
|
`,Oi["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;
|
|
}
|
|
`,Oi["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>;
|
|
}`,Oi["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" />
|
|
`,Oi["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" />`,Oi["lib.es2018.intl.d.ts"]=`/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
declare namespace Intl {
|
|
|
|
// http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories
|
|
type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";
|
|
type PluralRuleType = "cardinal" | "ordinal";
|
|
|
|
interface PluralRulesOptions {
|
|
localeMatcher?: "lookup" | "best fit" | undefined;
|
|
type?: PluralRuleType | undefined;
|
|
minimumIntegerDigits?: number | undefined;
|
|
minimumFractionDigits?: number | undefined;
|
|
maximumFractionDigits?: number | undefined;
|
|
minimumSignificantDigits?: number | undefined;
|
|
maximumSignificantDigits?: number | undefined;
|
|
}
|
|
|
|
interface ResolvedPluralRulesOptions {
|
|
locale: string;
|
|
pluralCategories: LDMLPluralRule[];
|
|
type: PluralRuleType;
|
|
minimumIntegerDigits: number;
|
|
minimumFractionDigits: number;
|
|
maximumFractionDigits: number;
|
|
minimumSignificantDigits?: number;
|
|
maximumSignificantDigits?: number;
|
|
}
|
|
|
|
interface PluralRules {
|
|
resolvedOptions(): ResolvedPluralRulesOptions;
|
|
select(n: number): LDMLPluralRule;
|
|
}
|
|
|
|
const PluralRules: {
|
|
new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
|
|
(locales?: string | string[], options?: PluralRulesOptions): PluralRules;
|
|
|
|
supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit" }): string[];
|
|
};
|
|
|
|
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
|
|
type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
|
|
type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
|
|
type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
|
|
|
|
interface NumberFormatPart {
|
|
type: NumberFormatPartTypes;
|
|
value: string;
|
|
}
|
|
|
|
interface NumberFormat {
|
|
formatToParts(number?: number | bigint): NumberFormatPart[];
|
|
}
|
|
}
|
|
`,Oi["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>
|
|
}
|
|
`,Oi["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;
|
|
}`,Oi["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>[]
|
|
}
|
|
`,Oi["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" />
|
|
`,Oi["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" />
|
|
`,Oi["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;
|
|
}
|
|
`,Oi["lib.es2019.string.d.ts"]=`/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
interface String {
|
|
/** Removes the trailing white space and line terminator characters from a string. */
|
|
trimEnd(): string;
|
|
|
|
/** Removes the leading white space and line terminator characters from a string. */
|
|
trimStart(): string;
|
|
|
|
/**
|
|
* Removes the leading white space and line terminator characters from a string.
|
|
* @deprecated A legacy feature for browser compatibility. Use \`trimStart\` instead
|
|
*/
|
|
trimLeft(): string;
|
|
|
|
/**
|
|
* Removes the trailing white space and line terminator characters from a string.
|
|
* @deprecated A legacy feature for browser compatibility. Use \`trimEnd\` instead
|
|
*/
|
|
trimRight(): string;
|
|
}
|
|
`,Oi["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;
|
|
}
|
|
`,Oi["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;
|
|
}
|
|
}
|
|
`,Oi["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" />
|
|
`,Oi["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" />
|
|
`,Oi["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).
|
|
*/
|
|
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).
|
|
*/
|
|
type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";
|
|
|
|
/**
|
|
* The format of output message.
|
|
*
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
|
|
*/
|
|
type RelativeTimeFormatNumeric = "always" | "auto";
|
|
|
|
/**
|
|
* The length of the internationalized message.
|
|
*
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
|
|
*/
|
|
type RelativeTimeFormatStyle = "long" | "short" | "narrow";
|
|
|
|
/**
|
|
* [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition.
|
|
*
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
|
|
*/
|
|
type BCP47LanguageTag = string;
|
|
|
|
/**
|
|
* An object with some or all of properties of \`options\` parameter
|
|
* of \`Intl.RelativeTimeFormat\` constructor.
|
|
*
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
|
|
*/
|
|
interface RelativeTimeFormatOptions {
|
|
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
|
|
localeMatcher?: RelativeTimeFormatLocaleMatcher;
|
|
/** The format of output message. */
|
|
numeric?: RelativeTimeFormatNumeric;
|
|
/** The length of the internationalized message. */
|
|
style?: RelativeTimeFormatStyle;
|
|
}
|
|
|
|
/**
|
|
* An object with properties reflecting the locale
|
|
* and formatting options computed during initialization
|
|
* of the \`Intl.RelativeTimeFormat\` object
|
|
*
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
|
|
*/
|
|
interface ResolvedRelativeTimeFormatOptions {
|
|
locale: UnicodeBCP47LocaleIdentifier;
|
|
style: RelativeTimeFormatStyle;
|
|
numeric: RelativeTimeFormatNumeric;
|
|
numberingSystem: string;
|
|
}
|
|
|
|
/**
|
|
* An object representing the relative time format in parts
|
|
* that can be used for custom locale-aware formatting.
|
|
*
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
|
|
*/
|
|
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.
|
|
*
|
|
* @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
|
|
*
|
|
* @returns {string} Internationalized relative time message as string
|
|
*
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
|
|
*/
|
|
format(value: number, unit: RelativeTimeFormatUnit): string;
|
|
|
|
/**
|
|
* Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.
|
|
*
|
|
* @param value - Numeric value to use in the internationalized relative time message
|
|
*
|
|
* @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
|
|
*
|
|
* @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
|
|
*
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
|
|
*/
|
|
formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];
|
|
|
|
/**
|
|
* Provides access to the locale and options computed during initialization of this \`Intl.RelativeTimeFormat\` object.
|
|
*
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
|
|
*/
|
|
resolvedOptions(): ResolvedRelativeTimeFormatOptions;
|
|
}
|
|
|
|
/**
|
|
* The [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
|
|
* object is a constructor for objects that enable language-sensitive relative time formatting.
|
|
*
|
|
* [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
|
|
*/
|
|
const RelativeTimeFormat: {
|
|
/**
|
|
* Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects
|
|
*
|
|
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
|
* For the general form and interpretation of the locales argument,
|
|
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
|
*
|
|
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
|
|
* with some or all of options of \`RelativeTimeFormatOptions\`.
|
|
*
|
|
* @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
|
|
*
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
|
|
*/
|
|
new(
|
|
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
|
|
options?: RelativeTimeFormatOptions,
|
|
): RelativeTimeFormat;
|
|
|
|
/**
|
|
* Returns an array containing those of the provided locales
|
|
* that are supported in date and time formatting
|
|
* without having to fall back to the runtime's default locale.
|
|
*
|
|
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
|
* For the general form and interpretation of the locales argument,
|
|
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
|
*
|
|
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
|
|
* with some or all of options of the formatting.
|
|
*
|
|
* @returns An array containing those of the provided locales
|
|
* that are supported in date and time formatting
|
|
* without having to fall back to the runtime's default locale.
|
|
*
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
|
|
*/
|
|
supportedLocalesOf(
|
|
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
|
|
options?: RelativeTimeFormatOptions,
|
|
): UnicodeBCP47LocaleIdentifier[];
|
|
};
|
|
|
|
interface NumberFormatOptions {
|
|
compactDisplay?: "short" | "long" | undefined;
|
|
notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
|
|
signDisplay?: "auto" | "never" | "always" | undefined;
|
|
unit?: string | undefined;
|
|
unitDisplay?: "short" | "long" | "narrow" | undefined;
|
|
}
|
|
|
|
interface ResolvedNumberFormatOptions {
|
|
compactDisplay?: "short" | "long";
|
|
notation?: "standard" | "scientific" | "engineering" | "compact";
|
|
signDisplay?: "auto" | "never" | "always";
|
|
unit?: string;
|
|
unitDisplay?: "short" | "long" | "narrow";
|
|
}
|
|
|
|
interface DateTimeFormatOptions {
|
|
calendar?: string | undefined;
|
|
dayPeriod?: "narrow" | "short" | "long" | undefined;
|
|
numberingSystem?: string | undefined;
|
|
|
|
dateStyle?: "full" | "long" | "medium" | "short" | undefined;
|
|
timeStyle?: "full" | "long" | "medium" | "short" | undefined;
|
|
hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
|
|
}
|
|
|
|
type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24";
|
|
type LocaleCollationCaseFirst = "upper" | "lower" | "false";
|
|
|
|
interface LocaleOptions {
|
|
/** A string containing the language, and the script and region if available. */
|
|
baseName?: string;
|
|
/** The part of the Locale that indicates the locale's calendar era. */
|
|
calendar?: string;
|
|
/** Flag that defines whether case is taken into account for the locale's collation rules. */
|
|
caseFirst?: LocaleCollationCaseFirst;
|
|
/** The collation type used for sorting */
|
|
collation?: string;
|
|
/** The time keeping format convention used by the locale. */
|
|
hourCycle?: LocaleHourCycleKey;
|
|
/** The primary language subtag associated with the locale. */
|
|
language?: string;
|
|
/** The numeral system used by the locale. */
|
|
numberingSystem?: string;
|
|
/** Flag that defines whether the locale has special collation handling for numeric characters. */
|
|
numeric?: boolean;
|
|
/** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */
|
|
region?: string;
|
|
/** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */
|
|
script?: string;
|
|
}
|
|
|
|
interface Locale extends LocaleOptions {
|
|
/** Gets the most likely values for the language, script, and region of the locale based on existing values. */
|
|
maximize(): Locale;
|
|
/** Attempts to remove information about the locale that would be added by calling \`Locale.maximize()\`. */
|
|
minimize(): Locale;
|
|
/** Returns the locale's full locale identifier string. */
|
|
toString(): BCP47LanguageTag;
|
|
}
|
|
|
|
/**
|
|
* Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
|
|
* objects
|
|
*
|
|
* @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).
|
|
* For the general form and interpretation of the locales argument,
|
|
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
|
*
|
|
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.
|
|
*
|
|
* @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
|
|
*
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
|
|
*/
|
|
const Locale: {
|
|
new (tag?: BCP47LanguageTag, options?: LocaleOptions): Locale;
|
|
};
|
|
|
|
interface DisplayNamesOptions {
|
|
localeMatcher: RelativeTimeFormatLocaleMatcher;
|
|
style: RelativeTimeFormatStyle;
|
|
type: "language" | "region" | "script" | "currency";
|
|
fallback: "code" | "none";
|
|
}
|
|
|
|
interface DisplayNames {
|
|
/**
|
|
* Receives a code and returns a string based on the locale and options provided when instantiating
|
|
* [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
|
|
*
|
|
* @param code The \`code\` to provide depends on the \`type\` passed to display name during creation:
|
|
* - If the type is \`"region"\`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),
|
|
* or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).
|
|
* - If the type is \`"script"\`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).
|
|
* - If the type is \`"language"\`, code should be a \`languageCode\` ["-" \`scriptCode\`] ["-" \`regionCode\` ] *("-" \`variant\` )
|
|
* subsequence of the unicode_language_id grammar in [UTS 35's Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier).
|
|
* \`languageCode\` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.
|
|
* - If the type is \`"currency"\`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
|
|
*
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
|
|
*/
|
|
of(code: string): string;
|
|
/**
|
|
* Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
|
|
* [\`Intl/DisplayNames\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
|
|
*
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
|
|
*/
|
|
resolvedOptions(): DisplayNamesOptions;
|
|
}
|
|
|
|
/**
|
|
* The [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
|
|
* object enables the consistent translation of language, region and script display names.
|
|
*
|
|
* [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
|
|
*/
|
|
const DisplayNames: {
|
|
prototype: DisplayNames;
|
|
|
|
/**
|
|
* @param locales A string with a BCP 47 language tag, or an array of such strings.
|
|
* For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
|
|
* page.
|
|
*
|
|
* @param options An object for setting up a display name.
|
|
*
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
|
|
*/
|
|
new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: Partial<DisplayNamesOptions>): DisplayNames;
|
|
|
|
/**
|
|
* Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale.
|
|
*
|
|
* @param locales A string with a BCP 47 language tag, or an array of such strings.
|
|
* For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
|
|
* page.
|
|
*
|
|
* @param options An object with a locale matcher.
|
|
*
|
|
* @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale.
|
|
*
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
|
|
*/
|
|
supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: {localeMatcher: RelativeTimeFormatLocaleMatcher}): BCP47LanguageTag[];
|
|
};
|
|
|
|
}
|
|
`,Oi["lib.es2020.promise.d.ts"]=`/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
interface PromiseFulfilledResult<T> {
|
|
status: "fulfilled";
|
|
value: T;
|
|
}
|
|
|
|
interface PromiseRejectedResult {
|
|
status: "rejected";
|
|
reason: any;
|
|
}
|
|
|
|
type PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;
|
|
|
|
interface PromiseConstructor {
|
|
/**
|
|
* Creates a Promise that is resolved with an array of results when all
|
|
* of the provided Promises resolve or reject.
|
|
* @param values An array of Promises.
|
|
* @returns A new Promise.
|
|
*/
|
|
allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>> }>;
|
|
|
|
/**
|
|
* Creates a Promise that is resolved with an array of results when all
|
|
* of the provided Promises resolve or reject.
|
|
* @param values An array of Promises.
|
|
* @returns A new Promise.
|
|
*/
|
|
allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;
|
|
}
|
|
`,Oi["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;
|
|
}
|
|
`,Oi["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>;
|
|
}
|
|
`,Oi["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>;
|
|
}
|
|
`,Oi["lib.es2021.d.ts"]=`/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
/// <reference lib="es2020" />
|
|
/// <reference lib="es2021.promise" />
|
|
/// <reference lib="es2021.string" />
|
|
/// <reference lib="es2021.weakref" />
|
|
/// <reference lib="es2021.intl" />
|
|
`,Oi["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" />
|
|
`,Oi["lib.es2021.intl.d.ts"]=`/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
declare namespace Intl {
|
|
|
|
interface DateTimeFormatOptions {
|
|
formatMatcher?: "basic" | "best fit" | "best fit" | undefined;
|
|
dateStyle?: "full" | "long" | "medium" | "short" | undefined;
|
|
timeStyle?: "full" | "long" | "medium" | "short" | undefined;
|
|
dayPeriod?: "narrow" | "short" | "long" | undefined;
|
|
fractionalSecondDigits?: 0 | 1 | 2 | 3 | undefined;
|
|
}
|
|
|
|
interface ResolvedDateTimeFormatOptions {
|
|
formatMatcher?: "basic" | "best fit" | "best fit";
|
|
dateStyle?: "full" | "long" | "medium" | "short";
|
|
timeStyle?: "full" | "long" | "medium" | "short";
|
|
hourCycle?: "h11" | "h12" | "h23" | "h24";
|
|
dayPeriod?: "narrow" | "short" | "long";
|
|
fractionalSecondDigits?: 0 | 1 | 2 | 3;
|
|
}
|
|
|
|
interface NumberFormat {
|
|
formatRange(startDate: number | bigint, endDate: number | bigint): string;
|
|
formatRangeToParts(startDate: number | bigint, endDate: number | bigint): NumberFormatPart[];
|
|
}
|
|
}`,Oi["lib.es2021.promise.d.ts"]=`/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
interface AggregateError extends Error {
|
|
errors: any[]
|
|
}
|
|
|
|
interface AggregateErrorConstructor {
|
|
new(errors: Iterable<any>, message?: string): AggregateError;
|
|
(errors: Iterable<any>, message?: string): AggregateError;
|
|
readonly prototype: AggregateError;
|
|
}
|
|
|
|
declare var AggregateError: AggregateErrorConstructor;
|
|
|
|
/**
|
|
* Represents the completion of an asynchronous operation
|
|
*/
|
|
interface PromiseConstructor {
|
|
/**
|
|
* The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
|
|
* @param values An array or iterable of Promises.
|
|
* @returns A new Promise.
|
|
*/
|
|
any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
|
|
|
|
/**
|
|
* The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
|
|
* @param values An array or iterable of Promises.
|
|
* @returns A new Promise.
|
|
*/
|
|
any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>
|
|
}
|
|
`,Oi["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;
|
|
}
|
|
`,Oi["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;
|
|
`,Oi["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.
|
|
* @deprecated A legacy feature for browser compatibility
|
|
* @param string A string value
|
|
*/
|
|
declare function escape(string: string): string;
|
|
|
|
/**
|
|
* Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
|
|
* @deprecated A legacy feature for browser compatibility
|
|
* @param string A string value
|
|
*/
|
|
declare function unescape(string: string): string;
|
|
|
|
interface Symbol {
|
|
/** Returns a string representation of an object. */
|
|
toString(): string;
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
valueOf(): symbol;
|
|
}
|
|
|
|
declare type PropertyKey = string | number | symbol;
|
|
|
|
interface PropertyDescriptor {
|
|
configurable?: boolean;
|
|
enumerable?: boolean;
|
|
value?: any;
|
|
writable?: boolean;
|
|
get?(): any;
|
|
set?(v: any): void;
|
|
}
|
|
|
|
interface PropertyDescriptorMap {
|
|
[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 a 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 f Object on which to lock the attributes.
|
|
*/
|
|
freeze<T extends Function>(f: T): T;
|
|
|
|
/**
|
|
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
|
|
* @param o Object on which to lock the attributes.
|
|
*/
|
|
freeze<T>(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.
|
|
* @deprecated A legacy feature for browser compatibility
|
|
* @param from The starting position of the desired substring. The index of the first character in the string is zero.
|
|
* @param length The number of characters to include in the returned substring.
|
|
*/
|
|
substr(from: number, length?: number): string;
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
valueOf(): string;
|
|
|
|
readonly [index: number]: string;
|
|
}
|
|
|
|
interface StringConstructor {
|
|
new(value?: any): String;
|
|
(value?: any): string;
|
|
readonly prototype: String;
|
|
fromCharCode(...codes: number[]): string;
|
|
}
|
|
|
|
/**
|
|
* Allows manipulation and formatting of text strings and determination and location of substrings within strings.
|
|
*/
|
|
declare var String: StringConstructor;
|
|
|
|
interface Boolean {
|
|
/** Returns the primitive value of the specified object. */
|
|
valueOf(): boolean;
|
|
}
|
|
|
|
interface BooleanConstructor {
|
|
new(value?: any): Boolean;
|
|
<T>(value?: T): boolean;
|
|
readonly prototype: Boolean;
|
|
}
|
|
|
|
declare var Boolean: BooleanConstructor;
|
|
|
|
interface Number {
|
|
/**
|
|
* Returns a string representation of an object.
|
|
* @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
|
|
*/
|
|
toString(radix?: number): string;
|
|
|
|
/**
|
|
* Returns a string representing a number in fixed-point notation.
|
|
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
|
|
*/
|
|
toFixed(fractionDigits?: number): string;
|
|
|
|
/**
|
|
* Returns a string containing a number represented in exponential notation.
|
|
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
|
|
*/
|
|
toExponential(fractionDigits?: number): string;
|
|
|
|
/**
|
|
* Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
|
|
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
|
|
*/
|
|
toPrecision(precision?: number): string;
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
valueOf(): number;
|
|
}
|
|
|
|
interface NumberConstructor {
|
|
new(value?: any): Number;
|
|
(value?: any): number;
|
|
readonly prototype: Number;
|
|
|
|
/** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
|
|
readonly MAX_VALUE: number;
|
|
|
|
/** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
|
|
readonly MIN_VALUE: number;
|
|
|
|
/**
|
|
* A value that is not a number.
|
|
* In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
|
|
*/
|
|
readonly NaN: number;
|
|
|
|
/**
|
|
* A value that is less than the largest negative number that can be represented in JavaScript.
|
|
* JavaScript displays NEGATIVE_INFINITY values as -infinity.
|
|
*/
|
|
readonly NEGATIVE_INFINITY: number;
|
|
|
|
/**
|
|
* A value greater than the largest number that can be represented in JavaScript.
|
|
* JavaScript displays POSITIVE_INFINITY values as infinity.
|
|
*/
|
|
readonly POSITIVE_INFINITY: number;
|
|
}
|
|
|
|
/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
|
|
declare var Number: NumberConstructor;
|
|
|
|
interface TemplateStringsArray extends ReadonlyArray<string> {
|
|
readonly raw: readonly string[];
|
|
}
|
|
|
|
/**
|
|
* The type of \`import.meta\`.
|
|
*
|
|
* If you need to declare that a given property exists on \`import.meta\`,
|
|
* this type may be augmented via interface merging.
|
|
*/
|
|
interface ImportMeta {
|
|
}
|
|
|
|
/**
|
|
* The type for the optional second argument to \`import()\`.
|
|
*
|
|
* If your host environment supports additional options, this type may be
|
|
* augmented via interface merging.
|
|
*/
|
|
interface ImportCallOptions {
|
|
assert?: ImportAssertions;
|
|
}
|
|
|
|
/**
|
|
* The type for the \`assert\` property of the optional second argument to \`import()\`.
|
|
*/
|
|
interface ImportAssertions {
|
|
[key: string]: string;
|
|
}
|
|
|
|
interface Math {
|
|
/** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
|
|
readonly E: number;
|
|
/** The natural logarithm of 10. */
|
|
readonly LN10: number;
|
|
/** The natural logarithm of 2. */
|
|
readonly LN2: number;
|
|
/** The base-2 logarithm of e. */
|
|
readonly LOG2E: number;
|
|
/** The base-10 logarithm of e. */
|
|
readonly LOG10E: number;
|
|
/** Pi. This is the ratio of the circumference of a circle to its diameter. */
|
|
readonly PI: number;
|
|
/** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
|
|
readonly SQRT1_2: number;
|
|
/** The square root of 2. */
|
|
readonly SQRT2: number;
|
|
/**
|
|
* Returns the absolute value of a number (the value without regard to whether it is positive or negative).
|
|
* For example, the absolute value of -5 is the same as the absolute value of 5.
|
|
* @param x A numeric expression for which the absolute value is needed.
|
|
*/
|
|
abs(x: number): number;
|
|
/**
|
|
* Returns the arc cosine (or inverse cosine) of a number.
|
|
* @param x A numeric expression.
|
|
*/
|
|
acos(x: number): number;
|
|
/**
|
|
* Returns the arcsine of a number.
|
|
* @param x A numeric expression.
|
|
*/
|
|
asin(x: number): number;
|
|
/**
|
|
* Returns the arctangent of a number.
|
|
* @param x A numeric expression for which the arctangent is needed.
|
|
*/
|
|
atan(x: number): number;
|
|
/**
|
|
* Returns the angle (in radians) from the X axis to a point.
|
|
* @param y A numeric expression representing the cartesian y-coordinate.
|
|
* @param x A numeric expression representing the cartesian x-coordinate.
|
|
*/
|
|
atan2(y: number, x: number): number;
|
|
/**
|
|
* Returns the smallest integer greater than or equal to its numeric argument.
|
|
* @param x A numeric expression.
|
|
*/
|
|
ceil(x: number): number;
|
|
/**
|
|
* Returns the cosine of a number.
|
|
* @param x A numeric expression that contains an angle measured in radians.
|
|
*/
|
|
cos(x: number): number;
|
|
/**
|
|
* Returns e (the base of natural logarithms) raised to a power.
|
|
* @param x A numeric expression representing the power of e.
|
|
*/
|
|
exp(x: number): number;
|
|
/**
|
|
* Returns the greatest integer less than or equal to its numeric argument.
|
|
* @param x A numeric expression.
|
|
*/
|
|
floor(x: number): number;
|
|
/**
|
|
* Returns the natural logarithm (base e) of a number.
|
|
* @param x A numeric expression.
|
|
*/
|
|
log(x: number): number;
|
|
/**
|
|
* Returns the larger of a set of supplied numeric expressions.
|
|
* @param values Numeric expressions to be evaluated.
|
|
*/
|
|
max(...values: number[]): number;
|
|
/**
|
|
* Returns the smaller of a set of supplied numeric expressions.
|
|
* @param values Numeric expressions to be evaluated.
|
|
*/
|
|
min(...values: number[]): number;
|
|
/**
|
|
* Returns the value of a base expression taken to a specified power.
|
|
* @param x The base value of the expression.
|
|
* @param y The exponent value of the expression.
|
|
*/
|
|
pow(x: number, y: number): number;
|
|
/** Returns a pseudorandom number between 0 and 1. */
|
|
random(): number;
|
|
/**
|
|
* Returns a supplied numeric expression rounded to the nearest integer.
|
|
* @param x The value to be rounded to the nearest integer.
|
|
*/
|
|
round(x: number): number;
|
|
/**
|
|
* Returns the sine of a number.
|
|
* @param x A numeric expression that contains an angle measured in radians.
|
|
*/
|
|
sin(x: number): number;
|
|
/**
|
|
* Returns the square root of a number.
|
|
* @param x A numeric expression.
|
|
*/
|
|
sqrt(x: number): number;
|
|
/**
|
|
* Returns the tangent of a number.
|
|
* @param x A numeric expression that contains an angle measured in radians.
|
|
*/
|
|
tan(x: number): number;
|
|
}
|
|
/** An intrinsic object that provides basic mathematics functionality and constants. */
|
|
declare var Math: Math;
|
|
|
|
/** Enables basic storage and retrieval of dates and times. */
|
|
interface Date {
|
|
/** Returns a string representation of a date. The format of the string depends on the locale. */
|
|
toString(): string;
|
|
/** Returns a date as a string value. */
|
|
toDateString(): string;
|
|
/** Returns a time as a string value. */
|
|
toTimeString(): string;
|
|
/** Returns a value as a string value appropriate to the host environment's current locale. */
|
|
toLocaleString(): string;
|
|
/** Returns a date as a string value appropriate to the host environment's current locale. */
|
|
toLocaleDateString(): string;
|
|
/** Returns a time as a string value appropriate to the host environment's current locale. */
|
|
toLocaleTimeString(): string;
|
|
/** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
|
|
valueOf(): number;
|
|
/** 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
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
compile(pattern: string, flags?: string): this;
|
|
}
|
|
|
|
interface RegExpConstructor {
|
|
new(pattern: RegExp | string): RegExp;
|
|
new(pattern: string, flags?: string): RegExp;
|
|
(pattern: RegExp | string): RegExp;
|
|
(pattern: string, flags?: string): RegExp;
|
|
readonly prototype: RegExp;
|
|
|
|
// Non-standard extensions
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
$1: string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
$2: string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
$3: string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
$4: string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
$5: string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
$6: string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
$7: string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
$8: string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
$9: string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
input: string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
$_: string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
lastMatch: string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
"$&": string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
lastParen: string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
"$+": string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
leftContext: string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
"$\`": string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
rightContext: string;
|
|
/** @deprecated A legacy feature for browser compatibility */
|
|
"$'": string;
|
|
}
|
|
|
|
declare var RegExp: RegExpConstructor;
|
|
|
|
interface Error {
|
|
name: string;
|
|
message: string;
|
|
stack?: string;
|
|
}
|
|
|
|
interface ErrorConstructor {
|
|
new(message?: string): Error;
|
|
(message?: string): Error;
|
|
readonly prototype: Error;
|
|
}
|
|
|
|
declare var Error: ErrorConstructor;
|
|
|
|
interface EvalError extends Error {
|
|
}
|
|
|
|
interface EvalErrorConstructor extends ErrorConstructor {
|
|
new(message?: string): EvalError;
|
|
(message?: string): EvalError;
|
|
readonly prototype: EvalError;
|
|
}
|
|
|
|
declare var EvalError: EvalErrorConstructor;
|
|
|
|
interface RangeError extends Error {
|
|
}
|
|
|
|
interface RangeErrorConstructor extends ErrorConstructor {
|
|
new(message?: string): RangeError;
|
|
(message?: string): RangeError;
|
|
readonly prototype: RangeError;
|
|
}
|
|
|
|
declare var RangeError: RangeErrorConstructor;
|
|
|
|
interface ReferenceError extends Error {
|
|
}
|
|
|
|
interface ReferenceErrorConstructor extends ErrorConstructor {
|
|
new(message?: string): ReferenceError;
|
|
(message?: string): ReferenceError;
|
|
readonly prototype: ReferenceError;
|
|
}
|
|
|
|
declare var ReferenceError: ReferenceErrorConstructor;
|
|
|
|
interface SyntaxError extends Error {
|
|
}
|
|
|
|
interface SyntaxErrorConstructor extends ErrorConstructor {
|
|
new(message?: string): SyntaxError;
|
|
(message?: string): SyntaxError;
|
|
readonly prototype: SyntaxError;
|
|
}
|
|
|
|
declare var SyntaxError: SyntaxErrorConstructor;
|
|
|
|
interface TypeError extends Error {
|
|
}
|
|
|
|
interface TypeErrorConstructor extends ErrorConstructor {
|
|
new(message?: string): TypeError;
|
|
(message?: string): TypeError;
|
|
readonly prototype: TypeError;
|
|
}
|
|
|
|
declare var TypeError: TypeErrorConstructor;
|
|
|
|
interface URIError extends Error {
|
|
}
|
|
|
|
interface URIErrorConstructor extends ErrorConstructor {
|
|
new(message?: string): URIError;
|
|
(message?: string): URIError;
|
|
readonly prototype: URIError;
|
|
}
|
|
|
|
declare var URIError: URIErrorConstructor;
|
|
|
|
interface JSON {
|
|
/**
|
|
* Converts a JavaScript Object Notation (JSON) string into an object.
|
|
* @param text A valid JSON string.
|
|
* @param reviver A function that transforms the results. This function is called for each member of the object.
|
|
* If a member contains nested objects, the nested objects are transformed before the parent object is.
|
|
*/
|
|
parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
|
|
/**
|
|
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
|
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
* @param replacer A function that transforms the results.
|
|
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
*/
|
|
stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
/**
|
|
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
|
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
* @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
|
|
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
*/
|
|
stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
|
}
|
|
|
|
/**
|
|
* An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
|
|
*/
|
|
declare var JSON: JSON;
|
|
|
|
|
|
/////////////////////////////
|
|
/// ECMAScript Array API (specially handled by compiler)
|
|
/////////////////////////////
|
|
|
|
interface ReadonlyArray<T> {
|
|
/**
|
|
* Gets the length of the array. This is a number one higher than the highest element defined in an array.
|
|
*/
|
|
readonly length: number;
|
|
/**
|
|
* Returns a string representation of an array.
|
|
*/
|
|
toString(): string;
|
|
/**
|
|
* Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
|
|
*/
|
|
toLocaleString(): string;
|
|
/**
|
|
* Combines two or more arrays.
|
|
* @param items Additional items to add to the end of array1.
|
|
*/
|
|
concat(...items: ConcatArray<T>[]): T[];
|
|
/**
|
|
* Combines two or more arrays.
|
|
* @param items Additional items to add to the end of array1.
|
|
*/
|
|
concat(...items: (T | ConcatArray<T>)[]): T[];
|
|
/**
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
* @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
|
|
*/
|
|
join(separator?: string): string;
|
|
/**
|
|
* Returns a section of an array.
|
|
* @param start The beginning of the specified portion of the array.
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
*/
|
|
slice(start?: number, end?: number): T[];
|
|
/**
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
|
|
*/
|
|
indexOf(searchElement: T, fromIndex?: number): number;
|
|
/**
|
|
* Returns the index of the last occurrence of a specified value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
|
|
*/
|
|
lastIndexOf(searchElement: T, fromIndex?: number): number;
|
|
/**
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
* @param predicate A function that accepts up to three arguments. The every method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];
|
|
/**
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
* @param predicate A function that accepts up to three arguments. The every method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
|
|
/**
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
* @param predicate A function that accepts up to three arguments. The some method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
|
|
/**
|
|
* Performs the specified action for each element in an array.
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;
|
|
/**
|
|
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];
|
|
/**
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];
|
|
/**
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
*/
|
|
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
|
|
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
*/
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
*/
|
|
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
|
|
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
*/
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
|
|
|
|
readonly [n: number]: T;
|
|
}
|
|
|
|
interface ConcatArray<T> {
|
|
readonly length: number;
|
|
readonly [n: number]: T;
|
|
join(separator?: string): string;
|
|
slice(start?: number, end?: number): T[];
|
|
}
|
|
|
|
interface Array<T> {
|
|
/**
|
|
* Gets or sets the length of the array. This is a number one higher than the highest index in the array.
|
|
*/
|
|
length: number;
|
|
/**
|
|
* Returns a string representation of an array.
|
|
*/
|
|
toString(): string;
|
|
/**
|
|
* Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
|
|
*/
|
|
toLocaleString(): string;
|
|
/**
|
|
* Removes the last element from an array and returns it.
|
|
* If the array is empty, undefined is returned and the array is not modified.
|
|
*/
|
|
pop(): T | undefined;
|
|
/**
|
|
* Appends new elements to the end of an array, and returns the new length of the array.
|
|
* @param items New elements to add to the array.
|
|
*/
|
|
push(...items: T[]): number;
|
|
/**
|
|
* Combines two or more arrays.
|
|
* This method returns a new array without modifying any existing arrays.
|
|
* @param items Additional arrays and/or items to add to the end of the array.
|
|
*/
|
|
concat(...items: ConcatArray<T>[]): T[];
|
|
/**
|
|
* Combines two or more arrays.
|
|
* This method returns a new array without modifying any existing arrays.
|
|
* @param items Additional arrays and/or items to add to the end of the array.
|
|
*/
|
|
concat(...items: (T | ConcatArray<T>)[]): T[];
|
|
/**
|
|
* Adds all the elements of an array into a string, separated by the specified separator string.
|
|
* @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.
|
|
*/
|
|
join(separator?: string): string;
|
|
/**
|
|
* Reverses the elements in an array in place.
|
|
* This method mutates the array and returns a reference to the same array.
|
|
*/
|
|
reverse(): T[];
|
|
/**
|
|
* Removes the first element from an array and returns it.
|
|
* If the array is empty, undefined is returned and the array is not modified.
|
|
*/
|
|
shift(): T | undefined;
|
|
/**
|
|
* Returns a copy of a section of an array.
|
|
* For both start and end, a negative index can be used to indicate an offset from the end of the array.
|
|
* For example, -2 refers to the second to last element of the array.
|
|
* @param start The beginning index of the specified portion of the array.
|
|
* If start is undefined, then the slice begins at index 0.
|
|
* @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
* If end is undefined, then the slice extends to the end of the array.
|
|
*/
|
|
slice(start?: number, end?: number): T[];
|
|
/**
|
|
* Sorts an array in place.
|
|
* This method mutates the array and returns a reference to the same array.
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
|
* \`\`\`ts
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
* \`\`\`
|
|
*/
|
|
sort(compareFn?: (a: T, b: T) => number): this;
|
|
/**
|
|
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
|
* @param start The zero-based location in the array from which to start removing elements.
|
|
* @param deleteCount The number of elements to remove.
|
|
* @returns An array containing the elements that were deleted.
|
|
*/
|
|
splice(start: number, deleteCount?: number): T[];
|
|
/**
|
|
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
|
* @param start The zero-based location in the array from which to start removing elements.
|
|
* @param deleteCount The number of elements to remove.
|
|
* @param items Elements to insert into the array in place of the deleted elements.
|
|
* @returns An array containing the elements that were deleted.
|
|
*/
|
|
splice(start: number, deleteCount: number, ...items: T[]): T[];
|
|
/**
|
|
* Inserts new elements at the start of an array, and returns the new length of the array.
|
|
* @param items Elements to insert at the start of the array.
|
|
*/
|
|
unshift(...items: T[]): number;
|
|
/**
|
|
* Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
|
|
*/
|
|
indexOf(searchElement: T, fromIndex?: number): number;
|
|
/**
|
|
* Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.
|
|
*/
|
|
lastIndexOf(searchElement: T, fromIndex?: number): number;
|
|
/**
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
* @param predicate A function that accepts up to three arguments. The every method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];
|
|
/**
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
* @param predicate A function that accepts up to three arguments. The every method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
|
|
/**
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
* @param predicate A function that accepts up to three arguments. The some method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
|
|
/**
|
|
* Performs the specified action for each element in an array.
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
|
|
/**
|
|
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
|
|
/**
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
|
|
/**
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
*/
|
|
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
|
|
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
*/
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
*/
|
|
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
|
|
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
*/
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
|
|
|
|
[n: number]: T;
|
|
}
|
|
|
|
interface ArrayConstructor {
|
|
new(arrayLength?: number): any[];
|
|
new <T>(arrayLength: number): T[];
|
|
new <T>(...items: T[]): T[];
|
|
(arrayLength?: number): any[];
|
|
<T>(arrayLength: number): T[];
|
|
<T>(...items: T[]): T[];
|
|
isArray(arg: any): arg is any[];
|
|
readonly prototype: any[];
|
|
}
|
|
|
|
declare var Array: ArrayConstructor;
|
|
|
|
interface TypedPropertyDescriptor<T> {
|
|
enumerable?: boolean;
|
|
configurable?: boolean;
|
|
writable?: boolean;
|
|
value?: T;
|
|
get?: () => T;
|
|
set?: (value: T) => void;
|
|
}
|
|
|
|
declare type 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>;
|
|
}
|
|
|
|
/**
|
|
* Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to \`never\`. This emulates the behavior of \`await\`.
|
|
*/
|
|
type Awaited<T> =
|
|
T extends null | undefined ? T : // special case for \`null | undefined\` when not in \`--strictNullChecks\` mode
|
|
T extends object & { then(onfulfilled: infer F): any } ? // \`await\` only unwraps object types with a callable \`then\`. Non-object types are not unwrapped
|
|
F extends ((value: infer V, ...args: any) => any) ? // if the argument to \`then\` is callable, extracts the first argument
|
|
Awaited<V> : // recursively unwrap the value
|
|
never : // the argument to \`then\` was not callable
|
|
T; // non-object or non-thenable
|
|
|
|
interface ArrayLike<T> {
|
|
readonly length: number;
|
|
readonly [n: number]: T;
|
|
}
|
|
|
|
/**
|
|
* Make all properties in T optional
|
|
*/
|
|
type Partial<T> = {
|
|
[P in keyof T]?: T[P];
|
|
};
|
|
|
|
/**
|
|
* Make all properties in T required
|
|
*/
|
|
type Required<T> = {
|
|
[P in keyof T]-?: T[P];
|
|
};
|
|
|
|
/**
|
|
* Make all properties in T readonly
|
|
*/
|
|
type Readonly<T> = {
|
|
readonly [P in keyof T]: T[P];
|
|
};
|
|
|
|
/**
|
|
* From T, pick a set of properties whose keys are in the union K
|
|
*/
|
|
type Pick<T, K extends keyof T> = {
|
|
[P in K]: T[P];
|
|
};
|
|
|
|
/**
|
|
* Construct a type with a set of properties K of type T
|
|
*/
|
|
type Record<K extends keyof any, T> = {
|
|
[P in K]: T;
|
|
};
|
|
|
|
/**
|
|
* Exclude from T those types that are assignable to U
|
|
*/
|
|
type Exclude<T, U> = T extends U ? never : T;
|
|
|
|
/**
|
|
* Extract from T those types that are assignable to U
|
|
*/
|
|
type Extract<T, U> = T extends U ? T : never;
|
|
|
|
/**
|
|
* Construct a type with the properties of T except for those in type K.
|
|
*/
|
|
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
|
|
|
|
/**
|
|
* Exclude null and undefined from T
|
|
*/
|
|
type NonNullable<T> = T 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 order.
|
|
* \`\`\`ts
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
* \`\`\`
|
|
*/
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
/**
|
|
* Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
|
|
* at begin, inclusive, up to end, exclusive.
|
|
* @param begin The index of the beginning of the array.
|
|
* @param end The index of the end of the array.
|
|
*/
|
|
subarray(begin?: number, end?: number): Int8Array;
|
|
|
|
/**
|
|
* Converts a number to a string by using the current locale.
|
|
*/
|
|
toLocaleString(): string;
|
|
|
|
/**
|
|
* Returns a string representation of an array.
|
|
*/
|
|
toString(): string;
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
valueOf(): Int8Array;
|
|
|
|
[index: number]: number;
|
|
}
|
|
interface Int8ArrayConstructor {
|
|
readonly prototype: Int8Array;
|
|
new(length: number): Int8Array;
|
|
new(array: ArrayLike<number> | ArrayBufferLike): Int8Array;
|
|
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
|
|
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* Returns a new array from a set of elements.
|
|
* @param items A set of elements to include in the new array object.
|
|
*/
|
|
of(...items: number[]): Int8Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
*/
|
|
from(arrayLike: ArrayLike<number>): Int8Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
|
|
|
|
|
|
}
|
|
declare var Int8Array: Int8ArrayConstructor;
|
|
|
|
/**
|
|
* A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
|
|
* requested number of bytes could not be allocated an exception is raised.
|
|
*/
|
|
interface Uint8Array {
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* The ArrayBuffer instance referenced by the array.
|
|
*/
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
/**
|
|
* The length in bytes of the array.
|
|
*/
|
|
readonly byteLength: number;
|
|
|
|
/**
|
|
* The offset in bytes of the array.
|
|
*/
|
|
readonly byteOffset: number;
|
|
|
|
/**
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
* to the same array starting at position target
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
* length of the array.
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
* is treated as length+end.
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
*/
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
/**
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
* @param predicate A function that accepts up to three arguments. The every method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
|
|
|
|
/**
|
|
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
|
|
* @param value value to fill array section with
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
* length+start where length is the length of the array.
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
* length+end.
|
|
*/
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
/**
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
* @param predicate A function that accepts up to three arguments. The filter method calls
|
|
* the predicate function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;
|
|
|
|
/**
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
* otherwise.
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
*/
|
|
find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;
|
|
|
|
/**
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
* otherwise.
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
*/
|
|
findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;
|
|
|
|
/**
|
|
* Performs the specified action for each element in an array.
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
|
|
|
|
/**
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
* search starts at index 0.
|
|
*/
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
/**
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
*/
|
|
join(separator?: string): string;
|
|
|
|
/**
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
* search starts at index 0.
|
|
*/
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
/**
|
|
* The length of the array.
|
|
*/
|
|
readonly length: number;
|
|
|
|
/**
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
* contains the results.
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
* call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
* call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
* argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
* the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
* argument instead of an array value.
|
|
*/
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
* argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
* the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
|
|
|
|
/**
|
|
* Reverses the elements in an Array.
|
|
*/
|
|
reverse(): Uint8Array;
|
|
|
|
/**
|
|
* Sets a value or an array of values.
|
|
* @param array A typed or untyped array of values to set.
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
*/
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
/**
|
|
* Returns a section of an array.
|
|
* @param start The beginning of the specified portion of the array.
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
*/
|
|
slice(start?: number, end?: number): Uint8Array;
|
|
|
|
/**
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
* @param predicate A function that accepts up to three arguments. The some method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
|
|
|
|
/**
|
|
* Sorts an array.
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
* \`\`\`ts
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
* \`\`\`
|
|
*/
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
/**
|
|
* Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
|
|
* at begin, inclusive, up to end, exclusive.
|
|
* @param begin The index of the beginning of the array.
|
|
* @param end The index of the end of the array.
|
|
*/
|
|
subarray(begin?: number, end?: number): Uint8Array;
|
|
|
|
/**
|
|
* Converts a number to a string by using the current locale.
|
|
*/
|
|
toLocaleString(): string;
|
|
|
|
/**
|
|
* Returns a string representation of an array.
|
|
*/
|
|
toString(): string;
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
valueOf(): Uint8Array;
|
|
|
|
[index: number]: number;
|
|
}
|
|
|
|
interface Uint8ArrayConstructor {
|
|
readonly prototype: Uint8Array;
|
|
new(length: number): Uint8Array;
|
|
new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array;
|
|
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
|
|
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* Returns a new array from a set of elements.
|
|
* @param items A set of elements to include in the new array object.
|
|
*/
|
|
of(...items: number[]): Uint8Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
*/
|
|
from(arrayLike: ArrayLike<number>): Uint8Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
|
|
|
|
}
|
|
declare var Uint8Array: Uint8ArrayConstructor;
|
|
|
|
/**
|
|
* A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
|
|
* If the requested number of bytes could not be allocated an exception is raised.
|
|
*/
|
|
interface Uint8ClampedArray {
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* The ArrayBuffer instance referenced by the array.
|
|
*/
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
/**
|
|
* The length in bytes of the array.
|
|
*/
|
|
readonly byteLength: number;
|
|
|
|
/**
|
|
* The offset in bytes of the array.
|
|
*/
|
|
readonly byteOffset: number;
|
|
|
|
/**
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
* to the same array starting at position target
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
* length of the array.
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
* is treated as length+end.
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
*/
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
/**
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
* @param predicate A function that accepts up to three arguments. The every method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
|
|
|
|
/**
|
|
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
|
|
* @param value value to fill array section with
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
* length+start where length is the length of the array.
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
* length+end.
|
|
*/
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
/**
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
* @param predicate A function that accepts up to three arguments. The filter method calls
|
|
* the predicate function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
|
|
|
|
/**
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
* otherwise.
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
*/
|
|
find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;
|
|
|
|
/**
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
* otherwise.
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
*/
|
|
findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;
|
|
|
|
/**
|
|
* Performs the specified action for each element in an array.
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
|
|
|
|
/**
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
* search starts at index 0.
|
|
*/
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
/**
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
*/
|
|
join(separator?: string): string;
|
|
|
|
/**
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
* search starts at index 0.
|
|
*/
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
/**
|
|
* The length of the array.
|
|
*/
|
|
readonly length: number;
|
|
|
|
/**
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
* contains the results.
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
* call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
* call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
* argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
* the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
* argument instead of an array value.
|
|
*/
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
* argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
* the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
|
|
|
|
/**
|
|
* Reverses the elements in an Array.
|
|
*/
|
|
reverse(): Uint8ClampedArray;
|
|
|
|
/**
|
|
* Sets a value or an array of values.
|
|
* @param array A typed or untyped array of values to set.
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
*/
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
/**
|
|
* Returns a section of an array.
|
|
* @param start The beginning of the specified portion of the array.
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
*/
|
|
slice(start?: number, end?: number): Uint8ClampedArray;
|
|
|
|
/**
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
* @param predicate A function that accepts up to three arguments. The some method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
|
|
|
|
/**
|
|
* Sorts an array.
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
* \`\`\`ts
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
* \`\`\`
|
|
*/
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
/**
|
|
* Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
|
|
* at begin, inclusive, up to end, exclusive.
|
|
* @param begin The index of the beginning of the array.
|
|
* @param end The index of the end of the array.
|
|
*/
|
|
subarray(begin?: number, end?: number): Uint8ClampedArray;
|
|
|
|
/**
|
|
* Converts a number to a string by using the current locale.
|
|
*/
|
|
toLocaleString(): string;
|
|
|
|
/**
|
|
* Returns a string representation of an array.
|
|
*/
|
|
toString(): string;
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
valueOf(): Uint8ClampedArray;
|
|
|
|
[index: number]: number;
|
|
}
|
|
|
|
interface Uint8ClampedArrayConstructor {
|
|
readonly prototype: Uint8ClampedArray;
|
|
new(length: number): Uint8ClampedArray;
|
|
new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
|
|
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
|
|
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* Returns a new array from a set of elements.
|
|
* @param items A set of elements to include in the new array object.
|
|
*/
|
|
of(...items: number[]): Uint8ClampedArray;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
*/
|
|
from(arrayLike: ArrayLike<number>): Uint8ClampedArray;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;
|
|
}
|
|
declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;
|
|
|
|
/**
|
|
* A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
|
|
* requested number of bytes could not be allocated an exception is raised.
|
|
*/
|
|
interface Int16Array {
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* The ArrayBuffer instance referenced by the array.
|
|
*/
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
/**
|
|
* The length in bytes of the array.
|
|
*/
|
|
readonly byteLength: number;
|
|
|
|
/**
|
|
* The offset in bytes of the array.
|
|
*/
|
|
readonly byteOffset: number;
|
|
|
|
/**
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
* to the same array starting at position target
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
* length of the array.
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
* is treated as length+end.
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
*/
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
/**
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
* @param predicate A function that accepts up to three arguments. The every method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
|
|
|
|
/**
|
|
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
|
|
* @param value value to fill array section with
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
* length+start where length is the length of the array.
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
* length+end.
|
|
*/
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
/**
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
* @param predicate A function that accepts up to three arguments. The filter method calls
|
|
* the predicate function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;
|
|
|
|
/**
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
* otherwise.
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
*/
|
|
find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;
|
|
|
|
/**
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
* otherwise.
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
*/
|
|
findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;
|
|
|
|
/**
|
|
* Performs the specified action for each element in an array.
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
|
|
/**
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
* search starts at index 0.
|
|
*/
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
/**
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
*/
|
|
join(separator?: string): string;
|
|
|
|
/**
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
* search starts at index 0.
|
|
*/
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
/**
|
|
* The length of the array.
|
|
*/
|
|
readonly length: number;
|
|
|
|
/**
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
* contains the results.
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
* call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
* call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
* argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
* the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
* argument instead of an array value.
|
|
*/
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
* argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
* the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
|
|
|
|
/**
|
|
* Reverses the elements in an Array.
|
|
*/
|
|
reverse(): Int16Array;
|
|
|
|
/**
|
|
* Sets a value or an array of values.
|
|
* @param array A typed or untyped array of values to set.
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
*/
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
/**
|
|
* Returns a section of an array.
|
|
* @param start The beginning of the specified portion of the array.
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
*/
|
|
slice(start?: number, end?: number): Int16Array;
|
|
|
|
/**
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
* @param predicate A function that accepts up to three arguments. The some method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
|
|
|
|
/**
|
|
* Sorts an array.
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
* \`\`\`ts
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
* \`\`\`
|
|
*/
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
/**
|
|
* Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
|
|
* at begin, inclusive, up to end, exclusive.
|
|
* @param begin The index of the beginning of the array.
|
|
* @param end The index of the end of the array.
|
|
*/
|
|
subarray(begin?: number, end?: number): Int16Array;
|
|
|
|
/**
|
|
* Converts a number to a string by using the current locale.
|
|
*/
|
|
toLocaleString(): string;
|
|
|
|
/**
|
|
* Returns a string representation of an array.
|
|
*/
|
|
toString(): string;
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
valueOf(): Int16Array;
|
|
|
|
[index: number]: number;
|
|
}
|
|
|
|
interface Int16ArrayConstructor {
|
|
readonly prototype: Int16Array;
|
|
new(length: number): Int16Array;
|
|
new(array: ArrayLike<number> | ArrayBufferLike): Int16Array;
|
|
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
|
|
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* Returns a new array from a set of elements.
|
|
* @param items A set of elements to include in the new array object.
|
|
*/
|
|
of(...items: number[]): Int16Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
*/
|
|
from(arrayLike: ArrayLike<number>): Int16Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
|
|
|
|
|
|
}
|
|
declare var Int16Array: Int16ArrayConstructor;
|
|
|
|
/**
|
|
* A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
|
|
* requested number of bytes could not be allocated an exception is raised.
|
|
*/
|
|
interface Uint16Array {
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* The ArrayBuffer instance referenced by the array.
|
|
*/
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
/**
|
|
* The length in bytes of the array.
|
|
*/
|
|
readonly byteLength: number;
|
|
|
|
/**
|
|
* The offset in bytes of the array.
|
|
*/
|
|
readonly byteOffset: number;
|
|
|
|
/**
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
* to the same array starting at position target
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
* length of the array.
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
* is treated as length+end.
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
*/
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
/**
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
* @param predicate A function that accepts up to three arguments. The every method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
|
|
|
|
/**
|
|
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
|
|
* @param value value to fill array section with
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
* length+start where length is the length of the array.
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
* length+end.
|
|
*/
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
/**
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
* @param predicate A function that accepts up to three arguments. The filter method calls
|
|
* the predicate function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;
|
|
|
|
/**
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
* otherwise.
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
*/
|
|
find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;
|
|
|
|
/**
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
* otherwise.
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
*/
|
|
findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;
|
|
|
|
/**
|
|
* Performs the specified action for each element in an array.
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
|
|
|
|
/**
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
* search starts at index 0.
|
|
*/
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
/**
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
*/
|
|
join(separator?: string): string;
|
|
|
|
/**
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
* search starts at index 0.
|
|
*/
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
/**
|
|
* The length of the array.
|
|
*/
|
|
readonly length: number;
|
|
|
|
/**
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
* contains the results.
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
* call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
* call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
* argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
* the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
* argument instead of an array value.
|
|
*/
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
* argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
* the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
|
|
|
|
/**
|
|
* Reverses the elements in an Array.
|
|
*/
|
|
reverse(): Uint16Array;
|
|
|
|
/**
|
|
* Sets a value or an array of values.
|
|
* @param array A typed or untyped array of values to set.
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
*/
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
/**
|
|
* Returns a section of an array.
|
|
* @param start The beginning of the specified portion of the array.
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
*/
|
|
slice(start?: number, end?: number): Uint16Array;
|
|
|
|
/**
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
* @param predicate A function that accepts up to three arguments. The some method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
|
|
|
|
/**
|
|
* Sorts an array.
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
* \`\`\`ts
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
* \`\`\`
|
|
*/
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
/**
|
|
* Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
|
|
* at begin, inclusive, up to end, exclusive.
|
|
* @param begin The index of the beginning of the array.
|
|
* @param end The index of the end of the array.
|
|
*/
|
|
subarray(begin?: number, end?: number): Uint16Array;
|
|
|
|
/**
|
|
* Converts a number to a string by using the current locale.
|
|
*/
|
|
toLocaleString(): string;
|
|
|
|
/**
|
|
* Returns a string representation of an array.
|
|
*/
|
|
toString(): string;
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
valueOf(): Uint16Array;
|
|
|
|
[index: number]: number;
|
|
}
|
|
|
|
interface Uint16ArrayConstructor {
|
|
readonly prototype: Uint16Array;
|
|
new(length: number): Uint16Array;
|
|
new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array;
|
|
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
|
|
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* Returns a new array from a set of elements.
|
|
* @param items A set of elements to include in the new array object.
|
|
*/
|
|
of(...items: number[]): Uint16Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
*/
|
|
from(arrayLike: ArrayLike<number>): Uint16Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
|
|
|
|
|
|
}
|
|
declare var Uint16Array: Uint16ArrayConstructor;
|
|
/**
|
|
* A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
|
|
* requested number of bytes could not be allocated an exception is raised.
|
|
*/
|
|
interface Int32Array {
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* The ArrayBuffer instance referenced by the array.
|
|
*/
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
/**
|
|
* The length in bytes of the array.
|
|
*/
|
|
readonly byteLength: number;
|
|
|
|
/**
|
|
* The offset in bytes of the array.
|
|
*/
|
|
readonly byteOffset: number;
|
|
|
|
/**
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
* to the same array starting at position target
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
* length of the array.
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
* is treated as length+end.
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
*/
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
/**
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
* @param predicate A function that accepts up to three arguments. The every method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
|
|
|
|
/**
|
|
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
|
|
* @param value value to fill array section with
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
* length+start where length is the length of the array.
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
* length+end.
|
|
*/
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
/**
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
* @param predicate A function that accepts up to three arguments. The filter method calls
|
|
* the predicate function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;
|
|
|
|
/**
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
* otherwise.
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
*/
|
|
find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;
|
|
|
|
/**
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
* otherwise.
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
*/
|
|
findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;
|
|
|
|
/**
|
|
* Performs the specified action for each element in an array.
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;
|
|
|
|
/**
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
* search starts at index 0.
|
|
*/
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
/**
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
*/
|
|
join(separator?: string): string;
|
|
|
|
/**
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
* search starts at index 0.
|
|
*/
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
/**
|
|
* The length of the array.
|
|
*/
|
|
readonly length: number;
|
|
|
|
/**
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
* contains the results.
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
* call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
* call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
* argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
* the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
* argument instead of an array value.
|
|
*/
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
* argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
* the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
|
|
|
|
/**
|
|
* Reverses the elements in an Array.
|
|
*/
|
|
reverse(): Int32Array;
|
|
|
|
/**
|
|
* Sets a value or an array of values.
|
|
* @param array A typed or untyped array of values to set.
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
*/
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
/**
|
|
* Returns a section of an array.
|
|
* @param start The beginning of the specified portion of the array.
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
*/
|
|
slice(start?: number, end?: number): Int32Array;
|
|
|
|
/**
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
* @param predicate A function that accepts up to three arguments. The some method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
|
|
|
|
/**
|
|
* Sorts an array.
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
* \`\`\`ts
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
* \`\`\`
|
|
*/
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
/**
|
|
* Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
|
|
* at begin, inclusive, up to end, exclusive.
|
|
* @param begin The index of the beginning of the array.
|
|
* @param end The index of the end of the array.
|
|
*/
|
|
subarray(begin?: number, end?: number): Int32Array;
|
|
|
|
/**
|
|
* Converts a number to a string by using the current locale.
|
|
*/
|
|
toLocaleString(): string;
|
|
|
|
/**
|
|
* Returns a string representation of an array.
|
|
*/
|
|
toString(): string;
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
valueOf(): Int32Array;
|
|
|
|
[index: number]: number;
|
|
}
|
|
|
|
interface Int32ArrayConstructor {
|
|
readonly prototype: Int32Array;
|
|
new(length: number): Int32Array;
|
|
new(array: ArrayLike<number> | ArrayBufferLike): Int32Array;
|
|
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
|
|
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* Returns a new array from a set of elements.
|
|
* @param items A set of elements to include in the new array object.
|
|
*/
|
|
of(...items: number[]): Int32Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
*/
|
|
from(arrayLike: ArrayLike<number>): Int32Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
|
|
|
|
}
|
|
declare var Int32Array: Int32ArrayConstructor;
|
|
|
|
/**
|
|
* A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
|
|
* requested number of bytes could not be allocated an exception is raised.
|
|
*/
|
|
interface Uint32Array {
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* The ArrayBuffer instance referenced by the array.
|
|
*/
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
/**
|
|
* The length in bytes of the array.
|
|
*/
|
|
readonly byteLength: number;
|
|
|
|
/**
|
|
* The offset in bytes of the array.
|
|
*/
|
|
readonly byteOffset: number;
|
|
|
|
/**
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
* to the same array starting at position target
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
* length of the array.
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
* is treated as length+end.
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
*/
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
/**
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
* @param predicate A function that accepts up to three arguments. The every method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
|
|
|
|
/**
|
|
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
|
|
* @param value value to fill array section with
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
* length+start where length is the length of the array.
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
* length+end.
|
|
*/
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
/**
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
* @param predicate A function that accepts up to three arguments. The filter method calls
|
|
* the predicate function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;
|
|
|
|
/**
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
* otherwise.
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
*/
|
|
find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;
|
|
|
|
/**
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
* otherwise.
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
*/
|
|
findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;
|
|
|
|
/**
|
|
* Performs the specified action for each element in an array.
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
|
|
/**
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
* search starts at index 0.
|
|
*/
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
/**
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
*/
|
|
join(separator?: string): string;
|
|
|
|
/**
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
* search starts at index 0.
|
|
*/
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
/**
|
|
* The length of the array.
|
|
*/
|
|
readonly length: number;
|
|
|
|
/**
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
* contains the results.
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
* call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
* call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
* argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
* the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
* argument instead of an array value.
|
|
*/
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
* argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
* the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
|
|
|
|
/**
|
|
* Reverses the elements in an Array.
|
|
*/
|
|
reverse(): Uint32Array;
|
|
|
|
/**
|
|
* Sets a value or an array of values.
|
|
* @param array A typed or untyped array of values to set.
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
*/
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
/**
|
|
* Returns a section of an array.
|
|
* @param start The beginning of the specified portion of the array.
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
*/
|
|
slice(start?: number, end?: number): Uint32Array;
|
|
|
|
/**
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
* @param predicate A function that accepts up to three arguments. The some method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
|
|
|
|
/**
|
|
* Sorts an array.
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
* \`\`\`ts
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
* \`\`\`
|
|
*/
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
/**
|
|
* Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
|
|
* at begin, inclusive, up to end, exclusive.
|
|
* @param begin The index of the beginning of the array.
|
|
* @param end The index of the end of the array.
|
|
*/
|
|
subarray(begin?: number, end?: number): Uint32Array;
|
|
|
|
/**
|
|
* Converts a number to a string by using the current locale.
|
|
*/
|
|
toLocaleString(): string;
|
|
|
|
/**
|
|
* Returns a string representation of an array.
|
|
*/
|
|
toString(): string;
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
valueOf(): Uint32Array;
|
|
|
|
[index: number]: number;
|
|
}
|
|
|
|
interface Uint32ArrayConstructor {
|
|
readonly prototype: Uint32Array;
|
|
new(length: number): Uint32Array;
|
|
new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array;
|
|
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
|
|
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* Returns a new array from a set of elements.
|
|
* @param items A set of elements to include in the new array object.
|
|
*/
|
|
of(...items: number[]): Uint32Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
*/
|
|
from(arrayLike: ArrayLike<number>): Uint32Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
|
|
|
|
}
|
|
declare var Uint32Array: Uint32ArrayConstructor;
|
|
|
|
/**
|
|
* A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
|
|
* of bytes could not be allocated an exception is raised.
|
|
*/
|
|
interface Float32Array {
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* The ArrayBuffer instance referenced by the array.
|
|
*/
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
/**
|
|
* The length in bytes of the array.
|
|
*/
|
|
readonly byteLength: number;
|
|
|
|
/**
|
|
* The offset in bytes of the array.
|
|
*/
|
|
readonly byteOffset: number;
|
|
|
|
/**
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
* to the same array starting at position target
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
* length of the array.
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
* is treated as length+end.
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
*/
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
/**
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
* @param predicate A function that accepts up to three arguments. The every method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
|
|
|
|
/**
|
|
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
|
|
* @param value value to fill array section with
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
* length+start where length is the length of the array.
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
* length+end.
|
|
*/
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
/**
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
* @param predicate A function that accepts up to three arguments. The filter method calls
|
|
* the predicate function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;
|
|
|
|
/**
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
* otherwise.
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
*/
|
|
find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;
|
|
|
|
/**
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
* otherwise.
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
*/
|
|
findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;
|
|
|
|
/**
|
|
* Performs the specified action for each element in an array.
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;
|
|
|
|
/**
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
* search starts at index 0.
|
|
*/
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
/**
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
*/
|
|
join(separator?: string): string;
|
|
|
|
/**
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
* search starts at index 0.
|
|
*/
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
/**
|
|
* The length of the array.
|
|
*/
|
|
readonly length: number;
|
|
|
|
/**
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
* contains the results.
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
* call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
* call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
* argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
* the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
* argument instead of an array value.
|
|
*/
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
* argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
* the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
|
|
|
|
/**
|
|
* Reverses the elements in an Array.
|
|
*/
|
|
reverse(): Float32Array;
|
|
|
|
/**
|
|
* Sets a value or an array of values.
|
|
* @param array A typed or untyped array of values to set.
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
*/
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
/**
|
|
* Returns a section of an array.
|
|
* @param start The beginning of the specified portion of the array.
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
*/
|
|
slice(start?: number, end?: number): Float32Array;
|
|
|
|
/**
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
* @param predicate A function that accepts up to three arguments. The some method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
|
|
|
|
/**
|
|
* Sorts an array.
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
* \`\`\`ts
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
* \`\`\`
|
|
*/
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
/**
|
|
* Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
|
|
* at begin, inclusive, up to end, exclusive.
|
|
* @param begin The index of the beginning of the array.
|
|
* @param end The index of the end of the array.
|
|
*/
|
|
subarray(begin?: number, end?: number): Float32Array;
|
|
|
|
/**
|
|
* Converts a number to a string by using the current locale.
|
|
*/
|
|
toLocaleString(): string;
|
|
|
|
/**
|
|
* Returns a string representation of an array.
|
|
*/
|
|
toString(): string;
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
valueOf(): Float32Array;
|
|
|
|
[index: number]: number;
|
|
}
|
|
|
|
interface Float32ArrayConstructor {
|
|
readonly prototype: Float32Array;
|
|
new(length: number): Float32Array;
|
|
new(array: ArrayLike<number> | ArrayBufferLike): Float32Array;
|
|
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
|
|
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* Returns a new array from a set of elements.
|
|
* @param items A set of elements to include in the new array object.
|
|
*/
|
|
of(...items: number[]): Float32Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
*/
|
|
from(arrayLike: ArrayLike<number>): Float32Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
|
|
|
|
|
|
}
|
|
declare var Float32Array: Float32ArrayConstructor;
|
|
|
|
/**
|
|
* A typed array of 64-bit float values. The contents are initialized to 0. If the requested
|
|
* number of bytes could not be allocated an exception is raised.
|
|
*/
|
|
interface Float64Array {
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* The ArrayBuffer instance referenced by the array.
|
|
*/
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
/**
|
|
* The length in bytes of the array.
|
|
*/
|
|
readonly byteLength: number;
|
|
|
|
/**
|
|
* The offset in bytes of the array.
|
|
*/
|
|
readonly byteOffset: number;
|
|
|
|
/**
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
* to the same array starting at position target
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
* length of the array.
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
* is treated as length+end.
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
*/
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
/**
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
* @param predicate A function that accepts up to three arguments. The every method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
|
|
|
|
/**
|
|
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
|
|
* @param value value to fill array section with
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
* length+start where length is the length of the array.
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
* length+end.
|
|
*/
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
/**
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
* @param predicate A function that accepts up to three arguments. The filter method calls
|
|
* the predicate function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;
|
|
|
|
/**
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
* otherwise.
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
*/
|
|
find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;
|
|
|
|
/**
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
* otherwise.
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
*/
|
|
findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;
|
|
|
|
/**
|
|
* Performs the specified action for each element in an array.
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;
|
|
|
|
/**
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
* search starts at index 0.
|
|
*/
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
/**
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
*/
|
|
join(separator?: string): string;
|
|
|
|
/**
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
* @param searchElement The value to locate in the array.
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
* search starts at index 0.
|
|
*/
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
/**
|
|
* The length of the array.
|
|
*/
|
|
readonly length: number;
|
|
|
|
/**
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
* contains the results.
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
* call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
* call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
* callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
* argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
* the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
* argument instead of an array value.
|
|
*/
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
|
|
|
|
/**
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
* argument in the next call to the callback function.
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
* the callbackfn function one time for each element in the array.
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
* instead of an array value.
|
|
*/
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
|
|
|
|
/**
|
|
* Reverses the elements in an Array.
|
|
*/
|
|
reverse(): Float64Array;
|
|
|
|
/**
|
|
* Sets a value or an array of values.
|
|
* @param array A typed or untyped array of values to set.
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
*/
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
/**
|
|
* Returns a section of an array.
|
|
* @param start The beginning of the specified portion of the array.
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
*/
|
|
slice(start?: number, end?: number): Float64Array;
|
|
|
|
/**
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
* @param predicate A function that accepts up to three arguments. The some method calls
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
*/
|
|
some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
|
|
|
|
/**
|
|
* Sorts an array.
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
* \`\`\`ts
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
* \`\`\`
|
|
*/
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
/**
|
|
* at begin, inclusive, up to end, exclusive.
|
|
* @param begin The index of the beginning of the array.
|
|
* @param end The index of the end of the array.
|
|
*/
|
|
subarray(begin?: number, end?: number): Float64Array;
|
|
|
|
toString(): string;
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
valueOf(): Float64Array;
|
|
|
|
[index: number]: number;
|
|
}
|
|
|
|
interface Float64ArrayConstructor {
|
|
readonly prototype: Float64Array;
|
|
new(length: number): Float64Array;
|
|
new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;
|
|
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
|
|
|
|
/**
|
|
* The size in bytes of each element in the array.
|
|
*/
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
/**
|
|
* Returns a new array from a set of elements.
|
|
* @param items A set of elements to include in the new array object.
|
|
*/
|
|
of(...items: number[]): Float64Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
*/
|
|
from(arrayLike: ArrayLike<number>): Float64Array;
|
|
|
|
/**
|
|
* Creates an array from an array-like or iterable object.
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
*/
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
|
|
|
|
}
|
|
declare var Float64Array: Float64ArrayConstructor;
|
|
|
|
/////////////////////////////
|
|
/// ECMAScript Internationalization API
|
|
/////////////////////////////
|
|
|
|
declare namespace Intl {
|
|
interface CollatorOptions {
|
|
usage?: string | undefined;
|
|
localeMatcher?: string | undefined;
|
|
numeric?: boolean | undefined;
|
|
caseFirst?: string | undefined;
|
|
sensitivity?: string | undefined;
|
|
ignorePunctuation?: boolean | undefined;
|
|
}
|
|
|
|
interface ResolvedCollatorOptions {
|
|
locale: string;
|
|
usage: string;
|
|
sensitivity: string;
|
|
ignorePunctuation: boolean;
|
|
collation: string;
|
|
caseFirst: string;
|
|
numeric: boolean;
|
|
}
|
|
|
|
interface Collator {
|
|
compare(x: string, y: string): number;
|
|
resolvedOptions(): ResolvedCollatorOptions;
|
|
}
|
|
var Collator: {
|
|
new(locales?: string | string[], options?: CollatorOptions): Collator;
|
|
(locales?: string | string[], options?: CollatorOptions): Collator;
|
|
supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
|
|
};
|
|
|
|
interface NumberFormatOptions {
|
|
localeMatcher?: string | undefined;
|
|
style?: string | undefined;
|
|
currency?: string | undefined;
|
|
currencyDisplay?: string | undefined;
|
|
currencySign?: string | undefined;
|
|
useGrouping?: boolean | undefined;
|
|
minimumIntegerDigits?: number | undefined;
|
|
minimumFractionDigits?: number | undefined;
|
|
maximumFractionDigits?: number | undefined;
|
|
minimumSignificantDigits?: number | undefined;
|
|
maximumSignificantDigits?: number | undefined;
|
|
}
|
|
|
|
interface ResolvedNumberFormatOptions {
|
|
locale: string;
|
|
numberingSystem: string;
|
|
style: string;
|
|
currency?: string;
|
|
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" | undefined;
|
|
weekday?: "long" | "short" | "narrow" | undefined;
|
|
era?: "long" | "short" | "narrow" | undefined;
|
|
year?: "numeric" | "2-digit" | undefined;
|
|
month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;
|
|
day?: "numeric" | "2-digit" | undefined;
|
|
hour?: "numeric" | "2-digit" | undefined;
|
|
minute?: "numeric" | "2-digit" | undefined;
|
|
second?: "numeric" | "2-digit" | undefined;
|
|
timeZoneName?: "long" | "short" | undefined;
|
|
formatMatcher?: "best fit" | "basic" | undefined;
|
|
hour12?: boolean | undefined;
|
|
timeZone?: string | undefined;
|
|
}
|
|
|
|
interface ResolvedDateTimeFormatOptions {
|
|
locale: string;
|
|
calendar: string;
|
|
numberingSystem: string;
|
|
timeZone: string;
|
|
hour12?: boolean;
|
|
weekday?: string;
|
|
era?: string;
|
|
year?: string;
|
|
month?: string;
|
|
day?: string;
|
|
hour?: string;
|
|
minute?: string;
|
|
second?: string;
|
|
timeZoneName?: string;
|
|
}
|
|
|
|
interface DateTimeFormat {
|
|
format(date?: Date | number): string;
|
|
resolvedOptions(): ResolvedDateTimeFormatOptions;
|
|
}
|
|
var DateTimeFormat: {
|
|
new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
|
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
|
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
|
|
};
|
|
}
|
|
|
|
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;
|
|
}
|
|
`,Oi["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" />
|
|
`,Oi["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" />
|
|
`,Oi["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" />`,Oi["lib.esnext.intl.d.ts"]=`/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
declare namespace Intl {
|
|
// Empty for now
|
|
}
|
|
`,Oi["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>
|
|
}
|
|
`,Oi["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;
|
|
}
|
|
`,Oi["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;
|
|
`,Oi["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;
|
|
}
|
|
`,Oi["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 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?: null;
|
|
}
|
|
|
|
interface ResponseInit {
|
|
headers?: HeadersInit;
|
|
status?: number;
|
|
statusText?: string;
|
|
}
|
|
|
|
interface RsaHashedImportParams extends Algorithm {
|
|
hash: HashAlgorithmIdentifier;
|
|
}
|
|
|
|
interface RsaHashedKeyGenParams extends RsaKeyGenParams {
|
|
hash: HashAlgorithmIdentifier;
|
|
}
|
|
|
|
interface RsaKeyGenParams extends Algorithm {
|
|
modulusLength: number;
|
|
publicExponent: BigInteger;
|
|
}
|
|
|
|
interface RsaOaepParams extends Algorithm {
|
|
label?: BufferSource;
|
|
}
|
|
|
|
interface RsaOtherPrimesInfo {
|
|
d?: string;
|
|
r?: string;
|
|
t?: string;
|
|
}
|
|
|
|
interface RsaPssParams extends Algorithm {
|
|
saltLength: number;
|
|
}
|
|
|
|
interface SecurityPolicyViolationEventInit extends EventInit {
|
|
blockedURI?: string;
|
|
columnNumber?: number;
|
|
disposition: SecurityPolicyViolationEventDisposition;
|
|
documentURI: string;
|
|
effectiveDirective: string;
|
|
lineNumber?: number;
|
|
originalPolicy: string;
|
|
referrer?: string;
|
|
sample?: string;
|
|
sourceFile?: string;
|
|
statusCode: number;
|
|
violatedDirective: string;
|
|
}
|
|
|
|
interface StorageEstimate {
|
|
quota?: number;
|
|
usage?: number;
|
|
}
|
|
|
|
interface StreamPipeOptions {
|
|
preventAbort?: boolean;
|
|
preventCancel?: boolean;
|
|
/**
|
|
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
|
|
*
|
|
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
|
|
*
|
|
* Errors and closures of the source and destination streams propagate as follows:
|
|
*
|
|
* An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
|
|
*
|
|
* An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
|
|
*
|
|
* When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
|
|
*
|
|
* If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
|
|
*
|
|
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
|
|
*/
|
|
preventClose?: boolean;
|
|
signal?: AbortSignal;
|
|
}
|
|
|
|
interface StructuredSerializeOptions {
|
|
transfer?: any[];
|
|
}
|
|
|
|
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;
|
|
// abort(): AbortSignal; - To be re-added in the future
|
|
};
|
|
|
|
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.
|
|
* Available only in secure contexts.
|
|
*/
|
|
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.
|
|
* Available only in secure contexts.
|
|
*/
|
|
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?: StructuredSerializeOptions): 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 {
|
|
/** Available only in secure contexts. */
|
|
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.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface CryptoKey {
|
|
readonly algorithm: KeyAlgorithm;
|
|
readonly extractable: boolean;
|
|
readonly type: KeyType;
|
|
readonly usages: KeyUsage[];
|
|
}
|
|
|
|
declare var CryptoKey: {
|
|
prototype: CryptoKey;
|
|
new(): CryptoKey;
|
|
};
|
|
|
|
interface CustomEvent<T = any> extends Event {
|
|
/** Returns any custom data event was created with. Typically used for synthetic events. */
|
|
readonly detail: T;
|
|
/** @deprecated */
|
|
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
|
|
}
|
|
|
|
declare var CustomEvent: {
|
|
prototype: CustomEvent;
|
|
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
|
|
};
|
|
|
|
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
|
|
interface DOMException extends Error {
|
|
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?: StructuredSerializeOptions): void;
|
|
addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var DedicatedWorkerGlobalScope: {
|
|
prototype: DedicatedWorkerGlobalScope;
|
|
new(): DedicatedWorkerGlobalScope;
|
|
};
|
|
|
|
interface EXT_blend_minmax {
|
|
readonly 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?: StructuredSerializeOptions): void;
|
|
/** Begins dispatching messages received on the port. */
|
|
start(): void;
|
|
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var MessagePort: {
|
|
prototype: MessagePort;
|
|
new(): MessagePort;
|
|
};
|
|
|
|
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;
|
|
}
|
|
|
|
/** Available only in secure contexts. */
|
|
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.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface PushEvent extends ExtendableEvent {
|
|
readonly data: PushMessageData | null;
|
|
}
|
|
|
|
declare var PushEvent: {
|
|
prototype: PushEvent;
|
|
new(type: string, eventInitDict?: PushEventInit): PushEvent;
|
|
};
|
|
|
|
/**
|
|
* This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface PushManager {
|
|
getSubscription(): Promise<PushSubscription | null>;
|
|
permissionState(options?: PushSubscriptionOptionsInit): Promise<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.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface PushMessageData {
|
|
arrayBuffer(): ArrayBuffer;
|
|
blob(): Blob;
|
|
json(): any;
|
|
text(): string;
|
|
}
|
|
|
|
declare var PushMessageData: {
|
|
prototype: PushMessageData;
|
|
new(): PushMessageData;
|
|
};
|
|
|
|
/**
|
|
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface PushSubscription {
|
|
readonly endpoint: string;
|
|
readonly options: PushSubscriptionOptions;
|
|
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
|
|
toJSON(): PushSubscriptionJSON;
|
|
unsubscribe(): Promise<boolean>;
|
|
}
|
|
|
|
declare var PushSubscription: {
|
|
prototype: PushSubscription;
|
|
new(): PushSubscription;
|
|
};
|
|
|
|
/** Available only in secure contexts. */
|
|
interface PushSubscriptionOptions {
|
|
readonly applicationServerKey: ArrayBuffer | null;
|
|
}
|
|
|
|
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>];
|
|
}
|
|
|
|
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.
|
|
* Available only in secure contexts.
|
|
*/
|
|
interface ServiceWorker extends EventTarget, AbstractWorker {
|
|
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
|
|
readonly scriptURL: string;
|
|
readonly state: ServiceWorkerState;
|
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var ServiceWorker: {
|
|
prototype: ServiceWorker;
|
|
new(): ServiceWorker;
|
|
};
|
|
|
|
interface ServiceWorkerContainerEventMap {
|
|
"controllerchange": Event;
|
|
"message": MessageEvent;
|
|
"messageerror": MessageEvent;
|
|
}
|
|
|
|
/**
|
|
* The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
|
|
* Available only in secure contexts.
|
|
*/
|
|
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.
|
|
* Available only in secure contexts.
|
|
*/
|
|
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;
|
|
};
|
|
|
|
/** Available only in secure contexts. */
|
|
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).
|
|
* Available only in secure contexts.
|
|
*/
|
|
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(obj: Blob): string;
|
|
revokeObjectURL(url: string): void;
|
|
};
|
|
|
|
interface URLSearchParams {
|
|
/** Appends a specified key/value pair as a new search parameter. */
|
|
append(name: string, value: string): void;
|
|
/** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
|
|
delete(name: string): void;
|
|
/** Returns the first value associated to the given search parameter. */
|
|
get(name: string): string | null;
|
|
/** Returns all the values association with a given search parameter. */
|
|
getAll(name: string): string[];
|
|
/** Returns a Boolean indicating if such a search parameter exists. */
|
|
has(name: string): boolean;
|
|
/** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
|
|
set(name: string, value: string): void;
|
|
sort(): void;
|
|
/** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
|
|
toString(): string;
|
|
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
|
|
}
|
|
|
|
declare var URLSearchParams: {
|
|
prototype: URLSearchParams;
|
|
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
|
|
toString(): string;
|
|
};
|
|
|
|
interface 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 {
|
|
/** Available only in secure contexts. */
|
|
readonly caches: CacheStorage;
|
|
readonly crossOriginIsolated: boolean;
|
|
readonly crypto: Crypto;
|
|
readonly indexedDB: IDBFactory;
|
|
readonly isSecureContext: boolean;
|
|
readonly origin: string;
|
|
readonly performance: Performance;
|
|
atob(data: string): string;
|
|
btoa(data: string): string;
|
|
clearInterval(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?: StructuredSerializeOptions): void;
|
|
/** Aborts worker's associated global environment. */
|
|
terminate(): void;
|
|
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
}
|
|
|
|
declare var Worker: {
|
|
prototype: Worker;
|
|
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
|
|
};
|
|
|
|
interface WorkerGlobalScopeEventMap {
|
|
"error": ErrorEvent;
|
|
"languagechange": Event;
|
|
"offline": Event;
|
|
"online": Event;
|
|
"rejectionhandled": PromiseRejectionEvent;
|
|
"unhandledrejection": PromiseRejectionEvent;
|
|
}
|
|
|
|
/** This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects \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(message?: string): CompileError;
|
|
(message?: string): CompileError;
|
|
};
|
|
|
|
interface Global {
|
|
value: any;
|
|
valueOf(): any;
|
|
}
|
|
|
|
var Global: {
|
|
prototype: Global;
|
|
new(descriptor: GlobalDescriptor, v?: any): Global;
|
|
};
|
|
|
|
interface Instance {
|
|
readonly exports: Exports;
|
|
}
|
|
|
|
var Instance: {
|
|
prototype: Instance;
|
|
new(module: Module, importObject?: Imports): Instance;
|
|
};
|
|
|
|
interface LinkError extends Error {
|
|
}
|
|
|
|
var LinkError: {
|
|
prototype: LinkError;
|
|
new(message?: string): LinkError;
|
|
(message?: string): LinkError;
|
|
};
|
|
|
|
interface Memory {
|
|
readonly buffer: ArrayBuffer;
|
|
grow(delta: number): number;
|
|
}
|
|
|
|
var Memory: {
|
|
prototype: Memory;
|
|
new(descriptor: MemoryDescriptor): Memory;
|
|
};
|
|
|
|
interface Module {
|
|
}
|
|
|
|
var Module: {
|
|
prototype: Module;
|
|
new(bytes: BufferSource): Module;
|
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
};
|
|
|
|
interface RuntimeError extends Error {
|
|
}
|
|
|
|
var RuntimeError: {
|
|
prototype: RuntimeError;
|
|
new(message?: string): RuntimeError;
|
|
(message?: string): RuntimeError;
|
|
};
|
|
|
|
interface Table {
|
|
readonly length: number;
|
|
get(index: number): any;
|
|
grow(delta: number, value?: any): number;
|
|
set(index: number, value?: any): void;
|
|
}
|
|
|
|
var Table: {
|
|
prototype: Table;
|
|
new(descriptor: TableDescriptor, value?: any): Table;
|
|
};
|
|
|
|
interface GlobalDescriptor {
|
|
mutable?: boolean;
|
|
value: ValueType;
|
|
}
|
|
|
|
interface MemoryDescriptor {
|
|
initial: number;
|
|
maximum?: number;
|
|
shared?: boolean;
|
|
}
|
|
|
|
interface ModuleExportDescriptor {
|
|
kind: ImportExportKind;
|
|
name: string;
|
|
}
|
|
|
|
interface ModuleImportDescriptor {
|
|
kind: ImportExportKind;
|
|
module: string;
|
|
name: string;
|
|
}
|
|
|
|
interface TableDescriptor {
|
|
element: TableKind;
|
|
initial: number;
|
|
maximum?: number;
|
|
}
|
|
|
|
interface WebAssemblyInstantiatedSource {
|
|
instance: Instance;
|
|
module: Module;
|
|
}
|
|
|
|
type ImportExportKind = "function" | "global" | "memory" | "table";
|
|
type TableKind = "anyfunc" | "externref";
|
|
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
|
|
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?: StructuredSerializeOptions): void;
|
|
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
|
|
declare function dispatchEvent(event: Event): boolean;
|
|
/** Returns workerGlobal's WorkerLocation object. */
|
|
declare var location: WorkerLocation;
|
|
/** Returns workerGlobal's WorkerNavigator object. */
|
|
declare var navigator: WorkerNavigator;
|
|
declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
|
|
declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
|
|
declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
|
|
declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
|
|
declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
/** Returns workerGlobal. */
|
|
declare var self: WorkerGlobalScope & typeof globalThis;
|
|
/** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */
|
|
declare function importScripts(...urls: (string | URL)[]): void;
|
|
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
|
|
declare function dispatchEvent(event: Event): boolean;
|
|
declare var fonts: FontFaceSet;
|
|
/** Available only in secure contexts. */
|
|
declare var caches: CacheStorage;
|
|
declare var crossOriginIsolated: boolean;
|
|
declare var crypto: Crypto;
|
|
declare var indexedDB: IDBFactory;
|
|
declare var isSecureContext: boolean;
|
|
declare var origin: string;
|
|
declare var performance: Performance;
|
|
declare function atob(data: string): string;
|
|
declare function btoa(data: string): string;
|
|
declare function clearInterval(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 = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
|
|
type PermissionState = "denied" | "granted" | "prompt";
|
|
type PredefinedColorSpace = "display-p3" | "srgb";
|
|
type PremultiplyAlpha = "default" | "none" | "premultiply";
|
|
type PushEncryptionKeyName = "auth" | "p256dh";
|
|
type 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";
|
|
`,Oi["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;
|
|
`,Oi["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 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;
|
|
}
|
|
`;function cc(e){return typeof e=="string"?/^file:\/\/\//.test(e)?!!Oi[e.substr(8)]:!1:e.path.indexOf("/lib.")===0?!!Oi[e.path.slice(1)]:!1}var wg=class{constructor(e,n){Nv(this,"_ctx");Nv(this,"_extraLibs",Object.create(null));Nv(this,"_languageService",fD(this));Nv(this,"_compilerOptions");Nv(this,"_inlayHintsOptions");this._ctx=e,this._compilerOptions=n.compilerOptions,this._extraLibs=n.extraLibs,this._inlayHintsOptions=n.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(f=>f.uri).filter(f=>!cc(f)).map(f=>f.toString(!0)).concat(Object.keys(this._extraLibs))}_getModel(e){let n=this._ctx.getMirrorModels();for(let f=0;f<n.length;f++){const d=n[f].uri;if(d.toString()===e||d.toString(!0)===e)return n[f]}return null}getScriptVersion(e){let n=this._getModel(e);return n?n.version.toString():this.isDefaultLibFileName(e)?"1":e in this._extraLibs?String(this._extraLibs[e].version):""}async getScriptText(e){return this._getScriptText(e)}_getScriptText(e){let n,f=this._getModel(e);const d="lib."+e+".d.ts";if(f)n=f.getValue();else if(e in Oi)n=Oi[e];else if(d in Oi)n=Oi[d];else if(e in this._extraLibs)n=this._extraLibs[e].content;else return;return n}getScriptSnapshot(e){const n=this._getScriptText(e);if(n!==void 0)return{getText:(f,d)=>n.substring(f,d),getLength:()=>n.length,getChangeRange:()=>{}}}getScriptKind(e){switch(e.substr(e.lastIndexOf(".")+1)){case"ts":return Fm.TS;case"tsx":return Fm.TSX;case"js":return Fm.JS;case"jsx":return Fm.JSX;default:return this.getCompilationSettings().allowJs?Fm.JS:Fm.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(e){switch(e.target){case 99:const n="lib.esnext.full.d.ts";if(n in Oi||n in this._extraLibs)return n;case 7:case 6:case 5:case 4:case 3:case 2:default:const f=`lib.es${2013+(e.target||99)}.full.d.ts`;return f in Oi||f in this._extraLibs?f:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(e){return e===this.getDefaultLibFileName(this._compilerOptions)}readFile(e){return this._getScriptText(e)}fileExists(e){return this._getScriptText(e)!==void 0}async getLibFiles(){return Oi}static clearFiles(e){const n=[];for(const f of e){const d={...f};if(d.file=d.file?{fileName:d.file.fileName}:void 0,f.relatedInformation){d.relatedInformation=[];for(const a of f.relatedInformation){const p={...a};p.file=p.file?{fileName:p.file.fileName}:void 0,d.relatedInformation.push(p)}}n.push(d)}return n}async getSyntacticDiagnostics(e){if(cc(e))return[];const n=this._languageService.getSyntacticDiagnostics(e);return wg.clearFiles(n)}async getSemanticDiagnostics(e){if(cc(e))return[];const n=this._languageService.getSemanticDiagnostics(e);return wg.clearFiles(n)}async getSuggestionDiagnostics(e){if(cc(e))return[];const n=this._languageService.getSuggestionDiagnostics(e);return wg.clearFiles(n)}async getCompilerOptionsDiagnostics(e){if(cc(e))return[];const n=this._languageService.getCompilerOptionsDiagnostics();return wg.clearFiles(n)}async getCompletionsAtPosition(e,n){if(!cc(e))return this._languageService.getCompletionsAtPosition(e,n,void 0)}async getCompletionEntryDetails(e,n,f){return this._languageService.getCompletionEntryDetails(e,n,f,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(e,n,f){if(!cc(e))return this._languageService.getSignatureHelpItems(e,n,f)}async getQuickInfoAtPosition(e,n){if(!cc(e))return this._languageService.getQuickInfoAtPosition(e,n)}async getOccurrencesAtPosition(e,n){if(!cc(e))return this._languageService.getOccurrencesAtPosition(e,n)}async getDefinitionAtPosition(e,n){if(!cc(e))return this._languageService.getDefinitionAtPosition(e,n)}async getReferencesAtPosition(e,n){if(!cc(e))return this._languageService.getReferencesAtPosition(e,n)}async getNavigationBarItems(e){return cc(e)?[]:this._languageService.getNavigationBarItems(e)}async getFormattingEditsForDocument(e,n){return cc(e)?[]:this._languageService.getFormattingEditsForDocument(e,n)}async getFormattingEditsForRange(e,n,f,d){return cc(e)?[]:this._languageService.getFormattingEditsForRange(e,n,f,d)}async getFormattingEditsAfterKeystroke(e,n,f,d){return cc(e)?[]:this._languageService.getFormattingEditsAfterKeystroke(e,n,f,d)}async findRenameLocations(e,n,f,d,a){if(!cc(e))return this._languageService.findRenameLocations(e,n,f,d,a)}async getRenameInfo(e,n,f){return cc(e)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(e,n,f)}async getEmitOutput(e){return cc(e)?{outputFiles:[],emitSkipped:!0}:this._languageService.getEmitOutput(e)}async getCodeFixesAtPosition(e,n,f,d,a){if(cc(e))return[];const p={};try{return this._languageService.getCodeFixesAtPosition(e,n,f,d,a,p)}catch{return[]}}async updateExtraLibs(e){this._extraLibs=e}async provideInlayHints(e,n,f){var p;if(cc(e))return[];const d=(p=this._inlayHintsOptions)!=null?p:{},a={start:n,length:f-n};try{return this._languageService.provideInlayHints(e,a,d)}catch{return[]}}};function Ak(e,n){let f=wg;if(n.customWorkerPath)if(typeof importScripts>"u")console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{importScripts(n.customWorkerPath);const d=self.customTSWorkerFactory;if(!d)throw new Error(`The script at ${n.customWorkerPath} does not add customTSWorkerFactory to self`);f=d(wg,lD,Oi)}return new f(e,n)}globalThis.ts=dD,self.onmessage=()=>{sD((e,n)=>Ak(e,n))};/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** */})();
|