newreactbuild/ts.worker.js

27288 lines
3.5 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(ru){var Ui={};function Yi(ni){if(Ui[ni])return Ui[ni].exports;var po=Ui[ni]={i:ni,l:!1,exports:{}};return ru[ni].call(po.exports,po,po.exports,Yi),po.l=!0,po.exports}return Yi.m=ru,Yi.c=Ui,Yi.d=function(ni,po,os){Yi.o(ni,po)||Object.defineProperty(ni,po,{enumerable:!0,get:os})},Yi.r=function(ni){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ni,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ni,"__esModule",{value:!0})},Yi.t=function(ni,po){if(po&1&&(ni=Yi(ni)),po&8)return ni;if(po&4&&typeof ni=="object"&&ni&&ni.__esModule)return ni;var os=Object.create(null);if(Yi.r(os),Object.defineProperty(os,"default",{enumerable:!0,value:ni}),po&2&&typeof ni!="string")for(var Or in ni)Yi.d(os,Or,function(ma){return ni[ma]}.bind(null,Or));return os},Yi.n=function(ni){var po=ni&&ni.__esModule?function(){return ni.default}:function(){return ni};return Yi.d(po,"a",po),po},Yi.o=function(ni,po){return Object.prototype.hasOwnProperty.call(ni,po)},Yi.p="/react/build/",Yi(Yi.s="AHH3")})({"7vYp":function(ru,Ui,Yi){Ui.nextTick=function(po){var os=Array.prototype.slice.call(arguments);os.shift(),setTimeout(function(){po.apply(null,os)},0)},Ui.platform=Ui.arch=Ui.execPath=Ui.title="browser",Ui.pid=1,Ui.browser=!0,Ui.env={},Ui.argv=[],Ui.binding=function(ni){throw new Error("No such module. (Possibly not yet loaded)")},function(){var ni="/",po;Ui.cwd=function(){return ni},Ui.chdir=function(os){po||(po=Yi("YmYf")),ni=po.resolve(os,ni)}}(),Ui.exit=Ui.kill=Ui.umask=Ui.dlopen=Ui.uptime=Ui.memoryUsage=Ui.uvCounters=function(){},Ui.features={}},AHH3:function(ru,Ui,Yi){"use strict";Yi.r(Ui);var ni=function(){function l(){this.listeners=[],this.unexpectedErrorHandler=function(E){setTimeout(function(){throw E.stack?new Error(E.message+`
`+E.stack):E},0)}}return l.prototype.emit=function(E){this.listeners.forEach(function(M){M(E)})},l.prototype.onUnexpectedError=function(E){this.unexpectedErrorHandler(E),this.emit(E)},l.prototype.onUnexpectedExternalError=function(E){this.unexpectedErrorHandler(E)},l}(),po=new ni;function os(l){bi(l)||po.onUnexpectedError(l);return}function Or(l){bi(l)||po.onUnexpectedExternalError(l);return}function ma(l){if(l instanceof Error){var E=l.name,M=l.message,Me=l.stacktrace||l.stack;return{$isError:!0,name:E,message:M,stack:Me}}return l}var Vr="Canceled";function bi(l){return l instanceof Error&&l.name===Vr&&l.message===Vr}function Mi(){var l=new Error(Vr);return l.name=l.message,l}function ln(l){return l?new Error("Illegal argument: "+l):new Error("Illegal argument")}function Wo(l){return l?new Error("Illegal state: "+l):new Error("Illegal state")}var Ls=!1,pl="__is_disposable_tracked__";function zo(l){if(!Ls)return;if(l&&l!==Lu.None)try{l[pl]=!0}catch(E){}}function Aa(l){if(!Ls)return l;var E=new Error("Potentially leaked disposable").stack;return setTimeout(function(){l[pl]||console.log(E)},3e3),l}function xi(l){return typeof l.dispose=="function"&&l.dispose.length===0}function lo(l){return Array.isArray(l)?(l.forEach(function(E){E&&(zo(E),E.dispose())}),[]):l?(zo(l),l.dispose(),l):void 0}function Xo(){for(var l=[],E=0;E<arguments.length;E++)l[E]=arguments[E];return l.forEach(zo),Aa({dispose:function(){return lo(l)}})}function Du(l){var E=Aa({dispose:function(){zo(E),l()}});return E}var Nd=function(){function l(){this._toDispose=new Set,this._isDisposed=!1}return l.prototype.dispose=function(){if(this._isDisposed)return;zo(this),this._isDisposed=!0,this.clear()},l.prototype.clear=function(){this._toDispose.forEach(function(E){return E.dispose()}),this._toDispose.clear()},l.prototype.add=function(E){if(!E)return E;if(E===this)throw new Error("Cannot register a disposable on itself!");return zo(E),this._isDisposed?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(E),E},l}(),Lu=function(){function l(){this._store=new Nd,Aa(this)}return l.prototype.dispose=function(){zo(this),this._store.dispose()},l.prototype._register=function(E){if(E===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(E)},l.None=Object.freeze({dispose:function(){}}),l}(),Op=function(){function l(){this._isDisposed=!1,Aa(this)}return Object.defineProperty(l.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(M){if(this._isDisposed||M===this._value)return;this._value&&this._value.dispose(),M&&zo(M),this._value=M},enumerable:!0,configurable:!0}),l.prototype.clear=function(){this.value=void 0},l.prototype.dispose=function(){this._isDisposed=!0,zo(this),this._value&&this._value.dispose(),this._value=void 0},l}(),e=function(){function l(E){this.object=E}return l.prototype.dispose=function(){},l}(),o=Yi("S7i+"),F={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function qe(l){return Array.isArray?Array.isArray(l):!!(l&&typeof l.length===F.number&&l.constructor===Array)}function Se(l){return typeof l===F.string||l instanceof String}function Fe(l){return typeof l===F.object&&l!==null&&!Array.isArray(l)&&!(l instanceof RegExp)&&!(l instanceof Date)}function He(l){return(typeof l===F.number||l instanceof Number)&&!isNaN(l)}function ve(l){return l===!0||l===!1}function ie(l){return typeof l===F.undefined}function d(l){return ie(l)||l===null}function H(l,E){if(!l)throw new Error(E?"Unexpected type, expected '"+E+"'":"Unexpected type")}var Pe=Object.prototype.hasOwnProperty;function I(l){if(!Fe(l))return!1;for(var E in l)if(Pe.call(l,E))return!1;return!0}function _e(l){return typeof l===F.function}function re(l,E){for(var M=Math.min(l.length,E.length),Me=0;Me<M;Me++)se(l[Me],E[Me])}function se(l,E){if(Se(E)){if(typeof l!==E)throw new Error("argument does not match constraint: typeof "+E)}else if(_e(E)){try{if(l instanceof E)return}catch(M){}if(!d(l)&&l.constructor===E)return;if(E.length===1&&E.call(void 0,l)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function w(l){for(var E=[],M=Object.getPrototypeOf(l);Object.prototype!==M;)E=E.concat(Object.getOwnPropertyNames(M)),M=Object.getPrototypeOf(M);return E}function k(l){for(var E=[],M=0,Me=w(l);M<Me.length;M++){var on=Me[M];typeof l[on]=="function"&&E.push(on)}return E}function P(l,E){for(var M=function(Ft){return function(){var Lt=Array.prototype.slice.call(arguments,0);return E(Ft,Lt)}},Me={},on=0,fn=l;on<fn.length;on++){var Wn=fn[on];Me[Wn]=M(Wn)}return Me}function h(l){return l===null?void 0:l}function Y(l){return typeof l=="undefined"?null:l}var ne=function(){var l=function(M,Me){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(on,fn){on.__proto__=fn}||function(on,fn){for(var Wn in fn)fn.hasOwnProperty(Wn)&&(on[Wn]=fn[Wn])},l(M,Me)};return function(E,M){l(E,M);function Me(){this.constructor=E}E.prototype=M===null?Object.create(M):(Me.prototype=M.prototype,new Me)}}(),$="$initialize",J=!1;function fe(l){if(!o.b)return;J||(J=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(l.message)}var R=function(){function l(E){this._workerId=-1,this._handler=E,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return l.prototype.setWorkerId=function(E){this._workerId=E},l.prototype.sendMessage=function(E,M){var Me=this,on=String(++this._lastSentReq);return new Promise(function(fn,Wn){Me._pendingReplies[on]={resolve:fn,reject:Wn},Me._send({vsWorker:Me._workerId,req:on,method:E,args:M})})},l.prototype.handleMessage=function(E){if(!E||!E.vsWorker)return;if(this._workerId!==-1&&E.vsWorker!==this._workerId)return;this._handleMessage(E)},l.prototype._handleMessage=function(E){var M=this;if(E.seq){var Me=E;if(!this._pendingReplies[Me.seq]){console.warn("Got reply to unknown seq");return}var on=this._pendingReplies[Me.seq];if(delete this._pendingReplies[Me.seq],Me.err){var fn=Me.err;Me.err.$isError&&(fn=new Error,fn.name=Me.err.name,fn.message=Me.err.message,fn.stack=Me.err.stack),on.reject(fn);return}on.resolve(Me.res);return}var Wn=E,Dt=Wn.req,Ft=this._handler.handleMessage(Wn.method,Wn.args);Ft.then(function(Lt){M._send({vsWorker:M._workerId,seq:Dt,res:Lt,err:void 0})},function(Lt){Lt.detail instanceof Error&&(Lt.detail=ma(Lt.detail)),M._send({vsWorker:M._workerId,seq:Dt,res:void 0,err:ma(Lt)})})},l.prototype._send=function(E){var M=[];if(E.req)for(var Me=E,on=0;on<Me.args.length;on++)Me.args[on]instanceof ArrayBuffer&&M.push(Me.args[on]);else{var Me=E;Me.res instanceof ArrayBuffer&&M.push(Me.res)}this._handler.sendMessage(E,M)},l}(),K=function(l){ne(E,l);function E(M,Me,on){var fn=l.call(this)||this,Wn=null;fn._worker=fn._register(M.create("vs/base/common/worker/simpleWorker",function(mr){fn._protocol.handleMessage(mr)},function(mr){Wn&&Wn(mr)})),fn._protocol=new R({sendMessage:function(fr,Hr){fn._worker.postMessage(fr,Hr)},handleMessage:function(fr,Hr){if(typeof on[fr]!="function")return Promise.reject(new Error("Missing method "+fr+" on main thread host."));try{return Promise.resolve(on[fr].apply(on,Hr))}catch(ha){return Promise.reject(ha)}}}),fn._protocol.setWorkerId(fn._worker.getId());var Dt=null;typeof self.require!="undefined"&&typeof self.require.getConfig=="function"?Dt=self.require.getConfig():typeof self.requirejs!="undefined"&&(Dt=self.requirejs.s.contexts._.config);var Ft=k(on);fn._onModuleLoaded=fn._protocol.sendMessage($,[fn._worker.getId(),JSON.parse(JSON.stringify(Dt)),Me,Ft]);var Lt=function(fr,Hr){return fn._request(fr,Hr)};return fn._lazyProxy=new Promise(function(mr,fr){Wn=fr,fn._onModuleLoaded.then(function(Hr){mr(P(Hr,Lt))},function(Hr){fr(Hr),fn._onError("Worker failed to load "+Me,Hr)})}),fn}return E.prototype.getProxyObject=function(){return this._lazyProxy},E.prototype._request=function(M,Me){var on=this;return new Promise(function(fn,Wn){on._onModuleLoaded.then(function(){on._protocol.sendMessage(M,Me).then(fn,Wn)},Wn)})},E.prototype._onError=function(M,Me){console.error(M),console.info(Me)},E}(Lu),z=function(){function l(E,M){var Me=this;this._requestHandlerFactory=M,this._requestHandler=null,this._protocol=new R({sendMessage:function(fn,Wn){E(fn,Wn)},handleMessage:function(fn,Wn){return Me._handleMessage(fn,Wn)}})}return l.prototype.onmessage=function(E){this._protocol.handleMessage(E)},l.prototype._handleMessage=function(E,M){if(E===$)return this.initialize(M[0],M[1],M[2],M[3]);if(!this._requestHandler||typeof this._requestHandler[E]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+E));try{return Promise.resolve(this._requestHandler[E].apply(this._requestHandler,M))}catch(Me){return Promise.reject(Me)}},l.prototype.initialize=function(E,M,Me,on){var fn=this;this._protocol.setWorkerId(E);var Wn=function(Lt,mr){return fn._protocol.sendMessage(Lt,mr)},Dt=P(on,Wn);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(Dt),Promise.resolve(k(this._requestHandler))):(M&&(typeof M.baseUrl!="undefined"&&delete M.baseUrl,typeof M.paths!="undefined"&&(typeof M.paths.vs!="undefined"&&delete M.paths.vs),M.catchError=!0,self.require.config(M)),new Promise(function(Ft,Lt){self.require([Me],function(mr){if(fn._requestHandler=mr.create(Dt),!fn._requestHandler){Lt(new Error("No RequestHandler!"));return}Ft(k(fn._requestHandler))},Lt)}))},l}();function Ee(l){return new z(l,null)}function B(l,E){return E===void 0&&(E=0),l[l.length-(1+E)]}function V(l){if(l.length===0)throw new Error("Invalid tail call");return[l.slice(0,l.length-1),l[l.length-1]]}function m(l,E,M){if(M===void 0&&(M=function(Wn,Dt){return Wn===Dt}),l===E)return!0;if(!l||!E)return!1;if(l.length!==E.length)return!1;for(var Me=0,on=l.length;Me<on;Me++)if(!M(l[Me],E[Me]))return!1;return!0}function y(l,E,M){for(var Me=0,on=l.length-1;Me<=on;){var fn=(Me+on)/2|0,Wn=M(l[fn],E);if(Wn<0)Me=fn+1;else if(Wn>0)on=fn-1;else return fn}return-(Me+1)}function L(l,E){var M=0,Me=l.length;if(Me===0)return 0;for(;M<Me;){var on=Math.floor((M+Me)/2);E(l[on])?Me=on:M=on+1}return M}function C(l,E){return b(l,E,0,l.length-1,[]),l}function _(l,E,M,Me,on,fn){for(var Wn=M,Dt=Me+1,Ft=M;Ft<=on;Ft++)fn[Ft]=l[Ft];for(var Ft=M;Ft<=on;Ft++)Wn>Me?l[Ft]=fn[Dt++]:Dt>on?l[Ft]=fn[Wn++]:E(fn[Dt],fn[Wn])<0?l[Ft]=fn[Dt++]:l[Ft]=fn[Wn++]}function b(l,E,M,Me,on){if(Me<=M)return;var fn=M+(Me-M)/2|0;if(b(l,E,M,fn,on),b(l,E,fn+1,Me,on),E(l[fn],l[fn+1])<=0)return;_(l,E,M,fn,Me,on)}function D(l,E){for(var M=[],Me=void 0,on=0,fn=C(l.slice(0),E);on<fn.length;on++){var Wn=fn[on];!Me||E(Me[0],Wn)!==0?(Me=[Wn],M.push(Me)):Me.push(Wn)}return M}function T(l){return l.filter(function(E){return!!E})}function Q(l){return!Array.isArray(l)||l.length===0}function N(l){return Array.isArray(l)&&l.length>0}function X(l,E){if(!E)return l.filter(function(Me,on){return l.indexOf(Me)===on});var M=Object.create(null);return l.filter(function(Me){var on=E(Me);return M[on]?!1:(M[on]=!0,!0)})}function pe(l){var E=new Set;return l.filter(function(M){return E.has(M)?!1:(E.add(M),!0)})}function S(l){var E=[];return l.forEach(function(M){return E.push(M)}),E}function v(l,E){for(var M=0;M<l.length;M++){var Me=l[M];if(E(Me))return M}return-1}function U(l,E,M){M===void 0&&(M=void 0);var Me=v(l,E);return Me<0?M:l[Me]}function de(l,E){return l.length>0?l[0]:E}function Ce(l){var E;return(E=[]).concat.apply(E,l)}function Z(l,E){var M=typeof E=="number"?l:0;typeof E=="number"?M=l:(M=0,E=l);var Me=[];if(M<=E)for(var on=M;on<E;on++)Me.push(on);else for(var on=M;on>E;on--)Me.push(on);return Me}function Re(l,E,M){var Me=l.slice(0,E),on=l.slice(E);return Me.concat(M,on)}function Ae(l,E){var M=l.indexOf(E);M>-1&&(l.splice(M,1),l.unshift(E))}function We(l,E){var M=l.indexOf(E);M>-1&&(l.splice(M,1),l.push(E))}function be(l,E){for(var M=0;M<l.length;M++){var Me=l[M];if(E(Me,M,l))return Me}return}function Ge(l){return Array.isArray(l)?l:[l]}var x=function(){function l(E,M,Me,on){this.originalStart=E,this.originalLength=M,this.modifiedStart=Me,this.modifiedLength=on}return l.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},l.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},l}();function j(l,E){E===void 0&&(E=0);switch(typeof l){case"object":return l===null?Oe(349,E):Array.isArray(l)?Pn(l,E):Xn(l,E);case"string":return en(l,E);case"boolean":return a(l,E);case"number":return Oe(l,E);case"undefined":return Oe(0,937);default:return Oe(0,617)}}function Oe(l,E){return(E<<5)-E+l|0}function a(l,E){return Oe(l?433:863,E)}function en(l,E){E=Oe(149417,E);for(var M=0,Me=l.length;M<Me;M++)E=Oe(l.charCodeAt(M),E);return E}function Pn(l,E){return E=Oe(104579,E),l.reduce(function(M,Me){return j(Me,M)},E)}function Xn(l,E){return E=Oe(181387,E),Object.keys(l).sort().reduce(function(M,Me){return M=en(Me,M),j(l[Me],M)},E)}var ae=function(){function l(E){this.source=E}return l.prototype.getElements=function(){for(var E=this.source,M=new Int32Array(E.length),Me=0,on=E.length;Me<on;Me++)M[Me]=E.charCodeAt(Me);return M},l}();function ce(l,E,M){return new Ue(new ae(l),new ae(E)).ComputeDiff(M).changes}var Le=function(){function l(){}return l.Assert=function(E,M){if(!E)throw new Error(M)},l}(),Je=function(){function l(){}return l.Copy=function(E,M,Me,on,fn){for(var Wn=0;Wn<fn;Wn++)Me[on+Wn]=E[M+Wn]},l.Copy2=function(E,M,Me,on,fn){for(var Wn=0;Wn<fn;Wn++)Me[on+Wn]=E[M+Wn]},l}(),Ze=function(){function l(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}return l.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new x(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},l.prototype.AddOriginalElement=function(E,M){this.m_originalStart=Math.min(this.m_originalStart,E),this.m_modifiedStart=Math.min(this.m_modifiedStart,M),this.m_originalCount++},l.prototype.AddModifiedElement=function(E,M){this.m_originalStart=Math.min(this.m_originalStart,E),this.m_modifiedStart=Math.min(this.m_modifiedStart,M),this.m_modifiedCount++},l.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},l.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},l}(),Ue=function(){function l(E,M,Me){Me===void 0&&(Me=null),this.ContinueProcessingPredicate=Me;var on=l._getElements(E),fn=on[0],Wn=on[1],Dt=on[2],Ft=l._getElements(M),Lt=Ft[0],mr=Ft[1],fr=Ft[2];this._hasStrings=Dt&&fr,this._originalStringElements=fn,this._originalElementsOrHash=Wn,this._modifiedStringElements=Lt,this._modifiedElementsOrHash=mr,this.m_forwardHistory=[],this.m_reverseHistory=[]}return l._isStringArray=function(E){return E.length>0&&typeof E[0]=="string"},l._getElements=function(E){var M=E.getElements();if(l._isStringArray(M)){for(var Me=new Int32Array(M.length),on=0,fn=M.length;on<fn;on++)Me[on]=en(M[on],0);return[M,Me,!0]}return M instanceof Int32Array?[[],M,!1]:[[],new Int32Array(M),!1]},l.prototype.ElementsAreEqual=function(E,M){return this._originalElementsOrHash[E]!==this._modifiedElementsOrHash[M]?!1:this._hasStrings?this._originalStringElements[E]===this._modifiedStringElements[M]:!0},l.prototype.OriginalElementsAreEqual=function(E,M){return this._originalElementsOrHash[E]!==this._originalElementsOrHash[M]?!1:this._hasStrings?this._originalStringElements[E]===this._originalStringElements[M]:!0},l.prototype.ModifiedElementsAreEqual=function(E,M){return this._modifiedElementsOrHash[E]!==this._modifiedElementsOrHash[M]?!1:this._hasStrings?this._modifiedStringElements[E]===this._modifiedStringElements[M]:!0},l.prototype.ComputeDiff=function(E){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,E)},l.prototype._ComputeDiff=function(E,M,Me,on,fn){var Wn=[!1],Dt=this.ComputeDiffRecursive(E,M,Me,on,Wn);return fn&&(Dt=this.PrettifyChanges(Dt)),{quitEarly:Wn[0],changes:Dt}},l.prototype.ComputeDiffRecursive=function(E,M,Me,on,fn){for(fn[0]=!1;E<=M&&Me<=on&&this.ElementsAreEqual(E,Me);)E++,Me++;for(;M>=E&&on>=Me&&this.ElementsAreEqual(M,on);)M--,on--;if(E>M||Me>on){var Wn=void 0;return Me<=on?(Le.Assert(E===M+1,"originalStart should only be one more than originalEnd"),Wn=[new x(E,0,Me,on-Me+1)]):E<=M?(Le.Assert(Me===on+1,"modifiedStart should only be one more than modifiedEnd"),Wn=[new x(E,M-E+1,Me,0)]):(Le.Assert(E===M+1,"originalStart should only be one more than originalEnd"),Le.Assert(Me===on+1,"modifiedStart should only be one more than modifiedEnd"),Wn=[]),Wn}var Dt=[0],Ft=[0],Lt=this.ComputeRecursionPoint(E,M,Me,on,Dt,Ft,fn),mr=Dt[0],fr=Ft[0];if(Lt!==null)return Lt;if(!fn[0]){var Hr=this.ComputeDiffRecursive(E,mr,Me,fr,fn),ha=[];return fn[0]?ha=[new x(mr+1,M-(mr+1)+1,fr+1,on-(fr+1)+1)]:ha=this.ComputeDiffRecursive(mr+1,M,fr+1,on,fn),this.ConcatenateChanges(Hr,ha)}return[new x(E,M-E+1,Me,on-Me+1)]},l.prototype.WALKTRACE=function(E,M,Me,on,fn,Wn,Dt,Ft,Lt,mr,fr,Hr,ha,ia,Ka,ci,ti,yi){var Xr=null,aa=null,oa=new Ze,ta=M,La=Me,qa=ha[0]-ci[0]-on,ri=-1073741824,ro=this.m_forwardHistory.length-1;do{var Ja=qa+E;Ja===ta||Ja<La&&Lt[Ja-1]<Lt[Ja+1]?(fr=Lt[Ja+1],ia=fr-qa-on,fr<ri&&oa.MarkNextChange(),ri=fr,oa.AddModifiedElement(fr+1,ia),qa=Ja+1-E):(fr=Lt[Ja-1]+1,ia=fr-qa-on,fr<ri&&oa.MarkNextChange(),ri=fr-1,oa.AddOriginalElement(fr,ia+1),qa=Ja-1-E),ro>=0&&(Lt=this.m_forwardHistory[ro],E=Lt[0],ta=1,La=Lt.length-1)}while(--ro>=-1);if(Xr=oa.getReverseChanges(),yi[0]){var Ko=ha[0]+1,zr=ci[0]+1;if(Xr!==null&&Xr.length>0){var Yt=Xr[Xr.length-1];Ko=Math.max(Ko,Yt.getOriginalEnd()),zr=Math.max(zr,Yt.getModifiedEnd())}aa=[new x(Ko,Hr-Ko+1,zr,Ka-zr+1)]}else{oa=new Ze,ta=Wn,La=Dt,qa=ha[0]-ci[0]-Ft,ri=1073741824,ro=ti?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var Ja=qa+fn;Ja===ta||Ja<La&&mr[Ja-1]>=mr[Ja+1]?(fr=mr[Ja+1]-1,ia=fr-qa-Ft,fr>ri&&oa.MarkNextChange(),ri=fr+1,oa.AddOriginalElement(fr+1,ia+1),qa=Ja+1-fn):(fr=mr[Ja-1],ia=fr-qa-Ft,fr>ri&&oa.MarkNextChange(),ri=fr,oa.AddModifiedElement(fr+1,ia+1),qa=Ja-1-fn),ro>=0&&(mr=this.m_reverseHistory[ro],fn=mr[0],ta=1,La=mr.length-1)}while(--ro>=-1);aa=oa.getChanges()}return this.ConcatenateChanges(Xr,aa)},l.prototype.ComputeRecursionPoint=function(E,M,Me,on,fn,Wn,Dt){var Ft=0,Lt=0,mr=0,fr=0,Hr=0,ha=0;E--,Me--,fn[0]=0,Wn[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var ia=M-E+(on-Me),Ka=ia+1,ci=new Int32Array(Ka),ti=new Int32Array(Ka),yi=on-Me,Xr=M-E,aa=E-Me,oa=M-on,ta=Xr-yi,La=ta%2===0;ci[yi]=E,ti[Xr]=M,Dt[0]=!1;for(var qa=1;qa<=ia/2+1;qa++){var ri=0,ro=0;mr=this.ClipDiagonalBound(yi-qa,qa,yi,Ka),fr=this.ClipDiagonalBound(yi+qa,qa,yi,Ka);for(var Ja=mr;Ja<=fr;Ja+=2){Ja===mr||Ja<fr&&ci[Ja-1]<ci[Ja+1]?Ft=ci[Ja+1]:Ft=ci[Ja-1]+1,Lt=Ft-(Ja-yi)-aa;for(var Ko=Ft;Ft<M&&Lt<on&&this.ElementsAreEqual(Ft+1,Lt+1);)Ft++,Lt++;if(ci[Ja]=Ft,Ft+Lt>ri+ro&&(ri=Ft,ro=Lt),!La&&Math.abs(Ja-Xr)<=qa-1&&Ft>=ti[Ja])return fn[0]=Ft,Wn[0]=Lt,Ko<=ti[Ja]&&1447>0&&qa<=1447+1?this.WALKTRACE(yi,mr,fr,aa,Xr,Hr,ha,oa,ci,ti,Ft,M,fn,Lt,on,Wn,La,Dt):null}var zr=(ri-E+(ro-Me)-qa)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(ri,zr))return Dt[0]=!0,fn[0]=ri,Wn[0]=ro,zr>0&&1447>0&&qa<=1447+1?this.WALKTRACE(yi,mr,fr,aa,Xr,Hr,ha,oa,ci,ti,Ft,M,fn,Lt,on,Wn,La,Dt):(E++,Me++,[new x(E,M-E+1,Me,on-Me+1)]);Hr=this.ClipDiagonalBound(Xr-qa,qa,Xr,Ka),ha=this.ClipDiagonalBound(Xr+qa,qa,Xr,Ka);for(var Ja=Hr;Ja<=ha;Ja+=2){Ja===Hr||Ja<ha&&ti[Ja-1]>=ti[Ja+1]?Ft=ti[Ja+1]-1:Ft=ti[Ja-1],Lt=Ft-(Ja-Xr)-oa;for(var Ko=Ft;Ft>E&&Lt>Me&&this.ElementsAreEqual(Ft,Lt);)Ft--,Lt--;if(ti[Ja]=Ft,La&&Math.abs(Ja-yi)<=qa&&Ft<=ci[Ja])return fn[0]=Ft,Wn[0]=Lt,Ko>=ci[Ja]&&1447>0&&qa<=1447+1?this.WALKTRACE(yi,mr,fr,aa,Xr,Hr,ha,oa,ci,ti,Ft,M,fn,Lt,on,Wn,La,Dt):null}if(qa<=1447){var Yt=new Int32Array(fr-mr+2);Yt[0]=yi-mr+1,Je.Copy2(ci,mr,Yt,1,fr-mr+1),this.m_forwardHistory.push(Yt),Yt=new Int32Array(ha-Hr+2),Yt[0]=Xr-Hr+1,Je.Copy2(ti,Hr,Yt,1,ha-Hr+1),this.m_reverseHistory.push(Yt)}}return this.WALKTRACE(yi,mr,fr,aa,Xr,Hr,ha,oa,ci,ti,Ft,M,fn,Lt,on,Wn,La,Dt)},l.prototype.PrettifyChanges=function(E){for(var M=0;M<E.length;M++){for(var Me=E[M],on=M<E.length-1?E[M+1].originalStart:this._originalElementsOrHash.length,fn=M<E.length-1?E[M+1].modifiedStart:this._modifiedElementsOrHash.length,Wn=Me.originalLength>0,Dt=Me.modifiedLength>0;Me.originalStart+Me.originalLength<on&&Me.modifiedStart+Me.modifiedLength<fn&&(!Wn||this.OriginalElementsAreEqual(Me.originalStart,Me.originalStart+Me.originalLength))&&(!Dt||this.ModifiedElementsAreEqual(Me.modifiedStart,Me.modifiedStart+Me.modifiedLength));)Me.originalStart++,Me.modifiedStart++;var Ft=[null];if(M<E.length-1&&this.ChangesOverlap(E[M],E[M+1],Ft)){E[M]=Ft[0],E.splice(M+1,1),M--;continue}}for(var M=E.length-1;M>=0;M--){var Me=E[M],on=0,fn=0;if(M>0){var Lt=E[M-1];Lt.originalLength>0&&(on=Lt.originalStart+Lt.originalLength),Lt.modifiedLength>0&&(fn=Lt.modifiedStart+Lt.modifiedLength)}for(var Wn=Me.originalLength>0,Dt=Me.modifiedLength>0,mr=0,fr=this._boundaryScore(Me.originalStart,Me.originalLength,Me.modifiedStart,Me.modifiedLength),Hr=1;;Hr++){var ha=Me.originalStart-Hr,ia=Me.modifiedStart-Hr;if(ha<on||ia<fn)break;if(Wn&&!this.OriginalElementsAreEqual(ha,ha+Me.originalLength))break;if(Dt&&!this.ModifiedElementsAreEqual(ia,ia+Me.modifiedLength))break;var Ka=this._boundaryScore(ha,Me.originalLength,ia,Me.modifiedLength);Ka>fr&&(fr=Ka,mr=Hr)}Me.originalStart-=mr,Me.modifiedStart-=mr}return E},l.prototype._OriginalIsBoundary=function(E){return E<=0||E>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[E])},l.prototype._OriginalRegionIsBoundary=function(E,M){if(this._OriginalIsBoundary(E)||this._OriginalIsBoundary(E-1))return!0;if(M>0){var Me=E+M;if(this._OriginalIsBoundary(Me-1)||this._OriginalIsBoundary(Me))return!0}return!1},l.prototype._ModifiedIsBoundary=function(E){return E<=0||E>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[E])},l.prototype._ModifiedRegionIsBoundary=function(E,M){if(this._ModifiedIsBoundary(E)||this._ModifiedIsBoundary(E-1))return!0;if(M>0){var Me=E+M;if(this._ModifiedIsBoundary(Me-1)||this._ModifiedIsBoundary(Me))return!0}return!1},l.prototype._boundaryScore=function(E,M,Me,on){var fn=this._OriginalRegionIsBoundary(E,M)?1:0,Wn=this._ModifiedRegionIsBoundary(Me,on)?1:0;return fn+Wn},l.prototype.ConcatenateChanges=function(E,M){var Me=[];if(E.length===0||M.length===0)return M.length>0?M:E;if(this.ChangesOverlap(E[E.length-1],M[0],Me)){var on=new Array(E.length+M.length-1);return Je.Copy(E,0,on,0,E.length-1),on[E.length-1]=Me[0],Je.Copy(M,1,on,E.length,M.length-1),on}else{var on=new Array(E.length+M.length);return Je.Copy(E,0,on,0,E.length),Je.Copy(M,0,on,E.length,M.length),on}},l.prototype.ChangesOverlap=function(E,M,Me){if(Le.Assert(E.originalStart<=M.originalStart,"Left change is not less than or equal to right change"),Le.Assert(E.modifiedStart<=M.modifiedStart,"Left change is not less than or equal to right change"),E.originalStart+E.originalLength>=M.originalStart||E.modifiedStart+E.modifiedLength>=M.modifiedStart){var on=E.originalStart,fn=E.originalLength,Wn=E.modifiedStart,Dt=E.modifiedLength;return E.originalStart+E.originalLength>=M.originalStart&&(fn=M.originalStart+M.originalLength-E.originalStart),E.modifiedStart+E.modifiedLength>=M.modifiedStart&&(Dt=M.modifiedStart+M.modifiedLength-E.modifiedStart),Me[0]=new x(on,fn,Wn,Dt),!0}else return Me[0]=null,!1},l.prototype.ClipDiagonalBound=function(E,M,Me,on){if(E>=0&&E<on)return E;var fn=Me,Wn=on-Me-1,Dt=M%2===0;if(E<0){var Ft=fn%2===0;return Dt===Ft?0:1}else{var Lt=Wn%2===0;return Dt===Lt?on-1:on-2}},l}(),cn=function(){var l=function(M,Me){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(on,fn){on.__proto__=fn}||function(on,fn){for(var Wn in fn)fn.hasOwnProperty(Wn)&&(on[Wn]=fn[Wn])},l(M,Me)};return function(E,M){l(E,M);function Me(){this.constructor=E}E.prototype=M===null?Object.create(M):(Me.prototype=M.prototype,new Me)}}(),$e={done:!0,value:void 0},sn;(function(l){var E={next:function(){return $e}};function M(){return E}l.empty=M;function Me(ha){var ia=!1;return{next:function(){return ia?$e:(ia=!0,{done:!1,value:ha})}}}l.single=Me;function on(ha,ia,Ka){return ia===void 0&&(ia=0),Ka===void 0&&(Ka=ha.length),{next:function(){return ia>=Ka?$e:{done:!1,value:ha[ia++]}}}}l.fromArray=on;function fn(ha){return{next:function(){var Ka=ha.next();return Ka.done?$e:{done:!1,value:Ka.value}}}}l.fromNativeIterator=fn;function Wn(ha){return ha?Array.isArray(ha)?l.fromArray(ha):ha:l.empty()}l.from=Wn;function Dt(ha,ia){return{next:function(){var ci=ha.next();return ci.done?$e:{done:!1,value:ia(ci.value)}}}}l.map=Dt;function Ft(ha,ia){return{next:function(){for(;;){var ci=ha.next();if(ci.done)return $e;if(ia(ci.value))return{done:!1,value:ci.value}}}}}l.filter=Ft;function Lt(ha,ia){for(var Ka=ha.next();!Ka.done;Ka=ha.next())ia(Ka.value)}l.forEach=Lt;function mr(ha,ia){ia===void 0&&(ia=Number.POSITIVE_INFINITY);var Ka=[];if(ia===0)return Ka;for(var ci=0,ti=ha.next();!ti.done&&!(Ka.push(ti.value),++ci>=ia);ti=ha.next());return Ka}l.collect=mr;function fr(){for(var ha=[],ia=0;ia<arguments.length;ia++)ha[ia]=arguments[ia];var Ka=0;return{next:function(){if(Ka>=ha.length)return $e;var ti=ha[Ka],yi=ti.next();return yi.done?(Ka++,this.next()):yi}}}l.concat=fr;function Hr(ha){return new he(ha)}l.chain=Hr})(sn||(sn={}));var he=function(){function l(E){this.it=E}return l.prototype.next=function(){return this.it.next()},l}();function ke(l){return Array.isArray(l)?sn.fromArray(l):l||sn.empty()}var G=function(){function l(E,M,Me,on){M===void 0&&(M=0),Me===void 0&&(Me=E.length),on===void 0&&(on=M-1),this.items=E,this.start=M,this.end=Me,this.index=on}return l.prototype.first=function(){return this.index=this.start,this.current()},l.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},l.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},l}(),c=function(l){cn(E,l);function E(M,Me,on,fn){return Me===void 0&&(Me=0),on===void 0&&(on=M.length),fn===void 0&&(fn=Me-1),l.call(this,M,Me,on,fn)||this}return E.prototype.current=function(){return l.prototype.current.call(this)},E.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},E.prototype.first=function(){return this.index=this.start,this.current()},E.prototype.last=function(){return this.index=this.end-1,this.current()},E.prototype.parent=function(){return null},E}(G),O=function(){function l(E,M){this.iterator=E,this.fn=M}return l.prototype.next=function(){return this.fn(this.iterator.next())},l}(),ee=function(){var l=function(M,Me){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(on,fn){on.__proto__=fn}||function(on,fn){for(var Wn in fn)fn.hasOwnProperty(Wn)&&(on[Wn]=fn[Wn])},l(M,Me)};return function(E,M){l(E,M);function Me(){this.constructor=E}E.prototype=M===null?Object.create(M):(Me.prototype=M.prototype,new Me)}}(),Te,Ne=/^\w[\w\d+.-]*$/,ze=/^\//,bn=/^\/\//;function Sn(l,E){if(!l.scheme&&E)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+l.authority+'", path: "'+l.path+'", query: "'+l.query+'", fragment: "'+l.fragment+'"}');if(l.scheme&&!Ne.test(l.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(l.path){if(l.authority){if(!ze.test(l.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(bn.test(l.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Kn(l,E){return!l&&!E?"file":l}function Xe(l,E){switch(l){case"https":case"http":case"file":E?E[0]!==le&&(E=le+E):E=le;break}return E}var pn="",le="/",oe=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,kn=function(){function l(E,M,Me,on,fn,Wn){Wn===void 0&&(Wn=!1),typeof E=="object"?(this.scheme=E.scheme||pn,this.authority=E.authority||pn,this.path=E.path||pn,this.query=E.query||pn,this.fragment=E.fragment||pn):(this.scheme=Kn(E,Wn),this.authority=M||pn,this.path=Xe(this.scheme,Me||pn),this.query=on||pn,this.fragment=fn||pn,Sn(this,Wn))}return l.isUri=function(E){return E instanceof l?!0:E?typeof E.authority=="string"&&typeof E.fragment=="string"&&typeof E.path=="string"&&typeof E.query=="string"&&typeof E.scheme=="string"&&typeof E.fsPath=="function"&&typeof E.with=="function"&&typeof E.toString=="function":!1},Object.defineProperty(l.prototype,"fsPath",{get:function(){return tt(this)},enumerable:!0,configurable:!0}),l.prototype.with=function(E){if(!E)return this;var M=E.scheme,Me=E.authority,on=E.path,fn=E.query,Wn=E.fragment;return M===void 0?M=this.scheme:M===null&&(M=pn),Me===void 0?Me=this.authority:Me===null&&(Me=pn),on===void 0?on=this.path:on===null&&(on=pn),fn===void 0?fn=this.query:fn===null&&(fn=pn),Wn===void 0?Wn=this.fragment:Wn===null&&(Wn=pn),M===this.scheme&&Me===this.authority&&on===this.path&&fn===this.query&&Wn===this.fragment?this:new ye(M,Me,on,fn,Wn)},l.parse=function(E,M){M===void 0&&(M=!1);var Me=oe.exec(E);return Me?new ye(Me[2]||pn,ot(Me[4]||pn),ot(Me[5]||pn),ot(Me[7]||pn),ot(Me[9]||pn),M):new ye(pn,pn,pn,pn,pn)},l.file=function(E){var M=pn;if(o.c&&(E=E.replace(/\\/g,le)),E[0]===le&&E[1]===le){var Me=E.indexOf(le,2);Me===-1?(M=E.substring(2),E=le):(M=E.substring(2,Me),E=E.substring(Me)||le)}return new ye("file",M,E,pn,pn)},l.from=function(E){return new ye(E.scheme,E.authority,E.path,E.query,E.fragment)},l.prototype.toString=function(E){return E===void 0&&(E=!1),Vn(this,E)},l.prototype.toJSON=function(){return this},l.revive=function(E){if(E){if(E instanceof l)return E;var M=new ye(E);return M._formatted=E.external,M._fsPath=E._sep===yn?E.fsPath:null,M}else return E},l}(),yn=o.c?1:void 0,ye=function(l){ee(E,l);function E(){var M=l!==null&&l.apply(this,arguments)||this;return M._formatted=null,M._fsPath=null,M}return Object.defineProperty(E.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=tt(this)),this._fsPath},enumerable:!0,configurable:!0}),E.prototype.toString=function(M){return M===void 0&&(M=!1),M?Vn(this,!0):(this._formatted||(this._formatted=Vn(this,!1)),this._formatted)},E.prototype.toJSON=function(){var M={$mid:1};return this._fsPath&&(M.fsPath=this._fsPath,M._sep=yn),this._formatted&&(M.external=this._formatted),this.path&&(M.path=this.path),this.scheme&&(M.scheme=this.scheme),this.authority&&(M.authority=this.authority),this.query&&(M.query=this.query),this.fragment&&(M.fragment=this.fragment),M},E}(kn),mn=(Te={},Te[58]="%3A",Te[47]="%2F",Te[63]="%3F",Te[35]="%23",Te[91]="%5B",Te[93]="%5D",Te[64]="%40",Te[33]="%21",Te[36]="%24",Te[38]="%26",Te[39]="%27",Te[40]="%28",Te[41]="%29",Te[42]="%2A",Te[43]="%2B",Te[44]="%2C",Te[59]="%3B",Te[61]="%3D",Te[32]="%20",Te);function un(l,E){for(var M=void 0,Me=-1,on=0;on<l.length;on++){var fn=l.charCodeAt(on);if(fn>=97&&fn<=122||fn>=65&&fn<=90||fn>=48&&fn<=57||fn===45||fn===46||fn===95||fn===126||E&&fn===47)Me!==-1&&(M+=encodeURIComponent(l.substring(Me,on)),Me=-1),M!==void 0&&(M+=l.charAt(on));else{M===void 0&&(M=l.substr(0,on));var Wn=mn[fn];Wn!==void 0?(Me!==-1&&(M+=encodeURIComponent(l.substring(Me,on)),Me=-1),M+=Wn):Me===-1&&(Me=on)}}return Me!==-1&&(M+=encodeURIComponent(l.substring(Me))),M!==void 0?M:l}function Mn(l){for(var E=void 0,M=0;M<l.length;M++){var Me=l.charCodeAt(M);Me===35||Me===63?(E===void 0&&(E=l.substr(0,M)),E+=mn[Me]):E!==void 0&&(E+=l[M])}return E!==void 0?E:l}function tt(l){var E;return l.authority&&l.path.length>1&&l.scheme==="file"?E="//"+l.authority+l.path:l.path.charCodeAt(0)===47&&(l.path.charCodeAt(1)>=65&&l.path.charCodeAt(1)<=90||l.path.charCodeAt(1)>=97&&l.path.charCodeAt(1)<=122)&&l.path.charCodeAt(2)===58?E=l.path[1].toLowerCase()+l.path.substr(2):E=l.path,o.c&&(E=E.replace(/\//g,"\\")),E}function Vn(l,E){var M=E?Mn:un,Me="",on=l.scheme,fn=l.authority,Wn=l.path,Dt=l.query,Ft=l.fragment;if(on&&(Me+=on,Me+=":"),(fn||on==="file")&&(Me+=le,Me+=le),fn){var Lt=fn.indexOf("@");if(Lt!==-1){var mr=fn.substr(0,Lt);fn=fn.substr(Lt+1),Lt=mr.indexOf(":"),Lt===-1?Me+=M(mr,!1):(Me+=M(mr.substr(0,Lt),!1),Me+=":",Me+=M(mr.substr(Lt+1),!1)),Me+="@"}fn=fn.toLowerCase(),Lt=fn.indexOf(":"),Lt===-1?Me+=M(fn,!1):(Me+=M(fn.substr(0,Lt),!1),Me+=fn.substr(Lt))}if(Wn){if(Wn.length>=3&&Wn.charCodeAt(0)===47&&Wn.charCodeAt(2)===58){var fr=Wn.charCodeAt(1);fr>=65&&fr<=90&&(Wn="/"+String.fromCharCode(fr+32)+":"+Wn.substr(3))}else if(Wn.length>=2&&Wn.charCodeAt(1)===58){var fr=Wn.charCodeAt(0);fr>=65&&fr<=90&&(Wn=String.fromCharCode(fr+32)+":"+Wn.substr(2))}Me+=M(Wn,!0)}return Dt&&(Me+="?",Me+=M(Dt,!1)),Ft&&(Me+="#",Me+=E?Ft:un(Ft,!1)),Me}function ut(l){try{return decodeURIComponent(l)}catch(E){return l.length>3?l.substr(0,3)+ut(l.substr(3)):l}}var dt=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ot(l){return l.match(dt)?l.replace(dt,function(E){return ut(E)}):l}var ct=function(){function l(E,M){this.lineNumber=E,this.column=M}return l.prototype.with=function(E,M){return E===void 0&&(E=this.lineNumber),M===void 0&&(M=this.column),E===this.lineNumber&&M===this.column?this:new l(E,M)},l.prototype.delta=function(E,M){return E===void 0&&(E=0),M===void 0&&(M=0),this.with(this.lineNumber+E,this.column+M)},l.prototype.equals=function(E){return l.equals(this,E)},l.equals=function(E,M){return!E&&!M?!0:!!E&&!!M&&E.lineNumber===M.lineNumber&&E.column===M.column},l.prototype.isBefore=function(E){return l.isBefore(this,E)},l.isBefore=function(E,M){return E.lineNumber<M.lineNumber?!0:M.lineNumber<E.lineNumber?!1:E.column<M.column},l.prototype.isBeforeOrEqual=function(E){return l.isBeforeOrEqual(this,E)},l.isBeforeOrEqual=function(E,M){return E.lineNumber<M.lineNumber?!0:M.lineNumber<E.lineNumber?!1:E.column<=M.column},l.compare=function(E,M){var Me=E.lineNumber|0,on=M.lineNumber|0;if(Me===on){var fn=E.column|0,Wn=M.column|0;return fn-Wn}return Me-on},l.prototype.clone=function(){return new l(this.lineNumber,this.column)},l.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},l.lift=function(E){return new l(E.lineNumber,E.column)},l.isIPosition=function(E){return E&&typeof E.lineNumber=="number"&&typeof E.column=="number"},l}(),wt=function(){function l(E,M,Me,on){E>Me||E===Me&&M>on?(this.startLineNumber=Me,this.startColumn=on,this.endLineNumber=E,this.endColumn=M):(this.startLineNumber=E,this.startColumn=M,this.endLineNumber=Me,this.endColumn=on)}return l.prototype.isEmpty=function(){return l.isEmpty(this)},l.isEmpty=function(E){return E.startLineNumber===E.endLineNumber&&E.startColumn===E.endColumn},l.prototype.containsPosition=function(E){return l.containsPosition(this,E)},l.containsPosition=function(E,M){return M.lineNumber<E.startLineNumber||M.lineNumber>E.endLineNumber||M.lineNumber===E.startLineNumber&&M.column<E.startColumn?!1:!(M.lineNumber===E.endLineNumber&&M.column>E.endColumn)},l.prototype.containsRange=function(E){return l.containsRange(this,E)},l.containsRange=function(E,M){return M.startLineNumber<E.startLineNumber||M.endLineNumber<E.startLineNumber||(M.startLineNumber>E.endLineNumber||M.endLineNumber>E.endLineNumber||M.startLineNumber===E.startLineNumber&&M.startColumn<E.startColumn)?!1:!(M.endLineNumber===E.endLineNumber&&M.endColumn>E.endColumn)},l.prototype.strictContainsRange=function(E){return l.strictContainsRange(this,E)},l.strictContainsRange=function(E,M){return M.startLineNumber<E.startLineNumber||M.endLineNumber<E.startLineNumber||(M.startLineNumber>E.endLineNumber||M.endLineNumber>E.endLineNumber||M.startLineNumber===E.startLineNumber&&M.startColumn<=E.startColumn)?!1:!(M.endLineNumber===E.endLineNumber&&M.endColumn>=E.endColumn)},l.prototype.plusRange=function(E){return l.plusRange(this,E)},l.plusRange=function(E,M){var Me,on,fn,Wn;return M.startLineNumber<E.startLineNumber?(Me=M.startLineNumber,on=M.startColumn):M.startLineNumber===E.startLineNumber?(Me=M.startLineNumber,on=Math.min(M.startColumn,E.startColumn)):(Me=E.startLineNumber,on=E.startColumn),M.endLineNumber>E.endLineNumber?(fn=M.endLineNumber,Wn=M.endColumn):M.endLineNumber===E.endLineNumber?(fn=M.endLineNumber,Wn=Math.max(M.endColumn,E.endColumn)):(fn=E.endLineNumber,Wn=E.endColumn),new l(Me,on,fn,Wn)},l.prototype.intersectRanges=function(E){return l.intersectRanges(this,E)},l.intersectRanges=function(E,M){var Me=E.startLineNumber,on=E.startColumn,fn=E.endLineNumber,Wn=E.endColumn,Dt=M.startLineNumber,Ft=M.startColumn,Lt=M.endLineNumber,mr=M.endColumn;return Me<Dt?(Me=Dt,on=Ft):Me===Dt&&(on=Math.max(on,Ft)),fn>Lt?(fn=Lt,Wn=mr):fn===Lt&&(Wn=Math.min(Wn,mr)),Me>fn||Me===fn&&on>Wn?null:new l(Me,on,fn,Wn)},l.prototype.equalsRange=function(E){return l.equalsRange(this,E)},l.equalsRange=function(E,M){return!!E&&!!M&&E.startLineNumber===M.startLineNumber&&E.startColumn===M.startColumn&&E.endLineNumber===M.endLineNumber&&E.endColumn===M.endColumn},l.prototype.getEndPosition=function(){return new ct(this.endLineNumber,this.endColumn)},l.prototype.getStartPosition=function(){return new ct(this.startLineNumber,this.startColumn)},l.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},l.prototype.setEndPosition=function(E,M){return new l(this.startLineNumber,this.startColumn,E,M)},l.prototype.setStartPosition=function(E,M){return new l(E,M,this.endLineNumber,this.endColumn)},l.prototype.collapseToStart=function(){return l.collapseToStart(this)},l.collapseToStart=function(E){return new l(E.startLineNumber,E.startColumn,E.startLineNumber,E.startColumn)},l.fromPositions=function(E,M){return M===void 0&&(M=E),new l(E.lineNumber,E.column,M.lineNumber,M.column)},l.lift=function(E){return E?new l(E.startLineNumber,E.startColumn,E.endLineNumber,E.endColumn):null},l.isIRange=function(E){return E&&typeof E.startLineNumber=="number"&&typeof E.startColumn=="number"&&typeof E.endLineNumber=="number"&&typeof E.endColumn=="number"},l.areIntersectingOrTouching=function(E,M){return E.endLineNumber<M.startLineNumber||E.endLineNumber===M.startLineNumber&&E.endColumn<M.startColumn?!1:!(M.endLineNumber<E.startLineNumber||M.endLineNumber===E.startLineNumber&&M.endColumn<E.startColumn)},l.areIntersecting=function(E,M){return E.endLineNumber<M.startLineNumber||E.endLineNumber===M.startLineNumber&&E.endColumn<=M.startColumn?!1:!(M.endLineNumber<E.startLineNumber||M.endLineNumber===E.startLineNumber&&M.endColumn<=E.startColumn)},l.compareRangesUsingStarts=function(E,M){if(E&&M){var Me=E.startLineNumber|0,on=M.startLineNumber|0;if(Me===on){var fn=E.startColumn|0,Wn=M.startColumn|0;if(fn===Wn){var Dt=E.endLineNumber|0,Ft=M.endLineNumber|0;if(Dt===Ft){var Lt=E.endColumn|0,mr=M.endColumn|0;return Lt-mr}return Dt-Ft}return fn-Wn}return Me-on}var fr=E?1:0,Hr=M?1:0;return fr-Hr},l.compareRangesUsingEnds=function(E,M){return E.endLineNumber===M.endLineNumber?E.endColumn===M.endColumn?E.startLineNumber===M.startLineNumber?E.startColumn-M.startColumn:E.startLineNumber-M.startLineNumber:E.endColumn-M.endColumn:E.endLineNumber-M.endLineNumber},l.spansMultipleLines=function(E){return E.endLineNumber>E.startLineNumber},l}();function st(l){return!l||typeof l!="string"?!0:l.trim().length===0}function qn(l,E,M){M===void 0&&(M="0");for(var Me=""+l,on=[Me],fn=Me.length;fn<E;fn++)on.push(M);return on.reverse().join("")}var Ie=/{(\d+)}/g;function De(l){for(var E=[],M=1;M<arguments.length;M++)E[M-1]=arguments[M];return E.length===0?l:l.replace(Ie,function(Me,on){var fn=parseInt(on,10);return isNaN(fn)||fn<0||fn>=E.length?Me:E[fn]})}function _n(l){return l.replace(/[<>&]/g,function(E){switch(E){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return E}})}function _t(l){return l.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function It(l,E){E===void 0&&(E=" ");var M=Ht(l,E);return nr(M,E)}function Ht(l,E){if(!l||!E)return l;var M=E.length;if(M===0||l.length===0)return l;for(var Me=0;l.indexOf(E,Me)===Me;)Me=Me+M;return l.substring(Me)}function nr(l,E){if(!l||!E)return l;var M=E.length,Me=l.length;if(M===0||Me===0)return l;for(var on=Me,fn=-1;!(fn=l.lastIndexOf(E,on-1),fn===-1||fn+M!==on);){if(fn===0)return"";on=fn}return l.substring(0,on)}function vr(l){return l.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Qr(l,E){if(l.length<E.length)return!1;if(l===E)return!0;for(var M=0;M<E.length;M++)if(l[M]!==E[M])return!1;return!0}function Wr(l,E){var M=l.length-E.length;return M>0?l.indexOf(E,M)===M:M===0?l===E:!1}function gt(l,E,M){if(M===void 0&&(M={}),!l)throw new Error("Cannot create regex from empty string");E||(l=_t(l)),M.wholeWord&&(/\B/.test(l.charAt(0))||(l="\\b"+l),/\B/.test(l.charAt(l.length-1))||(l=l+"\\b"));var Me="";return M.global&&(Me+="g"),M.matchCase||(Me+="i"),M.multiline&&(Me+="m"),M.unicode&&(Me+="u"),new RegExp(l,Me)}function ba(l){if(l.source==="^"||l.source==="^$"||l.source==="$"||l.source==="^\\s*$")return!1;var E=l.exec("");return!!(E&&l.lastIndex===0)}function kt(l){return(l.global?"g":"")+(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")}function jn(l){for(var E=0,M=l.length;E<M;E++){var Me=l.charCodeAt(E);if(Me!==32&&Me!==9)return E}return-1}function Ut(l,E,M){E===void 0&&(E=0),M===void 0&&(M=l.length);for(var Me=E;Me<M;Me++){var on=l.charCodeAt(Me);if(on!==32&&on!==9)return l.substring(E,Me)}return l.substring(E,M)}function ft(l,E){E===void 0&&(E=l.length-1);for(var M=E;M>=0;M--){var Me=l.charCodeAt(M);if(Me!==32&&Me!==9)return M}return-1}function Tt(l,E){return l<E?-1:l>E?1:0}function yt(l,E){for(var M=Math.min(l.length,E.length),Me=0;Me<M;Me++){var on=l.charCodeAt(Me),fn=E.charCodeAt(Me);if(on===fn)continue;Ke(on)&&(on+=32),Ke(fn)&&(fn+=32);var Wn=on-fn;if(Wn===0)continue;return vt(on)&&vt(fn)?Wn:Tt(l.toLowerCase(),E.toLowerCase())}return l.length<E.length?-1:l.length>E.length?1:0}function vt(l){return l>=97&&l<=122}function Ke(l){return l>=65&&l<=90}function Rn(l){return vt(l)||Ke(l)}function nt(l,E){return l.length===E.length&&tr(l,E)}function tr(l,E,M){M===void 0&&(M=l.length);for(var Me=0;Me<M;Me++){var on=l.charCodeAt(Me),fn=E.charCodeAt(Me);if(on===fn)continue;if(Rn(on)&&Rn(fn)){var Wn=Math.abs(on-fn);if(Wn!==0&&Wn!==32)return!1}else if(String.fromCharCode(on).toLowerCase()!==String.fromCharCode(fn).toLowerCase())return!1}return!0}function xa(l,E){var M=E.length;return E.length>l.length?!1:tr(l,E,M)}function Ba(l,E){var M,Me=Math.min(l.length,E.length);for(M=0;M<Me;M++)if(l.charCodeAt(M)!==E.charCodeAt(M))return M;return Me}function ai(l,E){var M,Me=Math.min(l.length,E.length),on=l.length-1,fn=E.length-1;for(M=0;M<Me;M++)if(l.charCodeAt(on-M)!==E.charCodeAt(fn-M))return M;return Me}function wi(l){return 55296<=l&&l<=56319}function Ai(l){return 56320<=l&&l<=57343}function Ei(l,E,M){var Me=l.charCodeAt(M);if(wi(Me)&&M+1<E){var on=l.charCodeAt(M+1);if(Ai(on))return(Me-55296<<10)+(on-56320)+65536}return Me}function Pi(l,E){var M=l.charCodeAt(E-1);if(Ai(M)&&E>1){var Me=l.charCodeAt(E-2);if(wi(Me))return(Me-55296<<10)+(M-56320)+65536}return M}function Xa(l,E){var M=va.getInstance(),Me=E,on=l.length,fn=Ei(l,on,E);E+=fn>=65536?2:1;for(var Wn=M.getGraphemeBreakType(fn);E<on;){var Dt=Ei(l,on,E),Ft=M.getGraphemeBreakType(Dt);if(Jr(Wn,Ft))break;E+=Dt>=65536?2:1,Wn=Ft}return E-Me}function Ia(l,E){var M=va.getInstance(),Me=E,on=Pi(l,E);E-=on>=65536?2:1;for(var fn=M.getGraphemeBreakType(on);E>0;){var Wn=Pi(l,E),Dt=M.getGraphemeBreakType(Wn);if(Jr(Dt,fn))break;E-=Wn>=65536?2:1,fn=Dt}return Me-E}var ca=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function Ti(l){return ca.test(l)}var Vo=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function mo(l){return Vo.test(l)}var Ro=/^[\t\n\r\x20-\x7E]*$/;function uo(l){return Ro.test(l)}function ui(l){for(var E=0,M=l.length;E<M;E++)if(Gi(l.charCodeAt(E)))return!0;return!1}function Gi(l){return l=+l,l>=11904&&l<=55215||l>=63744&&l<=64255||l>=65281&&l<=65374}function ji(l){return l>=127462&&l<=127487||l>=9728&&l<=10175||l>=127744&&l<=128591||l>=128640&&l<=128764||l>=128992&&l<=129003||l>=129280&&l<=129535||l>=129648&&l<=129651||l>=129656&&l<=129666||l>=129680&&l<=129685}var Fo=String.fromCharCode(65279);function ko(l){return!!(l&&l.length>0&&l.charCodeAt(0)===65279)}function bo(l){return btoa(encodeURIComponent(l))}function Ri(l,E){for(var M="",Me=0;Me<E;Me++)M+=l;return M}function xt(l,E){return E===void 0&&(E=!1),l?(E&&(l=l.replace(/\\./g,"")),l.toLowerCase()!==l):!1}function Kt(l){var E=90-65+1;return l=l%(2*E),l<E?String.fromCharCode(97+l):String.fromCharCode(65+l-E)}function _r(l){var E=va.getInstance();return E.getGraphemeBreakType(l)}function Jr(l,E){return l===0?E!==5&&E!==7:l===2&&E===3?!1:l===4||l===2||l===3||(E===4||E===2||E===3)?!0:l===8&&(E===8||E===9||E===11||E===12)||((l===11||l===9)&&(E===9||E===10)||((l===12||l===10)&&E===10||(E===5||E===13||(E===7||(l===1||l===13&&E===14)))))?!1:!(l===6&&E===6)}var va=function(){function l(){this._data=Na()}return l.getInstance=function(){return l._INSTANCE||(l._INSTANCE=new l),l._INSTANCE},l.prototype.getGraphemeBreakType=function(E){if(E<32)return E===10?3:E===13?2:4;if(E<127)return 0;for(var M=this._data,Me=M.length/3,on=1;on<=Me;)if(E<M[3*on])on=2*on;else if(E>M[3*on+1])on=2*on+1;else return M[3*on+2];return 0},l._INSTANCE=null,l}();function Na(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}var qr=3;function hi(l,E,M,Me){var on=new Ue(l,E,M);return on.ComputeDiff(Me)}var Ii=function(){function l(E){for(var M=[],Me=[],on=0,fn=E.length;on<fn;on++)M[on]=Bn(E[on],1),Me[on]=Pt(E[on],1);this.lines=E,this._startColumns=M,this._endColumns=Me}return l.prototype.getElements=function(){for(var E=[],M=0,Me=this.lines.length;M<Me;M++)E[M]=this.lines[M].substring(this._startColumns[M]-1,this._endColumns[M]-1);return E},l.prototype.getStartLineNumber=function(E){return E+1},l.prototype.getEndLineNumber=function(E){return E+1},l.prototype.createCharSequence=function(E,M,Me){for(var on=[],fn=[],Wn=[],Dt=0,Ft=M;Ft<=Me;Ft++)for(var Lt=this.lines[Ft],mr=E?this._startColumns[Ft]:1,fr=E?this._endColumns[Ft]:Lt.length+1,Hr=mr;Hr<fr;Hr++)on[Dt]=Lt.charCodeAt(Hr-1),fn[Dt]=Ft+1,Wn[Dt]=Hr,Dt++;return new gi(on,fn,Wn)},l}(),gi=function(){function l(E,M,Me){this._charCodes=E,this._lineNumbers=M,this._columns=Me}return l.prototype.getElements=function(){return this._charCodes},l.prototype.getStartLineNumber=function(E){return this._lineNumbers[E]},l.prototype.getStartColumn=function(E){return this._columns[E]},l.prototype.getEndLineNumber=function(E){return this._lineNumbers[E]},l.prototype.getEndColumn=function(E){return this._columns[E]+1},l}(),ua=function(){function l(E,M,Me,on,fn,Wn,Dt,Ft){this.originalStartLineNumber=E,this.originalStartColumn=M,this.originalEndLineNumber=Me,this.originalEndColumn=on,this.modifiedStartLineNumber=fn,this.modifiedStartColumn=Wn,this.modifiedEndLineNumber=Dt,this.modifiedEndColumn=Ft}return l.createFromDiffChange=function(E,M,Me){var on,fn,Wn,Dt,Ft,Lt,mr,fr;return E.originalLength===0?(on=0,fn=0,Wn=0,Dt=0):(on=M.getStartLineNumber(E.originalStart),fn=M.getStartColumn(E.originalStart),Wn=M.getEndLineNumber(E.originalStart+E.originalLength-1),Dt=M.getEndColumn(E.originalStart+E.originalLength-1)),E.modifiedLength===0?(Ft=0,Lt=0,mr=0,fr=0):(Ft=Me.getStartLineNumber(E.modifiedStart),Lt=Me.getStartColumn(E.modifiedStart),mr=Me.getEndLineNumber(E.modifiedStart+E.modifiedLength-1),fr=Me.getEndColumn(E.modifiedStart+E.modifiedLength-1)),new l(on,fn,Wn,Dt,Ft,Lt,mr,fr)},l}();function tn(l){if(l.length<=1)return l;for(var E=[l[0]],M=E[0],Me=1,on=l.length;Me<on;Me++){var fn=l[Me],Wn=fn.originalStart-(M.originalStart+M.originalLength),Dt=fn.modifiedStart-(M.modifiedStart+M.modifiedLength),Ft=Math.min(Wn,Dt);Ft<qr?(M.originalLength=fn.originalStart+fn.originalLength-M.originalStart,M.modifiedLength=fn.modifiedStart+fn.modifiedLength-M.modifiedStart):(E.push(fn),M=fn)}return E}var vn=function(){function l(E,M,Me,on,fn){this.originalStartLineNumber=E,this.originalEndLineNumber=M,this.modifiedStartLineNumber=Me,this.modifiedEndLineNumber=on,this.charChanges=fn}return l.createFromDiffResult=function(E,M,Me,on,fn,Wn,Dt){var Ft,Lt,mr,fr,Hr=void 0;if(M.originalLength===0?(Ft=Me.getStartLineNumber(M.originalStart)-1,Lt=0):(Ft=Me.getStartLineNumber(M.originalStart),Lt=Me.getEndLineNumber(M.originalStart+M.originalLength-1)),M.modifiedLength===0?(mr=on.getStartLineNumber(M.modifiedStart)-1,fr=0):(mr=on.getStartLineNumber(M.modifiedStart),fr=on.getEndLineNumber(M.modifiedStart+M.modifiedLength-1)),Wn&&M.originalLength>0&&M.originalLength<20&&M.modifiedLength>0&&M.modifiedLength<20&&fn()){var ha=Me.createCharSequence(E,M.originalStart,M.originalStart+M.originalLength-1),ia=on.createCharSequence(E,M.modifiedStart,M.modifiedStart+M.modifiedLength-1),Ka=hi(ha,ia,fn,!0).changes;Dt&&(Ka=tn(Ka)),Hr=[];for(var ci=0,ti=Ka.length;ci<ti;ci++)Hr.push(ua.createFromDiffChange(Ka[ci],ha,ia))}return new l(Ft,Lt,mr,fr,Hr)},l}(),Ln=function(){function l(E,M,Me){this.shouldComputeCharChanges=Me.shouldComputeCharChanges,this.shouldPostProcessCharChanges=Me.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=Me.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=Me.shouldMakePrettyDiff,this.originalLines=E,this.modifiedLines=M,this.original=new Ii(E),this.modified=new Ii(M),this.continueLineDiff=rr(Me.maxComputationTime),this.continueCharDiff=rr(Me.maxComputationTime===0?0:Math.min(Me.maxComputationTime,5e3))}return l.prototype.computeDiff=function(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return{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}]}]};var E=hi(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),M=E.changes,Me=E.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var on=[],fn=0,Wn=M.length;fn<Wn;fn++)on.push(vn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,M[fn],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:Me,changes:on}}for(var Dt=[],Ft=0,Lt=0,fn=-1,mr=M.length;fn<mr;fn++){for(var fr=fn+1<mr?M[fn+1]:null,Hr=fr?fr.originalStart:this.originalLines.length,ha=fr?fr.modifiedStart:this.modifiedLines.length;Ft<Hr&&Lt<ha;){var ia=this.originalLines[Ft],Ka=this.modifiedLines[Lt];if(ia!==Ka){{for(var ci=Bn(ia,1),ti=Bn(Ka,1);ci>1&&ti>1;){var yi=ia.charCodeAt(ci-2),Xr=Ka.charCodeAt(ti-2);if(yi!==Xr)break;ci--,ti--}(ci>1||ti>1)&&this._pushTrimWhitespaceCharChange(Dt,Ft+1,1,ci,Lt+1,1,ti)}{for(var aa=Pt(ia,1),oa=Pt(Ka,1),ta=ia.length+1,La=Ka.length+1;aa<ta&&oa<La;){var yi=ia.charCodeAt(aa-1),Xr=ia.charCodeAt(oa-1);if(yi!==Xr)break;aa++,oa++}(aa<ta||oa<La)&&this._pushTrimWhitespaceCharChange(Dt,Ft+1,aa,ta,Lt+1,oa,La)}}Ft++,Lt++}fr&&(Dt.push(vn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,fr,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),Ft+=fr.originalLength,Lt+=fr.modifiedLength)}return{quitEarly:Me,changes:Dt}},l.prototype._pushTrimWhitespaceCharChange=function(E,M,Me,on,fn,Wn,Dt){if(this._mergeTrimWhitespaceCharChange(E,M,Me,on,fn,Wn,Dt))return;var Ft=void 0;this.shouldComputeCharChanges&&(Ft=[new ua(M,Me,M,on,fn,Wn,fn,Dt)]),E.push(new vn(M,M,fn,fn,Ft))},l.prototype._mergeTrimWhitespaceCharChange=function(E,M,Me,on,fn,Wn,Dt){var Ft=E.length;if(Ft===0)return!1;var Lt=E[Ft-1];return Lt.originalEndLineNumber===0||Lt.modifiedEndLineNumber===0?!1:Lt.originalEndLineNumber+1===M&&Lt.modifiedEndLineNumber+1===fn?(Lt.originalEndLineNumber=M,Lt.modifiedEndLineNumber=fn,this.shouldComputeCharChanges&&Lt.charChanges&&Lt.charChanges.push(new ua(M,Me,M,on,fn,Wn,fn,Dt)),!0):!1},l}();function Bn(l,E){var M=jn(l);return M===-1?E:M+1}function Pt(l,E){var M=ft(l);return M===-1?E:M+2}function rr(l){if(l===0)return function(){return!0};var E=Date.now();return function(){return Date.now()-E<l}}function cr(l){return l<0?0:l>255?255:l|0}function Cr(l){return l<0?0:l>4294967295?4294967295:l|0}var Ya=function(){function l(E,M){this.index=E,this.remainder=M}return l}(),Oa=function(){function l(E){this.values=E,this.prefixSum=new Uint32Array(E.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return l.prototype.insertValues=function(E,M){E=Cr(E);var Me=this.values,on=this.prefixSum,fn=M.length;return fn===0?!1:(this.values=new Uint32Array(Me.length+fn),this.values.set(Me.subarray(0,E),0),this.values.set(Me.subarray(E),E+fn),this.values.set(M,E),E-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=E-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(on.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},l.prototype.changeValue=function(E,M){return E=Cr(E),M=Cr(M),this.values[E]===M?!1:(this.values[E]=M,E-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=E-1),!0)},l.prototype.removeValues=function(E,M){E=Cr(E),M=Cr(M);var Me=this.values,on=this.prefixSum;if(E>=Me.length)return!1;var fn=Me.length-E;return M>=fn&&(M=fn),M===0?!1:(this.values=new Uint32Array(Me.length-M),this.values.set(Me.subarray(0,E),0),this.values.set(Me.subarray(E+M),E),this.prefixSum=new Uint32Array(this.values.length),E-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=E-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(on.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},l.prototype.getTotalValue=function(){return this.values.length===0?0:this._getAccumulatedValue(this.values.length-1)},l.prototype.getAccumulatedValue=function(E){return E<0?0:(E=Cr(E),this._getAccumulatedValue(E))},l.prototype._getAccumulatedValue=function(E){if(E<=this.prefixSumValidIndex[0])return this.prefixSum[E];var M=this.prefixSumValidIndex[0]+1;M===0&&(this.prefixSum[0]=this.values[0],M++),E>=this.values.length&&(E=this.values.length-1);for(var Me=M;Me<=E;Me++)this.prefixSum[Me]=this.prefixSum[Me-1]+this.values[Me];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],E),this.prefixSum[E]},l.prototype.getIndexOf=function(E){E=Math.floor(E),this.getTotalValue();for(var M=0,Me=this.values.length-1,on=0,fn=0,Wn=0;M<=Me;)if(on=M+(Me-M)/2|0,fn=this.prefixSum[on],Wn=fn-this.values[on],E<Wn)Me=on-1;else if(E>=fn)M=on+1;else break;return new Ya(on,E-Wn)},l}(),Ni=function(){function l(E,M,Me,on){this._uri=E,this._lines=M,this._eol=Me,this._versionId=on,this._lineStarts=null}return l.prototype.dispose=function(){this._lines.length=0},l.prototype.getText=function(){return this._lines.join(this._eol)},l.prototype.onEvents=function(E){E.eol&&E.eol!==this._eol&&(this._eol=E.eol,this._lineStarts=null);for(var M=E.changes,Me=0,on=M;Me<on.length;Me++){var fn=on[Me];this._acceptDeleteRange(fn.range),this._acceptInsertText(new ct(fn.range.startLineNumber,fn.range.startColumn),fn.text)}this._versionId=E.versionId},l.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var E=this._eol.length,M=this._lines.length,Me=new Uint32Array(M),on=0;on<M;on++)Me[on]=this._lines[on].length+E;this._lineStarts=new Oa(Me)}},l.prototype._setLineText=function(E,M){this._lines[E]=M,this._lineStarts&&this._lineStarts.changeValue(E,this._lines[E].length+this._eol.length)},l.prototype._acceptDeleteRange=function(E){if(E.startLineNumber===E.endLineNumber){if(E.startColumn===E.endColumn)return;this._setLineText(E.startLineNumber-1,this._lines[E.startLineNumber-1].substring(0,E.startColumn-1)+this._lines[E.startLineNumber-1].substring(E.endColumn-1));return}this._setLineText(E.startLineNumber-1,this._lines[E.startLineNumber-1].substring(0,E.startColumn-1)+this._lines[E.endLineNumber-1].substring(E.endColumn-1)),this._lines.splice(E.startLineNumber,E.endLineNumber-E.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(E.startLineNumber,E.endLineNumber-E.startLineNumber)},l.prototype._acceptInsertText=function(E,M){if(M.length===0)return;var Me=M.split(/\r\n|\r|\n/);if(Me.length===1){this._setLineText(E.lineNumber-1,this._lines[E.lineNumber-1].substring(0,E.column-1)+Me[0]+this._lines[E.lineNumber-1].substring(E.column-1));return}Me[Me.length-1]+=this._lines[E.lineNumber-1].substring(E.column-1),this._setLineText(E.lineNumber-1,this._lines[E.lineNumber-1].substring(0,E.column-1)+Me[0]);for(var on=new Uint32Array(Me.length-1),fn=1;fn<Me.length;fn++)this._lines.splice(E.lineNumber+fn-1,0,Me[fn]),on[fn-1]=Me[fn].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(E.lineNumber,on)},l}(),ii="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function _i(l){l===void 0&&(l="");for(var E="(-?\\d*\\.\\d\\w*)|([^",M=0,Me=ii;M<Me.length;M++){var on=Me[M];if(l.indexOf(on)>=0)continue;E+="\\"+on}return E+="\\s]+)",new RegExp(E,"g")}var Ye=_i();function zn(l){var E=Ye;if(l&&l instanceof RegExp)if(l.global)E=l;else{var M="g";l.ignoreCase&&(M+="i"),l.multiline&&(M+="m"),l.unicode&&(M+="u"),E=new RegExp(l.source,M)}return E.lastIndex=0,E}function ge(l,E,M,Me){var on=l-1-Me,fn=M.lastIndexOf(" ",on-1)+1;E.lastIndex=fn;for(var Wn;Wn=E.exec(M);){var Dt=Wn.index||0;if(Dt<=on&&E.lastIndex>=on)return{word:Wn[0],startColumn:Me+1+Dt,endColumn:Me+1+E.lastIndex}}return null}function hn(l,E,M,Me){var on=l-1-Me;E.lastIndex=0;for(var fn;fn=E.exec(M);){var Wn=fn.index||0;if(Wn>on)return null;if(E.lastIndex>=on)return{word:fn[0],startColumn:Me+1+Wn,endColumn:Me+1+E.lastIndex}}return null}function Jn(l,E,M,Me){E.lastIndex=0;var on=E.exec(M);if(!on)return null;var fn=on[0].indexOf(" ")>=0?hn(l,E,M,Me):ge(l,E,M,Me);return E.lastIndex=0,fn}var ue=function(){function l(E){var M=cr(E);this._defaultValue=M,this._asciiMap=l._createAsciiMap(M),this._map=new Map}return l._createAsciiMap=function(E){for(var M=new Uint8Array(256),Me=0;Me<256;Me++)M[Me]=E;return M},l.prototype.set=function(E,M){var Me=cr(M);E>=0&&E<256?this._asciiMap[E]=Me:this._map.set(E,Me)},l.prototype.get=function(E){return E>=0&&E<256?this._asciiMap[E]:this._map.get(E)||this._defaultValue},l}(),rn=function(){function l(){this._actual=new ue(0)}return l.prototype.add=function(E){this._actual.set(E,1)},l.prototype.has=function(E){return this._actual.get(E)===1},l}(),Cn=function(){function l(E,M,Me){for(var on=new Uint8Array(E*M),fn=0,Wn=E*M;fn<Wn;fn++)on[fn]=Me;this._data=on,this.rows=E,this.cols=M}return l.prototype.get=function(E,M){return this._data[E*this.cols+M]},l.prototype.set=function(E,M,Me){this._data[E*this.cols+M]=Me},l}(),Zn=function(){function l(E){for(var M=0,Me=0,on=0,fn=E.length;on<fn;on++){var Wn=E[on],Dt=Wn[0],Ft=Wn[1],Lt=Wn[2];Ft>M&&(M=Ft),Dt>Me&&(Me=Dt),Lt>Me&&(Me=Lt)}M++,Me++;for(var mr=new Cn(Me,M,0),on=0,fn=E.length;on<fn;on++){var fr=E[on],Dt=fr[0],Ft=fr[1],Lt=fr[2];mr.set(Dt,Ft,Lt)}this._states=mr,this._maxCharCode=M}return l.prototype.nextState=function(E,M){return M<0||M>=this._maxCharCode?0:this._states.get(E,M)},l}(),lt=null;function Rt(){return lt===null&&(lt=new Zn([[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]])),lt}var an=null;function Dr(){if(an===null){an=new ue(0);for(var l=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF20\uFF03\uFF04\uFF05\uFF06\uFF0A\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u3011\u300F\u300D\u300B\u3009\u201D\u2019\uFF40\uFF5E\u2026`,E=0;E<l.length;E++)an.set(l.charCodeAt(E),1);for(var M=".,;",E=0;E<M.length;E++)an.set(M.charCodeAt(E),2)}return an}var da=function(){function l(){}return l._createLink=function(E,M,Me,on,fn){var Wn=fn-1;do{var Dt=M.charCodeAt(Wn),Ft=E.get(Dt);if(Ft!==2)break;Wn--}while(Wn>on);if(on>0){var Lt=M.charCodeAt(on-1),mr=M.charCodeAt(Wn);(Lt===40&&mr===41||Lt===91&&mr===93||Lt===123&&mr===125)&&Wn--}return{range:{startLineNumber:Me,startColumn:on+1,endLineNumber:Me,endColumn:Wn+2},url:M.substring(on,Wn+1)}},l.computeLinks=function(E,M){M===void 0&&(M=Rt());for(var Me=Dr(),on=[],fn=1,Wn=E.getLineCount();fn<=Wn;fn++){for(var Dt=E.getLineContent(fn),Ft=Dt.length,Lt=0,mr=0,fr=0,Hr=1,ha=!1,ia=!1,Ka=!1;Lt<Ft;){var ci=!1,ti=Dt.charCodeAt(Lt);if(Hr===13){var yi=void 0;switch(ti){case 40:ha=!0,yi=0;break;case 41:yi=ha?0:1;break;case 91:ia=!0,yi=0;break;case 93:yi=ia?0:1;break;case 123:Ka=!0,yi=0;break;case 125:yi=Ka?0:1;break;case 39:yi=fr===34||fr===96?0:1;break;case 34:yi=fr===39||fr===96?0:1;break;case 96:yi=fr===39||fr===34?0:1;break;case 42:yi=fr===42?1:0;break;case 124:yi=fr===124?1:0;break;default:yi=Me.get(ti)}yi===1&&(on.push(l._createLink(Me,Dt,fn,mr,Lt)),ci=!0)}else if(Hr===12){var yi=void 0;ti===91?(ia=!0,yi=0):yi=Me.get(ti),yi===1?ci=!0:Hr=13}else Hr=M.nextState(Hr,ti),Hr===0&&(ci=!0);ci&&(Hr=1,ha=!1,ia=!1,Ka=!1,mr=Lt+1,fr=ti),Lt++}Hr===13&&on.push(l._createLink(Me,Dt,fn,mr,Ft))}return on},l}();function Ha(l){return!l||typeof l.getLineCount!="function"||typeof l.getLineContent!="function"?[]:da.computeLinks(l)}var to=function(){function l(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return l.prototype.navigateValueSet=function(E,M,Me,on,fn){if(E&&M){var Wn=this.doNavigateValueSet(M,fn);if(Wn)return{range:E,value:Wn}}if(Me&&on){var Wn=this.doNavigateValueSet(on,fn);if(Wn)return{range:Me,value:Wn}}return null},l.prototype.doNavigateValueSet=function(E,M){var Me=this.numberReplace(E,M);return Me!==null?Me:this.textReplace(E,M)},l.prototype.numberReplace=function(E,M){var Me=Math.pow(10,E.length-(E.lastIndexOf(".")+1)),on=Number(E),fn=parseFloat(E);return!isNaN(on)&&!isNaN(fn)&&on===fn?on===0&&!M?null:(on=Math.floor(on*Me),on+=M?Me:-Me,String(on/Me)):null},l.prototype.textReplace=function(E,M){return this.valueSetsReplace(this._defaultValueSet,E,M)},l.prototype.valueSetsReplace=function(E,M,Me){for(var on=null,fn=0,Wn=E.length;on===null&&fn<Wn;fn++)on=this.valueSetReplace(E[fn],M,Me);return on},l.prototype.valueSetReplace=function(E,M,Me){var on=E.indexOf(M);return on>=0?(on+=Me?1:-1,on<0?on=E.length-1:on%=E.length,E[on]):null},l.INSTANCE=new l,l}(),ga=Yi("zh89");function Yo(l){var E=this,M=!1,Me;return function(){return M||(M=!0,Me=l.apply(E,arguments)),Me}}var Co=function(){function l(E){this.element=E,this.next=l.Undefined,this.prev=l.Undefined}return l.Undefined=new l(void 0),l}(),Rs=function(){function l(){this._first=Co.Undefined,this._last=Co.Undefined,this._size=0}return Object.defineProperty(l.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),l.prototype.isEmpty=function(){return this._first===Co.Undefined},l.prototype.clear=function(){this._first=Co.Undefined,this._last=Co.Undefined,this._size=0},l.prototype.unshift=function(E){return this._insert(E,!1)},l.prototype.push=function(E){return this._insert(E,!0)},l.prototype._insert=function(E,M){var Me=this,on=new Co(E);if(this._first===Co.Undefined)this._first=on,this._last=on;else if(M){var fn=this._last;this._last=on,on.prev=fn,fn.next=on}else{var Wn=this._first;this._first=on,on.next=Wn,Wn.prev=on}this._size+=1;var Dt=!1;return function(){Dt||(Dt=!0,Me._remove(on))}},l.prototype.shift=function(){if(this._first===Co.Undefined)return;var E=this._first.element;return this._remove(this._first),E},l.prototype.pop=function(){if(this._last===Co.Undefined)return;var E=this._last.element;return this._remove(this._last),E},l.prototype._remove=function(E){if(E.prev!==Co.Undefined&&E.next!==Co.Undefined){var M=E.prev;M.next=E.next,E.next.prev=M}else E.prev===Co.Undefined&&E.next===Co.Undefined?(this._first=Co.Undefined,this._last=Co.Undefined):E.next===Co.Undefined?(this._last=this._last.prev,this._last.next=Co.Undefined):E.prev===Co.Undefined&&(this._first=this._first.next,this._first.prev=Co.Undefined);this._size-=1},l.prototype.iterator=function(){var E,M=this._first;return{next:function(){return M===Co.Undefined?$e:(E?E.value=M.element:E={done:!1,value:M.element},M=M.next,E)}}},l.prototype.toArray=function(){for(var E=[],M=this._first;M!==Co.Undefined;M=M.next)E.push(M.element);return E},l}(),vs=function(){var l=function(M,Me){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(on,fn){on.__proto__=fn}||function(on,fn){for(var Wn in fn)fn.hasOwnProperty(Wn)&&(on[Wn]=fn[Wn])},l(M,Me)};return function(E,M){l(E,M);function Me(){this.constructor=E}E.prototype=M===null?Object.create(M):(Me.prototype=M.prototype,new Me)}}(),ml;(function(l){l.None=function(){return Lu.None};function E(Xr){return function(aa,oa,ta){oa===void 0&&(oa=null);var La=!1,qa;return qa=Xr(function(ri){return La?void 0:(qa?qa.dispose():La=!0,aa.call(oa,ri))},null,ta),La&&qa.dispose(),qa}}l.once=E;function M(Xr,aa){return Ft(function(oa,ta,La){return ta===void 0&&(ta=null),Xr(function(qa){return oa.call(ta,aa(qa))},null,La)})}l.map=M;function Me(Xr,aa){return Ft(function(oa,ta,La){return ta===void 0&&(ta=null),Xr(function(qa){aa(qa),oa.call(ta,qa)},null,La)})}l.forEach=Me;function on(Xr,aa){return Ft(function(oa,ta,La){return ta===void 0&&(ta=null),Xr(function(qa){return aa(qa)&&oa.call(ta,qa)},null,La)})}l.filter=on;function fn(Xr){return Xr}l.signal=fn;function Wn(){for(var Xr=[],aa=0;aa<arguments.length;aa++)Xr[aa]=arguments[aa];return function(oa,ta,La){return ta===void 0&&(ta=null),Xo.apply(void 0,Xr.map(function(qa){return qa(function(ri){return oa.call(ta,ri)},null,La)}))}}l.any=Wn;function Dt(Xr,aa,oa){var ta=oa;return M(Xr,function(La){return ta=aa(ta,La),ta})}l.reduce=Dt;function Ft(Xr){var aa,oa=new es({onFirstListenerAdd:function(){aa=Xr(oa.fire,oa)},onLastListenerRemove:function(){aa.dispose()}});return oa.event}l.snapshot=Ft;function Lt(Xr,aa,oa,ta,La){oa===void 0&&(oa=100),ta===void 0&&(ta=!1);var qa,ri=void 0,ro=void 0,Ja=0,Ko=new es({leakWarningThreshold:La,onFirstListenerAdd:function(){qa=Xr(function(Yt){Ja++,ri=aa(ri,Yt),ta&&!ro&&(Ko.fire(ri),ri=void 0),clearTimeout(ro),ro=setTimeout(function(){var xs=ri;ri=void 0,ro=void 0,(!ta||Ja>1)&&Ko.fire(xs),Ja=0},oa)})},onLastListenerRemove:function(){qa.dispose()}});return Ko.event}l.debounce=Lt;function mr(Xr){var aa=new Date().getTime();return M(E(Xr),function(oa){return new Date().getTime()-aa})}l.stopwatch=mr;function fr(Xr){var aa=!0,oa;return on(Xr,function(ta){var La=aa||ta!==oa;return aa=!1,oa=ta,La})}l.latch=fr;function Hr(Xr,aa,oa){aa===void 0&&(aa=!1),oa===void 0&&(oa=[]);var ta=oa.slice(),La=Xr(function(ro){ta?ta.push(ro):ri.fire(ro)}),qa=function(){ta&&ta.forEach(function(Ja){return ri.fire(Ja)}),ta=null},ri=new es({onFirstListenerAdd:function(){La||(La=Xr(function(Ja){return ri.fire(Ja)}))},onFirstListenerDidAdd:function(){ta&&(aa?setTimeout(qa):qa())},onLastListenerRemove:function(){La&&La.dispose(),La=null}});return ri.event}l.buffer=Hr;var ha=function(){function Xr(aa){this.event=aa}return Xr.prototype.map=function(aa){return new Xr(M(this.event,aa))},Xr.prototype.forEach=function(aa){return new Xr(Me(this.event,aa))},Xr.prototype.filter=function(aa){return new Xr(on(this.event,aa))},Xr.prototype.reduce=function(aa,oa){return new Xr(Dt(this.event,aa,oa))},Xr.prototype.latch=function(){return new Xr(fr(this.event))},Xr.prototype.debounce=function(aa,oa,ta,La){return oa===void 0&&(oa=100),ta===void 0&&(ta=!1),new Xr(Lt(this.event,aa,oa,ta,La))},Xr.prototype.on=function(aa,oa,ta){return this.event(aa,oa,ta)},Xr.prototype.once=function(aa,oa,ta){return E(this.event)(aa,oa,ta)},Xr}();function ia(Xr){return new ha(Xr)}l.chain=ia;function Ka(Xr,aa,oa){oa===void 0&&(oa=function(Ja){return Ja});var ta=function(){for(var Ja=[],Ko=0;Ko<arguments.length;Ko++)Ja[Ko]=arguments[Ko];return ri.fire(oa.apply(void 0,Ja))},La=function(){return Xr.on(aa,ta)},qa=function(){return Xr.removeListener(aa,ta)},ri=new es({onFirstListenerAdd:La,onLastListenerRemove:qa});return ri.event}l.fromNodeEventEmitter=Ka;function ci(Xr,aa,oa){oa===void 0&&(oa=function(Ja){return Ja});var ta=function(){for(var Ja=[],Ko=0;Ko<arguments.length;Ko++)Ja[Ko]=arguments[Ko];return ri.fire(oa.apply(void 0,Ja))},La=function(){return Xr.addEventListener(aa,ta)},qa=function(){return Xr.removeEventListener(aa,ta)},ri=new es({onFirstListenerAdd:La,onLastListenerRemove:qa});return ri.event}l.fromDOMEventEmitter=ci;function ti(Xr){var aa=new es,oa=!1;return Xr.then(void 0,function(){return null}).then(function(){oa?aa.fire(void 0):setTimeout(function(){return aa.fire(void 0)},0)}),oa=!0,aa.event}l.fromPromise=ti;function yi(Xr){return new Promise(function(aa){return E(Xr)(aa)})}l.toPromise=yi})(ml||(ml={}));var Fs=-1,Il=function(){function l(E,M){M===void 0&&(M=Math.random().toString(18).slice(2,5)),this.customThreshold=E,this.name=M,this._warnCountdown=0}return l.prototype.dispose=function(){this._stacks&&this._stacks.clear()},l.prototype.check=function(E){var M=this,Me=Fs;if(typeof this.customThreshold=="number"&&(Me=this.customThreshold),Me<=0||E<Me)return;this._stacks||(this._stacks=new Map);var on=new Error().stack.split(`
`).slice(3).join(`
`),fn=this._stacks.get(on)||0;if(this._stacks.set(on,fn+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=Me*.5;var Wn,Dt=0;this._stacks.forEach(function(Ft,Lt){(!Wn||Dt<Ft)&&(Wn=Lt,Dt=Ft)}),console.warn("["+this.name+"] potential listener LEAK detected, having "+E+" listeners already. MOST frequent listener ("+Dt+"):"),console.warn(Wn)}return function(){var Ft=M._stacks.get(on)||0;M._stacks.set(on,Ft-1)}},l}(),es=function(){function l(E){this._disposed=!1,this._options=E,this._leakageMon=Fs>0?new Il(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(l.prototype,"event",{get:function(){var M=this;return this._event||(this._event=function(Me,on,fn){M._listeners||(M._listeners=new Rs);var Wn=M._listeners.isEmpty();Wn&&M._options&&M._options.onFirstListenerAdd&&M._options.onFirstListenerAdd(M);var Dt=M._listeners.push(on?[Me,on]:Me);Wn&&M._options&&M._options.onFirstListenerDidAdd&&M._options.onFirstListenerDidAdd(M),M._options&&M._options.onListenerDidAdd&&M._options.onListenerDidAdd(M,Me,on);var Ft;M._leakageMon&&(Ft=M._leakageMon.check(M._listeners.size));var Lt;return Lt={dispose:function(){if(Ft&&Ft(),Lt.dispose=l._noop,!M._disposed&&(Dt(),M._options&&M._options.onLastListenerRemove)){var fr=M._listeners&&!M._listeners.isEmpty();fr||M._options.onLastListenerRemove(M)}}},fn instanceof Nd?fn.add(Lt):Array.isArray(fn)&&fn.push(Lt),Lt}),this._event},enumerable:!0,configurable:!0}),l.prototype.fire=function(E){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Rs);for(var M=this._listeners.iterator(),Me=M.next();!Me.done;Me=M.next())this._deliveryQueue.push([Me.value,E]);for(;this._deliveryQueue.size>0;){var on=this._deliveryQueue.shift(),fn=on[0],Wn=on[1];try{typeof fn=="function"?fn.call(void 0,Wn):fn[0].call(fn[1],Wn)}catch(Dt){os(Dt)}}}},l.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},l._noop=function(){},l}(),hl=function(l){vs(E,l);function E(M){var Me=l.call(this,M)||this;return Me._isPaused=0,Me._eventQueue=new Rs,Me._mergeFn=M&&M.merge,Me}return E.prototype.pause=function(){this._isPaused++},E.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var M=this._eventQueue.toArray();this._eventQueue.clear(),l.prototype.fire.call(this,this._mergeFn(M))}else for(;!this._isPaused&&this._eventQueue.size!==0;)l.prototype.fire.call(this,this._eventQueue.shift())},E.prototype.fire=function(M){this._listeners&&(this._isPaused!==0?this._eventQueue.push(M):l.prototype.fire.call(this,M))},E}(es),Ul=function(){function l(){var E=this;this.hasListeners=!1,this.events=[],this.emitter=new es({onFirstListenerAdd:function(){return E.onFirstListenerAdd()},onLastListenerRemove:function(){return E.onLastListenerRemove()}})}return Object.defineProperty(l.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),l.prototype.add=function(E){var M=this,Me={event:E,listener:null};this.events.push(Me),this.hasListeners&&this.hook(Me);var on=function(){M.hasListeners&&M.unhook(Me);var Wn=M.events.indexOf(Me);M.events.splice(Wn,1)};return Du(Yo(on))},l.prototype.onFirstListenerAdd=function(){var E=this;this.hasListeners=!0,this.events.forEach(function(M){return E.hook(M)})},l.prototype.onLastListenerRemove=function(){var E=this;this.hasListeners=!1,this.events.forEach(function(M){return E.unhook(M)})},l.prototype.hook=function(E){var M=this;E.listener=E.event(function(Me){return M.emitter.fire(Me)})},l.prototype.unhook=function(E){E.listener&&E.listener.dispose(),E.listener=null},l.prototype.dispose=function(){this.emitter.dispose()},l}(),gl=function(){function l(){this.buffers=[]}return l.prototype.wrapEvent=function(E){var M=this;return function(Me,on,fn){return E(function(Wn){var Dt=M.buffers[M.buffers.length-1];Dt?Dt.push(function(){return Me.call(on,Wn)}):Me.call(on,Wn)},void 0,fn)}},l.prototype.bufferEvents=function(E){var M=[];this.buffers.push(M);var Me=E();return this.buffers.pop(),M.forEach(function(on){return on()}),Me},l}(),ho=function(){function l(){var E=this;this.listening=!1,this.inputEvent=ml.None,this.inputEventListener=Lu.None,this.emitter=new es({onFirstListenerDidAdd:function(){E.listening=!0,E.inputEventListener=E.inputEvent(E.emitter.fire,E.emitter)},onLastListenerRemove:function(){E.listening=!1,E.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(l.prototype,"input",{set:function(M){this.inputEvent=M,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=M(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),l.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},l}(),Is=Object.freeze(function(l,E){var M=setTimeout(l.bind(E),0);return{dispose:function(){clearTimeout(M)}}}),Ns;(function(l){function E(M){return M===l.None||M===l.Cancelled||M instanceof bs?!0:!M||typeof M!="object"?!1:typeof M.isCancellationRequested=="boolean"&&typeof M.onCancellationRequested=="function"}l.isCancellationToken=E,l.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:ml.None}),l.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Is})})(Ns||(Ns={}));var bs=function(){function l(){this._isCancelled=!1,this._emitter=null}return l.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(l.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?Is:(this._emitter||(this._emitter=new es),this._emitter.event)},enumerable:!0,configurable:!0}),l.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},l}(),yl=function(){function l(E){this._token=void 0,this._parentListener=void 0,this._parentListener=E&&E.onCancellationRequested(this.cancel,this)}return Object.defineProperty(l.prototype,"token",{get:function(){return this._token||(this._token=new bs),this._token},enumerable:!0,configurable:!0}),l.prototype.cancel=function(){this._token?this._token instanceof bs&&this._token.cancel():this._token=Ns.Cancelled},l.prototype.dispose=function(E){E===void 0&&(E=!1),E&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof bs&&this._token.dispose():this._token=Ns.None},l}(),Ks=function(){function l(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return l.prototype.define=function(E,M){this._keyCodeToStr[E]=M,this._strToKeyCode[M.toLowerCase()]=E},l.prototype.keyCodeToStr=function(E){return this._keyCodeToStr[E]},l.prototype.strToKeyCode=function(E){return this._strToKeyCode[E.toLowerCase()]||0},l}(),qs=new Ks,$s=new Ks,el=new Ks;(function(){function l(E,M,Me,on){Me===void 0&&(Me=M),on===void 0&&(on=Me),qs.define(E,M),$s.define(E,Me),el.define(E,on)}l(0,"unknown"),l(1,"Backspace"),l(2,"Tab"),l(3,"Enter"),l(4,"Shift"),l(5,"Ctrl"),l(6,"Alt"),l(7,"PauseBreak"),l(8,"CapsLock"),l(9,"Escape"),l(10,"Space"),l(11,"PageUp"),l(12,"PageDown"),l(13,"End"),l(14,"Home"),l(15,"LeftArrow","Left"),l(16,"UpArrow","Up"),l(17,"RightArrow","Right"),l(18,"DownArrow","Down"),l(19,"Insert"),l(20,"Delete"),l(21,"0"),l(22,"1"),l(23,"2"),l(24,"3"),l(25,"4"),l(26,"5"),l(27,"6"),l(28,"7"),l(29,"8"),l(30,"9"),l(31,"A"),l(32,"B"),l(33,"C"),l(34,"D"),l(35,"E"),l(36,"F"),l(37,"G"),l(38,"H"),l(39,"I"),l(40,"J"),l(41,"K"),l(42,"L"),l(43,"M"),l(44,"N"),l(45,"O"),l(46,"P"),l(47,"Q"),l(48,"R"),l(49,"S"),l(50,"T"),l(51,"U"),l(52,"V"),l(53,"W"),l(54,"X"),l(55,"Y"),l(56,"Z"),l(57,"Meta"),l(58,"ContextMenu"),l(59,"F1"),l(60,"F2"),l(61,"F3"),l(62,"F4"),l(63,"F5"),l(64,"F6"),l(65,"F7"),l(66,"F8"),l(67,"F9"),l(68,"F10"),l(69,"F11"),l(70,"F12"),l(71,"F13"),l(72,"F14"),l(73,"F15"),l(74,"F16"),l(75,"F17"),l(76,"F18"),l(77,"F19"),l(78,"NumLock"),l(79,"ScrollLock"),l(80,";",";","OEM_1"),l(81,"=","=","OEM_PLUS"),l(82,",",",","OEM_COMMA"),l(83,"-","-","OEM_MINUS"),l(84,".",".","OEM_PERIOD"),l(85,"/","/","OEM_2"),l(86,"`","`","OEM_3"),l(110,"ABNT_C1"),l(111,"ABNT_C2"),l(87,"[","[","OEM_4"),l(88,"\\","\\","OEM_5"),l(89,"]","]","OEM_6"),l(90,"'","'","OEM_7"),l(91,"OEM_8"),l(92,"OEM_102"),l(93,"NumPad0"),l(94,"NumPad1"),l(95,"NumPad2"),l(96,"NumPad3"),l(97,"NumPad4"),l(98,"NumPad5"),l(99,"NumPad6"),l(100,"NumPad7"),l(101,"NumPad8"),l(102,"NumPad9"),l(103,"NumPad_Multiply"),l(104,"NumPad_Add"),l(105,"NumPad_Separator"),l(106,"NumPad_Subtract"),l(107,"NumPad_Decimal"),l(108,"NumPad_Divide")})();var nl;(function(l){function E(Wn){return qs.keyCodeToStr(Wn)}l.toString=E;function M(Wn){return qs.strToKeyCode(Wn)}l.fromString=M;function Me(Wn){return $s.keyCodeToStr(Wn)}l.toUserSettingsUS=Me;function on(Wn){return el.keyCodeToStr(Wn)}l.toUserSettingsGeneral=on;function fn(Wn){return $s.strToKeyCode(Wn)||el.strToKeyCode(Wn)}l.fromUserSettings=fn})(nl||(nl={}));function Fn(l,E){var M=(E&65535)<<16>>>0;return(l|M)>>>0}function $n(l,E){if(l===0)return null;var M=(l&65535)>>>0,Me=(l&4294901760)>>>16;return Me!==0?new Qt([ht(M,E),ht(Me,E)]):new Qt([ht(M,E)])}function ht(l,E){var M=!!(l&2048),Me=!!(l&256),on=E===2?Me:M,fn=!!(l&1024),Wn=!!(l&512),Dt=E===2?M:Me,Ft=l&255;return new Qn(on,fn,Wn,Dt,Ft)}var Qn=function(){function l(E,M,Me,on,fn){this.ctrlKey=E,this.shiftKey=M,this.altKey=Me,this.metaKey=on,this.keyCode=fn}return l.prototype.equals=function(E){return this.ctrlKey===E.ctrlKey&&this.shiftKey===E.shiftKey&&this.altKey===E.altKey&&this.metaKey===E.metaKey&&this.keyCode===E.keyCode},l.prototype.isModifierKey=function(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4},l.prototype.toChord=function(){return new Qt([this])},l.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57},l}(),Qt=function(){function l(E){if(E.length===0)throw ln("parts");this.parts=E}return l.prototype.equals=function(E){if(E===null)return!1;if(this.parts.length!==E.parts.length)return!1;for(var M=0;M<this.parts.length;M++)if(!this.parts[M].equals(E.parts[M]))return!1;return!0},l}(),yr=function(){function l(E,M,Me,on,fn,Wn){this.ctrlKey=E,this.shiftKey=M,this.altKey=Me,this.metaKey=on,this.keyLabel=fn,this.keyAriaLabel=Wn}return l}(),Br=function(){function l(){}return l}(),Lr=function(){var l=function(M,Me){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(on,fn){on.__proto__=fn}||function(on,fn){for(var Wn in fn)fn.hasOwnProperty(Wn)&&(on[Wn]=fn[Wn])},l(M,Me)};return function(E,M){l(E,M);function Me(){this.constructor=E}E.prototype=M===null?Object.create(M):(Me.prototype=M.prototype,new Me)}}(),kr=function(l){Lr(E,l);function E(M,Me,on,fn){var Wn=l.call(this,M,Me,on,fn)||this;return Wn.selectionStartLineNumber=M,Wn.selectionStartColumn=Me,Wn.positionLineNumber=on,Wn.positionColumn=fn,Wn}return E.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},E.prototype.equalsSelection=function(M){return E.selectionsEqual(this,M)},E.selectionsEqual=function(M,Me){return M.selectionStartLineNumber===Me.selectionStartLineNumber&&M.selectionStartColumn===Me.selectionStartColumn&&M.positionLineNumber===Me.positionLineNumber&&M.positionColumn===Me.positionColumn},E.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},E.prototype.setEndPosition=function(M,Me){return this.getDirection()===0?new E(this.startLineNumber,this.startColumn,M,Me):new E(M,Me,this.startLineNumber,this.startColumn)},E.prototype.getPosition=function(){return new ct(this.positionLineNumber,this.positionColumn)},E.prototype.setStartPosition=function(M,Me){return this.getDirection()===0?new E(M,Me,this.endLineNumber,this.endColumn):new E(this.endLineNumber,this.endColumn,M,Me)},E.fromPositions=function(M,Me){return Me===void 0&&(Me=M),new E(M.lineNumber,M.column,Me.lineNumber,Me.column)},E.liftSelection=function(M){return new E(M.selectionStartLineNumber,M.selectionStartColumn,M.positionLineNumber,M.positionColumn)},E.selectionsArrEqual=function(M,Me){if(M&&!Me||!M&&Me)return!1;if(!M&&!Me)return!0;if(M.length!==Me.length)return!1;for(var on=0,fn=M.length;on<fn;on++)if(!this.selectionsEqual(M[on],Me[on]))return!1;return!0},E.isISelection=function(M){return M&&typeof M.selectionStartLineNumber=="number"&&typeof M.selectionStartColumn=="number"&&typeof M.positionLineNumber=="number"&&typeof M.positionColumn=="number"},E.createWithDirection=function(M,Me,on,fn,Wn){return Wn===0?new E(M,Me,on,fn):new E(on,fn,M,Me)},E}(wt),Pr=function(){function l(E,M,Me){this.offset=E|0,this.type=M,this.language=Me}return l.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},l}(),Er=function(){function l(E,M){this.tokens=E,this.endState=M}return l}(),fa=function(){function l(E,M){this.tokens=E,this.endState=M}return l}(),Da;(function(l){l[l.Unknown=0]="Unknown",l[l.Disabled=1]="Disabled",l[l.Enabled=2]="Enabled"})(Da||(Da={}));var Fa;(function(l){l[l.KeepWhitespace=1]="KeepWhitespace",l[l.InsertAsSnippet=4]="InsertAsSnippet"})(Fa||(Fa={}));var vi;(function(l){l[l.Method=0]="Method",l[l.Function=1]="Function",l[l.Constructor=2]="Constructor",l[l.Field=3]="Field",l[l.Variable=4]="Variable",l[l.Class=5]="Class",l[l.Struct=6]="Struct",l[l.Interface=7]="Interface",l[l.Module=8]="Module",l[l.Property=9]="Property",l[l.Event=10]="Event",l[l.Operator=11]="Operator",l[l.Unit=12]="Unit",l[l.Value=13]="Value",l[l.Constant=14]="Constant",l[l.Enum=15]="Enum",l[l.EnumMember=16]="EnumMember",l[l.Keyword=17]="Keyword",l[l.Text=18]="Text",l[l.Color=19]="Color",l[l.File=20]="File",l[l.Reference=21]="Reference",l[l.Customcolor=22]="Customcolor",l[l.Folder=23]="Folder",l[l.TypeParameter=24]="TypeParameter",l[l.Snippet=25]="Snippet"})(vi||(vi={}));var Eo;(function(l){l[l.Deprecated=1]="Deprecated"})(Eo||(Eo={}));var pi;(function(l){l[l.Invoke=0]="Invoke",l[l.TriggerCharacter=1]="TriggerCharacter",l[l.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(pi||(pi={}));var Io;(function(l){l[l.EXACT=0]="EXACT",l[l.ABOVE=1]="ABOVE",l[l.BELOW=2]="BELOW"})(Io||(Io={}));var qi;(function(l){l[l.NotSet=0]="NotSet",l[l.ContentFlush=1]="ContentFlush",l[l.RecoverFromMarkers=2]="RecoverFromMarkers",l[l.Explicit=3]="Explicit",l[l.Paste=4]="Paste",l[l.Undo=5]="Undo",l[l.Redo=6]="Redo"})(qi||(qi={}));var wn;(function(l){l[l.LF=1]="LF",l[l.CRLF=2]="CRLF"})(wn||(wn={}));var $i;(function(l){l[l.Text=0]="Text",l[l.Read=1]="Read",l[l.Write=2]="Write"})($i||($i={}));var Go;(function(l){l[l.None=0]="None",l[l.Keep=1]="Keep",l[l.Brackets=2]="Brackets",l[l.Advanced=3]="Advanced",l[l.Full=4]="Full"})(Go||(Go={}));var Ho;(function(l){l[l.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",l[l.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",l[l.accessibilitySupport=2]="accessibilitySupport",l[l.accessibilityPageSize=3]="accessibilityPageSize",l[l.ariaLabel=4]="ariaLabel",l[l.autoClosingBrackets=5]="autoClosingBrackets",l[l.autoClosingOvertype=6]="autoClosingOvertype",l[l.autoClosingQuotes=7]="autoClosingQuotes",l[l.autoIndent=8]="autoIndent",l[l.automaticLayout=9]="automaticLayout",l[l.autoSurround=10]="autoSurround",l[l.codeLens=11]="codeLens",l[l.colorDecorators=12]="colorDecorators",l[l.comments=13]="comments",l[l.contextmenu=14]="contextmenu",l[l.copyWithSyntaxHighlighting=15]="copyWithSyntaxHighlighting",l[l.cursorBlinking=16]="cursorBlinking",l[l.cursorSmoothCaretAnimation=17]="cursorSmoothCaretAnimation",l[l.cursorStyle=18]="cursorStyle",l[l.cursorSurroundingLines=19]="cursorSurroundingLines",l[l.cursorSurroundingLinesStyle=20]="cursorSurroundingLinesStyle",l[l.cursorWidth=21]="cursorWidth",l[l.disableLayerHinting=22]="disableLayerHinting",l[l.disableMonospaceOptimizations=23]="disableMonospaceOptimizations",l[l.dragAndDrop=24]="dragAndDrop",l[l.emptySelectionClipboard=25]="emptySelectionClipboard",l[l.extraEditorClassName=26]="extraEditorClassName",l[l.fastScrollSensitivity=27]="fastScrollSensitivity",l[l.find=28]="find",l[l.fixedOverflowWidgets=29]="fixedOverflowWidgets",l[l.folding=30]="folding",l[l.foldingStrategy=31]="foldingStrategy",l[l.foldingHighlight=32]="foldingHighlight",l[l.fontFamily=33]="fontFamily",l[l.fontInfo=34]="fontInfo",l[l.fontLigatures=35]="fontLigatures",l[l.fontSize=36]="fontSize",l[l.fontWeight=37]="fontWeight",l[l.formatOnPaste=38]="formatOnPaste",l[l.formatOnType=39]="formatOnType",l[l.glyphMargin=40]="glyphMargin",l[l.gotoLocation=41]="gotoLocation",l[l.hideCursorInOverviewRuler=42]="hideCursorInOverviewRuler",l[l.highlightActiveIndentGuide=43]="highlightActiveIndentGuide",l[l.hover=44]="hover",l[l.inDiffEditor=45]="inDiffEditor",l[l.letterSpacing=46]="letterSpacing",l[l.lightbulb=47]="lightbulb",l[l.lineDecorationsWidth=48]="lineDecorationsWidth",l[l.lineHeight=49]="lineHeight",l[l.lineNumbers=50]="lineNumbers",l[l.lineNumbersMinChars=51]="lineNumbersMinChars",l[l.links=52]="links",l[l.matchBrackets=53]="matchBrackets",l[l.minimap=54]="minimap",l[l.mouseStyle=55]="mouseStyle",l[l.mouseWheelScrollSensitivity=56]="mouseWheelScrollSensitivity",l[l.mouseWheelZoom=57]="mouseWheelZoom",l[l.multiCursorMergeOverlapping=58]="multiCursorMergeOverlapping",l[l.multiCursorModifier=59]="multiCursorModifier",l[l.multiCursorPaste=60]="multiCursorPaste",l[l.occurrencesHighlight=61]="occurrencesHighlight",l[l.overviewRulerBorder=62]="overviewRulerBorder",l[l.overviewRulerLanes=63]="overviewRulerLanes",l[l.parameterHints=64]="parameterHints",l[l.peekWidgetDefaultFocus=65]="peekWidgetDefaultFocus",l[l.quickSuggestions=66]="quickSuggestions",l[l.quickSuggestionsDelay=67]="quickSuggestionsDelay",l[l.readOnly=68]="readOnly",l[l.renderControlCharacters=69]="renderControlCharacters",l[l.renderIndentGuides=70]="renderIndentGuides",l[l.renderFinalNewline=71]="renderFinalNewline",l[l.renderLineHighlight=72]="renderLineHighlight",l[l.renderValidationDecorations=73]="renderValidationDecorations",l[l.renderWhitespace=74]="renderWhitespace",l[l.revealHorizontalRightPadding=75]="revealHorizontalRightPadding",l[l.roundedSelection=76]="roundedSelection",l[l.rulers=77]="rulers",l[l.scrollbar=78]="scrollbar",l[l.scrollBeyondLastColumn=79]="scrollBeyondLastColumn",l[l.scrollBeyondLastLine=80]="scrollBeyondLastLine",l[l.selectionClipboard=81]="selectionClipboard",l[l.selectionHighlight=82]="selectionHighlight",l[l.selectOnLineNumbers=83]="selectOnLineNumbers",l[l.showFoldingControls=84]="showFoldingControls",l[l.showUnused=85]="showUnused",l[l.snippetSuggestions=86]="snippetSuggestions",l[l.smoothScrolling=87]="smoothScrolling",l[l.stopRenderingLineAfter=88]="stopRenderingLineAfter",l[l.suggest=89]="suggest",l[l.suggestFontSize=90]="suggestFontSize",l[l.suggestLineHeight=91]="suggestLineHeight",l[l.suggestOnTriggerCharacters=92]="suggestOnTriggerCharacters",l[l.suggestSelection=93]="suggestSelection",l[l.tabCompletion=94]="tabCompletion",l[l.useTabStops=95]="useTabStops",l[l.wordSeparators=96]="wordSeparators",l[l.wordWrap=97]="wordWrap",l[l.wordWrapBreakAfterCharacters=98]="wordWrapBreakAfterCharacters",l[l.wordWrapBreakBeforeCharacters=99]="wordWrapBreakBeforeCharacters",l[l.wordWrapColumn=100]="wordWrapColumn",l[l.wordWrapMinified=101]="wordWrapMinified",l[l.wrappingIndent=102]="wrappingIndent",l[l.wrappingStrategy=103]="wrappingStrategy",l[l.editorClassName=104]="editorClassName",l[l.pixelRatio=105]="pixelRatio",l[l.tabFocusMode=106]="tabFocusMode",l[l.layoutInfo=107]="layoutInfo",l[l.wrappingInfo=108]="wrappingInfo"})(Ho||(Ho={}));var Va;(function(l){l[l.TextDefined=0]="TextDefined",l[l.LF=1]="LF",l[l.CRLF=2]="CRLF"})(Va||(Va={}));var Es;(function(l){l[l.LF=0]="LF",l[l.CRLF=1]="CRLF"})(Es||(Es={}));var me;(function(l){l[l.None=0]="None",l[l.Indent=1]="Indent",l[l.IndentOutdent=2]="IndentOutdent",l[l.Outdent=3]="Outdent"})(me||(me={}));var En;(function(l){l[l.Unknown=0]="Unknown",l[l.Backspace=1]="Backspace",l[l.Tab=2]="Tab",l[l.Enter=3]="Enter",l[l.Shift=4]="Shift",l[l.Ctrl=5]="Ctrl",l[l.Alt=6]="Alt",l[l.PauseBreak=7]="PauseBreak",l[l.CapsLock=8]="CapsLock",l[l.Escape=9]="Escape",l[l.Space=10]="Space",l[l.PageUp=11]="PageUp",l[l.PageDown=12]="PageDown",l[l.End=13]="End",l[l.Home=14]="Home",l[l.LeftArrow=15]="LeftArrow",l[l.UpArrow=16]="UpArrow",l[l.RightArrow=17]="RightArrow",l[l.DownArrow=18]="DownArrow",l[l.Insert=19]="Insert",l[l.Delete=20]="Delete",l[l.KEY_0=21]="KEY_0",l[l.KEY_1=22]="KEY_1",l[l.KEY_2=23]="KEY_2",l[l.KEY_3=24]="KEY_3",l[l.KEY_4=25]="KEY_4",l[l.KEY_5=26]="KEY_5",l[l.KEY_6=27]="KEY_6",l[l.KEY_7=28]="KEY_7",l[l.KEY_8=29]="KEY_8",l[l.KEY_9=30]="KEY_9",l[l.KEY_A=31]="KEY_A",l[l.KEY_B=32]="KEY_B",l[l.KEY_C=33]="KEY_C",l[l.KEY_D=34]="KEY_D",l[l.KEY_E=35]="KEY_E",l[l.KEY_F=36]="KEY_F",l[l.KEY_G=37]="KEY_G",l[l.KEY_H=38]="KEY_H",l[l.KEY_I=39]="KEY_I",l[l.KEY_J=40]="KEY_J",l[l.KEY_K=41]="KEY_K",l[l.KEY_L=42]="KEY_L",l[l.KEY_M=43]="KEY_M",l[l.KEY_N=44]="KEY_N",l[l.KEY_O=45]="KEY_O",l[l.KEY_P=46]="KEY_P",l[l.KEY_Q=47]="KEY_Q",l[l.KEY_R=48]="KEY_R",l[l.KEY_S=49]="KEY_S",l[l.KEY_T=50]="KEY_T",l[l.KEY_U=51]="KEY_U",l[l.KEY_V=52]="KEY_V",l[l.KEY_W=53]="KEY_W",l[l.KEY_X=54]="KEY_X",l[l.KEY_Y=55]="KEY_Y",l[l.KEY_Z=56]="KEY_Z",l[l.Meta=57]="Meta",l[l.ContextMenu=58]="ContextMenu",l[l.F1=59]="F1",l[l.F2=60]="F2",l[l.F3=61]="F3",l[l.F4=62]="F4",l[l.F5=63]="F5",l[l.F6=64]="F6",l[l.F7=65]="F7",l[l.F8=66]="F8",l[l.F9=67]="F9",l[l.F10=68]="F10",l[l.F11=69]="F11",l[l.F12=70]="F12",l[l.F13=71]="F13",l[l.F14=72]="F14",l[l.F15=73]="F15",l[l.F16=74]="F16",l[l.F17=75]="F17",l[l.F18=76]="F18",l[l.F19=77]="F19",l[l.NumLock=78]="NumLock",l[l.ScrollLock=79]="ScrollLock",l[l.US_SEMICOLON=80]="US_SEMICOLON",l[l.US_EQUAL=81]="US_EQUAL",l[l.US_COMMA=82]="US_COMMA",l[l.US_MINUS=83]="US_MINUS",l[l.US_DOT=84]="US_DOT",l[l.US_SLASH=85]="US_SLASH",l[l.US_BACKTICK=86]="US_BACKTICK",l[l.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",l[l.US_BACKSLASH=88]="US_BACKSLASH",l[l.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",l[l.US_QUOTE=90]="US_QUOTE",l[l.OEM_8=91]="OEM_8",l[l.OEM_102=92]="OEM_102",l[l.NUMPAD_0=93]="NUMPAD_0",l[l.NUMPAD_1=94]="NUMPAD_1",l[l.NUMPAD_2=95]="NUMPAD_2",l[l.NUMPAD_3=96]="NUMPAD_3",l[l.NUMPAD_4=97]="NUMPAD_4",l[l.NUMPAD_5=98]="NUMPAD_5",l[l.NUMPAD_6=99]="NUMPAD_6",l[l.NUMPAD_7=100]="NUMPAD_7",l[l.NUMPAD_8=101]="NUMPAD_8",l[l.NUMPAD_9=102]="NUMPAD_9",l[l.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",l[l.NUMPAD_ADD=104]="NUMPAD_ADD",l[l.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",l[l.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",l[l.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",l[l.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",l[l.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",l[l.ABNT_C1=110]="ABNT_C1",l[l.ABNT_C2=111]="ABNT_C2",l[l.MAX_VALUE=112]="MAX_VALUE"})(En||(En={}));var et;(function(l){l[l.Hint=1]="Hint",l[l.Info=2]="Info",l[l.Warning=4]="Warning",l[l.Error=8]="Error"})(et||(et={}));var Gt;(function(l){l[l.Unnecessary=1]="Unnecessary",l[l.Deprecated=2]="Deprecated"})(Gt||(Gt={}));var br;(function(l){l[l.Inline=1]="Inline",l[l.Gutter=2]="Gutter"})(br||(br={}));var ya;(function(l){l[l.UNKNOWN=0]="UNKNOWN",l[l.TEXTAREA=1]="TEXTAREA",l[l.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",l[l.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",l[l.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",l[l.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",l[l.CONTENT_TEXT=6]="CONTENT_TEXT",l[l.CONTENT_EMPTY=7]="CONTENT_EMPTY",l[l.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",l[l.CONTENT_WIDGET=9]="CONTENT_WIDGET",l[l.OVERVIEW_RULER=10]="OVERVIEW_RULER",l[l.SCROLLBAR=11]="SCROLLBAR",l[l.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",l[l.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(ya||(ya={}));var oi;(function(l){l[l.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",l[l.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",l[l.TOP_CENTER=2]="TOP_CENTER"})(oi||(oi={}));var za;(function(l){l[l.Left=1]="Left",l[l.Center=2]="Center",l[l.Right=4]="Right",l[l.Full=7]="Full"})(za||(za={}));var ki;(function(l){l[l.Off=0]="Off",l[l.On=1]="On",l[l.Relative=2]="Relative",l[l.Interval=3]="Interval",l[l.Custom=4]="Custom"})(ki||(ki={}));var eo;(function(l){l[l.None=0]="None",l[l.Text=1]="Text",l[l.Blocks=2]="Blocks"})(eo||(eo={}));var ea;(function(l){l[l.Smooth=0]="Smooth",l[l.Immediate=1]="Immediate"})(ea||(ea={}));var Ir;(function(l){l[l.Auto=1]="Auto",l[l.Hidden=2]="Hidden",l[l.Visible=3]="Visible"})(Ir||(Ir={}));var To;(function(l){l[l.LTR=0]="LTR",l[l.RTL=1]="RTL"})(To||(To={}));var Uo;(function(l){l[l.Invoke=1]="Invoke",l[l.TriggerCharacter=2]="TriggerCharacter",l[l.ContentChange=3]="ContentChange"})(Uo||(Uo={}));var tl;(function(l){l[l.File=0]="File",l[l.Module=1]="Module",l[l.Namespace=2]="Namespace",l[l.Package=3]="Package",l[l.Class=4]="Class",l[l.Method=5]="Method",l[l.Property=6]="Property",l[l.Field=7]="Field",l[l.Constructor=8]="Constructor",l[l.Enum=9]="Enum",l[l.Interface=10]="Interface",l[l.Function=11]="Function",l[l.Variable=12]="Variable",l[l.Constant=13]="Constant",l[l.String=14]="String",l[l.Number=15]="Number",l[l.Boolean=16]="Boolean",l[l.Array=17]="Array",l[l.Object=18]="Object",l[l.Key=19]="Key",l[l.Null=20]="Null",l[l.EnumMember=21]="EnumMember",l[l.Struct=22]="Struct",l[l.Event=23]="Event",l[l.Operator=24]="Operator",l[l.TypeParameter=25]="TypeParameter"})(tl||(tl={}));var Qo;(function(l){l[l.Deprecated=1]="Deprecated"})(Qo||(Qo={}));var co;(function(l){l[l.Hidden=0]="Hidden",l[l.Blink=1]="Blink",l[l.Smooth=2]="Smooth",l[l.Phase=3]="Phase",l[l.Expand=4]="Expand",l[l.Solid=5]="Solid"})(co||(co={}));var Bs;(function(l){l[l.Line=1]="Line",l[l.Block=2]="Block",l[l.Underline=3]="Underline",l[l.LineThin=4]="LineThin",l[l.BlockOutline=5]="BlockOutline",l[l.UnderlineThin=6]="UnderlineThin"})(Bs||(Bs={}));var Ts;(function(l){l[l.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",l[l.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",l[l.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",l[l.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Ts||(Ts={}));var Nc;(function(l){l[l.None=0]="None",l[l.Same=1]="Same",l[l.Indent=2]="Indent",l[l.DeepIndent=3]="DeepIndent"})(Nc||(Nc={}));var _l=function(){function l(){}return l.chord=function(E,M){return Fn(E,M)},l.CtrlCmd=2048,l.Shift=1024,l.Alt=512,l.WinCtrl=256,l}();function yc(){return{editor:void 0,languages:void 0,CancellationTokenSource:yl,Emitter:es,KeyCode:En,KeyMod:_l,Position:ct,Range:wt,Selection:kr,SelectionDirection:To,MarkerSeverity:et,MarkerTag:Gt,Uri:kn,Token:Pr}}var Ql=function(){var l=function(M,Me){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(on,fn){on.__proto__=fn}||function(on,fn){for(var Wn in fn)fn.hasOwnProperty(Wn)&&(on[Wn]=fn[Wn])},l(M,Me)};return function(E,M){l(E,M);function Me(){this.constructor=E}E.prototype=M===null?Object.create(M):(Me.prototype=M.prototype,new Me)}}(),rl=function(l,E,M,Me){function on(fn){return fn instanceof M?fn:new M(function(Wn){Wn(fn)})}return new(M||(M=Promise))(function(fn,Wn){function Dt(mr){try{Lt(Me.next(mr))}catch(fr){Wn(fr)}}function Ft(mr){try{Lt(Me.throw(mr))}catch(fr){Wn(fr)}}function Lt(mr){mr.done?fn(mr.value):on(mr.value).then(Dt,Ft)}Lt((Me=Me.apply(l,E||[])).next())})},Js=function(l,E){var M={label:0,sent:function(){if(fn[0]&1)throw fn[1];return fn[1]},trys:[],ops:[]},Me,on,fn,Wn;return Wn={next:Dt(0),throw:Dt(1),return:Dt(2)},typeof Symbol=="function"&&(Wn[Symbol.iterator]=function(){return this}),Wn;function Dt(Lt){return function(mr){return Ft([Lt,mr])}}function Ft(Lt){if(Me)throw new TypeError("Generator is already executing.");for(;M;)try{if(Me=1,on&&(fn=Lt[0]&2?on.return:Lt[0]?on.throw||((fn=on.return)&&fn.call(on),0):on.next)&&!(fn=fn.call(on,Lt[1])).done)return fn;(on=0,fn)&&(Lt=[Lt[0]&2,fn.value]);switch(Lt[0]){case 0:case 1:fn=Lt;break;case 4:return M.label++,{value:Lt[1],done:!1};case 5:M.label++,on=Lt[1],Lt=[0];continue;case 7:Lt=M.ops.pop(),M.trys.pop();continue;default:if(!(fn=M.trys,fn=fn.length>0&&fn[fn.length-1])&&(Lt[0]===6||Lt[0]===2)){M=0;continue}if(Lt[0]===3&&(!fn||Lt[1]>fn[0]&&Lt[1]<fn[3])){M.label=Lt[1];break}if(Lt[0]===6&&M.label<fn[1]){M.label=fn[1],fn=Lt;break}if(fn&&M.label<fn[2]){M.label=fn[2],M.ops.push(Lt);break}fn[2]&&M.ops.pop(),M.trys.pop();continue}Lt=E.call(l,M)}catch(mr){Lt=[6,mr],on=0}finally{Me=fn=0}if(Lt[0]&5)throw Lt[1];return{value:Lt[0]?Lt[1]:void 0,done:!0}}},Oc=function(l){Ql(E,l);function E(){return l!==null&&l.apply(this,arguments)||this}return Object.defineProperty(E.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),E.prototype.getValue=function(){return this.getText()},E.prototype.getLinesContent=function(){return this._lines.slice(0)},E.prototype.getLineCount=function(){return this._lines.length},E.prototype.getLineContent=function(M){return this._lines[M-1]},E.prototype.getWordAtPosition=function(M,Me){var on=Jn(M.column,zn(Me),this._lines[M.lineNumber-1],0);return on?new wt(M.lineNumber,on.startColumn,M.lineNumber,on.endColumn):null},E.prototype.createWordIterator=function(M){var Me=this,on,fn=0,Wn,Dt=0,Ft=[],Lt=function mr(){if(Dt<Ft.length){var fr=Wn.substring(Ft[Dt].start,Ft[Dt].end);return Dt+=1,on?on.value=fr:on={done:!1,value:fr},on}else return fn>=Me._lines.length?$e:(Wn=Me._lines[fn],Ft=Me._wordenize(Wn,M),Dt=0,fn+=1,mr())};return{next:Lt}},E.prototype.getLineWords=function(M,Me){for(var on=this._lines[M-1],fn=this._wordenize(on,Me),Wn=[],Dt=0,Ft=fn;Dt<Ft.length;Dt++){var Lt=Ft[Dt];Wn.push({word:on.substring(Lt.start,Lt.end),startColumn:Lt.start+1,endColumn:Lt.end+1})}return Wn},E.prototype._wordenize=function(M,Me){var on=[],fn;for(Me.lastIndex=0;(fn=Me.exec(M))&&!(fn[0].length===0);)on.push({start:fn.index,end:fn.index+fn[0].length});return on},E.prototype.getValueInRange=function(M){if(M=this._validateRange(M),M.startLineNumber===M.endLineNumber)return this._lines[M.startLineNumber-1].substring(M.startColumn-1,M.endColumn-1);var Me=this._eol,on=M.startLineNumber-1,fn=M.endLineNumber-1,Wn=[];Wn.push(this._lines[on].substring(M.startColumn-1));for(var Dt=on+1;Dt<fn;Dt++)Wn.push(this._lines[Dt]);return Wn.push(this._lines[fn].substring(0,M.endColumn-1)),Wn.join(Me)},E.prototype.offsetAt=function(M){return M=this._validatePosition(M),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(M.lineNumber-2)+(M.column-1)},E.prototype.positionAt=function(M){M=Math.floor(M),M=Math.max(0,M),this._ensureLineStarts();var Me=this._lineStarts.getIndexOf(M),on=this._lines[Me.index].length;return{lineNumber:1+Me.index,column:1+Math.min(Me.remainder,on)}},E.prototype._validateRange=function(M){var Me=this._validatePosition({lineNumber:M.startLineNumber,column:M.startColumn}),on=this._validatePosition({lineNumber:M.endLineNumber,column:M.endColumn});return Me.lineNumber!==M.startLineNumber||Me.column!==M.startColumn||on.lineNumber!==M.endLineNumber||on.column!==M.endColumn?{startLineNumber:Me.lineNumber,startColumn:Me.column,endLineNumber:on.lineNumber,endColumn:on.column}:M},E.prototype._validatePosition=function(M){if(!ct.isIPosition(M))throw new Error("bad position");var Me=M.lineNumber,on=M.column,fn=!1;if(Me<1)Me=1,on=1,fn=!0;else if(Me>this._lines.length)Me=this._lines.length,on=this._lines[Me-1].length+1,fn=!0;else{var Wn=this._lines[Me-1].length+1;on<1?(on=1,fn=!0):on>Wn&&(on=Wn,fn=!0)}return fn?{lineNumber:Me,column:on}:M},E}(Ni),au=function(){function l(E,M){this._host=E,this._models=Object.create(null),this._foreignModuleFactory=M,this._foreignModule=null}return l.prototype.dispose=function(){this._models=Object.create(null)},l.prototype._getModel=function(E){return this._models[E]},l.prototype._getModels=function(){var E=this,M=[];return Object.keys(this._models).forEach(function(Me){return M.push(E._models[Me])}),M},l.prototype.acceptNewModel=function(E){this._models[E.url]=new Oc(kn.parse(E.url),E.lines,E.EOL,E.versionId)},l.prototype.acceptModelChanged=function(E,M){if(!this._models[E])return;var Me=this._models[E];Me.onEvents(M)},l.prototype.acceptRemovedModel=function(E){if(!this._models[E])return;delete this._models[E]},l.prototype.computeDiff=function(E,M,Me,on){return rl(this,void 0,void 0,function(){var fn,Wn,Dt,Ft,Lt,mr,fr;return Js(this,function(Hr){return fn=this._getModel(E),Wn=this._getModel(M),!fn||!Wn?[2,null]:(Dt=fn.getLinesContent(),Ft=Wn.getLinesContent(),Lt=new Ln(Dt,Ft,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:Me,shouldMakePrettyDiff:!0,maxComputationTime:on}),mr=Lt.computeDiff(),fr=mr.changes.length>0?!1:this._modelsAreIdentical(fn,Wn),[2,{quitEarly:mr.quitEarly,identical:fr,changes:mr.changes}])})})},l.prototype._modelsAreIdentical=function(E,M){var Me=E.getLineCount(),on=M.getLineCount();if(Me!==on)return!1;for(var fn=1;fn<=Me;fn++){var Wn=E.getLineContent(fn),Dt=M.getLineContent(fn);if(Wn!==Dt)return!1}return!0},l.prototype.computeMoreMinimalEdits=function(E,M){return rl(this,void 0,void 0,function(){var Me,on,fn,Wn,Dt,Ft,Lt,mr,fr,Hr,ha,ia,Ka,ci,ti,yi,Xr,aa;return Js(this,function(oa){if(Me=this._getModel(E),!Me)return[2,M];for(on=[],fn=void 0,M=C(M,function(ta,La){if(ta.range&&La.range)return wt.compareRangesUsingStarts(ta.range,La.range);var qa=ta.range?0:1,ri=La.range?0:1;return qa-ri}),Wn=0,Dt=M;Wn<Dt.length;Wn++){if(Ft=Dt[Wn],Lt=Ft.range,mr=Ft.text,fr=Ft.eol,typeof fr=="number"&&(fn=fr),wt.isEmpty(Lt)&&!mr)continue;if(Hr=Me.getValueInRange(Lt),mr=mr.replace(/\r\n|\n|\r/g,Me.eol),Hr===mr)continue;if(Math.max(mr.length,Hr.length)>l._diffLimit){on.push({range:Lt,text:mr});continue}for(ha=ce(Hr,mr,!1),ia=Me.offsetAt(wt.lift(Lt).getStartPosition()),Ka=0,ci=ha;Ka<ci.length;Ka++)ti=ci[Ka],yi=Me.positionAt(ia+ti.originalStart),Xr=Me.positionAt(ia+ti.originalStart+ti.originalLength),aa={text:mr.substr(ti.modifiedStart,ti.modifiedLength),range:{startLineNumber:yi.lineNumber,startColumn:yi.column,endLineNumber:Xr.lineNumber,endColumn:Xr.column}},Me.getValueInRange(aa.range)!==aa.text&&on.push(aa)}return typeof fn=="number"&&on.push({eol:fn,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),[2,on]})})},l.prototype.computeLinks=function(E){return rl(this,void 0,void 0,function(){var M;return Js(this,function(Me){return M=this._getModel(E),M?[2,Ha(M)]:[2,null]})})},l.prototype.textualSuggest=function(E,M,Me,on){return rl(this,void 0,void 0,function(){var fn,Wn,Dt,Ft,Lt,mr,fr,Hr;return Js(this,function(ha){if(fn=this._getModel(E),!fn)return[2,null];for(Wn=[],Dt=new Set,Ft=new RegExp(Me,on),Lt=fn.getWordAtPosition(M,Ft),Lt&&Dt.add(fn.getValueInRange(Lt)),mr=fn.createWordIterator(Ft),fr=mr.next();!fr.done&&Dt.size<=l._suggestionsLimit;fr=mr.next()){if(Hr=fr.value,Dt.has(Hr))continue;if(Dt.add(Hr),!isNaN(Number(Hr)))continue;Wn.push(Hr)}return[2,Wn]})})},l.prototype.computeWordRanges=function(E,M,Me,on){return rl(this,void 0,void 0,function(){var fn,Wn,Dt,Ft,Lt,mr,fr,Hr,ha;return Js(this,function(ia){if(fn=this._getModel(E),!fn)return[2,Object.create(null)];for(Wn=new RegExp(Me,on),Dt=Object.create(null),Ft=M.startLineNumber;Ft<M.endLineNumber;Ft++)for(Lt=fn.getLineWords(Ft,Wn),mr=0,fr=Lt;mr<fr.length;mr++){if(Hr=fr[mr],!isNaN(Number(Hr.word)))continue;ha=Dt[Hr.word],ha||(ha=[],Dt[Hr.word]=ha),ha.push({startLineNumber:Ft,startColumn:Hr.startColumn,endLineNumber:Ft,endColumn:Hr.endColumn})}return[2,Dt]})})},l.prototype.navigateValueSet=function(E,M,Me,on,fn){return rl(this,void 0,void 0,function(){var Wn,Dt,Ft,Lt,mr,fr;return Js(this,function(Hr){return Wn=this._getModel(E),Wn?(Dt=new RegExp(on,fn),M.startColumn===M.endColumn&&(M={startLineNumber:M.startLineNumber,startColumn:M.startColumn,endLineNumber:M.endLineNumber,endColumn:M.endColumn+1}),Ft=Wn.getValueInRange(M),Lt=Wn.getWordAtPosition({lineNumber:M.startLineNumber,column:M.startColumn},Dt),Lt?(mr=Wn.getValueInRange(Lt),fr=to.INSTANCE.navigateValueSet(M,Ft,Lt,mr,Me),[2,fr]):[2,null]):[2,null]})})},l.prototype.loadForeignModule=function(E,M,Me){var on=this,fn=function(Lt,mr){return on._host.fhr(Lt,mr)},Wn=P(Me,fn),Dt={host:Wn,getMirrorModels:function(){return on._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(Dt,M),Promise.resolve(k(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},l.prototype.fmr=function(E,M){if(!this._foreignModule||typeof this._foreignModule[E]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+E));try{return Promise.resolve(this._foreignModule[E].apply(this._foreignModule,M))}catch(Me){return Promise.reject(Me)}},l._diffLimit=1e5,l._suggestionsLimit=1e4,l}();function Pc(l){return new au(l,null)}typeof importScripts=="function"&&(o.a.monaco=yc());var iu=!1;function Zl(l){if(iu)return;iu=!0;var E=new z(function(M){self.postMessage(M)},function(M){return new au(M,l)});self.onmessage=function(M){E.onmessage(M.data)}}self.onmessage=function(l){iu||Zl(null)};var zs=Yi("GP9Q"),Mc=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR 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;`,Nl=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
`+Mc+`
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: symbol;
/**
* A Boolean value that if true indicates that an object should flatten to its array elements
* by Array.prototype.concat.
*/
readonly isConcatSpreadable: symbol;
/**
* A regular expression method that matches the regular expression against a string. Called
* by the String.prototype.match method.
*/
readonly match: symbol;
/**
* A regular expression method that replaces matched substrings of a string. Called by the
* String.prototype.replace method.
*/
readonly replace: 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: symbol;
/**
* A function valued property that is the constructor function that is used to create
* derived objects.
*/
readonly species: 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: symbol;
/**
* A method that converts an object to a corresponding primitive value.
* Called by the ToPrimitive abstract operation.
*/
readonly toPrimitive: 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: symbol;
/**
* An Object whose own property names are property names that are excluded from the 'with'
* environment bindings of the associated objects.
*/
readonly unscopables: symbol;
}
interface 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 an object that supports being matched against, and returns an array containing the results of that search.
* @param matcher An object that supports being matched against.
*/
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
/**
* 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 replaceValue A string containing the text to replace for every successful match of searchValue in this string.
*/
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;
}`,Ss=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR 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 {
function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: any): any;
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
function deleteProperty(target: object, propertyKey: PropertyKey): boolean;
function get(target: object, propertyKey: PropertyKey, receiver?: any): any;
function getOwnPropertyDescriptor(target: object, propertyKey: PropertyKey): PropertyDescriptor | undefined;
function getPrototypeOf(target: object): object;
function has(target: object, propertyKey: PropertyKey): boolean;
function isExtensible(target: object): boolean;
function ownKeys(target: object): PropertyKey[];
function preventExtensions(target: object): boolean;
function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
function setPrototypeOf(target: object, proto: any): boolean;
}
`,Rc=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR 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> {
getPrototypeOf? (target: T): object | null;
setPrototypeOf? (target: T, v: any): boolean;
isExtensible? (target: T): boolean;
preventExtensions? (target: T): boolean;
getOwnPropertyDescriptor? (target: T, p: PropertyKey): PropertyDescriptor | undefined;
has? (target: T, p: PropertyKey): boolean;
get? (target: T, p: PropertyKey, receiver: any): any;
set? (target: T, p: PropertyKey, value: any, receiver: any): boolean;
deleteProperty? (target: T, p: PropertyKey): boolean;
defineProperty? (target: T, p: PropertyKey, attributes: PropertyDescriptor): boolean;
enumerate? (target: T): PropertyKey[];
ownKeys? (target: T): PropertyKey[];
apply? (target: T, thisArg: any, argArray?: any): any;
construct? (target: T, argArray: any, newTarget?: any): object;
}
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;
`,$l=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
`+Mc+`
interface SymbolConstructor {
/**
* A method that returns the default iterator for an object. Called by the semantics of the
* for-of statement.
*/
readonly iterator: 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<[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 array of Promises.
* @returns A new Promise.
*/
all<TAll>(values: Iterable<TAll | PromiseLike<TAll>>): Promise<TAll[]>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
}
declare namespace Reflect {
function enumerate(target: object): IterableIterator<any>;
}
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;
}
`,_c=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface PromiseConstructor {
/**
* A reference to the prototype.
*/
readonly prototype: Promise<any>;
/**
* Creates a new Promise.
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
* a resolve callback used to resolve the promise with a value or the result of another promise,
* and a reject callback used to reject the promise with a provided reason or error.
*/
new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2, T3, T4, T5, T6, T7, T8>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2, T3, T4, T5, T6, T7>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, T3, T4, T5, T6, T7]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2, T3, T4, T5, T6>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2, T3, T4, T5>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2, T3, T4>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>]): Promise<[T1, T2, T3, T4]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2, T3>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T>(values: readonly (T | PromiseLike<T>)[]): Promise<T[]>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T>(values: readonly T[]): Promise<T extends PromiseLike<infer U> ? U : T>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An iterable of Promises.
* @returns A new Promise.
*/
race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;
/**
* Creates a 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 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>;
/**
* Creates a new resolved promise .
* @returns A resolved promise.
*/
resolve(): Promise<void>;
}
declare var Promise: PromiseConstructor;
`,ou=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
`+$l+`
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;
}
`,Iu=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR 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;
`,su=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR 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;
/**
* Returns the this object after filling the section identified by start and end with value
* @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: number): boolean;
/**
* Returns true if the value passed is an integer, false otherwise.
* @param number A numeric value.
*/
isInteger(number: number): 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: number): boolean;
/**
* Returns true if the value passed is a safe integer.
* @param number A numeric value.
*/
isSafeInteger(number: number): 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 s A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in numString.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
parseInt(string: string, radix?: number): number;
}
interface ObjectConstructor {
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source The source object from which to copy properties.
*/
assign<T, U>(target: T, source: U): T & U;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
*/
assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
* @param source3 The third source object from which to copy properties.
*/
assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param sources One or more source objects from which to copy properties
*/
assign(target: object, ...sources: any[]): any;
/**
* Returns an array of all symbol properties found directly on object o.
* @param o Object to retrieve the symbols from.
*/
getOwnPropertySymbols(o: any): symbol[];
/**
* Returns the names of the enumerable string properties and methods of an object.
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
keys(o: {}): string[];
/**
* Returns true if the values are the same value, false otherwise.
* @param value1 The first value.
* @param value2 The second value.
*/
is(value1: any, value2: any): boolean;
/**
* Sets the prototype of a specified object o to object proto or null. Returns the object o.
* @param o The object to change its prototype.
* @param proto The value of the new prototype or null.
*/
setPrototypeOf(o: any, proto: object | null): any;
}
interface ReadonlyArray<T> {
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find<S extends T>(predicate: (this: void, value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;
find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;
}
interface RegExp {
/**
* Returns a string indicating the flags of the regular expression in question. This field is read-only.
* The characters in this string are sequenced and concatenated in the following order:
*
* - "g" for global
* - "i" for ignoreCase
* - "m" for multiline
* - "u" for unicode
* - "y" for sticky
*
* If no flags are set, the value is the empty string.
*/
readonly flags: string;
/**
* Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
* expression. Default is false. Read-only.
*/
readonly sticky: boolean;
/**
* Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
* expression. Default is false. Read-only.
*/
readonly unicode: boolean;
}
interface RegExpConstructor {
new (pattern: RegExp | string, flags?: string): RegExp;
(pattern: RegExp | string, flags?: string): RegExp;
}
interface String {
/**
* Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
* value of the UTF-16 encoded code point starting at the string element at position pos in
* the String resulting from converting this object to a String.
* If there is no element at that position, the result is undefined.
* If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
*/
codePointAt(pos: number): number | undefined;
/**
* Returns true if searchString appears as a substring of the result of converting this
* object to a String, at one or more positions that are
* greater than or equal to position; otherwise, returns false.
* @param searchString search string
* @param position If position is undefined, 0 is assumed, so as to search all of the String.
*/
includes(searchString: string, position?: number): boolean;
/**
* Returns true if the sequence of elements of searchString converted to a String is the
* same as the corresponding elements of this object (converted to a String) starting at
* endPosition \u2013 length(this). Otherwise returns false.
*/
endsWith(searchString: string, endPosition?: number): boolean;
/**
* Returns the String value result of normalizing the string into the normalization form
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
* is "NFC"
*/
normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
/**
* Returns the String value result of normalizing the string into the normalization form
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
* is "NFC"
*/
normalize(form?: string): string;
/**
* Returns a String value that is made from count copies appended together. If count is 0,
* the empty string is returned.
* @param count number of copies to append
*/
repeat(count: number): string;
/**
* Returns true if the sequence of elements of searchString converted to a String is the
* same as the corresponding elements of this object (converted to a String) starting at
* position. Otherwise returns false.
*/
startsWith(searchString: string, position?: number): boolean;
/**
* Returns an <a> HTML anchor element and sets the name attribute to the text value
* @param name
*/
anchor(name: string): string;
/** Returns a <big> HTML element */
big(): string;
/** Returns a <blink> HTML element */
blink(): string;
/** Returns a <b> HTML element */
bold(): string;
/** Returns a <tt> HTML element */
fixed(): string;
/** Returns a <font> HTML element and sets the color attribute value */
fontcolor(color: string): string;
/** Returns a <font> HTML element and sets the size attribute value */
fontsize(size: number): string;
/** Returns a <font> HTML element and sets the size attribute value */
fontsize(size: string): string;
/** Returns an <i> HTML element */
italics(): string;
/** Returns an <a> HTML element and sets the href attribute value */
link(url: string): string;
/** Returns a <small> HTML element */
small(): string;
/** Returns a <strike> HTML element */
strike(): string;
/** Returns a <sub> HTML element */
sub(): string;
/** Returns a <sup> HTML element */
sup(): string;
}
interface StringConstructor {
/**
* Return the String value whose elements are, in order, the elements in the List elements.
* If length is 0, the empty string is returned.
*/
fromCodePoint(...codePoints: number[]): string;
/**
* String.raw is intended for use 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.
* @param template A well-formed template string call site representation.
* @param substitutions A set of substitution values.
*/
raw(template: TemplateStringsArray, ...substitutions: any[]): string;
}
`,lu=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// DOM Iterable APIs
/////////////////////////////
interface AudioParam {
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
}
interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
}
interface AudioTrackList {
[Symbol.iterator](): IterableIterator<AudioTrack>;
}
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 ClientRectList {
[Symbol.iterator](): IterableIterator<ClientRect>;
}
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 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<Element>;
}
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 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 MimeTypeArray {
[Symbol.iterator](): IterableIterator<MimeType>;
}
interface NamedNodeMap {
[Symbol.iterator](): IterableIterator<Attr>;
}
interface Navigator {
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
}
interface NodeList {
[Symbol.iterator](): IterableIterator<Node>;
/**
* Returns an array of key, value pairs for every entry in the list.
*/
entries(): IterableIterator<[number, Node]>;
/**
* Returns an list of keys in the list.
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the list.
*/
values(): IterableIterator<Node>;
}
interface NodeListOf<TNode extends Node> {
[Symbol.iterator](): IterableIterator<TNode>;
/**
* Returns an array of key, value pairs for every entry in the list.
*/
entries(): IterableIterator<[number, TNode]>;
/**
* Returns an list of keys in the list.
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the list.
*/
values(): IterableIterator<TNode>;
}
interface Plugin {
[Symbol.iterator](): IterableIterator<MimeType>;
}
interface PluginArray {
[Symbol.iterator](): IterableIterator<Plugin>;
}
interface RTCRtpTransceiver {
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
}
interface RTCStatsReport extends ReadonlyMap<string, any> {
}
interface SVGLengthList {
[Symbol.iterator](): IterableIterator<SVGLength>;
}
interface SVGNumberList {
[Symbol.iterator](): IterableIterator<SVGNumber>;
}
interface SVGPointList {
[Symbol.iterator](): IterableIterator<DOMPoint>;
}
interface SVGStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface SourceBufferList {
[Symbol.iterator](): IterableIterator<SourceBuffer>;
}
interface SpeechGrammarList {
[Symbol.iterator](): IterableIterator<SpeechGrammar>;
}
interface SpeechRecognitionResult {
[Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
}
interface SpeechRecognitionResultList {
[Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
}
interface StyleSheetList {
[Symbol.iterator](): IterableIterator<StyleSheet>;
}
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 VRDisplay {
requestPresent(layers: Iterable<VRLayer>): Promise<void>;
}
interface VideoTrackList {
[Symbol.iterator](): IterableIterator<VideoTrack>;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WebAuthentication {
makeCredential(accountInformation: Account, cryptoParameters: Iterable<ScopedCredentialParameters>, attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;
}
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;
}
`,cu=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR 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;
}
`,Fc=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR 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;
`,Gc=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// DOM APIs
/////////////////////////////
interface Account {
displayName: string;
id: string;
imageURL?: string;
name?: string;
rpDisplayName: string;
}
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
}
interface AesCbcParams extends Algorithm {
iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
}
interface AesCtrParams extends Algorithm {
counter: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
length: number;
}
interface AesDerivedKeyParams extends Algorithm {
length: number;
}
interface AesGcmParams extends Algorithm {
additionalData?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
tagLength?: number;
}
interface AesKeyAlgorithm extends KeyAlgorithm {
length: number;
}
interface AesKeyGenParams extends Algorithm {
length: number;
}
interface Algorithm {
name: string;
}
interface AnalyserOptions extends AudioNodeOptions {
fftSize?: number;
maxDecibels?: number;
minDecibels?: number;
smoothingTimeConstant?: number;
}
interface AnimationEventInit extends EventInit {
animationName?: string;
elapsedTime?: number;
pseudoElement?: string;
}
interface AnimationPlaybackEventInit extends EventInit {
currentTime?: number | null;
timelineTime?: number | null;
}
interface AssertionOptions {
allowList?: ScopedCredentialDescriptor[];
extensions?: WebAuthnExtensions;
rpId?: string;
timeoutSeconds?: number;
}
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 AudioContextInfo {
currentTime?: number;
sampleRate?: number;
}
interface AudioContextOptions {
latencyHint?: AudioContextLatencyCategory | number;
sampleRate?: number;
}
interface AudioNodeOptions {
channelCount?: number;
channelCountMode?: ChannelCountMode;
channelInterpretation?: ChannelInterpretation;
}
interface AudioParamDescriptor {
automationRate?: AutomationRate;
defaultValue?: number;
maxValue?: number;
minValue?: number;
name: string;
}
interface AudioProcessingEventInit extends EventInit {
inputBuffer: AudioBuffer;
outputBuffer: AudioBuffer;
playbackTime: number;
}
interface AudioTimestamp {
contextTime?: number;
performanceTime?: number;
}
interface AudioWorkletNodeOptions extends AudioNodeOptions {
numberOfInputs?: number;
numberOfOutputs?: number;
outputChannelCount?: number[];
parameterData?: Record<string, number>;
processorOptions?: any;
}
interface AuthenticationExtensionsClientInputs {
appid?: string;
authnSel?: AuthenticatorSelectionList;
exts?: boolean;
loc?: boolean;
txAuthGeneric?: txAuthGenericArg;
txAuthSimple?: string;
uvi?: boolean;
uvm?: boolean;
}
interface AuthenticationExtensionsClientOutputs {
appid?: boolean;
authnSel?: boolean;
exts?: AuthenticationExtensionsSupported;
loc?: Coordinates;
txAuthGeneric?: ArrayBuffer;
txAuthSimple?: string;
uvi?: ArrayBuffer;
uvm?: UvmEntries;
}
interface AuthenticatorSelectionCriteria {
authenticatorAttachment?: AuthenticatorAttachment;
requireResidentKey?: boolean;
userVerification?: UserVerificationRequirement;
}
interface BiquadFilterOptions extends AudioNodeOptions {
Q?: number;
detune?: number;
frequency?: number;
gain?: number;
type?: BiquadFilterType;
}
interface BlobPropertyBag {
endings?: EndingType;
type?: string;
}
interface ByteLengthChunk {
byteLength?: number;
}
interface CacheQueryOptions {
ignoreMethod?: boolean;
ignoreSearch?: boolean;
ignoreVary?: boolean;
}
interface CanvasRenderingContext2DSettings {
alpha?: boolean;
desynchronized?: boolean;
}
interface ChannelMergerOptions extends AudioNodeOptions {
numberOfInputs?: number;
}
interface ChannelSplitterOptions extends AudioNodeOptions {
numberOfOutputs?: number;
}
interface ClientData {
challenge: string;
extensions?: WebAuthnExtensions;
hashAlg: string | Algorithm;
origin: string;
rpId: string;
tokenBinding?: string;
}
interface ClientQueryOptions {
includeUncontrolled?: boolean;
type?: ClientTypes;
}
interface ClipboardEventInit extends EventInit {
clipboardData?: DataTransfer | null;
}
interface CloseEventInit extends EventInit {
code?: number;
reason?: string;
wasClean?: boolean;
}
interface CompositionEventInit extends UIEventInit {
data?: string;
}
interface ComputedEffectTiming extends EffectTiming {
activeDuration?: number;
currentIteration?: number | null;
endTime?: number;
localTime?: number | null;
progress?: number | null;
}
interface ComputedKeyframe {
composite: CompositeOperationOrAuto;
computedOffset: number;
easing: string;
offset: number | null;
[property: string]: string | number | null | undefined;
}
interface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation {
arrayOfDomainStrings?: string[];
}
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 ConstrainVideoFacingModeParameters {
exact?: VideoFacingModeEnum | VideoFacingModeEnum[];
ideal?: VideoFacingModeEnum | VideoFacingModeEnum[];
}
interface ConvolverOptions extends AudioNodeOptions {
buffer?: AudioBuffer | null;
disableNormalization?: boolean;
}
interface CredentialCreationOptions {
publicKey?: PublicKeyCredentialCreationOptions;
signal?: AbortSignal;
}
interface CredentialRequestOptions {
mediation?: CredentialMediationRequirement;
publicKey?: PublicKeyCredentialRequestOptions;
signal?: AbortSignal;
}
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 DeviceLightEventInit extends EventInit {
value?: 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 DevicePermissionDescriptor extends PermissionDescriptor {
deviceId?: string;
name: "camera" | "microphone" | "speaker";
}
interface DocumentTimelineOptions {
originTime?: number;
}
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;
}
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 ExceptionInformation {
domain?: string | null;
}
interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
interface FocusEventInit extends UIEventInit {
relatedTarget?: EventTarget | null;
}
interface FocusNavigationEventInit extends EventInit {
navigationReason?: string | null;
originHeight?: number;
originLeft?: number;
originTop?: number;
originWidth?: number;
}
interface FocusNavigationOrigin {
originHeight?: number;
originLeft?: number;
originTop?: number;
originWidth?: number;
}
interface FocusOptions {
preventScroll?: boolean;
}
interface FullscreenOptions {
navigationUI?: FullscreenNavigationUI;
}
interface GainOptions extends AudioNodeOptions {
gain?: number;
}
interface GamepadEventInit extends EventInit {
gamepad: Gamepad;
}
interface GetNotificationOptions {
tag?: string;
}
interface GetRootNodeOptions {
composed?: boolean;
}
interface HashChangeEventInit extends EventInit {
newURL?: string;
oldURL?: string;
}
interface HkdfParams extends Algorithm {
hash: HashAlgorithmIdentifier;
info: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
}
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 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 ImageBitmapRenderingContextSettings {
alpha?: boolean;
}
interface ImageEncodeOptions {
quality?: number;
type?: string;
}
interface InputEventInit extends UIEventInit {
data?: string | null;
inputType?: string;
isComposing?: boolean;
}
interface IntersectionObserverEntryInit {
boundingClientRect: DOMRectInit;
intersectionRatio: number;
intersectionRect: DOMRectInit;
isIntersecting: boolean;
rootBounds: DOMRectInit | null;
target: Element;
time: number;
}
interface IntersectionObserverInit {
root?: Element | 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 {
code?: string;
isComposing?: boolean;
key?: string;
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;
}
interface MediaElementAudioSourceOptions {
mediaElement: HTMLMediaElement;
}
interface MediaEncryptedEventInit extends EventInit {
initData?: ArrayBuffer | null;
initDataType?: 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;
robustness?: string;
}
interface MediaQueryListEventInit extends EventInit {
matches?: boolean;
media?: string;
}
interface MediaStreamAudioSourceOptions {
mediaStream: MediaStream;
}
interface MediaStreamConstraints {
audio?: boolean | MediaTrackConstraints;
peerIdentity?: string;
video?: boolean | MediaTrackConstraints;
}
interface MediaStreamErrorEventInit extends EventInit {
error?: MediaStreamError | null;
}
interface MediaStreamEventInit extends EventInit {
stream?: MediaStream;
}
interface MediaStreamTrackAudioSourceOptions {
mediaStreamTrack: MediaStreamTrack;
}
interface MediaStreamTrackEventInit extends EventInit {
track: MediaStreamTrack;
}
interface MediaTrackCapabilities {
aspectRatio?: DoubleRange;
autoGainControl?: boolean[];
channelCount?: ULongRange;
deviceId?: string;
echoCancellation?: boolean[];
facingMode?: string[];
frameRate?: DoubleRange;
groupId?: string;
height?: ULongRange;
latency?: DoubleRange;
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;
resizeMode?: ConstrainDOMString;
sampleRate?: ConstrainULong;
sampleSize?: ConstrainULong;
width?: ConstrainULong;
}
interface MediaTrackConstraints extends MediaTrackConstraintSet {
advanced?: MediaTrackConstraintSet[];
}
interface MediaTrackSettings {
aspectRatio?: number;
autoGainControl?: boolean;
channelCount?: number;
deviceId?: string;
echoCancellation?: boolean;
facingMode?: string;
frameRate?: number;
groupId?: string;
height?: number;
latency?: number;
noiseSuppression?: boolean;
resizeMode?: string;
sampleRate?: number;
sampleSize?: number;
width?: number;
}
interface MediaTrackSupportedConstraints {
aspectRatio?: boolean;
autoGainControl?: boolean;
channelCount?: boolean;
deviceId?: boolean;
echoCancellation?: boolean;
facingMode?: boolean;
frameRate?: boolean;
groupId?: boolean;
height?: boolean;
latency?: boolean;
noiseSuppression?: boolean;
resizeMode?: boolean;
sampleRate?: boolean;
sampleSize?: boolean;
width?: boolean;
}
interface MessageEventInit extends EventInit {
data?: any;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: MessageEventSource | null;
}
interface MidiPermissionDescriptor extends PermissionDescriptor {
name: "midi";
sysex?: boolean;
}
interface MouseEventInit extends EventModifierInit {
button?: number;
buttons?: number;
clientX?: number;
clientY?: number;
movementX?: number;
movementY?: number;
relatedTarget?: EventTarget | null;
screenX?: number;
screenY?: number;
}
interface MultiCacheQueryOptions extends CacheQueryOptions {
cacheName?: string;
}
interface MutationObserverInit {
/**
* Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted.
*/
attributeFilter?: string[];
/**
* Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded.
*/
attributeOldValue?: boolean;
/**
* Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified.
*/
attributes?: boolean;
/**
* Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified.
*/
characterData?: boolean;
/**
* Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded.
*/
characterDataOldValue?: boolean;
/**
* Set to true if mutations to target's children are to be observed.
*/
childList?: boolean;
/**
* Set to true if mutations to not just target, but also target's descendants are to be observed.
*/
subtree?: boolean;
}
interface NavigationPreloadState {
enabled?: boolean;
headerValue?: string;
}
interface NotificationAction {
action: string;
icon?: string;
title: string;
}
interface NotificationOptions {
actions?: NotificationAction[];
badge?: string;
body?: string;
data?: any;
dir?: NotificationDirection;
icon?: string;
image?: string;
lang?: string;
renotify?: boolean;
requireInteraction?: boolean;
silent?: boolean;
tag?: string;
timestamp?: number;
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;
}
interface OscillatorOptions extends AudioNodeOptions {
detune?: number;
frequency?: number;
periodicWave?: PeriodicWave;
type?: OscillatorType;
}
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;
currencySystem?: string;
value: string;
}
interface PaymentDetailsBase {
displayItems?: PaymentItem[];
modifiers?: PaymentDetailsModifier[];
shippingOptions?: PaymentShippingOption[];
}
interface PaymentDetailsInit extends PaymentDetailsBase {
id?: string;
total: PaymentItem;
}
interface PaymentDetailsModifier {
additionalDisplayItems?: PaymentItem[];
data?: any;
supportedMethods: string | string[];
total?: PaymentItem;
}
interface PaymentDetailsUpdate extends PaymentDetailsBase {
error?: string;
total?: PaymentItem;
}
interface PaymentItem {
amount: PaymentCurrencyAmount;
label: string;
pending?: boolean;
}
interface PaymentMethodData {
data?: any;
supportedMethods: string | string[];
}
interface PaymentOptions {
requestPayerEmail?: boolean;
requestPayerName?: boolean;
requestPayerPhone?: boolean;
requestShipping?: boolean;
shippingType?: string;
}
interface PaymentRequestUpdateEventInit extends EventInit {
}
interface PaymentShippingOption {
amount: PaymentCurrencyAmount;
id: string;
label: string;
selected?: boolean;
}
interface Pbkdf2Params extends Algorithm {
hash: HashAlgorithmIdentifier;
iterations: number;
salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
}
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 PipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
preventClose?: boolean;
signal?: AbortSignal;
}
interface PointerEventInit extends MouseEventInit {
height?: number;
isPrimary?: boolean;
pointerId?: number;
pointerType?: string;
pressure?: number;
tangentialPressure?: number;
tiltX?: number;
tiltY?: number;
twist?: number;
width?: number;
}
interface PopStateEventInit extends EventInit {
state?: any;
}
interface PositionOptions {
enableHighAccuracy?: boolean;
maximumAge?: number;
timeout?: number;
}
interface PostMessageOptions {
transfer?: any[];
}
interface ProgressEventInit extends EventInit {
lengthComputable?: boolean;
loaded?: number;
total?: number;
}
interface PromiseRejectionEventInit extends EventInit {
promise: Promise<any>;
reason?: any;
}
interface PropertyIndexedKeyframes {
composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
easing?: string | string[];
offset?: number | (number | null)[];
[property: string]: string | string[] | number | null | (number | null)[] | undefined;
}
interface PublicKeyCredentialCreationOptions {
attestation?: AttestationConveyancePreference;
authenticatorSelection?: AuthenticatorSelectionCriteria;
challenge: BufferSource;
excludeCredentials?: PublicKeyCredentialDescriptor[];
extensions?: AuthenticationExtensionsClientInputs;
pubKeyCredParams: PublicKeyCredentialParameters[];
rp: PublicKeyCredentialRpEntity;
timeout?: number;
user: PublicKeyCredentialUserEntity;
}
interface PublicKeyCredentialDescriptor {
id: BufferSource;
transports?: AuthenticatorTransport[];
type: PublicKeyCredentialType;
}
interface PublicKeyCredentialEntity {
icon?: string;
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 PushPermissionDescriptor extends PermissionDescriptor {
name: "push";
userVisibleOnly?: boolean;
}
interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: number | null;
keys?: Record<string, string>;
}
interface PushSubscriptionOptionsInit {
applicationServerKey?: BufferSource | string | null;
userVisibleOnly?: boolean;
}
interface QueuingStrategy<T = any> {
highWaterMark?: number;
size?: QueuingStrategySizeCallback<T>;
}
interface RTCAnswerOptions extends RTCOfferAnswerOptions {
}
interface RTCCertificateExpiration {
expires?: number;
}
interface RTCConfiguration {
bundlePolicy?: RTCBundlePolicy;
certificates?: RTCCertificate[];
iceCandidatePoolSize?: number;
iceServers?: RTCIceServer[];
iceTransportPolicy?: RTCIceTransportPolicy;
peerIdentity?: string;
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;
priority?: RTCPriorityType;
protocol?: string;
}
interface RTCDtlsFingerprint {
algorithm?: string;
value?: string;
}
interface RTCDtlsParameters {
fingerprints?: RTCDtlsFingerprint[];
role?: RTCDtlsRole;
}
interface RTCErrorEventInit extends EventInit {
error?: RTCError | null;
}
interface RTCIceCandidateAttributes extends RTCStats {
addressSourceUrl?: string;
candidateType?: RTCStatsIceCandidateType;
ipAddress?: string;
portNumber?: number;
priority?: number;
transport?: string;
}
interface RTCIceCandidateComplete {
}
interface RTCIceCandidateDictionary {
foundation?: string;
ip?: string;
msMTurnSessionId?: string;
port?: number;
priority?: number;
protocol?: RTCIceProtocol;
relatedAddress?: string;
relatedPort?: number;
tcpType?: RTCIceTcpCandidateType;
type?: RTCIceCandidateType;
}
interface RTCIceCandidateInit {
candidate?: string;
sdpMLineIndex?: number | null;
sdpMid?: string | null;
usernameFragment?: string;
}
interface RTCIceCandidatePair {
local?: RTCIceCandidate;
remote?: RTCIceCandidate;
}
interface RTCIceCandidatePairStats extends RTCStats {
availableIncomingBitrate?: number;
availableOutgoingBitrate?: number;
bytesReceived?: number;
bytesSent?: number;
localCandidateId?: string;
nominated?: boolean;
priority?: number;
readable?: boolean;
remoteCandidateId?: string;
roundTripTime?: number;
state?: RTCStatsIceCandidatePairState;
transportId?: string;
writable?: boolean;
}
interface RTCIceGatherOptions {
gatherPolicy?: RTCIceGatherPolicy;
iceservers?: RTCIceServer[];
}
interface RTCIceParameters {
password?: string;
usernameFragment?: string;
}
interface RTCIceServer {
credential?: string | RTCOAuthCredential;
credentialType?: RTCIceCredentialType;
urls: string | string[];
username?: string;
}
interface RTCIdentityProviderOptions {
peerIdentity?: string;
protocol?: string;
usernameHint?: string;
}
interface RTCInboundRTPStreamStats extends RTCRTPStreamStats {
bytesReceived?: number;
fractionLost?: number;
jitter?: number;
packetsLost?: number;
packetsReceived?: number;
}
interface RTCMediaStreamTrackStats extends RTCStats {
audioLevel?: number;
echoReturnLoss?: number;
echoReturnLossEnhancement?: number;
frameHeight?: number;
frameWidth?: number;
framesCorrupted?: number;
framesDecoded?: number;
framesDropped?: number;
framesPerSecond?: number;
framesReceived?: number;
framesSent?: number;
remoteSource?: boolean;
ssrcIds?: string[];
trackIdentifier?: string;
}
interface RTCOAuthCredential {
accessToken: string;
macKey: string;
}
interface RTCOfferAnswerOptions {
voiceActivityDetection?: boolean;
}
interface RTCOfferOptions extends RTCOfferAnswerOptions {
iceRestart?: boolean;
offerToReceiveAudio?: boolean;
offerToReceiveVideo?: boolean;
}
interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {
bytesSent?: number;
packetsSent?: number;
roundTripTime?: number;
targetBitrate?: number;
}
interface RTCPeerConnectionIceErrorEventInit extends EventInit {
errorCode: number;
hostCandidate?: string;
statusText?: string;
url?: string;
}
interface RTCPeerConnectionIceEventInit extends EventInit {
candidate?: RTCIceCandidate | null;
url?: string | null;
}
interface RTCRTPStreamStats extends RTCStats {
associateStatsId?: string;
codecId?: string;
firCount?: number;
isRemote?: boolean;
mediaTrackId?: string;
mediaType?: string;
nackCount?: number;
pliCount?: number;
sliCount?: number;
ssrc?: string;
transportId?: string;
}
interface RTCRtcpFeedback {
parameter?: string;
type?: string;
}
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;
source: number;
timestamp: number;
}
interface RTCRtpDecodingParameters extends RTCRtpCodingParameters {
}
interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
active?: boolean;
codecPayloadType?: number;
dtx?: RTCDtxStatus;
maxBitrate?: number;
maxFramerate?: number;
priority?: RTCPriorityType;
ptime?: number;
scaleResolutionDownBy?: number;
}
interface RTCRtpFecParameters {
mechanism?: string;
ssrc?: number;
}
interface RTCRtpHeaderExtension {
kind?: string;
preferredEncrypt?: boolean;
preferredId?: number;
uri?: string;
}
interface RTCRtpHeaderExtensionCapability {
uri?: string;
}
interface RTCRtpHeaderExtensionParameters {
encrypted?: boolean;
id: number;
uri: string;
}
interface RTCRtpParameters {
codecs: RTCRtpCodecParameters[];
headerExtensions: RTCRtpHeaderExtensionParameters[];
rtcp: RTCRtcpParameters;
}
interface RTCRtpReceiveParameters extends RTCRtpParameters {
encodings: RTCRtpDecodingParameters[];
}
interface RTCRtpRtxParameters {
ssrc?: number;
}
interface RTCRtpSendParameters extends RTCRtpParameters {
degradationPreference?: RTCDegradationPreference;
encodings: RTCRtpEncodingParameters[];
transactionId: string;
}
interface RTCRtpSynchronizationSource extends RTCRtpContributingSource {
voiceActivityFlag?: boolean;
}
interface RTCRtpTransceiverInit {
direction?: RTCRtpTransceiverDirection;
sendEncodings?: RTCRtpEncodingParameters[];
streams?: MediaStream[];
}
interface RTCRtpUnhandled {
muxId?: string;
payloadType?: number;
ssrc?: number;
}
interface RTCSessionDescriptionInit {
sdp?: string;
type: RTCSdpType;
}
interface RTCSrtpKeyParam {
keyMethod?: string;
keySalt?: string;
lifetime?: string;
mkiLength?: number;
mkiValue?: number;
}
interface RTCSrtpSdesParameters {
cryptoSuite?: string;
keyParams?: RTCSrtpKeyParam[];
sessionParams?: string[];
tag?: number;
}
interface RTCSsrcRange {
max?: number;
min?: number;
}
interface RTCStats {
id: string;
timestamp: number;
type: RTCStatsType;
}
interface RTCStatsEventInit extends EventInit {
report: RTCStatsReport;
}
interface RTCStatsReport {
}
interface RTCTrackEventInit extends EventInit {
receiver: RTCRtpReceiver;
streams?: MediaStream[];
track: MediaStreamTrack;
transceiver: RTCRtpTransceiver;
}
interface RTCTransportStats extends RTCStats {
activeConnection?: boolean;
bytesReceived?: number;
bytesSent?: number;
localCertificateId?: string;
remoteCertificateId?: string;
rtcpTransportStatsId?: string;
selectedCandidatePairId?: string;
}
interface RegistrationOptions {
scope?: string;
type?: WorkerType;
updateViaCache?: ServiceWorkerUpdateViaCache;
}
interface RequestInit {
/**
* A BodyInit object or null to set request's body.
*/
body?: BodyInit | null;
/**
* A string indicating how the request will interact with the browser's cache to set request's cache.
*/
cache?: RequestCache;
/**
* A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials.
*/
credentials?: RequestCredentials;
/**
* A Headers object, an object literal, or an array of two-item arrays to set request's headers.
*/
headers?: HeadersInit;
/**
* A cryptographic hash of the resource to be fetched by request. Sets request's integrity.
*/
integrity?: string;
/**
* A boolean to set request's keepalive.
*/
keepalive?: boolean;
/**
* A string to set request's method.
*/
method?: string;
/**
* A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode.
*/
mode?: RequestMode;
/**
* A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect.
*/
redirect?: RequestRedirect;
/**
* A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer.
*/
referrer?: string;
/**
* A referrer policy to set request's referrerPolicy.
*/
referrerPolicy?: ReferrerPolicy;
/**
* An AbortSignal to set request's signal.
*/
signal?: AbortSignal | null;
/**
* Can only be null. Used to disassociate request from any Window.
*/
window?: any;
}
interface ResponseInit {
headers?: HeadersInit;
status?: number;
statusText?: string;
}
interface RsaHashedImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface 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?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
}
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 ScopedCredentialDescriptor {
id: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;
transports?: Transport[];
type: ScopedCredentialType;
}
interface ScopedCredentialOptions {
excludeList?: ScopedCredentialDescriptor[];
extensions?: WebAuthnExtensions;
rpId?: string;
timeoutSeconds?: number;
}
interface ScopedCredentialParameters {
algorithm: string | Algorithm;
type: ScopedCredentialType;
}
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;
documentURI?: string;
effectiveDirective?: string;
lineNumber?: number;
originalPolicy?: string;
referrer?: string;
sourceFile?: string;
statusCode?: number;
violatedDirective?: string;
}
interface ServiceWorkerMessageEventInit extends EventInit {
data?: any;
lastEventId?: string;
origin?: string;
ports?: MessagePort[] | null;
source?: ServiceWorker | MessagePort | null;
}
interface ShadowRootInit {
delegatesFocus?: boolean;
mode: ShadowRootMode;
}
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 StoreExceptionsInformation extends ExceptionInformation {
detailURI?: string | null;
explanationString?: string | null;
siteName?: string | null;
}
interface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation {
arrayOfDomainStrings?: string[];
}
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?: VideoTrack | AudioTrack | TextTrack | null;
}
interface Transformer<I = any, O = any> {
flush?: TransformStreamDefaultControllerCallback<O>;
readableType?: undefined;
start?: TransformStreamDefaultControllerCallback<O>;
transform?: TransformStreamDefaultControllerTransformCallback<I, O>;
writableType?: undefined;
}
interface TransitionEventInit extends EventInit {
elapsedTime?: number;
propertyName?: string;
pseudoElement?: string;
}
interface UIEventInit extends EventInit {
detail?: number;
view?: Window | null;
}
interface ULongRange {
max?: number;
min?: number;
}
interface UnderlyingByteSource {
autoAllocateChunkSize?: number;
cancel?: ReadableStreamErrorCallback;
pull?: ReadableByteStreamControllerCallback;
start?: ReadableByteStreamControllerCallback;
type: "bytes";
}
interface UnderlyingSink<W = any> {
abort?: WritableStreamErrorCallback;
close?: WritableStreamDefaultControllerCloseCallback;
start?: WritableStreamDefaultControllerStartCallback;
type?: undefined;
write?: WritableStreamDefaultControllerWriteCallback<W>;
}
interface UnderlyingSource<R = any> {
cancel?: ReadableStreamErrorCallback;
pull?: ReadableStreamDefaultControllerCallback<R>;
start?: ReadableStreamDefaultControllerCallback<R>;
type?: undefined;
}
interface VRDisplayEventInit extends EventInit {
display: VRDisplay;
reason?: VRDisplayEventReason;
}
interface VRLayer {
leftBounds?: number[] | Float32Array | null;
rightBounds?: number[] | Float32Array | null;
source?: HTMLCanvasElement | null;
}
interface VRStageParameters {
sittingToStandingTransform?: Float32Array;
sizeX?: number;
sizeY?: number;
}
interface WaveShaperOptions extends AudioNodeOptions {
curve?: number[] | Float32Array;
oversample?: OverSampleType;
}
interface WebAuthnExtensions {
}
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 WorkerOptions {
credentials?: RequestCredentials;
name?: string;
type?: WorkerType;
}
interface WorkletOptions {
credentials?: RequestCredentials;
}
interface txAuthGenericArg {
content: ArrayBuffer;
contentType: string;
}
interface EventListener {
(evt: Event): void;
}
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;
}
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
interface AbortController {
/**
* Returns the AbortSignal object associated with this object.
*/
readonly signal: AbortSignal;
/**
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
*/
abort(): void;
}
declare var AbortController: {
prototype: AbortController;
new(): AbortController;
};
interface AbortSignalEventMap {
"abort": Event;
}
/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
interface AbortSignal extends EventTarget {
/**
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
*/
readonly aborted: boolean;
onabort: ((this: AbortSignal, ev: Event) => any) | null;
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AbortSignal: {
prototype: AbortSignal;
new(): AbortSignal;
};
interface AbstractRange {
/**
* Returns true if range is collapsed, and false otherwise.
*/
readonly collapsed: boolean;
/**
* Returns range's end node.
*/
readonly endContainer: Node;
/**
* Returns range's end offset.
*/
readonly endOffset: number;
/**
* Returns range's start node.
*/
readonly startContainer: Node;
/**
* Returns range's start offset.
*/
readonly startOffset: number;
}
declare var AbstractRange: {
prototype: AbstractRange;
new(): AbstractRange;
};
interface AbstractWorkerEventMap {
"error": ErrorEvent;
}
interface AbstractWorker {
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface AesCfbParams extends Algorithm {
iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
}
interface AesCmacParams extends Algorithm {
length: number;
}
/** 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(): Animation[];
}
interface AnimationEventMap {
"cancel": AnimationPlaybackEvent;
"finish": AnimationPlaybackEvent;
}
interface Animation extends EventTarget {
currentTime: number | null;
effect: AnimationEffect | null;
readonly finished: Promise<Animation>;
id: string;
oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
readonly pending: boolean;
readonly playState: AnimationPlayState;
playbackRate: number;
readonly ready: Promise<Animation>;
startTime: number | null;
timeline: AnimationTimeline | null;
cancel(): void;
finish(): void;
pause(): void;
play(): void;
reverse(): void;
updatePlaybackRate(playbackRate: number): void;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Animation: {
prototype: Animation;
new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;
};
interface AnimationEffect {
getComputedTiming(): ComputedEffectTiming;
getTiming(): EffectTiming;
updateTiming(timing?: OptionalEffectTiming): void;
}
declare var AnimationEffect: {
prototype: AnimationEffect;
new(): AnimationEffect;
};
/** Events providing information related to animations. */
interface AnimationEvent extends Event {
readonly animationName: string;
readonly elapsedTime: number;
readonly pseudoElement: string;
}
declare var AnimationEvent: {
prototype: AnimationEvent;
new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;
};
interface AnimationFrameProvider {
cancelAnimationFrame(handle: number): void;
requestAnimationFrame(callback: FrameRequestCallback): number;
}
interface AnimationPlaybackEvent extends Event {
readonly currentTime: number | null;
readonly timelineTime: number | null;
}
declare var AnimationPlaybackEvent: {
prototype: AnimationPlaybackEvent;
new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;
};
interface AnimationTimeline {
readonly currentTime: number | null;
}
declare var AnimationTimeline: {
prototype: AnimationTimeline;
new(): AnimationTimeline;
};
interface ApplicationCacheEventMap {
"cached": Event;
"checking": Event;
"downloading": Event;
"error": Event;
"noupdate": Event;
"obsolete": Event;
"progress": ProgressEvent<ApplicationCache>;
"updateready": Event;
}
interface ApplicationCache extends EventTarget {
/** @deprecated */
oncached: ((this: ApplicationCache, ev: Event) => any) | null;
/** @deprecated */
onchecking: ((this: ApplicationCache, ev: Event) => any) | null;
/** @deprecated */
ondownloading: ((this: ApplicationCache, ev: Event) => any) | null;
/** @deprecated */
onerror: ((this: ApplicationCache, ev: Event) => any) | null;
/** @deprecated */
onnoupdate: ((this: ApplicationCache, ev: Event) => any) | null;
/** @deprecated */
onobsolete: ((this: ApplicationCache, ev: Event) => any) | null;
/** @deprecated */
onprogress: ((this: ApplicationCache, ev: ProgressEvent<ApplicationCache>) => any) | null;
/** @deprecated */
onupdateready: ((this: ApplicationCache, ev: Event) => any) | null;
/** @deprecated */
readonly status: number;
/** @deprecated */
abort(): void;
/** @deprecated */
swapCache(): void;
/** @deprecated */
update(): void;
readonly CHECKING: number;
readonly DOWNLOADING: number;
readonly IDLE: number;
readonly OBSOLETE: number;
readonly UNCACHED: number;
readonly UPDATEREADY: number;
addEventListener<K extends keyof ApplicationCacheEventMap>(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ApplicationCacheEventMap>(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ApplicationCache: {
prototype: ApplicationCache;
new(): ApplicationCache;
readonly CHECKING: number;
readonly DOWNLOADING: number;
readonly IDLE: number;
readonly OBSOLETE: number;
readonly UNCACHED: number;
readonly UPDATEREADY: number;
};
/** 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 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, startInChannel?: number): void;
copyToChannel(source: Float32Array, channelNumber: number, startInChannel?: number): void;
getChannelData(channel: number): Float32Array;
}
declare var AudioBuffer: {
prototype: AudioBuffer;
new(options: AudioBufferOptions): AudioBuffer;
};
/** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */
interface AudioBufferSourceNode extends AudioScheduledSourceNode {
buffer: AudioBuffer | null;
readonly detune: AudioParam;
loop: boolean;
loopEnd: number;
loopStart: number;
readonly playbackRate: AudioParam;
start(when?: number, offset?: number, duration?: number): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioBufferSourceNode: {
prototype: AudioBufferSourceNode;
new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;
};
/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */
interface AudioContext extends BaseAudioContext {
readonly baseLatency: number;
readonly outputLatency: number;
close(): Promise<void>;
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
createMediaStreamDestination(): MediaStreamAudioDestinationNode;
createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
createMediaStreamTrackSource(mediaStreamTrack: MediaStreamTrack): MediaStreamTrackAudioSourceNode;
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. */
interface AudioProcessingEvent extends Event {
readonly inputBuffer: AudioBuffer;
readonly outputBuffer: AudioBuffer;
readonly playbackTime: number;
}
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;
};
/** A single audio track from one of the HTML media elements, <audio> or <video>. */
interface AudioTrack {
enabled: boolean;
readonly id: string;
kind: string;
readonly label: string;
language: string;
readonly sourceBuffer: SourceBuffer | null;
}
declare var AudioTrack: {
prototype: AudioTrack;
new(): AudioTrack;
};
interface AudioTrackListEventMap {
"addtrack": TrackEvent;
"change": Event;
"removetrack": TrackEvent;
}
/** Used to represent a list of the audio tracks contained within a given HTML media element, with each track represented by a separate AudioTrack object in the list. */
interface AudioTrackList extends EventTarget {
readonly length: number;
onaddtrack: ((this: AudioTrackList, ev: TrackEvent) => any) | null;
onchange: ((this: AudioTrackList, ev: Event) => any) | null;
onremovetrack: ((this: AudioTrackList, ev: TrackEvent) => any) | null;
getTrackById(id: string): AudioTrack | null;
item(index: number): AudioTrack;
addEventListener<K extends keyof AudioTrackListEventMap>(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioTrackListEventMap>(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: AudioTrack;
}
declare var AudioTrackList: {
prototype: AudioTrackList;
new(): AudioTrackList;
};
interface AudioWorklet extends Worklet {
}
declare var AudioWorklet: {
prototype: AudioWorklet;
new(): AudioWorklet;
};
interface AudioWorkletNodeEventMap {
"processorerror": Event;
}
interface AudioWorkletNode extends AudioNode {
onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;
readonly parameters: AudioParamMap;
readonly port: MessagePort;
addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioWorkletNode: {
prototype: AudioWorkletNode;
new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;
};
interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
readonly authenticatorData: ArrayBuffer;
readonly signature: ArrayBuffer;
readonly userHandle: ArrayBuffer | null;
}
declare var AuthenticatorAssertionResponse: {
prototype: AuthenticatorAssertionResponse;
new(): AuthenticatorAssertionResponse;
};
interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
readonly attestationObject: ArrayBuffer;
}
declare var AuthenticatorAttestationResponse: {
prototype: AuthenticatorAttestationResponse;
new(): AuthenticatorAttestationResponse;
};
interface AuthenticatorResponse {
readonly clientDataJSON: ArrayBuffer;
}
declare var AuthenticatorResponse: {
prototype: AuthenticatorResponse;
new(): AuthenticatorResponse;
};
interface BarProp {
readonly visible: boolean;
}
declare var BarProp: {
prototype: BarProp;
new(): BarProp;
};
interface BaseAudioContextEventMap {
"statechange": Event;
}
interface BaseAudioContext extends EventTarget {
readonly audioWorklet: AudioWorklet;
readonly currentTime: number;
readonly destination: AudioDestinationNode;
readonly listener: AudioListener;
onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;
readonly sampleRate: number;
readonly state: AudioContextState;
createAnalyser(): AnalyserNode;
createBiquadFilter(): BiquadFilterNode;
createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
createBufferSource(): AudioBufferSourceNode;
createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
createConstantSource(): ConstantSourceNode;
createConvolver(): ConvolverNode;
createDelay(maxDelayTime?: number): DelayNode;
createDynamicsCompressor(): DynamicsCompressorNode;
createGain(): GainNode;
createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
createOscillator(): OscillatorNode;
createPanner(): PannerNode;
createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
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;
};
interface BhxBrowser {
readonly lastError: DOMException;
checkMatchesGlobExpression(pattern: string, value: string): boolean;
checkMatchesUriExpression(pattern: string, value: string): boolean;
clearLastError(): void;
currentWindowId(): number;
fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void;
genericFunction(functionId: number, destination: any, parameters?: string, callbackId?: number): void;
genericSynchronousFunction(functionId: number, parameters?: string): string;
getExtensionId(): string;
getThisAddress(): any;
registerGenericFunctionCallbackHandler(callbackHandler: Function): void;
registerGenericListenerHandler(eventHandler: Function): void;
setLastError(parameters: string): void;
webPlatformGenericFunction(destination: any, parameters?: string, callbackId?: number): void;
}
declare var BhxBrowser: {
prototype: BhxBrowser;
new(): BhxBrowser;
};
/** 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;
slice(start?: number, end?: number, contentType?: string): Blob;
}
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> {
highWaterMark: number;
size(chunk: ArrayBufferView): number;
}
declare var ByteLengthQueuingStrategy: {
prototype: ByteLengthQueuingStrategy;
new(options: { highWaterMark: number }): 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;
};
/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
interface CSS {
escape(value: string): string;
supports(property: string, value?: string): boolean;
}
declare var CSS: CSS;
/** 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 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 CSSRule {
readonly pseudoClass: string;
readonly selector: string;
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;
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;
readonly UNKNOWN_RULE: number;
readonly VIEWPORT_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;
readonly UNKNOWN_RULE: number;
readonly VIEWPORT_RULE: number;
};
/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */
interface CSSRuleList {
readonly length: number;
item(index: number): CSSRule | null;
[index: number]: CSSRule;
}
declare var CSSRuleList: {
prototype: CSSRuleList;
new(): CSSRuleList;
};
/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */
interface CSSStyleDeclaration {
alignContent: string;
alignItems: string;
alignSelf: string;
alignmentBaseline: string;
animation: string;
animationDelay: string;
animationDirection: string;
animationDuration: string;
animationFillMode: string;
animationIterationCount: string;
animationName: string;
animationPlayState: string;
animationTimingFunction: string;
backfaceVisibility: string;
background: string;
backgroundAttachment: 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;
borderBlockEnd: string;
borderBlockEndColor: string;
borderBlockEndStyle: string;
borderBlockEndWidth: string;
borderBlockStart: string;
borderBlockStartColor: string;
borderBlockStartStyle: string;
borderBlockStartWidth: string;
borderBottom: string;
borderBottomColor: string;
borderBottomLeftRadius: string;
borderBottomRightRadius: string;
borderBottomStyle: string;
borderBottomWidth: string;
borderCollapse: string;
borderColor: string;
borderImage: string;
borderImageOutset: string;
borderImageRepeat: string;
borderImageSlice: string;
borderImageSource: string;
borderImageWidth: string;
borderInlineEnd: string;
borderInlineEndColor: string;
borderInlineEndStyle: string;
borderInlineEndWidth: string;
borderInlineStart: string;
borderInlineStartColor: string;
borderInlineStartStyle: string;
borderInlineStartWidth: string;
borderLeft: string;
borderLeftColor: string;
borderLeftStyle: string;
borderLeftWidth: string;
borderRadius: string;
borderRight: string;
borderRightColor: string;
borderRightStyle: string;
borderRightWidth: string;
borderSpacing: 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;
clip: string;
clipPath: string;
clipRule: string;
color: string | null;
colorInterpolation: string;
colorInterpolationFilters: string;
columnCount: string;
columnFill: string;
columnGap: string;
columnRule: string;
columnRuleColor: string;
columnRuleStyle: string;
columnRuleWidth: string;
columnSpan: string;
columnWidth: string;
columns: string;
content: string;
counterIncrement: string;
counterReset: string;
cssFloat: string | null;
cssText: string;
cursor: string;
direction: string;
display: string;
dominantBaseline: string;
emptyCells: string;
enableBackground: string | null;
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;
fontSize: string;
fontSizeAdjust: string;
fontStretch: string;
fontStyle: string;
fontSynthesis: string;
fontVariant: string;
fontVariantCaps: string;
fontVariantEastAsian: string;
fontVariantLigatures: string;
fontVariantNumeric: string;
fontVariantPosition: string;
fontWeight: string;
gap: string;
glyphOrientationHorizontal: string | null;
glyphOrientationVertical: string;
grid: string;
gridArea: string;
gridAutoColumns: string;
gridAutoFlow: string;
gridAutoRows: string;
gridColumn: string;
gridColumnEnd: string;
gridColumnGap: string;
gridColumnStart: string;
gridGap: string;
gridRow: string;
gridRowEnd: string;
gridRowGap: string;
gridRowStart: string;
gridTemplate: string;
gridTemplateAreas: string;
gridTemplateColumns: string;
gridTemplateRows: string;
height: string;
hyphens: string;
imageOrientation: string;
imageRendering: string;
imeMode: string | null;
inlineSize: string;
justifyContent: string;
justifyItems: string;
justifySelf: string;
kerning: string | null;
layoutGrid: string | null;
layoutGridChar: string | null;
layoutGridLine: string | null;
layoutGridMode: string | null;
layoutGridType: string | null;
left: string;
readonly length: number;
letterSpacing: string;
lightingColor: string;
lineBreak: string;
lineHeight: string;
listStyle: string;
listStyleImage: string;
listStylePosition: string;
listStyleType: string;
margin: string;
marginBlockEnd: string;
marginBlockStart: string;
marginBottom: string;
marginInlineEnd: string;
marginInlineStart: string;
marginLeft: string;
marginRight: string;
marginTop: string;
marker: string;
markerEnd: string;
markerMid: string;
markerStart: string;
mask: string;
maskComposite: string;
maskImage: string;
maskPosition: string;
maskRepeat: string;
maskSize: string;
maskType: string;
maxBlockSize: string;
maxHeight: string;
maxInlineSize: string;
maxWidth: string;
minBlockSize: string;
minHeight: string;
minInlineSize: string;
minWidth: string;
msContentZoomChaining: string | null;
msContentZoomLimit: string | null;
msContentZoomLimitMax: any;
msContentZoomLimitMin: any;
msContentZoomSnap: string | null;
msContentZoomSnapPoints: string | null;
msContentZoomSnapType: string | null;
msContentZooming: string | null;
msFlowFrom: string | null;
msFlowInto: string | null;
msFontFeatureSettings: string | null;
msGridColumn: any;
msGridColumnAlign: string | null;
msGridColumnSpan: any;
msGridColumns: string | null;
msGridRow: any;
msGridRowAlign: string | null;
msGridRowSpan: any;
msGridRows: string | null;
msHighContrastAdjust: string | null;
msHyphenateLimitChars: string | null;
msHyphenateLimitLines: any;
msHyphenateLimitZone: any;
msHyphens: string | null;
msImeAlign: string | null;
msOverflowStyle: string | null;
msScrollChaining: string | null;
msScrollLimit: string | null;
msScrollLimitXMax: any;
msScrollLimitXMin: any;
msScrollLimitYMax: any;
msScrollLimitYMin: any;
msScrollRails: string | null;
msScrollSnapPointsX: string | null;
msScrollSnapPointsY: string | null;
msScrollSnapType: string | null;
msScrollSnapX: string | null;
msScrollSnapY: string | null;
msScrollTranslation: string | null;
msTextCombineHorizontal: string | null;
msTextSizeAdjust: any;
msTouchAction: string | null;
msTouchSelect: string | null;
msUserSelect: string | null;
msWrapFlow: string;
msWrapMargin: any;
msWrapThrough: string;
objectFit: string;
objectPosition: string;
opacity: string | null;
order: string;
orphans: string;
outline: string;
outlineColor: string;
outlineOffset: string;
outlineStyle: string;
outlineWidth: string;
overflow: string;
overflowAnchor: string;
overflowWrap: string;
overflowX: string;
overflowY: string;
padding: string;
paddingBlockEnd: string;
paddingBlockStart: string;
paddingBottom: string;
paddingInlineEnd: string;
paddingInlineStart: string;
paddingLeft: string;
paddingRight: string;
paddingTop: string;
pageBreakAfter: string;
pageBreakBefore: string;
pageBreakInside: string;
paintOrder: string;
readonly parentRule: CSSRule;
penAction: string | null;
perspective: string;
perspectiveOrigin: string;
placeContent: string;
placeItems: string;
placeSelf: string;
pointerEvents: string | null;
position: string;
quotes: string;
resize: string;
right: string;
rotate: string;
rowGap: string;
rubyAlign: string | null;
rubyOverhang: string | null;
rubyPosition: string | null;
scale: string;
scrollBehavior: string;
shapeRendering: string;
stopColor: string | null;
stopOpacity: string | null;
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 | null;
textCombineUpright: string;
textDecoration: string;
textDecorationColor: string;
textDecorationLine: string;
textDecorationStyle: string;
textEmphasis: string;
textEmphasisColor: string;
textEmphasisPosition: string;
textEmphasisStyle: string;
textIndent: string;
textJustify: string;
textKashida: string | null;
textKashidaSpace: string | null;
textOrientation: string;
textOverflow: string;
textRendering: string;
textShadow: string;
textTransform: 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 */
webkitAlignContent: string;
/** @deprecated */
webkitAlignItems: string;
/** @deprecated */
webkitAlignSelf: string;
/** @deprecated */
webkitAnimation: string;
/** @deprecated */
webkitAnimationDelay: string;
/** @deprecated */
webkitAnimationDirection: string;
/** @deprecated */
webkitAnimationDuration: string;
/** @deprecated */
webkitAnimationFillMode: string;
/** @deprecated */
webkitAnimationIterationCount: string;
/** @deprecated */
webkitAnimationName: string;
/** @deprecated */
webkitAnimationPlayState: string;
/** @deprecated */
webkitAnimationTimingFunction: string;
/** @deprecated */
webkitAppearance: string;
/** @deprecated */
webkitBackfaceVisibility: string;
/** @deprecated */
webkitBackgroundClip: string;
/** @deprecated */
webkitBackgroundOrigin: string;
/** @deprecated */
webkitBackgroundSize: string;
/** @deprecated */
webkitBorderBottomLeftRadius: string;
/** @deprecated */
webkitBorderBottomRightRadius: string;
webkitBorderImage: string | null;
/** @deprecated */
webkitBorderRadius: string;
/** @deprecated */
webkitBorderTopLeftRadius: string;
/** @deprecated */
webkitBorderTopRightRadius: string;
/** @deprecated */
webkitBoxAlign: string;
webkitBoxDirection: string | null;
/** @deprecated */
webkitBoxFlex: string;
/** @deprecated */
webkitBoxOrdinalGroup: string;
webkitBoxOrient: string | null;
/** @deprecated */
webkitBoxPack: string;
/** @deprecated */
webkitBoxShadow: string;
/** @deprecated */
webkitBoxSizing: string;
webkitColumnBreakAfter: string | null;
webkitColumnBreakBefore: string | null;
webkitColumnBreakInside: string | null;
webkitColumnCount: any;
webkitColumnGap: any;
webkitColumnRule: string | null;
webkitColumnRuleColor: any;
webkitColumnRuleStyle: string | null;
webkitColumnRuleWidth: any;
webkitColumnSpan: string | null;
webkitColumnWidth: any;
webkitColumns: string | null;
/** @deprecated */
webkitFilter: string;
/** @deprecated */
webkitFlex: string;
/** @deprecated */
webkitFlexBasis: string;
/** @deprecated */
webkitFlexDirection: string;
/** @deprecated */
webkitFlexFlow: string;
/** @deprecated */
webkitFlexGrow: string;
/** @deprecated */
webkitFlexShrink: string;
/** @deprecated */
webkitFlexWrap: string;
/** @deprecated */
webkitJustifyContent: string;
webkitLineClamp: string;
/** @deprecated */
webkitMask: string;
/** @deprecated */
webkitMaskBoxImage: string;
/** @deprecated */
webkitMaskBoxImageOutset: string;
/** @deprecated */
webkitMaskBoxImageRepeat: string;
/** @deprecated */
webkitMaskBoxImageSlice: string;
/** @deprecated */
webkitMaskBoxImageSource: string;
/** @deprecated */
webkitMaskBoxImageWidth: string;
/** @deprecated */
webkitMaskClip: string;
/** @deprecated */
webkitMaskComposite: string;
/** @deprecated */
webkitMaskImage: string;
/** @deprecated */
webkitMaskOrigin: string;
/** @deprecated */
webkitMaskPosition: string;
/** @deprecated */
webkitMaskRepeat: string;
/** @deprecated */
webkitMaskSize: string;
/** @deprecated */
webkitOrder: string;
/** @deprecated */
webkitPerspective: string;
/** @deprecated */
webkitPerspectiveOrigin: string;
webkitTapHighlightColor: string | null;
/** @deprecated */
webkitTextFillColor: string;
/** @deprecated */
webkitTextSizeAdjust: string;
/** @deprecated */
webkitTextStroke: string;
/** @deprecated */
webkitTextStrokeColor: string;
/** @deprecated */
webkitTextStrokeWidth: string;
/** @deprecated */
webkitTransform: string;
/** @deprecated */
webkitTransformOrigin: string;
/** @deprecated */
webkitTransformStyle: string;
/** @deprecated */
webkitTransition: string;
/** @deprecated */
webkitTransitionDelay: string;
/** @deprecated */
webkitTransitionDuration: string;
/** @deprecated */
webkitTransitionProperty: string;
/** @deprecated */
webkitTransitionTimingFunction: string;
webkitUserModify: string | null;
webkitUserSelect: string | null;
webkitWritingMode: string | null;
whiteSpace: string;
widows: string;
width: string;
willChange: string;
wordBreak: string;
wordSpacing: string;
wordWrap: string;
writingMode: string;
zIndex: string;
zoom: string | null;
getPropertyPriority(propertyName: string): string;
getPropertyValue(propertyName: string): string;
item(index: number): string;
removeProperty(propertyName: string): string;
setProperty(propertyName: string, value: string | null, priority?: string | null): 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;
/** @deprecated */
cssText: string;
/** @deprecated */
readonly id: string;
/** @deprecated */
readonly imports: StyleSheetList;
/** @deprecated */
readonly isAlternate: boolean;
/** @deprecated */
readonly isPrefAlternate: boolean;
readonly ownerRule: CSSRule | null;
/** @deprecated */
readonly owningElement: Element;
/** @deprecated */
readonly pages: any;
/** @deprecated */
readonly readOnly: boolean;
readonly rules: CSSRuleList;
/** @deprecated */
addImport(bstrURL: string, lIndex?: number): number;
/** @deprecated */
addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number;
addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;
deleteRule(index?: number): void;
insertRule(rule: string, index?: number): number;
/** @deprecated */
removeImport(lIndex: number): void;
removeRule(lIndex: number): void;
}
declare var CSSStyleSheet: {
prototype: CSSStyleSheet;
new(): 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;
};
/** Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. */
interface Cache {
add(request: RequestInfo): Promise<void>;
addAll(requests: RequestInfo[]): Promise<void>;
delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;
keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;
matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
put(request: RequestInfo, response: Response): Promise<void>;
}
declare var Cache: {
prototype: Cache;
new(): Cache;
};
/** The storage for Cache objects. */
interface CacheStorage {
delete(cacheName: string): Promise<boolean>;
has(cacheName: string): Promise<boolean>;
keys(): Promise<string[]>;
match(request: RequestInfo, options?: CacheQueryOptions): 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): 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): ImageData;
createImageData(imagedata: ImageData): ImageData;
getImageData(sx: number, sy: number, sw: number, sh: number): 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, anticlockwise?: 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, anticlockwise?: 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;
}
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;
scrollPathIntoView(): void;
scrollPathIntoView(path: Path2D): void;
}
interface CaretPosition {
readonly offset: number;
readonly offsetNode: Node;
getClientRect(): DOMRect | null;
}
declare var CaretPosition: {
prototype: CaretPosition;
new(): CaretPosition;
};
/** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. 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;
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;
}
interface ClientRect {
bottom: number;
readonly height: number;
left: number;
right: number;
top: number;
readonly width: number;
}
declare var ClientRect: {
prototype: ClientRect;
new(): ClientRect;
};
interface ClientRectList {
readonly length: number;
item(index: number): ClientRect;
[index: number]: ClientRect;
}
declare var ClientRectList: {
prototype: ClientRectList;
new(): ClientRectList;
};
interface Clipboard extends EventTarget {
readText(): Promise<string>;
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;
};
/** 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 {
readonly code: number;
readonly reason: string;
readonly wasClean: boolean;
/** @deprecated */
initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
}
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;
}
declare var CompositionEvent: {
prototype: CompositionEvent;
new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;
};
interface ConcatParams extends Algorithm {
algorithmId: Uint8Array;
hash?: string | Algorithm;
partyUInfo: Uint8Array;
partyVInfo: Uint8Array;
privateInfo?: Uint8Array;
publicInfo?: Uint8Array;
}
/** Provides access to the browser's debugging console (e.g.\xA0the Web Console in Firefox). The specifics of how it works varies\xA0from browser to browser, but there is a de facto set of features that are typically provided. */
interface Console {
memory: any;
assert(condition?: boolean, message?: string, ...data: any[]): void;
clear(): void;
count(label?: string): void;
debug(message?: any, ...optionalParams: any[]): void;
dir(value?: any, ...optionalParams: any[]): void;
dirxml(value: any): void;
error(message?: any, ...optionalParams: any[]): void;
exception(message?: string, ...optionalParams: any[]): void;
group(groupTitle?: string, ...optionalParams: any[]): void;
groupCollapsed(groupTitle?: string, ...optionalParams: any[]): void;
groupEnd(): void;
info(message?: any, ...optionalParams: any[]): void;
log(message?: any, ...optionalParams: any[]): void;
markTimeline(label?: string): void;
profile(reportName?: string): void;
profileEnd(reportName?: string): void;
table(...tabularData: any[]): void;
time(label?: string): void;
timeEnd(label?: string): void;
timeStamp(label?: string): void;
timeline(label?: string): void;
timelineEnd(label?: string): void;
trace(message?: any, ...optionalParams: any[]): void;
warn(message?: any, ...optionalParams: any[]): void;
}
declare var Console: {
prototype: Console;
new(): Console;
};
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;
};
/** The position and altitude of the device on Earth, as well as the accuracy with which these properties are calculated. */
interface Coordinates {
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;
}
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface CountQueuingStrategy extends QueuingStrategy {
highWaterMark: number;
size(chunk: any): 1;
}
declare var CountQueuingStrategy: {
prototype: CountQueuingStrategy;
new(options: { highWaterMark: number }): CountQueuingStrategy;
};
interface Credential {
readonly id: string;
readonly type: string;
}
declare var Credential: {
prototype: Credential;
new(): Credential;
};
interface CredentialsContainer {
create(options?: CredentialCreationOptions): Promise<Credential | null>;
get(options?: CredentialRequestOptions): Promise<Credential | null>;
preventSilentAccess(): Promise<void>;
store(credential: Credential): Promise<Credential>;
}
declare var CredentialsContainer: {
prototype: CredentialsContainer;
new(): CredentialsContainer;
};
/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
interface Crypto {
readonly subtle: SubtleCrypto;
getRandomValues<T extends Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null>(array: T): T;
}
declare var Crypto: {
prototype: Crypto;
new(): Crypto;
};
/** The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. */
interface CryptoKey {
readonly algorithm: KeyAlgorithm;
readonly extractable: boolean;
readonly type: KeyType;
readonly usages: KeyUsage[];
}
declare var CryptoKey: {
prototype: CryptoKey;
new(): CryptoKey;
};
/** The CryptoKeyPair dictionary of the Web Crypto API represents a key pair for an asymmetric cryptography algorithm, also known as a public-key algorithm. */
interface CryptoKeyPair {
privateKey: CryptoKey;
publicKey: CryptoKey;
}
declare var CryptoKeyPair: {
prototype: CryptoKeyPair;
new(): CryptoKeyPair;
};
interface CustomElementRegistry {
define(name: string, constructor: Function, options?: ElementDefinitionOptions): void;
get(name: string): any;
upgrade(root: Node): void;
whenDefined(name: string): Promise<void>;
}
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;
initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: T): void;
}
declare var CustomEvent: {
prototype: CustomEvent;
new<T>(typeArg: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};
/** An error object that contains an error name. */
interface DOMError {
readonly name: string;
toString(): string;
}
declare var DOMError: {
prototype: DOMError;
new(): DOMError;
};
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
interface DOMException {
readonly code: number;
readonly message: string;
readonly name: string;
readonly ABORT_ERR: number;
readonly DATA_CLONE_ERR: number;
readonly DOMSTRING_SIZE_ERR: number;
readonly HIERARCHY_REQUEST_ERR: number;
readonly INDEX_SIZE_ERR: number;
readonly INUSE_ATTRIBUTE_ERR: number;
readonly INVALID_ACCESS_ERR: number;
readonly INVALID_CHARACTER_ERR: number;
readonly INVALID_MODIFICATION_ERR: number;
readonly INVALID_NODE_TYPE_ERR: number;
readonly INVALID_STATE_ERR: number;
readonly NAMESPACE_ERR: number;
readonly NETWORK_ERR: number;
readonly NOT_FOUND_ERR: number;
readonly NOT_SUPPORTED_ERR: number;
readonly NO_DATA_ALLOWED_ERR: number;
readonly NO_MODIFICATION_ALLOWED_ERR: number;
readonly QUOTA_EXCEEDED_ERR: number;
readonly SECURITY_ERR: number;
readonly SYNTAX_ERR: number;
readonly TIMEOUT_ERR: number;
readonly TYPE_MISMATCH_ERR: number;
readonly URL_MISMATCH_ERR: number;
readonly VALIDATION_ERR: number;
readonly WRONG_DOCUMENT_ERR: number;
}
declare var DOMException: {
prototype: DOMException;
new(message?: string, name?: string): DOMException;
readonly ABORT_ERR: number;
readonly DATA_CLONE_ERR: number;
readonly DOMSTRING_SIZE_ERR: number;
readonly HIERARCHY_REQUEST_ERR: number;
readonly INDEX_SIZE_ERR: number;
readonly INUSE_ATTRIBUTE_ERR: number;
readonly INVALID_ACCESS_ERR: number;
readonly INVALID_CHARACTER_ERR: number;
readonly INVALID_MODIFICATION_ERR: number;
readonly INVALID_NODE_TYPE_ERR: number;
readonly INVALID_STATE_ERR: number;
readonly NAMESPACE_ERR: number;
readonly NETWORK_ERR: number;
readonly NOT_FOUND_ERR: number;
readonly NOT_SUPPORTED_ERR: number;
readonly NO_DATA_ALLOWED_ERR: number;
readonly NO_MODIFICATION_ALLOWED_ERR: number;
readonly QUOTA_EXCEEDED_ERR: number;
readonly SECURITY_ERR: number;
readonly SYNTAX_ERR: number;
readonly TIMEOUT_ERR: number;
readonly TYPE_MISMATCH_ERR: number;
readonly URL_MISMATCH_ERR: number;
readonly VALIDATION_ERR: number;
readonly WRONG_DOCUMENT_ERR: number;
};
/** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */
interface DOMImplementation {
createDocument(namespaceURI: string | null, qualifiedName: string | null, doctype: DocumentType | null): Document;
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 DOML2DeprecatedColorProperty {
color: string;
}
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;
}
declare var DOMMatrixReadOnly: {
prototype: DOMMatrixReadOnly;
new(init?: string | number[]): DOMMatrixReadOnly;
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
};
/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */
interface DOMParser {
parseFromString(str: string, type: SupportedType): 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;
};
interface DOMSettableTokenList extends DOMTokenList {
value: string;
}
declare var DOMSettableTokenList: {
prototype: DOMSettableTokenList;
new(): DOMSettableTokenList;
};
/** 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;
/**
* 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(oldToken: string, newToken: string): void;
/**
* 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;
};
interface DataCue extends TextTrackCue {
data: ArrayBuffer;
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: DataCue, 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: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var DataCue: {
prototype: DataCue;
new(): DataCue;
};
/** 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: string;
/**
* 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: string;
/**
* 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 Plain Unicode string.
*/
getAsString(callback: FunctionStringCallback | null): void;
webkitGetAsEntry(): any;
}
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;
item(index: number): DataTransferItem;
/**
* Removes the indexth entry in the drag data store.
*/
remove(index: number): void;
[name: number]: DataTransferItem;
}
declare var DataTransferItemList: {
prototype: DataTransferItemList;
new(): DataTransferItemList;
};
interface DeferredPermissionRequest {
readonly id: number;
readonly type: MSWebViewPermissionType;
readonly uri: string;
allow(): void;
deny(): void;
}
declare var DeferredPermissionRequest: {
prototype: DeferredPermissionRequest;
new(): DeferredPermissionRequest;
};
/** 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;
};
/** Provides information about the amount of acceleration the device is experiencing along all three axes. */
interface DeviceAcceleration {
readonly x: number | null;
readonly y: number | null;
readonly z: number | null;
}
declare var DeviceAcceleration: {
prototype: DeviceAcceleration;
new(): DeviceAcceleration;
};
/** The DeviceLightEvent provides web developers with information from photo sensors or similiar detectors about ambient light levels near the device. For example this may be useful to adjust the screen's brightness based on the current ambient light level in order to save energy or provide better readability. */
interface DeviceLightEvent extends Event {
readonly value: number;
}
declare var DeviceLightEvent: {
prototype: DeviceLightEvent;
new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
};
/** The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. */
interface DeviceMotionEvent extends Event {
readonly acceleration: DeviceMotionEventAcceleration | null;
readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
readonly interval: number;
readonly rotationRate: DeviceMotionEventRotationRate | null;
}
declare var DeviceMotionEvent: {
prototype: DeviceMotionEvent;
new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
};
interface DeviceMotionEventAcceleration {
readonly x: number | null;
readonly y: number | null;
readonly z: number | null;
}
interface DeviceMotionEventRotationRate {
readonly alpha: number | null;
readonly beta: number | null;
readonly gamma: number | null;
}
/** The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. */
interface DeviceOrientationEvent extends Event {
readonly absolute: boolean;
readonly alpha: number | null;
readonly beta: number | null;
readonly gamma: number | null;
}
declare var DeviceOrientationEvent: {
prototype: DeviceOrientationEvent;
new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
};
/** Provides information about the rate at which the device is rotating around all three axes. */
interface DeviceRotationRate {
readonly alpha: number | null;
readonly beta: number | null;
readonly gamma: number | null;
}
declare var DeviceRotationRate: {
prototype: DeviceRotationRate;
new(): DeviceRotationRate;
};
interface DhImportKeyParams extends Algorithm {
generator: Uint8Array;
prime: Uint8Array;
}
interface DhKeyAlgorithm extends KeyAlgorithm {
generator: Uint8Array;
prime: Uint8Array;
}
interface DhKeyDeriveParams extends Algorithm {
public: CryptoKey;
}
interface DhKeyGenParams extends Algorithm {
generator: Uint8Array;
prime: Uint8Array;
}
interface DocumentEventMap extends GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap {
"fullscreenchange": Event;
"fullscreenerror": Event;
"pointerlockchange": Event;
"pointerlockerror": Event;
"readystatechange": ProgressEvent<Document>;
"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, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
/**
* Sets or gets the URL for the current document.
*/
readonly URL: string;
/**
* Gets the object that has the focus when the parent document has focus.
*/
readonly activeElement: Element | null;
/**
* 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: HTMLCollectionOf<HTMLAppletElement>;
/**
* 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.
*/
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;
readonly defaultView: WindowProxy | 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.
*/
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.
*/
location: 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: ProgressEvent<Document>) => any) | null;
onvisibilitychange: ((this: Document, ev: Event) => any) | null;
/**
* Returns document's origin.
*/
readonly origin: string;
/**
* 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;
/**
* 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>(source: T): T;
/** @deprecated */
captureEvents(): void;
caretPositionFromPoint(x: number, y: number): CaretPosition | null;
/** @deprecated */
caretRangeFromPoint(x: number, y: number): Range;
/** @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: "ClipboardEvent"): ClipboardEvent;
createEvent(eventInterface: "CloseEvent"): CloseEvent;
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
createEvent(eventInterface: "CustomEvent"): CustomEvent;
createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
createEvent(eventInterface: "DragEvent"): DragEvent;
createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
createEvent(eventInterface: "Event"): Event;
createEvent(eventInterface: "Events"): Event;
createEvent(eventInterface: "FocusEvent"): FocusEvent;
createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent;
createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
createEvent(eventInterface: "InputEvent"): InputEvent;
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent;
createEvent(eventInterface: "MSGestureEvent"): MSGestureEvent;
createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;
createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
createEvent(eventInterface: "MSPointerEvent"): MSPointerEvent;
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent;
createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent;
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: "OverflowEvent"): OverflowEvent;
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent;
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: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent;
createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent;
createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent;
createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent;
createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
createEvent(eventInterface: "RTCStatsEvent"): RTCStatsEvent;
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;
createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;
createEvent(eventInterface: "SpeechRecognitionError"): SpeechRecognitionError;
createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;
createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
createEvent(eventInterface: "StorageEvent"): StorageEvent;
createEvent(eventInterface: "TextEvent"): TextEvent;
createEvent(eventInterface: "TouchEvent"): TouchEvent;
createEvent(eventInterface: "TrackEvent"): TrackEvent;
createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
createEvent(eventInterface: "UIEvent"): UIEvent;
createEvent(eventInterface: "UIEvents"): UIEvent;
createEvent(eventInterface: "VRDisplayEvent"): VRDisplayEvent;
createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ;
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.
* @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
*/
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.
* @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
*/
createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
/** @deprecated */
createTreeWalker(root: Node, whatToShow: number, filter: NodeFilter | null, entityReferenceExpansion?: boolean): TreeWalker;
/**
* Returns the element for the specified x coordinate and the specified y coordinate.
* @param x The x-offset
* @param y The y-offset
*/
elementFromPoint(x: number, y: number): Element | null;
elementsFromPoint(x: number, y: number): Element[];
/**
* Executes a command on the current document, current selection, or the given range.
* @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
* @param showUI Display the user interface, defaults to false.
* @param value Value to assign.
*/
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>;
exitPointerLock(): void;
getAnimations(): Animation[];
/**
* Returns a reference to the first object with the specified value of the ID or NAME attribute.
* @param elementId String that specifies the ID value. Case-insensitive.
*/
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(namespaceURI: string, 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;
/**
* 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>(importedNode: 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(url?: string, name?: string, features?: string, replace?: boolean): Document;
/**
* 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.
*/
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.
*/
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.
*/
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;
/**
* 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;
}
interface DocumentEvent {
createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
createEvent(eventInterface: "CloseEvent"): CloseEvent;
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
createEvent(eventInterface: "CustomEvent"): CustomEvent;
createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
createEvent(eventInterface: "DragEvent"): DragEvent;
createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
createEvent(eventInterface: "Event"): Event;
createEvent(eventInterface: "Events"): Event;
createEvent(eventInterface: "FocusEvent"): FocusEvent;
createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent;
createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
createEvent(eventInterface: "InputEvent"): InputEvent;
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent;
createEvent(eventInterface: "MSGestureEvent"): MSGestureEvent;
createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;
createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
createEvent(eventInterface: "MSPointerEvent"): MSPointerEvent;
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent;
createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent;
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: "OverflowEvent"): OverflowEvent;
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent;
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: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent;
createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent;
createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent;
createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent;
createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
createEvent(eventInterface: "RTCStatsEvent"): RTCStatsEvent;
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;
createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;
createEvent(eventInterface: "SpeechRecognitionError"): SpeechRecognitionError;
createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;
createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
createEvent(eventInterface: "StorageEvent"): StorageEvent;
createEvent(eventInterface: "TextEvent"): TextEvent;
createEvent(eventInterface: "TouchEvent"): TouchEvent;
createEvent(eventInterface: "TrackEvent"): TrackEvent;
createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
createEvent(eventInterface: "UIEvent"): UIEvent;
createEvent(eventInterface: "UIEvents"): UIEvent;
createEvent(eventInterface: "VRDisplayEvent"): VRDisplayEvent;
createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ;
createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
createEvent(eventInterface: "WheelEvent"): WheelEvent;
createEvent(eventInterface: string): Event;
}
/** 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 {
getElementById(elementId: string): HTMLElement | null;
}
declare var DocumentFragment: {
prototype: DocumentFragment;
new(): DocumentFragment;
};
interface DocumentOrShadowRoot {
readonly activeElement: Element | null;
/**
* Returns document's fullscreen element.
*/
readonly fullscreenElement: 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;
caretPositionFromPoint(x: number, y: number): CaretPosition | null;
/** @deprecated */
caretRangeFromPoint(x: number, y: number): Range;
elementFromPoint(x: number, y: number): Element | null;
elementsFromPoint(x: number, y: number): Element[];
getSelection(): Selection | null;
}
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 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;
}
/** 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 {
}
/** 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, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slotable {
readonly assignedSlot: HTMLSlotElement | null;
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;
/**
* 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>(selector: 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(name: string): Attr | null;
getAttributeNodeNS(namespaceURI: string, 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(namespaceURI: string, 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(position: InsertPosition, insertedElement: Element): Element | null;
insertAdjacentHTML(where: InsertPosition, html: string): void;
insertAdjacentText(where: InsertPosition, text: string): void;
/**
* Returns true if matching selectors against element's root yields element, and false otherwise.
*/
matches(selectors: string): boolean;
msGetRegionContent(): any;
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;
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;
inputMode: string;
readonly isContentEditable: boolean;
}
/** Events providing information related to errors in scripts or in files. */
interface ErrorEvent extends Event {
readonly colno: number;
readonly error: any;
readonly filename: string;
readonly lineno: number;
readonly message: string;
}
declare var ErrorEvent: {
prototype: ErrorEvent;
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};
/** An event which takes place in the DOM. */
interface Event {
/**
* Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
*/
readonly bubbles: boolean;
cancelBubble: boolean;
/**
* Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
*/
readonly cancelable: boolean;
/**
* Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
*/
readonly composed: boolean;
/**
* Returns the object whose event listener's callback is currently being invoked.
*/
readonly currentTarget: EventTarget | null;
/**
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
*/
readonly defaultPrevented: boolean;
/**
* Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
*/
readonly eventPhase: number;
/**
* Returns true if event was dispatched by the user agent, and false otherwise.
*/
readonly isTrusted: boolean;
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: number;
/**
* 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[];
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 EventListenerObject {
handleEvent(evt: 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, 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 \xA72.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.
*
* 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, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): 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;
};
interface ExtensionScriptApis {
extensionIdToShortId(extensionId: string): number;
fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void;
genericFunction(routerAddress: any, parameters?: string, callbackId?: number): void;
genericSynchronousFunction(functionId: number, parameters?: string): string;
genericWebRuntimeCallout(to: any, from: any, payload: string): void;
getExtensionId(): string;
registerGenericFunctionCallbackHandler(callbackHandler: Function): void;
registerGenericPersistentCallbackHandler(callbackHandler: Function): void;
registerWebRuntimeCallbackHandler(handler: Function): any;
}
declare var ExtensionScriptApis: {
prototype: ExtensionScriptApis;
new(): ExtensionScriptApis;
};
interface External {
/** @deprecated */
AddSearchProvider(): void;
/** @deprecated */
IsSearchProviderInstalled(): void;
}
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;
}
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;
};
/** 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 FocusNavigationEvent extends Event {
readonly navigationReason: NavigationReason;
readonly originHeight: number;
readonly originLeft: number;
readonly originTop: number;
readonly originWidth: number;
requestFocus(): void;
}
declare var FocusNavigationEvent: {
prototype: FocusNavigationEvent;
new(type: string, eventInitDict?: FocusNavigationEventInit): FocusNavigationEvent;
};
/** 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;
};
/** A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. */
interface GainNode extends AudioNode {
readonly gain: AudioParam;
}
declare var GainNode: {
prototype: GainNode;
new(context: BaseAudioContext, options?: GainOptions): GainNode;
};
/** This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. */
interface Gamepad {
readonly axes: ReadonlyArray<number>;
readonly buttons: ReadonlyArray<GamepadButton>;
readonly connected: boolean;
readonly hand: GamepadHand;
readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;
readonly id: string;
readonly index: number;
readonly mapping: GamepadMappingType;
readonly pose: GamepadPose | null;
readonly timestamp: number;
}
declare var Gamepad: {
prototype: Gamepad;
new(): Gamepad;
};
/** An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. */
interface GamepadButton {
readonly pressed: boolean;
readonly touched: boolean;
readonly value: number;
}
declare var GamepadButton: {
prototype: GamepadButton;
new(): GamepadButton;
};
/** This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to. */
interface GamepadEvent extends Event {
readonly gamepad: Gamepad;
}
declare var GamepadEvent: {
prototype: GamepadEvent;
new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;
};
/** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */
interface GamepadHapticActuator {
readonly type: GamepadHapticActuatorType;
pulse(value: number, duration: number): Promise<boolean>;
}
declare var GamepadHapticActuator: {
prototype: GamepadHapticActuator;
new(): GamepadHapticActuator;
};
/** This Gamepad API interface represents the pose of a WebVR controller at a given timestamp (which includes orientation, position, velocity, and acceleration information.) */
interface GamepadPose {
readonly angularAcceleration: Float32Array | null;
readonly angularVelocity: Float32Array | null;
readonly hasOrientation: boolean;
readonly hasPosition: boolean;
readonly linearAcceleration: Float32Array | null;
readonly linearVelocity: Float32Array | null;
readonly orientation: Float32Array | null;
readonly position: Float32Array | null;
}
declare var GamepadPose: {
prototype: GamepadPose;
new(): GamepadPose;
};
interface GenericTransformStream {
/**
* Returns a readable stream whose chunks are strings resulting from running encoding's decoder on the chunks written to writable.
*/
readonly readable: ReadableStream;
/**
* Returns a writable stream which accepts BufferSource chunks and runs them through encoding's decoder before making them available to readable.
*
* Typically this will be used via the pipeThrough() method on a ReadableStream source.
*
* \`\`\`
* var decoder = new TextDecoderStream(encoding);
* byteReadable
* .pipeThrough(decoder)
* .pipeTo(textWritable);
* \`\`\`
*
* If the error mode is "fatal" and encoding's decoder returns error, both readable and writable will be errored with a TypeError.
*/
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, options?: PositionOptions): void;
watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number;
}
interface GlobalEventHandlersEventMap {
"abort": UIEvent;
"animationcancel": AnimationEvent;
"animationend": AnimationEvent;
"animationiteration": AnimationEvent;
"animationstart": AnimationEvent;
"auxclick": MouseEvent;
"blur": FocusEvent;
"cancel": Event;
"canplay": Event;
"canplaythrough": Event;
"change": Event;
"click": MouseEvent;
"close": Event;
"contextmenu": MouseEvent;
"cuechange": Event;
"dblclick": MouseEvent;
"drag": DragEvent;
"dragend": DragEvent;
"dragenter": DragEvent;
"dragexit": Event;
"dragleave": DragEvent;
"dragover": DragEvent;
"dragstart": DragEvent;
"drop": DragEvent;
"durationchange": Event;
"emptied": Event;
"ended": Event;
"error": ErrorEvent;
"focus": FocusEvent;
"focusin": FocusEvent;
"focusout": FocusEvent;
"gotpointercapture": PointerEvent;
"input": Event;
"invalid": Event;
"keydown": KeyboardEvent;
"keypress": KeyboardEvent;
"keyup": KeyboardEvent;
"load": Event;
"loadeddata": Event;
"loadedmetadata": Event;
"loadend": ProgressEvent;
"loadstart": Event;
"lostpointercapture": PointerEvent;
"mousedown": MouseEvent;
"mouseenter": MouseEvent;
"mouseleave": MouseEvent;
"mousemove": MouseEvent;
"mouseout": MouseEvent;
"mouseover": MouseEvent;
"mouseup": MouseEvent;
"pause": Event;
"play": Event;
"playing": Event;
"pointercancel": PointerEvent;
"pointerdown": PointerEvent;
"pointerenter": PointerEvent;
"pointerleave": PointerEvent;
"pointermove": PointerEvent;
"pointerout": PointerEvent;
"pointerover": PointerEvent;
"pointerup": PointerEvent;
"progress": ProgressEvent;
"ratechange": Event;
"reset": Event;
"resize": UIEvent;
"scroll": Event;
"securitypolicyviolation": SecurityPolicyViolationEvent;
"seeked": Event;
"seeking": Event;
"select": Event;
"selectionchange": Event;
"selectstart": Event;
"stalled": Event;
"submit": Event;
"suspend": Event;
"timeupdate": Event;
"toggle": Event;
"touchcancel": TouchEvent;
"touchend": TouchEvent;
"touchmove": TouchEvent;
"touchstart": TouchEvent;
"transitioncancel": TransitionEvent;
"transitionend": TransitionEvent;
"transitionrun": TransitionEvent;
"transitionstart": TransitionEvent;
"volumechange": Event;
"waiting": Event;
"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;
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*/
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*/
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the left mouse button on the object
* @param ev The mouse event.
*/
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*/
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
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;
ondragexit: ((this: GlobalEventHandlers, ev: Event) => 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;
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.
*/
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;
onloadend: ((this: GlobalEventHandlers, ev: ProgressEvent) => 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;
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*/
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*/
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*/
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*/
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onsubmit: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs if the load operation has been intentionally halted.
* @param ev The event.
*/
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs to indicate the current playback position.
* @param ev The event.
*/
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
ontouchcancel: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
ontouchend: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
ontouchmove: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
ontouchstart: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
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;
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;
};
interface HTMLAppletElement extends HTMLElement {
/** @deprecated */
align: string;
/**
* Sets or retrieves a text alternative to the graphic.
*/
/** @deprecated */
alt: string;
/**
* Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
*/
/** @deprecated */
archive: string;
/** @deprecated */
code: string;
/**
* Sets or retrieves the URL of the component.
*/
/** @deprecated */
codeBase: string;
readonly form: HTMLFormElement | null;
/**
* Sets or retrieves the height of the object.
*/
/** @deprecated */
height: string;
/** @deprecated */
hspace: number;
/**
* Sets or retrieves the shape of the object.
*/
/** @deprecated */
name: string;
/** @deprecated */
object: string;
/** @deprecated */
vspace: number;
/** @deprecated */
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLAppletElement: {
prototype: HTMLAppletElement;
new(): HTMLAppletElement;
};
/** 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;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <basefont> elements. */
interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty {
/**
* Sets or retrieves the current typeface family.
*/
/** @deprecated */
face: string;
/**
* Sets or retrieves the font size of the object.
*/
/** @deprecated */
size: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBaseFontElement: {
prototype: HTMLBaseFontElement;
new(): HTMLBaseFontElement;
};
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;
bgProperties: string;
/** @deprecated */
link: string;
/** @deprecated */
noWrap: boolean;
/** @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 {
/**
* Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
*/
autofocus: boolean;
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;
/**
* Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
* @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
*/
getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
getContext(contextId: string, options?: any): RenderingContext | null;
toBlob(callback: BlobCallback, type?: string, quality?: any): void;
/**
* Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
* @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
*/
toDataURL(type?: string, quality?: any): string;
transferControlToOffscreen(): OffscreenCanvas;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLCanvasElement: {
prototype: HTMLCanvasElement;
new(): HTMLCanvasElement;
};
/** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */
interface HTMLCollectionBase {
/**
* Sets or retrieves the number of objects in a collection.
*/
readonly length: number;
/**
* Retrieves an object from various collections.
*/
item(index: number): Element | null;
[index: number]: Element;
}
interface HTMLCollection extends HTMLCollectionBase {
/**
* Retrieves a select object or an object from an options collection.
*/
namedItem(name: string): Element | null;
}
declare var HTMLCollection: {
prototype: HTMLCollection;
new(): HTMLCollection;
};
interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
item(index: number): T | null;
namedItem(name: string): T | null;
[index: number]: T;
}
/** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */
interface HTMLDListElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDListElement: {
prototype: HTMLDListElement;
new(): HTMLDListElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */
interface HTMLDataElement extends HTMLElement {
value: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDataElement: {
prototype: HTMLDataElement;
new(): HTMLDataElement;
};
/** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */
interface HTMLDataListElement extends HTMLElement {
readonly options: HTMLCollectionOf<HTMLOptionElement>;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDataListElement: {
prototype: HTMLDataListElement;
new(): HTMLDataListElement;
};
interface HTMLDetailsElement extends HTMLElement {
open: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDetailsElement: {
prototype: HTMLDetailsElement;
new(): HTMLDetailsElement;
};
interface HTMLDialogElement extends HTMLElement {
open: boolean;
returnValue: string;
close(returnValue?: string): void;
show(): void;
showModal(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDialogElement: {
prototype: HTMLDialogElement;
new(): HTMLDialogElement;
};
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;
}
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;
};
/** The HTMLDocument property of Window objects is an alias that browsers expose for the Document interface object. */
interface HTMLDocument extends Document {
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDocument: {
prototype: HTMLDocument;
new(): HTMLDocument;
};
interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap {
}
/** 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;
spellcheck: boolean;
title: string;
translate: boolean;
click(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLElement: {
prototype: HTMLElement;
new(): HTMLElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */
interface HTMLEmbedElement extends HTMLElement {
/** @deprecated */
align: string;
/**
* Sets or retrieves the height of the object.
*/
height: string;
/**
* Sets or retrieves the name of the object.
*/
/** @deprecated */
name: string;
/**
* Sets or retrieves a URL to be loaded by the object.
*/
src: string;
type: string;
/**
* Sets or retrieves the width of the object.
*/
width: string;
getSVGDocument(): Document | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLEmbedElement: {
prototype: HTMLEmbedElement;
new(): HTMLEmbedElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. */
interface HTMLFieldSetElement extends HTMLElement {
disabled: boolean;
readonly elements: HTMLCollection;
/**
* Retrieves a reference to the form that the object is embedded in.
*/
readonly form: HTMLFormElement | null;
name: string;
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. */
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;
}
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;
/**
* 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;
};
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;
}
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. */
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;
}
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 {
hash: string;
host: string;
hostname: string;
href: string;
readonly origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
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;
allowPaymentRequest: boolean;
/**
* Retrieves the document object of the page or frame.
*/
readonly contentDocument: Document | null;
/**
* Retrieves the object of the specified.
*/
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
*/
/** @deprecated */
frameBorder: string;
/**
* Sets or retrieves the height of the object.
*/
height: string;
/**
* Sets or retrieves a URI to a long description of the object.
*/
/** @deprecated */
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
*/
/** @deprecated */
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
*/
/** @deprecated */
marginWidth: string;
/**
* Sets or retrieves the frame name.
*/
name: string;
referrerPolicy: ReferrerPolicy;
readonly sandbox: DOMTokenList;
/**
* Sets or retrieves whether the frame can be scrolled.
*/
/** @deprecated */
scrolling: string;
/**
* Sets or retrieves a URL to be loaded by the object.
*/
src: string;
/**
* Sets or retrives the content of the page that is to contain.
*/
srcdoc: string;
/**
* Sets or retrieves the width of the object.
*/
width: string;
getSVGDocument(): Document | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLIFrameElement: {
prototype: HTMLIFrameElement;
new(): HTMLIFrameElement;
};
/** Provides special properties and methods for manipulating <img> elements. */
interface HTMLImageElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
*/
/** @deprecated */
align: string;
/**
* Sets or retrieves a text alternative to the graphic.
*/
alt: string;
/**
* Specifies the properties of a border drawn around an object.
*/
/** @deprecated */
border: string;
/**
* Retrieves whether the object is fully loaded.
*/
readonly complete: boolean;
crossOrigin: string | null;
readonly currentSrc: string;
decoding: "async" | "sync" | "auto";
/**
* Sets or retrieves the height of the object.
*/
height: number;
/**
* Sets or retrieves the width of the border to draw around the object.
*/
/** @deprecated */
hspace: number;
/**
* Sets or retrieves whether the image is a server-side image map.
*/
isMap: boolean;
/**
* Sets or retrieves 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;
/**
* Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
*/
autofocus: boolean;
/**
* 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;
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: string | 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;
/**
* 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, end: number, 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 {
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;
};
interface HTMLMarqueeElementEventMap extends HTMLElementEventMap {
"bounce": Event;
"finish": Event;
"start": Event;
}
/** Provides methods to manipulate <marquee> elements. */
interface HTMLMarqueeElement extends HTMLElement {
/** @deprecated */
behavior: string;
/** @deprecated */
bgColor: string;
/** @deprecated */
direction: string;
/** @deprecated */
height: string;
/** @deprecated */
hspace: number;
/** @deprecated */
loop: number;
/** @deprecated */
onbounce: ((this: HTMLMarqueeElement, ev: Event) => any) | null;
/** @deprecated */
onfinish: ((this: HTMLMarqueeElement, ev: Event) => any) | null;
/** @deprecated */
onstart: ((this: HTMLMarqueeElement, ev: Event) => any) | null;
/** @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 HTMLMarqueeElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMarqueeElement: {
prototype: HTMLMarqueeElement;
new(): HTMLMarqueeElement;
};
interface HTMLMediaElementEventMap extends HTMLElementEventMap {
"encrypted": MediaEncryptedEvent;
"msneedkey": Event;
"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 {
/**
* Returns an AudioTrackList object with the audio tracks for a given video element.
*/
readonly audioTracks: AudioTrackList;
/**
* 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;
/**
* Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming.
*/
readonly duration: number;
/**
* Gets information about whether the playback has ended or not.
*/
readonly ended: boolean;
/**
* Returns an object representing the current error state of the audio or video element.
*/
readonly error: MediaError | null;
/**
* Gets or sets a flag to specify whether playback should restart after it completes.
*/
loop: boolean;
readonly mediaKeys: MediaKeys | null;
/**
* Specifies the purpose of the audio or video media, such as background audio or alerts.
*/
msAudioCategory: string;
/**
* Specifies the output device id that the audio will be sent to.
*/
msAudioDeviceType: string;
readonly msGraphicsTrustStatus: MSGraphicsTrust;
/**
* Gets the MSMediaKeys object, which is used for decrypting media data, that is associated with this media element.
*/
/** @deprecated */
readonly msKeys: MSMediaKeys;
/**
* Gets or sets whether the DLNA PlayTo device is available.
*/
msPlayToDisabled: boolean;
/**
* Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.
*/
msPlayToPreferredSourceUri: string;
/**
* Gets or sets the primary DLNA PlayTo device.
*/
msPlayToPrimary: boolean;
/**
* Gets the source associated with the media element for use by the PlayToManager.
*/
readonly msPlayToSource: any;
/**
* Specifies whether or not to enable low-latency playback on the media element.
*/
msRealTime: boolean;
/**
* 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;
/** @deprecated */
onmsneedkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
/**
* Gets a flag that specifies whether playback is paused.
*/
readonly paused: boolean;
/**
* Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource.
*/
playbackRate: number;
/**
* Gets TimeRanges for the current media resource that has been played.
*/
readonly played: TimeRanges;
/**
* Gets or sets the current playback position, in seconds.
*/
preload: string;
readonly readyState: number;
/**
* 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: MediaStream | MediaSource | Blob | null;
readonly textTracks: TextTrackList;
readonly videoTracks: VideoTrackList;
/**
* 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;
/**
* Resets the audio or video object and loads a new media resource.
*/
load(): void;
/**
* Clears all effects from the media pipeline.
*/
msClearEffects(): void;
msGetAsCastingSource(): any;
/**
* Inserts the specified audio effect into media pipeline.
*/
msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;
/** @deprecated */
msSetMediaKeys(mediaKeys: MSMediaKeys): void;
/**
* Specifies the media protection manager for a given media pipeline.
*/
msSetMediaProtectionManager(mediaProtectionManager?: any): void;
/**
* Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not.
*/
pause(): void;
/**
* Loads and starts playback of a media resource.
*/
play(): Promise<void>;
setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
readonly HAVE_CURRENT_DATA: number;
readonly HAVE_ENOUGH_DATA: number;
readonly HAVE_FUTURE_DATA: number;
readonly HAVE_METADATA: number;
readonly HAVE_NOTHING: number;
readonly NETWORK_EMPTY: number;
readonly NETWORK_IDLE: number;
readonly NETWORK_LOADING: number;
readonly NETWORK_NO_SOURCE: number;
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMediaElement: {
prototype: HTMLMediaElement;
new(): HTMLMediaElement;
readonly HAVE_CURRENT_DATA: number;
readonly HAVE_ENOUGH_DATA: number;
readonly HAVE_FUTURE_DATA: number;
readonly HAVE_METADATA: number;
readonly HAVE_NOTHING: number;
readonly NETWORK_EMPTY: number;
readonly NETWORK_IDLE: number;
readonly NETWORK_LOADING: number;
readonly NETWORK_NO_SOURCE: number;
};
interface HTMLMenuElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMenuElement: {
prototype: HTMLMenuElement;
new(): HTMLMenuElement;
};
/** Contains descriptive metadata about a document. It\xA0inherits all of the properties and methods described in the HTMLElement interface. */
interface HTMLMetaElement extends HTMLElement {
/**
* Gets or sets meta-information to associate with httpEquiv or name.
*/
content: string;
/**
* Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.
*/
httpEquiv: string;
/**
* Sets or retrieves the value specified in the content attribute of the meta object.
*/
name: string;
/**
* Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
*/
/** @deprecated */
scheme: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMetaElement: {
prototype: HTMLMetaElement;
new(): HTMLMetaElement;
};
/** The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. */
interface HTMLMeterElement extends HTMLElement {
high: number;
readonly labels: NodeListOf<HTMLLabelElement>;
low: number;
max: number;
min: number;
optimum: number;
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMeterElement: {
prototype: HTMLMeterElement;
new(): HTMLMeterElement;
};
/** Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. */
interface HTMLModElement extends HTMLElement {
/**
* Sets or retrieves reference information about the object.
*/
cite: string;
/**
* Sets or retrieves the date and time of a modification to the object.
*/
dateTime: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLModElement: {
prototype: HTMLModElement;
new(): HTMLModElement;
};
/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */
interface HTMLOListElement extends HTMLElement {
/** @deprecated */
compact: boolean;
reversed: boolean;
/**
* The starting number.
*/
start: number;
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOListElement: {
prototype: HTMLOListElement;
new(): HTMLOListElement;
};
/** Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. */
interface HTMLObjectElement extends HTMLElement {
/** @deprecated */
align: string;
/**
* Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
*/
/** @deprecated */
archive: string;
/** @deprecated */
border: string;
/**
* Sets or retrieves the URL of the file containing the compiled Java class.
*/
/** @deprecated */
code: string;
/**
* Sets or retrieves the URL of the component.
*/
/** @deprecated */
codeBase: string;
/**
* Sets or retrieves the Internet media type for the code associated with the object.
*/
/** @deprecated */
codeType: string;
/**
* Retrieves the document object of the page or frame.
*/
readonly contentDocument: Document | null;
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves the URL that references the data of the object.
*/
data: string;
/** @deprecated */
declare: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*/
readonly form: HTMLFormElement | null;
/**
* Sets or retrieves the height of the object.
*/
height: string;
/** @deprecated */
hspace: number;
/**
* Sets or retrieves the name of the object.
*/
name: string;
/**
* Sets or retrieves a message to be displayed while an object is loading.
*/
/** @deprecated */
standby: string;
/**
* Sets or retrieves the MIME type of the object.
*/
type: string;
/**
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
*/
useMap: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*/
readonly validity: ValidityState;
/** @deprecated */
vspace: number;
/**
* Sets or retrieves the width of the object.
*/
width: string;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*/
readonly willValidate: boolean;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*/
checkValidity(): boolean;
getSVGDocument(): Document | null;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLObjectElement: {
prototype: HTMLObjectElement;
new(): HTMLObjectElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. */
interface HTMLOptGroupElement extends HTMLElement {
disabled: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*/
readonly form: HTMLFormElement | null;
/**
* Sets or retrieves a value that you can use to implement your own label functionality for the object.
*/
label: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOptGroupElement: {
prototype: HTMLOptGroupElement;
new(): HTMLOptGroupElement;
};
/** <option> elements and inherits all classes and methods of the HTMLElement interface. */
interface HTMLOptionElement extends HTMLElement {
/**
* Sets or retrieves the status of an option.
*/
defaultSelected: boolean;
disabled: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*/
readonly form: HTMLFormElement | null;
/**
* Sets or retrieves the ordinal position of an option in a list box.
*/
readonly index: number;
/**
* Sets or retrieves a value that you can use to implement your own label functionality for the object.
*/
label: string;
/**
* Sets or retrieves whether the option in the list box is the default item.
*/
selected: boolean;
/**
* Sets or retrieves the text string specified by the option tag.
*/
text: string;
/**
* Sets or retrieves the value which is returned to the server when the form control is submitted.
*/
value: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOptionElement: {
prototype: HTMLOptionElement;
new(): HTMLOptionElement;
};
/** HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select. */
interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
/**
* Returns the number of elements in the collection.
*
* When set to a smaller number, truncates the number of option elements in the corresponding container.
*
* When set to a greater number, adds new blank option elements to that container.
*/
length: number;
/**
* Returns the index of the first selected item, if any, or \u22121 if there is no selected item.
*
* Can be set, to change the selection.
*/
selectedIndex: number;
/**
* Inserts element before the node given by before.
*
* The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element.
*
* If before is omitted, null, or a number out of range, then element will be added at the end of the list.
*
* This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/**
* Removes the item with index index from the collection.
*/
remove(index: number): void;
}
declare var HTMLOptionsCollection: {
prototype: HTMLOptionsCollection;
new(): HTMLOptionsCollection;
};
interface HTMLOrSVGElement {
readonly dataset: DOMStringMap;
nonce?: string;
tabIndex: number;
blur(): void;
focus(options?: FocusOptions): void;
}
/** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */
interface HTMLOutputElement extends HTMLElement {
defaultValue: string;
readonly form: HTMLFormElement | null;
readonly htmlFor: DOMTokenList;
readonly labels: NodeListOf<HTMLLabelElement>;
name: string;
readonly type: string;
readonly validationMessage: string;
readonly validity: ValidityState;
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;
/**
* Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
*/
autofocus: boolean;
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;
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): Element | null;
/**
* Retrieves a select object or an object from an options collection.
* @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.
*/
namedItem(name: string): HTMLOptionElement | null;
/**
* Removes an element from the collection.
* @param index Number that specifies the zero-based index of the element to remove from the collection.
*/
remove(): void;
remove(index: number): void;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[name: number]: HTMLOptionElement | HTMLOptGroupElement;
}
declare var HTMLSelectElement: {
prototype: HTMLSelectElement;
new(): HTMLSelectElement;
};
interface HTMLSlotElement extends HTMLElement {
name: string;
assignedElements(options?: AssignedNodesOptions): Element[];
assignedNodes(options?: AssignedNodesOptions): Node[];
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSlotElement: {
prototype: HTMLSlotElement;
new(): HTMLSlotElement;
};
/** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */
interface HTMLSourceElement extends HTMLElement {
/**
* Gets or sets the intended media type of the media source.
*/
media: string;
sizes: string;
/**
* The address or URL of the a media resource that is to be considered.
*/
src: string;
srcset: string;
/**
* Gets or sets the MIME type of a media resource.
*/
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSourceElement: {
prototype: HTMLSourceElement;
new(): HTMLSourceElement;
};
/** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
interface HTMLSpanElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSpanElement: {
prototype: HTMLSpanElement;
new(): HTMLSpanElement;
};
/** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */
interface HTMLStyleElement extends HTMLElement, LinkStyle {
/**
* Sets or retrieves the media type.
*/
media: string;
/**
* Retrieves the CSS language in which the style sheet is written.
*/
/** @deprecated */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLStyleElement: {
prototype: HTMLStyleElement;
new(): HTMLStyleElement;
};
/** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */
interface HTMLTableCaptionElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the caption or legend.
*/
/** @deprecated */
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableCaptionElement: {
prototype: HTMLTableCaptionElement;
new(): HTMLTableCaptionElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document. */
interface HTMLTableCellElement extends HTMLElement {
/**
* Sets or retrieves abbreviated text for the object.
*/
abbr: string;
/**
* Sets or retrieves how the object is aligned with adjacent text.
*/
/** @deprecated */
align: string;
/**
* Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
*/
/** @deprecated */
axis: string;
/** @deprecated */
bgColor: string;
/**
* Retrieves the position of the object in the cells collection of a row.
*/
readonly cellIndex: number;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/**
* Sets or retrieves the number columns in the table that the object should span.
*/
colSpan: number;
/**
* Sets or retrieves a list of header cells that provide information for the object.
*/
headers: string;
/**
* Sets or retrieves the height of the object.
*/
/** @deprecated */
height: string;
/**
* Sets or retrieves whether the browser automatically performs wordwrap.
*/
/** @deprecated */
noWrap: boolean;
/**
* Sets or retrieves how many rows in a table the cell should span.
*/
rowSpan: number;
/**
* Sets or retrieves the group of cells in a table to which the object's information applies.
*/
scope: string;
/** @deprecated */
vAlign: string;
/**
* Sets or retrieves the width of the object.
*/
/** @deprecated */
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableCellElement: {
prototype: HTMLTableCellElement;
new(): HTMLTableCellElement;
};
/** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */
interface HTMLTableColElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the object relative to the display or table.
*/
/** @deprecated */
align: string;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/**
* Sets or retrieves the number of columns in the group.
*/
span: number;
/** @deprecated */
vAlign: string;
/**
* Sets or retrieves the width of the object.
*/
/** @deprecated */
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableColElement: {
prototype: HTMLTableColElement;
new(): HTMLTableColElement;
};
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;
}
declare var HTMLTableDataCellElement: {
prototype: HTMLTableDataCellElement;
new(): HTMLTableDataCellElement;
};
/** 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;
};
interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
scope: string;
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;
}
declare var HTMLTableHeaderCellElement: {
prototype: HTMLTableHeaderCellElement;
new(): HTMLTableHeaderCellElement;
};
/** 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<HTMLTableDataCellElement | HTMLTableHeaderCellElement>;
/** @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): HTMLTableDataCellElement;
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 {
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;
/**
* Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
*/
autofocus: boolean;
/**
* 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: string;
/**
* 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, end: number, 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;
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 {
"MSVideoFormatChanged": Event;
"MSVideoFrameStepCompleted": Event;
"MSVideoOptimalLayoutChanged": Event;
}
/** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */
interface HTMLVideoElement extends HTMLMediaElement {
/**
* Gets or sets the height of the video element.
*/
height: number;
msHorizontalMirror: boolean;
readonly msIsLayoutOptimalForPlayback: boolean;
readonly msIsStereo3D: boolean;
msStereo3DPackingMode: string;
msStereo3DRenderMode: string;
msZoom: boolean;
onMSVideoFormatChanged: ((this: HTMLVideoElement, ev: Event) => any) | null;
onMSVideoFrameStepCompleted: ((this: HTMLVideoElement, ev: Event) => any) | null;
onMSVideoOptimalLayoutChanged: ((this: HTMLVideoElement, ev: Event) => any) | null;
/**
* 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;
readonly webkitDisplayingFullscreen: boolean;
readonly webkitSupportsFullscreen: boolean;
/**
* Gets or sets the width of the video element.
*/
width: number;
getVideoPlaybackQuality(): VideoPlaybackQuality;
msFrameStep(forward: boolean): void;
msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;
msSetVideoRectangle(left: number, top: number, right: number, bottom: number): void;
webkitEnterFullScreen(): void;
webkitEnterFullscreen(): void;
webkitExitFullScreen(): void;
webkitExitFullscreen(): void;
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 {
readonly newURL: string;
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, title: string, url?: string | null): void;
replaceState(data: any, title: string, url?: string | null): void;
}
declare var History: {
prototype: History;
new(): History;
};
interface HkdfCtrParams extends Algorithm {
context: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
hash: string | Algorithm;
label: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
}
interface IDBArrayKey extends Array<IDBValidKey> {
}
/** 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;
/**
* 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, optionalParameters?: 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;
};
interface IDBEnvironment {
readonly indexedDB: IDBFactory;
}
/** 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;
/**
* 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(key?: 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(key: IDBValidKey | IDBKeyRange): IDBRequest<any | undefined>;
/**
* 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(key: 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(key?: 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(key: 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 | undefined>;
/**
* 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;
/**
* 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;
/**
* 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 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 ImageBitmapOptions {
colorSpaceConversion?: "none" | "default";
imageOrientation?: "none" | "flipY";
premultiplyAlpha?: "none" | "premultiply" | "default";
resizeHeight?: number;
resizeQuality?: "pixelated" | "low" | "medium" | "high";
resizeWidth?: number;
}
interface ImageBitmapRenderingContext {
/**
* Returns the canvas element that the context is bound to.
*/
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
/**
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
*/
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
declare var ImageBitmapRenderingContext: {
prototype: ImageBitmapRenderingContext;
new(): ImageBitmapRenderingContext;
};
/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
interface ImageData {
/**
* 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(width: number, height: number): ImageData;
new(array: Uint8ClampedArray, width: number, height?: number): ImageData;
};
interface InnerHTML {
innerHTML: string;
}
interface InputDeviceInfo extends MediaDeviceInfo {
getCapabilities(): MediaTrackCapabilities;
}
declare var InputDeviceInfo: {
prototype: InputDeviceInfo;
new(): InputDeviceInfo;
};
interface InputEvent extends UIEvent {
readonly data: string | null;
readonly inputType: string;
readonly isComposing: boolean;
}
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 | 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: number;
}
declare var IntersectionObserverEntry: {
prototype: IntersectionObserverEntry;
new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;
};
/** 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 */
char: string;
/** @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;
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;
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: StyleSheet | null;
}
interface ListeningStateChangedEvent extends Event {
readonly label: string;
readonly state: ListeningState;
}
declare var ListeningStateChangedEvent: {
prototype: ListeningStateChangedEvent;
new(): ListeningStateChangedEvent;
};
/** 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;
/**
* 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): void;
/**
* Reloads the current page.
*/
reload(): void;
/** @deprecated */
reload(forcedReload: boolean): void;
/**
* Removes the current page from the session history and navigates to the given URL.
*/
replace(url: string): void;
}
declare var Location: {
prototype: Location;
new(): Location;
};
interface MSAssertion {
readonly id: string;
readonly type: MSCredentialType;
}
declare var MSAssertion: {
prototype: MSAssertion;
new(): MSAssertion;
};
interface MSBlobBuilder {
append(data: any, endings?: string): void;
getBlob(contentType?: string): Blob;
}
declare var MSBlobBuilder: {
prototype: MSBlobBuilder;
new(): MSBlobBuilder;
};
interface MSFIDOCredentialAssertion extends MSAssertion {
readonly algorithm: string | Algorithm;
readonly attestation: any;
readonly publicKey: string;
readonly transportHints: MSTransportType[];
}
declare var MSFIDOCredentialAssertion: {
prototype: MSFIDOCredentialAssertion;
new(): MSFIDOCredentialAssertion;
};
interface MSFIDOSignature {
readonly authnrData: string;
readonly clientData: string;
readonly signature: string;
}
declare var MSFIDOSignature: {
prototype: MSFIDOSignature;
new(): MSFIDOSignature;
};
interface MSFIDOSignatureAssertion extends MSAssertion {
readonly signature: MSFIDOSignature;
}
declare var MSFIDOSignatureAssertion: {
prototype: MSFIDOSignatureAssertion;
new(): MSFIDOSignatureAssertion;
};
interface MSFileSaver {
msSaveBlob(blob: any, defaultName?: string): boolean;
msSaveOrOpenBlob(blob: any, defaultName?: string): boolean;
}
interface MSGesture {
target: Element;
addPointer(pointerId: number): void;
stop(): void;
}
declare var MSGesture: {
prototype: MSGesture;
new(): MSGesture;
};
/** The MSGestureEvent is a proprietary interface specific to Internet Explorer and Microsoft Edge which represents events that occur due to touch gestures. Events using this interface include MSGestureStart, MSGestureEnd, MSGestureTap, MSGestureHold, MSGestureChange, and MSInertiaStart. */
interface MSGestureEvent extends UIEvent {
readonly clientX: number;
readonly clientY: number;
readonly expansion: number;
readonly gestureObject: any;
readonly hwTimestamp: number;
readonly offsetX: number;
readonly offsetY: number;
readonly rotation: number;
readonly scale: number;
readonly screenX: number;
readonly screenY: number;
readonly translationX: number;
readonly translationY: number;
readonly velocityAngular: number;
readonly velocityExpansion: number;
readonly velocityX: number;
readonly velocityY: number;
initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: number, translationXArg: number, translationYArg: number, scaleArg: number, expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: number, velocityExpansionArg: number, velocityAngularArg: number, hwTimestampArg: number): void;
readonly MSGESTURE_FLAG_BEGIN: number;
readonly MSGESTURE_FLAG_CANCEL: number;
readonly MSGESTURE_FLAG_END: number;
readonly MSGESTURE_FLAG_INERTIA: number;
readonly MSGESTURE_FLAG_NONE: number;
}
declare var MSGestureEvent: {
prototype: MSGestureEvent;
new(): MSGestureEvent;
readonly MSGESTURE_FLAG_BEGIN: number;
readonly MSGESTURE_FLAG_CANCEL: number;
readonly MSGESTURE_FLAG_END: number;
readonly MSGESTURE_FLAG_INERTIA: number;
readonly MSGESTURE_FLAG_NONE: number;
};
/** The msGraphicsTrust() constructor returns an object that provides properties for info on protected video playback. */
interface MSGraphicsTrust {
readonly constrictionActive: boolean;
readonly status: string;
}
declare var MSGraphicsTrust: {
prototype: MSGraphicsTrust;
new(): MSGraphicsTrust;
};
interface MSInputMethodContextEventMap {
"MSCandidateWindowHide": Event;
"MSCandidateWindowShow": Event;
"MSCandidateWindowUpdate": Event;
}
interface MSInputMethodContext extends EventTarget {
readonly compositionEndOffset: number;
readonly compositionStartOffset: number;
oncandidatewindowhide: ((this: MSInputMethodContext, ev: Event) => any) | null;
oncandidatewindowshow: ((this: MSInputMethodContext, ev: Event) => any) | null;
oncandidatewindowupdate: ((this: MSInputMethodContext, ev: Event) => any) | null;
readonly target: HTMLElement;
getCandidateWindowClientRect(): ClientRect;
getCompositionAlternatives(): string[];
hasComposition(): boolean;
isCandidateWindowVisible(): boolean;
addEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MSInputMethodContext: {
prototype: MSInputMethodContext;
new(): MSInputMethodContext;
};
interface MSMediaKeyError {
readonly code: number;
readonly systemCode: number;
readonly MS_MEDIA_KEYERR_CLIENT: number;
readonly MS_MEDIA_KEYERR_DOMAIN: number;
readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
readonly MS_MEDIA_KEYERR_OUTPUT: number;
readonly MS_MEDIA_KEYERR_SERVICE: number;
readonly MS_MEDIA_KEYERR_UNKNOWN: number;
}
declare var MSMediaKeyError: {
prototype: MSMediaKeyError;
new(): MSMediaKeyError;
readonly MS_MEDIA_KEYERR_CLIENT: number;
readonly MS_MEDIA_KEYERR_DOMAIN: number;
readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
readonly MS_MEDIA_KEYERR_OUTPUT: number;
readonly MS_MEDIA_KEYERR_SERVICE: number;
readonly MS_MEDIA_KEYERR_UNKNOWN: number;
};
interface MSMediaKeyMessageEvent extends Event {
readonly destinationURL: string | null;
readonly message: Uint8Array;
}
declare var MSMediaKeyMessageEvent: {
prototype: MSMediaKeyMessageEvent;
new(): MSMediaKeyMessageEvent;
};
interface MSMediaKeyNeededEvent extends Event {
readonly initData: Uint8Array | null;
}
declare var MSMediaKeyNeededEvent: {
prototype: MSMediaKeyNeededEvent;
new(): MSMediaKeyNeededEvent;
};
interface MSMediaKeySession extends EventTarget {
readonly error: MSMediaKeyError | null;
readonly keySystem: string;
readonly sessionId: string;
close(): void;
update(key: Uint8Array): void;
}
declare var MSMediaKeySession: {
prototype: MSMediaKeySession;
new(): MSMediaKeySession;
};
interface MSMediaKeys {
readonly keySystem: string;
createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array | null): MSMediaKeySession;
}
declare var MSMediaKeys: {
prototype: MSMediaKeys;
new(keySystem: string): MSMediaKeys;
isTypeSupported(keySystem: string, type?: string | null): boolean;
isTypeSupportedWithFeatures(keySystem: string, type?: string | null): string;
};
interface MSNavigatorDoNotTrack {
confirmSiteSpecificTrackingException(args: ConfirmSiteSpecificExceptionsInformation): boolean;
confirmWebWideTrackingException(args: ExceptionInformation): boolean;
removeSiteSpecificTrackingException(args: ExceptionInformation): void;
removeWebWideTrackingException(args: ExceptionInformation): void;
storeSiteSpecificTrackingException(args: StoreSiteSpecificExceptionsInformation): void;
storeWebWideTrackingException(args: StoreExceptionsInformation): void;
}
interface MSPointerEvent extends MouseEvent {
readonly currentPoint: any;
readonly height: number;
readonly hwTimestamp: number;
readonly intermediatePoints: any;
readonly isPrimary: boolean;
readonly pointerId: number;
readonly pointerType: any;
readonly pressure: number;
readonly rotation: number;
readonly tiltX: number;
readonly tiltY: number;
readonly width: number;
getCurrentPoint(element: Element): void;
getIntermediatePoints(element: Element): void;
initPointerEvent(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, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void;
}
declare var MSPointerEvent: {
prototype: MSPointerEvent;
new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent;
};
interface MSStream {
readonly type: string;
msClose(): void;
msDetachStream(): any;
}
declare var MSStream: {
prototype: MSStream;
new(): MSStream;
};
/** The MediaDevicesInfo interface contains information that describes a single media input or output device. */
interface MediaDeviceInfo {
readonly deviceId: string;
readonly groupId: string;
readonly kind: MediaDeviceKind;
readonly label: string;
toJSON(): any;
}
declare var MediaDeviceInfo: {
prototype: MediaDeviceInfo;
new(): MediaDeviceInfo;
};
interface MediaDevicesEventMap {
"devicechange": Event;
}
/** Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data. */
interface MediaDevices extends EventTarget {
ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
enumerateDevices(): Promise<MediaDeviceInfo[]>;
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 msExtendedCode: number;
readonly MEDIA_ERR_ABORTED: number;
readonly MEDIA_ERR_DECODE: number;
readonly MEDIA_ERR_NETWORK: number;
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
readonly MS_MEDIA_ERR_ENCRYPTED: 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;
readonly MS_MEDIA_ERR_ENCRYPTED: number;
};
/** This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session. */
interface MediaKeyMessageEvent extends Event {
readonly message: ArrayBuffer;
readonly messageType: MediaKeyMessageType;
}
declare var MediaKeyMessageEvent: {
prototype: MediaKeyMessageEvent;
new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;
};
interface MediaKeySessionEventMap {
"keystatuseschange": Event;
"message": MessageEvent;
}
/** This EncryptedMediaExtensions API interface represents a\xA0context for message exchange with a content decryption module (CDM). */
interface MediaKeySession extends EventTarget {
readonly closed: Promise<void>;
readonly expiration: number;
readonly keyStatuses: MediaKeyStatusMap;
onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
onmessage: ((this: MediaKeySession, ev: MessageEvent) => any) | null;
readonly sessionId: string;
close(): Promise<void>;
generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
load(sessionId: string): Promise<boolean>;
remove(): Promise<void>;
update(response: BufferSource): Promise<void>;
addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaKeySession: {
prototype: MediaKeySession;
new(): MediaKeySession;
};
/** This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs. */
interface MediaKeyStatusMap {
readonly size: number;
get(keyId: BufferSource): any;
has(keyId: BufferSource): boolean;
forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;
}
declare var MediaKeyStatusMap: {
prototype: MediaKeyStatusMap;
new(): MediaKeyStatusMap;
};
/** This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method. */
interface MediaKeySystemAccess {
readonly keySystem: string;
createMediaKeys(): Promise<MediaKeys>;
getConfiguration(): MediaKeySystemConfiguration;
}
declare var MediaKeySystemAccess: {
prototype: MediaKeySystemAccess;
new(): MediaKeySystemAccess;
};
/** This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback. */
interface MediaKeys {
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
}
declare var MediaKeys: {
prototype: MediaKeys;
new(): MediaKeys;
};
interface MediaList {
readonly length: number;
mediaText: string;
appendMedium(medium: string): void;
deleteMedium(medium: string): void;
item(index: number): string | null;
toString(): number;
[index: number]: string;
}
declare var MediaList: {
prototype: MediaList;
new(): MediaList;
};
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(listener: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
/** @deprecated */
removeListener(listener: ((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 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 MediaStreamError {
readonly constraintName: string | null;
readonly message: string | null;
readonly name: string;
}
declare var MediaStreamError: {
prototype: MediaStreamError;
new(): MediaStreamError;
};
interface MediaStreamErrorEvent extends Event {
readonly error: MediaStreamError | null;
}
declare var MediaStreamErrorEvent: {
prototype: MediaStreamErrorEvent;
new(typeArg: string, eventInitDict?: MediaStreamErrorEventInit): MediaStreamErrorEvent;
};
/** Events that occurs in relation to a MediaStream. Two events of this type can be thrown: addstream and removestream. */
interface MediaStreamEvent extends Event {
readonly stream: MediaStream | null;
}
declare var MediaStreamEvent: {
prototype: MediaStreamEvent;
new(type: string, eventInitDict: MediaStreamEventInit): MediaStreamEvent;
};
interface MediaStreamTrackEventMap {
"ended": Event;
"isolationchange": 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 {
enabled: boolean;
readonly id: string;
readonly isolated: boolean;
readonly kind: string;
readonly label: string;
readonly muted: boolean;
onended: ((this: MediaStreamTrack, ev: Event) => any) | null;
onisolationchange: ((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;
};
interface MediaStreamTrackAudioSourceNode extends AudioNode {
}
declare var MediaStreamTrackAudioSourceNode: {
prototype: MediaStreamTrackAudioSourceNode;
new(context: AudioContext, options: MediaStreamTrackAudioSourceOptions): MediaStreamTrackAudioSourceNode;
};
/** 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 extends Event {
/**
* Returns the data of the message.
*/
readonly data: any;
/**
* 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;
}
declare var MessageEvent: {
prototype: MessageEvent;
new(type: string, eventInitDict?: MessageEventInit): MessageEvent;
};
interface MessagePortEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */
interface MessagePort extends EventTarget {
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
/**
* Disconnects the port, so that it is no longer active.
*/
close(): void;
/**
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: PostMessageOptions): void;
/**
* Begins dispatching messages received on the port.
*/
start(): void;
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MessagePort: {
prototype: MessagePort;
new(): MessagePort;
};
/** Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object. */
interface MimeType {
/**
* Returns the MIME type's description.
*/
readonly description: string;
/**
* Returns the Plugin object that implements this MIME type.
*/
readonly enabledPlugin: Plugin;
/**
* Returns the MIME type's typical file extensions, in a comma-separated list.
*/
readonly suffixes: string;
/**
* Returns the MIME type.
*/
readonly type: string;
}
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. */
interface MimeTypeArray {
readonly length: number;
item(index: number): MimeType | null;
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
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;
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. */
interface MutationEvent extends Event {
readonly attrChange: number;
readonly attrName: string;
readonly newValue: string;
readonly prevValue: string;
readonly relatedNode: Node;
initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, attrNameArg: string, attrChangeArg: number): void;
readonly ADDITION: number;
readonly MODIFICATION: number;
readonly REMOVAL: number;
}
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;
};
interface NavigationPreloadManager {
disable(): Promise<void>;
enable(): Promise<void>;
getState(): Promise<NavigationPreloadState>;
setHeaderValue(value: string): Promise<void>;
}
declare var NavigationPreloadManager: {
prototype: NavigationPreloadManager;
new(): NavigationPreloadManager;
};
/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
interface Navigator extends MSFileSaver, MSNavigatorDoNotTrack, NavigatorAutomationInformation, NavigatorBeacon, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
readonly activeVRDisplays: ReadonlyArray<VRDisplay>;
readonly clipboard: Clipboard;
readonly credentials: CredentialsContainer;
readonly doNotTrack: string | null;
readonly geolocation: Geolocation;
readonly maxTouchPoints: number;
readonly mediaDevices: MediaDevices;
readonly msManipulationViewsEnabled: boolean;
readonly msMaxTouchPoints: number;
readonly msPointerEnabled: boolean;
readonly permissions: Permissions;
readonly pointerEnabled: boolean;
readonly serviceWorker: ServiceWorkerContainer;
getGamepads(): (Gamepad | null)[];
getUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;
getVRDisplays(): Promise<VRDisplay[]>;
msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
vibrate(pattern: number | number[]): boolean;
}
declare var Navigator: {
prototype: Navigator;
new(): Navigator;
};
interface NavigatorAutomationInformation {
readonly webdriver: boolean;
}
interface NavigatorBeacon {
sendBeacon(url: string, data?: Blob | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | FormData | string | null): boolean;
}
interface NavigatorConcurrentHardware {
readonly hardwareConcurrency: number;
}
interface NavigatorContentUtils {
registerProtocolHandler(scheme: string, url: string, title: string): void;
unregisterProtocolHandler(scheme: string, url: string): void;
}
interface NavigatorCookies {
readonly cookieEnabled: boolean;
}
interface NavigatorID {
readonly appCodeName: string;
readonly appName: string;
readonly appVersion: string;
readonly oscpu: string;
readonly platform: string;
readonly product: string;
readonly productSub: string;
readonly userAgent: string;
readonly vendor: string;
readonly vendorSub: string;
taintEnabled(): boolean;
}
interface NavigatorLanguage {
readonly language: string;
readonly languages: ReadonlyArray<string>;
}
interface NavigatorOnLine {
readonly onLine: boolean;
}
interface NavigatorPlugins {
readonly mimeTypes: MimeTypeArray;
readonly plugins: PluginArray;
javaEnabled(): boolean;
}
interface NavigatorStorage {
readonly storage: StorageManager;
}
/** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */
interface Node extends EventTarget {
/**
* Returns node's node document's document base URL.
*/
readonly baseURI: string;
/**
* Returns the children.
*/
readonly childNodes: NodeListOf<ChildNode>;
/**
* Returns the first child.
*/
readonly firstChild: ChildNode | null;
/**
* Returns true if node is connected and false otherwise.
*/
readonly isConnected: boolean;
/**
* Returns the last child.
*/
readonly lastChild: ChildNode | null;
/** @deprecated */
readonly namespaceURI: string | 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: Node & ParentNode | null;
/**
* Returns the previous sibling.
*/
readonly previousSibling: Node | null;
textContent: string | null;
appendChild<T extends Node>(newChild: 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>(newChild: T, refChild: 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>(oldChild: T): T;
replaceChild<T extends Node>(newChild: Node, oldChild: 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 object used to filter the nodes in a NodeIterator or TreeWalker. They don't know anything about the DOM or how to traverse nodes; they just know how to evaluate a single node against the provided filter. */
interface NodeFilter {
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;
};
/** 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;
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 {
length: number;
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 actions: ReadonlyArray<NotificationAction>;
readonly badge: string;
readonly body: string;
readonly data: any;
readonly dir: NotificationDirection;
readonly icon: string;
readonly image: 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 renotify: boolean;
readonly requireInteraction: boolean;
readonly silent: boolean;
readonly tag: string;
readonly timestamp: number;
readonly title: string;
readonly vibrate: ReadonlyArray<number>;
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 maxActions: number;
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 {
}
/** 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;
}
/** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */
interface OfflineAudioCompletionEvent extends Event {
readonly renderedBuffer: AudioBuffer;
}
declare var OfflineAudioCompletionEvent: {
prototype: OfflineAudioCompletionEvent;
new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;
};
interface OfflineAudioContextEventMap extends BaseAudioContextEventMap {
"complete": OfflineAudioCompletionEvent;
}
/** An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer. */
interface OfflineAudioContext extends BaseAudioContext {
readonly length: number;
oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;
resume(): Promise<void>;
startRendering(): Promise<AudioBuffer>;
suspend(suspendTime: number): Promise<void>;
addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OfflineAudioContext: {
prototype: OfflineAudioContext;
new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;
new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
};
interface OffscreenCanvas extends EventTarget {
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*/
height: number;
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*/
width: number;
/**
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
*
* The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
*/
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
/**
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
*
* This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
*
* Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
*/
getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): OffscreenCanvasRenderingContext2D | null;
getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
/**
* Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.
*/
transferToImageBitmap(): ImageBitmap;
}
declare var OffscreenCanvas: {
prototype: OffscreenCanvas;
new(width: number, height: number): OffscreenCanvas;
};
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
commit(): void;
}
declare var OffscreenCanvasRenderingContext2D: {
prototype: OffscreenCanvasRenderingContext2D;
new(): OffscreenCanvasRenderingContext2D;
};
/** The OscillatorNode\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 {
constraint: string;
}
declare var OverconstrainedError: {
prototype: OverconstrainedError;
new(): OverconstrainedError;
};
interface OverflowEvent extends UIEvent {
readonly horizontalOverflow: boolean;
readonly orient: number;
readonly verticalOverflow: boolean;
readonly BOTH: number;
readonly HORIZONTAL: number;
readonly VERTICAL: number;
}
declare var OverflowEvent: {
prototype: OverflowEvent;
new(): OverflowEvent;
readonly BOTH: number;
readonly HORIZONTAL: number;
readonly VERTICAL: number;
};
/** The PageTransitionEvent is fired when a document is being loaded or unloaded. */
interface PageTransitionEvent extends Event {
readonly persisted: boolean;
}
declare var PageTransitionEvent: {
prototype: PageTransitionEvent;
new(): 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 {
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>;
}
/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */
interface Path2D extends CanvasPath {
/**
* Adds to the path the path given by the argument.
*/
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}
declare var Path2D: {
prototype: Path2D;
new(path?: Path2D | string): Path2D;
};
/** This Payment Request API interface is used to store shipping or payment address information. */
interface PaymentAddress {
readonly addressLine: string[];
readonly city: string;
readonly country: string;
readonly dependentLocality: string;
readonly languageCode: string;
readonly organization: string;
readonly phone: string;
readonly postalCode: string;
readonly recipient: string;
readonly region: string;
readonly sortingCode: string;
toJSON(): any;
}
declare var PaymentAddress: {
prototype: PaymentAddress;
new(): PaymentAddress;
};
interface PaymentRequestEventMap {
"shippingaddresschange": Event;
"shippingoptionchange": Event;
}
/** This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user. */
interface PaymentRequest extends EventTarget {
readonly id: string;
onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null;
onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null;
readonly shippingAddress: PaymentAddress | null;
readonly shippingOption: string | null;
readonly shippingType: PaymentShippingType | null;
abort(): Promise<void>;
canMakePayment(): Promise<boolean>;
show(): Promise<PaymentResponse>;
addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PaymentRequest: {
prototype: PaymentRequest;
new(methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions): PaymentRequest;
};
/** This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action. */
interface PaymentRequestUpdateEvent extends Event {
updateWith(detailsPromise: PaymentDetailsUpdate | Promise<PaymentDetailsUpdate>): void;
}
declare var PaymentRequestUpdateEvent: {
prototype: PaymentRequestUpdateEvent;
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
};
/** This Payment Request API interface is returned after a user selects a payment method and approves a payment request. */
interface PaymentResponse {
readonly details: any;
readonly methodName: string;
readonly payerEmail: string | null;
readonly payerName: string | null;
readonly payerPhone: string | null;
readonly requestId: string;
readonly shippingAddress: PaymentAddress | null;
readonly shippingOption: string | null;
complete(result?: PaymentComplete): Promise<void>;
toJSON(): any;
}
declare var PaymentResponse: {
prototype: PaymentResponse;
new(): PaymentResponse;
};
interface PerfWidgetExternal {
readonly activeNetworkRequestCount: number;
readonly averageFrameTime: number;
readonly averagePaintTime: number;
readonly extraInformationEnabled: boolean;
readonly independentRenderingEnabled: boolean;
readonly irDisablingContentString: string;
readonly irStatusAvailable: boolean;
readonly maxCpuSpeed: number;
readonly paintRequestsPerSecond: number;
readonly performanceCounter: number;
readonly performanceCounterFrequency: number;
addEventListener(eventType: string, callback: Function): void;
getMemoryUsage(): number;
getProcessCpuUsage(): number;
getRecentCpuUsage(last: number | null): any;
getRecentFrames(last: number | null): any;
getRecentMemoryUsage(last: number | null): any;
getRecentPaintRequests(last: number | null): any;
removeEventListener(eventType: string, callback: Function): void;
repositionWindow(x: number, y: number): void;
resizeWindow(width: number, height: number): void;
}
declare var PerfWidgetExternal: {
prototype: PerfWidgetExternal;
new(): PerfWidgetExternal;
};
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: number;
/** @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): void;
measure(measureName: string, startMark?: string, endMark?: string): void;
now(): number;
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: number;
readonly entryType: string;
readonly name: string;
readonly startTime: number;
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 {
}
declare var PerformanceMark: {
prototype: PerformanceMark;
new(): 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 {
}
declare var PerformanceMeasure: {
prototype: PerformanceMeasure;
new(): PerformanceMeasure;
};
/** The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done. */
interface PerformanceNavigation {
readonly redirectCount: number;
readonly type: number;
toJSON(): any;
readonly TYPE_BACK_FORWARD: number;
readonly TYPE_NAVIGATE: number;
readonly TYPE_RELOAD: number;
readonly TYPE_RESERVED: number;
}
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: number;
readonly domContentLoadedEventEnd: number;
readonly domContentLoadedEventStart: number;
readonly domInteractive: number;
readonly loadEventEnd: number;
readonly loadEventStart: number;
readonly redirectCount: number;
readonly type: NavigationType;
readonly unloadEventEnd: number;
readonly unloadEventStart: number;
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;
};
/** 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: number;
readonly connectStart: number;
readonly decodedBodySize: number;
readonly domainLookupEnd: number;
readonly domainLookupStart: number;
readonly encodedBodySize: number;
readonly fetchStart: number;
readonly initiatorType: string;
readonly nextHopProtocol: string;
readonly redirectEnd: number;
readonly redirectStart: number;
readonly requestStart: number;
readonly responseEnd: number;
readonly responseStart: number;
readonly secureConnectionStart: number;
readonly transferSize: number;
readonly workerStart: number;
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
/** 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. */
interface PerformanceTiming {
readonly connectEnd: number;
readonly connectStart: number;
readonly domComplete: number;
readonly domContentLoadedEventEnd: number;
readonly domContentLoadedEventStart: number;
readonly domInteractive: number;
readonly domLoading: number;
readonly domainLookupEnd: number;
readonly domainLookupStart: number;
readonly fetchStart: number;
readonly loadEventEnd: number;
readonly loadEventStart: number;
readonly navigationStart: number;
readonly redirectEnd: number;
readonly redirectStart: number;
readonly requestStart: number;
readonly responseEnd: number;
readonly responseStart: number;
readonly secureConnectionStart: number;
readonly unloadEventEnd: number;
readonly unloadEventStart: number;
toJSON(): any;
}
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 PermissionRequest extends DeferredPermissionRequest {
readonly state: MSWebViewPermissionState;
defer(): void;
}
declare var PermissionRequest: {
prototype: PermissionRequest;
new(): PermissionRequest;
};
interface PermissionRequestedEvent extends Event {
readonly permissionRequest: PermissionRequest;
}
declare var PermissionRequestedEvent: {
prototype: PermissionRequestedEvent;
new(): PermissionRequestedEvent;
};
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 | DevicePermissionDescriptor | MidiPermissionDescriptor | PushPermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
prototype: Permissions;
new(): Permissions;
};
/** Provides information about a browser plugin. */
interface Plugin {
/**
* Returns the plugin's description.
*/
readonly description: string;
/**
* Returns the plugin library's filename, if applicable on the current platform.
*/
readonly filename: string;
/**
* Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
*/
readonly length: number;
/**
* Returns the plugin's name.
*/
readonly name: string;
/**
* Returns the specified MimeType object.
*/
item(index: number): MimeType | null;
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
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. */
interface PluginArray {
readonly length: number;
item(index: number): Plugin | null;
namedItem(name: string): Plugin | null;
refresh(reload?: boolean): void;
[index: number]: Plugin;
}
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;
}
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 {
readonly state: any;
}
declare var PopStateEvent: {
prototype: PopStateEvent;
new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
};
/** The position of the concerned device at a given time. The position, represented by a Coordinates object, comprehends the 2D position of the device, on a spheroid representing the Earth, but also its altitude and its speed. */
interface Position {
readonly coords: Coordinates;
readonly timestamp: number;
}
/** The reason of an error occurring when using the geolocating device. */
interface PositionError {
readonly code: number;
readonly message: string;
readonly PERMISSION_DENIED: number;
readonly POSITION_UNAVAILABLE: number;
readonly TIMEOUT: number;
}
/** 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 {
readonly target: string;
}
declare var ProcessingInstruction: {
prototype: ProcessingInstruction;
new(): ProcessingInstruction;
};
/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
readonly lengthComputable: boolean;
readonly loaded: number;
readonly target: T | null;
readonly total: number;
}
declare var ProgressEvent: {
prototype: ProgressEvent;
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};
interface PromiseRejectionEvent extends Event {
readonly promise: Promise<any>;
readonly reason: any;
}
declare var PromiseRejectionEvent: {
prototype: PromiseRejectionEvent;
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
};
interface PublicKeyCredential extends Credential {
readonly rawId: ArrayBuffer;
readonly response: AuthenticatorResponse;
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
}
declare var PublicKeyCredential: {
prototype: PublicKeyCredential;
new(): PublicKeyCredential;
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
};
/** This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. */
interface PushManager {
getSubscription(): Promise<PushSubscription | null>;
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
declare var PushManager: {
prototype: PushManager;
new(): PushManager;
readonly supportedContentEncodings: ReadonlyArray<string>;
};
/** This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service. */
interface PushSubscription {
readonly endpoint: string;
readonly expirationTime: number | null;
readonly options: PushSubscriptionOptions;
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
toJSON(): PushSubscriptionJSON;
unsubscribe(): Promise<boolean>;
}
declare var PushSubscription: {
prototype: PushSubscription;
new(): PushSubscription;
};
interface PushSubscriptionOptions {
readonly applicationServerKey: ArrayBuffer | null;
readonly userVisibleOnly: boolean;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
interface RTCCertificate {
readonly expires: number;
getFingerprints(): RTCDtlsFingerprint[];
}
declare var RTCCertificate: {
prototype: RTCCertificate;
new(): RTCCertificate;
getSupportedAlgorithms(): AlgorithmIdentifier[];
};
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": RTCErrorEvent;
"message": MessageEvent;
"open": Event;
}
interface RTCDataChannel extends EventTarget {
binaryType: string;
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: RTCErrorEvent) => any) | null;
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
readonly ordered: boolean;
readonly priority: RTCPriorityType;
readonly protocol: string;
readonly readyState: RTCDataChannelState;
close(): void;
send(data: string): void;
send(data: Blob): void;
send(data: ArrayBuffer): void;
send(data: ArrayBufferView): void;
addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDataChannel: {
prototype: RTCDataChannel;
new(): RTCDataChannel;
};
interface RTCDataChannelEvent extends Event {
readonly channel: RTCDataChannel;
}
declare var RTCDataChannelEvent: {
prototype: RTCDataChannelEvent;
new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;
};
interface RTCDtlsTransportEventMap {
"error": RTCErrorEvent;
"statechange": Event;
}
interface RTCDtlsTransport extends EventTarget {
onerror: ((this: RTCDtlsTransport, ev: RTCErrorEvent) => any) | null;
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
readonly state: RTCDtlsTransportState;
readonly transport: RTCIceTransport;
getRemoteCertificates(): ArrayBuffer[];
addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDtlsTransport: {
prototype: RTCDtlsTransport;
new(): RTCDtlsTransport;
};
interface RTCDtlsTransportStateChangedEvent extends Event {
readonly state: RTCDtlsTransportState;
}
declare var RTCDtlsTransportStateChangedEvent: {
prototype: RTCDtlsTransportStateChangedEvent;
new(): RTCDtlsTransportStateChangedEvent;
};
interface RTCDtmfSenderEventMap {
"tonechange": RTCDTMFToneChangeEvent;
}
interface RTCDtmfSender extends EventTarget {
readonly canInsertDTMF: boolean;
readonly duration: number;
readonly interToneGap: number;
ontonechange: ((this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any) | null;
readonly sender: RTCRtpSender;
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(sender: RTCRtpSender): RTCDtmfSender;
};
interface RTCError extends Error {
errorDetail: string;
httpRequestStatusCode: number;
message: string;
name: string;
receivedAlert: number | null;
sctpCauseCode: number;
sdpLineNumber: number;
sentAlert: number | null;
}
declare var RTCError: {
prototype: RTCError;
new(errorDetail?: string, message?: string): RTCError;
};
interface RTCErrorEvent extends Event {
readonly error: RTCError | null;
}
declare var RTCErrorEvent: {
prototype: RTCErrorEvent;
new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;
};
/** The RTCIceCandidate interface\u2014part of the WebRTC API\u2014represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */
interface RTCIceCandidate {
readonly candidate: string;
readonly component: RTCIceComponent | null;
readonly foundation: string | null;
readonly ip: string | null;
readonly port: number | null;
readonly priority: number | null;
readonly protocol: RTCIceProtocol | null;
readonly relatedAddress: string | null;
readonly relatedPort: number | null;
readonly sdpMLineIndex: number | null;
readonly sdpMid: string | null;
readonly tcpType: RTCIceTcpCandidateType | null;
readonly type: RTCIceCandidateType | null;
readonly usernameFragment: string | null;
toJSON(): RTCIceCandidateInit;
}
declare var RTCIceCandidate: {
prototype: RTCIceCandidate;
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
};
interface RTCIceCandidatePairChangedEvent extends Event {
readonly pair: RTCIceCandidatePair;
}
declare var RTCIceCandidatePairChangedEvent: {
prototype: RTCIceCandidatePairChangedEvent;
new(): RTCIceCandidatePairChangedEvent;
};
interface RTCIceGathererEventMap {
"error": Event;
"localcandidate": RTCIceGathererEvent;
}
interface RTCIceGatherer extends RTCStatsProvider {
readonly component: RTCIceComponent;
onerror: ((this: RTCIceGatherer, ev: Event) => any) | null;
onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) | null;
createAssociatedGatherer(): RTCIceGatherer;
getLocalCandidates(): RTCIceCandidateDictionary[];
getLocalParameters(): RTCIceParameters;
addEventListener<K extends keyof RTCIceGathererEventMap>(type: K, listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCIceGathererEventMap>(type: K, listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCIceGatherer: {
prototype: RTCIceGatherer;
new(options: RTCIceGatherOptions): RTCIceGatherer;
};
interface RTCIceGathererEvent extends Event {
readonly candidate: RTCIceCandidateDictionary | RTCIceCandidateComplete;
}
declare var RTCIceGathererEvent: {
prototype: RTCIceGathererEvent;
new(): RTCIceGathererEvent;
};
interface RTCIceTransportEventMap {
"gatheringstatechange": Event;
"selectedcandidatepairchange": Event;
"statechange": Event;
}
/** Provides access to information about the ICE transport layer over which the data is being sent and received. */
interface RTCIceTransport extends EventTarget {
readonly component: RTCIceComponent;
readonly gatheringState: RTCIceGathererState;
ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;
onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
readonly role: RTCIceRole;
readonly state: RTCIceTransportState;
getLocalCandidates(): RTCIceCandidate[];
getLocalParameters(): RTCIceParameters | null;
getRemoteCandidates(): RTCIceCandidate[];
getRemoteParameters(): RTCIceParameters | null;
getSelectedCandidatePair(): RTCIceCandidatePair | null;
addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCIceTransport: {
prototype: RTCIceTransport;
new(): RTCIceTransport;
};
interface RTCIceTransportStateChangedEvent extends Event {
readonly state: RTCIceTransportState;
}
declare var RTCIceTransportStateChangedEvent: {
prototype: RTCIceTransportStateChangedEvent;
new(): RTCIceTransportStateChangedEvent;
};
interface RTCIdentityAssertion {
idp: string;
name: string;
}
declare var RTCIdentityAssertion: {
prototype: RTCIdentityAssertion;
new(idp: string, name: string): RTCIdentityAssertion;
};
interface RTCPeerConnectionEventMap {
"connectionstatechange": Event;
"datachannel": RTCDataChannelEvent;
"icecandidate": RTCPeerConnectionIceEvent;
"icecandidateerror": RTCPeerConnectionIceErrorEvent;
"iceconnectionstatechange": Event;
"icegatheringstatechange": Event;
"negotiationneeded": Event;
"signalingstatechange": Event;
"statsended": RTCStatsEvent;
"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 idpErrorInfo: string | null;
readonly idpLoginUrl: string | null;
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: RTCPeerConnectionIceErrorEvent) => 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;
onstatsended: ((this: RTCPeerConnection, ev: RTCStatsEvent) => any) | null;
ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
readonly peerIdentity: Promise<RTCIdentityAssertion>;
readonly pendingLocalDescription: RTCSessionDescription | null;
readonly pendingRemoteDescription: RTCSessionDescription | null;
readonly remoteDescription: RTCSessionDescription | null;
readonly sctp: RTCSctpTransport | null;
readonly signalingState: RTCSignalingState;
addIceCandidate(candidate: RTCIceCandidateInit | RTCIceCandidate): Promise<void>;
addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
close(): void;
createAnswer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
getConfiguration(): RTCConfiguration;
getIdentityAssertion(): Promise<string>;
getReceivers(): RTCRtpReceiver[];
getSenders(): RTCRtpSender[];
getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
getTransceivers(): RTCRtpTransceiver[];
removeTrack(sender: RTCRtpSender): void;
setConfiguration(configuration: RTCConfiguration): void;
setIdentityProvider(provider: string, options?: RTCIdentityProviderOptions): void;
setLocalDescription(description: RTCSessionDescriptionInit): Promise<void>;
setRemoteDescription(description: RTCSessionDescriptionInit): 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>;
getDefaultIceServers(): RTCIceServer[];
};
interface RTCPeerConnectionIceErrorEvent extends Event {
readonly errorCode: number;
readonly errorText: string;
readonly hostCandidate: string;
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;
readonly url: string | 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 rtcpTransport: RTCDtlsTransport | null;
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 rtcpTransport: RTCDtlsTransport | 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;
readonly stopped: boolean;
setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
stop(): void;
}
declare var RTCRtpTransceiver: {
prototype: RTCRtpTransceiver;
new(): RTCRtpTransceiver;
};
interface RTCSctpTransportEventMap {
"statechange": Event;
}
interface RTCSctpTransport {
readonly maxChannels: number | null;
readonly maxMessageSize: number;
onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
readonly state: RTCSctpTransportState;
readonly transport: RTCDtlsTransport;
addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCSctpTransport: {
prototype: RTCSctpTransport;
new(): RTCSctpTransport;
};
/** One end of a connection\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 RTCSrtpSdesTransportEventMap {
"error": Event;
}
interface RTCSrtpSdesTransport extends EventTarget {
onerror: ((this: RTCSrtpSdesTransport, ev: Event) => any) | null;
readonly transport: RTCIceTransport;
addEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCSrtpSdesTransport: {
prototype: RTCSrtpSdesTransport;
new(transport: RTCIceTransport, encryptParameters: RTCSrtpSdesParameters, decryptParameters: RTCSrtpSdesParameters): RTCSrtpSdesTransport;
getLocalParameters(): RTCSrtpSdesParameters[];
};
interface RTCSsrcConflictEvent extends Event {
readonly ssrc: number;
}
declare var RTCSsrcConflictEvent: {
prototype: RTCSsrcConflictEvent;
new(): RTCSsrcConflictEvent;
};
interface RTCStatsEvent extends Event {
readonly report: RTCStatsReport;
}
declare var RTCStatsEvent: {
prototype: RTCStatsEvent;
new(type: string, eventInitDict: RTCStatsEventInit): RTCStatsEvent;
};
interface RTCStatsProvider extends EventTarget {
getStats(): Promise<RTCStatsReport>;
msGetStats(): Promise<RTCStatsReport>;
}
declare var RTCStatsProvider: {
prototype: RTCStatsProvider;
new(): RTCStatsProvider;
};
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;
};
interface RandomSource {
getRandomValues<T extends Int8Array | Uint8ClampedArray | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array>(array: T): T;
}
declare var RandomSource: {
prototype: RandomSource;
new(): RandomSource;
};
/** 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;
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;
};
interface ReadableByteStreamController {
readonly byobRequest: ReadableStreamBYOBRequest | undefined;
readonly desiredSize: number | null;
close(): void;
enqueue(chunk: ArrayBufferView): void;
error(error?: any): void;
}
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
interface ReadableStream<R = any> {
readonly locked: boolean;
cancel(reason?: any): Promise<void>;
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(): ReadableStreamDefaultReader<R>;
pipeThrough<T>({ writable, readable }: { writable: WritableStream<R>, readable: ReadableStream<T> }, options?: PipeOptions): ReadableStream<T>;
pipeTo(dest: WritableStream<R>, options?: PipeOptions): Promise<void>;
tee(): [ReadableStream<R>, ReadableStream<R>];
}
declare var ReadableStream: {
prototype: ReadableStream;
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number, size?: undefined }): ReadableStream<Uint8Array>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};
interface ReadableStreamBYOBReader {
readonly closed: Promise<void>;
cancel(reason?: any): Promise<void>;
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
releaseLock(): void;
}
interface ReadableStreamBYOBRequest {
readonly view: ArrayBufferView;
respond(bytesWritten: number): void;
respondWithNewView(view: ArrayBufferView): void;
}
interface ReadableStreamDefaultController<R = any> {
readonly desiredSize: number | null;
close(): void;
enqueue(chunk: R): void;
error(error?: any): void;
}
interface ReadableStreamDefaultReader<R = any> {
readonly closed: Promise<void>;
cancel(reason?: any): Promise<void>;
read(): Promise<ReadableStreamReadResult<R>>;
releaseLock(): void;
}
interface ReadableStreamReadResult<T> {
done: boolean;
value: T;
}
interface ReadableStreamReader<R = any> {
cancel(): Promise<void>;
read(): Promise<ReadableStreamReadResult<R>>;
releaseLock(): void;
}
declare var ReadableStreamReader: {
prototype: ReadableStreamReader;
new(): ReadableStreamReader;
};
/** 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 is for a history navigation (a.k.a. back-foward navigation).
*/
readonly isHistoryNavigation: boolean;
/**
* Returns a boolean indicating whether or not request is for a reload navigation.
*/
readonly isReloadNavigation: boolean;
/**
* 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 trailer: Promise<Headers>;
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, status?: number): Response;
};
/** Provides access to the properties of <a> element, as well as methods to manipulate them. */
interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
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 {
readonly targetElement: SVGElement;
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;
};
interface SVGCursorElement extends SVGElement {
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCursorElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCursorElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGCursorElement: {
prototype: SVGCursorElement;
new(): SVGCursorElement;
};
/** Corresponds to the <defs> element. */
interface SVGDefsElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGDefsElement: {
prototype: SVGDefsElement;
new(): SVGDefsElement;
};
/** Corresponds to the <desc> element. */
interface SVGDescElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGDescElement: {
prototype: SVGDescElement;
new(): SVGDescElement;
};
interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap {
}
/** 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, SVGElementInstance {
/** @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;
};
interface SVGElementInstance extends EventTarget {
readonly correspondingElement: SVGElement;
readonly correspondingUseElement: SVGUseElement;
}
declare var SVGElementInstance: {
prototype: SVGElementInstance;
new(): SVGElementInstance;
};
interface SVGElementInstanceList {
/** @deprecated */
readonly length: number;
/** @deprecated */
item(index: number): SVGElementInstance;
}
declare var SVGElementInstanceList: {
prototype: SVGElementInstanceList;
new(): SVGElementInstanceList;
};
/** 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 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 SVGGraphicsElement {
/** @deprecated */
readonly pathSegList: SVGPathSegList;
/** @deprecated */
createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs;
/** @deprecated */
createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel;
/** @deprecated */
createSVGPathSegClosePath(): SVGPathSegClosePath;
/** @deprecated */
createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs;
/** @deprecated */
createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicRel;
/** @deprecated */
createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothAbs;
/** @deprecated */
createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothRel;
/** @deprecated */
createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticAbs;
/** @deprecated */
createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticRel;
/** @deprecated */
createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothAbs;
/** @deprecated */
createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothRel;
/** @deprecated */
createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs;
/** @deprecated */
createSVGPathSegLinetoHorizontalAbs(x: number): SVGPathSegLinetoHorizontalAbs;
/** @deprecated */
createSVGPathSegLinetoHorizontalRel(x: number): SVGPathSegLinetoHorizontalRel;
/** @deprecated */
createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel;
/** @deprecated */
createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs;
/** @deprecated */
createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel;
/** @deprecated */
createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs;
/** @deprecated */
createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel;
/** @deprecated */
getPathSegAtLength(distance: number): number;
getPointAtLength(distance: number): SVGPoint;
getTotalLength(): number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPathElement: {
prototype: SVGPathElement;
new(): SVGPathElement;
};
interface SVGPathSeg {
readonly pathSegType: number;
readonly pathSegTypeAsLetter: string;
readonly PATHSEG_ARC_ABS: number;
readonly PATHSEG_ARC_REL: number;
readonly PATHSEG_CLOSEPATH: number;
readonly PATHSEG_CURVETO_CUBIC_ABS: number;
readonly PATHSEG_CURVETO_CUBIC_REL: number;
readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
readonly PATHSEG_LINETO_ABS: number;
readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
readonly PATHSEG_LINETO_REL: number;
readonly PATHSEG_LINETO_VERTICAL_ABS: number;
readonly PATHSEG_LINETO_VERTICAL_REL: number;
readonly PATHSEG_MOVETO_ABS: number;
readonly PATHSEG_MOVETO_REL: number;
readonly PATHSEG_UNKNOWN: number;
}
declare var SVGPathSeg: {
prototype: SVGPathSeg;
new(): SVGPathSeg;
readonly PATHSEG_ARC_ABS: number;
readonly PATHSEG_ARC_REL: number;
readonly PATHSEG_CLOSEPATH: number;
readonly PATHSEG_CURVETO_CUBIC_ABS: number;
readonly PATHSEG_CURVETO_CUBIC_REL: number;
readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
readonly PATHSEG_LINETO_ABS: number;
readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
readonly PATHSEG_LINETO_REL: number;
readonly PATHSEG_LINETO_VERTICAL_ABS: number;
readonly PATHSEG_LINETO_VERTICAL_REL: number;
readonly PATHSEG_MOVETO_ABS: number;
readonly PATHSEG_MOVETO_REL: number;
readonly PATHSEG_UNKNOWN: number;
};
interface SVGPathSegArcAbs extends SVGPathSeg {
angle: number;
largeArcFlag: boolean;
r1: number;
r2: number;
sweepFlag: boolean;
x: number;
y: number;
}
declare var SVGPathSegArcAbs: {
prototype: SVGPathSegArcAbs;
new(): SVGPathSegArcAbs;
};
interface SVGPathSegArcRel extends SVGPathSeg {
angle: number;
largeArcFlag: boolean;
r1: number;
r2: number;
sweepFlag: boolean;
x: number;
y: number;
}
declare var SVGPathSegArcRel: {
prototype: SVGPathSegArcRel;
new(): SVGPathSegArcRel;
};
interface SVGPathSegClosePath extends SVGPathSeg {
}
declare var SVGPathSegClosePath: {
prototype: SVGPathSegClosePath;
new(): SVGPathSegClosePath;
};
interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg {
x: number;
x1: number;
x2: number;
y: number;
y1: number;
y2: number;
}
declare var SVGPathSegCurvetoCubicAbs: {
prototype: SVGPathSegCurvetoCubicAbs;
new(): SVGPathSegCurvetoCubicAbs;
};
interface SVGPathSegCurvetoCubicRel extends SVGPathSeg {
x: number;
x1: number;
x2: number;
y: number;
y1: number;
y2: number;
}
declare var SVGPathSegCurvetoCubicRel: {
prototype: SVGPathSegCurvetoCubicRel;
new(): SVGPathSegCurvetoCubicRel;
};
interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg {
x: number;
x2: number;
y: number;
y2: number;
}
declare var SVGPathSegCurvetoCubicSmoothAbs: {
prototype: SVGPathSegCurvetoCubicSmoothAbs;
new(): SVGPathSegCurvetoCubicSmoothAbs;
};
interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg {
x: number;
x2: number;
y: number;
y2: number;
}
declare var SVGPathSegCurvetoCubicSmoothRel: {
prototype: SVGPathSegCurvetoCubicSmoothRel;
new(): SVGPathSegCurvetoCubicSmoothRel;
};
interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg {
x: number;
x1: number;
y: number;
y1: number;
}
declare var SVGPathSegCurvetoQuadraticAbs: {
prototype: SVGPathSegCurvetoQuadraticAbs;
new(): SVGPathSegCurvetoQuadraticAbs;
};
interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {
x: number;
x1: number;
y: number;
y1: number;
}
declare var SVGPathSegCurvetoQuadraticRel: {
prototype: SVGPathSegCurvetoQuadraticRel;
new(): SVGPathSegCurvetoQuadraticRel;
};
interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg {
x: number;
y: number;
}
declare var SVGPathSegCurvetoQuadraticSmoothAbs: {
prototype: SVGPathSegCurvetoQuadraticSmoothAbs;
new(): SVGPathSegCurvetoQuadraticSmoothAbs;
};
interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg {
x: number;
y: number;
}
declare var SVGPathSegCurvetoQuadraticSmoothRel: {
prototype: SVGPathSegCurvetoQuadraticSmoothRel;
new(): SVGPathSegCurvetoQuadraticSmoothRel;
};
interface SVGPathSegLinetoAbs extends SVGPathSeg {
x: number;
y: number;
}
declare var SVGPathSegLinetoAbs: {
prototype: SVGPathSegLinetoAbs;
new(): SVGPathSegLinetoAbs;
};
interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg {
x: number;
}
declare var SVGPathSegLinetoHorizontalAbs: {
prototype: SVGPathSegLinetoHorizontalAbs;
new(): SVGPathSegLinetoHorizontalAbs;
};
interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg {
x: number;
}
declare var SVGPathSegLinetoHorizontalRel: {
prototype: SVGPathSegLinetoHorizontalRel;
new(): SVGPathSegLinetoHorizontalRel;
};
interface SVGPathSegLinetoRel extends SVGPathSeg {
x: number;
y: number;
}
declare var SVGPathSegLinetoRel: {
prototype: SVGPathSegLinetoRel;
new(): SVGPathSegLinetoRel;
};
interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg {
y: number;
}
declare var SVGPathSegLinetoVerticalAbs: {
prototype: SVGPathSegLinetoVerticalAbs;
new(): SVGPathSegLinetoVerticalAbs;
};
interface SVGPathSegLinetoVerticalRel extends SVGPathSeg {
y: number;
}
declare var SVGPathSegLinetoVerticalRel: {
prototype: SVGPathSegLinetoVerticalRel;
new(): SVGPathSegLinetoVerticalRel;
};
interface SVGPathSegList {
readonly numberOfItems: number;
appendItem(newItem: SVGPathSeg): SVGPathSeg;
clear(): void;
getItem(index: number): SVGPathSeg;
initialize(newItem: SVGPathSeg): SVGPathSeg;
insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg;
removeItem(index: number): SVGPathSeg;
replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg;
}
declare var SVGPathSegList: {
prototype: SVGPathSegList;
new(): SVGPathSegList;
};
interface SVGPathSegMovetoAbs extends SVGPathSeg {
x: number;
y: number;
}
declare var SVGPathSegMovetoAbs: {
prototype: SVGPathSegMovetoAbs;
new(): SVGPathSegMovetoAbs;
};
interface SVGPathSegMovetoRel extends SVGPathSeg {
x: number;
y: number;
}
declare var SVGPathSegMovetoRel: {
prototype: SVGPathSegMovetoRel;
new(): SVGPathSegMovetoRel;
};
/** Corresponds to the <pattern> element. */
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGTests, 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 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 {
"SVGUnload": Event;
"SVGZoom": SVGZoomEvent;
}
/** 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, DocumentEvent, SVGFitToViewBox, SVGZoomAndPan {
/** @deprecated */
contentScriptType: string;
/** @deprecated */
contentStyleType: string;
currentScale: number;
readonly currentTranslate: SVGPoint;
readonly height: SVGAnimatedLength;
onunload: ((this: SVGSVGElement, ev: Event) => any) | null;
onzoom: ((this: SVGSVGElement, ev: SVGZoomEvent) => any) | null;
/** @deprecated */
readonly pixelUnitToMillimeterX: number;
/** @deprecated */
readonly pixelUnitToMillimeterY: number;
/** @deprecated */
readonly screenPixelToMillimeterX: number;
/** @deprecated */
readonly screenPixelToMillimeterY: number;
/** @deprecated */
readonly viewport: SVGRect;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
animationsPaused(): boolean;
checkEnclosure(element: SVGElement, rect: SVGRect): boolean;
checkIntersection(element: SVGElement, rect: SVGRect): boolean;
createSVGAngle(): SVGAngle;
createSVGLength(): SVGLength;
createSVGMatrix(): SVGMatrix;
createSVGNumber(): SVGNumber;
createSVGPoint(): SVGPoint;
createSVGRect(): SVGRect;
createSVGTransform(): SVGTransform;
createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
deselectAll(): void;
/** @deprecated */
forceRedraw(): void;
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
getCurrentTime(): number;
getElementById(elementId: string): Element;
getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
getIntersectionList(rect: SVGRect, referenceElement: SVGElement): 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;
readonly SVG_ZOOMANDPAN_DISABLE: number;
readonly SVG_ZOOMANDPAN_MAGNIFY: number;
readonly SVG_ZOOMANDPAN_UNKNOWN: number;
};
/** 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;
};
/** 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 {
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: SVGPoint): number;
getComputedTextLength(): number;
getEndPositionOfChar(charnum: number): SVGPoint;
getExtentOfChar(charnum: number): SVGRect;
getNumberOfChars(): number;
getRotationOfChar(charnum: number): number;
getStartPositionOfChar(charnum: number): SVGPoint;
getSubStringLength(charnum: number, nchars: number): number;
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: SVGMatrix;
readonly type: number;
setMatrix(matrix: SVGMatrix): 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 numberOfItems: number;
appendItem(newItem: SVGTransform): SVGTransform;
clear(): void;
consolidate(): SVGTransform;
createSVGTransformFromMatrix(matrix: SVGMatrix): 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;
}
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 animatedInstanceRoot: SVGElementInstance | null;
readonly height: SVGAnimatedLength;
readonly instanceRoot: SVGElementInstance | null;
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, SVGZoomAndPan {
/** @deprecated */
readonly viewTarget: SVGStringList;
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;
readonly SVG_ZOOMANDPAN_DISABLE: number;
readonly SVG_ZOOMANDPAN_MAGNIFY: number;
readonly SVG_ZOOMANDPAN_UNKNOWN: number;
};
/** Used to reflect the zoomAndPan attribute, and is mixed in to other interfaces for elements that support this attribute. */
interface SVGZoomAndPan {
readonly zoomAndPan: number;
}
declare var SVGZoomAndPan: {
readonly SVG_ZOOMANDPAN_DISABLE: number;
readonly SVG_ZOOMANDPAN_MAGNIFY: number;
readonly SVG_ZOOMANDPAN_UNKNOWN: number;
};
interface SVGZoomEvent extends UIEvent {
readonly newScale: number;
readonly newTranslate: SVGPoint;
readonly previousScale: number;
readonly previousTranslate: SVGPoint;
readonly zoomRectScreen: SVGRect;
}
declare var SVGZoomEvent: {
prototype: SVGZoomEvent;
new(): SVGZoomEvent;
};
interface ScopedCredential {
readonly id: ArrayBuffer;
readonly type: ScopedCredentialType;
}
declare var ScopedCredential: {
prototype: ScopedCredential;
new(): ScopedCredential;
};
interface ScopedCredentialInfo {
readonly credential: ScopedCredential;
readonly publicKey: CryptoKey;
}
declare var ScopedCredentialInfo: {
prototype: ScopedCredentialInfo;
new(): ScopedCredentialInfo;
};
/** 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. */
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;
}
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 documentURI: string;
readonly effectiveDirective: string;
readonly lineNumber: number;
readonly originalPolicy: string;
readonly referrer: 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;
}
declare var Selection: {
prototype: Selection;
new(): Selection;
};
interface ServiceUIFrameContext {
getCachedFrameMessage(key: string): string;
postFrameMessage(key: string, data: string): void;
}
declare var ServiceUIFrameContext: ServiceUIFrameContext;
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
"statechange": Event;
}
/** This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object. */
interface ServiceWorker extends EventTarget, AbstractWorker {
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
readonly scriptURL: string;
readonly state: ServiceWorkerState;
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: PostMessageOptions): void;
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorker: {
prototype: ServiceWorker;
new(): ServiceWorker;
};
interface ServiceWorkerContainerEventMap {
"controllerchange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations. */
interface ServiceWorkerContainer extends EventTarget {
readonly controller: ServiceWorker | null;
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
readonly ready: Promise<ServiceWorkerRegistration>;
getRegistration(clientURL?: string): Promise<ServiceWorkerRegistration | undefined>;
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
register(scriptURL: string, 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;
};
/** This ServiceWorker API interface contains information about an event sent to a ServiceWorkerContainer\xA0target. This extends the default message event to allow setting a ServiceWorker object as the source of a message. The event object is accessed via the handler function of a message event, when fired by a message received from a service worker. */
interface ServiceWorkerMessageEvent extends Event {
readonly data: any;
readonly lastEventId: string;
readonly origin: string;
readonly ports: ReadonlyArray<MessagePort> | null;
readonly source: ServiceWorker | MessagePort | null;
}
declare var ServiceWorkerMessageEvent: {
prototype: ServiceWorkerMessageEvent;
new(type: string, eventInitDict?: ServiceWorkerMessageEventInit): ServiceWorkerMessageEvent;
};
interface ServiceWorkerRegistrationEventMap {
"updatefound": Event;
}
/** This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin. */
interface ServiceWorkerRegistration extends EventTarget {
readonly active: ServiceWorker | null;
readonly installing: ServiceWorker | null;
readonly navigationPreload: NavigationPreloadManager;
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
readonly pushManager: PushManager;
readonly scope: string;
readonly sync: SyncManager;
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 host: Element;
readonly mode: ShadowRootMode;
}
declare var ShadowRoot: {
prototype: ShadowRoot;
new(): ShadowRoot;
};
interface Slotable {
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 audioTracks: AudioTrackList;
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;
readonly textTracks: TextTrackList;
timestampOffset: number;
readonly updating: boolean;
readonly videoTracks: VideoTrackList;
abort(): void;
appendBuffer(data: BufferSource): 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 SpeechGrammar {
src: string;
weight: number;
}
declare var SpeechGrammar: {
prototype: SpeechGrammar;
new(): SpeechGrammar;
};
interface SpeechGrammarList {
readonly length: number;
addFromString(string: string, weight?: number): void;
addFromURI(src: string, weight?: number): void;
item(index: number): SpeechGrammar;
[index: number]: SpeechGrammar;
}
declare var SpeechGrammarList: {
prototype: SpeechGrammarList;
new(): SpeechGrammarList;
};
interface SpeechRecognitionEventMap {
"audioend": Event;
"audiostart": Event;
"end": Event;
"error": SpeechRecognitionError;
"nomatch": SpeechRecognitionEvent;
"result": SpeechRecognitionEvent;
"soundend": Event;
"soundstart": Event;
"speechend": Event;
"speechstart": Event;
"start": Event;
}
interface SpeechRecognition extends EventTarget {
continuous: boolean;
grammars: SpeechGrammarList;
interimResults: boolean;
lang: string;
maxAlternatives: number;
onaudioend: ((this: SpeechRecognition, ev: Event) => any) | null;
onaudiostart: ((this: SpeechRecognition, ev: Event) => any) | null;
onend: ((this: SpeechRecognition, ev: Event) => any) | null;
onerror: ((this: SpeechRecognition, ev: SpeechRecognitionError) => any) | null;
onnomatch: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null;
onresult: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null;
onsoundend: ((this: SpeechRecognition, ev: Event) => any) | null;
onsoundstart: ((this: SpeechRecognition, ev: Event) => any) | null;
onspeechend: ((this: SpeechRecognition, ev: Event) => any) | null;
onspeechstart: ((this: SpeechRecognition, ev: Event) => any) | null;
onstart: ((this: SpeechRecognition, ev: Event) => any) | null;
serviceURI: string;
abort(): void;
start(): void;
stop(): void;
addEventListener<K extends keyof SpeechRecognitionEventMap>(type: K, listener: (this: SpeechRecognition, ev: SpeechRecognitionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SpeechRecognitionEventMap>(type: K, listener: (this: SpeechRecognition, ev: SpeechRecognitionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SpeechRecognition: {
prototype: SpeechRecognition;
new(): SpeechRecognition;
};
interface SpeechRecognitionAlternative {
readonly confidence: number;
readonly transcript: string;
}
declare var SpeechRecognitionAlternative: {
prototype: SpeechRecognitionAlternative;
new(): SpeechRecognitionAlternative;
};
interface SpeechRecognitionError extends Event {
readonly error: SpeechRecognitionErrorCode;
readonly message: string;
}
declare var SpeechRecognitionError: {
prototype: SpeechRecognitionError;
new(): SpeechRecognitionError;
};
interface SpeechRecognitionEvent extends Event {
readonly emma: Document | null;
readonly interpretation: any;
readonly resultIndex: number;
readonly results: SpeechRecognitionResultList;
}
declare var SpeechRecognitionEvent: {
prototype: SpeechRecognitionEvent;
new(): SpeechRecognitionEvent;
};
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(): 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 elapsedTime: number;
readonly name: string;
readonly utterance: SpeechSynthesisUtterance;
}
declare var SpeechSynthesisEvent: {
prototype: SpeechSynthesisEvent;
new(): 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;
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(): 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(): 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 currently present in the list associated with the object.
*/
readonly length: number;
/**
* Empties the list associated with the object of all key/value pairs, if there are any.
*/
clear(): void;
/**
* Returns the current value associated with the given key, or null if the given key does not exist in the list associated with the object.
*/
getItem(key: string): string | null;
/**
* Returns the name of the nth key in the list, or null if n is greater than or equal to the number of key/value pairs in the object.
*/
key(index: number): string | null;
/**
* Removes the key/value pair with the given key from the list associated with the object, if a key/value pair with the given key exists.
*/
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.)
*/
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;
}
declare var StorageEvent: {
prototype: StorageEvent;
new(type: string, eventInitDict?: StorageEventInit): StorageEvent;
};
interface StorageManager {
estimate(): Promise<StorageEstimate>;
persist(): Promise<boolean>;
persisted(): Promise<boolean>;
}
declare var StorageManager: {
prototype: StorageManager;
new(): StorageManager;
};
interface StyleMedia {
readonly type: string;
matchMedium(mediaquery: string): boolean;
}
declare var StyleMedia: {
prototype: StyleMedia;
new(): StyleMedia;
};
/** 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: Node;
readonly parentStyleSheet: StyleSheet | 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): StyleSheet | null;
[index: number]: StyleSheet;
}
declare var StyleSheetList: {
prototype: StyleSheetList;
new(): StyleSheetList;
};
/** This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto). */
interface SubtleCrypto {
decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;
deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: number): PromiseLike<ArrayBuffer>;
deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
digest(algorithm: string | Algorithm, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;
encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;
exportKey(format: "jwk", key: CryptoKey): PromiseLike<JsonWebKey>;
exportKey(format: "raw" | "pkcs8" | "spki", key: CryptoKey): PromiseLike<ArrayBuffer>;
exportKey(format: string, key: CryptoKey): PromiseLike<JsonWebKey | ArrayBuffer>;
generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair | CryptoKey>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | DhKeyGenParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
importKey(format: "raw" | "pkcs8" | "spki", keyData: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
importKey(format: string, keyData: JsonWebKey | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;
unwrapKey(format: string, wrappedKey: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, unwrappingKey: CryptoKey, unwrapAlgorithm: string | Algorithm, unwrappedKeyAlgorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, signature: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<boolean>;
wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: string | Algorithm): PromiseLike<ArrayBuffer>;
}
declare var SubtleCrypto: {
prototype: SubtleCrypto;
new(): SubtleCrypto;
};
/** This ServiceWorker API interface provides an interface for registering and listing sync registrations. */
interface SyncManager {
getTags(): Promise<string[]>;
register(tag: string): Promise<void>;
}
declare var SyncManager: {
prototype: SyncManager;
new(): SyncManager;
};
/** 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, Slotable {
readonly assignedSlot: HTMLSlotElement | null;
/**
* Returns the combined data of all direct Text node siblings.
*/
readonly wholeText: string;
/**
* Splits data at the given offset and returns the remainder as Text node.
*/
splitText(offset: number): Text;
}
declare var Text: {
prototype: Text;
new(data?: string): Text;
};
/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
interface TextDecoder extends TextDecoderCommon {
/**
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented stream. 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-stream
* \`\`\`
*
* 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", and false otherwise.
*/
readonly fatal: boolean;
/**
* Returns true if ignore BOM flag is set, and false otherwise.
*/
readonly ignoreBOM: boolean;
}
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
}
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 a dictionary whereby 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 {
}
declare var TextEncoderStream: {
prototype: TextEncoderStream;
new(): TextEncoderStream;
};
interface TextEvent extends UIEvent {
readonly data: string;
initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: string): void;
readonly DOM_INPUT_METHOD_DROP: number;
readonly DOM_INPUT_METHOD_HANDWRITING: number;
readonly DOM_INPUT_METHOD_IME: number;
readonly DOM_INPUT_METHOD_KEYBOARD: number;
readonly DOM_INPUT_METHOD_MULTIMODAL: number;
readonly DOM_INPUT_METHOD_OPTION: number;
readonly DOM_INPUT_METHOD_PASTE: number;
readonly DOM_INPUT_METHOD_SCRIPT: number;
readonly DOM_INPUT_METHOD_UNKNOWN: number;
readonly DOM_INPUT_METHOD_VOICE: number;
}
declare var TextEvent: {
prototype: TextEvent;
new(): TextEvent;
readonly DOM_INPUT_METHOD_DROP: number;
readonly DOM_INPUT_METHOD_HANDWRITING: number;
readonly DOM_INPUT_METHOD_IME: number;
readonly DOM_INPUT_METHOD_KEYBOARD: number;
readonly DOM_INPUT_METHOD_MULTIMODAL: number;
readonly DOM_INPUT_METHOD_OPTION: number;
readonly DOM_INPUT_METHOD_PASTE: number;
readonly DOM_INPUT_METHOD_SCRIPT: number;
readonly DOM_INPUT_METHOD_UNKNOWN: number;
readonly DOM_INPUT_METHOD_VOICE: number;
};
/** 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 alphabeticBaseline: number;
/**
* Returns the measurement described below.
*/
readonly emHeightAscent: number;
/**
* Returns the measurement described below.
*/
readonly emHeightDescent: number;
/**
* Returns the measurement described below.
*/
readonly fontBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*/
readonly fontBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*/
readonly hangingBaseline: number;
/**
* Returns the measurement described below.
*/
readonly ideographicBaseline: number;
/**
* Returns the measurement described below.
*/
readonly width: number;
}
declare var TextMetrics: {
prototype: TextMetrics;
new(): TextMetrics;
};
interface TextTrackEventMap {
"cuechange": Event;
"error": Event;
"load": Event;
}
/** This interface also inherits properties from EventTarget. */
interface TextTrack extends EventTarget {
readonly activeCues: TextTrackCueList;
readonly cues: TextTrackCueList;
readonly inBandMetadataTrackDispatchType: string;
readonly kind: string;
readonly label: string;
readonly language: string;
mode: TextTrackMode | number;
oncuechange: ((this: TextTrack, ev: Event) => any) | null;
onerror: ((this: TextTrack, ev: Event) => any) | null;
onload: ((this: TextTrack, ev: Event) => any) | null;
readonly readyState: number;
readonly sourceBuffer: SourceBuffer | null;
addCue(cue: TextTrackCue): void;
removeCue(cue: TextTrackCue): void;
readonly DISABLED: number;
readonly ERROR: number;
readonly HIDDEN: number;
readonly LOADED: number;
readonly LOADING: number;
readonly NONE: number;
readonly SHOWING: number;
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;
readonly DISABLED: number;
readonly ERROR: number;
readonly HIDDEN: number;
readonly LOADED: number;
readonly LOADING: number;
readonly NONE: number;
readonly SHOWING: number;
};
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 {
endTime: number;
id: string;
onenter: ((this: TextTrackCue, ev: Event) => any) | null;
onexit: ((this: TextTrackCue, ev: Event) => any) | null;
pauseOnExit: boolean;
startTime: number;
text: string;
readonly track: TextTrack;
getCueAsHTML(): DocumentFragment;
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(startTime: number, endTime: number, text: string): TextTrackCue;
};
interface TextTrackCueList {
readonly length: number;
getCueById(id: string): TextTrackCue;
item(index: number): TextTrackCue;
[index: number]: TextTrackCue;
}
declare var TextTrackCueList: {
prototype: TextTrackCueList;
new(): TextTrackCueList;
};
interface TextTrackListEventMap {
"addtrack": TrackEvent;
}
interface TextTrackList extends EventTarget {
readonly length: number;
onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
item(index: number): TextTrack;
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 {
readonly length: number;
end(index: number): number;
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 altitudeAngle: number;
readonly azimuthAngle: number;
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;
readonly touchType: TouchType;
}
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 {
readonly track: VideoTrack | AudioTrack | TextTrack | null;
}
declare var TrackEvent: {
prototype: TrackEvent;
new(typeArg: 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;
}
/** 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;
}
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;
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, base?: string | URL): URL;
createObjectURL(object: any): string;
revokeObjectURL(url: string): void;
};
type webkitURL = URL;
declare var webkitURL: typeof URL;
interface URLSearchParams {
/**
* Appends a specified key/value pair as a new search parameter.
*/
append(name: string, value: string): void;
/**
* Deletes the given search parameter, and its associated value, from the list of all search parameters.
*/
delete(name: string): void;
/**
* Returns the first value associated to the given search parameter.
*/
get(name: string): string | null;
/**
* Returns all the values association with a given search parameter.
*/
getAll(name: string): string[];
/**
* Returns a Boolean indicating if such a search parameter exists.
*/
has(name: string): boolean;
/**
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
*/
set(name: string, value: string): void;
sort(): void;
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;
};
/** This WebVR API interface represents any VR device supported by this API. It includes generic information such as device IDs and descriptions, as well as methods for starting to present a VR scene, retrieving eye parameters and display capabilities, and other important functionality. */
interface VRDisplay extends EventTarget {
readonly capabilities: VRDisplayCapabilities;
depthFar: number;
depthNear: number;
readonly displayId: number;
readonly displayName: string;
readonly isConnected: boolean;
readonly isPresenting: boolean;
readonly stageParameters: VRStageParameters | null;
cancelAnimationFrame(handle: number): void;
exitPresent(): Promise<void>;
getEyeParameters(whichEye: string): VREyeParameters;
getFrameData(frameData: VRFrameData): boolean;
getLayers(): VRLayer[];
/** @deprecated */
getPose(): VRPose;
requestAnimationFrame(callback: FrameRequestCallback): number;
requestPresent(layers: VRLayer[]): Promise<void>;
resetPose(): void;
submitFrame(pose?: VRPose): void;
}
declare var VRDisplay: {
prototype: VRDisplay;
new(): VRDisplay;
};
/** This WebVR API interface describes the capabilities of a VRDisplay \u2014 its features can be used to perform VR device capability tests, for example can it return position information. */
interface VRDisplayCapabilities {
readonly canPresent: boolean;
readonly hasExternalDisplay: boolean;
readonly hasOrientation: boolean;
readonly hasPosition: boolean;
readonly maxLayers: number;
}
declare var VRDisplayCapabilities: {
prototype: VRDisplayCapabilities;
new(): VRDisplayCapabilities;
};
/** This WebVR API interface represents represents the event object of WebVR-related events (see the list of WebVR window extensions). */
interface VRDisplayEvent extends Event {
readonly display: VRDisplay;
readonly reason: VRDisplayEventReason | null;
}
declare var VRDisplayEvent: {
prototype: VRDisplayEvent;
new(type: string, eventInitDict: VRDisplayEventInit): VRDisplayEvent;
};
/** This WebVR API interface represents all the information required to correctly render a scene for a given eye, including field of view information. */
interface VREyeParameters {
/** @deprecated */
readonly fieldOfView: VRFieldOfView;
readonly offset: Float32Array;
readonly renderHeight: number;
readonly renderWidth: number;
}
declare var VREyeParameters: {
prototype: VREyeParameters;
new(): VREyeParameters;
};
/** This WebVR API interface represents a field of view defined by 4 different degree values describing the view from a center point. */
interface VRFieldOfView {
readonly downDegrees: number;
readonly leftDegrees: number;
readonly rightDegrees: number;
readonly upDegrees: number;
}
declare var VRFieldOfView: {
prototype: VRFieldOfView;
new(): VRFieldOfView;
};
/** This WebVR API interface represents all the information needed to render a single frame of a VR scene; constructed by VRDisplay.getFrameData(). */
interface VRFrameData {
readonly leftProjectionMatrix: Float32Array;
readonly leftViewMatrix: Float32Array;
readonly pose: VRPose;
readonly rightProjectionMatrix: Float32Array;
readonly rightViewMatrix: Float32Array;
readonly timestamp: number;
}
declare var VRFrameData: {
prototype: VRFrameData;
new(): VRFrameData;
};
/** This WebVR API interface represents the state of a VR sensor at a given timestamp (which includes orientation, position, velocity, and acceleration information.) */
interface VRPose {
readonly angularAcceleration: Float32Array | null;
readonly angularVelocity: Float32Array | null;
readonly linearAcceleration: Float32Array | null;
readonly linearVelocity: Float32Array | null;
readonly orientation: Float32Array | null;
readonly position: Float32Array | null;
readonly timestamp: number;
}
declare var VRPose: {
prototype: VRPose;
new(): VRPose;
};
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 {
readonly corruptedVideoFrames: number;
readonly creationTime: number;
readonly droppedVideoFrames: number;
readonly totalFrameDelay: number;
readonly totalVideoFrames: number;
}
declare var VideoPlaybackQuality: {
prototype: VideoPlaybackQuality;
new(): VideoPlaybackQuality;
};
/** A single video track from a <video> element. */
interface VideoTrack {
readonly id: string;
kind: string;
readonly label: string;
language: string;
selected: boolean;
readonly sourceBuffer: SourceBuffer | null;
}
declare var VideoTrack: {
prototype: VideoTrack;
new(): VideoTrack;
};
interface VideoTrackListEventMap {
"addtrack": TrackEvent;
"change": Event;
"removetrack": TrackEvent;
}
/** Used to represent a list of the video tracks contained within a <video> element, with each track represented by a separate VideoTrack object in the list. */
interface VideoTrackList extends EventTarget {
readonly length: number;
onaddtrack: ((this: VideoTrackList, ev: TrackEvent) => any) | null;
onchange: ((this: VideoTrackList, ev: Event) => any) | null;
onremovetrack: ((this: VideoTrackList, ev: TrackEvent) => any) | null;
readonly selectedIndex: number;
getTrackById(id: string): VideoTrack | null;
item(index: number): VideoTrack;
addEventListener<K extends keyof VideoTrackListEventMap>(type: K, listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VideoTrackListEventMap>(type: K, listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: VideoTrack;
}
declare var VideoTrackList: {
prototype: VideoTrackList;
new(): VideoTrackList;
};
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;
}
/** 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 WebAuthentication {
getAssertion(assertionChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: AssertionOptions): Promise<WebAuthnAssertion>;
makeCredential(accountInformation: Account, cryptoParameters: ScopedCredentialParameters[], attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;
}
declare var WebAuthentication: {
prototype: WebAuthentication;
new(): WebAuthentication;
};
interface WebAuthnAssertion {
readonly authenticatorData: ArrayBuffer;
readonly clientData: ArrayBuffer;
readonly credential: ScopedCredential;
readonly signature: ArrayBuffer;
}
declare var WebAuthnAssertion: {
prototype: WebAuthnAssertion;
new(): WebAuthnAssertion;
};
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}
declare var WebGL2RenderingContext: {
prototype: WebGL2RenderingContext;
new(): WebGL2RenderingContext;
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;
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 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 extends WebGLObject {
}
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 extends WebGLObject {
}
declare var WebGLFramebuffer: {
prototype: WebGLFramebuffer;
new(): WebGLFramebuffer;
};
interface WebGLObject {
}
declare var WebGLObject: {
prototype: WebGLObject;
new(): WebGLObject;
};
/** 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 extends WebGLObject {
}
declare var WebGLProgram: {
prototype: WebGLProgram;
new(): WebGLProgram;
};
interface WebGLQuery extends WebGLObject {
}
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 extends WebGLObject {
}
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 | OffscreenCanvas;
readonly drawingBufferHeight: GLsizei;
readonly drawingBufferWidth: GLsizei;
activeTexture(texture: GLenum): void;
attachShader(program: WebGLProgram, shader: WebGLShader): void;
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
blendEquation(mode: GLenum): void;
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
checkFramebufferStatus(target: GLenum): GLenum;
clear(mask: GLbitfield): void;
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
clearDepth(depth: GLclampf): void;
clearStencil(s: GLint): void;
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
compileShader(shader: WebGLShader): void;
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createBuffer(): WebGLBuffer | null;
createFramebuffer(): WebGLFramebuffer | null;
createProgram(): WebGLProgram | null;
createRenderbuffer(): WebGLRenderbuffer | null;
createShader(type: GLenum): WebGLShader | null;
createTexture(): WebGLTexture | null;
cullFace(mode: GLenum): void;
deleteBuffer(buffer: WebGLBuffer | null): void;
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
deleteProgram(program: WebGLProgram | null): void;
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
deleteShader(shader: WebGLShader | null): void;
deleteTexture(texture: WebGLTexture | null): void;
depthFunc(func: GLenum): void;
depthMask(flag: GLboolean): void;
depthRange(zNear: GLclampf, zFar: GLclampf): void;
detachShader(program: WebGLProgram, shader: WebGLShader): void;
disable(cap: GLenum): void;
disableVertexAttribArray(index: GLuint): void;
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
enable(cap: GLenum): void;
enableVertexAttribArray(index: GLuint): void;
finish(): void;
flush(): void;
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
frontFace(mode: GLenum): void;
generateMipmap(target: GLenum): void;
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
getAttribLocation(program: WebGLProgram, name: string): GLint;
getBufferParameter(target: GLenum, pname: GLenum): any;
getContextAttributes(): WebGLContextAttributes | null;
getError(): GLenum;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | 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: "OES_vertex_array_object"): OES_vertex_array_object | 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_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(extensionName: 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 extends WebGLObject {
}
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 extends WebGLObject {
}
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 extends WebGLObject {
}
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 extends WebGLObject {
}
declare var WebGLTexture: {
prototype: WebGLTexture;
new(): WebGLTexture;
};
interface WebGLTransformFeedback extends WebGLObject {
}
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 extends WebGLObject {
}
declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject;
};
interface WebGLVertexArrayObjectOES extends WebGLObject {
}
interface WebKitPoint {
x: number;
y: number;
}
declare var WebKitPoint: {
prototype: WebKitPoint;
new(x?: number, y?: number): WebKitPoint;
};
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 {
binaryType: BinaryType;
readonly bufferedAmount: number;
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;
readonly protocol: string;
readonly readyState: number;
readonly url: string;
close(code?: number, reason?: string): void;
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, 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 {
"abort": UIEvent;
"afterprint": Event;
"beforeprint": Event;
"beforeunload": BeforeUnloadEvent;
"blur": FocusEvent;
"canplay": Event;
"canplaythrough": Event;
"change": Event;
"click": MouseEvent;
"compassneedscalibration": Event;
"contextmenu": MouseEvent;
"dblclick": MouseEvent;
"devicelight": DeviceLightEvent;
"devicemotion": DeviceMotionEvent;
"deviceorientation": DeviceOrientationEvent;
"deviceorientationabsolute": DeviceOrientationEvent;
"drag": DragEvent;
"dragend": DragEvent;
"dragenter": DragEvent;
"dragleave": DragEvent;
"dragover": DragEvent;
"dragstart": DragEvent;
"drop": DragEvent;
"durationchange": Event;
"emptied": Event;
"ended": Event;
"error": ErrorEvent;
"focus": FocusEvent;
"hashchange": HashChangeEvent;
"input": Event;
"invalid": Event;
"keydown": KeyboardEvent;
"keypress": KeyboardEvent;
"keyup": KeyboardEvent;
"load": Event;
"loadeddata": Event;
"loadedmetadata": Event;
"loadstart": Event;
"message": MessageEvent;
"mousedown": MouseEvent;
"mouseenter": MouseEvent;
"mouseleave": MouseEvent;
"mousemove": MouseEvent;
"mouseout": MouseEvent;
"mouseover": MouseEvent;
"mouseup": MouseEvent;
"mousewheel": Event;
"MSGestureChange": Event;
"MSGestureDoubleTap": Event;
"MSGestureEnd": Event;
"MSGestureHold": Event;
"MSGestureStart": Event;
"MSGestureTap": Event;
"MSInertiaStart": Event;
"MSPointerCancel": Event;
"MSPointerDown": Event;
"MSPointerEnter": Event;
"MSPointerLeave": Event;
"MSPointerMove": Event;
"MSPointerOut": Event;
"MSPointerOver": Event;
"MSPointerUp": Event;
"offline": Event;
"online": Event;
"orientationchange": Event;
"pagehide": PageTransitionEvent;
"pageshow": PageTransitionEvent;
"pause": Event;
"play": Event;
"playing": Event;
"popstate": PopStateEvent;
"progress": ProgressEvent<Window>;
"ratechange": Event;
"readystatechange": ProgressEvent<Window>;
"reset": Event;
"resize": UIEvent;
"scroll": Event;
"seeked": Event;
"seeking": Event;
"select": Event;
"stalled": Event;
"storage": StorageEvent;
"submit": Event;
"suspend": Event;
"timeupdate": Event;
"unload": Event;
"volumechange": Event;
"vrdisplayactivate": Event;
"vrdisplayblur": Event;
"vrdisplayconnect": Event;
"vrdisplaydeactivate": Event;
"vrdisplaydisconnect": Event;
"vrdisplayfocus": Event;
"vrdisplaypointerrestricted": Event;
"vrdisplaypointerunrestricted": Event;
"vrdisplaypresentchange": Event;
"waiting": 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, IDBEnvironment, WindowBase64, WindowConsole, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage, WindowTimers {
readonly applicationCache: ApplicationCache;
readonly caches: CacheStorage;
readonly clientInformation: Navigator;
readonly closed: boolean;
readonly crypto: Crypto;
customElements: CustomElementRegistry;
defaultStatus: string;
readonly devicePixelRatio: number;
readonly doNotTrack: string;
readonly document: Document;
/** @deprecated */
readonly event: Event | undefined;
/** @deprecated */
readonly external: External;
readonly frameElement: Element;
readonly frames: Window;
readonly history: History;
readonly innerHeight: number;
readonly innerWidth: number;
readonly isSecureContext: boolean;
readonly length: number;
location: Location;
readonly locationbar: BarProp;
readonly menubar: BarProp;
readonly msContentScript: ExtensionScriptApis;
name: string;
readonly navigator: Navigator;
offscreenBuffering: string | boolean;
oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;
ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
onmousewheel: ((this: Window, ev: Event) => any) | null;
onmsgesturechange: ((this: Window, ev: Event) => any) | null;
onmsgesturedoubletap: ((this: Window, ev: Event) => any) | null;
onmsgestureend: ((this: Window, ev: Event) => any) | null;
onmsgesturehold: ((this: Window, ev: Event) => any) | null;
onmsgesturestart: ((this: Window, ev: Event) => any) | null;
onmsgesturetap: ((this: Window, ev: Event) => any) | null;
onmsinertiastart: ((this: Window, ev: Event) => any) | null;
onmspointercancel: ((this: Window, ev: Event) => any) | null;
onmspointerdown: ((this: Window, ev: Event) => any) | null;
onmspointerenter: ((this: Window, ev: Event) => any) | null;
onmspointerleave: ((this: Window, ev: Event) => any) | null;
onmspointermove: ((this: Window, ev: Event) => any) | null;
onmspointerout: ((this: Window, ev: Event) => any) | null;
onmspointerover: ((this: Window, ev: Event) => any) | null;
onmspointerup: ((this: Window, ev: Event) => any) | null;
/** @deprecated */
onorientationchange: ((this: Window, ev: Event) => any) | null;
onreadystatechange: ((this: Window, ev: ProgressEvent<Window>) => any) | null;
onvrdisplayactivate: ((this: Window, ev: Event) => any) | null;
onvrdisplayblur: ((this: Window, ev: Event) => any) | null;
onvrdisplayconnect: ((this: Window, ev: Event) => any) | null;
onvrdisplaydeactivate: ((this: Window, ev: Event) => any) | null;
onvrdisplaydisconnect: ((this: Window, ev: Event) => any) | null;
onvrdisplayfocus: ((this: Window, ev: Event) => any) | null;
onvrdisplaypointerrestricted: ((this: Window, ev: Event) => any) | null;
onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) | null;
onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;
opener: any;
/** @deprecated */
readonly orientation: string | number;
readonly outerHeight: number;
readonly outerWidth: number;
readonly pageXOffset: number;
readonly pageYOffset: number;
readonly parent: Window;
readonly performance: Performance;
readonly personalbar: BarProp;
readonly screen: Screen;
readonly screenLeft: number;
readonly screenTop: number;
readonly screenX: number;
readonly screenY: number;
readonly scrollX: number;
readonly scrollY: number;
readonly scrollbars: BarProp;
readonly self: Window & typeof globalThis;
readonly speechSynthesis: SpeechSynthesis;
status: string;
readonly statusbar: BarProp;
readonly styleMedia: StyleMedia;
readonly toolbar: BarProp;
readonly top: Window;
readonly window: Window & typeof globalThis;
alert(message?: any): void;
blur(): void;
/** @deprecated */
captureEvents(): void;
close(): void;
confirm(message?: string): boolean;
departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void;
focus(): void;
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList;
getSelection(): Selection | null;
matchMedia(query: string): MediaQueryList;
moveBy(x: number, y: number): void;
moveTo(x: number, y: number): void;
msWriteProfilerMark(profilerMarkName: string): void;
open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;
postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
print(): void;
prompt(message?: string, _default?: string): string | null;
/** @deprecated */
releaseEvents(): void;
resizeBy(x: number, y: number): void;
resizeTo(x: number, y: 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;
stop(): void;
webkitCancelAnimationFrame(handle: number): void;
webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
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 WindowBase64 {
atob(encodedString: string): string;
btoa(rawString: string): string;
}
interface WindowConsole {
readonly console: Console;
}
interface WindowEventHandlersEventMap {
"afterprint": Event;
"beforeprint": Event;
"beforeunload": BeforeUnloadEvent;
"hashchange": HashChangeEvent;
"languagechange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
"offline": Event;
"online": Event;
"pagehide": PageTransitionEvent;
"pageshow": PageTransitionEvent;
"popstate": PopStateEvent;
"rejectionhandled": Event;
"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;
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: Event) => any) | null;
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface WindowLocalStorage {
readonly localStorage: Storage;
}
interface WindowOrWorkerGlobalScope {
readonly caches: CacheStorage;
readonly crypto: Crypto;
readonly indexedDB: IDBFactory;
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): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number): Promise<ImageBitmap>;
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
queueMicrotask(callback: Function): void;
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
}
interface WindowSessionStorage {
readonly sessionStorage: Storage;
}
interface WindowTimers {
}
interface WorkerEventMap extends AbstractWorkerEventMap {
"message": 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;
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: PostMessageOptions): void;
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(stringUrl: string | URL, options?: WorkerOptions): Worker;
};
interface Worklet {
addModule(moduleURL: string, 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>;
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(error?: any): void;
}
/** 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<void>;
readonly desiredSize: number | null;
readonly ready: Promise<void>;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
releaseLock(): void;
write(chunk: W): Promise<void>;
}
/** 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's body.
*/
readonly response: any;
/**
* Returns the text response.
*
* 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 document response.
*
* 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 the 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 HTTP 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): void;
open(method: string, url: string, async: boolean, username?: string | null, password?: string | null): void;
/**
* Acts as if the \`Content-Type\` header value for response is mime. (It does not actually change the header though.)
*
* 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 | BodyInit | 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, localName: string): any;
importStylesheet(style: Node): void;
removeParameter(namespaceURI: string, localName: string): void;
reset(): void;
setParameter(namespaceURI: string, localName: string, value: any): void;
transformToDocument(source: Node): Document;
transformToFragment(source: Node, document: Document): DocumentFragment;
}
declare var XSLTProcessor: {
prototype: XSLTProcessor;
new(): XSLTProcessor;
};
interface webkitRTCPeerConnection extends RTCPeerConnection {
addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: webkitRTCPeerConnection, 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: webkitRTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var webkitRTCPeerConnection: {
prototype: webkitRTCPeerConnection;
new(configuration: RTCConfiguration): webkitRTCPeerConnection;
};
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
declare namespace WebAssembly {
interface CompileError {
}
var CompileError: {
prototype: CompileError;
new(): CompileError;
};
interface Global {
value: any;
valueOf(): any;
}
var Global: {
prototype: Global;
new(descriptor: GlobalDescriptor, v?: any): Global;
};
interface Instance {
readonly exports: Exports;
}
var Instance: {
prototype: Instance;
new(module: Module, importObject?: Imports): Instance;
};
interface LinkError {
}
var LinkError: {
prototype: LinkError;
new(): LinkError;
};
interface Memory {
readonly buffer: ArrayBuffer;
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
exports(moduleObject: Module): ModuleExportDescriptor[];
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface RuntimeError {
}
var RuntimeError: {
prototype: RuntimeError;
new(): RuntimeError;
};
interface Table {
readonly length: number;
get(index: number): Function | null;
grow(delta: number): number;
set(index: number, value: Function | null): void;
}
var Table: {
prototype: Table;
new(descriptor: TableDescriptor): Table;
};
interface GlobalDescriptor {
mutable?: boolean;
value: ValueType;
}
interface MemoryDescriptor {
initial: number;
maximum?: number;
}
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" | "table" | "memory" | "global";
type TableKind = "anyfunc";
type ValueType = "i32" | "i64" | "f32" | "f64";
type ExportValue = Function | Global | Memory | Table;
type Exports = Record<string, ExportValue>;
type ImportValue = ExportValue | number;
type ModuleImports = Record<string, ImportValue>;
type Imports = Record<string, ModuleImports>;
function compile(bytes: BufferSource): Promise<Module>;
function compileStreaming(source: Response | Promise<Response>): Promise<Module>;
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
function instantiateStreaming(response: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function validate(bytes: BufferSource): boolean;
}
interface BlobCallback {
(blob: Blob | null): void;
}
interface DecodeErrorCallback {
(error: DOMException): void;
}
interface DecodeSuccessCallback {
(decodedData: AudioBuffer): void;
}
interface EventHandlerNonNull {
(event: Event): any;
}
interface ForEachCallback {
(keyId: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, status: MediaKeyStatus): void;
}
interface FrameRequestCallback {
(time: number): void;
}
interface FunctionStringCallback {
(data: string): void;
}
interface IntersectionObserverCallback {
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
}
interface MSLaunchUriCallback {
(): void;
}
interface MutationCallback {
(mutations: MutationRecord[], observer: MutationObserver): void;
}
interface NavigatorUserMediaErrorCallback {
(error: MediaStreamError): void;
}
interface NavigatorUserMediaSuccessCallback {
(stream: MediaStream): 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: Position): void;
}
interface PositionErrorCallback {
(positionError: PositionError): void;
}
interface QueuingStrategySizeCallback<T = any> {
(chunk: T): number;
}
interface RTCPeerConnectionErrorCallback {
(error: DOMException): void;
}
interface RTCSessionDescriptionCallback {
(description: RTCSessionDescriptionInit): void;
}
interface RTCStatsCallback {
(report: RTCStatsReport): void;
}
interface ReadableByteStreamControllerCallback {
(controller: ReadableByteStreamController): void | PromiseLike<void>;
}
interface ReadableStreamDefaultControllerCallback<R> {
(controller: ReadableStreamDefaultController<R>): void | PromiseLike<void>;
}
interface ReadableStreamErrorCallback {
(reason: any): void | PromiseLike<void>;
}
interface TransformStreamDefaultControllerCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface TransformStreamDefaultControllerTransformCallback<I, O> {
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface VoidFunction {
(): void;
}
interface WritableStreamDefaultControllerCloseCallback {
(): void | PromiseLike<void>;
}
interface WritableStreamDefaultControllerStartCallback {
(controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
interface WritableStreamDefaultControllerWriteCallback<W> {
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
interface WritableStreamErrorCallback {
(reason: any): void | PromiseLike<void>;
}
interface HTMLElementTagNameMap {
"a": HTMLAnchorElement;
"abbr": HTMLElement;
"address": HTMLElement;
"applet": HTMLAppletElement;
"area": HTMLAreaElement;
"article": HTMLElement;
"aside": HTMLElement;
"audio": HTMLAudioElement;
"b": HTMLElement;
"base": HTMLBaseElement;
"basefont": HTMLBaseFontElement;
"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": HTMLTableDataCellElement;
"template": HTMLTemplateElement;
"textarea": HTMLTextAreaElement;
"tfoot": HTMLTableSectionElement;
"th": HTMLTableHeaderCellElement;
"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;
"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;
"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;
"path": SVGPathElement;
"pattern": SVGPatternElement;
"polygon": SVGPolygonElement;
"polyline": SVGPolylineElement;
"radialGradient": SVGRadialGradientElement;
"rect": SVGRectElement;
"script": SVGScriptElement;
"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;
};
declare var applicationCache: ApplicationCache;
declare var caches: CacheStorage;
declare var clientInformation: Navigator;
declare var closed: boolean;
declare var crypto: Crypto;
declare var customElements: CustomElementRegistry;
declare var defaultStatus: string;
declare var devicePixelRatio: number;
declare var doNotTrack: string;
declare var document: Document;
/** @deprecated */
declare var event: Event | undefined;
/** @deprecated */
declare var external: External;
declare var frameElement: Element;
declare var frames: Window;
declare var history: History;
declare var innerHeight: number;
declare var innerWidth: number;
declare var isSecureContext: boolean;
declare var length: number;
declare var location: Location;
declare var locationbar: BarProp;
declare var menubar: BarProp;
declare var msContentScript: ExtensionScriptApis;
declare const name: never;
declare var navigator: Navigator;
declare var offscreenBuffering: string | boolean;
declare var oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;
declare var ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
declare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
declare var onmousewheel: ((this: Window, ev: Event) => any) | null;
declare var onmsgesturechange: ((this: Window, ev: Event) => any) | null;
declare var onmsgesturedoubletap: ((this: Window, ev: Event) => any) | null;
declare var onmsgestureend: ((this: Window, ev: Event) => any) | null;
declare var onmsgesturehold: ((this: Window, ev: Event) => any) | null;
declare var onmsgesturestart: ((this: Window, ev: Event) => any) | null;
declare var onmsgesturetap: ((this: Window, ev: Event) => any) | null;
declare var onmsinertiastart: ((this: Window, ev: Event) => any) | null;
declare var onmspointercancel: ((this: Window, ev: Event) => any) | null;
declare var onmspointerdown: ((this: Window, ev: Event) => any) | null;
declare var onmspointerenter: ((this: Window, ev: Event) => any) | null;
declare var onmspointerleave: ((this: Window, ev: Event) => any) | null;
declare var onmspointermove: ((this: Window, ev: Event) => any) | null;
declare var onmspointerout: ((this: Window, ev: Event) => any) | null;
declare var onmspointerover: ((this: Window, ev: Event) => any) | null;
declare var onmspointerup: ((this: Window, ev: Event) => any) | null;
/** @deprecated */
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
declare var onreadystatechange: ((this: Window, ev: ProgressEvent<Window>) => any) | null;
declare var onvrdisplayactivate: ((this: Window, ev: Event) => any) | null;
declare var onvrdisplayblur: ((this: Window, ev: Event) => any) | null;
declare var onvrdisplayconnect: ((this: Window, ev: Event) => any) | null;
declare var onvrdisplaydeactivate: ((this: Window, ev: Event) => any) | null;
declare var onvrdisplaydisconnect: ((this: Window, ev: Event) => any) | null;
declare var onvrdisplayfocus: ((this: Window, ev: Event) => any) | null;
declare var onvrdisplaypointerrestricted: ((this: Window, ev: Event) => any) | null;
declare var onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) | null;
declare var onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;
declare var opener: any;
/** @deprecated */
declare var orientation: string | number;
declare var outerHeight: number;
declare var outerWidth: number;
declare var pageXOffset: number;
declare var pageYOffset: number;
declare var parent: Window;
declare var performance: Performance;
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;
declare var scrollbars: BarProp;
declare var self: Window & typeof globalThis;
declare var speechSynthesis: SpeechSynthesis;
declare var status: string;
declare var statusbar: BarProp;
declare var styleMedia: StyleMedia;
declare var toolbar: BarProp;
declare var top: Window;
declare var window: Window & typeof globalThis;
declare function alert(message?: any): void;
declare function blur(): void;
/** @deprecated */
declare function captureEvents(): void;
declare function close(): void;
declare function confirm(message?: string): boolean;
declare function departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void;
declare function focus(): void;
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
declare function getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList;
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 msWriteProfilerMark(profilerMarkName: string): void;
declare function open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;
declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
declare function print(): void;
declare function prompt(message?: string, _default?: string): string | null;
/** @deprecated */
declare function releaseEvents(): void;
declare function resizeBy(x: number, y: number): void;
declare function resizeTo(x: number, y: 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;
declare function stop(): void;
declare function webkitCancelAnimationFrame(handle: number): void;
declare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
declare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
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 var sessionStorage: Storage;
declare var localStorage: Storage;
declare var console: Console;
/**
* 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;
declare var oncancel: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*/
declare var oncanplay: ((this: Window, ev: Event) => any) | null;
declare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*/
declare var onchange: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user clicks the left mouse button on the object
* @param ev The mouse event.
*/
declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
declare var onclose: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*/
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
declare var 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;
declare var ondragexit: ((this: Window, ev: Event) => 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 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.
*/
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;
declare var onloadend: ((this: Window, ev: ProgressEvent) => 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;
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*/
declare var onseeked: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*/
declare var onseeking: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*/
declare var onselect: ((this: Window, ev: Event) => any) | null;
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*/
declare var onstalled: ((this: Window, ev: Event) => any) | null;
declare var onsubmit: ((this: Window, ev: Event) => any) | null;
/**
* Occurs if the load operation has been intentionally halted.
* @param ev The event.
*/
declare var onsuspend: ((this: Window, ev: Event) => any) | null;
/**
* Occurs to indicate the current playback position.
* @param ev The event.
*/
declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
declare var ontoggle: ((this: Window, ev: Event) => any) | null;
declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null;
declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null;
declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null;
declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null;
declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;
/**
* Occurs when the volume is changed, or playback is muted or unmuted.
* @param ev The event.
*/
declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when playback stops because the next frame of a video resource is not available.
* @param ev The event.
*/
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
declare var indexedDB: IDBFactory;
declare function atob(encodedString: string): string;
declare function btoa(rawString: string): string;
declare function cancelAnimationFrame(handle: number): void;
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
declare var caches: CacheStorage;
declare var crypto: Crypto;
declare var indexedDB: IDBFactory;
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): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number): Promise<ImageBitmap>;
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
declare function queueMicrotask(callback: Function): 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 var localStorage: Storage;
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 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: Event) => 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 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 HeadersInit = Headers | string[][] | Record<string, string>;
type BodyInit = Blob | BufferSource | FormData | URLSearchParams | ReadableStream<Uint8Array> | string;
type RequestInfo = Request | string;
type BlobPart = BufferSource | Blob | string;
type DOMHighResTimeStamp = number;
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
type TimerHandler = string | Function;
type ConstrainULong = number | ConstrainULongRange;
type ConstrainDouble = number | ConstrainDoubleRange;
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
type PerformanceEntryList = PerformanceEntry[];
type VibratePattern = number | number[];
type COSEAlgorithmIdentifier = number;
type AuthenticatorSelectionList = AAGUID[];
type AAGUID = BufferSource;
type AuthenticationExtensionsSupported = string[];
type UvmEntry = number[];
type UvmEntries = UvmEntry[];
type AlgorithmIdentifier = string | Algorithm;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type BigInteger = Uint8Array;
type NamedCurve = string;
type GLenum = number;
type GLboolean = boolean;
type GLbitfield = number;
type GLint = number;
type GLsizei = number;
type GLintptr = number;
type GLsizeiptr = number;
type GLuint = number;
type GLfloat = number;
type GLclampf = number;
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas;
type Float32List = Float32Array | GLfloat[];
type Int32List = Int32Array | GLint[];
type GLint64 = number;
type GLuint64 = number;
type Uint32List = Uint32Array | GLuint[];
type BufferSource = ArrayBufferView | ArrayBuffer;
type DOMTimeStamp = number;
type LineAndPositionSetting = number | AutoKeyword;
type FormDataEntryValue = File | string;
type InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend";
type IDBValidKey = number | string | Date | BufferSource | IDBArrayKey;
type MutationRecordType = "attributes" | "characterData" | "childList";
type IDBKeyPath = string;
type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
type RTCIceGatherCandidate = RTCIceCandidateDictionary | RTCIceCandidateComplete;
type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
/** @deprecated */
type MouseWheelEvent = WheelEvent;
type WindowProxy = Window;
type AlignSetting = "start" | "center" | "end" | "left" | "right";
type AnimationPlayState = "idle" | "running" | "paused" | "finished";
type AppendMode = "segments" | "sequence";
type AttestationConveyancePreference = "none" | "indirect" | "direct";
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
type AudioContextState = "suspended" | "running" | "closed";
type AuthenticatorAttachment = "platform" | "cross-platform";
type AuthenticatorTransport = "usb" | "nfc" | "ble" | "internal";
type AutoKeyword = "auto";
type AutomationRate = "a-rate" | "k-rate";
type BinaryType = "blob" | "arraybuffer";
type BiquadFilterType = "lowpass" | "highpass" | "bandpass" | "lowshelf" | "highshelf" | "peaking" | "notch" | "allpass";
type CanPlayTypeResult = "" | "maybe" | "probably";
type CanvasDirection = "ltr" | "rtl" | "inherit";
type CanvasFillRule = "nonzero" | "evenodd";
type CanvasLineCap = "butt" | "round" | "square";
type CanvasLineJoin = "round" | "bevel" | "miter";
type CanvasTextAlign = "start" | "end" | "left" | "right" | "center";
type CanvasTextBaseline = "top" | "hanging" | "middle" | "alphabetic" | "ideographic" | "bottom";
type ChannelCountMode = "max" | "clamped-max" | "explicit";
type ChannelInterpretation = "speakers" | "discrete";
type ClientTypes = "window" | "worker" | "sharedworker" | "all";
type CompositeOperation = "replace" | "add" | "accumulate";
type CompositeOperationOrAuto = "replace" | "add" | "accumulate" | "auto";
type CredentialMediationRequirement = "silent" | "optional" | "required";
type DirectionSetting = "" | "rl" | "lr";
type DisplayCaptureSurfaceType = "monitor" | "window" | "application" | "browser";
type DistanceModelType = "linear" | "inverse" | "exponential";
type DocumentReadyState = "loading" | "interactive" | "complete";
type EndOfStreamError = "network" | "decode";
type EndingType = "transparent" | "native";
type FillMode = "none" | "forwards" | "backwards" | "both" | "auto";
type FullscreenNavigationUI = "auto" | "show" | "hide";
type GamepadHand = "" | "left" | "right";
type GamepadHapticActuatorType = "vibration";
type GamepadMappingType = "" | "standard";
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
type IDBRequestReadyState = "pending" | "done";
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
type ImageSmoothingQuality = "low" | "medium" | "high";
type IterationCompositeOperation = "replace" | "accumulate";
type KeyFormat = "raw" | "spki" | "pkcs8" | "jwk";
type KeyType = "public" | "private" | "secret";
type KeyUsage = "encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey";
type LineAlignSetting = "start" | "center" | "end";
type ListeningState = "inactive" | "active" | "disambiguation";
type MSCredentialType = "FIDO_2_0";
type MSTransportType = "Embedded" | "USB" | "NFC" | "BT";
type MSWebViewPermissionState = "unknown" | "defer" | "allow" | "deny";
type MSWebViewPermissionType = "geolocation" | "unlimitedIndexedDBQuota" | "media" | "pointerlock" | "webnotifications";
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
type MediaKeyMessageType = "license-request" | "license-renewal" | "license-release" | "individualization-request";
type MediaKeySessionType = "temporary" | "persistent-license";
type MediaKeyStatus = "usable" | "expired" | "released" | "output-restricted" | "output-downscaled" | "status-pending" | "internal-error";
type MediaKeysRequirement = "required" | "optional" | "not-allowed";
type MediaStreamTrackState = "live" | "ended";
type NavigationReason = "up" | "down" | "left" | "right";
type NavigationType = "navigate" | "reload" | "back_forward" | "prerender";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2";
type OrientationLockType = "any" | "natural" | "landscape" | "portrait" | "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary";
type OrientationType = "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary";
type OscillatorType = "sine" | "square" | "sawtooth" | "triangle" | "custom";
type OverSampleType = "none" | "2x" | "4x";
type PanningModelType = "equalpower" | "HRTF";
type PaymentComplete = "success" | "fail" | "unknown";
type PaymentShippingType = "shipping" | "delivery" | "pickup";
type PermissionName = "geolocation" | "notifications" | "push" | "midi" | "camera" | "microphone" | "speaker" | "device-info" | "background-sync" | "bluetooth" | "persistent-storage" | "ambient-light-sensor" | "accelerometer" | "gyroscope" | "magnetometer" | "clipboard";
type PermissionState = "granted" | "denied" | "prompt";
type PlaybackDirection = "normal" | "reverse" | "alternate" | "alternate-reverse";
type PositionAlignSetting = "line-left" | "center" | "line-right" | "auto";
type PublicKeyCredentialType = "public-key";
type PushEncryptionKeyName = "p256dh" | "auth";
type PushPermissionState = "denied" | "granted" | "prompt";
type RTCBundlePolicy = "balanced" | "max-compat" | "max-bundle";
type RTCDataChannelState = "connecting" | "open" | "closing" | "closed";
type RTCDegradationPreference = "maintain-framerate" | "maintain-resolution" | "balanced";
type RTCDtlsRole = "auto" | "client" | "server";
type RTCDtlsTransportState = "new" | "connecting" | "connected" | "closed" | "failed";
type RTCDtxStatus = "disabled" | "enabled";
type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "idp-bad-script-failure" | "idp-execution-failure" | "idp-load-failure" | "idp-need-login" | "idp-timeout" | "idp-tls-failure" | "idp-token-expired" | "idp-token-invalid" | "sctp-failure" | "sdp-syntax-error" | "hardware-encoder-not-available" | "hardware-encoder-error";
type RTCIceCandidateType = "host" | "srflx" | "prflx" | "relay";
type RTCIceComponent = "rtp" | "rtcp";
type RTCIceConnectionState = "new" | "checking" | "connected" | "completed" | "disconnected" | "failed" | "closed";
type RTCIceCredentialType = "password" | "oauth";
type RTCIceGatherPolicy = "all" | "nohost" | "relay";
type RTCIceGathererState = "new" | "gathering" | "complete";
type RTCIceGatheringState = "new" | "gathering" | "complete";
type RTCIceProtocol = "udp" | "tcp";
type RTCIceRole = "controlling" | "controlled";
type RTCIceTcpCandidateType = "active" | "passive" | "so";
type RTCIceTransportPolicy = "relay" | "all";
type RTCIceTransportState = "new" | "checking" | "connected" | "completed" | "disconnected" | "failed" | "closed";
type RTCPeerConnectionState = "new" | "connecting" | "connected" | "disconnected" | "failed" | "closed";
type RTCPriorityType = "very-low" | "low" | "medium" | "high";
type RTCRtcpMuxPolicy = "negotiate" | "require";
type RTCRtpTransceiverDirection = "sendrecv" | "sendonly" | "recvonly" | "inactive";
type RTCSctpTransportState = "connecting" | "connected" | "closed";
type RTCSdpType = "offer" | "pranswer" | "answer" | "rollback";
type RTCSignalingState = "stable" | "have-local-offer" | "have-remote-offer" | "have-local-pranswer" | "have-remote-pranswer" | "closed";
type RTCStatsIceCandidatePairState = "frozen" | "waiting" | "inprogress" | "failed" | "succeeded" | "cancelled";
type RTCStatsIceCandidateType = "host" | "serverreflexive" | "peerreflexive" | "relayed";
type RTCStatsType = "inboundrtp" | "outboundrtp" | "session" | "datachannel" | "track" | "transport" | "candidatepair" | "localcandidate" | "remotecandidate";
type ReadyState = "closed" | "open" | "ended";
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "same-origin" | "origin" | "strict-origin" | "origin-when-cross-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
type RequestCache = "default" | "no-store" | "reload" | "no-cache" | "force-cache" | "only-if-cached";
type RequestCredentials = "omit" | "same-origin" | "include";
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
type RequestMode = "navigate" | "same-origin" | "no-cors" | "cors";
type RequestRedirect = "follow" | "error" | "manual";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type ScopedCredentialType = "ScopedCred";
type ScrollBehavior = "auto" | "smooth";
type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
type ScrollRestoration = "auto" | "manual";
type ScrollSetting = "" | "up";
type SelectionMode = "select" | "start" | "end" | "preserve";
type ServiceWorkerState = "installing" | "installed" | "activating" | "activated" | "redundant";
type ServiceWorkerUpdateViaCache = "imports" | "all" | "none";
type ShadowRootMode = "open" | "closed";
type SpeechRecognitionErrorCode = "no-speech" | "aborted" | "audio-capture" | "network" | "not-allowed" | "service-not-allowed" | "bad-grammar" | "language-not-supported";
type SpeechSynthesisErrorCode = "canceled" | "interrupted" | "audio-busy" | "audio-hardware" | "network" | "synthesis-unavailable" | "synthesis-failed" | "language-unavailable" | "voice-unavailable" | "text-too-long" | "invalid-argument";
type SupportedType = "text/html" | "text/xml" | "application/xml" | "application/xhtml+xml" | "image/svg+xml";
type TextTrackKind = "subtitles" | "captions" | "descriptions" | "chapters" | "metadata";
type TextTrackMode = "disabled" | "hidden" | "showing";
type TouchType = "direct" | "stylus";
type Transport = "usb" | "nfc" | "ble";
type UserVerificationRequirement = "required" | "preferred" | "discouraged";
type VRDisplayEventReason = "mounted" | "navigation" | "requested" | "unmounted";
type VideoFacingModeEnum = "user" | "environment" | "left" | "right";
type VisibilityState = "hidden" | "visible";
type WebGLPowerPreference = "default" | "low-power" | "high-performance";
type WorkerType = "classic" | "module";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`,vc=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR 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 s A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in numString.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
declare function parseInt(s: string, radix?: number): number;
/**
* Converts a string to a floating-point number.
* @param string A string that contains a floating-point number.
*/
declare function parseFloat(string: string): number;
/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
* @param number A numeric value.
*/
declare function isNaN(number: number): boolean;
/**
* Determines whether a supplied number is finite.
* @param number Any numeric value.
*/
declare function isFinite(number: number): boolean;
/**
* Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
* @param encodedURI A value representing an encoded URI.
*/
declare function decodeURI(encodedURI: string): string;
/**
* Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
* @param encodedURIComponent A value representing an encoded URI component.
*/
declare function decodeURIComponent(encodedURIComponent: string): string;
/**
* Encodes a text string as a valid Uniform Resource Identifier (URI)
* @param uri A value representing an encoded URI.
*/
declare function encodeURI(uri: string): string;
/**
* Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
* @param uriComponent A value representing an encoded URI component.
*/
declare function encodeURIComponent(uriComponent: string | number | boolean): string;
/**
* Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
* @param string A string value
*/
declare function escape(string: string): string;
/**
* Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
* @param string A string value
*/
declare function unescape(string: string): string;
interface Symbol {
/** Returns a string representation of an object. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): symbol;
}
declare type PropertyKey = string | number | symbol;
interface PropertyDescriptor {
configurable?: boolean;
enumerable?: boolean;
value?: any;
writable?: boolean;
get?(): any;
set?(v: any): void;
}
interface PropertyDescriptorMap {
[s: string]: PropertyDescriptor;
}
interface Object {
/** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
constructor: Function;
/** Returns a string representation of an object. */
toString(): string;
/** Returns a date converted to a string using the current locale. */
toLocaleString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Object;
/**
* Determines whether an object has a property with the specified name.
* @param v A property name.
*/
hasOwnProperty(v: PropertyKey): boolean;
/**
* Determines whether an object exists in another object's prototype chain.
* @param v Another object whose prototype chain is to be checked.
*/
isPrototypeOf(v: Object): boolean;
/**
* Determines whether a specified property is enumerable.
* @param v A property name.
*/
propertyIsEnumerable(v: PropertyKey): boolean;
}
interface ObjectConstructor {
new(value?: any): Object;
(): any;
(value: any): any;
/** A reference to the prototype for a class of objects. */
readonly prototype: Object;
/**
* Returns the prototype of an object.
* @param o The object that references the prototype.
*/
getPrototypeOf(o: any): any;
/**
* Gets the own property descriptor of the specified object.
* An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
* @param o Object that contains the property.
* @param p Name of the property.
*/
getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;
/**
* Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
* on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
* @param o Object that contains the own properties.
*/
getOwnPropertyNames(o: any): string[];
/**
* Creates an object that has the specified prototype or that has null prototype.
* @param o Object to use as a prototype. May be null.
*/
create(o: object | null): any;
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties.
* @param o Object to use as a prototype. May be null
* @param properties JavaScript object that contains one or more property descriptors.
*/
create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
/**
* Adds a property to an object, or modifies attributes of an existing property.
* @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
* @param p The property name.
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
*/
defineProperty(o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): any;
/**
* 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(o: any, properties: PropertyDescriptorMap & ThisType<any>): any;
/**
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
seal<T>(o: T): T;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze<T>(a: T[]): readonly T[];
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze<T extends Function>(f: T): T;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze<T>(o: T): Readonly<T>;
/**
* Prevents the addition of new properties to an object.
* @param o Object to make non-extensible.
*/
preventExtensions<T>(o: T): T;
/**
* Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
* @param o Object to test.
*/
isSealed(o: any): boolean;
/**
* Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
* @param o Object to test.
*/
isFrozen(o: any): boolean;
/**
* Returns a value that indicates whether new properties can be added to an object.
* @param o Object to test.
*/
isExtensible(o: any): boolean;
/**
* Returns the names of the enumerable string properties and methods of an object.
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
keys(o: object): string[];
}
/**
* Provides functionality common to all JavaScript objects.
*/
declare var Object: ObjectConstructor;
/**
* Creates a new function.
*/
interface Function {
/**
* Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
* @param thisArg The object to be used as the this object.
* @param argArray A set of arguments to be passed to the function.
*/
apply(this: Function, thisArg: any, argArray?: any): any;
/**
* Calls a method of an object, substituting another object for the current object.
* @param thisArg The object to be used as the current object.
* @param argArray A list of arguments to be passed to the method.
*/
call(this: Function, thisArg: any, ...argArray: any[]): any;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg An object to which the this keyword can refer inside the new function.
* @param argArray A list of arguments to be passed to the new function.
*/
bind(this: Function, thisArg: any, ...argArray: any[]): any;
/** Returns a string representation of a function. */
toString(): string;
prototype: any;
readonly length: number;
// Non-standard extensions
arguments: any;
caller: Function;
}
interface FunctionConstructor {
/**
* Creates a new function.
* @param args A list of arguments the function accepts.
*/
new(...args: string[]): Function;
(...args: string[]): Function;
readonly prototype: Function;
}
declare var Function: FunctionConstructor;
/**
* Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
*/
type ThisParameterType<T> = T extends (this: unknown, ...args: any[]) => any ? unknown : T extends (this: infer U, ...args: any[]) => any ? U : unknown;
/**
* Removes the 'this' parameter from a function type.
*/
type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;
interface CallableFunction extends Function {
/**
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
* @param thisArg The object to be used as the this object.
* @param args An array of argument values to be passed to the function.
*/
apply<T, R>(this: (this: T) => R, thisArg: T): R;
apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;
/**
* Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
* @param thisArg The object to be used as the this object.
* @param args Argument values to be passed to the function.
*/
call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg The object to be used as the this object.
* @param args Arguments to bind to the parameters of the function.
*/
bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;
bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;
bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R;
bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R;
bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R;
bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;
}
interface NewableFunction extends Function {
/**
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
* @param thisArg The object to be used as the this object.
* @param args An array of argument values to be passed to the function.
*/
apply<T>(this: new () => T, thisArg: T): void;
apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;
/**
* Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
* @param thisArg The object to be used as the this object.
* @param args Argument values to be passed to the function.
*/
call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg The object to be used as the this object.
* @param args Arguments to bind to the parameters of the function.
*/
bind<T>(this: T, thisArg: any): T;
bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;
bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R;
bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R;
bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R;
bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;
}
interface IArguments {
[index: number]: any;
length: number;
callee: Function;
}
interface String {
/** Returns a string representation of a string. */
toString(): string;
/**
* Returns the character at the specified index.
* @param pos The zero-based index of the desired character.
*/
charAt(pos: number): string;
/**
* Returns the Unicode value of the character at the specified location.
* @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
*/
charCodeAt(index: number): number;
/**
* Returns a string that contains the concatenation of two or more strings.
* @param strings The strings to append to the end of the string.
*/
concat(...strings: string[]): string;
/**
* Returns the position of the first occurrence of a substring.
* @param searchString The substring to search for in the string
* @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
*/
indexOf(searchString: string, position?: number): number;
/**
* Returns the last occurrence of a substring in the string.
* @param searchString The substring to search for.
* @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
*/
lastIndexOf(searchString: string, position?: number): number;
/**
* Determines whether two strings are equivalent in the current locale.
* @param that String to compare to target string
*/
localeCompare(that: string): number;
/**
* Matches a string with a regular expression, and returns an array containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
match(regexp: string | RegExp): RegExpMatchArray | null;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
*/
replace(searchValue: string | RegExp, replaceValue: string): string;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replacer A function that returns the replacement text.
*/
replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the first substring match in a regular expression search.
* @param regexp The regular expression pattern and applicable flags.
*/
search(regexp: string | RegExp): number;
/**
* Returns a section of a string.
* @param start The index to the beginning of the specified portion of stringObj.
* @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
* If this value is not specified, the substring continues to the end of stringObj.
*/
slice(start?: number, end?: number): string;
/**
* Split a string into substrings using the specified separator and return them as an array.
* @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
* @param limit A value used to limit the number of elements returned in the array.
*/
split(separator: string | RegExp, limit?: number): string[];
/**
* Returns the substring at the specified location within a String object.
* @param start The zero-based index number indicating the beginning of the substring.
* @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
* If end is omitted, the characters from start through the end of the original string are returned.
*/
substring(start: number, end?: number): string;
/** Converts all the alphabetic characters in a string to lowercase. */
toLowerCase(): string;
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
toLocaleLowerCase(locales?: string | string[]): string;
/** Converts all the alphabetic characters in a string to uppercase. */
toUpperCase(): string;
/** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
toLocaleUpperCase(locales?: string | string[]): string;
/** Removes the leading and trailing white space and line terminator characters from a string. */
trim(): string;
/** Returns the length of a String object. */
readonly length: number;
// IE extensions
/**
* Gets a substring beginning at the specified location and having the specified length.
* @param from The starting position of the desired substring. The index of the first character in the string is zero.
* @param length The number of characters to include in the returned substring.
*/
substr(from: number, length?: number): string;
/** Returns the primitive value of the specified object. */
valueOf(): string;
readonly [index: number]: string;
}
interface StringConstructor {
new(value?: any): String;
(value?: any): string;
readonly prototype: String;
fromCharCode(...codes: number[]): string;
}
/**
* Allows manipulation and formatting of text strings and determination and location of substrings within strings.
*/
declare var String: StringConstructor;
interface Boolean {
/** Returns the primitive value of the specified object. */
valueOf(): boolean;
}
interface BooleanConstructor {
new(value?: any): Boolean;
<T>(value?: T): boolean;
readonly prototype: Boolean;
}
declare var Boolean: BooleanConstructor;
interface Number {
/**
* Returns a string representation of an object.
* @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
*/
toString(radix?: number): string;
/**
* Returns a string representing a number in fixed-point notation.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
*/
toFixed(fractionDigits?: number): string;
/**
* Returns a string containing a number represented in exponential notation.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
*/
toExponential(fractionDigits?: number): string;
/**
* Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
*/
toPrecision(precision?: number): string;
/** Returns the primitive value of the specified object. */
valueOf(): number;
}
interface NumberConstructor {
new(value?: any): Number;
(value?: any): number;
readonly prototype: Number;
/** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
readonly MAX_VALUE: number;
/** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
readonly MIN_VALUE: number;
/**
* A value that is not a number.
* In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
*/
readonly NaN: number;
/**
* A value that is less than the largest negative number that can be represented in JavaScript.
* JavaScript displays NEGATIVE_INFINITY values as -infinity.
*/
readonly NEGATIVE_INFINITY: number;
/**
* A value greater than the largest number that can be represented in JavaScript.
* JavaScript displays POSITIVE_INFINITY values as infinity.
*/
readonly POSITIVE_INFINITY: number;
}
/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
declare var Number: NumberConstructor;
interface TemplateStringsArray extends ReadonlyArray<string> {
readonly raw: readonly string[];
}
/**
* The type of \`import.meta\`.
*
* If you need to declare that a given property exists on \`import.meta\`,
* this type may be augmented via interface merging.
*/
interface ImportMeta {
}
interface Math {
/** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
readonly E: number;
/** The natural logarithm of 10. */
readonly LN10: number;
/** The natural logarithm of 2. */
readonly LN2: number;
/** The base-2 logarithm of e. */
readonly LOG2E: number;
/** The base-10 logarithm of e. */
readonly LOG10E: number;
/** Pi. This is the ratio of the circumference of a circle to its diameter. */
readonly PI: number;
/** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
readonly SQRT1_2: number;
/** The square root of 2. */
readonly SQRT2: number;
/**
* Returns the absolute value of a number (the value without regard to whether it is positive or negative).
* For example, the absolute value of -5 is the same as the absolute value of 5.
* @param x A numeric expression for which the absolute value is needed.
*/
abs(x: number): number;
/**
* Returns the arc cosine (or inverse cosine) of a number.
* @param x A numeric expression.
*/
acos(x: number): number;
/**
* Returns the arcsine of a number.
* @param x A numeric expression.
*/
asin(x: number): number;
/**
* Returns the arctangent of a number.
* @param x A numeric expression for which the arctangent is needed.
*/
atan(x: number): number;
/**
* Returns the angle (in radians) from the X axis to a point.
* @param y A numeric expression representing the cartesian y-coordinate.
* @param x A numeric expression representing the cartesian x-coordinate.
*/
atan2(y: number, x: number): number;
/**
* Returns the smallest integer greater than or equal to its numeric argument.
* @param x A numeric expression.
*/
ceil(x: number): number;
/**
* Returns the cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
cos(x: number): number;
/**
* Returns e (the base of natural logarithms) raised to a power.
* @param x A numeric expression representing the power of e.
*/
exp(x: number): number;
/**
* Returns the greatest integer less than or equal to its numeric argument.
* @param x A numeric expression.
*/
floor(x: number): number;
/**
* Returns the natural logarithm (base e) of a number.
* @param x A numeric expression.
*/
log(x: number): number;
/**
* Returns the larger of a set of supplied numeric expressions.
* @param values Numeric expressions to be evaluated.
*/
max(...values: number[]): number;
/**
* Returns the smaller of a set of supplied numeric expressions.
* @param values Numeric expressions to be evaluated.
*/
min(...values: number[]): number;
/**
* Returns the value of a base expression taken to a specified power.
* @param x The base value of the expression.
* @param y The exponent value of the expression.
*/
pow(x: number, y: number): number;
/** Returns a pseudorandom number between 0 and 1. */
random(): number;
/**
* Returns a supplied numeric expression rounded to the nearest integer.
* @param x The value to be rounded to the nearest integer.
*/
round(x: number): number;
/**
* Returns the sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
sin(x: number): number;
/**
* Returns the square root of a number.
* @param x A numeric expression.
*/
sqrt(x: number): number;
/**
* Returns the tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
tan(x: number): number;
}
/** An intrinsic object that provides basic mathematics functionality and constants. */
declare var Math: Math;
/** Enables basic storage and retrieval of dates and times. */
interface Date {
/** Returns a string representation of a date. The format of the string depends on the locale. */
toString(): string;
/** Returns a date as a string value. */
toDateString(): string;
/** Returns a time as a string value. */
toTimeString(): string;
/** Returns a value as a string value appropriate to the host environment's current locale. */
toLocaleString(): string;
/** Returns a date as a string value appropriate to the host environment's current locale. */
toLocaleDateString(): string;
/** Returns a time as a string value appropriate to the host environment's current locale. */
toLocaleTimeString(): string;
/** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
valueOf(): number;
/** Gets the time value in milliseconds. */
getTime(): number;
/** Gets the year, using local time. */
getFullYear(): number;
/** Gets the year using Universal Coordinated Time (UTC). */
getUTCFullYear(): number;
/** Gets the month, using local time. */
getMonth(): number;
/** Gets the month of a Date object using Universal Coordinated Time (UTC). */
getUTCMonth(): number;
/** Gets the day-of-the-month, using local time. */
getDate(): number;
/** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
getUTCDate(): number;
/** Gets the day of the week, using local time. */
getDay(): number;
/** Gets the day of the week using Universal Coordinated Time (UTC). */
getUTCDay(): number;
/** Gets the hours in a date, using local time. */
getHours(): number;
/** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
getUTCHours(): number;
/** Gets the minutes of a Date object, using local time. */
getMinutes(): number;
/** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
getUTCMinutes(): number;
/** Gets the seconds of a Date object, using local time. */
getSeconds(): number;
/** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
getUTCSeconds(): number;
/** Gets the milliseconds of a Date, using local time. */
getMilliseconds(): number;
/** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
getUTCMilliseconds(): number;
/** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
getTimezoneOffset(): number;
/**
* Sets the date and time value in the Date object.
* @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
*/
setTime(time: number): number;
/**
* Sets the milliseconds value in the Date object using local time.
* @param ms A numeric value equal to the millisecond value.
*/
setMilliseconds(ms: number): number;
/**
* Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
* @param ms A numeric value equal to the millisecond value.
*/
setUTCMilliseconds(ms: number): number;
/**
* Sets the seconds value in the Date object using local time.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setSeconds(sec: number, ms?: number): number;
/**
* Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCSeconds(sec: number, ms?: number): number;
/**
* Sets the minutes value in the Date object using local time.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setMinutes(min: number, sec?: number, ms?: number): number;
/**
* Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCMinutes(min: number, sec?: number, ms?: number): number;
/**
* Sets the hour value in the Date object using local time.
* @param hours A numeric value equal to the hours value.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setHours(hours: number, min?: number, sec?: number, ms?: number): number;
/**
* Sets the hours value in the Date object using Universal Coordinated Time (UTC).
* @param hours A numeric value equal to the hours value.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
/**
* Sets the numeric day-of-the-month value of the Date object using local time.
* @param date A numeric value equal to the day of the month.
*/
setDate(date: number): number;
/**
* Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
* @param date A numeric value equal to the day of the month.
*/
setUTCDate(date: number): number;
/**
* Sets the month value in the Date object using local time.
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
* @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
*/
setMonth(month: number, date?: number): number;
/**
* Sets the month value in the Date object using Universal Coordinated Time (UTC).
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
* @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
*/
setUTCMonth(month: number, date?: number): number;
/**
* Sets the year of the Date object using local time.
* @param year A numeric value for the year.
* @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
* @param date A numeric value equal for the day of the month.
*/
setFullYear(year: number, month?: number, date?: number): number;
/**
* Sets the year value in the Date object using Universal Coordinated Time (UTC).
* @param year A numeric value equal to the year.
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
* @param date A numeric value equal to the day of the month.
*/
setUTCFullYear(year: number, month?: number, date?: number): number;
/** Returns a date converted to a string using Universal Coordinated Time (UTC). */
toUTCString(): string;
/** Returns a date as a string value in ISO format. */
toISOString(): string;
/** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
toJSON(key?: any): string;
}
interface DateConstructor {
new(): Date;
new(value: number | string): Date;
new(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
(): string;
readonly prototype: Date;
/**
* Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
* @param s A date string
*/
parse(s: string): number;
/**
* Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
* @param month The month as a number between 0 and 11 (January to December).
* @param date The date as a number between 1 and 31.
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
* @param ms A number from 0 to 999 that specifies the milliseconds.
*/
UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
now(): number;
}
declare var Date: DateConstructor;
interface RegExpMatchArray extends Array<string> {
index?: number;
input?: string;
}
interface RegExpExecArray extends Array<string> {
index: number;
input: string;
}
interface RegExp {
/**
* Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
* @param string The String object or string literal on which to perform the search.
*/
exec(string: string): RegExpExecArray | null;
/**
* Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
* @param string String on which to perform the search.
*/
test(string: string): boolean;
/** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
readonly source: string;
/** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
readonly global: boolean;
/** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
readonly ignoreCase: boolean;
/** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
readonly multiline: boolean;
lastIndex: number;
// Non-standard extensions
compile(): this;
}
interface RegExpConstructor {
new(pattern: RegExp | string): RegExp;
new(pattern: string, flags?: string): RegExp;
(pattern: RegExp | string): RegExp;
(pattern: string, flags?: string): RegExp;
readonly prototype: RegExp;
// Non-standard extensions
$1: string;
$2: string;
$3: string;
$4: string;
$5: string;
$6: string;
$7: string;
$8: string;
$9: string;
lastMatch: string;
}
declare var RegExp: RegExpConstructor;
interface Error {
name: string;
message: string;
stack?: string;
}
interface ErrorConstructor {
new(message?: string): Error;
(message?: string): Error;
readonly prototype: Error;
}
declare var Error: ErrorConstructor;
interface EvalError extends Error {
}
interface EvalErrorConstructor {
new(message?: string): EvalError;
(message?: string): EvalError;
readonly prototype: EvalError;
}
declare var EvalError: EvalErrorConstructor;
interface RangeError extends Error {
}
interface RangeErrorConstructor {
new(message?: string): RangeError;
(message?: string): RangeError;
readonly prototype: RangeError;
}
declare var RangeError: RangeErrorConstructor;
interface ReferenceError extends Error {
}
interface ReferenceErrorConstructor {
new(message?: string): ReferenceError;
(message?: string): ReferenceError;
readonly prototype: ReferenceError;
}
declare var ReferenceError: ReferenceErrorConstructor;
interface SyntaxError extends Error {
}
interface SyntaxErrorConstructor {
new(message?: string): SyntaxError;
(message?: string): SyntaxError;
readonly prototype: SyntaxError;
}
declare var SyntaxError: SyntaxErrorConstructor;
interface TypeError extends Error {
}
interface TypeErrorConstructor {
new(message?: string): TypeError;
(message?: string): TypeError;
readonly prototype: TypeError;
}
declare var TypeError: TypeErrorConstructor;
interface URIError extends Error {
}
interface URIErrorConstructor {
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 a 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 toLocalString 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 callbackfn A function that accepts up to three arguments. The every method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(callbackfn: (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 callbackfn A function that accepts up to three arguments. The some method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(callbackfn: (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 callbackfn A function that accepts up to three arguments. The filter 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.
*/
filter<S extends T>(callbackfn: (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 callbackfn A function that accepts up to three arguments. The filter 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.
*/
filter(callbackfn: (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 element defined in an 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 toLocalString methods.
*/
toLocaleString(): string;
/**
* Removes the last element from an array and returns it.
*/
pop(): T | undefined;
/**
* Appends new elements to an array, and returns the new length of the array.
* @param items New elements of the Array.
*/
push(...items: T[]): number;
/**
* 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;
/**
* Reverses the elements in an Array.
*/
reverse(): T[];
/**
* Removes the first element from an array and returns it.
*/
shift(): T | undefined;
/**
* 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[];
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: 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.
*/
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.
*/
splice(start: number, deleteCount: number, ...items: T[]): T[];
/**
* Inserts new elements at the start of an 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.
* @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 callbackfn A function that accepts up to three arguments. The every method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(callbackfn: (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 callbackfn A function that accepts up to three arguments. The some method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(callbackfn: (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 callbackfn A function that accepts up to three arguments. The filter 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.
*/
filter<S extends T>(callbackfn: (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 callbackfn A function that accepts up to three arguments. The filter 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.
*/
filter(callbackfn: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
[n: number]: T;
}
interface ArrayConstructor {
new(arrayLength?: number): any[];
new <T>(arrayLength: number): T[];
new <T>(...items: T[]): T[];
(arrayLength?: number): any[];
<T>(arrayLength: number): T[];
<T>(...items: T[]): T[];
isArray(arg: any): arg is any[];
readonly prototype: any[];
}
declare var Array: ArrayConstructor;
interface TypedPropertyDescriptor<T> {
enumerable?: boolean;
configurable?: boolean;
writable?: boolean;
value?: T;
get?: () => T;
set?: (value: T) => void;
}
declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
declare type PromiseConstructorLike = new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
interface PromiseLike<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
}
/**
* Represents the completion of an asynchronous operation
*/
interface Promise<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
}
interface ArrayLike<T> {
readonly length: number;
readonly [n: number]: T;
}
/**
* Make all properties in T optional
*/
type Partial<T> = {
[P in keyof T]?: T[P];
};
/**
* Make all properties in T required
*/
type Required<T> = {
[P in keyof T]-?: T[P];
};
/**
* Make all properties in T readonly
*/
type Readonly<T> = {
readonly [P in keyof T]: T[P];
};
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
/**
* Construct a type with a set of properties K of type T
*/
type Record<K extends keyof any, T> = {
[P in K]: T;
};
/**
* Exclude from T those types that are assignable to U
*/
type Exclude<T, U> = T extends U ? never : T;
/**
* Extract from T those types that are assignable to U
*/
type Extract<T, U> = T extends U ? T : never;
/**
* Construct a type with the properties of T except for those in type K.
*/
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
/**
* Exclude null and undefined from T
*/
type NonNullable<T> = T extends null | undefined ? never : T;
/**
* Obtain the parameters of a function type in a tuple
*/
type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;
/**
* Obtain the parameters of a constructor function type in a tuple
*/
type ConstructorParameters<T extends new (...args: any) => any> = T extends 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 new (...args: any) => any> = T extends new (...args: any) => infer R ? R : any;
/**
* 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 {
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 callbackfn A function that accepts up to three arguments. The every method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(callbackfn: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
/**
* Returns the this object after filling the section identified by start and end with value
* @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 callbackfn A function that accepts up to three arguments. The filter 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.
*/
filter(callbackfn: (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 callbackfn A function that accepts up to three arguments. The some method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(callbackfn: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int8Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
[index: number]: number;
}
interface Int8ArrayConstructor {
readonly prototype: Int8Array;
new(length: number): Int8Array;
new(arrayOrArrayBuffer: 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 callbackfn A function that accepts up to three arguments. The every method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(callbackfn: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
/**
* Returns the this object after filling the section identified by start and end with value
* @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 callbackfn A function that accepts up to three arguments. The filter 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.
*/
filter(callbackfn: (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 callbackfn A function that accepts up to three arguments. The some method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(callbackfn: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint8Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
[index: number]: number;
}
interface Uint8ArrayConstructor {
readonly prototype: Uint8Array;
new(length: number): Uint8Array;
new(arrayOrArrayBuffer: 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 callbackfn A function that accepts up to three arguments. The every method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
/**
* Returns the this object after filling the section identified by start and end with value
* @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 callbackfn A function that accepts up to three arguments. The filter 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.
*/
filter(callbackfn: (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 callbackfn A function that accepts up to three arguments. The some method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint8ClampedArray;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
[index: number]: number;
}
interface Uint8ClampedArrayConstructor {
readonly prototype: Uint8ClampedArray;
new(length: number): Uint8ClampedArray;
new(arrayOrArrayBuffer: 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 callbackfn A function that accepts up to three arguments. The every method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(callbackfn: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
/**
* Returns the this object after filling the section identified by start and end with value
* @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 callbackfn A function that accepts up to three arguments. The filter 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.
*/
filter(callbackfn: (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 callbackfn A function that accepts up to three arguments. The some method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(callbackfn: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int16Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
[index: number]: number;
}
interface Int16ArrayConstructor {
readonly prototype: Int16Array;
new(length: number): Int16Array;
new(arrayOrArrayBuffer: 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 callbackfn A function that accepts up to three arguments. The every method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(callbackfn: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
/**
* Returns the this object after filling the section identified by start and end with value
* @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 callbackfn A function that accepts up to three arguments. The filter 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.
*/
filter(callbackfn: (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 callbackfn A function that accepts up to three arguments. The some method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(callbackfn: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint16Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
[index: number]: number;
}
interface Uint16ArrayConstructor {
readonly prototype: Uint16Array;
new(length: number): Uint16Array;
new(arrayOrArrayBuffer: 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 callbackfn A function that accepts up to three arguments. The every method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(callbackfn: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
/**
* Returns the this object after filling the section identified by start and end with value
* @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 callbackfn A function that accepts up to three arguments. The filter 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.
*/
filter(callbackfn: (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 callbackfn A function that accepts up to three arguments. The some method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(callbackfn: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
[index: number]: number;
}
interface Int32ArrayConstructor {
readonly prototype: Int32Array;
new(length: number): Int32Array;
new(arrayOrArrayBuffer: 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 callbackfn A function that accepts up to three arguments. The every method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(callbackfn: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
/**
* Returns the this object after filling the section identified by start and end with value
* @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 callbackfn A function that accepts up to three arguments. The filter 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.
*/
filter(callbackfn: (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 callbackfn A function that accepts up to three arguments. The some method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(callbackfn: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
[index: number]: number;
}
interface Uint32ArrayConstructor {
readonly prototype: Uint32Array;
new(length: number): Uint32Array;
new(arrayOrArrayBuffer: 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 callbackfn A function that accepts up to three arguments. The every method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(callbackfn: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
/**
* Returns the this object after filling the section identified by start and end with value
* @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 callbackfn A function that accepts up to three arguments. The filter 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.
*/
filter(callbackfn: (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 callbackfn A function that accepts up to three arguments. The some method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(callbackfn: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Float32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
[index: number]: number;
}
interface Float32ArrayConstructor {
readonly prototype: Float32Array;
new(length: number): Float32Array;
new(arrayOrArrayBuffer: 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 callbackfn A function that accepts up to three arguments. The every method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(callbackfn: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
/**
* Returns the this object after filling the section identified by start and end with value
* @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 callbackfn A function that accepts up to three arguments. The filter 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.
*/
filter(callbackfn: (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 callbackfn A function that accepts up to three arguments. The some method calls
* the callbackfn function for each element in the array until the callbackfn 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 callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(callbackfn: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Float64Array;
toString(): string;
[index: number]: number;
}
interface Float64ArrayConstructor {
readonly prototype: Float64Array;
new(length: number): Float64Array;
new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Float64Array;
new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Float64Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
}
declare var Float64Array: Float64ArrayConstructor;
/////////////////////////////
/// ECMAScript Internationalization API
/////////////////////////////
declare namespace Intl {
interface CollatorOptions {
usage?: string;
localeMatcher?: string;
numeric?: boolean;
caseFirst?: string;
sensitivity?: string;
ignorePunctuation?: boolean;
}
interface ResolvedCollatorOptions {
locale: string;
usage: string;
sensitivity: string;
ignorePunctuation: boolean;
collation: string;
caseFirst: string;
numeric: boolean;
}
interface Collator {
compare(x: string, y: string): number;
resolvedOptions(): ResolvedCollatorOptions;
}
var Collator: {
new(locales?: string | string[], options?: CollatorOptions): Collator;
(locales?: string | string[], options?: CollatorOptions): Collator;
supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
};
interface NumberFormatOptions {
localeMatcher?: string;
style?: string;
currency?: string;
currencyDisplay?: string;
useGrouping?: boolean;
minimumIntegerDigits?: number;
minimumFractionDigits?: number;
maximumFractionDigits?: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
}
interface ResolvedNumberFormatOptions {
locale: string;
numberingSystem: string;
style: string;
currency?: string;
currencyDisplay?: string;
minimumIntegerDigits: number;
minimumFractionDigits: number;
maximumFractionDigits: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
useGrouping: boolean;
}
interface NumberFormat {
format(value: number): string;
resolvedOptions(): ResolvedNumberFormatOptions;
}
var NumberFormat: {
new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
};
interface DateTimeFormatOptions {
localeMatcher?: string;
weekday?: string;
era?: string;
year?: string;
month?: string;
day?: string;
hour?: string;
minute?: string;
second?: string;
timeZoneName?: string;
formatMatcher?: string;
hour12?: boolean;
timeZone?: string;
}
interface ResolvedDateTimeFormatOptions {
locale: string;
calendar: string;
numberingSystem: string;
timeZone: string;
hour12?: boolean;
weekday?: string;
era?: string;
year?: string;
month?: string;
day?: string;
hour?: string;
minute?: string;
second?: string;
timeZoneName?: string;
}
interface DateTimeFormat {
format(date?: Date | number): string;
resolvedOptions(): ResolvedDateTimeFormatOptions;
}
var DateTimeFormat: {
new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
};
}
interface String {
/**
* Determines whether two strings are equivalent in the current or specified locale.
* @param that String to compare to target string
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
* @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
*/
localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
}
interface Number {
/**
* Converts a number to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
}
interface Date {
/**
* Converts a date and time to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a date to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a time to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
}
`,Bc=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
`+vc+""+su+""+Iu+""+ou+""+_c+""+$l+""+Rc+""+Ss+""+Mc+""+Nl+"",uu=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
`+Bc+""+Gc+""+lu+""+Fc+""+cu+"",du=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
`+vc+""+Gc+""+Fc+""+cu+"",ec={NAME:"defaultLib:lib.d.ts",CONTENTS:du},Vc={NAME:"defaultLib:lib.es6.d.ts",CONTENTS:uu},al=function(){function l(E,M){this._extraLibs=Object.create(null),this._languageService=zs.c(this),this._ctx=E,this._compilerOptions=M.compilerOptions,this._extraLibs=M.extraLibs}return l.prototype.getCompilationSettings=function(){return this._compilerOptions},l.prototype.getScriptFileNames=function(){var E=this._ctx.getMirrorModels().map(function(M){return M.uri.toString()});return E.concat(Object.keys(this._extraLibs))},l.prototype._getModel=function(E){for(var M=this._ctx.getMirrorModels(),Me=0;Me<M.length;Me++)if(M[Me].uri.toString()===E)return M[Me];return null},l.prototype.getScriptVersion=function(E){var M=this._getModel(E);return M?M.version.toString():this.isDefaultLibFileName(E)?"1":E in this._extraLibs?String(this._extraLibs[E].version):""},l.prototype.getScriptSnapshot=function(E){var M,Me=this._getModel(E);if(Me)M=Me.getValue();else if(E in this._extraLibs)M=this._extraLibs[E].content;else if(E===ec.NAME)M=ec.CONTENTS;else if(E===Vc.NAME)M=Vc.CONTENTS;else return;return{getText:function(fn,Wn){return M.substring(fn,Wn)},getLength:function(){return M.length},getChangeRange:function(){return}}},l.prototype.getScriptKind=function(E){var M=E.substr(E.lastIndexOf(".")+1);switch(M){case"ts":return zs.a.TS;case"tsx":return zs.a.TSX;case"js":return zs.a.JS;case"jsx":return zs.a.JSX;default:return this.getCompilationSettings().allowJs?zs.a.JS:zs.a.TS}},l.prototype.getCurrentDirectory=function(){return""},l.prototype.getDefaultLibFileName=function(E){return(E.target||zs.b.ES5)<=zs.b.ES5?ec.NAME:Vc.NAME},l.prototype.isDefaultLibFileName=function(E){return E===this.getDefaultLibFileName(this._compilerOptions)},l.clearFiles=function(E){return E.forEach(function(M){M.file=void 0;var Me=M.relatedInformation;Me&&Me.forEach(function(on){return on.file=void 0})}),E},l.prototype.getSyntacticDiagnostics=function(E){var M=this._languageService.getSyntacticDiagnostics(E);return Promise.resolve(l.clearFiles(M))},l.prototype.getSemanticDiagnostics=function(E){var M=this._languageService.getSemanticDiagnostics(E);return Promise.resolve(l.clearFiles(M))},l.prototype.getSuggestionDiagnostics=function(E){var M=this._languageService.getSuggestionDiagnostics(E);return Promise.resolve(l.clearFiles(M))},l.prototype.getCompilerOptionsDiagnostics=function(E){var M=this._languageService.getCompilerOptionsDiagnostics();return Promise.resolve(l.clearFiles(M))},l.prototype.getCompletionsAtPosition=function(E,M){return Promise.resolve(this._languageService.getCompletionsAtPosition(E,M,void 0))},l.prototype.getCompletionEntryDetails=function(E,M,Me){return Promise.resolve(this._languageService.getCompletionEntryDetails(E,M,Me,void 0,void 0,void 0))},l.prototype.getSignatureHelpItems=function(E,M){return Promise.resolve(this._languageService.getSignatureHelpItems(E,M,void 0))},l.prototype.getQuickInfoAtPosition=function(E,M){return Promise.resolve(this._languageService.getQuickInfoAtPosition(E,M))},l.prototype.getOccurrencesAtPosition=function(E,M){return Promise.resolve(this._languageService.getOccurrencesAtPosition(E,M))},l.prototype.getDefinitionAtPosition=function(E,M){return Promise.resolve(this._languageService.getDefinitionAtPosition(E,M))},l.prototype.getReferencesAtPosition=function(E,M){return Promise.resolve(this._languageService.getReferencesAtPosition(E,M))},l.prototype.getNavigationBarItems=function(E){return Promise.resolve(this._languageService.getNavigationBarItems(E))},l.prototype.getFormattingEditsForDocument=function(E,M){return Promise.resolve(this._languageService.getFormattingEditsForDocument(E,M))},l.prototype.getFormattingEditsForRange=function(E,M,Me,on){return Promise.resolve(this._languageService.getFormattingEditsForRange(E,M,Me,on))},l.prototype.getFormattingEditsAfterKeystroke=function(E,M,Me,on){return Promise.resolve(this._languageService.getFormattingEditsAfterKeystroke(E,M,Me,on))},l.prototype.findRenameLocations=function(E,M,Me,on,fn){return Promise.resolve(this._languageService.findRenameLocations(E,M,Me,on,fn))},l.prototype.getRenameInfo=function(E,M,Me){return Promise.resolve(this._languageService.getRenameInfo(E,M,Me))},l.prototype.getEmitOutput=function(E){return Promise.resolve(this._languageService.getEmitOutput(E))},l.prototype.getCodeFixesAtPosition=function(E,M,Me,on,fn){var Wn={};return Promise.resolve(this._languageService.getCodeFixesAtPosition(E,M,Me,on,fn,Wn))},l.prototype.updateExtraLibs=function(E){this._extraLibs=E},l}();function Xs(l,E){return new al(l,E)}self.onmessage=function(){Zl(function(l,E){return new al(l,E)})}},GP9Q:function(ru,Ui,Yi){"use strict";(function(ni,po,os){Yi.d(Ui,"c",function(){return Aa}),Yi.d(Ui,"a",function(){return Nd}),Yi.d(Ui,"b",function(){return Lu});/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var Or=function(){for(var e=0,o=0,F=arguments.length;o<F;o++)e+=arguments[o].length;for(var qe=Array(e),Se=0,o=0;o<F;o++)for(var Fe=arguments[o],He=0,ve=Fe.length;He<ve;He++,Se++)qe[Se]=Fe[He];return qe},ma=function(){return ma=Object.assign||function(e){for(var o,F=1,qe=arguments.length;F<qe;F++){o=arguments[F];for(var Se in o)Object.prototype.hasOwnProperty.call(o,Se)&&(e[Se]=o[Se])}return e},ma.apply(this,arguments)},Vr=function(e,o){var F={label:0,sent:function(){if(Fe[0]&1)throw Fe[1];return Fe[1]},trys:[],ops:[]},qe,Se,Fe,He;return He={next:ve(0),throw:ve(1),return:ve(2)},typeof Symbol=="function"&&(He[Symbol.iterator]=function(){return this}),He;function ve(d){return function(H){return ie([d,H])}}function ie(d){if(qe)throw new TypeError("Generator is already executing.");for(;F;)try{if(qe=1,Se&&(Fe=d[0]&2?Se.return:d[0]?Se.throw||((Fe=Se.return)&&Fe.call(Se),0):Se.next)&&!(Fe=Fe.call(Se,d[1])).done)return Fe;(Se=0,Fe)&&(d=[d[0]&2,Fe.value]);switch(d[0]){case 0:case 1:Fe=d;break;case 4:return F.label++,{value:d[1],done:!1};case 5:F.label++,Se=d[1],d=[0];continue;case 7:d=F.ops.pop(),F.trys.pop();continue;default:if(!(Fe=F.trys,Fe=Fe.length>0&&Fe[Fe.length-1])&&(d[0]===6||d[0]===2)){F=0;continue}if(d[0]===3&&(!Fe||d[1]>Fe[0]&&d[1]<Fe[3])){F.label=d[1];break}if(d[0]===6&&F.label<Fe[1]){F.label=Fe[1],Fe=d;break}if(Fe&&F.label<Fe[2]){F.label=Fe[2],F.ops.push(d);break}Fe[2]&&F.ops.pop(),F.trys.pop();continue}d=o.call(e,F)}catch(H){d=[6,H],Se=0}finally{qe=Fe=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},bi=function(e,o){return Object.defineProperty?Object.defineProperty(e,"raw",{value:o}):e.raw=o,e},Mi=function(){var e=function(F,qe){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Se,Fe){Se.__proto__=Fe}||function(Se,Fe){for(var He in Fe)Fe.hasOwnProperty(He)&&(Se[He]=Fe[He])},e(F,qe)};return function(o,F){e(o,F);function qe(){this.constructor=o}o.prototype=F===null?Object.create(F):(qe.prototype=F.prototype,new qe)}}(),ln;(function(e){function o(){function F(){var Se=Object.create(null);return Se.__=void 0,delete Se.__,Se}var qe=function(){function Se(Fe,He){this.currentEntry=Fe,this.selector=He}return Se.prototype.next=function(){for(;this.currentEntry;){var Fe=!!this.currentEntry.skipNext;if(this.currentEntry=this.currentEntry.nextEntry,!Fe)break}return this.currentEntry?{value:this.selector(this.currentEntry.key,this.currentEntry.value),done:!1}:{value:void 0,done:!0}},Se}();return function(){function Se(){this.data=F(),this.size=0,this.firstEntry={},this.lastEntry=this.firstEntry}return Se.prototype.get=function(Fe){var He=this.data[Fe];return He&&He.value},Se.prototype.set=function(Fe,He){if(this.has(Fe))this.data[Fe].value=He;else{this.size++;var ve={key:Fe,value:He};this.data[Fe]=ve;var ie=this.lastEntry;ie.nextEntry=ve,ve.previousEntry=ie,this.lastEntry=ve}return this},Se.prototype.has=function(Fe){return Fe in this.data},Se.prototype.delete=function(Fe){if(this.has(Fe)){this.size--;var He=this.data[Fe];delete this.data[Fe];var ve=He.previousEntry;return ve.nextEntry=He.nextEntry,He.nextEntry&&(He.nextEntry.previousEntry=ve),this.lastEntry===He&&(this.lastEntry=ve),He.previousEntry=void 0,He.nextEntry=ve,He.skipNext=!0,!0}return!1},Se.prototype.clear=function(){this.data=F(),this.size=0;for(var Fe=this.firstEntry,He=Fe.nextEntry;He;){var ve=He.nextEntry;He.previousEntry=void 0,He.nextEntry=Fe,He.skipNext=!0,He=ve}Fe.nextEntry=void 0,this.lastEntry=Fe},Se.prototype.keys=function(){return new qe(this.firstEntry,function(Fe){return Fe})},Se.prototype.values=function(){return new qe(this.firstEntry,function(Fe,He){return He})},Se.prototype.entries=function(){return new qe(this.firstEntry,function(Fe,He){return[Fe,He]})},Se.prototype.forEach=function(Fe){for(var He=this.entries();;){var ve=He.next();if(ve.done)break;var ie=ve.value,d=ie[0],H=ie[1];Fe(H,d)}},Se}()}e.createMapShim=o})(ln||(ln={}));var ln;(function(e){e.versionMajorMinor="3.7",e.version=e.versionMajorMinor+".5"})(ln||(ln={})),function(e){var o;(function(F){F[F.LessThan=-1]="LessThan",F[F.EqualTo=0]="EqualTo",F[F.GreaterThan=1]="GreaterThan"})(o=e.Comparison||(e.Comparison={}))}(ln||(ln={})),function(e){function o(){return typeof Map!="undefined"&&"entries"in Map.prototype?Map:void 0}e.tryGetNativeMap=o}(ln||(ln={})),function(e){e.emptyArray=[],e.Map=e.tryGetNativeMap()||function(){if(typeof e.createMapShim=="function")return e.createMapShim();throw new Error("TypeScript requires an environment that provides a compatible native Map implementation.")}();function o(){return new e.Map}e.createMap=o;function F(tn){for(var vn=o(),Ln=0,Bn=tn;Ln<Bn.length;Ln++){var Pt=Bn[Ln],rr=Pt[0],cr=Pt[1];vn.set(rr,cr)}return vn}e.createMapFromEntries=F;function qe(tn){var vn=new e.Map;for(var Ln in tn)O.call(tn,Ln)&&vn.set(Ln,tn[Ln]);return vn}e.createMapFromTemplate=qe;function Se(tn){return tn?tn.length:0}e.length=Se;function Fe(tn,vn){if(tn)for(var Ln=0;Ln<tn.length;Ln++){var Bn=vn(tn[Ln],Ln);if(Bn)return Bn}return}e.forEach=Fe;function He(tn,vn){if(tn)for(var Ln=tn.length-1;Ln>=0;Ln--){var Bn=vn(tn[Ln],Ln);if(Bn)return Bn}return}e.forEachRight=He;function ve(tn,vn){if(tn===void 0)return;for(var Ln=0;Ln<tn.length;Ln++){var Bn=vn(tn[Ln],Ln);if(Bn!==void 0)return Bn}return}e.firstDefined=ve;function ie(tn,vn){for(;;){var Ln=tn.next();if(Ln.done)return;var Bn=vn(Ln.value);if(Bn!==void 0)return Bn}}e.firstDefinedIterator=ie;function d(tn,vn,Ln){var Bn=[];e.Debug.assertEqual(tn.length,vn.length);for(var Pt=0;Pt<tn.length;Pt++)Bn.push(Ln(tn[Pt],vn[Pt],Pt));return Bn}e.zipWith=d;function H(tn,vn){e.Debug.assertEqual(tn.length,vn.length);var Ln=0;return{next:function(){return Ln===tn.length?{value:void 0,done:!0}:(Ln++,{value:[tn[Ln-1],vn[Ln-1]],done:!1})}}}e.zipToIterator=H;function Pe(tn,vn){e.Debug.assert(tn.length===vn.length);for(var Ln=o(),Bn=0;Bn<tn.length;++Bn)Ln.set(tn[Bn],vn[Bn]);return Ln}e.zipToMap=Pe;function I(tn,vn){if(tn){for(var Ln=0;Ln<tn.length;Ln++)if(!vn(tn[Ln],Ln))return!1}return!0}e.every=I;function _e(tn,vn){for(var Ln=0;Ln<tn.length;Ln++){var Bn=tn[Ln];if(vn(Bn,Ln))return Bn}return}e.find=_e;function re(tn,vn){for(var Ln=tn.length-1;Ln>=0;Ln--){var Bn=tn[Ln];if(vn(Bn,Ln))return Bn}return}e.findLast=re;function se(tn,vn,Ln){for(var Bn=Ln||0;Bn<tn.length;Bn++)if(vn(tn[Bn],Bn))return Bn;return-1}e.findIndex=se;function w(tn,vn,Ln){for(var Bn=Ln===void 0?tn.length-1:Ln;Bn>=0;Bn--)if(vn(tn[Bn],Bn))return Bn;return-1}e.findLastIndex=w;function k(tn,vn){for(var Ln=0;Ln<tn.length;Ln++){var Bn=vn(tn[Ln],Ln);if(Bn)return Bn}return e.Debug.fail()}e.findMap=k;function P(tn,vn,Ln){if(Ln===void 0&&(Ln=gt),tn)for(var Bn=0,Pt=tn;Bn<Pt.length;Bn++){var rr=Pt[Bn];if(Ln(rr,vn))return!0}return!1}e.contains=P;function h(tn,vn,Ln){return Ln===void 0&&(Ln=gt),tn.length===vn.length&&tn.every(function(Bn,Pt){return Ln(Bn,vn[Pt])})}e.arraysEqual=h;function Y(tn,vn,Ln){for(var Bn=Ln||0;Bn<tn.length;Bn++)if(P(vn,tn.charCodeAt(Bn)))return Bn;return-1}e.indexOfAnyCharCode=Y;function ne(tn,vn){var Ln=0;if(tn)for(var Bn=0;Bn<tn.length;Bn++){var Pt=tn[Bn];vn(Pt,Bn)&&Ln++}return Ln}e.countWhere=ne;function $(tn,vn){if(tn){for(var Ln=tn.length,Bn=0;Bn<Ln&&vn(tn[Bn]);)Bn++;if(Bn<Ln){var Pt=tn.slice(0,Bn);for(Bn++;Bn<Ln;){var rr=tn[Bn];vn(rr)&&Pt.push(rr),Bn++}return Pt}}return tn}e.filter=$;function J(tn,vn){for(var Ln=0,Bn=0;Bn<tn.length;Bn++)vn(tn[Bn],Bn,tn)&&(tn[Ln]=tn[Bn],Ln++);tn.length=Ln}e.filterMutate=J;function fe(tn){tn.length=0}e.clear=fe;function R(tn,vn){var Ln;if(tn){Ln=[];for(var Bn=0;Bn<tn.length;Bn++)Ln.push(vn(tn[Bn],Bn))}return Ln}e.map=R;function K(tn,vn){return{next:function(){var Bn=tn.next();return Bn.done?Bn:{value:vn(Bn.value),done:!1}}}}e.mapIterator=K;function z(tn,vn){if(tn)for(var Ln=0;Ln<tn.length;Ln++){var Bn=tn[Ln],Pt=vn(Bn,Ln);if(Bn!==Pt){var rr=tn.slice(0,Ln);for(rr.push(Pt),Ln++;Ln<tn.length;Ln++)rr.push(vn(tn[Ln],Ln));return rr}}return tn}e.sameMap=z;function Ee(tn){for(var vn=[],Ln=0,Bn=tn;Ln<Bn.length;Ln++){var Pt=Bn[Ln];Pt&&(dt(Pt)?x(vn,Pt):vn.push(Pt))}return vn}e.flatten=Ee;function B(tn,vn){var Ln;if(tn)for(var Bn=0;Bn<tn.length;Bn++){var Pt=vn(tn[Bn],Bn);Pt&&(dt(Pt)?Ln=x(Ln,Pt):Ln=be(Ln,Pt))}return Ln||e.emptyArray}e.flatMap=B;function V(tn,vn){var Ln=[];if(tn)for(var Bn=0;Bn<tn.length;Bn++){var Pt=vn(tn[Bn],Bn);Pt&&(dt(Pt)?x(Ln,Pt):Ln.push(Pt))}return Ln}e.flatMapToMutable=V;function m(tn,vn){var Ln=tn.next();if(Ln.done)return e.emptyIterator;var Bn=Pt(Ln.value);return{next:function(){for(;;){var cr=Bn.next();if(!cr.done)return cr;var Cr=tn.next();if(Cr.done)return Cr;Bn=Pt(Cr.value)}}};function Pt(rr){var cr=vn(rr);return cr===void 0?e.emptyIterator:dt(cr)?Pn(cr):cr}}e.flatMapIterator=m;function y(tn,vn){var Ln;if(tn)for(var Bn=0;Bn<tn.length;Bn++){var Pt=tn[Bn],rr=vn(Pt,Bn);(Ln||Pt!==rr||dt(rr))&&(Ln||(Ln=tn.slice(0,Bn)),dt(rr)?x(Ln,rr):Ln.push(rr))}return Ln||tn}e.sameFlatMap=y;function L(tn,vn){for(var Ln=[],Bn=0;Bn<tn.length;Bn++){var Pt=vn(tn[Bn],Bn);if(Pt===void 0)return;Ln.push(Pt)}return Ln}e.mapAllOrFail=L;function C(tn,vn){var Ln=[];if(tn)for(var Bn=0;Bn<tn.length;Bn++){var Pt=vn(tn[Bn],Bn);Pt!==void 0&&Ln.push(Pt)}return Ln}e.mapDefined=C;function _(tn,vn){return{next:function(){for(;;){var Bn=tn.next();if(Bn.done)return Bn;var Pt=vn(Bn.value);if(Pt!==void 0)return{value:Pt,done:!1}}}}}e.mapDefinedIterator=_,e.emptyIterator={next:function(){return{value:void 0,done:!0}}};function b(tn){var vn=!1;return{next:function(){var Bn=vn;return vn=!0,Bn?{value:void 0,done:!0}:{value:tn,done:!1}}}}e.singleIterator=b;function D(tn,vn,Ln){var Bn;if(tn){Bn=[];for(var Pt=tn.length,rr=void 0,cr=void 0,Cr=0,Ya=0;Cr<Pt;){for(;Ya<Pt;){var Oa=tn[Ya];if(cr=vn(Oa,Ya),Ya===0)rr=cr;else if(cr!==rr)break;Ya++}if(Cr<Ya){var Ni=Ln(tn.slice(Cr,Ya),rr,Cr,Ya);Ni&&Bn.push(Ni),Cr=Ya}rr=cr,Ya++}}return Bn}e.spanMap=D;function T(tn,vn){if(!tn)return;var Ln=o();return tn.forEach(function(Bn,Pt){var rr=vn(Pt,Bn),cr=rr[0],Cr=rr[1];Ln.set(cr,Cr)}),Ln}e.mapEntries=T;function Q(tn,vn){if(tn)if(vn)for(var Ln=0,Bn=tn;Ln<Bn.length;Ln++){var Pt=Bn[Ln];if(vn(Pt))return!0}else return tn.length>0;return!1}e.some=Q;function N(tn,vn,Ln){for(var Bn,Pt=0;Pt<tn.length;Pt++)vn(tn[Pt])?Bn=Bn===void 0?Pt:Bn:Bn!==void 0&&(Ln(Bn,Pt),Bn=void 0);Bn!==void 0&&Ln(Bn,tn.length)}e.getRangesWhere=N;function X(tn,vn){return Q(vn)?Q(tn)?Or(tn,vn):vn:tn}e.concatenate=X;function pe(tn,vn,Ln){var Bn=tn.map(function(Oa,Ni){return Ni});a(tn,Bn,Ln);for(var Pt=tn[Bn[0]],rr=[Bn[0]],cr=1;cr<Bn.length;cr++){var Cr=Bn[cr],Ya=tn[Cr];vn(Pt,Ya)||(rr.push(Cr),Pt=Ya)}return rr.sort(),rr.map(function(Oa){return tn[Oa]})}function S(tn,vn){for(var Ln=[],Bn=0,Pt=tn;Bn<Pt.length;Bn++){var rr=Pt[Bn];j(Ln,rr,vn)}return Ln}function v(tn,vn,Ln){return tn.length===0?[]:tn.length===1?tn.slice():Ln?pe(tn,vn,Ln):S(tn,vn)}e.deduplicate=v;function U(tn,vn){if(tn.length===0)return e.emptyArray;for(var Ln=tn[0],Bn=[Ln],Pt=1;Pt<tn.length;Pt++){var rr=tn[Pt];switch(vn(rr,Ln)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}Bn.push(Ln=rr)}return Bn}function de(tn,vn,Ln){if(tn.length===0){tn.push(vn);return}var Bn=ke(tn,vn,It,Ln);Bn<0&&tn.splice(~Bn,0,vn)}e.insertSorted=de;function Ce(tn,vn,Ln){return U(en(tn,vn),Ln||vn||yt)}e.sortAndDeduplicate=Ce;function Z(tn,vn,Ln){if(Ln===void 0&&(Ln=gt),!tn||!vn)return tn===vn;if(tn.length!==vn.length)return!1;for(var Bn=0;Bn<tn.length;Bn++)if(!Ln(tn[Bn],vn[Bn],Bn))return!1;return!0}e.arrayIsEqualTo=Z;function Re(tn){var vn;if(tn)for(var Ln=0;Ln<tn.length;Ln++){var Bn=tn[Ln];(vn||!Bn)&&(vn||(vn=tn.slice(0,Ln)),Bn&&vn.push(Bn))}return vn||tn}e.compact=Re;function Ae(tn,vn,Ln){if(!vn||!tn||vn.length===0||tn.length===0)return vn;var Bn=[];e:for(var Pt=0,rr=0;rr<vn.length;rr++){rr>0&&e.Debug.assertGreaterThanOrEqual(Ln(vn[rr],vn[rr-1]),0);n:for(var cr=Pt;Pt<tn.length;Pt++){Pt>cr&&e.Debug.assertGreaterThanOrEqual(Ln(tn[Pt],tn[Pt-1]),0);switch(Ln(vn[rr],tn[Pt])){case-1:Bn.push(vn[rr]);continue e;case 0:continue e;case 1:continue n}}}return Bn}e.relativeComplement=Ae;function We(tn,vn){for(var Ln=0,Bn=0,Pt=tn;Bn<Pt.length;Bn++){var rr=Pt[Bn];Ln+=rr[vn]}return Ln}e.sum=We;function be(tn,vn){return vn===void 0?tn:tn===void 0?[vn]:(tn.push(vn),tn)}e.append=be;function Ge(tn,vn){return vn<0?tn.length+vn:vn}function x(tn,vn,Ln,Bn){if(vn===void 0||vn.length===0)return tn;if(tn===void 0)return vn.slice(Ln,Bn);Ln=Ln===void 0?0:Ge(vn,Ln),Bn=Bn===void 0?vn.length:Ge(vn,Bn);for(var Pt=Ln;Pt<Bn&&Pt<vn.length;Pt++)vn[Pt]!==void 0&&tn.push(vn[Pt]);return tn}e.addRange=x;function j(tn,vn,Ln){return P(tn,vn,Ln)?!1:(tn.push(vn),!0)}e.pushIfUnique=j;function Oe(tn,vn,Ln){return tn?(j(tn,vn,Ln),tn):[vn]}e.appendIfUnique=Oe;function a(tn,vn,Ln){vn.sort(function(Bn,Pt){return Ln(tn[Bn],tn[Pt])||Ut(Bn,Pt)})}function en(tn,vn){return tn.length===0?tn:tn.slice().sort(vn)}e.sort=en;function Pn(tn){var vn=0;return{next:function(){return vn===tn.length?{value:void 0,done:!0}:(vn++,{value:tn[vn-1],done:!1})}}}e.arrayIterator=Pn;function Xn(tn){var vn=tn.length;return{next:function(){return vn===0?{value:void 0,done:!0}:(vn--,{value:tn[vn],done:!1})}}}e.arrayReverseIterator=Xn;function ae(tn,vn){var Ln=tn.map(function(Bn,Pt){return Pt});return a(tn,Ln,vn),Ln.map(function(Bn){return tn[Bn]})}e.stableSort=ae;function ce(tn,vn,Ln,Bn){for(;Ln<Bn;){if(tn[Ln]!==vn[Ln])return!1;Ln++}return!0}e.rangeEquals=ce;function Le(tn,vn){return tn&&(vn=Ge(tn,vn),vn<tn.length)?tn[vn]:void 0}e.elementAt=Le;function Je(tn){return tn.length===0?void 0:tn[0]}e.firstOrUndefined=Je;function Ze(tn){return e.Debug.assert(tn.length!==0),tn[0]}e.first=Ze;function Ue(tn){return tn.length===0?void 0:tn[tn.length-1]}e.lastOrUndefined=Ue;function cn(tn){return e.Debug.assert(tn.length!==0),tn[tn.length-1]}e.last=cn;function $e(tn){return tn&&tn.length===1?tn[0]:void 0}e.singleOrUndefined=$e;function sn(tn){return tn&&tn.length===1?tn[0]:tn}e.singleOrMany=sn;function he(tn,vn,Ln){var Bn=tn.slice(0);return Bn[vn]=Ln,Bn}e.replaceElement=he;function ke(tn,vn,Ln,Bn,Pt){return G(tn,Ln(vn),Ln,Bn,Pt)}e.binarySearch=ke;function G(tn,vn,Ln,Bn,Pt){if(!Q(tn))return-1;for(var rr=Pt||0,cr=tn.length-1;rr<=cr;){var Cr=rr+(cr-rr>>1),Ya=Ln(tn[Cr]);switch(Bn(Ya,vn)){case-1:rr=Cr+1;break;case 0:return Cr;case 1:cr=Cr-1;break}}return~rr}e.binarySearchKey=G;function c(tn,vn,Ln,Bn,Pt){if(tn&&tn.length>0){var rr=tn.length;if(rr>0){var cr=Bn===void 0||Bn<0?0:Bn,Cr=Pt===void 0||cr+Pt>rr-1?rr-1:cr+Pt,Ya=void 0;for(arguments.length<=2?(Ya=tn[cr],cr++):Ya=Ln;cr<=Cr;)Ya=vn(Ya,tn[cr],cr),cr++;return Ya}}return Ln}e.reduceLeft=c;var O=Object.prototype.hasOwnProperty;function ee(tn,vn){return O.call(tn,vn)}e.hasProperty=ee;function Te(tn,vn){return O.call(tn,vn)?tn[vn]:void 0}e.getProperty=Te;function Ne(tn){var vn=[];for(var Ln in tn)O.call(tn,Ln)&&vn.push(Ln);return vn}e.getOwnKeys=Ne;function ze(tn){var vn=[];do for(var Ln=Object.getOwnPropertyNames(tn),Bn=0,Pt=Ln;Bn<Pt.length;Bn++){var rr=Pt[Bn];j(vn,rr)}while(tn=Object.getPrototypeOf(tn));return vn}e.getAllKeys=ze;function bn(tn){var vn=[];for(var Ln in tn)O.call(tn,Ln)&&vn.push(tn[Ln]);return vn}e.getOwnValues=bn;function Sn(tn,vn){for(var Ln=[],Bn=tn.next();!Bn.done;Bn=tn.next())Ln.push(vn?vn(Bn.value):Bn.value);return Ln}e.arrayFrom=Sn;function Kn(tn){for(var vn=[],Ln=1;Ln<arguments.length;Ln++)vn[Ln-1]=arguments[Ln];for(var Bn=0,Pt=vn;Bn<Pt.length;Bn++){var rr=Pt[Bn];if(rr===void 0)continue;for(var cr in rr)ee(rr,cr)&&(tn[cr]=rr[cr])}return tn}e.assign=Kn;function Xe(tn,vn,Ln){if(Ln===void 0&&(Ln=gt),tn===vn)return!0;if(!tn||!vn)return!1;for(var Bn in tn)if(O.call(tn,Bn)){if(!O.call(vn,Bn))return!1;if(!Ln(tn[Bn],vn[Bn]))return!1}for(var Bn in vn)if(O.call(vn,Bn)&&!O.call(tn,Bn))return!1;return!0}e.equalOwnProperties=Xe;function pn(tn,vn,Ln){Ln===void 0&&(Ln=It);for(var Bn=o(),Pt=0,rr=tn;Pt<rr.length;Pt++){var cr=rr[Pt],Cr=vn(cr);Cr!==void 0&&Bn.set(Cr,Ln(cr))}return Bn}e.arrayToMap=pn;function le(tn,vn,Ln){Ln===void 0&&(Ln=It);for(var Bn=[],Pt=0,rr=tn;Pt<rr.length;Pt++){var cr=rr[Pt];Bn[vn(cr)]=Ln(cr)}return Bn}e.arrayToNumericMap=le;function oe(tn,vn,Ln){Ln===void 0&&(Ln=It);for(var Bn=tt(),Pt=0,rr=tn;Pt<rr.length;Pt++){var cr=rr[Pt];Bn.add(vn(cr),Ln(cr))}return Bn}e.arrayToMultiMap=oe;function kn(tn,vn){return Sn(oe(tn,vn).values())}e.group=kn;function yn(tn){var vn={};for(var Ln in tn)O.call(tn,Ln)&&(vn[Ln]=tn[Ln]);return vn}e.clone=yn;function ye(tn,vn){var Ln={};for(var Bn in vn)O.call(vn,Bn)&&(Ln[Bn]=vn[Bn]);for(var Bn in tn)O.call(tn,Bn)&&(Ln[Bn]=tn[Bn]);return Ln}e.extend=ye;function mn(tn,vn){for(var Ln in vn)O.call(vn,Ln)&&(tn[Ln]=vn[Ln])}e.copyProperties=mn;function un(tn,vn){return vn?vn.bind(tn):void 0}e.maybeBind=un;function Mn(tn,vn){var Ln=o();return tn.forEach(function(Bn,Pt){return Ln.set.apply(Ln,vn(Bn,Pt))}),Ln}e.mapMap=Mn;function tt(){var tn=o();return tn.add=Vn,tn.remove=ut,tn}e.createMultiMap=tt;function Vn(tn,vn){var Ln=this.get(tn);return Ln?Ln.push(vn):this.set(tn,Ln=[vn]),Ln}function ut(tn,vn){var Ln=this.get(tn);Ln&&(uo(Ln,vn),Ln.length||this.delete(tn))}function dt(tn){return Array.isArray?Array.isArray(tn):tn instanceof Array}e.isArray=dt;function ot(tn){return dt(tn)?tn:[tn]}e.toArray=ot;function ct(tn){return typeof tn=="string"}e.isString=ct;function wt(tn){return typeof tn=="number"}e.isNumber=wt;function st(tn,vn){return tn!==void 0&&vn(tn)?tn:void 0}e.tryCast=st;function qn(tn,vn){return tn!==void 0&&vn(tn)?tn:e.Debug.fail("Invalid cast. The supplied value "+tn+" did not pass the test '"+e.Debug.getFunctionName(vn)+"'.")}e.cast=qn;function Ie(tn){}e.noop=Ie;function De(){return!1}e.returnFalse=De;function _n(){return!0}e.returnTrue=_n;function _t(){return}e.returnUndefined=_t;function It(tn){return tn}e.identity=It;function Ht(tn){return tn.toLowerCase()}e.toLowerCase=Ht;function nr(){throw new Error("Not implemented")}e.notImplemented=nr;function vr(tn){var vn;return function(){return tn&&(vn=tn(),tn=void 0),vn}}e.memoize=vr;function Qr(tn,vn,Ln,Bn,Pt){if(Pt){for(var rr=[],cr=0;cr<arguments.length;cr++)rr[cr]=arguments[cr];return function(Cr){return c(rr,function(Ya,Oa){return Oa(Ya)},Cr)}}else return Bn?function(Cr){return Bn(Ln(vn(tn(Cr))))}:Ln?function(Cr){return Ln(vn(tn(Cr)))}:vn?function(Cr){return vn(tn(Cr))}:tn?function(Cr){return tn(Cr)}:function(Cr){return Cr}}e.compose=Qr;var Wr;(function(tn){tn[tn.None=0]="None",tn[tn.Normal=1]="Normal",tn[tn.Aggressive=2]="Aggressive",tn[tn.VeryAggressive=3]="VeryAggressive"})(Wr=e.AssertionLevel||(e.AssertionLevel={}));function gt(tn,vn){return tn===vn}e.equateValues=gt;function ba(tn,vn){return tn===vn||tn!==void 0&&vn!==void 0&&tn.toUpperCase()===vn.toUpperCase()}e.equateStringsCaseInsensitive=ba;function kt(tn,vn){return gt(tn,vn)}e.equateStringsCaseSensitive=kt;function jn(tn,vn){return tn===vn?0:tn===void 0?-1:vn===void 0?1:tn<vn?-1:1}function Ut(tn,vn){return jn(tn,vn)}e.compareValues=Ut;function ft(tn,vn,Ln){return Ln(tn,vn)===-1?tn:vn}e.min=ft;function Tt(tn,vn){return tn===vn?0:tn===void 0?-1:vn===void 0?1:(tn=tn.toUpperCase(),vn=vn.toUpperCase(),tn<vn?-1:tn>vn?1:0)}e.compareStringsCaseInsensitive=Tt;function yt(tn,vn){return jn(tn,vn)}e.compareStringsCaseSensitive=yt;function vt(tn){return tn?Tt:yt}e.getStringComparer=vt;var Ke=function(){var tn,vn,Ln=Cr();return Ya;function Bn(Oa,Ni,ii){if(Oa===Ni)return 0;if(Oa===void 0)return-1;if(Ni===void 0)return 1;var _i=ii(Oa,Ni);return _i<0?-1:_i>0?1:0}function Pt(Oa){var Ni=new Intl.Collator(Oa,{usage:"sort",sensitivity:"variant"}).compare;return function(ii,_i){return Bn(ii,_i,Ni)}}function rr(Oa){if(Oa!==void 0)return cr();return function(ii,_i){return Bn(ii,_i,Ni)};function Ni(ii,_i){return ii.localeCompare(_i)}}function cr(){return function(ii,_i){return Bn(ii,_i,Oa)};function Oa(ii,_i){return Ni(ii.toUpperCase(),_i.toUpperCase())||Ni(ii,_i)}function Ni(ii,_i){return ii<_i?-1:ii>_i?1:0}}function Cr(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?Pt:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?rr:cr}function Ya(Oa){return Oa===void 0?tn||(tn=Ln(Oa)):Oa==="en-US"?vn||(vn=Ln(Oa)):Ln(Oa)}}(),Rn,nt;function tr(){return nt}e.getUILocale=tr;function xa(tn){nt!==tn&&(nt=tn,Rn=void 0)}e.setUILocale=xa;function Ba(tn,vn){var Ln=Rn||(Rn=Ke(nt));return Ln(tn,vn)}e.compareStringsCaseSensitiveUI=Ba;function ai(tn,vn,Ln,Bn){return tn===vn?0:tn===void 0?-1:vn===void 0?1:Bn(tn[Ln],vn[Ln])}e.compareProperties=ai;function wi(tn,vn){return Ut(tn?1:0,vn?1:0)}e.compareBooleans=wi;function Ai(tn,vn,Ln){for(var Bn=Math.min(2,Math.floor(tn.length*.34)),Pt=Math.floor(tn.length*.4)+1,rr,cr=!1,Cr=tn.toLowerCase(),Ya=0,Oa=vn;Ya<Oa.length;Ya++){var Ni=Oa[Ya],ii=Ln(Ni);if(ii!==void 0&&Math.abs(ii.length-Cr.length)<=Bn){var _i=ii.toLowerCase();if(_i===Cr){if(ii===tn)continue;return Ni}if(cr)continue;if(ii.length<3)continue;var Ye=Ei(Cr,_i,Pt-1);if(Ye===void 0)continue;Ye<3?(cr=!0,rr=Ni):(e.Debug.assert(Ye<Pt),Pt=Ye,rr=Ni)}}return rr}e.getSpellingSuggestion=Ai;function Ei(tn,vn,Ln){for(var Bn=new Array(vn.length+1),Pt=new Array(vn.length+1),rr=Ln+1,cr=0;cr<=vn.length;cr++)Bn[cr]=cr;for(var cr=1;cr<=tn.length;cr++){var Cr=tn.charCodeAt(cr-1),Ya=cr>Ln?cr-Ln:1,Oa=vn.length>Ln+cr?Ln+cr:vn.length;Pt[0]=cr;for(var Ni=cr,ii=1;ii<Ya;ii++)Pt[ii]=rr;for(var ii=Ya;ii<=Oa;ii++){var _i=Cr===vn.charCodeAt(ii-1)?Bn[ii-1]:Math.min(Bn[ii]+1,Pt[ii-1]+1,Bn[ii-1]+2);Pt[ii]=_i,Ni=Math.min(Ni,_i)}for(var ii=Oa+1;ii<=vn.length;ii++)Pt[ii]=rr;if(Ni>Ln)return;var Ye=Bn;Bn=Pt,Pt=Ye}var zn=Bn[vn.length];return zn>Ln?void 0:zn}function Pi(tn,vn){var Ln=tn.length-vn.length;return Ln>=0&&tn.indexOf(vn,Ln)===Ln}e.endsWith=Pi;function Xa(tn,vn){return Pi(tn,vn)?tn.slice(0,tn.length-vn.length):tn}e.removeSuffix=Xa;function Ia(tn,vn){return Pi(tn,vn)?tn.slice(0,tn.length-vn.length):void 0}e.tryRemoveSuffix=Ia;function ca(tn,vn){return tn.indexOf(vn)!==-1}e.stringContains=ca;function Ti(tn){var vn=/[.-]((min)|(\d+(\.\d+)*))$/;return tn.replace(vn,"").replace(vn,"")}e.removeMinAndVersionNumbers=Ti;function Vo(tn,vn){for(var Ln=0;Ln<tn.length;Ln++)if(tn[Ln]===vn)return mo(tn,Ln),!0;return!1}e.orderedRemoveItem=Vo;function mo(tn,vn){for(var Ln=vn;Ln<tn.length-1;Ln++)tn[Ln]=tn[Ln+1];tn.pop()}e.orderedRemoveItemAt=mo;function Ro(tn,vn){tn[vn]=tn[tn.length-1],tn.pop()}e.unorderedRemoveItemAt=Ro;function uo(tn,vn){return ui(tn,function(Ln){return Ln===vn})}e.unorderedRemoveItem=uo;function ui(tn,vn){for(var Ln=0;Ln<tn.length;Ln++)if(vn(tn[Ln]))return Ro(tn,Ln),!0;return!1}function Gi(tn){return tn?It:Ht}e.createGetCanonicalFileName=Gi;function ji(tn){var vn=tn.prefix,Ln=tn.suffix;return vn+"*"+Ln}e.patternText=ji;function Fo(tn,vn){return e.Debug.assert(Kt(tn,vn)),vn.substring(tn.prefix.length,vn.length-tn.suffix.length)}e.matchedText=Fo;function ko(tn,vn,Ln){for(var Bn,Pt=-1,rr=0,cr=tn;rr<cr.length;rr++){var Cr=cr[rr],Ya=vn(Cr);Kt(Ya,Ln)&&Ya.prefix.length>Pt&&(Pt=Ya.prefix.length,Bn=Cr)}return Bn}e.findBestPatternMatch=ko;function bo(tn,vn){return tn.lastIndexOf(vn,0)===0}e.startsWith=bo;function Ri(tn,vn){return bo(tn,vn)?tn.substr(vn.length):tn}e.removePrefix=Ri;function xt(tn,vn,Ln){return Ln===void 0&&(Ln=It),bo(Ln(tn),Ln(vn))?tn.substring(vn.length):void 0}e.tryRemovePrefix=xt;function Kt(tn,vn){var Ln=tn.prefix,Bn=tn.suffix;return vn.length>=Ln.length+Bn.length&&bo(vn,Ln)&&Pi(vn,Bn)}function _r(tn,vn){return function(Ln){return tn(Ln)&&vn(Ln)}}e.and=_r;function Jr(){for(var tn=[],vn=0;vn<arguments.length;vn++)tn[vn]=arguments[vn];return function(Ln){for(var Bn=0,Pt=tn;Bn<Pt.length;Bn++){var rr=Pt[Bn];if(rr(Ln))return!0}return!1}}e.or=Jr;function va(tn){return function(){for(var vn=[],Ln=0;Ln<arguments.length;Ln++)vn[Ln]=arguments[Ln];return!tn.apply(void 0,vn)}}e.not=va;function Na(tn){}e.assertType=Na;function qr(tn){return tn===void 0?void 0:[tn]}e.singleElementArray=qr;function hi(tn,vn,Ln,Bn,Pt,rr){rr=rr||Ie;for(var cr=0,Cr=0,Ya=tn.length,Oa=vn.length;cr<Ya&&Cr<Oa;){var Ni=tn[cr],ii=vn[Cr],_i=Ln(Ni,ii);_i===-1?(Bn(Ni),cr++):_i===1?(Pt(ii),Cr++):(rr(ii,Ni),cr++,Cr++)}for(;cr<Ya;)Bn(tn[cr++]);for(;Cr<Oa;)Pt(vn[Cr++])}e.enumerateInsertsAndDeletes=hi;function Ii(tn,vn){for(var Ln=Array(tn),Bn=0;Bn<tn;Bn++)Ln[Bn]=vn(Bn);return Ln}e.fill=Ii;function gi(tn){var vn=[];return ua(tn,vn,void 0,0),vn}e.cartesianProduct=gi;function ua(tn,vn,Ln,Bn){for(var Pt=0,rr=tn[Bn];Pt<rr.length;Pt++){var cr=rr[Pt],Cr=void 0;Ln?(Cr=Ln.slice(),Cr.push(cr)):Cr=[cr],Bn===tn.length-1?vn.push(Cr):ua(tn,vn,Cr,Bn+1)}}}(ln||(ln={}));var ln;(function(e){var o;(function(F){F.currentAssertionLevel=0,F.isDebugging=!1;function qe(L){return F.currentAssertionLevel>=L}F.shouldAssert=qe;function Se(L,C,_,b){L||(_&&(C+=`\r
Verbose Debug Information: `+(typeof _=="string"?_:_())),d(C?"False expression: "+C:"False expression.",b||Se))}F.assert=Se;function Fe(L,C,_,b){if(L!==C){var D=_?b?_+" "+b:_:"";d("Expected "+L+" === "+C+". "+D)}}F.assertEqual=Fe;function He(L,C,_){L>=C&&d("Expected "+L+" < "+C+". "+(_||""))}F.assertLessThan=He;function ve(L,C){L>C&&d("Expected "+L+" <= "+C)}F.assertLessThanOrEqual=ve;function ie(L,C){L<C&&d("Expected "+L+" >= "+C)}F.assertGreaterThanOrEqual=ie;function d(L,C){debugger;var _=new Error(L?"Debug Failure. "+L:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(_,C||d),_}F.fail=d;function H(L,C){return L==null?d(C):L}F.assertDefined=H;function Pe(L,C){for(var _=0,b=L;_<b.length;_++){var D=b[_];H(D,C)}return L}F.assertEachDefined=Pe;function I(L,C,_){C===void 0&&(C="Illegal value:");var b=typeof L=="object"&&e.hasProperty(L,"kind")&&e.hasProperty(L,"pos")&&k?"SyntaxKind: "+k(L.kind):JSON.stringify(L);return d(C+" "+b,_||I)}F.assertNever=I;function _e(L){if(typeof L!="function")return"";if(L.hasOwnProperty("name"))return L.name;var C=Function.prototype.toString.call(L),_=/^function\s+([\w\$]+)\s*\(/.exec(C);return _?_[1]:""}F.getFunctionName=_e;function re(L){return"{ name: "+e.unescapeLeadingUnderscores(L.escapedName)+"; flags: "+$(L.flags)+"; declarations: "+e.map(L.declarations,function(C){return k(C.kind)})+" }"}F.formatSymbol=re;function se(L,C,_){L===void 0&&(L=0);var b=w(C);if(L===0)return b.length>0&&b[0][0]===0?b[0][1]:"0";if(_){for(var D="",T=L,Q=b.length-1;Q>=0&&T!==0;Q--){var N=b[Q],X=N[0],pe=N[1];X!==0&&(T&X)===X&&(T&=~X,D=""+pe+(D?"|":"")+D)}if(T===0)return D}else for(var S=0,v=b;S<v.length;S++){var U=v[S],X=U[0],pe=U[1];if(X===L)return pe}return L.toString()}F.formatEnum=se;function w(L){var C=[];for(var _ in L){var b=L[_];typeof b=="number"&&C.push([b,_])}return e.stableSort(C,function(D,T){return e.compareValues(D[0],T[0])})}function k(L){return se(L,e.SyntaxKind,!1)}F.formatSyntaxKind=k;function P(L){return se(L,e.NodeFlags,!0)}F.formatNodeFlags=P;function h(L){return se(L,e.ModifierFlags,!0)}F.formatModifierFlags=h;function Y(L){return se(L,e.TransformFlags,!0)}F.formatTransformFlags=Y;function ne(L){return se(L,e.EmitFlags,!0)}F.formatEmitFlags=ne;function $(L){return se(L,e.SymbolFlags,!0)}F.formatSymbolFlags=$;function J(L){return se(L,e.TypeFlags,!0)}F.formatTypeFlags=J;function fe(L){return se(L,e.ObjectFlags,!0)}F.formatObjectFlags=fe;function R(L,C){return d((C||"Unexpected node.")+`\r
Node `+k(L.kind)+" was unexpected.",R)}F.failBadSyntaxKind=R,F.assertEachNode=qe(1)?function(L,C,_){return Se(C===void 0||e.every(L,C),_||"Unexpected node.",function(){return"Node array did not pass test '"+_e(C)+"'."},F.assertEachNode)}:e.noop,F.assertNode=qe(1)?function(L,C,_){return Se(C===void 0||C(L),_||"Unexpected node.",function(){return"Node "+k(L.kind)+" did not pass test '"+_e(C)+"'."},F.assertNode)}:e.noop,F.assertNotNode=qe(1)?function(L,C,_){return Se(C===void 0||!C(L),_||"Unexpected node.",function(){return"Node "+k(L.kind)+" should not have passed test '"+_e(C)+"'."},F.assertNode)}:e.noop,F.assertOptionalNode=qe(1)?function(L,C,_){return Se(C===void 0||L===void 0||C(L),_||"Unexpected node.",function(){return"Node "+k(L.kind)+" did not pass test '"+_e(C)+"'."},F.assertOptionalNode)}:e.noop,F.assertOptionalToken=qe(1)?function(L,C,_){return Se(C===void 0||L===void 0||L.kind===C,_||"Unexpected node.",function(){return"Node "+k(L.kind)+" was not a '"+k(C)+"' token."},F.assertOptionalToken)}:e.noop,F.assertMissingNode=qe(1)?function(L,C){return Se(L===void 0,C||"Unexpected node.",function(){return"Node "+k(L.kind)+" was unexpected'."},F.assertMissingNode)}:e.noop;var K=!1,z;function Ee(){if(y(),!z)throw new Error("Debugging helpers could not be loaded.");return z}function B(L){return console.log(V(L))}F.printControlFlowGraph=B;function V(L){return Ee().formatControlFlowGraph(L)}F.formatControlFlowGraph=V;function m(L){K&&("__debugFlowFlags"in L||Object.defineProperties(L,{__debugFlowFlags:{get:function(){return se(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return V(this)}}}))}F.attachFlowNodeDebugInfo=m;function y(){if(K)return;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return $(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return J(this.flags)}},__debugObjectFlags:{get:function(){return this.flags&524288?fe(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var L=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()],C=0,_=L;C<_.length;C++){var b=_[C];b.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(b.prototype,{__debugKind:{get:function(){return k(this.kind)}},__debugNodeFlags:{get:function(){return P(this.flags)}},__debugModifierFlags:{get:function(){return h(e.getModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return Y(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return ne(e.getEmitFlags(this))}},__debugGetText:{value:function(N){if(e.nodeIsSynthesized(this))return"";var X=e.getParseTreeNode(this),pe=X&&e.getSourceFileOfNode(X);return pe?e.getSourceTextOfNodeFromSourceFile(pe,X,N):""}}})}try{if(e.sys&&e.sys.require){var D=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),T=void 0;T.error||(T.module.init(e),z=T.module)}}catch(Q){}K=!0}F.enableDebugInfo=y})(o=e.Debug||(e.Debug={}))})(ln||(ln={}));var ln;(function(e){e.timestamp=typeof performance!="undefined"&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date}})(ln||(ln={})),function(e){var o;(function(F){var qe=typeof onProfilerEvent=="function"&&onProfilerEvent.profiler===!0?onProfilerEvent:function(){},Se=!1,Fe=0,He,ve,ie;function d(P,h,Y,ne){return P?H(h,Y,ne):F.nullTimer}F.createTimerIf=d;function H(P,h,Y){var ne=0;return{enter:$,exit:J};function $(){++ne===1&&Pe(h)}function J(){--ne===0?(Pe(Y),I(P,h,Y)):ne<0&&e.Debug.fail("enter/exit count does not match.")}}F.createTimer=H,F.nullTimer={enter:e.noop,exit:e.noop};function Pe(P){Se&&(ve.set(P,e.timestamp()),He.set(P,(He.get(P)||0)+1),qe(P))}F.mark=Pe;function I(P,h,Y){if(Se){var ne=Y&&ve.get(Y)||e.timestamp(),$=h&&ve.get(h)||Fe;ie.set(P,(ie.get(P)||0)+(ne-$))}}F.measure=I;function _e(P){return He&&He.get(P)||0}F.getCount=_e;function re(P){return ie&&ie.get(P)||0}F.getDuration=re;function se(P){ie.forEach(function(h,Y){P(Y,h)})}F.forEachMeasure=se;function w(){He=e.createMap(),ve=e.createMap(),ie=e.createMap(),Se=!0,Fe=e.timestamp()}F.enable=w;function k(){Se=!1}F.disable=k})(o=e.performance||(e.performance={}))}(ln||(ln={}));var ln;(function(e){var o={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},F;try{F=void 0}catch(qe){F=void 0}e.perfLogger=F&&F.logEvent?F:o})(ln||(ln={}));var ln;(function(e){var o=/^(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,qe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Se=/^(0|[1-9]\d*)$/,Fe=function(){function K(z,Ee,B,V,m){if(Ee===void 0&&(Ee=0),B===void 0&&(B=0),V===void 0&&(V=""),m===void 0&&(m=""),typeof z=="string"){var y=e.Debug.assertDefined(He(z),"Invalid version");z=y.major,Ee=y.minor,B=y.patch,V=y.prerelease,m=y.build}e.Debug.assert(z>=0,"Invalid argument: major"),e.Debug.assert(Ee>=0,"Invalid argument: minor"),e.Debug.assert(B>=0,"Invalid argument: patch"),e.Debug.assert(!V||F.test(V),"Invalid argument: prerelease"),e.Debug.assert(!m||qe.test(m),"Invalid argument: build"),this.major=z,this.minor=Ee,this.patch=B,this.prerelease=V?V.split("."):e.emptyArray,this.build=m?m.split("."):e.emptyArray}return K.tryParse=function(z){var Ee=He(z);if(!Ee)return;var B=Ee.major,V=Ee.minor,m=Ee.patch,y=Ee.prerelease,L=Ee.build;return new K(B,V,m,y,L)},K.prototype.compareTo=function(z){return this===z?0:z===void 0?1:e.compareValues(this.major,z.major)||e.compareValues(this.minor,z.minor)||e.compareValues(this.patch,z.patch)||ve(this.prerelease,z.prerelease)},K.prototype.increment=function(z){switch(z){case"major":return new K(this.major+1,0,0);case"minor":return new K(this.major,this.minor+1,0);case"patch":return new K(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(z)}},K.prototype.toString=function(){var z=this.major+"."+this.minor+"."+this.patch;return e.some(this.prerelease)&&(z+="-"+this.prerelease.join(".")),e.some(this.build)&&(z+="+"+this.build.join(".")),z},K.zero=new K(0,0,0),K}();e.Version=Fe;function He(K){var z=o.exec(K);if(!z)return;var Ee=z[1],B=z[2],V=B===void 0?"0":B,m=z[3],y=m===void 0?"0":m,L=z[4],C=L===void 0?"":L,_=z[5],b=_===void 0?"":_;return C&&!F.test(C)||b&&!qe.test(b)?void 0:{major:parseInt(Ee,10),minor:parseInt(V,10),patch:parseInt(y,10),prerelease:C,build:b}}function ve(K,z){if(K===z)return 0;if(K.length===0)return z.length===0?0:1;if(z.length===0)return-1;for(var Ee=Math.min(K.length,z.length),B=0;B<Ee;B++){var V=K[B],m=z[B];if(V===m)continue;var y=Se.test(V),L=Se.test(m);if(y||L){if(y!==L)return y?-1:1;var C=e.compareValues(+V,+m);if(C)return C}else{var C=e.compareStringsCaseSensitive(V,m);if(C)return C}}return e.compareValues(K.length,z.length)}var ie=function(){function K(z){this._alternatives=z?e.Debug.assertDefined(re(z),"Invalid range spec."):e.emptyArray}return K.tryParse=function(z){var Ee=re(z);if(Ee){var B=new K("");return B._alternatives=Ee,B}return},K.prototype.test=function(z){return typeof z=="string"&&(z=new Fe(z)),Y(z,this._alternatives)},K.prototype.toString=function(){return J(this._alternatives)},K}();e.VersionRange=ie;var d=/\s*\|\|\s*/g,H=/\s+/g,Pe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,I=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,_e=/^\s*(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function re(K){for(var z=[],Ee=0,B=K.trim().split(d);Ee<B.length;Ee++){var V=B[Ee];if(!V)continue;var m=[],y=I.exec(V);if(y){if(!w(y[1],y[2],m))return}else for(var L=0,C=V.split(H);L<C.length;L++){var _=C[L],b=_e.exec(_);if(!b||!k(b[1],b[2],m))return}z.push(m)}return z}function se(K){var z=Pe.exec(K);if(!z)return;var Ee=z[1],B=z[2],V=B===void 0?"*":B,m=z[3],y=m===void 0?"*":m,L=z[4],C=z[5],_=new Fe(P(Ee)?0:parseInt(Ee,10),P(Ee)||P(V)?0:parseInt(V,10),P(Ee)||P(V)||P(y)?0:parseInt(y,10),L,C);return{version:_,major:Ee,minor:V,patch:y}}function w(K,z,Ee){var B=se(K);if(!B)return!1;var V=se(z);return V?(P(B.major)||Ee.push(h(">=",B.version)),P(V.major)||Ee.push(P(V.minor)?h("<",V.version.increment("major")):P(V.patch)?h("<",V.version.increment("minor")):h("<=",V.version)),!0):!1}function k(K,z,Ee){var B=se(z);if(!B)return!1;var V=B.version,m=B.major,y=B.minor,L=B.patch;if(P(m))(K==="<"||K===">")&&Ee.push(h("<",Fe.zero));else switch(K){case"~":Ee.push(h(">=",V)),Ee.push(h("<",V.increment(P(y)?"major":"minor")));break;case"^":Ee.push(h(">=",V)),Ee.push(h("<",V.increment(V.major>0||P(y)?"major":V.minor>0||P(L)?"minor":"patch")));break;case"<":case">=":Ee.push(h(K,V));break;case"<=":case">":Ee.push(P(y)?h(K==="<="?"<":">=",V.increment("major")):P(L)?h(K==="<="?"<":">=",V.increment("minor")):h(K,V));break;case"=":case void 0:P(y)||P(L)?(Ee.push(h(">=",V)),Ee.push(h("<",V.increment(P(y)?"major":"minor")))):Ee.push(h("=",V));break;default:return!1}return!0}function P(K){return K==="*"||K==="x"||K==="X"}function h(K,z){return{operator:K,operand:z}}function Y(K,z){if(z.length===0)return!0;for(var Ee=0,B=z;Ee<B.length;Ee++){var V=B[Ee];if(ne(K,V))return!0}return!1}function ne(K,z){for(var Ee=0,B=z;Ee<B.length;Ee++){var V=B[Ee];if(!$(K,V.operator,V.operand))return!1}return!0}function $(K,z,Ee){var B=K.compareTo(Ee);switch(z){case"<":return B<0;case"<=":return B<=0;case">":return B>0;case">=":return B>=0;case"=":return B===0;default:return e.Debug.assertNever(z)}}function J(K){return e.map(K,fe).join(" || ")||"*"}function fe(K){return e.map(K,R).join(" ")}function R(K){return""+K.operator+K.operand}})(ln||(ln={}));var ln;(function(e){var o;(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.EqualsToken=62]="EqualsToken",a[a.PlusEqualsToken=63]="PlusEqualsToken",a[a.MinusEqualsToken=64]="MinusEqualsToken",a[a.AsteriskEqualsToken=65]="AsteriskEqualsToken",a[a.AsteriskAsteriskEqualsToken=66]="AsteriskAsteriskEqualsToken",a[a.SlashEqualsToken=67]="SlashEqualsToken",a[a.PercentEqualsToken=68]="PercentEqualsToken",a[a.LessThanLessThanEqualsToken=69]="LessThanLessThanEqualsToken",a[a.GreaterThanGreaterThanEqualsToken=70]="GreaterThanGreaterThanEqualsToken",a[a.GreaterThanGreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanGreaterThanEqualsToken",a[a.AmpersandEqualsToken=72]="AmpersandEqualsToken",a[a.BarEqualsToken=73]="BarEqualsToken",a[a.CaretEqualsToken=74]="CaretEqualsToken",a[a.Identifier=75]="Identifier",a[a.BreakKeyword=76]="BreakKeyword",a[a.CaseKeyword=77]="CaseKeyword",a[a.CatchKeyword=78]="CatchKeyword",a[a.ClassKeyword=79]="ClassKeyword",a[a.ConstKeyword=80]="ConstKeyword",a[a.ContinueKeyword=81]="ContinueKeyword",a[a.DebuggerKeyword=82]="DebuggerKeyword",a[a.DefaultKeyword=83]="DefaultKeyword",a[a.DeleteKeyword=84]="DeleteKeyword",a[a.DoKeyword=85]="DoKeyword",a[a.ElseKeyword=86]="ElseKeyword",a[a.EnumKeyword=87]="EnumKeyword",a[a.ExportKeyword=88]="ExportKeyword",a[a.ExtendsKeyword=89]="ExtendsKeyword",a[a.FalseKeyword=90]="FalseKeyword",a[a.FinallyKeyword=91]="FinallyKeyword",a[a.ForKeyword=92]="ForKeyword",a[a.FunctionKeyword=93]="FunctionKeyword",a[a.IfKeyword=94]="IfKeyword",a[a.ImportKeyword=95]="ImportKeyword",a[a.InKeyword=96]="InKeyword",a[a.InstanceOfKeyword=97]="InstanceOfKeyword",a[a.NewKeyword=98]="NewKeyword",a[a.NullKeyword=99]="NullKeyword",a[a.ReturnKeyword=100]="ReturnKeyword",a[a.SuperKeyword=101]="SuperKeyword",a[a.SwitchKeyword=102]="SwitchKeyword",a[a.ThisKeyword=103]="ThisKeyword",a[a.ThrowKeyword=104]="ThrowKeyword",a[a.TrueKeyword=105]="TrueKeyword",a[a.TryKeyword=106]="TryKeyword",a[a.TypeOfKeyword=107]="TypeOfKeyword",a[a.VarKeyword=108]="VarKeyword",a[a.VoidKeyword=109]="VoidKeyword",a[a.WhileKeyword=110]="WhileKeyword",a[a.WithKeyword=111]="WithKeyword",a[a.ImplementsKeyword=112]="ImplementsKeyword",a[a.InterfaceKeyword=113]="InterfaceKeyword",a[a.LetKeyword=114]="LetKeyword",a[a.PackageKeyword=115]="PackageKeyword",a[a.PrivateKeyword=116]="PrivateKeyword",a[a.ProtectedKeyword=117]="ProtectedKeyword",a[a.PublicKeyword=118]="PublicKeyword",a[a.StaticKeyword=119]="StaticKeyword",a[a.YieldKeyword=120]="YieldKeyword",a[a.AbstractKeyword=121]="AbstractKeyword",a[a.AsKeyword=122]="AsKeyword",a[a.AssertsKeyword=123]="AssertsKeyword",a[a.AnyKeyword=124]="AnyKeyword",a[a.AsyncKeyword=125]="AsyncKeyword",a[a.AwaitKeyword=126]="AwaitKeyword",a[a.BooleanKeyword=127]="BooleanKeyword",a[a.ConstructorKeyword=128]="ConstructorKeyword",a[a.DeclareKeyword=129]="DeclareKeyword",a[a.GetKeyword=130]="GetKeyword",a[a.InferKeyword=131]="InferKeyword",a[a.IsKeyword=132]="IsKeyword",a[a.KeyOfKeyword=133]="KeyOfKeyword",a[a.ModuleKeyword=134]="ModuleKeyword",a[a.NamespaceKeyword=135]="NamespaceKeyword",a[a.NeverKeyword=136]="NeverKeyword",a[a.ReadonlyKeyword=137]="ReadonlyKeyword",a[a.RequireKeyword=138]="RequireKeyword",a[a.NumberKeyword=139]="NumberKeyword",a[a.ObjectKeyword=140]="ObjectKeyword",a[a.SetKeyword=141]="SetKeyword",a[a.StringKeyword=142]="StringKeyword",a[a.SymbolKeyword=143]="SymbolKeyword",a[a.TypeKeyword=144]="TypeKeyword",a[a.UndefinedKeyword=145]="UndefinedKeyword",a[a.UniqueKeyword=146]="UniqueKeyword",a[a.UnknownKeyword=147]="UnknownKeyword",a[a.FromKeyword=148]="FromKeyword",a[a.GlobalKeyword=149]="GlobalKeyword",a[a.BigIntKeyword=150]="BigIntKeyword",a[a.OfKeyword=151]="OfKeyword",a[a.QualifiedName=152]="QualifiedName",a[a.ComputedPropertyName=153]="ComputedPropertyName",a[a.TypeParameter=154]="TypeParameter",a[a.Parameter=155]="Parameter",a[a.Decorator=156]="Decorator",a[a.PropertySignature=157]="PropertySignature",a[a.PropertyDeclaration=158]="PropertyDeclaration",a[a.MethodSignature=159]="MethodSignature",a[a.MethodDeclaration=160]="MethodDeclaration",a[a.Constructor=161]="Constructor",a[a.GetAccessor=162]="GetAccessor",a[a.SetAccessor=163]="SetAccessor",a[a.CallSignature=164]="CallSignature",a[a.ConstructSignature=165]="ConstructSignature",a[a.IndexSignature=166]="IndexSignature",a[a.TypePredicate=167]="TypePredicate",a[a.TypeReference=168]="TypeReference",a[a.FunctionType=169]="FunctionType",a[a.ConstructorType=170]="ConstructorType",a[a.TypeQuery=171]="TypeQuery",a[a.TypeLiteral=172]="TypeLiteral",a[a.ArrayType=173]="ArrayType",a[a.TupleType=174]="TupleType",a[a.OptionalType=175]="OptionalType",a[a.RestType=176]="RestType",a[a.UnionType=177]="UnionType",a[a.IntersectionType=178]="IntersectionType",a[a.ConditionalType=179]="ConditionalType",a[a.InferType=180]="InferType",a[a.ParenthesizedType=181]="ParenthesizedType",a[a.ThisType=182]="ThisType",a[a.TypeOperator=183]="TypeOperator",a[a.IndexedAccessType=184]="IndexedAccessType",a[a.MappedType=185]="MappedType",a[a.LiteralType=186]="LiteralType",a[a.ImportType=187]="ImportType",a[a.ObjectBindingPattern=188]="ObjectBindingPattern",a[a.ArrayBindingPattern=189]="ArrayBindingPattern",a[a.BindingElement=190]="BindingElement",a[a.ArrayLiteralExpression=191]="ArrayLiteralExpression",a[a.ObjectLiteralExpression=192]="ObjectLiteralExpression",a[a.PropertyAccessExpression=193]="PropertyAccessExpression",a[a.ElementAccessExpression=194]="ElementAccessExpression",a[a.CallExpression=195]="CallExpression",a[a.NewExpression=196]="NewExpression",a[a.TaggedTemplateExpression=197]="TaggedTemplateExpression",a[a.TypeAssertionExpression=198]="TypeAssertionExpression",a[a.ParenthesizedExpression=199]="ParenthesizedExpression",a[a.FunctionExpression=200]="FunctionExpression",a[a.ArrowFunction=201]="ArrowFunction",a[a.DeleteExpression=202]="DeleteExpression",a[a.TypeOfExpression=203]="TypeOfExpression",a[a.VoidExpression=204]="VoidExpression",a[a.AwaitExpression=205]="AwaitExpression",a[a.PrefixUnaryExpression=206]="PrefixUnaryExpression",a[a.PostfixUnaryExpression=207]="PostfixUnaryExpression",a[a.BinaryExpression=208]="BinaryExpression",a[a.ConditionalExpression=209]="ConditionalExpression",a[a.TemplateExpression=210]="TemplateExpression",a[a.YieldExpression=211]="YieldExpression",a[a.SpreadElement=212]="SpreadElement",a[a.ClassExpression=213]="ClassExpression",a[a.OmittedExpression=214]="OmittedExpression",a[a.ExpressionWithTypeArguments=215]="ExpressionWithTypeArguments",a[a.AsExpression=216]="AsExpression",a[a.NonNullExpression=217]="NonNullExpression",a[a.MetaProperty=218]="MetaProperty",a[a.SyntheticExpression=219]="SyntheticExpression",a[a.TemplateSpan=220]="TemplateSpan",a[a.SemicolonClassElement=221]="SemicolonClassElement",a[a.Block=222]="Block",a[a.EmptyStatement=223]="EmptyStatement",a[a.VariableStatement=224]="VariableStatement",a[a.ExpressionStatement=225]="ExpressionStatement",a[a.IfStatement=226]="IfStatement",a[a.DoStatement=227]="DoStatement",a[a.WhileStatement=228]="WhileStatement",a[a.ForStatement=229]="ForStatement",a[a.ForInStatement=230]="ForInStatement",a[a.ForOfStatement=231]="ForOfStatement",a[a.ContinueStatement=232]="ContinueStatement",a[a.BreakStatement=233]="BreakStatement",a[a.ReturnStatement=234]="ReturnStatement",a[a.WithStatement=235]="WithStatement",a[a.SwitchStatement=236]="SwitchStatement",a[a.LabeledStatement=237]="LabeledStatement",a[a.ThrowStatement=238]="ThrowStatement",a[a.TryStatement=239]="TryStatement",a[a.DebuggerStatement=240]="DebuggerStatement",a[a.VariableDeclaration=241]="VariableDeclaration",a[a.VariableDeclarationList=242]="VariableDeclarationList",a[a.FunctionDeclaration=243]="FunctionDeclaration",a[a.ClassDeclaration=244]="ClassDeclaration",a[a.InterfaceDeclaration=245]="InterfaceDeclaration",a[a.TypeAliasDeclaration=246]="TypeAliasDeclaration",a[a.EnumDeclaration=247]="EnumDeclaration",a[a.ModuleDeclaration=248]="ModuleDeclaration",a[a.ModuleBlock=249]="ModuleBlock",a[a.CaseBlock=250]="CaseBlock",a[a.NamespaceExportDeclaration=251]="NamespaceExportDeclaration",a[a.ImportEqualsDeclaration=252]="ImportEqualsDeclaration",a[a.ImportDeclaration=253]="ImportDeclaration",a[a.ImportClause=254]="ImportClause",a[a.NamespaceImport=255]="NamespaceImport",a[a.NamedImports=256]="NamedImports",a[a.ImportSpecifier=257]="ImportSpecifier",a[a.ExportAssignment=258]="ExportAssignment",a[a.ExportDeclaration=259]="ExportDeclaration",a[a.NamedExports=260]="NamedExports",a[a.ExportSpecifier=261]="ExportSpecifier",a[a.MissingDeclaration=262]="MissingDeclaration",a[a.ExternalModuleReference=263]="ExternalModuleReference",a[a.JsxElement=264]="JsxElement",a[a.JsxSelfClosingElement=265]="JsxSelfClosingElement",a[a.JsxOpeningElement=266]="JsxOpeningElement",a[a.JsxClosingElement=267]="JsxClosingElement",a[a.JsxFragment=268]="JsxFragment",a[a.JsxOpeningFragment=269]="JsxOpeningFragment",a[a.JsxClosingFragment=270]="JsxClosingFragment",a[a.JsxAttribute=271]="JsxAttribute",a[a.JsxAttributes=272]="JsxAttributes",a[a.JsxSpreadAttribute=273]="JsxSpreadAttribute",a[a.JsxExpression=274]="JsxExpression",a[a.CaseClause=275]="CaseClause",a[a.DefaultClause=276]="DefaultClause",a[a.HeritageClause=277]="HeritageClause",a[a.CatchClause=278]="CatchClause",a[a.PropertyAssignment=279]="PropertyAssignment",a[a.ShorthandPropertyAssignment=280]="ShorthandPropertyAssignment",a[a.SpreadAssignment=281]="SpreadAssignment",a[a.EnumMember=282]="EnumMember",a[a.UnparsedPrologue=283]="UnparsedPrologue",a[a.UnparsedPrepend=284]="UnparsedPrepend",a[a.UnparsedText=285]="UnparsedText",a[a.UnparsedInternalText=286]="UnparsedInternalText",a[a.UnparsedSyntheticReference=287]="UnparsedSyntheticReference",a[a.SourceFile=288]="SourceFile",a[a.Bundle=289]="Bundle",a[a.UnparsedSource=290]="UnparsedSource",a[a.InputFiles=291]="InputFiles",a[a.JSDocTypeExpression=292]="JSDocTypeExpression",a[a.JSDocAllType=293]="JSDocAllType",a[a.JSDocUnknownType=294]="JSDocUnknownType",a[a.JSDocNullableType=295]="JSDocNullableType",a[a.JSDocNonNullableType=296]="JSDocNonNullableType",a[a.JSDocOptionalType=297]="JSDocOptionalType",a[a.JSDocFunctionType=298]="JSDocFunctionType",a[a.JSDocVariadicType=299]="JSDocVariadicType",a[a.JSDocNamepathType=300]="JSDocNamepathType",a[a.JSDocComment=301]="JSDocComment",a[a.JSDocTypeLiteral=302]="JSDocTypeLiteral",a[a.JSDocSignature=303]="JSDocSignature",a[a.JSDocTag=304]="JSDocTag",a[a.JSDocAugmentsTag=305]="JSDocAugmentsTag",a[a.JSDocAuthorTag=306]="JSDocAuthorTag",a[a.JSDocClassTag=307]="JSDocClassTag",a[a.JSDocCallbackTag=308]="JSDocCallbackTag",a[a.JSDocEnumTag=309]="JSDocEnumTag",a[a.JSDocParameterTag=310]="JSDocParameterTag",a[a.JSDocReturnTag=311]="JSDocReturnTag",a[a.JSDocThisTag=312]="JSDocThisTag",a[a.JSDocTypeTag=313]="JSDocTypeTag",a[a.JSDocTemplateTag=314]="JSDocTemplateTag",a[a.JSDocTypedefTag=315]="JSDocTypedefTag",a[a.JSDocPropertyTag=316]="JSDocPropertyTag",a[a.SyntaxList=317]="SyntaxList",a[a.NotEmittedStatement=318]="NotEmittedStatement",a[a.PartiallyEmittedExpression=319]="PartiallyEmittedExpression",a[a.CommaListExpression=320]="CommaListExpression",a[a.MergeDeclarationMarker=321]="MergeDeclarationMarker",a[a.EndOfDeclarationMarker=322]="EndOfDeclarationMarker",a[a.SyntheticReferenceExpression=323]="SyntheticReferenceExpression",a[a.Count=324]="Count",a[a.FirstAssignment=62]="FirstAssignment",a[a.LastAssignment=74]="LastAssignment",a[a.FirstCompoundAssignment=63]="FirstCompoundAssignment",a[a.LastCompoundAssignment=74]="LastCompoundAssignment",a[a.FirstReservedWord=76]="FirstReservedWord",a[a.LastReservedWord=111]="LastReservedWord",a[a.FirstKeyword=76]="FirstKeyword",a[a.LastKeyword=151]="LastKeyword",a[a.FirstFutureReservedWord=112]="FirstFutureReservedWord",a[a.LastFutureReservedWord=120]="LastFutureReservedWord",a[a.FirstTypeNode=167]="FirstTypeNode",a[a.LastTypeNode=187]="LastTypeNode",a[a.FirstPunctuation=18]="FirstPunctuation",a[a.LastPunctuation=74]="LastPunctuation",a[a.FirstToken=0]="FirstToken",a[a.LastToken=151]="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=74]="LastBinaryOperator",a[a.FirstStatement=224]="FirstStatement",a[a.LastStatement=240]="LastStatement",a[a.FirstNode=152]="FirstNode",a[a.FirstJSDocNode=292]="FirstJSDocNode",a[a.LastJSDocNode=316]="LastJSDocNode",a[a.FirstJSDocTagNode=304]="FirstJSDocTagNode",a[a.LastJSDocTagNode=316]="LastJSDocTagNode",a[a.FirstContextualKeyword=121]="FirstContextualKeyword",a[a.LastContextualKeyword=151]="LastContextualKeyword"})(o=e.SyntaxKind||(e.SyntaxKind={}));var F;(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.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"})(F=e.NodeFlags||(e.NodeFlags={}));var qe;(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.HasComputedFlags=536870912]="HasComputedFlags",a[a.AccessibilityModifier=28]="AccessibilityModifier",a[a.ParameterPropertyModifier=92]="ParameterPropertyModifier",a[a.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",a[a.TypeScriptModifier=2270]="TypeScriptModifier",a[a.ExportDefault=513]="ExportDefault",a[a.All=3071]="All"})(qe=e.ModifierFlags||(e.ModifierFlags={}));var Se;(function(a){a[a.None=0]="None",a[a.IntrinsicNamedElement=1]="IntrinsicNamedElement",a[a.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",a[a.IntrinsicElement=3]="IntrinsicElement"})(Se=e.JsxFlags||(e.JsxFlags={}));var Fe;(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"})(Fe=e.RelationComparisonResult||(e.RelationComparisonResult={}));var He;(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"})(He=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}));var ve;(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.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",a[a.NumericLiteralFlags=1008]="NumericLiteralFlags"})(ve=e.TokenFlags||(e.TokenFlags={}));var ie;(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.Referenced=1024]="Referenced",a[a.Shared=2048]="Shared",a[a.PreFinally=4096]="PreFinally",a[a.AfterFinally=8192]="AfterFinally",a[a.Cached=16384]="Cached",a[a.Label=12]="Label",a[a.Condition=96]="Condition"})(ie=e.FlowFlags||(e.FlowFlags={}));var d=function(){function a(){}return a}();e.OperationCanceledException=d;var H;(function(a){a[a.Import=0]="Import",a[a.ReferenceFile=1]="ReferenceFile",a[a.TypeReferenceDirective=2]="TypeReferenceDirective"})(H=e.RefFileKind||(e.RefFileKind={}));var Pe;(function(a){a[a.Not=0]="Not",a[a.SafeModules=1]="SafeModules",a[a.Completely=2]="Completely"})(Pe=e.StructureIsReused||(e.StructureIsReused={}));var I;(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"})(I=e.ExitStatus||(e.ExitStatus={}));var _e;(function(a){a[a.None=0]="None",a[a.Literal=1]="Literal",a[a.Subtype=2]="Subtype"})(_e=e.UnionReduction||(e.UnionReduction={}));var re;(function(a){a[a.None=0]="None",a[a.Signature=1]="Signature",a[a.NoConstraints=2]="NoConstraints",a[a.Completion=4]="Completion"})(re=e.ContextFlags||(e.ContextFlags={}));var se;(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.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",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",a[a.InReverseMappedType=33554432]="InReverseMappedType"})(se=e.NodeBuilderFlags||(e.NodeBuilderFlags={}));var w;(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.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=9469291]="NodeBuilderFlagsMask"})(w=e.TypeFormatFlags||(e.TypeFormatFlags={}));var k;(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"})(k=e.SymbolFormatFlags||(e.SymbolFormatFlags={}));var P;(function(a){a[a.Accessible=0]="Accessible",a[a.NotAccessible=1]="NotAccessible",a[a.CannotBeNamed=2]="CannotBeNamed"})(P=e.SymbolAccessibility||(e.SymbolAccessibility={}));var h;(function(a){a[a.UnionOrIntersection=0]="UnionOrIntersection",a[a.Spread=1]="Spread"})(h=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}));var Y;(function(a){a[a.This=0]="This",a[a.Identifier=1]="Identifier",a[a.AssertsThis=2]="AssertsThis",a[a.AssertsIdentifier=3]="AssertsIdentifier"})(Y=e.TypePredicateKind||(e.TypePredicateKind={}));var ne;(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"})(ne=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}));var $;(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={}));var J;(function(a){a[a.Numeric=0]="Numeric",a[a.Literal=1]="Literal"})(J=e.EnumKind||(e.EnumKind={}));var fe;(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.Synthetic=6]="Synthetic",a[a.Discriminant=192]="Discriminant",a[a.Partial=48]="Partial"})(fe=e.CheckFlags||(e.CheckFlags={}));var R;(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"})(R=e.InternalSymbolName||(e.InternalSymbolName={}));var K;(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"})(K=e.NodeCheckFlags||(e.NodeCheckFlags={}));var z;(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.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=132]="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=67238908]="DisjointDomains",a[a.UnionOrIntersection=3145728]="UnionOrIntersection",a[a.StructuredType=3670016]="StructuredType",a[a.TypeVariable=8650752]="TypeVariable",a[a.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",a[a.InstantiablePrimitive=4194304]="InstantiablePrimitive",a[a.Instantiable=63176704]="Instantiable",a[a.StructuredOrInstantiable=66846720]="StructuredOrInstantiable",a[a.ObjectFlagsType=3899392]="ObjectFlagsType",a[a.Simplifiable=25165824]="Simplifiable",a[a.Narrowable=133970943]="Narrowable",a[a.NotUnionOrUnit=67637251]="NotUnionOrUnit",a[a.NotPrimitiveUnion=66994211]="NotPrimitiveUnion",a[a.IncludesMask=68943871]="IncludesMask",a[a.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",a[a.IncludesNonWideningType=2097152]="IncludesNonWideningType",a[a.IncludesWildcard=4194304]="IncludesWildcard",a[a.IncludesEmptyObject=8388608]="IncludesEmptyObject",a[a.GenericMappedType=131072]="GenericMappedType"})(z=e.TypeFlags||(e.TypeFlags={}));var Ee;(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.ContainsSpread=1024]="ContainsSpread",a[a.ReverseMapped=2048]="ReverseMapped",a[a.JsxAttributes=4096]="JsxAttributes",a[a.MarkerType=8192]="MarkerType",a[a.JSLiteral=16384]="JSLiteral",a[a.FreshLiteral=32768]="FreshLiteral",a[a.ArrayLiteral=65536]="ArrayLiteral",a[a.PrimitiveUnion=131072]="PrimitiveUnion",a[a.ContainsWideningType=262144]="ContainsWideningType",a[a.ContainsObjectOrArrayLiteral=524288]="ContainsObjectOrArrayLiteral",a[a.NonInferrableType=1048576]="NonInferrableType",a[a.ClassOrInterface=3]="ClassOrInterface",a[a.RequiresWidening=786432]="RequiresWidening",a[a.PropagatingFlags=1835008]="PropagatingFlags"})(Ee=e.ObjectFlags||(e.ObjectFlags={}));var B;(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"})(B=e.VarianceFlags||(e.VarianceFlags={}));var V;(function(a){a[a.Component=0]="Component",a[a.Function=1]="Function",a[a.Mixed=2]="Mixed"})(V=e.JsxReferenceKind||(e.JsxReferenceKind={}));var m;(function(a){a[a.Call=0]="Call",a[a.Construct=1]="Construct"})(m=e.SignatureKind||(e.SignatureKind={}));var y;(function(a){a[a.None=0]="None",a[a.HasRestParameter=1]="HasRestParameter",a[a.HasLiteralTypes=2]="HasLiteralTypes",a[a.IsInnerCallChain=4]="IsInnerCallChain",a[a.IsOuterCallChain=8]="IsOuterCallChain",a[a.PropagatingFlags=3]="PropagatingFlags",a[a.CallChainFlags=12]="CallChainFlags"})(y=e.SignatureFlags||(e.SignatureFlags={}));var L;(function(a){a[a.String=0]="String",a[a.Number=1]="Number"})(L=e.IndexKind||(e.IndexKind={}));var C;(function(a){a[a.NakedTypeVariable=1]="NakedTypeVariable",a[a.HomomorphicMappedType=2]="HomomorphicMappedType",a[a.PartialHomomorphicMappedType=4]="PartialHomomorphicMappedType",a[a.MappedTypeConstraint=8]="MappedTypeConstraint",a[a.ReturnType=16]="ReturnType",a[a.LiteralKeyof=32]="LiteralKeyof",a[a.NoConstraints=64]="NoConstraints",a[a.AlwaysStrict=128]="AlwaysStrict",a[a.MaxValue=256]="MaxValue",a[a.PriorityImpliesCombination=56]="PriorityImpliesCombination",a[a.Circularity=-1]="Circularity"})(C=e.InferencePriority||(e.InferencePriority={}));var _;(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={}));var b;(function(a){a[a.False=0]="False",a[a.Maybe=1]="Maybe",a[a.True=-1]="True"})(b=e.Ternary||(e.Ternary={}));var D;(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"})(D=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}));var T;(function(a){a[a.Warning=0]="Warning",a[a.Error=1]="Error",a[a.Suggestion=2]="Suggestion",a[a.Message=3]="Message"})(T=e.DiagnosticCategory||(e.DiagnosticCategory={}));function Q(a,en){en===void 0&&(en=!0);var Pn=T[a.category];return en?Pn.toLowerCase():Pn}e.diagnosticCategoryName=Q;var N;(function(a){a[a.Classic=1]="Classic",a[a.NodeJs=2]="NodeJs"})(N=e.ModuleResolutionKind||(e.ModuleResolutionKind={}));var X;(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.ESNext=99]="ESNext"})(X=e.ModuleKind||(e.ModuleKind={}));var pe;(function(a){a[a.None=0]="None",a[a.Preserve=1]="Preserve",a[a.React=2]="React",a[a.ReactNative=3]="ReactNative"})(pe=e.JsxEmit||(e.JsxEmit={}));var S;(function(a){a[a.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",a[a.LineFeed=1]="LineFeed"})(S=e.NewLineKind||(e.NewLineKind={}));var v;(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"})(v=e.ScriptKind||(e.ScriptKind={}));var U;(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.ESNext=99]="ESNext",a[a.JSON=100]="JSON",a[a.Latest=99]="Latest"})(U=e.ScriptTarget||(e.ScriptTarget={}));var de;(function(a){a[a.Standard=0]="Standard",a[a.JSX=1]="JSX"})(de=e.LanguageVariant||(e.LanguageVariant={}));var Ce;(function(a){a[a.None=0]="None",a[a.Recursive=1]="Recursive"})(Ce=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}));var Z;(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"})(Z=e.CharacterCodes||(e.CharacterCodes={}));var Re;(function(a){a.Ts=".ts",a.Tsx=".tsx",a.Dts=".d.ts",a.Js=".js",a.Jsx=".jsx",a.Json=".json",a.TsBuildInfo=".tsbuildinfo"})(Re=e.Extension||(e.Extension={}));var Ae;(function(a){a[a.None=0]="None",a[a.ContainsTypeScript=1]="ContainsTypeScript",a[a.ContainsJsx=2]="ContainsJsx",a[a.ContainsESNext=4]="ContainsESNext",a[a.ContainsES2019=8]="ContainsES2019",a[a.ContainsES2018=16]="ContainsES2018",a[a.ContainsES2017=32]="ContainsES2017",a[a.ContainsES2016=64]="ContainsES2016",a[a.ContainsES2015=128]="ContainsES2015",a[a.ContainsGenerator=256]="ContainsGenerator",a[a.ContainsDestructuringAssignment=512]="ContainsDestructuringAssignment",a[a.ContainsTypeScriptClassSyntax=1024]="ContainsTypeScriptClassSyntax",a[a.ContainsLexicalThis=2048]="ContainsLexicalThis",a[a.ContainsRestOrSpread=4096]="ContainsRestOrSpread",a[a.ContainsObjectRestOrSpread=8192]="ContainsObjectRestOrSpread",a[a.ContainsComputedPropertyName=16384]="ContainsComputedPropertyName",a[a.ContainsBlockScopedBinding=32768]="ContainsBlockScopedBinding",a[a.ContainsBindingPattern=65536]="ContainsBindingPattern",a[a.ContainsYield=131072]="ContainsYield",a[a.ContainsHoistedDeclarationOrCompletion=262144]="ContainsHoistedDeclarationOrCompletion",a[a.ContainsDynamicImport=524288]="ContainsDynamicImport",a[a.ContainsClassFields=1048576]="ContainsClassFields",a[a.HasComputedFlags=536870912]="HasComputedFlags",a[a.AssertTypeScript=1]="AssertTypeScript",a[a.AssertJsx=2]="AssertJsx",a[a.AssertESNext=4]="AssertESNext",a[a.AssertES2019=8]="AssertES2019",a[a.AssertES2018=16]="AssertES2018",a[a.AssertES2017=32]="AssertES2017",a[a.AssertES2016=64]="AssertES2016",a[a.AssertES2015=128]="AssertES2015",a[a.AssertGenerator=256]="AssertGenerator",a[a.AssertDestructuringAssignment=512]="AssertDestructuringAssignment",a[a.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",a[a.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",a[a.NodeExcludes=536870912]="NodeExcludes",a[a.ArrowFunctionExcludes=537371648]="ArrowFunctionExcludes",a[a.FunctionExcludes=537373696]="FunctionExcludes",a[a.ConstructorExcludes=537372672]="ConstructorExcludes",a[a.MethodOrAccessorExcludes=537372672]="MethodOrAccessorExcludes",a[a.PropertyExcludes=536872960]="PropertyExcludes",a[a.ClassExcludes=536888320]="ClassExcludes",a[a.ModuleExcludes=537168896]="ModuleExcludes",a[a.TypeExcludes=-2]="TypeExcludes",a[a.ObjectLiteralExcludes=536896512]="ObjectLiteralExcludes",a[a.ArrayLiteralOrCallOrNewExcludes=536875008]="ArrayLiteralOrCallOrNewExcludes",a[a.VariableDeclarationListExcludes=536944640]="VariableDeclarationListExcludes",a[a.ParameterExcludes=536870912]="ParameterExcludes",a[a.CatchClauseExcludes=536879104]="CatchClauseExcludes",a[a.BindingPatternExcludes=536875008]="BindingPatternExcludes",a[a.PropertyNamePropagatingFlags=2048]="PropertyNamePropagatingFlags"})(Ae=e.TransformFlags||(e.TransformFlags={}));var We;(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"})(We=e.EmitFlags||(e.EmitFlags={}));var be;(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.Spread=1024]="Spread",a[a.SpreadArrays=2048]="SpreadArrays",a[a.Await=4096]="Await",a[a.AsyncGenerator=8192]="AsyncGenerator",a[a.AsyncDelegator=16384]="AsyncDelegator",a[a.AsyncValues=32768]="AsyncValues",a[a.ExportStar=65536]="ExportStar",a[a.MakeTemplateObject=131072]="MakeTemplateObject",a[a.FirstEmitHelper=1]="FirstEmitHelper",a[a.LastEmitHelper=131072]="LastEmitHelper",a[a.ForOfIncludes=256]="ForOfIncludes",a[a.ForAwaitOfIncludes=32768]="ForAwaitOfIncludes",a[a.AsyncGeneratorIncludes=12288]="AsyncGeneratorIncludes",a[a.AsyncDelegatorIncludes=53248]="AsyncDelegatorIncludes",a[a.SpreadIncludes=1536]="SpreadIncludes"})(be=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}));var Ge;(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"})(Ge=e.EmitHint||(e.EmitHint={}));var x;(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"})(x=e.BundleFileSectionKind||(e.BundleFileSectionKind={}));var j;(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.Modifiers=262656]="Modifiers",a[a.HeritageClauses=512]="HeritageClauses",a[a.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",a[a.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",a[a.TupleTypeElements=528]="TupleTypeElements",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.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=49153]="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"})(j=e.ListFormat||(e.ListFormat={}));var Oe;(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"})(Oe=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}}})(ln||(ln={}));var ln;(function(e){function o(k){for(var P=5381,h=0;h<k.length;h++)P=(P<<5)+P+k.charCodeAt(h);return P.toString()}e.generateDjb2Hash=o;function F(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}e.setStackTraceLimit=F;var qe;(function(k){k[k.Created=0]="Created",k[k.Changed=1]="Changed",k[k.Deleted=2]="Deleted"})(qe=e.FileWatcherEventKind||(e.FileWatcherEventKind={}));var Se;(function(k){k[k.High=2e3]="High",k[k.Medium=500]="Medium",k[k.Low=250]="Low"})(Se=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0);function Fe(k){var P;return P={},P[Se.Low]=k.Low,P[Se.Medium]=k.Medium,P[Se.High]=k.High,P}var He={Low:32,Medium:64,High:256},ve=Fe(He);e.unchangedPollThresholds=Fe(He);function ie(k){if(!k.getEnvironmentVariable)return;var P=ne("TSC_WATCH_POLLINGINTERVAL",Se);ve=$("TSC_WATCH_POLLINGCHUNKSIZE",He)||ve,e.unchangedPollThresholds=$("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",He)||e.unchangedPollThresholds;function h(J,fe){return k.getEnvironmentVariable(J+"_"+fe.toUpperCase())}function Y(J){var fe;return R("Low"),R("Medium"),R("High"),fe;function R(K){var z=h(J,K);z&&((fe||(fe={}))[K]=Number(z))}}function ne(J,fe){var R=Y(J);if(R)return K("Low"),K("Medium"),K("High"),!0;return!1;function K(z){fe[z]=R[z]||fe[z]}}function $(J,fe){var R=Y(J);return(P||R)&&Fe(R?ma(ma({},fe),R):fe)}}e.setCustomPollingValues=ie;function d(k){var P=[],h=[],Y=fe(Se.Low),ne=fe(Se.Medium),$=fe(Se.High);return J;function J(C,_,b){var D={fileName:C,callback:_,unchangedPolls:0,mtime:L(C)};return P.push(D),B(D,b),{close:function(){D.isClosed=!0,e.unorderedRemoveItem(P,D)}}}function fe(C){var _=[];return _.pollingInterval=C,_.pollIndex=0,_.pollScheduled=!1,_}function R(C){C.pollIndex=z(C,C.pollingInterval,C.pollIndex,ve[C.pollingInterval]),C.length?y(C.pollingInterval):(e.Debug.assert(C.pollIndex===0),C.pollScheduled=!1)}function K(C){z(h,Se.Low,0,h.length),R(C),!C.pollScheduled&&h.length&&y(Se.Low)}function z(C,_,b,D){for(var T=C.length,Q=b,N=0;N<D&&T>0;S(),T--){var X=C[b];if(X){if(X.isClosed){C[b]=void 0;continue}}else continue;N++;var pe=Pe(X,L(X.fileName));X.isClosed?C[b]=void 0:pe?(X.unchangedPolls=0,C!==h&&(C[b]=void 0,V(X))):X.unchangedPolls!==e.unchangedPollThresholds[_]?X.unchangedPolls++:C===h?(X.unchangedPolls=1,C[b]=void 0,B(X,Se.Low)):_!==Se.High&&(X.unchangedPolls++,C[b]=void 0,B(X,_===Se.Low?Se.Medium:Se.High)),C[b]&&(Q<b&&(C[Q]=X,C[b]=void 0),Q++)}return b;function S(){b++,b===C.length&&(Q<b&&(C.length=Q),b=0,Q=0)}}function Ee(C){switch(C){case Se.Low:return Y;case Se.Medium:return ne;case Se.High:return $}}function B(C,_){Ee(_).push(C),m(_)}function V(C){h.push(C),m(Se.Low)}function m(C){Ee(C).pollScheduled||y(C)}function y(C){Ee(C).pollScheduled=k.setTimeout(C===Se.Low?K:R,C,Ee(C))}function L(C){return k.getModifiedTime(C)||e.missingFileModifiedTime}}e.createDynamicPriorityPollingWatchFile=d;function H(k,P){var h=e.createMap(),Y=e.createMultiMap(),ne=e.createGetCanonicalFileName(P);return function($,J,fe){var R=ne($),K=h.get(R);return K?K.refCount++:h.set(R,{watcher:k($,function(z,Ee){return e.forEach(Y.get(R),function(B){return B(z,Ee)})},fe),refCount:1}),Y.add(R,J),{close:function(){var Ee=e.Debug.assertDefined(h.get(R));if(Y.remove(R,J),Ee.refCount--,Ee.refCount)return;h.delete(R),e.closeFileWatcherOf(Ee)}}}}e.createSingleFileWatcherPerName=H;function Pe(k,P){var h=k.mtime.getTime(),Y=P.getTime();return h!==Y?(k.mtime=P,k.callback(k.fileName,I(h,Y)),!0):!1}e.onWatchedFileStat=Pe;function I(k,P){return k===0?qe.Created:P===0?qe.Deleted:qe.Changed}e.getFileWatcherEventKind=I,e.ignoredPaths=["/node_modules/.","/.git","/.#"],e.sysLog=e.noop;function _e(k){var P=e.createMap(),h=e.createMultiMap(),Y=e.getStringComparer(!k.useCaseSensitiveFileNames),ne=e.createGetCanonicalFileName(k.useCaseSensitiveFileNames);return $;function $(z,Ee){var B=ne(z),V=P.get(B);return V?V.refCount++:(V={watcher:k.watchDirectory(z,function(m){if(R(m))return;h.forEach(function(y,L){(L===B||e.startsWith(B,L)&&B[L.length]===e.directorySeparator)&&y.forEach(function(C){return C(m)})}),J(z,B)}),refCount:1,childWatches:e.emptyArray},P.set(B,V),J(z,B)),Ee&&h.add(B,Ee),{dirName:z,close:function(){var y=e.Debug.assertDefined(P.get(B));if(Ee&&h.remove(B,Ee),y.refCount--,y.refCount)return;P.delete(B),e.closeFileWatcherOf(y),y.childWatches.forEach(e.closeFileWatcher)}}}function J(z,Ee){var B=P.get(Ee);B&&(B.childWatches=fe(z,B.childWatches))}function fe(z,Ee){var B;return e.enumerateInsertsAndDeletes(k.directoryExists(z)?e.mapDefined(k.getAccessibleSortedChildDirectories(z),function(y){var L=e.getNormalizedAbsolutePath(y,z);return!R(L)&&Y(L,e.normalizePath(k.realpath(L)))===0?L:void 0}):e.emptyArray,Ee,function(y,L){return Y(y,L.dirName)},V,e.closeFileWatcher,m),B||e.emptyArray;function V(y){var L=$(y);m(L)}function m(y){(B||(B=[])).push(y)}}function R(z){return e.some(e.ignoredPaths,function(Ee){return K(z,Ee)})}function K(z,Ee){return e.stringContains(z,Ee)?!0:k.useCaseSensitiveFileNames?!1:e.stringContains(ne(z),Ee)}}e.createRecursiveDirectoryWatcher=_e;function re(k,P){var h=e.getDirectoryPath(k),Y=h!==""&&k!==h&&!P.directoryExists(h);Y&&re(h,P),(Y||!P.directoryExists(k))&&P.createDirectory(k)}function se(k){var P=k.writeFile;k.writeFile=function(h,Y,ne){var $=e.getDirectoryPath(e.normalizeSlashes(h));$&&!k.directoryExists($)&&re($,k),P.call(k,h,Y,ne)}}e.patchWriteFileEnsuringDirectory=se;function w(){if(typeof ni=="undefined")return;var k=ni.version;if(!k)return;var P=k.indexOf(".");return P===-1?void 0:parseInt(k.substring(1,P))}e.getNodeMajorVersion=w,e.sys=void 0,e.sys&&e.sys.getEnvironmentVariable&&(ie(e.sys),e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)})(ln||(ln={}));var ln;(function(e){e.directorySeparator="/";var o="\\",F="://",qe=/\\/g;function Se(x){return x===47||x===92}e.isAnyDirectorySeparator=Se;function Fe(x){return w(x)<0}e.isUrl=Fe;function He(x){return w(x)>0}e.isRootedDiskPath=He;function ve(x){var j=w(x);return j>0&&j===x.length}e.isDiskPathRoot=ve;function ie(x){return w(x)!==0}e.pathIsAbsolute=ie;function d(x){return/^\.\.?($|[\\/])/.test(x)}e.pathIsRelative=d;function H(x){return e.stringContains(h(x),".")}e.hasExtension=H;function Pe(x,j){return x.length>j.length&&e.endsWith(x,j)}e.fileExtensionIs=Pe;function I(x,j){for(var Oe=0,a=j;Oe<a.length;Oe++){var en=a[Oe];if(Pe(x,en))return!0}return!1}e.fileExtensionIsOneOf=I;function _e(x){return x.length>0&&Se(x.charCodeAt(x.length-1))}e.hasTrailingDirectorySeparator=_e;function re(x){return x>=97&&x<=122||x>=65&&x<=90}function se(x,j){var Oe=x.charCodeAt(j);if(Oe===58)return j+1;if(Oe===37&&x.charCodeAt(j+1)===51){var a=x.charCodeAt(j+2);if(a===97||a===65)return j+3}return-1}function w(x){if(!x)return 0;var j=x.charCodeAt(0);if(j===47||j===92){if(x.charCodeAt(1)!==j)return 1;var Oe=x.indexOf(j===47?e.directorySeparator:o,2);return Oe<0?x.length:Oe+1}if(re(j)&&x.charCodeAt(1)===58){var a=x.charCodeAt(2);if(a===47||a===92)return 3;if(x.length===2)return 2}var en=x.indexOf(F);if(en!==-1){var Pn=en+F.length,Xn=x.indexOf(e.directorySeparator,Pn);if(Xn!==-1){var ae=x.slice(0,en),ce=x.slice(Pn,Xn);if(ae==="file"&&(ce===""||ce==="localhost")&&re(x.charCodeAt(Xn+1))){var Le=se(x,Xn+2);if(Le!==-1){if(x.charCodeAt(Le)===47)return~(Le+1);if(Le===x.length)return~Le}}return~(Xn+1)}return~x.length}return 0}function k(x){var j=w(x);return j<0?~j:j}e.getRootLength=k;function P(x){x=K(x);var j=k(x);return j===x.length?x:(x=D(x),x.slice(0,Math.max(j,x.lastIndexOf(e.directorySeparator))))}e.getDirectoryPath=P;function h(x,j,Oe){x=K(x);var a=k(x);if(a===x.length)return"";x=D(x);var en=x.slice(Math.max(k(x),x.lastIndexOf(e.directorySeparator)+1)),Pn=j!==void 0&&Oe!==void 0?$(en,j,Oe):void 0;return Pn?en.slice(0,en.length-Pn.length):en}e.getBaseFileName=h;function Y(x,j,Oe){if(e.startsWith(j,".")||(j="."+j),x.length>=j.length&&x.charCodeAt(x.length-j.length)===46){var a=x.slice(x.length-j.length);if(Oe(a,j))return a}}function ne(x,j,Oe){if(typeof j=="string")return Y(x,j,Oe)||"";for(var a=0,en=j;a<en.length;a++){var Pn=en[a],Xn=Y(x,Pn,Oe);if(Xn)return Xn}return""}function $(x,j,Oe){if(j)return ne(D(x),j,Oe?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var a=h(x),en=a.lastIndexOf(".");return en>=0?a.substring(en):""}e.getAnyExtensionFromPath=$;function J(x,j){var Oe=x.substring(0,j),a=x.substring(j).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),Or([Oe],a)}function fe(x,j){return j===void 0&&(j=""),x=Ee(j,x),J(x,k(x))}e.getPathComponents=fe;function R(x){if(x.length===0)return"";var j=x[0]&&T(x[0]);return j+x.slice(1).join(e.directorySeparator)}e.getPathFromPathComponents=R;function K(x){return x.replace(qe,e.directorySeparator)}e.normalizeSlashes=K;function z(x){if(!e.some(x))return[];for(var j=[x[0]],Oe=1;Oe<x.length;Oe++){var a=x[Oe];if(!a)continue;if(a===".")continue;if(a===".."){if(j.length>1){if(j[j.length-1]!==".."){j.pop();continue}}else if(j[0])continue}j.push(a)}return j}e.reducePathComponents=z;function Ee(x){for(var j=[],Oe=1;Oe<arguments.length;Oe++)j[Oe-1]=arguments[Oe];x&&(x=K(x));for(var a=0,en=j;a<en.length;a++){var Pn=en[a];if(!Pn)continue;Pn=K(Pn),!x||k(Pn)!==0?x=Pn:x=T(x)+Pn}return x}e.combinePaths=Ee;function B(x){for(var j=[],Oe=1;Oe<arguments.length;Oe++)j[Oe-1]=arguments[Oe];return y(e.some(j)?Ee.apply(void 0,Or([x],j)):K(x))}e.resolvePath=B;function V(x,j){return z(fe(x,j))}e.getNormalizedPathComponents=V;function m(x,j){return R(V(x,j))}e.getNormalizedAbsolutePath=m;function y(x){x=K(x);var j=R(z(fe(x)));return j&&_e(x)?T(j):j}e.normalizePath=y;function L(x){return x.length===0?"":x.slice(1).join(e.directorySeparator)}function C(x,j){return L(V(x,j))}e.getNormalizedAbsolutePathWithoutRoot=C;function _(x,j,Oe){var a=He(x)?y(x):m(x,j);return Oe(a)}e.toPath=_;function b(x){x=K(x);var j=z(fe(x)),Oe=j[0],a=j.slice(1);if(a.length){var en=Oe+a.join(e.directorySeparator);return{path:_e(x)?T(en):en,parts:a}}else return{path:Oe,parts:a}}e.normalizePathAndParts=b;function D(x){return _e(x)?x.substr(0,x.length-1):x}e.removeTrailingDirectorySeparator=D;function T(x){return _e(x)?x:x+e.directorySeparator}e.ensureTrailingDirectorySeparator=T;function Q(x){return!ie(x)&&!d(x)?"./"+x:x}e.ensurePathIsNonModuleName=Q;function N(x,j,Oe,a){var en=Oe!==void 0&&a!==void 0?$(x,Oe,a):$(x);return en?x.slice(0,x.length-en.length)+(e.startsWith(j,".")?j:"."+j):x}e.changeAnyExtension=N;var X=/(^|\/)\.{0,2}($|\/)/;function pe(x,j,Oe){if(x===j)return 0;if(x===void 0)return-1;if(j===void 0)return 1;var a=x.substring(0,k(x)),en=j.substring(0,k(j)),Pn=e.compareStringsCaseInsensitive(a,en);if(Pn!==0)return Pn;var Xn=x.substring(a.length),ae=j.substring(en.length);if(!X.test(Xn)&&!X.test(ae))return Oe(Xn,ae);for(var ce=z(fe(x)),Le=z(fe(j)),Je=Math.min(ce.length,Le.length),Ze=1;Ze<Je;Ze++){var Ue=Oe(ce[Ze],Le[Ze]);if(Ue!==0)return Ue}return e.compareValues(ce.length,Le.length)}function S(x,j){return pe(x,j,e.compareStringsCaseSensitive)}e.comparePathsCaseSensitive=S;function v(x,j){return pe(x,j,e.compareStringsCaseInsensitive)}e.comparePathsCaseInsensitive=v;function U(x,j,Oe,a){return typeof Oe=="string"?(x=Ee(Oe,x),j=Ee(Oe,j)):typeof Oe=="boolean"&&(a=Oe),pe(x,j,e.getStringComparer(a))}e.comparePaths=U;function de(x,j,Oe,a){if(typeof Oe=="string"?(x=Ee(Oe,x),j=Ee(Oe,j)):typeof Oe=="boolean"&&(a=Oe),x===void 0||j===void 0)return!1;if(x===j)return!0;var en=z(fe(x)),Pn=z(fe(j));if(Pn.length<en.length)return!1;for(var Xn=a?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,ae=0;ae<en.length;ae++){var ce=ae===0?e.equateStringsCaseInsensitive:Xn;if(!ce(en[ae],Pn[ae]))return!1}return!0}e.containsPath=de;function Ce(x,j,Oe){var a=Oe(x),en=Oe(j);return e.startsWith(a,en+"/")||e.startsWith(a,en+"\\")}e.startsWithDirectory=Ce;function Z(x,j,Oe,a){var en=z(fe(x)),Pn=z(fe(j)),Xn;for(Xn=0;Xn<en.length&&Xn<Pn.length;Xn++){var ae=a(en[Xn]),ce=a(Pn[Xn]),Le=Xn===0?e.equateStringsCaseInsensitive:Oe;if(!Le(ae,ce))break}if(Xn===0)return Pn;for(var Je=Pn.slice(Xn),Ze=[];Xn<en.length;Xn++)Ze.push("..");return Or([""],Ze,Je)}e.getPathComponentsRelativeTo=Z;function Re(x,j,Oe){e.Debug.assert(k(x)>0===k(j)>0,"Paths must either both be absolute or both be relative");var a=typeof Oe=="function"?Oe:e.identity,en=typeof Oe=="boolean"?Oe:!1,Pn=Z(x,j,en?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,a);return R(Pn)}e.getRelativePathFromDirectory=Re;function Ae(x,j,Oe){return He(x)?be(j,x,j,Oe,!1):x}e.convertToRelativePath=Ae;function We(x,j,Oe){return Q(Re(P(x),j,Oe))}e.getRelativePathFromFile=We;function be(x,j,Oe,a,en){var Pn=Z(B(Oe,x),B(Oe,j),e.equateStringsCaseSensitive,a),Xn=Pn[0];if(en&&He(Xn)){var ae=Xn.charAt(0)===e.directorySeparator?"file://":"file:///";Pn[0]=ae+Xn}return R(Pn)}e.getRelativePathToDirectoryOrUrl=be;function Ge(x,j){for(;;){var Oe=j(x);if(Oe!==void 0)return Oe;var a=P(x);if(a===x)return;x=a}}e.forEachAncestorDirectory=Ge})(ln||(ln={}));var ln;(function(e){function o(F,qe,Se,Fe,He,ve){return{code:F,category:qe,key:Se,message:Fe,reportsUnnecessary:He,elidedInCompatabilityPyramid:ve}}e.Diagnostics={Unterminated_string_literal:o(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:o(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:o(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:o(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),Trailing_comma_not_allowed:o(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:o(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:o(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:o(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),An_index_signature_parameter_type_must_be_either_string_or_number:o(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_either_string_or_number_1023","An index signature parameter type must be either 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:o(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."),Accessibility_modifier_already_seen:o(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:o(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:o(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_a_class_element:o(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),super_must_be_followed_by_an_argument_list_or_member_access:o(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:o(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:o(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:o(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:o(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:o(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_with_a_class_declaration:o(1041,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_0_modifier_cannot_be_used_here:o(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_data_property:o(1043,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:o(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),A_0_modifier_cannot_be_used_with_an_interface_declaration:o(1045,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","A '{0}' modifier cannot be used with an interface declaration."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:o(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:o(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:o(1057,e.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","An async function or method must have a valid awaitable return type."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:o(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:o(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:o(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:o(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:o(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:o(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:o(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:o(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:o(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:o(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:o(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:o(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."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:o(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:o(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:o(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."),Jump_target_cannot_cross_function_boundary:o(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:o(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:o(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:o(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:o(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:o(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:o(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:o(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:o(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:o(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:o(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:o(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:o(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:o(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:o(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:o(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:o(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:o(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:o(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:o(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:o(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:o(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:o(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:o(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:o(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:o(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:o(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:o(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:o(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:o(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:o(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:o(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:o(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:o(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:o(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:o(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_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:o(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a 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:o(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:o(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:o(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:o(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:o(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:o(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:o(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:o(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:o(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:o(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:o(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:o(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:o(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:o(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:o(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:o(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:o(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:o(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:o(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:o(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:o(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:o(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:o(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:o(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:o(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:o(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:o(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),Catch_clause_variable_cannot_have_a_type_annotation:o(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer:o(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:o(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:o(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:o(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:o(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:o(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."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:o(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here:o(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:o(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."),All_files_must_be_modules_when_the_isolatedModules_flag_is_provided:o(1208,e.DiagnosticCategory.Error,"All_files_must_be_modules_when_the_isolatedModules_flag_is_provided_1208","All files must be modules when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:o(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:o(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:o(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:o(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:o(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:o(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:o(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:o(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:o(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:o(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:o(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:o(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_can_only_be_used_in_a_module:o(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:o(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:o(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:o(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_rest_element_must_be_last_in_a_tuple_type:o(1256,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_tuple_type_1256","A rest element must be last in a tuple type."),A_required_element_cannot_follow_an_optional_element:o(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation:o(1258,e.DiagnosticCategory.Error,"Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation_1258","Definite assignment assertions can only be used along with a type annotation."),Module_0_can_only_be_default_imported_using_the_1_flag:o(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:o(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),with_statements_are_not_allowed_in_an_async_function_block:o(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_expression_is_only_allowed_within_an_async_function:o(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:o(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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_esnext_commonjs_amd_system_or_umd:o(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_commonjs_amd_system_or_umd_1323","Dynamic imports are only supported when the '--module' flag is set to 'esnext', 'commonjs', 'amd', 'system', or 'umd'."),Dynamic_import_must_have_one_specifier_as_an_argument:o(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:o(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:o(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:o(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:o(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:o(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:o(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:o(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:o(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_esnext_or_system:o(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'esnext' or 'system'."),A_label_is_not_allowed_here:o(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:o(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:o(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:o(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:o(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:o(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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."),The_types_of_0_are_incompatible_between_these_types:o(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:o(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:o(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:o(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:o(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:o(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Duplicate_identifier_0:o(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:o(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:o(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:o(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:o(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:o(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:o(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0:o(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:o(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:o(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:o(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:o(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:o(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:o(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:o(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:o(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:o(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:o(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:o(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:o(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:o(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:o(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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_be_referenced_in_its_initializer:o(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:o(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:o(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:o(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:o(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 or has parameter properties."),Constructors_for_derived_classes_must_contain_a_super_call:o(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:o(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:o(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:o(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:o(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:o(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:o(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:o(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:o(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:o(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:o(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:o(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:o(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:o(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:o(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:o(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:o(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:o(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:o(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:o(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:o(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:o(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:o(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:o(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:o(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:o(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:o(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:o(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:o(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:o(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:o(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:o(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}'."),Class_0_incorrectly_implements_interface_1:o(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:o(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:o(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:o(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:o(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:o(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:o(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:o(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:o(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:o(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:o(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:o(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:o(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:o(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:o(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:o(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:o(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:o(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:o(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:o(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Type_0_is_not_an_array_type:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:o(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:o(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:o(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:o(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:o(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:o(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:o(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:o(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:o(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:o(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:o(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:o(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:o(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:o(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:o(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:o(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:o(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:o(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:o(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:o(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:o(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:o(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:o(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:o(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:o(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:o(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[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:o(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:o(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:o(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:o(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_Did_you_mean_2:o(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:o(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:o(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:o(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:o(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_1_or_more:o(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:o(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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."),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:o(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."),Object_is_of_type_unknown:o(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:o(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:o(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:o(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:o(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_is_a_static_member_of_type_1:o(2576,e.DiagnosticCategory.Error,"Property_0_is_a_static_member_of_type_1_2576","Property '{0}' is a static member of type '{1}'"),Return_type_annotation_circularly_references_itself:o(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode:o(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery:o(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha:o(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:o(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 es2015 or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:o(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:o(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later."),Enum_type_0_circularly_references_itself:o(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:o(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:o(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:o(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:o(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_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:o(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_th_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @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_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:o(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_an_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @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_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:o(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @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:o(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."),JSX_element_attributes_type_0_may_not_be_a_union_type:o(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:o(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:o(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:o(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:o(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:o(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:o(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:o(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:o(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:o(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_property:o(2610,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_proper_2610","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member property."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_accessor:o(2611,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_access_2611","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member 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:o(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:o(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:o(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?"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:o(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:o(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:o(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:o(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:o(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:o(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:o(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:o(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:o(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:o(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:o(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:o(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:o(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:o(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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'."),Module_0_has_no_exported_member_1_Did_you_mean_2:o(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:o(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:o(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:o(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:o(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:o(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:o(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:o(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:o(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:o(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),It_is_highly_likely_that_you_are_missing_a_semicolon:o(2734,e.DiagnosticCategory.Error,"It_is_highly_likely_that_you_are_missing_a_semicolon_2734","It is highly likely that you are missing a semicolon."),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:o(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:o(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_ESNext:o(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ESNext_2737","BigInt literals are not available when targeting lower than ESNext."),An_outer_value_of_this_is_shadowed_by_this_container:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_2749","'{0}' refers to a value, but is being used as a type here."),The_implementation_signature_is_declared_here:o(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:o(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:o(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:o(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:o(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:o(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:o(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:o(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:o(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead:o(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it__2774","This condition will always return true since the 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:o(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:o(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:o(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:o(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:o(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:o(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:o(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."),Import_declaration_0_is_using_private_name_1:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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_interface_0_has_or_is_using_private_name_1:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),The_current_host_does_not_support_the_0_option:o(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:o(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:o(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:o(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:o(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:o(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:o(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Could_not_write_file_0_Colon_1:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:o(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:o(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:o(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:o(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:o(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:o(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:o(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:o(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:o(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:o(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:o(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:o(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:o(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:o(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:o(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:o(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:o(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:o(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:o(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:o(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT:o(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:o(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message:o(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:o(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:o(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:o(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:o(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:o(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:o(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:o(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:o(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:o(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:o(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:o(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:o(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:o(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:o(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:o(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:o(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:o(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:o(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:o(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:o(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:o(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:o(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:o(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unsupported_locale_0:o(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:o(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:o(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:o(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:o(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_unsupported_extension_The_only_supported_extensions_are_1:o(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:o(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:o(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:o(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:o(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:o(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:o(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file:o(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators:o(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:o(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:o(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:o(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:o(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:o(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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_Colon_preserve_react_native_or_react:o(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:o(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:o(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:o(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:o(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:o(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:o(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:o(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:o(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:o(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:o(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:o(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:o(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:o(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:o(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:o(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:o(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:o(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:o(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:o(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:o(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:o(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:o(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:o(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:o(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:o(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:o(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:o(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:o(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:o(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:o(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:o(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:o(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:o(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:o(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:o(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:o(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:o(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:o(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:o(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:o(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:o(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:o(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:o(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:o(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:o(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:o(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:o(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:o(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:o(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:o(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:o(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:o(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:o(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:o(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:o(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:o(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:o(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:o(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:o(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:o(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:o(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:o(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:o(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:o(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:o(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:o(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:o(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:o(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:o(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:o(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:o(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:o(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:o(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:o(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Projects_to_reference:o(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:o(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:o(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:o(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:o(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:o(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:o(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:o(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:o(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:o(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:o(6360,e.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:o(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:o(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:o(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:o(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:o(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Enable_verbose_logging:o(6366,e.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),Show_what_would_be_built_or_deleted_if_specified_with_clean:o(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')"),Build_all_projects_including_those_that_appear_to_be_up_to_date:o(6368,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6368","Build all projects, including those that appear to be up to date"),Option_build_must_be_the_first_command_line_argument:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:o(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:o(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:o(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:o(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:o(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"),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:o(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:o(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:o(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:o(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."),Variable_0_implicitly_has_an_1_type:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:o(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:o(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:o(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:o(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:o(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:o(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:o(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_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:o(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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."),You_cannot_rename_this_element:o(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:o(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_a_ts_file:o(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:o(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:o(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:o(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:o(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:o(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:o(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:o(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:o(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:o(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:o(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:o(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:o(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:o(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:o(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:o(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:o(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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}'."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:o(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:o(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:o(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:o(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:o(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:o(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:o(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:o(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:o(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),JSX_fragment_is_not_supported_when_using_jsxFactory:o(17016,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_jsxFactory_17016","JSX fragment is not supported when using --jsxFactory"),JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma:o(17017,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma_17017","JSX fragment is not supported when using an inline JSX factory pragma"),Circularity_detected_while_resolving_configuration_Colon_0:o(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:o(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:o(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:o(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module:o(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:o(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:o(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_declaration_for_Colon_0:o(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{0}'"),Remove_import_from_0:o(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:o(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:o(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:o(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_destructuring:o(90009,e.DiagnosticCategory.Message,"Remove_destructuring_90009","Remove destructuring"),Remove_variable_statement:o(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:o(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:o(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:o(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013",`Import '{0}' from module "{1}"`),Change_0_to_1:o(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:o(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015",`Add '{0}' to existing import declaration from "{1}"`),Declare_property_0:o(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:o(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:o(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:o(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:o(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:o(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:o(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:o(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:o(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:o(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:o(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:o(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:o(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:o(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:o(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:o(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:o(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:o(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:o(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Convert_function_to_an_ES2015_class:o(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:o(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_to_0_in_1:o(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:o(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:o(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:o(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:o(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:o(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:o(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:o(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:o(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:o(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:o(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:o(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:o(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:o(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:o(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:o(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:o(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Add_all_missing_members:o(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:o(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:o(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:o(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:o(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:o(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:o(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:o(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:o(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:o(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:o(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:o(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:o(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:o(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:o(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:o(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:o(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:o(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:o(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:o(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:o(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:o(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:o(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:o(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:o(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:o(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:o(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:o(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:o(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:o(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:o(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:o(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:o(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:o(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:o(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:o(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:o(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:o(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:o(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:o(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:o(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:o(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:o(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:o(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:o(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_unknown_conversion_for_non_overlapping_types:o(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:o(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:o(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:o(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:o(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:o(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:o(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Allow_accessing_UMD_globals_from_modules:o(95076,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_95076","Allow accessing UMD globals from modules."),Extract_type:o(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:o(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:o(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:o(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:o(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:o(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:o(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:o(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:o(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:o(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:o(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:o(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:o(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:o(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:o(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:o(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:o(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:o(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:o(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:o(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:o(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:o(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?")}})(ln||(ln={}));var ln;(function(e){var o;function F(x){return x>=75}e.tokenIsIdentifierOrKeyword=F;function qe(x){return x===31||F(x)}e.tokenIsIdentifierOrKeywordOrGreaterThan=qe;var Se=(o={abstract:121,any:124,as:122,asserts:123,bigint:150,boolean:127,break:76,case:77,catch:78,class:79,continue:81,const:80},o["constructor"]=128,o.debugger=82,o.declare=129,o.default=83,o.delete=84,o.do=85,o.else=86,o.enum=87,o.export=88,o.extends=89,o.false=90,o.finally=91,o.for=92,o.from=148,o.function=93,o.get=130,o.if=94,o.implements=112,o.import=95,o.in=96,o.infer=131,o.instanceof=97,o.interface=113,o.is=132,o.keyof=133,o.let=114,o.module=134,o.namespace=135,o.never=136,o.new=98,o.null=99,o.number=139,o.object=140,o.package=115,o.private=116,o.protected=117,o.public=118,o.readonly=137,o.require=138,o.global=149,o.return=100,o.set=141,o.static=119,o.string=142,o.super=101,o.switch=102,o.symbol=143,o.this=103,o.throw=104,o.true=105,o.try=106,o.type=144,o.typeof=107,o.undefined=145,o.unique=146,o.unknown=147,o.var=108,o.void=109,o.while=110,o.with=111,o.yield=120,o.async=125,o.await=126,o.of=151,o),Fe=e.createMapFromTemplate(Se),He=e.createMapFromTemplate(ma(ma({},Se),{"{":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,"=":62,"+=":63,"-=":64,"*=":65,"**=":66,"/=":67,"%=":68,"<<=":69,">>=":70,">>>=":71,"&=":72,"|=":73,"^=":74,"@":59,"`":61})),ve=[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],ie=[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],d=[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],H=[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],Pe=[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],I=[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];function _e(x,j){if(x<j[0])return!1;for(var Oe=0,a=j.length,en;Oe+1<a;){if(en=Oe+(a-Oe)/2,en-=en%2,j[en]<=x&&x<=j[en+1])return!0;x<j[en]?a=en:Oe=en+2}return!1}function re(x,j){return j>=2?_e(x,Pe):j===1?_e(x,d):_e(x,ve)}e.isUnicodeIdentifierStart=re;function se(x,j){return j>=2?_e(x,I):j===1?_e(x,H):_e(x,ie)}function w(x){var j=[];return x.forEach(function(Oe,a){j[Oe]=a}),j}var k=w(He);function P(x){return k[x]}e.tokenToString=P;function h(x){return He.get(x)}e.stringToToken=h;function Y(x){for(var j=new Array,Oe=0,a=0;Oe<x.length;){var en=x.charCodeAt(Oe);Oe++;switch(en){case 13:x.charCodeAt(Oe)===10&&Oe++;case 10:j.push(a),a=Oe;break;default:en>127&&Ee(en)&&(j.push(a),a=Oe);break}}return j.push(a),j}e.computeLineStarts=Y;function ne(x,j,Oe,a){return x.getPositionOfLineAndCharacter?x.getPositionOfLineAndCharacter(j,Oe,a):$(J(x),j,Oe,x.text,a)}e.getPositionOfLineAndCharacter=ne;function $(x,j,Oe,a,en){(j<0||j>=x.length)&&(en?j=j<0?0:j>=x.length?x.length-1:j:e.Debug.fail("Bad line number. Line: "+j+", lineStarts.length: "+x.length+" , line map is correct? "+(a!==void 0?e.arraysEqual(x,Y(a)):"unknown")));var Pn=x[j]+Oe;return en?Pn>x[j+1]?x[j+1]:typeof a=="string"&&Pn>a.length?a.length:Pn:(j<x.length-1?e.Debug.assert(Pn<x[j+1]):a!==void 0&&e.Debug.assert(Pn<=a.length),Pn)}e.computePositionOfLineAndCharacter=$;function J(x){return x.lineMap||(x.lineMap=Y(x.text))}e.getLineStarts=J;function fe(x,j){var Oe=e.binarySearch(x,j,e.identity,e.compareValues);return Oe<0&&(Oe=~Oe-1,e.Debug.assert(Oe!==-1,"position cannot precede the beginning of the file")),{line:Oe,character:j-x[Oe]}}e.computeLineAndCharacterOfPosition=fe;function R(x,j){return fe(J(x),j)}e.getLineAndCharacterOfPosition=R;function K(x){return z(x)||Ee(x)}e.isWhiteSpaceLike=K;function z(x){return x===32||x===9||x===11||x===12||x===160||x===133||x===5760||x>=8192&&x<=8203||x===8239||x===8287||x===12288||x===65279}e.isWhiteSpaceSingleLine=z;function Ee(x){return x===10||x===13||x===8232||x===8233}e.isLineBreak=Ee;function B(x){return x>=48&&x<=57}function V(x){return x>=48&&x<=55}e.isOctalDigit=V;function m(x,j){var Oe=x.charCodeAt(j);switch(Oe){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 j===0;default:return Oe>127}}e.couldStartTrivia=m;function y(x,j,Oe,a){if(a===void 0&&(a=!1),e.positionIsSynthesized(j))return j;for(;;){var en=x.charCodeAt(j);switch(en){case 13:x.charCodeAt(j+1)===10&&j++;case 10:if(j++,Oe)return j;continue;case 9:case 11:case 12:case 32:j++;continue;case 47:if(a)break;if(x.charCodeAt(j+1)===47){for(j+=2;j<x.length&&!Ee(x.charCodeAt(j));)j++;continue}if(x.charCodeAt(j+1)===42){for(j+=2;j<x.length;){if(x.charCodeAt(j)===42&&x.charCodeAt(j+1)===47){j+=2;break}j++}continue}break;case 60:case 124:case 61:case 62:if(C(x,j)){j=_(x,j);continue}break;case 35:if(j===0&&D(x,j)){j=T(x,j);continue}break;default:if(en>127&&K(en)){j++;continue}break}return j}}e.skipTrivia=y;var L="<<<<<<<".length;function C(x,j){if(e.Debug.assert(j>=0),j===0||Ee(x.charCodeAt(j-1))){var Oe=x.charCodeAt(j);if(j+L<x.length){for(var a=0;a<L;a++)if(x.charCodeAt(j+a)!==Oe)return!1;return Oe===61||x.charCodeAt(j+L)===32}}return!1}function _(x,j,Oe){Oe&&Oe(e.Diagnostics.Merge_conflict_marker_encountered,j,L);var a=x.charCodeAt(j),en=x.length;if(a===60||a===62)for(;j<en&&!Ee(x.charCodeAt(j));)j++;else for(e.Debug.assert(a===124||a===61);j<en;){var Pn=x.charCodeAt(j);if((Pn===61||Pn===62)&&Pn!==a&&C(x,j))break;j++}return j}var b=/^#!.*/;function D(x,j){return e.Debug.assert(j===0),b.test(x)}e.isShebangTrivia=D;function T(x,j){var Oe=b.exec(x)[0];return j=j+Oe.length,j}e.scanShebangTrivia=T;function Q(x,j,Oe,a,en,Pn,Xn){var ae,ce,Le,Je,Ze=!1,Ue=a,cn=Xn;if(Oe===0){Ue=!0;var $e=Ce(j);$e&&(Oe=$e.length)}e:for(;Oe>=0&&Oe<j.length;){var sn=j.charCodeAt(Oe);switch(sn){case 13:j.charCodeAt(Oe+1)===10&&Oe++;case 10:if(Oe++,a)break e;Ue=!0,Ze&&(Je=!0);continue;case 9:case 11:case 12:case 32:Oe++;continue;case 47:var he=j.charCodeAt(Oe+1),ke=!1;if(he===47||he===42){var G=he===47?2:3,c=Oe;if(Oe+=2,he===47)for(;Oe<j.length;){if(Ee(j.charCodeAt(Oe))){ke=!0;break}Oe++}else for(;Oe<j.length;){if(j.charCodeAt(Oe)===42&&j.charCodeAt(Oe+1)===47){Oe+=2;break}Oe++}if(Ue){if(Ze&&(cn=en(ae,ce,Le,Je,Pn,cn),!x&&cn))return cn;ae=c,ce=Oe,Le=G,Je=ke,Ze=!0}continue}break e;default:if(sn>127&&K(sn)){Ze&&Ee(sn)&&(Je=!0),Oe++;continue}break e}}return Ze&&(cn=en(ae,ce,Le,Je,Pn,cn)),cn}function N(x,j,Oe,a){return Q(!1,x,j,!1,Oe,a)}e.forEachLeadingCommentRange=N;function X(x,j,Oe,a){return Q(!1,x,j,!0,Oe,a)}e.forEachTrailingCommentRange=X;function pe(x,j,Oe,a,en){return Q(!0,x,j,!1,Oe,a,en)}e.reduceEachLeadingCommentRange=pe;function S(x,j,Oe,a,en){return Q(!0,x,j,!0,Oe,a,en)}e.reduceEachTrailingCommentRange=S;function v(x,j,Oe,a,en,Pn){return Pn||(Pn=[]),Pn.push({kind:Oe,pos:x,end:j,hasTrailingNewLine:a}),Pn}function U(x,j){return pe(x,j,v,void 0,void 0)}e.getLeadingCommentRanges=U;function de(x,j){return S(x,j,v,void 0,void 0)}e.getTrailingCommentRanges=de;function Ce(x){var j=b.exec(x);if(j)return j[0]}e.getShebang=Ce;function Z(x,j){return x>=65&&x<=90||x>=97&&x<=122||x===36||x===95||x>127&&re(x,j)}e.isIdentifierStart=Z;function Re(x,j){return x>=65&&x<=90||x>=97&&x<=122||x>=48&&x<=57||x===36||x===95||x>127&&se(x,j)}e.isIdentifierPart=Re;function Ae(x,j){var Oe=be(x,0);if(!Z(Oe,j))return!1;for(var a=Ge(Oe);a<x.length;a+=Ge(Oe))if(!Re(Oe=be(x,a),j))return!1;return!0}e.isIdentifierText=Ae;function We(x,j,Oe,a,en,Pn,Xn){Oe===void 0&&(Oe=0);var ae=a,ce,Le,Je,Ze,Ue,cn,$e,sn=0;nr(ae,Pn,Xn);var he={getStartPos:function(){return Je},getTextPos:function(){return ce},getToken:function(){return Ue},getTokenPos:function(){return Ze},getTokenText:function(){return ae.substring(Ze,ce)},getTokenValue:function(){return cn},hasUnicodeEscape:function(){return($e&1024)!==0},hasExtendedUnicodeEscape:function(){return($e&8)!==0},hasPrecedingLineBreak:function(){return($e&1)!==0},isIdentifier:function(){return Ue===75||Ue>111},isReservedWord:function(){return Ue>=76&&Ue<=111},isUnterminated:function(){return($e&4)!==0},getTokenFlags:function(){return $e},reScanGreaterToken:tt,reScanSlashToken:Vn,reScanTemplateToken:ut,scanJsxIdentifier:st,scanJsxAttributeValue:qn,reScanJsxToken:dt,reScanLessThanToken:ot,reScanQuestionToken:ct,scanJsxToken:wt,scanJsDocToken:Ie,scan:Mn,getText:Ht,setText:nr,setScriptTarget:Qr,setLanguageVariant:Wr,setOnError:vr,setTextPos:gt,setInJSDocType:ba,tryScan:It,lookAhead:_t,scanRange:_n};return e.Debug.isDebugging&&Object.defineProperty(he,"__debugShowCurrentPositionInText",{get:function(){var jn=he.getText();return jn.slice(0,he.getStartPos())+"\u2551"+jn.slice(he.getStartPos())}}),he;function ke(kt,jn,Ut){if(jn===void 0&&(jn=ce),en){var ft=ce;ce=jn,en(kt,Ut||0),ce=ft}}function G(){for(var kt=ce,jn=!1,Ut=!1,ft="";;){var Tt=ae.charCodeAt(ce);if(Tt===95){$e|=512,jn?(jn=!1,Ut=!0,ft+=ae.substring(kt,ce)):ke(Ut?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,ce,1),ce++,kt=ce;continue}if(B(Tt)){jn=!0,Ut=!1,ce++;continue}break}return ae.charCodeAt(ce-1)===95&&ke(e.Diagnostics.Numeric_separators_are_not_allowed_here,ce-1,1),ft+ae.substring(kt,ce)}function c(){var kt=ce,jn=G(),Ut,ft;ae.charCodeAt(ce)===46&&(ce++,Ut=G());var Tt=ce;if(ae.charCodeAt(ce)===69||ae.charCodeAt(ce)===101){ce++,$e|=16,(ae.charCodeAt(ce)===43||ae.charCodeAt(ce)===45)&&ce++;var yt=ce,vt=G();vt?(ft=ae.substring(Tt,yt)+vt,Tt=ce):ke(e.Diagnostics.Digit_expected)}var Ke;if($e&512?(Ke=jn,Ut&&(Ke+="."+Ut),ft&&(Ke+=ft)):Ke=ae.substring(kt,Tt),Ut!==void 0||$e&16)return O(kt,Ut===void 0&&!!($e&16)),{type:8,value:""+ +Ke};cn=Ke;var Rn=un();return O(kt),{type:Rn,value:cn}}function O(kt,jn){if(!Z(be(ae,ce),x))return;var Ut=ce,ft=yn().length;ft===1&&ae[Ut]==="n"?ke(jn?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,kt,Ut-kt+1):(ke(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Ut,ft),ce=Ut)}function ee(){for(var kt=ce;V(ae.charCodeAt(ce));)ce++;return+ae.substring(kt,ce)}function Te(kt,jn){var Ut=ze(kt,!1,jn);return Ut?parseInt(Ut,16):-1}function Ne(kt,jn){return ze(kt,!0,jn)}function ze(kt,jn,Ut){for(var ft=[],Tt=!1,yt=!1;ft.length<kt||jn;){var vt=ae.charCodeAt(ce);if(Ut&&vt===95){$e|=512,Tt?(Tt=!1,yt=!0):ke(yt?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,ce,1),ce++;continue}if(Tt=Ut,vt>=65&&vt<=70)vt+=97-65;else if(!(vt>=48&&vt<=57||vt>=97&&vt<=102))break;ft.push(vt),ce++,yt=!1}return ft.length<kt&&(ft=[]),ae.charCodeAt(ce-1)===95&&ke(e.Diagnostics.Numeric_separators_are_not_allowed_here,ce-1,1),String.fromCharCode.apply(String,ft)}function bn(kt){kt===void 0&&(kt=!1);var jn=ae.charCodeAt(ce);ce++;for(var Ut="",ft=ce;;){if(ce>=Le){Ut+=ae.substring(ft,ce),$e|=4,ke(e.Diagnostics.Unterminated_string_literal);break}var Tt=ae.charCodeAt(ce);if(Tt===jn){Ut+=ae.substring(ft,ce),ce++;break}if(Tt===92&&!kt){Ut+=ae.substring(ft,ce),Ut+=Kn(),ft=ce;continue}if(Ee(Tt)&&!kt){Ut+=ae.substring(ft,ce),$e|=4,ke(e.Diagnostics.Unterminated_string_literal);break}ce++}return Ut}function Sn(){var kt=ae.charCodeAt(ce)===96;ce++;for(var jn=ce,Ut="",ft;;){if(ce>=Le){Ut+=ae.substring(jn,ce),$e|=4,ke(e.Diagnostics.Unterminated_template_literal),ft=kt?14:17;break}var Tt=ae.charCodeAt(ce);if(Tt===96){Ut+=ae.substring(jn,ce),ce++,ft=kt?14:17;break}if(Tt===36&&ce+1<Le&&ae.charCodeAt(ce+1)===123){Ut+=ae.substring(jn,ce),ce+=2,ft=kt?15:16;break}if(Tt===92){Ut+=ae.substring(jn,ce),Ut+=Kn(),jn=ce;continue}if(Tt===13){Ut+=ae.substring(jn,ce),ce++,ce<Le&&ae.charCodeAt(ce)===10&&ce++,Ut+=`
`,jn=ce;continue}ce++}return e.Debug.assert(ft!==void 0),cn=Ut,ft}function Kn(){if(ce++,ce>=Le)return ke(e.Diagnostics.Unexpected_end_of_text),"";var kt=ae.charCodeAt(ce);ce++;switch(kt){case 48:return"\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:return ce<Le&&ae.charCodeAt(ce)===123?($e|=8,ce++,pn()):($e|=1024,Xe(4));case 120:return Xe(2);case 13:ce<Le&&ae.charCodeAt(ce)===10&&ce++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(kt)}}function Xe(kt){var jn=Te(kt,!1);return jn>=0?String.fromCharCode(jn):(ke(e.Diagnostics.Hexadecimal_digit_expected),"")}function pn(){var kt=Ne(1,!1),jn=kt?parseInt(kt,16):-1,Ut=!1;return jn<0?(ke(e.Diagnostics.Hexadecimal_digit_expected),Ut=!0):jn>1114111&&(ke(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Ut=!0),ce>=Le?(ke(e.Diagnostics.Unexpected_end_of_text),Ut=!0):ae.charCodeAt(ce)===125?ce++:(ke(e.Diagnostics.Unterminated_Unicode_escape_sequence),Ut=!0),Ut?"":le(jn)}function le(kt){if(e.Debug.assert(0<=kt&&kt<=1114111),kt<=65535)return String.fromCharCode(kt);var jn=Math.floor((kt-65536)/1024)+55296,Ut=(kt-65536)%1024+56320;return String.fromCharCode(jn,Ut)}function oe(){if(ce+5<Le&&ae.charCodeAt(ce+1)===117){var kt=ce;ce+=2;var jn=Te(4,!1);return ce=kt,jn}return-1}function kn(){if(x>=2&&be(ae,ce+1)===117&&be(ae,ce+2)===123){var kt=ce;ce+=3;var jn=Ne(1,!1),Ut=jn?parseInt(jn,16):-1;return ce=kt,Ut}return-1}function yn(){for(var kt="",jn=ce;ce<Le;){var Ut=be(ae,ce);if(Re(Ut,x))ce+=Ge(Ut);else if(Ut===92){if(Ut=kn(),Ut>=0&&Re(Ut,x)){ce+=3,$e|=8,kt+=pn(),jn=ce;continue}if(Ut=oe(),!(Ut>=0&&Re(Ut,x)))break;$e|=1024,kt+=ae.substring(jn,ce),kt+=le(Ut),ce+=6,jn=ce}else break}return kt+=ae.substring(jn,ce),kt}function ye(){var kt=cn.length;if(kt>=2&&kt<=11){var jn=cn.charCodeAt(0);if(jn>=97&&jn<=122){var Ut=Fe.get(cn);if(Ut!==void 0)return Ue=Ut}}return Ue=75}function mn(kt){for(var jn="",Ut=!1,ft=!1;;){var Tt=ae.charCodeAt(ce);if(Tt===95){$e|=512,Ut?(Ut=!1,ft=!0):ke(ft?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,ce,1),ce++;continue}if(Ut=!0,!B(Tt)||Tt-48>=kt)break;jn+=ae[ce],ce++,ft=!1}return ae.charCodeAt(ce-1)===95&&ke(e.Diagnostics.Numeric_separators_are_not_allowed_here,ce-1,1),jn}function un(){if(ae.charCodeAt(ce)===110)return cn+="n",$e&384&&(cn=e.parsePseudoBigInt(cn)+"n"),ce++,9;var kt=$e&128?parseInt(cn.slice(2),2):$e&256?parseInt(cn.slice(2),8):+cn;return cn=""+kt,8}function Mn(){var kt;Je=ce,$e=0;for(var jn=!1;;){if(Ze=ce,ce>=Le)return Ue=1;var Ut=be(ae,ce);if(Ut===35&&ce===0&&D(ae,ce)){if(ce=T(ae,ce),j)continue;return Ue=6}switch(Ut){case 10:case 13:if($e|=1,j){ce++;continue}else return Ut===13&&ce+1<Le&&ae.charCodeAt(ce+1)===10?ce+=2:ce++,Ue=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(j){ce++;continue}else{for(;ce<Le&&z(ae.charCodeAt(ce));)ce++;return Ue=5}case 33:return ae.charCodeAt(ce+1)===61?ae.charCodeAt(ce+2)===61?(ce+=3,Ue=37):(ce+=2,Ue=35):(ce++,Ue=53);case 34:case 39:return cn=bn(),Ue=10;case 96:return Ue=Sn();case 37:return ae.charCodeAt(ce+1)===61?(ce+=2,Ue=68):(ce++,Ue=44);case 38:return ae.charCodeAt(ce+1)===38?(ce+=2,Ue=55):ae.charCodeAt(ce+1)===61?(ce+=2,Ue=72):(ce++,Ue=50);case 40:return ce++,Ue=20;case 41:return ce++,Ue=21;case 42:if(ae.charCodeAt(ce+1)===61)return ce+=2,Ue=65;if(ae.charCodeAt(ce+1)===42)return ae.charCodeAt(ce+2)===61?(ce+=3,Ue=66):(ce+=2,Ue=42);if(ce++,sn&&!jn&&$e&1){jn=!0;continue}return Ue=41;case 43:return ae.charCodeAt(ce+1)===43?(ce+=2,Ue=45):ae.charCodeAt(ce+1)===61?(ce+=2,Ue=63):(ce++,Ue=39);case 44:return ce++,Ue=27;case 45:return ae.charCodeAt(ce+1)===45?(ce+=2,Ue=46):ae.charCodeAt(ce+1)===61?(ce+=2,Ue=64):(ce++,Ue=40);case 46:return B(ae.charCodeAt(ce+1))?(cn=c().value,Ue=8):ae.charCodeAt(ce+1)===46&&ae.charCodeAt(ce+2)===46?(ce+=3,Ue=25):(ce++,Ue=24);case 47:if(ae.charCodeAt(ce+1)===47){for(ce+=2;ce<Le&&!Ee(ae.charCodeAt(ce));)ce++;if(j)continue;return Ue=2}if(ae.charCodeAt(ce+1)===42){ce+=2,ae.charCodeAt(ce)===42&&ae.charCodeAt(ce+1)!==47&&($e|=2);for(var ft=!1;ce<Le;){var Tt=ae.charCodeAt(ce);if(Tt===42&&ae.charCodeAt(ce+1)===47){ce+=2,ft=!0;break}Ee(Tt)&&($e|=1),ce++}if(ft||ke(e.Diagnostics.Asterisk_Slash_expected),j)continue;return ft||($e|=4),Ue=3}return ae.charCodeAt(ce+1)===61?(ce+=2,Ue=67):(ce++,Ue=43);case 48:if(ce+2<Le&&(ae.charCodeAt(ce+1)===88||ae.charCodeAt(ce+1)===120))return ce+=2,cn=Ne(1,!0),cn||(ke(e.Diagnostics.Hexadecimal_digit_expected),cn="0"),cn="0x"+cn,$e|=64,Ue=un();if(ce+2<Le&&(ae.charCodeAt(ce+1)===66||ae.charCodeAt(ce+1)===98))return ce+=2,cn=mn(2),cn||(ke(e.Diagnostics.Binary_digit_expected),cn="0"),cn="0b"+cn,$e|=128,Ue=un();if(ce+2<Le&&(ae.charCodeAt(ce+1)===79||ae.charCodeAt(ce+1)===111))return ce+=2,cn=mn(8),cn||(ke(e.Diagnostics.Octal_digit_expected),cn="0"),cn="0o"+cn,$e|=256,Ue=un();if(ce+1<Le&&V(ae.charCodeAt(ce+1)))return cn=""+ee(),$e|=32,Ue=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return kt=c(),Ue=kt.type,cn=kt.value,Ue;case 58:return ce++,Ue=58;case 59:return ce++,Ue=26;case 60:if(C(ae,ce)){if(ce=_(ae,ce,ke),j)continue;return Ue=7}return ae.charCodeAt(ce+1)===60?ae.charCodeAt(ce+2)===61?(ce+=3,Ue=69):(ce+=2,Ue=47):ae.charCodeAt(ce+1)===61?(ce+=2,Ue=32):Oe===1&&ae.charCodeAt(ce+1)===47&&ae.charCodeAt(ce+2)!==42?(ce+=2,Ue=30):(ce++,Ue=29);case 61:if(C(ae,ce)){if(ce=_(ae,ce,ke),j)continue;return Ue=7}return ae.charCodeAt(ce+1)===61?ae.charCodeAt(ce+2)===61?(ce+=3,Ue=36):(ce+=2,Ue=34):ae.charCodeAt(ce+1)===62?(ce+=2,Ue=38):(ce++,Ue=62);case 62:if(C(ae,ce)){if(ce=_(ae,ce,ke),j)continue;return Ue=7}return ce++,Ue=31;case 63:return ce++,ae.charCodeAt(ce)===46&&!B(ae.charCodeAt(ce+1))?(ce++,Ue=28):ae.charCodeAt(ce)===63?(ce++,Ue=60):Ue=57;case 91:return ce++,Ue=22;case 93:return ce++,Ue=23;case 94:return ae.charCodeAt(ce+1)===61?(ce+=2,Ue=74):(ce++,Ue=52);case 123:return ce++,Ue=18;case 124:if(C(ae,ce)){if(ce=_(ae,ce,ke),j)continue;return Ue=7}return ae.charCodeAt(ce+1)===124?(ce+=2,Ue=56):ae.charCodeAt(ce+1)===61?(ce+=2,Ue=73):(ce++,Ue=51);case 125:return ce++,Ue=19;case 126:return ce++,Ue=54;case 64:return ce++,Ue=59;case 92:var yt=kn();if(yt>=0&&Z(yt,x))return ce+=3,$e|=8,cn=pn()+yn(),Ue=ye();var vt=oe();return vt>=0&&Z(vt,x)?(ce+=6,$e|=1024,cn=String.fromCharCode(vt)+yn(),Ue=ye()):(ke(e.Diagnostics.Invalid_character),ce++,Ue=0);default:if(Z(Ut,x)){for(ce+=Ge(Ut);ce<Le&&Re(Ut=be(ae,ce),x);)ce+=Ge(Ut);return cn=ae.substring(Ze,ce),Ut===92&&(cn+=yn()),Ue=ye()}else if(z(Ut)){ce+=Ge(Ut);continue}else if(Ee(Ut)){$e|=1,ce+=Ge(Ut);continue}return ke(e.Diagnostics.Invalid_character),ce+=Ge(Ut),Ue=0}}}function tt(){if(Ue===31){if(ae.charCodeAt(ce)===62)return ae.charCodeAt(ce+1)===62?ae.charCodeAt(ce+2)===61?(ce+=3,Ue=71):(ce+=2,Ue=49):ae.charCodeAt(ce+1)===61?(ce+=2,Ue=70):(ce++,Ue=48);if(ae.charCodeAt(ce)===61)return ce++,Ue=33}return Ue}function Vn(){if(Ue===43||Ue===67){for(var kt=Ze+1,jn=!1,Ut=!1;;){if(kt>=Le){$e|=4,ke(e.Diagnostics.Unterminated_regular_expression_literal);break}var ft=ae.charCodeAt(kt);if(Ee(ft)){$e|=4,ke(e.Diagnostics.Unterminated_regular_expression_literal);break}if(jn)jn=!1;else if(ft===47&&!Ut){kt++;break}else ft===91?Ut=!0:ft===92?jn=!0:ft===93&&(Ut=!1);kt++}for(;kt<Le&&Re(ae.charCodeAt(kt),x);)kt++;ce=kt,cn=ae.substring(Ze,ce),Ue=13}return Ue}function ut(){return e.Debug.assert(Ue===19,"'reScanTemplateToken' should only be called on a '}'"),ce=Ze,Ue=Sn()}function dt(){return ce=Ze=Je,Ue=wt()}function ot(){return Ue===47?(ce=Ze+1,Ue=29):Ue}function ct(){return e.Debug.assert(Ue===60,"'reScanQuestionToken' should only be called on a '??'"),ce=Ze+1,Ue=57}function wt(){if(Je=Ze=ce,ce>=Le)return Ue=1;var kt=ae.charCodeAt(ce);if(kt===60)return ae.charCodeAt(ce+1)===47?(ce+=2,Ue=30):(ce++,Ue=29);if(kt===123)return ce++,Ue=18;for(var jn=0;ce<Le&&!(kt=ae.charCodeAt(ce),kt===123);){if(kt===60){if(C(ae,ce))return ce=_(ae,ce,ke),Ue=7;break}Ee(kt)&&jn===0?jn=-1:K(kt)||(jn=ce),ce++}return cn=ae.substring(Je,ce),jn===-1?12:11}function st(){if(F(Ue))for(;ce<Le;){var kt=ae.charCodeAt(ce);if(kt===45){cn+="-",ce++;continue}var jn=ce;if(cn+=yn(),ce===jn)break}return Ue}function qn(){Je=ce;switch(ae.charCodeAt(ce)){case 34:case 39:return cn=bn(!0),Ue=10;default:return Mn()}}function Ie(){if(Je=Ze=ce,$e=0,ce>=Le)return Ue=1;var kt=be(ae,ce);ce+=Ge(kt);switch(kt){case 9:case 11:case 12:case 32:for(;ce<Le&&z(ae.charCodeAt(ce));)ce++;return Ue=5;case 64:return Ue=59;case 10:case 13:return $e|=1,Ue=4;case 42:return Ue=41;case 123:return Ue=18;case 125:return Ue=19;case 91:return Ue=22;case 93:return Ue=23;case 60:return Ue=29;case 62:return Ue=31;case 61:return Ue=62;case 44:return Ue=27;case 46:return Ue=24;case 96:return Ue=61;case 92:ce--;var jn=kn();if(jn>=0&&Z(jn,x))return ce+=3,$e|=8,cn=pn()+yn(),Ue=ye();var Ut=oe();return Ut>=0&&Z(Ut,x)?(ce+=6,$e|=1024,cn=String.fromCharCode(Ut)+yn(),Ue=ye()):(ce++,Ue=0)}if(Z(kt,x)){for(var ft=kt;ce<Le&&Re(ft=be(ae,ce),x)||ae.charCodeAt(ce)===45;)ce+=Ge(ft);return cn=ae.substring(Ze,ce),ft===92&&(cn+=yn()),Ue=ye()}else return Ue=0}function De(kt,jn){var Ut=ce,ft=Je,Tt=Ze,yt=Ue,vt=cn,Ke=$e,Rn=kt();return(!Rn||jn)&&(ce=Ut,Je=ft,Ze=Tt,Ue=yt,cn=vt,$e=Ke),Rn}function _n(kt,jn,Ut){var ft=Le,Tt=ce,yt=Je,vt=Ze,Ke=Ue,Rn=cn,nt=$e;nr(ae,kt,jn);var tr=Ut();return Le=ft,ce=Tt,Je=yt,Ze=vt,Ue=Ke,cn=Rn,$e=nt,tr}function _t(kt){return De(kt,!0)}function It(kt){return De(kt,!1)}function Ht(){return ae}function nr(kt,jn,Ut){ae=kt||"",Le=Ut===void 0?ae.length:jn+Ut,gt(jn||0)}function vr(kt){en=kt}function Qr(kt){x=kt}function Wr(kt){Oe=kt}function gt(kt){e.Debug.assert(kt>=0),ce=kt,Je=kt,Ze=kt,Ue=0,cn=void 0,$e=0}function ba(kt){sn+=kt?1:-1}}e.createScanner=We;var be=String.prototype.codePointAt?function(x,j){return x.codePointAt(j)}:function(j,Oe){var a=j.length;if(Oe<0||Oe>=a)return;var en=j.charCodeAt(Oe);if(en>=55296&&en<=56319&&a>Oe+1){var Pn=j.charCodeAt(Oe+1);if(Pn>=56320&&Pn<=57343)return(en-55296)*1024+Pn-56320+65536}return en};function Ge(x){return x>=65536?2:1}})(ln||(ln={}));var ln;(function(e){function o(qe){return e.pathIsRelative(qe)||e.isRootedDiskPath(qe)}e.isExternalModuleNameRelative=o;function F(qe){return e.sortAndDeduplicate(qe,e.compareDiagnostics)}e.sortAndDeduplicateDiagnostics=F})(ln||(ln={})),function(e){e.resolvingEmptyArray=[],e.emptyMap=e.createMap(),e.emptyUnderscoreEscapedMap=e.emptyMap,e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160;function o(u,we){var xn=u.declarations;if(xn)for(var at=0,Hn=xn;at<Hn.length;at++){var pa=Hn[at];if(pa.kind===we)return pa}return}e.getDeclarationOfKind=o;function F(){return new e.Map}e.createUnderscoreEscapedMap=F;function qe(u){return!!u&&!!u.size}e.hasEntries=qe;function Se(u){var we=e.createMap();if(u)for(var xn=0,at=u;xn<at.length;xn++){var Hn=at[xn];we.set(Hn.escapedName,Hn)}return we}e.createSymbolTable=Se;var Fe=He();function He(){var u="",we=function(at){return u+=at};return{getText:function(){return u},write:we,rawWrite:we,writeKeyword:we,writeOperator:we,writePunctuation:we,writeSpace:we,writeStringLiteral:we,writeLiteral:we,writeParameter:we,writeProperty:we,writeSymbol:function(at,Hn){return we(at)},writeTrailingSemicolon:we,writeComment:we,getTextPos:function(){return u.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!u.length&&e.isWhiteSpaceLike(u.charCodeAt(u.length-1))},writeLine:function(){return u+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return u=""},trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}function ve(u,we){return u.configFilePath!==we.configFilePath||ie(u,we)}e.changesAffectModuleResolution=ve;function ie(u,we){return e.moduleResolutionOptionDeclarations.some(function(xn){return!e.isJsonEqual(e.getCompilerOptionValue(u,xn),e.getCompilerOptionValue(we,xn))})}e.optionsHaveModuleResolutionChanges=ie;function d(u,we){for(;u;){var xn=we(u);if(xn==="quit")return;if(xn)return u;u=u.parent}return}e.findAncestor=d;function H(u,we){for(;;){var xn=we(u);if(xn==="quit")return;if(xn!==void 0)return xn;if(e.isSourceFile(u))return;u=u.parent}}e.forEachAncestor=H;function Pe(u,we){for(var xn=u.entries(),at=xn.next();!at.done;at=xn.next()){var Hn=at.value,pa=Hn[0],Ta=Hn[1],Ga=we(Ta,pa);if(Ga)return Ga}return}e.forEachEntry=Pe;function I(u,we){for(var xn=u.keys(),at=xn.next();!at.done;at=xn.next()){var Hn=we(at.value);if(Hn)return Hn}return}e.forEachKey=I;function _e(u,we){u.forEach(function(xn,at){we.set(at,xn)})}e.copyEntries=_e;function re(u,we){return e.arrayToMap(u,we||function(xn){return xn},e.returnTrue)}e.arrayToSet=re;function se(u){var we=e.createMap();return _e(u,we),we}e.cloneMap=se;function w(u){var we=Fe.getText();try{return u(Fe),Fe.getText()}finally{Fe.clear(),Fe.writeKeyword(we)}}e.usingSingleLineStringWriter=w;function k(u){return u.end-u.pos}e.getFullWidth=k;function P(u,we){return u&&u.resolvedModules&&u.resolvedModules.get(we)}e.getResolvedModule=P;function h(u,we,xn){u.resolvedModules||(u.resolvedModules=e.createMap()),u.resolvedModules.set(we,xn)}e.setResolvedModule=h;function Y(u,we,xn){u.resolvedTypeReferenceDirectiveNames||(u.resolvedTypeReferenceDirectiveNames=e.createMap()),u.resolvedTypeReferenceDirectiveNames.set(we,xn)}e.setResolvedTypeReferenceDirective=Y;function ne(u,we){return u.path===we.path&&!u.prepend===!we.prepend&&!u.circular===!we.circular}e.projectReferenceIsEqualTo=ne;function $(u,we){return u.isExternalLibraryImport===we.isExternalLibraryImport&&u.extension===we.extension&&u.resolvedFileName===we.resolvedFileName&&u.originalPath===we.originalPath&&J(u.packageId,we.packageId)}e.moduleResolutionIsEqualTo=$;function J(u,we){return u===we||!!u&&!!we&&u.name===we.name&&u.subModuleName===we.subModuleName&&u.version===we.version}function fe(u){var we=u.name,xn=u.subModuleName,at=u.version,Hn=xn?we+"/"+xn:we;return Hn+"@"+at}e.packageIdToString=fe;function R(u,we){return u.resolvedFileName===we.resolvedFileName&&u.primary===we.primary}e.typeDirectiveIsEqualTo=R;function K(u,we,xn,at){e.Debug.assert(u.length===we.length);for(var Hn=0;Hn<u.length;Hn++){var pa=we[Hn],Ta=xn&&xn.get(u[Hn]),Ga=Ta?!pa||!at(Ta,pa):pa;if(Ga)return!0}return!1}e.hasChangesInResolutions=K;function z(u){return Ee(u),(u.flags&262144)!==0}e.containsParseError=z;function Ee(u){if(!(u.flags&524288)){var we=(u.flags&65536)!==0||e.forEachChild(u,z);we&&(u.flags|=262144),u.flags|=524288}}function B(u){for(;u&&u.kind!==288;)u=u.parent;return u}e.getSourceFileOfNode=B;function V(u){switch(u.kind){case 222:case 250:case 229:case 230:case 231:return!0}return!1}e.isStatementWithLocals=V;function m(u,we){return e.Debug.assert(u>=0),e.getLineStarts(we)[u]}e.getStartPositionOfLine=m;function y(u){var we=B(u),xn=e.getLineAndCharacterOfPosition(we,u.pos);return we.fileName+"("+(xn.line+1)+","+(xn.character+1)+")"}e.nodePosToString=y;function L(u,we){e.Debug.assert(u>=0);var xn=e.getLineStarts(we),at=u,Hn=we.text;if(at+1===xn.length)return Hn.length-1;var pa=xn[at],Ta=xn[at+1]-1;for(e.Debug.assert(e.isLineBreak(Hn.charCodeAt(Ta)));pa<=Ta&&e.isLineBreak(Hn.charCodeAt(Ta));)Ta--;return Ta}e.getEndLinePosition=L;function C(u,we,xn){return!(xn&&xn(we))&&!u.identifiers.has(we)}e.isFileLevelUniqueName=C;function _(u){return u===void 0?!0:u.pos===u.end&&u.pos>=0&&u.kind!==1}e.nodeIsMissing=_;function b(u){return!_(u)}e.nodeIsPresent=b;function D(u,we,xn){if(we===void 0||we.length===0)return u;for(var at=0;at<u.length&&xn(u[at]);++at);return u.splice.apply(u,Or([at,0],we)),u}function T(u,we,xn){if(we===void 0)return u;for(var at=0;at<u.length&&xn(u[at]);++at);return u.splice(at,0,we),u}function Q(u){return Ie(u)||!!(x(u)&1048576)}function N(u,we){return D(u,we,Ie)}e.insertStatementsAfterStandardPrologue=N;function X(u,we){return D(u,we,Q)}e.insertStatementsAfterCustomPrologue=X;function pe(u,we){return T(u,we,Ie)}e.insertStatementAfterStandardPrologue=pe;function S(u,we){return T(u,we,Q)}e.insertStatementAfterCustomPrologue=S;function v(u,we,xn){if(u.charCodeAt(we+1)===47&&we+2<xn&&u.charCodeAt(we+2)===47){var at=u.substring(we,xn);return!!(at.match(e.fullTripleSlashReferencePathRegEx)||at.match(e.fullTripleSlashAMDReferencePathRegEx)||at.match(_t)||at.match(It))}return!1}e.isRecognizedTripleSlashComment=v;function U(u,we){return u.charCodeAt(we+1)===42&&u.charCodeAt(we+2)===33}e.isPinnedComment=U;function de(u,we,xn){return _(u)?u.pos:e.isJSDocNode(u)?e.skipTrivia((we||B(u)).text,u.pos,!1,!0):xn&&e.hasJSDocNodes(u)?de(u.jsDoc[0]):u.kind===317&&u._children.length>0?de(u._children[0],we,xn):e.skipTrivia((we||B(u)).text,u.pos)}e.getTokenPosOfNode=de;function Ce(u,we){return _(u)||!u.decorators?de(u,we):e.skipTrivia((we||B(u)).text,u.decorators.end)}e.getNonDecoratorTokenPosOfNode=Ce;function Z(u,we,xn){return xn===void 0&&(xn=!1),Ae(u.text,we,xn)}e.getSourceTextOfNodeFromSourceFile=Z;function Re(u){return u.kind===292||u.parent&&Re(u.parent)}function Ae(u,we,xn){if(xn===void 0&&(xn=!1),_(we))return"";var at=u.substring(xn?we.pos:e.skipTrivia(u,we.pos),we.end);return Re(we)&&(at=at.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),at}e.getTextOfNodeFromSourceText=Ae;function We(u,we){return we===void 0&&(we=!1),Z(B(u),u,we)}e.getTextOfNode=We;function be(u){return u.pos}function Ge(u,we){return e.binarySearch(u,we,be,e.compareValues)}e.indexOfNode=Ge;function x(u){var we=u.emitNode;return we&&we.flags||0}e.getEmitFlags=x;function j(u,we,xn){if(!Rc(u)&&u.parent&&!(e.isNumericLiteral(u)&&u.numericLiteralFlags&512||e.isBigIntLiteral(u)))return Z(we,u);var at=xn||x(u)&16777216?al:fn;switch(u.kind){case 10:return u.singleQuote?"'"+at(u.text,39)+"'":'"'+at(u.text,34)+'"';case 14:case 15:case 16:case 17:var Hn=u.rawText||Bc(at(u.text,96));switch(u.kind){case 14:return"`"+Hn+"`";case 15:return"`"+Hn+"${";case 16:return"}"+Hn+"${";case 17:return"}"+Hn+"`"}break;case 8:case 9:case 13:return u.text}return e.Debug.fail("Literal kind '"+u.kind+"' not accounted for.")}e.getLiteralText=j;function Oe(u){return e.isString(u)?'"'+fn(u)+'"':""+u}e.getTextOfConstantValue=Oe;function a(u){return e.getBaseFileName(u).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}e.makeIdentifierFromModuleName=a;function en(u){return(e.getCombinedNodeFlags(u)&3)!==0||Pn(u)}e.isBlockOrCatchScoped=en;function Pn(u){var we=Nl(u);return we.kind===241&&we.parent.kind===278}e.isCatchClauseVariableDeclarationOrBindingElement=Pn;function Xn(u){return e.isModuleDeclaration(u)&&(u.name.kind===10||cn(u))}e.isAmbientModule=Xn;function ae(u){return e.isModuleDeclaration(u)&&u.name.kind===10}e.isModuleWithStringLiteralName=ae;function ce(u){return e.isModuleDeclaration(u)&&e.isStringLiteral(u.name)}e.isNonGlobalAmbientModule=ce;function Le(u){return e.isModuleDeclaration(u)||e.isIdentifier(u)}e.isEffectiveModuleDeclaration=Le;function Je(u){return Ze(u.valueDeclaration)}e.isShorthandAmbientModuleSymbol=Je;function Ze(u){return u&&u.kind===248&&!u.body}function Ue(u){return u.kind===288||u.kind===248||e.isFunctionLike(u)}e.isBlockScopedContainerTopLevel=Ue;function cn(u){return!!(u.flags&1024)}e.isGlobalScopeAugmentation=cn;function $e(u){return Xn(u)&&sn(u)}e.isExternalModuleAugmentation=$e;function sn(u){switch(u.parent.kind){case 288:return e.isExternalModule(u.parent);case 249:return Xn(u.parent.parent)&&e.isSourceFile(u.parent.parent.parent)&&!e.isExternalModule(u.parent.parent.parent)}return!1}e.isModuleAugmentationExternal=sn;function he(u){return e.find(u.declarations,function(we){return!$e(we)&&!(e.isModuleDeclaration(we)&&cn(we))})}e.getNonAugmentationDeclaration=he;function ke(u,we){return e.isExternalModule(u)||we.isolatedModules||e.getEmitModuleKind(we)===e.ModuleKind.CommonJS&&!!u.commonJsModuleIndicator}e.isEffectiveExternalModule=ke;function G(u,we){switch(u.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return u.isDeclarationFile?!1:e.getStrictOptionValue(we,"alwaysStrict")||e.startsWithUseStrict(u.statements)?!0:e.isExternalModule(u)||we.isolatedModules?e.getEmitModuleKind(we)>=e.ModuleKind.ES2015?!0:!we.noImplicitUseStrict:!1}e.isEffectiveStrictModeSourceFile=G;function c(u,we){switch(u.kind){case 288:case 250:case 278:case 248:case 229:case 230:case 231:case 161:case 160:case 162:case 163:case 243:case 200:case 201:return!0;case 222:return!e.isFunctionLike(we)}return!1}e.isBlockScope=c;function O(u){switch(u.kind){case 308:case 315:case 303:return!0;default:return e.assertType(u),ee(u)}}e.isDeclarationWithTypeParameters=O;function ee(u){switch(u.kind){case 164:case 165:case 159:case 166:case 169:case 170:case 298:case 244:case 213:case 245:case 246:case 314:case 243:case 160:case 161:case 162:case 163:case 200:case 201:return!0;default:return e.assertType(u),!1}}e.isDeclarationWithTypeParameterChildren=ee;function Te(u){switch(u.kind){case 253:case 252:return!0;default:return!1}}e.isAnyImportSyntax=Te;function Ne(u){switch(u.kind){case 253:case 252:case 224:case 244:case 243:case 248:case 246:case 245:case 247:return!0;default:return!1}}e.isLateVisibilityPaintedStatement=Ne;function ze(u){return Te(u)||e.isExportDeclaration(u)}e.isAnyImportOrReExport=ze;function bn(u){return d(u.parent,function(we){return c(we,we.parent)})}e.getEnclosingBlockScopeContainer=bn;function Sn(u){return!u||k(u)===0?"(Missing)":We(u)}e.declarationNameToString=Sn;function Kn(u){return u.declaration?Sn(u.declaration.parameters[0].name):void 0}e.getNameFromIndexInfo=Kn;function Xe(u){switch(u.kind){case 75:return u.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(u.text);case 153:return Ts(u.expression)?e.escapeLeadingUnderscores(u.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(u)}}e.getTextOfPropertyName=Xe;function pn(u){switch(u.kind){case 75:return k(u)===0?e.idText(u):We(u);case 152:return pn(u.left)+"."+pn(u.right);case 193:return pn(u.expression)+"."+pn(u.name);default:throw e.Debug.assertNever(u)}}e.entityNameToString=pn;function le(u,we,xn,at,Hn,pa){var Ta=B(u);return kn(Ta,u,we,xn,at,Hn,pa)}e.createDiagnosticForNode=le;function oe(u,we,xn,at,Hn,pa,Ta){var Ga=e.skipTrivia(u.text,we.pos);return e.createFileDiagnostic(u,Ga,we.end-Ga,xn,at,Hn,pa,Ta)}e.createDiagnosticForNodeArray=oe;function kn(u,we,xn,at,Hn,pa,Ta){var Ga=un(u,we);return e.createFileDiagnostic(u,Ga.start,Ga.length,xn,at,Hn,pa,Ta)}e.createDiagnosticForNodeInSourceFile=kn;function yn(u,we,xn){var at=B(u),Hn=un(at,u);return{file:at,start:Hn.start,length:Hn.length,code:we.code,category:we.category,messageText:we.next?we:we.messageText,relatedInformation:xn}}e.createDiagnosticForNodeFromMessageChain=yn;function ye(u,we){var xn=e.createScanner(u.languageVersion,!0,u.languageVariant,u.text,void 0,we);xn.scan();var at=xn.getTokenPos();return e.createTextSpanFromBounds(at,xn.getTextPos())}e.getSpanOfTokenAtPosition=ye;function mn(u,we){var xn=e.skipTrivia(u.text,we.pos);if(we.body&&we.body.kind===222){var at=e.getLineAndCharacterOfPosition(u,we.body.pos).line,Hn=e.getLineAndCharacterOfPosition(u,we.body.end).line;if(at<Hn)return e.createTextSpan(xn,L(at,u)-xn+1)}return e.createTextSpanFromBounds(xn,we.end)}function un(u,we){var xn=we;switch(we.kind){case 288:var at=e.skipTrivia(u.text,0,!1);return at===u.text.length?e.createTextSpan(0,0):ye(u,at);case 241:case 190:case 244:case 213:case 245:case 248:case 247:case 282:case 243:case 200:case 160:case 162:case 163:case 246:case 158:case 157:xn=we.name;break;case 201:return mn(u,we);case 275:case 276:var Hn=e.skipTrivia(u.text,we.pos),pa=we.statements.length>0?we.statements[0].pos:we.end;return e.createTextSpanFromBounds(Hn,pa)}if(xn===void 0)return ye(u,we.pos);e.Debug.assert(!e.isJSDoc(xn));var Ta=_(xn),Ga=Ta||e.isJsxText(we)?xn.pos:e.skipTrivia(u.text,xn.pos);return Ta?(e.Debug.assert(Ga===xn.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(Ga===xn.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(Ga>=xn.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(Ga<=xn.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(Ga,xn.end)}e.getErrorSpanForNode=un;function Mn(u){return(u.externalModuleIndicator||u.commonJsModuleIndicator)!==void 0}e.isExternalOrCommonJsModule=Mn;function tt(u){return u.scriptKind===6}e.isJsonSourceFile=tt;function Vn(u){return!!(e.getCombinedModifierFlags(u)&2048)}e.isEnumConst=Vn;function ut(u){return!!(e.getCombinedModifierFlags(u)&64&&!e.isParameterPropertyDeclaration(u,u.parent))}e.isDeclarationReadonly=ut;function dt(u){return!!(e.getCombinedNodeFlags(u)&2)}e.isVarConst=dt;function ot(u){return!!(e.getCombinedNodeFlags(u)&1)}e.isLet=ot;function ct(u){return u.kind===195&&u.expression.kind===101}e.isSuperCall=ct;function wt(u){return u.kind===195&&u.expression.kind===95}e.isImportCall=wt;function st(u){return e.isMetaProperty(u)&&u.keywordToken===95&&u.name.escapedText==="meta"}e.isImportMeta=st;function qn(u){return e.isImportTypeNode(u)&&e.isLiteralTypeNode(u.argument)&&e.isStringLiteral(u.argument.literal)}e.isLiteralImportTypeNode=qn;function Ie(u){return u.kind===225&&u.expression.kind===10}e.isPrologueDirective=Ie;function De(u,we){return u.kind!==11?e.getLeadingCommentRanges(we.text,u.pos):void 0}e.getLeadingCommentRangesOfNode=De;function _n(u,we){var xn=u.kind===155||u.kind===154||u.kind===200||u.kind===201||u.kind===199?e.concatenate(e.getTrailingCommentRanges(we,u.pos),e.getLeadingCommentRanges(we,u.pos)):e.getLeadingCommentRanges(we,u.pos);return e.filter(xn,function(at){return we.charCodeAt(at.pos+1)===42&&we.charCodeAt(at.pos+2)===42&&we.charCodeAt(at.pos+3)!==47})}e.getJSDocCommentRanges=_n,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var _t=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var It=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function Ht(u){if(167<=u.kind&&u.kind<=187)return!0;switch(u.kind){case 124:case 147:case 139:case 150:case 142:case 127:case 143:case 140:case 145:case 136:return!0;case 109:return u.parent.kind!==204;case 215:return!vl(u);case 154:return u.parent.kind===185||u.parent.kind===180;case 75:(u.parent.kind===152&&u.parent.right===u||u.parent.kind===193&&u.parent.name===u)&&(u=u.parent),e.Debug.assert(u.kind===75||u.kind===152||u.kind===193,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 152:case 193:case 103:{var we=u.parent;if(we.kind===171)return!1;if(we.kind===187)return!we.isTypeOf;if(167<=we.kind&&we.kind<=187)return!0;switch(we.kind){case 215:return!vl(we);case 154:return u===we.constraint;case 314:return u===we.constraint;case 158:case 157:case 155:case 241:return u===we.type;case 243:case 200:case 201:case 161:case 160:case 159:case 162:case 163:return u===we.type;case 164:case 165:case 166:return u===we.type;case 198:return u===we.type;case 195:case 196:return e.contains(we.typeArguments,u);case 197:return!1}}}return!1}e.isPartOfTypeNode=Ht;function nr(u,we){for(;u;){if(u.kind===we)return!0;u=u.parent}return!1}e.isChildOfNodeWithKind=nr;function vr(u,we){return xn(u);function xn(at){switch(at.kind){case 234:return we(at);case 250:case 222:case 226:case 227:case 228:case 229:case 230:case 231:case 235:case 236:case 275:case 276:case 237:case 239:case 278:return e.forEachChild(at,xn)}}}e.forEachReturnStatement=vr;function Qr(u,we){return xn(u);function xn(at){switch(at.kind){case 211:we(at);var Hn=at.expression;Hn&&xn(Hn);return;case 247:case 245:case 248:case 246:case 244:case 213:return;default:if(e.isFunctionLike(at)){if(at.name&&at.name.kind===153){xn(at.name.expression);return}}else Ht(at)||e.forEachChild(at,xn)}}}e.forEachYieldExpression=Qr;function Wr(u){return u&&u.kind===173?u.elementType:u&&u.kind===168?e.singleOrUndefined(u.typeArguments):void 0}e.getRestParameterElementType=Wr;function gt(u){switch(u.kind){case 245:case 244:case 213:case 172:return u.members;case 192:return u.properties}}e.getMembersOfDeclaration=gt;function ba(u){if(u)switch(u.kind){case 190:case 282:case 155:case 279:case 158:case 157:case 280:case 241:return!0}return!1}e.isVariableLike=ba;function kt(u){return ba(u)||e.isAccessor(u)}e.isVariableLikeOrAccessor=kt;function jn(u){return u.parent.kind===242&&u.parent.parent.kind===224}e.isVariableDeclarationInVariableStatement=jn;function Ut(u){return e.isVariableDeclaration(u)?dt(u)&&e.isIdentifier(u.name)&&jn(u):e.isPropertyDeclaration(u)?Ec(u)&&Oo(u):e.isPropertySignature(u)&&Ec(u)}e.isValidESSymbolDeclaration=Ut;function ft(u){switch(u.kind){case 160:case 159:case 161:case 162:case 163:case 243:case 200:return!0}return!1}e.introducesArgumentsExoticObject=ft;function Tt(u,we){for(;;){if(we&&we(u),u.statement.kind!==237)return u.statement;u=u.statement}}e.unwrapInnermostStatementOfLabel=Tt;function yt(u){return u&&u.kind===222&&e.isFunctionLike(u.parent)}e.isFunctionBlock=yt;function vt(u){return u&&u.kind===160&&u.parent.kind===192}e.isObjectLiteralMethod=vt;function Ke(u){return u.kind===160&&(u.parent.kind===192||u.parent.kind===213)}e.isObjectLiteralOrClassExpressionMethod=Ke;function Rn(u){return u&&u.kind===1}e.isIdentifierTypePredicate=Rn;function nt(u){return u&&u.kind===0}e.isThisTypePredicate=nt;function tr(u,we,xn){return u.properties.filter(function(at){if(at.kind===279){var Hn=Xe(at.name);return we===Hn||!!xn&&xn===Hn}return!1})}e.getPropertyAssignment=tr;function xa(u){if(u&&u.statements.length){var we=u.statements[0].expression;return e.tryCast(we,e.isObjectLiteralExpression)}}e.getTsConfigObjectLiteralExpression=xa;function Ba(u,we,xn){return e.firstDefined(ai(u,we),function(at){return e.isArrayLiteralExpression(at.initializer)?e.find(at.initializer.elements,function(Hn){return e.isStringLiteral(Hn)&&Hn.text===xn}):void 0})}e.getTsConfigPropArrayElementValue=Ba;function ai(u,we){var xn=xa(u);return xn?tr(xn,we):e.emptyArray}e.getTsConfigPropArray=ai;function wi(u){return d(u.parent,e.isFunctionLike)}e.getContainingFunction=wi;function Ai(u){return d(u.parent,e.isFunctionLikeDeclaration)}e.getContainingFunctionDeclaration=Ai;function Ei(u){return d(u.parent,e.isClassLike)}e.getContainingClass=Ei;function Pi(u,we){for(e.Debug.assert(u.kind!==288);;){if(u=u.parent,!u)return e.Debug.fail();switch(u.kind){case 153:if(e.isClassLike(u.parent.parent))return u;u=u.parent;break;case 156:u.parent.kind===155&&e.isClassElement(u.parent.parent)?u=u.parent.parent:e.isClassElement(u.parent)&&(u=u.parent);break;case 201:if(!we)continue;case 243:case 200:case 248:case 158:case 157:case 160:case 159:case 161:case 162:case 163:case 164:case 165:case 166:case 247:case 288:return u}}}e.getThisContainer=Pi;function Xa(u){var we=Pi(u,!1);if(we)switch(we.kind){case 161:case 243:case 200:return we}return}e.getNewTargetContainer=Xa;function Ia(u,we){for(;;){if(u=u.parent,!u)return u;switch(u.kind){case 153:u=u.parent;break;case 243:case 200:case 201:if(!we)continue;case 158:case 157:case 160:case 159:case 161:case 162:case 163:return u;case 156:u.parent.kind===155&&e.isClassElement(u.parent.parent)?u=u.parent.parent:e.isClassElement(u.parent)&&(u=u.parent);break}}}e.getSuperContainer=Ia;function ca(u){if(u.kind===200||u.kind===201){for(var we=u,xn=u.parent;xn.kind===199;)we=xn,xn=xn.parent;if(xn.kind===195&&xn.expression===we)return xn}}e.getImmediatelyInvokedFunctionExpression=ca;function Ti(u){return u.kind===101||Vo(u)}e.isSuperOrSuperProperty=Ti;function Vo(u){var we=u.kind;return(we===193||we===194)&&u.expression.kind===101}e.isSuperProperty=Vo;function mo(u){var we=u.kind;return(we===193||we===194)&&u.expression.kind===103}e.isThisProperty=mo;function Ro(u){switch(u.kind){case 168:return u.typeName;case 215:return Ys(u.expression)?u.expression:void 0;case 75:case 152:return u}return}e.getEntityNameFromTypeNode=Ro;function uo(u){switch(u.kind){case 197:return u.tag;case 266:case 265:return u.tagName;default:return u.expression}}e.getInvokedExpression=uo;function ui(u,we,xn){switch(u.kind){case 244:return!0;case 158:return we.kind===244;case 162:case 163:case 160:return u.body!==void 0&&we.kind===244;case 155:return we.body!==void 0&&(we.kind===161||we.kind===160||we.kind===163)&&xn.kind===244}return!1}e.nodeCanBeDecorated=ui;function Gi(u,we,xn){return u.decorators!==void 0&&ui(u,we,xn)}e.nodeIsDecorated=Gi;function ji(u,we,xn){return Gi(u,we,xn)||Fo(u,we)}e.nodeOrChildIsDecorated=ji;function Fo(u,we){switch(u.kind){case 244:return e.some(u.members,function(xn){return ji(xn,u,we)});case 160:case 163:return e.some(u.parameters,function(xn){return Gi(xn,u,we)});default:return!1}}e.childIsDecorated=Fo;function ko(u){var we=u.parent;return we.kind===266||we.kind===265||we.kind===267?we.tagName===u:!1}e.isJSXTagName=ko;function bo(u){switch(u.kind){case 101:case 99:case 105:case 90:case 13:case 191:case 192:case 193:case 194:case 195:case 196:case 197:case 216:case 198:case 217:case 199:case 200:case 213:case 201:case 204:case 202:case 203:case 206:case 207:case 208:case 209:case 212:case 210:case 214:case 264:case 265:case 268:case 211:case 205:case 218:return!0;case 152:for(;u.parent.kind===152;)u=u.parent;return u.parent.kind===171||ko(u);case 75:if(u.parent.kind===171||ko(u))return!0;case 8:case 9:case 10:case 14:case 103:return Ri(u);default:return!1}}e.isExpressionNode=bo;function Ri(u){var we=u.parent;switch(we.kind){case 241:case 155:case 158:case 157:case 282:case 279:case 190:return we.initializer===u;case 225:case 226:case 227:case 228:case 234:case 235:case 236:case 275:case 238:return we.expression===u;case 229:var xn=we;return xn.initializer===u&&xn.initializer.kind!==242||xn.condition===u||xn.incrementor===u;case 230:case 231:var at=we;return at.initializer===u&&at.initializer.kind!==242||at.expression===u;case 198:case 216:return u===we.expression;case 220:return u===we.expression;case 153:return u===we.expression;case 156:case 274:case 273:case 281:return!0;case 215:return we.expression===u&&vl(we);case 280:return we.objectAssignmentInitializer===u;default:return bo(we)}}e.isInExpressionContext=Ri;function xt(u){return u.kind===252&&u.moduleReference.kind===263}e.isExternalModuleImportEqualsDeclaration=xt;function Kt(u){return e.Debug.assert(xt(u)),u.moduleReference.expression}e.getExternalModuleImportEqualsDeclarationExpression=Kt;function _r(u){return u.kind===252&&u.moduleReference.kind!==263}e.isInternalModuleImportEqualsDeclaration=_r;function Jr(u){return Na(u)}e.isSourceFileJS=Jr;function va(u){return!Na(u)}e.isSourceFileNotJS=va;function Na(u){return!!u&&!!(u.flags&131072)}e.isInJSFile=Na;function qr(u){return!!u&&!!(u.flags&33554432)}e.isInJsonFile=qr;function hi(u){return!tt(u)}e.isSourceFileNotJson=hi;function Ii(u){return!!u&&!!(u.flags&4194304)}e.isInJSDoc=Ii;function gi(u){return e.isTypeReferenceNode(u)&&e.isIdentifier(u.typeName)&&u.typeName.escapedText==="Object"&&u.typeArguments&&u.typeArguments.length===2&&(u.typeArguments[0].kind===142||u.typeArguments[0].kind===139)}e.isJSDocIndexSignature=gi;function ua(u,we){if(u.kind!==195)return!1;var xn=u,at=xn.expression,Hn=xn.arguments;if(at.kind!==75||at.escapedText!=="require")return!1;if(Hn.length!==1)return!1;var pa=Hn[0];return!we||e.isStringLiteralLike(pa)}e.isRequireCall=ua;function tn(u){return u===39||u===34}e.isSingleOrDoubleQuote=tn;function vn(u,we){return Z(we,u).charCodeAt(0)===34}e.isStringDoubleQuoted=vn;function Ln(u){if(!u.parent)return;var we,xn;if(e.isVariableDeclaration(u.parent)&&u.parent.initializer===u){if(!Na(u)&&!dt(u.parent))return;we=u.parent.name,xn=u.parent}else if(e.isBinaryExpression(u.parent)){var at=u.parent,Hn=u.parent.operatorToken.kind;if(Hn===62&&at.right===u)we=at.left,xn=we;else if((Hn===56||Hn===60)&&(e.isVariableDeclaration(at.parent)&&at.parent.initializer===at?(we=at.parent.name,xn=at.parent):e.isBinaryExpression(at.parent)&&at.parent.operatorToken.kind===62&&at.parent.right===at&&(we=at.parent.left,xn=we),!we||!lt(we)||!_i(we,at.left)))return}return!we||!Ya(u,bl(we))?void 0:xn}e.getDeclarationOfExpando=Ln;function Bn(u){return e.isBinaryExpression(u)||Zr(u)||e.isIdentifier(u)||e.isCallExpression(u)}e.isAssignmentDeclaration=Bn;function Pt(u){return Na(u)&&u.initializer&&e.isBinaryExpression(u.initializer)&&(u.initializer.operatorToken.kind===56||u.initializer.operatorToken.kind===60)&&u.name&&Ys(u.name)&&_i(u.name,u.initializer.left)?u.initializer.right:u.initializer}e.getEffectiveInitializer=Pt;function rr(u){var we=Pt(u);return we&&Ya(we,bl(u.name))}e.getDeclaredExpandoInitializer=rr;function cr(u,we){return e.forEach(u.properties,function(xn){return e.isPropertyAssignment(xn)&&e.isIdentifier(xn.name)&&xn.name.escapedText==="value"&&xn.initializer&&Ya(xn.initializer,we)})}function Cr(u){if(u&&u.parent&&e.isBinaryExpression(u.parent)&&u.parent.operatorToken.kind===62){var we=bl(u.parent.left);return Ya(u.parent.right,we)||Oa(u.parent.left,u.parent.right,we)}if(u&&e.isCallExpression(u)&&Jn(u)){var xn=cr(u.arguments[2],u.arguments[1].text==="prototype");if(xn)return xn}}e.getAssignedExpandoInitializer=Cr;function Ya(u,we){if(e.isCallExpression(u)){var xn=Da(u.expression);return xn.kind===200||xn.kind===201?u:void 0}if(u.kind===200||u.kind===213||u.kind===201)return u;if(e.isObjectLiteralExpression(u)&&(u.properties.length===0||we))return u}e.getExpandoInitializer=Ya;function Oa(u,we,xn){var at=e.isBinaryExpression(we)&&(we.operatorToken.kind===56||we.operatorToken.kind===60)&&Ya(we.right,xn);if(at&&_i(u,we.left))return at}function Ni(u){var we=e.isVariableDeclaration(u.parent)?u.parent.name:e.isBinaryExpression(u.parent)&&u.parent.operatorToken.kind===62?u.parent.left:void 0;return we&&Ya(u.right,bl(we))&&Ys(we)&&_i(we,u.left)}e.isDefaultedExpandoInitializer=Ni;function ii(u){if(e.isBinaryExpression(u.parent)){var we=(u.parent.operatorToken.kind===56||u.parent.operatorToken.kind===60)&&e.isBinaryExpression(u.parent.parent)?u.parent.parent:u.parent;if(we.operatorToken.kind===62&&e.isIdentifier(we.left))return we.left}else if(e.isVariableDeclaration(u.parent))return u.parent.name}e.getNameOfExpando=ii;function _i(u,we){return Js(u)&&Js(we)?Oc(u)===Oc(u):e.isIdentifier(u)&&ue(we)?(we.expression.kind===103||e.isIdentifier(we.expression)&&(we.expression.escapedText==="window"||we.expression.escapedText==="self"||we.expression.escapedText==="global"))&&_i(u,Rt(we)):ue(u)&&ue(we)?da(u)===da(we)&&_i(u.expression,we.expression):!1}function Ye(u){for(;rc(u,!0);)u=u.right;return u}e.getRightMostAssignedExpression=Ye;function zn(u){return e.isIdentifier(u)&&u.escapedText==="exports"}e.isExportsIdentifier=zn;function ge(u){return(e.isPropertyAccessExpression(u)||rn(u))&&e.isIdentifier(u.expression)&&u.expression.escapedText==="module"&&da(u)==="exports"}e.isModuleExportsAccessExpression=ge;function hn(u){var we=an(u);return we===5||Na(u)?we:0}e.getAssignmentDeclarationKind=hn;function Jn(u){return e.length(u.arguments)===3&&e.isPropertyAccessExpression(u.expression)&&e.isIdentifier(u.expression.expression)&&e.idText(u.expression.expression)==="Object"&&e.idText(u.expression.name)==="defineProperty"&&Ts(u.arguments[1])&&lt(u.arguments[0],!0)}e.isBindableObjectDefinePropertyCall=Jn;function ue(u){return e.isPropertyAccessExpression(u)||rn(u)}e.isLiteralLikeAccess=ue;function rn(u){return e.isElementAccessExpression(u)&&(Ts(u.argumentExpression)||Ql(u.argumentExpression))}e.isLiteralLikeElementAccess=rn;function Cn(u,we){return e.isPropertyAccessExpression(u)&&(!we&&u.expression.kind===103||lt(u.expression,!0))||Zn(u,we)}e.isBindableStaticAccessExpression=Cn;function Zn(u,we){return rn(u)&&(!we&&u.expression.kind===103||Ys(u.expression)||Cn(u.expression,!0))}e.isBindableStaticElementAccessExpression=Zn;function lt(u,we){return Ys(u)||Cn(u,we)}e.isBindableStaticNameExpression=lt;function Rt(u){return e.isPropertyAccessExpression(u)?u.name:u.argumentExpression}e.getNameOrArgument=Rt;function an(u){if(e.isCallExpression(u)){if(!Jn(u))return 0;var we=u.arguments[0];return zn(we)||ge(we)?8:Cn(we)&&da(we)==="prototype"?9:7}return u.operatorToken.kind!==62||!Zr(u.left)?0:lt(u.left.expression,!0)&&da(u.left)==="prototype"&&e.isObjectLiteralExpression(to(u))?6:Ha(u.left)}function Dr(u){if(e.isPropertyAccessExpression(u))return u.name;var we=Da(u.argumentExpression);return e.isNumericLiteral(we)||e.isStringLiteralLike(we)?we:u}e.getElementOrPropertyAccessArgumentExpressionOrName=Dr;function da(u){var we=Dr(u);if(we){if(e.isIdentifier(we))return we.escapedText;if(e.isStringLiteralLike(we)||e.isNumericLiteral(we))return e.escapeLeadingUnderscores(we.text)}return e.isElementAccessExpression(u)&&Ql(u.argumentExpression)?Pc(e.idText(u.argumentExpression.name)):void 0}e.getElementOrPropertyAccessName=da;function Ha(u){if(u.expression.kind===103)return 4;if(ge(u))return 2;if(lt(u.expression,!0)){if(bl(u.expression))return 3;for(var we=u;!e.isIdentifier(we.expression);)we=we.expression;var xn=we.expression;if((xn.escapedText==="exports"||xn.escapedText==="module"&&da(we)==="exports")&&Cn(u))return 1;if(lt(u,!0)||e.isElementAccessExpression(u)&&yc(u)&&u.expression.kind!==103)return 5}return 0}e.getAssignmentDeclarationPropertyAccessKind=Ha;function to(u){for(;e.isBinaryExpression(u.right);)u=u.right;return u.right}e.getInitializerOfBinaryExpression=to;function ga(u){return e.isBinaryExpression(u)&&hn(u)===3}e.isPrototypePropertyAssignment=ga;function Yo(u){return Na(u)&&u.parent&&u.parent.kind===225&&(!e.isElementAccessExpression(u)||rn(u))&&!!e.getJSDocTypeTag(u.parent)}e.isSpecialPropertyDeclaration=Yo;function Co(u){if(!u||!u.valueDeclaration)return!1;var we=u.valueDeclaration;return we.kind===243||e.isVariableDeclaration(we)&&we.initializer&&e.isFunctionLike(we.initializer)}e.isFunctionSymbol=Co;function Rs(u){return vs(u)||e.Debug.failBadSyntaxKind(u.parent)}e.importFromModuleSpecifier=Rs;function vs(u){switch(u.parent.kind){case 253:case 259:return u.parent;case 263:return u.parent.parent;case 195:return wt(u.parent)||ua(u.parent,!1)?u.parent:void 0;case 186:return e.Debug.assert(e.isStringLiteral(u)),e.tryCast(u.parent.parent,e.isImportTypeNode);default:return}}e.tryGetImportFromModuleSpecifier=vs;function ml(u){switch(u.kind){case 253:case 259:return u.moduleSpecifier;case 252:return u.moduleReference.kind===263?u.moduleReference.expression:void 0;case 187:return qn(u)?u.argument.literal:void 0;default:return e.Debug.assertNever(u)}}e.getExternalModuleName=ml;function Fs(u){switch(u.kind){case 253:return u.importClause&&e.tryCast(u.importClause.namedBindings,e.isNamespaceImport);case 252:return u;case 259:return;default:return e.Debug.assertNever(u)}}e.getNamespaceDeclarationNode=Fs;function Il(u){return u.kind===253&&!!u.importClause&&!!u.importClause.name}e.isDefaultImport=Il;function es(u){if(u)switch(u.kind){case 155:case 160:case 159:case 280:case 279:case 158:case 157:return u.questionToken!==void 0}return!1}e.hasQuestionToken=es;function hl(u){var we=e.isJSDocFunctionType(u)?e.firstOrUndefined(u.parameters):void 0,xn=e.tryCast(we&&we.name,e.isIdentifier);return!!xn&&xn.escapedText==="new"}e.isJSDocConstructSignature=hl;function Ul(u){return u.kind===315||u.kind===308||u.kind===309}e.isJSDocTypeAlias=Ul;function gl(u){return Ul(u)||e.isTypeAliasDeclaration(u)}e.isTypeAlias=gl;function ho(u){return e.isExpressionStatement(u)&&u.expression&&e.isBinaryExpression(u.expression)&&u.expression.operatorToken.kind===62?u.expression.right:void 0}function Is(u){return e.isExpressionStatement(u)&&e.isBinaryExpression(u.expression)&&hn(u.expression)!==0&&e.isBinaryExpression(u.expression.right)&&(u.expression.right.operatorToken.kind===56||u.expression.right.operatorToken.kind===60)?u.expression.right.right:void 0}function Ns(u){switch(u.kind){case 224:var we=bs(u);return we&&we.initializer;case 158:return u.initializer;case 279:return u.initializer}}e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Ns;function bs(u){return e.isVariableStatement(u)?e.firstOrUndefined(u.declarationList.declarations):void 0}function yl(u){return e.isModuleDeclaration(u)&&u.body&&u.body.kind===248?u.body:void 0}function Ks(u){var we;ba(u)&&e.hasInitializer(u)&&e.hasJSDocNodes(u.initializer)&&(we=e.append(we,e.last(u.initializer.jsDoc)));for(var xn=u;xn&&xn.parent;){if(e.hasJSDocNodes(xn)&&(we=e.append(we,e.last(xn.jsDoc))),xn.kind===155){we=e.addRange(we,e.getJSDocParameterTags(xn));break}if(xn.kind===154){we=e.addRange(we,e.getJSDocTypeParameterTags(xn));break}xn=qs(xn)}return we||e.emptyArray}e.getJSDocCommentsAndTags=Ks;function qs(u){var we=u.parent;if(we.kind===279||we.kind===258||we.kind===158||we.kind===225&&u.kind===193||yl(we)||e.isBinaryExpression(u)&&u.operatorToken.kind===62)return we;if(we.parent&&(bs(we.parent)===u||e.isBinaryExpression(we)&&we.operatorToken.kind===62))return we.parent;if(we.parent&&we.parent.parent&&(bs(we.parent.parent)||Ns(we.parent.parent)===u||Is(we.parent.parent)))return we.parent.parent}function $s(u){if(u.symbol)return u.symbol;if(!e.isIdentifier(u.name))return;var we=u.name.escapedText,xn=el(u);if(!xn)return;var at=e.find(xn.parameters,function(Hn){return Hn.name.kind===75&&Hn.name.escapedText===we});return at&&at.symbol}e.getParameterSymbolFromJSDoc=$s;function el(u){return nl(Fn(u))}e.getHostSignatureFromJSDoc=el;function nl(u){var we=Is(u)||ho(u)||Ns(u)||bs(u)||yl(u)||u;return we&&e.isFunctionLike(we)?we:void 0}e.getHostSignatureFromJSDocHost=nl;function Fn(u){return e.Debug.assertDefined(d(u.parent,e.isJSDoc)).parent}e.getJSDocHost=Fn;function $n(u){var we=u.name.escapedText,xn=u.parent.parent.parent.typeParameters;return xn&&e.find(xn,function(at){return at.name.escapedText===we})}e.getTypeParameterFromJsDoc=$n;function ht(u){var we=e.lastOrUndefined(u.parameters);return!!we&&Qn(we)}e.hasRestParameter=ht;function Qn(u){var we=e.isJSDocParameterTag(u)?u.typeExpression&&u.typeExpression.type:u.type;return u.dotDotDotToken!==void 0||!!we&&we.kind===299}e.isRestParameter=Qn;var Qt;(function(u){u[u.None=0]="None",u[u.Definite=1]="Definite",u[u.Compound=2]="Compound"})(Qt=e.AssignmentKind||(e.AssignmentKind={}));function yr(u){for(var we=u.parent;;){switch(we.kind){case 208:var xn=we.operatorToken.kind;return Tc(xn)&&we.left===u?xn===62?1:2:0;case 206:case 207:var at=we.operator;return at===45||at===46?2:0;case 230:case 231:return we.initializer===u?1:0;case 199:case 191:case 212:case 217:u=we;break;case 280:if(we.name!==u)return 0;u=we.parent;break;case 279:if(we.name===u)return 0;u=we.parent;break;default:return 0}we=u.parent}}e.getAssignmentTargetKind=yr;function Br(u){return yr(u)!==0}e.isAssignmentTarget=Br;function Lr(u){switch(u.kind){case 222:case 224:case 235:case 226:case 236:case 250:case 275:case 276:case 237:case 229:case 230:case 231:case 227:case 228:case 239:case 278:return!0}return!1}e.isNodeWithPossibleHoistedDeclaration=Lr;function kr(u){return e.isFunctionExpression(u)||e.isArrowFunction(u)||e.isMethodOrAccessor(u)||e.isFunctionDeclaration(u)||e.isConstructorDeclaration(u)}e.isValueSignatureDeclaration=kr;function Pr(u,we){for(;u&&u.kind===we;)u=u.parent;return u}function Er(u){return Pr(u,181)}e.walkUpParenthesizedTypes=Er;function fa(u){return Pr(u,199)}e.walkUpParenthesizedExpressions=fa;function Da(u){for(;u.kind===199;)u=u.expression;return u}e.skipParentheses=Da;function Fa(u){for(;u.kind===199;)u=u.parent;return u}function vi(u){return u.kind!==193&&u.kind!==194?!1:(u=fa(u.parent),u&&u.kind===202)}e.isDeleteTarget=vi;function Eo(u,we){for(;u;){if(u===we)return!0;u=u.parent}return!1}e.isNodeDescendantOf=Eo;function pi(u){return!e.isSourceFile(u)&&!e.isBindingPattern(u)&&e.isDeclaration(u.parent)&&u.parent.name===u}e.isDeclarationName=pi;function Io(u){var we=u.parent;switch(u.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(we))return we.parent;case 75:if(e.isDeclaration(we))return we.name===u?we:void 0;if(e.isQualifiedName(we)){var xn=we.parent;return e.isJSDocParameterTag(xn)&&xn.name===we?xn:void 0}else{var at=we.parent;return e.isBinaryExpression(at)&&hn(at)!==0&&(at.left.symbol||at.symbol)&&e.getNameOfDeclaration(at)===u?at:void 0}default:return}}e.getDeclarationFromName=Io;function qi(u){return Ts(u)&&u.parent.kind===153&&e.isDeclaration(u.parent.parent)}e.isLiteralComputedPropertyDeclarationName=qi;function wn(u){var we=u.parent;switch(we.kind){case 158:case 157:case 160:case 159:case 162:case 163:case 282:case 279:case 193:return we.name===u;case 152:if(we.right===u){for(;we.kind===152;)we=we.parent;return we.kind===171||we.kind===168}return!1;case 190:case 257:return we.propertyName===u;case 261:case 271:return!0}return!1}e.isIdentifierName=wn;function $i(u){return u.kind===252||u.kind===251||u.kind===254&&!!u.name||u.kind===255||u.kind===257||u.kind===261||u.kind===258&&Ho(u)||e.isBinaryExpression(u)&&hn(u)===2&&Ho(u)||e.isPropertyAccessExpression(u)&&e.isBinaryExpression(u.parent)&&u.parent.left===u&&u.parent.operatorToken.kind===62&&Go(u.parent.right)||u.kind===280||u.kind===279&&Go(u.initializer)}e.isAliasSymbolDeclaration=$i;function Go(u){return Ys(u)||e.isClassExpression(u)}function Ho(u){var we=Va(u);return Go(we)}e.exportAssignmentIsAlias=Ho;function Va(u){return e.isExportAssignment(u)?u.expression:u.right}e.getExportAssignmentExpression=Va;function Es(u){return u.kind===280?u.name:u.kind===279?u.initializer:u.parent.right}e.getPropertyAssignmentAliasLikeExpression=Es;function me(u){var we=En(u);if(we&&Na(u)){var xn=e.getJSDocAugmentsTag(u);if(xn)return xn.class}return we}e.getEffectiveBaseTypeNode=me;function En(u){var we=ya(u.heritageClauses,89);return we&&we.types.length>0?we.types[0]:void 0}e.getClassExtendsHeritageElement=En;function et(u){var we=ya(u.heritageClauses,112);return we?we.types:void 0}e.getClassImplementsHeritageClauseElements=et;function Gt(u){return e.isInterfaceDeclaration(u)?br(u)||e.emptyArray:e.isClassLike(u)&&e.concatenate(e.singleElementArray(me(u)),et(u))||e.emptyArray}e.getAllSuperTypeNodes=Gt;function br(u){var we=ya(u.heritageClauses,89);return we?we.types:void 0}e.getInterfaceBaseTypeNodes=br;function ya(u,we){if(u)for(var xn=0,at=u;xn<at.length;xn++){var Hn=at[xn];if(Hn.token===we)return Hn}return}e.getHeritageClause=ya;function oi(u,we){for(;u;){if(u.kind===we)return u;u=u.parent}return}e.getAncestor=oi;function za(u){return 76<=u&&u<=151}e.isKeyword=za;function ki(u){return 121<=u&&u<=151}e.isContextualKeyword=ki;function eo(u){return za(u)&&!ki(u)}e.isNonContextualKeyword=eo;function ea(u){return 112<=u&&u<=120}e.isFutureReservedKeyword=ea;function Ir(u){var we=e.stringToToken(u);return we!==void 0&&eo(we)}e.isStringANonContextualKeyword=Ir;function To(u){var we=e.stringToToken(u);return we!==void 0&&za(we)}e.isStringAKeyword=To;function Uo(u){var we=u.originalKeywordKind;return!!we&&!ki(we)}e.isIdentifierANonContextualKeyword=Uo;function tl(u){return 2<=u&&u<=7}e.isTrivia=tl;var Qo;(function(u){u[u.Normal=0]="Normal",u[u.Generator=1]="Generator",u[u.Async=2]="Async",u[u.Invalid=4]="Invalid",u[u.AsyncGenerator=3]="AsyncGenerator"})(Qo=e.FunctionFlags||(e.FunctionFlags={}));function co(u){if(!u)return 4;var we=0;switch(u.kind){case 243:case 200:case 160:u.asteriskToken&&(we|=1);case 201:go(u,256)&&(we|=2);break}return u.body||(we|=4),we}e.getFunctionFlags=co;function Bs(u){switch(u.kind){case 243:case 200:case 201:case 160:return u.body!==void 0&&u.asteriskToken===void 0&&go(u,256)}return!1}e.isAsyncFunction=Bs;function Ts(u){return e.isStringLiteralLike(u)||e.isNumericLiteral(u)}e.isStringOrNumericLiteralLike=Ts;function Nc(u){return e.isPrefixUnaryExpression(u)&&(u.operator===39||u.operator===40)&&e.isNumericLiteral(u.operand)}e.isSignedNumericLiteral=Nc;function _l(u){var we=e.getNameOfDeclaration(u);return!!we&&yc(we)}e.hasDynamicName=_l;function yc(u){if(!(u.kind===153||u.kind===194))return!1;var we=e.isElementAccessExpression(u)?u.argumentExpression:u.expression;return!Ts(we)&&!Nc(we)&&!Ql(we)}e.isDynamicName=yc;function Ql(u){return e.isPropertyAccessExpression(u)&&Zl(u.expression)}e.isWellKnownSymbolSyntactically=Ql;function rl(u){switch(u.kind){case 75:return u.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(u.text);case 153:var we=u.expression;return Ql(we)?Pc(e.idText(we.name)):Ts(we)?e.escapeLeadingUnderscores(we.text):void 0;default:return e.Debug.assertNever(u)}}e.getPropertyNameForPropertyNameNode=rl;function Js(u){switch(u.kind){case 75:case 10:case 14:case 8:return!0;default:return!1}}e.isPropertyNameLiteral=Js;function Oc(u){return u.kind===75?e.idText(u):u.text}e.getTextOfIdentifierOrLiteral=Oc;function au(u){return u.kind===75?u.escapedText:e.escapeLeadingUnderscores(u.text)}e.getEscapedTextOfIdentifierOrLiteral=au;function Pc(u){return"__@"+u}e.getPropertyNameForKnownSymbolName=Pc;function iu(u){return e.startsWith(u.escapedName,"__@")}e.isKnownSymbol=iu;function Zl(u){return u.kind===75&&u.escapedText==="Symbol"}e.isESSymbolIdentifier=Zl;function zs(u){return u.escapedText==="push"||u.escapedText==="unshift"}e.isPushOrUnshiftIdentifier=zs;function Mc(u){var we=Nl(u);return we.kind===155}e.isParameterDeclaration=Mc;function Nl(u){for(;u.kind===190;)u=u.parent.parent;return u}e.getRootDeclaration=Nl;function Ss(u){var we=u.kind;return we===161||we===200||we===243||we===201||we===160||we===162||we===163||we===248||we===288}e.nodeStartsNewLexicalEnvironment=Ss;function Rc(u){return e.positionIsSynthesized(u.pos)||e.positionIsSynthesized(u.end)}e.nodeIsSynthesized=Rc;function $l(u){return e.getParseTreeNode(u,e.isSourceFile)||u}e.getOriginalSourceFile=$l;var _c;(function(u){u[u.Left=0]="Left",u[u.Right=1]="Right"})(_c=e.Associativity||(e.Associativity={}));function ou(u){var we=lu(u),xn=u.kind===196&&u.arguments!==void 0;return Iu(u.kind,we,xn)}e.getExpressionAssociativity=ou;function Iu(u,we,xn){switch(u){case 196:return xn?0:1;case 206:case 203:case 204:case 202:case 205:case 209:case 211:return 1;case 208:switch(we){case 42:case 62:case 63:case 64:case 66:case 65:case 67:case 68:case 69:case 70:case 71:case 72:case 74:case 73:return 1}}return 0}e.getOperatorAssociativity=Iu;function su(u){var we=lu(u),xn=u.kind===196&&u.arguments!==void 0;return cu(u.kind,we,xn)}e.getExpressionPrecedence=su;function lu(u){return u.kind===208?u.operatorToken.kind:u.kind===206||u.kind===207?u.operator:u.kind}e.getOperator=lu;function cu(u,we,xn){switch(u){case 320:return 0;case 212:return 1;case 211:return 2;case 209:return 4;case 208:switch(we){case 27:return 0;case 62:case 63:case 64:case 66:case 65:case 67:case 68:case 69:case 70:case 71:case 72:case 74:case 73:return 3;default:return Fc(we)}case 206:case 203:case 204:case 202:case 205:return 16;case 207:return 17;case 195:return 18;case 196:return xn?19:18;case 197:case 193:case 194:return 19;case 103:case 101:case 75:case 99:case 105:case 90:case 8:case 9:case 10:case 191:case 192:case 200:case 201:case 213:case 264:case 265:case 268:case 13:case 14:case 210:case 199:case 214:return 20;default:return-1}}e.getOperatorPrecedence=cu;function Fc(u){switch(u){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 97:case 96:case 122: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=Fc;function Gc(){var u=[],we=[],xn=e.createMap(),at=!1;return{add:Ta,lookup:pa,getGlobalDiagnostics:Ga,getDiagnostics:$o,reattachFileDiagnostics:Hn};function Hn(Ci){e.forEach(xn.get(Ci.fileName),function(So){return So.file=Ci})}function pa(Ci){var So;if(Ci.file?So=xn.get(Ci.file.fileName):So=u,!So)return;var qo=e.binarySearch(So,Ci,e.identity,e.compareDiagnosticsSkipRelatedInformation);return qo>=0?So[qo]:void 0}function Ta(Ci){var So;Ci.file?(So=xn.get(Ci.file.fileName),So||(So=[],xn.set(Ci.file.fileName,So),e.insertSorted(we,Ci.file.fileName,e.compareStringsCaseSensitive))):(at&&(at=!1,u=u.slice()),So=u),e.insertSorted(So,Ci,e.compareDiagnostics)}function Ga(){return at=!0,u}function $o(Ci){if(Ci)return xn.get(Ci)||[];var So=e.flatMapToMutable(we,function(qo){return xn.get(qo)});return u.length&&So.unshift.apply(So,u),So}}e.createDiagnosticCollection=Gc;var vc=/\$\{/g;function Bc(u){return u.replace(vc,"\\${")}var uu=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,du=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ec=/[\\\`]/g,Vc=e.createMapFromTemplate({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085"});function al(u,we){var xn=we===96?ec:we===39?du:uu;return u.replace(xn,E)}e.escapeString=al;function Xs(u){var we=u.length;return we>=2&&u.charCodeAt(0)===u.charCodeAt(we-1)&&l(u.charCodeAt(0))?u.substring(1,we-1):u}e.stripQuotes=Xs;function l(u){return u===39||u===34||u===96}function E(u,we,xn){if(u.charCodeAt(0)===0){var at=xn.charCodeAt(we+u.length);return at>=48&&at<=57?"\\x00":"\\0"}return Vc.get(u)||Me(u.charCodeAt(0))}function M(u){var we=u.charCodeAt(0);return we>=97&&we<=122||e.stringContains(u,"-")}e.isIntrinsicJsxName=M;function Me(u){var we=u.toString(16).toUpperCase(),xn=("0000"+we).slice(-4);return"\\u"+xn}var on=/[^\u0000-\u007F]/g;function fn(u,we){return u=al(u,we),on.test(u)?u.replace(on,function(xn){return Me(xn.charCodeAt(0))}):u}e.escapeNonAsciiString=fn;var Wn=[""," "];function Dt(u){return Wn[u]===void 0&&(Wn[u]=Dt(u-1)+Wn[1]),Wn[u]}e.getIndentString=Dt;function Ft(){return Wn[1].length}e.getIndentSize=Ft;function Lt(u){var we,xn,at,Hn,pa,Ta=!1;function Ga(xo){var gu=e.computeLineStarts(xo);gu.length>1?(Hn=Hn+gu.length-1,pa=we.length-xo.length+e.last(gu),at=pa-we.length===0):at=!1}function $o(xo){xo&&xo.length&&(at&&(xo=Dt(xn)+xo,at=!1),we+=xo,Ga(xo))}function Ci(xo){xo&&(Ta=!1),$o(xo)}function So(xo){xo&&(Ta=!0),$o(xo)}function qo(){we="",xn=0,at=!0,Hn=0,pa=0,Ta=!1}function El(xo){xo!==void 0&&(we+=xo,Ga(xo),Ta=!1)}function Rl(xo){xo&&xo.length&&Ci(xo)}function Ac(){at||(we+=u,Hn++,pa=we.length,at=!0,Ta=!1)}function kc(){return at?we.length:we.length+u.length}return qo(),{write:Ci,rawWrite:El,writeLiteral:Rl,writeLine:Ac,increaseIndent:function(){xn++},decreaseIndent:function(){xn--},getIndent:function(){return xn},getTextPos:function(){return we.length},getLine:function(){return Hn},getColumn:function(){return at?xn*Ft():we.length-pa},getText:function(){return we},isAtStartOfLine:function(){return at},hasTrailingComment:function(){return Ta},hasTrailingWhitespace:function(){return!!we.length&&e.isWhiteSpaceLike(we.charCodeAt(we.length-1))},clear:qo,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:Ci,writeOperator:Ci,writeParameter:Ci,writeProperty:Ci,writePunctuation:Ci,writeSpace:Ci,writeStringLiteral:Ci,writeSymbol:function(gu,uc){return Ci(gu)},writeTrailingSemicolon:Ci,writeComment:So,getTextPosWithWriteLine:kc}}e.createTextWriter=Lt;function mr(u){var we=!1;function xn(){we&&(u.writeTrailingSemicolon(";"),we=!1)}return ma(ma({},u),{writeTrailingSemicolon:function(){we=!0},writeLiteral:function(Hn){xn(),u.writeLiteral(Hn)},writeStringLiteral:function(Hn){xn(),u.writeStringLiteral(Hn)},writeSymbol:function(Hn,pa){xn(),u.writeSymbol(Hn,pa)},writePunctuation:function(Hn){xn(),u.writePunctuation(Hn)},writeKeyword:function(Hn){xn(),u.writeKeyword(Hn)},writeOperator:function(Hn){xn(),u.writeOperator(Hn)},writeParameter:function(Hn){xn(),u.writeParameter(Hn)},writeSpace:function(Hn){xn(),u.writeSpace(Hn)},writeProperty:function(Hn){xn(),u.writeProperty(Hn)},writeComment:function(Hn){xn(),u.writeComment(Hn)},writeLine:function(){xn(),u.writeLine()},increaseIndent:function(){xn(),u.increaseIndent()},decreaseIndent:function(){xn(),u.decreaseIndent()}})}e.getTrailingSemicolonDeferringWriter=mr;function fr(u,we,xn){return we.moduleName||ha(u,we.fileName,xn&&xn.fileName)}e.getResolvedExternalModuleName=fr;function Hr(u,we,xn){var at=we.getExternalModuleFileFromDeclaration(xn);return!at||at.isDeclarationFile?void 0:fr(u,at)}e.getExternalModuleNameFromDeclaration=Hr;function ha(u,we,xn){var at=function(Ci){return u.getCanonicalFileName(Ci)},Hn=e.toPath(xn?e.getDirectoryPath(xn):u.getCommonSourceDirectory(),u.getCurrentDirectory(),at),pa=e.getNormalizedAbsolutePath(we,u.getCurrentDirectory()),Ta=e.getRelativePathToDirectoryOrUrl(Hn,pa,Hn,at,!1),Ga=e.removeFileExtension(Ta);return xn?e.ensurePathIsNonModuleName(Ga):Ga}e.getExternalModuleNameFromPath=ha;function ia(u,we,xn){var at=we.getCompilerOptions(),Hn;return at.outDir?Hn=e.removeFileExtension(Xr(u,we,at.outDir)):Hn=e.removeFileExtension(u),Hn+xn}e.getOwnEmitOutputFilePath=ia;function Ka(u,we){return ci(u,we.getCompilerOptions(),we.getCurrentDirectory(),we.getCommonSourceDirectory(),function(xn){return we.getCanonicalFileName(xn)})}e.getDeclarationEmitOutputFilePath=Ka;function ci(u,we,xn,at,Hn){var pa=we.declarationDir||we.outDir,Ta=pa?aa(u,pa,xn,at,Hn):u;return e.removeFileExtension(Ta)+".d.ts"}e.getDeclarationEmitOutputFilePathWorker=ci;function ti(u,we,xn){var at=u.getCompilerOptions();if(at.outFile||at.out){var Hn=e.getEmitModuleKind(at),pa=at.emitDeclarationOnly||Hn===e.ModuleKind.AMD||Hn===e.ModuleKind.System;return e.filter(u.getSourceFiles(),function(Ga){return(pa||!e.isExternalModule(Ga))&&yi(Ga,u,xn)})}else{var Ta=we===void 0?u.getSourceFiles():[we];return e.filter(Ta,function(Ga){return yi(Ga,u,xn)})}}e.getSourceFilesToEmit=ti;function yi(u,we,xn){var at=we.getCompilerOptions();return!(at.noEmitForJsFiles&&Jr(u))&&!u.isDeclarationFile&&!we.isSourceFileFromExternalLibrary(u)&&!(tt(u)&&we.getResolvedProjectReferenceToRedirect(u.fileName))&&(xn||!we.isSourceOfProjectReferenceRedirect(u.fileName))}e.sourceFileMayBeEmitted=yi;function Xr(u,we,xn){return aa(u,xn,we.getCurrentDirectory(),we.getCommonSourceDirectory(),function(at){return we.getCanonicalFileName(at)})}e.getSourceFilePathInNewDir=Xr;function aa(u,we,xn,at,Hn){var pa=e.getNormalizedAbsolutePath(u,xn),Ta=Hn(pa).indexOf(Hn(at))===0;return pa=Ta?pa.substring(at.length):pa,e.combinePaths(we,pa)}e.getSourceFilePathInNewDirWorker=aa;function oa(u,we,xn,at,Hn,pa){u.writeFile(xn,at,Hn,function(Ta){we.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,xn,Ta))},pa)}e.writeFile=oa;function ta(u,we){return e.getLineAndCharacterOfPosition(u,we).line}e.getLineOfLocalPosition=ta;function La(u,we){return e.computeLineAndCharacterOfPosition(u,we).line}e.getLineOfLocalPositionFromLineMap=La;function qa(u){return e.find(u.members,function(we){return e.isConstructorDeclaration(we)&&b(we.body)})}e.getFirstConstructorWithBody=qa;function ri(u){if(u&&u.parameters.length>0){var we=u.parameters.length===2&&Ko(u.parameters[0]);return u.parameters[we?1:0]}}e.getSetAccessorValueParameter=ri;function ro(u){var we=ri(u);return we&&we.type}e.getSetAccessorTypeAnnotationNode=ro;function Ja(u){if(u.parameters.length&&!e.isJSDocSignature(u)){var we=u.parameters[0];if(Ko(we))return we}}e.getThisParameter=Ja;function Ko(u){return zr(u.name)}e.parameterIsThisKeyword=Ko;function zr(u){return!!u&&u.kind===75&&Yt(u)}e.isThisIdentifier=zr;function Yt(u){return u.originalKeywordKind===103}e.identifierIsThisKeyword=Yt;function xs(u,we){var xn,at,Hn,pa;return _l(we)?(xn=we,we.kind===162?Hn=we:we.kind===163?pa=we:e.Debug.fail("Accessor has wrong kind")):e.forEach(u,function(Ta){if(e.isAccessor(Ta)&&go(Ta,32)===go(we,32)){var Ga=rl(Ta.name),$o=rl(we.name);Ga===$o&&(xn?at||(at=Ta):xn=Ta,Ta.kind===162&&!Hn&&(Hn=Ta),Ta.kind===163&&!pa&&(pa=Ta))}}),{firstAccessor:xn,secondAccessor:at,getAccessor:Hn,setAccessor:pa}}e.getAllAccessorDeclarations=xs;function zu(u){var we=u.type;return we||!Na(u)?we:e.isJSDocPropertyLikeTag(u)?u.typeExpression&&u.typeExpression.type:e.getJSDocType(u)}e.getEffectiveTypeAnnotationNode=zu;function pd(u){return u.type}e.getTypeAnnotationNode=pd;function Nu(u){return e.isJSDocSignature(u)?u.type&&u.type.typeExpression&&u.type.typeExpression.type:u.type||(Na(u)?e.getJSDocReturnType(u):void 0)}e.getEffectiveReturnTypeNode=Nu;function bc(u){return e.flatMap(e.getJSDocTags(u),function(we){return nc(we)?we.typeParameters:void 0})}e.getJSDocTypeParameterDeclarations=bc;function nc(u){return e.isJSDocTemplateTag(u)&&!(u.parent.kind===301&&u.parent.tags.some(Ul))}function sr(u){var we=ri(u);return we&&zu(we)}e.getEffectiveSetAccessorTypeAnnotationNode=sr;function jo(u,we,xn,at){_a(u,we,xn.pos,at)}e.emitNewLineBeforeLeadingComments=jo;function _a(u,we,xn,at){at&&at.length&&xn!==at[0].pos&&La(u,xn)!==La(u,at[0].pos)&&we.writeLine()}e.emitNewLineBeforeLeadingCommentsOfPosition=_a;function No(u,we,xn,at){xn!==at&&La(u,xn)!==La(u,at)&&we.writeLine()}e.emitNewLineBeforeLeadingCommentOfPosition=No;function tc(u,we,xn,at,Hn,pa,Ta,Ga){if(at&&at.length>0){Hn&&xn.writeSpace(" ");for(var $o=!1,Ci=0,So=at;Ci<So.length;Ci++){var qo=So[Ci];$o&&(xn.writeSpace(" "),$o=!1),Ga(u,we,xn,qo.pos,qo.end,Ta),qo.hasTrailingNewLine?xn.writeLine():$o=!0}$o&&pa&&xn.writeSpace(" ")}}e.emitComments=tc;function ss(u,we,xn,at,Hn,pa,Ta){var Ga,$o;if(Ta?Hn.pos===0&&(Ga=e.filter(e.getLeadingCommentRanges(u,Hn.pos),gu)):Ga=e.getLeadingCommentRanges(u,Hn.pos),Ga){for(var Ci=[],So=void 0,qo=0,El=Ga;qo<El.length;qo++){var Rl=El[qo];if(So){var Ac=La(we,So.end),kc=La(we,Rl.pos);if(kc>=Ac+2)break}Ci.push(Rl),So=Rl}if(Ci.length){var Ac=La(we,e.last(Ci).end),xo=La(we,e.skipTrivia(u,Hn.pos));xo>=Ac+2&&(jo(we,xn,Hn,Ga),tc(u,we,xn,Ci,!1,!0,pa,at),$o={nodePos:Hn.pos,detachedCommentEndPos:e.last(Ci).end})}}return $o;function gu(uc){return U(u,uc.pos)}}e.emitDetachedComments=ss;function ar(u,we,xn,at,Hn,pa){if(u.charCodeAt(at+1)===42)for(var Ta=e.computeLineAndCharacterOfPosition(we,at),Ga=we.length,$o=void 0,Ci=at,So=Ta.line;Ci<Hn;So++){var qo=So+1===Ga?u.length+1:we[So+1];if(Ci!==at){$o===void 0&&($o=Bo(u,we[Ta.line],at));var El=xn.getIndent()*Ft(),Rl=El-$o+Bo(u,Ci,qo);if(Rl>0){var Ac=Rl%Ft(),kc=Dt((Rl-Ac)/Ft());for(xn.rawWrite(kc);Ac;)xn.rawWrite(" "),Ac--}else xn.rawWrite("")}il(u,Hn,xn,pa,Ci,qo),Ci=qo}else xn.writeComment(u.substring(at,Hn))}e.writeCommentRange=ar;function il(u,we,xn,at,Hn,pa){var Ta=Math.min(we,pa-1),Ga=u.substring(Hn,Ta).replace(/^\s+|\s+$/g,"");Ga?(xn.writeComment(Ga),Ta!==we&&xn.writeLine()):xn.rawWrite(at)}function Bo(u,we,xn){for(var at=0;we<xn&&e.isWhiteSpaceSingleLine(u.charCodeAt(we));we++)u.charCodeAt(we)===9?at+=Ft()-at%Ft():at++;return at}function ws(u){return As(u)!==0}e.hasModifiers=ws;function go(u,we){return!!ts(u,we)}e.hasModifier=go;function Oo(u){return go(u,32)}e.hasStaticModifier=Oo;function Ec(u){return go(u,64)}e.hasReadonlyModifier=Ec;function ts(u,we){return As(u)&we}e.getSelectedModifierFlags=ts;function As(u){if(u.modifierFlagsCache&536870912)return u.modifierFlagsCache&~536870912;var we=fu(u);return u.modifierFlagsCache=we|536870912,we}e.getModifierFlags=As;function fu(u){var we=0;if(u.modifiers)for(var xn=0,at=u.modifiers;xn<at.length;xn++){var Hn=at[xn];we|=jl(Hn.kind)}return(u.flags&4||u.kind===75&&u.isInJSDocNamespace)&&(we|=1),we}e.getModifierFlagsNoCache=fu;function jl(u){switch(u){case 119:return 32;case 118:return 4;case 117:return 16;case 116:return 8;case 121:return 128;case 88:return 1;case 129:return 2;case 80:return 2048;case 83:return 512;case 125:return 256;case 137:return 64}return 0}e.modifierToFlag=jl;function Uc(u){return u===56||u===55||u===53}e.isLogicalOperator=Uc;function Tc(u){return u>=62&&u<=74}e.isAssignmentOperator=Tc;function Sc(u){var we=xc(u);return we&&!we.isImplements?we.class:void 0}e.tryGetClassExtendingExpressionWithTypeArguments=Sc;function xc(u){return e.isExpressionWithTypeArguments(u)&&e.isHeritageClause(u.parent)&&e.isClassLike(u.parent.parent)?{class:u.parent.parent,isImplements:u.parent.token===112}:void 0}e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=xc;function rc(u,we){return e.isBinaryExpression(u)&&(we?u.operatorToken.kind===62:Tc(u.operatorToken.kind))&&e.isLeftHandSideExpression(u.left)}e.isAssignmentExpression=rc;function ac(u){if(rc(u,!0)){var we=u.left.kind;return we===192||we===191}return!1}e.isDestructuringAssignment=ac;function vl(u){return Sc(u)!==void 0}e.isExpressionWithTypeArgumentsInClassExtendsClause=vl;function Ys(u){return u.kind===75||Gs(u)}e.isEntityNameExpression=Ys;function Ol(u){switch(u.kind){case 75:return u;case 152:do u=u.left;while(u.kind!==75);return u;case 193:do u=u.expression;while(u.kind!==75);return u}}e.getFirstIdentifier=Ol;function wa(u){return u.kind===75||u.kind===103||u.kind===193&&wa(u.expression)||u.kind===199&&wa(u.expression)}e.isDottedName=wa;function Gs(u){return e.isPropertyAccessExpression(u)&&Ys(u.expression)}e.isPropertyAccessEntityNameExpression=Gs;function zt(u){return e.isPropertyAccessExpression(u)?zt(u.expression)+"."+u.name:e.isIdentifier(u)?e.unescapeLeadingUnderscores(u.escapedText):void 0}e.tryGetPropertyAccessOrIdentifierToString=zt;function bl(u){return Cn(u)&&da(u)==="prototype"}e.isPrototypeAccess=bl;function Do(u){return u.parent.kind===152&&u.parent.right===u||u.parent.kind===193&&u.parent.name===u}e.isRightSideOfQualifiedNameOrPropertyAccess=Do;function pu(u){return u.kind===192&&u.properties.length===0}e.isEmptyObjectLiteral=pu;function ic(u){return u.kind===191&&u.elements.length===0}e.isEmptyArrayLiteral=ic;function Wl(u){return Xu(u)?u.declarations[0].localSymbol:void 0}e.getLocalSymbolForExportDefault=Wl;function Xu(u){return u&&e.length(u.declarations)>0&&go(u.declarations[0],512)}function zi(u){return e.find(e.supportedTSExtensionsForExtractExtension,function(we){return e.fileExtensionIs(u,we)})}e.tryExtractTSExtension=zi;function Hl(u){for(var we=[],xn=u.length,at=0;at<xn;at++){var Hn=u.charCodeAt(at);Hn<128?we.push(Hn):Hn<2048?(we.push(Hn>>6|192),we.push(Hn&63|128)):Hn<65536?(we.push(Hn>>12|224),we.push(Hn>>6&63|128),we.push(Hn&63|128)):Hn<131072?(we.push(Hn>>18|240),we.push(Hn>>12&63|128),we.push(Hn>>6&63|128),we.push(Hn&63|128)):e.Debug.assert(!1,"Unexpected code point")}return we}var Ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function wc(u){for(var we="",xn=Hl(u),at=0,Hn=xn.length,pa,Ta,Ga,$o;at<Hn;)pa=xn[at]>>2,Ta=(xn[at]&3)<<4|xn[at+1]>>4,Ga=(xn[at+1]&15)<<2|xn[at+2]>>6,$o=xn[at+2]&63,at+1>=Hn?Ga=$o=64:at+2>=Hn&&($o=64),we+=Ra.charAt(pa)+Ra.charAt(Ta)+Ra.charAt(Ga)+Ra.charAt($o),at+=3;return we}e.convertToBase64=wc;function us(u){for(var we="",xn=0,at=u.length;xn<at;){var Hn=u[xn];if(Hn<128)we+=String.fromCharCode(Hn),xn++;else if((Hn&192)===192){var pa=Hn&63;xn++;for(var Ta=u[xn];(Ta&192)===128;)pa=pa<<6|Ta&63,xn++,Ta=u[xn];we+=String.fromCharCode(pa)}else we+=String.fromCharCode(Hn),xn++}return we}function Vs(u,we){return u&&u.base64encode?u.base64encode(we):wc(we)}e.base64encode=Vs;function ns(u,we){if(u&&u.base64decode)return u.base64decode(we);for(var xn=we.length,at=[],Hn=0;Hn<xn&&!(we.charCodeAt(Hn)===Ra.charCodeAt(64));){var pa=Ra.indexOf(we[Hn]),Ta=Ra.indexOf(we[Hn+1]),Ga=Ra.indexOf(we[Hn+2]),$o=Ra.indexOf(we[Hn+3]),Ci=(pa&63)<<2|Ta>>4&3,So=(Ta&15)<<4|Ga>>2&15,qo=(Ga&3)<<6|$o&63;So===0&&Ga!==0?at.push(Ci):qo===0&&$o!==0?at.push(Ci,So):at.push(Ci,So,qo),Hn+=4}return us(at)}e.base64decode=ns;function Yu(u,we){try{var xn=we.readFile(u);if(!xn)return{};var at=e.parseConfigFileTextToJson(u,xn);return at.error?{}:at.config}catch(Hn){return{}}}e.readJson=Yu;function Qs(u,we){return!we.directoryExists||we.directoryExists(u)}e.directoryProbablyExists=Qs;var oc=`\r
`,md=`
`;function Kl(u,we){switch(u.newLine){case 0:return oc;case 1:return md}return we?we():e.sys?e.sys.newLine:oc}e.getNewLineCharacter=Kl;function sc(u,we){return we===void 0&&(we=u),e.Debug.assert(we>=u||we===-1),{pos:u,end:we}}e.createRange=sc;function Qu(u,we){return sc(u.pos,we)}e.moveRangeEnd=Qu;function Zo(u,we){return sc(we,u.end)}e.moveRangePos=Zo;function hd(u){return u.decorators&&u.decorators.length>0?Zo(u,u.decorators.end):u}e.moveRangePastDecorators=hd;function Bi(u){return u.modifiers&&u.modifiers.length>0?Zo(u,u.modifiers.end):hd(u)}e.moveRangePastModifiers=Bi;function Ou(u){return u.pos===u.end}e.isCollapsedRange=Ou;function Zu(u,we){return sc(u,u+e.tokenToString(we).length)}e.createTokenRange=Zu;function jc(u,we){return Hc(u,u,we)}e.rangeIsOnSingleLine=jc;function Wc(u,we,xn){return Ml(ql(u,xn),ql(we,xn),xn)}e.rangeStartPositionsAreOnSameLine=Wc;function mu(u,we,xn){return Ml(u.end,we.end,xn)}e.rangeEndPositionsAreOnSameLine=mu;function Hc(u,we,xn){return Ml(ql(u,xn),we.end,xn)}e.rangeStartIsOnSameLineAsRangeEnd=Hc;function $u(u,we,xn){return Ml(u.end,ql(we,xn),xn)}e.rangeEndIsOnSameLineAsRangeStart=$u;function Pl(u,we){return!Ml(u.pos,u.end,we)}e.isNodeArrayMultiLine=Pl;function Ml(u,we,xn){return u===we||ta(xn,u)===ta(xn,we)}e.positionsAreOnSameLine=Ml;function ql(u,we){return e.positionIsSynthesized(u.pos)?-1:e.skipTrivia(we.text,u.pos)}e.getStartPositionOfRange=ql;function lc(u){var we=e.getParseTreeNode(u);if(we)switch(we.parent.kind){case 247:case 248:return we===we.parent.name}return!1}e.isDeclarationNameOfEnumOrNamespace=lc;function Pu(u){return e.filter(u.declarations,ol)}e.getInitializedVariables=Pu;function ol(u){return u.initializer!==void 0}function ed(u){return u.watch&&u.hasOwnProperty("watch")}e.isWatchSet=ed;function nd(u){u.close()}e.closeFileWatcher=nd;function hu(u){return u.flags&33554432?u.checkFlags:0}e.getCheckFlags=hu;function gd(u){if(u.valueDeclaration){var we=e.getCombinedModifierFlags(u.valueDeclaration);return u.parent&&u.parent.flags&32?we:we&~28}if(hu(u)&6){var xn=u.checkFlags,at=xn&1024?8:xn&256?4:16,Hn=xn&2048?32:0;return at|Hn}return u.flags&4194304?4|32:0}e.getDeclarationModifierFlagsFromSymbol=gd;function Od(u,we){return u.flags&2097152?we.getAliasedSymbol(u):u}e.skipAlias=Od;function Pd(u){return u.exportSymbol?u.exportSymbol.flags|u.flags:u.flags}e.getCombinedLocalAndExportSymbolFlags=Pd;function cc(u){return g(u)===1}e.isWriteOnlyAccess=cc;function Md(u){return g(u)!==0}e.isWriteAccess=Md;var Mu;(function(u){u[u.Read=0]="Read",u[u.Write=1]="Write",u[u.ReadWrite=2]="ReadWrite"})(Mu||(Mu={}));function g(u){var we=u.parent;if(!we)return 0;switch(we.kind){case 199:return g(we);case 207:case 206:var xn=we.operator;return xn===45||xn===46?Ga():0;case 208:var at=we,Hn=at.left,pa=at.operatorToken;return Hn===u&&Tc(pa.kind)?pa.kind===62?1:Ga():0;case 193:return we.name!==u?0:g(we);case 279:{var Ta=g(we.parent);return u===we.name?te(Ta):Ta}case 280:return u===we.objectAssignmentInitializer?0:g(we.parent);case 191:return g(we);default:return 0}function Ga(){return we.parent&&Fa(we.parent).kind===225?1:2}}function te(u){switch(u){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(u)}}function Ve(u,we){if(!u||!we||Object.keys(u).length!==Object.keys(we).length)return!1;for(var xn in u)if(typeof u[xn]=="object"){if(!Ve(u[xn],we[xn]))return!1}else if(typeof u[xn]!="function"&&u[xn]!==we[xn])return!1;return!0}e.compareDataObjects=Ve;function Dn(u,we){u.forEach(we),u.clear()}e.clearMap=Dn;function rt(u,we,xn){var at=xn.onDeleteValue,Hn=xn.onExistingValue;u.forEach(function(pa,Ta){var Ga=we.get(Ta);Ga===void 0?(u.delete(Ta),at(pa,Ta)):Hn&&Hn(pa,Ga,Ta)})}e.mutateMapSkippingNewValues=rt;function p(u,we,xn){rt(u,we,xn);var at=xn.createNewValue;we.forEach(function(Hn,pa){u.has(pa)||u.set(pa,at(pa,Hn))})}e.mutateMap=p;function Be(u){return!!(Sr(u)&16)&&!!u.symbol&&Nn(u.symbol)}e.isAbstractConstructorType=Be;function Nn(u){if(u.flags&32){var we=bt(u);return!!we&&go(we,128)}return!1}e.isAbstractConstructorSymbol=Nn;function bt(u){return e.find(u.declarations,e.isClassLike)}e.getClassLikeDeclarationOfSymbol=bt;function Sr(u){return u.flags&3899392?u.objectFlags:0}e.getObjectFlags=Sr;function Yr(u,we){return we.getSignaturesOfType(u,0).length!==0||we.getSignaturesOfType(u,1).length!==0}e.typeHasCallOrConstructSignatures=Yr;function ra(u,we){return!!e.forEachAncestorDirectory(u,function(xn){return we(xn)?!0:void 0})}e.forSomeAncestorDirectory=ra;function mi(u){return!!u&&!!u.declarations&&!!u.declarations[0]&&e.isNamespaceExportDeclaration(u.declarations[0])}e.isUMDExportSymbol=mi;function q(u){var we=u.moduleSpecifier;return e.isStringLiteral(we)?we.text:We(we)}e.showModuleSpecifier=q;function dn(u){var we;return e.forEachChild(u,function(xn){b(xn)&&(we=xn)},function(xn){for(var at=xn.length-1;at>=0;at--)if(b(xn[at])){we=xn[at];break}}),we}e.getLastChild=dn;function Un(u,we,xn){return xn===void 0&&(xn=!0),we=String(we),u.has(we)?!1:(u.set(we,xn),!0)}e.addToSeen=Un;function Et(u){return e.isClassLike(u)||e.isInterfaceDeclaration(u)||e.isTypeLiteralNode(u)}e.isObjectTypeDeclaration=Et;function gr(u){return u>=167&&u<=187||u===124||u===147||u===139||u===150||u===140||u===127||u===142||u===143||u===103||u===109||u===145||u===99||u===136||u===215||u===293||u===294||u===295||u===296||u===297||u===298||u===299}e.isTypeNodeKind=gr;function Zr(u){return u.kind===193||u.kind===194}e.isAccessExpression=Zr;function ka(u){switch(u.kind){case"text":case"internal":return!0;default:return!1}}e.isBundleFileTextLike=ka;function ps(u){return u.questionDotToken||e.createNode(24,u.expression.end,u.name.pos)}e.getDotOrQuestionDotToken=ps}(ln||(ln={})),function(e){function o(ae){switch(ae.target){case 99:return"lib.esnext.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=o;function F(ae){return ae.start+ae.length}e.textSpanEnd=F;function qe(ae){return ae.length===0}e.textSpanIsEmpty=qe;function Se(ae,ce){return ce>=ae.start&&ce<F(ae)}e.textSpanContainsPosition=Se;function Fe(ae,ce){return ce>=ae.pos&&ce<=ae.end}e.textRangeContainsPositionInclusive=Fe;function He(ae,ce){return ce.start>=ae.start&&F(ce)<=F(ae)}e.textSpanContainsTextSpan=He;function ve(ae,ce){return ie(ae,ce)!==void 0}e.textSpanOverlapsWith=ve;function ie(ae,ce){var Le=_e(ae,ce);return Le&&Le.length===0?void 0:Le}e.textSpanOverlap=ie;function d(ae,ce){return Pe(ae.start,ae.length,ce.start,ce.length)}e.textSpanIntersectsWithTextSpan=d;function H(ae,ce,Le){return Pe(ae.start,ae.length,ce,Le)}e.textSpanIntersectsWith=H;function Pe(ae,ce,Le,Je){var Ze=ae+ce,Ue=Le+Je;return Le<=Ze&&Ue>=ae}e.decodedTextSpanIntersectsWith=Pe;function I(ae,ce){return ce<=F(ae)&&ce>=ae.start}e.textSpanIntersectsWithPosition=I;function _e(ae,ce){var Le=Math.max(ae.start,ce.start),Je=Math.min(F(ae),F(ce));return Le<=Je?se(Le,Je):void 0}e.textSpanIntersection=_e;function re(ae,ce){if(ae<0)throw new Error("start < 0");if(ce<0)throw new Error("length < 0");return{start:ae,length:ce}}e.createTextSpan=re;function se(ae,ce){return re(ae,ce-ae)}e.createTextSpanFromBounds=se;function w(ae){return re(ae.span.start,ae.newLength)}e.textChangeRangeNewSpan=w;function k(ae){return qe(ae.span)&&ae.newLength===0}e.textChangeRangeIsUnchanged=k;function P(ae,ce){if(ce<0)throw new Error("newLength < 0");return{span:ae,newLength:ce}}e.createTextChangeRange=P,e.unchangedTextChangeRange=P(re(0,0),0);function h(ae){if(ae.length===0)return e.unchangedTextChangeRange;if(ae.length===1)return ae[0];for(var ce=ae[0],Le=ce.span.start,Je=F(ce.span),Ze=Le+ce.newLength,Ue=1;Ue<ae.length;Ue++){var cn=ae[Ue],$e=Le,sn=Je,he=Ze,ke=cn.span.start,G=F(cn.span),c=ke+cn.newLength;Le=Math.min($e,ke),Je=Math.max(sn,sn+(G-he)),Ze=Math.max(c,c+(he-G))}return P(se(Le,Je),Ze-Le)}e.collapseTextChangeRangesAcrossMultipleVersions=h;function Y(ae){if(ae&&ae.kind===154){for(var ce=ae;ce;ce=ce.parent)if(e.isFunctionLike(ce)||e.isClassLike(ce)||ce.kind===245)return ce}}e.getTypeParameterOwner=Y;function ne(ae,ce){return e.hasModifier(ae,92)&&ce.kind===161}e.isParameterPropertyDeclaration=ne;function $(ae){return e.isBindingPattern(ae)?e.every(ae.elements,J):!1}e.isEmptyBindingPattern=$;function J(ae){return e.isOmittedExpression(ae)?!0:$(ae.name)}e.isEmptyBindingElement=J;function fe(ae){for(var ce=ae.parent;e.isBindingElement(ce.parent);)ce=ce.parent.parent;return ce.parent}e.walkUpBindingElementsAndPatterns=fe;function R(ae,ce){e.isBindingElement(ae)&&(ae=fe(ae));var Le=ce(ae);return ae.kind===241&&(ae=ae.parent),ae&&ae.kind===242&&(Le|=ce(ae),ae=ae.parent),ae&&ae.kind===224&&(Le|=ce(ae)),Le}function K(ae){return R(ae,e.getModifierFlags)}e.getCombinedModifierFlags=K;function z(ae){return R(ae,function(ce){return ce.flags})}e.getCombinedNodeFlags=z;function Ee(ae,ce,Le){var Je=/^([a-z]+)([_\-]([a-z]+))?$/.exec(ae.toLowerCase());if(!Je){Le&&Le.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 Ze=Je[1],Ue=Je[3];cn(Ze,Ue,Le)||cn(Ze,void 0,Le),e.setUILocale(ae);function cn($e,sn,he){var ke=e.normalizePath(ce.getExecutingFilePath()),G=e.getDirectoryPath(ke),c=e.combinePaths(G,$e);if(sn&&(c=c+"-"+sn),c=ce.resolvePath(e.combinePaths(c,"diagnosticMessages.generated.json")),!ce.fileExists(c))return!1;var O="";try{O=ce.readFile(c)}catch(ee){return he&&he.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,c)),!1}try{e.localizedDiagnosticMessages=JSON.parse(O)}catch(ee){return he&&he.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,c)),!1}return!0}}e.validateLocaleAndSetLanguage=Ee;function B(ae,ce){if(ae)for(;ae.original!==void 0;)ae=ae.original;return!ce||ce(ae)?ae:void 0}e.getOriginalNode=B;function V(ae){return(ae.flags&8)===0}e.isParseTreeNode=V;function m(ae,ce){return ae===void 0||V(ae)?ae:(ae=B(ae),V(ae)&&(!ce||ce(ae))?ae:void 0)}e.getParseTreeNode=m;function y(ae){return ae.length>=2&&ae.charCodeAt(0)===95&&ae.charCodeAt(1)===95?"_"+ae:ae}e.escapeLeadingUnderscores=y;function L(ae){var ce=ae;return ce.length>=3&&ce.charCodeAt(0)===95&&ce.charCodeAt(1)===95&&ce.charCodeAt(2)===95?ce.substr(1):ce}e.unescapeLeadingUnderscores=L;function C(ae){return L(ae.escapedText)}e.idText=C;function _(ae){return L(ae.escapedName)}e.symbolName=_;function b(ae){var ce=ae.parent.parent;if(!ce)return;if(e.isDeclaration(ce))return D(ce);switch(ce.kind){case 224:if(ce.declarationList&&ce.declarationList.declarations[0])return D(ce.declarationList.declarations[0]);break;case 225:var Le=ce.expression;Le.kind===208&&Le.operatorToken.kind===62&&(Le=Le.left);switch(Le.kind){case 193:return Le.name;case 194:var Je=Le.argumentExpression;if(e.isIdentifier(Je))return Je}break;case 199:return D(ce.expression);case 237:{if(e.isDeclaration(ce.statement)||e.isExpression(ce.statement))return D(ce.statement);break}}}function D(ae){var ce=pe(ae);return ce&&e.isIdentifier(ce)?ce:void 0}function T(ae,ce){return N(ae)&&e.isIdentifier(ae.name)&&C(ae.name)===C(ce)?!0:!!(e.isVariableStatement(ae)&&e.some(ae.declarationList.declarations,function(Le){return T(Le,ce)}))}e.nodeHasName=T;function Q(ae){return ae.name||b(ae)}e.getNameOfJSDocTypedef=Q;function N(ae){return!!ae.name}e.isNamedDeclaration=N;function X(ae){switch(ae.kind){case 75:return ae;case 316:case 310:{var ce=ae.name;if(ce.kind===152)return ce.right;break}case 195:case 208:{var Le=ae;switch(e.getAssignmentDeclarationKind(Le)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(Le.left);case 7:case 8:case 9:return Le.arguments[1];default:return}}case 315:return Q(ae);case 309:return b(ae);case 258:{var Je=ae.expression;return e.isIdentifier(Je)?Je:void 0}case 194:var Ze=ae;if(e.isBindableStaticElementAccessExpression(Ze))return Ze.argumentExpression}return ae.name}e.getNonAssignedNameOfDeclaration=X;function pe(ae){return ae===void 0?void 0:X(ae)||(e.isFunctionExpression(ae)||e.isClassExpression(ae)?S(ae):void 0)}e.getNameOfDeclaration=pe;function S(ae){if(ae.parent){if(e.isPropertyAssignment(ae.parent)||e.isBindingElement(ae.parent))return ae.parent.name;if(e.isBinaryExpression(ae.parent)&&ae===ae.parent.right){if(e.isIdentifier(ae.parent.left))return ae.parent.left;if(e.isAccessExpression(ae.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(ae.parent.left)}else if(e.isVariableDeclaration(ae.parent)&&e.isIdentifier(ae.parent.name))return ae.parent.name}else return}function v(ae){if(ae.name)if(e.isIdentifier(ae.name)){var ce=ae.name.escapedText;return Oe(ae.parent).filter(function(Ze){return e.isJSDocParameterTag(Ze)&&e.isIdentifier(Ze.name)&&Ze.name.escapedText===ce})}else{var Le=ae.parent.parameters.indexOf(ae);e.Debug.assert(Le>-1,"Parameters should always be in their parents' parameter list");var Je=Oe(ae.parent).filter(e.isJSDocParameterTag);if(Le<Je.length)return[Je[Le]]}return e.emptyArray}e.getJSDocParameterTags=v;function U(ae){var ce=ae.name.escapedText;return Oe(ae.parent).filter(function(Le){return e.isJSDocTemplateTag(Le)&&Le.typeParameters.some(function(Je){return Je.name.escapedText===ce})})}e.getJSDocTypeParameterTags=U;function de(ae){return!!a(ae,e.isJSDocParameterTag)}e.hasJSDocParameterTags=de;function Ce(ae){return a(ae,e.isJSDocAugmentsTag)}e.getJSDocAugmentsTag=Ce;function Z(ae){return a(ae,e.isJSDocClassTag)}e.getJSDocClassTag=Z;function Re(ae){return a(ae,e.isJSDocEnumTag)}e.getJSDocEnumTag=Re;function Ae(ae){return a(ae,e.isJSDocThisTag)}e.getJSDocThisTag=Ae;function We(ae){return a(ae,e.isJSDocReturnTag)}e.getJSDocReturnTag=We;function be(ae){return a(ae,e.isJSDocTemplateTag)}e.getJSDocTemplateTag=be;function Ge(ae){var ce=a(ae,e.isJSDocTypeTag);return ce&&ce.typeExpression&&ce.typeExpression.type?ce:void 0}e.getJSDocTypeTag=Ge;function x(ae){var ce=a(ae,e.isJSDocTypeTag);return!ce&&e.isParameter(ae)&&(ce=e.find(v(ae),function(Le){return!!Le.typeExpression})),ce&&ce.typeExpression&&ce.typeExpression.type}e.getJSDocType=x;function j(ae){var ce=We(ae);if(ce&&ce.typeExpression)return ce.typeExpression.type;var Le=Ge(ae);if(Le&&Le.typeExpression){var Je=Le.typeExpression.type;if(e.isTypeLiteralNode(Je)){var Ze=e.find(Je.members,e.isCallSignatureDeclaration);return Ze&&Ze.type}if(e.isFunctionTypeNode(Je))return Je.type}}e.getJSDocReturnType=j;function Oe(ae){var ce=ae.jsDocCache;if(ce===void 0){var Le=e.getJSDocCommentsAndTags(ae);e.Debug.assert(Le.length<2||Le[0]!==Le[1]),ae.jsDocCache=ce=e.flatMap(Le,function(Je){return e.isJSDoc(Je)?Je.tags:Je})}return ce}e.getJSDocTags=Oe;function a(ae,ce){return e.find(Oe(ae),ce)}function en(ae,ce){return Oe(ae).filter(function(Le){return Le.kind===ce})}e.getAllJSDocTagsOfKind=en;function Pn(ae){if(e.isJSDocSignature(ae))return e.emptyArray;if(e.isJSDocTypeAlias(ae))return e.Debug.assert(ae.parent.kind===301),e.flatMap(ae.parent.tags,function(Je){return e.isJSDocTemplateTag(Je)?Je.typeParameters:void 0});if(ae.typeParameters)return ae.typeParameters;if(e.isInJSFile(ae)){var ce=e.getJSDocTypeParameterDeclarations(ae);if(ce.length)return ce;var Le=x(ae);if(Le&&e.isFunctionTypeNode(Le)&&Le.typeParameters)return Le.typeParameters}return e.emptyArray}e.getEffectiveTypeParameterDeclarations=Pn;function Xn(ae){return ae.constraint?ae.constraint:e.isJSDocTemplateTag(ae.parent)&&ae===ae.parent.typeParameters[0]?ae.parent.constraint:void 0}e.getEffectiveConstraintOfTypeParameter=Xn}(ln||(ln={})),function(e){function o(an){return an.kind===8}e.isNumericLiteral=o;function F(an){return an.kind===9}e.isBigIntLiteral=F;function qe(an){return an.kind===10}e.isStringLiteral=qe;function Se(an){return an.kind===11}e.isJsxText=Se;function Fe(an){return an.kind===13}e.isRegularExpressionLiteral=Fe;function He(an){return an.kind===14}e.isNoSubstitutionTemplateLiteral=He;function ve(an){return an.kind===15}e.isTemplateHead=ve;function ie(an){return an.kind===16}e.isTemplateMiddle=ie;function d(an){return an.kind===17}e.isTemplateTail=d;function H(an){return an.kind===75}e.isIdentifier=H;function Pe(an){return an.kind===152}e.isQualifiedName=Pe;function I(an){return an.kind===153}e.isComputedPropertyName=I;function _e(an){return an.kind===154}e.isTypeParameterDeclaration=_e;function re(an){return an.kind===155}e.isParameter=re;function se(an){return an.kind===156}e.isDecorator=se;function w(an){return an.kind===157}e.isPropertySignature=w;function k(an){return an.kind===158}e.isPropertyDeclaration=k;function P(an){return an.kind===159}e.isMethodSignature=P;function h(an){return an.kind===160}e.isMethodDeclaration=h;function Y(an){return an.kind===161}e.isConstructorDeclaration=Y;function ne(an){return an.kind===162}e.isGetAccessorDeclaration=ne;function $(an){return an.kind===163}e.isSetAccessorDeclaration=$;function J(an){return an.kind===164}e.isCallSignatureDeclaration=J;function fe(an){return an.kind===165}e.isConstructSignatureDeclaration=fe;function R(an){return an.kind===166}e.isIndexSignatureDeclaration=R;function K(an){return an.kind===163||an.kind===162}e.isGetOrSetAccessorDeclaration=K;function z(an){return an.kind===167}e.isTypePredicateNode=z;function Ee(an){return an.kind===168}e.isTypeReferenceNode=Ee;function B(an){return an.kind===169}e.isFunctionTypeNode=B;function V(an){return an.kind===170}e.isConstructorTypeNode=V;function m(an){return an.kind===171}e.isTypeQueryNode=m;function y(an){return an.kind===172}e.isTypeLiteralNode=y;function L(an){return an.kind===173}e.isArrayTypeNode=L;function C(an){return an.kind===174}e.isTupleTypeNode=C;function _(an){return an.kind===177}e.isUnionTypeNode=_;function b(an){return an.kind===178}e.isIntersectionTypeNode=b;function D(an){return an.kind===179}e.isConditionalTypeNode=D;function T(an){return an.kind===180}e.isInferTypeNode=T;function Q(an){return an.kind===181}e.isParenthesizedTypeNode=Q;function N(an){return an.kind===182}e.isThisTypeNode=N;function X(an){return an.kind===183}e.isTypeOperatorNode=X;function pe(an){return an.kind===184}e.isIndexedAccessTypeNode=pe;function S(an){return an.kind===185}e.isMappedTypeNode=S;function v(an){return an.kind===186}e.isLiteralTypeNode=v;function U(an){return an.kind===187}e.isImportTypeNode=U;function de(an){return an.kind===188}e.isObjectBindingPattern=de;function Ce(an){return an.kind===189}e.isArrayBindingPattern=Ce;function Z(an){return an.kind===190}e.isBindingElement=Z;function Re(an){return an.kind===191}e.isArrayLiteralExpression=Re;function Ae(an){return an.kind===192}e.isObjectLiteralExpression=Ae;function We(an){return an.kind===193}e.isPropertyAccessExpression=We;function be(an){return We(an)&&!!(an.flags&32)}e.isPropertyAccessChain=be;function Ge(an){return an.kind===194}e.isElementAccessExpression=Ge;function x(an){return Ge(an)&&!!(an.flags&32)}e.isElementAccessChain=x;function j(an){return an.kind===195}e.isCallExpression=j;function Oe(an){return j(an)&&!!(an.flags&32)}e.isCallChain=Oe;function a(an){var Dr=an.kind;return!!(an.flags&32)&&(Dr===193||Dr===194||Dr===195)}e.isOptionalChain=a;function en(an){return a(an)&&!!an.questionDotToken}e.isOptionalChainRoot=en;function Pn(an){return en(an.parent)&&an.parent.expression===an}e.isExpressionOfOptionalChainRoot=Pn;function Xn(an){return!a(an.parent)||en(an.parent)||an!==an.parent.expression}e.isOutermostOptionalChain=Xn;function ae(an){return an.kind===208&&an.operatorToken.kind===60}e.isNullishCoalesce=ae;function ce(an){return an.kind===196}e.isNewExpression=ce;function Le(an){return an.kind===197}e.isTaggedTemplateExpression=Le;function Je(an){return an.kind===198}e.isTypeAssertion=Je;function Ze(an){return Ee(an)&&H(an.typeName)&&an.typeName.escapedText==="const"&&!an.typeArguments}e.isConstTypeReference=Ze;function Ue(an){return an.kind===199}e.isParenthesizedExpression=Ue;function cn(an){for(;an.kind===319;)an=an.expression;return an}e.skipPartiallyEmittedExpressions=cn;function $e(an){return an.kind===200}e.isFunctionExpression=$e;function sn(an){return an.kind===201}e.isArrowFunction=sn;function he(an){return an.kind===202}e.isDeleteExpression=he;function ke(an){return an.kind===203}e.isTypeOfExpression=ke;function G(an){return an.kind===204}e.isVoidExpression=G;function c(an){return an.kind===205}e.isAwaitExpression=c;function O(an){return an.kind===206}e.isPrefixUnaryExpression=O;function ee(an){return an.kind===207}e.isPostfixUnaryExpression=ee;function Te(an){return an.kind===208}e.isBinaryExpression=Te;function Ne(an){return an.kind===209}e.isConditionalExpression=Ne;function ze(an){return an.kind===210}e.isTemplateExpression=ze;function bn(an){return an.kind===211}e.isYieldExpression=bn;function Sn(an){return an.kind===212}e.isSpreadElement=Sn;function Kn(an){return an.kind===213}e.isClassExpression=Kn;function Xe(an){return an.kind===214}e.isOmittedExpression=Xe;function pn(an){return an.kind===215}e.isExpressionWithTypeArguments=pn;function le(an){return an.kind===216}e.isAsExpression=le;function oe(an){return an.kind===217}e.isNonNullExpression=oe;function kn(an){return an.kind===218}e.isMetaProperty=kn;function yn(an){return an.kind===220}e.isTemplateSpan=yn;function ye(an){return an.kind===221}e.isSemicolonClassElement=ye;function mn(an){return an.kind===222}e.isBlock=mn;function un(an){return an.kind===224}e.isVariableStatement=un;function Mn(an){return an.kind===223}e.isEmptyStatement=Mn;function tt(an){return an.kind===225}e.isExpressionStatement=tt;function Vn(an){return an.kind===226}e.isIfStatement=Vn;function ut(an){return an.kind===227}e.isDoStatement=ut;function dt(an){return an.kind===228}e.isWhileStatement=dt;function ot(an){return an.kind===229}e.isForStatement=ot;function ct(an){return an.kind===230}e.isForInStatement=ct;function wt(an){return an.kind===231}e.isForOfStatement=wt;function st(an){return an.kind===232}e.isContinueStatement=st;function qn(an){return an.kind===233}e.isBreakStatement=qn;function Ie(an){return an.kind===233||an.kind===232}e.isBreakOrContinueStatement=Ie;function De(an){return an.kind===234}e.isReturnStatement=De;function _n(an){return an.kind===235}e.isWithStatement=_n;function _t(an){return an.kind===236}e.isSwitchStatement=_t;function It(an){return an.kind===237}e.isLabeledStatement=It;function Ht(an){return an.kind===238}e.isThrowStatement=Ht;function nr(an){return an.kind===239}e.isTryStatement=nr;function vr(an){return an.kind===240}e.isDebuggerStatement=vr;function Qr(an){return an.kind===241}e.isVariableDeclaration=Qr;function Wr(an){return an.kind===242}e.isVariableDeclarationList=Wr;function gt(an){return an.kind===243}e.isFunctionDeclaration=gt;function ba(an){return an.kind===244}e.isClassDeclaration=ba;function kt(an){return an.kind===245}e.isInterfaceDeclaration=kt;function jn(an){return an.kind===246}e.isTypeAliasDeclaration=jn;function Ut(an){return an.kind===247}e.isEnumDeclaration=Ut;function ft(an){return an.kind===248}e.isModuleDeclaration=ft;function Tt(an){return an.kind===249}e.isModuleBlock=Tt;function yt(an){return an.kind===250}e.isCaseBlock=yt;function vt(an){return an.kind===251}e.isNamespaceExportDeclaration=vt;function Ke(an){return an.kind===252}e.isImportEqualsDeclaration=Ke;function Rn(an){return an.kind===253}e.isImportDeclaration=Rn;function nt(an){return an.kind===254}e.isImportClause=nt;function tr(an){return an.kind===255}e.isNamespaceImport=tr;function xa(an){return an.kind===256}e.isNamedImports=xa;function Ba(an){return an.kind===257}e.isImportSpecifier=Ba;function ai(an){return an.kind===258}e.isExportAssignment=ai;function wi(an){return an.kind===259}e.isExportDeclaration=wi;function Ai(an){return an.kind===260}e.isNamedExports=Ai;function Ei(an){return an.kind===261}e.isExportSpecifier=Ei;function Pi(an){return an.kind===262}e.isMissingDeclaration=Pi;function Xa(an){return an.kind===263}e.isExternalModuleReference=Xa;function Ia(an){return an.kind===264}e.isJsxElement=Ia;function ca(an){return an.kind===265}e.isJsxSelfClosingElement=ca;function Ti(an){return an.kind===266}e.isJsxOpeningElement=Ti;function Vo(an){return an.kind===267}e.isJsxClosingElement=Vo;function mo(an){return an.kind===268}e.isJsxFragment=mo;function Ro(an){return an.kind===269}e.isJsxOpeningFragment=Ro;function uo(an){return an.kind===270}e.isJsxClosingFragment=uo;function ui(an){return an.kind===271}e.isJsxAttribute=ui;function Gi(an){return an.kind===272}e.isJsxAttributes=Gi;function ji(an){return an.kind===273}e.isJsxSpreadAttribute=ji;function Fo(an){return an.kind===274}e.isJsxExpression=Fo;function ko(an){return an.kind===275}e.isCaseClause=ko;function bo(an){return an.kind===276}e.isDefaultClause=bo;function Ri(an){return an.kind===277}e.isHeritageClause=Ri;function xt(an){return an.kind===278}e.isCatchClause=xt;function Kt(an){return an.kind===279}e.isPropertyAssignment=Kt;function _r(an){return an.kind===280}e.isShorthandPropertyAssignment=_r;function Jr(an){return an.kind===281}e.isSpreadAssignment=Jr;function va(an){return an.kind===282}e.isEnumMember=va;function Na(an){return an.kind===288}e.isSourceFile=Na;function qr(an){return an.kind===289}e.isBundle=qr;function hi(an){return an.kind===290}e.isUnparsedSource=hi;function Ii(an){return an.kind===284}e.isUnparsedPrepend=Ii;function gi(an){switch(an.kind){case 285:case 286:return!0;default:return!1}}e.isUnparsedTextLike=gi;function ua(an){return gi(an)||an.kind===283||an.kind===287}e.isUnparsedNode=ua;function tn(an){return an.kind===292}e.isJSDocTypeExpression=tn;function vn(an){return an.kind===293}e.isJSDocAllType=vn;function Ln(an){return an.kind===294}e.isJSDocUnknownType=Ln;function Bn(an){return an.kind===295}e.isJSDocNullableType=Bn;function Pt(an){return an.kind===296}e.isJSDocNonNullableType=Pt;function rr(an){return an.kind===297}e.isJSDocOptionalType=rr;function cr(an){return an.kind===298}e.isJSDocFunctionType=cr;function Cr(an){return an.kind===299}e.isJSDocVariadicType=Cr;function Ya(an){return an.kind===301}e.isJSDoc=Ya;function Oa(an){return an.kind===306}e.isJSDocAuthorTag=Oa;function Ni(an){return an.kind===305}e.isJSDocAugmentsTag=Ni;function ii(an){return an.kind===307}e.isJSDocClassTag=ii;function _i(an){return an.kind===309}e.isJSDocEnumTag=_i;function Ye(an){return an.kind===312}e.isJSDocThisTag=Ye;function zn(an){return an.kind===310}e.isJSDocParameterTag=zn;function ge(an){return an.kind===311}e.isJSDocReturnTag=ge;function hn(an){return an.kind===313}e.isJSDocTypeTag=hn;function Jn(an){return an.kind===314}e.isJSDocTemplateTag=Jn;function ue(an){return an.kind===315}e.isJSDocTypedefTag=ue;function rn(an){return an.kind===316}e.isJSDocPropertyTag=rn;function Cn(an){return an.kind===316||an.kind===310}e.isJSDocPropertyLikeTag=Cn;function Zn(an){return an.kind===302}e.isJSDocTypeLiteral=Zn;function lt(an){return an.kind===308}e.isJSDocCallbackTag=lt;function Rt(an){return an.kind===303}e.isJSDocSignature=Rt}(ln||(ln={})),function(e){function o(De){return De.kind===317}e.isSyntaxList=o;function F(De){return qe(De.kind)}e.isNode=F;function qe(De){return De>=152}e.isNodeKind=qe;function Se(De){return De.kind>=0&&De.kind<=151}e.isToken=Se;function Fe(De){return De.hasOwnProperty("pos")&&De.hasOwnProperty("end")}e.isNodeArray=Fe;function He(De){return 8<=De&&De<=14}e.isLiteralKind=He;function ve(De){return He(De.kind)}e.isLiteralExpression=ve;function ie(De){return 14<=De&&De<=17}e.isTemplateLiteralKind=ie;function d(De){return ie(De.kind)}e.isTemplateLiteralToken=d;function H(De){var _n=De.kind;return _n===16||_n===17}e.isTemplateMiddleOrTemplateTail=H;function Pe(De){return e.isImportSpecifier(De)||e.isExportSpecifier(De)}e.isImportOrExportSpecifier=Pe;function I(De){return De.kind===10||ie(De.kind)}e.isStringTextContainingNode=I;function _e(De){return e.isIdentifier(De)&&(De.autoGenerateFlags&7)>0}e.isGeneratedIdentifier=_e;function re(De){switch(De){case 121:case 125:case 80:case 129:case 83:case 88:case 118:case 116:case 117:case 137:case 119:return!0}return!1}e.isModifierKind=re;function se(De){return!!(e.modifierToFlag(De)&92)}e.isParameterPropertyModifier=se;function w(De){return se(De)||De===119}e.isClassMemberModifier=w;function k(De){return re(De.kind)}e.isModifier=k;function P(De){var _n=De.kind;return _n===152||_n===75}e.isEntityName=P;function h(De){var _n=De.kind;return _n===75||_n===10||_n===8||_n===153}e.isPropertyName=h;function Y(De){var _n=De.kind;return _n===75||_n===188||_n===189}e.isBindingName=Y;function ne(De){return De&&fe(De.kind)}e.isFunctionLike=ne;function $(De){return De&&J(De.kind)}e.isFunctionLikeDeclaration=$;function J(De){switch(De){case 243:case 160:case 161:case 162:case 163:case 200:case 201:return!0;default:return!1}}function fe(De){switch(De){case 159:case 164:case 303:case 165:case 166:case 169:case 298:case 170:return!0;default:return J(De)}}e.isFunctionLikeKind=fe;function R(De){return e.isSourceFile(De)||e.isModuleBlock(De)||e.isBlock(De)&&ne(De.parent)}e.isFunctionOrModuleBlock=R;function K(De){var _n=De.kind;return _n===161||_n===158||_n===160||_n===162||_n===163||_n===166||_n===221}e.isClassElement=K;function z(De){return De&&(De.kind===244||De.kind===213)}e.isClassLike=z;function Ee(De){return De&&(De.kind===162||De.kind===163)}e.isAccessor=Ee;function B(De){switch(De.kind){case 160:case 162:case 163:return!0;default:return!1}}e.isMethodOrAccessor=B;function V(De){var _n=De.kind;return _n===165||_n===164||_n===157||_n===159||_n===166}e.isTypeElement=V;function m(De){return V(De)||K(De)}e.isClassOrTypeElement=m;function y(De){var _n=De.kind;return _n===279||_n===280||_n===281||_n===160||_n===162||_n===163}e.isObjectLiteralElementLike=y;function L(De){return e.isTypeNodeKind(De.kind)}e.isTypeNode=L;function C(De){switch(De.kind){case 169:case 170:return!0}return!1}e.isFunctionOrConstructorTypeNode=C;function _(De){if(De){var _n=De.kind;return _n===189||_n===188}return!1}e.isBindingPattern=_;function b(De){var _n=De.kind;return _n===191||_n===192}e.isAssignmentPattern=b;function D(De){var _n=De.kind;return _n===190||_n===214}e.isArrayBindingElement=D;function T(De){switch(De.kind){case 241:case 155:case 190:return!0}return!1}e.isDeclarationBindingElement=T;function Q(De){return N(De)||X(De)}e.isBindingOrAssignmentPattern=Q;function N(De){switch(De.kind){case 188:case 192:return!0}return!1}e.isObjectBindingOrAssignmentPattern=N;function X(De){switch(De.kind){case 189:case 191:return!0}return!1}e.isArrayBindingOrAssignmentPattern=X;function pe(De){var _n=De.kind;return _n===193||_n===152||_n===187}e.isPropertyAccessOrQualifiedNameOrImportTypeNode=pe;function S(De){var _n=De.kind;return _n===193||_n===152}e.isPropertyAccessOrQualifiedName=S;function v(De){switch(De.kind){case 266:case 265:case 195:case 196:case 197:case 156:return!0;default:return!1}}e.isCallLikeExpression=v;function U(De){return De.kind===195||De.kind===196}e.isCallOrNewExpression=U;function de(De){var _n=De.kind;return _n===210||_n===14}e.isTemplateLiteral=de;function Ce(De){return Z(e.skipPartiallyEmittedExpressions(De).kind)}e.isLeftHandSideExpression=Ce;function Z(De){switch(De){case 193:case 194:case 196:case 195:case 264:case 265:case 268:case 197:case 191:case 199:case 192:case 213:case 200:case 75:case 13:case 8:case 9:case 10:case 14:case 210:case 90:case 99:case 103:case 105:case 101:case 217:case 218:case 95:return!0;default:return!1}}function Re(De){return Ae(e.skipPartiallyEmittedExpressions(De).kind)}e.isUnaryExpression=Re;function Ae(De){switch(De){case 206:case 207:case 202:case 203:case 204:case 205:case 198:return!0;default:return Z(De)}}function We(De){switch(De.kind){case 207:return!0;case 206:return De.operator===45||De.operator===46;default:return!1}}e.isUnaryExpressionWithWrite=We;function be(De){return Ge(e.skipPartiallyEmittedExpressions(De).kind)}e.isExpression=be;function Ge(De){switch(De){case 209:case 211:case 201:case 208:case 212:case 216:case 214:case 320:case 319:return!0;default:return Ae(De)}}function x(De){var _n=De.kind;return _n===198||_n===216}e.isAssertionExpression=x;function j(De){return De.kind===319}e.isPartiallyEmittedExpression=j;function Oe(De){return De.kind===318}e.isNotEmittedStatement=Oe;function a(De){return De.kind===323}e.isSyntheticReference=a;function en(De){return Oe(De)||j(De)}e.isNotEmittedOrPartiallyEmittedNode=en;function Pn(De,_n){switch(De.kind){case 229:case 230:case 231:case 227:case 228:return!0;case 237:return _n&&Pn(De.statement,_n)}return!1}e.isIterationStatement=Pn;function Xn(De){return e.isExportAssignment(De)||e.isExportDeclaration(De)}e.isScopeMarker=Xn;function ae(De){return e.some(De,Xn)}e.hasScopeMarker=ae;function ce(De){return!e.isAnyImportOrReExport(De)&&!e.isExportAssignment(De)&&!e.hasModifier(De,1)&&!e.isAmbientModule(De)}e.needsScopeMarker=ce;function Le(De){return e.isAnyImportOrReExport(De)||e.isExportAssignment(De)||e.hasModifier(De,1)}e.isExternalModuleIndicator=Le;function Je(De){return De.kind===230||De.kind===231}e.isForInOrOfStatement=Je;function Ze(De){return e.isBlock(De)||be(De)}e.isConciseBody=Ze;function Ue(De){return e.isBlock(De)}e.isFunctionBody=Ue;function cn(De){return e.isVariableDeclarationList(De)||be(De)}e.isForInitializer=cn;function $e(De){var _n=De.kind;return _n===249||_n===248||_n===75}e.isModuleBody=$e;function sn(De){var _n=De.kind;return _n===249||_n===248}e.isNamespaceBody=sn;function he(De){var _n=De.kind;return _n===75||_n===248}e.isJSDocNamespaceBody=he;function ke(De){var _n=De.kind;return _n===256||_n===255}e.isNamedImportBindings=ke;function G(De){return De.kind===248||De.kind===247}e.isModuleOrEnumDeclaration=G;function c(De){return De===201||De===190||De===244||De===213||De===161||De===247||De===282||De===261||De===243||De===200||De===162||De===254||De===252||De===257||De===245||De===271||De===160||De===159||De===248||De===251||De===255||De===155||De===279||De===158||De===157||De===163||De===280||De===246||De===154||De===241||De===315||De===308||De===316}function O(De){return De===243||De===262||De===244||De===245||De===246||De===247||De===248||De===253||De===252||De===259||De===258||De===251}function ee(De){return De===233||De===232||De===240||De===227||De===225||De===223||De===230||De===231||De===229||De===226||De===237||De===234||De===236||De===238||De===239||De===224||De===228||De===235||De===318||De===322||De===321}function Te(De){return De.kind===154?De.parent&&De.parent.kind!==314||e.isInJSFile(De):c(De.kind)}e.isDeclaration=Te;function Ne(De){return O(De.kind)}e.isDeclarationStatement=Ne;function ze(De){return ee(De.kind)}e.isStatementButNotDeclaration=ze;function bn(De){var _n=De.kind;return ee(_n)||O(_n)||Sn(De)}e.isStatement=bn;function Sn(De){return De.kind!==222||De.parent!==void 0&&(De.parent.kind===239||De.parent.kind===278)?!1:!e.isFunctionBlock(De)}function Kn(De){var _n=De.kind;return _n===263||_n===152||_n===75}e.isModuleReference=Kn;function Xe(De){var _n=De.kind;return _n===103||_n===75||_n===193}e.isJsxTagNameExpression=Xe;function pn(De){var _n=De.kind;return _n===264||_n===274||_n===265||_n===11||_n===268}e.isJsxChild=pn;function le(De){var _n=De.kind;return _n===271||_n===273}e.isJsxAttributeLike=le;function oe(De){var _n=De.kind;return _n===10||_n===274}e.isStringLiteralOrJsxExpression=oe;function kn(De){var _n=De.kind;return _n===266||_n===265}e.isJsxOpeningLikeElement=kn;function yn(De){var _n=De.kind;return _n===275||_n===276}e.isCaseOrDefaultClause=yn;function ye(De){return De.kind>=292&&De.kind<=316}e.isJSDocNode=ye;function mn(De){return De.kind===301||un(De)||e.isJSDocTypeLiteral(De)||e.isJSDocSignature(De)}e.isJSDocCommentContainingNode=mn;function un(De){return De.kind>=304&&De.kind<=316}e.isJSDocTag=un;function Mn(De){return De.kind===163}e.isSetAccessor=Mn;function tt(De){return De.kind===162}e.isGetAccessor=tt;function Vn(De){var _n=De.jsDoc;return!!_n&&_n.length>0}e.hasJSDocNodes=Vn;function ut(De){return!!De.type}e.hasType=ut;function dt(De){return!!De.initializer}e.hasInitializer=dt;function ot(De){return dt(De)&&!e.isForStatement(De)&&!e.isForInStatement(De)&&!e.isForOfStatement(De)&&!e.isJsxAttribute(De)}e.hasOnlyExpressionInitializer=ot;function ct(De){return De.kind===271||De.kind===273||y(De)}e.isObjectLiteralElement=ct;function wt(De){return De.kind===168||De.kind===215}e.isTypeReferenceType=wt;var st=1073741823;function qn(De){for(var _n=st,_t=0,It=De;_t<It.length;_t++){var Ht=It[_t];if(!Ht.length)continue;for(var nr=0;nr<Ht.length&&nr<_n&&e.isWhiteSpaceLike(Ht.charCodeAt(nr));nr++);if(nr<_n&&(_n=nr),_n===0)return 0}return _n===st?void 0:_n}e.guessIndentation=qn;function Ie(De){return De.kind===10||De.kind===14}e.isStringLiteralLike=Ie}(ln||(ln={})),function(e){function o(T){return T.kind===256||T.kind===260}e.isNamedImportsOrExports=o;function F(T,Q){this.flags=T,this.escapedName=Q,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function qe(T,Q){this.flags=Q,e.Debug.isDebugging&&(this.checker=T)}function Se(T,Q){this.flags=Q,e.Debug.isDebugging&&(this.checker=T)}function Fe(T,Q,N){this.pos=Q,this.end=N,this.kind=T,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function He(T,Q,N){this.fileName=T,this.text=Q,this.skipTrivia=N||function(X){return X}}e.objectAllocator={getNodeConstructor:function(){return Fe},getTokenConstructor:function(){return Fe},getIdentifierConstructor:function(){return Fe},getSourceFileConstructor:function(){return Fe},getSymbolConstructor:function(){return F},getTypeConstructor:function(){return qe},getSignatureConstructor:function(){return Se},getSourceMapSourceConstructor:function(){return He}};function ve(T,Q,N){return N===void 0&&(N=0),T.replace(/{(\d+)}/g,function(X,pe){return""+e.Debug.assertDefined(Q[+pe+N])})}e.formatStringFromArgs=ve;function ie(T){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[T.key]||T.message}e.getLocaleSpecificMessage=ie;function d(T,Q,N,X){e.Debug.assertGreaterThanOrEqual(Q,0),e.Debug.assertGreaterThanOrEqual(N,0),T&&(e.Debug.assertLessThanOrEqual(Q,T.text.length),e.Debug.assertLessThanOrEqual(Q+N,T.text.length));var pe=ie(X);return arguments.length>4&&(pe=ve(pe,arguments,4)),{file:T,start:Q,length:N,messageText:pe,category:X.category,code:X.code,reportsUnnecessary:X.reportsUnnecessary}}e.createFileDiagnostic=d;function H(T,Q){var N=ie(Q);return arguments.length>2&&(N=ve(N,arguments,2)),N}e.formatMessage=H;function Pe(T){var Q=ie(T);return arguments.length>1&&(Q=ve(Q,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:Q,category:T.category,code:T.code,reportsUnnecessary:T.reportsUnnecessary}}e.createCompilerDiagnostic=Pe;function I(T){return{file:void 0,start:void 0,length:void 0,code:T.code,category:T.category,messageText:T.next?T:T.messageText}}e.createCompilerDiagnosticFromMessageChain=I;function _e(T,Q){var N=ie(Q);return arguments.length>2&&(N=ve(N,arguments,2)),{messageText:N,category:Q.category,code:Q.code,next:T===void 0||Array.isArray(T)?T:[T]}}e.chainDiagnosticMessages=_e;function re(T,Q){for(var N=T;N.next;)N=N.next[0];N.next=[Q]}e.concatenateDiagnosticMessageChains=re;function se(T){return T.file?T.file.path:void 0}function w(T,Q){return k(T,Q)||P(T,Q)||0}e.compareDiagnostics=w;function k(T,Q){return e.compareStringsCaseSensitive(se(T),se(Q))||e.compareValues(T.start,Q.start)||e.compareValues(T.length,Q.length)||e.compareValues(T.code,Q.code)||h(T.messageText,Q.messageText)||0}e.compareDiagnosticsSkipRelatedInformation=k;function P(T,Q){return!T.relatedInformation&&!Q.relatedInformation?0:T.relatedInformation&&Q.relatedInformation?e.compareValues(T.relatedInformation.length,Q.relatedInformation.length)||e.forEach(T.relatedInformation,function(N,X){var pe=Q.relatedInformation[X];return w(N,pe)})||0:T.relatedInformation?-1:1}function h(T,Q){if(typeof T=="string"&&typeof Q=="string")return e.compareStringsCaseSensitive(T,Q);if(typeof T=="string")return-1;if(typeof Q=="string")return 1;var N=e.compareStringsCaseSensitive(T.messageText,Q.messageText);if(N)return N;if(!T.next&&!Q.next)return 0;if(!T.next)return-1;if(!Q.next)return 1;for(var X=Math.min(T.next.length,Q.next.length),pe=0;pe<X;pe++)if(N=h(T.next[pe],Q.next[pe]),N)return N;return T.next.length<Q.next.length?-1:T.next.length>Q.next.length?1:0}function Y(T){return T.target||0}e.getEmitScriptTarget=Y;function ne(T){return typeof T.module=="number"?T.module:Y(T)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}e.getEmitModuleKind=ne;function $(T){var Q=T.moduleResolution;return Q===void 0&&(Q=ne(T)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),Q}e.getEmitModuleResolutionKind=$;function J(T){switch(ne(T)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:return!0;default:return!1}}e.hasJsonModuleEmitEnabled=J;function fe(T){return T.allowUnreachableCode===!1}e.unreachableCodeIsError=fe;function R(T){return T.allowUnusedLabels===!1}e.unusedLabelIsError=R;function K(T){return!!(Ee(T)&&T.declarationMap)}e.getAreDeclarationMapsEnabled=K;function z(T){var Q=ne(T);return T.allowSyntheticDefaultImports!==void 0?T.allowSyntheticDefaultImports:T.esModuleInterop||Q===e.ModuleKind.System}e.getAllowSyntheticDefaultImports=z;function Ee(T){return!!(T.declaration||T.composite)}e.getEmitDeclarations=Ee;function B(T){return!!(T.incremental||T.composite)}e.isIncrementalCompilation=B;function V(T,Q){return T[Q]===void 0?!!T.strict:!!T[Q]}e.getStrictOptionValue=V;function m(T,Q){return Q!==T&&e.semanticDiagnosticsOptionDeclarations.some(function(N){return!e.isJsonEqual(L(Q,N),L(T,N))})}e.compilerOptionsAffectSemanticDiagnostics=m;function y(T,Q){return Q!==T&&e.affectsEmitOptionDeclarations.some(function(N){return!e.isJsonEqual(L(Q,N),L(T,N))})}e.compilerOptionsAffectEmit=y;function L(T,Q){return Q.strictFlag?V(T,Q.name):T[Q.name]}e.getCompilerOptionValue=L;function C(T){for(var Q=!1,N=0;N<T.length;N++)if(T.charCodeAt(N)===42)if(!Q)Q=!0;else return!1;return!0}e.hasZeroOrOneAsteriskCharacter=C;function _(T,Q,N){for(var X=e.createMap(),pe=e.flatten(e.mapDefined(T,function(We){return We.resolvedModules&&e.compact(e.arrayFrom(e.mapIterator(We.resolvedModules.values(),function(be){return be&&be.originalPath&&be.resolvedFileName!==be.originalPath?[be.resolvedFileName,be.originalPath]:void 0})))})),S=0,v=pe;S<v.length;S++){var U=v[S],de=U[0],Ce=U[1],Z=b(de,Ce,N,Q),Re=Z[0],Ae=Z[1];X.set(Ae,Re)}return X}e.discoverProbableSymlinks=_;function b(T,Q,N,X){for(var pe=e.getPathComponents(e.toPath(T,N,X)),S=e.getPathComponents(e.toPath(Q,N,X));!D(pe[pe.length-2],X)&&!D(S[S.length-2],X)&&X(pe[pe.length-1])===X(S[S.length-1]);)pe.pop(),S.pop();return[e.getPathFromPathComponents(pe),e.getPathFromPathComponents(S)]}function D(T,Q){return Q(T)==="node_modules"||e.startsWith(T,"@")}}(ln||(ln={})),function(e){function o(Le){return e.isAnyDirectorySeparator(Le.charCodeAt(0))?Le.slice(1):void 0}function F(Le,Je,Ze){var Ue=e.tryRemovePrefix(Le,Je,Ze);return Ue===void 0?void 0:o(Ue)}e.tryRemoveDirectoryPrefix=F;var qe=/[^\w\s\/]/g;function Se(Le){return Le.replace(qe,Fe)}e.regExpEscape=Se;function Fe(Le){return"\\"+Le}var He=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var ve="(?!("+e.commonPackageFolders.join("|")+")(/|$))",ie={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+ve+"[^/.][^/]*)*?",replaceWildcardCharacter:function(Je){return w(Je,ie.singleAsteriskRegexFragment)}},d={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+ve+"[^/.][^/]*)*?",replaceWildcardCharacter:function(Je){return w(Je,d.singleAsteriskRegexFragment)}},H={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(Je){return w(Je,H.singleAsteriskRegexFragment)}},Pe={files:ie,directories:d,exclude:H};function I(Le,Je,Ze){var Ue=_e(Le,Je,Ze);if(!Ue||!Ue.length)return;var cn=Ue.map(function(sn){return"("+sn+")"}).join("|"),$e=Ze==="exclude"?"($|/)":"$";return"^("+cn+")"+$e}e.getRegularExpressionForWildcard=I;function _e(Le,Je,Ze){return Le===void 0||Le.length===0?void 0:e.flatMap(Le,function(Ue){return Ue&&se(Ue,Je,Ze,Pe[Ze])})}e.getRegularExpressionsForWildcards=_e;function re(Le){return!/[.*?]/.test(Le)}e.isImplicitGlob=re;function se(Le,Je,Ze,Ue){var cn=Ue.singleAsteriskRegexFragment,$e=Ue.doubleAsteriskRegexFragment,sn=Ue.replaceWildcardCharacter,he="",ke=!1,G=e.getNormalizedPathComponents(Le,Je),c=e.last(G);if(Ze!=="exclude"&&c==="**")return;G[0]=e.removeTrailingDirectorySeparator(G[0]),re(c)&&G.push("**","*");for(var O=0,ee=0,Te=G;ee<Te.length;ee++){var Ne=Te[ee];if(Ne==="**")he+=$e;else if(Ze==="directories"&&(he+="(",O++),ke&&(he+=e.directorySeparator),Ze!=="exclude"){var ze="";Ne.charCodeAt(0)===42?(ze+="([^./]"+cn+")?",Ne=Ne.substr(1)):Ne.charCodeAt(0)===63&&(ze+="[^./]",Ne=Ne.substr(1)),ze+=Ne.replace(qe,sn),ze!==Ne&&(he+=ve),he+=ze}else he+=Ne.replace(qe,sn);ke=!0}for(;O>0;)he+=")?",O--;return he}function w(Le,Je){return Le==="*"?Je:Le==="?"?"[^/]":"\\"+Le}function k(Le,Je,Ze,Ue,cn){Le=e.normalizePath(Le),cn=e.normalizePath(cn);var $e=e.combinePaths(cn,Le);return{includeFilePatterns:e.map(_e(Ze,$e,"files"),function(sn){return"^"+sn+"$"}),includeFilePattern:I(Ze,$e,"files"),includeDirectoryPattern:I(Ze,$e,"directories"),excludePattern:I(Je,$e,"exclude"),basePaths:Y(Le,Ze,Ue)}}e.getFileMatcherPatterns=k;function P(Le,Je){return new RegExp(Le,Je?"":"i")}e.getRegexFromPattern=P;function h(Le,Je,Ze,Ue,cn,$e,sn,he,ke){Le=e.normalizePath(Le),$e=e.normalizePath($e);for(var G=k(Le,Ze,Ue,cn,$e),c=G.includeFilePatterns&&G.includeFilePatterns.map(function(pn){return P(pn,cn)}),O=G.includeDirectoryPattern&&P(G.includeDirectoryPattern,cn),ee=G.excludePattern&&P(G.excludePattern,cn),Te=c?c.map(function(){return[]}):[[]],Ne=e.createMap(),ze=e.createGetCanonicalFileName(cn),bn=0,Sn=G.basePaths;bn<Sn.length;bn++){var Kn=Sn[bn];Xe(Kn,e.combinePaths($e,Kn),sn)}return e.flatten(Te);function Xe(pn,le,oe){var kn=ze(ke(le));if(Ne.has(kn))return;Ne.set(kn,!0);for(var yn=he(pn),ye=yn.files,mn=yn.directories,un=function(st){var qn=e.combinePaths(pn,st),Ie=e.combinePaths(le,st);if(Je&&!e.fileExtensionIsOneOf(qn,Je))return"continue";if(ee&&ee.test(Ie))return"continue";if(!c)Te[0].push(qn);else{var De=e.findIndex(c,function(_n){return _n.test(Ie)});De!==-1&&Te[De].push(qn)}},Mn=0,tt=e.sort(ye,e.compareStringsCaseSensitive);Mn<tt.length;Mn++){var Vn=tt[Mn];un(Vn)}if(oe!==void 0&&(oe--,oe===0))return;for(var ut=0,dt=e.sort(mn,e.compareStringsCaseSensitive);ut<dt.length;ut++){var Vn=dt[ut],ot=e.combinePaths(pn,Vn),ct=e.combinePaths(le,Vn);(!O||O.test(ct))&&(!ee||!ee.test(ct))&&Xe(ot,ct,oe)}}}e.matchFiles=h;function Y(Le,Je,Ze){var Ue=[Le];if(Je){for(var cn=[],$e=0,sn=Je;$e<sn.length;$e++){var he=sn[$e],ke=e.isRootedDiskPath(he)?he:e.normalizePath(e.combinePaths(Le,he));cn.push(ne(ke))}cn.sort(e.getStringComparer(!Ze));for(var G=function(Ne){e.every(Ue,function(ze){return!e.containsPath(ze,Ne,Le,!Ze)})&&Ue.push(Ne)},c=0,O=cn;c<O.length;c++){var ee=O[c];G(ee)}}return Ue}function ne(Le){var Je=e.indexOfAnyCharCode(Le,He);return Je<0?e.hasExtension(Le)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(Le)):Le:Le.substring(0,Le.lastIndexOf(e.directorySeparator,Je))}function $(Le,Je){return Je||J(Le)||3}e.ensureScriptKind=$;function J(Le){var Je=Le.substr(Le.lastIndexOf("."));switch(Je.toLowerCase()){case".js":return 1;case".jsx":return 2;case".ts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getScriptKindFromFileName=J,e.supportedTSExtensions=[".ts",".tsx",".d.ts"],e.supportedTSExtensionsWithJson=[".ts",".tsx",".d.ts",".json"],e.supportedTSExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],e.supportedJSExtensions=[".js",".jsx"],e.supportedJSAndJsonExtensions=[".js",".jsx",".json"];var fe=Or(e.supportedTSExtensions,e.supportedJSExtensions),R=Or(e.supportedTSExtensions,e.supportedJSExtensions,[".json"]);function K(Le,Je){var Ze=Le&&Le.allowJs;if(!Je||Je.length===0)return Ze?fe:e.supportedTSExtensions;var Ue=Or(Ze?fe:e.supportedTSExtensions,e.mapDefined(Je,function(cn){return cn.scriptKind===7||Ze&&Ee(cn.scriptKind)?cn.extension:void 0}));return e.deduplicate(Ue,e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}e.getSupportedExtensions=K;function z(Le,Je){return!Le||!Le.resolveJsonModule?Je:Je===fe?R:Je===e.supportedTSExtensions?e.supportedTSExtensionsWithJson:Or(Je,[".json"])}e.getSuppoertedExtensionsWithJsonIfResolveJsonModule=z;function Ee(Le){return Le===1||Le===2}function B(Le){return e.some(e.supportedJSExtensions,function(Je){return e.fileExtensionIs(Le,Je)})}e.hasJSFileExtension=B;function V(Le){return e.supportedJSAndJsonExtensions.some(function(Je){return e.fileExtensionIs(Le,Je)})}e.hasJSOrJsonFileExtension=V;function m(Le){return e.some(e.supportedTSExtensions,function(Je){return e.fileExtensionIs(Le,Je)})}e.hasTSFileExtension=m;function y(Le,Je,Ze){if(!Le)return!1;for(var Ue=K(Je,Ze),cn=0,$e=z(Je,Ue);cn<$e.length;cn++){var sn=$e[cn];if(e.fileExtensionIs(Le,sn))return!0}return!1}e.isSupportedSourceFileName=y;var L;(function(Le){Le[Le.TypeScriptFiles=0]="TypeScriptFiles",Le[Le.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",Le[Le.Highest=0]="Highest",Le[Le.Lowest=2]="Lowest"})(L=e.ExtensionPriority||(e.ExtensionPriority={}));function C(Le,Je){for(var Ze=Je.length-1;Ze>=0;Ze--)if(e.fileExtensionIs(Le,Je[Ze]))return _(Ze,Je);return 0}e.getExtensionPriority=C;function _(Le,Je){return Le<2?0:Le<Je.length?2:Je.length}e.adjustExtensionPriority=_;function b(Le,Je){return Le<2?2:Je.length}e.getNextLowestExtensionPriority=b;var D=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function T(Le){for(var Je=0,Ze=D;Je<Ze.length;Je++){var Ue=Ze[Je],cn=Q(Le,Ue);if(cn!==void 0)return cn}return Le}e.removeFileExtension=T;function Q(Le,Je){return e.fileExtensionIs(Le,Je)?N(Le,Je):void 0}e.tryRemoveExtension=Q;function N(Le,Je){return Le.substring(0,Le.length-Je.length)}e.removeExtension=N;function X(Le,Je){return e.changeAnyExtension(Le,Je,D,!1)}e.changeExtension=X;function pe(Le){e.Debug.assert(e.hasZeroOrOneAsteriskCharacter(Le));var Je=Le.indexOf("*");return Je===-1?void 0:{prefix:Le.substr(0,Je),suffix:Le.substr(Je+1)}}e.tryParsePattern=pe;function S(Le){return!(Le>=0)}e.positionIsSynthesized=S;function v(Le){return Le===".ts"||Le===".tsx"||Le===".d.ts"}e.extensionIsTS=v;function U(Le){return v(Le)||Le===".json"}e.resolutionExtensionIsTSOrJson=U;function de(Le){var Je=Z(Le);return Je!==void 0?Je:e.Debug.fail("File "+Le+" has unknown extension.")}e.extensionFromPath=de;function Ce(Le){return Z(Le)!==void 0}e.isAnySupportedFileExtension=Ce;function Z(Le){return e.find(D,function(Je){return e.fileExtensionIs(Le,Je)})}e.tryGetExtensionFromPath=Z;function Re(Le,Je){return Le.checkJsDirective?Le.checkJsDirective.enabled:Je.checkJs}e.isCheckJsEnabledForFile=Re,e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray};function Ae(Le,Je){for(var Ze=[],Ue=0,cn=Le;Ue<cn.length;Ue++){var $e=cn[Ue];if(!e.hasZeroOrOneAsteriskCharacter($e))continue;var sn=pe($e);if(sn)Ze.push(sn);else if($e===Je)return $e}return e.findBestPatternMatch(Ze,function(he){return he},Je)}e.matchPatternOrExact=Ae;function We(Le,Je){var Ze=Le.indexOf(Je);return e.Debug.assert(Ze!==-1),Le.slice(Ze)}e.sliceAfter=We;function be(Le){for(var Je,Ze=[],Ue=1;Ue<arguments.length;Ue++)Ze[Ue-1]=arguments[Ue];return Le.relatedInformation||(Le.relatedInformation=[]),(Je=Le.relatedInformation).push.apply(Je,Ze),Le}e.addRelatedInfo=be;function Ge(Le,Je){e.Debug.assert(Le.length!==0);for(var Ze=Je(Le[0]),Ue=Ze,cn=1;cn<Le.length;cn++){var $e=Je(Le[cn]);$e<Ze?Ze=$e:$e>Ue&&(Ue=$e)}return{min:Ze,max:Ue}}e.minAndMax=Ge;var x=function(){function Le(){this.map=e.createMap()}return Le.prototype.add=function(Je){this.map.set(String(e.getNodeId(Je)),Je)},Le.prototype.tryAdd=function(Je){return this.has(Je)?!1:(this.add(Je),!0)},Le.prototype.has=function(Je){return this.map.has(String(e.getNodeId(Je)))},Le.prototype.forEach=function(Je){this.map.forEach(Je)},Le.prototype.some=function(Je){return e.forEachEntry(this.map,Je)||!1},Le}();e.NodeSet=x;var j=function(){function Le(){this.map=e.createMap()}return Le.prototype.get=function(Je){var Ze=this.map.get(String(e.getNodeId(Je)));return Ze&&Ze.value},Le.prototype.getOrUpdate=function(Je,Ze){var Ue=this.get(Je);if(Ue)return Ue;var cn=Ze();return this.set(Je,cn),cn},Le.prototype.set=function(Je,Ze){this.map.set(String(e.getNodeId(Je)),{node:Je,value:Ze})},Le.prototype.has=function(Je){return this.map.has(String(e.getNodeId(Je)))},Le.prototype.forEach=function(Je){this.map.forEach(function(Ze){var Ue=Ze.node,cn=Ze.value;return Je(cn,Ue)})},Le}();e.NodeMap=j;function Oe(Le){return{pos:e.getTokenPosOfNode(Le),end:Le.end}}e.rangeOfNode=Oe;function a(Le){return{pos:Le.pos-1,end:Le.end+1}}e.rangeOfTypeParameters=a;function en(Le,Je,Ze){return Je.skipLibCheck&&Le.isDeclarationFile||Je.skipDefaultLibCheck&&Le.hasNoDefaultLib||Ze.isSourceOfProjectReferenceRedirect(Le.fileName)}e.skipTypeChecking=en;function Pn(Le,Je){return Le===Je||typeof Le=="object"&&Le!==null&&typeof Je=="object"&&Je!==null&&e.equalOwnProperties(Le,Je,Pn)}e.isJsonEqual=Pn;function Xn(Le,Je,Ze){var Ue=Le.get(Je);if(Ue===void 0){var cn=Ze();return Le.set(Je,cn),cn}else return Ue}e.getOrUpdate=Xn;function ae(Le){var Je;switch(Le.charCodeAt(1)){case 98:case 66:Je=1;break;case 111:case 79:Je=3;break;case 120:case 88:Je=4;break;default:for(var Ze=Le.length-1,Ue=0;Le.charCodeAt(Ue)===48;)Ue++;return Le.slice(Ue,Ze)||"0"}for(var cn=2,$e=Le.length-1,sn=($e-cn)*Je,he=new Uint16Array((sn>>>4)+(sn&15?1:0)),ke=$e-1,G=0;ke>=cn;ke--,G+=Je){var c=G>>>4,O=Le.charCodeAt(ke),ee=O<=57?O-48:10+O-(O<=70?65:97),Te=ee<<(G&15);he[c]|=Te;var Ne=Te>>>16;Ne&&(he[c+1]|=Ne)}for(var ze="",bn=he.length-1,Sn=!0;Sn;){var Kn=0;Sn=!1;for(var c=bn;c>=0;c--){var Xe=Kn<<16|he[c],pn=Xe/10|0;he[c]=pn,Kn=Xe-pn*10,pn&&!Sn&&(bn=c,Sn=!0)}ze=Kn+ze}return ze}e.parsePseudoBigInt=ae;function ce(Le){var Je=Le.negative,Ze=Le.base10Value;return(Je&&Ze!=="0"?"-":"")+Ze}e.pseudoBigIntToString=ce}(ln||(ln={}));var ln;(function(e){var o;(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"})(o||(o={}));var F,qe,Se,Fe;function He(m,y,L){return m===288?new(Fe||(Fe=e.objectAllocator.getSourceFileConstructor()))(m,y,L):m===75?new(Se||(Se=e.objectAllocator.getIdentifierConstructor()))(m,y,L):e.isNodeKind(m)?new(F||(F=e.objectAllocator.getNodeConstructor()))(m,y,L):new(qe||(qe=e.objectAllocator.getTokenConstructor()))(m,y,L)}e.createNode=He;function ve(m,y){return y&&m(y)}function ie(m,y,L){if(L){if(y)return y(L);for(var C=0,_=L;C<_.length;C++){var b=_[C],D=m(b);if(D)return D}}}function d(m,y){return m.charCodeAt(y+1)===42&&m.charCodeAt(y+2)===42&&m.charCodeAt(y+3)!==47}e.isJSDocLikeText=d;function H(m,y,L){if(!m||m.kind<=151)return;switch(m.kind){case 152:return ve(y,m.left)||ve(y,m.right);case 154:return ve(y,m.name)||ve(y,m.constraint)||ve(y,m.default)||ve(y,m.expression);case 280:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.name)||ve(y,m.questionToken)||ve(y,m.exclamationToken)||ve(y,m.equalsToken)||ve(y,m.objectAssignmentInitializer);case 281:return ve(y,m.expression);case 155:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.dotDotDotToken)||ve(y,m.name)||ve(y,m.questionToken)||ve(y,m.type)||ve(y,m.initializer);case 158:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.name)||ve(y,m.questionToken)||ve(y,m.exclamationToken)||ve(y,m.type)||ve(y,m.initializer);case 157:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.name)||ve(y,m.questionToken)||ve(y,m.type)||ve(y,m.initializer);case 279:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.name)||ve(y,m.questionToken)||ve(y,m.initializer);case 241:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.name)||ve(y,m.exclamationToken)||ve(y,m.type)||ve(y,m.initializer);case 190:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.dotDotDotToken)||ve(y,m.propertyName)||ve(y,m.name)||ve(y,m.initializer);case 169:case 170:case 164:case 165:case 166:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ie(y,L,m.typeParameters)||ie(y,L,m.parameters)||ve(y,m.type);case 160:case 159:case 161:case 162:case 163:case 200:case 243:case 201:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.asteriskToken)||ve(y,m.name)||ve(y,m.questionToken)||ve(y,m.exclamationToken)||ie(y,L,m.typeParameters)||ie(y,L,m.parameters)||ve(y,m.type)||ve(y,m.equalsGreaterThanToken)||ve(y,m.body);case 168:return ve(y,m.typeName)||ie(y,L,m.typeArguments);case 167:return ve(y,m.assertsModifier)||ve(y,m.parameterName)||ve(y,m.type);case 171:return ve(y,m.exprName);case 172:return ie(y,L,m.members);case 173:return ve(y,m.elementType);case 174:return ie(y,L,m.elementTypes);case 177:case 178:return ie(y,L,m.types);case 179:return ve(y,m.checkType)||ve(y,m.extendsType)||ve(y,m.trueType)||ve(y,m.falseType);case 180:return ve(y,m.typeParameter);case 187:return ve(y,m.argument)||ve(y,m.qualifier)||ie(y,L,m.typeArguments);case 181:case 183:return ve(y,m.type);case 184:return ve(y,m.objectType)||ve(y,m.indexType);case 185:return ve(y,m.readonlyToken)||ve(y,m.typeParameter)||ve(y,m.questionToken)||ve(y,m.type);case 186:return ve(y,m.literal);case 188:case 189:return ie(y,L,m.elements);case 191:return ie(y,L,m.elements);case 192:return ie(y,L,m.properties);case 193:return ve(y,m.expression)||ve(y,m.questionDotToken)||ve(y,m.name);case 194:return ve(y,m.expression)||ve(y,m.questionDotToken)||ve(y,m.argumentExpression);case 195:case 196:return ve(y,m.expression)||ve(y,m.questionDotToken)||ie(y,L,m.typeArguments)||ie(y,L,m.arguments);case 197:return ve(y,m.tag)||ve(y,m.questionDotToken)||ie(y,L,m.typeArguments)||ve(y,m.template);case 198:return ve(y,m.type)||ve(y,m.expression);case 199:return ve(y,m.expression);case 202:return ve(y,m.expression);case 203:return ve(y,m.expression);case 204:return ve(y,m.expression);case 206:return ve(y,m.operand);case 211:return ve(y,m.asteriskToken)||ve(y,m.expression);case 205:return ve(y,m.expression);case 207:return ve(y,m.operand);case 208:return ve(y,m.left)||ve(y,m.operatorToken)||ve(y,m.right);case 216:return ve(y,m.expression)||ve(y,m.type);case 217:return ve(y,m.expression);case 218:return ve(y,m.name);case 209:return ve(y,m.condition)||ve(y,m.questionToken)||ve(y,m.whenTrue)||ve(y,m.colonToken)||ve(y,m.whenFalse);case 212:return ve(y,m.expression);case 222:case 249:return ie(y,L,m.statements);case 288:return ie(y,L,m.statements)||ve(y,m.endOfFileToken);case 224:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.declarationList);case 242:return ie(y,L,m.declarations);case 225:return ve(y,m.expression);case 226:return ve(y,m.expression)||ve(y,m.thenStatement)||ve(y,m.elseStatement);case 227:return ve(y,m.statement)||ve(y,m.expression);case 228:return ve(y,m.expression)||ve(y,m.statement);case 229:return ve(y,m.initializer)||ve(y,m.condition)||ve(y,m.incrementor)||ve(y,m.statement);case 230:return ve(y,m.initializer)||ve(y,m.expression)||ve(y,m.statement);case 231:return ve(y,m.awaitModifier)||ve(y,m.initializer)||ve(y,m.expression)||ve(y,m.statement);case 232:case 233:return ve(y,m.label);case 234:return ve(y,m.expression);case 235:return ve(y,m.expression)||ve(y,m.statement);case 236:return ve(y,m.expression)||ve(y,m.caseBlock);case 250:return ie(y,L,m.clauses);case 275:return ve(y,m.expression)||ie(y,L,m.statements);case 276:return ie(y,L,m.statements);case 237:return ve(y,m.label)||ve(y,m.statement);case 238:return ve(y,m.expression);case 239:return ve(y,m.tryBlock)||ve(y,m.catchClause)||ve(y,m.finallyBlock);case 278:return ve(y,m.variableDeclaration)||ve(y,m.block);case 156:return ve(y,m.expression);case 244:case 213:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.name)||ie(y,L,m.typeParameters)||ie(y,L,m.heritageClauses)||ie(y,L,m.members);case 245:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.name)||ie(y,L,m.typeParameters)||ie(y,L,m.heritageClauses)||ie(y,L,m.members);case 246:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.name)||ie(y,L,m.typeParameters)||ve(y,m.type);case 247:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.name)||ie(y,L,m.members);case 282:return ve(y,m.name)||ve(y,m.initializer);case 248:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.name)||ve(y,m.body);case 252:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.name)||ve(y,m.moduleReference);case 253:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.importClause)||ve(y,m.moduleSpecifier);case 254:return ve(y,m.name)||ve(y,m.namedBindings);case 251:return ve(y,m.name);case 255:return ve(y,m.name);case 256:case 260:return ie(y,L,m.elements);case 259:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.exportClause)||ve(y,m.moduleSpecifier);case 257:case 261:return ve(y,m.propertyName)||ve(y,m.name);case 258:return ie(y,L,m.decorators)||ie(y,L,m.modifiers)||ve(y,m.expression);case 210:return ve(y,m.head)||ie(y,L,m.templateSpans);case 220:return ve(y,m.expression)||ve(y,m.literal);case 153:return ve(y,m.expression);case 277:return ie(y,L,m.types);case 215:return ve(y,m.expression)||ie(y,L,m.typeArguments);case 263:return ve(y,m.expression);case 262:return ie(y,L,m.decorators);case 320:return ie(y,L,m.elements);case 264:return ve(y,m.openingElement)||ie(y,L,m.children)||ve(y,m.closingElement);case 268:return ve(y,m.openingFragment)||ie(y,L,m.children)||ve(y,m.closingFragment);case 265:case 266:return ve(y,m.tagName)||ie(y,L,m.typeArguments)||ve(y,m.attributes);case 272:return ie(y,L,m.properties);case 271:return ve(y,m.name)||ve(y,m.initializer);case 273:return ve(y,m.expression);case 274:return ve(y,m.dotDotDotToken)||ve(y,m.expression);case 267:return ve(y,m.tagName);case 175:case 176:case 292:case 296:case 295:case 297:case 299:return ve(y,m.type);case 298:return ie(y,L,m.parameters)||ve(y,m.type);case 301:return ie(y,L,m.tags);case 310:case 316:return ve(y,m.tagName)||(m.isNameFirst?ve(y,m.name)||ve(y,m.typeExpression):ve(y,m.typeExpression)||ve(y,m.name));case 306:return ve(y,m.tagName);case 305:return ve(y,m.tagName)||ve(y,m.class);case 314:return ve(y,m.tagName)||ve(y,m.constraint)||ie(y,L,m.typeParameters);case 315:return ve(y,m.tagName)||(m.typeExpression&&m.typeExpression.kind===292?ve(y,m.typeExpression)||ve(y,m.fullName):ve(y,m.fullName)||ve(y,m.typeExpression));case 308:return ve(y,m.tagName)||ve(y,m.fullName)||ve(y,m.typeExpression);case 311:case 313:case 312:case 309:return ve(y,m.tagName)||ve(y,m.typeExpression);case 303:return e.forEach(m.typeParameters,y)||e.forEach(m.parameters,y)||ve(y,m.type);case 302:return e.forEach(m.jsDocPropertyTags,y);case 304:case 307:return ve(y,m.tagName);case 319:return ve(y,m.expression)}}e.forEachChild=H;function Pe(m,y,L,C,_){C===void 0&&(C=!1),e.performance.mark("beforeParse");var b;return e.perfLogger.logStartParseSourceFile(m),L===100?b=P.parseSourceFile(m,y,L,void 0,C,6):b=P.parseSourceFile(m,y,L,void 0,C,_),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),b}e.createSourceFile=Pe;function I(m,y){return P.parseIsolatedEntityName(m,y)}e.parseIsolatedEntityName=I;function _e(m,y){return P.parseJsonText(m,y)}e.parseJsonText=_e;function re(m){return m.externalModuleIndicator!==void 0}e.isExternalModule=re;function se(m,y,L,C){C===void 0&&(C=!1);var _=h.updateSourceFile(m,y,L,C);return _.flags|=m.flags&3145728,_}e.updateSourceFile=se;function w(m,y,L){var C=P.JSDocParser.parseIsolatedJSDocComment(m,y,L);return C&&C.jsDoc&&P.fixupParentReferences(C.jsDoc),C}e.parseIsolatedJSDocComment=w;function k(m,y,L){return P.JSDocParser.parseJSDocTypeExpressionForTests(m,y,L)}e.parseJSDocTypeExpressionForTests=k;var P;(function(m){var y=e.createScanner(99,!0),L=4096|16384,C,_,b,D,T,Q,N,X,pe,S,v,U,de,Ce,Z,Re=!1;function Ae(q,dn,Un,Et,gr,Zr){if(gr===void 0&&(gr=!1),Zr=e.ensureScriptKind(q,Zr),Zr===6){var ka=be(q,dn,Un,Et,gr);return e.convertToObjectWorker(ka,ka.parseDiagnostics,!1,void 0,void 0),ka.referencedFiles=e.emptyArray,ka.typeReferenceDirectives=e.emptyArray,ka.libReferenceDirectives=e.emptyArray,ka.amdDependencies=e.emptyArray,ka.hasNoDefaultLib=!1,ka.pragmas=e.emptyMap,ka}x(dn,Un,Et,Zr);var ps=Oe(q,Un,gr,Zr);return j(),ps}m.parseSourceFile=Ae;function We(q,dn){x(q,dn,void 0,1),yn();var Un=Pt(!0),Et=oe()===1&&!Q.length;return j(),Et?Un:void 0}m.parseIsolatedEntityName=We;function be(q,dn,Un,Et,gr){Un===void 0&&(Un=2),x(dn,Un,Et,6),T=Pn(q,2,6,!1),T.flags=Z,yn();var Zr=le();if(oe()===1)T.statements=kt([],Zr,Zr),T.endOfFileToken=nr();else{var ka=gt(225);switch(oe()){case 22:ka.expression=ci();break;case 105:case 90:case 99:ka.expression=nr();break;case 40:ct(function(){return yn()===8&&yn()!==58})?ka.expression=au():ka.expression=yi();break;case 8:case 10:if(ct(function(){return yn()!==58})){ka.expression=Oa();break}default:ka.expression=yi();break}jn(ka),T.statements=kt([ka],Zr),T.endOfFileToken=It(1,e.Diagnostics.Unexpected_token)}gr&&en(T),T.nodeCount=S,T.identifierCount=U,T.identifiers=v,T.parseDiagnostics=Q;var ps=T;return j(),ps}m.parseJsonText=be;function Ge(q){return q===4||q===2||q===1||q===6?1:0}function x(q,dn,Un,Et){C=e.objectAllocator.getNodeConstructor(),_=e.objectAllocator.getTokenConstructor(),b=e.objectAllocator.getIdentifierConstructor(),D=e.objectAllocator.getSourceFileConstructor(),pe=q,N=Un,Q=[],de=0,v=e.createMap(),U=0,S=0;switch(Et){case 1:case 2:Z=131072;break;case 6:Z=131072|33554432;break;default:Z=0;break}Re=!1,y.setText(pe),y.setOnError(pn),y.setScriptTarget(dn),y.setLanguageVariant(Ge(Et))}function j(){y.setText(""),y.setOnError(void 0),Q=void 0,T=void 0,v=void 0,N=void 0,pe=void 0,Ce=void 0}function Oe(q,dn,Un,Et){var gr=Y(q);return gr&&(Z|=8388608),T=Pn(q,dn,Et,gr),T.flags=Z,yn(),ne(T,pe),$(T,Zr),T.statements=ji(0,ts),e.Debug.assert(oe()===1),T.endOfFileToken=a(nr()),p(T),T.nodeCount=S,T.identifierCount=U,T.identifiers=v,T.parseDiagnostics=Q,Un&&en(T),T;function Zr(ka,ps,u){Q.push(e.createFileDiagnostic(T,ka,ps,u))}}function a(q){e.Debug.assert(!q.jsDoc);var dn=e.mapDefined(e.getJSDocCommentRanges(q,T.text),function(Un){return mi.parseJSDocComment(q,Un.pos,Un.end-Un.pos)});return dn.length&&(q.jsDoc=dn),q}function en(q){var dn=q;H(q,Un);return;function Un(Et){if(Et.parent!==dn){Et.parent=dn;var gr=dn;if(dn=Et,H(Et,Un),e.hasJSDocNodes(Et))for(var Zr=0,ka=Et.jsDoc;Zr<ka.length;Zr++){var ps=ka[Zr];ps.parent=Et,dn=ps,H(ps,Un)}dn=gr}}}m.fixupParentReferences=en;function Pn(q,dn,Un,Et){var gr=new D(288,0,pe.length);return S++,gr.text=pe,gr.bindDiagnostics=[],gr.bindSuggestionDiagnostics=void 0,gr.languageVersion=dn,gr.fileName=e.normalizePath(q),gr.languageVariant=Ge(Un),gr.isDeclarationFile=Et,gr.scriptKind=Un,gr}function Xn(q,dn){q?Z|=dn:Z&=~dn}function ae(q){Xn(q,4096)}function ce(q){Xn(q,8192)}function Le(q){Xn(q,16384)}function Je(q){Xn(q,32768)}function Ze(q,dn){var Un=q&Z;if(Un){Xn(!1,Un);var Et=dn();return Xn(!0,Un),Et}return dn()}function Ue(q,dn){var Un=q&~Z;if(Un){Xn(!0,Un);var Et=dn();return Xn(!1,Un),Et}return dn()}function cn(q){return Ze(4096,q)}function $e(q){return Ue(4096,q)}function sn(q){return Ue(8192,q)}function he(q){return Ue(16384,q)}function ke(q){return Ue(32768,q)}function G(q){return Ze(32768,q)}function c(q){return Ue(8192|32768,q)}function O(q){return(Z&q)!==0}function ee(){return O(8192)}function Te(){return O(4096)}function Ne(){return O(16384)}function ze(){return O(32768)}function bn(q,dn){Kn(y.getTokenPos(),y.getTextPos(),q,dn)}function Sn(q,dn,Un,Et){var gr=e.lastOrUndefined(Q);(!gr||q!==gr.start)&&Q.push(e.createFileDiagnostic(T,q,dn,Un,Et)),Re=!0}function Kn(q,dn,Un,Et){Sn(q,dn-q,Un,Et)}function Xe(q,dn,Un){Kn(q.pos,q.end,dn,Un)}function pn(q,dn){Sn(y.getTextPos(),dn,q)}function le(){return y.getStartPos()}function oe(){return X}function kn(){return X=y.scan()}function yn(){return e.isKeyword(X)&&(y.hasUnicodeEscape()||y.hasExtendedUnicodeEscape())&&Kn(y.getTokenPos(),y.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),kn()}function ye(){return X=y.scanJsDocToken()}function mn(){return X=y.reScanGreaterToken()}function un(){return X=y.reScanSlashToken()}function Mn(){return X=y.reScanTemplateToken()}function tt(){return X=y.reScanLessThanToken()}function Vn(){return X=y.scanJsxIdentifier()}function ut(){return X=y.scanJsxToken()}function dt(){return X=y.scanJsxAttributeValue()}function ot(q,dn){var Un=X,Et=Q.length,gr=Re,Zr=Z,ka=dn?y.lookAhead(q):y.tryScan(q);return e.Debug.assert(Zr===Z),(!ka||dn)&&(X=Un,Q.length=Et,Re=gr),ka}function ct(q){return ot(q,!0)}function wt(q){return ot(q,!1)}function st(){return oe()===75?!0:oe()===120&&ee()||oe()===126&&ze()?!1:oe()>111}function qn(q,dn,Un){return Un===void 0&&(Un=!0),oe()===q?(Un&&yn(),!0):(dn?bn(dn):bn(e.Diagnostics._0_expected,e.tokenToString(q)),!1)}function Ie(q){return oe()===q?(ye(),!0):(bn(e.Diagnostics._0_expected,e.tokenToString(q)),!1)}function De(q){return oe()===q?(yn(),!0):!1}function _n(q){return oe()===q?nr():void 0}function _t(q){return oe()===q?vr():void 0}function It(q,dn,Un){return _n(q)||Ut(q,!1,dn||e.Diagnostics._0_expected,Un||e.tokenToString(q))}function Ht(q){return _t(q)||Ut(q,!1,e.Diagnostics._0_expected,e.tokenToString(q))}function nr(){var q=gt(oe());return yn(),jn(q)}function vr(){var q=gt(oe());return ye(),jn(q)}function Qr(){return oe()===26?!0:oe()===19||oe()===1||y.hasPrecedingLineBreak()}function Wr(){return Qr()?(oe()===26&&yn(),!0):qn(26)}function gt(q,dn){S++;var Un=dn>=0?dn:y.getStartPos();return e.isNodeKind(q)||q===0?new C(q,Un,Un):q===75?new b(q,Un,Un):new _(q,Un,Un)}function ba(q,dn){var Un=gt(q,dn);return y.getTokenFlags()&2&&a(Un),Un}function kt(q,dn,Un){var Et=q.length,gr=Et>=1&&Et<=4?q.slice():q;return gr.pos=dn,gr.end=Un===void 0?y.getStartPos():Un,gr}function jn(q,dn){return q.end=dn===void 0?y.getStartPos():dn,Z&&(q.flags|=Z),Re&&(Re=!1,q.flags|=65536),q}function Ut(q,dn,Un,Et){dn?Sn(y.getStartPos(),0,Un,Et):Un&&bn(Un,Et);var gr=gt(q);return q===75?gr.escapedText="":(e.isLiteralKind(q)||e.isTemplateLiteralKind(q))&&(gr.text=""),jn(gr)}function ft(q){var dn=v.get(q);return dn===void 0&&v.set(q,dn=q),dn}function Tt(q,dn){if(U++,q){var Un=gt(75);return oe()!==75&&(Un.originalKeywordKind=oe()),Un.escapedText=e.escapeLeadingUnderscores(ft(y.getTokenValue())),kn(),jn(Un)}var Et=oe()===1,gr=y.isReservedWord(),Zr=y.getTokenText(),ka=gr?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Ut(75,Et,dn||ka,Zr)}function yt(q){return Tt(st(),q)}function vt(q){return Tt(e.tokenIsIdentifierOrKeyword(oe()),q)}function Ke(){return e.tokenIsIdentifierOrKeyword(oe())||oe()===10||oe()===8}function Rn(q){if(oe()===10||oe()===8){var dn=Oa();return dn.text=ft(dn.text),dn}return q&&oe()===22?tr():vt()}function nt(){return Rn(!0)}function tr(){var q=gt(153);return qn(22),q.expression=cn(br),qn(23),jn(q)}function xa(q){return oe()===q&&wt(ai)}function Ba(){return yn(),y.hasPrecedingLineBreak()?!1:Ai()}function ai(){switch(oe()){case 80:return yn()===87;case 88:return yn(),oe()===83?ct(Ei):oe()!==41&&oe()!==122&&oe()!==18&&Ai();case 83:return Ei();case 119:case 130:case 141:return yn(),Ai();default:return Ba()}}function wi(){return e.isModifierKind(oe())&&wt(ai)}function Ai(){return oe()===22||oe()===18||oe()===41||oe()===25||Ke()}function Ei(){return yn(),oe()===79||oe()===93||oe()===113||oe()===121&&ct(ss)||oe()===125&&ct(ar)}function Pi(q,dn){var Un=ko(q);if(Un)return!0;switch(q){case 0:case 1:case 3:return!(oe()===26&&dn)&&go();case 2:return oe()===77||oe()===83;case 4:return ct(hl);case 5:return ct(wc)||oe()===26&&!dn;case 6:return oe()===22||Ke();case 12:switch(oe()){case 22:case 41:case 25:case 24:return!0;default:return Ke()}case 18:return Ke();case 9:return oe()===22||oe()===25||Ke();case 7:return oe()===18?ct(Xa):dn?st()&&!Vo():En()&&!Vo();case 8:return Ys();case 10:return oe()===27||oe()===25||Ys();case 19:return st();case 15:switch(oe()){case 27:case 24:return!0}case 11:return oe()===25||et();case 16:return Ha(!1);case 17:return Ha(!0);case 20:case 21:return oe()===27||Lr();case 22:return Ou();case 23:return e.tokenIsIdentifierOrKeyword(oe());case 13:return e.tokenIsIdentifierOrKeyword(oe())||oe()===18;case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Xa(){if(e.Debug.assert(oe()===18),yn()===19){var q=yn();return q===27||q===18||q===89||q===112}return!0}function Ia(){return yn(),st()}function ca(){return yn(),e.tokenIsIdentifierOrKeyword(oe())}function Ti(){return yn(),e.tokenIsIdentifierOrKeywordOrGreaterThan(oe())}function Vo(){return oe()===112||oe()===89?ct(mo):!1}function mo(){return yn(),et()}function Ro(){return yn(),Lr()}function uo(q){if(oe()===1)return!0;switch(q){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return oe()===19;case 3:return oe()===19||oe()===77||oe()===83;case 7:return oe()===18||oe()===89||oe()===112;case 8:return ui();case 19:return oe()===31||oe()===20||oe()===18||oe()===89||oe()===112;case 11:return oe()===21||oe()===26;case 15:case 21:case 10:return oe()===23;case 17:case 16:case 18:return oe()===21||oe()===23;case 20:return oe()!==27;case 22:return oe()===18||oe()===19;case 13:return oe()===31||oe()===43;case 14:return oe()===29&&ct(ol);default:return!1}}function ui(){return Qr()||yc(oe())?!0:oe()===38}function Gi(){for(var q=0;q<24;q++)if(de&1<<q&&(Pi(q,!0)||uo(q)))return!0;return!1}function ji(q,dn){var Un=de;de|=1<<q;for(var Et=[],gr=le();!uo(q);){if(Pi(q,!1)){var Zr=Fo(q,dn);Et.push(Zr);continue}if(Ii(q))break}return de=Un,kt(Et,gr)}function Fo(q,dn){var Un=ko(q);return Un?bo(Un):dn()}function ko(q){if(!N||!Ri(q)||Re)return;var dn=N.currentNode(y.getStartPos());if(e.nodeIsMissing(dn)||dn.intersectsChange||e.containsParseError(dn))return;var Un=dn.flags&25358336;return Un!==Z?void 0:xt(dn,q)?(dn.jsDocCache&&(dn.jsDocCache=void 0),dn):void 0}function bo(q){return y.setTextPos(q.end),yn(),q}function Ri(q){switch(q){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 xt(q,dn){switch(dn){case 5:return Kt(q);case 2:return _r(q);case 0:case 1:case 3:return Jr(q);case 6:return va(q);case 4:return Na(q);case 8:return qr(q);case 17:case 16:return hi(q)}return!1}function Kt(q){if(q)switch(q.kind){case 161:case 166:case 162:case 163:case 158:case 221:return!0;case 160:var dn=q,Un=dn.name.kind===75&&dn.name.originalKeywordKind===128;return!Un}return!1}function _r(q){if(q)switch(q.kind){case 275:case 276:return!0}return!1}function Jr(q){if(q)switch(q.kind){case 243:case 224:case 222:case 226:case 225:case 238:case 234:case 236:case 233:case 232:case 230:case 231:case 229:case 228:case 235:case 223:case 239:case 237:case 227:case 240:case 253:case 252:case 259:case 258:case 248:case 244:case 245:case 247:case 246:return!0}return!1}function va(q){return q.kind===282}function Na(q){if(q)switch(q.kind){case 165:case 159:case 166:case 157:case 164:return!0}return!1}function qr(q){if(q.kind!==241)return!1;var dn=q;return dn.initializer===void 0}function hi(q){if(q.kind!==155)return!1;var dn=q;return dn.initializer===void 0}function Ii(q){return bn(gi(q)),Gi()?!0:(yn(),!1)}function gi(q){switch(q){case 0:return e.Diagnostics.Declaration_or_statement_expected;case 1:return e.Diagnostics.Declaration_or_statement_expected;case 2:return e.Diagnostics.case_or_default_expected;case 3:return e.Diagnostics.Statement_expected;case 18:case 4:return e.Diagnostics.Property_or_signature_expected;case 5:return e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected;case 6:return e.Diagnostics.Enum_member_expected;case 7:return e.Diagnostics.Expression_expected;case 8:return e.Diagnostics.Variable_declaration_expected;case 9:return e.Diagnostics.Property_destructuring_pattern_expected;case 10:return e.Diagnostics.Array_element_destructuring_pattern_expected;case 11:return e.Diagnostics.Argument_expression_expected;case 12:return e.Diagnostics.Property_assignment_expected;case 15:return e.Diagnostics.Expression_or_comma_expected;case 17:return e.Diagnostics.Parameter_declaration_expected;case 16:return e.Diagnostics.Parameter_declaration_expected;case 19:return e.Diagnostics.Type_parameter_declaration_expected;case 20:return e.Diagnostics.Type_argument_expected;case 21:return e.Diagnostics.Type_expected;case 22:return e.Diagnostics.Unexpected_token_expected;case 23:return e.Diagnostics.Identifier_expected;case 13:return e.Diagnostics.Identifier_expected;case 14:return e.Diagnostics.Identifier_expected;default:return}}function ua(q,dn,Un){var Et=de;de|=1<<q;for(var gr=[],Zr=le(),ka=-1;;){if(Pi(q,!1)){var ps=y.getStartPos();if(gr.push(Fo(q,dn)),ka=y.getTokenPos(),De(27))continue;if(ka=-1,uo(q))break;qn(27,tn(q)),Un&&oe()===26&&!y.hasPrecedingLineBreak()&&yn(),ps===y.getStartPos()&&yn();continue}if(uo(q))break;if(Ii(q))break}de=Et;var u=kt(gr,Zr);return ka>=0&&(u.hasTrailingComma=!0),u}function tn(q){return q===6?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function vn(){var q=kt([],le());return q.isMissingList=!0,q}function Ln(q){return!!q.isMissingList}function Bn(q,dn,Un,Et){if(qn(Un)){var gr=ua(q,dn);return qn(Et),gr}return vn()}function Pt(q,dn){for(var Un=q?vt(dn):yt(dn),Et=y.getStartPos();De(24);){if(oe()===29){Un.jsdocDotPos=Et;break}Et=y.getStartPos(),Un=rr(Un,cr(q))}return Un}function rr(q,dn){var Un=gt(152,q.pos);return Un.left=q,Un.right=dn,jn(Un)}function cr(q){if(y.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(oe())){var dn=ct(tc);if(dn)return Ut(75,!0,e.Diagnostics.Identifier_expected)}return q?vt():yt()}function Cr(){var q=gt(210);q.head=Ni(),e.Debug.assert(q.head.kind===15,"Template head has wrong token kind");var dn=[],Un=le();do dn.push(Ya());while(e.last(dn).literal.kind===16);return q.templateSpans=kt(dn,Un),jn(q)}function Ya(){var q=gt(220);q.expression=cn(br);var dn;return oe()===19?(Mn(),dn=ii()):dn=It(17,e.Diagnostics._0_expected,e.tokenToString(19)),q.literal=dn,jn(q)}function Oa(){return _i(oe())}function Ni(){var q=_i(oe());return e.Debug.assert(q.kind===15,"Template head has wrong token kind"),q}function ii(){var q=_i(oe());return e.Debug.assert(q.kind===16||q.kind===17,"Template fragment has wrong token kind"),q}function _i(q){var dn=gt(q);dn.text=y.getTokenValue();switch(q){case 14:case 15:case 16:case 17:var Un=q===14||q===17,Et=y.getTokenText();dn.rawText=Et.substring(1,Et.length-(y.isUnterminated()?0:Un?1:2));break}return y.hasExtendedUnicodeEscape()&&(dn.hasExtendedUnicodeEscape=!0),y.isUnterminated()&&(dn.isUnterminated=!0),dn.kind===8&&(dn.numericLiteralFlags=y.getTokenFlags()&1008),yn(),jn(dn),dn}function Ye(){var q=gt(168);return q.typeName=Pt(!0,e.Diagnostics.Type_expected),!y.hasPrecedingLineBreak()&&tt()===29&&(q.typeArguments=Bn(20,Va,29,31)),jn(q)}function zn(q){switch(q.kind){case 168:return e.nodeIsMissing(q.typeName);case 169:case 170:{var dn=q,Un=dn.parameters,Et=dn.type;return Ln(Un)||zn(Et)}case 181:return zn(q.type);default:return!1}}function ge(q){yn();var dn=gt(167,q.pos);return dn.parameterName=q,dn.type=Va(),jn(dn)}function hn(){var q=gt(182);return yn(),jn(q)}function Jn(q){var dn=gt(293);return q?Er(297,dn):(yn(),jn(dn))}function ue(){var q=gt(296);return yn(),q.type=Br(),jn(q)}function rn(){var q=y.getStartPos();if(yn(),oe()===27||oe()===19||oe()===21||oe()===31||oe()===62||oe()===51){var dn=gt(294,q);return jn(dn)}else{var dn=gt(295,q);return dn.type=Va(),jn(dn)}}function Cn(){if(ct(Pu)){var q=ba(298);return yn(),ga(58,4|32,q),jn(q)}var dn=gt(168);return dn.typeName=vt(),jn(dn)}function Zn(){var q=gt(155);return(oe()===103||oe()===98)&&(q.name=vt(),qn(58)),q.type=lt(),jn(q)}function lt(){y.setInJSDocType(!0);var q=_n(134);if(q){var dn=gt(300,q.pos);e:for(;;)switch(oe()){case 19:case 1:case 27:case 5:break e;default:ye()}return y.setInJSDocType(!1),jn(dn)}var Un=_n(25),Et=$i();if(y.setInJSDocType(!1),Un){var gr=gt(299,Un.pos);gr.type=Et,Et=jn(gr)}return oe()===62?Er(297,Et):Et}function Rt(){var q=gt(171);return qn(107),q.exprName=Pt(!0),jn(q)}function an(){var q=gt(154);return q.name=yt(),De(89)&&(Lr()||!et()?q.constraint=Va():q.expression=Nl()),De(62)&&(q.default=Va()),jn(q)}function Dr(){if(oe()===29)return Bn(19,an,29,31)}function da(){return De(58)?Va():void 0}function Ha(q){return oe()===25||Ys()||e.isModifierKind(oe())||oe()===59||Lr(!q)}function to(){var q=ba(155);return oe()===103?(q.name=Tt(!0),q.type=da(),jn(q)):(q.decorators=us(),q.modifiers=Vs(),q.dotDotDotToken=_n(25),q.name=Ol(),e.getFullWidth(q.name)===0&&!e.hasModifiers(q)&&e.isModifierKind(oe())&&yn(),q.questionToken=_n(57),q.type=da(),q.initializer=ya(),jn(q))}function ga(q,dn,Un){dn&32||(Un.typeParameters=Dr());var Et=Co(Un,dn);return Yo(q,!!(dn&4))&&(Un.type=$i(),zn(Un.type))?!1:Et}function Yo(q,dn){return q===38?(qn(q),!0):De(58)?!0:dn&&oe()===38?(bn(e.Diagnostics._0_expected,e.tokenToString(58)),yn(),!0):!1}function Co(q,dn){if(!qn(20))return q.parameters=vn(),!1;var Un=ee(),Et=ze();return ce(!!(dn&1)),Je(!!(dn&2)),q.parameters=dn&32?ua(17,Zn):ua(16,to),ce(Un),Je(Et),qn(21)}function Rs(){if(De(27))return;Wr()}function vs(q){var dn=ba(q);return q===165&&qn(98),ga(58,4,dn),Rs(),jn(dn)}function ml(){return oe()===22&&ct(Fs)}function Fs(){if(yn(),oe()===25||oe()===23)return!0;if(e.isModifierKind(oe())){if(yn(),st())return!0}else if(st())yn();else return!1;return oe()===58||oe()===27?!0:oe()!==57?!1:(yn(),oe()===58||oe()===27||oe()===23)}function Il(q){return q.kind=166,q.parameters=Bn(16,to,22,23),q.type=me(),Rs(),jn(q)}function es(q){return q.name=nt(),q.questionToken=_n(57),oe()===20||oe()===29?(q.kind=159,ga(58,4,q)):(q.kind=157,q.type=me(),oe()===62&&(q.initializer=ya())),Rs(),jn(q)}function hl(){if(oe()===20||oe()===29)return!0;for(var q=!1;e.isModifierKind(oe());)q=!0,yn();return oe()===22?!0:(Ke()&&(q=!0,yn()),q?oe()===20||oe()===29||oe()===57||oe()===58||oe()===27||Qr():!1)}function Ul(){if(oe()===20||oe()===29)return vs(164);if(oe()===98&&ct(gl))return vs(165);var q=ba(0);return q.modifiers=Vs(),ml()?Il(q):es(q)}function gl(){return yn(),oe()===20||oe()===29}function ho(){return yn()===24}function Is(){switch(yn()){case 20:case 29:case 24:return!0}return!1}function Ns(){var q=gt(172);return q.members=bs(),jn(q)}function bs(){var q;return qn(18)?(q=ji(4,Ul),qn(19)):q=vn(),q}function yl(){return yn(),oe()===39||oe()===40?yn()===137:(oe()===137&&yn(),oe()===22&&Ia()&&yn()===96)}function Ks(){var q=gt(154);return q.name=yt(),qn(96),q.constraint=Va(),jn(q)}function qs(){var q=gt(185);return qn(18),(oe()===137||oe()===39||oe()===40)&&(q.readonlyToken=nr(),q.readonlyToken.kind!==137&&It(137)),qn(22),q.typeParameter=Ks(),qn(23),(oe()===57||oe()===39||oe()===40)&&(q.questionToken=nr(),q.questionToken.kind!==57&&It(57)),q.type=me(),Wr(),qn(19),jn(q)}function $s(){var q=le();if(De(25)){var dn=gt(176,q);return dn.type=Va(),jn(dn)}var Un=Va();return!(Z&4194304)&&Un.kind===295&&Un.pos===Un.type.pos&&(Un.kind=175),Un}function el(){var q=gt(174);return q.elementTypes=Bn(21,$s,22,23),jn(q)}function nl(){var q=gt(181);return qn(20),q.type=Va(),qn(21),jn(q)}function Fn(){var q=le(),dn=De(98)?170:169,Un=ba(dn,q);return ga(38,4,Un),jn(Un)}function $n(){var q=nr();return oe()===24?void 0:q}function ht(q){var dn=gt(186),Un;q&&(Un=gt(206),Un.operator=40,yn());var Et=oe()===105||oe()===90?nr():_i(oe());return q&&(Un.operand=Et,jn(Un),Et=Un),dn.literal=Et,jn(dn)}function Qn(){return yn(),oe()===95}function Qt(){T.flags|=1048576;var q=gt(187);return De(107)&&(q.isTypeOf=!0),qn(95),qn(20),q.argument=Va(),qn(21),De(24)&&(q.qualifier=Pt(!0,e.Diagnostics.Type_expected)),!y.hasPrecedingLineBreak()&&tt()===29&&(q.typeArguments=Bn(20,Va,29,31)),jn(q)}function yr(){return yn(),oe()===8||oe()===9}function Br(){switch(oe()){case 124:case 147:case 142:case 139:case 150:case 143:case 127:case 145:case 136:case 140:return wt($n)||Ye();case 41:return Jn(!1);case 65:return Jn(!0);case 60:y.reScanQuestionToken();case 57:return rn();case 93:return Cn();case 53:return ue();case 14:case 10:case 8:case 9:case 105:case 90:return ht();case 40:return ct(yr)?ht(!0):Ye();case 109:case 99:return nr();case 103:{var q=hn();return oe()===132&&!y.hasPrecedingLineBreak()?ge(q):q}case 107:return ct(Qn)?Qt():Rt();case 18:return ct(yl)?qs():Ns();case 22:return el();case 20:return nl();case 95:return Qt();case 123:return ct(tc)?Ho():Ye();default:return Ye()}}function Lr(q){switch(oe()){case 124:case 147:case 142:case 139:case 150:case 127:case 137:case 143:case 146:case 109:case 145:case 99:case 103:case 107:case 136:case 18:case 22:case 29:case 51:case 50:case 98:case 10:case 8:case 9:case 105:case 90:case 140:case 41:case 57:case 53:case 25:case 131:case 95:case 123:return!0;case 93:return!q;case 40:return!q&&ct(yr);case 20:return!q&&ct(kr);default:return st()}}function kr(){return yn(),oe()===21||Ha(!1)||Lr()}function Pr(){for(var q=Br();!y.hasPrecedingLineBreak();)switch(oe()){case 53:q=Er(296,q);break;case 57:if(!(Z&4194304)&&ct(Ro))return q;q=Er(295,q);break;case 22:if(qn(22),Lr()){var dn=gt(184,q.pos);dn.objectType=q,dn.indexType=Va(),qn(23),q=jn(dn)}else{var dn=gt(173,q.pos);dn.elementType=q,qn(23),q=jn(dn)}break;default:return q}return q}function Er(q,dn){yn();var Un=gt(q,dn.pos);return Un.type=dn,jn(Un)}function fa(q){var dn=gt(183);return qn(q),dn.operator=q,dn.type=Fa(),jn(dn)}function Da(){var q=gt(180);qn(131);var dn=gt(154);return dn.name=yt(),q.typeParameter=jn(dn),jn(q)}function Fa(){var q=oe();switch(q){case 133:case 146:case 137:return fa(q);case 131:return Da()}return Pr()}function vi(q,dn,Un){var Et=y.getStartPos(),gr=De(Un),Zr=dn();if(oe()===Un||gr){for(var ka=[Zr];De(Un);)ka.push(dn());var ps=gt(q,Et);ps.types=kt(ka,Et),Zr=jn(ps)}return Zr}function Eo(){return vi(178,Fa,50)}function pi(){return vi(177,Eo,51)}function Io(){return oe()===29?!0:oe()===20&&ct(wn)}function qi(){if(e.isModifierKind(oe())&&Vs(),st()||oe()===103)return yn(),!0;if(oe()===22||oe()===18){var q=Q.length;return Ol(),q===Q.length}return!1}function wn(){if(yn(),oe()===21||oe()===25)return!0;if(qi()){if(oe()===58||oe()===27||oe()===57||oe()===62)return!0;if(oe()===21&&(yn(),oe()===38))return!0}return!1}function $i(){var q=st()&&wt(Go),dn=Va();if(q){var Un=gt(167,q.pos);return Un.assertsModifier=void 0,Un.parameterName=q,Un.type=dn,jn(Un)}else return dn}function Go(){var q=yt();if(oe()===132&&!y.hasPrecedingLineBreak())return yn(),q}function Ho(){var q=gt(167);return q.assertsModifier=It(123),q.parameterName=oe()===103?hn():yt(),q.type=De(132)?Va():void 0,jn(q)}function Va(){return Ze(40960,Es)}function Es(q){if(Io()||oe()===98)return Fn();var dn=pi();if(!q&&!y.hasPrecedingLineBreak()&&De(89)){var Un=gt(179,dn.pos);return Un.checkType=dn,Un.extendsType=Es(!0),qn(57),Un.trueType=Es(),qn(58),Un.falseType=Es(),jn(Un)}return dn}function me(){return De(58)?Va():void 0}function En(){switch(oe()){case 103:case 101:case 99:case 105:case 90:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 93:case 79:case 98:case 43:case 67:case 75:return!0;case 95:return ct(Is);default:return st()}}function et(){if(En())return!0;switch(oe()){case 39:case 40:case 54:case 53:case 84:case 107:case 109:case 45:case 46:case 29:case 126:case 120:return!0;default:return rl()?!0:st()}}function Gt(){return oe()!==18&&oe()!==93&&oe()!==79&&oe()!==59&&et()}function br(){var q=Ne();q&&Le(!1);for(var dn=oi(),Un;Un=_n(27);)dn=Js(dn,Un,oi());return q&&Le(!0),dn}function ya(){return De(62)?oi():void 0}function oi(){if(za())return eo();var q=Ir()||Qo();if(q)return q;var dn=_l(0);return dn.kind===75&&oe()===38?ea(dn):e.isLeftHandSideExpression(dn)&&e.isAssignmentOperator(mn())?Js(dn,nr(),oi()):Nc(dn)}function za(){return oe()===120?ee()?!0:ct(il):!1}function ki(){return yn(),!y.hasPrecedingLineBreak()&&st()}function eo(){var q=gt(211);return yn(),!y.hasPrecedingLineBreak()&&(oe()===41||et())&&(q.asteriskToken=_n(41),q.expression=oi()),jn(q)}function ea(q,dn){e.Debug.assert(oe()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var Un;dn?(Un=gt(201,dn.pos),Un.modifiers=dn):Un=gt(201,q.pos);var Et=gt(155,q.pos);return Et.name=q,jn(Et),Un.parameters=kt([Et],Et.pos,Et.end),Un.equalsGreaterThanToken=It(38),Un.body=Ts(!!dn),a(jn(Un))}function Ir(){var q=To();if(q===0)return;var dn=q===1?Bs(!0):wt(tl);if(!dn)return;var Un=e.hasModifier(dn,256),Et=oe();return dn.equalsGreaterThanToken=It(38),dn.body=Et===38||Et===18?Ts(Un):yt(),jn(dn)}function To(){return oe()===20||oe()===29||oe()===125?ct(Uo):oe()===38?1:0}function Uo(){if(oe()===125){if(yn(),y.hasPrecedingLineBreak())return 0;if(oe()!==20&&oe()!==29)return 0}var q=oe(),dn=yn();if(q===20){if(dn===21){var Un=yn();switch(Un){case 38:case 58:case 18:return 1;default:return 0}}if(dn===22||dn===18)return 2;if(dn===25)return 1;if(e.isModifierKind(dn)&&dn!==125&&ct(Ia))return 1;if(!st()&&dn!==103)return 0;switch(yn()){case 58:return 1;case 57:return yn(),oe()===58||oe()===27||oe()===62||oe()===21?1:0;case 27:case 62:case 21:return 2}return 0}else{if(e.Debug.assert(q===29),!st())return 0;if(T.languageVariant===1){var Et=ct(function(){var gr=yn();if(gr===89){var Zr=yn();switch(Zr){case 62:case 31:return!1;default:return!0}}else if(gr===27)return!0;return!1});return Et?1:0}return 2}}function tl(){var q=y.getTokenPos();if(Ce&&Ce.has(q.toString()))return;var dn=Bs(!1);return dn||(Ce||(Ce=e.createMap())).set(q.toString(),!0),dn}function Qo(){if(oe()===125&&ct(co)===1){var q=ns(),dn=_l(0);return ea(dn,q)}return}function co(){if(oe()===125){if(yn(),y.hasPrecedingLineBreak()||oe()===38)return 0;var q=_l(0);if(!y.hasPrecedingLineBreak()&&q.kind===75&&oe()===38)return 1}return 0}function Bs(q){var dn=ba(201);dn.modifiers=ns();var Un=e.hasModifier(dn,256)?2:0;if(!ga(58,Un,dn)&&!q)return;var Et=dn.type&&e.isJSDocFunctionType(dn.type);return!q&&oe()!==38&&(Et||oe()!==18)?void 0:dn}function Ts(q){return oe()===18?La(q?2:0):oe()!==26&&oe()!==93&&oe()!==79&&go()&&!Gt()?La(16|(q?2:0)):q?ke(oi):G(oi)}function Nc(q){var dn=_n(57);if(!dn)return q;var Un=gt(209,q.pos);return Un.condition=q,Un.questionToken=dn,Un.whenTrue=Ze(L,oi),Un.colonToken=It(58),Un.whenFalse=e.nodeIsPresent(Un.colonToken)?oi():Ut(75,!1,e.Diagnostics._0_expected,e.tokenToString(58)),jn(Un)}function _l(q){var dn=Nl();return Ql(q,dn)}function yc(q){return q===96||q===151}function Ql(q,dn){for(;;){mn();var Un=e.getBinaryOperatorPrecedence(oe()),Et=oe()===42?Un>=q:Un>q;if(!Et)break;if(oe()===96&&Te())break;if(oe()===122){if(y.hasPrecedingLineBreak())break;yn(),dn=Oc(dn,Va())}else dn=Js(dn,nr(),_l(Un))}return dn}function rl(){return Te()&&oe()===96?!1:e.getBinaryOperatorPrecedence(oe())>0}function Js(q,dn,Un){var Et=gt(208,q.pos);return Et.left=q,Et.operatorToken=dn,Et.right=Un,jn(Et)}function Oc(q,dn){var Un=gt(216,q.pos);return Un.expression=q,Un.type=dn,jn(Un)}function au(){var q=gt(206);return q.operator=oe(),yn(),q.operand=Ss(),jn(q)}function Pc(){var q=gt(202);return yn(),q.expression=Ss(),jn(q)}function iu(){var q=gt(203);return yn(),q.expression=Ss(),jn(q)}function Zl(){var q=gt(204);return yn(),q.expression=Ss(),jn(q)}function zs(){return oe()===126?ze()?!0:ct(il):!1}function Mc(){var q=gt(205);return yn(),q.expression=Ss(),jn(q)}function Nl(){if(Rc()){var q=$l();return oe()===42?Ql(e.getBinaryOperatorPrecedence(oe()),q):q}var dn=oe(),Un=Ss();if(oe()===42){var Et=e.skipTrivia(pe,Un.pos),gr=Un.end;Un.kind===198?Kn(Et,gr,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):Kn(Et,gr,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(dn))}return Un}function Ss(){switch(oe()){case 39:case 40:case 54:case 53:return au();case 84:return Pc();case 107:return iu();case 109:return Zl();case 29:return Xs();case 126:if(zs())return Mc();default:return $l()}}function Rc(){switch(oe()){case 39:case 40:case 54:case 53:case 84:case 107:case 109:case 126:return!1;case 29:if(T.languageVariant!==1)return!1;default:return!0}}function $l(){if(oe()===45||oe()===46){var q=gt(206);return q.operator=oe(),yn(),q.operand=_c(),jn(q)}else if(T.languageVariant===1&&oe()===29&&ct(Ti))return su(!0);var dn=_c();if(e.Debug.assert(e.isLeftHandSideExpression(dn)),(oe()===45||oe()===46)&&!y.hasPrecedingLineBreak()){var q=gt(207,dn.pos);return q.operand=dn,q.operator=oe(),yn(),jn(q)}return dn}function _c(){var q;if(oe()===95)if(ct(gl))T.flags|=1048576,q=nr();else if(ct(ho)){var dn=y.getStartPos();yn(),yn();var Un=gt(218,dn);Un.keywordToken=95,Un.name=vt(),q=jn(Un),T.flags|=2097152}else q=ou();else q=oe()===101?Iu():ou();return Dt(q)}function ou(){var q=fr();return on(q,!0)}function Iu(){var q=nr();if(oe()===29){var dn=le(),Un=wt(Lt);Un!==void 0&&Kn(dn,le(),e.Diagnostics.super_may_not_use_type_arguments)}if(oe()===20||oe()===24||oe()===22)return q;var Et=gt(193,q.pos);return Et.expression=q,It(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Et.name=cr(!0),jn(Et)}function su(q){var dn=vc(q),Un;if(dn.kind===266){var Et=gt(264,dn.pos);Et.openingElement=dn,Et.children=Fc(Et.openingElement),Et.closingElement=Vc(q),V(Et.openingElement.tagName,Et.closingElement.tagName)||Xe(Et.closingElement,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(pe,Et.openingElement.tagName)),Un=jn(Et)}else if(dn.kind===269){var Et=gt(268,dn.pos);Et.openingFragment=dn,Et.children=Fc(Et.openingFragment),Et.closingFragment=al(q),Un=jn(Et)}else e.Debug.assert(dn.kind===265),Un=dn;if(q&&oe()===29){var gr=wt(function(){return su(!0)});if(gr){bn(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var Zr=gt(208,Un.pos);return Zr.end=gr.end,Zr.left=Un,Zr.right=gr,Zr.operatorToken=Ut(27,!1),Zr.operatorToken.pos=Zr.operatorToken.end=Zr.right.pos,Zr}}return Un}function lu(){var q=gt(11);return q.text=y.getTokenValue(),q.containsOnlyTriviaWhiteSpaces=X===12,X=y.scanJsxToken(),jn(q)}function cu(q,dn){switch(dn){case 1:e.isJsxOpeningFragment(q)?Xe(q,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag):Xe(q.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(pe,q.tagName));return;case 30:case 7:return;case 11:case 12:return lu();case 18:return uu(!1);case 29:return su(!1);default:return e.Debug.assertNever(dn)}}function Fc(q){var dn=[],Un=le(),Et=de;for(de|=1<<14;;){var gr=cu(q,X=y.reScanJsxToken());if(!gr)break;dn.push(gr)}return de=Et,kt(dn,Un)}function Gc(){var q=gt(272);return q.properties=ji(13,du),jn(q)}function vc(q){var dn=y.getStartPos();if(qn(29),oe()===31){var Un=gt(269,dn);return ut(),jn(Un)}var Et=Bc(),gr=Bi(),Zr=Gc(),ka;return oe()===31?(ka=gt(266,dn),ut()):(qn(43),q?qn(31):(qn(31,void 0,!1),ut()),ka=gt(265,dn)),ka.tagName=Et,ka.typeArguments=gr,ka.attributes=Zr,jn(ka)}function Bc(){Vn();for(var q=oe()===103?nr():vt();De(24);){var dn=gt(193,q.pos);dn.expression=q,dn.name=cr(!0),q=jn(dn)}return q}function uu(q){var dn=gt(274);return qn(18)?(oe()!==19&&(dn.dotDotDotToken=_n(25),dn.expression=br()),q?qn(19):qn(19,void 0,!1)&&ut(),jn(dn)):void 0}function du(){if(oe()===18)return ec();Vn();var q=gt(271);if(q.name=vt(),oe()===62)switch(dt()){case 10:q.initializer=Oa();break;default:q.initializer=uu(!0);break}return jn(q)}function ec(){var q=gt(273);return qn(18),qn(25),q.expression=br(),qn(19),jn(q)}function Vc(q){var dn=gt(267);return qn(30),dn.tagName=Bc(),q?qn(31):(qn(31,void 0,!1),ut()),jn(dn)}function al(q){var dn=gt(270);return qn(30),e.tokenIsIdentifierOrKeyword(oe())&&Xe(Bc(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),q?qn(31):(qn(31,void 0,!1),ut()),jn(dn)}function Xs(){var q=gt(198);return qn(29),q.type=Va(),qn(31),q.expression=Ss(),jn(q)}function l(){return yn(),e.tokenIsIdentifierOrKeyword(oe())||oe()===22||fn()}function E(){return oe()===28&&ct(l)}function M(q,dn){var Un=gt(193,q.pos);return Un.expression=q,Un.questionDotToken=dn,Un.name=cr(!0),(dn||q.flags&32)&&(Un.flags|=32),jn(Un)}function Me(q,dn){var Un=gt(194,q.pos);if(Un.expression=q,Un.questionDotToken=dn,oe()===23)Un.argumentExpression=Ut(75,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var Et=cn(br);e.isStringOrNumericLiteralLike(Et)&&(Et.text=ft(Et.text)),Un.argumentExpression=Et}return qn(23),(dn||q.flags&32)&&(Un.flags|=32),jn(Un)}function on(q,dn){for(;;){var Un=void 0,Et=!1;if(dn&&E()?(Un=It(28),Et=e.tokenIsIdentifierOrKeyword(oe())):Et=De(24),Et){q=M(q,Un);continue}if(!Un&&oe()===53&&!y.hasPrecedingLineBreak()){yn();var gr=gt(217,q.pos);gr.expression=q,q=jn(gr);continue}if((Un||!Ne())&&De(22)){q=Me(q,Un);continue}if(fn()){q=Wn(q,Un,void 0);continue}return q}}function fn(){return oe()===14||oe()===15}function Wn(q,dn,Un){var Et=gt(197,q.pos);return Et.tag=q,Et.questionDotToken=dn,Et.typeArguments=Un,Et.template=oe()===14?Oa():Cr(),(dn||q.flags&32)&&(Et.flags|=32),jn(Et)}function Dt(q){for(;;){q=on(q,!0);var dn=_n(28);if(oe()===29||oe()===47){var Un=wt(Lt);if(Un){if(fn()){q=Wn(q,dn,Un);continue}var Et=gt(195,q.pos);Et.expression=q,Et.questionDotToken=dn,Et.typeArguments=Un,Et.arguments=Ft(),(dn||q.flags&32)&&(Et.flags|=32),q=jn(Et);continue}}else if(oe()===20){var Et=gt(195,q.pos);Et.expression=q,Et.questionDotToken=dn,Et.arguments=Ft(),(dn||q.flags&32)&&(Et.flags|=32),q=jn(Et);continue}if(dn){var gr=gt(193,q.pos);gr.expression=q,gr.questionDotToken=dn,gr.name=Ut(75,!1,e.Diagnostics.Identifier_expected),gr.flags|=32,q=jn(gr)}break}return q}function Ft(){qn(20);var q=ua(11,Ka);return qn(21),q}function Lt(){if(tt()!==29)return;yn();var q=ua(20,Va);return qn(31)&&(q&&mr())?q:void 0}function mr(){switch(oe()){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 fr(){switch(oe()){case 8:case 9:case 10:case 14:return Oa();case 103:case 101:case 99:case 105:case 90:return nr();case 20:return Hr();case 22:return ci();case 18:return yi();case 125:if(!ct(ar))break;return Xr();case 79:return Qs();case 93:return Xr();case 98:return oa();case 43:case 67:if(un()===13)return Oa();break;case 15:return Cr()}return yt(e.Diagnostics.Expression_expected)}function Hr(){var q=ba(199);return qn(20),q.expression=cn(br),qn(21),jn(q)}function ha(){var q=gt(212);return qn(25),q.expression=oi(),jn(q)}function ia(){return oe()===25?ha():oe()===27?gt(214):oi()}function Ka(){return Ze(L,ia)}function ci(){var q=gt(191);return qn(22),y.hasPrecedingLineBreak()&&(q.multiLine=!0),q.elements=ua(15,ia),qn(23),jn(q)}function ti(){var q=ba(0);if(_n(25))return q.kind=281,q.expression=oi(),jn(q);if(q.decorators=us(),q.modifiers=Vs(),xa(130))return Ra(q,162);if(xa(141))return Ra(q,163);var dn=_n(41),Un=st();if(q.name=nt(),q.questionToken=_n(57),q.exclamationToken=_n(53),dn||oe()===20||oe()===29)return Xu(q,dn);var Et=Un&&oe()!==58;if(Et){q.kind=280;var gr=_n(62);gr&&(q.equalsToken=gr,q.objectAssignmentInitializer=cn(oi))}else q.kind=279,qn(58),q.initializer=cn(oi);return jn(q)}function yi(){var q=gt(192);return qn(18),y.hasPrecedingLineBreak()&&(q.multiLine=!0),q.properties=ua(12,ti,!0),qn(19),jn(q)}function Xr(){var q=Ne();q&&Le(!1);var dn=ba(200);dn.modifiers=Vs(),qn(93),dn.asteriskToken=_n(41);var Un=dn.asteriskToken?1:0,Et=e.hasModifier(dn,256)?2:0;return dn.name=Un&&Et?c(aa):Un?sn(aa):Et?ke(aa):aa(),ga(58,Un|Et,dn),dn.body=La(Un|Et),q&&Le(!0),jn(dn)}function aa(){return st()?yt():void 0}function oa(){var q=y.getStartPos();if(qn(98),De(24)){var dn=gt(218,q);return dn.keywordToken=98,dn.name=vt(),jn(dn)}for(var Un=fr(),Et;;){Un=on(Un,!1),Et=wt(Lt),fn()&&(e.Debug.assert(!!Et,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),Un=Wn(Un,void 0,Et),Et=void 0);break}var gr=gt(196,q);return gr.expression=Un,gr.typeArguments=Et,(gr.typeArguments||oe()===20)&&(gr.arguments=Ft()),jn(gr)}function ta(q,dn){var Un=gt(222);return qn(18,dn)||q?(y.hasPrecedingLineBreak()&&(Un.multiLine=!0),Un.statements=ji(1,ts),qn(19)):Un.statements=vn(),jn(Un)}function La(q,dn){var Un=ee();ce(!!(q&1));var Et=ze();Je(!!(q&2));var gr=Ne();gr&&Le(!1);var Zr=ta(!!(q&16),dn);return gr&&Le(!0),ce(Un),Je(Et),Zr}function qa(){var q=gt(223);return qn(26),jn(q)}function ri(){var q=gt(226);return qn(94),qn(20),q.expression=cn(br),qn(21),q.thenStatement=ts(),q.elseStatement=De(86)?ts():void 0,jn(q)}function ro(){var q=gt(227);return qn(85),q.statement=ts(),qn(110),qn(20),q.expression=cn(br),qn(21),De(26),jn(q)}function Ja(){var q=gt(228);return qn(110),qn(20),q.expression=cn(br),qn(21),q.statement=ts(),jn(q)}function Ko(){var q=le();qn(92);var dn=_n(126);qn(20);var Un;oe()!==26&&(oe()===108||oe()===114||oe()===80?Un=zt(!0):Un=$e(br));var Et;if(dn?qn(151):De(151)){var gr=gt(231,q);gr.awaitModifier=dn,gr.initializer=Un,gr.expression=cn(oi),qn(21),Et=gr}else if(De(96)){var Zr=gt(230,q);Zr.initializer=Un,Zr.expression=cn(br),qn(21),Et=Zr}else{var ka=gt(229,q);ka.initializer=Un,qn(26),oe()!==26&&oe()!==21&&(ka.condition=cn(br)),qn(26),oe()!==21&&(ka.incrementor=cn(br)),qn(21),Et=ka}return Et.statement=ts(),jn(Et)}function zr(q){var dn=gt(q);return qn(q===233?76:81),Qr()||(dn.label=yt()),Wr(),jn(dn)}function Yt(){var q=gt(234);return qn(100),Qr()||(q.expression=cn(br)),Wr(),jn(q)}function xs(){var q=gt(235);return qn(111),qn(20),q.expression=cn(br),qn(21),q.statement=Ue(16777216,ts),jn(q)}function zu(){var q=gt(275);return qn(77),q.expression=cn(br),qn(58),q.statements=ji(3,ts),jn(q)}function pd(){var q=gt(276);return qn(83),qn(58),q.statements=ji(3,ts),jn(q)}function Nu(){return oe()===77?zu():pd()}function bc(){var q=gt(236);qn(102),qn(20),q.expression=cn(br),qn(21);var dn=gt(250);return qn(18),dn.clauses=ji(2,Nu),qn(19),q.caseBlock=jn(dn),jn(q)}function nc(){var q=gt(238);return qn(104),q.expression=y.hasPrecedingLineBreak()?void 0:cn(br),Wr(),jn(q)}function sr(){var q=gt(239);return qn(106),q.tryBlock=ta(!1),q.catchClause=oe()===78?jo():void 0,(!q.catchClause||oe()===91)&&(qn(91),q.finallyBlock=ta(!1)),jn(q)}function jo(){var q=gt(278);return qn(78),De(20)?(q.variableDeclaration=Gs(),qn(21)):q.variableDeclaration=void 0,q.block=ta(!1),jn(q)}function _a(){var q=gt(240);return qn(82),Wr(),jn(q)}function No(){var q=ba(0),dn=cn(br);return dn.kind===75&&De(58)?(q.kind=237,q.label=dn,q.statement=ts()):(q.kind=225,q.expression=dn,Wr()),jn(q)}function tc(){return yn(),e.tokenIsIdentifierOrKeyword(oe())&&!y.hasPrecedingLineBreak()}function ss(){return yn(),oe()===79&&!y.hasPrecedingLineBreak()}function ar(){return yn(),oe()===93&&!y.hasPrecedingLineBreak()}function il(){return yn(),(e.tokenIsIdentifierOrKeyword(oe())||oe()===8||oe()===9||oe()===10)&&!y.hasPrecedingLineBreak()}function Bo(){for(;;)switch(oe()){case 108:case 114:case 80:case 93:case 79:case 87:return!0;case 113:case 144:return ki();case 134:case 135:return Tc();case 121:case 125:case 129:case 116:case 117:case 118:case 137:if(yn(),y.hasPrecedingLineBreak())return!1;continue;case 149:return yn(),oe()===18||oe()===75||oe()===88;case 95:return yn(),oe()===10||oe()===41||oe()===18||e.tokenIsIdentifierOrKeyword(oe());case 88:if(yn(),oe()===62||oe()===41||oe()===18||oe()===83||oe()===122)return!0;continue;case 119:yn();continue;default:return!1}}function ws(){return ct(Bo)}function go(){switch(oe()){case 59:case 26:case 18:case 108:case 114:case 93:case 79:case 87:case 94:case 85:case 110:case 92:case 81:case 76:case 100:case 111:case 102:case 104:case 106:case 82:case 78:case 91:return!0;case 95:return ws()||ct(Is);case 80:case 88:return ws();case 125:case 129:case 113:case 134:case 135:case 144:case 149:return!0;case 118:case 116:case 117:case 119:case 137:return ws()||!ct(tc);default:return et()}}function Oo(){return yn(),st()||oe()===18||oe()===22}function Ec(){return ct(Oo)}function ts(){switch(oe()){case 26:return qa();case 18:return ta(!1);case 108:return Do(ba(241));case 114:if(Ec())return Do(ba(241));break;case 93:return pu(ba(243));case 79:return oc(ba(244));case 94:return ri();case 85:return ro();case 110:return Ja();case 92:return Ko();case 81:return zr(232);case 76:return zr(233);case 100:return Yt();case 111:return xs();case 102:return bc();case 104:return nc();case 106:case 78:case 91:return sr();case 82:return _a();case 59:return fu();case 125:case 113:case 144:case 134:case 135:case 129:case 80:case 87:case 88:case 95:case 116:case 117:case 118:case 121:case 119:case 137:case 149:if(ws())return fu();break}return No()}function As(q){return q.kind===129}function fu(){var q=ct(function(){return us(),Vs()}),dn=e.some(q,As);if(dn){var Un=jl();if(Un)return Un}var Et=ba(0);if(Et.decorators=us(),Et.modifiers=Vs(),dn){for(var gr=0,Zr=Et.modifiers;gr<Zr.length;gr++){var ka=Zr[gr];ka.flags|=8388608}return Ue(8388608,function(){return Uc(Et)})}else return Uc(Et)}function jl(){return Ue(8388608,function(){var q=ko(de);if(q)return bo(q)})}function Uc(q){switch(oe()){case 108:case 114:case 80:return Do(q);case 93:return pu(q);case 79:return oc(q);case 113:return jc(q);case 144:return Wc(q);case 87:return Hc(q);case 149:case 134:case 135:return ql(q);case 95:return nd(q);case 88:yn();switch(oe()){case 83:case 62:return rt(q);case 122:return ed(q);default:return Dn(q)}default:if(q.decorators||q.modifiers){var dn=Ut(262,!0,e.Diagnostics.Declaration_expected);return dn.pos=q.pos,dn.decorators=q.decorators,dn.modifiers=q.modifiers,jn(dn)}return}}function Tc(){return yn(),!y.hasPrecedingLineBreak()&&(st()||oe()===10)}function Sc(q,dn){if(oe()!==18&&Qr()){Wr();return}return La(q,dn)}function xc(){if(oe()===27)return gt(214);var q=gt(190);return q.dotDotDotToken=_n(25),q.name=Ol(),q.initializer=ya(),jn(q)}function rc(){var q=gt(190);q.dotDotDotToken=_n(25);var dn=st(),Un=nt();return dn&&oe()!==58?q.name=Un:(qn(58),q.propertyName=Un,q.name=Ol()),q.initializer=ya(),jn(q)}function ac(){var q=gt(188);return qn(18),q.elements=ua(9,rc),qn(19),jn(q)}function vl(){var q=gt(189);return qn(22),q.elements=ua(10,xc),qn(23),jn(q)}function Ys(){return oe()===18||oe()===22||st()}function Ol(){return oe()===22?vl():oe()===18?ac():yt()}function wa(){return Gs(!0)}function Gs(q){var dn=gt(241);return dn.name=Ol(),q&&dn.name.kind===75&&oe()===53&&!y.hasPrecedingLineBreak()&&(dn.exclamationToken=nr()),dn.type=me(),yc(oe())||(dn.initializer=ya()),jn(dn)}function zt(q){var dn=gt(242);switch(oe()){case 108:break;case 114:dn.flags|=1;break;case 80:dn.flags|=2;break;default:e.Debug.fail()}if(yn(),oe()===151&&ct(bl))dn.declarations=vn();else{var Un=Te();ae(q),dn.declarations=ua(8,q?Gs:wa),ae(Un)}return jn(dn)}function bl(){return Ia()&&yn()===21}function Do(q){return q.kind=224,q.declarationList=zt(!1),Wr(),jn(q)}function pu(q){q.kind=243,qn(93),q.asteriskToken=_n(41),q.name=e.hasModifier(q,512)?aa():yt();var dn=q.asteriskToken?1:0,Un=e.hasModifier(q,256)?2:0;return ga(58,dn|Un,q),q.body=Sc(dn|Un,e.Diagnostics.or_expected),jn(q)}function ic(){if(oe()===128)return qn(128);if(oe()===10&&ct(yn)===20)return wt(function(){var q=Oa();return q.text==="constructor"?q:void 0})}function Wl(q){return wt(function(){if(ic())return q.kind=161,ga(58,0,q),q.body=Sc(0,e.Diagnostics.or_expected),jn(q)})}function Xu(q,dn,Un){q.kind=160,q.asteriskToken=dn;var Et=dn?1:0,gr=e.hasModifier(q,256)?2:0;return ga(58,Et|gr,q),q.body=Sc(Et|gr,Un),jn(q)}function zi(q){return q.kind=158,!q.questionToken&&oe()===53&&!y.hasPrecedingLineBreak()&&(q.exclamationToken=nr()),q.type=me(),q.initializer=e.hasModifier(q,32)?cn(ya):Ze(8192|4096,ya),Wr(),jn(q)}function Hl(q){var dn=_n(41);return q.name=nt(),q.questionToken=_n(57),dn||oe()===20||oe()===29?Xu(q,dn,e.Diagnostics.or_expected):zi(q)}function Ra(q,dn){return q.kind=dn,q.name=nt(),ga(58,0,q),q.body=Sc(0),jn(q)}function wc(){var q;if(oe()===59)return!0;for(;e.isModifierKind(oe());){if(q=oe(),e.isClassMemberModifier(q))return!0;yn()}if(oe()===41)return!0;if(Ke()&&(q=oe(),yn()),oe()===22)return!0;if(q!==void 0){if(!e.isKeyword(q)||q===141||q===130)return!0;switch(oe()){case 20:case 29:case 53:case 58:case 62:case 57:return!0;default:return Qr()}}return!1}function us(){for(var q,dn=le();;){var Un=le();if(!De(59))break;var Et=gt(156,Un);Et.expression=he(_c),jn(Et),(q||(q=[])).push(Et)}return q&&kt(q,dn)}function Vs(q){for(var dn,Un=le();;){var Et=y.getStartPos(),gr=oe();if(oe()===80&&q){if(!wt(Ba))break}else if(!wi())break;var Zr=jn(gt(gr,Et));(dn||(dn=[])).push(Zr)}return dn&&kt(dn,Un)}function ns(){var q;if(oe()===125){var dn=y.getStartPos(),Un=oe();yn();var Et=jn(gt(Un,dn));q=kt([Et],dn)}return q}function Yu(){if(oe()===26){var q=gt(221);return yn(),jn(q)}var dn=ba(0);if(dn.decorators=us(),dn.modifiers=Vs(!0),xa(130))return Ra(dn,162);if(xa(141))return Ra(dn,163);if(oe()===128||oe()===10){var Un=Wl(dn);if(Un)return Un}if(ml())return Il(dn);if(e.tokenIsIdentifierOrKeyword(oe())||oe()===10||oe()===8||oe()===41||oe()===22){var Et=dn.modifiers&&e.some(dn.modifiers,As);if(Et){for(var gr=0,Zr=dn.modifiers;gr<Zr.length;gr++){var ka=Zr[gr];ka.flags|=8388608}return Ue(8388608,function(){return Hl(dn)})}else return Hl(dn)}return dn.decorators||dn.modifiers?(dn.name=Ut(75,!0,e.Diagnostics.Declaration_expected),zi(dn)):e.Debug.fail("Should not have attempted to parse class member declaration.")}function Qs(){return md(ba(0),213)}function oc(q){return md(q,244)}function md(q,dn){return q.kind=dn,qn(79),q.name=Kl(),q.typeParameters=Dr(),q.heritageClauses=Qu(),qn(18)?(q.members=Zu(),qn(19)):q.members=vn(),jn(q)}function Kl(){return st()&&!sc()?yt():void 0}function sc(){return oe()===112&&ct(ca)}function Qu(){return Ou()?ji(22,Zo):void 0}function Zo(){var q=oe();e.Debug.assert(q===89||q===112);var dn=gt(277);return dn.token=q,yn(),dn.types=ua(7,hd),jn(dn)}function hd(){var q=gt(215);return q.expression=_c(),q.typeArguments=Bi(),jn(q)}function Bi(){return oe()===29?Bn(20,Va,29,31):void 0}function Ou(){return oe()===89||oe()===112}function Zu(){return ji(5,Yu)}function jc(q){return q.kind=245,qn(113),q.name=yt(),q.typeParameters=Dr(),q.heritageClauses=Qu(),q.members=bs(),jn(q)}function Wc(q){return q.kind=246,qn(144),q.name=yt(),q.typeParameters=Dr(),qn(62),q.type=Va(),Wr(),jn(q)}function mu(){var q=ba(282);return q.name=nt(),q.initializer=cn(ya),jn(q)}function Hc(q){return q.kind=247,qn(87),q.name=yt(),qn(18)?(q.members=ua(6,mu),qn(19)):q.members=vn(),jn(q)}function $u(){var q=gt(249);return qn(18)?(q.statements=ji(1,ts),qn(19)):q.statements=vn(),jn(q)}function Pl(q,dn){q.kind=248;var Un=dn&16;return q.flags|=dn,q.name=yt(),q.body=De(24)?Pl(gt(0),4|Un):$u(),jn(q)}function Ml(q){return q.kind=248,oe()===149?(q.name=yt(),q.flags|=1024):(q.name=Oa(),q.name.text=ft(q.name.text)),oe()===18?q.body=$u():Wr(),jn(q)}function ql(q){var dn=0;if(oe()===149)return Ml(q);if(De(135))dn|=16;else if(qn(134),oe()===10)return Ml(q);return Pl(q,dn)}function lc(){return oe()===138&&ct(Pu)}function Pu(){return yn()===20}function ol(){return yn()===43}function ed(q){return q.kind=251,qn(122),qn(135),q.name=yt(),Wr(),jn(q)}function nd(q){qn(95);var dn=y.getStartPos(),Un;return st()&&(Un=yt(),oe()!==27&&oe()!==148)?hu(q,Un):(q.kind=253,(Un||oe()===41||oe()===18)&&(q.importClause=gd(Un,dn),qn(148)),q.moduleSpecifier=cc(),Wr(),jn(q))}function hu(q,dn){return q.kind=252,q.name=dn,qn(62),q.moduleReference=Od(),Wr(),jn(q)}function gd(q,dn){var Un=gt(254,dn);return q&&(Un.name=q),(!Un.name||De(27))&&(Un.namedBindings=oe()===41?Md():Mu(256)),jn(Un)}function Od(){return lc()?Pd():Pt(!1)}function Pd(){var q=gt(263);return qn(138),qn(20),q.expression=cc(),qn(21),jn(q)}function cc(){if(oe()===10){var q=Oa();return q.text=ft(q.text),q}else return br()}function Md(){var q=gt(255);return qn(41),qn(122),q.name=yt(),jn(q)}function Mu(q){var dn=gt(q);return dn.elements=Bn(23,q===256?te:g,18,19),jn(dn)}function g(){return Ve(261)}function te(){return Ve(257)}function Ve(q){var dn=gt(q),Un=e.isKeyword(oe())&&!st(),Et=y.getTokenPos(),gr=y.getTextPos(),Zr=vt();return oe()===122?(dn.propertyName=Zr,qn(122),Un=e.isKeyword(oe())&&!st(),Et=y.getTokenPos(),gr=y.getTextPos(),dn.name=vt()):dn.name=Zr,q===257&&Un&&Kn(Et,gr,e.Diagnostics.Identifier_expected),jn(dn)}function Dn(q){return q.kind=259,De(41)?(qn(148),q.moduleSpecifier=cc()):(q.exportClause=Mu(260),(oe()===148||oe()===10&&!y.hasPrecedingLineBreak())&&(qn(148),q.moduleSpecifier=cc())),Wr(),jn(q)}function rt(q){return q.kind=258,De(62)?q.isExportEquals=!0:qn(83),q.expression=oi(),Wr(),jn(q)}function p(q){q.externalModuleIndicator=e.forEach(q.statements,Be)||Nn(q)}function Be(q){return e.hasModifier(q,1)||q.kind===252&&q.moduleReference.kind===263||q.kind===253||q.kind===258||q.kind===259?q:void 0}function Nn(q){return q.flags&2097152?bt(q):void 0}function bt(q){return Sr(q)?q:H(q,bt)}function Sr(q){return e.isMetaProperty(q)&&q.keywordToken===95&&q.name.escapedText==="meta"}var Yr;(function(q){q[q.SourceElements=0]="SourceElements",q[q.BlockStatements=1]="BlockStatements",q[q.SwitchClauses=2]="SwitchClauses",q[q.SwitchClauseStatements=3]="SwitchClauseStatements",q[q.TypeMembers=4]="TypeMembers",q[q.ClassMembers=5]="ClassMembers",q[q.EnumMembers=6]="EnumMembers",q[q.HeritageClauseElement=7]="HeritageClauseElement",q[q.VariableDeclarations=8]="VariableDeclarations",q[q.ObjectBindingElements=9]="ObjectBindingElements",q[q.ArrayBindingElements=10]="ArrayBindingElements",q[q.ArgumentExpressions=11]="ArgumentExpressions",q[q.ObjectLiteralMembers=12]="ObjectLiteralMembers",q[q.JsxAttributes=13]="JsxAttributes",q[q.JsxChildren=14]="JsxChildren",q[q.ArrayLiteralMembers=15]="ArrayLiteralMembers",q[q.Parameters=16]="Parameters",q[q.JSDocParameters=17]="JSDocParameters",q[q.RestProperties=18]="RestProperties",q[q.TypeParameters=19]="TypeParameters",q[q.TypeArguments=20]="TypeArguments",q[q.TupleElementTypes=21]="TupleElementTypes",q[q.HeritageClauses=22]="HeritageClauses",q[q.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",q[q.Count=24]="Count"})(Yr||(Yr={}));var ra;(function(q){q[q.False=0]="False",q[q.True=1]="True",q[q.Unknown=2]="Unknown"})(ra||(ra={}));var mi;(function(q){function dn(u,we,xn){x(u,99,void 0,1),T=Pn("file.js",99,1,!1),y.setText(u,we,xn),X=y.scan();var at=Un(),Hn=Q;return j(),at?{jsDocTypeExpression:at,diagnostics:Hn}:void 0}q.parseJSDocTypeExpressionForTests=dn;function Un(u){var we=gt(292),xn=(u?De:qn)(18);return we.type=Ue(4194304,lt),(!u||xn)&&Ie(19),en(we),jn(we)}q.parseJSDocTypeExpression=Un;function Et(u,we,xn){x(u,99,void 0,1),T={languageVariant:0,text:u};var at=Ue(4194304,function(){return ps(we,xn)}),Hn=Q;return j(),at?{jsDoc:at,diagnostics:Hn}:void 0}q.parseIsolatedJSDocComment=Et;function gr(u,we,xn){var at,Hn=X,pa=Q.length,Ta=Re,Ga=Ue(4194304,function(){return ps(we,xn)});return Ga&&(Ga.parent=u),Z&131072&&(T.jsDocDiagnostics||(T.jsDocDiagnostics=[]),(at=T.jsDocDiagnostics).push.apply(at,Q)),X=Hn,Q.length=pa,Re=Ta,Ga}q.parseJSDocComment=gr;var Zr;(function(u){u[u.BeginningOfLine=0]="BeginningOfLine",u[u.SawAsterisk=1]="SawAsterisk",u[u.SavingComments=2]="SavingComments",u[u.SavingBackticks=3]="SavingBackticks"})(Zr||(Zr={}));var ka;(function(u){u[u.Property=1]="Property",u[u.Parameter=2]="Parameter",u[u.CallbackParameter=4]="CallbackParameter"})(ka||(ka={}));function ps(u,we){u===void 0&&(u=0);var xn=pe,at=we===void 0?xn.length:u+we;if(we=at-u,e.Debug.assert(u>=0),e.Debug.assert(u<=at),e.Debug.assert(at<=xn.length),!d(xn,u))return;var Hn,pa,Ta,Ga=[];return y.scanRange(u+3,we-5,function(){var er=1,$r,Ur=u-Math.max(xn.lastIndexOf(`
`,u),0)+4;function Ua(Po){$r||($r=Ur),Ga.push(Po),Ur+=Po.length}for(ye();Fd(5););Fd(4)&&(er=0,Ur=0);e:for(;;){switch(oe()){case 59:er===0||er===1?(Ci(Ga),gu(Ac(Ur)),er=0,$r=void 0):Ua(y.getTokenText());break;case 4:Ga.push(y.getTokenText()),er=0,Ur=0;break;case 41:var $a=y.getTokenText();er===1||er===2?(er=2,Ua($a)):(er=1,Ur+=$a.length);break;case 5:var ao=y.getTokenText();er===2?Ga.push(ao):$r!==void 0&&Ur+ao.length>$r&&Ga.push(ao.slice($r-Ur-1)),Ur+=ao.length;break;case 1:break e;default:er=2,Ua(y.getTokenText());break}ye()}return $o(Ga),Ci(Ga),So()});function $o(er){for(;er.length&&(er[0]===`
`||er[0]==="\r");)er.shift()}function Ci(er){for(;er.length&&er[er.length-1].trim()==="";)er.pop()}function So(){var er=gt(301,u);return er.tags=Hn&&kt(Hn,pa,Ta),er.comment=Ga.length?Ga.join(""):void 0,jn(er,at)}function qo(){for(;;){if(ye(),oe()===1)return!0;if(!(oe()===5||oe()===4))return!1}}function El(){if((oe()===5||oe()===4)&&ct(qo))return;for(;oe()===5||oe()===4;)ye()}function Rl(){if((oe()===5||oe()===4)&&ct(qo))return"";for(var er=y.hasPrecedingLineBreak(),$r=!1,Ur="";er&&oe()===41||oe()===5||oe()===4;)Ur+=y.getTokenText(),oe()===4?(er=!0,$r=!0,Ur=""):oe()===41&&(er=!1),ye();return $r?Ur:""}function Ac(er){e.Debug.assert(oe()===59);var $r=y.getTokenPos();ye();var Ur=Ru(void 0),Ua=Rl(),$a;switch(Ur.escapedText){case"author":$a=sl($r,Ur,er);break;case"augments":case"extends":$a=Pp($r,Ur);break;case"class":case"constructor":$a=Kf($r,Ur);break;case"this":$a=km($r,Ur);break;case"enum":$a=Cm($r,Ur);break;case"arg":case"argument":case"param":return Sm($r,Ur,2,er);case"return":case"returns":$a=Gh($r,Ur);break;case"template":$a=Uh($r,Ur);break;case"type":$a=xm($r,Ur);break;case"typedef":$a=Rd($r,Ur,er);break;case"callback":$a=yo($r,Ur,er);break;default:$a=xo($r,Ur);break}return $a.comment||(Ua||(er+=$a.end-$a.pos),$a.comment=kc(er,Ua.slice(er))),$a}function kc(er,$r){var Ur=[],Ua=0,$a;function ao(Sl){$a||($a=er),Ur.push(Sl),er+=Sl.length}$r&&(ao($r),Ua=2);var Po=oe();e:for(;;){switch(Po){case 4:Ua>=1&&(Ua=0,Ur.push(y.getTokenText())),er=0;break;case 59:if(Ua===3){Ur.push(y.getTokenText());break}y.setTextPos(y.getTextPos()-1);case 1:break e;case 5:if(Ua===2||Ua===3)ao(y.getTokenText());else{var Us=y.getTokenText();$a!==void 0&&er+Us.length>$a&&Ur.push(Us.slice($a-er)),er+=Us.length}break;case 18:Ua=2,ct(function(){return ye()===59&&e.tokenIsIdentifierOrKeyword(ye())&&y.getTokenText()==="link"})&&(ao(y.getTokenText()),ye(),ao(y.getTokenText()),ye()),ao(y.getTokenText());break;case 61:Ua===3?Ua=2:Ua=3,ao(y.getTokenText());break;case 41:if(Ua===0){Ua=1,er+=1;break}default:Ua!==3&&(Ua=2),ao(y.getTokenText());break}Po=ye()}return $o(Ur),Ci(Ur),Ur.length===0?void 0:Ur.join("")}function xo(er,$r){var Ur=gt(304,er);return Ur.tagName=$r,jn(Ur)}function gu(er){if(!er)return;Hn?Hn.push(er):(Hn=[er],pa=er.pos),Ta=er.end}function uc(){return Rl(),oe()===18?Un():void 0}function Tl(){var er=Fd(22);er&&El();var $r=Fd(61),Ur=Dm();return $r&&Ht(61),er&&(El(),_n(62)&&br(),qn(23)),{name:Ur,isBracketed:er}}function Wf(er){switch(er.kind){case 140:return!0;case 173:return Wf(er.elementType);default:return e.isTypeReferenceNode(er)&&e.isIdentifier(er.typeName)&&er.typeName.escapedText==="Object"}}function Sm(er,$r,Ur,Ua){var $a=uc(),ao=!$a;Rl();var Po=Tl(),Us=Po.name,Sl=Po.isBracketed;El(),ao&&($a=uc());var yd=Ur===1?gt(316,er):gt(310,er),yu=kc(Ua+y.getStartPos()-er),hf=Ur!==4&&pf($a,Us,Ur,Ua);return hf&&($a=hf,ao=!0),yd.tagName=$r,yd.typeExpression=$a,yd.name=Us,yd.isNameFirst=ao,yd.isBracketed=Sl,yd.comment=yu,jn(yd)}function pf(er,$r,Ur,Ua){if(er&&Wf(er.type)){for(var $a=gt(292,y.getTokenPos()),ao=void 0,Po=void 0,Us=y.getStartPos(),Sl=void 0;ao=wt(function(){return qf(Ur,Ua,$r)});)(ao.kind===310||ao.kind===316)&&(Sl=e.append(Sl,ao));if(Sl)return Po=gt(302,Us),Po.jsDocPropertyTags=Sl,er.type.kind===173&&(Po.isArrayType=!0),$a.type=jn(Po),jn($a)}}function Gh(er,$r){e.some(Hn,e.isJSDocReturnTag)&&Kn($r.pos,y.getTokenPos(),e.Diagnostics._0_tag_already_specified,$r.escapedText);var Ur=gt(311,er);return Ur.tagName=$r,Ur.typeExpression=uc(),jn(Ur)}function xm(er,$r){e.some(Hn,e.isJSDocTypeTag)&&Kn($r.pos,y.getTokenPos(),e.Diagnostics._0_tag_already_specified,$r.escapedText);var Ur=gt(313,er);return Ur.tagName=$r,Ur.typeExpression=Un(!0),jn(Ur)}function sl(er,$r,Ur){var Ua=gt(306,er);Ua.tagName=$r;var $a=wt(function(){return wm()});if(!$a)return jn(Ua);if(Ua.comment=$a,ct(function(){return yn()!==4})){var ao=kc(Ur);ao&&(Ua.comment+=ao)}return jn(Ua)}function wm(){var er=[],$r=!1,Ur=!1,Ua=y.getToken();e:for(;;){switch(Ua){case 75:case 5:case 24:case 59:er.push(y.getTokenText());break;case 29:if($r||Ur)return;$r=!0,er.push(y.getTokenText());break;case 31:if(!$r||Ur)return;Ur=!0,er.push(y.getTokenText()),y.setTextPos(y.getTokenPos()+1);break e;case 4:case 1:break e}Ua=ye()}if($r&&Ur)return er.length===0?void 0:er.join("")}function Pp(er,$r){var Ur=gt(305,er);return Ur.tagName=$r,Ur.class=Am(),jn(Ur)}function Am(){var er=De(18),$r=gt(215);$r.expression=Hf(),$r.typeArguments=Bi();var Ur=jn($r);return er&&qn(19),Ur}function Hf(){for(var er=Ru();De(24);){var $r=gt(193,er.pos);$r.expression=er,$r.name=Ru(),er=jn($r)}return er}function Kf(er,$r){var Ur=gt(307,er);return Ur.tagName=$r,jn(Ur)}function km(er,$r){var Ur=gt(312,er);return Ur.tagName=$r,Ur.typeExpression=Un(!0),El(),jn(Ur)}function Cm(er,$r){var Ur=gt(309,er);return Ur.tagName=$r,Ur.typeExpression=Un(!0),El(),jn(Ur)}function Rd(er,$r,Ur){var Ua=uc();Rl();var $a=gt(315,er);$a.tagName=$r,$a.fullName=Mp(),$a.name=Rp($a.fullName),El(),$a.comment=kc(Ur),$a.typeExpression=Ua;var ao;if(!Ua||Wf(Ua.type)){for(var Po=void 0,Us=void 0,Sl=void 0;Po=wt(function(){return Bh(Ur)});)if(Us||(Us=gt(302,er)),Po.kind===313){if(Sl)break;Sl=Po}else Us.jsDocPropertyTags=e.append(Us.jsDocPropertyTags,Po);Us&&(Ua&&Ua.type.kind===173&&(Us.isArrayType=!0),$a.typeExpression=Sl&&Sl.typeExpression&&!Wf(Sl.typeExpression.type)?Sl.typeExpression:jn(Us),ao=$a.typeExpression.end)}return jn($a,ao||$a.comment!==void 0?y.getStartPos():($a.fullName||$a.typeExpression||$a.tagName).end)}function Mp(er){var $r=y.getTokenPos();if(!e.tokenIsIdentifierOrKeyword(oe()))return;var Ur=Ru();if(De(24)){var Ua=gt(248,$r);return er&&(Ua.flags|=4),Ua.name=Ur,Ua.body=Mp(!0),jn(Ua)}return er&&(Ur.isInJSDocNamespace=!0),Ur}function yo(er,$r,Ur){var Ua=gt(308,er);Ua.tagName=$r,Ua.fullName=Mp(),Ua.name=Rp(Ua.fullName),El(),Ua.comment=kc(Ur);var $a,ao=gt(303,er);for(ao.parameters=[];$a=wt(function(){return qf(4,Ur)});)ao.parameters=e.append(ao.parameters,$a);var Po=wt(function(){if(Fd(59)){var Us=Ac(Ur);if(Us&&Us.kind===311)return Us}});return Po&&(ao.type=Po),Ua.typeExpression=jn(ao),jn(Ua)}function Rp(er){if(er)for(var $r=er;;){if(e.isIdentifier($r)||!$r.body)return e.isIdentifier($r)?$r:$r.name;$r=$r.body}}function mf(er,$r){for(;!e.isIdentifier(er)||!e.isIdentifier($r);)if(!e.isIdentifier(er)&&!e.isIdentifier($r)&&er.right.escapedText===$r.right.escapedText)er=er.left,$r=$r.left;else return!1;return er.escapedText===$r.escapedText}function Bh(er){return qf(1,er)}function qf(er,$r,Ur){for(var Ua=!0,$a=!1;;)switch(ye()){case 59:if(Ua){var ao=Vh(er,$r);return ao&&(ao.kind===310||ao.kind===316)&&er!==4&&Ur&&(e.isIdentifier(ao.name)||!mf(Ur,ao.name.left))?!1:ao}$a=!1;break;case 4:Ua=!0,$a=!1;break;case 41:$a&&(Ua=!1),$a=!0;break;case 75:Ua=!1;break;case 1:return!1}}function Vh(er,$r){e.Debug.assert(oe()===59);var Ur=y.getStartPos();ye();var Ua=Ru();El();var $a;switch(Ua.escapedText){case"type":return er===1&&xm(Ur,Ua);case"prop":case"property":$a=1;break;case"arg":case"argument":case"param":$a=2|4;break;default:return!1}return er&$a?Sm(Ur,Ua,er,$r):!1}function Uh(er,$r){var Ur;oe()===18&&(Ur=Un());var Ua=[],$a=le();do{El();var ao=gt(154);ao.name=Ru(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),jn(ao),El(),Ua.push(ao)}while(Fd(27));var Po=gt(314,er);return Po.tagName=$r,Po.constraint=Ur,Po.typeParameters=kt(Ua,$a),jn(Po),Po}function Fd(er){return oe()===er?(ye(),!0):!1}function Dm(){var er=Ru();for(De(22)&&qn(23);De(24);){var $r=Ru();De(22)&&qn(23),er=rr(er,$r)}return er}function Ru(er){if(!e.tokenIsIdentifierOrKeyword(oe()))return Ut(75,!er,er||e.Diagnostics.Identifier_expected);U++;var $r=y.getTokenPos(),Ur=y.getTextPos(),Ua=gt(75,$r);return oe()!==75&&(Ua.originalKeywordKind=oe()),Ua.escapedText=e.escapeLeadingUnderscores(ft(y.getTokenValue())),jn(Ua,Ur),ye(),Ua}}})(mi=m.JSDocParser||(m.JSDocParser={}))})(P||(P={}));var h;(function(m){function y(S,v,U,de){if(de=de||e.Debug.shouldAssert(2),N(S,v,U,de),e.textChangeRangeIsUnchanged(U))return S;if(S.statements.length===0)return P.parseSourceFile(S.fileName,v,S.languageVersion,void 0,!0,S.scriptKind);var Ce=S;e.Debug.assert(!Ce.hasBeenIncrementallyParsed),Ce.hasBeenIncrementallyParsed=!0;var Z=S.text,Re=X(S),Ae=T(S,U);N(S,v,Ae,de),e.Debug.assert(Ae.span.start<=U.span.start),e.Debug.assert(e.textSpanEnd(Ae.span)===e.textSpanEnd(U.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(Ae))===e.textSpanEnd(e.textChangeRangeNewSpan(U)));var We=e.textChangeRangeNewSpan(Ae).length-Ae.span.length;D(Ce,Ae.span.start,e.textSpanEnd(Ae.span),e.textSpanEnd(e.textChangeRangeNewSpan(Ae)),We,Z,v,de);var be=P.parseSourceFile(S.fileName,v,S.languageVersion,Re,!0,S.scriptKind);return be}m.updateSourceFile=y;function L(S,v,U,de,Ce,Z){v?Ae(S):Re(S);return;function Re(We){var be="";if(Z&&C(We)&&(be=de.substring(We.pos,We.end)),We._children&&(We._children=void 0),We.pos+=U,We.end+=U,Z&&C(We)&&e.Debug.assert(be===Ce.substring(We.pos,We.end)),H(We,Re,Ae),e.hasJSDocNodes(We))for(var Ge=0,x=We.jsDoc;Ge<x.length;Ge++){var j=x[Ge];Re(j)}b(We,Z)}function Ae(We){We._children=void 0,We.pos+=U,We.end+=U;for(var be=0,Ge=We;be<Ge.length;be++){var x=Ge[be];Re(x)}}}function C(S){switch(S.kind){case 10:case 8:case 75:return!0}return!1}function _(S,v,U,de,Ce){e.Debug.assert(S.end>=v,"Adjusting an element that was entirely before the change range"),e.Debug.assert(S.pos<=U,"Adjusting an element that was entirely after the change range"),e.Debug.assert(S.pos<=S.end),S.pos=Math.min(S.pos,de),S.end>=U?S.end+=Ce:S.end=Math.min(S.end,de),e.Debug.assert(S.pos<=S.end),S.parent&&(e.Debug.assert(S.pos>=S.parent.pos),e.Debug.assert(S.end<=S.parent.end))}function b(S,v){if(v){var U=S.pos,de=function(We){e.Debug.assert(We.pos>=U),U=We.end};if(e.hasJSDocNodes(S))for(var Ce=0,Z=S.jsDoc;Ce<Z.length;Ce++){var Re=Z[Ce];de(Re)}H(S,de),e.Debug.assert(U<=S.end)}}function D(S,v,U,de,Ce,Z,Re,Ae){We(S);return;function We(Ge){if(e.Debug.assert(Ge.pos<=Ge.end),Ge.pos>U){L(Ge,!1,Ce,Z,Re,Ae);return}var x=Ge.end;if(x>=v){if(Ge.intersectsChange=!0,Ge._children=void 0,_(Ge,v,U,de,Ce),H(Ge,We,be),e.hasJSDocNodes(Ge))for(var j=0,Oe=Ge.jsDoc;j<Oe.length;j++){var a=Oe[j];We(a)}b(Ge,Ae);return}e.Debug.assert(x<v)}function be(Ge){if(e.Debug.assert(Ge.pos<=Ge.end),Ge.pos>U){L(Ge,!0,Ce,Z,Re,Ae);return}var x=Ge.end;if(x>=v){Ge.intersectsChange=!0,Ge._children=void 0,_(Ge,v,U,de,Ce);for(var j=0,Oe=Ge;j<Oe.length;j++){var a=Oe[j];We(a)}return}e.Debug.assert(x<v)}}function T(S,v){for(var U=1,de=v.span.start,Ce=0;de>0&&Ce<=U;Ce++){var Z=Q(S,de);e.Debug.assert(Z.pos<=de);var Re=Z.pos;de=Math.max(0,Re-1)}var Ae=e.createTextSpanFromBounds(de,e.textSpanEnd(v.span)),We=v.newLength+(v.span.start-de);return e.createTextChangeRange(Ae,We)}function Q(S,v){var U=S,de;if(H(S,Re),de){var Ce=Z(de);Ce.pos>U.pos&&(U=Ce)}return U;function Z(Ae){for(;;){var We=e.getLastChild(Ae);if(We)Ae=We;else return Ae}}function Re(Ae){if(e.nodeIsMissing(Ae))return;if(Ae.pos<=v){if(Ae.pos>=U.pos&&(U=Ae),v<Ae.end)return H(Ae,Re),!0;e.Debug.assert(Ae.end<=v),de=Ae}else return e.Debug.assert(Ae.pos>v),!0}}function N(S,v,U,de){var Ce=S.text;if(U&&(e.Debug.assert(Ce.length-U.span.length+U.newLength===v.length),de||e.Debug.shouldAssert(3))){var Z=Ce.substr(0,U.span.start),Re=v.substr(0,U.span.start);e.Debug.assert(Z===Re);var Ae=Ce.substring(e.textSpanEnd(U.span),Ce.length),We=v.substring(e.textSpanEnd(e.textChangeRangeNewSpan(U)),v.length);e.Debug.assert(Ae===We)}}function X(S){var v=S.statements,U=0;e.Debug.assert(U<v.length);var de=v[U],Ce=-1;return{currentNode:function(Ae){return Ae!==Ce&&(de&&de.end===Ae&&U<v.length-1&&(U++,de=v[U]),(!de||de.pos!==Ae)&&Z(Ae)),Ce=Ae,e.Debug.assert(!de||de.pos===Ae),de}};function Z(Re){v=void 0,U=-1,de=void 0,H(S,Ae,We);return;function Ae(be){return Re>=be.pos&&Re<be.end?(H(be,Ae,We),!0):!1}function We(be){if(Re>=be.pos&&Re<be.end)for(var Ge=0;Ge<be.length;Ge++){var x=be[Ge];if(x){if(x.pos===Re)return v=be,U=Ge,de=x,!0;if(x.pos<Re&&Re<x.end)return H(x,Ae,We),!0}}return!1}}}var pe;(function(S){S[S.Value=-1]="Value"})(pe||(pe={}))})(h||(h={}));function Y(m){return e.fileExtensionIs(m,".d.ts")}e.isDeclarationFileName=Y;function ne(m,y){for(var L=[],C=0,_=e.getLeadingCommentRanges(y,0)||e.emptyArray;C<_.length;C++){var b=_[C],D=y.substring(b.pos,b.end);z(L,b,D)}m.pragmas=e.createMap();for(var T=0,Q=L;T<Q.length;T++){var N=Q[T];if(m.pragmas.has(N.name)){var X=m.pragmas.get(N.name);X instanceof Array?X.push(N.args):m.pragmas.set(N.name,[X,N.args]);continue}m.pragmas.set(N.name,N.args)}}e.processCommentPragmas=ne;function $(m,y){m.checkJsDirective=void 0,m.referencedFiles=[],m.typeReferenceDirectives=[],m.libReferenceDirectives=[],m.amdDependencies=[],m.hasNoDefaultLib=!1,m.pragmas.forEach(function(L,C){switch(C){case"reference":{var _=m.referencedFiles,b=m.typeReferenceDirectives,D=m.libReferenceDirectives;e.forEach(e.toArray(L),function(X){var pe=X.arguments,S=pe.types,v=pe.lib,U=pe.path;X.arguments["no-default-lib"]?m.hasNoDefaultLib=!0:S?b.push({pos:S.pos,end:S.end,fileName:S.value}):v?D.push({pos:v.pos,end:v.end,fileName:v.value}):U?_.push({pos:U.pos,end:U.end,fileName:U.value}):y(X.range.pos,X.range.end-X.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)});break}case"amd-dependency":{m.amdDependencies=e.map(e.toArray(L),function(X){return{name:X.arguments.name,path:X.arguments.path}});break}case"amd-module":{if(L instanceof Array)for(var T=0,Q=L;T<Q.length;T++){var N=Q[T];m.moduleName&&y(N.range.pos,N.range.end-N.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),m.moduleName=N.arguments.name}else m.moduleName=L.arguments.name;break}case"ts-nocheck":case"ts-check":{e.forEach(e.toArray(L),function(X){(!m.checkJsDirective||X.range.pos>m.checkJsDirective.pos)&&(m.checkJsDirective={enabled:C==="ts-check",end:X.range.end,pos:X.range.pos})});break}case"jsx":return;default:e.Debug.fail("Unhandled pragma kind")}})}e.processPragmasIntoFields=$;var J=e.createMap();function fe(m){if(J.has(m))return J.get(m);var y=new RegExp("(\\s"+m+`\\s*=\\s*)('|")(.+?)\\2`,"im");return J.set(m,y),y}var R=/^\/\/\/\s*<(\S+)\s.*?\/>/im,K=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function z(m,y,L){var C=y.kind===2&&R.exec(L);if(C){var _=C[1].toLowerCase(),b=e.commentPragmas[_];if(!b||!(b.kind&1))return;if(b.args){for(var D={},T=0,Q=b.args;T<Q.length;T++){var N=Q[T],X=fe(N.name),pe=X.exec(L);if(!pe&&!N.optional)return;if(pe)if(N.captureSpan){var S=y.pos+pe.index+pe[1].length+pe[2].length;D[N.name]={value:pe[3],pos:S,end:S+pe[3].length}}else D[N.name]=pe[3]}m.push({name:_,args:{arguments:D,range:y}})}else m.push({name:_,args:{arguments:{},range:y}});return}var v=y.kind===2&&K.exec(L);if(v)return Ee(m,y,2,v);if(y.kind===3)for(var U=/\s*@(\S+)\s*(.*)\s*$/gim,de=void 0;de=U.exec(L);)Ee(m,y,4,de)}function Ee(m,y,L,C){if(!C)return;var _=C[1].toLowerCase(),b=e.commentPragmas[_];if(!b||!(b.kind&L))return;var D=C[2],T=B(b,D);if(T==="fail")return;m.push({name:_,args:{arguments:T,range:y}});return}function B(m,y){if(!y)return{};if(!m.args)return{};for(var L=y.split(/\s+/),C={},_=0;_<m.args.length;_++){var b=m.args[_];if(!L[_]&&!b.optional)return"fail";if(b.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");C[b.name]=L[_]}return C}function V(m,y){return m.kind!==y.kind?!1:m.kind===75?m.escapedText===y.escapedText:m.kind===103?!0:m.name.escapedText===y.name.escapedText&&V(m.expression,y.expression)}e.tagNamesAreEquivalent=V})(ln||(ln={}));var ln;(function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var o=[["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"],["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"],["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.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.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.esnext.bigint.d.ts"]];e.libs=o.map(function(Xe){return Xe[0]}),e.libMap=e.createMapFromEntries(o),e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Generates_a_CPU_profile},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us}],e.optionDeclarations=Or(e.commonOptionsWithBuild,[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing},{name:"target",shortName:"t",type:e.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,esnext:99}),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT},{name:"module",shortName:"m",type:e.createMapFromTemplate({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,esnext:e.ModuleKind.ESNext}),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:e.createMapFromTemplate({preserve:1,"react-native":3,react:2}),affectsSourceFile:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files,transpileOptionValue:void 0},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_project_compilation,transpileOptionValue:void 0},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_file_to_store_incremental_compilation_information,transpileOptionValue:void 0},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs,transpileOptionValue:void 0},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule,transpileOptionValue:!0},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:e.createMapFromTemplate({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic}),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime,transpileOptionValue:void 0},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,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.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"resolveJsonModule",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"newLine",type:e.createMapFromTemplate({crlf:0,lf:1}),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts,transpileOptionValue:!0},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files,transpileOptionValue:!0},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported,transpileOptionValue:void 0},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files,transpileOptionValue:void 0},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_class_fields_with_Define_instead_of_Set},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}]),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(Xe){return!!Xe.affectsSemanticDiagnostics}),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter(function(Xe){return!!Xe.affectsEmit}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(Xe){return!!Xe.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(Xe){return!!Xe.affectsSourceFile||!!Xe.affectsModuleResolution||!!Xe.affectsBindDiagnostics}),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter(function(Xe){return e.hasProperty(Xe,"transpileOptionValue")}),e.buildOpts=Or(e.commonOptionsWithBuild,[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}}],e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0};var F;function qe(Xe){return Xe&&Xe.enableAutoDiscovery!==void 0&&Xe.enable===void 0?{enable:Xe.enableAutoDiscovery,include:Xe.include||[],exclude:Xe.exclude||[]}:Xe}e.convertEnableAutoDiscoveryToEnable=qe;function Se(){return F||(F=Fe(e.optionDeclarations))}e.getOptionNameMap=Se;function Fe(Xe){var pn=e.createMap(),le=e.createMap();return e.forEach(Xe,function(oe){pn.set(oe.name.toLowerCase(),oe),oe.shortName&&le.set(oe.shortName,oe.name)}),{optionNameMap:pn,shortOptionNames:le}}e.createOptionNameMap=Fe;function He(Xe){return ve(Xe,e.createCompilerDiagnostic)}e.createCompilerDiagnosticForInvalidCustomType=He;function ve(Xe,pn){var le=e.arrayFrom(Xe.type.keys()).map(function(oe){return"'"+oe+"'"}).join(", ");return pn(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+Xe.name,le)}function ie(Xe,pn,le){return Ze(Xe,cn(pn||""),le)}e.parseCustomTypeOption=ie;function d(Xe,pn,le){if(pn===void 0&&(pn=""),pn=cn(pn),e.startsWith(pn,"-"))return;if(pn==="")return[];var oe=pn.split(",");switch(Xe.element.type){case"number":return e.map(oe,parseInt);case"string":return e.map(oe,function(kn){return kn||""});default:return e.mapDefined(oe,function(kn){return ie(Xe.element,kn,le)})}}e.parseListTypeOption=d;function H(Xe,pn,le,oe){var kn=pn[0],yn=pn[1],ye={},mn=[],un=[];return Mn(le),{options:ye,fileNames:mn,errors:un};function Mn(Vn){for(var ut=0;ut<Vn.length;){var dt=Vn[ut];if(ut++,dt.charCodeAt(0)===64)tt(dt.slice(1));else if(dt.charCodeAt(0)===45){var ot=_e(Xe,dt.slice(dt.charCodeAt(1)===45?2:1),!0);if(ot)if(ot.isTSConfigOnly)un.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file,ot.name));else{!Vn[ut]&&ot.type!=="boolean"&&un.push(e.createCompilerDiagnostic(yn,ot.name));switch(ot.type){case"number":ye[ot.name]=parseInt(Vn[ut]),ut++;break;case"boolean":var ct=Vn[ut];ye[ot.name]=ct!=="false",(ct==="false"||ct==="true")&&ut++;break;case"string":ye[ot.name]=Vn[ut]||"",ut++;break;case"list":var wt=d(ot,Vn[ut],un);ye[ot.name]=wt||[],wt&&ut++;break;default:ye[ot.name]=ie(ot,Vn[ut],un),ut++;break}}else un.push(e.createCompilerDiagnostic(kn,dt))}else mn.push(dt)}}function tt(Vn){var ut=oe?oe(Vn):e.sys.readFile(Vn);if(!ut){un.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,Vn));return}for(var dt=[],ot=0;;){for(;ot<ut.length&&ut.charCodeAt(ot)<=32;)ot++;if(ot>=ut.length)break;var ct=ot;if(ut.charCodeAt(ct)===34){for(ot++;ot<ut.length&&ut.charCodeAt(ot)!==34;)ot++;ot<ut.length?(dt.push(ut.substring(ct+1,ot)),ot++):un.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,Vn))}else{for(;ut.charCodeAt(ot)>32;)ot++;dt.push(ut.substring(ct,ot))}}Mn(dt)}}function Pe(Xe,pn){return H(Se,[e.Diagnostics.Unknown_compiler_option_0,e.Diagnostics.Compiler_option_0_expects_an_argument],Xe,pn)}e.parseCommandLine=Pe;function I(Xe,pn){return _e(Se,Xe,pn)}e.getOptionFromName=I;function _e(Xe,pn,le){le===void 0&&(le=!1),pn=pn.toLowerCase();var oe=Xe(),kn=oe.optionNameMap,yn=oe.shortOptionNames;if(le){var ye=yn.get(pn);ye!==void 0&&(pn=ye)}return kn.get(pn)}function re(Xe){var pn,le=function(){return pn||(pn=Fe(e.buildOpts))},oe=H(le,[e.Diagnostics.Unknown_build_option_0,e.Diagnostics.Build_option_0_requires_a_value_of_type_1],Xe),kn=oe.options,yn=oe.fileNames,ye=oe.errors,mn=kn;return yn.length===0&&yn.push("."),mn.clean&&mn.force&&ye.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),mn.clean&&mn.verbose&&ye.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),mn.clean&&mn.watch&&ye.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),mn.watch&&mn.dry&&ye.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:mn,projects:yn,errors:ye}}e.parseBuildCommand=re;function se(Xe){for(var pn=[],le=1;le<arguments.length;le++)pn[le-1]=arguments[le];var oe=e.createCompilerDiagnostic.apply(void 0,arguments);return oe.messageText}e.getDiagnosticText=se;function w(Xe,pn,le,oe){var kn;try{kn=le.readFile(Xe)}catch(un){var yn=e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,Xe,un.message);le.onUnRecoverableConfigFileDiagnostic(yn);return}if(!kn){var yn=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,Xe);le.onUnRecoverableConfigFileDiagnostic(yn);return}var ye=e.parseJsonText(Xe,kn),mn=le.getCurrentDirectory();return ye.path=e.toPath(Xe,mn,e.createGetCanonicalFileName(le.useCaseSensitiveFileNames)),ye.resolvedPath=ye.path,ye.originalFileName=ye.fileName,T(ye,le,e.getNormalizedAbsolutePath(e.getDirectoryPath(Xe),mn),pn,e.getNormalizedAbsolutePath(Xe,mn),void 0,void 0,oe)}e.getParsedCommandLineOfConfigFile=w;function k(Xe,pn){var le=Y(Xe,pn);return e.isString(le)?P(Xe,le):{config:{},error:le}}e.readConfigFile=k;function P(Xe,pn){var le=e.parseJsonText(Xe,pn);return{config:fe(le,le.parseDiagnostics),error:le.parseDiagnostics.length?le.parseDiagnostics[0]:void 0}}e.parseConfigFileTextToJson=P;function h(Xe,pn){var le=Y(Xe,pn);return e.isString(le)?e.parseJsonText(Xe,le):{parseDiagnostics:[le]}}e.readJsonConfigFile=h;function Y(Xe,pn){var le;try{le=pn(Xe)}catch(oe){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,Xe,oe.message)}return le===void 0?e.createCompilerDiagnostic(e.Diagnostics.The_specified_path_does_not_exist_Colon_0,Xe):le}function ne(Xe){return e.arrayToMap(Xe,function(pn){return pn.name})}var $;function J(){return $===void 0&&($={name:void 0,type:"object",elementOptions:ne([{name:"compilerOptions",type:"object",elementOptions:ne(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:ne(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:ne(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])}),$}function fe(Xe,pn){return R(Xe,pn,!0,void 0,void 0)}e.convertToObject=fe;function R(Xe,pn,le,oe,kn){if(!Xe.statements.length)return le?{}:void 0;return un(Xe.statements[0].expression,oe);function yn(tt){return oe&&oe.elementOptions===tt}function ye(tt,Vn,ut,dt){for(var ot=le?{}:void 0,ct=0,wt=tt.properties;ct<wt.length;ct++){var st=wt[ct];if(st.kind!==279){pn.push(e.createDiagnosticForNodeInSourceFile(Xe,st,e.Diagnostics.Property_assignment_expected));continue}st.questionToken&&pn.push(e.createDiagnosticForNodeInSourceFile(Xe,st.questionToken,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?")),Mn(st.name)||pn.push(e.createDiagnosticForNodeInSourceFile(Xe,st.name,e.Diagnostics.String_literal_with_double_quotes_expected));var qn=e.getTextOfPropertyName(st.name),Ie=qn&&e.unescapeLeadingUnderscores(qn),De=Ie&&Vn?Vn.get(Ie):void 0;Ie&&ut&&!De&&pn.push(e.createDiagnosticForNodeInSourceFile(Xe,st.name,ut,Ie));var _n=un(st.initializer,De);if(typeof Ie!="undefined"&&(le&&(ot[Ie]=_n),kn&&(dt||yn(Vn)))){var _t=z(De,_n);dt?_t&&kn.onSetValidOptionKeyValueInParent(dt,De,_n):yn(Vn)&&(_t?kn.onSetValidOptionKeyValueInRoot(Ie,st.name,_n,st.initializer):De||kn.onSetUnknownOptionKeyValueInRoot(Ie,st.name,_n,st.initializer))}}return ot}function mn(tt,Vn){return le?e.filter(tt.map(function(ut){return un(ut,Vn)}),function(ut){return ut!==void 0}):tt.forEach(function(ut){return un(ut,Vn)})}function un(tt,Vn){switch(tt.kind){case 105:return Ie(Vn&&Vn.type!=="boolean"),!0;case 90:return Ie(Vn&&Vn.type!=="boolean"),!1;case 99:return Ie(Vn&&Vn.name==="extends"),null;case 10:Mn(tt)||pn.push(e.createDiagnosticForNodeInSourceFile(Xe,tt,e.Diagnostics.String_literal_with_double_quotes_expected)),Ie(Vn&&e.isString(Vn.type)&&Vn.type!=="string");var ut=tt.text;if(Vn&&!e.isString(Vn.type)){var dt=Vn;dt.type.has(ut.toLowerCase())||pn.push(ve(dt,function(De,_n,_t){return e.createDiagnosticForNodeInSourceFile(Xe,tt,De,_n,_t)}))}return ut;case 8:return Ie(Vn&&Vn.type!=="number"),Number(tt.text);case 206:if(tt.operator!==40||tt.operand.kind!==8)break;return Ie(Vn&&Vn.type!=="number"),-Number(tt.operand.text);case 192:Ie(Vn&&Vn.type!=="object");var ot=tt;if(Vn){var ct=Vn,wt=ct.elementOptions,st=ct.extraKeyDiagnosticMessage,qn=ct.name;return ye(ot,wt,st,qn)}else return ye(ot,void 0,void 0,void 0);case 191:return Ie(Vn&&Vn.type!=="list"),mn(tt.elements,Vn&&Vn.element)}Vn?Ie(!0):pn.push(e.createDiagnosticForNodeInSourceFile(Xe,tt,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));return;function Ie(De){De&&pn.push(e.createDiagnosticForNodeInSourceFile(Xe,tt,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Vn.name,K(Vn)))}}function Mn(tt){return e.isStringLiteral(tt)&&e.isStringDoubleQuoted(tt,Xe)}}e.convertToObjectWorker=R;function K(Xe){return Xe.type==="list"?"Array":e.isString(Xe.type)?Xe.type:"string"}function z(Xe,pn){if(Xe){if(N(pn))return!0;if(Xe.type==="list")return e.isArray(pn);var le=e.isString(Xe.type)?Xe.type:"string";return typeof pn===le}return!1}function Ee(Xe,pn,le){var oe=e.createGetCanonicalFileName(le.useCaseSensitiveFileNames),kn=e.map(e.filter(Xe.fileNames,!Xe.configFileSpecs||!Xe.configFileSpecs.validatedIncludeSpecs?function(mn){return!0}:V(pn,Xe.configFileSpecs.validatedIncludeSpecs,Xe.configFileSpecs.validatedExcludeSpecs,le)),function(mn){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(pn,le.getCurrentDirectory()),e.getNormalizedAbsolutePath(mn,le.getCurrentDirectory()),oe)}),yn=L(Xe.options,{configFilePath:e.getNormalizedAbsolutePath(pn,le.getCurrentDirectory()),useCaseSensitiveFileNames:le.useCaseSensitiveFileNames}),ye=ma(ma({compilerOptions:ma(ma({},e.arrayFrom(yn.entries()).reduce(function(mn,un){var Mn;return ma(ma({},mn),(Mn={},Mn[un[0]]=un[1],Mn))},{})),{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}),references:e.map(Xe.projectReferences,function(mn){return ma(ma({},mn),{path:mn.originalPath?mn.originalPath:"",originalPath:void 0})}),files:e.length(kn)?kn:void 0},Xe.configFileSpecs?{include:B(Xe.configFileSpecs.validatedIncludeSpecs),exclude:Xe.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:Xe.compileOnSave?!0:void 0});return ye}e.convertToTSConfig=Ee;function B(Xe){return e.length(Xe)?e.length(Xe)!==1?Xe:Xe[0]==="**/*"?void 0:Xe:void 0}function V(Xe,pn,le,oe){if(!pn)return function(mn){return!0};var kn=e.getFileMatcherPatterns(Xe,le,pn,oe.useCaseSensitiveFileNames,oe.getCurrentDirectory()),yn=kn.excludePattern&&e.getRegexFromPattern(kn.excludePattern,oe.useCaseSensitiveFileNames),ye=kn.includeFilePattern&&e.getRegexFromPattern(kn.includeFilePattern,oe.useCaseSensitiveFileNames);return ye?yn?function(mn){return!(ye.test(mn)&&!yn.test(mn))}:function(mn){return!ye.test(mn)}:yn?function(mn){return yn.test(mn)}:function(mn){return!0}}function m(Xe){return Xe.type==="string"||Xe.type==="number"||Xe.type==="boolean"||Xe.type==="object"?void 0:Xe.type==="list"?m(Xe.element):Xe.type}function y(Xe,pn){return e.forEachEntry(pn,function(le,oe){if(le===Xe)return oe})}function L(Xe,pn){var le=e.createMap(),oe=Se().optionNameMap,kn=pn&&e.createGetCanonicalFileName(pn.useCaseSensitiveFileNames),yn=function(un){if(e.hasProperty(Xe,un)){if(oe.has(un)&&oe.get(un).category===e.Diagnostics.Command_line_Options)return"continue";var Mn=Xe[un],tt=oe.get(un.toLowerCase());if(tt){var Vn=m(tt);Vn?tt.type==="list"?le.set(un,Mn.map(function(ut){return y(ut,Vn)})):le.set(un,y(Mn,Vn)):pn&&tt.isFilePath?le.set(un,e.getRelativePathFromFile(pn.configFilePath,e.getNormalizedAbsolutePath(Mn,e.getDirectoryPath(pn.configFilePath)),kn)):le.set(un,Mn)}}};for(var ye in Xe)yn(ye);return le}function C(Xe,pn,le){var oe=e.extend(Xe,e.defaultInitCompilerOptions),kn=L(oe);return un();function yn(Mn){switch(Mn.type){case"number":return 1;case"boolean":return!0;case"string":return Mn.isFilePath?"./":"";case"list":return[];case"object":return{};default:var tt=Mn.type.keys().next();return tt.done?e.Debug.fail("Expected 'option.type' to have entries."):tt.value}}function ye(Mn){return Array(Mn+1).join(" ")}function mn(Mn){var tt=Mn.category,Vn=Mn.name;return tt!==void 0&&tt!==e.Diagnostics.Command_line_Options&&(tt!==e.Diagnostics.Advanced_Options||kn.has(Vn))}function un(){for(var Mn=e.createMultiMap(),tt=0,Vn=e.optionDeclarations;tt<Vn.length;tt++){var ut=Vn[tt],dt=ut.category;mn(ut)&&Mn.add(e.getLocaleSpecificMessage(dt),ut)}var ot=0,ct=0,wt=[],st=[];Mn.forEach(function(It,Ht){wt.length!==0&&(wt.push(""),st.push("")),wt.push("/* "+Ht+" */"),st.push("");for(var nr=0,vr=It;nr<vr.length;nr++){var Qr=vr[nr],Wr=void 0;kn.has(Qr.name)?Wr='"'+Qr.name+'": '+JSON.stringify(kn.get(Qr.name))+((ct+=1)===kn.size?"":","):Wr='// "'+Qr.name+'": '+JSON.stringify(yn(Qr))+",",wt.push(Wr),st.push("/* "+(Qr.description&&e.getLocaleSpecificMessage(Qr.description)||Qr.name)+" */"),ot=Math.max(Wr.length,ot)}});var qn=ye(2),Ie=[];Ie.push("{"),Ie.push(qn+'"compilerOptions": {');for(var De=0;De<wt.length;De++){var _n=wt[De],_t=st[De];Ie.push(_n&&""+qn+qn+_n+(_t&&ye(ot-_n.length+2)+_t))}if(pn.length){Ie.push(qn+"},"),Ie.push(qn+'"files": [');for(var De=0;De<pn.length;De++)Ie.push(""+qn+qn+JSON.stringify(pn[De])+(De===pn.length-1?"":","));Ie.push(qn+"]")}else Ie.push(qn+"}");return Ie.push("}"),Ie.join(le)+le}}e.generateTSConfig=C;function _(Xe,pn){var le={},oe=Se().optionNameMap;for(var kn in Xe)e.hasProperty(Xe,kn)&&(le[kn]=b(oe.get(kn.toLowerCase()),Xe[kn],pn));return le.configFilePath&&(le.configFilePath=pn(le.configFilePath)),le}e.convertToOptionsWithAbsolutePaths=_;function b(Xe,pn,le){if(Xe){if(Xe.type==="list"){var oe=pn;if(Xe.element.isFilePath&&oe.length)return oe.map(le)}else if(Xe.isFilePath)return le(pn)}return pn}function D(Xe,pn,le,oe,kn,yn,ye,mn){return pe(Xe,void 0,pn,le,oe,kn,yn,ye,mn)}e.parseJsonConfigFileContent=D;function T(Xe,pn,le,oe,kn,yn,ye,mn){return pe(void 0,Xe,pn,le,oe,kn,yn,ye,mn)}e.parseJsonSourceFileConfigFileContent=T;function Q(Xe,pn){pn&&Object.defineProperty(Xe,"configFile",{enumerable:!1,writable:!1,value:pn})}e.setConfigFileInOptions=Q;function N(Xe){return Xe==null}function X(Xe,pn){return e.getDirectoryPath(e.getNormalizedAbsolutePath(Xe,pn))}function pe(Xe,pn,le,oe,kn,yn,ye,mn,un){kn===void 0&&(kn={}),ye===void 0&&(ye=[]),mn===void 0&&(mn=[]),e.Debug.assert(Xe===void 0&&pn!==void 0||Xe!==void 0&&pn===void 0);var Mn=[],tt=Re(Xe,pn,le,oe,yn,ye,Mn,un),Vn=tt.raw,ut=e.extend(kn,tt.options||{});ut.configFilePath=yn&&e.normalizeSlashes(yn),Q(ut,pn);var dt,ot=qn(),ct=ot.fileNames,wt=ot.wildcardDirectories,st=ot.spec;return{options:ut,fileNames:ct,projectReferences:dt,typeAcquisition:tt.typeAcquisition||Pn(),raw:Vn,errors:Mn,wildcardDirectories:wt,compileOnSave:!!Vn.compileOnSave,configFileSpecs:st};function qn(){var De;if(e.hasProperty(Vn,"files")&&!N(Vn.files))if(e.isArray(Vn.files)){De=Vn.files;var _n=e.hasProperty(Vn,"references")&&!N(Vn.references),_t=!_n||Vn.references.length===0,It=e.hasProperty(Vn,"extends");if(De.length===0&&_t&&!It)if(pn){var Ht=yn||"tsconfig.json",nr=e.Diagnostics.The_files_list_in_config_file_0_is_empty,vr=e.firstDefined(e.getTsConfigPropArray(pn,"files"),function(yt){return yt.initializer}),Qr=vr?e.createDiagnosticForNodeInSourceFile(pn,vr,nr,Ht):e.createCompilerDiagnostic(nr,Ht);Mn.push(Qr)}else Ie(e.Diagnostics.The_files_list_in_config_file_0_is_empty,yn||"tsconfig.json")}else Ie(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array");var Wr;e.hasProperty(Vn,"include")&&!N(Vn.include)&&(e.isArray(Vn.include)?Wr=Vn.include:Ie(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array"));var gt;if(e.hasProperty(Vn,"exclude")&&!N(Vn.exclude))e.isArray(Vn.exclude)?gt=Vn.exclude:Ie(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array");else if(Vn.compilerOptions){var ba=Vn.compilerOptions.outDir,kt=Vn.compilerOptions.declarationDir;(ba||kt)&&(gt=[ba,kt].filter(function(yt){return!!yt}))}De===void 0&&Wr===void 0&&(Wr=["**/*"]);var jn=G(De,Wr,gt,yn?X(yn,oe):oe,ut,le,Mn,mn,pn);if(U(jn,de(Vn),ye)&&Mn.push(v(jn.spec,yn)),e.hasProperty(Vn,"references")&&!N(Vn.references))if(e.isArray(Vn.references))for(var Ut=0,ft=Vn.references;Ut<ft.length;Ut++){var Tt=ft[Ut];typeof Tt.path!="string"?Ie(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(dt||(dt=[])).push({path:e.getNormalizedAbsolutePath(Tt.path,oe),originalPath:Tt.path,prepend:Tt.prepend,circular:Tt.circular})}else Ie(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"references","Array");return jn}function Ie(De,_n,_t){pn||Mn.push(e.createCompilerDiagnostic(De,_n,_t))}}function S(Xe){return Xe.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function v(Xe,pn){var le=Xe.includeSpecs,oe=Xe.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,pn||"tsconfig.json",JSON.stringify(le||[]),JSON.stringify(oe||[]))}function U(Xe,pn,le){return Xe.fileNames.length===0&&pn&&(!le||le.length===0)}function de(Xe){return!e.hasProperty(Xe,"files")&&!e.hasProperty(Xe,"references")}e.canJsonReportNoInutFiles=de;function Ce(Xe,pn,le,oe,kn){var yn=oe.length;return U(Xe,kn)?oe.push(v(le,pn)):e.filterMutate(oe,function(ye){return!S(ye)}),yn!==oe.length}e.updateErrorForNoInputFiles=Ce;function Z(Xe){return!!Xe.options}function Re(Xe,pn,le,oe,kn,yn,ye,mn){oe=e.normalizeSlashes(oe);var un=e.getNormalizedAbsolutePath(kn||"",oe);if(yn.indexOf(un)>=0)return ye.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,Or(yn,[un]).join(" -> "))),{raw:Xe||fe(pn,ye)};var Mn=Xe?Ae(Xe,le,oe,kn,ye):We(pn,le,oe,kn,ye);if(Mn.extendedConfigPath){yn=yn.concat([un]);var tt=Ge(pn,Mn.extendedConfigPath,le,oe,yn,ye,mn);if(tt&&Z(tt)){var Vn=tt.raw,ut=Mn.raw,dt=function(ct){var wt=ut[ct]||Vn[ct];wt&&(ut[ct]=wt)};dt("include"),dt("exclude"),dt("files"),ut.compileOnSave===void 0&&(ut.compileOnSave=Vn.compileOnSave),Mn.options=e.assign({},tt.options,Mn.options)}}return Mn}function Ae(Xe,pn,le,oe,kn){e.hasProperty(Xe,"excludes")&&kn.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var yn=en(Xe.compilerOptions,le,kn,oe),ye=Xn(Xe.typeAcquisition||Xe.typingOptions,le,kn,oe);Xe.compileOnSave=x(Xe,le,kn);var mn;if(Xe.extends)if(!e.isString(Xe.extends))kn.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));else{var un=oe?X(oe,le):le;mn=be(Xe.extends,pn,un,kn,e.createCompilerDiagnostic)}return{raw:Xe,options:yn,typeAcquisition:ye,extendedConfigPath:mn}}function We(Xe,pn,le,oe,kn){var yn=a(oe),ye,mn,un,Mn={onSetValidOptionKeyValueInParent:function(ut,dt,ot){e.Debug.assert(ut==="compilerOptions"||ut==="typeAcquisition"||ut==="typingOptions");var ct=ut==="compilerOptions"?yn:ut==="typeAcquisition"?ye||(ye=Pn(oe)):mn||(mn=Pn(oe));ct[dt.name]=Le(dt,le,ot)},onSetValidOptionKeyValueInRoot:function(ut,dt,ot,ct){switch(ut){case"extends":var wt=oe?X(oe,le):le;un=be(ot,pn,wt,kn,function(st,qn){return e.createDiagnosticForNodeInSourceFile(Xe,ct,st,qn)});return}},onSetUnknownOptionKeyValueInRoot:function(ut,dt,ot,ct){ut==="excludes"&&kn.push(e.createDiagnosticForNodeInSourceFile(Xe,dt,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},tt=R(Xe,kn,!0,J(),Mn);return ye||(mn?ye=mn.enableAutoDiscovery!==void 0?{enable:mn.enableAutoDiscovery,include:mn.include,exclude:mn.exclude}:mn:ye=Pn(oe)),{raw:tt,options:yn,typeAcquisition:ye,extendedConfigPath:un}}function be(Xe,pn,le,oe,kn){if(Xe=e.normalizeSlashes(Xe),e.isRootedDiskPath(Xe)||e.startsWith(Xe,"./")||e.startsWith(Xe,"../")){var yn=e.getNormalizedAbsolutePath(Xe,le);if(!pn.fileExists(yn)&&!e.endsWith(yn,".json")&&(yn=yn+".json",!pn.fileExists(yn))){oe.push(kn(e.Diagnostics.File_0_not_found,Xe));return}return yn}var ye=e.nodeModuleNameResolver(Xe,e.combinePaths(le,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},pn,void 0,void 0,!0);if(ye.resolvedModule)return ye.resolvedModule.resolvedFileName;oe.push(kn(e.Diagnostics.File_0_not_found,Xe));return}function Ge(Xe,pn,le,oe,kn,yn,ye){var mn,un=le.useCaseSensitiveFileNames?pn:e.toLowerCase(pn),Mn,tt,Vn;if(ye&&(Mn=ye.get(un)))tt=Mn.extendedResult,Vn=Mn.extendedConfig;else{if(tt=h(pn,function(st){return le.readFile(st)}),!tt.parseDiagnostics.length){var ut=e.getDirectoryPath(pn);if(Vn=Re(void 0,tt,le,ut,e.getBaseFileName(pn),kn,yn,ye),Z(Vn)){var dt=e.convertToRelativePath(ut,oe,e.identity),ot=function(qn){return e.isRootedDiskPath(qn)?qn:e.combinePaths(dt,qn)},ct=function(qn){wt[qn]&&(wt[qn]=e.map(wt[qn],ot))},wt=Vn.raw;ct("include"),ct("exclude"),ct("files")}}ye&&ye.set(un,{extendedResult:tt,extendedConfig:Vn})}if(Xe&&(Xe.extendedSourceFiles=[tt.fileName],tt.extendedSourceFiles&&(mn=Xe.extendedSourceFiles).push.apply(mn,tt.extendedSourceFiles)),tt.parseDiagnostics.length){yn.push.apply(yn,tt.parseDiagnostics);return}return Vn}function x(Xe,pn,le){if(!e.hasProperty(Xe,e.compileOnSaveCommandLineOption.name))return!1;var oe=ce(e.compileOnSaveCommandLineOption,Xe.compileOnSave,pn,le);return typeof oe=="boolean"&&oe}function j(Xe,pn,le){var oe=[],kn=en(Xe,pn,oe,le);return{options:kn,errors:oe}}e.convertCompilerOptionsFromJson=j;function Oe(Xe,pn,le){var oe=[],kn=Xn(Xe,pn,oe,le);return{options:kn,errors:oe}}e.convertTypeAcquisitionFromJson=Oe;function a(Xe){var pn=Xe&&e.getBaseFileName(Xe)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{};return pn}function en(Xe,pn,le,oe){var kn=a(oe);return ae(e.optionDeclarations,Xe,pn,kn,e.Diagnostics.Unknown_compiler_option_0,le),oe&&(kn.configFilePath=e.normalizeSlashes(oe)),kn}function Pn(Xe){return{enable:!!Xe&&e.getBaseFileName(Xe)==="jsconfig.json",include:[],exclude:[]}}function Xn(Xe,pn,le,oe){var kn=Pn(oe),yn=qe(Xe);return ae(e.typeAcquisitionDeclarations,yn,pn,kn,e.Diagnostics.Unknown_type_acquisition_option_0,le),kn}function ae(Xe,pn,le,oe,kn,yn){if(!pn)return;var ye=ne(Xe);for(var mn in pn){var un=ye.get(mn);un?oe[un.name]=ce(un,pn[mn],le,yn):yn.push(e.createCompilerDiagnostic(kn,mn))}}function ce(Xe,pn,le,oe){if(z(Xe,pn)){var kn=Xe.type;return kn==="list"&&e.isArray(pn)?Ue(Xe,pn,le,oe):e.isString(kn)?Je(Xe,le,pn):Ze(Xe,pn,oe)}else oe.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Xe.name,K(Xe)))}function Le(Xe,pn,le){if(N(le))return;if(Xe.type==="list"){var oe=Xe;return oe.element.isFilePath||!e.isString(oe.element.type)?e.filter(e.map(le,function(kn){return Le(oe.element,pn,kn)}),function(kn){return!!kn}):le}else if(!e.isString(Xe.type))return Xe.type.get(e.isString(le)?le.toLowerCase():le);return Je(Xe,pn,le)}function Je(Xe,pn,le){return Xe.isFilePath&&(le=e.getNormalizedAbsolutePath(le,pn),le===""&&(le=".")),le}function Ze(Xe,pn,le){if(N(pn))return;var oe=pn.toLowerCase(),kn=Xe.type.get(oe);if(kn!==void 0)return kn;le.push(He(Xe))}function Ue(Xe,pn,le,oe){return e.filter(e.map(pn,function(kn){return ce(Xe.element,kn,le,oe)}),function(kn){return!!kn})}function cn(Xe){return typeof Xe.trim=="function"?Xe.trim():Xe.replace(/^[\s]+|[\s]+$/g,"")}var $e=/(^|\/)\*\*\/?$/,sn=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,he=/\/[^/]*?[*?][^/]*\//,ke=/^[^*?]*(?=\/[^/]*[*?])/;function G(Xe,pn,le,oe,kn,yn,ye,mn,un){oe=e.normalizePath(oe);var Mn,tt;pn&&(Mn=O(pn,ye,!1,un,"include")),le&&(tt=O(le,ye,!0,un,"exclude"));var Vn=Te(Mn,tt,oe,yn.useCaseSensitiveFileNames),ut={filesSpecs:Xe,includeSpecs:pn,excludeSpecs:le,validatedIncludeSpecs:Mn,validatedExcludeSpecs:tt,wildcardDirectories:Vn};return c(ut,oe,kn,yn,mn)}function c(Xe,pn,le,oe,kn){kn===void 0&&(kn=[]),pn=e.normalizePath(pn);var yn=oe.useCaseSensitiveFileNames?e.identity:e.toLowerCase,ye=e.createMap(),mn=e.createMap(),un=e.createMap(),Mn=Xe.filesSpecs,tt=Xe.validatedIncludeSpecs,Vn=Xe.validatedExcludeSpecs,ut=Xe.wildcardDirectories,dt=e.getSupportedExtensions(le,kn),ot=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(le,dt);if(Mn)for(var ct=0,wt=Mn;ct<wt.length;ct++){var st=wt[ct],qn=e.getNormalizedAbsolutePath(st,pn);ye.set(yn(qn),qn)}var Ie;if(tt&&tt.length>0)for(var De=function(vr){if(e.fileExtensionIs(vr,".json")){if(!Ie){var Qr=tt.filter(function(jn){return e.endsWith(jn,".json")}),Wr=e.map(e.getRegularExpressionsForWildcards(Qr,pn,"files"),function(jn){return"^"+jn+"$"});Ie=Wr?Wr.map(function(jn){return e.getRegexFromPattern(jn,oe.useCaseSensitiveFileNames)}):e.emptyArray}var gt=e.findIndex(Ie,function(jn){return jn.test(vr)});if(gt!==-1){var ba=yn(vr);!ye.has(ba)&&!un.has(ba)&&un.set(ba,vr)}return"continue"}if(ze(vr,ye,mn,dt,yn))return"continue";bn(vr,mn,dt,yn);var kt=yn(vr);!ye.has(kt)&&!mn.has(kt)&&mn.set(kt,vr)},_n=0,_t=oe.readDirectory(pn,ot,Vn,tt,void 0);_n<_t.length;_n++){var qn=_t[_n];De(qn)}var It=e.arrayFrom(ye.values()),Ht=e.arrayFrom(mn.values());return{fileNames:It.concat(Ht,e.arrayFrom(un.values())),wildcardDirectories:ut,spec:Xe}}e.getFileNamesFromConfigSpecs=c;function O(Xe,pn,le,oe,kn){return Xe.filter(function(ye){var mn=ee(ye,le);return mn!==void 0&&pn.push(yn(mn,ye)),mn===void 0});function yn(ye,mn){var un=e.getTsConfigPropArrayElementValue(oe,kn,mn);return un?e.createDiagnosticForNodeInSourceFile(oe,un,ye,mn):e.createCompilerDiagnostic(ye,mn)}}function ee(Xe,pn){if(!pn&&$e.test(Xe))return e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0;if(sn.test(Xe))return e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0}function Te(Xe,pn,le,oe){var kn=e.getRegularExpressionForWildcard(pn,le,"exclude"),yn=kn&&new RegExp(kn,oe?"":"i"),ye={};if(Xe!==void 0){for(var mn=[],un=0,Mn=Xe;un<Mn.length;un++){var tt=Mn[un],Vn=e.normalizePath(e.combinePaths(le,tt));if(yn&&yn.test(Vn))continue;var ut=Ne(Vn,oe);if(ut){var dt=ut.key,ot=ut.flags,ct=ye[dt];(ct===void 0||ct<ot)&&(ye[dt]=ot,ot===1&&mn.push(dt))}}for(var dt in ye)if(e.hasProperty(ye,dt))for(var wt=0,st=mn;wt<st.length;wt++){var qn=st[wt];dt!==qn&&e.containsPath(qn,dt,le,!oe)&&delete ye[dt]}}return ye}function Ne(Xe,pn){var le=ke.exec(Xe);return le?{key:pn?le[0]:le[0].toLowerCase(),flags:he.test(Xe)?1:0}:e.isImplicitGlob(Xe)?{key:Xe,flags:1}:void 0}function ze(Xe,pn,le,oe,kn){for(var yn=e.getExtensionPriority(Xe,oe),ye=e.adjustExtensionPriority(yn,oe),mn=0;mn<ye;mn++){var un=oe[mn],Mn=kn(e.changeExtension(Xe,un));if(pn.has(Mn)||le.has(Mn))return!0}return!1}function bn(Xe,pn,le,oe){for(var kn=e.getExtensionPriority(Xe,le),yn=e.getNextLowestExtensionPriority(kn,le),ye=yn;ye<le.length;ye++){var mn=le[ye],un=oe(e.changeExtension(Xe,mn));pn.delete(un)}}function Sn(Xe){var pn={};for(var le in Xe)if(Xe.hasOwnProperty(le)){var oe=I(le);oe!==void 0&&(pn[le]=Kn(Xe[le],oe))}return pn}e.convertCompilerOptionsForTelemetry=Sn;function Kn(Xe,pn){switch(pn.type){case"object":return"";case"string":return"";case"number":return typeof Xe=="number"?Xe:"";case"boolean":return typeof Xe=="boolean"?Xe:"";case"list":var le=pn.element;return e.isArray(Xe)?Xe.map(function(oe){return Kn(oe,le)}):"";default:return e.forEachEntry(pn.type,function(oe,kn){if(oe===Xe)return kn})}}})(ln||(ln={}));var ln;(function(e){function o(G){G.trace(e.formatMessage.apply(void 0,arguments))}e.trace=o;function F(G,c){return!!G.traceResolution&&c.trace!==void 0}e.isTraceEnabled=F;function qe(G,c){var O;if(c&&G){var ee=G.packageJsonContent;typeof ee.name=="string"&&typeof ee.version=="string"&&(O={name:ee.name,subModuleName:c.path.slice(G.packageDirectory.length+e.directorySeparator.length),version:ee.version})}return c&&{path:c.path,extension:c.ext,packageId:O}}function Se(G){return qe(void 0,G)}function Fe(G){if(G)return e.Debug.assert(G.packageId===void 0),{path:G.path,ext:G.extension}}var He;(function(G){G[G.TypeScript=0]="TypeScript",G[G.JavaScript=1]="JavaScript",G[G.Json=2]="Json",G[G.TSConfig=3]="TSConfig",G[G.DtsOnly=4]="DtsOnly"})(He||(He={}));function ve(G){return G?(e.Debug.assert(e.extensionIsTS(G.extension)),{fileName:G.path,packageId:G.packageId}):void 0}function ie(G,c,O){return{resolvedModule:G&&{resolvedFileName:G.path,originalPath:G.originalPath===!0?void 0:G.originalPath,extension:G.extension,isExternalLibraryImport:c,packageId:G.packageId},failedLookupLocations:O}}function d(G,c,O,ee){if(!e.hasProperty(G,c)){ee.traceEnabled&&o(ee.host,e.Diagnostics.package_json_does_not_have_a_0_field,c);return}var Te=G[c];if(typeof Te!==O||Te===null){ee.traceEnabled&&o(ee.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,c,O,Te===null?"null":typeof Te);return}return Te}function H(G,c,O,ee){var Te=d(G,c,"string",ee);if(Te===void 0)return;if(!Te){ee.traceEnabled&&o(ee.host,e.Diagnostics.package_json_had_a_falsy_0_field,c);return}var Ne=e.normalizePath(e.combinePaths(O,Te));return ee.traceEnabled&&o(ee.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,c,Te,Ne),Ne}function Pe(G,c,O){return H(G,"typings",c,O)||H(G,"types",c,O)}function I(G,c,O){return H(G,"tsconfig",c,O)}function _e(G,c,O){return H(G,"main",c,O)}function re(G,c){var O=d(G,"typesVersions","object",c);return O===void 0?void 0:(c.traceEnabled&&o(c.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),O)}function se(G,c){var O=re(G,c);if(O===void 0)return;if(c.traceEnabled)for(var ee in O)e.hasProperty(O,ee)&&!e.VersionRange.tryParse(ee)&&o(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,ee);var Te=k(O);if(!Te){c.traceEnabled&&o(c.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor);return}var Ne=Te.version,ze=Te.paths;if(typeof ze!="object"){c.traceEnabled&&o(c.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['"+Ne+"']","object",typeof ze);return}return Te}var w;function k(G){w||(w=new e.Version(e.version));for(var c in G){if(!e.hasProperty(G,c))continue;var O=e.VersionRange.tryParse(c);if(O===void 0)continue;if(O.test(w))return{version:c,paths:G[c]}}}e.getPackageJsonTypesVersionsPaths=k;function P(G,c){if(G.typeRoots)return G.typeRoots;var O;if(G.configFilePath?O=e.getDirectoryPath(G.configFilePath):c.getCurrentDirectory&&(O=c.getCurrentDirectory()),O!==void 0)return h(O,c)}e.getEffectiveTypeRoots=P;function h(G,c){if(!c.directoryExists)return[e.combinePaths(G,Y)];var O;return e.forEachAncestorDirectory(e.normalizePath(G),function(ee){var Te=e.combinePaths(ee,Y);c.directoryExists(Te)&&(O||(O=[])).push(Te);return}),O}var Y=e.combinePaths("node_modules","@types");function ne(G,c,O,ee,Te){var Ne=F(O,ee);Te&&(O=Te.commandLine.options);var ze=[],bn={compilerOptions:O,host:ee,traceEnabled:Ne,failedLookupLocations:ze},Sn=P(O,ee);Ne&&(c===void 0?Sn===void 0?o(ee,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,G):o(ee,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,G,Sn):Sn===void 0?o(ee,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,G,c):o(ee,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,G,c,Sn),Te&&o(ee,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Te.sourceFile.fileName));var Kn=yn(),Xe=!0;Kn||(Kn=ye(),Xe=!1);var pn;if(Kn){var le=Kn.fileName,oe=Kn.packageId,kn=O.preserveSymlinks?le:X(le,ee,Ne);Ne&&(oe?o(ee,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,G,kn,e.packageIdToString(oe),Xe):o(ee,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,G,kn,Xe)),pn={primary:Xe,resolvedFileName:kn,packageId:oe,isExternalLibraryImport:S(le)}}return{resolvedTypeReferenceDirective:pn,failedLookupLocations:ze};function yn(){if(Sn&&Sn.length)return Ne&&o(ee,e.Diagnostics.Resolving_with_primary_search_path_0,Sn.join(", ")),e.firstDefined(Sn,function(mn){var un=e.combinePaths(mn,G),Mn=e.getDirectoryPath(un),tt=e.directoryProbablyExists(Mn,ee);return!tt&&Ne&&o(ee,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Mn),ve(Ae(He.DtsOnly,un,!tt,bn))});Ne&&o(ee,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ye(){var mn=c&&e.getDirectoryPath(c);if(mn!==void 0){Ne&&o(ee,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,mn);var un=void 0;if(e.isExternalModuleNameRelative(G)){var tt=e.normalizePathAndParts(e.combinePaths(mn,G)).path;un=pe(He.DtsOnly,tt,!1,bn,!0)}else{var Mn=Oe(He.DtsOnly,G,mn,bn,void 0,void 0);un=Mn&&Mn.value}var Vn=ve(un);return!Vn&&Ne&&o(ee,e.Diagnostics.Type_reference_directive_0_was_not_resolved,G),Vn}else Ne&&o(ee,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}e.resolveTypeReferenceDirective=ne;function $(G,c){if(G.types)return G.types;var O=[];if(c.directoryExists&&c.getDirectories){var ee=P(G,c);if(ee)for(var Te=0,Ne=ee;Te<Ne.length;Te++){var ze=Ne[Te];if(c.directoryExists(ze))for(var bn=0,Sn=c.getDirectories(ze);bn<Sn.length;bn++){var Kn=Sn[bn],Xe=e.normalizePath(Kn),pn=e.combinePaths(ze,Xe,"package.json"),le=c.fileExists(pn)&&e.readJson(pn,c).typings===null;if(!le){var oe=e.getBaseFileName(Xe);oe.charCodeAt(0)!==46&&O.push(oe)}}}}return O}e.getAutomaticTypeDirectiveNames=$;function J(G,c,O){return R(fe(O),fe(O),G,c)}e.createModuleResolutionCache=J;function fe(G){var c=e.createMap(),O=e.createMap();return{ownMap:c,redirectsMap:O,getOrCreateMapOfCacheRedirects:Ne,clear:ze,setOwnOptions:ee,setOwnMap:Te};function ee(bn){G=bn}function Te(bn){c=bn}function Ne(bn){if(!bn)return c;var Sn=bn.sourceFile.path,Kn=O.get(Sn);return Kn||(Kn=!G||e.optionsHaveModuleResolutionChanges(G,bn.commandLine.options)?e.createMap():c,O.set(Sn,Kn)),Kn}function ze(){c.clear(),O.clear()}}e.createCacheWithRedirects=fe;function R(G,c,O,ee){return{getOrCreateCacheForDirectory:Te,getOrCreateCacheForModuleName:Ne,directoryToModuleNameMap:G,moduleNameToDirectoryMap:c};function Te(Sn,Kn){var Xe=e.toPath(Sn,O,ee);return ze(G,Kn,Xe,e.createMap)}function Ne(Sn,Kn){return e.Debug.assert(!e.isExternalModuleNameRelative(Sn)),ze(c,Kn,Sn,bn)}function ze(Sn,Kn,Xe,pn){var le=Sn.getOrCreateMapOfCacheRedirects(Kn),oe=le.get(Xe);return oe||(oe=pn(),le.set(Xe,oe)),oe}function bn(){var Sn=e.createMap();return{get:Kn,set:Xe};function Kn(le){return Sn.get(e.toPath(le,O,ee))}function Xe(le,oe){var kn=e.toPath(le,O,ee);if(Sn.has(kn))return;Sn.set(kn,oe);for(var yn=oe.resolvedModule&&(oe.resolvedModule.originalPath||oe.resolvedModule.resolvedFileName),ye=yn&&pn(kn,yn),mn=kn;mn!==ye;){var un=e.getDirectoryPath(mn);if(un===mn||Sn.has(un))break;Sn.set(un,oe),mn=un}}function pn(le,oe){for(var kn=e.toPath(e.getDirectoryPath(oe),O,ee),yn=0,ye=Math.min(le.length,kn.length);yn<ye&&le.charCodeAt(yn)===kn.charCodeAt(yn);)yn++;if(yn===le.length&&(kn.length===yn||kn[yn]===e.directorySeparator))return le;var mn=e.getRootLength(le);if(yn<mn)return;var un=le.lastIndexOf(e.directorySeparator,yn-1);return un===-1?void 0:le.substr(0,Math.max(un,mn))}}}e.createModuleResolutionCacheWithMaps=R;function K(G,c,O){var ee=e.getDirectoryPath(c),Te=O&&O.getOrCreateCacheForDirectory(ee);return Te&&Te.get(G)}e.resolveModuleNameFromCache=K;function z(G,c,O,ee,Te,Ne){var ze=F(O,ee);Ne&&(O=Ne.commandLine.options),ze&&(o(ee,e.Diagnostics.Resolving_module_0_from_1,G,c),Ne&&o(ee,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Ne.sourceFile.fileName));var bn=e.getDirectoryPath(c),Sn=Te&&Te.getOrCreateCacheForDirectory(bn,Ne),Kn=Sn&&Sn.get(G);if(Kn)ze&&o(ee,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,G,bn);else{var Xe=O.moduleResolution;Xe===void 0?(Xe=e.getEmitModuleKind(O)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic,ze&&o(ee,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[Xe])):ze&&o(ee,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[Xe]),e.perfLogger.logStartResolveModule(G);switch(Xe){case e.ModuleResolutionKind.NodeJs:Kn=Q(G,c,O,ee,Te,Ne);break;case e.ModuleResolutionKind.Classic:Kn=sn(G,c,O,ee,Te,Ne);break;default:return e.Debug.fail("Unexpected moduleResolution: "+Xe)}Kn&&Kn.resolvedModule&&e.perfLogger.logInfoEvent('Module "'+G+'" resolved to "'+Kn.resolvedModule.resolvedFileName+'"'),e.perfLogger.logStopResolveModule(Kn&&Kn.resolvedModule?""+Kn.resolvedModule.resolvedFileName:"null"),Sn&&(Sn.set(G,Kn),e.isExternalModuleNameRelative(G)||Te.getOrCreateCacheForModuleName(G,Ne).set(bn,Kn))}return ze&&(Kn.resolvedModule?Kn.resolvedModule.packageId?o(ee,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,G,Kn.resolvedModule.resolvedFileName,e.packageIdToString(Kn.resolvedModule.packageId)):o(ee,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,G,Kn.resolvedModule.resolvedFileName):o(ee,e.Diagnostics.Module_name_0_was_not_resolved,G)),Kn}e.resolveModuleName=z;function Ee(G,c,O,ee,Te){var Ne=B(G,c,ee,Te);return Ne?Ne.value:e.isExternalModuleNameRelative(c)?V(G,c,O,ee,Te):m(G,c,ee,Te)}function B(G,c,O,ee){var Te=ee.compilerOptions,Ne=Te.baseUrl,ze=Te.paths;if(Ne&&ze&&!e.pathIsRelative(c))return ee.traceEnabled&&(o(ee.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,Ne,c),o(ee.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,c)),ae(G,c,Ne,ze,O,!1,ee)}function V(G,c,O,ee,Te){if(!Te.compilerOptions.rootDirs)return;Te.traceEnabled&&o(Te.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,c);for(var Ne=e.normalizePath(e.combinePaths(O,c)),ze,bn,Sn=0,Kn=Te.compilerOptions.rootDirs;Sn<Kn.length;Sn++){var Xe=Kn[Sn],pn=e.normalizePath(Xe);e.endsWith(pn,e.directorySeparator)||(pn+=e.directorySeparator);var le=e.startsWith(Ne,pn)&&(bn===void 0||bn.length<pn.length);Te.traceEnabled&&o(Te.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,pn,Ne,le),le&&(bn=pn,ze=Xe)}if(bn){Te.traceEnabled&&o(Te.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,Ne,bn);var oe=Ne.substr(bn.length);Te.traceEnabled&&o(Te.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,oe,bn,Ne);var kn=ee(G,Ne,!e.directoryProbablyExists(O,Te.host),Te);if(kn)return kn;Te.traceEnabled&&o(Te.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var yn=0,ye=Te.compilerOptions.rootDirs;yn<ye.length;yn++){var Xe=ye[yn];if(Xe===ze)continue;var mn=e.combinePaths(e.normalizePath(Xe),oe);Te.traceEnabled&&o(Te.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,oe,Xe,mn);var un=e.getDirectoryPath(mn),Mn=ee(G,mn,!e.directoryProbablyExists(un,Te.host),Te);if(Mn)return Mn}Te.traceEnabled&&o(Te.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}return}function m(G,c,O,ee){var Te=ee.compilerOptions.baseUrl;if(!Te)return;ee.traceEnabled&&o(ee.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,Te,c);var Ne=e.normalizePath(e.combinePaths(Te,c));return ee.traceEnabled&&o(ee.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,c,Te,Ne),O(G,Ne,!e.directoryProbablyExists(e.getDirectoryPath(Ne),ee.host),ee)}function y(G,c,O){var ee=T(G,c,O),Te=ee.resolvedModule,Ne=ee.failedLookupLocations;if(!Te)throw new Error("Could not resolve JS module '"+G+"' starting at '"+c+"'. Looked in: "+Ne.join(", "));return Te.resolvedFileName}e.resolveJSModule=y;function L(G,c,O){var ee=T(G,c,O).resolvedModule;return ee&&ee.resolvedFileName}e.tryResolveJSModule=L;var C=[He.JavaScript],_=[He.TypeScript,He.JavaScript],b=Or(_,[He.Json]),D=[He.TSConfig];function T(G,c,O){return N(G,c,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},O,void 0,C,void 0)}function Q(G,c,O,ee,Te,Ne,ze){return N(G,e.getDirectoryPath(c),O,ee,Te,ze?D:O.resolveJsonModule?b:_,Ne)}e.nodeModuleNameResolver=Q;function N(G,c,O,ee,Te,Ne,ze){var bn=F(O,ee),Sn=[],Kn={compilerOptions:O,host:ee,traceEnabled:bn,failedLookupLocations:Sn},Xe=e.forEach(Ne,function(yn){return kn(yn)});if(Xe&&Xe.value){var pn=Xe.value,le=pn.resolved,oe=pn.isExternalLibraryImport;return ie(le,oe,Sn)}return{resolvedModule:void 0,failedLookupLocations:Sn};function kn(yn){var ye=function(st,qn,Ie,De){return pe(st,qn,Ie,De,!0)},mn=Ee(yn,G,c,ye,Kn);if(mn)return ke({resolved:mn,isExternalLibraryImport:S(mn.path)});if(e.isExternalModuleNameRelative(G)){var ut=e.normalizePathAndParts(e.combinePaths(c,G)),dt=ut.path,ot=ut.parts,ct=pe(yn,dt,!1,Kn,!0);return ct&&ke({resolved:ct,isExternalLibraryImport:e.contains(ot,"node_modules")})}else{bn&&o(ee,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,G,He[yn]);var un=Oe(yn,G,c,Kn,Te,ze);if(!un)return;var Mn=un.value;if(!O.preserveSymlinks&&Mn&&!Mn.originalPath){var tt=X(Mn.path,ee,bn),Vn=tt===Mn.path?void 0:Mn.path;Mn=ma(ma({},Mn),{path:tt,originalPath:Vn})}return{value:Mn&&{resolved:Mn,isExternalLibraryImport:!0}}}}}function X(G,c,O){if(!c.realpath)return G;var ee=e.normalizePath(c.realpath(G));return O&&o(c,e.Diagnostics.Resolving_real_path_for_0_result_1,G,ee),e.Debug.assert(c.fileExists(ee),G+" linked to nonexistent file "+ee),ee}function pe(G,c,O,ee,Te){if(ee.traceEnabled&&o(ee.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,c,He[G]),!e.hasTrailingDirectorySeparator(c)){if(!O){var Ne=e.getDirectoryPath(c);e.directoryProbablyExists(Ne,ee.host)||(ee.traceEnabled&&o(ee.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Ne),O=!0)}var ze=Ce(G,c,O,ee);if(ze){var bn=Te?v(ze):void 0,Sn=bn?We(bn,!1,ee):void 0;return qe(Sn,ze)}}if(!O){var Kn=e.directoryProbablyExists(c,ee.host);Kn||(ee.traceEnabled&&o(ee.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,c),O=!0)}return Ae(G,c,O,ee,Te)}e.nodeModulesPathPart="/node_modules/";function S(G){return e.stringContains(G,e.nodeModulesPathPart)}e.pathContainsNodeModules=S;function v(G){var c=e.normalizePath(G.path),O=c.lastIndexOf(e.nodeModulesPathPart);if(O===-1)return;var ee=O+e.nodeModulesPathPart.length,Te=U(c,ee);return c.charCodeAt(ee)===64&&(Te=U(c,Te)),c.slice(0,Te)}function U(G,c){var O=G.indexOf(e.directorySeparator,c+1);return O===-1?c:O}function de(G,c,O,ee){return Se(Ce(G,c,O,ee))}function Ce(G,c,O,ee){if(G===He.Json||G===He.TSConfig){var Te=e.tryRemoveExtension(c,".json");return Te===void 0&&G===He.Json?void 0:Z(Te||c,G,O,ee)}var Ne=Z(c,G,O,ee);if(Ne)return Ne;if(e.hasJSFileExtension(c)){var ze=e.removeFileExtension(c);if(ee.traceEnabled){var bn=c.substring(ze.length);o(ee.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,c,bn)}return Z(ze,G,O,ee)}}function Z(G,c,O,ee){if(!O){var Te=e.getDirectoryPath(G);Te&&(O=!e.directoryProbablyExists(Te,ee.host))}switch(c){case He.DtsOnly:return Ne(".d.ts");case He.TypeScript:return Ne(".ts")||Ne(".tsx")||Ne(".d.ts");case He.JavaScript:return Ne(".js")||Ne(".jsx");case He.TSConfig:case He.Json:return Ne(".json")}function Ne(ze){var bn=Re(G+ze,O,ee);return bn===void 0?void 0:{path:bn,ext:ze}}}function Re(G,c,O){if(!c){if(O.host.fileExists(G))return O.traceEnabled&&o(O.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,G),G;O.traceEnabled&&o(O.host,e.Diagnostics.File_0_does_not_exist,G)}O.failedLookupLocations.push(G);return}function Ae(G,c,O,ee,Te){Te===void 0&&(Te=!0);var Ne=Te?We(c,O,ee):void 0,ze=Ne&&Ne.packageJsonContent,bn=Ne&&Ne.versionPaths;return qe(Ne,be(G,c,O,ee,ze,bn))}function We(G,c,O){var ee=O.host,Te=O.traceEnabled,Ne=!c&&e.directoryProbablyExists(G,ee),ze=e.combinePaths(G,"package.json");if(Ne&&ee.fileExists(ze)){var bn=e.readJson(ze,ee);Te&&o(ee,e.Diagnostics.Found_package_json_at_0,ze);var Sn=se(bn,O);return{packageDirectory:G,packageJsonContent:bn,versionPaths:Sn}}else Ne&&Te&&o(ee,e.Diagnostics.File_0_does_not_exist,ze),O.failedLookupLocations.push(ze)}function be(G,c,O,ee,Te,Ne){var ze;if(Te)switch(G){case He.JavaScript:case He.Json:ze=_e(Te,c,ee);break;case He.TypeScript:ze=Pe(Te,c,ee)||_e(Te,c,ee);break;case He.DtsOnly:ze=Pe(Te,c,ee);break;case He.TSConfig:ze=I(Te,c,ee);break;default:return e.Debug.assertNever(G)}var bn=function(yn,ye,mn,un){var Mn=Re(ye,mn,un);if(Mn){var tt=Ge(yn,Mn);if(tt)return Se(tt);un.traceEnabled&&o(un.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,Mn)}var Vn=yn===He.DtsOnly?He.TypeScript:yn;return pe(Vn,ye,mn,un,!1)},Sn=ze?!e.directoryProbablyExists(e.getDirectoryPath(ze),ee.host):void 0,Kn=O||!e.directoryProbablyExists(c,ee.host),Xe=e.combinePaths(c,G===He.TSConfig?"tsconfig":"index");if(Ne&&(!ze||e.containsPath(c,ze))){var pn=e.getRelativePathFromDirectory(c,ze||Xe,!1);ee.traceEnabled&&o(ee.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.version,e.version,pn);var le=ae(G,pn,c,Ne.paths,bn,Sn||Kn,ee);if(le)return Fe(le.value)}var oe=ze&&Fe(bn(G,ze,Sn,ee));return oe||Ce(G,Xe,Kn,ee)}function Ge(G,c){var O=e.tryGetExtensionFromPath(c);return O!==void 0&&x(G,O)?{path:c,ext:O}:void 0}function x(G,c){switch(G){case He.JavaScript:return c===".js"||c===".jsx";case He.TSConfig:case He.Json:return c===".json";case He.TypeScript:return c===".ts"||c===".tsx"||c===".d.ts";case He.DtsOnly:return c===".d.ts"}}function j(G){var c=G.indexOf(e.directorySeparator);return G[0]==="@"&&(c=G.indexOf(e.directorySeparator,c+1)),c===-1?{packageName:G,rest:""}:{packageName:G.slice(0,c),rest:G.slice(c+1)}}e.parsePackageName=j;function Oe(G,c,O,ee,Te,Ne){return en(G,c,O,ee,!1,Te,Ne)}function a(G,c,O){return en(He.DtsOnly,G,c,O,!0,void 0,void 0)}function en(G,c,O,ee,Te,Ne,ze){var bn=Ne&&Ne.getOrCreateCacheForModuleName(c,ze);return e.forEachAncestorDirectory(e.normalizeSlashes(O),function(Sn){if(e.getBaseFileName(Sn)!=="node_modules"){var Kn=$e(bn,c,Sn,ee);return Kn||ke(Pn(G,c,Sn,ee,Te))}})}function Pn(G,c,O,ee,Te){var Ne=e.combinePaths(O,"node_modules"),ze=e.directoryProbablyExists(Ne,ee.host);!ze&&ee.traceEnabled&&o(ee.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Ne);var bn=Te?void 0:Xn(G,c,Ne,ze,ee);if(bn)return bn;if(G===He.TypeScript||G===He.DtsOnly){var Sn=e.combinePaths(Ne,"@types"),Kn=ze;return ze&&!e.directoryProbablyExists(Sn,ee.host)&&(ee.traceEnabled&&o(ee.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Sn),Kn=!1),Xn(He.DtsOnly,Le(c,ee),Sn,Kn,ee)}}function Xn(G,c,O,ee,Te){var Ne=e.normalizePath(e.combinePaths(O,c)),ze=We(Ne,!ee,Te);if(ze){var bn=Ce(G,Ne,!ee,Te);if(bn)return Se(bn);var Sn=be(G,Ne,!ee,Te,ze.packageJsonContent,ze.versionPaths);return qe(ze,Sn)}var Kn=function(mn,un,Mn,tt){var Vn=Ce(mn,un,Mn,tt)||be(mn,un,Mn,tt,ze&&ze.packageJsonContent,ze&&ze.versionPaths);return qe(ze,Vn)},Xe=j(c),pn=Xe.packageName,le=Xe.rest;if(le!==""){var oe=e.combinePaths(O,pn);if(ze=We(oe,!ee,Te),ze&&ze.versionPaths){Te.traceEnabled&&o(Te.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,ze.versionPaths.version,e.version,le);var kn=ee&&e.directoryProbablyExists(oe,Te.host),yn=ae(G,le,oe,ze.versionPaths.paths,Kn,!kn,Te);if(yn)return yn.value}}return Kn(G,Ne,!ee,Te)}function ae(G,c,O,ee,Te,Ne,ze){var bn=e.matchPatternOrExact(e.getOwnKeys(ee),c);if(bn){var Sn=e.isString(bn)?void 0:e.matchedText(bn,c),Kn=e.isString(bn)?bn:e.patternText(bn);ze.traceEnabled&&o(ze.host,e.Diagnostics.Module_name_0_matched_pattern_1,c,Kn);var Xe=e.forEach(ee[Kn],function(pn){var le=Sn?pn.replace("*",Sn):pn,oe=e.normalizePath(e.combinePaths(O,le));ze.traceEnabled&&o(ze.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,pn,le);var kn=e.tryGetExtensionFromPath(oe);if(kn!==void 0){var yn=Re(oe,Ne,ze);if(yn!==void 0)return Se({path:yn,ext:kn})}return Te(G,oe,Ne||!e.directoryProbablyExists(e.getDirectoryPath(oe),ze.host),ze)});return{value:Xe}}}var ce="__";function Le(G,c){var O=Ze(G);return c.traceEnabled&&O!==G&&o(c.host,e.Diagnostics.Scoped_package_detected_looking_in_0,O),O}function Je(G){return"@types/"+Ze(G)}e.getTypesPackageName=Je;function Ze(G){if(e.startsWith(G,"@")){var c=G.replace(e.directorySeparator,ce);if(c!==G)return c.slice(1)}return G}e.mangleScopedPackageName=Ze;function Ue(G){var c=e.removePrefix(G,"@types/");return c!==G?cn(c):G}e.getPackageNameFromTypesPackageName=Ue;function cn(G){return e.stringContains(G,ce)?"@"+G.replace(ce,e.directorySeparator):G}e.unmangleScopedPackageName=cn;function $e(G,c,O,ee){var Te,Ne=G&&G.get(O);if(Ne)return ee.traceEnabled&&o(ee.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,c,O),(Te=ee.failedLookupLocations).push.apply(Te,Ne.failedLookupLocations),{value:Ne.resolvedModule&&{path:Ne.resolvedModule.resolvedFileName,originalPath:Ne.resolvedModule.originalPath||!0,extension:Ne.resolvedModule.extension,packageId:Ne.resolvedModule.packageId}}}function sn(G,c,O,ee,Te,Ne){var ze=F(O,ee),bn=[],Sn={compilerOptions:O,host:ee,traceEnabled:ze,failedLookupLocations:bn},Kn=e.getDirectoryPath(c),Xe=pn(He.TypeScript)||pn(He.JavaScript);return ie(Xe&&Xe.value,!1,bn);function pn(le){var oe=Ee(le,G,Kn,de,Sn);if(oe)return{value:oe};if(e.isExternalModuleNameRelative(G)){var ye=e.normalizePath(e.combinePaths(Kn,G));return ke(de(le,ye,!1,Sn))}else{var kn=Te&&Te.getOrCreateCacheForModuleName(G,Ne),yn=e.forEachAncestorDirectory(Kn,function(mn){var un=$e(kn,G,mn,Sn);if(un)return un;var Mn=e.normalizePath(e.combinePaths(mn,G));return ke(de(le,Mn,!1,Sn))});if(yn)return yn;if(le===He.TypeScript)return a(G,Kn,Sn)}}}e.classicNameResolver=sn;function he(G,c,O,ee,Te){var Ne=F(O,ee);Ne&&o(ee,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,c,G,Te);var ze=[],bn={compilerOptions:O,host:ee,traceEnabled:Ne,failedLookupLocations:ze},Sn=Pn(He.DtsOnly,G,Te,bn,!1);return ie(Sn,!0,ze)}e.loadModuleFromGlobalCache=he;function ke(G){return G!==void 0?{value:G}:void 0}})(ln||(ln={}));var ln;(function(e){var o;(function(Z){Z[Z.NonInstantiated=0]="NonInstantiated",Z[Z.Instantiated=1]="Instantiated",Z[Z.ConstEnumOnly=2]="ConstEnumOnly"})(o=e.ModuleInstanceState||(e.ModuleInstanceState={}));function F(Z,Re){return Z.body&&!Z.body.parent&&Ce(Z,Z.body),Z.body?qe(Z.body,Re):1}e.getModuleInstanceState=F;function qe(Z,Re){Re===void 0&&(Re=e.createMap());var Ae=""+e.getNodeId(Z);if(Re.has(Ae))return Re.get(Ae)||0;Re.set(Ae,void 0);var We=Se(Z,Re);return Re.set(Ae,We),We}function Se(Z,Re){switch(Z.kind){case 245:case 246:return 0;case 247:if(e.isEnumConst(Z))return 2;break;case 253:case 252:if(!e.hasModifier(Z,1))return 0;break;case 259:if(!Z.moduleSpecifier&&!!Z.exportClause){for(var Ae=0,We=0,be=Z.exportClause.elements;We<be.length;We++){var Ge=be[We],x=Fe(Ge,Re);if(x>Ae&&(Ae=x),Ae===1)return Ae}return Ae}break;case 249:{var j=0;return e.forEachChild(Z,function(Oe){var a=qe(Oe,Re);switch(a){case 0:return;case 2:j=2;return;case 1:return j=1,!0;default:e.Debug.assertNever(a)}}),j}case 248:return F(Z,Re);case 75:if(Z.isInJSDocNamespace)return 0}return 1}function Fe(Z,Re){for(var Ae=Z.propertyName||Z.name,We=Z.parent;We;){if(e.isBlock(We)||e.isModuleBlock(We)||e.isSourceFile(We)){for(var be=We.statements,Ge=void 0,x=0,j=be;x<j.length;x++){var Oe=j[x];if(e.nodeHasName(Oe,Ae)){Oe.parent||Ce(We,Oe);var a=qe(Oe,Re);if((Ge===void 0||a>Ge)&&(Ge=a),Ge===1)return Ge}}if(Ge!==void 0)return Ge}We=We.parent}return 1}var He;(function(Z){Z[Z.None=0]="None",Z[Z.IsContainer=1]="IsContainer",Z[Z.IsBlockScopedContainer=2]="IsBlockScopedContainer",Z[Z.IsControlFlowContainer=4]="IsControlFlowContainer",Z[Z.IsFunctionLike=8]="IsFunctionLike",Z[Z.IsFunctionExpression=16]="IsFunctionExpression",Z[Z.HasLocals=32]="HasLocals",Z[Z.IsInterface=64]="IsInterface",Z[Z.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"})(He||(He={}));function ve(Z){return e.Debug.attachFlowNodeDebugInfo(Z),Z}var ie=ve,d=Pe();function H(Z,Re){e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+Z.fileName),d(Z,Re),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")}e.bindSourceFile=H;function Pe(){var Z,Re,Ae,We,be,Ge,x,j,Oe,a,en,Pn,Xn,ae,ce,Le,Je,Ze,Ue,cn,$e,sn=0,he,ke,G={flags:1},c={flags:1},O=0,ee;function Te(me,En,et,Gt,br){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(me)||Z,me,En,et,Gt,br)}function Ne(me,En){Z=me,Re=En,Ae=e.getEmitScriptTarget(Re),$e=ze(Z,En),ke=e.createUnderscoreEscapedMap(),sn=0,ee=Z.isDeclarationFile,he=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(G),e.Debug.attachFlowNodeDebugInfo(c),Z.locals||(ga(Z),Z.symbolCount=sn,Z.classifiableNames=ke,Ya()),Z=void 0,Re=void 0,Ae=void 0,We=void 0,be=void 0,Ge=void 0,x=void 0,j=void 0,Oe=void 0,a=!1,en=void 0,Pn=void 0,Xn=void 0,ae=void 0,ce=void 0,Le=void 0,Ze=void 0,Ue=!1,cn=0,O=0}return Ne;function ze(me,En){return e.getStrictOptionValue(En,"alwaysStrict")&&!me.isDeclarationFile?!0:!!me.externalModuleIndicator}function bn(me,En){return sn++,new he(me,En)}function Sn(me,En,et){me.flags|=et,En.symbol=me,me.declarations=e.appendIfUnique(me.declarations,En),et&(32|384|1536|3)&&!me.exports&&(me.exports=e.createSymbolTable()),et&(32|64|2048|4096)&&!me.members&&(me.members=e.createSymbolTable()),me.constEnumOnlyModule&&me.flags&(16|32|256)&&(me.constEnumOnlyModule=!1),et&111551&&Kn(me,En)}function Kn(me,En){var et=me.valueDeclaration;(!et||e.isAssignmentDeclaration(et)&&!e.isAssignmentDeclaration(En)||et.kind!==En.kind&&e.isEffectiveModuleDeclaration(et))&&(me.valueDeclaration=En)}function Xe(me){if(me.kind===258)return me.isExportEquals?"export=":"default";var En=e.getNameOfDeclaration(me);if(En){if(e.isAmbientModule(me)){var et=e.getTextOfIdentifierOrLiteral(En);return e.isGlobalScopeAugmentation(me)?"__global":'"'+et+'"'}if(En.kind===153){var Gt=En.expression;return e.isStringOrNumericLiteralLike(Gt)?e.escapeLeadingUnderscores(Gt.text):e.isSignedNumericLiteral(Gt)?e.tokenToString(Gt.operator)+Gt.operand.text:(e.Debug.assert(e.isWellKnownSymbolSyntactically(Gt)),e.getPropertyNameForKnownSymbolName(e.idText(Gt.name)))}return e.isWellKnownSymbolSyntactically(En)?e.getPropertyNameForKnownSymbolName(e.idText(En.name)):e.isPropertyNameLiteral(En)?e.getEscapedTextOfIdentifierOrLiteral(En):void 0}switch(me.kind){case 161:return"__constructor";case 169:case 164:case 303:return"__call";case 170:case 165:return"__new";case 166:return"__index";case 259:return"__export";case 288:return"export=";case 208:if(e.getAssignmentDeclarationKind(me)===2)return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 298:return e.isJSDocConstructSignature(me)?"__new":"__call";case 155:e.Debug.assert(me.parent.kind===298,"Impossible parameter parent kind",function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[me.parent.kind]:me.parent.kind)+", expected JSDocFunctionType"});var br=me.parent,ya=br.parameters.indexOf(me);return"arg"+ya}}function pn(me){return e.isNamedDeclaration(me)?e.declarationNameToString(me.name):e.unescapeLeadingUnderscores(e.Debug.assertDefined(Xe(me)))}function le(me,En,et,Gt,br,ya){e.Debug.assert(!e.hasDynamicName(et));var oi=e.hasModifier(et,512),za=oi&&En?"default":Xe(et),ki;if(za===void 0)ki=bn(0,"__missing");else if(ki=me.get(za),Gt&2885600&&ke.set(za,!0),!ki)me.set(za,ki=bn(0,za)),ya&&(ki.isReplaceableByMethod=!0);else{if(ya&&!ki.isReplaceableByMethod)return ki;if(ki.flags&br){if(ki.isReplaceableByMethod)me.set(za,ki=bn(0,za));else if(!(Gt&3&&ki.flags&67108864)){e.isNamedDeclaration(et)&&(et.name.parent=et);var eo=ki.flags&2?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,ea=!0;(ki.flags&384||Gt&384)&&(eo=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,ea=!1);var Ir=!1;e.length(ki.declarations)&&((oi||ki.declarations&&ki.declarations.length&&et.kind===258&&!et.isExportEquals)&&(eo=e.Diagnostics.A_module_cannot_have_multiple_default_exports,ea=!1,Ir=!0));var To=e.getNameOfDeclaration(et)||et,Uo=[];e.forEach(ki.declarations,function(Qo,co){var Bs=e.getNameOfDeclaration(Qo)||Qo,Ts=Te(Bs,eo,ea?pn(Qo):void 0);Z.bindDiagnostics.push(Ir?e.addRelatedInfo(Ts,Te(To,co===0?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):Ts),Ir&&Uo.push(Te(Bs,e.Diagnostics.The_first_export_default_is_here))});var tl=Te(To,eo,ea?pn(et):void 0);Z.bindDiagnostics.push(Ir?e.addRelatedInfo.apply(void 0,Or([tl],Uo)):tl),ki=bn(0,za)}}}return Sn(ki,et,Gt),ki.parent?e.Debug.assert(ki.parent===En,"Existing symbol parent should match new one"):ki.parent=En,ki}function oe(me,En,et){var Gt=e.getCombinedModifierFlags(me)&1;if(En&2097152)return me.kind===261||me.kind===252&&Gt?le(be.symbol.exports,be.symbol,me,En,et):le(be.locals,void 0,me,En,et);if(e.isJSDocTypeAlias(me)&&e.Debug.assert(e.isInJSFile(me)),!e.isAmbientModule(me)&&(Gt||be.flags&64)||e.isJSDocTypeAlias(me)){if(!be.locals||e.hasModifier(me,512)&&!Xe(me))return le(be.symbol.exports,be.symbol,me,En,et);var br=En&111551?1048576:0,ya=le(be.locals,void 0,me,br,et);return ya.exportSymbol=le(be.symbol.exports,be.symbol,me,En,et),me.localSymbol=ya,ya}else return le(be.locals,void 0,me,En,et)}function kn(me,En){var et=be,Gt=Ge,br=x;if(En&1?(me.kind!==201&&(Ge=be),be=x=me,En&32&&(be.locals=e.createSymbolTable()),Na(be)):En&2&&(x=me,x.locals=void 0),En&4){var ya=ie,oi=en,za=Pn,ki=Xn,eo=ae,ea=Ze,Ir=Ue,To=En&16&&!e.hasModifier(me,256)&&!me.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(me);To||(en=ve({flags:2}),En&(16|128)&&(en.node=me)),ae=To||me.kind===161?st():void 0,Pn=void 0,Xn=void 0,Ze=void 0,Ue=!1,ie=ve,yn(me),me.flags&=~2816,!(en.flags&1)&&En&8&&e.nodeIsPresent(me.body)&&(me.flags|=256,Ue&&(me.flags|=512),me.endFlowNode=en),me.kind===288&&(me.flags|=cn),ae&&(De(ae,en),en=vr(ae),me.kind===161&&(me.returnFlowNode=en)),To||(en=oi),Pn=za,Xn=ki,ae=eo,Ze=ea,Ue=Ir,ie=ya}else En&64?(a=!1,yn(me),me.flags=a?me.flags|128:me.flags&~128):yn(me);be=et,Ge=Gt,x=br}function yn(me){if(ee)Mn(me);else if(me.transformFlags&536870912)ee=!0,Mn(me),ee=!1,O|=me.transformFlags&~de(me.kind);else{var En=O;O=0,Mn(me),O=En|k(me,O)}}function ye(me){mn(me,function(En){return En.kind===243?ga(En):void 0}),mn(me,function(En){return En.kind!==243?ga(En):void 0})}function mn(me,En){if(En===void 0&&(En=ga),me===void 0)return;if(ee)e.forEach(me,En);else{var et=O;O=0;for(var Gt=0,br=0,ya=me;br<ya.length;br++){var oi=ya[br];En(oi),Gt|=oi.transformFlags&~536870912}me.transformFlags=Gt|536870912,O|=et}}function un(me){e.forEachChild(me,ga,mn)}function Mn(me){if(Es(me)){un(me),Yo(me);return}me.kind>=224&&me.kind<=240&&!Re.allowUnreachableCode&&(me.flowNode=en);switch(me.kind){case 228:Ut(me);break;case 227:ft(me);break;case 229:Tt(me);break;case 230:case 231:yt(me);break;case 226:vt(me);break;case 234:case 238:Ke(me);break;case 233:case 232:tr(me);break;case 239:xa(me);break;case 236:Ba(me);break;case 250:ai(me);break;case 275:wi(me);break;case 225:Pi(me);break;case 237:Xa(me);break;case 206:Vo(me);break;case 207:mo(me);break;case 208:Ro(me);break;case 202:uo(me);break;case 209:ui(me);break;case 241:ji(me);break;case 193:case 194:_r(me);break;case 195:Jr(me);break;case 315:case 308:case 309:Fo(me);break;case 288:{ye(me.statements),ga(me.endOfFileToken);break}case 222:case 249:ye(me.statements);break;default:un(me);break}Yo(me)}function tt(me){switch(me.kind){case 75:case 103:case 193:case 194:return Vn(me);case 195:return ut(me);case 199:return tt(me.expression);case 208:return ct(me);case 206:return me.operator===53&&tt(me.operand);case 203:return tt(me.expression)}return!1}function Vn(me){return me.kind===75||me.kind===103||me.kind===101||(e.isPropertyAccessExpression(me)||e.isNonNullExpression(me)||e.isParenthesizedExpression(me))&&Vn(me.expression)||e.isElementAccessExpression(me)&&e.isStringOrNumericLiteralLike(me.argumentExpression)&&Vn(me.expression)||e.isOptionalChain(me)}function ut(me){if(me.arguments)for(var En=0,et=me.arguments;En<et.length;En++){var Gt=et[En];if(Vn(Gt))return!0}return!!(me.expression.kind===193&&Vn(me.expression.expression))}function dt(me,En){return e.isTypeOfExpression(me)&&wt(me.expression)&&e.isStringLiteralLike(En)}function ot(me,En){return e.isStringLiteralLike(me)&&tt(En)}function ct(me){switch(me.operatorToken.kind){case 62:return Vn(me.left);case 34:case 35:case 36:case 37:return wt(me.left)||wt(me.right)||dt(me.right,me.left)||dt(me.left,me.right);case 97:return wt(me.left);case 96:return ot(me.left,me.right);case 27:return tt(me.right)}return!1}function wt(me){switch(me.kind){case 199:return wt(me.expression);case 208:switch(me.operatorToken.kind){case 62:return wt(me.left);case 27:return wt(me.right)}}return Vn(me)}function st(){return ve({flags:4,antecedents:void 0})}function qn(){return ve({flags:8,antecedents:void 0})}function Ie(me){me.flags|=me.flags&1024?2048:1024}function De(me,En){!(En.flags&1)&&!e.contains(me.antecedents,En)&&((me.antecedents||(me.antecedents=[])).push(En),Ie(En))}function _n(me,En,et){return En.flags&1?En:et?(et.kind===105&&me&64||et.kind===90&&me&32)&&!e.isExpressionOfOptionalChainRoot(et)&&!e.isNullishCoalesce(et.parent)?G:tt(et)?(Ie(En),ie({flags:me,antecedent:En,node:et})):En:me&32?En:G}function _t(me,En,et,Gt){return tt(En.expression)?(Ie(me),ie({flags:128,antecedent:me,switchStatement:En,clauseStart:et,clauseEnd:Gt})):me}function It(me,En){return Ie(me),ie({flags:16,antecedent:me,node:En})}function Ht(me,En){return Ie(me),ie({flags:512,antecedent:me,node:En})}function nr(me,En){return Ie(me),ie({flags:256,antecedent:me,node:En})}function vr(me){var En=me.antecedents;return En?En.length===1?En[0]:me:G}function Qr(me){var En=me.parent;switch(En.kind){case 226:case 228:case 227:return En.expression===me;case 229:case 209:return En.condition===me}return!1}function Wr(me){for(;;)if(me.kind===199)me=me.expression;else if(me.kind===206&&me.operator===53)me=me.operand;else return me.kind===208&&(me.operatorToken.kind===55||me.operatorToken.kind===56||me.operatorToken.kind===60)}function gt(me){for(;e.isParenthesizedExpression(me.parent)||e.isPrefixUnaryExpression(me.parent)&&me.parent.operator===53;)me=me.parent;return!Qr(me)&&!Wr(me.parent)&&!(e.isOptionalChain(me.parent)&&me.parent.expression===me)}function ba(me,En,et,Gt){var br=ce,ya=Le;ce=et,Le=Gt,me(En),ce=br,Le=ya}function kt(me,En,et){ba(ga,me,En,et),(!me||!Wr(me)&&!(e.isOptionalChain(me)&&e.isOutermostOptionalChain(me)))&&(De(En,_n(32,en,me)),De(et,_n(64,en,me)))}function jn(me,En,et){var Gt=Pn,br=Xn;Pn=En,Xn=et,ga(me),Pn=Gt,Xn=br}function Ut(me){var En=qn(),et=st(),Gt=st();De(En,en),en=En,kt(me.expression,et,Gt),en=vr(et),jn(me.statement,Gt,En),De(En,en),en=vr(Gt)}function ft(me){var En=qn(),et=me.parent.kind===237?e.lastOrUndefined(Ze):void 0,Gt=et?et.continueTarget:st(),br=et?et.breakTarget:st();De(En,en),en=En,jn(me.statement,br,Gt),De(Gt,en),en=vr(Gt),kt(me.expression,En,br),en=vr(br)}function Tt(me){var En=qn(),et=st(),Gt=st();ga(me.initializer),De(En,en),en=En,kt(me.condition,et,Gt),en=vr(et),jn(me.statement,Gt,En),ga(me.incrementor),De(En,en),en=vr(Gt)}function yt(me){var En=qn(),et=st();ga(me.expression),De(En,en),en=En,me.kind===231&&ga(me.awaitModifier),De(et,en),ga(me.initializer),me.initializer.kind!==242&&ca(me.initializer),jn(me.statement,et,En),De(En,en),en=vr(et)}function vt(me){var En=st(),et=st(),Gt=st();kt(me.expression,En,et),en=vr(En),ga(me.thenStatement),De(Gt,en),en=vr(et),ga(me.elseStatement),De(Gt,en),en=vr(Gt)}function Ke(me){ga(me.expression),me.kind===234&&(Ue=!0,ae&&De(ae,en)),en=G}function Rn(me){if(Ze)for(var En=0,et=Ze;En<et.length;En++){var Gt=et[En];if(Gt.name===me)return Gt}return}function nt(me,En,et){var Gt=me.kind===233?En:et;Gt&&(De(Gt,en),en=G)}function tr(me){if(ga(me.label),me.label){var En=Rn(me.label.escapedText);En&&(En.referenced=!0,nt(me,En.breakTarget,En.continueTarget))}else nt(me,Pn,Xn)}function xa(me){var En=st(),et=en,Gt=[],br=ie;(me.catchClause||me.finallyBlock)&&(ie=function(Ts){return Gt.push(Ts),ve(Ts)}),ga(me.tryBlock),ie=br,De(En,en);var ya=en,oi=G;if(me.catchClause){if(en=et,Gt.length){var za=st();De(za,en);for(var ki=0,eo=Gt;ki<eo.length;ki++){var ea=eo[ki];De(za,ea)}en=vr(za)}ga(me.catchClause),De(En,en),oi=en}if(me.finallyBlock){var Ir=et;if(!me.catchClause&&Gt.length){var To=st();De(To,et);for(var Uo=0,tl=Gt;Uo<tl.length;Uo++){var ea=tl[Uo];De(To,ea)}Ir=vr(To)}var Qo=ve({flags:4096,antecedent:Ir,lock:{}});if(De(En,Qo),en=vr(En),ga(me.finallyBlock),en.flags&1||ya.flags&1&&oi.flags&1&&(en=ya===c||oi===c?c:G),!(en.flags&1)){var co=ie({flags:8192,antecedent:en});Qo.lock=co,en=co}}else en=vr(En)}function Ba(me){var En=st();ga(me.expression);var et=Pn,Gt=Je;Pn=En,Je=en,ga(me.caseBlock),De(En,en);var br=e.forEach(me.caseBlock.clauses,function(ya){return ya.kind===276});me.possiblyExhaustive=!br&&!En.antecedents,br||De(En,_t(Je,me,0,0)),Pn=et,Je=Gt,en=vr(En)}function ai(me){var En=O;O=0;for(var et=me.clauses,Gt=G,br=0;br<et.length;br++){for(var ya=br;!et[br].statements.length&&br+1<et.length;)ga(et[br]),br++;var oi=st();De(oi,_t(Je,me.parent,ya,br+1)),De(oi,Gt),en=vr(oi);var za=et[br];ga(za),Gt=en,!(en.flags&1)&&br!==et.length-1&&Re.noFallthroughCasesInSwitch&&(za.fallthroughFlowNode=en)}et.transformFlags=O|536870912,O|=En}function wi(me){var En=en;en=Je,ga(me.expression),en=En,mn(me.statements)}function Ai(me,En,et){var Gt={name:me,breakTarget:En,continueTarget:et,referenced:!1};return(Ze||(Ze=[])).push(Gt),Gt}function Ei(){Ze.pop()}function Pi(me){if(ga(me.expression),me.expression.kind===195){var En=me.expression;e.isDottedName(En.expression)&&(en=Ht(en,En))}}function Xa(me){var En=qn(),et=st();ga(me.label),De(En,en);var Gt=Ai(me.label.escapedText,et,En);ga(me.statement),Ei(),!Gt.referenced&&!Re.allowUnusedLabels&&da(e.unusedLabelIsError(Re),me.label,e.Diagnostics.Unused_label),(!me.statement||me.statement.kind!==227)&&(De(et,en),en=vr(et))}function Ia(me){me.kind===208&&me.operatorToken.kind===62?ca(me.left):ca(me)}function ca(me){if(Vn(me))en=It(en,me);else if(me.kind===191)for(var En=0,et=me.elements;En<et.length;En++){var Gt=et[En];Gt.kind===212?ca(Gt.expression):Ia(Gt)}else if(me.kind===192)for(var br=0,ya=me.properties;br<ya.length;br++){var oi=ya[br];oi.kind===279?Ia(oi.initializer):oi.kind===280?ca(oi.name):oi.kind===281&&ca(oi.expression)}}function Ti(me,En,et){var Gt=st();me.operatorToken.kind===55?kt(me.left,Gt,et):kt(me.left,En,Gt),en=vr(Gt),ga(me.operatorToken),kt(me.right,En,et)}function Vo(me){if(me.operator===53){var En=ce;ce=Le,Le=En,un(me),Le=ce,ce=En}else un(me),(me.operator===45||me.operator===46)&&ca(me.operand)}function mo(me){un(me),(me.operator===45||me.operator===46)&&ca(me.operand)}function Ro(me){var En=me.operatorToken.kind;if(En===55||En===56||En===60)if(gt(me)){var et=st();Ti(me,et,et),en=vr(et)}else Ti(me,ce,Le);else if(un(me),e.isAssignmentOperator(En)&&!e.isAssignmentTarget(me)&&(ca(me.left),En===62&&me.left.kind===194)){var Gt=me.left;wt(Gt.expression)&&(en=nr(en,me))}}function uo(me){un(me),me.expression.kind===193&&ca(me.expression)}function ui(me){var En=st(),et=st(),Gt=st();kt(me.condition,En,et),en=vr(En),ga(me.questionToken),ga(me.whenTrue),De(Gt,en),en=vr(et),ga(me.colonToken),ga(me.whenFalse),De(Gt,en),en=vr(Gt)}function Gi(me){var En=e.isOmittedExpression(me)?void 0:me.name;if(e.isBindingPattern(En))for(var et=0,Gt=En.elements;et<Gt.length;et++){var br=Gt[et];Gi(br)}else en=It(en,me)}function ji(me){un(me),(me.initializer||e.isForInOrOfStatement(me.parent.parent))&&Gi(me)}function Fo(me){me.tagName.parent=me,me.kind!==309&&me.fullName&&Ce(me,me.fullName)}function ko(me){un(me);var En=e.getHostSignatureFromJSDoc(me);En&&En.kind!==160&&Sn(En.symbol,En,32)}function bo(me,En,et){ba(ga,me,En,et),(!e.isOptionalChain(me)||e.isOutermostOptionalChain(me))&&(De(En,_n(32,en,me)),De(et,_n(64,en,me)))}function Ri(me){ga(me.questionDotToken);switch(me.kind){case 193:ga(me.name);break;case 194:ga(me.argumentExpression);break;case 195:mn(me.typeArguments),mn(me.arguments);break}}function xt(me,En,et){var Gt=me.questionDotToken?st():void 0;bo(me.expression,Gt||En,et),Gt&&(en=vr(Gt)),ba(Ri,me,En,et),e.isOutermostOptionalChain(me)&&(De(En,_n(32,en,me)),De(et,_n(64,en,me)))}function Kt(me){if(gt(me)){var En=st();xt(me,En,En),en=vr(En)}else xt(me,ce,Le)}function _r(me){e.isOptionalChain(me)?Kt(me):un(me)}function Jr(me){if(e.isOptionalChain(me))Kt(me);else{var En=e.skipParentheses(me.expression);En.kind===200||En.kind===201?(mn(me.typeArguments),mn(me.arguments),ga(me.expression)):un(me)}if(me.expression.kind===193){var et=me.expression;wt(et.expression)&&e.isPushOrUnshiftIdentifier(et.name)&&(en=nr(en,me))}}function va(me){switch(me.kind){case 213:case 244:case 247:case 192:case 172:case 302:case 272:return 1;case 245:return 1|64;case 248:case 246:case 185:return 1|32;case 288:return 1|4|32;case 160:if(e.isObjectLiteralOrClassExpressionMethod(me))return 1|4|32|8|128;case 161:case 243:case 159:case 162:case 163:case 164:case 303:case 298:case 169:case 165:case 166:case 170:return 1|4|32|8;case 200:case 201:return 1|4|32|8|16;case 249:return 4;case 158:return me.initializer?4:0;case 278:case 229:case 230:case 231:case 250:return 2;case 222:return e.isFunctionLike(me.parent)?0:2}return 0}function Na(me){j&&(j.nextContainer=me),j=me}function qr(me,En,et){switch(be.kind){case 248:return oe(me,En,et);case 288:return Ii(me,En,et);case 213:case 244:return hi(me,En,et);case 247:return le(be.symbol.exports,be.symbol,me,En,et);case 172:case 302:case 192:case 245:case 272:return le(be.symbol.members,be.symbol,me,En,et);case 169:case 170:case 164:case 165:case 303:case 166:case 160:case 159:case 161:case 162:case 163:case 243:case 200:case 201:case 298:case 315:case 308:case 246:case 185:return le(be.locals,void 0,me,En,et)}}function hi(me,En,et){return e.hasModifier(me,32)?le(be.symbol.exports,be.symbol,me,En,et):le(be.symbol.members,be.symbol,me,En,et)}function Ii(me,En,et){return e.isExternalModule(Z)?oe(me,En,et):le(Z.locals,void 0,me,En,et)}function gi(me){var En=e.isSourceFile(me)?me:e.tryCast(me.body,e.isModuleBlock);return!!En&&En.statements.some(function(et){return e.isExportDeclaration(et)||e.isExportAssignment(et)})}function ua(me){me.flags&8388608&&!gi(me)?me.flags|=64:me.flags&=~64}function tn(me){if(ua(me),e.isAmbientModule(me))if(e.hasModifier(me,1)&&Dr(me,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(me))vn(me);else{var En=void 0;if(me.name.kind===10){var et=me.name.text;e.hasZeroOrOneAsteriskCharacter(et)?En=e.tryParsePattern(et):Dr(me.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,et)}var Gt=qr(me,512,110735);Z.patternAmbientModules=e.append(Z.patternAmbientModules,En&&{pattern:En,symbol:Gt})}else{var br=vn(me);if(br!==0){var Gt=me.symbol;Gt.constEnumOnlyModule=!(Gt.flags&(16|32|256))&&br===2&&Gt.constEnumOnlyModule!==!1}}}function vn(me){var En=F(me),et=En!==0;return qr(me,et?512:1024,et?110735:0),En}function Ln(me){var En=bn(131072,Xe(me));Sn(En,me,131072);var et=bn(2048,"__type");Sn(et,me,2048),et.members=e.createSymbolTable(),et.members.set(En.escapedName,En)}function Bn(me){var En;if(function(ea){ea[ea.Property=1]="Property",ea[ea.Accessor=2]="Accessor"}(En||(En={})),$e)for(var et=e.createUnderscoreEscapedMap(),Gt=0,br=me.properties;Gt<br.length;Gt++){var ya=br[Gt];if(ya.kind===281||ya.name.kind!==75)continue;var oi=ya.name,za=ya.kind===279||ya.kind===280||ya.kind===160?1:2,ki=et.get(oi.escapedText);if(!ki){et.set(oi.escapedText,za);continue}if(za===1&&ki===1){var eo=e.getErrorSpanForNode(Z,oi);Z.bindDiagnostics.push(e.createFileDiagnostic(Z,eo.start,eo.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}return cr(me,4096,"__object")}function Pt(me){return cr(me,4096,"__jsxAttributes")}function rr(me,En,et){return qr(me,En,et)}function cr(me,En,et){var Gt=bn(En,et);return En&(8|106500)&&(Gt.parent=be.symbol),Sn(Gt,me,En),Gt}function Cr(me,En,et){switch(x.kind){case 248:oe(me,En,et);break;case 288:if(e.isExternalOrCommonJsModule(be)){oe(me,En,et);break}default:x.locals||(x.locals=e.createSymbolTable(),Na(x)),le(x.locals,void 0,me,En,et)}}function Ya(){if(!Oe)return;for(var me=be,En=j,et=x,Gt=We,br=en,ya=0,oi=Oe;ya<oi.length;ya++){var za=oi[ya],ki=e.getJSDocHost(za);be=e.findAncestor(ki.parent,function(To){return!!(va(To)&1)})||Z,x=e.getEnclosingBlockScopeContainer(ki)||Z,en=ve({flags:2}),We=za,ga(za.typeExpression);var eo=e.getNameOfDeclaration(za);if((e.isJSDocEnumTag(za)||!za.fullName)&&eo&&e.isPropertyAccessEntityNameExpression(eo.parent)){var ea=Lr(eo.parent);if(ea){yr(Z.symbol,eo.parent,ea,!!e.findAncestor(eo,function(To){return e.isPropertyAccessExpression(To)&&To.name.escapedText==="prototype"}),!1);var Ir=be;switch(e.getAssignmentDeclarationPropertyAccessKind(eo.parent)){case 1:case 2:e.isExternalOrCommonJsModule(Z)?be=Z:be=void 0;break;case 4:be=eo.parent.expression;break;case 3:be=eo.parent.expression.name;break;case 5:be=e.isPropertyAccessExpression(eo.parent.expression)?eo.parent.expression.name:eo.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}be&&oe(za,524288,788968),be=Ir}}else e.isJSDocEnumTag(za)||!za.fullName||za.fullName.kind===75?(We=za.parent,Cr(za,524288,788968)):ga(za.fullName)}be=me,j=En,x=et,We=Gt,en=br}function Oa(me){$e&&me.originalKeywordKind>=112&&me.originalKeywordKind<=120&&!e.isIdentifierName(me)&&!(me.flags&8388608)&&!(me.flags&4194304)&&(Z.parseDiagnostics.length||Z.bindDiagnostics.push(Te(me,Ni(me),e.declarationNameToString(me))))}function Ni(me){return e.getContainingClass(me)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Z.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 ii(me){$e&&e.isLeftHandSideExpression(me.left)&&e.isAssignmentOperator(me.operatorToken.kind)&&ge(me,me.left)}function _i(me){$e&&me.variableDeclaration&&ge(me,me.variableDeclaration.name)}function Ye(me){if($e&&me.expression.kind===75){var En=e.getErrorSpanForNode(Z,me.expression);Z.bindDiagnostics.push(e.createFileDiagnostic(Z,En.start,En.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function zn(me){return e.isIdentifier(me)&&(me.escapedText==="eval"||me.escapedText==="arguments")}function ge(me,En){if(En&&En.kind===75){var et=En;if(zn(et)){var Gt=e.getErrorSpanForNode(Z,En);Z.bindDiagnostics.push(e.createFileDiagnostic(Z,Gt.start,Gt.length,hn(me),e.idText(et)))}}}function hn(me){return e.getContainingClass(me)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:Z.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Jn(me){$e&&ge(me,me.name)}function ue(me){return e.getContainingClass(me)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:Z.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 rn(me){if(Ae<2&&(x.kind!==288&&x.kind!==248&&!e.isFunctionLike(x))){var En=e.getErrorSpanForNode(Z,me);Z.bindDiagnostics.push(e.createFileDiagnostic(Z,En.start,En.length,ue(me)))}}function Cn(me){$e&&me.numericLiteralFlags&32&&Z.bindDiagnostics.push(Te(me,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function Zn(me){$e&&ge(me,me.operand)}function lt(me){$e&&((me.operator===45||me.operator===46)&&ge(me,me.operand))}function Rt(me){$e&&Dr(me,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function an(me){$e&&Re.target>=2&&((e.isDeclarationStatement(me.statement)||e.isVariableStatement(me.statement))&&Dr(me.label,e.Diagnostics.A_label_is_not_allowed_here))}function Dr(me,En,et,Gt,br){var ya=e.getSpanOfTokenAtPosition(Z,me.pos);Z.bindDiagnostics.push(e.createFileDiagnostic(Z,ya.start,ya.length,En,et,Gt,br))}function da(me,En,et){Ha(me,En,En,et)}function Ha(me,En,et,Gt){to(me,{pos:e.getTokenPosOfNode(En,Z),end:et.end},Gt)}function to(me,En,et){var Gt=e.createFileDiagnostic(Z,En.pos,En.end-En.pos,et);me?Z.bindDiagnostics.push(Gt):Z.bindSuggestionDiagnostics=e.append(Z.bindSuggestionDiagnostics,ma(ma({},Gt),{category:e.DiagnosticCategory.Suggestion}))}function ga(me){if(!me)return;me.parent=We;var En=$e;if(vs(me),me.kind>151){var et=We;We=me;var Gt=va(me);Gt===0?yn(me):kn(me,Gt),We=et}else if(!ee&&(me.transformFlags&536870912)===0){O|=k(me,0);var et=We;me.kind===1&&(We=me),Yo(me),We=et}$e=En}function Yo(me){if(e.hasJSDocNodes(me))if(e.isInJSFile(me))for(var En=0,et=me.jsDoc;En<et.length;En++){var Gt=et[En];ga(Gt)}else for(var br=0,ya=me.jsDoc;br<ya.length;br++){var Gt=ya[br];Ce(me,Gt)}}function Co(me){if(!$e)for(var En=0,et=me;En<et.length;En++){var Gt=et[En];if(!e.isPrologueDirective(Gt))return;if(Rs(Gt)){$e=!0;return}}}function Rs(me){var En=e.getSourceTextOfNodeFromSourceFile(Z,me.expression);return En==='"use strict"'||En==="'use strict'"}function vs(me){switch(me.kind){case 75:if(me.isInJSDocNamespace){for(var En=me.parent;En&&!e.isJSDocTypeAlias(En);)En=En.parent;Cr(En,524288,788968);break}case 103:return en&&(e.isExpression(me)||We.kind===280)&&(me.flowNode=en),Oa(me);case 193:case 194:var et=me;en&&Vn(et)&&(et.flowNode=en),e.isSpecialPropertyDeclaration(et)&&el(et),e.isInJSFile(et)&&Z.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(et)&&!w(x,"module")&&le(Z.locals,void 0,et.expression,1|134217728,111550);break;case 208:var Gt=e.getAssignmentDeclarationKind(me);switch(Gt){case 1:bs(me);break;case 2:yl(me);break;case 3:$n(me.left,me);break;case 6:nl(me);break;case 4:Ks(me);break;case 5:Qn(me);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return ii(me);case 278:return _i(me);case 202:return Ye(me);case 8:return Cn(me);case 207:return Zn(me);case 206:return lt(me);case 235:return Rt(me);case 237:return an(me);case 182:a=!0;return;case 167:break;case 154:return Ho(me);case 155:return Io(me);case 241:return pi(me);case 190:return me.flowNode=en,pi(me);case 158:case 157:return ml(me);case 279:case 280:return $i(me,4,0);case 282:return $i(me,8,900095);case 164:case 165:case 166:return qr(me,131072,0);case 160:case 159:return $i(me,8192|(me.questionToken?16777216:0),e.isObjectLiteralMethod(me)?0:103359);case 243:return qi(me);case 161:return qr(me,16384,0);case 162:return $i(me,32768,46015);case 163:return $i(me,65536,78783);case 169:case 298:case 303:case 170:return Ln(me);case 172:case 302:case 185:return Fs(me);case 307:return ko(me);case 192:return Bn(me);case 200:case 201:return wn(me);case 195:var br=e.getAssignmentDeclarationKind(me);switch(br){case 7:return ht(me);case 8:return Ns(me);case 9:return Fn(me);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(me)&&Fa(me);break;case 213:case 244:return $e=!0,vi(me);case 245:return Cr(me,64,788872);case 246:return Cr(me,524288,788968);case 247:return Eo(me);case 248:return tn(me);case 272:return Pt(me);case 271:return rr(me,4,0);case 252:case 255:case 257:case 261:return qr(me,2097152,2097152);case 251:return Ul(me);case 254:return ho(me);case 259:return gl(me);case 258:return hl(me);case 288:return Co(me.statements),Il();case 222:if(!e.isFunctionLike(me.parent))return;case 249:return Co(me.statements);case 310:if(me.parent.kind===303)return Io(me);if(me.parent.kind!==302)break;case 316:var ya=me,oi=ya.isBracketed||ya.typeExpression&&ya.typeExpression.type.kind===297?4|16777216:4;return qr(ya,oi,0);case 315:case 308:case 309:return(Oe||(Oe=[])).push(me)}}function ml(me){return $i(me,4|(me.questionToken?16777216:0),0)}function Fs(me){return cr(me,2048,"__type")}function Il(){if(ua(Z),e.isExternalModule(Z))es();else if(e.isJsonSourceFile(Z)){es();var me=Z.symbol;le(Z.symbol.exports,Z.symbol,Z,4,67108863),Z.symbol=me}}function es(){cr(Z,512,'"'+e.removeFileExtension(Z.fileName)+'"')}function hl(me){if(!be.symbol||!be.symbol.exports)cr(me,2097152,Xe(me));else{var En=e.exportAssignmentIsAlias(me)?2097152:4,et=le(be.symbol.exports,be.symbol,me,En,67108863);me.isExportEquals&&Kn(et,me)}}function Ul(me){me.modifiers&&me.modifiers.length&&Z.bindDiagnostics.push(Te(me,e.Diagnostics.Modifiers_cannot_appear_here));var En=e.isSourceFile(me.parent)?e.isExternalModule(me.parent)?me.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;En?Z.bindDiagnostics.push(Te(me,En)):(Z.symbol.globalExports=Z.symbol.globalExports||e.createSymbolTable(),le(Z.symbol.globalExports,Z.symbol,me,2097152,2097152))}function gl(me){!be.symbol||!be.symbol.exports?cr(me,8388608,Xe(me)):me.exportClause||le(be.symbol.exports,be.symbol,me,8388608,0)}function ho(me){me.name&&qr(me,2097152,2097152)}function Is(me){return Z.externalModuleIndicator?!1:(Z.commonJsModuleIndicator||(Z.commonJsModuleIndicator=me,es()),!0)}function Ns(me){if(!Is(me))return;var En=Da(me.arguments[0],void 0,function(Gt,br){return br&&Sn(br,Gt,1536|67108864),br});if(En){var et=4|1048576;le(En.exports,En,me,et,0)}}function bs(me){if(!Is(me))return;var En=Da(me.left.expression,void 0,function(Gt,br){return br&&Sn(br,Gt,1536|67108864),br});if(En){var et=e.isClassExpression(me.right)?4|1048576|32:4|1048576;le(En.exports,En,me.left,et,0)}}function yl(me){if(!Is(me))return;var En=e.getRightMostAssignedExpression(me.right);if(e.isEmptyObjectLiteral(En)||be===Z&&se(Z,En))return;var et=e.exportAssignmentIsAlias(me)?2097152:4|1048576|512,Gt=le(Z.symbol.exports,Z.symbol,me,et|67108864,0);Kn(Gt,me)}function Ks(me){e.Debug.assert(e.isInJSFile(me));var En=e.getThisContainer(me,!1);switch(En.kind){case 243:case 200:var et=En.symbol;if(e.isBinaryExpression(En.parent)&&En.parent.operatorToken.kind===62){var Gt=En.parent.left;e.isBindableStaticAccessExpression(Gt)&&e.isPrototypeAccess(Gt.expression)&&(et=fa(Gt.expression.expression,Ge))}et&&et.valueDeclaration&&(et.members=et.members||e.createSymbolTable(),e.hasDynamicName(me)?qs(me,et):le(et.members,et,me,4|67108864,0&~4),Sn(et,et.valueDeclaration,32));break;case 161:case 158:case 160:case 162:case 163:var br=En.parent,ya=e.hasModifier(En,32)?br.symbol.exports:br.symbol.members;e.hasDynamicName(me)?qs(me,br.symbol):le(ya,br.symbol,me,4|67108864,0,!0);break;case 288:if(e.hasDynamicName(me))break;En.commonJsModuleIndicator?le(En.symbol.exports,En.symbol,me,4|1048576,0):qr(me,1,111550);break;default:e.Debug.failBadSyntaxKind(En)}}function qs(me,En){cr(me,4,"__computed"),$s(me,En)}function $s(me,En){if(En){var et=En.assignmentDeclarationMembers||(En.assignmentDeclarationMembers=e.createMap());et.set(""+e.getNodeId(me),me)}}function el(me){me.expression.kind===103?Ks(me):e.isBindableStaticAccessExpression(me)&&me.parent.parent.kind===288&&(e.isPrototypeAccess(me.expression)?$n(me,me.parent):Qt(me))}function nl(me){me.left.parent=me,me.right.parent=me,kr(me.left.expression,me.left,!1,!0)}function Fn(me){var En=fa(me.arguments[0].expression);En&&En.valueDeclaration&&Sn(En,En.valueDeclaration,32),Br(me,En,!0)}function $n(me,En){var et=me.expression,Gt=et.expression;me.parent=En,Gt.parent=et,et.parent=me,kr(Gt,me,!0,!0)}function ht(me){var En=fa(me.arguments[0]),et=me.parent.parent.kind===288;En=yr(En,me.arguments[0],et,!1,!1),Br(me,En,!1)}function Qn(me){var En=fa(me.left.expression);if(!e.isInJSFile(me)&&!e.isFunctionSymbol(En))return;if(me.left.parent=me,me.right.parent=me,e.isIdentifier(me.left.expression)&&be===Z&&se(Z,me.left.expression))bs(me);else if(e.hasDynamicName(me)){cr(me,4|67108864,"__computed");var et=yr(En,me.left.expression,Lr(me.left),!1,!1);$s(me,et)}else Qt(e.cast(me.left,e.isBindableStaticAccessExpression))}function Qt(me){me.expression.parent=me,kr(me.expression,me,!1,!1)}function yr(me,En,et,Gt,br){if(et&&!Gt){var ya=1536|67108864,oi=110735&~67108864;me=Da(En,me,function(za,ki,eo){if(ki)return Sn(ki,za,ya),ki;var ea=eo?eo.exports:Z.jsGlobalAugmentations||(Z.jsGlobalAugmentations=e.createSymbolTable());return le(ea,eo,za,ya,oi)})}return br&&me&&me.valueDeclaration&&Sn(me,me.valueDeclaration,32),me}function Br(me,En,et){if(!En||!Pr(En))return;var Gt=et?En.members||(En.members=e.createSymbolTable()):En.exports||(En.exports=e.createSymbolTable()),br=0,ya=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(me))?(br=8192,ya=103359):e.isCallExpression(me)&&e.isBindableObjectDefinePropertyCall(me)&&(e.some(me.arguments[2].properties,function(oi){var za=e.getNameOfDeclaration(oi);return!!za&&e.isIdentifier(za)&&e.idText(za)==="set"})&&(br|=65536|4,ya|=78783),e.some(me.arguments[2].properties,function(oi){var za=e.getNameOfDeclaration(oi);return!!za&&e.isIdentifier(za)&&e.idText(za)==="get"})&&(br|=32768|4,ya|=46015)),br===0&&(br=4,ya=0),le(Gt,En,me,br|67108864,ya&~67108864)}function Lr(me){return e.isBinaryExpression(me.parent)?Er(me.parent).parent.kind===288:me.parent.parent.kind===288}function kr(me,En,et,Gt){var br=fa(me),ya=Lr(En);br=yr(br,En.expression,ya,et,Gt),Br(En,br,et)}function Pr(me){if(me.flags&(16|32|1024))return!0;var En=me.valueDeclaration;if(En&&e.isCallExpression(En))return!!e.getAssignedExpandoInitializer(En);var et=En?e.isVariableDeclaration(En)?En.initializer:e.isBinaryExpression(En)?En.right:e.isPropertyAccessExpression(En)&&e.isBinaryExpression(En.parent)?En.parent.right:void 0:void 0;if(et=et&&e.getRightMostAssignedExpression(et),et){var Gt=e.isPrototypeAccess(e.isVariableDeclaration(En)?En.name:e.isBinaryExpression(En)?En.left:En);return!!e.getExpandoInitializer(e.isBinaryExpression(et)&&(et.operatorToken.kind===56||et.operatorToken.kind===60)?et.right:et,Gt)}return!1}function Er(me){for(;e.isBinaryExpression(me.parent);)me=me.parent;return me.parent}function fa(me,En){if(En===void 0&&(En=be),e.isIdentifier(me))return w(En,me.escapedText);var et=fa(me.expression);return et&&et.exports&&et.exports.get(e.getElementOrPropertyAccessName(me))}function Da(me,En,et){if(se(Z,me))return Z.symbol;if(e.isIdentifier(me))return et(me,fa(me),En);var Gt=Da(me.expression,En,et);return et(e.getNameOrArgument(me),Gt&&Gt.exports&&Gt.exports.get(e.getElementOrPropertyAccessName(me)),Gt)}function Fa(me){!Z.commonJsModuleIndicator&&e.isRequireCall(me,!1)&&Is(me)}function vi(me){if(me.kind===244)Cr(me,32,899503);else{var En=me.name?me.name.escapedText:"__class";cr(me,32,En),me.name&&ke.set(me.name.escapedText,!0)}var et=me.symbol,Gt=bn(4|4194304,"prototype"),br=et.exports.get(Gt.escapedName);br&&(me.name&&(me.name.parent=me),Z.bindDiagnostics.push(Te(br.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(Gt)))),et.exports.set(Gt.escapedName,Gt),Gt.parent=et}function Eo(me){return e.isEnumConst(me)?Cr(me,128,899967):Cr(me,256,899327)}function pi(me){$e&&ge(me,me.name),e.isBindingPattern(me.name)||(e.isBlockOrCatchScoped(me)?Cr(me,2,111551):e.isParameterDeclaration(me)?qr(me,1,111551):qr(me,1,111550))}function Io(me){if(me.kind===310&&be.kind!==303)return;if($e&&!(me.flags&8388608)&&ge(me,me.name),e.isBindingPattern(me.name)?cr(me,1,"__"+me.parent.parameters.indexOf(me)):qr(me,1,111551),e.isParameterPropertyDeclaration(me,me.parent)){var En=me.parent.parent;le(En.symbol.members,En.symbol,me,4|(me.questionToken?16777216:0),0)}}function qi(me){!Z.isDeclarationFile&&!(me.flags&8388608)&&(e.isAsyncFunction(me)&&(cn|=2048)),Jn(me),$e?(rn(me),Cr(me,16,110991)):qr(me,16,110991)}function wn(me){!Z.isDeclarationFile&&!(me.flags&8388608)&&(e.isAsyncFunction(me)&&(cn|=2048)),en&&(me.flowNode=en),Jn(me);var En=me.name?me.name.escapedText:"__function";return cr(me,16,En)}function $i(me,En,et){return!Z.isDeclarationFile&&!(me.flags&8388608)&&e.isAsyncFunction(me)&&(cn|=2048),en&&e.isObjectLiteralOrClassExpressionMethod(me)&&(me.flowNode=en),e.hasDynamicName(me)?cr(me,En,"__computed"):qr(me,En,et)}function Go(me){var En=e.findAncestor(me,function(et){return et.parent&&e.isConditionalTypeNode(et.parent)&&et.parent.extendsType===et});return En&&En.parent}function Ho(me){if(e.isJSDocTemplateTag(me.parent)){var En=e.find(me.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(me.parent);En?(En.locals||(En.locals=e.createSymbolTable()),le(En.locals,void 0,me,262144,526824)):qr(me,262144,526824)}else if(me.parent.kind===180){var et=Go(me.parent);et?(et.locals||(et.locals=e.createSymbolTable()),le(et.locals,void 0,me,262144,526824)):cr(me,262144,Xe(me))}else qr(me,262144,526824)}function Va(me){var En=F(me);return En===1||En===2&&!!Re.preserveConstEnums}function Es(me){if(!(en.flags&1))return!1;if(en===G){var En=e.isStatementButNotDeclaration(me)&&me.kind!==223||me.kind===244||me.kind===248&&Va(me);if(En&&(en=c,!Re.allowUnreachableCode)){var et=e.unreachableCodeIsError(Re)&&!(me.flags&8388608)&&(!e.isVariableStatement(me)||!!(e.getCombinedNodeFlags(me.declarationList)&3)||me.declarationList.declarations.some(function(Gt){return!!Gt.initializer}));I(me,function(Gt,br){return Ha(et,Gt,br,e.Diagnostics.Unreachable_code_detected)})}}return!0}}function I(Z,Re){if(e.isStatement(Z)&&_e(Z)&&e.isBlock(Z.parent)){var Ae=Z.parent.statements,We=e.sliceAfter(Ae,Z);e.getRangesWhere(We,_e,function(be,Ge){return Re(We[be],We[Ge-1])})}else Re(Z,Z)}function _e(Z){return!e.isFunctionDeclaration(Z)&&!re(Z)&&!e.isEnumDeclaration(Z)&&!(e.isVariableStatement(Z)&&!(e.getCombinedNodeFlags(Z)&(1|2))&&Z.declarationList.declarations.some(function(Re){return!Re.initializer}))}function re(Z){switch(Z.kind){case 245:case 246:return!0;case 248:return F(Z)!==1;case 247:return e.hasModifier(Z,2048);default:return!1}}function se(Z,Re){for(var Ae=0,We=[Re];We.length&&Ae<100;){if(Ae++,Re=We.shift(),e.isExportsIdentifier(Re)||e.isModuleExportsAccessExpression(Re))return!0;if(e.isIdentifier(Re)){var be=w(Z,Re.escapedText);if(!!be&&!!be.valueDeclaration&&e.isVariableDeclaration(be.valueDeclaration)&&!!be.valueDeclaration.initializer){var Ge=be.valueDeclaration.initializer;We.push(Ge),e.isAssignmentExpression(Ge,!0)&&(We.push(Ge.left),We.push(Ge.right))}}}return!1}e.isExportsOrModuleExportsOrAlias=se;function w(Z,Re){var Ae=Z.locals&&Z.locals.get(Re);return Ae?Ae.exportSymbol||Ae:e.isSourceFile(Z)&&Z.jsGlobalAugmentations&&Z.jsGlobalAugmentations.has(Re)?Z.jsGlobalAugmentations.get(Re):Z.symbol&&Z.symbol.exports&&Z.symbol.exports.get(Re)}function k(Z,Re){var Ae=Z.kind;switch(Ae){case 195:return P(Z,Re);case 196:return h(Z,Re);case 248:return pe(Z,Re);case 199:return $(Z,Re);case 208:return Y(Z,Re);case 225:return X(Z,Re);case 155:return ne(Z,Re);case 201:return C(Z,Re);case 200:return L(Z,Re);case 243:return y(Z,Re);case 241:return D(Z,Re);case 242:return S(Z,Re);case 224:return T(Z,Re);case 237:return Q(Z,Re);case 244:return J(Z,Re);case 213:return fe(Z,Re);case 277:return R(Z,Re);case 278:return K(Z,Re);case 215:return z(Z,Re);case 161:return Ee(Z,Re);case 158:return m(Z,Re);case 160:return B(Z,Re);case 162:case 163:return V(Z,Re);case 252:return N(Z,Re);case 193:return _(Z,Re);case 194:return b(Z,Re);default:return v(Z,Ae,Re)}}e.computeTransformFlagsForNode=k;function P(Z,Re){var Ae=Re,We=e.skipOuterExpressions(Z.expression),be=Z.expression;return Z.flags&32&&(Ae|=4),Z.typeArguments&&(Ae|=1),(Re&4096||e.isSuperOrSuperProperty(We))&&(Ae|=128,e.isSuperProperty(We)&&(Ae|=2048)),be.kind===95&&(Ae|=524288),Z.transformFlags=Ae|536870912,Ae&~536875008}function h(Z,Re){var Ae=Re;return Z.typeArguments&&(Ae|=1),Re&4096&&(Ae|=128),Z.transformFlags=Ae|536870912,Ae&~536875008}function Y(Z,Re){var Ae=Re,We=Z.operatorToken.kind,be=Z.left.kind;return We===60?Ae|=4:We===62&&be===192?Ae|=16|128|512:We===62&&be===191?Ae|=128|512:(We===42||We===66)&&(Ae|=64),Z.transformFlags=Ae|536870912,Ae&~536870912}function ne(Z,Re){var Ae=Re,We=Z.name,be=Z.initializer,Ge=Z.dotDotDotToken;return(Z.questionToken||Z.type||Re&1024&&e.some(Z.decorators)||e.isThisIdentifier(We))&&(Ae|=1),e.hasModifier(Z,92)&&(Ae|=1|1024),Re&8192&&(Ae|=16),(Re&65536||be||Ge)&&(Ae|=128),Z.transformFlags=Ae|536870912,Ae&~536870912}function $(Z,Re){var Ae=Re,We=Z.expression,be=We.kind;return(be===216||be===198)&&(Ae|=1),Z.transformFlags=Ae|536870912,Ae&~536870912}function J(Z,Re){var Ae;return e.hasModifier(Z,2)?Ae=1:(Ae=Re|128,(Re&1024||Z.typeParameters)&&(Ae|=1)),Z.transformFlags=Ae|536870912,Ae&~536888320}function fe(Z,Re){var Ae=Re|128;return(Re&1024||Z.typeParameters)&&(Ae|=1),Z.transformFlags=Ae|536870912,Ae&~536888320}function R(Z,Re){var Ae=Re;switch(Z.token){case 89:Ae|=128;break;case 112:Ae|=1;break;default:e.Debug.fail("Unexpected token for heritage clause");break}return Z.transformFlags=Ae|536870912,Ae&~536870912}function K(Z,Re){var Ae=Re;return Z.variableDeclaration?e.isBindingPattern(Z.variableDeclaration.name)&&(Ae|=128):Ae|=8,Z.transformFlags=Ae|536870912,Ae&~536879104}function z(Z,Re){var Ae=Re|128;return Z.typeArguments&&(Ae|=1),Z.transformFlags=Ae|536870912,Ae&~536870912}function Ee(Z,Re){var Ae=Re;return(e.hasModifier(Z,2270)||!Z.body)&&(Ae|=1),Re&8192&&(Ae|=16),Z.transformFlags=Ae|536870912,Ae&~537372672}function B(Z,Re){var Ae=Re|128;return(Z.decorators||e.hasModifier(Z,2270)||Z.typeParameters||Z.type||!Z.body||Z.questionToken)&&(Ae|=1),Re&8192&&(Ae|=16),e.hasModifier(Z,256)&&(Ae|=Z.asteriskToken?16:32),Z.asteriskToken&&(Ae|=256),Z.transformFlags=Ae|536870912,U(Z.name,Ae&~537372672)}function V(Z,Re){var Ae=Re;return(Z.decorators||e.hasModifier(Z,2270)||Z.type||!Z.body)&&(Ae|=1),Re&8192&&(Ae|=16),Z.transformFlags=Ae|536870912,U(Z.name,Ae&~537372672)}function m(Z,Re){var Ae=Re|1048576;return(e.some(Z.decorators)||e.hasModifier(Z,2270)||Z.type||Z.questionToken)&&(Ae|=1),(e.isComputedPropertyName(Z.name)||e.hasStaticModifier(Z)&&Z.initializer)&&(Ae|=1024),Z.transformFlags=Ae|536870912,U(Z.name,Ae&~536872960)}function y(Z,Re){var Ae,We=e.getModifierFlags(Z),be=Z.body;return!be||We&2?Ae=1:(Ae=Re|262144,(We&2270||Z.typeParameters||Z.type)&&(Ae|=1),We&256&&(Ae|=Z.asteriskToken?16:32),Re&8192&&(Ae|=16),Z.asteriskToken&&(Ae|=256)),Z.transformFlags=Ae|536870912,Ae&~537373696}function L(Z,Re){var Ae=Re;return(e.hasModifier(Z,2270)||Z.typeParameters||Z.type)&&(Ae|=1),e.hasModifier(Z,256)&&(Ae|=Z.asteriskToken?16:32),Re&8192&&(Ae|=16),Z.asteriskToken&&(Ae|=256),Z.transformFlags=Ae|536870912,Ae&~537373696}function C(Z,Re){var Ae=Re|128;return(e.hasModifier(Z,2270)||Z.typeParameters||Z.type)&&(Ae|=1),e.hasModifier(Z,256)&&(Ae|=32),Re&8192&&(Ae|=16),Z.transformFlags=Ae|536870912,Ae&~537371648}function _(Z,Re){var Ae=Re;return Z.flags&32&&(Ae|=4),Z.expression.kind===101&&(Ae|=32|16),Z.transformFlags=Ae|536870912,Ae&~536870912}function b(Z,Re){var Ae=Re;return Z.flags&32&&(Ae|=4),Z.expression.kind===101&&(Ae|=32|16),Z.transformFlags=Ae|536870912,Ae&~536870912}function D(Z,Re){var Ae=Re;return Ae|=128|65536,Re&8192&&(Ae|=16),Z.type&&(Ae|=1),Z.transformFlags=Ae|536870912,Ae&~536870912}function T(Z,Re){var Ae,We=Z.declarationList.transformFlags;return e.hasModifier(Z,2)?Ae=1:(Ae=Re,We&65536&&(Ae|=128)),Z.transformFlags=Ae|536870912,Ae&~536870912}function Q(Z,Re){var Ae=Re;return Re&32768&&e.isIterationStatement(Z,!0)&&(Ae|=128),Z.transformFlags=Ae|536870912,Ae&~536870912}function N(Z,Re){var Ae=Re;return e.isExternalModuleImportEqualsDeclaration(Z)||(Ae|=1),Z.transformFlags=Ae|536870912,Ae&~536870912}function X(Z,Re){var Ae=Re;return Z.transformFlags=Ae|536870912,Ae&~536870912}function pe(Z,Re){var Ae=1,We=e.getModifierFlags(Z);return(We&2)===0&&(Ae|=Re),Z.transformFlags=Ae|536870912,Ae&~537168896}function S(Z,Re){var Ae=Re|262144;return Re&65536&&(Ae|=128),Z.flags&3&&(Ae|=128|32768),Z.transformFlags=Ae|536870912,Ae&~536944640}function v(Z,Re,Ae){var We=Ae,be=536870912;switch(Re){case 125:case 205:We|=16|32;break;case 198:case 216:case 319:We|=1,be=536870912;break;case 118:case 116:case 117:case 121:case 129:case 80:case 247:case 282:case 217:case 137:We|=1;break;case 264:case 265:case 266:case 11:case 267:case 268:case 269:case 270:case 271:case 272:case 273:case 274:We|=2;break;case 14:case 15:case 16:case 17:case 210:case 197:case 280:case 119:case 218:We|=128;break;case 10:Z.hasExtendedUnicodeEscape&&(We|=128);break;case 8:Z.numericLiteralFlags&384&&(We|=128);break;case 9:We|=4;break;case 231:Z.awaitModifier&&(We|=16),We|=128;break;case 211:We|=16|128|131072;break;case 124:case 139:case 150:case 136:case 140:case 142:case 127:case 143:case 109:case 154:case 157:case 159:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 178:case 179:case 180:case 181:case 245:case 246:case 182:case 183:case 184:case 185:case 186:case 251:We=1,be=-2;break;case 153:We|=16384;break;case 212:We|=128|4096;break;case 281:We|=16|8192;break;case 101:We|=128,be=536870912;break;case 103:We|=2048;break;case 188:We|=128|65536,Ae&4096&&(We|=16|8192),be=536875008;break;case 189:We|=128|65536,be=536875008;break;case 190:We|=128,Z.dotDotDotToken&&(We|=4096);break;case 156:We|=1|1024;break;case 192:be=536896512,Ae&16384&&(We|=128),Ae&8192&&(We|=16);break;case 191:be=536875008;break;case 227:case 228:case 229:case 230:Ae&32768&&(We|=128);break;case 288:break;case 234:We|=262144|16;break;case 232:case 233:We|=262144;break}return Z.transformFlags=We|536870912,We&~be}function U(Z,Re){return Re|Z.transformFlags&2048}function de(Z){if(Z>=167&&Z<=187)return-2;switch(Z){case 195:case 196:case 191:return 536875008;case 248:return 537168896;case 155:return 536870912;case 201:return 537371648;case 200:case 243:return 537373696;case 242:return 536944640;case 244:case 213:return 536888320;case 161:return 537372672;case 160:case 162:case 163:return 537372672;case 124:case 139:case 150:case 136:case 142:case 140:case 127:case 143:case 109:case 154:case 157:case 159:case 164:case 165:case 166:case 245:case 246:return-2;case 192:return 536896512;case 278:return 536879104;case 188:case 189:return 536875008;case 198:case 216:case 319:case 199:case 101:return 536870912;case 193:case 194:return 536870912;default:return 536870912}}e.getTransformFlagsSubtreeExclusions=de;function Ce(Z,Re){Re.parent=Z,e.forEachChild(Re,function(Ae){return Ce(Re,Ae)})}})(ln||(ln={}));var ln;(function(e){function o(F,qe,Se,Fe,He,ve,ie,d,H,Pe,I){return _e;function _e(re){re===void 0&&(re=function(){return!0});var se=[],w=[];return{walkType:function(B){try{return k(B),{visitedTypes:e.getOwnValues(se),visitedSymbols:e.getOwnValues(w)}}finally{e.clear(se),e.clear(w)}},walkSymbol:function(B){try{return z(B),{visitedTypes:e.getOwnValues(se),visitedSymbols:e.getOwnValues(w)}}finally{e.clear(se),e.clear(w)}}};function k(Ee){if(!Ee)return;if(se[Ee.id])return;se[Ee.id]=Ee;var B=z(Ee.symbol);if(B)return;if(Ee.flags&524288){var V=Ee,m=V.objectFlags;m&4&&P(Ee),m&32&&J(Ee),m&(1|2)&&R(Ee),m&(8|16)&&K(V)}Ee.flags&262144&&h(Ee),Ee.flags&3145728&&Y(Ee),Ee.flags&4194304&&ne(Ee),Ee.flags&8388608&&$(Ee)}function P(Ee){k(Ee.target),e.forEach(I(Ee),k)}function h(Ee){k(H(Ee))}function Y(Ee){e.forEach(Ee.types,k)}function ne(Ee){k(Ee.type)}function $(Ee){k(Ee.objectType),k(Ee.indexType),k(Ee.constraint)}function J(Ee){k(Ee.typeParameter),k(Ee.constraintType),k(Ee.templateType),k(Ee.modifiersType)}function fe(Ee){var B=qe(Ee);B&&k(B.type),e.forEach(Ee.typeParameters,k);for(var V=0,m=Ee.parameters;V<m.length;V++){var y=m[V];z(y)}k(F(Ee)),k(Se(Ee))}function R(Ee){K(Ee),e.forEach(Ee.typeParameters,k),e.forEach(Fe(Ee),k),k(Ee.thisType)}function K(Ee){var B=d(Ee,0);k(B);var V=d(Ee,1);k(V);for(var m=He(Ee),y=0,L=m.callSignatures;y<L.length;y++){var C=L[y];fe(C)}for(var _=0,b=m.constructSignatures;_<b.length;_++){var C=b[_];fe(C)}for(var D=0,T=m.properties;D<T.length;D++){var Q=T[D];z(Q)}}function z(Ee){if(!Ee)return!1;var B=e.getSymbolId(Ee);if(w[B])return!1;if(w[B]=Ee,!re(Ee))return!0;var V=ve(Ee);return k(V),Ee.exports&&Ee.exports.forEach(z),e.forEach(Ee.declarations,function(m){if(m.type&&m.type.kind===171){var y=m.type,L=ie(Pe(y.exprName));z(L)}}),!1}}}e.createGetSymbolWalker=o})(ln||(ln={}));var ln;(function(e){var o=/^".+"$/,F=1,qe=1,Se=1,Fe=1,He;(function(_){_[_.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",_[_.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",_[_.AllowsStringInputFlag=4]="AllowsStringInputFlag",_[_.ForOfFlag=8]="ForOfFlag",_[_.YieldStarFlag=16]="YieldStarFlag",_[_.SpreadFlag=32]="SpreadFlag",_[_.DestructuringFlag=64]="DestructuringFlag",_[_.Element=1]="Element",_[_.Spread=33]="Spread",_[_.Destructuring=65]="Destructuring",_[_.ForOf=13]="ForOf",_[_.ForAwaitOf=15]="ForAwaitOf",_[_.YieldStar=17]="YieldStar",_[_.AsyncYieldStar=19]="AsyncYieldStar",_[_.GeneratorReturnType=1]="GeneratorReturnType",_[_.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"})(He||(He={}));var ve;(function(_){_[_.Yield=0]="Yield",_[_.Return=1]="Return",_[_.Next=2]="Next"})(ve||(ve={}));var ie;(function(_){_[_.Normal=0]="Normal",_[_.GeneratorYield=1]="GeneratorYield"})(ie||(ie={}));var d;(function(_){_[_.None=0]="None",_[_.TypeofEQString=1]="TypeofEQString",_[_.TypeofEQNumber=2]="TypeofEQNumber",_[_.TypeofEQBigInt=4]="TypeofEQBigInt",_[_.TypeofEQBoolean=8]="TypeofEQBoolean",_[_.TypeofEQSymbol=16]="TypeofEQSymbol",_[_.TypeofEQObject=32]="TypeofEQObject",_[_.TypeofEQFunction=64]="TypeofEQFunction",_[_.TypeofEQHostObject=128]="TypeofEQHostObject",_[_.TypeofNEString=256]="TypeofNEString",_[_.TypeofNENumber=512]="TypeofNENumber",_[_.TypeofNEBigInt=1024]="TypeofNEBigInt",_[_.TypeofNEBoolean=2048]="TypeofNEBoolean",_[_.TypeofNESymbol=4096]="TypeofNESymbol",_[_.TypeofNEObject=8192]="TypeofNEObject",_[_.TypeofNEFunction=16384]="TypeofNEFunction",_[_.TypeofNEHostObject=32768]="TypeofNEHostObject",_[_.EQUndefined=65536]="EQUndefined",_[_.EQNull=131072]="EQNull",_[_.EQUndefinedOrNull=262144]="EQUndefinedOrNull",_[_.NEUndefined=524288]="NEUndefined",_[_.NENull=1048576]="NENull",_[_.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",_[_.Truthy=4194304]="Truthy",_[_.Falsy=8388608]="Falsy",_[_.All=16777215]="All",_[_.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",_[_.BaseStringFacts=12582401]="BaseStringFacts",_[_.StringStrictFacts=16317953]="StringStrictFacts",_[_.StringFacts=16776705]="StringFacts",_[_.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",_[_.EmptyStringFacts=12582401]="EmptyStringFacts",_[_.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",_[_.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",_[_.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",_[_.BaseNumberFacts=12582146]="BaseNumberFacts",_[_.NumberStrictFacts=16317698]="NumberStrictFacts",_[_.NumberFacts=16776450]="NumberFacts",_[_.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",_[_.ZeroNumberFacts=12582146]="ZeroNumberFacts",_[_.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",_[_.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",_[_.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",_[_.BaseBigIntFacts=12581636]="BaseBigIntFacts",_[_.BigIntStrictFacts=16317188]="BigIntStrictFacts",_[_.BigIntFacts=16775940]="BigIntFacts",_[_.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",_[_.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",_[_.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",_[_.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",_[_.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",_[_.BaseBooleanFacts=12580616]="BaseBooleanFacts",_[_.BooleanStrictFacts=16316168]="BooleanStrictFacts",_[_.BooleanFacts=16774920]="BooleanFacts",_[_.FalseStrictFacts=12121864]="FalseStrictFacts",_[_.FalseFacts=12580616]="FalseFacts",_[_.TrueStrictFacts=7927560]="TrueStrictFacts",_[_.TrueFacts=16774920]="TrueFacts",_[_.SymbolStrictFacts=7925520]="SymbolStrictFacts",_[_.SymbolFacts=16772880]="SymbolFacts",_[_.ObjectStrictFacts=7888800]="ObjectStrictFacts",_[_.ObjectFacts=16736160]="ObjectFacts",_[_.FunctionStrictFacts=7880640]="FunctionStrictFacts",_[_.FunctionFacts=16728e3]="FunctionFacts",_[_.UndefinedFacts=9830144]="UndefinedFacts",_[_.NullFacts=9363232]="NullFacts",_[_.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",_[_.EmptyObjectFacts=16777215]="EmptyObjectFacts"})(d||(d={}));var H=e.createMapFromTemplate({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64}),Pe=e.createMapFromTemplate({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384}),I;(function(_){_[_.Type=0]="Type",_[_.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",_[_.DeclaredType=2]="DeclaredType",_[_.ResolvedReturnType=3]="ResolvedReturnType",_[_.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",_[_.EnumTagType=5]="EnumTagType",_[_.JSDocTypeReference=6]="JSDocTypeReference",_[_.ResolvedTypeArguments=7]="ResolvedTypeArguments"})(I||(I={}));var _e;(function(_){_[_.Normal=0]="Normal",_[_.Contextual=1]="Contextual",_[_.Inferential=2]="Inferential",_[_.SkipContextSensitive=4]="SkipContextSensitive",_[_.SkipGenericFunctions=8]="SkipGenericFunctions",_[_.IsForSignatureHelp=16]="IsForSignatureHelp"})(_e||(_e={}));var re;(function(_){_[_.None=0]="None",_[_.NoIndexSignatures=1]="NoIndexSignatures",_[_.Writing=2]="Writing",_[_.CacheSymbol=4]="CacheSymbol",_[_.NoTupleBoundsCheck=8]="NoTupleBoundsCheck"})(re||(re={}));var se;(function(_){_[_.None=0]="None",_[_.Bivariant=1]="Bivariant",_[_.Strict=2]="Strict"})(se||(se={}));var w;(function(_){_[_.IncludeReadonly=1]="IncludeReadonly",_[_.ExcludeReadonly=2]="ExcludeReadonly",_[_.IncludeOptional=4]="IncludeOptional",_[_.ExcludeOptional=8]="ExcludeOptional"})(w||(w={}));var k;(function(_){_[_.None=0]="None",_[_.Source=1]="Source",_[_.Target=2]="Target",_[_.Both=3]="Both"})(k||(k={}));var P;(function(_){_.resolvedExports="resolvedExports",_.resolvedMembers="resolvedMembers"})(P||(P={}));var h;(function(_){_[_.Local=0]="Local",_[_.Parameter=1]="Parameter"})(h||(h={}));var Y=e.and(Ee,z),ne;(function(_){_[_.GetAccessor=1]="GetAccessor",_[_.SetAccessor=2]="SetAccessor",_[_.PropertyAssignment=4]="PropertyAssignment",_[_.Method=8]="Method",_[_.GetOrSetAccessor=3]="GetOrSetAccessor",_[_.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"})(ne||(ne={}));var $;(function(_){_[_.None=0]="None",_[_.ExportValue=1]="ExportValue",_[_.ExportType=2]="ExportType",_[_.ExportNamespace=4]="ExportNamespace"})($||($={}));function J(_){return _.id||(_.id=qe,qe++),_.id}e.getNodeId=J;function fe(_){return _.id||(_.id=F,F++),_.id}e.getSymbolId=fe;function R(_,b){var D=e.getModuleInstanceState(_);return D===1||b&&D===2}e.isInstantiatedModule=R;function K(_,b){var D=e.memoize(function(){var n=e.createMap();return _.getSourceFiles().forEach(function(t){if(!t.resolvedModules)return;e.forEachEntry(t.resolvedModules,function(r){r&&r.packageId&&n.set(r.packageId.name,!0)})}),n}),T,Q,N,X=e.objectAllocator.getSymbolConstructor(),pe=e.objectAllocator.getTypeConstructor(),S=e.objectAllocator.getSignatureConstructor(),v=0,U=0,de=0,Ce=0,Z=0,Re=0,Ae,We=e.createSymbolTable(),be=e.identity,Ge=_.getCompilerOptions(),x=e.getEmitScriptTarget(Ge),j=e.getEmitModuleKind(Ge),Oe=e.getAllowSyntheticDefaultImports(Ge),a=e.getStrictOptionValue(Ge,"strictNullChecks"),en=e.getStrictOptionValue(Ge,"strictFunctionTypes"),Pn=e.getStrictOptionValue(Ge,"strictBindCallApply"),Xn=e.getStrictOptionValue(Ge,"strictPropertyInitialization"),ae=e.getStrictOptionValue(Ge,"noImplicitAny"),ce=e.getStrictOptionValue(Ge,"noImplicitThis"),Le=!!Ge.keyofStringsOnly,Je=Ge.suppressExcessPropertyErrors?0:32768,Ze=iD(),Ue=ic(),cn=e.createSymbolTable(),$e=Va(4,"undefined");$e.declarations=[];var sn=Va(1536,"globalThis",8);sn.exports=cn,cn.set(sn.escapedName,sn);var he=Va(4,"arguments"),ke=Va(4,"require"),G,c={getNodeCount:function(){return e.sum(_.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(_.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(_.getSourceFiles(),"symbolCount")+U},getTypeCount:function(){return v},getRelationCacheSizes:function(){return{assignable:fa.size,identity:Fa.size,subtype:Er.size}},isUndefinedSymbol:function(t){return t===$e},isArgumentsSymbol:function(t){return t===he},isUnknownSymbol:function(t){return t===pn},getMergedSymbol:zr,getDiagnostics:sS,getGlobalDiagnostics:S0,getTypeOfSymbolAtLocation:function(t,r){return r=e.getParseTreeNode(r),r?cA(t,r):ye},getSymbolsOfParameterPropertyDeclaration:function(t,r){var i=e.getParseTreeNode(t,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."):tl(i,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:yo,getPropertiesOfType:oo,getPropertyOfType:function(t,r){return Ji(t,e.escapeLeadingUnderscores(r))},getTypeOfPropertyOfType:function(t,r){return Zo(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:Xi,getSignaturesOfType:si,getIndexTypeOfType:ms,getBaseTypes:Tl,getBaseTypeOfLiteralType:Bl,getWidenedType:Ps,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?ja(r):ye},getParameterType:Zs,getPromisedTypeOfPromise:wp,getReturnTypeOfSignature:Fi,isNullableType:mE,getNullableType:Fg,getNonNullableType:Wu,getNonOptionalType:Gg,getTypeArguments:_o,typeToTypeNode:Ue.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Ue.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Ue.signatureToSignatureDeclaration,symbolToEntityName:Ue.symbolToEntityName,symbolToExpression:Ue.symbolToExpression,symbolToTypeParameterDeclarations:Ue.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Ue.symbolToParameterDeclaration,typeParameterToDeclaration:Ue.typeParameterToDeclaration,getSymbolsInScope:function(t,r){return t=e.getParseTreeNode(t),t?x0(t,r):[]},getSymbolAtLocation:function(t){return t=e.getParseTreeNode(t),t?ud(t):void 0},getShorthandAssignmentValueSymbol:function(t){return t=e.getParseTreeNode(t),t?I0(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){var r=e.getParseTreeNode(t,e.isExportSpecifier);return r?N0(r):void 0},getExportSymbolOfSymbol:function(t){return zr(t.exportSymbol||t)},getTypeAtLocation:function(t){return t=e.getParseTreeNode(t),t?Gf(t):ye},getTypeOfAssignmentPattern:function(t){var r=e.getParseTreeNode(t,e.isAssignmentPattern);return r&&Oh(r)||ye},getPropertySymbolOfDestructuringAssignment:function(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?O0(r):void 0},signatureToString:function(t,r,i,s){return Gs(t,e.getParseTreeNode(r),i,s)},typeToString:function(t,r,i){return zt(t,e.getParseTreeNode(r),i)},symbolToString:function(t,r,i,s){return wa(t,e.getParseTreeNode(r),i,s)},typePredicateToString:function(t,r,i){return Wl(t,e.getParseTreeNode(r),i)},writeSignature:function(t,r,i,s,f){return Gs(t,e.getParseTreeNode(r),i,s,f)},writeType:function(t,r,i,s){return zt(t,e.getParseTreeNode(r),i,s)},writeSymbol:function(t,r,i,s,f){return wa(t,e.getParseTreeNode(r),i,s,f)},writeTypePredicate:function(t,r,i,s){return Wl(t,e.getParseTreeNode(r),i,s)},getAugmentedPropertiesOfType:i_,getRootSymbols:pS,getContextualType:function(t,r){var i=e.getParseTreeNode(t,e.isExpression);return i?Qc(i,r):void 0},getContextualTypeForObjectLiteralElement:function(t){var r=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return r?uy(r):void 0},getContextualTypeForArgumentAtIndex:function(t,r){var i=e.getParseTreeNode(t,e.isCallLikeExpression);return i&&cy(i,r)},getContextualTypeForJsxAttribute:function(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&Yb(r)},isContextSensitive:Gl,getFullyQualifiedName:Wn,getResolvedSignature:function(t,r,i){return O(t,r,i,0)},getResolvedSignatureForSignatureHelp:function(t,r,i){return O(t,r,i,16)},getExpandedParameters:E_,hasEffectiveRestParameter:qu,getConstantValue:function(t){var r=e.getParseTreeNode(t,vS);return r?c_(r):void 0},isValidPropertyAccess:function(t,r){var i=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!i&&b2(i,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(t,r,i){var s=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!s&&E2(s,r,i)},getSignatureFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?pc(r):void 0},isImplementationOfOverload:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?yS(r):void 0},getImmediateAliasedSymbol:aE,getAliasedSymbol:M,getEmitResolver:Io,getExportsOfModule:oa,getExportsAndPropertiesOfModule:ta,getSymbolWalker:e.createGetSymbolWalker(m1,ul,Fi,Tl,fc,Hn,Yc,eg,ll,e.getFirstIdentifier,_o),getAmbientModules:XD,getJsxIntrinsicTagNamesAt:i2,isOptionalParameter:function(t){var r=e.getParseTreeNode(t,e.isParameter);return r?Fp(r):!1},tryGetMemberInModuleExports:function(t,r){return La(e.escapeLeadingUnderscores(t),r)},tryGetMemberInModuleExportsAndProperties:function(t,r){return qa(e.escapeLeadingUnderscores(t),r)},tryFindAmbientModuleWithoutAugmentations:function(t){return B_(t,!1)},getApparentType:ds,getUnionType:jr,isTypeAssignableTo:function(t,r){return Hi(t,r)},createAnonymousType:Oo,createSignature:Kc,createSymbol:Va,createIndexInfo:dl,getAnyType:function(){return oe},getStringType:function(){return dt},getNumberType:function(){return ot},createPromiseType:mh,createArrayType:Os,getElementTypeOfArrayType:jm,getBooleanType:function(){return De},getFalseType:function(t){return t?wt:st},getTrueType:function(t){return t?qn:Ie},getVoidType:function(){return _t},getUndefinedType:function(){return un},getNullType:function(){return Vn},getESSymbolType:function(){return _n},getNeverType:function(){return It},getOptionalType:function(){return tt},isSymbolAccessible:xc,getObjectFlags:e.getObjectFlags,isArrayType:Ms,isTupleType:Lo,isArrayLikeType:xd,isTypeInvalidDueToUnionDiscriminant:$S,getAllPossiblePropertiesOfTypes:e1,getSuggestionForNonexistentProperty:function(t,r){return Ey(t,r)},getSuggestionForNonexistentSymbol:function(t,r,i){return y2(t,e.escapeLeadingUnderscores(r),i)},getSuggestionForNonexistentExport:function(t,r){return _2(t,r)},getBaseConstraintOfType:cl,getDefaultFromTypeParameter:function(t){return t&&t.flags&262144?Yd(t):void 0},resolveName:function(t,r,i,s){return co(r,e.escapeLeadingUnderscores(t),i,void 0,void 0,!1,s)},getJsxNamespace:function(t){return e.unescapeLeadingUnderscores(pi(t))},getAccessibleSymbolChain:As,getTypePredicateOfSignature:ul,resolveExternalModuleSymbol:ti,tryGetThisTypeAt:function(t,r){return t=e.getParseTreeNode(t),t&&oy(t,r)},getTypeArgumentConstraint:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r&&Jk(r)},getSuggestionDiagnostics:function(t,r){if(e.skipTypeChecking(t,Ge,_))return e.emptyArray;var i;try{return T=r,r_(t),e.Debug.assert(!!(Ir(t).flags&1)),i=e.addRange(i,Qt.getDiagnostics(t.fileName)),!t.isDeclarationFile&&(!Lh(0)||!Lh(1))&&s(),i||e.emptyArray}finally{T=void 0}function s(){LT(oS(t),function(f,A,W){!e.containsParseError(f)&&!Lh(A)&&(i||(i=[])).push(ma(ma({},W),{category:e.DiagnosticCategory.Suggestion}))})}},runWithCancellationToken:function(t,r){try{return T=t,r(c)}finally{T=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:qo};function O(n,t,r,i){var s=e.getParseTreeNode(n,e.isCallLikeExpression);G=r;var f=s?If(s,t,i):void 0;return G=void 0,f}var ee=e.createMap(),Te=e.createMap(),Ne=e.createMap(),ze=e.createMap(),bn=e.createMap(),Sn=e.createMap(),Kn=[],Xe=e.createMap(),pn=Va(4,"unknown"),le=Va(0,"__resolving__"),oe=No(1,"any"),kn=No(1,"any"),yn=No(1,"any"),ye=No(1,"error"),mn=No(2,"unknown"),un=No(32768,"undefined"),Mn=a?un:No(32768,"undefined",262144),tt=No(32768,"undefined"),Vn=No(65536,"null"),ut=a?Vn:No(65536,"null",262144),dt=No(4,"string"),ot=No(8,"number"),ct=No(64,"bigint"),wt=No(512,"false"),st=No(512,"false"),qn=No(512,"true"),Ie=No(512,"true");qn.regularType=Ie,qn.freshType=qn,Ie.regularType=Ie,Ie.freshType=qn,wt.regularType=st,wt.freshType=wt,st.regularType=st,st.freshType=wt;var De=tc([st,Ie]);tc([st,qn]),tc([wt,Ie]),tc([wt,qn]);var _n=No(4096,"symbol"),_t=No(16384,"void"),It=No(131072,"never"),Ht=No(131072,"never"),nr=No(131072,"never",1048576),vr=No(131072,"never"),Qr=No(131072,"never"),Wr=No(67108864,"object"),gt=jr([dt,ot,_n]),ba=Le?dt:gt,kt=jr([ot,ct]),jn=Oo(void 0,We,e.emptyArray,e.emptyArray,void 0,void 0),Ut=Oo(void 0,We,e.emptyArray,e.emptyArray,void 0,void 0);Ut.objectFlags|=4096;var ft=Va(2048,"__type");ft.members=e.createSymbolTable();var Tt=Oo(ft,We,e.emptyArray,e.emptyArray,void 0,void 0),yt=Oo(void 0,We,e.emptyArray,e.emptyArray,void 0,void 0);yt.instantiations=e.createMap();var vt=Oo(void 0,We,e.emptyArray,e.emptyArray,void 0,void 0);vt.objectFlags|=1048576;var Ke=Oo(void 0,We,e.emptyArray,e.emptyArray,void 0,void 0),Rn=Oo(void 0,We,e.emptyArray,e.emptyArray,void 0,void 0),nt=Oo(void 0,We,e.emptyArray,e.emptyArray,void 0,void 0),tr=il(),xa=il();xa.constraint=tr;var Ba=il(),ai=Gp(1,"<<unresolved>>",0,oe),wi=Kc(void 0,void 0,void 0,e.emptyArray,oe,void 0,0,0),Ai=Kc(void 0,void 0,void 0,e.emptyArray,ye,void 0,0,0),Ei=Kc(void 0,void 0,void 0,e.emptyArray,oe,void 0,0,0),Pi=Kc(void 0,void 0,void 0,e.emptyArray,Ht,void 0,0,0),Xa=dl(dt,!0),Ia=e.createMap(),ca={get yieldType(){throw new Error("Not supported")},get returnType(){throw new Error("Not supported")},get nextType(){throw new Error("Not supported")}},Ti=Cu(oe,oe,oe),Vo=Cu(oe,oe,mn),mo=Cu(It,oe,un),Ro={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:I1,getGlobalIterableType:L1,getGlobalIterableIteratorType:N1,getGlobalGeneratorType:O1,resolveIterationType:hc,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},uo={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:P1,getGlobalIterableType:rv,getGlobalIterableIteratorType:M1,getGlobalGeneratorType:R1,resolveIterationType:function(t,r){return t},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},ui,Gi=e.createMap(),ji,Fo,ko,bo,Ri,xt,Kt,_r,Jr,va,Na,qr,hi,Ii,gi,ua,tn,vn,Ln,Bn,Pt,rr,cr,Cr,Ya,Oa,Ni,ii,_i,Ye,zn,ge,hn,Jn,ue,rn,Cn,Zn,lt,Rt,an=e.createMap(),Dr=0,da=0,Ha=0,to=!1,ga=0,Yo,Co,Rs=rs(""),vs=rs(0),ml=rs({negative:!1,base10Value:"0"}),Fs=[],Il=[],es=[],hl=0,Ul=10,gl=[],ho=[],Is=[],Ns=[],bs=[],yl=[],Ks=[],qs=[],$s=[],el=[],nl=[],Fn=[],$n=[],ht=[],Qn=e.createDiagnosticCollection(),Qt=e.createDiagnosticCollection(),yr=e.createMapFromTemplate({string:dt,number:ot,bigint:ct,boolean:De,symbol:_n,undefined:un}),Br=ar(),Lr,kr,Pr,Er=e.createMap(),fa=e.createMap(),Da=e.createMap(),Fa=e.createMap(),vi=e.createMap(),Eo=e.createSymbolTable();return Eo.set($e.escapedName,$e),oD(),c;function pi(n){if(n){var t=e.getSourceFileOfNode(n);if(t){if(t.localJsxNamespace)return t.localJsxNamespace;var r=t.pragmas.get("jsx");if(r){var i=e.isArray(r)?r[0]:r;if(t.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,x),t.localJsxFactory)return t.localJsxNamespace=e.getFirstIdentifier(t.localJsxFactory).escapedText}}}return Lr||(Lr="React",Ge.jsxFactory?(kr=e.parseIsolatedEntityName(Ge.jsxFactory,x),kr&&(Lr=e.getFirstIdentifier(kr).escapedText)):Ge.reactNamespace&&(Lr=e.escapeLeadingUnderscores(Ge.reactNamespace))),Lr}function Io(n,t){return sS(n,t),Ze}function qi(n,t,r,i,s,f){var A=n?e.createDiagnosticForNode(n,t,r,i,s,f):e.createCompilerDiagnostic(t,r,i,s,f),W=Qn.lookup(A);return W||(Qn.add(A),A)}function wn(n,t,r,i,s,f){var A=n?e.createDiagnosticForNode(n,t,r,i,s,f):e.createCompilerDiagnostic(t,r,i,s,f);return Qn.add(A),A}function $i(n,t){n?Qn.add(t):Qt.add(ma(ma({},t),{category:e.DiagnosticCategory.Suggestion}))}function Go(n,t,r,i,s,f,A){$i(n,"message"in r?e.createDiagnosticForNode(t,r,i,s,f,A):e.createDiagnosticForNodeFromMessageChain(t,r))}function Ho(n,t,r,i,s,f,A){var W=wn(n,r,i,s,f,A);if(t){var xe=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(W,xe)}return W}function Va(n,t,r){U++;var i=new X(n|33554432,t);return i.checkFlags=r||0,i}function Es(n){return(n.flags&33554432)!==0}function me(n){var t=0;return n&2&&(t|=111551),n&1&&(t|=111550),n&4&&(t|=0),n&8&&(t|=900095),n&16&&(t|=110991),n&32&&(t|=899503),n&64&&(t|=788872),n&256&&(t|=899327),n&128&&(t|=899967),n&512&&(t|=110735),n&8192&&(t|=103359),n&32768&&(t|=46015),n&65536&&(t|=78783),n&262144&&(t|=526824),n&524288&&(t|=788968),n&2097152&&(t|=2097152),t}function En(n,t){t.mergeId||(t.mergeId=Se,Se++),gl[t.mergeId]=n}function et(n){var t=Va(n.flags,n.escapedName);return t.declarations=n.declarations?n.declarations.slice():[],t.parent=n.parent,n.valueDeclaration&&(t.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),n.members&&(t.members=e.cloneMap(n.members)),n.exports&&(t.exports=e.cloneMap(n.exports)),En(t,n),t}function Gt(n,t,r){if(r===void 0&&(r=!1),!(n.flags&me(t.flags))||(t.flags|n.flags)&67108864){if(t===n)return n;if(!(n.flags&33554432)){var i=E(n);if(i===pn)return t;n=et(i)}t.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!t.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=t.flags,t.valueDeclaration&&(!n.valueDeclaration||e.isAssignmentDeclaration(n.valueDeclaration)&&!e.isAssignmentDeclaration(t.valueDeclaration)||e.isEffectiveModuleDeclaration(n.valueDeclaration)&&!e.isEffectiveModuleDeclaration(t.valueDeclaration))&&(n.valueDeclaration=t.valueDeclaration),e.addRange(n.declarations,t.declarations),t.members&&(n.members||(n.members=e.createSymbolTable()),za(n.members,t.members,r)),t.exports&&(n.exports||(n.exports=e.createSymbolTable()),za(n.exports,t.exports,r)),r||En(n,t)}else if(n.flags&1024)n!==sn&&wn(e.getNameOfDeclaration(t.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,wa(n));else{var s=!!(n.flags&384||t.flags&384),f=!!(n.flags&2||t.flags&2),A=s?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:f?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,W=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),xe=n.declarations&&e.getSourceFileOfNode(n.declarations[0]),je=wa(t);if(W&&xe&&ui&&!s&&W!==xe){var Qe=e.comparePaths(W.path,xe.path)===-1?W:xe,nn=Qe===W?xe:W,Tn=e.getOrUpdate(ui,Qe.path+"|"+nn.path,function(){return{firstFile:Qe,secondFile:nn,conflictingSymbols:e.createMap()}}),In=e.getOrUpdate(Tn.conflictingSymbols,je,function(){return{isBlockScoped:f,firstFileLocations:[],secondFileLocations:[]}});it(In.firstFileLocations,t),it(In.secondFileLocations,n)}else br(t,A,je,n),br(n,A,je,t)}return n;function it(pt,St){for(var qt=0,hr=St.declarations;qt<hr.length;qt++){var lr=hr[qt];e.pushIfUnique(pt,(e.getExpandoInitializer(lr,!1)?e.getNameOfExpando(lr):e.getNameOfDeclaration(lr))||lr)}}}function br(n,t,r,i){e.forEach(n.declarations,function(s){var f=(e.getExpandoInitializer(s,!1)?e.getNameOfExpando(s):e.getNameOfDeclaration(s))||s;ya(f,t,r,i.declarations)})}function ya(n,t,r,i){for(var s=qi(n,t,r),f=0,A=i||e.emptyArray;f<A.length;f++){var W=A[f];if(s.relatedInformation=s.relatedInformation||[],e.length(s.relatedInformation)>=5)continue;e.addRelatedInfo(s,e.length(s.relatedInformation)?e.createDiagnosticForNode(W,e.Diagnostics.and_here):e.createDiagnosticForNode(W,e.Diagnostics._0_was_also_declared_here,r))}}function oi(n,t){if(!e.hasEntries(n))return t;if(!e.hasEntries(t))return n;var r=e.createSymbolTable();return za(r,n),za(r,t),r}function za(n,t,r){r===void 0&&(r=!1),t.forEach(function(i,s){var f=n.get(s);n.set(s,f?Gt(f,i,r):i)})}function ki(n){var t=n.parent;if(t.symbol.declarations[0]!==t){e.Debug.assert(t.symbol.declarations.length>1);return}if(e.isGlobalScopeAugmentation(t))za(cn,t.symbol.exports);else{var r=n.parent.parent.flags&8388608?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,i=ha(n,n,r,!0);if(!i)return;if(i=ti(i),i.flags&1920)if(e.some(Fo,function(f){return i===f.symbol})){var s=Gt(t.symbol,i,!0);ko||(ko=e.createMap()),ko.set(n.text,s)}else Gt(i,t.symbol);else wn(n,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function eo(n,t,r){t.forEach(function(s,f){var A=n.get(f);A?e.forEach(A.declarations,i(e.unescapeLeadingUnderscores(f),r)):n.set(f,s)});function i(s,f){return function(A){return Qn.add(e.createDiagnosticForNode(A,f,s))}}}function ea(n){if(n.flags&33554432)return n;var t=fe(n);return ho[t]||(ho[t]={})}function Ir(n){var t=J(n);return Is[t]||(Is[t]={flags:0})}function To(n){return n.kind===288&&!e.isExternalOrCommonJsModule(n)}function Uo(n,t,r){if(r){var i=n.get(t);if(i){if(e.Debug.assert((e.getCheckFlags(i)&1)===0,"Should never get an instantiated symbol here."),i.flags&r)return i;if(i.flags&2097152){var s=M(i);if(s===pn||s.flags&r)return i}}}}function tl(n,t){var r=n.parent,i=n.parent.parent,s=Uo(r.locals,t,111551),f=Uo(yu(i.symbol),t,111551);return s&&f?[s,f]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Qo(n,t){var r=e.getSourceFileOfNode(n),i=e.getSourceFileOfNode(t);if(r!==i){if(j&&(r.externalModuleIndicator||i.externalModuleIndicator)||!Ge.outFile&&!Ge.out||cp(t)||n.flags&8388608)return!0;if(xe(t,n))return!0;var s=_.getSourceFiles();return s.indexOf(r)<=s.indexOf(i)}if(n.pos<=t.pos){if(n.kind===190){var f=e.getAncestor(t,190);return f?e.findAncestor(f,e.isBindingElement)!==e.findAncestor(n,e.isBindingElement)||n.pos<f.pos:Qo(e.getAncestor(n,241),t)}else{if(n.kind===241)return!W(n,t);if(e.isClassDeclaration(n))return!e.findAncestor(t,function(Qe){return e.isComputedPropertyName(Qe)&&Qe.parent.parent===n});if(e.isPropertyDeclaration(n))return!je(n,t)}return!0}if(t.parent.kind===261||t.parent.kind===258&&t.parent.isExportEquals)return!0;if(t.kind===258&&t.isExportEquals)return!0;var A=e.getEnclosingBlockScopeContainer(n);return!!(t.flags&4194304)||cp(t)||xe(t,n,A);function W(Qe,nn){var Tn=e.getEnclosingBlockScopeContainer(Qe);switch(Qe.parent.parent.kind){case 224:case 229:case 231:if(Mc(nn,Qe,Tn))return!0;break}var In=Qe.parent.parent;return e.isForInOrOfStatement(In)&&Mc(nn,In.expression,Tn)}function xe(Qe,nn,Tn){return!!e.findAncestor(Qe,function(In){if(In===Tn)return"quit";if(e.isFunctionLike(In))return!0;var it=In.parent&&In.parent.kind===158&&In.parent.initializer===In;if(it)if(e.hasModifier(In.parent,32)){if(nn.kind===160)return!0}else{var pt=nn.kind===158&&!e.hasModifier(nn,32);if(!pt||e.getContainingClass(Qe)!==e.getContainingClass(nn))return!0}return!1})}function je(Qe,nn){if(nn.end>Qe.end)return!1;var Tn=e.findAncestor(nn,function(In){if(In===Qe)return"quit";switch(In.kind){case 201:case 158:return!0;case 222:switch(In.parent.kind){case 162:case 160:case 163:return!0;default:return!1}default:return!1}});return Tn===void 0}}function co(n,t,r,i,s,f,A,W){return A===void 0&&(A=!1),Bs(n,t,r,i,s,f,A,Uo,W)}function Bs(n,t,r,i,s,f,A,W,xe){var je=n,Qe,nn,Tn,In,it,pt=!1,St=n,qt,hr=!1;e:for(;n;){if(n.locals&&!To(n)&&(Qe=W(n.locals,t,r))){var lr=!0;if(e.isFunctionLike(n)&&nn&&nn!==n.body){if(r&Qe.flags&788968&&nn.kind!==301&&(lr=Qe.flags&262144?nn===n.type||nn.kind===155||nn.kind===154:!1),r&Qe.flags&3){var Tr=n;Ge.target&&Ge.target>=2&&e.isParameter(nn)&&Tr.body&&Qe.valueDeclaration.pos>=Tr.body.pos&&Qe.valueDeclaration.end<=Tr.body.end?lr=!1:Qe.flags&1&&(lr=nn.kind===155||nn===n.type&&!!e.findAncestor(Qe.valueDeclaration,e.isParameter))}}else n.kind===179&&(lr=nn===n.trueType);if(lr)break e;Qe=void 0}pt=pt||Ts(n,nn);switch(n.kind){case 288:if(!e.isExternalOrCommonJsModule(n))break;hr=!0;case 248:var na=Yt(n).exports||We;if(n.kind===288||e.isModuleDeclaration(n)&&n.flags&8388608&&!e.isGlobalScopeAugmentation(n)){if(Qe=na.get("default")){var Mr=e.getLocalSymbolForExportDefault(Qe);if(Mr&&Qe.flags&r&&Mr.escapedName===t)break e;Qe=void 0}var Wa=na.get(t);if(Wa&&Wa.flags===2097152&&e.getDeclarationOfKind(Wa,261))break}if(t!=="default"&&(Qe=W(na,t,r&2623475)))if(e.isSourceFile(n)&&n.commonJsModuleIndicator&&!Qe.declarations.some(e.isJSDocTypeAlias))Qe=void 0;else break e;break;case 247:if(Qe=W(Yt(n).exports,t,r&8))break e;break;case 158:if(!e.hasModifier(n,32)){var Zi=jo(n.parent);Zi&&Zi.locals&&(W(Zi.locals,t,r&111551)&&(In=n))}break;case 244:case 213:case 245:if(Qe=W(Yt(n).members||We,t,r&788968)){if(!yc(Qe,n)){Qe=void 0;break}if(nn&&e.hasModifier(nn,32)){wn(St,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);return}break e}if(n.kind===213&&r&32){var Sa=n.name;if(Sa&&t===Sa.escapedText){Qe=n.symbol;break e}}break;case 215:if(nn===n.expression&&n.parent.token===89){var Ca=n.parent.parent;if(e.isClassLike(Ca)&&(Qe=W(Yt(Ca).members,t,r&788968))){i&&wn(St,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 153:if(qt=n.parent.parent,(e.isClassLike(qt)||qt.kind===245)&&(Qe=W(Yt(qt).members,t,r&788968))){wn(St,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 201:if(Ge.target>=2)break;case 160:case 161:case 162:case 163:case 243:if(r&3&&t==="arguments"){Qe=he;break e}break;case 200:if(r&3&&t==="arguments"){Qe=he;break e}if(r&16){var Bt=n.name;if(Bt&&t===Bt.escapedText){Qe=n.symbol;break e}}break;case 156:n.parent&&n.parent.kind===155&&(n=n.parent),n.parent&&(e.isClassElement(n.parent)||n.parent.kind===244)&&(n=n.parent);break;case 315:case 308:case 309:n=e.getJSDocHost(n);break;case 155:nn&&nn===n.initializer&&(it=n);break;case 190:if(nn&&nn===n.initializer){var An=e.getRootDeclaration(n);An.kind===155&&(it=n)}break}Nc(n)&&(Tn=n),nn=n,n=n.parent}if(f&&Qe&&(!Tn||Qe!==Tn.symbol)&&(Qe.isReferenced|=r),!Qe){if(nn&&(e.Debug.assert(nn.kind===288),nn.commonJsModuleIndicator&&t==="exports"&&r&nn.symbol.flags))return nn.symbol;A||(Qe=W(cn,t,r))}if(!Qe&&(je&&e.isInJSFile(je)&&je.parent&&e.isRequireCall(je.parent,!1)))return ke;if(!Qe){if(i&&(!St||!Ql(St,t,s)&&!rl(St)&&!Oc(St,t,r)&&!Pc(St,t,r)&&!Zl(St,t,r)&&!au(St,t,r))){var gn=void 0;if(xe&&hl<Ul&&(gn=SE(je,t,r),gn)){var At=wa(gn),Ct=wn(St,xe,_l(s),At);gn.valueDeclaration&&e.addRelatedInfo(Ct,e.createDiagnosticForNode(gn.valueDeclaration,e.Diagnostics._0_is_declared_here,At))}gn||wn(St,i,_l(s)),hl++}return}if(i){if(In){var Zt=In.name;wn(St,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(Zt),_l(s));return}if(St&&(r&2||(r&32||r&384)&&(r&111551)===111551)){var pr=nc(Qe);(pr.flags&2||pr.flags&32||pr.flags&384)&&zs(pr,St)}if(Qe&&hr&&(r&111551)===111551&&!(je.flags&4194304)){var xr=zr(Qe);e.length(xr.declarations)&&e.every(xr.declarations,function(sa){return e.isNamespaceExportDeclaration(sa)||e.isSourceFile(sa)&&!!sa.symbol.globalExports})&&Go(!Ge.allowUmdGlobalAccess,St,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(t))}if(Qe&&it&&!pt&&(r&111551)===111551){var jt=zr(hf(Qe)),An=e.getRootDeclaration(it);jt===Yt(it)?wn(St,e.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,e.declarationNameToString(it.name)):jt.valueDeclaration&&jt.valueDeclaration.pos>it.pos&&An.parent.locals&&W(An.parent.locals,jt.escapedName,r)===jt&&wn(St,e.Diagnostics.Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(it.name),e.declarationNameToString(St))}}return Qe}function Ts(n,t){return n.kind!==201&&n.kind!==200?e.isTypeQueryNode(n)||(e.isFunctionLikeDeclaration(n)||n.kind===158&&!e.hasModifier(n,32))&&(!t||t!==n.name):t&&t===n.name?!1:n.asteriskToken||e.hasModifier(n,256)?!0:!e.getImmediatelyInvokedFunctionExpression(n)}function Nc(n){switch(n.kind){case 243:case 244:case 245:case 247:case 246:case 248:return!0;default:return!1}}function _l(n){return e.isString(n)?e.unescapeLeadingUnderscores(n):e.declarationNameToString(n)}function yc(n,t){for(var r=0,i=n.declarations;r<i.length;r++){var s=i[r];if(s.kind===154){var f=e.isJSDocTemplateTag(s.parent)?e.getJSDocHost(s.parent):s.parent;if(f===t)return!(e.isJSDocTemplateTag(s.parent)&&e.find(s.parent.parent.tags,e.isJSDocTypeAlias))}}return!1}function Ql(n,t,r){if(!e.isIdentifier(n)||n.escapedText!==t||cS(n)||cp(n))return!1;for(var i=e.getThisContainer(n,!1),s=i;s;){if(e.isClassLike(s.parent)){var f=Yt(s.parent);if(!f)break;var A=Hn(f);if(Ji(A,t))return wn(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,_l(r),wa(f)),!0;if(s===i&&!e.hasModifier(s,32)){var W=yo(f).thisType;if(Ji(W,t))return wn(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,_l(r)),!0}}s=s.parent}return!1}function rl(n){var t=Js(n);return t&&Dt(t,64,!0)?(wn(n,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(t)),!0):!1}function Js(n){switch(n.kind){case 75:case 193:return n.parent?Js(n.parent):void 0;case 215:if(e.isEntityNameExpression(n.expression))return n.expression;default:return}}function Oc(n,t,r){var i=1920|(e.isInJSFile(n)?111551:0);if(r===i){var s=E(co(n,t,788968&~i,void 0,void 0,!1)),f=n.parent;if(s){if(e.isQualifiedName(f)){e.Debug.assert(f.left===n,"Should only be resolving left side of qualified name as a namespace");var A=f.right.escapedText,W=Ji(yo(s),A);if(W)return wn(f,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(A)),!0}return wn(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(t)),!0}}return!1}function au(n,t,r){if(r&(788968&~1920)){var i=E(co(n,t,~788968&111551,void 0,void 0,!1));if(i&&!(i.flags&1920))return wn(n,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here,e.unescapeLeadingUnderscores(t)),!0}return!1}function Pc(n,t,r){if(r&(111551&~1024)){if(t==="any"||t==="string"||t==="number"||t==="boolean"||t==="never")return wn(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(t)),!0;var i=E(co(n,t,788968&~111551,void 0,void 0,!1));if(i&&!(i.flags&1024)){var s=iu(t)?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:e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here;return wn(n,s,e.unescapeLeadingUnderscores(t)),!0}}return!1}function iu(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Zl(n,t,r){if(r&(111551&~1024&~788968)){var i=E(co(n,t,1024&~111551,void 0,void 0,!1));if(i)return wn(n,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(t)),!0}else if(r&(788968&~1024&~111551)){var i=E(co(n,t,(512|1024)&~788968,void 0,void 0,!1));if(i)return wn(n,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(t)),!0}return!1}function zs(n,t){if(e.Debug.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&(16|1|67108864)&&n.flags&32)return;var r=e.find(n.declarations,function(f){return e.isBlockOrCatchScoped(f)||e.isClassLike(f)||f.kind===247});if(r===void 0)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(r.flags&8388608)&&!Qo(r,t)){var i=void 0,s=e.declarationNameToString(e.getNameOfDeclaration(r));n.flags&2?i=wn(t,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,s):n.flags&32?i=wn(t,e.Diagnostics.Class_0_used_before_its_declaration,s):n.flags&256?i=wn(t,e.Diagnostics.Enum_0_used_before_its_declaration,s):(e.Debug.assert(!!(n.flags&128)),Ge.preserveConstEnums&&(i=wn(t,e.Diagnostics.Class_0_used_before_its_declaration,s))),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_here,s))}}function Mc(n,t,r){return!!t&&!!e.findAncestor(n,function(i){return i===r||e.isFunctionLike(i)?"quit":i===t})}function Nl(n){switch(n.kind){case 252:return n;case 254:return n.parent;case 255:return n.parent.parent;case 257:return n.parent.parent.parent;default:return}}function Ss(n){return e.find(n.declarations,e.isAliasSymbolDeclaration)}function Rc(n,t){return n.moduleReference.kind===263?ti(Hr(n,e.getExternalModuleImportEqualsDeclarationExpression(n))):fn(n.moduleReference,t)}function $l(n,t,r){var i=n.exports.get("export=");return i?Ji(Hn(i),t):E(n.exports.get(t),r)}function _c(n){return e.isExportAssignment(n)&&!n.isExportEquals||e.hasModifier(n,512)||e.isExportSpecifier(n)}function ou(n,t,r){if(!Oe)return!1;if(!n||n.isDeclarationFile){var i=$l(t,"default",!0);return i&&e.some(i.declarations,_c)?!1:!$l(t,e.escapeLeadingUnderscores("__esModule"),r)}return e.isSourceFileJS(n)?!n.externalModuleIndicator&&!$l(t,e.escapeLeadingUnderscores("__esModule"),r):aa(t)}function Iu(n,t){var r=Hr(n,n.parent.moduleSpecifier);if(r){var i=void 0;e.isShorthandAmbientModuleSymbol(r)?i=r:i=$l(r,"default",t);var s=e.find(r.declarations,e.isSourceFile),f=ou(s,r,t);if(!i&&!f)if(aa(r)){var A=j>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",W=r.exports.get("export="),xe=W.valueDeclaration,je=wn(n.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,wa(r),A);e.addRelatedInfo(je,e.createDiagnosticForNode(xe,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,A))}else r.exports&&r.exports.has(n.symbol.escapedName)?wn(n.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,wa(r),wa(n.symbol)):wn(n.name,e.Diagnostics.Module_0_has_no_default_export,wa(r));else if(f)return ti(r,t)||E(r,t);return i}}function su(n,t){var r=n.parent.parent.moduleSpecifier;return Xr(Hr(n,r),r,t,!1)}function lu(n,t){if(n===pn&&t===pn)return pn;if(n.flags&(788968|1920))return n;var r=Va(n.flags|t.flags,n.escapedName);return r.declarations=e.deduplicate(e.concatenate(n.declarations,t.declarations),e.equateValues),r.parent=n.parent||t.parent,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration),t.members&&(r.members=t.members),n.exports&&(r.exports=n.exports),r}function cu(n,t,r){if(n.flags&1536)return E(ri(n).get(t),r)}function Fc(n,t){if(n.flags&3){var r=n.valueDeclaration.type;if(r)return E(Ji(ja(r),t))}}function Gc(n,t,r){r===void 0&&(r=!1);var i=Hr(n,n.moduleSpecifier),s=t.propertyName||t.name,f=s.escapedText==="default"&&!!(Ge.allowSyntheticDefaultImports||Ge.esModuleInterop),A=Xr(i,n.moduleSpecifier,r,f);if(A&&s.escapedText){if(e.isShorthandAmbientModuleSymbol(i))return i;var W=void 0;i&&i.exports&&i.exports.get("export=")?W=Ji(Hn(A),s.escapedText):W=Fc(A,s.escapedText),W=E(W,r);var xe=cu(A,s.escapedText,r);!xe&&Oe&&s.escapedText==="default"&&(xe=ti(i,r)||E(i,r));var je=xe&&W&&xe!==W?lu(W,xe):xe||W;if(!je){var Qe=Wn(i,n),nn=e.declarationNameToString(s),Tn=xE(s,A);if(Tn!==void 0){var In=wa(Tn),it=wn(s,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2,Qe,nn,In);Tn.valueDeclaration&&e.addRelatedInfo(it,e.createDiagnosticForNode(Tn.valueDeclaration,e.Diagnostics._0_is_declared_here,In))}else i.exports&&i.exports.has("default")?wn(s,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,Qe,nn):wn(s,e.Diagnostics.Module_0_has_no_exported_member_1,Qe,nn)}return je}}function vc(n,t){return Gc(n.parent.parent.parent,n,t)}function Bc(n,t){return ti(n.parent.symbol,t)}function uu(n,t,r){return n.parent.parent.moduleSpecifier?Gc(n.parent.parent,n,r):Dt(n.propertyName||n.name,t,!1,r)}function du(n,t){var r=e.isExportAssignment(n)?n.expression:n.right;return ec(r,t)}function ec(n,t){if(e.isClassExpression(n))return as(n).symbol;if(!e.isEntityName(n)&&!e.isEntityNameExpression(n))return;var r=Dt(n,111551|788968|1920,!0,t);return r||(as(n),Ir(n).resolvedSymbol)}function Vc(n,t){var r=n.initializer;return ec(r,t)}function al(n,t){return e.isBinaryExpression(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===62?ec(n.parent.right,t):void 0}function Xs(n,t){t===void 0&&(t=!1);switch(n.kind){case 252:return Rc(n,t);case 254:return Iu(n,t);case 255:return su(n,t);case 257:return vc(n,t);case 261:return uu(n,111551|788968|1920,t);case 258:case 208:return du(n,t);case 251:return Bc(n,t);case 280:return Dt(n.name,111551|788968|1920,!0,t);case 279:return Vc(n,t);case 193:return al(n,t);default:return e.Debug.fail()}}function l(n,t){return t===void 0&&(t=111551|788968|1920),n?(n.flags&(2097152|t))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function E(n,t){return!t&&l(n)?M(n):n}function M(n){e.Debug.assert((n.flags&2097152)!==0,"Should only get Alias here.");var t=ea(n);if(t.target)t.target===le&&(t.target=pn);else{t.target=le;var r=Ss(n);if(!r)return e.Debug.fail();var i=Xs(r);t.target===le?t.target=i||pn:wn(r,e.Diagnostics.Circular_definition_of_import_alias_0,wa(n))}return t.target}function Me(n){var t=Yt(n),r=M(t);if(r){var i=r===pn||r.flags&111551&&!Lp(r);i&&on(t)}}function on(n){var t=ea(n);if(!t.referenced){t.referenced=!0;var r=Ss(n);if(!r)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(r)){var i=E(n);(i===pn||i.flags&111551)&&as(r.moduleReference)}}}function fn(n,t){return n.kind===75&&e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),n.kind===75||n.parent.kind===152?Dt(n,1920,!1,t):(e.Debug.assert(n.parent.kind===252),Dt(n,111551|788968|1920,!1,t))}function Wn(n,t){return n.parent?Wn(n.parent,t)+"."+wa(n):wa(n,t,void 0,16|4)}function Dt(n,t,r,i,s){if(e.nodeIsMissing(n))return;var f=1920|(e.isInJSFile(n)?t&111551:0),A;if(n.kind===75){var W=t===f?e.Diagnostics.Cannot_find_namespace_0:gb(e.getFirstIdentifier(n)),xe=e.isInJSFile(n)?Ft(n,t):void 0;if(A=co(s||n,n.escapedText,t,r||xe?void 0:W,n,!0),!A)return xe}else if(n.kind===152||n.kind===193){var je=n.kind===152?n.left:n.expression,Qe=n.kind===152?n.right:n.name,nn=Dt(je,f,r,!1,s);if(!nn||e.nodeIsMissing(Qe))return;if(nn===pn)return nn;if(e.isInJSFile(n)&&(nn.valueDeclaration&&e.isVariableDeclaration(nn.valueDeclaration)&&nn.valueDeclaration.initializer&&KE(nn.valueDeclaration.initializer))){var Tn=nn.valueDeclaration.initializer.arguments[0],In=Hr(Tn,Tn);if(In){var it=ti(In);it&&(nn=it)}}if(A=Uo(ri(nn),Qe.escapedText,t),!A){r||wn(Qe,e.Diagnostics.Namespace_0_has_no_exported_member_1,Wn(nn),e.declarationNameToString(Qe));return}}else throw e.Debug.assertNever(n,"Unknown entity name kind.");return e.Debug.assert((e.getCheckFlags(A)&1)===0,"Should never get an instantiated symbol here."),A.flags&t||i?A:M(A)}function Ft(n,t){if(cg(n.parent)){var r=Lt(n.parent);if(r)return co(r,n.escapedText,t,void 0,n,!0)}}function Lt(n){var t=e.findAncestor(n,function(f){return e.isJSDocNode(f)||f.flags&4194304?e.isJSDocTypeAlias(f):"quit"});if(t)return;var r=e.getJSDocHost(n);if(e.isExpressionStatement(r)&&e.isBinaryExpression(r.expression)&&e.getAssignmentDeclarationKind(r.expression)===3){var i=Yt(r.expression.left);if(i)return mr(i)}if((e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent)===6){var i=Yt(r.parent.parent.left);if(i)return mr(i)}var s=e.getHostSignatureFromJSDocHost(r);if(s){var i=Yt(s);return i&&i.valueDeclaration}}function mr(n){var t=n.parent.valueDeclaration;if(!t)return;var r=e.isAssignmentDeclaration(t)?e.getAssignedExpandoInitializer(t):e.hasOnlyExpressionInitializer(t)?e.getDeclaredExpandoInitializer(t):void 0;return r||t}function fr(n){var t=n.valueDeclaration;if(!t||!e.isInJSFile(t)||n.flags&524288)return;var r=e.isVariableDeclaration(t)?e.getDeclaredExpandoInitializer(t):e.getAssignedExpandoInitializer(t);return r&&Yt(r)||void 0}function Hr(n,t,r){return ha(n,t,r?void 0:e.Diagnostics.Cannot_find_module_0)}function ha(n,t,r,i){return i===void 0&&(i=!1),e.isStringLiteralLike(t)?ia(n,t.text,r,t,i):void 0}function ia(n,t,r,i,s){if(s===void 0&&(s=!1),e.startsWith(t,"@types/")){var f=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,A=e.removePrefix(t,"@types/");wn(i,f,A,t)}var W=B_(t,!0);if(W)return W;var xe=e.getSourceFileOfNode(n),je=e.getResolvedModule(xe,t),Qe=je&&e.getResolutionDiagnostic(Ge,je),nn=je&&!Qe&&_.getSourceFile(je.resolvedFileName);if(nn){if(nn.symbol)return je.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(je.extension)&&Ka(!1,i,je,t),zr(nn.symbol);r&&wn(i,e.Diagnostics.File_0_is_not_a_module,nn.fileName);return}if(Fo){var Tn=e.findBestPatternMatch(Fo,function(St){return St.pattern},t);if(Tn){var In=ko&&ko.get(t);return zr(In||Tn.symbol)}}if(je&&!e.resolutionExtensionIsTSOrJson(je.extension)&&Qe===void 0||Qe===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(s){var f=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;wn(i,f,t,je.resolvedFileName)}else Ka(ae&&!!r,i,je,t);return}if(r){if(je){var it=_.getProjectReferenceRedirect(je.resolvedFileName);if(it){wn(i,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,it,je.resolvedFileName);return}}if(Qe)wn(i,Qe,t,je.resolvedFileName);else{var pt=e.tryExtractTSExtension(t);if(pt){var f=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead;wn(i,f,pt,e.removeExtension(t,pt))}else!Ge.resolveJsonModule&&e.fileExtensionIs(t,".json")&&e.getEmitModuleResolutionKind(Ge)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(Ge)?wn(i,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,t):wn(i,r,t)}}return}function Ka(n,t,r,i){var s=r.packageId,f=r.resolvedFileName,A=!e.isExternalModuleNameRelative(i)&&s?ci(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)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(s.name)):void 0;Go(n,t,e.chainDiagnosticMessages(A,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,f))}function ci(n){return D().has(e.getTypesPackageName(n))}function ti(n,t){if(n){var r=E(n.exports.get("export="),t),i=yi(zr(r),zr(n));return zr(i)||n}return}function yi(n,t){if(!n||n===pn||n===t||t.exports.size===1||n.flags&2097152)return n;var r=ea(n);if(r.cjsExportMerged)return r.cjsExportMerged;var i=n.flags&33554432?n:et(n);return i.flags=i.flags|512,i.exports===void 0&&(i.exports=e.createSymbolTable()),t.exports.forEach(function(s,f){if(f==="export=")return;i.exports.set(f,i.exports.has(f)?Gt(i.exports.get(f),s):s)}),ea(i).cjsExportMerged=i,r.cjsExportMerged=i}function Xr(n,t,r,i){var s=ti(n,r);if(!r&&s){if(!i&&!(s.flags&(1536|3))&&!e.getDeclarationOfKind(s,288)){var f=j>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return wn(t,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,f),s}if(Ge.esModuleInterop){var A=t.parent;if(e.isImportDeclaration(A)&&e.getNamespaceDeclarationNode(A)||e.isImportCall(A)){var W=Hn(s),xe=$h(W,0);if((!xe||!xe.length)&&(xe=$h(W,1)),xe&&xe.length){var je=HE(W,s,n),Qe=Va(s.flags,s.escapedName);Qe.declarations=s.declarations?s.declarations.slice():[],Qe.parent=s.parent,Qe.target=s,Qe.originatingImport=A,s.valueDeclaration&&(Qe.valueDeclaration=s.valueDeclaration),s.constEnumOnlyModule&&(Qe.constEnumOnlyModule=!0),s.members&&(Qe.members=e.cloneMap(s.members)),s.exports&&(Qe.exports=e.cloneMap(s.exports));var nn=fc(je);return Qe.type=Oo(Qe,nn.members,e.emptyArray,e.emptyArray,nn.stringIndexInfo,nn.numberIndexInfo),Qe}}}}return s}function aa(n){return n.exports.get("export=")!==void 0}function oa(n){return G_(ro(n))}function ta(n){var t=oa(n),r=ti(n);return r!==n&&e.addRange(t,oo(Hn(r))),t}function La(n,t){var r=ro(t);if(r)return r.get(n)}function qa(n,t){var r=La(n,t);if(r)return r;var i=ti(t);if(i===t)return;var s=Hn(i);return s.flags&131068?void 0:Ji(s,n)}function ri(n){return n.flags&6256?yd(n,"resolvedExports"):n.flags&1536?ro(n):n.exports||We}function ro(n){var t=ea(n);return t.resolvedExports||(t.resolvedExports=Ko(n))}function Ja(n,t,r,i){if(!t)return;t.forEach(function(s,f){if(f==="default")return;var A=n.get(f);if(!A)n.set(f,s),r&&i&&r.set(f,{specifierText:e.getTextOfNode(i.moduleSpecifier)});else if(r&&i&&A&&E(A)!==E(s)){var W=r.get(f);W.exportsWithDuplicate?W.exportsWithDuplicate.push(i):W.exportsWithDuplicate=[i]}})}function Ko(n){var t=[];return n=ti(n),r(n)||We;function r(i){if(!(i&&i.exports&&e.pushIfUnique(t,i)))return;var s=e.cloneMap(i.exports),f=i.exports.get("__export");if(f){for(var A=e.createSymbolTable(),W=e.createMap(),xe=0,je=f.declarations;xe<je.length;xe++){var Qe=je[xe],nn=Hr(Qe,Qe.moduleSpecifier),Tn=r(nn);Ja(A,Tn,W,Qe)}W.forEach(function(In,it){var pt=In.exportsWithDuplicate;if(it==="export="||!(pt&&pt.length)||s.has(it))return;for(var St=0,qt=pt;St<qt.length;St++){var hr=qt[St];Qn.add(e.createDiagnosticForNode(hr,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,W.get(it).specifierText,e.unescapeLeadingUnderscores(it)))}}),Ja(s,A)}return s}}function zr(n){var t;return n&&n.mergeId&&(t=gl[n.mergeId])?t:n}function Yt(n){return zr(n.symbol&&hf(n.symbol))}function xs(n){return zr(n.parent&&hf(n.parent))}function zu(n,t){var r=e.getSourceFileOfNode(t),i=""+J(r),s=ea(n),f;if(s.extendedContainersByFile&&(f=s.extendedContainersByFile.get(i)))return f;if(r&&r.imports){for(var A=0,W=r.imports;A<W.length;A++){var xe=W[A];if(e.nodeIsSynthesized(xe))continue;var je=Hr(t,xe,!0);if(!je)continue;var Qe=Nu(je,n);if(!Qe)continue;f=e.append(f,je)}if(e.length(f))return(s.extendedContainersByFile||(s.extendedContainersByFile=e.createMap())).set(i,f),f}if(s.extendedContainers)return s.extendedContainers;for(var nn=_.getSourceFiles(),Tn=0,In=nn;Tn<In.length;Tn++){var it=In[Tn];if(!e.isExternalModule(it))continue;var pt=Yt(it),Qe=Nu(pt,n);if(!Qe)continue;f=e.append(f,pt)}return s.extendedContainers=f||e.emptyArray}function pd(n,t){var r=xs(n);if(r&&!(n.flags&262144)){var i=e.mapDefined(r.declarations,W),s=t&&zu(n,t);if(t&&As(r,t,1920,!1))return e.concatenate(e.concatenate([r],i),s);var f=e.append(i,r);return e.concatenate(f,s)}var A=e.mapDefined(n.declarations,function(xe){if(!e.isAmbientModule(xe)&&xe.parent&&vl(xe.parent))return Yt(xe.parent);if(e.isClassExpression(xe)&&e.isBinaryExpression(xe.parent)&&xe.parent.operatorToken.kind===62&&e.isAccessExpression(xe.parent.left)&&e.isEntityNameExpression(xe.parent.left.expression))return e.isModuleExportsAccessExpression(xe.parent.left)||e.isExportsIdentifier(xe.parent.left.expression)?Yt(e.getSourceFileOfNode(xe)):(as(xe.parent.left.expression),Ir(xe.parent.left.expression).resolvedSymbol)});if(!e.length(A))return;return e.mapDefined(A,function(xe){return Nu(xe,n)?xe:void 0});function W(xe){var je=rc(xe),Qe=je&&je.exports&&je.exports.get("export=");return Qe&&r&&bc(Qe,r)?je:void 0}}function Nu(n,t){if(n===xs(t))return t;var r=n.exports&&n.exports.get("export=");if(r&&bc(r,t))return n;var i=ri(n),s=i.get(t.escapedName);return s&&bc(s,t)?s:e.forEachEntry(i,function(f){if(bc(f,t))return f})}function bc(n,t){if(zr(E(zr(n)))===zr(E(zr(t))))return n}function nc(n){return zr(n&&(n.flags&1048576)!==0?n.exportSymbol:n)}function sr(n){return!!(n.flags&111551||n.flags&2097152&&M(n).flags&111551)}function jo(n){for(var t=n.members,r=0,i=t;r<i.length;r++){var s=i[r];if(s.kind===161&&e.nodeIsPresent(s.body))return s}}function _a(n){var t=new pe(c,n);return v++,t.id=v,t}function No(n,t,r){r===void 0&&(r=0);var i=_a(n);return i.intrinsicName=t,i.objectFlags=r,i}function tc(n){var t=jr(n);return t.flags|=16,t.intrinsicName="boolean",t}function ss(n,t){var r=_a(524288);return r.objectFlags=n,r.symbol=t,r.members=void 0,r.properties=void 0,r.callSignatures=void 0,r.constructSignatures=void 0,r.stringIndexInfo=void 0,r.numberIndexInfo=void 0,r}function ar(){return jr(e.arrayFrom(H.keys(),rs))}function il(n){var t=_a(262144);return n&&(t.symbol=n),t}function Bo(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64}function ws(n){var t;return n.forEach(function(r,i){!Bo(i)&&sr(r)&&(t||(t=[])).push(r)}),t||e.emptyArray}function go(n,t,r,i,s,f){return n.members=t,n.properties=t===We?e.emptyArray:ws(t),n.callSignatures=r,n.constructSignatures=i,n.stringIndexInfo=s,n.numberIndexInfo=f,n}function Oo(n,t,r,i,s,f){return go(ss(16,n),t,r,i,s,f)}function Ec(n,t){for(var r,i=function(W){if(W.locals&&!To(W)&&(r=t(W.locals)))return{value:r};switch(W.kind){case 288:if(!e.isExternalOrCommonJsModule(W))break;case 248:var xe=Yt(W);if(r=t(xe.exports||We))return{value:r};break;case 244:case 213:case 245:var je;if((Yt(W).members||We).forEach(function(Qe,nn){Qe.flags&(788968&~67108864)&&(je||(je=e.createSymbolTable())).set(nn,Qe)}),je&&(r=t(je)))return{value:r};break}},s=n;s;s=s.parent){var f=i(s);if(typeof f=="object")return f.value}return t(cn)}function ts(n){return n===111551?111551:1920}function As(n,t,r,i,s){if(s===void 0&&(s=e.createMap()),!(n&&!jl(n)))return;var f=""+fe(n),A=s.get(f);return A||s.set(f,A=[]),Ec(t,W);function W(nn,Tn){if(!e.pushIfUnique(A,nn))return;var In=Qe(nn,Tn);return A.pop(),In}function xe(nn,Tn){return!fu(nn,t,Tn)||!!As(nn.parent,t,ts(Tn),i,s)}function je(nn,Tn,In){return(n===(Tn||nn)||zr(n)===zr(Tn||nn))&&!e.some(nn.declarations,vl)&&(In||xe(zr(nn),r))}function Qe(nn,Tn){return je(nn.get(n.escapedName),void 0,Tn)?[n]:e.forEachEntry(nn,function(In){if(In.flags&2097152&&In.escapedName!=="export="&&In.escapedName!=="default"&&!(e.isUMDExportSymbol(In)&&t&&e.isExternalModule(e.getSourceFileOfNode(t)))&&(!i||e.some(In.declarations,e.isExternalModuleImportEqualsDeclaration))&&(Tn||!e.getDeclarationOfKind(In,261))){var it=M(In);if(je(In,it,Tn))return[In];var pt=ri(it),St=pt&&W(pt,!0);if(St&&xe(In,ts(r)))return[In].concat(St)}if(In.escapedName===n.escapedName&&In.exportSymbol&&je(zr(In.exportSymbol),void 0,Tn))return[n]})}}function fu(n,t,r){var i=!1;return Ec(t,function(s){var f=zr(s.get(n.escapedName));return f?f===n?!0:(f=f.flags&2097152&&!e.getDeclarationOfKind(f,261)?M(f):f,f.flags&r?(i=!0,!0):!1):!1}),i}function jl(n){if(n.declarations&&n.declarations.length){for(var t=0,r=n.declarations;t<r.length;t++){var i=r[t];switch(i.kind){case 158:case 160:case 162:case 163:continue;default:return!1}}return!0}return!1}function Uc(n,t){var r=xc(n,t,788968,!1);return r.accessibility===0}function Tc(n,t){var r=xc(n,t,111551,!1);return r.accessibility===0}function Sc(n,t,r,i,s){if(!e.length(n))return;for(var f,A=0,W=n;A<W.length;A++){var xe=W[A],je=As(xe,t,i,!1);if(je){f=xe;var Qe=Ys(je[0],s);if(Qe)return Qe}else if(e.some(xe.declarations,vl))return{accessibility:0};var nn=pd(xe,t),Tn=e.first(xe.declarations);!e.length(nn)&&i&111551&&Tn&&e.isObjectLiteralExpression(Tn)&&(Tn.parent&&e.isVariableDeclaration(Tn.parent)&&Tn===Tn.parent.initializer&&(nn=[Yt(Tn.parent)]));var In=Sc(nn,t,r,r===xe?ts(i):i,s);if(In)return In}if(f)return{accessibility:1,errorSymbolName:wa(r,t,i),errorModuleName:f!==r?wa(f,t,1920):void 0}}function xc(n,t,r,i){if(n&&t){var s=Sc([n],t,n,r,i);if(s)return s;var f=e.forEach(n.declarations,rc);if(f){var A=rc(t);if(f!==A)return{accessibility:2,errorSymbolName:wa(n,t,r),errorModuleName:wa(f)}}return{accessibility:1,errorSymbolName:wa(n,t,r)}}return{accessibility:0}}function rc(n){var t=e.findAncestor(n,ac);return t&&Yt(t)}function ac(n){return e.isAmbientModule(n)||n.kind===288&&e.isExternalOrCommonJsModule(n)}function vl(n){return e.isModuleWithStringLiteralName(n)||n.kind===288&&e.isExternalOrCommonJsModule(n)}function Ys(n,t){var r;if(!e.every(e.filter(n.declarations,function(f){return f.kind!==75}),i))return;return{accessibility:0,aliasesToMakeVisible:r};function i(f){if(!ns(f)){var A=Nl(f);return A&&!e.hasModifier(A,1)&&ns(A.parent)?s(f,A):e.isVariableDeclaration(f)&&e.isVariableStatement(f.parent.parent)&&!e.hasModifier(f.parent.parent,1)&&ns(f.parent.parent.parent)?s(f,f.parent.parent):e.isLateVisibilityPaintedStatement(f)&&!e.hasModifier(f,1)&&ns(f.parent)?s(f,f):!1}return!0}function s(f,A){return t&&(Ir(f).isVisible=!0,r=e.appendIfUnique(r,A)),!0}}function Ol(n,t){var r;n.parent.kind===171||e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)||n.parent.kind===153?r=111551|1048576:n.kind===152||n.kind===193||n.parent.kind===252?r=1920:r=788968;var i=e.getFirstIdentifier(n),s=co(t,i.escapedText,r,void 0,void 0,!1);return s&&Ys(s,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function wa(n,t,r,i,s){i===void 0&&(i=4);var f=70221824;i&2&&(f|=128),i&1&&(f|=512),i&8&&(f|=16384),i&16&&(f|=134217728);var A=i&4?Ue.symbolToExpression:Ue.symbolToEntityName;return s?W(s).getText():e.usingSingleLineStringWriter(W);function W(xe){var je=A(n,r,t,f),Qe=e.createPrinter({removeComments:!0}),nn=t&&e.getSourceFileOfNode(t);return Qe.writeNode(4,je,nn,xe),xe}}function Gs(n,t,r,i,s){return r===void 0&&(r=0),s?f(s).getText():e.usingSingleLineStringWriter(f);function f(A){var W;r&262144?W=i===1?170:169:W=i===1?165:164;var xe=Ue.signatureToSignatureDeclaration(n,W,t,pu(r)|70221824|512),je=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),Qe=t&&e.getSourceFileOfNode(t);return je.writeNode(4,xe,Qe,e.getTrailingSemicolonDeferringWriter(A)),A}}function zt(n,t,r,i){r===void 0&&(r=1048576|16384),i===void 0&&(i=e.createTextWriter(""));var s=Ge.noErrorTruncation||r&1,f=Ue.typeToTypeNode(n,t,pu(r)|70221824|(s?1:0),i);if(f===void 0)return e.Debug.fail("should always get typenode");var A={removeComments:!0},W=e.createPrinter(A),xe=t&&e.getSourceFileOfNode(t);W.writeNode(4,f,xe,i);var je=i.getText(),Qe=s?void 0:e.defaultMaximumTruncationLength*2;return Qe&&je&&je.length>=Qe?je.substr(0,Qe-"...".length)+"...":je}function bl(n,t){var r=Do(n.symbol)?zt(n,n.symbol.valueDeclaration):zt(n),i=Do(t.symbol)?zt(t,t.symbol.valueDeclaration):zt(t);return r===i&&(r=zt(n,void 0,64),i=zt(t,void 0,64)),[r,i]}function Do(n){return n&&n.valueDeclaration&&e.isExpression(n.valueDeclaration)&&!Gl(n.valueDeclaration)}function pu(n){return n===void 0&&(n=0),n&9469291}function ic(){return{typeToTypeNode:function(gn,At,Ct,Zt){return n(At,Ct,Zt,function(pr){return r(gn,pr)})},indexInfoToIndexSignatureDeclaration:function(gn,At,Ct,Zt,pr){return n(Ct,Zt,pr,function(xr){return A(gn,At,xr)})},signatureToSignatureDeclaration:function(gn,At,Ct,Zt,pr){return n(Ct,Zt,pr,function(xr){return W(gn,At,xr)})},symbolToEntityName:function(gn,At,Ct,Zt,pr){return n(Ct,Zt,pr,function(xr){return na(gn,xr,At,!1)})},symbolToExpression:function(gn,At,Ct,Zt,pr){return n(Ct,Zt,pr,function(xr){return Mr(gn,xr,At)})},symbolToTypeParameterDeclarations:function(gn,At,Ct,Zt){return n(At,Ct,Zt,function(pr){return it(gn,pr)})},symbolToParameterDeclaration:function(gn,At,Ct,Zt){return n(At,Ct,Zt,function(pr){return Qe(gn,pr)})},typeParameterToDeclaration:function(gn,At,Ct,Zt){return n(At,Ct,Zt,function(pr){return je(gn,pr)})},symbolTableToDeclarationStatements:function(gn,At,Ct,Zt,pr){return n(At,Ct,Zt,function(xr){return Bt(gn,xr,pr)})}};function n(An,gn,At,Ct){e.Debug.assert(An===void 0||(An.flags&8)===0);var Zt={enclosingDeclaration:An,flags:gn||0,tracker:At&&At.trackSymbol?At:{trackSymbol:e.noop,moduleResolverHost:gn&134217728?{getCommonSourceDirectory:_.getCommonSourceDirectory?function(){return _.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return _.getSourceFiles()},getCurrentDirectory:e.maybeBind(_,_.getCurrentDirectory),getProbableSymlinks:e.maybeBind(_,_.getProbableSymlinks)}:void 0},encounteredError:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},pr=Ct(Zt);return Zt.encounteredError?void 0:pr}function t(An){return An.truncating?An.truncating:An.truncating=!(An.flags&1)&&An.approximateLength>e.defaultMaximumTruncationLength}function r(An,gn){T&&T.throwIfCancellationRequested&&T.throwIfCancellationRequested();var At=gn.flags&8388608;if(gn.flags&=~8388608,!An){gn.encounteredError=!0;return}if(An.flags&1)return gn.approximateLength+=3,e.createKeywordTypeNode(124);if(An.flags&2)return e.createKeywordTypeNode(147);if(An.flags&4)return gn.approximateLength+=6,e.createKeywordTypeNode(142);if(An.flags&8)return gn.approximateLength+=6,e.createKeywordTypeNode(139);if(An.flags&64)return gn.approximateLength+=6,e.createKeywordTypeNode(150);if(An.flags&16)return gn.approximateLength+=7,e.createKeywordTypeNode(127);if(An.flags&1024&&!(An.flags&1048576)){var Ct=xs(An.symbol),Zt=hr(Ct,gn,788968),pr=yo(Ct)===An?Zt:Hs(Zt,e.createTypeReferenceNode(e.symbolName(An.symbol),void 0));return pr}if(An.flags&1056)return hr(An.symbol,gn,788968);if(An.flags&128)return gn.approximateLength+=An.value.length+2,e.createLiteralTypeNode(e.setEmitFlags(e.createLiteral(An.value),16777216));if(An.flags&256){var xr=An.value;return gn.approximateLength+=(""+xr).length,e.createLiteralTypeNode(xr<0?e.createPrefix(40,e.createLiteral(-xr)):e.createLiteral(xr))}if(An.flags&2048)return gn.approximateLength+=e.pseudoBigIntToString(An.value).length+1,e.createLiteralTypeNode(e.createLiteral(An.value));if(An.flags&512)return gn.approximateLength+=An.intrinsicName.length,An.intrinsicName==="true"?e.createTrue():e.createFalse();if(An.flags&8192){if(!(gn.flags&1048576)){if(Tc(An.symbol,gn.enclosingDeclaration))return gn.approximateLength+=6,hr(An.symbol,gn,111551);gn.tracker.reportInaccessibleUniqueSymbolError&&gn.tracker.reportInaccessibleUniqueSymbolError()}return gn.approximateLength+=13,e.createTypeOperatorNode(146,e.createKeywordTypeNode(143))}if(An.flags&16384)return gn.approximateLength+=4,e.createKeywordTypeNode(109);if(An.flags&32768)return gn.approximateLength+=9,e.createKeywordTypeNode(145);if(An.flags&65536)return gn.approximateLength+=4,e.createKeywordTypeNode(99);if(An.flags&131072)return gn.approximateLength+=5,e.createKeywordTypeNode(136);if(An.flags&4096)return gn.approximateLength+=6,e.createKeywordTypeNode(143);if(An.flags&67108864)return gn.approximateLength+=6,e.createKeywordTypeNode(140);if(qp(An))return gn.flags&4194304&&(!gn.encounteredError&&!(gn.flags&32768)&&(gn.encounteredError=!0),gn.tracker.reportInaccessibleThisError&&gn.tracker.reportInaccessibleThisError()),gn.approximateLength+=4,e.createThis();if(!At&&An.aliasSymbol&&(gn.flags&16384||Uc(An.aliasSymbol,gn.enclosingDeclaration))){var jt=f(An.aliasTypeArguments,gn);return Bo(An.aliasSymbol.escapedName)&&!(An.aliasSymbol.flags&32)?e.createTypeReferenceNode(e.createIdentifier(""),jt):hr(An.aliasSymbol,gn,788968,jt)}var sa=e.getObjectFlags(An);if(sa&4)return e.Debug.assert(!!(An.flags&524288)),An.node?Oi(An,Ao):Ao(An);if(An.flags&262144||sa&3){if(An.flags&262144&&e.contains(gn.inferTypeParameters,An))return gn.approximateLength+=e.symbolName(An.symbol).length+6,e.createInferTypeNode(xe(An,gn,void 0));if(gn.flags&4&&An.flags&262144&&!Uc(An.symbol,gn.enclosingDeclaration)){var Ea=Tr(An,gn);return gn.approximateLength+=e.idText(Ea).length,e.createTypeReferenceNode(e.createIdentifier(e.idText(Ea)),void 0)}return An.symbol?hr(An.symbol,gn,788968):e.createTypeReferenceNode(e.createIdentifier("?"),void 0)}if(An.flags&(1048576|2097152)){var Ma=An.flags&1048576?Xu(An.types):An.types;if(e.length(Ma)===1)return r(Ma[0],gn);var Li=f(Ma,gn,!0);if(Li&&Li.length>0){var di=e.createUnionOrIntersectionTypeNode(An.flags&1048576?177:178,Li);return di}else{!gn.encounteredError&&!(gn.flags&262144)&&(gn.encounteredError=!0);return}}if(sa&(16|32))return e.Debug.assert(!!(An.flags&524288)),Za(An);if(An.flags&4194304){var io=An.type;gn.approximateLength+=6;var mt=r(io,gn);return e.createTypeOperatorNode(mt)}if(An.flags&8388608){var Ot=r(An.objectType,gn),mt=r(An.indexType,gn);return gn.approximateLength+=2,e.createIndexedAccessTypeNode(Ot,mt)}if(An.flags&16777216){var Wt=r(An.checkType,gn),Jt=gn.inferTypeParameters;gn.inferTypeParameters=An.root.inferTypeParameters;var dr=r(An.extendsType,gn);gn.inferTypeParameters=Jt;var Ar=r(ad(An),gn),Qa=r(id(An),gn);return gn.approximateLength+=15,e.createConditionalTypeNode(Wt,dr,Ar,Qa)}if(An.flags&33554432)return r(An.typeVariable,gn);return e.Debug.fail("Should be unreachable.");function ei(la){e.Debug.assert(!!(la.flags&524288));var Vi=la.declaration.readonlyToken?e.createToken(la.declaration.readonlyToken.kind):void 0,fo=la.declaration.questionToken?e.createToken(la.declaration.questionToken.kind):void 0,ys;Hh(la)?ys=e.createTypeOperatorNode(r(Kh(la),gn)):ys=r(dc(la),gn);var is=xe(Fu(la),gn,ys),cs=r(qc(la),gn),Cs=e.createMappedTypeNode(Vi,is,fo,cs);return gn.approximateLength+=10,e.setEmitFlags(Cs,1)}function Za(la){var Vi=""+la.id,fo=la.symbol;if(fo)if(Zc(fo.valueDeclaration)){var ys=la===sl(fo)?788968:111551;return hr(fo,gn,ys)}else{if(fo.flags&32&&!gr(fo)&&!(fo.valueDeclaration.kind===213&&gn.flags&2048)||fo.flags&(384|512)||cs())return hr(fo,gn,111551);if(gn.visitedTypes&&gn.visitedTypes.has(Vi)){var is=Hl(la);return is?hr(is,gn,788968):i(gn)}else return Oi(la,Mo)}else return Mo(la);function cs(){var Cs=!!(fo.flags&8192)&&e.some(fo.declarations,function(vo){return e.hasModifier(vo,32)}),Yl=!!(fo.flags&16)&&(fo.parent||e.forEach(fo.declarations,function(vo){return vo.parent.kind===288||vo.parent.kind===249}));if(Cs||Yl)return(!!(gn.flags&4096)||gn.visitedTypes&&gn.visitedTypes.has(Vi))&&(!(gn.flags&8)||Tc(fo,gn.enclosingDeclaration))}}function Oi(la,Vi){var fo=""+la.id,ys=e.getObjectFlags(la)&16&&la.symbol&&la.symbol.flags&32,is=e.getObjectFlags(la)&4&&la.node?"N"+J(la.node):la.symbol?(ys?"+":"")+fe(la.symbol):void 0;gn.visitedTypes||(gn.visitedTypes=e.createMap()),is&&!gn.symbolDepth&&(gn.symbolDepth=e.createMap());var cs;if(is){if(cs=gn.symbolDepth.get(is)||0,cs>10)return i(gn);gn.symbolDepth.set(is,cs+1)}gn.visitedTypes.set(fo,!0);var Cs=Vi(la);return gn.visitedTypes.delete(fo),is&&gn.symbolDepth.set(is,cs),Cs}function Mo(la){if(Fl(la))return ei(la);var Vi=fc(la);if(!Vi.properties.length&&!Vi.stringIndexInfo&&!Vi.numberIndexInfo){if(!Vi.callSignatures.length&&!Vi.constructSignatures.length)return gn.approximateLength+=2,e.setEmitFlags(e.createTypeLiteralNode(void 0),1);if(Vi.callSignatures.length===1&&!Vi.constructSignatures.length){var fo=Vi.callSignatures[0],ys=W(fo,169,gn);return ys}if(Vi.constructSignatures.length===1&&!Vi.callSignatures.length){var fo=Vi.constructSignatures[0],ys=W(fo,170,gn);return ys}}var is=gn.flags;gn.flags|=4194304;var cs=Ld(Vi);gn.flags=is;var Cs=e.createTypeLiteralNode(cs);return gn.approximateLength+=2,e.setEmitFlags(Cs,gn.flags&1024?0:1)}function Ao(la){var Vi=_o(la);if(la.target===_r||la.target===Jr){if(gn.flags&2){var fo=r(Vi[0],gn);return e.createTypeReferenceNode(la.target===_r?"Array":"ReadonlyArray",[fo])}var ys=r(Vi[0],gn),is=e.createArrayTypeNode(ys);return la.target===_r?is:e.createTypeOperatorNode(137,is)}else if(la.target.objectFlags&8){if(Vi.length>0){var cs=vd(la),Cs=f(Vi.slice(0,cs),gn),Yl=la.target.hasRestElement;if(Cs){for(var vo=la.target.minLength;vo<Math.min(cs,Cs.length);vo++)Cs[vo]=Yl&&vo===cs-1?e.createRestTypeNode(e.createArrayTypeNode(Cs[vo])):e.createOptionalTypeNode(Cs[vo]);var gc=e.createTupleTypeNode(Cs);return la.target.readonly?e.createTypeOperatorNode(137,gc):gc}}if(gn.encounteredError||gn.flags&524288){var gc=e.createTupleTypeNode([]);return la.target.readonly?e.createTypeOperatorNode(137,gc):gc}gn.encounteredError=!0;return}else{if(gn.flags&2048&&la.symbol.valueDeclaration&&e.isClassLike(la.symbol.valueDeclaration)&&!Tc(la.symbol,gn.enclosingDeclaration))return Za(la);var Ic=la.target.outerTypeParameters,vo=0,nu=void 0;if(Ic)for(var tu=Ic.length;vo<tu;){var Uf=vo,Id=K_(Ic[vo]);do vo++;while(vo<tu&&K_(Ic[vo])===Id);if(!e.rangeEquals(Ic,Vi,Uf,vo)){var Gn=f(Vi.slice(Uf,vo),gn),Yn=gn.flags;gn.flags|=16;var Mt=hr(Id,gn,788968,Gn);gn.flags=Yn,nu=nu?Hs(nu,Mt):Mt}}var Xt=void 0;if(Vi.length>0){var Fr=(la.target.typeParameters||e.emptyArray).length;Xt=f(Vi.slice(vo,Fr),gn)}var Gr=gn.flags;gn.flags|=16;var ir=hr(la.symbol,gn,788968,Xt);return gn.flags=Gr,nu?Hs(nu,ir):ir}}function Hs(la,Vi){if(e.isImportTypeNode(la)){var fo=la.typeArguments;la.qualifier&&((e.isIdentifier(la.qualifier)?la.qualifier:la.qualifier.right).typeArguments=fo),la.typeArguments=Vi.typeArguments;for(var ys=ks(Vi),is=0,cs=ys;is<cs.length;is++){var Cs=cs[is];la.qualifier=la.qualifier?e.createQualifiedName(la.qualifier,Cs):Cs}return la}else{var fo=la.typeArguments;(e.isIdentifier(la.typeName)?la.typeName:la.typeName.right).typeArguments=fo,la.typeArguments=Vi.typeArguments;for(var ys=ks(Vi),Yl=0,vo=ys;Yl<vo.length;Yl++){var Cs=vo[Yl];la.typeName=e.createQualifiedName(la.typeName,Cs)}return la}}function ks(la){for(var Vi=la.typeName,fo=[];!e.isIdentifier(Vi);)fo.unshift(Vi.right),Vi=Vi.left;return fo.unshift(Vi),fo}function Ld(la){if(t(gn))return[e.createPropertySignature(void 0,"...",void 0,void 0,void 0)];for(var Vi=[],fo=0,ys=la.callSignatures;fo<ys.length;fo++){var is=ys[fo];Vi.push(W(is,164,gn))}for(var cs=0,Cs=la.constructSignatures;cs<Cs.length;cs++){var is=Cs[cs];Vi.push(W(is,165,gn))}if(la.stringIndexInfo){var Yl=void 0;la.objectFlags&2048?(Yl=A(dl(oe,la.stringIndexInfo.isReadonly,la.stringIndexInfo.declaration),0,gn),Yl.type=i(gn)):Yl=A(la.stringIndexInfo,0,gn),Vi.push(Yl)}la.numberIndexInfo&&Vi.push(A(la.numberIndexInfo,1,gn));var vo=la.properties;if(!vo)return Vi;for(var gc=0,Ic=0,nu=vo;Ic<nu.length;Ic++){var tu=nu[Ic];if(gc++,gn.flags&2048){if(tu.flags&4194304)continue;e.getDeclarationModifierFlagsFromSymbol(tu)&(8|16)&&gn.tracker.reportPrivateInBaseOfClassExpression&&gn.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(tu.escapedName))}if(t(gn)&&gc+2<vo.length-1){Vi.push(e.createPropertySignature(void 0,"... "+(vo.length-gc)+" more ...",void 0,void 0,void 0)),s(vo[vo.length-1],gn,Vi);break}s(tu,gn,Vi)}return Vi.length?Vi:void 0}}function i(An){return An.approximateLength+=3,An.flags&1?e.createKeywordTypeNode(124):e.createTypeReferenceNode(e.createIdentifier("..."),void 0)}function s(An,gn,At){var Ct=!!(e.getCheckFlags(An)&8192),Zt=Ct&&gn.flags&33554432?oe:Hn(An),pr=gn.enclosingDeclaration;if(gn.enclosingDeclaration=void 0,gn.tracker.trackSymbol&&e.getCheckFlags(An)&4096){var xr=e.first(An.declarations);if(Ua(xr))if(e.isBinaryExpression(xr)){var jt=e.getNameOfDeclaration(xr);jt&&e.isElementAccessExpression(jt)&&e.isPropertyAccessEntityNameExpression(jt.argumentExpression)&&nn(jt.argumentExpression,pr,gn)}else nn(xr.name.expression,pr,gn)}var sa=na(An,gn,111551,!0);gn.approximateLength+=e.symbolName(An).length+1,gn.enclosingDeclaration=pr;var Ea=An.flags&16777216?e.createToken(57):void 0;if(An.flags&(16|8192)&&!_u(Zt).length&&!$c(An))for(var Ma=si(gs(Zt,function(Qa){return!(Qa.flags&32768)}),0),Li=0,di=Ma;Li<di.length;Li++){var io=di[Li],mt=W(io,159,gn);mt.name=sa,mt.questionToken=Ea,At.push(Ar(mt))}else{var Ot=gn.flags;gn.flags|=Ct?33554432:0;var Wt=void 0;Ct&&!!(Ot&33554432)?Wt=i(gn):Wt=Zt?r(Zt,gn):e.createKeywordTypeNode(124),gn.flags=Ot;var Jt=$c(An)?[e.createToken(137)]:void 0;Jt&&(gn.approximateLength+=9);var dr=e.createPropertySignature(Jt,sa,Ea,Wt,void 0);At.push(Ar(dr))}function Ar(Qa){if(e.some(An.declarations,function(Oi){return Oi.kind===316})){var ei=e.find(An.declarations,function(Oi){return Oi.kind===316}),Za=ei.comment;Za&&e.setSyntheticLeadingComments(Qa,[{kind:3,text:`*
* `+Za.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else An.valueDeclaration&&e.setCommentRange(Qa,An.valueDeclaration);return Qa}}function f(An,gn,At){if(e.some(An)){if(t(gn))if(At){if(An.length>2)return[r(An[0],gn),e.createTypeReferenceNode("... "+(An.length-2)+" more ...",void 0),r(An[An.length-1],gn)]}else return[e.createTypeReferenceNode("...",void 0)];for(var Ct=[],Zt=0,pr=0,xr=An;pr<xr.length;pr++){var jt=xr[pr];if(Zt++,t(gn)&&Zt+2<An.length-1){Ct.push(e.createTypeReferenceNode("... "+(An.length-Zt)+" more ...",void 0));var sa=r(An[An.length-1],gn);sa&&Ct.push(sa);break}gn.approximateLength+=2;var Ea=r(jt,gn);Ea&&Ct.push(Ea)}return Ct}}function A(An,gn,At){var Ct=e.getNameFromIndexInfo(An)||"x",Zt=e.createKeywordTypeNode(gn===0?142:139),pr=e.createParameter(void 0,void 0,void 0,Ct,void 0,Zt,void 0),xr=r(An.type||oe,At);return!An.type&&!(At.flags&2097152)&&(At.encounteredError=!0),At.approximateLength+=Ct.length+4,e.createIndexSignature(void 0,An.isReadonly?[e.createToken(137)]:void 0,[pr],xr)}function W(An,gn,At){var Ct,Zt;At.flags&32&&An.target&&An.mapper&&An.target.typeParameters?Zt=An.target.typeParameters.map(function(io){return r(Si(io,An.mapper),At)}):Ct=An.typeParameters&&An.typeParameters.map(function(io){return je(io,At)});var pr=E_(An).map(function(io){return Qe(io,At,gn===161)});if(An.thisParameter){var xr=Qe(An.thisParameter,At);pr.unshift(xr)}var jt,sa=ul(An);if(sa){var Ea=sa.kind===2||sa.kind===3?e.createToken(123):void 0,Ma=sa.kind===1||sa.kind===3?e.setEmitFlags(e.createIdentifier(sa.parameterName),16777216):e.createThisTypeNode(),Li=sa.type&&r(sa.type,At);jt=e.createTypePredicateNodeWithModifier(Ea,Ma,Li)}else{var di=Fi(An);jt=di&&r(di,At)}return At.flags&256?jt&&jt.kind===124&&(jt=void 0):jt||(jt=e.createKeywordTypeNode(124)),At.approximateLength+=3,e.createSignatureDeclaration(gn,Ct,pr,jt,Zt)}function xe(An,gn,At){var Ct=gn.flags;gn.flags&=~512;var Zt=Tr(An,gn),pr=Yd(An),xr=pr&&r(pr,gn);return gn.flags=Ct,e.createTypeParameterDeclaration(Zt,At,xr)}function je(An,gn,At){At===void 0&&(At=ll(An));var Ct=At&&r(At,gn);return xe(An,gn,Ct)}function Qe(An,gn,At){var Ct=e.getDeclarationOfKind(An,155);!Ct&&!Es(An)&&(Ct=e.getDeclarationOfKind(An,310));var Zt=Hn(An);Ct&&_S(Ct)&&(Zt=wu(Zt));var pr=r(Zt,gn),xr=!(gn.flags&8192)&&At&&Ct&&Ct.modifiers?Ct.modifiers.map(e.getSynthesizedClone):void 0,jt=Ct&&e.isRestParameter(Ct)||e.getCheckFlags(An)&32768,sa=jt?e.createToken(25):void 0,Ea=Ct&&Ct.name?Ct.name.kind===75?e.setEmitFlags(e.getSynthesizedClone(Ct.name),16777216):Ct.name.kind===152?e.setEmitFlags(e.getSynthesizedClone(Ct.name.right),16777216):io(Ct.name):e.symbolName(An),Ma=Ct&&Fp(Ct)||e.getCheckFlags(An)&16384,Li=Ma?e.createToken(57):void 0,di=e.createParameter(void 0,xr,sa,Ea,Li,pr,void 0);return gn.approximateLength+=e.symbolName(An).length+3,di;function io(mt){return Ot(mt);function Ot(Wt){gn.tracker.trackSymbol&&e.isComputedPropertyName(Wt)&&$r(Wt)&&nn(Wt.expression,gn.enclosingDeclaration,gn);var Jt=e.visitEachChild(Wt,Ot,e.nullTransformationContext,void 0,Ot),dr=e.nodeIsSynthesized(Jt)?Jt:e.getSynthesizedClone(Jt);return dr.kind===190&&(dr.initializer=void 0),e.setEmitFlags(dr,1|16777216)}}}function nn(An,gn,At){if(!At.tracker.trackSymbol)return;var Ct=e.getFirstIdentifier(An),Zt=co(Ct,Ct.escapedText,111551|1048576,void 0,void 0,!0);Zt&&At.tracker.trackSymbol(Zt,gn,111551)}function Tn(An,gn,At,Ct){return gn.tracker.trackSymbol(An,gn.enclosingDeclaration,At),In(An,gn,At,Ct)}function In(An,gn,At,Ct){var Zt,pr=An.flags&262144;return!pr&&(gn.enclosingDeclaration||gn.flags&64)&&!(gn.flags&134217728)?(Zt=e.Debug.assertDefined(xr(An,At,!0)),e.Debug.assert(Zt&&Zt.length>0)):Zt=[An],Zt;function xr(jt,sa,Ea){var Ma=As(jt,gn.enclosingDeclaration,sa,!!(gn.flags&128)),Li;if(!Ma||fu(Ma[0],gn.enclosingDeclaration,Ma.length===1?sa:ts(sa))){var di=pd(Ma?Ma[0]:jt,gn.enclosingDeclaration);if(e.length(di)){Li=di.map(function(Qa){return e.some(Qa.declarations,vl)?qt(Qa,gn):void 0});var io=di.map(function(Qa,ei){return ei});io.sort(Ar);for(var mt=io.map(function(Qa){return di[Qa]}),Ot=0,Wt=mt;Ot<Wt.length;Ot++){var Jt=Wt[Ot],dr=xr(Jt,ts(sa),!1);if(dr){if(Jt.exports&&Jt.exports.get("export=")&&bc(Jt.exports.get("export="),jt)){Ma=dr;break}Ma=dr.concat(Ma||[Nu(Jt,jt)||jt]);break}}}}if(Ma)return Ma;if(Ea||!(jt.flags&(2048|4096)))return!Ea&&!Ct&&!!e.forEach(jt.declarations,vl)?void 0:[jt];function Ar(Qa,ei){var Za=Li[Qa],Oi=Li[ei];if(Za&&Oi){var Mo=e.pathIsRelative(Oi);return e.pathIsRelative(Za)===Mo?e.moduleSpecifiers.countPathComponents(Za)-e.moduleSpecifiers.countPathComponents(Oi):Mo?-1:1}return 0}}}function it(An,gn){var At,Ct=Dp(An);return Ct.flags&(32|64|524288)&&(At=e.createNodeArray(e.map(qo(An),function(Zt){return je(Zt,gn)}))),At}function pt(An,gn,At){e.Debug.assert(An&&0<=gn&&gn<An.length);var Ct=An[gn],Zt=""+fe(Ct);if(At.typeParameterSymbolList&&At.typeParameterSymbolList.get(Zt))return;(At.typeParameterSymbolList||(At.typeParameterSymbolList=e.createMap())).set(Zt,!0);var pr;if(At.flags&512&&gn<An.length-1){var xr=Ct,jt=An[gn+1];if(e.getCheckFlags(jt)&1){var sa=El(xr.flags&2097152?M(xr):xr);pr=f(e.map(sa,jt.mapper),At)}else pr=it(Ct,At)}return pr}function St(An){return e.isIndexedAccessTypeNode(An.objectType)?St(An.objectType):An}function qt(An,gn){var At=e.getDeclarationOfKind(An,288);if(At&&At.moduleName!==void 0)return At.moduleName;if(!At){if(gn.tracker.trackReferencedAmbientModule){var Ct=e.filter(An.declarations,e.isAmbientModule);if(e.length(Ct))for(var Zt=0,pr=Ct;Zt<pr.length;Zt++){var xr=pr[Zt];gn.tracker.trackReferencedAmbientModule(xr,An)}}if(o.test(An.escapedName))return An.escapedName.substring(1,An.escapedName.length-1)}if(!gn.enclosingDeclaration||!gn.tracker.moduleResolverHost)return o.test(An.escapedName)?An.escapedName.substring(1,An.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(An)).fileName;var jt=e.getSourceFileOfNode(e.getOriginalNode(gn.enclosingDeclaration)),sa=ea(An),Ea=sa.specifierCache&&sa.specifierCache.get(jt.path);if(!Ea){var Ma=Ge.out||Ge.outFile,Li=gn.tracker.moduleResolverHost,di=Ma?ma(ma({},Ge),{baseUrl:Li.getCommonSourceDirectory()}):Ge;Ea=e.first(e.moduleSpecifiers.getModuleSpecifiers(An,di,jt,Li,_.getSourceFiles(),{importModuleSpecifierPreference:Ma?"non-relative":"relative"},_.redirectTargetsMap)),sa.specifierCache=sa.specifierCache||e.createMap(),sa.specifierCache.set(jt.path,Ea)}return Ea}function hr(An,gn,At,Ct){var Zt=Tn(An,gn,At,!(gn.flags&16384)),pr=At===111551;if(e.some(Zt[0].declarations,vl)){var xr=Zt.length>1?Ot(Zt,Zt.length-1,1):void 0,jt=Ct||pt(Zt,0,gn),sa=qt(Zt[0],gn);!(gn.flags&67108864)&&e.getEmitModuleResolutionKind(Ge)===e.ModuleResolutionKind.NodeJs&&sa.indexOf("/node_modules/")>=0&&(gn.encounteredError=!0,gn.tracker.reportLikelyUnsafeImportRequiredError&&gn.tracker.reportLikelyUnsafeImportRequiredError(sa));var Ea=e.createLiteralTypeNode(e.createLiteral(sa));if(gn.tracker.trackExternalModuleSymbolOfImportTypeNode&&gn.tracker.trackExternalModuleSymbolOfImportTypeNode(Zt[0]),gn.approximateLength+=sa.length+10,!xr||e.isEntityName(xr)){if(xr){var Ma=e.isIdentifier(xr)?xr:xr.right;Ma.typeArguments=void 0}return e.createImportTypeNode(Ea,xr,jt,pr)}else{var Li=St(xr),di=Li.objectType.typeName;return e.createIndexedAccessTypeNode(e.createImportTypeNode(Ea,di,jt,pr),Li.indexType)}}var io=Ot(Zt,Zt.length-1,0);if(e.isIndexedAccessTypeNode(io))return io;if(pr)return e.createTypeQueryNode(io);var Ma=e.isIdentifier(io)?io:io.right,mt=Ma.typeArguments;return Ma.typeArguments=void 0,e.createTypeReferenceNode(io,mt);function Ot(Wt,Jt,dr){var Ar=Jt===Wt.length-1?Ct:pt(Wt,Jt,gn),Qa=Wt[Jt],ei=Wt[Jt-1],Za;if(Jt===0)gn.flags|=16777216,Za=Vs(Qa,gn),gn.approximateLength+=(Za?Za.length:0)+1,gn.flags^=16777216;else if(ei&&ri(ei)){var Oi=ri(ei);e.forEachEntry(Oi,function(Hs,ks){if(bc(Hs,Qa)&&!Ur(ks)&&ks!=="export=")return Za=e.unescapeLeadingUnderscores(ks),!0})}if(Za||(Za=Vs(Qa,gn)),gn.approximateLength+=Za.length+1,!(gn.flags&16)&&ei&&yu(ei)&&yu(ei).get(Qa.escapedName)&&bc(yu(ei).get(Qa.escapedName),Qa)){var Mo=Ot(Wt,Jt-1,dr);return e.isIndexedAccessTypeNode(Mo)?e.createIndexedAccessTypeNode(Mo,e.createLiteralTypeNode(e.createLiteral(Za))):e.createIndexedAccessTypeNode(e.createTypeReferenceNode(Mo,Ar),e.createLiteralTypeNode(e.createLiteral(Za)))}var Ao=e.setEmitFlags(e.createIdentifier(Za,Ar),16777216);if(Ao.symbol=Qa,Jt>dr){var Mo=Ot(Wt,Jt-1,dr);return e.isEntityName(Mo)?e.createQualifiedName(Mo,Ao):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Ao}}function lr(An,gn){return!!co(gn.enclosingDeclaration,An,788968,void 0,An,!1)}function Tr(An,gn){if(gn.flags&4&&gn.typeParameterNames){var At=gn.typeParameterNames.get(""+Bd(An));if(At)return At}var Ct=na(An.symbol,gn,788968,!0);if(!(Ct.kind&75))return e.createIdentifier("(Missing type parameter)");if(gn.flags&4){for(var Zt=Ct.escapedText,pr=0,xr=Zt;gn.typeParameterNamesByText&&gn.typeParameterNamesByText.get(xr)||lr(xr,gn);)pr++,xr=Zt+"_"+pr;xr!==Zt&&(Ct=e.createIdentifier(xr,Ct.typeArguments)),(gn.typeParameterNames||(gn.typeParameterNames=e.createMap())).set(""+Bd(An),Ct),(gn.typeParameterNamesByText||(gn.typeParameterNamesByText=e.createMap())).set(Ct.escapedText,!0)}return Ct}function na(An,gn,At,Ct){var Zt=Tn(An,gn,At);return Ct&&Zt.length!==1&&!gn.encounteredError&&!(gn.flags&65536)&&(gn.encounteredError=!0),pr(Zt,Zt.length-1);function pr(xr,jt){var sa=pt(xr,jt,gn),Ea=xr[jt];jt===0&&(gn.flags|=16777216);var Ma=Vs(Ea,gn);jt===0&&(gn.flags^=16777216);var Li=e.setEmitFlags(e.createIdentifier(Ma,sa),16777216);return Li.symbol=Ea,jt>0?e.createQualifiedName(pr(xr,jt-1),Li):Li}}function Mr(An,gn,At){var Ct=Tn(An,gn,At);return Zt(Ct,Ct.length-1);function Zt(pr,xr){var jt=pt(pr,xr,gn),sa=pr[xr];xr===0&&(gn.flags|=16777216);var Ea=Vs(sa,gn);xr===0&&(gn.flags^=16777216);var Ma=Ea.charCodeAt(0);if(e.isSingleOrDoubleQuote(Ma)&&e.some(sa.declarations,vl))return e.createLiteral(qt(sa,gn));var Li=e.isIdentifierStart(Ma,x);if(xr===0||Li){var di=e.setEmitFlags(e.createIdentifier(Ea,jt),16777216);return di.symbol=sa,xr>0?e.createPropertyAccess(Zt(pr,xr-1),di):di}else{Ma===91&&(Ea=Ea.substring(1,Ea.length-1),Ma=Ea.charCodeAt(0));var io=void 0;return e.isSingleOrDoubleQuote(Ma)?(io=e.createLiteral(Ea.substring(1,Ea.length-1).replace(/\\./g,function(mt){return mt.substring(1)})),io.singleQuote=Ma===39):""+ +Ea===Ea&&(io=e.createLiteral(+Ea)),io||(io=e.setEmitFlags(e.createIdentifier(Ea,jt),16777216),io.symbol=sa),e.createElementAccess(Zt(pr,xr-1),io)}}}function Wa(An,gn){var At=Zi(An,gn);if(At)return At;var Ct=e.unescapeLeadingUnderscores(An.escapedName);return Sa(Ct)}function Zi(An,gn){var At=An.nameType;if(At){if(At.flags&384){var Ct=""+At.value;return!e.isIdentifierText(Ct,Ge.target)&&!Cl(Ct)?e.createLiteral(Ct):Cl(Ct)&&e.startsWith(Ct,"-")?e.createComputedPropertyName(e.createLiteral(+Ct)):Sa(Ct)}if(At.flags&8192)return e.createComputedPropertyName(Mr(At.symbol,gn,111551))}}function Sa(An){return e.isIdentifierText(An,Ge.target)?e.createIdentifier(An):e.createLiteral(Cl(An)?+An:An)}function Ca(An){var gn=ma({},An);return gn.typeParameterNames&&(gn.typeParameterNames=e.cloneMap(gn.typeParameterNames)),gn.typeParameterNamesByText&&(gn.typeParameterNamesByText=e.cloneMap(gn.typeParameterNamesByText)),gn.typeParameterSymbolList&&(gn.typeParameterSymbolList=e.cloneMap(gn.typeParameterSymbolList)),gn}function Bt(An,gn,At){var Ct=nu(e.createProperty,160,!0),Zt=nu(function(On,Nt,or,$t,Vt,wr){return e.createPropertySignature(Nt,or,$t,Vt,wr)},159,!1),pr=gn.enclosingDeclaration,xr=[],jt=e.createMap(),sa,Ea=gn;gn=ma(ma({},Ea),{usedSymbolNames:e.createMap(),remappedSymbolNames:e.createMap(),tracker:ma(ma({},Ea.tracker),{trackSymbol:function(Nt,or,$t){var Vt=xc(Nt,or,$t,!1);if(Vt.accessibility===0){var wr=In(Nt,gn,$t);Nt.flags&4||Oi(wr[0])}else Ea.tracker&&Ea.tracker.trackSymbol&&Ea.tracker.trackSymbol(Nt,or,$t)}})}),Ea.usedSymbolNames&&Ea.usedSymbolNames.forEach(function(On,Nt){gn.usedSymbolNames.set(Nt,!0)}),e.forEachEntry(An,function(On,Nt){var or=e.unescapeLeadingUnderscores(Nt);void ir(On,or)});var Ma=!At,Li=An.get("export=");return Li&&An.size>1&&Li.flags&2097152&&(An=e.createSymbolTable(),An.set("export=",Li)),Qa(An),Jt(xr);function di(On){return!!On&&On.kind===75}function io(On){return e.isVariableStatement(On)?e.filter(e.map(On.declarationList.declarations,e.getNameOfDeclaration),di):e.filter([e.getNameOfDeclaration(On)],di)}function mt(On){var Nt=e.find(On,e.isExportAssignment),or=e.find(On,e.isModuleDeclaration);if(or&&Nt&&Nt.isExportEquals&&e.isIdentifier(Nt.expression)&&e.isIdentifier(or.name)&&e.idText(or.name)===e.idText(Nt.expression)&&or.body&&e.isModuleBlock(or.body)){var $t=e.filter(On,function(Vt){return!!(e.getModifierFlags(Vt)&1)});e.length($t)&&(or.body.statements=e.createNodeArray(Or(or.body.statements,[e.createExportDeclaration(void 0,void 0,e.createNamedExports(e.map(e.flatMap($t,function(Vt){return io(Vt)}),function(Vt){return e.createExportSpecifier(void 0,Vt)})),void 0)]))),e.find(On,function(Vt){return Vt!==or&&e.nodeHasName(Vt,or.name)})||(xr=[],e.forEach(or.body.statements,function(Vt){Ao(Vt,0)}),On=Or(e.filter(On,function(Vt){return Vt!==or&&Vt!==Nt}),xr))}return On}function Ot(On){var Nt=e.filter(On,function(Rr){return e.isExportDeclaration(Rr)&&!Rr.moduleSpecifier&&!!Rr.exportClause});if(e.length(Nt)>1){var or=e.filter(On,function(Rr){return!e.isExportDeclaration(Rr)||!!Rr.moduleSpecifier||!Rr.exportClause});On=Or(or,[e.createExportDeclaration(void 0,void 0,e.createNamedExports(e.flatMap(Nt,function(Rr){return Rr.exportClause.elements})),void 0)])}var $t=e.filter(On,function(Rr){return e.isExportDeclaration(Rr)&&!!Rr.moduleSpecifier&&!!Rr.exportClause});if(e.length($t)>1){var Vt=e.group($t,function(Rr){return e.isStringLiteral(Rr.moduleSpecifier)?">"+Rr.moduleSpecifier.text:">"});if(Vt.length!==$t.length)for(var wr=function(fi){fi.length>1&&(On=Or(e.filter(On,function(Wi){return fi.indexOf(Wi)===-1}),[e.createExportDeclaration(void 0,void 0,e.createNamedExports(e.flatMap(fi,function(Wi){return Wi.exportClause.elements})),fi[0].moduleSpecifier)]))},Kr=0,Nr=Vt;Kr<Nr.length;Kr++){var li=Nr[Kr];wr(li)}}return On}function Wt(On){var Nt=e.find(On,function($t){return e.isExportDeclaration($t)&&!$t.moduleSpecifier&&!!$t.exportClause});if(Nt){var or=e.mapDefined(Nt.exportClause.elements,function($t){if(!$t.propertyName){var Vt=e.filter(On,function(wr){return e.nodeHasName(wr,$t.name)});if(e.length(Vt)&&e.every(Vt,dr)){e.forEach(Vt,Ar);return}}return $t});e.length(or)?Nt.exportClause.elements=e.createNodeArray(or):On=e.filter(On,function($t){return $t!==Nt})}return On}function Jt(On){return On=mt(On),On=Ot(On),On=Wt(On),pr&&(e.isSourceFile(pr)&&e.isExternalOrCommonJsModule(pr)||e.isModuleDeclaration(pr))&&(!e.some(On,e.isExternalModuleIndicator)||!e.hasScopeMarker(On)&&e.some(On,e.needsScopeMarker))&&On.push(e.createEmptyExports()),On}function dr(On){return e.isEnumDeclaration(On)||e.isVariableStatement(On)||e.isFunctionDeclaration(On)||e.isClassDeclaration(On)||e.isModuleDeclaration(On)&&!e.isExternalModuleAugmentation(On)&&!e.isGlobalScopeAugmentation(On)||e.isInterfaceDeclaration(On)||Ih(On)}function Ar(On){var Nt=(e.getModifierFlags(On)|1)&~2;On.modifiers=e.createNodeArray(e.createModifiersFromModifierFlags(Nt)),On.modifierFlagsCache=0}function Qa(On,Nt,or){var $t=sa;Nt||(sa=e.createMap()),On.forEach(function(Vt){ei(Vt,!1,!!or)}),Nt||sa.forEach(function(Vt){ei(Vt,!0,!!or)}),sa=$t}function ei(On,Nt,or){var $t=zr(On);if(jt.has(""+fe($t)))return;jt.set(""+fe($t),!0);var Vt=!Nt;if(Vt||!!e.length(On.declarations)&&e.some(On.declarations,function(Nr){return!!e.findAncestor(Nr,function(li){return li===pr})})){var wr=gn;gn=Ca(gn);var Kr=Za(On,Nt,or);return gn=wr,Kr}}function Za(On,Nt,or){var $t=e.unescapeLeadingUnderscores(On.escapedName),Vt=On.escapedName==="default";if(e.isStringANonContextualKeyword($t)&&!Vt){gn.encounteredError=!0;return}var wr=Vt&&!!(On.flags&-113||On.flags&16&&e.length(oo(Hn(On))))&&!(On.flags&2097152);wr&&(Nt=!0);var Kr=(Nt?0:1)|(Vt&&!wr?512:0),Nr=On.flags&1536&&On.flags&(2|1|4)&&On.escapedName!=="export=",li=Nr&&Ic(Hn(On),On);if((On.flags&16||li)&&is(Hn(On),On,ir(On,$t),Kr),On.flags&524288&&Hs(On,$t,Kr),On.flags&(2|1|4)&&On.escapedName!=="export="&&!(On.flags&4194304)&&!(On.flags&32)&&!li&&ys(On,$t,Nt,wr,or,Kr),On.flags&384&&fo(On,$t,Kr),On.flags&32&&(On.flags&4?Yl(On,ir(On,$t),Kr):Cs(On,ir(On,$t),Kr)),(On.flags&(512|1024)&&(!Nr||la(On))||li)&&Vi(On,$t,Kr),On.flags&64&&ks(On,$t,Kr),On.flags&2097152&&Yl(On,ir(On,$t),Kr),On.flags&4&&On.escapedName==="export="&&gc(On),On.flags&8388608)for(var Rr=0,fi=On.declarations;Rr<fi.length;Rr++){var Wi=fi[Rr],Ki=Hr(Wi,Wi.moduleSpecifier);if(!Ki)continue;Ao(e.createExportDeclaration(void 0,void 0,void 0,e.createLiteral(qt(Ki,gn))),0)}wr&&Ao(e.createExportAssignment(void 0,void 0,!1,e.createIdentifier(ir(On,$t))),0)}function Oi(On){if(e.some(On.declarations,e.isParameterDeclaration))return;e.Debug.assertDefined(sa),Fr(e.unescapeLeadingUnderscores(On.escapedName),On),sa.set(""+fe(On),On)}function Mo(On){return e.isSourceFile(On)&&(e.isExternalOrCommonJsModule(On)||e.isJsonSourceFile(On))||e.isAmbientModule(On)&&!e.isGlobalScopeAugmentation(On)}function Ao(On,Nt){var or=0;Nt&1&&pr&&Mo(pr)&&dr(On)&&(or|=1),Ma&&!(or&1)&&(!pr||!(pr.flags&8388608))&&(e.isEnumDeclaration(On)||e.isVariableStatement(On)||e.isFunctionDeclaration(On)||e.isClassDeclaration(On)||e.isModuleDeclaration(On))&&(or|=2),Nt&512&&(e.isClassDeclaration(On)||e.isInterfaceDeclaration(On)||e.isFunctionDeclaration(On))&&(or|=512),or&&(On.modifiers=e.createNodeArray(e.createModifiersFromModifierFlags(or|e.getModifierFlags(On))),On.modifierFlagsCache=0),xr.push(On)}function Hs(On,Nt,or){var $t=wm(On),Vt=ea(On).typeParameters,wr=e.map(Vt,function(Rr){return je(Rr,gn)}),Kr=e.find(On.declarations,e.isJSDocTypeAlias),Nr=Kr?Kr.comment||Kr.parent.comment:void 0,li=gn.flags;gn.flags|=8388608,Ao(e.setSyntheticLeadingComments(e.createTypeAliasDeclaration(void 0,void 0,ir(On,Nt),wr,r($t,gn)),Nr?[{kind:3,text:`*
* `+Nr.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),or),gn.flags=li}function ks(On,Nt,or){var $t=sl(On),Vt=qo(On),wr=e.map(Vt,function(no){return je(no,gn)}),Kr=Tl($t),Nr=e.length(Kr)?Qi(Kr):void 0,li=e.flatMap(oo($t),function(no){return tu(no,Nr)}),Rr=Gn(0,$t,Nr,164),fi=Gn(1,$t,Nr,165),Wi=Yn($t,Nr),Ki=e.length(Kr)?[e.createHeritageClause(89,e.mapDefined(Kr,function(no){return Xt(no)}))]:void 0;Ao(e.createInterfaceDeclaration(void 0,void 0,ir(On,Nt),wr,Ki,Or(Wi,fi,Rr,li)),or)}function Ld(On){return On.exports?e.filter(e.arrayFrom(On.exports.values()),function(Nt){return!(Nt.flags&4194304||Nt.escapedName==="prototype")}):[]}function la(On){return e.every(Ld(On),function(Nt){return!(E(Nt).flags&111551)})}function Vi(On,Nt,or){var $t=Ld(On),Vt=e.arrayToMultiMap($t,function(Rr){return Rr.parent&&Rr.parent===On?"real":"merged"}),wr=Vt.get("real")||e.emptyArray,Kr=Vt.get("merged")||e.emptyArray;if(e.length(wr)){var Nr=ir(On,Nt);cs(wr,Nr,or,!!(On.flags&(16|67108864)))}if(e.length(Kr)){var Nr=ir(On,Nt),li=e.createModuleBlock([e.createExportDeclaration(void 0,void 0,e.createNamedExports(e.map(e.filter(Kr,function(fi){return fi.escapedName!=="export="}),function(fi){var Wi=e.unescapeLeadingUnderscores(fi.escapedName),Ki=ir(fi,Wi),no=fi.declarations&&Ss(fi),so=no&&Xs(no,!0);Oi(so||fi);var Ds=so?ir(so,e.unescapeLeadingUnderscores(so.escapedName)):Ki;return e.createExportSpecifier(Wi===Ds?void 0:Ds,Wi)})))]);Ao(e.createModuleDeclaration(void 0,void 0,e.createIdentifier(Nr),li,16),0)}}function fo(On,Nt,or){Ao(e.createEnumDeclaration(void 0,e.createModifiersFromModifierFlags(My(On)?2048:0),ir(On,Nt),e.map(e.filter(oo(Hn(On)),function($t){return!!($t.flags&8)}),function($t){var Vt=$t.declarations&&$t.declarations[0]&&e.isEnumMember($t.declarations[0])&&c_($t.declarations[0]);return e.createEnumMember(e.unescapeLeadingUnderscores($t.escapedName),Vt===void 0?void 0:e.createLiteral(Vt))})),or)}function ys(On,Nt,or,$t,Vt,wr){if(Vt)gc(On);else{var Kr=Hn(On),Nr=ir(On,Nt);if(!(On.flags&16)&&Ic(Kr,On))is(Kr,On,Nr,wr);else{var li=On.flags&2?Pb(On)?2:1:void 0,Rr=$t||!(On.flags&4)?Nr:Fr(Nr,On),fi=On.declarations&&e.find(On.declarations,function(Ki){return e.isVariableDeclaration(Ki)});fi&&e.isVariableDeclarationList(fi.parent)&&fi.parent.declarations.length===1&&(fi=fi.parent.parent);var Wi=e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(Rr,Id(Kr,On))],li)),fi);Ao(Wi,Rr!==Nr?wr&~1:wr),Rr!==Nr&&!or&&Ao(e.createExportDeclaration(void 0,void 0,e.createNamedExports([e.createExportSpecifier(Rr,Nr)])),0)}}}function is(On,Nt,or,$t){for(var Vt=si(On,0),wr=0,Kr=Vt;wr<Kr.length;wr++){var Nr=Kr[wr],li=W(Nr,243,gn);li.name=e.createIdentifier(or),Ao(e.setTextRange(li,Nr.declaration),$t)}if(!(Nt.flags&(512|1024)&&!!Nt.exports&&!!Nt.exports.size)){var Rr=e.filter(oo(On),function(fi){return!(fi.flags&4194304||fi.escapedName==="prototype")});cs(Rr,or,$t,!0)}}function cs(On,Nt,or,$t){if(e.length(On)){var Vt=e.arrayToMultiMap(On,function(Ki){return!e.length(Ki.declarations)||e.some(Ki.declarations,function(no){return e.getSourceFileOfNode(no)===e.getSourceFileOfNode(gn.enclosingDeclaration)})?"local":"remote"}),wr=Vt.get("local")||e.emptyArray,Kr=e.createModuleDeclaration(void 0,void 0,e.createIdentifier(Nt),e.createModuleBlock([]),16);Kr.flags^=8,Kr.parent=pr,Kr.locals=e.createSymbolTable(On),Kr.symbol=On[0].parent;var Nr=xr;xr=[];var li=Ma;Ma=!1;var Rr=ma(ma({},gn),{enclosingDeclaration:Kr}),fi=gn;gn=Rr,Qa(e.createSymbolTable(wr),$t,!0),gn=fi,Ma=li;var Wi=xr;xr=Nr,Kr.flags^=8,Kr.parent=void 0,Kr.locals=void 0,Kr.symbol=void 0,Kr.body=e.createModuleBlock(Wi),Ao(Kr,or)}}function Cs(On,Nt,or){for(var $t=qo(On),Vt=e.map($t,function(_s){return je(_s,gn)}),wr=sl(On),Kr=Tl(wr),Nr=Hn(On),li=uc(Nr),Rr=e.length(Kr)?[e.createHeritageClause(89,e.map(Kr,function(_s){return Mt(_s,li,Nt)}))]:void 0,fi=e.flatMap(oo(wr),function(_s){return Ct(_s,!1,Kr[0])}),Wi=On.flags&(16|512)?[]:e.flatMap(e.filter(oo(Nr),function(_s){return!(_s.flags&4194304)&&_s.escapedName!=="prototype"}),function(_s){return Ct(_s,!0,li)}),Ki=Gn(1,Nr,Kr[0],161),no=0,so=Ki;no<so.length;no++){var Ds=so[no];Ds.type=void 0,Ds.typeParameters=void 0}var dd=Yn(wr,Kr[0]);Ao(e.setTextRange(e.createClassDeclaration(void 0,void 0,Nt,Vt,Rr,Or(dd,Wi,Ki,fi)),On.declarations&&e.filter(On.declarations,function(_s){return e.isClassDeclaration(_s)||e.isClassExpression(_s)})[0]),or)}function Yl(On,Nt,or){var $t=Ss(On);if(!$t)return e.Debug.fail();var Vt=zr(Xs($t,!0));if(!Vt)return;var wr=e.unescapeLeadingUnderscores(Vt.escapedName);wr==="export="&&(Ge.esModuleInterop||Ge.allowSyntheticDefaultImports)&&(wr="default");var Kr=ir(Vt,wr);Oi(Vt);switch($t.kind){case 252:var Nr=!(Vt.flags&512);Ao(e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(Nt),Nr?na(Vt,gn,67108863,!1):e.createExternalModuleReference(e.createLiteral(qt(On,gn)))),Nr?or:0);break;case 251:Ao(e.createNamespaceExportDeclaration(e.idText($t.name)),0);break;case 254:Ao(e.createImportDeclaration(void 0,void 0,e.createImportClause(e.createIdentifier(Nt),void 0),e.createLiteral(qt(Vt.parent||Vt,gn))),0);break;case 255:Ao(e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(Nt))),e.createLiteral(qt(Vt,gn))),0);break;case 257:Ao(e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(Nt!==wr?e.createIdentifier(wr):void 0,e.createIdentifier(Nt))])),e.createLiteral(qt(Vt.parent||Vt,gn))),0);break;case 261:var li=$t.parent.parent.moduleSpecifier;vo(e.unescapeLeadingUnderscores(On.escapedName),li?wr:Kr,li&&e.isStringLiteralLike(li)?e.createLiteral(li.text):void 0);break;case 258:gc(On);break;case 208:case 193:On.escapedName==="default"||On.escapedName==="export="?gc(On):vo(Nt,Kr);break;default:return e.Debug.failBadSyntaxKind($t,"Unhandled alias declaration kind in symbol serializer!")}}function vo(On,Nt,or){Ao(e.createExportDeclaration(void 0,void 0,e.createNamedExports([e.createExportSpecifier(On!==Nt?Nt:void 0,On)]),or),0)}function gc(On){if(On.flags&4194304)return;var Nt=e.unescapeLeadingUnderscores(On.escapedName),or=Nt==="export=",$t=Nt==="default",Vt=or||$t,wr=On.declarations&&Ss(On),Kr=wr&&Xs(wr,!0);if(Kr&&e.length(Kr.declarations)&&e.some(Kr.declarations,function(so){return e.getSourceFileOfNode(so)===e.getSourceFileOfNode(pr)})){var Nr=Vt?e.getExportAssignmentExpression(wr):e.getPropertyAssignmentAliasLikeExpression(wr),li=e.isEntityNameExpression(Nr)?c0(Nr):void 0,Rr=li&&Dt(li,67108863,!0,!0,pr);(Rr||Kr)&&Oi(Rr||Kr);var fi=gn.tracker.trackSymbol;if(gn.tracker.trackSymbol=e.noop,Vt)xr.push(e.createExportAssignment(void 0,void 0,or,Mr(Kr,gn,67108863)));else if(li===Nr)vo(Nt,e.idText(li));else if(e.isClassExpression(Nr))vo(Nt,ir(Kr,e.symbolName(Kr)));else{var Wi=Fr(Nt,On);Ao(e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(Wi),na(Kr,gn,67108863,!1)),0),vo(Nt,Wi)}gn.tracker.trackSymbol=fi}else{var Wi=Fr(Nt,On),Ki=Ps(Hn(On));if(Ic(Ki,On))is(Ki,On,Wi,Vt?0:1);else{var no=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(Wi,Id(Ki,On))],2));Ao(no,Nt===Wi?1:0)}Vt?xr.push(e.createExportAssignment(void 0,void 0,or,e.createIdentifier(Wi))):Nt!==Wi&&vo(Nt,Wi)}}function Ic(On,Nt){var or=e.getSourceFileOfNode(gn.enclosingDeclaration);return e.getObjectFlags(On)&(16|32)&&!Xi(On,0)&&!Xi(On,1)&&!!(e.length(oo(On))||e.length(si(On,0)))&&!e.length(si(On,1))&&!Uf(Nt)&&!(On.symbol&&e.some(On.symbol.declarations,function($t){return e.getSourceFileOfNode($t)!==or}))&&!e.some(oo(On),function($t){return Ur($t.escapedName)})&&!e.some(oo(On),function($t){return e.some($t.declarations,function(Vt){return e.getSourceFileOfNode(Vt)!==or})})&&e.every(oo(On),function($t){return e.isIdentifierText(e.symbolName($t),x)&&!e.isStringAKeyword(e.symbolName($t))})}function nu(On,Nt,or){return function(Vt,wr,Kr){if(wr&&Vt.flags&(788968|1920|2097152))return[];if(Vt.flags&4194304||Kr&&Ji(Kr,Vt.escapedName)&&$c(Ji(Kr,Vt.escapedName))===$c(Vt)&&(Vt.flags&16777216)===(Ji(Kr,Vt.escapedName).flags&16777216)&&Xc(Hn(Vt),Zo(Kr,Vt.escapedName)))return[];var Nr=wr?32:0,li=Wa(Vt,gn),Rr=e.find(Vt.declarations,e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(Vt.flags&98304&&or){var fi=[];return Vt.flags&65536&&fi.push(e.setTextRange(e.createSetAccessor(void 0,e.createModifiersFromModifierFlags(Nr),li,[e.createParameter(void 0,void 0,void 0,"arg",void 0,Id(Hn(Vt),Vt))],void 0),e.find(Vt.declarations,e.isSetAccessor)||Rr)),Vt.flags&32768&&fi.push(e.setTextRange(e.createGetAccessor(void 0,e.createModifiersFromModifierFlags(Nr),li,[],Id(Hn(Vt),Vt),void 0),e.find(Vt.declarations,e.isGetAccessor)||Rr)),fi}else if(Vt.flags&(4|3))return e.setTextRange(On(void 0,e.createModifiersFromModifierFlags(($c(Vt)?64:0)|Nr),li,Vt.flags&16777216?e.createToken(57):void 0,Id(Hn(Vt),Vt),void 0),e.find(Vt.declarations,e.or(e.isPropertyDeclaration,e.isVariableDeclaration))||Rr);if(Vt.flags&(8192|16)){for(var Wi=Hn(Vt),Ki=si(Wi,0),no=[],so=0,Ds=Ki;so<Ds.length;so++){var dd=Ds[so],_s=W(dd,Nt,gn);_s.name=li,Nr&&(_s.modifiers=e.createNodeArray(e.createModifiersFromModifierFlags(Nr))),Vt.flags&16777216&&(_s.questionToken=e.createToken(57)),no.push(e.setTextRange(_s,dd.declaration))}return no}return e.Debug.fail("Unhandled class member kind! "+(Vt.__debugFlags||Vt.flags))}}function tu(On,Nt){return Zt(On,!1,Nt)}function Uf(On){return e.find(On.declarations,function(Nt){return!!e.getEffectiveTypeAnnotationNode(Nt)&&!!e.findAncestor(Nt,function(or){return or===pr})})}function Id(On,Nt){var or=Uf(Nt);if(or&&!e.isFunctionLikeDeclaration(or)){var $t=e.getEffectiveTypeAnnotationNode(or),Vt=e.visitNode($t,Nr);return Vt===$t?e.getMutableClone($t):Vt}var wr=gn.flags;On.flags&8192&&On.symbol===Nt&&(gn.flags|=1048576);var Kr=r(On,gn);return gn.flags=wr,Kr;function Nr(Rr){if(e.isJSDocAllType(Rr))return e.createKeywordTypeNode(124);if(e.isJSDocUnknownType(Rr))return e.createKeywordTypeNode(147);if(e.isJSDocNullableType(Rr))return e.createUnionTypeNode([e.visitNode(Rr.type,Nr),e.createKeywordTypeNode(99)]);if(e.isJSDocOptionalType(Rr))return e.createUnionTypeNode([e.visitNode(Rr.type,Nr),e.createKeywordTypeNode(145)]);if(e.isJSDocNonNullableType(Rr))return e.visitNode(Rr.type,Nr);if((e.isExpressionWithTypeArguments(Rr)||e.isTypeReferenceNode(Rr))&&e.isJSDocIndexSignature(Rr))return e.createTypeLiteralNode([e.createIndexSignature(void 0,void 0,[e.createParameter(void 0,void 0,void 0,"x",void 0,e.visitNode(Rr.typeArguments[0],Nr))],e.visitNode(Rr.typeArguments[1],Nr))]);if(e.isJSDocFunctionType(Rr))if(e.isJSDocConstructSignature(Rr)){var fi;return e.createConstructorTypeNode(e.visitNodes(Rr.typeParameters,Nr),e.mapDefined(Rr.parameters,function(so,Ds){return so.name&&e.isIdentifier(so.name)&&so.name.escapedText==="new"?(fi=so.type,void 0):e.createParameter(void 0,void 0,so.dotDotDotToken,so.name||so.dotDotDotToken?"args":"arg"+Ds,so.questionToken,e.visitNode(so.type,Nr),void 0)}),e.visitNode(fi||Rr.type,Nr))}else return e.createFunctionTypeNode(e.visitNodes(Rr.typeParameters,Nr),e.map(Rr.parameters,function(so,Ds){return e.createParameter(void 0,void 0,so.dotDotDotToken,so.name||so.dotDotDotToken?"args":"arg"+Ds,so.questionToken,e.visitNode(so.type,Nr),void 0)}),e.visitNode(Rr.type,Nr));if(e.isLiteralImportTypeNode(Rr))return e.updateImportTypeNode(Rr,e.updateLiteralTypeNode(Rr.argument,li(Rr,Rr.argument.literal)),Rr.qualifier,e.visitNodes(Rr.typeArguments,Nr,e.isTypeNode),Rr.isTypeOf);if(e.isEntityName(Rr)||e.isEntityNameExpression(Rr)){var Wi=e.getFirstIdentifier(Rr),Ki=Dt(Wi,67108863,!0,!0);if(Ki&&(Oi(Ki),e.isIdentifier(Rr)&&Ki.flags&262144)){var no=Tr(yo(Ki),gn);return e.idText(no)!==e.idText(Rr)?no:Rr}}return e.visitEachChild(Rr,Nr,e.nullTransformationContext)}function li(Rr,fi){if(At){if(gn.tracker&&gn.tracker.moduleResolverHost){var Wi=ES(Rr);if(Wi){var Ki=e.createGetCanonicalFileName(!!_.useCaseSensitiveFileNames),no={getCanonicalFileName:Ki,getCurrentDirectory:gn.tracker.moduleResolverHost.getCurrentDirectory?function(){return gn.tracker.moduleResolverHost.getCurrentDirectory()}:function(){return""},getCommonSourceDirectory:function(){return gn.tracker.moduleResolverHost.getCommonSourceDirectory()}},so=e.getResolvedExternalModuleName(no,Wi);return e.createLiteral(so)}}}else if(gn.tracker&&gn.tracker.trackExternalModuleSymbolOfImportTypeNode){var Ds=ha(fi,fi,void 0);Ds&&gn.tracker.trackExternalModuleSymbolOfImportTypeNode(Ds)}return fi}}function Gn(On,Nt,or,$t){var Vt=si(Nt,On);if(On===1){if(!or&&e.every(Vt,function(no){return e.length(no.parameters)===0}))return[];if(or){var wr=si(or,1);if(!e.length(wr)&&e.every(Vt,function(no){return e.length(no.parameters)===0}))return[];if(wr.length===Vt.length){for(var Kr=!1,Nr=0;Nr<wr.length;Nr++)if(!Xp(Vt[Nr],wr[Nr],!1,!1,!0,rp)){Kr=!0;break}if(!Kr)return[]}}}for(var li=[],Rr=0,fi=Vt;Rr<fi.length;Rr++){var Wi=fi[Rr],Ki=W(Wi,$t,gn);li.push(e.setTextRange(Ki,Wi.declaration))}return li}function Yn(On,Nt){for(var or=[],$t=0,Vt=[0,1];$t<Vt.length;$t++){var wr=Vt[$t],Kr=Xi(On,wr);if(Kr){if(Nt){var Nr=Xi(Nt,wr);if(Nr&&Xc(Kr.type,Nr.type))continue}or.push(A(Kr,wr,gn))}}return or}function Mt(On,Nt,or){var $t=Xt(On);if($t)return $t;var Vt=Fr(or+"_base"),wr=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(Vt,r(Nt,gn))],2));return Ao(wr,0),e.createExpressionWithTypeArguments(void 0,e.createIdentifier(Vt))}function Xt(On){var Nt,or;if(On.target&&As(On.target.symbol,pr,111551,!1)?(Nt=e.map(_o(On),function($t){return r($t,gn)}),or=Mr(On.target.symbol,gn,788968)):On.symbol&&As(On.symbol,pr,111551,!1)&&(or=Mr(On.symbol,gn,788968)),or)return e.createExpressionWithTypeArguments(Nt,or)}function Fr(On,Nt){if(Nt&&gn.remappedSymbolNames.has(""+fe(Nt)))return gn.remappedSymbolNames.get(""+fe(Nt));Nt&&(On=Gr(Nt,On));for(var or=0,$t=On;gn.usedSymbolNames.has(On);)or++,On=$t+"_"+or;return gn.usedSymbolNames.set(On,!0),Nt&&gn.remappedSymbolNames.set(""+fe(Nt),On),On}function Gr(On,Nt){if(Nt==="default"||Nt==="__class"||Nt==="__function"){var or=gn.flags;gn.flags|=16777216;var $t=Vs(On,gn);gn.flags=or,Nt=$t.length>0&&e.isSingleOrDoubleQuote($t.charCodeAt(0))?e.stripQuotes($t):$t}return Nt==="default"?Nt="_default":Nt==="export="&&(Nt="_exports"),Nt=e.isIdentifierText(Nt,x)&&!e.isStringANonContextualKeyword(Nt)?Nt:"_"+Nt.replace(/[^a-zA-Z0-9]/g,"_"),Nt}function ir(On,Nt){return gn.remappedSymbolNames.has(""+fe(On))?gn.remappedSymbolNames.get(""+fe(On)):(Nt=Gr(On,Nt),gn.remappedSymbolNames.set(""+fe(On),Nt),Nt)}}}function Wl(n,t,r,i){return r===void 0&&(r=16384),i?s(i).getText():e.usingSingleLineStringWriter(s);function s(f){var A=e.createTypePredicateNodeWithModifier(n.kind===2||n.kind===3?e.createToken(123):void 0,n.kind===1||n.kind===3?e.createIdentifier(n.parameterName):e.createThisTypeNode(),n.type&&Ue.typeToTypeNode(n.type,t,pu(r)|70221824|512)),W=e.createPrinter({removeComments:!0}),xe=t&&e.getSourceFileOfNode(t);return W.writeNode(4,A,xe,f),f}}function Xu(n){for(var t=[],r=0,i=0;i<n.length;i++){var s=n[i];if(r|=s.flags,!(s.flags&98304)){if(s.flags&(512|1024)){var f=s.flags&512?De:Kf(s);if(f.flags&1048576){var A=f.types.length;if(i+A<=n.length&&js(n[i+A-1])===js(f.types[A-1])){t.push(f),i+=A-1;continue}}}t.push(s)}}return r&65536&&t.push(Vn),r&32768&&t.push(un),t||n}function zi(n){return n===8?"private":n===16?"protected":"public"}function Hl(n){if(n.symbol&&n.symbol.flags&2048){var t=e.findAncestor(n.symbol.declarations[0].parent,function(r){return r.kind!==181});if(t.kind===246)return Yt(t)}return}function Ra(n){return n&&n.parent&&n.parent.kind===249&&e.isExternalModuleAugmentation(n.parent.parent)}function wc(n){return n.kind===288||e.isAmbientModule(n)}function us(n,t){var r=n.nameType;if(r){if(r.flags&384){var i=""+r.value;return!e.isIdentifierText(i,Ge.target)&&!Cl(i)?'"'+e.escapeString(i,34)+'"':Cl(i)&&e.startsWith(i,"-")?"["+i+"]":i}if(r.flags&8192)return"["+Vs(r.symbol,t)+"]"}}function Vs(n,t){if(t&&n.escapedName==="default"&&!(t.flags&16384)&&(!(t.flags&16777216)||!n.declarations||t.enclosingDeclaration&&e.findAncestor(n.declarations[0],wc)!==e.findAncestor(t.enclosingDeclaration,wc)))return"default";if(n.declarations&&n.declarations.length){var r=e.firstDefined(n.declarations,function(A){return e.getNameOfDeclaration(A)?A:void 0}),i=r&&e.getNameOfDeclaration(r);if(r&&i){if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r))return e.symbolName(n);if(e.isComputedPropertyName(i)&&!(e.getCheckFlags(n)&4096)&&n.nameType&&n.nameType.flags&384){var s=us(n,t);if(s!==void 0)return s}return e.declarationNameToString(i)}if(r||(r=n.declarations[0]),r.parent&&r.parent.kind===241)return e.declarationNameToString(r.parent.name);switch(r.kind){case 213:case 200:case 201:return t&&!t.encounteredError&&!(t.flags&131072)&&(t.encounteredError=!0),r.kind===213?"(Anonymous class)":"(Anonymous function)"}}var f=us(n,t);return f!==void 0?f:e.symbolName(n)}function ns(n){if(n){var t=Ir(n);return t.isVisible===void 0&&(t.isVisible=!!r()),t.isVisible}return!1;function r(){switch(n.kind){case 308:case 315:case 309:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&e.isSourceFile(n.parent.parent.parent));case 190:return ns(n.parent.parent);case 241:if(e.isBindingPattern(n.name)&&!n.name.elements.length)return!1;case 248:case 244:case 245:case 246:case 243:case 247:case 252:if(e.isExternalModuleAugmentation(n))return!0;var i=sc(n);return!(e.getCombinedModifierFlags(n)&1)&&!(n.kind!==252&&i.kind!==288&&i.flags&8388608)?To(i):ns(i);case 158:case 157:case 162:case 163:case 160:case 159:if(e.hasModifier(n,8|16))return!1;case 161:case 165:case 164:case 166:case 155:case 249:case 169:case 170:case 172:case 168:case 173:case 174:case 177:case 178:case 181:return ns(n.parent);case 254:case 255:case 257:return!1;case 154:case 288:case 251:return!0;case 258:return!1;default:return!1}}}function Yu(n,t){var r;n.parent&&n.parent.kind===258?r=co(n,n.escapedText,111551|788968|1920|2097152,void 0,n,!1):n.parent.kind===261&&(r=uu(n.parent,111551|788968|1920|2097152));var i,s;return r&&(s=e.createMap(),s.set(""+fe(r),!0),f(r.declarations)),i;function f(A){e.forEach(A,function(W){var xe=Nl(W)||W;if(t?Ir(W).isVisible=!0:(i=i||[],e.pushIfUnique(i,xe)),e.isInternalModuleImportEqualsDeclaration(W)){var je=W.moduleReference,Qe=e.getFirstIdentifier(je),nn=co(W,Qe.escapedText,111551|788968|1920,void 0,void 0,!1),Tn=nn&&""+fe(nn);nn&&!s.has(Tn)&&(s.set(Tn,!0),f(nn.declarations))}})}}function Qs(n,t){var r=oc(n,t);if(r>=0){for(var i=Fs.length,s=r;s<i;s++)Il[s]=!1;return!1}return Fs.push(n),Il.push(!0),es.push(t),!0}function oc(n,t){for(var r=Fs.length-1;r>=0;r--){if(md(Fs[r],es[r]))return-1;if(Fs[r]===n&&es[r]===t)return r}return-1}function md(n,t){switch(t){case 0:return!!ea(n).type;case 5:return!!Ir(n).resolvedEnumType;case 2:return!!ea(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!ea(n).resolvedJSDocType;case 7:return!!n.resolvedTypeArguments}return e.Debug.assertNever(t)}function Kl(){return Fs.pop(),es.pop(),Il.pop()}function sc(n){return e.findAncestor(e.getRootDeclaration(n),function(t){switch(t.kind){case 241:case 242:case 257:case 256:case 255:case 254:return!1;default:return!0}}).parent}function Qu(n){var t=yo(xs(n));return t.typeParameters?Eu(t,e.map(t.typeParameters,function(r){return oe})):t}function Zo(n,t){var r=Ji(n,t);return r?Hn(r):void 0}function hd(n,t){return Zo(n,t)||Cl(t)&&ms(n,1)||ms(n,0)||mn}function Bi(n){return n&&(n.flags&1)!==0}function Ou(n){var t=Yt(n);return t&&ea(t).type||nd(n,!1)}function Zu(n){return n.kind===153&&!e.isStringOrNumericLiteralLike(n.expression)}function jc(n,t,r){if(n=gs(n,function(nn){return!(nn.flags&98304)}),n.flags&131072)return jn;if(n.flags&1048576)return Ws(n,function(nn){return jc(nn,t,r)});var i=jr(e.map(t,bd));if($d(n)||Kp(i)){if(i.flags&131072)return n;var s=V1();return s?Zf(s,[n,i]):ye}for(var f=e.createSymbolTable(),A=0,W=oo(n);A<W.length;A++){var xe=W[A];!Hi(Mm(xe,8576),i)&&!(e.getDeclarationModifierFlagsFromSymbol(xe)&(8|16))&&yg(xe)&&f.set(xe.escapedName,_g(xe,!1))}var je=Xi(n,0),Qe=Xi(n,1);return Oo(r,f,e.emptyArray,e.emptyArray,je,Qe)}function Wc(n,t){var r=mu(n);return r?kd(r,t):t}function mu(n){var t=Hc(n);if(t&&t.flowNode){var r=$u(n);if(r){var i=e.createNode(194,n.pos,n.end);i.parent=n,i.expression=t;var s=e.createNode(10,n.pos,n.end);return s.parent=i,s.text=r,i.argumentExpression=s,i.flowNode=t.flowNode,i}}}function Hc(n){var t=n.parent.parent;switch(t.kind){case 190:case 279:return mu(t);case 191:return mu(n.parent);case 241:return t.initializer;case 208:return t.right}}function $u(n){var t=n.parent;return n.kind===190&&t.kind===188?Pl(n.propertyName||n.name):n.kind===279||n.kind===280?Pl(n.name):""+t.elements.indexOf(n)}function Pl(n){var t=bd(n);return t.flags&(128|256)?""+t.value:void 0}function Ml(n){var t=n.parent,r=Ou(t.parent);if(!r||Bi(r))return r;a&&n.flags&8388608&&e.isParameterDeclaration(n)&&(r=Wu(r));var i;if(t.kind===188)if(n.dotDotDotToken){if(r.flags&2||!kf(r))return wn(n,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),ye;for(var s=[],f=0,A=t.elements;f<A.length;f++){var W=A[f];W.dotDotDotToken||s.push(W.propertyName||W.name)}i=jc(r,s,n.symbol)}else{var xe=n.propertyName||n.name,je=bd(xe),Qe=pp(xl(r,je,xe),n.name);i=Wc(n,Qe)}else{var nn=Kd(65,r,un,t),Tn=t.elements.indexOf(n);if(n.dotDotDotToken)i=Sf(r,Lo)?Ws(r,function(it){return sv(it,Tn)}):Os(nn);else if(xd(r)){var je=rs(Tn),In=Af(n)?8:0,Qe=pp(Ed(r,je,n.name,In)||ye,n.name);i=Wc(n,Qe)}else i=nn}return n.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(n))?a&&!(kl(_h(n))&32768)?hs(i,524288):i:jr([hs(i,524288),_h(n)],2):i}function ql(n){var t=e.getJSDocType(n);return t?ja(t):void 0}function lc(n){var t=e.skipParentheses(n);return t.kind===99||t.kind===75&&Yc(t)===$e}function Pu(n){var t=e.skipParentheses(n);return t.kind===191&&t.elements.length===0}function ol(n,t){return t===void 0&&(t=!0),a&&t?wu(n):n}function ed(n){return n.kind===155&&(n.parent.kind===200||n.parent.kind===201)&&!!Qc(n.parent)}function nd(n,t){if(e.isVariableDeclaration(n)&&n.parent.parent.kind===230){var r=zc(vy(Pa(n.parent.parent.expression)));return r.flags&(262144|4194304)?mv(r):dt}if(e.isVariableDeclaration(n)&&n.parent.parent.kind===231){var i=n.parent.parent;return hm(i.expression,i.awaitModifier)||oe}if(e.isBindingPattern(n.parent))return Ml(n);var s=t&&(e.isParameter(n)&&Im(n)||!e.isBindingElement(n)&&!e.isVariableDeclaration(n)&&!!n.questionToken),f=Nn(n);if(f)return ol(f,s);if((ae||e.isInJSFile(n))&&n.kind===241&&!e.isBindingPattern(n.name)&&!(e.getCombinedModifierFlags(n)&1)&&!(n.flags&8388608)){if(!(e.getCombinedNodeFlags(n)&2)&&(!n.initializer||lc(n.initializer)))return kn;if(n.initializer&&Pu(n.initializer))return ua}if(n.kind===155){var A=n.parent;if(A.kind===163&&!$a(A)){var W=e.getDeclarationOfKind(Yt(n.parent),162);if(W){var xe=pc(W),je=f_(A);return je&&n===je?(e.Debug.assert(!je.type),Hn(xe.thisParameter)):Fi(xe)}}if(e.isInJSFile(n)){var Qe=e.getJSDocType(A);if(Qe&&e.isFunctionTypeNode(Qe))return Zs(pc(Qe),A.parameters.indexOf(n))}var nn=n.symbol.escapedName==="this"?Hb(A):Kb(n,!0);if(nn)return ol(nn,s)}else if(e.isInJSFile(n)){var Tn=gd(n,Yt(n),e.getDeclaredExpandoInitializer(n));if(Tn)return Tn}if(n.initializer&&!ed(n)){var nn=_h(n);return ol(nn,s)}return e.isJsxAttribute(n)?qn:e.isBindingPattern(n.name)&&!ed(n)?Dn(n.name,!1,!0):void 0}function hu(n,t){var r=e.getAssignedExpandoInitializer(n.valueDeclaration);if(r){var i=e.getJSDocTypeTag(r);if(i&&i.typeExpression)return ja(i.typeExpression);var s=gd(n.valueDeclaration,n,r);return s||wd(as(r))}for(var f=!1,A=!1,W,xe,je=0,Qe=n.declarations;je<Qe.length;je++){var nn=Qe[je],Tn=e.isBinaryExpression(nn)||e.isCallExpression(nn)?nn:e.isAccessExpression(nn)?e.isBinaryExpression(nn.parent)?nn.parent:nn:void 0;if(!Tn)continue;var In=e.isAccessExpression(Tn)?e.getAssignmentDeclarationPropertyAccessKind(Tn):e.getAssignmentDeclarationKind(Tn);In===4&&(cc(Tn)?f=!0:A=!0),e.isCallExpression(Tn)||(W=Od(W,Tn,n,nn)),W||(xe||(xe=[])).push(e.isBinaryExpression(Tn)||e.isCallExpression(Tn)?Pd(n,t,Tn,In):It)}var it=W;if(!it){if(!e.length(xe))return ye;var pt=f?Md(xe,n.declarations):void 0;if(A){var St=Mu(n);St&&((pt||(pt=[])).push(St),f=!0)}var qt=e.some(pt,function(lr){return!!(lr.flags&~98304)})?pt:xe;it=jr(qt,2)}var hr=Ps(ol(it,A&&!f));return gs(hr,function(lr){return!!(lr.flags&~98304)})===It?(ld(n.valueDeclaration,oe),oe):hr}function gd(n,t,r){if(!e.isInJSFile(n)||!r||!e.isObjectLiteralExpression(r)||r.properties.length)return;for(var i=e.createSymbolTable();e.isBinaryExpression(n)||e.isPropertyAccessExpression(n);){var s=Yt(n);s&&e.hasEntries(s.exports)&&za(i,s.exports),n=e.isBinaryExpression(n)?n.parent:n.parent.parent}var f=Yt(n);f&&e.hasEntries(f.exports)&&za(i,f.exports);var A=Oo(t,i,e.emptyArray,e.emptyArray,void 0,void 0);return A.objectFlags|=16384,A}function Od(n,t,r,i){var s=e.getEffectiveTypeAnnotationNode(t.parent);if(s){var f=Ps(ja(s));if(n)n!==ye&&f!==ye&&!Xc(n,f)&&MT(void 0,n,i,f);else return f}if(r.parent){var A=e.getEffectiveTypeAnnotationNode(r.parent.valueDeclaration);if(A)return Zo(ja(A),r.escapedName)}return n}function Pd(n,t,r,i){if(e.isCallExpression(r)){if(t)return Hn(t);var s=as(r.arguments[2]),f=Zo(s,"value");if(f)return f;var A=Zo(s,"get");if(A){var W=jd(A);if(W)return Fi(W)}var xe=Zo(s,"set");if(xe){var je=jd(xe);if(je)return Cy(je)}return oe}var Qe=t?Hn(t):wd(as(r.right));if(Qe.flags&524288&&i===2&&n.escapedName==="export="){var nn=fc(Qe),Tn=e.createSymbolTable();e.copyEntries(nn.members,Tn),t&&!t.exports&&(t.exports=e.createSymbolTable()),(t||n).exports.forEach(function(it,pt){if(Tn.has(pt)){var St=nn.members.get(pt),qt=Va(it.flags|St.flags,pt);qt.type=jr([Hn(it),Hn(St)]),Tn.set(pt,qt)}else Tn.set(pt,it)});var In=Oo(nn.symbol,Tn,nn.callSignatures,nn.constructSignatures,nn.stringIndexInfo,nn.numberIndexInfo);return In.objectFlags|=e.getObjectFlags(Qe)&16384,In}return Ng(Qe)?(ld(r,gi),gi):Qe}function cc(n){var t=e.getThisContainer(n,!1);return t.kind===161||t.kind===243||t.kind===200&&!e.isPrototypePropertyAssignment(t.parent)}function Md(n,t){return e.Debug.assert(n.length===t.length),n.filter(function(r,i){var s=t[i],f=e.isBinaryExpression(s)?s:e.isBinaryExpression(s.parent)?s.parent:void 0;return f&&cc(f)})}function Mu(n){var t=e.forEach(n.declarations,function(s){var f=e.getThisContainer(s,!1).parent;return e.isClassLike(f)&&f});if(t){var r=yo(Yt(t)),i=r&&Tl(r)[0];if(i)return Zo(i,n.escapedName)}}function g(n,t,r){return n.initializer?ol(_h(n)):e.isBindingPattern(n.name)?Dn(n.name,t,r):(r&&!Be(n)&&ld(n,oe),oe)}function te(n,t,r){var i=e.createSymbolTable(),s,f=128|524288;e.forEach(n.elements,function(W){var xe=W.propertyName||W.name;if(W.dotDotDotToken){s=dl(oe,!1);return}var je=bd(xe);if(!er(je)){f|=512;return}var Qe=Po(je),nn=4|(W.initializer?16777216:0),Tn=Va(nn,Qe);Tn.type=g(W,t,r),Tn.bindingElement=W,i.set(Tn.escapedName,Tn)});var A=Oo(void 0,i,e.emptyArray,e.emptyArray,s,void 0);return A.objectFlags|=f,t&&(A.pattern=n),A}function Ve(n,t,r){var i=n.elements,s=e.lastOrUndefined(i),f=!!(s&&s.kind===190&&s.dotDotDotToken);if(i.length===0||i.length===1&&f)return x>=2?j1(oe):gi;var A=e.map(i,function(je){return e.isOmittedExpression(je)?oe:g(je,t,r)}),W=e.findLastIndex(i,function(je){return!e.isOmittedExpression(je)&&!Af(je)},i.length-(f?2:1))+1,xe=Gu(A,W,f);return t&&(xe=sg(xe),xe.pattern=n),xe}function Dn(n,t,r){return t===void 0&&(t=!1),r===void 0&&(r=!1),n.kind===188?te(n,t,r):Ve(n,t,r)}function rt(n,t){return p(nd(n,!0),n,t)}function p(n,t,r){return n?(r&&Km(t,n),n.flags&8192&&(e.isBindingElement(t)||!t.type)&&n.symbol!==Yt(t)&&(n=_n),Ps(n)):(n=e.isParameter(t)&&t.dotDotDotToken?gi:oe,r&&(Be(t)||ld(t,n)),n)}function Be(n){var t=e.getRootDeclaration(n),r=t.kind===155?t.parent:t;return bh(r)}function Nn(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return ja(t)}function bt(n){var t=ea(n);if(!t.type){var r=Sr(n);t.type||(t.type=r)}return t.type}function Sr(n){if(n.flags&4194304)return Qu(n);if(n===ke)return oe;if(n.flags&134217728){var t=Yt(e.getSourceFileOfNode(n.valueDeclaration)),r=e.createSymbolTable();return r.set("exports",t),Oo(n,r,e.emptyArray,e.emptyArray,void 0,void 0)}var i=n.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(i))return oe;if(e.isSourceFile(i)&&e.isJsonSourceFile(i)){if(!i.statements.length)return jn;var s=wd(Pa(i.statements[0].expression));return s.flags&524288?bf(s):s}if(!Qs(n,0))return n.flags&512&&!(n.flags&67108864)?Zr(n):xn(n);var f;if(i.kind===258)f=p(as(i.expression),i);else if(e.isBinaryExpression(i)||e.isInJSFile(i)&&(e.isCallExpression(i)||(e.isPropertyAccessExpression(i)||e.isBindableStaticElementAccessExpression(i))&&e.isBinaryExpression(i.parent)))f=hu(n);else if(e.isJSDocPropertyLikeTag(i)||e.isPropertyAccessExpression(i)||e.isElementAccessExpression(i)||e.isIdentifier(i)||e.isStringLiteralLike(i)||e.isNumericLiteral(i)||e.isClassDeclaration(i)||e.isFunctionDeclaration(i)||e.isMethodDeclaration(i)&&!e.isObjectLiteralMethod(i)||e.isMethodSignature(i)||e.isSourceFile(i)){if(n.flags&(16|8192|32|384|512))return Zr(n);f=e.isBinaryExpression(i.parent)?hu(n):Nn(i)||oe}else if(e.isPropertyAssignment(i))f=Nn(i)||fT(i);else if(e.isJsxAttribute(i))f=Nn(i)||oE(i);else if(e.isShorthandPropertyAssignment(i))f=Nn(i)||Pf(i.name,0);else if(e.isObjectLiteralMethod(i))f=Nn(i)||pT(i,0);else if(e.isParameter(i)||e.isPropertyDeclaration(i)||e.isPropertySignature(i)||e.isVariableDeclaration(i)||e.isBindingElement(i))f=rt(i,!0);else if(e.isEnumDeclaration(i))f=Zr(n);else if(e.isEnumMember(i))f=ps(n);else if(e.isAccessor(i))f=Et(n);else return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(i.kind)+" for "+e.Debug.formatSymbol(n));return Kl()?f:n.flags&512&&!(n.flags&67108864)?Zr(n):xn(n)}function Yr(n){if(n)if(n.kind===162){var t=e.getEffectiveReturnTypeNode(n);return t}else{var r=e.getEffectiveSetAccessorTypeAnnotationNode(n);return r}return}function ra(n){var t=Yr(n);return t&&ja(t)}function mi(n){var t=f_(n);return t&&t.symbol}function q(n){return _d(pc(n))}function dn(n){var t=ea(n);return t.type||(t.type=Un(n))}function Un(n){if(!Qs(n,0))return ye;var t=Et(n);if(!Kl()&&(t=oe,ae)){var r=e.getDeclarationOfKind(n,162);wn(r,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(n))}return t}function Et(n){var t=e.getDeclarationOfKind(n,162),r=e.getDeclarationOfKind(n,163);if(t&&e.isInJSFile(t)){var i=ql(t);if(i)return i}var s=ra(t);if(s)return s;var f=ra(r);return f||(t&&t.body?hh(t):(r?bh(r)||Go(ae,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,wa(n)):(e.Debug.assert(!!t,"there must exist a getter as we are current checking either setter or getter in this function"),bh(t)||Go(ae,t,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,wa(n))),oe))}function gr(n){var t=uc(sl(n));return t.flags&8650752?t:t.flags&2097152?e.find(t.types,function(r){return!!(r.flags&8650752)}):void 0}function Zr(n){var t=ea(n),r=t;if(!t.type){var i=e.getDeclarationOfExpando(n.valueDeclaration);if(i){var s=jE(n,Yt(i));s&&(n=t=s)}r.type=t.type=ka(n)}return t.type}function ka(n){var t=n.valueDeclaration;if(n.flags&1536&&e.isShorthandAmbientModuleSymbol(n))return oe;if(t.kind===208||(t.kind===193||t.kind===194)&&t.parent.kind===208)return hu(n);if(n.flags&512&&t&&e.isSourceFile(t)&&t.commonJsModuleIndicator){var r=ti(n);if(r!==n){if(!Qs(n,0))return ye;var i=zr(n.exports.get("export=")),s=hu(i,i===r?void 0:r);return Kl()?s:xn(n)}}var f=ss(16,n);if(n.flags&32){var A=gr(n);return A?Qi([f,A]):f}else return a&&n.flags&16777216?wu(f):f}function ps(n){var t=ea(n);return t.type||(t.type=Cm(n))}function u(n){var t=ea(n);if(!t.type){var r=M(n);t.type=r.flags&111551?Hn(r):ye}return t.type}function we(n){var t=ea(n);if(!t.type){if(!Qs(n,0))return t.type=ye;var r=Si(Hn(t.target),t.mapper);Kl()||(r=xn(n)),t.type=r}return t.type}function xn(n){var t=n.valueDeclaration;return e.getEffectiveTypeAnnotationNode(t)?(wn(n.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,wa(n)),ye):(ae&&(t.kind!==155||t.initializer)&&wn(n.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,wa(n)),oe)}function at(n){var t=ea(n);return t.type||(e.Debug.assertDefined(t.deferralParent),e.Debug.assertDefined(t.deferralConstituents),t.type=t.deferralParent.flags&1048576?jr(t.deferralConstituents):Qi(t.deferralConstituents)),t.type}function Hn(n){return e.getCheckFlags(n)&65536?at(n):e.getCheckFlags(n)&1?we(n):e.getCheckFlags(n)&8192?Cw(n):n.flags&(3|4)?bt(n):n.flags&(16|8192|32|384|512)?Zr(n):n.flags&8?ps(n):n.flags&98304?dn(n):n.flags&2097152?u(n):ye}function pa(n,t){return n!==void 0&&t!==void 0&&(e.getObjectFlags(n)&4)!==0&&n.target===t}function Ta(n){return e.getObjectFlags(n)&4?n.target:n}function Ga(n,t){return r(n);function r(i){if(e.getObjectFlags(i)&(3|4)){var s=Ta(i);return s===t||e.some(Tl(s),r)}else if(i.flags&2097152)return e.some(i.types,r);return!1}}function $o(n,t){for(var r=0,i=t;r<i.length;r++){var s=i[r];n=e.appendIfUnique(n,Rd(Yt(s)))}return n}function Ci(n,t){for(;;){if(n=n.parent,n&&e.isBinaryExpression(n)){var r=e.getAssignmentDeclarationKind(n);if(r===6||r===3){var i=Yt(n.left);i&&i.parent&&!e.findAncestor(i.parent.valueDeclaration,function(W){return n===W})&&(n=i.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 244:case 213:case 245:case 164:case 165:case 159:case 169:case 170:case 298:case 243:case 160:case 200:case 201:case 246:case 314:case 315:case 309:case 308:case 185:case 179:var s=Ci(n,t);if(n.kind===185)return e.append(s,Rd(Yt(n.typeParameter)));if(n.kind===179)return e.concatenate(s,Ev(n));var f=$o(s,e.getEffectiveTypeParameterDeclarations(n)),A=t&&(n.kind===244||n.kind===213||n.kind===245||Zc(n))&&sl(Yt(n)).thisType;return A?e.append(f,A):f}}}function So(n){var t=n.flags&32?n.valueDeclaration:e.getDeclarationOfKind(n,245);return e.Debug.assert(!!t,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Ci(t)}function qo(n){for(var t,r=0,i=n.declarations;r<i.length;r++){var s=i[r];if(s.kind===245||s.kind===244||s.kind===213||Zc(s)||e.isTypeAlias(s)){var f=s;t=$o(t,e.getEffectiveTypeParameterDeclarations(f))}}return t}function El(n){return e.concatenate(So(n),qo(n))}function Rl(n){var t=si(n,1);if(t.length===1){var r=t[0];return!r.typeParameters&&r.parameters.length===1&&L(r)&&jm(yp(r.parameters[0]))===oe}return!1}function Ac(n){if(si(n,1).length>0)return!0;if(n.flags&8650752){var t=cl(n);return!!t&&Rl(t)}return!1}function kc(n){return e.getEffectiveBaseTypeNode(n.symbol.valueDeclaration)}function xo(n,t,r){var i=e.length(t),s=e.isInJSFile(r);return e.filter(si(n,1),function(f){return(s||i>=vu(f.typeParameters))&&i<=e.length(f.typeParameters)})}function gu(n,t,r){var i=xo(n,t,r),s=e.map(t,ja);return e.sameMap(i,function(f){return e.some(f.typeParameters)?Bp(f,s,e.isInJSFile(r)):f})}function uc(n){if(!n.resolvedBaseConstructorType){var t=n.symbol.valueDeclaration,r=e.getEffectiveBaseTypeNode(t),i=kc(n);if(!i)return n.resolvedBaseConstructorType=un;if(!Qs(n,1))return ye;var s=Pa(i.expression);if(r&&i!==r&&(e.Debug.assert(!r.typeArguments),Pa(r.expression)),s.flags&(524288|2097152)&&fc(s),!Kl())return wn(n.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,wa(n.symbol)),n.resolvedBaseConstructorType=ye;if(!(s.flags&1)&&s!==ut&&!Ac(s)){var f=wn(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,zt(s));if(s.flags&262144){var A=Up(s),W=mn;if(A){var xe=si(A,1);xe[0]&&(W=Fi(xe[0]))}e.addRelatedInfo(f,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),zt(W)))}return n.resolvedBaseConstructorType=ye}n.resolvedBaseConstructorType=s}return n.resolvedBaseConstructorType}function Tl(n){return n.resolvedBaseTypes||(n.objectFlags&8?n.resolvedBaseTypes=[Os(jr(n.typeParameters||e.emptyArray),n.readonly)]:n.symbol.flags&(32|64)?(n.symbol.flags&32&&Wf(n),n.symbol.flags&64&&Gh(n)):e.Debug.fail("type must be class or interface")),n.resolvedBaseTypes}function Wf(n){n.resolvedBaseTypes=e.resolvingEmptyArray;var t=ds(uc(n));if(!(t.flags&(524288|2097152|1)))return n.resolvedBaseTypes=e.emptyArray;var r=kc(n),i,s=t.symbol?yo(t.symbol):void 0;if(t.symbol&&t.symbol.flags&32&&Sm(s))i=q_(r,t.symbol);else if(t.flags&1)i=t;else{var f=gu(t,r.typeArguments,r);if(!f.length)return wn(r.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=e.emptyArray;i=Fi(f[0])}return i===ye?n.resolvedBaseTypes=e.emptyArray:pf(i)?n===i||Ga(i,n)?(wn(n.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,zt(n,void 0,2)),n.resolvedBaseTypes=e.emptyArray):(n.resolvedBaseTypes===e.resolvingEmptyArray&&(n.members=void 0),n.resolvedBaseTypes=[i]):(wn(r.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,zt(i)),n.resolvedBaseTypes=e.emptyArray)}function Sm(n){var t=n.outerTypeParameters;if(t){var r=t.length-1,i=_o(n);return t[r].symbol!==i[r].symbol}return!0}function pf(n){if(n.flags&262144){var t=cl(n);if(t)return pf(t)}return!!(n.flags&(524288|67108864|1))&&!Fl(n)||!!(n.flags&2097152)&&e.every(n.types,pf)}function Gh(n){n.resolvedBaseTypes=n.resolvedBaseTypes||e.emptyArray;for(var t=0,r=n.symbol.declarations;t<r.length;t++){var i=r[t];if(i.kind===245&&e.getInterfaceBaseTypeNodes(i))for(var s=0,f=e.getInterfaceBaseTypeNodes(i);s<f.length;s++){var A=f[s],W=ja(A);W!==ye&&(pf(W)?n!==W&&!Ga(W,n)?n.resolvedBaseTypes===e.emptyArray?n.resolvedBaseTypes=[W]:n.resolvedBaseTypes.push(W):wn(i,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,zt(n,void 0,2)):wn(A,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function xm(n){for(var t=0,r=n.declarations;t<r.length;t++){var i=r[t];if(i.kind===245){if(i.flags&128)return!1;var s=e.getInterfaceBaseTypeNodes(i);if(s)for(var f=0,A=s;f<A.length;f++){var W=A[f];if(e.isEntityNameExpression(W.expression)){var xe=Dt(W.expression,788968,!0);if(!xe||!(xe.flags&64)||sl(xe).thisType)return!1}}}}return!0}function sl(n){var t=ea(n),r=t;if(!t.declaredType){var i=n.flags&32?1:2,s=jE(n,Y2(n.valueDeclaration));s&&(n=t=s);var f=r.declaredType=t.declaredType=ss(i,n),A=So(n),W=qo(n);(A||W||i===1||!xm(n))&&(f.objectFlags|=4,f.typeParameters=e.concatenate(A,W),f.outerTypeParameters=A,f.localTypeParameters=W,f.instantiations=e.createMap(),f.instantiations.set(bu(f.typeParameters),f),f.target=f,f.resolvedTypeArguments=f.typeParameters,f.thisType=il(n),f.thisType.isThisType=!0,f.thisType.constraint=f)}return t.declaredType}function wm(n){var t=ea(n);if(!t.declaredType){if(!Qs(n,2))return ye;var r=e.find(n.declarations,e.isTypeAlias);if(!r)return e.Debug.fail("Type alias symbol with no valid declaration found");var i=e.isJSDocTypeAlias(r)?r.typeExpression:r.type,s=i?ja(i):ye;if(Kl()){var f=qo(n);f&&(t.typeParameters=f,t.instantiations=e.createMap(),t.instantiations.set(bu(f),s))}else s=ye,wn(e.isJSDocEnumTag(r)?r:r.name||r,e.Diagnostics.Type_alias_0_circularly_references_itself,wa(n));t.declaredType=s}return t.declaredType}function Pp(n){return e.isStringLiteralLike(n)?!0:n.kind===208?Pp(n.left)&&Pp(n.right):!1}function Am(n){var t=n.initializer;if(!t)return!(n.flags&8388608);switch(t.kind){case 10:case 8:case 14:return!0;case 206:return t.operator===40&&t.operand.kind===8;case 75:return e.nodeIsMissing(t)||!!Yt(n.parent).exports.get(t.escapedText);case 208:return Pp(t);default:return!1}}function Hf(n){var t=ea(n);if(t.enumKind!==void 0)return t.enumKind;for(var r=!1,i=0,s=n.declarations;i<s.length;i++){var f=s[i];if(f.kind===247)for(var A=0,W=f.members;A<W.length;A++){var xe=W[A];if(xe.initializer&&e.isStringLiteralLike(xe.initializer))return t.enumKind=1;Am(xe)||(r=!0)}}return t.enumKind=r?0:1}function Kf(n){return n.flags&1024&&!(n.flags&1048576)?yo(xs(n.symbol)):n}function km(n){var t=ea(n);if(t.declaredType)return t.declaredType;if(Hf(n)===1){de++;for(var r=[],i=0,s=n.declarations;i<s.length;i++){var f=s[i];if(f.kind===247)for(var A=0,W=f.members;A<W.length;A++){var xe=W[A],je=Ph(xe),Qe=ef(rs(je!==void 0?je:0,de,Yt(xe)));ea(Yt(xe)).declaredType=Qe,r.push(js(Qe))}}if(r.length){var nn=jr(r,1,n,void 0);return nn.flags&1048576&&(nn.flags|=1024,nn.symbol=n),t.declaredType=nn}}var Tn=_a(32);return Tn.symbol=n,t.declaredType=Tn}function Cm(n){var t=ea(n);if(!t.declaredType){var r=km(xs(n));t.declaredType||(t.declaredType=r)}return t.declaredType}function Rd(n){var t=ea(n);return t.declaredType||(t.declaredType=il(n))}function Mp(n){var t=ea(n);return t.declaredType||(t.declaredType=yo(M(n)))}function yo(n){return Rp(n)||ye}function Rp(n){return n.flags&(32|64)?sl(n):n.flags&524288?wm(n):n.flags&262144?Rd(n):n.flags&384?km(n):n.flags&8?Cm(n):n.flags&2097152?Mp(n):void 0}function mf(n){switch(n.kind){case 124:case 147:case 142:case 139:case 150:case 127:case 143:case 140:case 109:case 145:case 99:case 136:case 186:return!0;case 173:return mf(n.elementType);case 168:return!n.typeArguments||n.typeArguments.every(mf)}return!1}function Bh(n){var t=e.getEffectiveConstraintOfTypeParameter(n);return!t||mf(t)}function qf(n){var t=e.getEffectiveTypeAnnotationNode(n);return t?mf(t):!e.hasInitializer(n)}function Vh(n){var t=e.getEffectiveReturnTypeNode(n),r=e.getEffectiveTypeParameterDeclarations(n);return(n.kind===161||!!t&&mf(t))&&n.parameters.every(qf)&&r.every(Bh)}function Uh(n){if(n.declarations&&n.declarations.length===1){var t=n.declarations[0];if(t)switch(t.kind){case 158:case 157:return qf(t);case 160:case 159:case 161:case 162:case 163:return Vh(t)}}return!1}function Fd(n,t,r){for(var i=e.createSymbolTable(),s=0,f=n;s<f.length;s++){var A=f[s];i.set(A.escapedName,r&&Uh(A)?A:bg(A,t))}return i}function Dm(n,t){for(var r=0,i=t;r<i.length;r++){var s=i[r];n.has(s.escapedName)||n.set(s.escapedName,s)}}function Ru(n){if(!n.declaredProperties){var t=n.symbol,r=yu(t);n.declaredProperties=ws(r),n.declaredCallSignatures=e.emptyArray,n.declaredConstructSignatures=e.emptyArray,n.declaredCallSignatures=Qd(r.get("__call")),n.declaredConstructSignatures=Qd(r.get("__new")),n.declaredStringIndexInfo=Vp(t,0),n.declaredNumberIndexInfo=Vp(t,1)}return n}function er(n){return!!(n.flags&8576)}function $r(n){if(!e.isComputedPropertyName(n)&&!e.isElementAccessExpression(n))return!1;var t=e.isComputedPropertyName(n)?n.expression:n.argumentExpression;return e.isEntityNameExpression(t)&&er(e.isComputedPropertyName(n)?Ku(n):as(t))}function Ur(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function Ua(n){var t=e.getNameOfDeclaration(n);return!!t&&$r(t)}function $a(n){return e.hasDynamicName(n)&&!Ua(n)}function ao(n){return e.isDynamicName(n)&&!$r(n)}function Po(n){return n.flags&8192?n.escapedName:n.flags&(128|256)?e.escapeLeadingUnderscores(""+n.value):e.Debug.fail()}function Us(n,t,r){e.Debug.assert(!!(e.getCheckFlags(n)&4096),"Expected a late-bound symbol."),n.flags|=r,ea(t.symbol).lateSymbol=n,n.declarations?n.declarations.push(t):n.declarations=[t],r&111551&&((!n.valueDeclaration||n.valueDeclaration.kind!==t.kind)&&(n.valueDeclaration=t))}function Sl(n,t,r,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var s=Ir(i);if(!s.resolvedSymbol){s.resolvedSymbol=i.symbol;var f=e.isBinaryExpression(i)?i.left:i.name,A=e.isElementAccessExpression(f)?as(f.argumentExpression):Ku(f);if(er(A)){var W=Po(A),xe=i.symbol.flags,je=r.get(W);je||r.set(W,je=Va(0,W,4096));var Qe=t&&t.get(W);if(je.flags&me(xe)||Qe){var nn=Qe?e.concatenate(Qe.declarations,je.declarations):je.declarations,Tn=!(A.flags&8192)&&e.unescapeLeadingUnderscores(W)||e.declarationNameToString(f);e.forEach(nn,function(In){return wn(e.getNameOfDeclaration(In)||In,e.Diagnostics.Property_0_was_also_declared_here,Tn)}),wn(f||i,e.Diagnostics.Duplicate_property_0,Tn),je=Va(0,W,4096)}return je.nameType=A,Us(je,i,xe),je.parent?e.Debug.assert(je.parent===n,"Existing symbol parent should match new one"):je.parent=n,s.resolvedSymbol=je}}return s.resolvedSymbol}function yd(n,t){var r=ea(n);if(!r[t]){var i=t==="resolvedExports",s=i?n.flags&1536?Ko(n):n.exports:n.members;r[t]=s||We;for(var f=e.createSymbolTable(),A=0,W=n.declarations;A<W.length;A++){var xe=W[A],je=e.getMembersOfDeclaration(xe);if(je)for(var Qe=0,nn=je;Qe<nn.length;Qe++){var Tn=nn[Qe];i===e.hasStaticModifier(Tn)&&Ua(Tn)&&Sl(n,s,f,Tn)}}var In=n.assignmentDeclarationMembers;if(In)for(var it=e.arrayFrom(In.values()),pt=0,St=it;pt<St.length;pt++){var Tn=St[pt],qt=e.getAssignmentDeclarationKind(Tn),hr=qt===3||qt===4||qt===9||qt===6;i===!hr&&Ua(Tn)&&Sl(n,s,f,Tn)}r[t]=oi(s,f)||We}return r[t]}function yu(n){return n.flags&6256?yd(n,"resolvedMembers"):n.members||We}function hf(n){if(n.flags&106500&&n.escapedName==="__computed"){var t=ea(n);if(!t.lateSymbol&&e.some(n.declarations,Ua)){var r=zr(n.parent);e.some(n.declarations,e.hasStaticModifier)?ri(r):yu(r)}return t.lateSymbol||(t.lateSymbol=n)}return n}function Jl(n,t,r){if(e.getObjectFlags(n)&4){var i=n.target,s=_o(n);if(e.length(i.typeParameters)===e.length(s)){var f=Eu(i,e.concatenate(s,[t||i.thisType]));return r?ds(f):f}}else if(n.flags&2097152)return Qi(e.map(n.types,function(A){return Jl(A,t,r)}));return r?ds(n):n}function v_(n,t,r,i){var s,f,A,W,xe,je;e.rangeEquals(r,i,0,r.length)?(s=be,f=t.symbol?yu(t.symbol):e.createSymbolTable(t.declaredProperties),A=t.declaredCallSignatures,W=t.declaredConstructSignatures,xe=t.declaredStringIndexInfo,je=t.declaredNumberIndexInfo):(s=wl(r,i),f=Fd(t.declaredProperties,s,r.length===1),A=Gm(t.declaredCallSignatures,s),W=Gm(t.declaredConstructSignatures,s),xe=Bm(t.declaredStringIndexInfo,s),je=Bm(t.declaredNumberIndexInfo,s));var Qe=Tl(t);if(Qe.length){t.symbol&&f===yu(t.symbol)&&(f=e.createSymbolTable(t.declaredProperties)),go(n,f,A,W,xe,je);for(var nn=e.lastOrUndefined(i),Tn=0,In=Qe;Tn<In.length;Tn++){var it=In[Tn],pt=nn?Jl(Si(it,s),nn):it;Dm(f,oo(pt)),A=e.concatenate(A,si(pt,0)),W=e.concatenate(W,si(pt,1)),xe||(xe=pt===oe?dl(oe,!1):Xi(pt,0)),je=je||Xi(pt,1)}}go(n,f,A,W,xe,je)}function RS(n){v_(n,Ru(n),e.emptyArray,e.emptyArray)}function FS(n){var t=Ru(n.target),r=e.concatenate(t.typeParameters,[t.thisType]),i=_o(n),s=i.length===r.length?i:e.concatenate(i,[n]);v_(n,t,r,s)}function Kc(n,t,r,i,s,f,A,W){var xe=new S(c,W);return xe.declaration=n,xe.typeParameters=t,xe.parameters=i,xe.thisParameter=r,xe.resolvedReturnType=s,xe.resolvedTypePredicate=f,xe.minArgumentCount=A,xe.target=void 0,xe.mapper=void 0,xe}function Jf(n){var t=Kc(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&3);return t.target=n.target,t.mapper=n.mapper,t}function b_(n,t){var r=Jf(n);return r.unionSignatures=t,r.target=void 0,r.mapper=void 0,r}function GS(n,t){if((n.flags&12)===t)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});var r=t===4?"inner":"outer";return n.optionalCallSignatureCache[r]||(n.optionalCallSignatureCache[r]=BS(n,t))}function BS(n,t){e.Debug.assert(t===4||t===8,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var r=Jf(n);return r.flags|=t,r}function E_(n){if(L(n)){var t=n.parameters.length-1,r=n.parameters[t],i=Hn(r);if(Lo(i)){var s=_o(i),f=i.target.minLength,A=i.target.hasRestElement?s.length-1:-1,W=e.map(s,function(xe,je){var Qe=Nf(n,t+je),nn=je===A?32768:je>=f?16384:0,Tn=Va(1,Qe,nn);return Tn.type=je===A?Os(xe):xe,Tn});return e.concatenate(n.parameters.slice(0,t),W)}}return n.parameters}function VS(n){var t=uc(n),r=si(t,1);if(r.length===0)return[Kc(void 0,n.localTypeParameters,void 0,e.emptyArray,n,void 0,0,0)];for(var i=kc(n),s=e.isInJSFile(i),f=ug(i),A=e.length(f),W=[],xe=0,je=r;xe<je.length;xe++){var Qe=je[xe],nn=vu(Qe.typeParameters),Tn=e.length(Qe.typeParameters);if(s||A>=nn&&A<=Tn){var In=Tn?Nm(Qe,Gd(f,Qe.typeParameters,nn,s)):Jf(Qe);In.typeParameters=n.localTypeParameters,In.resolvedReturnType=n,W.push(In)}}return W}function jh(n,t,r,i,s){for(var f=0,A=n;f<A.length;f++){var W=A[f];if(Xp(W,t,r,i,s,r?Px:rp))return W}}function US(n,t,r){if(t.typeParameters){if(r>0)return;for(var i=1;i<n.length;i++)if(!jh(n[i],t,!1,!1,!1))return;return[t]}for(var s,i=0;i<n.length;i++){var f=i===r?t:jh(n[i],t,!0,!1,!0);if(!f)return;s=e.appendIfUnique(s,f)}return s}function Wh(n){for(var t,r,i=0;i<n.length;i++){if(n[i].length===0)return e.emptyArray;n[i].length>1&&(r=r===void 0?i:-1);for(var s=0,f=n[i];s<f.length;s++){var A=f[s];if(!t||!jh(t,A,!1,!1,!0)){var W=US(n,A,i);if(W){var xe=A;if(W.length>1){var je=A.thisParameter,Qe=e.forEach(W,function(lr){return lr.thisParameter});if(Qe){var nn=Qi(e.mapDefined(W,function(lr){return lr.thisParameter&&Hn(lr.thisParameter)}));je=vf(Qe,nn)}xe=b_(A,W),xe.thisParameter=je}(t||(t=[])).push(xe)}}}}if(!e.length(t)&&r!==-1){for(var Tn=n[r!==void 0?r:0],In=Tn.slice(),it=function(Tr){if(Tr!==Tn){var na=Tr[0];if(e.Debug.assert(!!na,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),In=na.typeParameters&&e.some(In,function(Mr){return!!Mr.typeParameters})?void 0:e.map(In,function(Mr){return HS(Mr,na)}),!In)return"break"}},pt=0,St=n;pt<St.length;pt++){var qt=St[pt],hr=it(qt);if(hr==="break")break}t=In}return t||e.emptyArray}function jS(n,t){if(!n||!t)return n||t;var r=Qi([Hn(n),Hn(t)]);return vf(n,r)}function WS(n,t){for(var r=Vl(n),i=Vl(t),s=r>=i?n:t,f=s===n?t:n,A=s===n?r:i,W=qu(n)||qu(t),xe=W&&!qu(s),je=new Array(A+(xe?1:0)),Qe=0;Qe<A;Qe++){var nn=lm(s,Qe),Tn=lm(f,Qe)||mn,In=Qi([nn,Tn]),it=W&&!xe&&Qe===A-1,pt=Qe>=Au(s)&&Qe>=Au(f),St=Qe>=r?void 0:Nf(n,Qe),qt=Qe>=i?void 0:Nf(t,Qe),hr=St===qt?St:St?qt?void 0:St:qt,lr=Va(1|(pt&&!it?16777216:0),hr||"arg"+Qe);lr.type=it?Os(In):In,je[Qe]=lr}if(xe){var Tr=Va(1,"args");Tr.type=Os(Zs(f,A)),je[A]=Tr}return je}function HS(n,t){var r=n.declaration,i=WS(n,t),s=jS(n.thisParameter,t.thisParameter),f=Math.max(n.minArgumentCount,t.minArgumentCount),A=Kc(r,n.typeParameters||t.typeParameters,s,i,void 0,void 0,f,(n.flags|t.flags)&3);return A.unionSignatures=e.concatenate(n.unionSignatures||[n],[t]),A}function T_(n,t){for(var r=[],i=!1,s=0,f=n;s<f.length;s++){var A=f[s],W=Xi(A,t);if(!W)return;r.push(W.type),i=i||W.isReadonly}return dl(jr(r,2),i)}function KS(n){var t=Wh(e.map(n.types,function(f){return f===Ri?[Ai]:si(f,0)})),r=Wh(e.map(n.types,function(f){return si(f,1)})),i=T_(n.types,0),s=T_(n.types,1);go(n,We,t,r,i,s)}function zf(n,t){return n?t?Qi([n,t]):n:t}function S_(n,t){return n?t?dl(Qi([n.type,t.type]),n.isReadonly&&t.isReadonly):n:t}function x_(n,t){return n&&t&&dl(jr([n.type,t.type]),n.isReadonly||t.isReadonly)}function w_(n){var t=e.countWhere(n,function(s){return si(s,1).length>0}),r=e.map(n,Rl);if(t>0&&t===e.countWhere(r,function(s){return s})){var i=r.indexOf(!0);r[i]=!1}return r}function qS(n,t,r,i){for(var s=[],f=0;f<t.length;f++)f===i?s.push(n):r[f]&&s.push(Fi(si(t[f],1)[0]));return Qi(s)}function JS(n){for(var t,r,i,s,f=n.types,A=w_(f),W=e.countWhere(A,function(Qe){return Qe}),xe=function(nn){var Tn=n.types[nn];if(!A[nn]){var In=si(Tn,1);In.length&&W>0&&(In=e.map(In,function(it){var pt=Jf(it);return pt.resolvedReturnType=qS(Fi(it),f,A,nn),pt})),r=A_(r,In)}t=A_(t,si(Tn,0)),i=S_(i,Xi(Tn,0)),s=S_(s,Xi(Tn,1))},je=0;je<f.length;je++)xe(je);go(n,We,t||e.emptyArray,r||e.emptyArray,i,s)}function A_(n,t){for(var r=function(W){(!n||e.every(n,function(xe){return!Xp(xe,W,!1,!1,!1,rp)}))&&(n=e.append(n,W))},i=0,s=t;i<s.length;i++){var f=s[i];r(f)}return n}function zS(n){var t=zr(n.symbol);if(n.target){go(n,We,e.emptyArray,e.emptyArray,void 0,void 0);var r=Fd(_u(n.target),n.mapper,!1),i=Gm(si(n.target,0),n.mapper),s=Gm(si(n.target,1),n.mapper),f=Bm(Xi(n.target,0),n.mapper),A=Bm(Xi(n.target,1),n.mapper);go(n,r,i,s,f,A)}else if(t.flags&2048){go(n,We,e.emptyArray,e.emptyArray,void 0,void 0);var r=yu(t),i=Qd(r.get("__call")),s=Qd(r.get("__new")),f=Vp(t,0),A=Vp(t,1);go(n,r,i,s,f,A)}else{var r=We,f=void 0;if(t.exports&&(r=ri(t),t===sn)){var W=e.createMap();r.forEach(function(it){it.flags&418||W.set(it.escapedName,it)}),r=W}if(go(n,r,e.emptyArray,e.emptyArray,void 0,void 0),t.flags&32){var xe=sl(t),je=uc(xe);je.flags&(524288|2097152|8650752)?(r=e.createSymbolTable(ws(r)),Dm(r,oo(je))):je===oe&&(f=dl(oe,!1))}var A=t.flags&384&&(yo(t).flags&32||e.some(n.properties,function(it){return!!(Hn(it).flags&296)}))?Xa:void 0;if(go(n,r,e.emptyArray,e.emptyArray,f,A),t.flags&(16|8192)&&(n.callSignatures=Qd(t)),t.flags&32){var Qe=sl(t),s=t.members?Qd(t.members.get("__constructor")):e.emptyArray;t.flags&16&&(s=e.addRange(s.slice(),e.mapDefined(n.callSignatures,function(pt){return Zc(pt.declaration)?Kc(pt.declaration,pt.typeParameters,pt.thisParameter,pt.parameters,Qe,void 0,pt.minArgumentCount,pt.flags&3):void 0}))),s.length||(s=VS(Qe)),n.constructSignatures=s}}}function XS(n){for(var t=Xi(n.source,0),r=Jc(n.mappedType),i=!(r&1),s=r&4?0:16777216,f=t&&dl(zm(t.type,n.mappedType,n.constraintType),i&&t.isReadonly),A=e.createSymbolTable(),W=0,xe=oo(n.source);W<xe.length;W++){var je=xe[W],Qe=8192|(i&&$c(je)?8:0),nn=Va(4|je.flags&s,je.escapedName,Qe);nn.declarations=je.declarations,nn.nameType=je.nameType,nn.propertyType=Hn(je),nn.mappedType=n.mappedType,nn.constraintType=n.constraintType,A.set(je.escapedName,nn)}go(n,A,e.emptyArray,e.emptyArray,f,void 0)}function Lm(n){if(n.flags&(1|131068))return n;if(n.flags&4194304)return zc(ds(n.type));if(n.flags&16777216){if(n.root.isDistributive){var t=n.checkType,r=Lm(t);if(r!==t){var i=_f(n.root.checkType,r);return xg(n,Tu(i,n.mapper))}}return n}return n.flags&1048576?jr(e.sameMap(n.types,Lm)):n.flags&2097152?Qi(e.sameMap(n.types,Lm)):It}function YS(n){var t=e.createSymbolTable(),r,i;go(n,We,e.emptyArray,e.emptyArray,void 0,void 0);var s=Fu(n),f=dc(n),A=qc(n.target||n),W=ds(Kh(n)),xe=Jc(n),je=Le?128:8576;if(Hh(n)){for(var Qe=0,nn=oo(W);Qe<nn.length;Qe++){var Tn=nn[Qe];In(Mm(Tn,je))}(W.flags&1||Xi(W,0))&&In(dt),!Le&&Xi(W,1)&&In(ot)}else lf(Lm(f),In);go(n,t,e.emptyArray,e.emptyArray,r,i);function In(it){var pt=Tu(n.mapper,wl([s],[it])),St=Si(A,pt);if(er(it)){var qt=Po(it),hr=Ji(W,qt),lr=!!(xe&4||!(xe&8)&&hr&&hr.flags&16777216),Tr=!!(xe&1||!(xe&2)&&hr&&$c(hr)),na=Va(4|(lr?16777216:0),qt,Tr?8:0);na.type=a&&lr&&!Hi(un,St)?wu(St):a&&!lr&&hr&&hr.flags&16777216?hs(St,524288):St,hr&&(na.syntheticOrigin=hr,na.declarations=hr.declarations),na.nameType=it,t.set(qt,na)}else it.flags&(1|4)?r=dl(St,!!(xe&1)):it.flags&(8|32)&&(i=dl(i?jr([i.type,St]):St,!!(xe&1)))}}function Fu(n){return n.typeParameter||(n.typeParameter=Rd(Yt(n.declaration.typeParameter)))}function dc(n){return n.constraintType||(n.constraintType=ll(Fu(n))||ye)}function qc(n){return n.templateType||(n.templateType=n.declaration.type?Si(ol(ja(n.declaration.type),!!(Jc(n)&4)),n.mapper||be):ye)}function k_(n){return e.getEffectiveConstraintOfTypeParameter(n.declaration.typeParameter)}function Hh(n){var t=k_(n);return t.kind===183&&t.operator===133}function Kh(n){if(!n.modifiersType)if(Hh(n))n.modifiersType=Si(ja(k_(n).type),n.mapper||be);else{var t=hg(n.declaration),r=dc(t),i=r&&r.flags&262144?ll(r):r;n.modifiersType=i&&i.flags&4194304?Si(i.type,n.mapper||be):mn}return n.modifiersType}function Jc(n){var t=n.declaration;return(t.readonlyToken?t.readonlyToken.kind===40?2:1:0)|(t.questionToken?t.questionToken.kind===40?8:4:0)}function C_(n){var t=Jc(n);return t&8?-1:t&4?1:0}function qh(n){var t=C_(n),r=Kh(n);return t||(Fl(r)?C_(r):0)}function QS(n){return!!(e.getObjectFlags(n)&32&&Jc(n)&4)}function Fl(n){return!!(e.getObjectFlags(n)&32)&&Kp(dc(n))}function fc(n){return n.members||(n.flags&524288?n.objectFlags&4?FS(n):n.objectFlags&3?RS(n):n.objectFlags&2048?XS(n):n.objectFlags&16?zS(n):n.objectFlags&32&&YS(n):n.flags&1048576?KS(n):n.flags&2097152&&JS(n)),n}function _u(n){return n.flags&524288?fc(n).properties:e.emptyArray}function td(n,t){if(n.flags&524288){var r=fc(n),i=r.members.get(t);if(i&&sr(i))return i}}function ZS(n){if(!n.resolvedProperties){for(var t=e.createSymbolTable(),r=0,i=n.types;r<i.length;r++){for(var s=i[r],f=0,A=oo(s);f<A.length;f++){var W=A[f];if(!t.has(W.escapedName)){var xe=P_(n,W.escapedName);xe&&t.set(W.escapedName,xe)}}if(n.flags&1048576)break}n.resolvedProperties=ws(t)}return n.resolvedProperties}function D_(n){if(n.possiblePropertyCache)return n.possiblePropertyCache.size?e.arrayFrom(n.possiblePropertyCache.values()):e.emptyArray;n.possiblePropertyCache=e.createSymbolTable();for(var t=0,r=n.types;t<r.length;t++)for(var i=r[t],s=0,f=oo(i);s<f.length;s++){var A=f[s];if(!n.possiblePropertyCache.has(A.escapedName)){var W=Zh(n,A.escapedName);W&&n.possiblePropertyCache.set(A.escapedName,W)}}return n.possiblePropertyCache.size?e.arrayFrom(n.possiblePropertyCache.values()):e.emptyArray}function oo(n){return n=ds(n),n.flags&3145728?ZS(n):_u(n)}function $S(n,t){var r=t.properties;return r.some(function(i){var s=i.name&&bd(i.name),f=s&&er(s)?Po(s):void 0,A=f===void 0?void 0:Zo(n,f);return!!A&&sp(A)&&!Hi(Gf(i),A)})}function e1(n){var t=jr(n);if(!(t.flags&1048576))return i_(t);for(var r=e.createSymbolTable(),i=0,s=n;i<s.length;i++)for(var f=s[i],A=0,W=i_(f);A<W.length;A++){var xe=W[A].escapedName;if(!r.has(xe)){var je=O_(t,xe);je&&r.set(xe,je)}}return e.arrayFrom(r.values())}function Xf(n){return n.flags&262144?ll(n):n.flags&8388608?n1(n):n.flags&16777216?r1(n):cl(n)}function ll(n){return Xh(n)?Up(n):void 0}function n1(n){return Xh(n)?t1(n):void 0}function Jh(n){var t=Cc(n,!1);return t!==n?t:Xf(n)}function t1(n){var t=Jh(n.indexType);if(t&&t!==n.indexType){var r=Ed(n.objectType,t);if(r)return r}var i=Jh(n.objectType);return i&&i!==n.objectType?Ed(i,n.indexType):void 0}function zh(n){if(!n.resolvedDefaultConstraint){var t=mx(n),r=id(n);n.resolvedDefaultConstraint=Bi(t)?r:Bi(r)?t:jr([t,r])}return n.resolvedDefaultConstraint}function L_(n){if(n.root.isDistributive&&n.restrictiveInstantiation!==n){var t=Cc(n.checkType,!1),r=t===n.checkType?Xf(t):t;if(r&&r!==n.checkType){var i=_f(n.root.checkType,r),s=xg(n,Tu(i,n.mapper));if(!(s.flags&131072))return s}}return}function I_(n){return L_(n)||zh(n)}function r1(n){return Xh(n)?I_(n):void 0}function a1(n,t){for(var r,i=!1,s=0,f=n;s<f.length;s++){var A=f[s];if(A.flags&63176704){for(var W=Xf(A);W&&W.flags&(262144|4194304|16777216);)W=Xf(W);W&&(r=e.append(r,W),t&&(r=e.append(r,A)))}else A.flags&67238908&&(i=!0)}if(r&&(t||i)){if(i)for(var xe=0,je=n;xe<je.length;xe++){var A=je[xe];A.flags&67238908&&(r=e.append(r,A))}return Qi(r)}return}function cl(n){if(n.flags&(58982400|3145728)){var t=Yh(n);return t!==Ke&&t!==Rn?t:void 0}return n.flags&4194304?ba:void 0}function N_(n){return cl(n)||n}function Xh(n){return Yh(n)!==Rn}function Yh(n){var t=!1;return n.resolvedBaseConstraint||(n.resolvedBaseConstraint=Jl(r(n),n));function r(f){if(!f.immediateBaseConstraint){if(!Qs(f,4))return Rn;if(Re>=50)return wn(Ae,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),t=!0,f.immediateBaseConstraint=Ke;Re++;var A=s(Cc(f,!1));if(Re--,!Kl()){if(f.flags&262144){var W=H_(f);if(W){var xe=wn(W,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,zt(f));Ae&&!e.isNodeDescendantOf(W,Ae)&&!e.isNodeDescendantOf(Ae,W)&&e.addRelatedInfo(xe,e.createDiagnosticForNode(Ae,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}A=Rn}t&&(A=Rn),f.immediateBaseConstraint=A||Ke}return f.immediateBaseConstraint}function i(f){var A=r(f);return A!==Ke&&A!==Rn?A:void 0}function s(f){if(f.flags&262144){var A=Up(f);return f.isThisType||!A?A:i(A)}if(f.flags&3145728){for(var W=f.types,xe=[],je=0,Qe=W;je<Qe.length;je++){var nn=Qe[je],Tn=i(nn);Tn&&xe.push(Tn)}return f.flags&1048576&&xe.length===W.length?jr(xe):f.flags&2097152&&xe.length?Qi(xe):void 0}if(f.flags&4194304)return ba;if(f.flags&8388608){var In=i(f.objectType),it=i(f.indexType),pt=In&&it&&Ed(In,it);return pt&&i(pt)}if(f.flags&16777216){var A=I_(f);Re++;var St=A&&i(A);return Re--,St}return f.flags&33554432?i(f.substitute):f}}function i1(n){return n.resolvedApparentType||(n.resolvedApparentType=Jl(n,n,!0))}function Qh(n){if(n.default)n.default===nt&&(n.default=Rn);else if(n.target){var t=Qh(n.target);n.default=t?Si(t,n.mapper):Ke}else{n.default=nt;var r=n.symbol&&e.forEach(n.symbol.declarations,function(s){return e.isTypeParameterDeclaration(s)&&s.default}),i=r?ja(r):Ke;n.default===nt&&(n.default=i)}return n.default}function Yd(n){var t=Qh(n);return t!==Ke&&t!==Rn?t:void 0}function o1(n){return Qh(n)!==Rn}function s1(n){return!!(n.symbol&&e.forEach(n.symbol.declarations,function(t){return e.isTypeParameterDeclaration(t)&&t.default}))}function l1(n){return n.resolvedApparentType||(n.resolvedApparentType=c1(n))}function c1(n){var t=Tg(n);if(t){var r=ll(t);if(r&&(Ms(r)||Lo(r))){var i=_f(t,r);return Si(n,Tu(i,n.mapper))}}return n}function ds(n){var t=n.flags&63176704?cl(n)||mn:n;return e.getObjectFlags(t)&32?l1(t):t.flags&2097152?i1(t):t.flags&132?va:t.flags&296?Na:t.flags&2112?U1(x>=99):t.flags&528?qr:t.flags&12288?nv(x>=2):t.flags&67108864?jn:t.flags&4194304?ba:t.flags&2&&!a?jn:t}function O_(n,t){for(var r=e.createMap(),i,s=n.flags&1048576,f=s?24:0,A=s?0:16777216,W=4,xe=0,je=0,Qe=n.types;je<Qe.length;je++){var nn=Qe[je],Tn=ds(nn);if(Tn!==ye){var In=Ji(Tn,t),it=In?e.getDeclarationModifierFlagsFromSymbol(In):0;if(In&&!(it&f)){s?A|=In.flags&16777216:A&=In.flags;var pt=""+fe(In);r.has(pt)||r.set(pt,In),xe|=($c(In)?8:0)|(it&24?0:256)|(it&16?512:0)|(it&8?1024:0)|(it&32?2048:0),_y(In)||(W=2)}else if(s){var St=!Ur(t)&&(Cl(t)&&Xi(Tn,1)||Xi(Tn,0));St?(xe|=32|(St.isReadonly?8:0),i=e.append(i,Lo(Tn)?ju(Tn)||un:St.type)):Ad(Tn)?(xe|=32,i=e.append(i,un)):xe|=16}}}if(!r.size)return;var qt=e.arrayFrom(r.values());if(qt.length===1&&!(xe&16)&&!i)return qt[0];for(var hr,lr,Tr,na=[],Mr,Wa=!1,Zi=0,Sa=qt;Zi<Sa.length;Zi++){var In=Sa[Zi];Mr?In.valueDeclaration!==Mr&&(Wa=!0):Mr=In.valueDeclaration,hr=e.addRange(hr,In.declarations);var Tn=Hn(In);lr?Tn!==lr&&(xe|=64):(lr=Tn,Tr=In.nameType),sp(Tn)&&(xe|=128),na.push(Tn)}e.addRange(na,i);var Ca=Va(4|A,t,W|xe);return Ca.containingType=n,!Wa&&Mr&&(Ca.valueDeclaration=Mr,Mr.symbol.parent&&(Ca.parent=Mr.symbol.parent)),Ca.declarations=hr,Ca.nameType=Tr,na.length>2?(Ca.checkFlags|=65536,Ca.deferralParent=n,Ca.deferralConstituents=na):Ca.type=s?jr(na):Qi(na),Ca}function Zh(n,t){var r=n.propertyCache||(n.propertyCache=e.createSymbolTable()),i=r.get(t);return i||(i=O_(n,t),i&&r.set(t,i)),i}function P_(n,t){var r=Zh(n,t);return r&&!(e.getCheckFlags(r)&16)?r:void 0}function Ji(n,t){if(n=ds(n),n.flags&524288){var r=fc(n),i=r.members.get(t);if(i&&sr(i))return i;var s=r===vt?Ri:r.callSignatures.length?xt:r.constructSignatures.length?Kt:void 0;if(s){var f=td(s,t);if(f)return f}return td(bo,t)}return n.flags&3145728?P_(n,t):void 0}function $h(n,t){if(n.flags&3670016){var r=fc(n);return t===0?r.callSignatures:r.constructSignatures}return e.emptyArray}function si(n,t){return $h(ds(n),t)}function M_(n,t){if(n.flags&3670016){var r=fc(n);return t===0?r.stringIndexInfo:r.numberIndexInfo}}function eg(n,t){var r=M_(n,t);return r&&r.type}function Xi(n,t){return M_(ds(n),t)}function ms(n,t){return eg(ds(n),t)}function R_(n,t){if(Vg(n)){for(var r=[],i=0,s=oo(n);i<s.length;i++){var f=s[i];(t===0||Cl(f.escapedName))&&r.push(Hn(f))}if(t===0&&e.append(r,ms(n,1)),r.length)return jr(r,2)}return}function F_(n){for(var t,r=0,i=e.getEffectiveTypeParameterDeclarations(n);r<i.length;r++){var s=i[r];t=e.appendIfUnique(t,Rd(s.symbol))}return t}function G_(n){var t=[];return n.forEach(function(r,i){Bo(i)||t.push(r)}),t}function Im(n){return e.isInJSFile(n)&&(n.type&&n.type.kind===297||e.getJSDocParameterTags(n).some(function(t){var r=t.isBracketed,i=t.typeExpression;return r||!!i&&i.type.kind===297}))}function B_(n,t){if(e.isExternalModuleNameRelative(n))return;var r=Uo(cn,'"'+n+'"',512);return r&&t?zr(r):r}function Fp(n){if(e.hasQuestionToken(n)||V_(n)||Im(n))return!0;if(n.initializer){var t=pc(n.parent),r=n.parent.parameters.indexOf(n);return e.Debug.assert(r>=0),r>=Au(t)}var i=e.getImmediatelyInvokedFunctionExpression(n.parent);return i?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=i.arguments.length:!1}function V_(n){if(!e.isJSDocParameterTag(n))return!1;var t=n.isBracketed,r=n.typeExpression;return t||!!r&&r.type.kind===297}function Gp(n,t,r,i){return{kind:n,parameterName:t,parameterIndex:r,type:i}}function vu(n){var t=0;if(n)for(var r=0;r<n.length;r++)s1(n[r])||(t=r+1);return t}function Gd(n,t,r,i){var s=e.length(t);if(!s)return[];var f=e.length(n);if(i||f>=r&&f<=s){for(var A=n?n.slice():[],W=f;W<s;W++)A[W]=ye;for(var xe=zg(i),W=f;W<s;W++){var je=Yd(t[W]);i&&je&&(Xc(je,mn)||Xc(je,jn))&&(je=oe),A[W]=je?Si(je,wl(t,A)):xe}return A.length=t.length,A}return n&&n.slice()}function pc(n){var t=Ir(n);if(!t.resolvedSignature){for(var r=[],i=0,s=0,f=void 0,A=!1,W=e.getImmediatelyInvokedFunctionExpression(n),xe=e.isJSDocConstructSignature(n),je=!W&&e.isInJSFile(n)&&e.isValueSignatureDeclaration(n)&&!e.hasJSDocParameterTags(n)&&!e.getJSDocType(n),Qe=xe?1:0;Qe<n.parameters.length;Qe++){var nn=n.parameters[Qe],Tn=nn.symbol,In=e.isJSDocParameterTag(nn)?nn.typeExpression&&nn.typeExpression.type:nn.type;if(Tn&&!!(Tn.flags&4)&&!e.isBindingPattern(nn.name)){var it=co(nn,Tn.escapedName,111551,void 0,void 0,!1);Tn=it}Qe===0&&Tn.escapedName==="this"?(A=!0,f=nn.symbol):r.push(Tn),In&&In.kind===186&&(i|=2);var pt=V_(nn)||nn.initializer||nn.questionToken||nn.dotDotDotToken||W&&r.length>W.arguments.length&&!In||je||Im(nn);pt||(s=r.length)}if((n.kind===162||n.kind===163)&&!$a(n)&&(!A||!f)){var St=n.kind===162?163:162,qt=e.getDeclarationOfKind(Yt(n),St);qt&&(f=mi(qt))}var hr=n.kind===161?sl(zr(n.parent.symbol)):void 0,lr=hr?hr.localTypeParameters:F_(n);(e.hasRestParameter(n)||e.isInJSFile(n)&&u1(n,r))&&(i|=1),t.resolvedSignature=Kc(n,lr,f,r,void 0,void 0,s,i)}return t.resolvedSignature}function u1(n,t){if(e.isJSDocSignature(n)||!U_(n))return!1;var r=e.lastOrUndefined(n.parameters),i=r?e.getJSDocParameterTags(r):e.getJSDocTags(n).filter(e.isJSDocParameterTag),s=e.firstDefined(i,function(A){return A.typeExpression&&e.isJSDocVariadicType(A.typeExpression.type)?A.typeExpression.type:void 0}),f=Va(3,"args",32768);return f.type=s?Os(ja(s.type)):gi,s&&t.pop(),t.push(f),!0}function ng(n){var t=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0,r=t&&t.typeExpression&&jd(ja(t.typeExpression));return r&&Yf(r)}function d1(n){var t=ng(n);return t&&Fi(t)}function U_(n){var t=Ir(n);return t.containsArgumentsReference===void 0&&(t.flags&8192?t.containsArgumentsReference=!0:t.containsArgumentsReference=r(n.body)),t.containsArgumentsReference;function r(i){if(!i)return!1;switch(i.kind){case 75:return i.escapedText==="arguments"&&e.isExpressionNode(i);case 158:case 160:case 162:case 163:return i.name.kind===153&&r(i.name);default:return!e.nodeStartsNewLexicalEnvironment(i)&&!e.isPartOfTypeNode(i)&&!!e.forEachChild(i,r)}}}function Qd(n){if(!n)return e.emptyArray;for(var t=[],r=0;r<n.declarations.length;r++){var i=n.declarations[r];if(!e.isFunctionLike(i))continue;if(r>0&&i.body){var s=n.declarations[r-1];if(i.parent===s.parent&&i.kind===s.kind&&i.pos===s.end)continue}t.push(pc(i))}return t}function f1(n){var t=Hr(n,n);if(t){var r=ti(t);if(r)return Hn(r)}return oe}function _d(n){if(n.thisParameter)return Hn(n.thisParameter)}function ul(n){if(!n.resolvedTypePredicate){if(n.target){var t=ul(n.target);n.resolvedTypePredicate=t?kx(t,n.mapper):ai}else if(n.unionSignatures)n.resolvedTypePredicate=Z1(n.unionSignatures)||ai;else{var r=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration),i=void 0;if(!r&&e.isInJSFile(n.declaration)){var s=ng(n.declaration);s&&n!==s&&(i=ul(s))}n.resolvedTypePredicate=r&&e.isTypePredicateNode(r)?p1(r,n):i||ai}e.Debug.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===ai?void 0:n.resolvedTypePredicate}function p1(n,t){var r=n.parameterName,i=n.type&&ja(n.type);return r.kind===182?Gp(n.assertsModifier?2:0,void 0,void 0,i):Gp(n.assertsModifier?3:1,r.escapedText,e.findIndex(t.parameters,function(s){return s.escapedName===r.escapedText}),i)}function Fi(n){if(!n.resolvedReturnType){if(!Qs(n,3))return ye;var t=n.target?Si(Fi(n.target),n.mapper):n.unionSignatures?jr(e.map(n.unionSignatures,Fi),2):Zd(n.declaration)||(e.nodeIsMissing(n.declaration.body)?oe:hh(n.declaration));if(n.flags&4?t=ob(t):n.flags&8&&(t=wu(t)),!Kl()){if(n.declaration){var r=e.getEffectiveReturnTypeNode(n.declaration);if(r)wn(r,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(ae){var i=n.declaration,s=e.getNameOfDeclaration(i);s?wn(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)):wn(i,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}t=oe}n.resolvedReturnType=t}return n.resolvedReturnType}function Zd(n){if(n.kind===161)return sl(zr(n.parent.symbol));if(e.isJSDocConstructSignature(n))return ja(n.parameters[0].type);var t=e.getEffectiveReturnTypeNode(n);if(t)return ja(t);if(n.kind===162&&!$a(n)){var r=e.isInJSFile(n)&&ql(n);if(r)return r;var i=e.getDeclarationOfKind(Yt(n),163),s=ra(i);if(s)return s}return d1(n)}function tg(n){return!n.resolvedReturnType&&oc(n,3)>=0}function m1(n){return j_(n)||oe}function j_(n){if(L(n)){var t=Hn(n.parameters[n.parameters.length-1]),r=Lo(t)?ju(t):t;return r&&ms(r,1)}return}function Bp(n,t,r,i){var s=rg(n,Gd(t,n.typeParameters,vu(n.typeParameters),r));if(i){var f=DE(Fi(s));if(f){var A=Jf(f);A.typeParameters=i;var W=Jf(s);return W.resolvedReturnType=Qf(A),W}}return s}function rg(n,t){var r=n.instantiations||(n.instantiations=e.createMap()),i=bu(t),s=r.get(i);return s||r.set(i,s=Nm(n,t)),s}function Nm(n,t){return nf(n,h1(n,t),!0)}function h1(n,t){return wl(n.typeParameters,t)}function Yf(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=g1(n)):n}function g1(n){return nf(n,Dv(n.typeParameters),!0)}function y1(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=_1(n)):n}function _1(n){return Bp(n,e.map(n.typeParameters,function(t){return t.target&&!ll(t.target)?t.target:t}),e.isInJSFile(n.declaration))}function ag(n){var t=n.typeParameters;if(t){var r=Dv(t),i=e.map(t,function(s){return Si(cl(s),r)||mn});return nf(n,wl(t,i),!0)}return n}function Qf(n){if(!n.isolatedSignatureType){var t=n.declaration?n.declaration.kind:0,r=t===161||t===165||t===170,i=ss(16);i.members=We,i.properties=e.emptyArray,i.callSignatures=r?e.emptyArray:[n],i.constructSignatures=r?[n]:e.emptyArray,n.isolatedSignatureType=i}return n.isolatedSignatureType}function W_(n){return n.members.get("__index")}function ig(n,t){var r=t===1?139:142,i=W_(n);if(i)for(var s=0,f=i.declarations;s<f.length;s++){var A=f[s],W=e.cast(A,e.isIndexSignatureDeclaration);if(W.parameters.length===1){var xe=W.parameters[0];if(xe.type&&xe.type.kind===r)return W}}return}function dl(n,t,r){return{type:n,isReadonly:t,declaration:r}}function Vp(n,t){var r=ig(n,t);return r?dl(r.type?ja(r.type):oe,e.hasModifier(r,64),r):void 0}function H_(n){return e.mapDefined(e.filter(n.symbol&&n.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function v1(n){var t;if(n.symbol)for(var r=0,i=n.symbol.declarations;r<i.length;r++){var s=i[r];if(s.parent.kind===180){var f=s.parent.parent;if(f.kind===168){var A=f,W=By(A);if(W){var xe=A.typeArguments.indexOf(s.parent);if(xe<W.length){var je=ll(W[xe]);if(je){var Qe=wl(W,vh(A,W)),nn=Si(je,Qe);nn!==n&&(t=e.append(t,nn))}}}}else f.kind===155&&f.dotDotDotToken&&(t=e.append(t,Os(mn)))}}return t&&Qi(t)}function Up(n){if(!n.constraint)if(n.target){var t=ll(n.target);n.constraint=t?Si(t,n.mapper):Ke}else{var r=H_(n);n.constraint=r?ja(r):v1(n)||Ke}return n.constraint===Ke?void 0:n.constraint}function K_(n){var t=e.getDeclarationOfKind(n.symbol,154),r=e.isJSDocTemplateTag(t.parent)?e.getHostSignatureFromJSDoc(t.parent):t.parent;return r&&Yt(r)}function bu(n){var t="";if(n)for(var r=n.length,i=0;i<r;){for(var s=n[i].id,f=1;i+f<r&&n[i+f].id===s+f;)f++;t.length&&(t+=","),t+=s,f>1&&(t+=":"+f),i+=f}return t}function og(n,t){for(var r=0,i=0,s=n;i<s.length;i++){var f=s[i];f.flags&t||(r|=e.getObjectFlags(f))}return r&1835008}function Eu(n,t){var r=bu(t),i=n.instantiations.get(r);return i||(i=ss(4,n.symbol),n.instantiations.set(r,i),i.objectFlags|=t?og(t,0):0,i.target=n,i.resolvedTypeArguments=t),i}function sg(n){var t=_a(n.flags);return t.symbol=n.symbol,t.objectFlags=n.objectFlags,t.target=n.target,t.resolvedTypeArguments=n.resolvedTypeArguments,t}function lg(n,t,r){var i=np(t),s=tp(i),f=ss(4,n.symbol);return f.target=n,f.node=t,f.mapper=r,f.aliasSymbol=i,f.aliasTypeArguments=r?Sd(s,r):s,f}function _o(n){var t,r;if(!n.resolvedTypeArguments){if(!Qs(n,7))return((t=n.target.localTypeParameters)===null||t===void 0?void 0:t.map(function(){return ye}))||e.emptyArray;var i=n.node,s=i?i.kind===168?e.concatenate(n.target.outerTypeParameters,vh(i,n.target.localTypeParameters)):i.kind===173?[ja(i.elementType)]:e.map(i.elementTypes,ja):e.emptyArray;Kl()?n.resolvedTypeArguments=n.mapper?Sd(s,n.mapper):s:(n.resolvedTypeArguments=((r=n.target.localTypeParameters)===null||r===void 0?void 0:r.map(function(){return ye}))||e.emptyArray,wn(n.node||Ae,n.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&wa(n.target.symbol)))}return n.resolvedTypeArguments}function vd(n){return e.length(n.target.typeParameters)}function q_(n,t){var r=yo(zr(t)),i=r.localTypeParameters;if(i){var s=e.length(n.typeArguments),f=vu(i),A=e.isInJSFile(n),W=!ae&&A;if(!W&&(s<f||s>i.length)){var xe=A&&e.isExpressionWithTypeArguments(n)&&!e.isJSDocAugmentsTag(n.parent),je=f===i.length?xe?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:xe?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,Qe=zt(r,void 0,2);if(wn(n,je,Qe,f,i.length),!A)return ye}if(n.kind===168&&dg(n))return lg(r,n,void 0);var nn=e.concatenate(r.outerTypeParameters,Gd(ug(n),i,f,A));return Eu(r,nn)}return rd(n,t)?r:ye}function Zf(n,t){var r=yo(n),i=ea(n),s=i.typeParameters,f=bu(t),A=i.instantiations.get(f);return A||i.instantiations.set(f,A=Si(r,wl(s,Gd(t,s,vu(s),e.isInJSFile(n.valueDeclaration))))),A}function b1(n,t){var r=yo(t),i=ea(t).typeParameters;if(i){var s=e.length(n.typeArguments),f=vu(i);return s<f||s>i.length?(wn(n,f===i.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),f,i.length),ye):Zf(t,ug(n))}return rd(n,t)?r:ye}function jp(n){switch(n.kind){case 168:return n.typeName;case 215:var t=n.expression;if(e.isEntityNameExpression(t))return t}return}function Wp(n,t,r){return n&&Dt(n,t,r)||pn}function Om(n,t){if(t===pn)return ye;if(t=fr(t)||t,t.flags&(32|64))return q_(n,t);if(t.flags&524288)return b1(n,t);var r=Rp(t);if(r)return rd(n,t)?r.flags&262144?Y_(r,n):js(r):ye;if(t.flags&111551&&cg(n)){var i=E1(n,t);return i||(Wp(jp(n),788968),Hn(t))}return ye}function E1(n,t){var r=Hn(t),i=r;if(t.valueDeclaration){var s=e.getRootDeclaration(t.valueDeclaration),f=!1;if(e.isVariableDeclaration(s)&&s.initializer){for(var A=s.initializer;e.isPropertyAccessExpression(A);)A=A.expression;f=e.isCallExpression(A)&&e.isRequireCall(A,!0)&&!!r.symbol}var W=t!==r.symbol&&zr(t)===r.symbol,xe=n.kind===187&&n.qualifier;r.symbol&&(f||xe||W)&&(i=Om(n,r.symbol))}return ea(t).resolvedJSDocType=i}function J_(n,t){if(t.flags&3||t===n)return n;var r=Bd(n)+">"+Bd(t),i=Sn.get(r);if(i)return i;var s=_a(33554432);return s.typeVariable=n,s.substitute=t,Sn.set(r,s),s}function z_(n){return n.kind===174&&n.elementTypes.length===1}function X_(n,t,r){return z_(t)&&z_(r)?X_(n,t.elementTypes[0],r.elementTypes[0]):Td(ja(t))===n?ja(r):void 0}function Y_(n,t){for(var r;t&&!e.isStatement(t)&&t.kind!==301;){var i=t.parent;if(i.kind===179&&t===i.trueType){var s=X_(n,i.checkType,i.extendsType);s&&(r=e.append(r,s))}t=i}return r?J_(n,Qi(e.append(r,n))):n}function cg(n){return!!(n.flags&4194304)&&(n.kind===168||n.kind===187)}function rd(n,t){return n.typeArguments?(wn(n,e.Diagnostics.Type_0_is_not_generic,t?wa(t):n.typeName?e.declarationNameToString(n.typeName):"(anonymous)"),!1):!0}function T1(n){if(e.isIdentifier(n.typeName)){var t=n.typeArguments;switch(n.typeName.escapedText){case"String":return rd(n),dt;case"Number":return rd(n),ot;case"Boolean":return rd(n),De;case"Void":return rd(n),_t;case"Undefined":return rd(n),un;case"Null":return rd(n),Vn;case"Function":case"function":return rd(n),Ri;case"Array":case"array":return(!t||!t.length)&&!ae?gi:void 0;case"Promise":case"promise":return(!t||!t.length)&&!ae?mh(oe):void 0;case"Object":if(t&&t.length===2){if(e.isJSDocIndexSignature(n)){var r=ja(t[0]),i=ja(t[1]),s=dl(i,!1);return Oo(void 0,We,e.emptyArray,e.emptyArray,r===dt?s:void 0,r===ot?s:void 0)}return oe}return rd(n),ae?void 0:oe}}}function S1(n){var t=ja(n.type);return a?Fg(t,65536):t}function Hp(n){var t=Ir(n);if(!t.resolvedType){var r=void 0,i=void 0,s=788968;cg(n)&&(i=T1(n),i||(r=Wp(jp(n),s,!0),r===pn?r=Wp(jp(n),s|111551):Wp(jp(n),s),i=Om(n,r))),i||(r=Wp(jp(n),s),i=Om(n,r)),t.resolvedSymbol=r,t.resolvedType=i}return t.resolvedType}function ug(n){return e.map(n.typeArguments,ja)}function Q_(n){var t=Ir(n);return t.resolvedType||(t.resolvedType=js(Ps(Pa(n.exprName)))),t.resolvedType}function Z_(n,t){function r(s){for(var f=s.declarations,A=0,W=f;A<W.length;A++){var xe=W[A];switch(xe.kind){case 244:case 245:case 247:return xe}}}if(!n)return t?yt:jn;var i=yo(n);return i.flags&524288?e.length(i.typeParameters)!==t?(wn(r(n),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(n),t),t?yt:jn):i:(wn(r(n),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(n)),t?yt:jn)}function $_(n,t){return gf(n,111551,t?e.Diagnostics.Cannot_find_global_value_0:void 0)}function x1(n,t){return gf(n,788968,t?e.Diagnostics.Cannot_find_global_type_0:void 0)}function gf(n,t,r){return co(void 0,n,t,r,n,!1)}function fs(n,t,r){var i=x1(n,r);return i||r?Z_(i,t):void 0}function w1(){return Pt||(Pt=fs("TypedPropertyDescriptor",1,!0))||yt}function A1(){return rn||(rn=fs("TemplateStringsArray",0,!0))||jn}function k1(){return Cn||(Cn=fs("ImportMeta",0,!0))||jn}function ev(n){return Ln||(Ln=$_("Symbol",n))}function nv(n){return Bn||(Bn=fs("Symbol",0,n))||jn}function Pm(n){return rr||(rr=fs("Promise",1,n))||yt}function C1(n){return cr||(cr=fs("PromiseLike",1,n))||yt}function tv(n){return Cr||(Cr=$_("Promise",n))}function D1(n){return Ya||(Ya=fs("PromiseConstructorLike",0,n))||jn}function L1(n){return ge||(ge=fs("AsyncIterable",1,n))||yt}function I1(n){return hn||(hn=fs("AsyncIterator",3,n))||yt}function N1(n){return Jn||(Jn=fs("AsyncIterableIterator",1,n))||yt}function O1(n){return ue||(ue=fs("AsyncGenerator",3,n))||yt}function rv(n){return Oa||(Oa=fs("Iterable",1,n))||yt}function P1(n){return Ni||(Ni=fs("Iterator",3,n))||yt}function M1(n){return ii||(ii=fs("IterableIterator",1,n))||yt}function R1(n){return _i||(_i=fs("Generator",3,n))||yt}function F1(n){return Ye||(Ye=fs("IteratorYieldResult",1,n))||yt}function G1(n){return zn||(zn=fs("IteratorReturnResult",1,n))||yt}function av(n,t){t===void 0&&(t=0);var r=gf(n,788968,void 0);return r&&Z_(r,t)}function B1(){return Zn||(Zn=gf("Extract",524288,e.Diagnostics.Cannot_find_global_type_0))}function V1(){return lt||(lt=gf("Omit",524288,e.Diagnostics.Cannot_find_global_type_0))}function U1(n){return Rt||(Rt=fs("BigInt",0,n))||jn}function $f(n,t){return n!==yt?Eu(n,t):jn}function iv(n){return $f(w1(),[n])}function j1(n){return $f(rv(!0),[n])}function Os(n,t){return $f(t?Jr:_r,[n])}function W1(n){var t=K1(n.parent);if(n.kind===173||n.elementTypes.length===1&&n.elementTypes[0].kind===176)return t?Jr:_r;var r=e.lastOrUndefined(n.elementTypes),i=r&&r.kind===176?r:void 0,s=e.findLastIndex(n.elementTypes,function(f){return f.kind!==175&&f!==i})+1;return ov(n.elementTypes.length,s,!!i,t,void 0)}function dg(n){var t=n.parent;switch(t.kind){case 181:case 168:case 177:case 178:case 184:case 179:case 183:return dg(t);case 246:return!0}return!1}function H1(n){var t=Ir(n);if(!t.resolvedType){var r=W1(n);if(r===yt)t.resolvedType=jn;else if(dg(n))t.resolvedType=n.kind===174&&n.elementTypes.length===0?r:lg(r,n,void 0);else{var i=n.kind===173?[ja(n.elementType)]:e.map(n.elementTypes,ja);t.resolvedType=Eu(r,i)}}return t.resolvedType}function K1(n){return e.isTypeOperatorNode(n)&&n.operator===137}function q1(n,t,r,i,s){var f,A=[],W=r?n-1:n;if(n){f=new Array(n);for(var xe=0;xe<n;xe++){var je=f[xe]=il();if(xe<W){var Qe=Va(4|(xe>=t?16777216:0),""+xe,i?8:0);Qe.type=je,A.push(Qe)}}}for(var nn=[],xe=t;xe<=W;xe++)nn.push(rs(xe));var Tn=Va(4,"length");Tn.type=r?ot:jr(nn),A.push(Tn);var In=ss(8|4);return In.typeParameters=f,In.outerTypeParameters=void 0,In.localTypeParameters=f,In.instantiations=e.createMap(),In.instantiations.set(bu(In.typeParameters),In),In.target=In,In.resolvedTypeArguments=In.typeParameters,In.thisType=il(),In.thisType.isThisType=!0,In.thisType.constraint=In,In.declaredProperties=A,In.declaredCallSignatures=e.emptyArray,In.declaredConstructSignatures=e.emptyArray,In.declaredStringIndexInfo=void 0,In.declaredNumberIndexInfo=void 0,In.minLength=t,In.hasRestElement=r,In.readonly=i,In.associatedNames=s,In}function ov(n,t,r,i,s){var f=n+(r?"+":",")+t+(i?"R":"")+(s&&s.length?","+s.join(","):""),A=ee.get(f);return A||ee.set(f,A=q1(n,t,r,i,s)),A}function Gu(n,t,r,i,s){t===void 0&&(t=n.length),r===void 0&&(r=!1),i===void 0&&(i=!1);var f=n.length;if(f===1&&r)return Os(n[0],i);var A=ov(f,t,f>0&&r,i,s);return n.length?Eu(A,n):A}function sv(n,t){var r=n.target;return r.hasRestElement&&(t=Math.min(t,vd(n)-1)),Gu(_o(n).slice(t),Math.max(0,r.minLength-t),r.hasRestElement,r.readonly,r.associatedNames&&r.associatedNames.slice(t))}function J1(n){var t=ja(n.type);return a?wu(t):t}function Bd(n){return n.id}function yf(n,t){return e.binarySearch(n,t,Bd,e.compareValues)>=0}function lv(n,t){var r=e.binarySearch(n,t,Bd,e.compareValues);return r<0?(n.splice(~r,0,t),!0):!1}function z1(n,t,r){var i=r.flags;if(i&1048576)return cv(n,t,r.types);if(!(i&131072))if(t|=i&68943871,i&66846720&&(t|=262144),r===yn&&(t|=4194304),!a&&i&98304)e.getObjectFlags(r)&262144||(t|=2097152);else{var s=n.length,f=s&&r.id>n[s-1].id?~s:e.binarySearch(n,r,Bd,e.compareValues);f<0&&n.splice(~f,0,r)}return t}function cv(n,t,r){for(var i=0,s=r;i<s.length;i++){var f=s[i];t=z1(n,t,f)}return t}function X1(n){var t=n[0];if(t.flags&1024){for(var r=xs(t.symbol),i=1;i<n.length;i++){var s=n[i];if(!(s.flags&1024)||r!==xs(s.symbol))return!1}return!0}return!1}function Y1(n,t){var r=n.length;if(r===0||X1(n))return!0;for(var i=r,s=0;i>0;){i--;for(var f=n[i],A=0,W=n;A<W.length;A++){var xe=W[A];if(f!==xe){if(s===1e5){var je=s/(r-i)*r;if(je>(t?25e6:1e6))return wn(Ae,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1}if(s++,Su(f,xe)&&(!(e.getObjectFlags(Ta(f))&1)||!(e.getObjectFlags(Ta(xe))&1)||ap(f,xe))){e.orderedRemoveItemAt(n,i);break}}}}return!0}function Q1(n,t){for(var r=n.length;r>0;){r--;var i=n[r],s=i.flags&128&&t&4||i.flags&256&&t&8||i.flags&2048&&t&64||i.flags&8192&&t&4096||Bu(i)&&yf(n,i.regularType);s&&e.orderedRemoveItemAt(n,r)}}function jr(n,t,r,i){if(t===void 0&&(t=1),n.length===0)return It;if(n.length===1)return n[0];var s=[],f=cv(s,0,n);if(t!==0){if(f&3)return f&1?f&4194304?yn:oe:mn;switch(t){case 1:f&(2944|8192)&&Q1(s,f);break;case 2:if(!Y1(s,!(f&262144)))return ye;break}if(s.length===0)return f&65536?f&2097152?Vn:ut:f&32768?f&2097152?un:Mn:It}return pg(s,f&66994211?0:131072,r,i)}function Z1(n){for(var t,r=[],i=0,s=n;i<s.length;i++){var f=s[i],A=ul(f);if(!A||A.kind===2||A.kind===3)continue;if(t){if(!fg(t,A))return}else t=A;r.push(A.type)}if(!t)return;var W=jr(r);return Gp(t.kind,t.parameterName,t.parameterIndex,W)}function fg(n,t){return n.kind===t.kind&&n.parameterIndex===t.parameterIndex}function pg(n,t,r,i){if(n.length===0)return It;if(n.length===1)return n[0];var s=bu(n),f=Te.get(s);return f||(f=_a(1048576),Te.set(s,f),f.objectFlags=t|og(n,98304),f.types=n,f.aliasSymbol=r,f.aliasTypeArguments=i),f}function $1(n){var t=Ir(n);if(!t.resolvedType){var r=np(n);t.resolvedType=jr(e.map(n.types,ja),1,r,tp(r))}return t.resolvedType}function ex(n,t,r){var i=r.flags;return i&2097152?uv(n,t,r.types):(qv(r)?t&8388608||(t|=8388608,n.set(r.id.toString(),r)):(i&3?r===yn&&(t|=4194304):(a||!(i&98304))&&!n.has(r.id.toString())&&(r.flags&109440&&t&109440&&(t|=67108864),n.set(r.id.toString(),r)),t|=i&68943871),t)}function uv(n,t,r){for(var i=0,s=r;i<s.length;i++){var f=s[i];t=ex(n,t,js(f))}return t}function nx(n,t){for(var r=n.length;r>0;){r--;var i=n[r],s=i.flags&4&&t&128||i.flags&8&&t&256||i.flags&64&&t&2048||i.flags&4096&&t&8192;s&&e.orderedRemoveItemAt(n,r)}}function tx(n,t){for(var r=0,i=n;r<i.length;r++){var s=i[r];if(!yf(s.types,t)){var f=t.flags&128?dt:t.flags&256?ot:t.flags&2048?ct:t.flags&8192?_n:void 0;if(!f||!yf(s.types,f))return!1}}return!0}function dv(n,t){if(e.every(n,function(i){return!!(i.flags&1048576)&&e.some(i.types,function(s){return!!(s.flags&t)})})){for(var r=0;r<n.length;r++)n[r]=gs(n[r],function(i){return!(i.flags&t)});return!0}return!1}function rx(n){var t,r=e.findIndex(n,function(Tn){return!!(e.getObjectFlags(Tn)&131072)});if(r<0)return!1;for(var i=r+1;i<n.length;){var s=n[i];e.getObjectFlags(s)&131072?((t||(t=[n[r]])).push(s),e.orderedRemoveItemAt(n,i)):i++}if(!t)return!1;for(var f=[],A=[],W=0,xe=t;W<xe.length;W++)for(var je=xe[W],Qe=0,nn=je.types;Qe<nn.length;Qe++){var s=nn[Qe];lv(f,s)&&(tx(t,s)&&lv(A,s))}return n[r]=pg(A,131072),!0}function ax(n,t,r){var i=_a(2097152);return i.objectFlags=og(n,98304),i.types=n,i.aliasSymbol=t,i.aliasTypeArguments=r,i}function Qi(n,t,r){var i=e.createMap(),s=uv(i,0,n),f=e.arrayFrom(i.values());if(s&131072||a&&s&98304&&s&(524288|67108864|8388608)||s&67108864&&s&(67238908&~67108864)||s&132&&s&(67238908&~132)||s&296&&s&(67238908&~296)||s&2112&&s&(67238908&~2112)||s&12288&&s&(67238908&~12288)||s&49152&&s&(67238908&~49152))return It;if(s&1)return s&4194304?yn:oe;if(!a&&s&98304)return s&32768?un:Vn;if((s&4&&s&128||s&8&&s&256||s&64&&s&2048||s&4096&&s&8192)&&nx(f,s),s&8388608&&s&524288&&e.orderedRemoveItemAt(f,e.findIndex(f,qv)),f.length===0)return mn;if(f.length===1)return f[0];var A=bu(f),W=Ne.get(A);if(!W){if(s&1048576)if(rx(f))W=Qi(f,t,r);else if(dv(f,32768))W=jr([Qi(f),un],1,t,r);else if(dv(f,65536))W=jr([Qi(f),Vn],1,t,r);else{var xe=e.reduceLeft(f,function(nn,Tn){return nn*(Tn.flags&1048576?Tn.types.length:1)},1);if(xe>=1e5)return wn(Ae,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),ye;var je=e.findIndex(f,function(nn){return(nn.flags&1048576)!==0}),Qe=f[je];W=jr(e.map(Qe.types,function(nn){return Qi(e.replaceElement(f,je,nn))}),1,t,r)}else W=ax(f,t,r);Ne.set(A,W)}return W}function ix(n){var t=Ir(n);if(!t.resolvedType){var r=np(n);t.resolvedType=Qi(e.map(n.types,ja),r,tp(r))}return t.resolvedType}function fv(n,t){var r=_a(4194304);return r.type=n,r.stringsOnly=t,r}function ox(n,t){return t?n.resolvedStringIndexType||(n.resolvedStringIndexType=fv(n,!0)):n.resolvedIndexType||(n.resolvedIndexType=fv(n,!1))}function bd(n){return e.isIdentifier(n)?rs(e.unescapeLeadingUnderscores(n.escapedText)):js(e.isComputedPropertyName(n)?Ku(n):Pa(n))}function sx(n){return rs({negative:!1,base10Value:e.parsePseudoBigInt(n.text)})}function Mm(n,t){if(!(e.getDeclarationModifierFlagsFromSymbol(n)&24)){var r=hf(n).nameType;if(!r&&!e.isKnownSymbol(n))if(n.escapedName==="default")r=rs("default");else{var i=n.valueDeclaration&&e.getNameOfDeclaration(n.valueDeclaration);r=i&&bd(i)||rs(e.symbolName(n))}if(r&&r.flags&t)return r}return It}function Rm(n,t){return jr(e.map(oo(n),function(r){return Mm(r,t)}))}function pv(n){var t=Xi(n,1);return t!==Xa?t:void 0}function zc(n,t,r){return t===void 0&&(t=Le),n.flags&1048576?Qi(e.map(n.types,function(i){return zc(i,t,r)})):n.flags&2097152?jr(e.map(n.types,function(i){return zc(i,t,r)})):wo(n,58982400)?ox(n,t):e.getObjectFlags(n)&32?gs(dc(n),function(i){return!(r&&i.flags&(1|4))}):n===yn?yn:n.flags&2?It:n.flags&(1|131072)?ba:t?!r&&Xi(n,0)?dt:Rm(n,128):!r&&Xi(n,0)?jr([dt,ot,Rm(n,8192)]):pv(n)?jr([ot,Rm(n,128|8192)]):Rm(n,8576)}function mv(n){if(Le)return n;var t=B1();return t?Zf(t,[n,dt]):dt}function lx(n){var t=mv(zc(n));return t.flags&131072?dt:t}function cx(n){var t=Ir(n);if(!t.resolvedType)switch(n.operator){case 133:t.resolvedType=zc(ja(n.type));break;case 146:t.resolvedType=n.type.kind===143?Cv(e.walkUpParenthesizedTypes(n.parent)):ye;break;case 137:t.resolvedType=ja(n.type);break;default:throw e.Debug.assertNever(n.operator)}return t.resolvedType}function ux(n,t){var r=_a(8388608);return r.objectType=n,r.indexType=t,r}function ep(n){return ae?!1:e.getObjectFlags(n)&16384?!0:n.flags&1048576?e.every(n.types,ep):n.flags&2097152?e.some(n.types,ep):n.flags&63176704?ep(Yh(n)):!1}function hv(n,t){var r=t&&t.kind===194?t:void 0;return er(n)?Po(n):r&&AE(r.argumentExpression,n,!1)?e.getPropertyNameForKnownSymbolName(e.idText(r.argumentExpression.name)):t&&e.isPropertyName(t)?e.getPropertyNameForPropertyNameNode(t):void 0}function gv(n,t,r,i,s,f,A){var W=f&&f.kind===194?f:void 0,xe=hv(r,f);if(xe!==void 0){var je=Ji(t,xe);if(je){if(W){if(lh(je,W,W.expression.kind===103),e.isAssignmentTarget(W)&&(iT(W,je)||oT(W))){wn(W.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,wa(je));return}A&4&&(Ir(f).resolvedSymbol=je)}var Qe=Hn(je);return W&&e.getAssignmentTargetKind(W)!==1?kd(W,Qe):Qe}if(Sf(t,Lo)&&Cl(xe)&&+xe>=0){if(f&&Sf(t,function(lr){return!lr.target.hasRestElement})&&!(A&8)){var nn=mg(f);Lo(t)?wn(nn,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,zt(t),vd(t),e.unescapeLeadingUnderscores(xe)):wn(nn,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(xe),zt(t))}return hr(Xi(t,1)),Ws(t,function(lr){return ju(lr)||un})}}if(!(r.flags&98304)&&Jo(r,132|296|12288)){if(t.flags&(1|131072))return t;var Tn=Xi(t,0),In=Jo(r,296)&&Xi(t,1)||Tn;if(In){if(A&1&&In===Tn){W&&wn(W,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,zt(r),zt(n));return}if(f&&!Jo(r,4|8)){var nn=mg(f);return wn(nn,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,zt(r)),In.type}return hr(In),In.type}if(r.flags&131072)return It;if(ep(t))return oe;if(W&&!Py(t)){if(t.symbol===sn&&xe!==void 0&&sn.exports.has(xe)&&sn.exports.get(xe).flags&418)wn(W,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(xe),zt(t));else if(ae&&!Ge.suppressImplicitAnyIndexErrors&&!s)if(xe!==void 0&&EE(xe,t))wn(W,e.Diagnostics.Property_0_is_a_static_member_of_type_1,xe,zt(t));else if(ms(t,1))wn(W.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var it=void 0;if(xe!==void 0&&(it=Ey(xe,t)))it!==void 0&&wn(W.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,xe,zt(t),it);else{var pt=v2(t,W);if(pt!==void 0)wn(W,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,zt(t),pt);else{var St=void 0;if(r.flags&1024)St=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+zt(r)+"]",zt(t));else if(r.flags&8192){var qt=Wn(r.symbol,W);St=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+qt+"]",zt(t))}else r.flags&128||r.flags&256?St=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,zt(t)):r.flags&(8|4)&&(St=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,zt(r),zt(t)));St=e.chainDiagnosticMessages(St,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,zt(i),zt(t)),Qn.add(e.createDiagnosticForNodeFromMessageChain(W,St))}}}return}}if(ep(t))return oe;if(f){var nn=mg(f);r.flags&(128|256)?wn(nn,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,zt(t)):r.flags&(4|8)?wn(nn,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,zt(t),zt(r)):wn(nn,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,zt(r))}if(Bi(r))return r;return;function hr(lr){lr&&lr.isReadonly&&W&&(e.isAssignmentTarget(W)||e.isDeleteTarget(W))&&wn(W,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,zt(t))}}function mg(n){return n.kind===194?n.argumentExpression:n.kind===184?n.indexType:n.kind===153?n.expression:n}function $d(n){return wo(n,58982400|131072)}function Kp(n){return wo(n,58982400|4194304)}function qp(n){return!!(n.flags&262144&&n.isThisType)}function Cc(n,t){return n.flags&8388608?fx(n,t):n.flags&16777216?px(n,t):n}function yv(n,t,r){if(n.flags&3145728){var i=e.map(n.types,function(s){return Cc(xl(s,t),r)});return n.flags&2097152||r?Qi(i):jr(i)}}function dx(n,t,r){if(t.flags&1048576){var i=e.map(t.types,function(s){return Cc(xl(n,s),r)});return r?Qi(i):jr(i)}}function fx(n,t){var r=t?"simplifiedForWriting":"simplifiedForReading";if(n[r])return n[r]===Rn?n:n[r];n[r]=Rn;var i=Cc(n.objectType,t),s=Cc(n.indexType,t),f=dx(i,s,t);if(f)return n[r]=f;if(!(s.flags&63176704)){var A=yv(i,s,t);if(A)return n[r]=A}return Fl(i)?n[r]=Ws(vv(i,n.indexType),function(W){return Cc(W,t)}):n[r]=n}function px(n,t){var r=n.checkType,i=n.extendsType,s=ad(n),f=id(n);if(f.flags&131072&&Td(s)===Td(r)){if(r.flags&1||Hi(tf(r),tf(i)))return Cc(s,t);if(_v(r,i))return It}else if(s.flags&131072&&Td(f)===Td(r)){if(!(r.flags&1)&&Hi(tf(r),tf(i)))return It;if(r.flags&1||_v(r,i))return Cc(f,t)}return n}function _v(n,t){return!!(jr([zf(n,t),It]).flags&131072)}function vv(n,t){var r=wl([Fu(n)],[t]),i=Tu(n.mapper,r);return Si(qc(n),i)}function xl(n,t,r){return Ed(n,t,r,0)||(r?ye:mn)}function Ed(n,t,r,i){if(i===void 0&&(i=0),n===yn||t===yn)return yn;if(Jv(n)&&!(t.flags&98304)&&Jo(t,4|8)&&(t=dt),Kp(t)||!(r&&r.kind!==184)&&$d(n)){if(n.flags&3)return n;var s=n.id+","+t.id,f=bn.get(s);return f||bn.set(s,f=ux(n,t)),f}var A=ds(n);if(t.flags&1048576&&!(t.flags&16)){for(var W=[],xe=!1,je=0,Qe=t.types;je<Qe.length;je++){var nn=Qe[je],Tn=gv(n,A,nn,t,xe,r,i);if(Tn)W.push(Tn);else if(r)xe=!0;else return}return xe?void 0:i&2?Qi(W):jr(W)}return gv(n,A,t,t,!1,r,i|4)}function bv(n){var t=Ir(n);if(!t.resolvedType){var r=ja(n.objectType),i=ja(n.indexType),s=xl(r,i,n);t.resolvedType=s.flags&8388608&&s.objectType===r&&s.indexType===i?Y_(s,n):s}return t.resolvedType}function hg(n){var t=Ir(n);if(!t.resolvedType){var r=ss(32,n.symbol);r.declaration=n,r.aliasSymbol=np(n),r.aliasTypeArguments=tp(r.aliasSymbol),t.resolvedType=r,dc(r)}return t.resolvedType}function Td(n){return n.flags&33554432?n.typeVariable:n.flags&8388608&&(n.objectType.flags&33554432||n.indexType.flags&33554432)?xl(Td(n.objectType),Td(n.indexType)):n}function gg(n,t){var r=Si(n.checkType,t),i=Si(n.extendsType,t);if(r===yn||i===yn)return yn;var s=wo(r,63176704|131072),f;if(n.inferTypeParameters){var A=lp(n.inferTypeParameters,void 0,0);s||Dc(A.inferences,r,i,64|128),f=Tu(t,A.mapper)}var W=f?Si(n.extendsType,f):i;if(!s&&!wo(W,63176704|131072)){if(W.flags&3)return Si(n.trueType,f||t);if(r.flags&1)return jr([Si(n.trueType,f||t),Si(n.falseType,t)]);if(!Hi(Mv(r),Mv(W)))return Si(n.falseType,t);if(Hi(tf(r),tf(W)))return Si(n.trueType,f||t)}var xe=Td(r),je=_a(16777216);return je.root=n,je.checkType=xe,je.extendsType=i,je.mapper=t,je.combinedMapper=f,je.aliasSymbol=n.aliasSymbol,je.aliasTypeArguments=Sd(n.aliasTypeArguments,t),je}function ad(n){return n.resolvedTrueType||(n.resolvedTrueType=Si(n.root.trueType,n.mapper))}function id(n){return n.resolvedFalseType||(n.resolvedFalseType=Si(n.root.falseType,n.mapper))}function mx(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?Si(n.root.trueType,n.combinedMapper):ad(n))}function Ev(n){var t;return n.locals&&n.locals.forEach(function(r){r.flags&262144&&(t=e.append(t,yo(r)))}),t}function hx(n){var t=Ir(n);if(!t.resolvedType){var r=ja(n.checkType),i=np(n),s=tp(i),f=Ci(n,!0),A=s?f:e.filter(f,function(xe){return Nv(xe,n)}),W={node:n,checkType:r,extendsType:ja(n.extendsType),trueType:ja(n.trueType),falseType:ja(n.falseType),isDistributive:!!(r.flags&262144),inferTypeParameters:Ev(n),outerTypeParameters:A,instantiations:void 0,aliasSymbol:i,aliasTypeArguments:s};t.resolvedType=gg(W,void 0),A&&(W.instantiations=e.createMap(),W.instantiations.set(bu(A),t.resolvedType))}return t.resolvedType}function gx(n){var t=Ir(n);return t.resolvedType||(t.resolvedType=Rd(Yt(n.typeParameter))),t.resolvedType}function Tv(n){return e.isIdentifier(n)?[n]:e.append(Tv(n.left),n.right)}function yx(n){var t=Ir(n);if(!t.resolvedType){if(n.isTypeOf&&n.typeArguments)return wn(n,e.Diagnostics.Type_arguments_cannot_be_used_here),t.resolvedSymbol=pn,t.resolvedType=ye;if(!e.isLiteralImportTypeNode(n))return wn(n.argument,e.Diagnostics.String_literal_expected),t.resolvedSymbol=pn,t.resolvedType=ye;var r=n.isTypeOf?111551:n.flags&4194304?111551|788968:788968,i=Hr(n,n.argument.literal);if(!i)return t.resolvedSymbol=pn,t.resolvedType=ye;var s=ti(i,!1);if(e.nodeIsMissing(n.qualifier))if(s.flags&r)t.resolvedType=Sv(n,t,s,r);else{var Qe=r===111551?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;wn(n,Qe,n.argument.literal.text),t.resolvedSymbol=pn,t.resolvedType=ye}else{for(var f=Tv(n.qualifier),A=s,W=void 0;W=f.shift();){var xe=f.length?1920:r,je=Uo(ri(zr(E(A))),W.escapedText,xe);if(!je)return wn(W,e.Diagnostics.Namespace_0_has_no_exported_member_1,Wn(A),e.declarationNameToString(W)),t.resolvedType=ye;Ir(W).resolvedSymbol=je,Ir(W.parent).resolvedSymbol=je,A=je}t.resolvedType=Sv(n,t,A,r)}}return t.resolvedType}function Sv(n,t,r,i){var s=E(r);return t.resolvedSymbol=s,i===111551?Hn(r):Om(n,s)}function xv(n){var t=Ir(n);if(!t.resolvedType){var r=np(n);if(yu(n.symbol).size===0&&!r)t.resolvedType=Tt;else{var i=ss(16,n.symbol);i.aliasSymbol=r,i.aliasTypeArguments=tp(r),e.isJSDocTypeLiteral(n)&&n.isArrayType&&(i=Os(i)),t.resolvedType=i}}return t.resolvedType}function np(n){for(var t=n.parent;e.isParenthesizedTypeNode(t)||e.isTypeOperatorNode(t)&&t.operator===137;)t=t.parent;return e.isTypeAlias(t)?Yt(t):void 0}function tp(n){return n?qo(n):void 0}function wv(n){return!!(n.flags&524288)&&!Fl(n)}function od(n,t,r,i,s){if(n.flags&1||t.flags&1)return oe;if(n.flags&2||t.flags&2)return mn;if(n.flags&131072)return t;if(t.flags&131072)return n;if(n.flags&1048576)return Ws(n,function(Mr){return od(Mr,t,r,i,s)});if(t.flags&1048576)return Ws(t,function(Mr){return od(n,Mr,r,i,s)});if(t.flags&(528|296|2112|132|1056|67108864|4194304))return n;if($d(n)||$d(t)){if(Uu(n))return t;if(n.flags&2097152){var f=n.types,A=f[f.length-1];if(wv(A)&&wv(t))return Qi(e.concatenate(f.slice(0,f.length-1),[od(A,t,r,i,s)]))}return Qi([n,t])}var W=e.createSymbolTable(),xe=e.createUnderscoreEscapedMap(),je,Qe;n===jn?(je=Xi(t,0),Qe=Xi(t,1)):(je=x_(Xi(n,0),Xi(t,0)),Qe=x_(Xi(n,1),Xi(t,1)));for(var nn=0,Tn=oo(t);nn<Tn.length;nn++){var In=Tn[nn];e.getDeclarationModifierFlagsFromSymbol(In)&(8|16)?xe.set(In.escapedName,!0):yg(In)&&W.set(In.escapedName,_g(In,s))}for(var it=0,pt=oo(n);it<pt.length;it++){var St=pt[it];if(xe.has(St.escapedName)||!yg(St))continue;if(W.has(St.escapedName)){var In=W.get(St.escapedName),qt=Hn(In);if(In.flags&16777216){var hr=e.concatenate(St.declarations,In.declarations),lr=4|St.flags&16777216,Tr=Va(lr,St.escapedName);Tr.type=jr([Hn(St),hs(qt,524288)]),Tr.leftSpread=St,Tr.rightSpread=In,Tr.declarations=hr,Tr.nameType=St.nameType,W.set(St.escapedName,Tr)}}else W.set(St.escapedName,_g(St,s))}var na=Oo(r,W,e.emptyArray,e.emptyArray,Av(je,s),Av(Qe,s));return na.objectFlags|=128|524288|1024|i,na}function yg(n){return!(n.flags&(8192|32768|65536))||!n.declarations.some(function(t){return e.isClassLike(t.parent)})}function _g(n,t){var r=n.flags&65536&&!(n.flags&32768);if(!r&&t===$c(n))return n;var i=4|n.flags&16777216,s=Va(i,n.escapedName,t?8:0);return s.type=r?un:Hn(n),s.declarations=n.declarations,s.nameType=n.nameType,s.syntheticOrigin=n,s}function Av(n,t){return n&&n.isReadonly!==t?dl(n.type,t,n.declaration):n}function kv(n,t,r){var i=_a(n);return i.symbol=r,i.value=t,i}function ef(n){if(n.flags&2944){if(!n.freshType){var t=kv(n.flags,n.value,n.symbol);t.regularType=n,t.freshType=t,n.freshType=t}return n.freshType}return n}function js(n){return n.flags&2944?n.regularType:n.flags&1048576?jr(e.sameMap(n.types,js)):n}function Bu(n){return!!(n.flags&2944)&&n.freshType===n}function rs(n,t,r){var i=typeof n=="number"?"#":typeof n=="string"?"@":"n",s=(t||"")+i+(typeof n=="object"?e.pseudoBigIntToString(n):n),f=ze.get(s);if(!f){var A=(typeof n=="number"?256:typeof n=="string"?128:2048)|(t?1024:0);ze.set(s,f=kv(A,n,r)),f.regularType=f}return f}function _x(n){var t=Ir(n);return t.resolvedType||(t.resolvedType=js(Pa(n.literal))),t.resolvedType}function vx(n){var t=_a(8192);return t.symbol=n,t.escapedName="__@"+t.symbol.escapedName+"@"+fe(t.symbol),t}function Cv(n){if(e.isValidESSymbolDeclaration(n)){var t=Yt(n),r=ea(t);return r.uniqueESSymbolType||(r.uniqueESSymbolType=vx(t))}return _n}function bx(n){var t=e.getThisContainer(n,!1),r=t&&t.parent;if(r&&(e.isClassLike(r)||r.kind===245)&&(!e.hasModifier(t,32)&&(!e.isConstructorDeclaration(t)||e.isNodeDescendantOf(n,t.body))))return sl(Yt(r)).thisType;if(r&&e.isObjectLiteralExpression(r)&&e.isBinaryExpression(r.parent)&&e.getAssignmentDeclarationKind(r.parent)===6)return sl(Yt(r.parent.left).parent).thisType;var i=n.flags&4194304?e.getHostSignatureFromJSDoc(n):void 0;return i&&e.isFunctionExpression(i)&&e.isBinaryExpression(i.parent)&&e.getAssignmentDeclarationKind(i.parent)===3?sl(Yt(i.parent.left).parent).thisType:Zc(t)&&e.isNodeDescendantOf(n,t.body)?sl(Yt(t)).thisType:(wn(n,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),ye)}function Fm(n){var t=Ir(n);return t.resolvedType||(t.resolvedType=bx(n)),t.resolvedType}function ja(n){switch(n.kind){case 124:case 293:case 294:return oe;case 147:return mn;case 142:return dt;case 139:return ot;case 150:return ct;case 127:return De;case 143:return _n;case 109:return _t;case 145:return un;case 99:return Vn;case 136:return It;case 140:return n.flags&131072?oe:Wr;case 182:case 103:return Fm(n);case 186:return _x(n);case 168:return Hp(n);case 167:return n.assertsModifier?_t:De;case 215:return Hp(n);case 171:return Q_(n);case 173:case 174:return H1(n);case 175:return J1(n);case 177:return $1(n);case 178:return ix(n);case 295:return S1(n);case 297:return ol(ja(n.type));case 181:case 296:case 292:return ja(n.type);case 176:return jm(ja(n.type))||ye;case 299:return _0(n);case 169:case 170:case 172:case 302:case 298:case 303:return xv(n);case 183:return cx(n);case 184:return bv(n);case 185:return hg(n);case 179:return hx(n);case 180:return gx(n);case 187:return yx(n);case 75:case 152:var t=ud(n);return t?yo(t):ye;default:return ye}}function vg(n,t,r){if(n&&n.length)for(var i=0;i<n.length;i++){var s=n[i],f=r(s,t);if(s!==f){var A=i===0?[]:n.slice(0,i);for(A.push(f),i++;i<n.length;i++)A.push(r(n[i],t));return A}}return n}function Sd(n,t){return vg(n,t,Si)}function Gm(n,t){return vg(n,t,nf)}function _f(n,t){return function(r){return r===n?t:r}}function Ex(n,t,r,i){return function(s){return s===n?t:s===r?i:s}}function Tx(n,t){return function(r){for(var i=0;i<n.length;i++)if(r===n[i])return t?t[i]:oe;return r}}function wl(n,t){return e.Debug.assert(t===void 0||n.length===t.length),n.length===1?_f(n[0],t?t[0]:oe):n.length===2?Ex(n[0],t?t[0]:oe,n[1],t?t[1]:oe):Tx(n,t)}function Dv(n){return wl(n,void 0)}function Sx(n,t){return function(r){return e.findIndex(n.inferences,function(i){return i.typeParameter===r})>=t?mn:r}}function Tu(n,t){return n?t?function(r){return Si(n(r),t)}:n:t}function Lv(n,t,r){return function(i){return i===n?t:r(i)}}function xx(n){return n.flags&262144?yn:n}function wx(n){return n.constraint===mn?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=il(n.symbol),n.restrictiveInstantiation.constraint=mn,n.restrictiveInstantiation)}function Ax(n){return n.flags&262144?wx(n):n}function Iv(n){var t=il(n.symbol);return t.target=n,t}function kx(n,t){return Gp(n.kind,n.parameterName,n.parameterIndex,Si(n.type,t))}function nf(n,t,r){var i;if(n.typeParameters&&!r){i=e.map(n.typeParameters,Iv),t=Tu(wl(n.typeParameters,i),t);for(var s=0,f=i;s<f.length;s++){var A=f[s];A.mapper=t}}var W=Kc(n.declaration,i,n.thisParameter&&bg(n.thisParameter,t),vg(n.parameters,t,bg),void 0,void 0,n.minArgumentCount,n.flags&3);return W.target=n,W.mapper=t,W}function bg(n,t){var r=ea(n);if(r.type&&!wo(r.type,524288|63176704))return n;e.getCheckFlags(n)&1&&(n=r.target,t=Tu(r.mapper,t));var i=Va(n.flags,n.escapedName,1|e.getCheckFlags(n)&(8|4096|16384|32768));return i.declarations=n.declarations,i.parent=n.parent,i.target=n,i.mapper=t,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),n.nameType&&(i.nameType=n.nameType),i}function Eg(n,t){var r=n.objectFlags&64?n.target:n,i=n.objectFlags&4?n.node:n.symbol.declarations[0],s=Ir(i),f=s.outerTypeParameters;if(!f){var A=i;if(e.isInJSFile(A)){var W=e.findAncestor(A,e.isJSDocParameterTag);if(W){var xe=e.getParameterSymbolFromJSDoc(W);xe&&(A=xe.valueDeclaration)}}var je=Ci(A,!0);if(Zc(A)){var Qe=F_(A);je=e.addRange(je,Qe)}f=je||e.emptyArray,f=(r.objectFlags&4||r.symbol.flags&2048)&&!r.aliasTypeArguments?e.filter(f,function(pt){return Nv(pt,A)}):f,s.outerTypeParameters=f,f.length&&(s.instantiations=e.createMap(),s.instantiations.set(bu(f),r))}if(f.length){var nn=e.map(f,Tu(n.mapper,t)),Tn=bu(nn),In=s.instantiations.get(Tn);if(!In){var it=wl(f,nn);In=r.objectFlags&4?lg(n.target,n.node,it):r.objectFlags&32?Dx(r,it):Sg(r,it),s.instantiations.set(Tn,In)}return In}return n}function Cx(n){return!(n.kind===152||n.parent.kind===168&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===187&&n.parent.typeArguments&&n===n.parent.qualifier)}function Nv(n,t){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){for(var r=n.symbol.declarations[0].parent,i=t;i!==r;i=i.parent)if(!i||i.kind===222||i.kind===179&&e.forEachChild(i.extendsType,s))return!0;return!!e.forEachChild(t,s)}return!0;function s(f){switch(f.kind){case 182:return!!n.isThisType;case 75:return!n.isThisType&&e.isPartOfTypeNode(f)&&Cx(f)&&ja(f)===n;case 171:return!0}return!!e.forEachChild(f,s)}}function Tg(n){var t=dc(n);if(t.flags&4194304){var r=Td(t.type);if(r.flags&262144)return r}return}function Dx(n,t){var r=Tg(n);if(r){var i=Si(r,t);if(r!==i)return Ws(i,function(s){if(s.flags&(3|58982400|524288|2097152)&&s!==yn&&s!==ye){var f=Lv(r,s,t);return Ms(s)?Lx(s,n,f):Lo(s)?Ix(s,n,f):Sg(n,f)}return s})}return Sg(n,t)}function Ov(n,t){return t&1?!0:t&2?!1:n}function Lx(n,t,r){var i=Pv(t,ot,!0,r);return i===ye?ye:Os(i,Ov(op(n),Jc(t)))}function Ix(n,t,r){var i=n.target.minLength,s=e.map(_o(n),function(xe,je){return Pv(t,rs(""+je),je>=i,r)}),f=Jc(t),A=f&4?0:f&8?vd(n)-(n.target.hasRestElement?1:0):i,W=Ov(n.target.readonly,f);return e.contains(s,ye)?ye:Gu(s,A,n.target.hasRestElement,W,n.target.associatedNames)}function Pv(n,t,r,i){var s=Tu(i,wl([Fu(n)],[t])),f=Si(qc(n.target||n),s),A=Jc(n);return a&&A&4&&!Hi(un,f)?wu(f):a&&A&8&&r?hs(f,524288):f}function Sg(n,t){var r=ss(n.objectFlags|64,n.symbol);if(n.objectFlags&32){r.declaration=n.declaration;var i=Fu(n),s=Iv(i);r.typeParameter=s,t=Tu(_f(i,s),t),s.mapper=t}return r.target=n,r.mapper=t,r.aliasSymbol=n.aliasSymbol,r.aliasTypeArguments=Sd(n.aliasTypeArguments,t),r}function xg(n,t){var r=n.root;if(r.outerTypeParameters){var i=e.map(r.outerTypeParameters,t),s=bu(i),f=r.instantiations.get(s);if(!f){var A=wl(r.outerTypeParameters,i);f=Nx(r,A),r.instantiations.set(s,f)}return f}return n}function Nx(n,t){if(n.isDistributive){var r=n.checkType,i=t(r);if(r!==i&&i.flags&(1048576|131072))return Ws(i,function(s){return gg(n,Lv(r,s,t))})}return gg(n,t)}function Si(n,t){if(!n||!t||t===be)return n;if(Z===50||Ce>=5e6)return wn(Ae,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),ye;Ce++,Z++;var r=Ox(n,t);return Z--,r}function Ox(n,t){var r=n.flags;if(r&262144)return t(n);if(r&524288){var i=n.objectFlags;if(i&16)return Jm(n)?Eg(n,t):n;if(i&32)return Eg(n,t);if(i&4){if(n.node)return Eg(n,t);var s=n.resolvedTypeArguments,f=Sd(s,t);return f!==s?Eu(n.target,f):n}return n}if(r&1048576&&!(r&131068)){var A=n.types,W=Sd(A,t);return W!==A?jr(W,1,n.aliasSymbol,Sd(n.aliasTypeArguments,t)):n}if(r&2097152){var A=n.types,W=Sd(A,t);return W!==A?Qi(W,n.aliasSymbol,Sd(n.aliasTypeArguments,t)):n}if(r&4194304)return zc(Si(n.type,t));if(r&8388608)return xl(Si(n.objectType,t),Si(n.indexType,t));if(r&16777216)return xg(n,Tu(n.mapper,t));if(r&33554432){var xe=Si(n.typeVariable,t);if(xe.flags&8650752)return J_(xe,Si(n.substitute,t));var je=Si(n.substitute,t);return je.flags&3||Hi(tf(xe),tf(je))?xe:je}return n}function Mv(n){return n.flags&(131068|3|131072)?n:n.permissiveInstantiation||(n.permissiveInstantiation=Si(n,xx))}function tf(n){return n.flags&(131068|3|131072)?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=Si(n,Ax),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function Bm(n,t){return n&&dl(Si(n.type,t),n.isReadonly,n.declaration)}function Gl(n){e.Debug.assert(n.kind!==160||e.isObjectLiteralMethod(n));switch(n.kind){case 200:case 201:case 160:case 243:return Rv(n);case 192:return e.some(n.properties,Gl);case 191:return e.some(n.elements,Gl);case 209:return Gl(n.whenTrue)||Gl(n.whenFalse);case 208:return(n.operatorToken.kind===56||n.operatorToken.kind===60)&&(Gl(n.left)||Gl(n.right));case 279:return Gl(n.initializer);case 199:return Gl(n.expression);case 272:return e.some(n.properties,Gl)||e.isJsxOpeningElement(n.parent)&&e.some(n.parent.parent.children,Gl);case 271:{var t=n.initializer;return!!t&&Gl(t)}case 274:{var r=n.expression;return!!r&&Gl(r)}}return!1}function Rv(n){if(e.isFunctionDeclaration(n)&&(!e.isInJSFile(n)||!ql(n)))return!1;if(n.typeParameters)return!1;if(e.some(n.parameters,function(r){return!e.getEffectiveTypeAnnotationNode(r)}))return!0;if(n.kind!==201){var t=e.firstOrUndefined(n.parameters);if(!(t&&e.parameterIsThisKeyword(t)))return!0}return Fv(n)}function Fv(n){return!!n.body&&n.body.kind!==222&&Gl(n.body)}function Gv(n){return(e.isInJSFile(n)&&e.isFunctionDeclaration(n)||Zb(n)||e.isObjectLiteralMethod(n))&&Rv(n)}function Bv(n){if(n.flags&524288){var t=fc(n);if(t.constructSignatures.length||t.callSignatures.length){var r=ss(16,n.symbol);return r.members=t.members,r.properties=t.properties,r.callSignatures=e.emptyArray,r.constructSignatures=e.emptyArray,r}}else if(n.flags&2097152)return Qi(e.map(n.types,Bv));return n}function Xc(n,t){return xu(n,t,Fa)}function rp(n,t){return xu(n,t,Fa)?-1:0}function Vv(n,t){return xu(n,t,fa)?-1:0}function Px(n,t){return xu(n,t,Er)?-1:0}function Su(n,t){return xu(n,t,Er)}function Hi(n,t){return xu(n,t,fa)}function ap(n,t){return n.flags&1048576?e.every(n.types,function(r){return ap(r,t)}):t.flags&1048576?e.some(t.types,function(r){return ap(n,r)}):n.flags&58982400?ap(cl(n)||mn,t):t===bo?!!(n.flags&(524288|67108864)):t===Ri?!!(n.flags&524288)&&Qg(n):Ga(n,Ta(t))}function rf(n,t){return xu(n,t,Da)}function wg(n,t){return rf(n,t)||rf(t,n)}function Al(n,t,r,i,s,f){return zl(n,t,fa,r,i,s,f)}function Vu(n,t,r,i,s,f){return Ag(n,t,fa,r,i,s,f,void 0)}function Ag(n,t,r,i,s,f,A,W){return xu(n,t,r)?!0:!i||!Jp(s,n,t,r,f,A,W)?zl(n,t,r,i,f,A,W):!1}function Uv(n){return!!(n.flags&16777216||n.flags&2097152&&e.some(n.types,Uv))}function Jp(n,t,r,i,s,f,A){if(!n||Uv(r))return!1;if(!zl(t,r,i,void 0)&&Mx(n,t,r,i,s,f,A))return!0;switch(n.kind){case 274:case 199:return Jp(n.expression,t,r,i,s,f,A);case 208:switch(n.operatorToken.kind){case 62:case 27:return Jp(n.right,t,r,i,s,f,A)}break;case 192:return jx(n,t,r,i,f,A);case 191:return Vx(n,t,r,i,f,A);case 272:return Bx(n,t,r,i,f,A);case 201:return Rx(n,t,r,i,f,A)}return!1}function Mx(n,t,r,i,s,f,A){for(var W=si(t,0),xe=si(t,1),je=0,Qe=[xe,W];je<Qe.length;je++){var nn=Qe[je];if(e.some(nn,function(it){var pt=Fi(it);return!(pt.flags&(1|131072))&&zl(pt,r,i,void 0)})){var Tn=A||{};Al(t,r,n,s,f,Tn);var In=Tn.errors[Tn.errors.length-1];return e.addRelatedInfo(In,e.createDiagnosticForNode(n,nn===xe?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}function Rx(n,t,r,i,s,f){if(e.isBlock(n.body))return!1;if(e.some(n.parameters,e.hasType))return!1;var A=jd(t);if(!A)return!1;var W=si(r,0);if(!e.length(W))return!1;var xe=n.body,je=Fi(A),Qe=jr(e.map(W,Fi));if(!zl(je,Qe,i,void 0)){var nn=xe&&Jp(xe,je,Qe,i,void 0,s,f);if(nn)return nn;var Tn=f||{};if(zl(je,Qe,i,xe,void 0,s,Tn),Tn.errors)return r.symbol&&e.length(r.symbol.declarations)&&e.addRelatedInfo(Tn.errors[Tn.errors.length-1],e.createDiagnosticForNode(r.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),!0}return!1}function ip(n,t,r,i,s,f){for(var A=!1,W=n.next();!W.done;W=n.next()){var xe=W.value,je=xe.errorNode,Qe=xe.innerExpression,nn=xe.nameType,Tn=xe.errorMessage,In=Ed(r,nn);if(!In||In.flags&8388608)continue;var it=Ed(t,nn);if(it&&!zl(it,In,i,void 0)){var pt=Qe&&Jp(Qe,it,In,i,void 0,s,f);if(pt)A=!0;else{var St=f||{},qt=Qe?Pf(Qe,0,it):it,hr=zl(qt,In,i,je,Tn,s,St);if(hr&&qt!==it&&zl(it,In,i,je,Tn,s,St),St.errors){var lr=St.errors[St.errors.length-1],Tr=er(nn)?Po(nn):void 0,na=Tr!==void 0?Ji(r,Tr):void 0,Mr=!1;if(!na){var Wa=Jo(nn,296)&&Xi(r,1)||Xi(r,0)||void 0;Wa&&Wa.declaration&&!e.getSourceFileOfNode(Wa.declaration).hasNoDefaultLib&&(Mr=!0,e.addRelatedInfo(lr,e.createDiagnosticForNode(Wa.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!Mr&&(na&&e.length(na.declarations)||r.symbol&&e.length(r.symbol.declarations))){var Zi=na&&e.length(na.declarations)?na.declarations[0]:r.symbol.declarations[0];e.getSourceFileOfNode(Zi).hasNoDefaultLib||e.addRelatedInfo(lr,e.createDiagnosticForNode(Zi,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Tr&&!(nn.flags&8192)?e.unescapeLeadingUnderscores(Tr):zt(nn),zt(r)))}}A=!0}}}return A}function Fx(n){var t,r,i;return Vr(this,function(s){switch(s.label){case 0:if(!e.length(n.properties))return[2];t=0,r=n.properties,s.label=1;case 1:return t<r.length?(i=r[t],e.isJsxSpreadAttribute(i)?[3,3]:[4,{errorNode:i.name,innerExpression:i.initializer,nameType:rs(e.idText(i.name))}]):[3,4];case 2:s.sent(),s.label=3;case 3:return t++,[3,1];case 4:return[2]}})}function Gx(n,t){var r,i,s,f,A;return Vr(this,function(W){switch(W.label){case 0:if(!e.length(n.children))return[2];r=0,i=0,W.label=1;case 1:return i<n.children.length?(s=n.children[i],f=rs(i-r),A=jv(s,f,t),A?[4,A]:[3,3]):[3,5];case 2:return W.sent(),[3,4];case 3:r++,W.label=4;case 4:return i++,[3,1];case 5:return[2]}})}function jv(n,t,r){switch(n.kind){case 274:return{errorNode:n,innerExpression:n.expression,nameType:t};case 11:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:t,errorMessage:r()};case 264:case 265:case 268:return{errorNode:n,innerExpression:n,nameType:t};default:return e.Debug.assertNever(n,"Found invalid jsx child")}}function Wv(n){return e.filter(n,function(t){return!e.isJsxText(t)||!t.containsOnlyTriviaWhiteSpaces})}function Bx(n,t,r,i,s,f){var A=ip(Fx(n),t,r,i,s,f),W;if(e.isJsxOpeningElement(n.parent)&&e.isJsxElement(n.parent.parent)){var xe=n.parent.parent,je=oh(uf(n)),Qe=je===void 0?"children":e.unescapeLeadingUnderscores(je),nn=rs(Qe),Tn=xl(r,nn),In=Wv(xe.children);if(!e.length(In))return A;var it=e.length(In)>1,pt=gs(Tn,Og),St=gs(Tn,function(Wa){return!Og(Wa)});if(it){if(pt!==It){var qt=Gu(ih(xe,0)),hr=Gx(xe,Mr);A=ip(hr,qt,pt,i,s,f)||A}else if(!xu(xl(t,nn),Tn,i)){A=!0;var lr=wn(xe.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Qe,zt(Tn));f&&f.skipLogging&&(f.errors||(f.errors=[])).push(lr)}}else if(St!==It){var Tr=In[0],na=jv(Tr,nn,Mr);na&&(A=ip(function(){return Vr(this,function(Wa){switch(Wa.label){case 0:return[4,na];case 1:return Wa.sent(),[2]}})}(),t,r,i,s,f)||A)}else if(!xu(xl(t,nn),Tn,i)){A=!0;var lr=wn(xe.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Qe,zt(Tn));f&&f.skipLogging&&(f.errors||(f.errors=[])).push(lr)}}return A;function Mr(){if(!W){var Wa=e.getTextOfNode(n.parent.tagName),Zi=oh(uf(n)),Sa=Zi===void 0?"children":e.unescapeLeadingUnderscores(Zi),Ca=xl(r,rs(Sa)),Bt=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;W=ma(ma({},Bt),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,Bt,Wa,Sa,zt(Ca))})}return W}}function Hv(n,t){var r,i,s,f;return Vr(this,function(A){switch(A.label){case 0:if(r=e.length(n.elements),!r)return[2];i=0,A.label=1;case 1:return i<r?of(t)&&!Ji(t,""+i)?[3,3]:(s=n.elements[i],e.isOmittedExpression(s)?[3,3]:(f=rs(i),[4,{errorNode:s,innerExpression:s,nameType:f}])):[3,4];case 2:A.sent(),A.label=3;case 3:return i++,[3,1];case 4:return[2]}})}function Vx(n,t,r,i,s,f){if(r.flags&131068)return!1;if(of(t))return ip(Hv(n,r),t,r,i,s,f);var A=eE(n,1,!0);return of(A)?ip(Hv(n,r),A,r,i,s,f):!1}function Ux(n){var t,r,i,s,f;return Vr(this,function(A){switch(A.label){case 0:if(!e.length(n.properties))return[2];t=0,r=n.properties,A.label=1;case 1:if(!(t<r.length))return[3,8];if(i=r[t],e.isSpreadAssignment(i))return[3,7];if(s=Mm(Yt(i),8576),!s||s.flags&131072)return[3,7];f=i.kind;switch(f){case 163:return[3,2];case 162:return[3,2];case 160:return[3,2];case 280:return[3,2];case 279:return[3,4]}return[3,6];case 2:return[4,{errorNode:i.name,innerExpression:void 0,nameType:s}];case 3:return A.sent(),[3,7];case 4:return[4,{errorNode:i.name,innerExpression:i.initializer,nameType:s,errorMessage:Zu(i.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return A.sent(),[3,7];case 6:e.Debug.assertNever(i),A.label=7;case 7:return t++,[3,1];case 8:return[2]}})}function jx(n,t,r,i,s,f){return r.flags&131068?!1:ip(Ux(n),t,r,i,s,f)}function Kv(n,t,r,i,s){return zl(n,t,Da,r,i,s)}function Wx(n,t,r){return kg(n,t,0,r,!1,void 0,void 0,Vv)!==0}function Hx(n){return!n.typeParameters&&(!n.thisParameter||Bi(yp(n.thisParameter)))&&n.parameters.length===1&&L(n)&&(yp(n.parameters[0])===gi||Bi(yp(n.parameters[0])))&&Bi(Fi(n))}function kg(n,t,r,i,s,f,A,W){if(n===t)return-1;if(Hx(t))return-1;var xe=Vl(t);if(!qu(t)&&Au(n)>xe)return 0;n.typeParameters&&n.typeParameters!==t.typeParameters&&(t=y1(t),n=LE(n,t,void 0,W));var je=Vl(n),Qe=bp(n),nn=bp(t);if(Qe&&nn&&je!==xe)return 0;var Tn=t.declaration?t.declaration.kind:0,In=!r&&en&&Tn!==160&&Tn!==159&&Tn!==161,it=-1,pt=_d(n);if(pt&&pt!==_t){var St=_d(t);if(St){var qt=!In&&W(pt,St,!1)||W(St,pt,s);if(!qt)return s&&f(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;it&=qt}}for(var hr=Qe||nn?Math.min(je,xe):Math.max(je,xe),lr=Qe||nn?hr-1:-1,Tr=0;Tr<hr;Tr++){var na=Tr===lr?_p(n,Tr):Zs(n,Tr),Mr=Tr===lr?_p(t,Tr):Zs(t,Tr),Wa=r?void 0:jd(Wu(na)),Zi=r?void 0:jd(Wu(Mr)),Sa=Wa&&Zi&&!ul(Wa)&&!ul(Zi)&&(kl(na)&98304)===(kl(Mr)&98304),qt=Sa?kg(Zi,Wa,In?2:1,!1,s,f,A,W):!r&&!In&&W(na,Mr,!1)||W(Mr,na,s);if(!qt)return s&&f(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(Nf(n,Tr)),e.unescapeLeadingUnderscores(Nf(t,Tr))),0;it&=qt}if(!i){var Ca=tg(t)?oe:t.declaration&&Zc(t.declaration)?sl(zr(t.declaration.symbol)):Fi(t);if(Ca===_t)return it;var Bt=tg(n)?oe:n.declaration&&Zc(n.declaration)?sl(zr(n.declaration.symbol)):Fi(n),An=ul(t);if(An){var gn=ul(n);if(gn)it&=Kx(gn,An,s,f,W);else if(e.isIdentifierTypePredicate(An))return s&&f(e.Diagnostics.Signature_0_must_be_a_type_predicate,Gs(n)),0}else it&=r===1&&W(Ca,Bt,!1)||W(Bt,Ca,s),!it&&s&&A&&A(Bt,Ca)}return it}function Kx(n,t,r,i,s){if(n.kind!==t.kind)return r&&(i(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Wl(n),Wl(t))),0;if((n.kind===1||n.kind===3)&&n.parameterIndex!==t.parameterIndex)return r&&(i(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,t.parameterName),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Wl(n),Wl(t))),0;var f=n.type===t.type?-1:n.type&&t.type?s(n.type,t.type,r):0;return f===0&&r&&i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Wl(n),Wl(t)),f}function qx(n,t){var r=Yf(n),i=Yf(t),s=Fi(r),f=Fi(i);return f===_t||xu(f,s,fa)||xu(s,f,fa)?Wx(r,i,!0):!1}function Jx(n){return n.properties.length===0&&n.callSignatures.length===0&&n.constructSignatures.length===0&&!n.stringIndexInfo&&!n.numberIndexInfo}function Uu(n){return n.flags&524288?!Fl(n)&&Jx(fc(n)):n.flags&67108864?!0:n.flags&1048576?e.some(n.types,Uu):n.flags&2097152?e.every(n.types,Uu):!1}function qv(n){return!!(e.getObjectFlags(n)&16)&&Uu(n)}function Jv(n){return n.flags&524288&&!Fl(n)&&oo(n).length===0&&Xi(n,0)&&!Xi(n,1)||n.flags&3145728&&e.every(n.types,Jv)||!1}function Cg(n,t,r){if(n===t)return!0;var i=fe(n)+","+fe(t),s=vi.get(i);if(s!==void 0&&!(!(s&4)&&s&2&&r))return!!(s&1);if(n.escapedName!==t.escapedName||!(n.flags&256)||!(t.flags&256))return vi.set(i,2|4),!1;for(var f=Hn(t),A=0,W=oo(Hn(n));A<W.length;A++){var xe=W[A];if(xe.flags&8){var je=Ji(f,xe.escapedName);if(!je||!(je.flags&8))return r?(r(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(xe),zt(yo(t),void 0,64)),vi.set(i,2|4)):vi.set(i,2),!1}}return vi.set(i,1),!0}function Vm(n,t,r,i){var s=n.flags,f=t.flags;if(f&3||s&131072||n===yn)return!0;if(f&131072)return!1;if(s&132&&f&4)return!0;if(s&128&&s&1024&&f&128&&!(f&1024)&&n.value===t.value)return!0;if(s&296&&f&8)return!0;if(s&256&&s&1024&&f&256&&!(f&1024)&&n.value===t.value)return!0;if(s&2112&&f&64)return!0;if(s&528&&f&16)return!0;if(s&12288&&f&4096)return!0;if(s&32&&f&32&&Cg(n.symbol,t.symbol,i))return!0;if(s&1024&&f&1024){if(s&1048576&&f&1048576&&Cg(n.symbol,t.symbol,i))return!0;if(s&2944&&f&2944&&n.value===t.value&&Cg(xs(n.symbol),xs(t.symbol),i))return!0}if(s&32768&&(!a||f&(32768|16384)))return!0;if(s&65536&&(!a||f&65536))return!0;if(s&524288&&f&67108864)return!0;if(r===fa||r===Da){if(s&1)return!0;if(s&(8|256)&&!(s&1024)&&(f&32||f&256&&f&1024))return!0}return!1}function xu(n,t,r){if(Bu(n)&&(n=n.regularType),Bu(t)&&(t=t.regularType),n===t||r===Da&&!(t.flags&131072)&&Vm(t,n,r)||r!==Fa&&Vm(n,t,r))return!0;if(n.flags&524288&&t.flags&524288){var i=r.get(Zv(n,t,!1,r));if(i!==void 0)return!!(i&1)}return n.flags&66846720||t.flags&66846720?zl(n,t,r,void 0):!1}function zx(n,t){return e.getObjectFlags(n)&4096&&!iE(t.escapedName)}function zl(n,t,r,i,s,f,A){var W,xe,je,Qe,nn,Tn=0,In=0,it=0,pt=!1,St=0,qt,hr=[];e.Debug.assert(r!==Fa||!i,"no error reporting in identity checking");var lr=jt(n,t,!!i,s);if(hr.length&&gn(),pt){var Tr=wn(i,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,zt(n),zt(t));A&&(A.errors||(A.errors=[])).push(Tr)}else if(W){if(f){var na=f();na&&(e.concatenateDiagnosticMessageChains(na,W),W=na)}var Mr=void 0;if(s&&i&&!lr&&n.symbol){var Wa=ea(n.symbol);if(Wa.originatingImport&&!e.isImportCall(Wa.originatingImport)){var Zi=zl(Hn(Wa.target),t,r,void 0);if(Zi){var Sa=e.createDiagnosticForNode(Wa.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);Mr=e.append(Mr,Sa)}}}var Tr=e.createDiagnosticForNodeFromMessageChain(i,W,Mr);xe&&e.addRelatedInfo.apply(void 0,Or([Tr],xe)),A&&(A.errors||(A.errors=[])).push(Tr),(!A||!A.skipLogging)&&Qn.add(Tr)}return i&&A&&A.skipLogging&&lr===0&&e.Debug.assert(!!A.errors,"missed opportunity to interact with error."),lr!==0;function Ca(Gn){W=Gn.errorInfo,qt=Gn.lastSkippedInfo,hr=Gn.incompatibleStack,St=Gn.overrideNextErrorInfo,xe=Gn.relatedInfo}function Bt(){return{errorInfo:W,lastSkippedInfo:qt,incompatibleStack:hr.slice(),overrideNextErrorInfo:St,relatedInfo:xe?xe.slice():void 0}}function An(Gn,Yn,Mt,Xt,Fr){St++,qt=void 0,hr.push([Gn,Yn,Mt,Xt,Fr])}function gn(){var Gn=hr;hr=[];var Yn=qt;if(qt=void 0,Gn.length===1){At.apply(void 0,Gn[0]),Yn&&Zt.apply(void 0,Or([void 0],Yn));return}for(var Mt="",Xt=[];Gn.length;){var Fr=Gn.pop(),Gr=Fr[0],ir=Fr.slice(1);switch(Gr.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:{Mt.indexOf("new ")===0&&(Mt="("+Mt+")");var On=""+ir[0];Mt.length===0?Mt=""+On:e.isIdentifierText(On,Ge.target)?Mt=Mt+"."+On:On[0]==="["&&On[On.length-1]==="]"?Mt=""+Mt+On:Mt=Mt+"["+On+"]";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(Mt.length===0){var Nt=Gr;Gr.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?Nt=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:Gr.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(Nt=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),Xt.unshift([Nt,ir[0],ir[1]])}else{var or=Gr.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||Gr.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",$t=Gr.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Gr.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Mt=""+or+Mt+"("+$t+")"}break}default:return e.Debug.fail("Unhandled Diagnostic: "+Gr.code)}}Mt?At(Mt[Mt.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,Mt):Xt.shift();for(var Vt=0,wr=Xt;Vt<wr.length;Vt++){var Kr=wr[Vt],Gr=Kr[0],ir=Kr.slice(1),Nr=Gr.elidedInCompatabilityPyramid;Gr.elidedInCompatabilityPyramid=!1,At.apply(void 0,Or([Gr],ir)),Gr.elidedInCompatabilityPyramid=Nr}Yn&&Zt.apply(void 0,Or([void 0],Yn))}function At(Gn,Yn,Mt,Xt,Fr){if(e.Debug.assert(!!i),hr.length&&gn(),Gn.elidedInCompatabilityPyramid)return;W=e.chainDiagnosticMessages(W,Gn,Yn,Mt,Xt,Fr)}function Ct(Gn){e.Debug.assert(!!W),xe?xe.push(Gn):xe=[Gn]}function Zt(Gn,Yn,Mt){hr.length&&gn();var Xt=bl(Yn,Mt),Fr=Xt[0],Gr=Xt[1];Mt.flags&262144&&Mt.immediateBaseConstraint!==void 0&&Hi(Yn,Mt.immediateBaseConstraint)&&At(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Fr,Gr,zt(Mt.immediateBaseConstraint)),Gn||(r===Da?Gn=e.Diagnostics.Type_0_is_not_comparable_to_type_1:Fr===Gr?Gn=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:Gn=e.Diagnostics.Type_0_is_not_assignable_to_type_1),At(Gn,Fr,Gr)}function pr(Gn,Yn){var Mt=Do(Gn.symbol)?zt(Gn,Gn.symbol.valueDeclaration):zt(Gn),Xt=Do(Yn.symbol)?zt(Yn,Yn.symbol.valueDeclaration):zt(Yn);(va===Gn&&dt===Yn||Na===Gn&&ot===Yn||qr===Gn&&De===Yn||nv(!1)===Gn&&_n===Yn)&&At(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Xt,Mt)}function xr(Gn,Yn,Mt){if(of(Gn)){var Xt=Gn.target;return Xt&&Xt.readonly&&Og(Yn)&&(!op(Yn)||Lo(Yn)&&!Yn.target.readonly)?(Mt&&At(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,zt(Gn),zt(Yn)),!1):xd(Yn)}return of(Yn)?xd(Gn):op(Gn)&&Ms(Yn)&&!op(Yn)?(Mt&&At(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,zt(Gn),zt(Yn)),!1):!0}function jt(Gn,Yn,Mt,Xt,Fr){if(Mt===void 0&&(Mt=!1),Bu(Gn)&&(Gn=Gn.regularType),Bu(Yn)&&(Yn=Yn.regularType),Gn.flags&33554432&&(Gn=Gn.substitute),Yn.flags&33554432&&(Yn=Yn.typeVariable),Gn.flags&25165824&&(Gn=Cc(Gn,!1)),Yn.flags&25165824&&(Yn=Cc(Yn,!0)),Yn.flags&1048576&&Gn.flags&524288&&Yn.types.length<=3&&wo(Yn,98304)){var Gr=dp(Yn,~98304);Gr.flags&(1048576|131072)||(Yn=Gr)}if(Gn===Yn)return-1;if(r===Fa)return sa(Gn,Yn);if(r===Da&&!(Yn.flags&131072)&&Vm(Yn,Gn,r)||Vm(Gn,Yn,r,Mt?At:void 0))return-1;var ir=!!(e.getObjectFlags(Gn)&4096),On=!Fr&&Ad(Gn)&&e.getObjectFlags(Gn)&32768;if(On){var Nt=Yn.flags&1048576?dr(Gn,Yn):void 0;if(Ea(Gn,Yn,Nt,Mt))return Mt&&Zt(Xt,Gn,Yn),0}var or=r!==Da&&!Fr&&Gn.flags&(131068|524288|2097152)&&Gn!==bo&&Yn.flags&(524288|2097152)&&zv(Yn)&&(oo(Gn).length>0||o_(Gn));if(or&&!Xx(Gn,Yn,ir)){if(Mt){var $t=si(Gn,0),Vt=si(Gn,1);$t.length>0&&jt(Fi($t[0]),Yn,!1)||Vt.length>0&&jt(Fi(Vt[0]),Yn,!1)?At(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,zt(Gn),zt(Yn)):At(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,zt(Gn),zt(Yn))}return 0}var wr=0,Kr=Bt(),Nr=!!Fr;if(Gn.flags&1048576)wr=r===Da?Qa(Gn,Yn,Mt&&!(Gn.flags&131068)):ei(Gn,Yn,Mt&&!(Gn.flags&131068));else{if(Yn.flags&1048576){if(wr=di(bf(Gn),Yn,Mt&&!(Gn.flags&131068)&&!(Yn.flags&131068)),wr&&(On||or)){var Nt=dr(Gn,Yn)||Jt(Yn);if(!ys(Gn,Nt,Mt,void 0,Nr))return 0}}else if(Yn.flags&2097152){if(Nr=!0,wr=Ar(bf(Gn),Yn,Mt),wr&&(On||or)&&!ys(Gn,Yn,Mt,void 0,!1))return 0}else Gn.flags&2097152&&(wr=Qa(Gn,Yn,!1));!wr&&(Gn.flags&66846720||Yn.flags&66846720)&&((wr=Oi(Gn,Yn,Mt,Nr))&&Ca(Kr))}if(!wr&&Gn.flags&(2097152|262144)){var li=a1(Gn.flags&2097152?Gn.types:[Gn],!!(Yn.flags&1048576));li&&(Gn.flags&2097152||Yn.flags&1048576)&&(Sf(li,function(so){return so!==Gn})&&((wr=jt(li,Yn,!1,void 0,Nr))&&Ca(Kr)))}if(!wr&&Mt){var Rr=St>0;if(Rr&&St--,Gn.flags&524288&&Yn.flags&524288){var fi=W;xr(Gn,Yn,Mt),W!==fi&&(Rr=!!W)}if(Gn.flags&524288&&Yn.flags&131068)pr(Gn,Yn);else if(Gn.symbol&&Gn.flags&524288&&bo===Gn)At(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(ir&&Yn.flags&2097152){var Wi=Yn.types,Ki=Cd(m.IntrinsicAttributes,i),no=Cd(m.IntrinsicClassAttributes,i);if(Ki!==ye&&no!==ye&&(e.contains(Wi,Ki)||e.contains(Wi,no)))return wr}if(!Xt&&Rr)return qt=[Gn,Yn],wr;Zt(Xt,Gn,Yn)}return wr}function sa(Gn,Yn){var Mt,Xt=Gn.flags&Yn.flags;return Xt&524288||Xt&8388608||Xt&16777216||Xt&4194304||Xt&33554432?Oi(Gn,Yn,!1,!1):Xt&(1048576|2097152)&&((Mt=Li(Gn,Yn))&&(Mt&=Li(Yn,Gn)))?Mt:0}function Ea(Gn,Yn,Mt,Xt){if(!ae&&e.getObjectFlags(Yn)&16384)return!1;if(am(Yn)){var Fr=!!(e.getObjectFlags(Gn)&4096);if((r===fa||r===Da)&&(Tf(bo,Yn)||!Fr&&Uu(Yn)))return!1;if(Mt)return Ea(Gn,Mt,void 0,Xt);for(var Gr=function(Vt){if(Ma(Vt,Gn.symbol)&&!gy(Yn,Vt.escapedName,Fr)){if(Xt){var wr=gs(Yn,am);if(!i)return{value:e.Debug.fail()};if(e.isJsxAttributes(i)||e.isJsxOpeningLikeElement(i)||e.isJsxOpeningLikeElement(i.parent))Vt.valueDeclaration&&e.isJsxAttribute(Vt.valueDeclaration)&&(i=Vt.valueDeclaration.name),At(e.Diagnostics.Property_0_does_not_exist_on_type_1,wa(Vt),zt(wr));else{var Kr=Gn.symbol&&e.firstOrUndefined(Gn.symbol.declarations),Nr=void 0;if(Vt.valueDeclaration&&e.findAncestor(Vt.valueDeclaration,function(fi){return fi===Kr})){var li=Vt.valueDeclaration;e.Debug.assertNode(li,e.isObjectLiteralElementLike),i=li;var Rr=li.name;e.isIdentifier(Rr)&&(Nr=Ey(Rr,wr))}Nr!==void 0?At(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,wa(Vt),zt(wr),Nr):At(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,wa(Vt),zt(wr))}}return{value:!0}}},ir=0,On=oo(Gn);ir<On.length;ir++){var Nt=On[ir],or=Gr(Nt);if(typeof or=="object")return or.value}}return!1}function Ma(Gn,Yn){return Gn.valueDeclaration&&Yn.valueDeclaration&&Gn.valueDeclaration.parent===Yn.valueDeclaration}function Li(Gn,Yn){for(var Mt=-1,Xt=Gn.types,Fr=0,Gr=Xt;Fr<Gr.length;Fr++){var ir=Gr[Fr],On=di(ir,Yn,!1);if(!On)return 0;Mt&=On}return Mt}function di(Gn,Yn,Mt){var Xt=Yn.types;if(Yn.flags&1048576&&yf(Xt,Gn))return-1;for(var Fr=0,Gr=Xt;Fr<Gr.length;Fr++){var ir=Gr[Fr],On=jt(Gn,ir,!1);if(On)return On}if(Mt){var Nt=dr(Gn,Yn)||io(Gn,Yn)||mt(Gn,Yn)||Ot(Gn,Yn)||Wt(Gn,Yn);jt(Gn,Nt||Xt[Xt.length-1],!0)}return 0}function io(Gn,Yn){var Mt=e.getObjectFlags(Gn);if(Mt&(4|16)&&Yn.flags&1048576)return e.find(Yn.types,function(Xt){if(Xt.flags&524288){var Fr=Mt&e.getObjectFlags(Xt);if(Fr&4)return Gn.target===Xt.target;if(Fr&16)return!!Gn.aliasSymbol&&Gn.aliasSymbol===Xt.aliasSymbol}return!1})}function mt(Gn,Yn){if(e.getObjectFlags(Gn)&128&&lf(Yn,xd))return e.find(Yn.types,function(Mt){return!xd(Mt)})}function Ot(Gn,Yn){var Mt=0,Xt=si(Gn,Mt).length>0||(Mt=1,si(Gn,Mt).length>0);if(Xt)return e.find(Yn.types,function(Fr){return si(Fr,Mt).length>0})}function Wt(Gn,Yn){for(var Mt,Xt=0,Fr=0,Gr=Yn.types;Fr<Gr.length;Fr++){var ir=Gr[Fr],On=Qi([zc(Gn),zc(ir)]);if(On.flags&4194304)Mt=ir,Xt=Infinity;else if(On.flags&1048576){var Nt=e.length(e.filter(On.types,sd));Nt>=Xt&&(Mt=ir,Xt=Nt)}else sd(On)&&1>=Xt&&(Mt=ir,Xt=1)}return Mt}function Jt(Gn){if(wo(Gn,67108864)){var Yn=gs(Gn,function(Mt){return!(Mt.flags&131068)});if(!(Yn.flags&131072))return Yn}return Gn}function dr(Gn,Yn){if(Yn.flags&1048576&&Gn.flags&(2097152|524288)){var Mt=oo(Gn);if(Mt){var Xt=_b(Mt,Yn);if(Xt)return Dg(Yn,e.map(Xt,function(Fr){return[function(){return Hn(Fr)},Fr.escapedName]}),jt)}}return}function Ar(Gn,Yn,Mt){for(var Xt=-1,Fr=Yn.types,Gr=0,ir=Fr;Gr<ir.length;Gr++){var On=ir[Gr],Nt=jt(Gn,On,Mt,void 0,!0);if(!Nt)return 0;Xt&=Nt}return Xt}function Qa(Gn,Yn,Mt){var Xt=Gn.types;if(Gn.flags&1048576&&yf(Xt,Yn))return-1;for(var Fr=Xt.length,Gr=0;Gr<Fr;Gr++){var ir=jt(Xt[Gr],Yn,Mt&&Gr===Fr-1);if(ir)return ir}return 0}function ei(Gn,Yn,Mt){for(var Xt=-1,Fr=Gn.types,Gr=0,ir=Fr;Gr<ir.length;Gr++){var On=ir[Gr],Nt=jt(On,Yn,Mt);if(!Nt)return 0;Xt&=Nt}return Xt}function Za(Gn,Yn,Mt,Xt,Fr){if(Gn===void 0&&(Gn=e.emptyArray),Yn===void 0&&(Yn=e.emptyArray),Mt===void 0&&(Mt=e.emptyArray),Gn.length!==Yn.length&&r===Fa)return 0;for(var Gr=Gn.length<=Yn.length?Gn.length:Yn.length,ir=-1,On=0;On<Gr;On++){var Nt=On<Mt.length?Mt[On]:1,or=Nt&7;if(or!==4){var $t=Gn[On],Vt=Yn[On],wr=-1;if(Nt&8?wr=r===Fa?jt($t,Vt,!1):rp($t,Vt):or===1?wr=jt($t,Vt,Xt,void 0,Fr):or===2?wr=jt(Vt,$t,Xt,void 0,Fr):or===3?(wr=jt(Vt,$t,!1),wr||(wr=jt($t,Vt,Xt,void 0,Fr))):(wr=jt($t,Vt,Xt,void 0,Fr),wr&&(wr&=jt(Vt,$t,Xt,void 0,Fr))),!wr)return 0;ir&=wr}}return ir}function Oi(Gn,Yn,Mt,Xt){if(pt)return 0;var Fr=Zv(Gn,Yn,Xt,r),Gr=r.get(Fr);if(Gr!==void 0&&!(Mt&&Gr&2&&!(Gr&4))){if(Pr){var ir=Gr&24;ir&8&&Si(Gn,Ao),ir&16&&Si(Gn,Hs)}return Gr&1?-1:0}if(!je)je=[],Qe=[],nn=[];else{for(var On=0;On<Tn;On++)if(Fr===je[On])return 1;if(In===100)return pt=!0,0}var Nt=Tn;je[Tn]=Fr,Tn++,Qe[In]=Gn,nn[In]=Yn,In++;var or=it;!(it&1)&&$v(Gn,Qe,In)&&(it|=1),!(it&2)&&$v(Yn,nn,In)&&(it|=2);var $t,Vt=0;Pr&&($t=Pr,Pr=function(Nr){return Vt|=Nr?16:8,$t(Nr)});var wr=it!==3?Mo(Gn,Yn,Mt,Xt):1;if(Pr&&(Pr=$t),it=or,In--,wr){if(wr===-1||In===0){for(var On=Nt;On<Tn;On++)r.set(je[On],1|Vt);Tn=Nt}}else r.set(Fr,(Mt?4:0)|2|Vt),Tn=Nt;return wr}function Mo(Gn,Yn,Mt,Xt){var Fr=Gn.flags&Yn.flags;if(r===Fa&&!(Fr&524288)){if(Fr&4194304)return jt(Gn.type,Yn.type,!1);var Gr=0;return Fr&8388608&&((Gr=jt(Gn.objectType,Yn.objectType,!1))&&(Gr&=jt(Gn.indexType,Yn.indexType,!1)))||Fr&16777216&&(Gn.root.isDistributive===Yn.root.isDistributive&&((Gr=jt(Gn.checkType,Yn.checkType,!1))&&((Gr&=jt(Gn.extendsType,Yn.extendsType,!1))&&((Gr&=jt(ad(Gn),ad(Yn),!1))&&(Gr&=jt(id(Gn),id(Yn),!1))))))?Gr:Fr&33554432?jt(Gn.substitute,Yn.substitute,!1):0}var ir,On,Nt=!1,or=Bt();if(Gn.flags&(524288|16777216)&&Gn.aliasSymbol&&Gn.aliasTypeArguments&&Gn.aliasSymbol===Yn.aliasSymbol&&!(Gn.aliasTypeArgumentsContainsMarker||Yn.aliasTypeArgumentsContainsMarker)){var $t=Xv(Gn.aliasSymbol),Vt=PS(Gn.aliasTypeArguments,Yn.aliasTypeArguments,$t,Xt);if(Vt!==void 0)return Vt}if(Yn.flags&262144){if(e.getObjectFlags(Gn)&32&&jt(zc(Yn),dc(Gn))&&!(Jc(Gn)&4)){var wr=qc(Gn),Kr=xl(Yn,Fu(Gn));if(ir=jt(wr,Kr,Mt))return ir}}else if(Yn.flags&4194304){if(Gn.flags&4194304&&(ir=jt(Yn.type,Gn.type,!1)))return ir;var Nr=Jh(Yn.type);if(Nr&&jt(Gn,zc(Nr,Yn.stringsOnly),Mt)===-1)return-1}else if(Yn.flags&8388608){if(r!==Fa){var li=Yn.objectType,Rr=Yn.indexType,fi=cl(li)||li,Wi=cl(Rr)||Rr;if(!$d(fi)&&!Kp(Wi)){var Ki=2|(fi!==li?1:0),Nr=Ed(fi,Wi,void 0,Ki);if(Nr&&(ir=jt(Gn,Nr,Mt)))return ir}}}else if(Fl(Yn)){var no=qc(Yn),so=Jc(Yn);if(!(so&8)){if(no.flags&8388608&&no.objectType===Gn&&no.indexType===Fu(Yn))return-1;if(!Fl(Gn)){var Ds=dc(Yn),dd=zc(Gn,void 0,!0),_s=so&4,Jd=_s?zf(Ds,dd):void 0;if(_s?!(Jd.flags&131072):jt(Ds,dd)){var fd=Fu(Yn),ff=Jd?Qi([Jd,fd]):fd,Kr=xl(Gn,ff),wr=qc(Yn);if(ir=jt(Kr,wr,Mt))return ir}On=W,Ca(or)}}}if(Gn.flags&8650752)if(Gn.flags&8388608&&Yn.flags&8388608){if((ir=jt(Gn.objectType,Yn.objectType,Mt))&&(ir&=jt(Gn.indexType,Yn.indexType,Mt)),ir)return Ca(or),ir}else{var Nr=Xf(Gn);if(!Nr||Gn.flags&262144&&Nr.flags&1){if(ir=jt(jn,dp(Yn,~67108864)))return Ca(or),ir}else{if(ir=jt(Nr,Yn,!1,void 0,Xt))return Ca(or),ir;if(ir=jt(Jl(Nr,Gn),Yn,Mt,void 0,Xt))return Ca(or),ir}}else if(Gn.flags&4194304){if(ir=jt(ba,Yn,Mt))return Ca(or),ir}else if(Gn.flags&16777216)if(Yn.flags&16777216){var zd=Gn.root.inferTypeParameters,Ip=Gn.extendsType,Np=void 0;if(zd){var bm=lp(zd,void 0,0,jt);Dc(bm.inferences,Yn.extendsType,Ip,64|128),Ip=Si(Ip,bm.mapper),Np=bm.mapper}if(Xc(Ip,Yn.extendsType)&&(jt(Gn.checkType,Yn.checkType)||jt(Yn.checkType,Gn.checkType))&&((ir=jt(Si(ad(Gn),Np),ad(Yn),Mt))&&(ir&=jt(id(Gn),id(Yn),Mt)),ir))return Ca(or),ir}else{var h_=L_(Gn);if(h_&&(ir=jt(h_,Yn,Mt)))return Ca(or),ir;var Em=zh(Gn);if(Em&&(ir=jt(Em,Yn,Mt)))return Ca(or),ir}else{if(r!==Er&&QS(Yn)&&Uu(Gn))return-1;if(Fl(Yn))return Fl(Gn)&&(ir=ks(Gn,Yn,Mt))?(Ca(or),ir):0;var jf=!!(Gn.flags&131068);if(r!==Fa)Gn=ds(Gn);else if(Fl(Gn))return 0;if(e.getObjectFlags(Gn)&4&&e.getObjectFlags(Yn)&4&&Gn.target===Yn.target&&!(e.getObjectFlags(Gn)&8192||e.getObjectFlags(Yn)&8192)){var $t=Lg(Gn.target),Vt=PS(_o(Gn),_o(Yn),$t,Xt);if(Vt!==void 0)return Vt}else{if(op(Yn)?Ms(Gn)||Lo(Gn):Ms(Yn)&&Lo(Gn)&&!Gn.target.readonly)return r!==Fa?jt(ms(Gn,1)||oe,ms(Yn,1)||oe,Mt):0;if(r===Er&&Uu(Yn)&&e.getObjectFlags(Yn)&32768&&!Uu(Gn))return 0}if(Gn.flags&(524288|2097152)&&Yn.flags&524288){var Xd=Mt&&W===or.errorInfo&&!jf;if(ir=ys(Gn,Yn,Xd,void 0,Xt),ir&&(ir&=cs(Gn,Yn,0,Xd),ir&&(ir&=cs(Gn,Yn,1,Xd),ir&&(ir&=tu(Gn,Yn,0,jf,Xd),ir&&(ir&=tu(Gn,Yn,1,jf,Xd))))),Nt&&ir)W=On||W||or.errorInfo;else if(ir)return ir}if(Gn.flags&(524288|2097152)&&Yn.flags&1048576){var Fh=dp(Yn,524288);if(Fh.flags&1048576){var g_=Ld(Gn,Fh);if(g_)return g_}}}return 0;function PS(QD,y_,Tm,ZD){if(ir=Za(QD,y_,Tm,Mt,ZD))return ir;if(e.some(Tm,function(__){return!!(__&24)})){On=void 0,Ca(or);return}var MS=y_&&Qx(y_,Tm);if(Nt=!MS,Tm!==e.emptyArray&&!MS){if(Nt&&!(Mt&&e.some(Tm,function(__){return(__&7)===0})))return 0;On=W,Ca(or)}}}function Ao(Gn){return Pr&&(Gn===tr||Gn===xa||Gn===Ba)&&Pr(!1),Gn}function Hs(Gn){return Pr&&(Gn===tr||Gn===xa||Gn===Ba)&&Pr(!0),Gn}function ks(Gn,Yn,Mt){var Xt=r===Da||(r===Fa?Jc(Gn)===Jc(Yn):qh(Gn)<=qh(Yn));if(Xt){var Fr,Gr=dc(Yn),ir=Si(dc(Gn),qh(Gn)<0?Ao:Hs);if(Fr=jt(Gr,ir,Mt)){var On=wl([Fu(Gn)],[Fu(Yn)]);return Fr&jt(Si(qc(Gn),On),qc(Yn),Mt)}}return 0}function Ld(Gn,Yn){var Mt=_u(Gn),Xt=_b(Mt,Yn);if(!Xt)return 0;for(var Fr=1,Gr=0,ir=Xt;Gr<ir.length;Gr++){var On=ir[Gr];if(Fr*=$w(Hn(On)),Fr>25)return 0}for(var Nt=new Array(Xt.length),or=e.createUnderscoreEscapedMap(),$t=0;$t<Xt.length;$t++){var On=Xt[$t],Vt=Hn(On);Nt[$t]=Vt.flags&1048576?Vt.types:[Vt],or.set(On.escapedName,!0)}for(var wr=e.cartesianProduct(Nt),Kr=[],Nr=function(_s){var Jd=!1;e:for(var fd=0,ff=Yn.types;fd<ff.length;fd++){for(var zd=ff[fd],Ip=function(Em){var jf=Xt[Em],Xd=td(zd,jf.escapedName);if(!Xd)return"continue-outer";if(jf===Xd)return"continue";var Fh=fo(Gn,Yn,jf,Xd,function(g_){return _s[Em]},!1,!1);if(!Fh)return"continue-outer"},Np=0;Np<Xt.length;Np++){var bm=Ip(Np);switch(bm){case"continue-outer":continue e}}e.pushIfUnique(Kr,zd,e.equateValues),Jd=!0}if(!Jd)return{value:0}},li=0,Rr=wr;li<Rr.length;li++){var fi=Rr[li],Wi=Nr(fi);if(typeof Wi=="object")return Wi.value}for(var Ki=-1,no=0,so=Kr;no<so.length;no++){var Ds=so[no];if(Ki&=ys(Gn,Ds,!1,or,!1),Ki&&(Ki&=cs(Gn,Ds,0,!1),Ki&&(Ki&=cs(Gn,Ds,1,!1),Ki&&(Ki&=tu(Gn,Ds,0,!1,!1),Ki&&(Ki&=tu(Gn,Ds,1,!1,!1))))),!Ki)return Ki}return Ki}function la(Gn,Yn){if(!Yn||Gn.length===0)return Gn;for(var Mt,Xt=0;Xt<Gn.length;Xt++)Yn.has(Gn[Xt].escapedName)?Mt||(Mt=Gn.slice(0,Xt)):Mt&&Mt.push(Gn[Xt]);return Mt||Gn}function Vi(Gn,Yn,Mt,Xt,Fr){var Gr=a&&!!(e.getCheckFlags(Yn)&48),ir=Mt(Gn);if(e.getCheckFlags(Yn)&65536&&!ea(Yn).type){var On=ea(Yn);e.Debug.assertDefined(On.deferralParent),e.Debug.assertDefined(On.deferralConstituents);for(var Nt=!!(On.deferralParent.flags&1048576),or=Nt?0:-1,$t=On.deferralConstituents,Vt=0,wr=$t;Vt<wr.length;Vt++){var Kr=wr[Vt],Nr=jt(ir,Kr,!1,void 0,!Nt);if(Nt){if(Nr)return Nr}else{if(!Nr)return jt(ir,ol(Hn(Yn),Gr),Xt);or&=Nr}}return Nt&&!or&&Gr&&(or=jt(ir,un)),Nt&&!or&&Xt?jt(ir,ol(Hn(Yn),Gr),Xt):or}else return jt(ir,ol(Hn(Yn),Gr),Xt,void 0,Fr)}function fo(Gn,Yn,Mt,Xt,Fr,Gr,ir){var On=e.getDeclarationModifierFlagsFromSymbol(Mt),Nt=e.getDeclarationModifierFlagsFromSymbol(Xt);if(On&8||Nt&8){var or=Mt.valueDeclaration!==Xt.valueDeclaration;if(e.getCheckFlags(Mt)&1024&&or)return Gr&&At(e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,wa(Mt),zt(Gn)),0;if(or)return Gr&&(On&8&&Nt&8?At(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,wa(Xt)):At(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,wa(Xt),zt(On&8?Gn:Yn),zt(On&8?Yn:Gn))),0}else if(Nt&16){if(!ew(Mt,Xt))return Gr&&At(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,wa(Xt),zt(af(Mt)||Gn),zt(af(Xt)||Yn)),0}else if(On&16)return Gr&&At(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,wa(Xt),zt(Gn),zt(Yn)),0;var $t=Vi(Mt,Xt,Fr,Gr,ir);return $t?r!==Da&&Mt.flags&16777216&&!(Xt.flags&16777216)?(Gr&&At(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,wa(Xt),zt(Gn),zt(Yn)),0):$t:(Gr&&An(e.Diagnostics.Types_of_property_0_are_incompatible,wa(Xt)),0)}function ys(Gn,Yn,Mt,Xt,Fr){if(r===Fa)return is(Gn,Yn,Xt);var Gr=r===Er&&!Ad(Gn)&&!Ng(Gn)&&!Lo(Gn),ir=Jg(Gn,Yn,Gr,!1);if(ir){if(Mt){var On=e.arrayFrom(fb(Gn,Yn,Gr,!1)),Nt=!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)&&(Nt=!0),On.length===1){var or=wa(ir);At.apply(void 0,Or([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,or],bl(Gn,Yn))),e.length(ir.declarations)&&Ct(e.createDiagnosticForNode(ir.declarations[0],e.Diagnostics._0_is_declared_here,or)),Nt&&W&&St++}else xr(Gn,Yn,!1)&&(On.length>5?At(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,zt(Gn),zt(Yn),e.map(On.slice(0,4),function(zd){return wa(zd)}).join(", "),On.length-4):At(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,zt(Gn),zt(Yn),e.map(On,function(zd){return wa(zd)}).join(", ")),Nt&&W&&St++)}return 0}if(Ad(Yn))for(var $t=0,Vt=la(oo(Gn),Xt);$t<Vt.length;$t++){var wr=Vt[$t];if(!td(Yn,wr.escapedName)){var Kr=Hn(wr);if(!(Kr===un||Kr===Mn||Kr===tt))return Mt&&At(e.Diagnostics.Property_0_does_not_exist_on_type_1,wa(wr),zt(Yn)),0}}var Nr=-1;if(Lo(Yn)){var li=ju(Yn);if(li){if(!Lo(Gn))return 0;var Rr=ju(Gn);if(Rr&&!jt(Rr,li,Mt))return Mt&&At(e.Diagnostics.Rest_signatures_are_incompatible),0;for(var fi=vd(Yn)-1,Wi=vd(Gn)-(Rr?1:0),Ki=_o(Gn),no=fi;no<Wi;no++){var so=jt(Ki[no],li,Mt);if(!so)return Mt&&At(e.Diagnostics.Property_0_is_incompatible_with_rest_element_type,""+no),0;Nr&=so}}}for(var Ds=Yn.flags&1048576?D_(Yn):oo(Yn),dd=Lo(Gn)&&Lo(Yn),_s=0,Jd=la(Ds,Xt);_s<Jd.length;_s++){var fd=Jd[_s],ff=fd.escapedName;if(!(fd.flags&4194304)&&(!dd||Cl(ff)||ff==="length")){var wr=Ji(Gn,ff);if(wr&&wr!==fd){var so=fo(Gn,Yn,wr,fd,Hn,Mt,Fr);if(!so)return 0;Nr&=so}}}return Nr}function is(Gn,Yn,Mt){if(!(Gn.flags&524288&&Yn.flags&524288))return 0;var Xt=la(_u(Gn),Mt),Fr=la(_u(Yn),Mt);if(Xt.length!==Fr.length)return 0;for(var Gr=-1,ir=0,On=Xt;ir<On.length;ir++){var Nt=On[ir],or=td(Yn,Nt.escapedName);if(!or)return 0;var $t=nb(Nt,or,jt);if(!$t)return 0;Gr&=$t}return Gr}function cs(Gn,Yn,Mt,Xt){if(r===Fa)return gc(Gn,Yn,Mt);if(Yn===vt||Gn===vt)return-1;var Fr=Gn.symbol&&Zc(Gn.symbol.valueDeclaration),Gr=Yn.symbol&&Zc(Yn.symbol.valueDeclaration),ir=si(Gn,Fr&&Mt===1?0:Mt),On=si(Yn,Gr&&Mt===1?0:Mt);if(Mt===1&&ir.length&&On.length){if(e.isAbstractConstructorType(Gn)&&!e.isAbstractConstructorType(Yn))return Xt&&At(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Id(ir[0],On[0],Xt))return 0}var Nt=-1,or=Bt(),$t=Mt===1?Yl:Cs;if(e.getObjectFlags(Gn)&64&&e.getObjectFlags(Yn)&64&&Gn.symbol===Yn.symbol)for(var Vt=0;Vt<On.length;Vt++){var wr=vo(ir[Vt],On[Vt],!0,Xt,$t(ir[Vt],On[Vt]));if(!wr)return 0;Nt&=wr}else if(ir.length===1&&On.length===1){var Kr=r===Da||!!Ge.noStrictGenericChecks;Nt=vo(ir[0],On[0],Kr,Xt,$t(ir[0],On[0]))}else{e:for(var Nr=0,li=On;Nr<li.length;Nr++){for(var Rr=li[Nr],fi=Xt,Wi=0,Ki=ir;Wi<Ki.length;Wi++){var no=Ki[Wi],wr=vo(no,Rr,!0,fi,$t(no,Rr));if(wr){Nt&=wr,Ca(or);continue e}fi=!1}return fi&&At(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,zt(Gn),Gs(Rr,void 0,void 0,Mt)),0}}return Nt}function Cs(Gn,Yn){return Gn.parameters.length===0&&Yn.parameters.length===0?function(Mt,Xt){return An(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,zt(Mt),zt(Xt))}:function(Mt,Xt){return An(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,zt(Mt),zt(Xt))}}function Yl(Gn,Yn){return Gn.parameters.length===0&&Yn.parameters.length===0?function(Mt,Xt){return An(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,zt(Mt),zt(Xt))}:function(Mt,Xt){return An(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,zt(Mt),zt(Xt))}}function vo(Gn,Yn,Mt,Xt,Fr){return kg(Mt?Yf(Gn):Gn,Mt?Yf(Yn):Yn,0,!1,Xt,At,Fr,jt)}function gc(Gn,Yn,Mt){var Xt=si(Gn,Mt),Fr=si(Yn,Mt);if(Xt.length!==Fr.length)return 0;for(var Gr=-1,ir=0;ir<Xt.length;ir++){var On=Xp(Xt[ir],Fr[ir],!1,!1,!1,jt);if(!On)return 0;Gr&=On}return Gr}function Ic(Gn,Yn,Mt,Xt){for(var Fr=-1,Gr=0,ir=_u(Gn);Gr<ir.length;Gr++){var On=ir[Gr];if(zx(Gn,On))continue;if(On.nameType&&On.nameType.flags&8192)continue;if(Mt===0||Cl(On.escapedName)){var Nt=jt(Hn(On),Yn,Xt);if(!Nt)return Xt&&At(e.Diagnostics.Property_0_is_incompatible_with_index_signature,wa(On)),0;Fr&=Nt}}return Fr}function nu(Gn,Yn,Mt){var Xt=jt(Gn.type,Yn.type,Mt);return!Xt&&Mt&&At(e.Diagnostics.Index_signatures_are_incompatible),Xt}function tu(Gn,Yn,Mt,Xt,Fr){if(r===Fa)return Uf(Gn,Yn,Mt);var Gr=Xi(Yn,Mt);if(!Gr||Gr.type.flags&1&&!Xt)return-1;var ir=Xi(Gn,Mt)||Mt===1&&Xi(Gn,0);if(ir)return nu(ir,Gr,Fr);if(Fl(Gn))return Mt===0?jt(qc(Gn),Gr.type,Fr):0;if(Vg(Gn)){var On=-1;if(Mt===0){var Nt=Xi(Gn,1);Nt&&(On=nu(Nt,Gr,Fr))}return On&&(On&=Ic(Gn,Gr.type,Mt,Fr)),On}return Fr&&At(e.Diagnostics.Index_signature_is_missing_in_type_0,zt(Gn)),0}function Uf(Gn,Yn,Mt){var Xt=Xi(Yn,Mt),Fr=Xi(Gn,Mt);return!Fr&&!Xt?-1:Fr&&Xt&&Fr.isReadonly===Xt.isReadonly?jt(Fr.type,Xt.type):0}function Id(Gn,Yn,Mt){if(!Gn.declaration||!Yn.declaration)return!0;var Xt=e.getSelectedModifierFlags(Gn.declaration,24),Fr=e.getSelectedModifierFlags(Yn.declaration,24);return Fr===8||(Fr===16&&Xt!==8||Fr!==16&&!Xt)?!0:(Mt&&At(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,zi(Xt),zi(Fr)),!1)}}function Dg(n,t,r,i){for(var s=n.types.map(function(St){return}),f=0,A=t;f<A.length;f++)for(var W=A[f],xe=W[0],je=W[1],Qe=0,nn=0,Tn=n.types;nn<Tn.length;nn++){var In=Tn[nn],it=Zo(In,je);it&&r(xe(),it)?s[Qe]=s[Qe]===void 0?!0:s[Qe]:s[Qe]=!1,Qe++}var pt=s.indexOf(!0);return pt===-1||s.indexOf(!0,pt+1)!==-1?i:n.types[pt]}function zv(n){if(n.flags&524288){var t=fc(n);return t.callSignatures.length===0&&t.constructSignatures.length===0&&!t.stringIndexInfo&&!t.numberIndexInfo&&t.properties.length>0&&e.every(t.properties,function(r){return!!(r.flags&16777216)})}return n.flags&2097152?e.every(n.types,zv):!1}function Xx(n,t,r){for(var i=0,s=oo(n);i<s.length;i++){var f=s[i];if(gy(t,f.escapedName,r))return!0}return!1}function Yx(n,t,r){var i=Eu(n,e.map(n.typeParameters,function(s){return s===t?r:s}));return i.objectFlags|=8192,i}function Xv(n){var t=ea(n);return Yv(t.typeParameters,t,function(r,i,s){var f=Zf(n,Sd(t.typeParameters,_f(i,s)));return f.aliasTypeArgumentsContainsMarker=!0,f})}function Yv(n,t,r){n===void 0&&(n=e.emptyArray);var i=t.variances;if(!i){t.variances=e.emptyArray,i=[];for(var s=function(je){var Qe=!1,nn=!1,Tn=Pr;Pr=function(qt){return qt?nn=!0:Qe=!0};var In=r(t,je,tr),it=r(t,je,xa),pt=(Hi(it,In)?1:0)|(Hi(In,it)?2:0);pt===3&&Hi(r(t,je,Ba),In)&&(pt=4),Pr=Tn,(Qe||nn)&&(Qe&&(pt|=8),nn&&(pt|=16)),i.push(pt)},f=0,A=n;f<A.length;f++){var W=A[f];s(W)}t.variances=i}return i}function Lg(n){return n===_r||n===Jr||n.objectFlags&8?e.emptyArray:Yv(n.typeParameters,n,Yx)}function Qx(n,t){for(var r=0;r<t.length;r++)if((t[r]&7)===1&&n[r].flags&16384)return!0;return!1}function Qv(n){return n.flags&262144&&!ll(n)}function Zx(n){return!!(e.getObjectFlags(n)&4)&&!n.node}function Um(n){return Zx(n)&&e.some(_o(n),function(t){return Qv(t)||Um(t)})}function Ig(n,t,r){r===void 0&&(r=0);for(var i=""+n.target.id,s=0,f=_o(n);s<f.length;s++){var A=f[s];if(Qv(A)){var W=t.indexOf(A);W<0&&(W=t.length,t.push(A)),i+="="+W}else r<4&&Um(A)?i+="<"+Ig(A,t,r+1)+">":i+="-"+A.id}return i}function Zv(n,t,r,i){if(i===Fa&&n.id>t.id){var s=n;n=t,t=s}var f=r?"&":"";if(Um(n)&&Um(t)){var A=[];return Ig(n,A)+","+Ig(t,A)+f}return n.id+","+t.id+f}function zp(n,t){if(e.getCheckFlags(n)&6){for(var r=0,i=n.containingType.types;r<i.length;r++){var s=i[r],f=Ji(s,n.escapedName),A=f&&zp(f,t);if(A)return A}return}return t(n)}function af(n){return n.parent&&n.parent.flags&32?yo(xs(n)):void 0}function $x(n,t){return zp(n,function(r){var i=af(r);return i?Ga(i,t):!1})}function ew(n,t){return!zp(t,function(r){return e.getDeclarationModifierFlagsFromSymbol(r)&16?!$x(n,af(r)):!1})}function nw(n,t){return zp(t,function(r){return e.getDeclarationModifierFlagsFromSymbol(r)&16?!Ga(n,af(r)):!1})?void 0:n}function $v(n,t,r){if(r>=5&&n.flags&524288){var i=n.symbol;if(i)for(var s=0,f=0;f<r;f++){var A=t[f];if(A.flags&524288&&A.symbol===i&&(s++,s>=5))return!0}}if(r>=5&&n.flags&8388608)for(var W=eb(n),s=0,f=0;f<r;f++){var A=t[f];if(eb(A)===W&&(s++,s>=5))return!0}return!1}function eb(n){for(var t=n;t.flags&8388608;)t=t.objectType;return t}function tw(n,t){return nb(n,t,rp)!==0}function nb(n,t,r){if(n===t)return-1;var i=e.getDeclarationModifierFlagsFromSymbol(n)&24,s=e.getDeclarationModifierFlagsFromSymbol(t)&24;if(i!==s)return 0;if(i){if(Dp(n)!==Dp(t))return 0}else if((n.flags&16777216)!==(t.flags&16777216))return 0;return $c(n)!==$c(t)?0:r(Hn(n),Hn(t))}function rw(n,t,r){var i=Vl(n),s=Vl(t),f=Au(n),A=Au(t),W=qu(n),xe=qu(t);return i===s&&f===A&&W===xe?!0:!!(r&&f<=A)}function Xp(n,t,r,i,s,f){if(n===t)return-1;if(!rw(n,t,r))return 0;if(e.length(n.typeParameters)!==e.length(t.typeParameters))return 0;if(t.typeParameters){for(var A=wl(n.typeParameters,t.typeParameters),W=0;W<t.typeParameters.length;W++){var xe=n.typeParameters[W],je=t.typeParameters[W];if(!(xe===je||f(Si(Up(xe),A)||mn,Up(je)||mn)&&f(Si(Yd(xe),A)||mn,Yd(je)||mn)))return 0}n=nf(n,A,!0)}var Qe=-1;if(!i){var nn=_d(n);if(nn){var Tn=_d(t);if(Tn){var In=f(nn,Tn);if(!In)return 0;Qe&=In}}}for(var it=Vl(t),W=0;W<it;W++){var xe=Zs(n,W),je=Zs(t,W),In=f(je,xe);if(!In)return 0;Qe&=In}if(!s){var pt=ul(n),St=ul(t);Qe&=pt||St?aw(pt,St,f):f(Fi(n),Fi(t))}return Qe}function aw(n,t,r){return n&&t&&fg(n,t)?n.type===t.type?-1:n.type&&t.type?r(n.type,t.type):0:0}function iw(n){for(var t,r=0,i=n;r<i.length;r++){var s=i[r],f=Bl(s);if(t||(t=f),f===s||f!==t)return!1}return!0}function tb(n){return iw(n)?jr(n):e.reduceLeft(n,function(t,r){return Su(t,r)?r:t})}function ow(n){if(!a)return tb(n);var t=e.filter(n,function(r){return!(r.flags&98304)});return t.length?Fg(tb(t),ab(n)&98304):jr(n,2)}function sw(n){return e.reduceLeft(n,function(t,r){return Su(r,t)?r:t})}function Ms(n){return!!(e.getObjectFlags(n)&4)&&(n.target===_r||n.target===Jr)}function op(n){return!!(e.getObjectFlags(n)&4)&&n.target===Jr}function jm(n){return Ms(n)?_o(n)[0]:void 0}function xd(n){return Ms(n)||!(n.flags&98304)&&Hi(n,tn)}function Ng(n){var t=Ms(n)?_o(n)[0]:void 0;return t===Mn||t===vr}function of(n){return Lo(n)||!!Ji(n,"0")}function Og(n){return xd(n)||of(n)}function lw(n,t){var r=Zo(n,""+t);return r||(Sf(n,Lo)?Ws(n,function(i){return ju(i)||un}):void 0)}function cw(n){return!(n.flags&(109440|131072))}function sd(n){return!!(n.flags&109440)}function sp(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:e.every(n.types,sd):sd(n)}function Bl(n){return n.flags&1024?Kf(n):n.flags&128?dt:n.flags&256?ot:n.flags&2048?ct:n.flags&512?De:n.flags&1048576?jr(e.sameMap(n.types,Bl)):n}function wd(n){return n.flags&1024&&Bu(n)?Kf(n):n.flags&128&&Bu(n)?dt:n.flags&256&&Bu(n)?ot:n.flags&2048&&Bu(n)?ct:n.flags&512&&Bu(n)?De:n.flags&1048576?jr(e.sameMap(n.types,wd)):n}function rb(n){return n.flags&8192?_n:n.flags&1048576?jr(e.sameMap(n.types,rb)):n}function Pg(n,t){return dm(n,t)||(n=rb(wd(n))),n}function uw(n,t,r){if(n&&sd(n)){var i=t?r?wp(t):t:void 0;n=Pg(n,i)}return n}function Mg(n,t,r,i){if(n&&sd(n)){var s=t?qd(r,t,i):void 0;n=Pg(n,s)}return n}function Lo(n){return!!(e.getObjectFlags(n)&4&&n.target.objectFlags&8)}function ju(n){return n.target.hasRestElement?_o(n)[n.target.typeParameters.length-1]:void 0}function dw(n){var t=ju(n);return t&&Os(t)}function Wm(n){return vd(n)-(n.target.hasRestElement?1:0)}function Rg(n){var t=n.value;return t.base10Value==="0"}function ab(n){for(var t=0,r=0,i=n;r<i.length;r++){var s=i[r];t|=kl(s)}return t}function kl(n){return n.flags&1048576?ab(n.types):n.flags&128?n.value===""?128:0:n.flags&256?n.value===0?256:0:n.flags&2048?Rg(n)?2048:0:n.flags&512?n===wt||n===st?512:0:n.flags&117724}function ib(n){return kl(n)&117632?gs(n,function(t){return!(kl(t)&117632)}):n}function fw(n){return Ws(n,pw)}function pw(n){return n.flags&4?Rs:n.flags&8?vs:n.flags&64?ml:n===st||n===wt||n.flags&(16384|32768|65536)||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&Rg(n)?n:It}function Fg(n,t){var r=t&~n.flags&(32768|65536);return r===0?n:r===32768?jr([n,un]):r===65536?jr([n,Vn]):jr([n,un,Vn])}function wu(n){return e.Debug.assert(a),n.flags&32768?n:jr([n,un])}function mw(n){return vn||(vn=gf("NonNullable",524288,void 0)||pn),vn!==pn?Zf(vn,[n]):hs(n,2097152)}function Wu(n){return a?mw(n):n}function ob(n){return a?jr([n,tt]):n}function hw(n){return n!==tt}function Gg(n){return a?gs(n,hw):n}function Bg(n,t,r){return r?e.isOutermostOptionalChain(t)?wu(n):ob(n):n}function Yp(n,t){return e.isExpressionOfOptionalChainRoot(t)?Wu(n):e.isOptionalChain(t)?Gg(n):n}function gw(n,t){return(n.flags&(8|4|512))!==0&&(t.flags&(8|4|16))!==0}function Vg(n){return!!(n.symbol&&(n.symbol.flags&(4096|2048|384|512))!==0&&!o_(n))||!!(e.getObjectFlags(n)&2048&&Vg(n.source))}function vf(n,t){var r=Va(n.flags,n.escapedName,e.getCheckFlags(n)&8);return r.declarations=n.declarations,r.parent=n.parent,r.type=t,r.target=n,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration),n.nameType&&(r.nameType=n.nameType),r}function yw(n,t){for(var r=e.createSymbolTable(),i=0,s=_u(n);i<s.length;i++){var f=s[i],A=Hn(f),W=t(A);r.set(f.escapedName,W===A?f:vf(f,W))}return r}function bf(n){if(!(Ad(n)&&e.getObjectFlags(n)&32768))return n;var t=n.regularType;if(t)return t;var r=n,i=yw(n,bf),s=Oo(r.symbol,i,r.callSignatures,r.constructSignatures,r.stringIndexInfo,r.numberIndexInfo);return s.flags=r.flags,s.objectFlags|=r.objectFlags&~32768,n.regularType=s,s}function sb(n,t,r){return{parent:n,propertyName:t,siblings:r,resolvedProperties:void 0}}function lb(n){if(!n.siblings){for(var t=[],r=0,i=lb(n.parent);r<i.length;r++){var s=i[r];if(Ad(s)){var f=td(s,n.propertyName);f&&lf(Hn(f),function(A){t.push(A)})}}n.siblings=t}return n.siblings}function _w(n){if(!n.resolvedProperties){for(var t=e.createMap(),r=0,i=lb(n);r<i.length;r++){var s=i[r];if(Ad(s)&&!(e.getObjectFlags(s)&1024))for(var f=0,A=oo(s);f<A.length;f++){var W=A[f];t.set(W.escapedName,W)}}n.resolvedProperties=e.arrayFrom(t.values())}return n.resolvedProperties}function vw(n,t){if(!(n.flags&4))return n;var r=Hn(n),i=t&&sb(t,n.escapedName,void 0),s=Ug(r,i);return s===r?n:vf(n,s)}function bw(n){var t=Xe.get(n.escapedName);if(t)return t;var r=vf(n,un);return r.flags|=16777216,Xe.set(n.escapedName,r),r}function Ew(n,t){for(var r=e.createSymbolTable(),i=0,s=_u(n);i<s.length;i++){var f=s[i];r.set(f.escapedName,vw(f,t))}if(t)for(var A=0,W=_w(t);A<W.length;A++){var f=W[A];r.has(f.escapedName)||r.set(f.escapedName,bw(f))}var xe=Xi(n,0),je=Xi(n,1),Qe=Oo(n.symbol,r,e.emptyArray,e.emptyArray,xe&&dl(Ps(xe.type),xe.isReadonly),je&&dl(Ps(je.type),je.isReadonly));return Qe.objectFlags|=e.getObjectFlags(n)&(16384|1048576),Qe}function Ps(n){return Ug(n,void 0)}function Ug(n,t){if(e.getObjectFlags(n)&786432){if(t===void 0&&n.widened)return n.widened;var r=void 0;if(n.flags&98304)r=oe;else if(Ad(n))r=Ew(n,t);else if(n.flags&1048576){var i=t||sb(void 0,void 0,n.types),s=e.sameMap(n.types,function(f){return f.flags&98304?f:Ug(f,i)});r=jr(s,e.some(s,Uu)?2:1)}else n.flags&2097152?r=Qi(e.sameMap(n.types,Ps)):(Ms(n)||Lo(n))&&(r=Eu(n.target,e.sameMap(_o(n),Ps)));return r&&t===void 0&&(n.widened=r),r||n}return n}function Hm(n){var t=!1;if(e.getObjectFlags(n)&262144){if(n.flags&1048576)if(e.some(n.types,Uu))t=!0;else for(var r=0,i=n.types;r<i.length;r++){var s=i[r];Hm(s)&&(t=!0)}if(Ms(n)||Lo(n))for(var f=0,A=_o(n);f<A.length;f++){var s=A[f];Hm(s)&&(t=!0)}if(Ad(n))for(var W=0,xe=_u(n);W<xe.length;W++){var je=xe[W],s=Hn(je);e.getObjectFlags(s)&262144&&(Hm(s)||wn(je.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,wa(je),zt(Ps(s))),t=!0)}}return t}function ld(n,t,r){var i=zt(Ps(t));if(e.isInJSFile(n)&&!e.isCheckJsEnabledForFile(e.getSourceFileOfNode(n),Ge))return;var s;switch(n.kind){case 208:case 158:case 157:s=ae?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 155:var f=n;if(e.isIdentifier(f.name)&&(e.isCallSignatureDeclaration(f.parent)||e.isMethodSignature(f.parent)||e.isFunctionTypeNode(f.parent))&&f.parent.parameters.indexOf(f)>-1&&(co(f,f.name.escapedText,788968,void 0,f.name.escapedText,!0)||f.name.originalKeywordKind&&e.isTypeNodeKind(f.name.originalKeywordKind))){var A="arg"+f.parent.parameters.indexOf(f);Go(ae,n,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,A,e.declarationNameToString(f.name));return}s=n.dotDotDotToken?ae?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:ae?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 190:if(s=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!ae)return;break;case 298:wn(n,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);return;case 243:case 160:case 159:case 162:case 163:case 200:case 201:if(ae&&!n.name){r===1?wn(n,e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,i):wn(n,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);return}s=ae?r===1?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 185:ae&&wn(n,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);return;default:s=ae?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}Go(ae,n,s,e.declarationNameToString(e.getNameOfDeclaration(n)),i)}function Km(n,t,r){b&&ae&&e.getObjectFlags(t)&262144&&(Hm(t)||ld(n,t,r))}function jg(n,t,r){var i=Vl(n),s=Vl(t),f=vp(n),A=vp(t),W=A?s-1:s,xe=f?W:Math.min(i,W),je=_d(n);if(je){var Qe=_d(t);Qe&&r(je,Qe)}for(var nn=0;nn<xe;nn++)r(Zs(n,nn),Zs(t,nn));A&&r(_p(n,xe),A)}function Wg(n,t,r){var i=ul(n),s=ul(t);i&&s&&fg(i,s)&&i.type&&s.type?r(i.type,s.type):r(Fi(n),Fi(t))}function lp(n,t,r,i){return Hg(n.map(Kg),t,r,i||Vv)}function Tw(n,t){return t===void 0&&(t=0),n&&Hg(e.map(n.inferences,ub),n.signature,n.flags|t,n.compareTypes)}function Hg(n,t,r,i){var s={inferences:n,signature:t,flags:r,compareTypes:i,mapper:function(A){return cb(s,A,!0)},nonFixingMapper:function(A){return cb(s,A,!1)}};return s}function cb(n,t,r){for(var i=n.inferences,s=0;s<i.length;s++){var f=i[s];if(t===f.typeParameter)return r&&!f.isFixed&&(qm(i),f.isFixed=!0),hb(n,s)}return t}function qm(n){for(var t=0,r=n;t<r.length;t++){var i=r[t];i.isFixed||(i.inferredType=void 0)}}function Kg(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1}}function ub(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed}}function Sw(n){var t=e.filter(n.inferences,Hd);return t.length?Hg(e.map(t,ub),n.signature,n.flags,n.compareTypes):void 0}function qg(n){return n&&n.mapper}function Jm(n){var t=e.getObjectFlags(n);return!!(n.flags&63176704||t&4&&(n.node||e.forEach(_o(n),Jm))||t&16&&n.symbol&&n.symbol.flags&(16|8192|32|2048|4096)&&n.symbol.declarations||t&32||n.flags&3145728&&!(n.flags&1024)&&xw(n))}function xw(n){return n.couldContainTypeVariables===void 0&&(n.couldContainTypeVariables=e.some(n.types,Jm)),n.couldContainTypeVariables}function Qp(n,t){return!!(n===t||n.flags&3145728&&e.some(n.types,function(r){return Qp(r,t)})||n.flags&16777216&&(Qp(ad(n),t)||Qp(id(n),t)))}function ww(n){var t=e.createSymbolTable();lf(n,function(i){if(!(i.flags&128))return;var s=e.escapeLeadingUnderscores(i.value),f=Va(4,s);f.type=oe,i.symbol&&(f.declarations=i.symbol.declarations,f.valueDeclaration=i.symbol.valueDeclaration),t.set(s,f)});var r=n.flags&4?dl(jn,!1):void 0;return Oo(void 0,t,e.emptyArray,e.emptyArray,r,void 0)}function Aw(n,t,r){var i=n.id+","+t.id+","+r.id;if(Gi.has(i))return Gi.get(i);Gi.set(i,void 0);var s=kw(n,t,r);return Gi.set(i,s),s}function db(n){return!(e.getObjectFlags(n)&1048576)||Ad(n)&&e.some(oo(n),function(t){return db(Hn(t))})}function kw(n,t,r){if(!(Xi(n,0)||oo(n).length!==0&&db(n)))return;if(Ms(n))return Os(zm(_o(n)[0],t,r),op(n));if(Lo(n)){var i=e.map(_o(n),function(A){return zm(A,t,r)}),s=Jc(t)&4?vd(n)-(n.target.hasRestElement?1:0):n.target.minLength;return Gu(i,s,n.target.hasRestElement,n.target.readonly,n.target.associatedNames)}var f=ss(2048|16,void 0);return f.source=n,f.mappedType=t,f.constraintType=r,f}function Cw(n){return zm(n.propertyType,n.mappedType,n.constraintType)}function zm(n,t,r){var i=xl(r.type,Fu(t)),s=qc(t),f=Kg(i);return Dc([f],n,s),pb(f)||mn}function fb(n,t,r,i){var s,f,A,W,xe,je,Qe;return Vr(this,function(nn){switch(nn.label){case 0:s=t.flags&1048576?D_(t):oo(t),f=0,A=s,nn.label=1;case 1:return f<A.length?(W=A[f],r||!(W.flags&16777216||e.getCheckFlags(W)&48)?(xe=Ji(n,W.escapedName),xe?[3,3]:[4,W]):[3,5]):[3,6];case 2:return nn.sent(),[3,5];case 3:return i?(je=Hn(W),je.flags&109440?(Qe=Hn(xe),Qe.flags&1||js(Qe)===js(je)?[3,5]:[4,W]):[3,5]):[3,5];case 4:nn.sent(),nn.label=5;case 5:return f++,[3,1];case 6:return[2]}})}function Jg(n,t,r,i){var s=fb(n,t,r,i).next();if(!s.done)return s.value}function Dw(n,t){return t.target.minLength>n.target.minLength||!ju(t)&&(!!ju(n)||Wm(t)<Wm(n))}function Lw(n,t){return Lo(n)&&Lo(t)&&Dw(n,t)||!!Jg(n,t,!1,!0)&&!!Jg(t,n,!1,!0)}function pb(n){return n.candidates?jr(n.candidates,2):n.contraCandidates?Qi(n.contraCandidates):void 0}function Dc(n,t,r,i,s){i===void 0&&(i=0),s===void 0&&(s=!1);var f,A,W=!1,xe,je=256,Qe=!0;nn(t,r);function nn(Bt,An){if(!Jm(An))return;if(Bt===yn){var gn=xe;xe=Bt,nn(An,An),xe=gn;return}if(Bt.aliasSymbol&&Bt.aliasTypeArguments&&Bt.aliasSymbol===An.aliasSymbol){pt(Bt.aliasTypeArguments,An.aliasTypeArguments,Xv(Bt.aliasSymbol));return}if(Bt===An&&Bt.flags&3145728){for(var At=0,Ct=Bt.types;At<Ct.length;At++){var Zt=Ct[At];nn(Zt,Zt)}return}if(An.flags&1048576){var pr=it(Bt.flags&1048576?Bt.types:[Bt],An.types,Iw),xr=pr[0],jt=pr[1],sa=it(xr,jt,Nw),Ea=sa[0],Ma=sa[1];if(Ma.length===0)return;if(An=jr(Ma),Ea.length===0){Tn(Bt,An,1);return}Bt=jr(Ea)}else if(An.flags&2097152&&e.some(An.types,function(Mo){return!!qt(Mo)||Fl(Mo)&&!!qt(Tg(Mo)||It)})){if(!(Bt.flags&1048576)){var Li=it(Bt.flags&2097152?Bt.types:[Bt],An.types,Xc),Ea=Li[0],Ma=Li[1];if(Ea.length===0||Ma.length===0)return;Bt=Qi(Ea),An=Qi(Ma)}}else An.flags&(8388608|33554432)&&(An=Td(An));if(An.flags&8650752){if(e.getObjectFlags(Bt)&1048576||Bt===Ht||i&16&&(Bt===kn||Bt===ua))return;var di=qt(An);if(di){if(!di.isFixed){if((di.priority===void 0||i<di.priority)&&(di.candidates=void 0,di.contraCandidates=void 0,di.topLevel=!0,di.priority=i),i===di.priority){var io=xe||Bt;s&&!W?e.contains(di.contraCandidates,io)||(di.contraCandidates=e.append(di.contraCandidates,io),qm(n)):e.contains(di.candidates,io)||(di.candidates=e.append(di.candidates,io),qm(n))}!(i&16)&&An.flags&262144&&di.topLevel&&!Qp(r,An)&&(di.topLevel=!1,qm(n))}je=Math.min(je,i);return}else{var mt=Cc(An,!1);if(mt!==An)In(Bt,mt,nn);else if(An.flags&8388608){var Ot=Cc(An.indexType,!1);if(Ot.flags&63176704){var Wt=yv(Cc(An.objectType,!1),Ot,!1);Wt&&Wt!==An&&In(Bt,Wt,nn)}}}}if(e.getObjectFlags(Bt)&4&&e.getObjectFlags(An)&4&&(Bt.target===An.target||Ms(Bt)&&Ms(An))&&!(Bt.node&&An.node))pt(_o(Bt),_o(An),Lg(Bt.target));else if(Bt.flags&4194304&&An.flags&4194304)s=!s,nn(Bt.type,An.type),s=!s;else if((sp(Bt)||Bt.flags&4)&&An.flags&4194304){var Jt=ww(Bt);s=!s,Tn(Jt,An.type,32),s=!s}else if(Bt.flags&8388608&&An.flags&8388608)nn(Bt.objectType,An.objectType),nn(Bt.indexType,An.indexType);else if(Bt.flags&16777216&&An.flags&16777216)nn(Bt.checkType,An.checkType),nn(Bt.extendsType,An.extendsType),nn(ad(Bt),ad(An)),nn(id(Bt),id(An));else if(An.flags&16777216&&!s){var dr=[ad(An),id(An)];lr(Bt,dr,An.flags)}else if(An.flags&3145728)lr(Bt,An.types,An.flags);else if(Bt.flags&1048576)for(var Ar=Bt.types,Qa=0,ei=Ar;Qa<ei.length;Qa++){var Za=ei[Qa];nn(Za,An)}else{if(!(i&64&&Bt.flags&(2097152|63176704))){var Oi=ds(Bt);if(Oi!==Bt&&Qe&&!(Oi.flags&(524288|2097152)))return Qe=!1,nn(Oi,An);Bt=Oi}Bt.flags&(524288|2097152)&&In(Bt,An,na)}}function Tn(Bt,An,gn){var At=i;i|=gn,nn(Bt,An),i=At}function In(Bt,An,gn){var At=Bt.id+","+An.id,Ct=A&&A.get(At);if(Ct!==void 0){je=Math.min(je,Ct);return}(A||(A=e.createMap())).set(At,-1);var Zt=je;je=256,gn(Bt,An),A.set(At,je),je=Math.min(je,Zt)}function it(Bt,An,gn){for(var At,Ct,Zt=0,pr=An;Zt<pr.length;Zt++)for(var xr=pr[Zt],jt=0,sa=Bt;jt<sa.length;jt++){var Ea=sa[jt];gn(Ea,xr)&&(nn(Ea,xr),At=e.appendIfUnique(At,Ea),Ct=e.appendIfUnique(Ct,xr))}return[At?e.filter(Bt,function(Ma){return!e.contains(At,Ma)}):Bt,Ct?e.filter(An,function(Ma){return!e.contains(Ct,Ma)}):An]}function pt(Bt,An,gn){for(var At=Bt.length<An.length?Bt.length:An.length,Ct=0;Ct<At;Ct++)Ct<gn.length&&(gn[Ct]&7)===2?St(Bt[Ct],An[Ct]):nn(Bt[Ct],An[Ct])}function St(Bt,An){en||i&128?(s=!s,nn(Bt,An),s=!s):nn(Bt,An)}function qt(Bt){if(Bt.flags&8650752)for(var An=0,gn=n;An<gn.length;An++){var At=gn[An];if(Bt===At.typeParameter)return At}return}function hr(Bt){for(var An,gn=0,At=Bt;gn<At.length;gn++){var Ct=At[gn],Zt=Ct.flags&2097152&&e.find(Ct.types,function(pr){return!!qt(pr)});if(!Zt||An&&Zt!==An)return;An=Zt}return An}function lr(Bt,An,gn){var At=0;if(gn&1048576){for(var Ct=void 0,Zt=Bt.flags&1048576?Bt.types:[Bt],pr=new Array(Zt.length),xr=!1,jt=0,sa=An;jt<sa.length;jt++){var Ea=sa[jt];if(qt(Ea))Ct=Ea,At++;else for(var Ma=0;Ma<Zt.length;Ma++){var Li=je;je=256,nn(Zt[Ma],Ea),je===i&&(pr[Ma]=!0),xr=xr||je===-1,je=Math.min(je,Li)}}if(At===0){var di=hr(An);di&&Tn(Bt,di,1);return}if(At===1&&!xr){var io=e.flatMap(Zt,function(dr,Ar){return pr[Ar]?void 0:dr});if(io.length){nn(jr(io),Ct);return}}}else for(var mt=0,Ot=An;mt<Ot.length;mt++){var Ea=Ot[mt];qt(Ea)?At++:nn(Bt,Ea)}if(gn&2097152?At===1:At>0)for(var Wt=0,Jt=An;Wt<Jt.length;Wt++){var Ea=Jt[Wt];qt(Ea)&&Tn(Bt,Ea,1)}}function Tr(Bt,An,gn){if(gn.flags&1048576){for(var At=!1,Ct=0,Zt=gn.types;Ct<Zt.length;Ct++){var pr=Zt[Ct];At=Tr(Bt,An,pr)||At}return At}if(gn.flags&4194304){var xr=qt(gn.type);if(xr&&!xr.isFixed){var jt=Aw(Bt,An,gn);jt&&Tn(jt,xr.typeParameter,e.getObjectFlags(Bt)&1048576?4:2)}return!0}if(gn.flags&262144){Tn(zc(Bt),gn,8);var sa=Xf(gn);if(sa&&Tr(Bt,An,sa))return!0;var Ea=e.map(oo(Bt),Hn),Ma=ms(Bt,0),Li=pv(Bt),di=Li&&Li.type;return nn(jr(e.append(e.append(Ea,Ma),di)),qc(An)),!0}return!1}function na(Bt,An){var gn=An.flags&524288&&!(e.getObjectFlags(An)&16&&An.symbol&&An.symbol.flags&32),At=gn?An.symbol:void 0;if(At){if(e.contains(f,At)){je=-1;return}(f||(f=[])).push(At),Mr(Bt,An),f.pop()}else Mr(Bt,An)}function Mr(Bt,An){if(e.getObjectFlags(Bt)&4&&e.getObjectFlags(An)&4&&(Bt.target===An.target||Ms(Bt)&&Ms(An))){pt(_o(Bt),_o(An),Lg(Bt.target));return}if(Fl(Bt)&&Fl(An)&&(nn(dc(Bt),dc(An)),nn(qc(Bt),qc(An))),e.getObjectFlags(An)&32){var gn=dc(An);if(Tr(Bt,An,gn))return}Lw(Bt,An)||(Wa(Bt,An),Zi(Bt,An,0),Zi(Bt,An,1),Ca(Bt,An))}function Wa(Bt,An){if(Ms(Bt)||Lo(Bt)){if(Lo(An)){for(var gn=Lo(Bt)?Wm(Bt):0,At=Wm(An),Ct=Lo(Bt)?ju(Bt):jm(Bt),Zt=ju(An),pr=At<gn||Ct?At:gn,xr=0;xr<pr;xr++)nn(xr<gn?_o(Bt)[xr]:Ct,_o(An)[xr]);if(Zt){var jt=pr<gn?_o(Bt).slice(pr,gn):[];Ct&&jt.push(Ct),jt.length&&nn(jr(jt),Zt)}return}if(Ms(An)){Ca(Bt,An);return}}for(var sa=_u(An),Ea=0,Ma=sa;Ea<Ma.length;Ea++){var Li=Ma[Ea],di=Ji(Bt,Li.escapedName);di&&nn(Hn(di),Hn(Li))}}function Zi(Bt,An,gn){for(var At=si(Bt,gn),Ct=si(An,gn),Zt=At.length,pr=Ct.length,xr=Zt<pr?Zt:pr,jt=!!(e.getObjectFlags(Bt)&1048576),sa=0;sa<xr;sa++)Sa(ag(At[Zt-xr+sa]),ag(Ct[pr-xr+sa]),jt)}function Sa(Bt,An,gn){if(!gn){var At=W,Ct=An.declaration?An.declaration.kind:0;W=W||Ct===160||Ct===159||Ct===161,jg(Bt,An,St),W=At}Wg(Bt,An,nn)}function Ca(Bt,An){var gn=ms(An,0);if(gn){var At=ms(Bt,0)||R_(Bt,0);At&&nn(At,gn)}var Ct=ms(An,1);if(Ct){var At=ms(Bt,1)||ms(Bt,0)||R_(Bt,1);At&&nn(At,Ct)}}}function Iw(n,t){return Xc(n,t)||!!(n.flags&(128|256))&&Xc(Bl(n),t)}function Nw(n,t){return!!(n.flags&524288&&t.flags&524288&&n.symbol&&n.symbol===t.symbol||n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===t.aliasSymbol)}function Ow(n){var t=ll(n);return!!t&&wo(t.flags&16777216?zh(t):t,131068|4194304)}function Ad(n){return!!(e.getObjectFlags(n)&128)}function mb(n){return!!(e.getObjectFlags(n)&(128|65536))}function Pw(n){if(n.length>1){var t=e.filter(n,mb);if(t.length){var r=jr(t,2);return e.concatenate(e.filter(n,function(i){return!mb(i)}),[r])}}return n}function Mw(n){return n.priority&56?Qi(n.contraCandidates):sw(n.contraCandidates)}function Rw(n,t){var r=Pw(n.candidates),i=Ow(n.typeParameter),s=!i&&n.topLevel&&(n.isFixed||!Qp(Fi(t),n.typeParameter)),f=i?e.sameMap(r,js):s?e.sameMap(r,wd):r,A=n.priority&56?jr(f,2):ow(f);return Ps(A)}function hb(n,t){var r=n.inferences[t];if(!r.inferredType){var i=void 0,s=n.signature;if(s){var f=r.candidates?Rw(r,s):void 0;if(r.contraCandidates){var A=Mw(r);i=f&&!(f.flags&131072)&&Su(f,A)?f:A}else if(f)i=f;else if(n.flags&1)i=Ht;else{var W=Yd(r.typeParameter);W&&(i=Si(W,Tu(Sx(n,t),n.nonFixingMapper)))}}else i=pb(r);r.inferredType=i||zg(!!(n.flags&2));var xe=ll(r.typeParameter);if(xe){var je=Si(xe,n.nonFixingMapper);(!i||!n.compareTypes(i,Jl(je,i)))&&(r.inferredType=i=je)}}return r.inferredType}function zg(n){return n?oe:mn}function Xg(n){for(var t=[],r=0;r<n.inferences.length;r++)t.push(hb(n,r));return t}function gb(n){switch(n.escapedText){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return Ge.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_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_types_Slashjquery;case"describe":case"suite":case"it":case"test":return Ge.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_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_types_Slashjest_or_npm_i_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return Ge.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_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_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later;default:return n.parent.kind===280?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 Yc(n){var t=Ir(n);return t.resolvedSymbol||(t.resolvedSymbol=!e.nodeIsMissing(n)&&co(n,n.escapedText,111551|1048576,gb(n),n,!e.isWriteOnlyAccess(n),!1,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||pn),t.resolvedSymbol}function cp(n){return!!e.findAncestor(n,function(t){return t.kind===171?!0:t.kind===75||t.kind===152?!1:"quit"})}function Yg(n,t,r,i){switch(n.kind){case 75:var s=Yc(n);return s!==pn?(i?J(i):"-1")+"|"+Bd(t)+"|"+Bd(r)+"|"+(Mb(n)?"@":"")+fe(s):void 0;case 103:return"0";case 217:case 199:return Yg(n.expression,t,r,i);case 193:case 194:var f=Ef(n);if(f!==void 0){var A=Yg(n.expression,t,r,i);return A&&A+"."+f}}return}function fl(n,t){switch(t.kind){case 199:case 217:return fl(n,t.expression)}switch(n.kind){case 75:return t.kind===75&&Yc(n)===Yc(t)||(t.kind===241||t.kind===190)&&nc(Yc(n))===Yt(t);case 103:return t.kind===103;case 101:return t.kind===101;case 217:case 199:return fl(n.expression,t);case 193:case 194:return e.isAccessExpression(t)&&Ef(n)===Ef(t)&&fl(n.expression,t.expression)}return!1}function Ef(n){return n.kind===193?n.name.escapedText:e.isStringOrNumericLiteralLike(n.argumentExpression)?e.escapeLeadingUnderscores(n.argumentExpression.text):void 0}function up(n,t){for(;e.isAccessExpression(n);)if(n=n.expression,fl(n,t))return!0;return!1}function sf(n,t){for(;e.isOptionalChain(n);)if(n=n.expression,fl(n,t))return!0;return!1}function Zp(n,t){var r;return e.isAccessExpression(t)&&up(n,t.expression)&&(r=Ef(t))!==void 0&&$p(yb(t.expression),r)}function yb(n){if(n.kind===75)return Hn(Yc(n));if(e.isAccessExpression(n)){var t=yb(n.expression);if(t){var r=Ef(n);return r!==void 0?Zo(t,r):void 0}}return}function Fw(n){return!!(n.flags&1048576&&(n.flags&(16|1024)||!Kp(n)))}function $p(n,t){if(n&&n.flags&1048576){var r=Zh(n,t);if(r&&e.getCheckFlags(r)&2)return r.isDiscriminantProperty===void 0&&(r.isDiscriminantProperty=(r.checkFlags&192)===192&&Fw(Hn(r))),!!r.isDiscriminantProperty}return!1}function Gw(n){return e.isAccessExpression(n)&&n.expression.kind===103&&!!(n.expression.flags&8)}function _b(n,t){for(var r,i=0,s=n;i<s.length;i++){var f=s[i];if($p(t,f.escapedName)){if(r){r.push(f);continue}r=[f]}}return r}function vb(n,t){return fl(n,t)||up(n,t)}function Bw(n,t){if(n.arguments)for(var r=0,i=n.arguments;r<i.length;r++){var s=i[r];if(vb(t,s))return!0}return!!(n.expression.kind===193&&vb(t,n.expression.expression))}function bb(n){return(!n.id||n.id<0)&&(n.id=Fe,Fe++),n.id}function Vw(n,t){if(!(n.flags&1048576))return Hi(n,t);for(var r=0,i=n.types;r<i.length;r++){var s=i[r];if(Hi(s,t))return!0}return!1}function Eb(n,t){if(n!==t){if(t.flags&131072)return t;var r=gs(n,function(i){return Vw(t,i)});if(t.flags&512&&Bu(t)&&(r=Ws(r,ef)),Hi(t,r))return r}return n}function Uw(n){for(var t=0,r=0,i=n;r<i.length;r++){var s=i[r];t|=cd(s)}return t}function Qg(n){var t=fc(n);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&Su(n,Ri))}function cd(n){var t=n.flags;if(t&4)return a?16317953:16776705;if(t&128){var r=n.value==="";return a?r?12123649:7929345:r?12582401:16776705}if(t&(8|32))return a?16317698:16776450;if(t&256){var i=n.value===0;return a?i?12123394:7929090:i?12582146:16776450}if(t&64)return a?16317188:16775940;if(t&2048){var i=Rg(n);return a?i?12122884:7928580:i?12581636:16775940}return t&16?a?16316168:16774920:t&528?a?n===wt||n===st?12121864:7927560:n===wt||n===st?12580616:16774920:t&524288?e.getObjectFlags(n)&16&&Uu(n)?a?16318463:16777215:Qg(n)?a?7880640:16728e3:a?7888800:16736160:t&(16384|32768)?9830144:t&65536?9363232:t&12288?a?7925520:16772880:t&67108864?a?7888800:16736160:t&63176704?cd(cl(n)||mn):t&3145728?Uw(n.types):16777215}function hs(n,t){return gs(n,function(r){return(cd(r)&t)!==0})}function Zg(n,t){if(t){var r=Dl(t);return jr([hs(n,524288),r])}return n}function Tb(n,t){var r=bd(t);if(!er(r))return ye;var i=Po(r);return pp(Zo(n,i),t)||Cl(i)&&ms(n,1)||ms(n,0)||ye}function Sb(n,t){return Sf(n,of)&&lw(n,t)||Kd(65,n,un,void 0)||ye}function xb(n){return Os(Kd(65,n,un,void 0)||ye)}function jw(n){var t=n.parent.kind===191&&$g(n.parent)||n.parent.kind===279&&$g(n.parent.parent);return t?Zg(em(n),n.right):Dl(n.right)}function $g(n){return n.parent.kind===208&&n.parent.left===n||n.parent.kind===231&&n.parent.initializer===n}function Ww(n,t){return Sb(em(n),n.elements.indexOf(t))}function Hw(n){return xb(em(n.parent))}function wb(n){return Tb(em(n.parent),n.name)}function Kw(n){return Zg(wb(n),n.objectAssignmentInitializer)}function em(n){var t=n.parent;switch(t.kind){case 230:return dt;case 231:return hm(t.expression,t.awaitModifier)||ye;case 208:return jw(t);case 202:return un;case 191:return Ww(t,n);case 212:return Hw(t);case 279:return wb(t);case 280:return Kw(t)}return ye}function qw(n){var t=n.parent,r=Ab(t.parent),i=t.kind===188?Tb(r,n.propertyName||n.name):n.dotDotDotToken?xb(r):Sb(r,t.elements.indexOf(n));return Zg(i,n.initializer)}function Jw(n){var t=Ir(n);return t.resolvedType||Dl(n)}function zw(n){return n.initializer?Jw(n.initializer):n.parent.parent.kind===230?dt:n.parent.parent.kind===231&&hm(n.parent.parent.expression,n.parent.parent.awaitModifier)||ye}function Ab(n){return n.kind===241?zw(n):qw(n)}function Xw(n){return n.kind===241&&n.initializer&&Pu(n.initializer)||n.kind!==190&&n.parent.kind===208&&Pu(n.parent.right)}function Vd(n){switch(n.kind){case 199:return Vd(n.expression);case 208:switch(n.operatorToken.kind){case 62:return Vd(n.left);case 27:return Vd(n.right)}}return n}function kb(n){var t=n.parent;return t.kind===199||t.kind===208&&t.operatorToken.kind===62&&t.left===n||t.kind===208&&t.operatorToken.kind===27&&t.right===n?kb(t):n}function Yw(n){return n.kind===275?js(Dl(n.expression)):It}function ey(n){var t=Ir(n);if(!t.switchTypes){t.switchTypes=[];for(var r=0,i=n.caseBlock.clauses;r<i.length;r++){var s=i[r];t.switchTypes.push(Yw(s))}}return t.switchTypes}function Cb(n){for(var t=[],r=0,i=n.caseBlock.clauses;r<i.length;r++){var s=i[r];if(s.kind===275){if(e.isStringLiteralLike(s.expression)){t.push(s.expression.text);continue}return e.emptyArray}t.push(void 0)}return t}function Qw(n,t){return n.flags&1048576?!e.forEach(n.types,function(r){return!e.contains(t,r)}):e.contains(t,n)}function Tf(n,t){return n===t||t.flags&1048576&&Zw(n,t)}function Zw(n,t){if(n.flags&1048576){for(var r=0,i=n.types;r<i.length;r++){var s=i[r];if(!yf(t.types,s))return!1}return!0}return n.flags&1024&&Kf(n)===t?!0:yf(t.types,n)}function lf(n,t){return n.flags&1048576?e.forEach(n.types,t):t(n)}function Sf(n,t){return n.flags&1048576?e.every(n.types,t):t(n)}function gs(n,t){if(n.flags&1048576){var r=n.types,i=e.filter(r,t);return i===r?n:pg(i,n.objectFlags)}return t(n)?n:It}function $w(n){return n.flags&1048576?n.types.length:1}function Ws(n,t,r){if(n.flags&131072)return n;if(!(n.flags&1048576))return t(n);for(var i,s=0,f=n.types;s<f.length;s++){var A=f[s],W=t(A);W&&(i?i.push(W):i=[W])}return i&&jr(i,r?0:1)}function dp(n,t){return gs(n,function(r){return(r.flags&t)!==0})}function Db(n,t){return Tf(dt,n)&&wo(t,128)||Tf(ot,n)&&wo(t,256)||Tf(ct,n)&&wo(t,2048)?Ws(n,function(r){return r.flags&4?dp(t,4|128):r.flags&8?dp(t,8|256):r.flags&64?dp(t,64|2048):r}):n}function xf(n){return n.flags===0}function Ud(n){return n.flags===0?n.type:n}function cf(n,t){return t?{flags:0,type:n}:n}function eA(n){var t=ss(256);return t.elementType=n,t}function ny(n){return Kn[n.id]||(Kn[n.id]=eA(n))}function Lb(n,t){var r=Bl(yT(t));return Tf(r,n.elementType)?n:ny(jr([n.elementType,r]))}function nA(n){return n.flags&131072?ua:Os(n.flags&1048576?jr(n.types,2):n)}function tA(n){return n.finalArrayType||(n.finalArrayType=nA(n.elementType))}function ty(n){return e.getObjectFlags(n)&256?tA(n):n}function rA(n){return e.getObjectFlags(n)&256?n.elementType:It}function aA(n){for(var t=!1,r=0,i=n;r<i.length;r++){var s=i[r];if(!(s.flags&131072)){if(!(e.getObjectFlags(s)&256))return!1;t=!0}}return t}function ry(n,t){return aA(n)?ny(jr(e.map(n,rA))):jr(e.sameMap(n,ty),t)}function Ib(n){var t=kb(n),r=t.parent,i=r.kind===193&&(r.name.escapedText==="length"||r.parent.kind===195&&e.isPushOrUnshiftIdentifier(r.name)),s=r.kind===194&&r.expression===t&&r.parent.kind===208&&r.parent.operatorToken.kind===62&&r.parent.left===r&&!e.isAssignmentTarget(r.parent)&&Jo(Dl(r.argumentExpression),296);return i||s}function iA(n){return!!(n&&(n.kind===241||n.kind===155||n.kind===158||n.kind===157)&&e.getEffectiveTypeAnnotationNode(n))}function ay(n,t){if(n.flags&(16|8192|32|512))return Hn(n);if(n.flags&(3|4)){if(iA(n.valueDeclaration))return Hn(n);t&&n.valueDeclaration&&e.addRelatedInfo(t,e.createDiagnosticForNode(n.valueDeclaration,e.Diagnostics._0_is_declared_here,wa(n)))}}function Xm(n,t){if(!(n.flags&16777216))switch(n.kind){case 75:var r=nc(Yc(n));return ay(r.flags&2097152?M(r):r,t);case 103:return EA(n);case 193:var i=Xm(n.expression,t),s=i&&Ji(i,n.name.escapedText);return s&&ay(s,t);case 199:return Xm(n.expression,t)}}function Ym(n){var t=Ir(n),r=t.effectsSignature;if(r===void 0){var i=void 0;n.parent.kind===225?i=Xm(n.expression,void 0):n.expression.kind!==101&&(e.isOptionalChain(n)?i=Xl(Yp(Pa(n.expression),n.expression),n.expression):i=Cf(n.expression));var s=si(i&&ds(i)||mn,0),f=s.length===1&&!s[0].typeParameters?s[0]:e.some(s,Nb)?If(n):void 0;r=t.effectsSignature=f&&Nb(f)?f:Ai}return r===Ai?void 0:r}function Nb(n){return!!(ul(n)||n.declaration&&(Zd(n.declaration)||mn).flags&131072)}function oA(n,t){if(n.kind===1||n.kind===3)return t.arguments[n.parameterIndex];var r=e.skipParentheses(t.expression);return e.isAccessExpression(r)?e.skipParentheses(r.expression):void 0}function sA(n){var t=e.findAncestor(n,e.isFunctionOrModuleBlock),r=e.getSourceFileOfNode(n),i=e.getSpanOfTokenAtPosition(r,t.statements.pos);Qn.add(e.createFileDiagnostic(r,i.start,i.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function nm(n){var t=Qm(n,!1);return Yo=n,Co=t,t}function lA(n){return!(n.flags&4096&&n.lock.locked)&&Qm(n,!1)}function tm(n){var t=e.skipParentheses(n);return t.kind===90||t.kind===208&&(t.operatorToken.kind===55&&(tm(t.left)||tm(t.right))||t.operatorToken.kind===56&&tm(t.left)&&tm(t.right))}function Qm(n,t){for(;;){if(n===Yo)return Co;var r=n.flags;if(r&2048){if(!t){var i=bb(n),s=nl[i];return s!==void 0?s:nl[i]=Qm(n,!0)}t=!1}if(r&(16|96|256|4096))n=n.antecedent;else if(r&512){var f=Ym(n.node);if(f){var A=ul(f);if(A&&A.kind===3){var W=n.node.arguments[A.parameterIndex];if(W&&tm(W))return!1}if(Fi(f).flags&131072)return!1}n=n.antecedent}else{if(r&4)return e.some(n.antecedents,lA);if(r&8)n=n.antecedents[0];else if(r&128){if(n.clauseStart===n.clauseEnd&&$E(n.switchStatement))return!1;n=n.antecedent}else if(r&8192){Yo=void 0,n.locked=!0;var xe=Qm(n.antecedent,!1);return n.locked=!1,xe}else return!(r&1)}}}function kd(n,t,r,i,s){r===void 0&&(r=t);var f,A=!1,W=0;if(to)return ye;if(!n.flowNode||!s&&!(t.flags&133970943))return t;ga++;var xe=Ha,je=Ud(Tn(n.flowNode));Ha=xe;var Qe=e.getObjectFlags(je)&256&&Ib(n)?ua:ty(je);if(Qe===Qr||n.parent&&n.parent.kind===217&&hs(Qe,2097152).flags&131072)return t;return Qe;function nn(){return A?f:(A=!0,f=Yg(n,t,r,i))}function Tn(mt){if(W===2e3)return to=!0,sA(n),ye;for(W++;;){var Ot=mt.flags;if(Ot&2048){for(var Wt=xe;Wt<Ha;Wt++)if($s[Wt]===mt)return W--,el[Wt]}var Jt=void 0;if(Ot&8192)mt.locked=!0,Jt=Tn(mt.antecedent),mt.locked=!1;else if(Ot&4096){mt=mt.antecedent;continue}else if(Ot&16){if(Jt=it(mt),!Jt){mt=mt.antecedent;continue}}else if(Ot&512){if(Jt=St(mt),!Jt){mt=mt.antecedent;continue}}else if(Ot&96)Jt=hr(mt);else if(Ot&128)Jt=lr(mt);else if(Ot&12){if(mt.antecedents.length===1){mt=mt.antecedents[0];continue}Jt=Ot&4?Tr(mt):na(mt)}else if(Ot&256){if(Jt=qt(mt),!Jt){mt=mt.antecedent;continue}}else if(Ot&2){var dr=mt.node;if(dr&&dr!==i&&n.kind!==193&&n.kind!==194&&n.kind!==103){mt=dr.flowNode;continue}Jt=r}else Jt=wh(t);return Ot&2048&&($s[Ha]=mt,el[Ha]=Jt,Ha++),W--,Jt}}function In(mt){var Ot=mt.node;if(mt.flags&16384){var Wt=bs[J(Ot)];if(Wt)return Wt}var Jt=ga,dr=pp(Ot.kind===241||Ot.kind===190?Ab(Ot):em(Ot),n);return ga!==Jt&&da===Dr&&(mt.flags|=16384,bs[J(Ot)]=dr),dr}function it(mt){var Ot=mt.node;if(fl(n,Ot)){if(!nm(mt))return Qr;if(e.getAssignmentTargetKind(Ot)===2){var Wt=Tn(mt.antecedent);return cf(Bl(Ud(Wt)),xf(Wt))}if(t===kn||t===ua){if(Xw(Ot))return ny(It);var Jt=Bl(In(mt));return Hi(Jt,t)?Jt:gi}return t.flags&1048576?Eb(t,In(mt)):t}if(up(n,Ot)){if(!nm(mt))return Qr;if(e.isVariableDeclaration(Ot)&&(e.isInJSFile(Ot)||e.isVarConst(Ot))){var dr=e.getDeclaredExpandoInitializer(Ot);if(dr&&(dr.kind===200||dr.kind===201))return Tn(mt.antecedent)}return t}return e.isVariableDeclaration(Ot)&&Ot.parent.parent.kind===230&&fl(n,Ot.parent.parent.expression)?vy(Ud(Tn(mt.antecedent))):void 0}function pt(mt,Ot){var Wt=e.skipParentheses(Ot);if(Wt.kind===90)return Qr;if(Wt.kind===208){if(Wt.operatorToken.kind===55)return pt(pt(mt,Wt.left),Wt.right);if(Wt.operatorToken.kind===56)return jr([pt(mt,Wt.left),pt(mt,Wt.right)])}return di(mt,Wt,!0)}function St(mt){var Ot=Ym(mt.node);if(Ot){var Wt=ul(Ot);if(Wt&&(Wt.kind===2||Wt.kind===3)){var Jt=Tn(mt.antecedent),dr=Ud(Jt),Ar=Wt.type?Li(dr,Wt,mt.node,!0):Wt.kind===3&&Wt.parameterIndex>=0&&Wt.parameterIndex<mt.node.arguments.length?pt(dr,mt.node.arguments[Wt.parameterIndex]):dr;return Ar===dr?Jt:cf(Ar,xf(Jt))}if(Fi(Ot).flags&131072)return Qr}return}function qt(mt){if(t===kn||t===ua){var Ot=mt.node,Wt=Ot.kind===195?Ot.expression.expression:Ot.left.expression;if(fl(n,Vd(Wt))){var Jt=Tn(mt.antecedent),dr=Ud(Jt);if(e.getObjectFlags(dr)&256){var Ar=dr;if(Ot.kind===195)for(var Qa=0,ei=Ot.arguments;Qa<ei.length;Qa++){var Za=ei[Qa];Ar=Lb(Ar,Za)}else{var Oi=yT(Ot.left.argumentExpression);Jo(Oi,296)&&(Ar=Lb(Ar,Ot.right))}return Ar===dr?Jt:cf(Ar,xf(Jt))}return Jt}}return}function hr(mt){var Ot=Tn(mt.antecedent),Wt=Ud(Ot);if(Wt.flags&131072)return Ot;var Jt=(mt.flags&32)!==0,dr=ty(Wt),Ar=di(dr,mt.node,Jt);if(Ar===dr)return Ot;var Qa=xf(Ot),ei=Qa&&Ar.flags&131072?Ht:Ar;return cf(ei,Qa)}function lr(mt){var Ot=mt.switchStatement.expression,Wt=Tn(mt.antecedent),Jt=Ud(Wt);if(fl(n,Ot))Jt=Zt(Jt,mt.switchStatement,mt.clauseStart,mt.clauseEnd);else if(Ot.kind===203&&fl(n,Ot.expression))Jt=jt(Jt,mt.switchStatement,mt.clauseStart,mt.clauseEnd);else if(a&&(sf(Ot,n)?Jt=Ct(Jt,mt.switchStatement,mt.clauseStart,mt.clauseEnd,function(dr){return!(dr.flags&(32768|131072))}):Ot.kind===203&&sf(Ot.expression,n)&&(Jt=Ct(Jt,mt.switchStatement,mt.clauseStart,mt.clauseEnd,function(dr){return!(dr.flags&131072||dr.flags&128&&dr.value==="undefined")}))),Mr(Ot,Jt))Jt=Wa(Jt,Ot,function(dr){return Zt(dr,mt.switchStatement,mt.clauseStart,mt.clauseEnd)});else if(Zp(n,Ot))Jt=t;else if(mt.clauseStart===mt.clauseEnd&&$E(mt.switchStatement))return Qr;return cf(Jt,xf(Wt))}function Tr(mt){for(var Ot=[],Wt=!1,Jt=!1,dr=0,Ar=mt.antecedents;dr<Ar.length;dr++){var Qa=Ar[dr];if(Qa.flags&4096&&Qa.lock.locked)continue;var ei=Tn(Qa),Za=Ud(ei);if(Za===t&&t===r)return Za;e.pushIfUnique(Ot,Za),Tf(Za,t)||(Wt=!0),xf(ei)&&(Jt=!0)}return cf(ry(Ot,Wt?2:1),Jt)}function na(mt){var Ot=bb(mt),Wt=Ns[Ot]||(Ns[Ot]=e.createMap()),Jt=nn();if(!Jt)return t;var dr=Wt.get(Jt);if(dr)return dr;for(var Ar=Dr;Ar<da;Ar++)if(yl[Ar]===mt&&Ks[Ar]===Jt&&qs[Ar].length)return cf(ry(qs[Ar],1),!0);for(var Qa=[],ei=!1,Za,Oi=0,Mo=mt.antecedents;Oi<Mo.length;Oi++){var Ao=Mo[Oi],Hs=void 0;if(!Za)Hs=Za=Tn(Ao);else{yl[da]=mt,Ks[da]=Jt,qs[da]=Qa,da++,Hs=Tn(Ao),da--;var ks=Wt.get(Jt);if(ks)return ks}var Ld=Ud(Hs);if(e.pushIfUnique(Qa,Ld),Tf(Ld,t)||(ei=!0),Ld===t)break}var la=ry(Qa,ei?2:1);return xf(Za)?cf(la,!0):(Wt.set(Jt,la),la)}function Mr(mt,Ot){if(!(Ot.flags&1048576)||!e.isAccessExpression(mt))return!1;var Wt=Ef(mt);return Wt===void 0?!1:fl(n,mt.expression)&&$p(Ot,Wt)}function Wa(mt,Ot,Wt){var Jt=Ef(Ot);if(Jt===void 0)return mt;var dr=Zo(mt,Jt),Ar=dr&&Wt(dr);return dr===Ar?mt:gs(mt,function(Qa){return rf(hd(Qa,Jt),Ar)})}function Zi(mt,Ot,Wt){return fl(n,Ot)?hs(mt,Wt?4194304:8388608):(a&&Wt&&sf(Ot,n)&&(mt=hs(mt,2097152)),Mr(Ot,t)?Wa(mt,Ot,function(Jt){return hs(Jt,Wt?4194304:8388608)}):Zp(n,Ot)?t:mt)}function Sa(mt,Ot,Wt){if(Xi(mt,0))return!0;var Jt=Ji(mt,Ot);return Jt?Jt.flags&16777216?!0:Wt:!Wt}function Ca(mt,Ot,Wt){if(mt.flags&(1048576|524288)||qp(mt)){var Jt=e.escapeLeadingUnderscores(Ot.text);return gs(mt,function(dr){return Sa(dr,Jt,Wt)})}return mt}function Bt(mt,Ot,Wt){switch(Ot.operatorToken.kind){case 62:return Zi(di(mt,Ot.right,Wt),Ot.left,Wt);case 34:case 35:case 36:case 37:var Jt=Ot.operatorToken.kind,dr=Vd(Ot.left),Ar=Vd(Ot.right);if(dr.kind===203&&e.isStringLiteralLike(Ar))return At(mt,dr,Jt,Ar,Wt);if(Ar.kind===203&&e.isStringLiteralLike(dr))return At(mt,Ar,Jt,dr,Wt);if(fl(n,dr))return gn(mt,Jt,Ar,Wt);if(fl(n,Ar))return gn(mt,Jt,dr,Wt);if(a&&(sf(dr,n)?mt=An(mt,Jt,Ar,Wt):sf(Ar,n)&&(mt=An(mt,Jt,dr,Wt))),Mr(dr,t))return Wa(mt,dr,function(ei){return gn(ei,Jt,Ar,Wt)});if(Mr(Ar,t))return Wa(mt,Ar,function(ei){return gn(ei,Jt,dr,Wt)});if(Zp(n,dr)||Zp(n,Ar))return t;break;case 97:return sa(mt,Ot,Wt);case 96:var Qa=Vd(Ot.right);if(e.isStringLiteralLike(Ot.left)&&fl(n,Qa))return Ca(mt,Ot.left,Wt);break;case 27:return di(mt,Ot.right,Wt)}return mt}function An(mt,Ot,Wt,Jt){var dr=Ot===34||Ot===36?Jt:!Jt,Ar=Ot===34||Ot===35,Qa=!(cd(Dl(Wt))&(Ar?262144:65536));return dr===Qa?hs(mt,2097152):mt}function gn(mt,Ot,Wt,Jt){if(mt.flags&1)return mt;(Ot===35||Ot===37)&&(Jt=!Jt);var dr=Dl(Wt);if(mt.flags&2&&Jt&&(Ot===36||Ot===37))return dr.flags&(131068|67108864)?dr:dr.flags&524288?Wr:mt;if(dr.flags&98304){if(!a)return mt;var Ar=Ot===34||Ot===35,Qa=Ar?Jt?262144:2097152:dr.flags&65536?Jt?131072:1048576:Jt?65536:524288;return hs(mt,Qa)}if(mt.flags&67637251)return mt;if(Jt){var ei=Ot===34?function(Mo){return wg(Mo,dr)||gw(Mo,dr)}:function(Mo){return wg(Mo,dr)},Za=gs(mt,ei);return Za.flags&131072?mt:Db(Za,dr)}if(sd(dr)){var Oi=js(dr);return gs(mt,function(Mo){return js(Mo)!==Oi})}return mt}function At(mt,Ot,Wt,Jt,dr){(Wt===35||Wt===37)&&(dr=!dr);var Ar=Vd(Ot.expression);if(!fl(n,Ar))return a&&sf(Ar,n)&&dr===(Jt.text!=="undefined")?hs(mt,2097152):up(n,Ar)?t:mt;if(mt.flags&1&&Jt.text==="function")return mt;var Qa=dr?H.get(Jt.text)||128:Pe.get(Jt.text)||32768;return hs(dr?Ws(mt,ei):mt,Qa);function ei(Za){if(Za.flags&2&&Jt.text==="object")return jr([Wr,Vn]);var Oi=Jt.text==="function"?Ri:yr.get(Jt.text);if(Oi){if(Su(Za,Oi))return Za;if(Su(Oi,Za))return Oi;if(Za.flags&63176704){var Mo=cl(Za)||oe;if(Su(Oi,Mo))return Qi([Za,Oi])}}return Za}}function Ct(mt,Ot,Wt,Jt,dr){var Ar=Wt!==Jt&&e.every(ey(Ot).slice(Wt,Jt),dr);return Ar?hs(mt,2097152):mt}function Zt(mt,Ot,Wt,Jt){var dr=ey(Ot);if(!dr.length)return mt;var Ar=dr.slice(Wt,Jt),Qa=Wt===Jt||e.contains(Ar,It);if(mt.flags&2&&!Qa){for(var ei=void 0,Za=0;Za<Ar.length;Za+=1){var Oi=Ar[Za];if(Oi.flags&(131068|67108864))ei!==void 0&&ei.push(Oi);else if(Oi.flags&524288)ei===void 0&&(ei=Ar.slice(0,Za)),ei.push(Wr);else return mt}return jr(ei===void 0?Ar:ei)}var Mo=jr(Ar),Ao=Mo.flags&131072?It:Db(gs(mt,function(ks){return wg(Mo,ks)}),Mo);if(!Qa)return Ao;var Hs=gs(mt,function(ks){return!(sd(ks)&&e.contains(dr,js(ks)))});return Ao.flags&131072?Hs:jr([Ao,Hs])}function pr(mt,Ot){switch(Ot){case"function":return mt.flags&1?mt:Ri;case"object":return mt.flags&2?jr([Wr,Vn]):mt;default:return yr.get(Ot)||mt}}function xr(mt){return function(Ot){if(Su(mt,Ot))return mt;if(Ot.flags&63176704){var Wt=cl(Ot)||oe;if(Su(mt,Wt))return Qi([Ot,mt])}return Ot}}function jt(mt,Ot,Wt,Jt){var dr=Cb(Ot);if(!dr.length)return mt;var Ar=e.findIndex(dr,function(ks){return ks===void 0}),Qa=Wt===Jt||Ar>=Wt&&Ar<Jt,ei,Za;if(Ar>-1){var Oi=dr.filter(function(ks){return ks!==void 0}),Mo=Ar<Wt?Wt-1:Wt,Ao=Ar<Jt?Jt-1:Jt;ei=Oi.slice(Mo,Ao),Za=Iy(Mo,Ao,Oi,Qa)}else ei=dr.slice(Wt,Jt),Za=Iy(Wt,Jt,dr,Qa);if(Qa)return gs(mt,function(ks){return(cd(ks)&Za)===Za});var Hs=hs(jr(ei.map(function(ks){return pr(mt,ks)})),Za);return Hs.flags&1048576&&(Hs=Eb(Hs,N_(mt))),hs(Ws(mt,xr(Hs)),Za)}function sa(mt,Ot,Wt){var Jt=Vd(Ot.left);if(!fl(n,Jt))return Wt&&a&&sf(Jt,n)?hs(mt,2097152):up(n,Jt)&&!Gw(n)?t:mt;var dr=Dl(Ot.right);if(!ap(dr,Ri))return mt;var Ar,Qa=Ji(dr,"prototype");if(Qa){var ei=Hn(Qa);Bi(ei)||(Ar=ei)}if(Bi(mt)&&(Ar===bo||Ar===Ri))return mt;if(!Ar){var Za=si(dr,1);Ar=Za.length?jr(e.map(Za,function(Oi){return Fi(Yf(Oi))})):jn}return Ea(mt,Ar,Wt,ap)}function Ea(mt,Ot,Wt,Jt){if(!Wt)return gs(mt,function(Ar){return!Jt(Ar,Ot)});if(mt.flags&1048576){var dr=gs(mt,function(Ar){return Jt(Ar,Ot)});if(!(dr.flags&131072))return dr}return Su(Ot,mt)?Ot:Hi(mt,Ot)?mt:Hi(Ot,mt)?Ot:Qi([mt,Ot])}function Ma(mt,Ot,Wt){if(Bw(Ot,n)){var Jt=Wt||!e.isCallChain(Ot)?Ym(Ot):void 0,dr=Jt&&ul(Jt);if(dr&&(dr.kind===0||dr.kind===1))return Li(mt,dr,Ot,Wt)}return mt}function Li(mt,Ot,Wt,Jt){if(Ot.type&&!(Bi(mt)&&(Ot.type===bo||Ot.type===Ri))){var dr=oA(Ot,Wt);if(dr){if(fl(n,dr))return Ea(mt,Ot.type,Jt,Su);if(a&&Jt&&sf(dr,n)&&!(cd(Ot.type)&65536))return hs(mt,2097152);if(up(n,dr))return t}}return mt}function di(mt,Ot,Wt){if(e.isExpressionOfOptionalChainRoot(Ot)||e.isBinaryExpression(Ot.parent)&&Ot.parent.operatorToken.kind===60&&Ot.parent.left===Ot)return io(mt,Ot,Wt);switch(Ot.kind){case 75:case 103:case 101:case 193:case 194:return Zi(mt,Ot,Wt);case 195:return Ma(mt,Ot,Wt);case 199:return di(mt,Ot.expression,Wt);case 208:return Bt(mt,Ot,Wt);case 206:if(Ot.operator===53)return di(mt,Ot.operand,!Wt);break}return mt}function io(mt,Ot,Wt){return fl(n,Ot)?hs(mt,Wt?2097152:262144):Mr(Ot,t)?Wa(mt,Ot,function(Jt){return hs(Jt,Wt?2097152:262144)}):Zp(n,Ot)?t:mt}}function cA(n,t){if(n=n.exportSymbol||n,t.kind===75&&(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),e.isExpressionNode(t)&&!e.isAssignmentTarget(t))){var r=Dl(t);if(nc(Ir(t).resolvedSymbol)===n)return r}return Hn(n)}function fp(n){return e.findAncestor(n.parent,function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||t.kind===249||t.kind===288||t.kind===158})}function uA(n){var t=e.getRootDeclaration(n.valueDeclaration).parent,r=Ir(t);return r.flags&8388608||(r.flags|=8388608,dA(t)||Ob(t)),n.isAssigned||!1}function dA(n){return!!e.findAncestor(n.parent,function(t){return e.isFunctionLike(t)&&!!(Ir(t).flags&8388608)})}function Ob(n){if(n.kind===75){if(e.isAssignmentTarget(n)){var t=Yc(n);t.valueDeclaration&&e.getRootDeclaration(t.valueDeclaration).kind===155&&(t.isAssigned=!0)}}else e.forEachChild(n,Ob)}function Pb(n){return n.flags&3&&(yy(n)&2)!==0&&Hn(n)!==ua}function fA(n,t){var r=a&&t.kind===155&&t.initializer&&kl(n)&32768&&!(kl(Pa(t.initializer))&32768);return r?hs(n,524288):n}function Mb(n){var t=n.parent;return t.kind===193||t.kind===195&&t.expression===n||t.kind===194&&t.expression===n||t.kind===190&&t.name===n&&!!t.initializer}function pA(n){return n.flags&58982400&&wo(cl(n)||mn,98304)}function pp(n,t){return n&&Mb(t)&&lf(n,pA)?Ws(Ps(n),N_):n}function mA(n){return!!e.findAncestor(n,function(t){return t.parent&&e.isExportAssignment(t.parent)&&t.parent.expression===t&&e.isEntityNameExpression(t)})}function Zm(n,t){l(n,111551)&&!cp(t)&&(Ge.preserveConstEnums&&mA(t)||!Lp(M(n)))&&on(n)}function hA(n){var t=Yc(n);if(t===pn)return ye;if(t===he){var r=e.getContainingFunction(n);return x<2&&(r.kind===201?wn(n,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasModifier(r,256)&&wn(n,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Ir(r).flags|=8192,Hn(t)}n.parent&&e.isPropertyAccessExpression(n.parent)&&n.parent.expression===n||Zm(t,n);var i=nc(t),s=i.valueDeclaration;if(i.flags&32){if(s.kind===244&&e.nodeIsDecorated(s))for(var r=e.getContainingClass(n);r!==void 0;){if(r===s&&r.name!==n){Ir(s).flags|=16777216,Ir(n).flags|=33554432;break}r=e.getContainingClass(r)}else if(s.kind===213)for(var r=e.getThisContainer(n,!1);r.kind!==288;){if(r.parent===s){r.kind===158&&e.hasModifier(r,32)&&(Ir(s).flags|=16777216,Ir(n).flags|=33554432);break}r=e.getThisContainer(r,!1)}}_A(n,t);var f=pp(Hn(i),n),A=e.getAssignmentTargetKind(n);if(A){if(!(i.flags&3)&&!(e.isInJSFile(n)&&i.flags&512))return wn(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,wa(t)),ye;if($c(i))return i.flags&3?wn(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,wa(t)):wn(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,wa(t)),ye}var W=i.flags&2097152;if(i.flags&3){if(A===1)return f}else if(W)s=e.find(t.declarations,V);else return f;if(!s)return f;for(var xe=e.getRootDeclaration(s).kind===155,je=fp(s),Qe=fp(n),nn=Qe!==je,Tn=n.parent&&n.parent.parent&&e.isSpreadAssignment(n.parent)&&$g(n.parent.parent),In=t.flags&134217728;Qe!==je&&(Qe.kind===200||Qe.kind===201||e.isObjectLiteralOrClassExpressionMethod(Qe))&&(Pb(i)||xe&&!uA(i));)Qe=fp(Qe);var it=xe||W||nn||Tn||In||e.isBindingElement(s)||f!==kn&&f!==ua&&(!a||(f.flags&(3|16384))!==0||cp(n)||n.parent.kind===261)||n.parent.kind===217||s.kind===241&&s.exclamationToken||s.flags&8388608,pt=it?xe?fA(f,s):f:f===kn||f===ua?un:wu(f),St=kd(n,f,pt,Qe,!it);if(!Ib(n)&&(f===kn||f===ua)){if(St===kn||St===ua)return ae&&(wn(e.getNameOfDeclaration(s),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,wa(t),zt(St)),wn(n,e.Diagnostics.Variable_0_implicitly_has_an_1_type,wa(t),zt(St))),wh(St)}else if(!it&&!(kl(f)&32768)&&kl(St)&32768)return wn(n,e.Diagnostics.Variable_0_is_used_before_being_assigned,wa(t)),f;return A?Bl(St):St}function gA(n,t){return!!e.findAncestor(n,function(r){return r===t?"quit":e.isFunctionLike(r)})}function yA(n,t){return e.findAncestor(n,function(r){return r===t?"quit":r===t.initializer||r===t.condition||r===t.incrementor||r===t.statement})}function _A(n,t){if(x>=2||(t.flags&(2|32))===0||e.isSourceFile(t.valueDeclaration)||t.valueDeclaration.parent.kind===278)return;for(var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration),i=gA(n.parent,r),s=r,f=!1;s&&!e.nodeStartsNewLexicalEnvironment(s);){if(e.isIterationStatement(s,!1)){f=!0;break}s=s.parent}if(f){if(i){var A=!0;if(e.isForStatement(r)&&e.getAncestor(t.valueDeclaration,242).parent===r){var W=yA(n.parent,r);if(W){var xe=Ir(W);xe.flags|=131072;var je=xe.capturedBlockScopeBindings||(xe.capturedBlockScopeBindings=[]);e.pushIfUnique(je,t),W===r.initializer&&(A=!1)}}A&&(Ir(s).flags|=65536)}r.kind===229&&e.getAncestor(t.valueDeclaration,242).parent===r&&bA(n,r)&&(Ir(t.valueDeclaration).flags|=4194304),Ir(t.valueDeclaration).flags|=524288}i&&(Ir(t.valueDeclaration).flags|=262144)}function vA(n,t){var r=Ir(n);return!!r&&e.contains(r.capturedBlockScopeBindings,Yt(t))}function bA(n,t){for(var r=n;r.parent.kind===199;)r=r.parent;var i=!1;if(e.isAssignmentTarget(r))i=!0;else if(r.parent.kind===206||r.parent.kind===207){var s=r.parent;i=s.operator===45||s.operator===46}return i?!!e.findAncestor(r,function(f){return f===t?"quit":f===t.statement}):!1}function iy(n,t){if(Ir(n).flags|=2,t.kind===158||t.kind===161){var r=t.parent;Ir(r).flags|=4}else Ir(t).flags|=4}function Rb(n){return e.isSuperCall(n)?n:e.isFunctionLike(n)?void 0:e.forEachChild(n,Rb)}function Fb(n){var t=Ir(n);return t.hasSuperCall===void 0&&(t.superCall=Rb(n.body),t.hasSuperCall=!!t.superCall),t.superCall}function Gb(n){var t=Yt(n),r=yo(t),i=uc(r);return i===ut}function Bb(n,t,r){var i=t.parent,s=e.getClassExtendsHeritageElement(i);if(s&&!Gb(i)){var f=Fb(t);(!f||f.end>n.pos)&&wn(n,r)}}function Vb(n){var t=e.getThisContainer(n,!0),r=!1;t.kind===161&&Bb(n,t,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),t.kind===201&&(t=e.getThisContainer(t,!1),r=!0);switch(t.kind){case 248:wn(n,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 247:wn(n,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 161:Ub(n,t)&&wn(n,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 158:case 157:e.hasModifier(t,32)&&wn(n,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 153:wn(n,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);break}r&&x<2&&iy(n,t);var i=oy(n,!0,t);if(ce){var s=Hn(sn);if(i===s&&r)wn(n,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!i){var f=wn(n,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(t)){var A=oy(t);A&&A!==s&&e.addRelatedInfo(f,e.createDiagnosticForNode(t,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return i||oe}function oy(n,t,r){t===void 0&&(t=!0),r===void 0&&(r=e.getThisContainer(n,!1));var i=e.isInJSFile(n);if(e.isFunctionLike(r)&&(!sy(n)||e.getThisParameter(r))){var s=TA(r);if(i&&s){var f=Pa(s).symbol;if(f&&f.members&&f.flags&16){var A=yo(f).thisType;return kd(n,A)}}else if(i&&(r.kind===200||r.kind===243)&&e.getJSDocClassTag(r)){var A=yo(zr(r.symbol)).thisType;return kd(n,A)}var W=q(r)||Hb(r);if(W)return kd(n,W)}if(e.isClassLike(r.parent)){var xe=Yt(r.parent),je=e.hasModifier(r,32)?Hn(xe):yo(xe).thisType;return kd(n,je)}if(i){var je=SA(r);if(je&&je!==ye)return kd(n,je)}if(e.isSourceFile(r)){if(r.commonJsModuleIndicator){var Qe=Yt(r);return Qe&&Hn(Qe)}else if(t)return Hn(sn)}}function EA(n){var t=e.getThisContainer(n,!1);if(e.isFunctionLike(t)){var r=pc(t);if(r.thisParameter)return ay(r.thisParameter)}if(e.isClassLike(t.parent)){var i=Yt(t.parent);return e.hasModifier(t,32)?Hn(i):yo(i).thisType}}function TA(n){if(n.kind===200&&e.isBinaryExpression(n.parent)&&e.getAssignmentDeclarationKind(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===160&&n.parent.kind===192&&e.isBinaryExpression(n.parent.parent)&&e.getAssignmentDeclarationKind(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===200&&n.parent.kind===279&&n.parent.parent.kind===192&&e.isBinaryExpression(n.parent.parent.parent)&&e.getAssignmentDeclarationKind(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===200&&e.isPropertyAssignment(n.parent)&&e.isIdentifier(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&e.isObjectLiteralExpression(n.parent.parent)&&e.isCallExpression(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&e.getAssignmentDeclarationKind(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(n)&&e.isIdentifier(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&e.isObjectLiteralExpression(n.parent)&&e.isCallExpression(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&e.getAssignmentDeclarationKind(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function SA(n){var t=e.getJSDocType(n);if(t&&t.kind===298){var r=t;if(r.parameters.length>0&&r.parameters[0].name&&r.parameters[0].name.escapedText==="this")return ja(r.parameters[0].type)}var i=e.getJSDocThisTag(n);if(i&&i.typeExpression)return ja(i.typeExpression)}function Ub(n,t){return!!e.findAncestor(n,function(r){return e.isFunctionLikeDeclaration(r)?"quit":r.kind===155&&r.parent===t})}function jb(n){var t=n.parent.kind===195&&n.parent.expression===n,r=e.getSuperContainer(n,!0),i=!1;if(!t)for(;r&&r.kind===201;)r=e.getSuperContainer(r,!0),i=x<2;var s=Qe(r),f=0;if(!s){var A=e.findAncestor(n,function(nn){return nn===r?"quit":nn.kind===153});return A&&A.kind===153?wn(n,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?wn(n,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!r||!r.parent||!(e.isClassLike(r.parent)||r.parent.kind===192)?wn(n,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):wn(n,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),ye}if(!t&&r.kind===161&&Bb(n,r,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.hasModifier(r,32)||t?f=512:f=256,Ir(n).flags|=f,r.kind===160&&e.hasModifier(r,256)&&(e.isSuperProperty(n.parent)&&e.isAssignmentTarget(n.parent)?Ir(r).flags|=4096:Ir(r).flags|=2048),i&&iy(n.parent,r),r.parent.kind===192)return x<2?(wn(n,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ye):oe;var W=r.parent;if(!e.getClassExtendsHeritageElement(W))return wn(n,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),ye;var xe=yo(Yt(W)),je=xe&&Tl(xe)[0];if(!je)return ye;if(r.kind===161&&Ub(n,r))return wn(n,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),ye;return f===512?uc(xe):Jl(je,xe.thisType);function Qe(nn){return nn?t?nn.kind===161:e.isClassLike(nn.parent)||nn.parent.kind===192?e.hasModifier(nn,32)?nn.kind===160||nn.kind===159||nn.kind===162||nn.kind===163:nn.kind===160||nn.kind===159||nn.kind===162||nn.kind===163||nn.kind===158||nn.kind===157||nn.kind===161:!1:!1}}function xA(n){return(n.kind===160||n.kind===162||n.kind===163)&&n.parent.kind===192?n.parent:n.kind===200&&n.parent.kind===279?n.parent.parent:void 0}function Wb(n){return e.getObjectFlags(n)&4&&n.target===Ii?_o(n)[0]:void 0}function wA(n){return Ws(n,function(t){return t.flags&2097152?e.forEach(t.types,Wb):Wb(t)})}function Hb(n){if(n.kind===201)return;if(Gv(n)){var t=ah(n);if(t){var r=t.thisParameter;if(r)return Hn(r)}}var i=e.isInJSFile(n);if(ce||i){var s=xA(n);if(s){for(var f=Hu(s),A=s,W=f;W;){var xe=wA(W);if(xe)return Si(xe,qg(mp(s)));if(A.parent.kind!==279)break;A=A.parent.parent,W=Hu(A)}return Ps(f?Wu(f):as(s))}var je=n.parent;if(je.kind===208&&je.operatorToken.kind===62){var Qe=je.left;if(Qe.kind===193||Qe.kind===194){var nn=Qe.expression;if(i&&e.isIdentifier(nn)){var Tn=e.getSourceFileOfNode(je);if(Tn.commonJsModuleIndicator&&Yc(nn)===Tn.symbol)return}return Ps(as(nn))}}}return}function Kb(n,t){var r=n.parent;if(!Gv(r))return;var i=e.getImmediatelyInvokedFunctionExpression(r);if(i&&i.arguments){var s=wy(i),f=r.parameters.indexOf(n);if(n.dotDotDotToken)return xy(s,f,s.length,oe,void 0);var A=Ir(i),W=A.resolvedSignature;A.resolvedSignature=wi;var xe=f<s.length?wd(Pa(s[f])):n.initializer?void 0:Mn;return A.resolvedSignature=W,xe}var je=ah(r);if(je){if(t){rT(r);var xe=Hn(zr(r.symbol));if(Bi(xe))return xe;je=si(xe,0)[0]}var Qe=r.parameters.indexOf(n)-(e.getThisParameter(r)?1:0);return n.dotDotDotToken&&e.lastOrUndefined(r.parameters)===n?_p(je,Qe):lm(je,Qe)}}function qb(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return ja(t);switch(n.kind){case 155:return Kb(n,!1);case 190:return AA(n)}}function AA(n){var t=n.parent.parent,r=n.propertyName||n.name,i=qb(t);if(i&&!e.isBindingPattern(r)&&!Zu(r)){var s=bd(r);if(er(s)){var f=Po(s);return Zo(i,f)}}}function kA(n){var t=n.parent;if(e.hasInitializer(t)&&n===t.initializer){var r=qb(t);if(r)return r;if(e.isBindingPattern(t.name))return Dn(t.name,!0,!1)}return}function CA(n){var t=e.getContainingFunction(n);if(t){var r=e.getFunctionFlags(t);if(r&1)return;var i=ly(t);if(i){if(r&2){var s=xp(i);return s&&jr([s,YE(s)])}return i}}return}function DA(n){var t=Qc(n);if(t){var r=hc(t);return r&&jr([r,YE(r)])}return}function LA(n){var t=e.getContainingFunction(n);if(t){var r=e.getFunctionFlags(t),i=ly(t);if(i)return n.asteriskToken?i:qd(0,i,(r&2)!==0)}return}function sy(n){for(var t=!1;n.parent&&!e.isFunctionLike(n.parent);){if(e.isParameter(n.parent)&&(t||n.parent.initializer===n))return!0;e.isBindingElement(n.parent)&&n.parent.initializer===n&&(t=!0),n=n.parent}return!1}function Jb(n,t){var r=!!(e.getFunctionFlags(t)&2),i=ly(t);return i&&qd(n,i,r)||void 0}function ly(n){var t=Zd(n);if(t)return t;var r=$b(n);return r&&!tg(r)?Fi(r):void 0}function zb(n,t,r){var i=wy(n),s=i.indexOf(t);return s===-1?void 0:cy(n,s,r)}function cy(n,t,r){var i=Ir(n).resolvedSignature===Ei?Ei:If(n);if(e.isJsxOpeningLikeElement(n)&&t===0)return rh(i,n);if(r&&r&4&&i.target){var s=ag(i.target);return zf(Zs(i,t),Zs(s,t))}return Zs(i,t)}function IA(n,t){return n.parent.kind===197?zb(n.parent,t):void 0}function NA(n,t){var r=n.parent,i=r.left,s=r.operatorToken,f=r.right;switch(s.kind){case 62:if(n!==f)return;var A=OA(r);return A?A===!0?Dl(i):A:void 0;case 56:case 60:var W=Qc(r,t);return n===f&&(W&&W.pattern||!W&&!e.isDefaultedExpandoInitializer(r))?Dl(i):W;case 55:case 27:return n===f?Qc(r,t):void 0;default:return}}function OA(n){var t=e.getAssignmentDeclarationKind(n);switch(t){case 0:return!0;case 5:case 1:case 6:case 3:if(n.left.symbol){var r=n.left.symbol.valueDeclaration;if(!r)return!1;var i=e.cast(n.left,e.isAccessExpression),s=e.getEffectiveTypeAnnotationNode(r);if(s)return ja(s);if(e.isIdentifier(i.expression)){var f=i.expression,A=co(f,f.escapedText,111551,void 0,f.escapedText,!0);if(A){var W=e.getEffectiveTypeAnnotationNode(A.valueDeclaration);if(W){var xe=e.getElementOrPropertyAccessName(i);if(xe!==void 0){var je=wf(ja(W),xe);return je||!1}}return!1}}return!e.isInJSFile(r)}else return!0;case 2:case 4:if(!n.symbol)return!0;if(n.symbol.valueDeclaration){var W=e.getEffectiveTypeAnnotationNode(n.symbol.valueDeclaration);if(W){var je=ja(W);if(je)return je}}if(t===2)return!1;var Qe=e.cast(n.left,e.isAccessExpression);if(!e.isObjectLiteralMethod(e.getThisContainer(Qe.expression,!1)))return!1;var nn=Vb(Qe.expression),Tn=e.getElementOrPropertyAccessName(Qe);return Tn!==void 0&&nn&&wf(nn,Tn)||!1;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(t)}}function wf(n,t){return Ws(n,function(r){if(Fl(r)){var i=dc(r),s=cl(i)||i,f=rs(e.unescapeLeadingUnderscores(t));if(Hi(f,s))return vv(r,f)}else if(r.flags&3670016){var A=Ji(r,t);if(A)return Hn(A);if(Lo(r)){var W=ju(r);if(W&&Cl(t)&&+t>=0)return W}return Cl(t)&&$m(r,1)||$m(r,0)}return},!0)}function $m(n,t){return Ws(n,function(r){return eg(r,t)},!0)}function PA(n,t){return e.Debug.assert(e.isObjectLiteralMethod(n)),n.flags&16777216?void 0:uy(n,t)}function uy(n,t){var r=n.parent,i=Hu(r,t);if(i){if(!$a(n)){var s=Yt(n).escapedName,f=wf(i,s);if(f)return f}return py(n.name)&&$m(i,1)||$m(i,0)}return}function Xb(n,t){return n&&(wf(n,""+t)||zy(1,n,un,void 0,!1))}function MA(n,t){var r=n.parent;return n===r.whenTrue||n===r.whenFalse?Qc(r,t):void 0}function RA(n,t){var r=Hu(n.openingElement.tagName),i=oh(uf(n));if(!(r&&!Bi(r)&&i&&i!==""))return;var s=Wv(n.children),f=s.indexOf(t),A=wf(r,i);return A&&(s.length===1?A:Ws(A,function(W){return xd(W)?xl(W,rs(f)):W},!0))}function FA(n){var t=n.parent;return e.isJsxAttributeLike(t)?Qc(n):e.isJsxElement(t)?RA(t,n):void 0}function Yb(n){if(e.isJsxAttribute(n)){var t=Hu(n.parent);return!t||Bi(t)?void 0:wf(t,n.name.escapedText)}else return Qc(n.parent)}function eh(n){switch(n.kind){case 10:case 8:case 9:case 14:case 105:case 90:case 99:case 75:case 145:return!0;case 193:case 199:return eh(n.expression);case 274:return!n.expression||eh(n.expression)}return!1}function GA(n,t){return Dg(t,e.map(e.filter(n.properties,function(r){return!!r.symbol&&r.kind===279&&eh(r.initializer)&&$p(t,r.symbol.escapedName)}),function(r){return[function(){return Pa(r.initializer)},r.symbol.escapedName]}),Hi,t)}function BA(n,t){return Dg(t,e.map(e.filter(n.properties,function(r){return!!r.symbol&&r.kind===271&&$p(t,r.symbol.escapedName)&&(!r.initializer||eh(r.initializer))}),function(r){return[r.initializer?function(){return Pa(r.initializer)}:function(){return qn},r.symbol.escapedName]}),Hi,t)}function Hu(n,t){var r=e.isObjectLiteralMethod(n)?PA(n,t):Qc(n,t),i=nh(r,n,t);if(i&&!(t&&t&2&&i.flags&8650752)){var s=Ws(i,ds,!0);if(s.flags&1048576){if(e.isObjectLiteralExpression(n))return GA(n,s);if(e.isJsxAttributes(n))return BA(n,s)}return s}}function nh(n,t,r){if(n&&wo(n,63176704)){var i=mp(t);if(i&&e.some(i.inferences,Hd)){if(r&&r&1)return th(n,i.nonFixingMapper);if(i.returnMapper)return th(n,i.returnMapper)}}return n}function th(n,t){return n.flags&63176704?Si(n,t):n.flags&1048576?jr(e.map(n.types,function(r){return th(r,t)}),0):n.flags&2097152?Qi(e.map(n.types,function(r){return th(r,t)})):n}function Qc(n,t){if(n.flags&16777216)return;if(n.contextualType)return n.contextualType;var r=n.parent;switch(r.kind){case 241:case 155:case 158:case 157:case 190:return kA(n);case 201:case 234:return CA(n);case 211:return LA(r);case 205:return DA(r);case 195:if(r.expression.kind===95)return dt;case 196:return zb(r,n,t);case 198:case 216:return e.isConstTypeReference(r.type)?void 0:ja(r.type);case 208:return NA(n,t);case 279:case 280:return uy(r,t);case 281:return Hu(r.parent,t);case 191:{var i=r,s=Hu(i,t);return Xb(s,e.indexOfNode(i.elements,n))}case 209:return MA(n,t);case 220:return e.Debug.assert(r.parent.kind===210),IA(r.parent,n);case 199:{var f=e.isInJSFile(r)?e.getJSDocTypeTag(r):void 0;return f?ja(f.typeExpression.type):Qc(r,t)}case 274:return FA(r);case 271:case 273:return Yb(r);case 266:case 265:return VA(r)}return}function mp(n){var t=e.findAncestor(n,function(r){return!!r.inferenceContext});return t&&t.inferenceContext}function VA(n){return e.isJsxOpeningElement(n)&&n.parent.contextualType?n.parent.contextualType:cy(n,0)}function rh(n,t){return NE(t)!==0?UA(n,t):HA(n,t)}function UA(n,t){var r=Dy(n,mn);r=Qb(t,uf(t),r);var i=Cd(m.IntrinsicAttributes,t);return i!==ye&&(r=zf(i,r)),r}function jA(n,t){if(n.unionSignatures){for(var r=[],i=0,s=n.unionSignatures;i<s.length;i++){var f=s[i],A=Fi(f);if(Bi(A))return A;var W=Zo(A,t);if(!W)return;r.push(W)}return Qi(r)}var xe=Fi(n);return Bi(xe)?xe:Zo(xe,t)}function WA(n){if(hp(n.tagName)){var t=uE(n),r=ph(n,t);return Qf(r)}var i=as(n.tagName);if(i.flags&128){var t=cE(i,n);if(!t)return ye;var r=ph(n,t);return Qf(r)}return i}function Qb(n,t,r){var i=t2(t);if(i){var s=yo(i),f=WA(n);if(e.length(s.typeParameters)>=2){var A=Gd([f,r],s.typeParameters,2,e.isInJSFile(n));return Eu(s,A)}else if(e.length(s.aliasTypeArguments)>=2){var A=Gd([f,r],s.aliasTypeArguments,2,e.isInJSFile(n));return Zf(s.aliasSymbol,A)}}return r}function HA(n,t){var r=uf(t),i=r2(r),s=i===void 0?Dy(n,mn):i===""?Fi(n):jA(n,i);if(!s)return!!i&&!!e.length(t.attributes.properties)&&wn(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(i)),mn;if(s=Qb(t,r,s),Bi(s))return s;var f=s,A=Cd(m.IntrinsicClassAttributes,t);if(A!==ye){var W=qo(A.symbol),xe=Fi(n);f=zf(W?Eu(A,Gd([xe],W,vu(W),e.isInJSFile(t))):A,f)}var je=Cd(m.IntrinsicAttributes,t);return je!==ye&&(f=zf(je,f)),f}function dy(n,t){var r=si(n,0);if(r.length===1){var i=r[0];if(!KA(i,t))return i}}function KA(n,t){for(var r=0;r<t.parameters.length;r++){var i=t.parameters[r];if(i.initializer||i.questionToken||i.dotDotDotToken||Im(i))break}return t.parameters.length&&e.parameterIsThisKeyword(t.parameters[0])&&r--,!qu(n)&&Vl(n)<r}function Zb(n){return n.kind===200||n.kind===201}function $b(n){return Zb(n)||e.isObjectLiteralMethod(n)?ah(n):void 0}function ah(n){e.Debug.assert(n.kind!==160||e.isObjectLiteralMethod(n));var t=ng(n);if(t)return t;var r=Hu(n,1);if(!r)return;if(!(r.flags&1048576))return dy(r,n);for(var i,s=r.types,f=0,A=s;f<A.length;f++){var W=A[f],xe=dy(W,n);if(xe)if(!i)i=[xe];else if(Xp(i[0],xe,!1,!0,!0,rp))i.push(xe);else return}if(i)return i.length===1?i[0]:b_(i[0],i)}function qA(n,t){x<2&&Ll(n,Ge.downlevelIteration?1536:2048);var r=Pa(n.expression,t);return Kd(33,r,un,n.expression)}function Af(n){return n.kind===190&&!!n.initializer||n.kind===208&&n.operatorToken.kind===62}function eE(n,t,r){for(var i=n.elements,s=i.length,f=!1,A=[],W=e.isAssignmentTarget(n),xe=Hu(n),je=Tp(n),Qe=0;Qe<s;Qe++){var nn=i[Qe];if(W&&nn.kind===212){var Tn=Pa(nn.expression,t,r),In=ms(Tn,1)||zy(65,Tn,un,void 0,!1);In&&A.push(In)}else{var it=Xb(xe,Qe),pt=Pf(nn,t,it,r);A.push(pt)}Qe<s-1&&nn.kind===212&&(f=!0)}if(!f){var St=s>0&&i[s-1].kind===212,qt=s-(St?1:0),hr=void 0;if(W&&qt>0){var pt=sg(Gu(A,qt,St));return pt.pattern=n,pt}else{if(hr=nE(A,xe,St,s,je))return fy(hr);if(r)return fy(Gu(A,qt,St))}}return fy(Os(A.length?jr(A,2):a?vr:Mn,je))}function fy(n){if(!(e.getObjectFlags(n)&4))return n;var t=n.literalType;return t||(t=n.literalType=sg(n),t.objectFlags|=65536|524288),t}function nE(n,t,r,i,s){if(i===void 0&&(i=n.length),s===void 0&&(s=!1),s||t&&lf(t,of))return Gu(n,i-(r?1:0),r,s)}function py(n){switch(n.kind){case 153:return JA(n);case 75:return Cl(n.escapedText);case 8:case 10:return Cl(n.text);default:return!1}}function JA(n){return Jo(Ku(n),296)}function tE(n){return n==="Infinity"||n==="-Infinity"||n==="NaN"}function Cl(n){return(+n).toString()===n}function Ku(n){var t=Ir(n.expression);return t.resolvedType||(t.resolvedType=Pa(n.expression),t.resolvedType.flags&98304||!Jo(t.resolvedType,132|296|12288)&&!Hi(t.resolvedType,gt)?wn(n,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):AE(n.expression,t.resolvedType,!0)),t.resolvedType}function rE(n,t,r,i){for(var s=[],f=0;f<r.length;f++)(i===0||py(n.properties[f+t].name))&&s.push(Hn(r[f]));var A=s.length?jr(s,2):un;return dl(A,Tp(n))}function aE(n){e.Debug.assert((n.flags&2097152)!==0,"Should only get Alias here.");var t=ea(n);if(!t.immediateTarget){var r=Ss(n);if(!r)return e.Debug.fail();t.immediateTarget=Xs(r,!0)}return t.immediateTarget}function zA(n,t){var r=e.isAssignmentTarget(n);kD(n,r);var i,s=[],f=jn,A=Hu(n),W=A&&A.pattern&&(A.pattern.kind===188||A.pattern.kind===192),xe=Tp(n),je=xe?8:0,Qe=e.isInJSFile(n)&&!e.isInJsonFile(n),nn=e.getJSDocEnumTag(n),Tn=!A&&Qe&&!nn,In=Je,it=!1,pt=!1,St=!1;i=e.createSymbolTable();for(var qt=0,hr=0;hr<n.properties.length;hr++){var lr=n.properties[hr],Tr=Yt(lr),na=lr.name&&lr.name.kind===153&&!e.isWellKnownSymbolSyntactically(lr.name.expression)?Ku(lr.name):void 0;if(lr.kind===279||lr.kind===280||e.isObjectLiteralMethod(lr)){var Mr=lr.kind===279?fT(lr,t):lr.kind===280?Pf(lr.name,t):pT(lr,t);if(Qe){var Wa=ql(lr);Wa?(Al(Mr,Wa,lr),Mr=Wa):nn&&nn.typeExpression&&Al(Mr,ja(nn.typeExpression),lr)}In|=e.getObjectFlags(Mr)&1835008;var Zi=na&&er(na)?na:void 0,Sa=Zi?Va(4|Tr.flags,Po(Zi),je|4096):Va(4|Tr.flags,Tr.escapedName,je);if(Zi&&(Sa.nameType=Zi),r){var Ca=lr.kind===279&&Af(lr.initializer)||lr.kind===280&&lr.objectAssignmentInitializer;Ca&&(Sa.flags|=16777216)}else if(W&&!(e.getObjectFlags(A)&512)){var Bt=Ji(A,Tr.escapedName);Bt?Sa.flags|=Bt.flags&16777216:!Ge.suppressExcessPropertyErrors&&!Xi(A,0)&&wn(lr.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,wa(Tr),zt(A))}Sa.declarations=Tr.declarations,Sa.parent=Tr.parent,Tr.valueDeclaration&&(Sa.valueDeclaration=Tr.valueDeclaration),Sa.type=Mr,Sa.target=Tr,Tr=Sa}else if(lr.kind===281){x<2&&Ll(lr,2),s.length>0&&(f=od(f,At(),n.symbol,In,xe),s=[],i=e.createSymbolTable(),pt=!1,St=!1);var Mr=Pa(lr.expression);if(!kf(Mr))return wn(lr,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),ye;f=od(f,Mr,n.symbol,In,xe),qt=hr+1;continue}else e.Debug.assert(lr.kind===162||lr.kind===163),ym(lr);na&&!(na.flags&8576)?Hi(na,gt)&&(Hi(na,ot)?St=!0:pt=!0,r&&(it=!0)):i.set(Tr.escapedName,Tr),s.push(Tr)}if(W)for(var An=0,gn=oo(A);An<gn.length;An++){var Sa=gn[An];!i.get(Sa.escapedName)&&!(f&&Ji(f,Sa.escapedName))&&(Sa.flags&16777216||wn(Sa.valueDeclaration||Sa.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),i.set(Sa.escapedName,Sa),s.push(Sa))}if(f!==jn)return s.length>0&&(f=od(f,At(),n.symbol,In,xe)),f;return At();function At(){var Ct=pt?rE(n,qt,s,0):void 0,Zt=St?rE(n,qt,s,1):void 0,pr=Oo(n.symbol,i,e.emptyArray,e.emptyArray,Ct,Zt);return pr.objectFlags|=In|128|524288,Tn&&(pr.objectFlags|=16384),it&&(pr.objectFlags|=512),r&&(pr.pattern=n),pr}}function kf(n){if(n.flags&63176704){var t=cl(n);if(t!==void 0)return kf(t)}return!!(n.flags&(1|67108864|524288|58982400)||kl(n)&117632&&kf(ib(n))||n.flags&3145728&&e.every(n.types,kf))}function XA(n){hy(n)}function YA(n,t){return ym(n),rm(n)||oe}function QA(n){hy(n.openingElement),hp(n.closingElement.tagName)?my(n.closingElement):Pa(n.closingElement.tagName),ih(n)}function ZA(n,t){return ym(n),rm(n)||oe}function $A(n){return hy(n.openingFragment),Ge.jsx===2&&(Ge.jsxFactory||e.getSourceFileOfNode(n).pragmas.has("jsx"))&&wn(n,Ge.jsxFactory?e.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:e.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma),ih(n),rm(n)||oe}function iE(n){return!e.stringContains(n,"-")}function hp(n){return n.kind===75&&e.isIntrinsicJsxName(n.escapedText)}function oE(n,t){return n.initializer?Pf(n.initializer,t):qn}function e2(n,t){for(var r=n.attributes,i=e.createSymbolTable(),s=Ut,f=!1,A,W=!1,xe=4096,je=oh(uf(n)),Qe=0,nn=r.properties;Qe<nn.length;Qe++){var Tn=nn[Qe],In=Tn.symbol;if(e.isJsxAttribute(Tn)){var it=oE(Tn,t);xe|=e.getObjectFlags(it)&1835008;var pt=Va(4|33554432|In.flags,In.escapedName);pt.declarations=In.declarations,pt.parent=In.parent,In.valueDeclaration&&(pt.valueDeclaration=In.valueDeclaration),pt.type=it,pt.target=In,i.set(pt.escapedName,pt),Tn.name.escapedText===je&&(W=!0)}else{e.Debug.assert(Tn.kind===273),i.size>0&&(s=od(s,Mr(),r.symbol,xe,!1),i=e.createSymbolTable());var it=as(Tn.expression,t);Bi(it)&&(f=!0),kf(it)?s=od(s,it,r.symbol,xe,!1):A=A?Qi([A,it]):it}}f||i.size>0&&(s=od(s,Mr(),r.symbol,xe,!1));var St=n.parent.kind===264?n.parent:void 0;if(St&&St.openingElement===n&&St.children.length>0){var qt=ih(St,t);if(!f&&je&&je!==""){W&&wn(r,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(je));var hr=Hu(n.attributes),lr=hr&&wf(hr,je),Tr=Va(4|33554432,je);Tr.type=qt.length===1?qt[0]:nE(qt,lr,!1)||Os(jr(qt)),Tr.valueDeclaration=e.createPropertySignature(void 0,e.unescapeLeadingUnderscores(je),void 0,void 0,void 0),Tr.valueDeclaration.parent=r,Tr.valueDeclaration.symbol=Tr;var na=e.createSymbolTable();na.set(je,Tr),s=od(s,Oo(r.symbol,na,e.emptyArray,e.emptyArray,void 0,void 0),r.symbol,xe,!1)}}if(f)return oe;if(A&&s!==Ut)return Qi([A,s]);return A||(s===Ut?Mr():s);function Mr(){xe|=Je;var Wa=Oo(r.symbol,i,e.emptyArray,e.emptyArray,void 0,void 0);return Wa.objectFlags|=xe|128|524288,Wa}}function ih(n,t){for(var r=[],i=0,s=n.children;i<s.length;i++){var f=s[i];f.kind===11?f.containsOnlyTriviaWhiteSpaces||r.push(dt):r.push(Pf(f,t))}return r}function n2(n,t){return e2(n.parent,t)}function Cd(n,t){var r=uf(t),i=r&&ri(r),s=i&&Uo(i,n,788968);return s?yo(s):ye}function my(n){var t=Ir(n);if(!t.resolvedSymbol){var r=Cd(m.IntrinsicElements,n);if(r!==ye){if(!e.isIdentifier(n.tagName))return e.Debug.fail();var i=Ji(r,n.tagName.escapedText);if(i)return t.jsxFlags|=1,t.resolvedSymbol=i;var s=ms(r,0);return s?(t.jsxFlags|=2,t.resolvedSymbol=r.symbol):(wn(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(n.tagName),"JSX."+m.IntrinsicElements),t.resolvedSymbol=pn)}else return ae&&wn(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(m.IntrinsicElements)),t.resolvedSymbol=pn}return t.resolvedSymbol}function uf(n){var t=n&&Ir(n);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||t.jsxNamespace!==!1){var r=pi(n),i=co(n,r,1920,void 0,r,!1);if(i){var s=E(Uo(ri(E(i)),m.JSX,1920));if(s)return t&&(t.jsxNamespace=s),s;t&&(t.jsxNamespace=!1)}}return gf(m.JSX,1920,void 0)}function sE(n,t){var r=t&&Uo(t.exports,n,788968),i=r&&yo(r),s=i&&oo(i);if(s){if(s.length===0)return"";if(s.length===1)return s[0].escapedName;s.length>1&&wn(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(n))}return}function t2(n){return n&&Uo(n.exports,m.LibraryManagedAttributes,788968)}function r2(n){return sE(m.ElementAttributesPropertyNameContainer,n)}function oh(n){return sE(m.ElementChildrenAttributeNameContainer,n)}function lE(n,t){if(n.flags&4)return[wi];if(n.flags&128){var r=cE(n,t);if(r){var i=ph(t,r);return[i]}else return wn(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,"JSX."+m.IntrinsicElements),e.emptyArray}var s=ds(n),f=si(s,1);return f.length===0&&(f=si(s,0)),f.length===0&&s.flags&1048576&&(f=Wh(e.map(s.types,function(A){return lE(A,t)}))),f}function cE(n,t){var r=Cd(m.IntrinsicElements,t);if(r!==ye){var i=n.value,s=Ji(r,e.escapeLeadingUnderscores(i));if(s)return Hn(s);var f=ms(r,0);return f||void 0}return oe}function a2(n,t,r){if(n===1){var i=fE(r);i&&zl(t,i,fa,r,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements)}else if(n===0){var s=dE(r);s&&zl(t,s,fa,r,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements)}else{var i=fE(r),s=dE(r);if(!i||!s)return;var f=jr([i,s]);zl(t,f,fa,r,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements)}}function uE(n){e.Debug.assert(hp(n.tagName));var t=Ir(n);if(!t.resolvedJsxElementAttributesType){var r=my(n);return t.jsxFlags&1?t.resolvedJsxElementAttributesType=Hn(r):t.jsxFlags&2?t.resolvedJsxElementAttributesType=Vp(r,0).type:t.resolvedJsxElementAttributesType=ye}return t.resolvedJsxElementAttributesType}function dE(n){var t=Cd(m.ElementClass,n);return t===ye?void 0:t}function rm(n){return Cd(m.Element,n)}function fE(n){var t=rm(n);if(t)return jr([t,Vn])}function i2(n){var t=Cd(m.IntrinsicElements,n);return t?oo(t):e.emptyArray}function o2(n){(Ge.jsx||0)===0&&wn(n,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),rm(n)===void 0&&(ae&&wn(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist))}function hy(n){var t=e.isJsxOpeningLikeElement(n);t&&CD(n),o2(n);var r=Qn&&Ge.jsx===2?e.Diagnostics.Cannot_find_name_0:void 0,i=pi(n),s=t?n.tagName:n,f=co(s,i,111551,r,i,!0);if(f&&(f.isReferenced=67108863,f.flags&2097152&&on(f)),t){var A=If(n);a2(NE(n),Fi(A),n)}}function gy(n,t,r){if(n.flags&524288){var i=fc(n);if(i.stringIndexInfo||i.numberIndexInfo&&Cl(t)||td(n,t)||r&&!iE(t))return!0}else if(n.flags&3145728&&am(n))for(var s=0,f=n.types;s<f.length;s++){var A=f[s];if(gy(A,t,r))return!0}return!1}function am(n){return!!(n.flags&524288&&!(e.getObjectFlags(n)&512)||n.flags&67108864||n.flags&1048576&&e.some(n.types,am)||n.flags&2097152&&e.every(n.types,am))}function s2(n,t){if(DD(n),n.expression){var r=Pa(n.expression,t);return n.dotDotDotToken&&r!==oe&&!Ms(r)&&wn(n,e.Diagnostics.JSX_spread_child_must_be_an_array_type),r}else return ye}function yy(n){return n.valueDeclaration?e.getCombinedNodeFlags(n.valueDeclaration):0}function _y(n){if(n.flags&8192||e.getCheckFlags(n)&4)return!0;if(e.isInJSFile(n.valueDeclaration)){var t=n.valueDeclaration.parent;return t&&e.isBinaryExpression(t)&&e.getAssignmentDeclarationKind(t)===3}}function sh(n,t,r,i){var s=e.getDeclarationModifierFlagsFromSymbol(i),f=n.kind===152?n.right:n.kind===187?n:n.name;if(e.getCheckFlags(i)&1024)return wn(f,e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,wa(i),zt(r)),!1;if(t){if(x<2&&pE(i))return wn(f,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(s&128)return wn(f,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,wa(i),zt(af(i))),!1}if(s&128&&e.isThisProperty(n)&&pE(i)){var A=e.getClassLikeDeclarationOfSymbol(xs(i));if(A&&k0(n))return wn(f,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,wa(i),e.getTextOfIdentifierOrLiteral(A.name)),!1}if(!(s&24))return!0;if(s&8){var A=e.getClassLikeDeclarationOfSymbol(xs(i));return a_(n,A)?!0:(wn(f,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,wa(i),zt(af(i))),!1)}if(t)return!0;var W=uS(n,function(Qe){var nn=yo(Yt(Qe));return nw(nn,i)?nn:void 0});if(!W){var xe=void 0;if(s&32||!(xe=l2(n))||!xe.type)return wn(f,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,wa(i),zt(af(i)||r)),!1;var je=ja(xe.type);W=je.flags&262144?ll(je):je}return s&32?!0:(r.flags&262144&&(r=r.isThisType?ll(r):cl(r)),!r||!Ga(r,W)?(wn(f,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,wa(i),zt(W)),!1):!0)}function l2(n){var t=e.getThisContainer(n,!1);return t&&e.isFunctionLike(t)?e.getThisParameter(t):void 0}function pE(n){return!!zp(n,function(t){return!(t.flags&8192)})}function Cf(n){return Xl(Pa(n),n)}function mE(n){return!!((a?kl(n):n.flags)&98304)}function vy(n){return mE(n)?Wu(n):n}function c2(n,t){wn(n,t&32768?t&65536?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function u2(n,t){wn(n,t&32768?t&65536?e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function hE(n,t,r){if(a&&n.flags&2)return wn(t,e.Diagnostics.Object_is_of_type_unknown),ye;var i=(a?kl(n):n.flags)&98304;if(i){r(t,i);var s=Wu(n);return s.flags&(98304|131072)?ye:s}return n}function Xl(n,t){return hE(n,t,c2)}function gE(n,t){var r=Xl(n,t);return r!==ye&&r.flags&16384&&wn(t,e.Diagnostics.Object_is_possibly_undefined),r}function yE(n){return n.flags&32?d2(n):by(n,n.expression,Cf(n.expression),n.name)}function d2(n){var t=Pa(n.expression),r=Yp(t,n.expression);return Bg(by(n,n.expression,Xl(r,n.expression),n.name),n,r!==t)}function _E(n){return by(n,n.left,Cf(n.left),n.right)}function vE(n){for(;n.parent.kind===199;)n=n.parent;return e.isCallOrNewExpression(n.parent)&&n.parent.expression===n}function by(n,t,r,i){var s=Ir(t).resolvedSymbol,f=e.getAssignmentTargetKind(n),A=ds(f!==0||vE(n)?Ps(r):r);if(Bi(A)||A===Ht)return e.isIdentifier(t)&&s&&Zm(s,n),A;var W=Ji(A,i.escapedText);e.isIdentifier(t)&&s&&!(W&&Lp(W))&&Zm(s,n);var xe;if(W){if(f2(W,n,i),lh(W,n,t.kind===103),Ir(n).resolvedSymbol=W,sh(n,t.kind===101,A,W),f&&(iT(n,W)||oT(n)))return wn(i,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(i)),ye;xe=pp(Hn(W),n)}else{var je=f===0||!$d(r)||qp(r)?Xi(A,0):void 0;if(!(je&&je.type))return ep(r)?oe:r.symbol===sn?(sn.exports.has(i.escapedText)&&sn.exports.get(i.escapedText).flags&418?wn(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(i.escapedText),zt(r)):ae&&wn(i,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,zt(r)),oe):(i.escapedText&&!rl(n)&&g2(i,qp(r)?A:r),ye);je.isReadonly&&(e.isAssignmentTarget(n)||e.isDeleteTarget(n))&&wn(n,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,zt(A)),xe=je.type}return bE(n,W,xe,i)}function bE(n,t,r,i){var s=e.getAssignmentTargetKind(n);if(n.kind!==194&&n.kind!==193||s===1||t&&!(t.flags&(3|4|98304))&&!(t.flags&8192&&r.flags&1048576))return r;var f=!1;if(a&&Xn&&n.expression.kind===103){var A=t&&t.valueDeclaration;if(A&&eS(A)){var W=fp(n);W.kind===161&&W.parent===A.parent&&(f=!0)}}else a&&t&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(t.valueDeclaration)&&fp(n)===fp(t.valueDeclaration)&&(f=!0);var xe=kd(n,r,f?wu(r):r);return f&&!(kl(r)&32768)&&kl(xe)&32768?(wn(i,e.Diagnostics.Property_0_is_used_before_being_assigned,wa(t)),r):s?Bl(xe):xe}function f2(n,t,r){var i=n.valueDeclaration;if(!i||e.getSourceFileOfNode(t).isDeclarationFile)return;var s,f=e.idText(r);p2(t)&&!Qo(i,r)&&!m2(n)?s=wn(r,e.Diagnostics.Property_0_is_used_before_its_initialization,f):i.kind===244&&t.parent.kind!==168&&!(i.flags&8388608)&&!Qo(i,r)&&(s=wn(r,e.Diagnostics.Class_0_used_before_its_declaration,f)),s&&e.addRelatedInfo(s,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,f))}function p2(n){return!!e.findAncestor(n,function(t){switch(t.kind){case 158:return!0;case 279:case 160:case 162:case 163:case 281:case 153:case 220:case 274:case 271:case 272:case 273:case 266:case 215:case 277:return!1;default:return e.isExpressionNode(t)?!1:"quit"}})}function m2(n){if(!(n.parent.flags&32))return!1;for(var t=Hn(n.parent);;){if(t=t.symbol&&h2(t),!t)return!1;var r=Ji(t,n.escapedName);if(r&&r.valueDeclaration)return!0}}function h2(n){var t=Tl(n);return t.length===0?void 0:Qi(t)}function g2(n,t){var r,i;if(t.flags&1048576&&!(t.flags&131068))for(var s=0,f=t.types;s<f.length;s++){var A=f[s];if(!Ji(A,n.escapedText)&&!Xi(A,0)){r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),zt(A));break}}if(EE(n.escapedText,t))r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_is_a_static_member_of_type_1,e.declarationNameToString(n),zt(t));else{var W=wp(t);if(W&&Ji(W,n.escapedText))r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),zt(t)),i=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await);else{var xe=TE(n,t);if(xe!==void 0){var je=e.symbolName(xe);r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e.declarationNameToString(n),zt(t),je),i=xe.valueDeclaration&&e.createDiagnosticForNode(xe.valueDeclaration,e.Diagnostics._0_is_declared_here,je)}else r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),zt(t))}}var Qe=e.createDiagnosticForNodeFromMessageChain(n,r);i&&e.addRelatedInfo(Qe,i),Qn.add(Qe)}function EE(n,t){var r=t.symbol&&Ji(Hn(t.symbol),n);return r!==void 0&&r.valueDeclaration&&e.hasModifier(r.valueDeclaration,32)}function TE(n,t){return Ty(e.isString(n)?n:e.idText(n),oo(t),111551)}function Ey(n,t){var r=TE(n,t);return r&&e.symbolName(r)}function SE(n,t,r){e.Debug.assert(t!==void 0,"outername should always be defined");var i=Bs(n,t,r,void 0,t,!1,!1,function(s,f,A){e.Debug.assertEqual(t,f,"name should equal outerName");var W=Uo(s,f,A);return W||Ty(e.unescapeLeadingUnderscores(f),e.arrayFrom(s.values()),A)});return i}function y2(n,t,r){var i=SE(n,t,r);return i&&e.symbolName(i)}function xE(n,t){return t.exports&&Ty(e.idText(n),oa(t),2623475)}function _2(n,t){var r=xE(n,t);return r&&e.symbolName(r)}function v2(n,t){var r=function(A,W){W===void 0&&(W=1);var xe=td(n,A);if(xe){var je=jd(Hn(xe));if(je&&Au(je)===W&&zt(Zs(je,0))==="string")return!0}return!1},i=e.isAssignmentTarget(t)?"set":"get";if(!r(i))return;var s=e.tryGetPropertyAccessOrIdentifierToString(t);return s===void 0?s=i:s+="."+i,s}function Ty(n,t,r){return e.getSpellingSuggestion(n,t,i);function i(s){var f=e.symbolName(s);return!e.startsWith(f,'"')&&s.flags&r?f:void 0}}function lh(n,t,r){if(!n||!(n.flags&106500)||!n.valueDeclaration||!e.hasModifier(n.valueDeclaration,8))return;if(t&&e.isWriteOnlyAccess(t)&&!(n.flags&65536&&!(n.flags&32768)))return;if(r){var i=e.findAncestor(t,e.isFunctionLikeDeclaration);if(i&&i.symbol===n)return}(e.getCheckFlags(n)&1?ea(n).target:n).isReferenced=67108863}function b2(n,t){switch(n.kind){case 193:return im(n,n.expression.kind===101,t,Ps(Pa(n.expression)));case 152:return im(n,!1,t,Ps(Pa(n.left)));case 187:return im(n,!1,t,ja(n))}}function E2(n,t,r){return im(n,n.kind===193&&n.expression.kind===101,r.escapedName,t)}function im(n,t,r,i){if(i===ye||Bi(i))return!0;var s=Ji(i,r);return s?sh(n,t,i,s):e.isInJSFile(n)&&(i.flags&1048576)!==0&&i.types.some(function(f){return im(n,t,r,f)})}function T2(n){var t=n.initializer;if(t.kind===242){var r=t.declarations[0];if(r&&!e.isBindingPattern(r.name))return Yt(r)}else if(t.kind===75)return Yc(t);return}function S2(n){return ms(n,1)&&!ms(n,0)}function x2(n){var t=e.skipParentheses(n);if(t.kind===75){var r=Yc(t);if(r.flags&3)for(var i=n,s=n.parent;s;){if(s.kind===230&&i===s.statement&&T2(s)===r&&S2(Dl(s.expression)))return!0;i=s,s=s.parent}}return!1}function w2(n){return n.flags&32?A2(n):wE(n,Cf(n.expression))}function A2(n){var t=Pa(n.expression),r=Yp(t,n.expression);return Bg(wE(n,Xl(r,n.expression)),n,r!==t)}function wE(n,t){var r=e.getAssignmentTargetKind(n)!==0||vE(n)?Ps(t):t,i=n.argumentExpression,s=Pa(i);if(r===ye||r===Ht)return r;if(Py(r)&&!e.isStringLiteralLike(i))return wn(i,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),ye;var f=x2(i)?ot:s,A=e.isAssignmentTarget(n)?2|($d(r)&&!qp(r)?1:0):0,W=Ed(r,f,n,A)||ye;return wT(bE(n,W.symbol,W,i),n)}function AE(n,t,r){if(t===ye)return!1;if(!e.isWellKnownSymbolSyntactically(n))return!1;if((t.flags&12288)===0)return r&&wn(n,e.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,e.getTextOfNode(n)),!1;var i=n.expression,s=Yc(i);if(!s)return!1;var f=ev(!0);return f?s!==f?(r&&wn(i,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),!1):!0:!1}function kE(n){return e.isCallOrNewExpression(n)||e.isTaggedTemplateExpression(n)||e.isJsxOpeningLikeElement(n)}function Df(n){return kE(n)&&e.forEach(n.typeArguments,Di),n.kind===197?Pa(n.template):e.isJsxOpeningLikeElement(n)?Pa(n.attributes):n.kind!==156&&e.forEach(n.arguments,function(t){Pa(t)}),wi}function mc(n){return Df(n),Ai}function k2(n,t,r){var i,s,f=0,A,W=-1,xe;e.Debug.assert(!t.length);for(var je=0,Qe=n;je<Qe.length;je++){var nn=Qe[je],Tn=nn.declaration&&Yt(nn.declaration),In=nn.declaration&&nn.declaration.parent;!s||Tn===s?i&&In===i?A=A+1:(i=In,A=f):(A=f=t.length,i=In),s=Tn,C(nn)?(W++,xe=W,f++):xe=A,t.splice(xe,0,r?GS(nn,r):nn)}}function ch(n){return!!n&&(n.kind===212||n.kind===219&&n.isSpread)}function om(n){return e.findIndex(n,ch)}function C2(n){return!!(n.flags&16384)}function uh(n,t,r,i){i===void 0&&(i=!1);var s,f=!1,A=Vl(r),W=Au(r);if(n.kind===197)if(s=t.length,n.template.kind===210){var xe=e.last(n.template.templateSpans);f=e.nodeIsMissing(xe.literal)||!!xe.literal.isUnterminated}else{var je=n.template;e.Debug.assert(je.kind===14),f=!!je.isUnterminated}else if(n.kind===156)s=PE(n,r);else if(e.isJsxOpeningLikeElement(n)){if(f=n.attributes.end===n.end,f)return!0;s=W===0?t.length:1,A=t.length===0?A:1,W=Math.min(W,1)}else{if(!n.arguments)return e.Debug.assert(n.kind===196),Au(r)===0;s=i?t.length+1:t.length,f=n.arguments.end===n.end;var Qe=om(t);if(Qe>=0)return Qe>=Au(r)&&(qu(r)||Qe<Vl(r))}if(!qu(r)&&s>A)return!1;if(f||s>=W)return!0;for(var nn=s;nn<W;nn++){var Tn=Zs(r,nn);if(gs(Tn,C2).flags&131072)return!1}return!0}function CE(n,t){var r=e.length(n.typeParameters),i=vu(n.typeParameters);return!t||t.length>=i&&t.length<=r}function jd(n){return gp(n,0,!1)}function DE(n){return gp(n,0,!1)||gp(n,1,!1)}function gp(n,t,r){if(n.flags&524288){var i=fc(n);if(r||i.properties.length===0&&!i.stringIndexInfo&&!i.numberIndexInfo){if(t===0&&i.callSignatures.length===1&&i.constructSignatures.length===0)return i.callSignatures[0];if(t===1&&i.constructSignatures.length===1&&i.callSignatures.length===0)return i.constructSignatures[0]}}return}function LE(n,t,r,i){var s=lp(n.typeParameters,n,0,i),f=vp(t),A=r&&(f&&f.flags&262144?r.nonFixingMapper:r.mapper),W=A?nf(t,A):t;return jg(W,n,function(xe,je){Dc(s.inferences,xe,je)}),r||Wg(t,n,function(xe,je){Dc(s.inferences,xe,je,16)}),Bp(n,Xg(s),e.isInJSFile(t.declaration))}function D2(n,t,r,i){var s=rh(t,n),f=Of(n.attributes,s,i,r);return Dc(i.inferences,f,s),Xg(i)}function Sy(n,t,r,i,s){if(e.isJsxOpeningLikeElement(n))return D2(n,t,i,s);if(n.kind!==156){var f=Qc(n);if(f){var A=mp(n),W=qg(Tw(A,1)),xe=Si(f,W),je=jd(xe),Qe=je&&je.typeParameters?Qf(rg(je,je.typeParameters)):xe,nn=Fi(t);Dc(s.inferences,Qe,nn,16);var Tn=lp(t.typeParameters,t,s.flags),In=Si(f,A&&A.returnMapper);Dc(Tn.inferences,In,nn),s.returnMapper=e.some(Tn.inferences,Hd)?qg(Sw(Tn)):void 0}}var it=_d(t);if(it){var pt=OE(n),St=pt?Pa(pt):_t;Dc(s.inferences,St,it)}for(var qt=bp(t),hr=qt?Math.min(Vl(t)-1,r.length):r.length,lr=0;lr<hr;lr++){var Tr=r[lr];if(Tr.kind!==214){var na=Zs(t,lr),Mr=Of(Tr,na,s,i);Dc(s.inferences,Mr,na)}}if(qt){var Wa=xy(r,hr,r.length,qt,s);Dc(s.inferences,Wa,qt)}return Xg(s)}function L2(n){return lf(n,function(t){return!(t.flags&(1|63176704)||Ms(t)||Lo(t))})?Os(xl(n,ot)):n}function xy(n,t,r,i,s){if(t>=r-1){var f=n[r-1];if(ch(f))return f.kind===219?Os(f.type):L2(Of(f.expression,i,s,0))}for(var A=[],W=-1,xe=t;xe<r;xe++){var je=xl(i,rs(xe-t)),Qe=Of(n[xe],je,s,0);W<0&&ch(n[xe])&&(W=xe-t);var nn=wo(je,131068|4194304);A.push(nn?js(Qe):wd(Qe))}return W<0?Gu(A):Gu(e.append(A.slice(0,W),jr(A.slice(W))),W,!0)}function IE(n,t,r,i){for(var s=e.isInJSFile(n.declaration),f=n.typeParameters,A=Gd(e.map(t,ja),f,vu(f),s),W,xe=0;xe<t.length;xe++){e.Debug.assert(f[xe]!==void 0,"Should not call checkTypeArguments with too many type arguments");var je=ll(f[xe]);if(je){var Qe=r&&i?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,nn=i||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;W||(W=wl(f,A));var Tn=A[xe];if(!Al(Tn,Jl(Si(je,W),Tn),r?t[xe]:void 0,nn,Qe))return}}return A}function NE(n){if(hp(n.tagName))return 2;var t=ds(Pa(n.tagName));return e.length(si(t,1))?0:e.length(si(t,0))?1:2}function I2(n,t,r,i,s,f,A){var W=rh(t,n),xe=Of(n.attributes,W,void 0,i);return Ag(xe,W,r,s?n.tagName:void 0,n.attributes,void 0,f,A)}function sm(n,t,r,i,s,f,A){var W={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(n))return I2(n,r,i,s,f,A,W)?void 0:(e.Debug.assert(!f||!!W.errors,"jsx should have errors when reporting errors"),W.errors||e.emptyArray);var xe=_d(r);if(xe&&xe!==_t&&n.kind!==196){var je=OE(n),Qe=void 0;je?(Qe=Pa(je),e.isOptionalChainRoot(je.parent)?Qe=Wu(Qe):e.isOptionalChain(je.parent)&&(Qe=Gg(Qe))):Qe=_t;var nn=f?je||n:void 0,Tn=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!zl(Qe,xe,i,nn,Tn,A,W))return e.Debug.assert(!f||!!W.errors,"this parameter should have errors when reporting errors"),W.errors||e.emptyArray}for(var In=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,it=bp(r),pt=it?Math.min(Vl(r)-1,t.length):t.length,St=0;St<pt;St++){var qt=t[St];if(qt.kind!==214){var hr=Zs(r,St),lr=Of(qt,hr,void 0,s),Tr=s&4?bf(lr):lr;if(!Ag(Tr,hr,i,f?qt:void 0,qt,In,A,W))return e.Debug.assert(!f||!!W.errors,"parameter should have errors when reporting errors"),Mr(qt,Tr,hr),W.errors||e.emptyArray}}if(it){var na=xy(t,pt,t.length,it,void 0),nn=f?pt<t.length?t[pt]:n:void 0;if(!zl(na,it,i,nn,In,void 0,W))return e.Debug.assert(!f||!!W.errors,"rest parameter should have errors when reporting errors"),Mr(nn,na,it),W.errors||e.emptyArray}return;function Mr(Wa,Zi,Sa){if(Wa&&f&&W.errors&&W.errors.length){if(xp(Sa))return;var Ca=xp(Zi);Ca&&xu(Ca,Sa,i)&&e.addRelatedInfo(W.errors[0],e.createDiagnosticForNode(Wa,e.Diagnostics.Did_you_forget_to_use_await))}}}function OE(n){if(n.kind===195){var t=e.skipOuterExpressions(n.expression);if(t.kind===193||t.kind===194)return t.expression}}function Dd(n,t,r){var i=e.createNode(219,n.pos,n.end);return i.parent=n,i.type=t,i.isSpread=r||!1,i}function wy(n){if(n.kind===197){var t=n.template,r=[Dd(t,A1())];return t.kind===210&&e.forEach(t.templateSpans,function(Qe){r.push(Qe.expression)}),r}if(n.kind===156)return N2(n);if(e.isJsxOpeningLikeElement(n))return n.attributes.properties.length>0||e.isJsxOpeningElement(n)&&n.parent.children.length>0?[n.attributes]:e.emptyArray;var i=n.arguments||e.emptyArray,s=i.length;if(s&&ch(i[s-1])&&om(i)===s-1){var f=i[s-1],A=da?Pa(f.expression):as(f.expression);if(Lo(A)){var W=_o(A),xe=A.target.hasRestElement?W.length-1:-1,je=e.map(W,function(Qe,nn){return Dd(f,Qe,nn===xe)});return e.concatenate(i.slice(0,s-1),je)}}return i}function N2(n){var t=n.parent,r=n.expression;switch(t.kind){case 244:case 213:return[Dd(r,Hn(Yt(t)))];case 155:var i=t.parent;return[Dd(r,t.parent.kind===161?Hn(Yt(i)):ye),Dd(r,oe),Dd(r,ot)];case 158:case 160:case 162:case 163:var s=t.kind!==158&&x!==0;return[Dd(r,P0(t)),Dd(r,M0(t)),Dd(r,s?iv(Gf(t)):oe)]}return e.Debug.fail()}function PE(n,t){switch(n.parent.kind){case 244:case 213:return 1;case 158:return 2;case 160:case 162:case 163:return x===0||t.parameters.length<=2?2:3;case 155:return 3;default:return e.Debug.fail()}}function ME(n,t){var r,i,s=e.getSourceFileOfNode(n);if(e.isPropertyAccessExpression(n.expression)){var f=e.getErrorSpanForNode(s,n.expression.name);r=f.start,i=t?f.length:n.end-r}else{var A=e.getErrorSpanForNode(s,n.expression);r=A.start,i=t?A.length:n.end-r}return{start:r,length:i,sourceFile:s}}function dh(n,t,r,i,s,f){if(e.isCallExpression(n)){var A=ME(n),W=A.sourceFile,xe=A.start,je=A.length;return e.createFileDiagnostic(W,xe,je,t,r,i,s,f)}else return e.createDiagnosticForNode(n,t,r,i,s,f)}function RE(n,t,r){for(var i=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,f=Number.NEGATIVE_INFINITY,A=Number.POSITIVE_INFINITY,W=r.length,xe,je=0,Qe=t;je<Qe.length;je++){var nn=Qe[je],Tn=Au(nn),In=Vl(nn);Tn<W&&Tn>f&&(f=Tn),W<In&&In<A&&(A=In),Tn<i&&(i=Tn,xe=nn),s=Math.max(s,In)}var it=e.some(t,qu),pt=it?i:i<s?i+"-"+s:i,St=om(r)>-1;W<=s&&St&&W--;var qt,hr,lr=it||St?it&&St?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:it?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:e.Diagnostics.Expected_0_arguments_but_got_1_or_more:e.Diagnostics.Expected_0_arguments_but_got_1;if(xe&&Au(xe)>W&&xe.declaration){var Tr=xe.declaration.parameters[xe.thisParameter?W+1:W];Tr&&(hr=e.createDiagnosticForNode(Tr,e.isBindingPattern(Tr.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,Tr.name?e.isBindingPattern(Tr.name)?void 0:e.idText(e.getFirstIdentifier(Tr.name)):W))}if(i<W&&W<s)return dh(n,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,W,f,A);if(!St&&W<i){var na=dh(n,lr,pt,W);return hr?e.addRelatedInfo(na,hr):na}if(it||St){if(qt=e.createNodeArray(r),St&&W){var Mr=e.elementAt(r,om(r)+1)||void 0;qt=e.createNodeArray(r.slice(s>W&&Mr?r.indexOf(Mr):Math.min(s,r.length-1)))}}else qt=e.createNodeArray(r.slice(s));qt.pos=e.first(qt).pos,qt.end=e.last(qt).end,qt.end===qt.pos&&qt.end++;var Wa=e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),qt,lr,pt,W);return hr?e.addRelatedInfo(Wa,hr):Wa}function O2(n,t,r){var i=r.length;if(t.length===1){var s=t[0],f=vu(s.typeParameters),A=e.length(s.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.Expected_0_type_arguments_but_got_1,f<A?f+"-"+A:f,i)}for(var W=-Infinity,xe=Infinity,je=0,Qe=t;je<Qe.length;je++){var s=Qe[je],nn=vu(s.typeParameters),A=e.length(s.typeParameters);nn>i?xe=Math.min(xe,nn):A<i&&(W=Math.max(W,A))}return W!==-Infinity&&xe!==Infinity?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,W,xe):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.Expected_0_type_arguments_but_got_1,W===-Infinity?xe:W,i)}function Lf(n,t,r,i,s,f){var A=n.kind===197,W=n.kind===156,xe=e.isJsxOpeningLikeElement(n),je=!r,Qe;W||(Qe=n.typeArguments,(A||xe||n.expression.kind!==101)&&e.forEach(Qe,Di));var nn=r||[];if(k2(t,nn,s),!nn.length)return je&&Qn.add(dh(n,e.Diagnostics.Call_target_does_not_contain_any_signatures)),mc(n);var Tn=wy(n),In=nn.length===1&&!nn[0].typeParameters,it=!W&&!In&&e.some(Tn,Gl)?4:0,pt,St,qt,hr,lr=!!(i&16)&&n.kind===195&&n.arguments.hasTrailingComma;if(nn.length>1&&(hr=Ot(nn,Er,lr)),hr||(hr=Ot(nn,fa,lr)),hr)return hr;if(je)if(pt)if(pt.length===1||pt.length>3){var Tr=pt[pt.length-1],na;pt.length>3&&(na=e.chainDiagnosticMessages(na,e.Diagnostics.The_last_overload_gave_the_following_error),na=e.chainDiagnosticMessages(na,e.Diagnostics.No_overload_matches_this_call));var Mr=sm(n,Tn,Tr,fa,0,!0,function(){return na});if(Mr)for(var Wa=0,Zi=Mr;Wa<Zi.length;Wa++){var Sa=Zi[Wa];Tr.declaration&&pt.length>3&&e.addRelatedInfo(Sa,e.createDiagnosticForNode(Tr.declaration,e.Diagnostics.The_last_overload_is_declared_here)),Qn.add(Sa)}else e.Debug.fail("No error for last overload signature")}else{for(var Ca=[],Bt=0,An=Number.MAX_VALUE,gn=0,At=0,Ct=function(Jt){var dr=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,At+1,nn.length,Gs(Jt))},Ar=sm(n,Tn,Jt,fa,0,!0,dr);Ar?(Ar.length<=An&&(An=Ar.length,gn=At),Bt=Math.max(Bt,Ar.length),Ca.push(Ar)):e.Debug.fail("No error for 3 or fewer overload signatures"),At++},Zt=0,pr=pt;Zt<pr.length;Zt++){var xr=pr[Zt];Ct(xr)}var jt=Bt>1?Ca[gn]:e.flatten(Ca);e.Debug.assert(jt.length>0,"No errors reported for 3 or fewer overload signatures");var sa=e.chainDiagnosticMessages(e.map(jt,function(Wt){return typeof Wt.messageText=="string"?Wt:Wt.messageText}),e.Diagnostics.No_overload_matches_this_call),Ea=e.flatMap(jt,function(Wt){return Wt.relatedInformation});if(e.every(jt,function(Wt){return Wt.start===jt[0].start&&Wt.length===jt[0].length&&Wt.file===jt[0].file})){var Ma=jt[0],Li=Ma.file,di=Ma.start,io=Ma.length;Qn.add({file:Li,start:di,length:io,code:sa.code,category:sa.category,messageText:sa,relatedInformation:Ea})}else Qn.add(e.createDiagnosticForNodeFromMessageChain(n,sa,Ea))}else if(St)Qn.add(RE(n,[St],Tn));else if(qt)IE(qt,n.typeArguments,!0,f);else{var mt=e.filter(t,function(Wt){return CE(Wt,Qe)});mt.length===0?Qn.add(O2(n,t,Qe)):W?f&&Qn.add(dh(n,f)):Qn.add(RE(n,mt,Tn))}return b||!Tn?mc(n):P2(n,nn,Tn,!!r);function Ot(Wt,Jt,dr){if(dr===void 0&&(dr=!1),pt=void 0,St=void 0,qt=void 0,In){var Ar=Wt[0];if(Qe||!uh(n,Tn,Ar,dr))return;if(sm(n,Tn,Ar,Jt,0,!1,void 0)){pt=[Ar];return}return Ar}for(var Qa=0;Qa<Wt.length;Qa++){var Ar=Wt[Qa];if(!CE(Ar,Qe)||!uh(n,Tn,Ar,dr))continue;var ei=void 0,Za=void 0;if(Ar.typeParameters){var Oi=void 0;if(Qe){if(Oi=IE(Ar,Qe,!1),!Oi){qt=Ar;continue}}else Za=lp(Ar.typeParameters,Ar,e.isInJSFile(n)?2:0),Oi=Sy(n,Ar,Tn,it|8,Za),it|=Za.flags&4?8:0;if(ei=Bp(Ar,Oi,e.isInJSFile(Ar.declaration),Za&&Za.inferredTypeParameters),bp(Ar)&&!uh(n,Tn,ei,dr)){St=ei;continue}}else ei=Ar;if(sm(n,Tn,ei,Jt,it,!1,void 0)){(pt||(pt=[])).push(ei);continue}if(it){if(it=0,Za){var Oi=Sy(n,Ar,Tn,it,Za);if(ei=Bp(Ar,Oi,e.isInJSFile(Ar.declaration),Za&&Za.inferredTypeParameters),bp(Ar)&&!uh(n,Tn,ei,dr)){St=ei;continue}}if(sm(n,Tn,ei,Jt,it,!1,void 0)){(pt||(pt=[])).push(ei);continue}}return Wt[Qa]=ei,ei}return}}function P2(n,t,r,i){return e.Debug.assert(t.length>0),i||t.length===1||t.some(function(s){return!!s.typeParameters})?F2(n,t,r):M2(t)}function M2(n){var t=e.mapDefined(n,function(Tn){return Tn.thisParameter}),r;t.length&&(r=FE(t,t.map(yp)));for(var i=e.minAndMax(n,R2),s=i.min,f=i.max,A=[],W=function(In){var it=e.mapDefined(n,function(pt){return L(pt)?In<pt.parameters.length-1?pt.parameters[In]:e.last(pt.parameters):In<pt.parameters.length?pt.parameters[In]:void 0});e.Debug.assert(it.length!==0),A.push(FE(it,e.mapDefined(n,function(pt){return lm(pt,In)})))},xe=0;xe<f;xe++)W(xe);var je=e.mapDefined(n,function(Tn){return L(Tn)?e.last(Tn.parameters):void 0}),Qe=0;if(je.length!==0){var nn=Os(jr(e.mapDefined(n,j_),2));A.push(GE(je,nn)),Qe|=1}return n.some(C)&&(Qe|=2),Kc(n[0].declaration,void 0,r,A,Qi(n.map(Fi)),void 0,s,Qe)}function R2(n){var t=n.parameters.length;return L(n)?t-1:t}function FE(n,t){return GE(n,jr(t,2))}function GE(n,t){return vf(e.first(n),t)}function F2(n,t,r){var i=V2(t,G===void 0?r.length:G),s=t[i],f=s.typeParameters;if(!f)return s;var A=kE(n)?n.typeArguments:void 0,W=A?Nm(s,G2(A,f,e.isInJSFile(n))):B2(n,f,s,r);return t[i]=W,W}function G2(n,t,r){for(var i=n.map(Gf);i.length>t.length;)i.pop();for(;i.length<t.length;)i.push(ll(t[i.length])||zg(r));return i}function B2(n,t,r,i){var s=lp(t,r,e.isInJSFile(n)?2:0),f=Sy(n,r,i,4|8,s);return Nm(r,f)}function V2(n,t){for(var r=-1,i=-1,s=0;s<n.length;s++){var f=n[s],A=Vl(f);if(qu(f)||A>=t)return s;A>i&&(i=A,r=s)}return r}function U2(n,t,r){if(n.expression.kind===101){var i=jb(n.expression);if(Bi(i)){for(var s=0,f=n.arguments;s<f.length;s++){var A=f[s];Pa(A)}return wi}if(i!==ye){var W=e.getEffectiveBaseTypeNode(e.getContainingClass(n));if(W){var xe=gu(i,W.typeArguments,W);return Lf(n,xe,t,r,0)}}return Df(n)}var je,Qe=Pa(n.expression);if(e.isCallChain(n)){var nn=Yp(Qe,n.expression);je=nn===Qe?0:e.isOutermostOptionalChain(n)?8:4,Qe=nn}else je=0;if(Qe=hE(Qe,n.expression,u2),Qe===Ht)return Pi;var Tn=ds(Qe);if(Tn===ye)return mc(n);var In=si(Tn,0),it=si(Tn,1).length;if(fh(Qe,Tn,In.length,it))return Qe!==ye&&n.typeArguments&&wn(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Df(n);if(!In.length){if(it)wn(n,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,zt(Qe));else{var pt=void 0;if(n.arguments.length===1){var St=e.getSourceFileOfNode(n).text;e.isLineBreak(St.charCodeAt(e.skipTrivia(St,n.expression.end,!0)-1))&&(pt=e.createDiagnosticForNode(n.expression,e.Diagnostics.It_is_highly_likely_that_you_are_missing_a_semicolon))}ky(n.expression,Tn,0,pt)}return mc(n)}return r&8&&!n.typeArguments&&In.some(j2)?(hT(n,r),Ei):In.some(function(qt){return e.isInJSFile(qt.declaration)&&!!e.getJSDocClassTag(qt.declaration)})?(wn(n,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,zt(Qe)),mc(n)):Lf(n,In,t,r,je)}function j2(n){return!!(n.typeParameters&&bS(Fi(n)))}function fh(n,t,r,i){return Bi(n)||Bi(t)&&!!(n.flags&262144)||!r&&!i&&!(t.flags&(1048576|131072))&&Hi(n,Ri)}function W2(n,t,r){if(n.arguments&&x<1){var i=om(n.arguments);i>=0&&wn(n.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var s=Cf(n.expression);if(s===Ht)return Pi;if(s=ds(s),s===ye)return mc(n);if(Bi(s))return n.typeArguments&&wn(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Df(n);var f=si(s,1);if(f.length){if(!H2(n,f[0]))return mc(n);var A=s.symbol&&e.getClassLikeDeclarationOfSymbol(s.symbol);return A&&e.hasModifier(A,128)?(wn(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),mc(n)):Lf(n,f,t,r,0)}var W=si(s,0);if(W.length){var xe=Lf(n,W,t,r,0);return ae||(xe.declaration&&!Zc(xe.declaration)&&Fi(xe)!==_t&&wn(n,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),_d(xe)===_t&&wn(n,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),xe}return ky(n.expression,s,1),mc(n)}function Ay(n,t){var r=Tl(t);if(!e.length(r))return!1;var i=r[0];if(i.flags&2097152){for(var s=i.types,f=w_(s),A=0,W=0,xe=i.types;W<xe.length;W++){var je=xe[W];if(!f[A]&&e.getObjectFlags(je)&(1|2)){if(je.symbol===n)return!0;if(Ay(n,je))return!0}A++}return!1}return i.symbol===n?!0:Ay(n,i)}function H2(n,t){if(!t||!t.declaration)return!0;var r=t.declaration,i=e.getSelectedModifierFlags(r,24);if(!i)return!0;var s=e.getClassLikeDeclarationOfSymbol(r.parent.symbol),f=yo(r.parent.symbol);if(!a_(n,s)){var A=e.getContainingClass(n);if(A&&i&16){var W=Gf(A);if(Ay(r.parent.symbol,W))return!0}return i&8&&wn(n,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,zt(f)),i&16&&wn(n,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,zt(f)),!1}return!0}function BE(n,t){var r,i=t===0,s=hc(n),f=s&&si(s,t).length>0;if(n.flags&1048576){for(var A=n.types,W=!1,xe=0,je=A;xe<je.length;xe++){var Qe=je[xe],nn=si(Qe,t);if(nn.length!==0){if(W=!0,r)break}else if(r||(r=e.chainDiagnosticMessages(r,i?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,zt(Qe)),r=e.chainDiagnosticMessages(r,i?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,zt(n))),W)break}W||(r=e.chainDiagnosticMessages(void 0,i?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,zt(n))),r||(r=e.chainDiagnosticMessages(r,i?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,zt(n)))}else r=e.chainDiagnosticMessages(r,i?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,zt(n));return{messageChain:e.chainDiagnosticMessages(r,i?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable),relatedMessage:f?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function ky(n,t,r,i){var s=BE(t,r),f=s.messageChain,A=s.relatedMessage,W=e.createDiagnosticForNodeFromMessageChain(n,f);if(A&&e.addRelatedInfo(W,e.createDiagnosticForNode(n,A)),e.isCallExpression(n.parent)){var xe=ME(n.parent,!0),je=xe.start,Qe=xe.length;W.start=je,W.length=Qe}Qn.add(W),VE(t,r,i?e.addRelatedInfo(W,i):W)}function VE(n,t,r){if(!n.symbol)return;var i=ea(n.symbol).originatingImport;if(i&&!e.isImportCall(i)){var s=si(Hn(ea(n.symbol).target),t);if(!s||!s.length)return;e.addRelatedInfo(r,e.createDiagnosticForNode(i,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function K2(n,t,r){var i=Pa(n.tag),s=ds(i);if(s===ye)return mc(n);var f=si(s,0),A=si(s,1).length;return fh(i,s,f.length,A)?Df(n):f.length?Lf(n,f,t,r,0):(ky(n.tag,s,0),mc(n))}function UE(n){switch(n.parent.kind){case 244:case 213:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 155:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 158:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 160:case 162:case 163:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function q2(n,t,r){var i=Pa(n.expression),s=ds(i);if(s===ye)return mc(n);var f=si(s,0),A=si(s,1).length;if(fh(i,s,f.length,A))return Df(n);if(z2(n,f)){var W=e.getTextOfNode(n.expression,!1);return wn(n,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,W),mc(n)}var xe=UE(n);if(!f.length){var je=BE(s,0),Qe=e.chainDiagnosticMessages(je.messageChain,xe),nn=e.createDiagnosticForNodeFromMessageChain(n.expression,Qe);return je.relatedMessage&&e.addRelatedInfo(nn,e.createDiagnosticForNode(n.expression,je.relatedMessage)),Qn.add(nn),VE(s,0,nn),mc(n)}return Lf(n,f,t,r,0,xe)}function ph(n,t){var r=uf(n),i=r&&ri(r),s=i&&Uo(i,m.Element,788968),f=s&&Ue.symbolToEntityName(s,788968,n),A=e.createFunctionTypeNode(void 0,[e.createParameter(void 0,void 0,void 0,"props",void 0,Ue.typeToTypeNode(t,n))],f?e.createTypeReferenceNode(f,void 0):e.createKeywordTypeNode(124)),W=Va(1,"props");return W.type=t,Kc(A,void 0,void 0,[W],s?yo(s):ye,void 0,1,0)}function J2(n,t,r){if(hp(n.tagName)){var i=uE(n),s=ph(n,i);return Vu(Of(n.attributes,rh(s,n),void 0,0),i,n.tagName,n.attributes),s}var f=Pa(n.tagName),A=ds(f);if(A===ye)return mc(n);var W=lE(f,n);return fh(f,A,W.length,0)?Df(n):W.length===0?(wn(n.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(n.tagName)),mc(n)):Lf(n,W,t,r,0)}function z2(n,t){return t.length&&e.every(t,function(r){return r.minArgumentCount===0&&!L(r)&&r.parameters.length<PE(n,r)})}function X2(n,t,r){switch(n.kind){case 195:return U2(n,t,r);case 196:return W2(n,t,r);case 197:return K2(n,t,r);case 156:return q2(n,t,r);case 266:case 265:return J2(n,t,r)}throw e.Debug.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function If(n,t,r){var i=Ir(n),s=i.resolvedSignature;if(s&&s!==Ei&&!t)return s;i.resolvedSignature=Ei;var f=X2(n,t,r||0);return f!==Ei&&(i.resolvedSignature=Dr===da?f:s),f}function Zc(n){if(!n||!e.isInJSFile(n))return!1;var t=e.isFunctionDeclaration(n)||e.isFunctionExpression(n)?n:e.isVariableDeclaration(n)&&n.initializer&&e.isFunctionExpression(n.initializer)?n.initializer:void 0;if(t){if(e.getJSDocClassTag(n))return!0;var r=Yt(t);return!!r&&e.hasEntries(r.members)}return!1}function jE(n,t){if(t&&(e.hasEntries(t.exports)||e.hasEntries(t.members))){var r=ea(t);if(!r.inferredClassSymbol||!r.inferredClassSymbol.has(""+fe(n))){var i=Es(n)?n:et(n);return i.exports=i.exports||e.createSymbolTable(),i.members=i.members||e.createSymbolTable(),i.flags|=t.flags&32,e.hasEntries(t.exports)&&za(i.exports,t.exports),e.hasEntries(t.members)&&za(i.members,t.members),(r.inferredClassSymbol||(r.inferredClassSymbol=e.createMap())).set(""+fe(i),i),i}return r.inferredClassSymbol.get(""+fe(n))}}function Y2(n){var t=n&&n.parent&&(e.isFunctionDeclaration(n)&&Yt(n)||e.isBinaryExpression(n.parent)&&Yt(n.parent.left)||e.isVariableDeclaration(n.parent)&&Yt(n.parent)),r=t&&t.exports&&t.exports.get("prototype"),i=r&&r.valueDeclaration&&Q2(r.valueDeclaration);return i?Yt(i):void 0}function Q2(n){if(!n.parent)return!1;for(var t=n.parent;t&&t.kind===193;)t=t.parent;if(t&&e.isBinaryExpression(t)&&e.isPrototypeAccess(t.left)&&t.operatorToken.kind===62){var r=e.getInitializerOfBinaryExpression(t);return e.isObjectLiteralExpression(r)&&r}}function Z2(n,t){vm(n,n.typeArguments)||SS(n.arguments);var r=If(n,void 0,t);if(r===Ei)return nr;if(n.expression.kind===101)return _t;if(n.kind===196){var i=r.declaration;if(i&&i.kind!==161&&i.kind!==165&&i.kind!==170&&!e.isJSDocConstructSignature(i)&&!Zc(i))return ae&&wn(n,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),oe}if(e.isInJSFile(n)&&KE(n))return f1(n.arguments[0]);var s=Fi(r);if(s.flags&12288&&WE(n))return Cv(e.walkUpParenthesizedExpressions(n.parent));if(n.kind===195&&n.parent.kind===225&&s.flags&16384&&ul(r)){if(!e.isDottedName(n.expression))wn(n.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!Ym(n)){var f=wn(n.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);Xm(n.expression,f)}}if(e.isInJSFile(n)){var A=e.getDeclarationOfExpando(n);if(A){var W=Yt(A);if(W&&e.hasEntries(W.exports)){var xe=Oo(W,W.exports,e.emptyArray,e.emptyArray,void 0,void 0);return xe.objectFlags|=16384,Qi([s,xe])}}}return s}function WE(n){if(!e.isCallExpression(n))return!1;var t=n.expression;if(e.isPropertyAccessExpression(t)&&t.name.escapedText==="for"&&(t=t.expression),!e.isIdentifier(t)||t.escapedText!=="Symbol")return!1;var r=ev(!1);return r?r===co(t,"Symbol",111551,void 0,void 0,!1):!1}function $2(n){if(SS(n.arguments)||YD(n),n.arguments.length===0)return cm(n,oe);for(var t=n.arguments[0],r=as(t),i=1;i<n.arguments.length;++i)as(n.arguments[i]);(r.flags&32768||r.flags&65536||!Hi(r,dt))&&wn(t,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,zt(r));var s=Hr(n,t);if(s){var f=Xr(s,t,!0,!1);if(f)return cm(n,HE(Hn(f),f,s))}return cm(n,oe)}function HE(n,t,r){if(Oe&&n&&n!==ye){var i=n;if(!i.syntheticType){var s=e.find(r.declarations,e.isSourceFile),f=ou(s,r,!1);if(f){var A=e.createSymbolTable(),W=Va(2097152,"default");W.nameType=rs("default"),W.target=E(t),A.set("default",W);var xe=Va(2048,"__type"),je=Oo(xe,A,e.emptyArray,e.emptyArray,void 0,void 0);xe.type=je,i.syntheticType=kf(n)?od(n,je,xe,0,!1):je}else i.syntheticType=n}return i.syntheticType}return n}function KE(n){if(!e.isRequireCall(n,!0))return!1;if(!e.isIdentifier(n.expression))return e.Debug.fail();var t=co(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(t===ke)return!0;if(t.flags&2097152)return!1;var r=t.flags&16?243:t.flags&3?241:0;if(r!==0){var i=e.getDeclarationOfKind(t,r);return!!i&&!!(i.flags&8388608)}return!1}function ek(n){return TD(n)||vm(n,n.typeArguments),x<2&&Ll(n,131072),Fi(If(n))}function nk(n){return JE(n,n.type,n.expression)}function qE(n){switch(n.kind){case 10:case 14:case 8:case 9:case 105:case 90:case 191:case 192:return!0;case 199:return qE(n.expression);case 206:var t=n.operator,r=n.operand;return t===40&&(r.kind===8||r.kind===9)||t===39&&r.kind===8;case 193:case 194:var i=n.expression;if(e.isIdentifier(i)){var s=ud(i);return s&&s.flags&2097152&&(s=M(s)),!!(s&&s.flags&384&&Hf(s)===1)}}return!1}function JE(n,t,r,i){var s=Pa(r,i);if(e.isConstTypeReference(t))return qE(r)||wn(r,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),js(s);Di(t),s=bf(Bl(s));var f=ja(t);if(b&&f!==ye){var A=Ps(s);rf(f,A)||Kv(s,f,n,e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)}return f}function tk(n){return Wu(Pa(n.expression))}function rk(n){return BD(n),n.keywordToken===98?ak(n):n.keywordToken===95?ik(n):e.Debug.assertNever(n.keywordToken)}function ak(n){var t=e.getNewTargetContainer(n);if(t)if(t.kind===161){var r=Yt(t.parent);return Hn(r)}else{var r=Yt(t);return Hn(r)}else return wn(n,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),ye}function ik(n){j!==e.ModuleKind.ESNext&&j!==e.ModuleKind.System&&wn(n,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system);var t=e.getSourceFileOfNode(n);return e.Debug.assert(!!(t.flags&2097152),"Containing file is missing import meta node flag."),e.Debug.assert(!!t.externalModuleIndicator,"Containing file should be a module."),n.name.escapedText==="meta"?k1():ye}function yp(n){var t=Hn(n);if(a){var r=n.valueDeclaration;if(r&&e.hasInitializer(r))return wu(t)}return t}function Nf(n,t){var r=n.parameters.length-(L(n)?1:0);if(t<r)return n.parameters[t].escapedName;var i=n.parameters[r]||pn,s=Hn(i);if(Lo(s)){var f=s.target.associatedNames,A=t-r;return f&&f[A]||i.escapedName+"_"+A}return i.escapedName}function Zs(n,t){return lm(n,t)||oe}function lm(n,t){var r=n.parameters.length-(L(n)?1:0);if(t<r)return yp(n.parameters[t]);if(L(n)){var i=Hn(n.parameters[r]),s=t-r;if(!Lo(i)||i.target.hasRestElement||s<_o(i).length)return xl(i,rs(s))}return}function _p(n,t){var r=Vl(n),i=vp(n),s=r-(i?1:0);if(i&&t===s)return i;for(var f=[],A=[],W=t;W<s;W++)f.push(Zs(n,W)),A.push(Nf(n,W));i&&(f.push(xl(i,ot)),A.push(Nf(n,s)));var xe=Au(n),je=xe<t?0:xe-t;return Gu(f,je,!!i,!1,A)}function Vl(n){var t=n.parameters.length;if(L(n)){var r=Hn(n.parameters[t-1]);if(Lo(r))return t+_o(r).length-1}return t}function Au(n){if(L(n)){var t=Hn(n.parameters[n.parameters.length-1]);if(Lo(t)){var r=t.target.minLength;if(r>0)return n.parameters.length-1+r}}return n.minArgumentCount}function qu(n){if(L(n)){var t=Hn(n.parameters[n.parameters.length-1]);return!Lo(t)||t.target.hasRestElement}return!1}function vp(n){if(L(n)){var t=Hn(n.parameters[n.parameters.length-1]);return Lo(t)?dw(t):t}return}function bp(n){var t=vp(n);return t&&!Ms(t)&&!Bi(t)?t:void 0}function Cy(n){return Dy(n,It)}function Dy(n,t){return n.parameters.length>0?Zs(n,0):t}function ok(n,t,r){for(var i=n.parameters.length-(L(n)?1:0),s=0;s<i;s++){var f=n.parameters[s].valueDeclaration;if(f.type){var A=e.getEffectiveTypeAnnotationNode(f);A&&Dc(r.inferences,ja(A),Zs(t,s))}}var W=vp(t);if(W&&W.flags&262144){var xe=nf(t,r.nonFixingMapper);zE(n,xe);var je=Vl(t)-1;Dc(r.inferences,_p(n,je),W)}}function zE(n,t){if(n.typeParameters=t.typeParameters,t.thisParameter){var r=n.thisParameter;(!r||r.valueDeclaration&&!r.valueDeclaration.type)&&(r||(n.thisParameter=vf(t.thisParameter,void 0)),Ly(n.thisParameter,Hn(t.thisParameter)))}for(var i=n.parameters.length-(L(n)?1:0),s=0;s<i;s++){var r=n.parameters[s];if(!e.getEffectiveTypeAnnotationNode(r.valueDeclaration)){var f=Zs(t,s);Ly(r,f)}}if(L(n)){var r=e.last(n.parameters);if(Es(r)||!e.getEffectiveTypeAnnotationNode(r.valueDeclaration)){var f=_p(t,i);Ly(r,f)}}}function XE(n){for(var t=0,r=n.elements;t<r.length;t++){var i=r[t];e.isOmittedExpression(i)||(i.name.kind===75?ea(Yt(i)).type=Ml(i):XE(i.name))}}function Ly(n,t){var r=ea(n);if(!r.type){r.type=t;var i=n.valueDeclaration;i.name.kind!==75&&(r.type===mn&&(r.type=Dn(i.name)),XE(i.name))}}function mh(n){var t=Pm(!0);return t!==yt?(n=hc(n)||mn,Eu(t,[n])):mn}function YE(n){var t=C1(!0);return t!==yt?(n=hc(n)||mn,Eu(t,[n])):mn}function cm(n,t){var r=mh(t);return r===mn?(wn(n,e.isImportCall(n)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),ye):(tv(!0)||wn(n,e.isImportCall(n)?e.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),r)}function hh(n,t){if(!n.body)return ye;var r=e.getFunctionFlags(n),i=(r&2)!==0,s=(r&1)!==0,f,A,W,xe=_t;if(n.body.kind!==222)f=as(n.body,t&&t&~8),i&&(f=Ap(f,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member));else if(s){var je=nT(n,t);je?je.length>0&&(f=jr(je,2)):xe=It;var Qe=sk(n,t),nn=Qe.yieldTypes,Tn=Qe.nextTypes;A=e.some(nn)?jr(nn,2):void 0,W=e.some(Tn)?Qi(Tn):void 0}else{var In=nT(n,t);if(!In)return r&2?cm(n,It):It;if(In.length===0)return r&2?cm(n,_t):_t;f=jr(In,2)}if(f||A||W){var it=$b(n);if(it||(A&&Km(n,A,1),f&&Km(n,f),W&&Km(n,W)),f&&sd(f)||A&&sd(A)||W&&sd(W)){var pt=it?it===pc(n)?s?void 0:f:nh(Fi(it),n):void 0;s?(A=Mg(A,pt,0,i),f=Mg(f,pt,1,i),W=Mg(W,pt,2,i)):f=uw(f,pt,i)}A&&(A=Ps(A)),f&&(f=Ps(f)),W&&(W=Ps(W))}return s?QE(A||It,f||xe,W||Jb(2,n)||mn,i):i?mh(f||xe):f||xe}function QE(n,t,r,i){var s=i?Ro:uo,f=s.getGlobalGeneratorType(!1);if(n=s.resolveIterationType(n,void 0)||mn,t=s.resolveIterationType(t,void 0)||mn,r=s.resolveIterationType(r,void 0)||mn,f===yt){var A=s.getGlobalIterableIteratorType(!1),W=A!==yt?jT(A,s):void 0,xe=W?W.returnType:oe,je=W?W.nextType:un;return Hi(t,xe)&&Hi(je,r)?A!==yt?$f(A,[n]):(s.getGlobalIterableIteratorType(!0),jn):(s.getGlobalGeneratorType(!0),jn)}return $f(f,[n,t,r])}function sk(n,t){var r=[],i=[],s=(e.getFunctionFlags(n)&2)!==0;return e.forEachYieldExpression(n.body,function(f){var A=f.expression?Pa(f.expression,t):Mn;e.pushIfUnique(r,ZE(f,A,oe,s));var W;if(f.asteriskToken){var xe=kh(A,s?19:17,f.expression);W=xe&&xe.nextType}else W=Qc(f);W&&e.pushIfUnique(i,W)}),{yieldTypes:r,nextTypes:i}}function ZE(n,t,r,i){var s=n.expression||n,f=n.asteriskToken?Kd(i?19:17,t,r,s):t;return i?hc(f,s,n.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):f}function Iy(n,t,r,i){var s=0;if(i){for(var f=t;f<r.length;f++)s|=Pe.get(r[f])||32768;for(var f=n;f<t;f++)s&=~(Pe.get(r[f])||0);for(var f=0;f<n;f++)s|=Pe.get(r[f])||32768}else{for(var f=n;f<t;f++)s|=H.get(r[f])||128;for(var f=0;f<n;f++)s&=~(H.get(r[f])||0)}return s}function $E(n){var t=Ir(n);return t.isExhaustive!==void 0?t.isExhaustive:t.isExhaustive=lk(n)}function lk(n){if(n.expression.kind===203){var t=Dl(n.expression.expression),r=Cb(n),i=Iy(0,0,r,!0),s=cl(t)||t;return!!(gs(s,function(W){return(cd(W)&i)===i}).flags&131072)}var f=Dl(n.expression);if(!sp(f))return!1;var A=ey(n);return!A.length||e.some(A,cw)?!1:Qw(Ws(f,js),A)}function eT(n){return n.endFlowNode&&nm(n.endFlowNode)}function nT(n,t){var r=e.getFunctionFlags(n),i=[],s=eT(n),f=!1;return e.forEachReturnStatement(n.body,function(A){var W=A.expression;if(W){var xe=as(W,t&&t&~8);r&2&&(xe=Ap(xe,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),xe.flags&131072&&(f=!0),e.pushIfUnique(i,xe)}else s=!0}),i.length===0&&!s&&(f||ck(n))?void 0:(a&&i.length&&s&&!(Zc(n)&&i.some(function(A){return A.symbol===n.symbol}))&&e.pushIfUnique(i,un),i)}function ck(n){switch(n.kind){case 200:case 201:return!0;case 160:return n.parent.kind===192;default:return!1}}function Ny(n,t){if(!b)return;var r=e.getFunctionFlags(n),i=t&&aT(t,r);if(i&&wo(i,1|16384))return;if(n.kind===159||e.nodeIsMissing(n.body)||n.body.kind!==222||!eT(n))return;var s=n.flags&512;if(i&&i.flags&131072)wn(e.getEffectiveReturnTypeNode(n),e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(i&&!s)wn(e.getEffectiveReturnTypeNode(n),e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(i&&a&&!Hi(un,i))wn(e.getEffectiveReturnTypeNode(n),e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(Ge.noImplicitReturns){if(!i){if(!s)return;var f=Fi(pc(n));if(YT(n,f))return}wn(e.getEffectiveReturnTypeNode(n)||n,e.Diagnostics.Not_all_code_paths_return_a_value)}}function tT(n,t){if(e.Debug.assert(n.kind!==160||e.isObjectLiteralMethod(n)),ym(n),t&&t&4&&Gl(n)){if(!e.getEffectiveReturnTypeNode(n)&&Fv(n)){var r=Ir(n);if(r.contextFreeType)return r.contextFreeType;var i=hh(n,t),s=Kc(void 0,void 0,void 0,e.emptyArray,i,void 0,0,0),f=Oo(n.symbol,We,[s],e.emptyArray,void 0,void 0);return f.objectFlags|=1048576,r.contextFreeType=f}return vt}var A=Mh(n);!A&&n.kind===200&&d_(n);var W=Hn(zr(n.symbol));return Bi(W)||rT(n,t),W}function rT(n,t){var r=Ir(n);if(!(r.flags&1024)){var i=ah(n);if(!(r.flags&1024)){if(r.flags|=1024,i){var s=Hn(zr(n.symbol));if(Bi(s))return;var f=si(s,0)[0];if(Gl(n)){var A=mp(n);t&&t&2&&ok(f,i,A);var W=A?nf(i,A.mapper):i;zE(f,W)}if(!Zd(n)&&!f.resolvedReturnType){var xe=hh(n,t);f.resolvedReturnType||(f.resolvedReturnType=xe)}}Sp(n)}}}function aT(n,t){var r=!!(t&1),i=!!(t&2);return n&&r?qd(1,n,i)||ye:n&&i?hc(n)||ye:n}function uk(n){e.Debug.assert(n.kind!==160||e.isObjectLiteralMethod(n));var t=e.getFunctionFlags(n),r=Zd(n);if(Ny(n,r),n.body)if(e.getEffectiveReturnTypeNode(n)||Fi(pc(n)),n.body.kind===222)Di(n.body);else{var i=Pa(n.body),s=aT(r,t);if(s)if((t&3)===2){var f=Ap(i,n.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Vu(f,s,n.body,n.body)}else Vu(i,s,n.body,n.body)}}function gh(n,t,r,i){if(i===void 0&&(i=!1),!Hi(t,kt)){var s=i&&xp(t);return Ho(n,!!s&&Hi(s,kt),r),!1}return!0}function dk(n){if(!e.isCallExpression(n))return!1;if(!e.isBindableObjectDefinePropertyCall(n))return!1;var t=as(n.arguments[2]),r=Zo(t,"value");if(r){var i=Ji(t,"writable"),s=i&&Hn(i);if(!s||s===wt||s===st)return!0;if(i&&i.valueDeclaration&&e.isPropertyAssignment(i.valueDeclaration)){var f=i.valueDeclaration.initializer,A=Pa(f);if(A===wt||A===st)return!0}return!1}var W=Ji(t,"set");return!W}function $c(n){return!!(e.getCheckFlags(n)&8||n.flags&4&&e.getDeclarationModifierFlagsFromSymbol(n)&64||n.flags&3&&yy(n)&2||n.flags&98304&&!(n.flags&65536)||n.flags&8||e.some(n.declarations,dk))}function iT(n,t){if($c(t)){if(t.flags&4&&(n.kind===193||n.kind===194)&&n.expression.kind===103){var r=e.getContainingFunction(n);return r&&r.kind===161?!t.valueDeclaration||!(r.parent===t.valueDeclaration.parent||r===t.valueDeclaration.parent):!0}return!0}return!1}function oT(n){if(n.kind===193||n.kind===194){var t=e.skipParentheses(n.expression);if(t.kind===75){var r=Ir(t).resolvedSymbol;if(r.flags&2097152){var i=Ss(r);return!!i&&i.kind===255}}}return!1}function Ep(n,t,r){var i=e.skipOuterExpressions(n,2|1);return i.kind!==75&&i.kind!==193&&i.kind!==194?(wn(n,t),!1):i.flags&32?(wn(n,r),!1):!0}function fk(n){Pa(n.expression);var t=e.skipParentheses(n.expression);if(t.kind!==193&&t.kind!==194)return wn(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),De;var r=Ir(t),i=nc(r.resolvedSymbol);return i&&$c(i)&&wn(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),De}function pk(n){return Pa(n.expression),Br}function mk(n){return Pa(n.expression),Mn}function hk(n){if(b){if(!(n.flags&32768)){var t=e.getSourceFileOfNode(n);if(!Vf(t)){var r=e.getSpanOfTokenAtPosition(t,n.pos),i=e.createFileDiagnostic(t,r.start,r.length,e.Diagnostics.await_expression_is_only_allowed_within_an_async_function),s=e.getContainingFunction(n);if(s&&s.kind!==161){e.Debug.assert((e.getFunctionFlags(s)&2)===0,"Enclosing function should never be an async function.");var f=e.createDiagnosticForNode(s,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(i,f)}Qn.add(i)}}sy(n)&&wn(n,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var A=Pa(n.expression),W=Ap(A,n,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return W===A&&W!==ye&&!(A.flags&3)&&$i(!1,e.createDiagnosticForNode(n,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),W}function gk(n){var t=Pa(n.operand);if(t===Ht)return Ht;switch(n.operand.kind){case 8:switch(n.operator){case 40:return ef(rs(-n.operand.text));case 39:return ef(rs(+n.operand.text))}break;case 9:if(n.operator===40)return ef(rs({negative:!0,base10Value:e.parsePseudoBigInt(n.operand.text)}))}switch(n.operator){case 39:case 40:case 54:return Xl(t,n.operand),wo(t,12288)&&wn(n.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(n.operator)),n.operator===39?(wo(t,2112)&&wn(n.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(n.operator),zt(Bl(t))),ot):Oy(t);case 53:Rf(n.operand);var r=cd(t)&(4194304|8388608);return r===4194304?wt:r===8388608?qn:De;case 45:case 46:var i=gh(n.operand,Xl(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return i&&Ep(n.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Oy(t)}return ye}function yk(n){var t=Pa(n.operand);if(t===Ht)return Ht;var r=gh(n.operand,Xl(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return r&&Ep(n.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Oy(t)}function Oy(n){return wo(n,2112)?Jo(n,3)||wo(n,296)?kt:ct:ot}function wo(n,t){if(n.flags&t&~131072||t&131072&&Fl(n))return!0;if(n.flags&3145728)for(var r=n.types,i=0,s=r;i<s.length;i++){var f=s[i];if(wo(f,t))return!0}return!1}function Jo(n,t,r){return n.flags&t?!0:r&&n.flags&(3|16384|32768|65536)?!1:!!(t&296)&&Hi(n,ot)||!!(t&2112)&&Hi(n,ct)||!!(t&132)&&Hi(n,dt)||!!(t&528)&&Hi(n,De)||!!(t&16384)&&Hi(n,_t)||!!(t&131072)&&Hi(n,It)||!!(t&65536)&&Hi(n,Vn)||!!(t&32768)&&Hi(n,un)||!!(t&4096)&&Hi(n,_n)||!!(t&67108864)&&Hi(n,Wr)}function yh(n,t,r){return n.flags&1048576?e.every(n.types,function(i){return yh(i,t,r)}):Jo(n,t,r)}function Py(n){return!!(e.getObjectFlags(n)&16)&&!!n.symbol&&My(n.symbol)}function My(n){return(n.flags&128)!==0}function _k(n,t,r,i){return r===Ht||i===Ht?Ht:(!Bi(r)&&yh(r,131068)&&wn(n,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Bi(i)||o_(i)||Su(i,Ri)||wn(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),De)}function vk(n,t,r,i){return r===Ht||i===Ht?Ht:(r=Xl(r,n),i=Xl(i,t),rf(r,dt)||Jo(r,296|12288)||wn(n,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),yh(i,67108864|58982400)||wn(t,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),De)}function bk(n,t,r){var i=n.properties;if(a&&i.length===0)return Xl(t,n);for(var s=0;s<i.length;s++)sT(n,t,s,i,r);return t}function sT(n,t,r,i,s){s===void 0&&(s=!1);var f=n.properties,A=f[r];if(A.kind===279||A.kind===280){var W=A.name,xe=bd(W);if(er(xe)){var je=Po(xe),Qe=Ji(t,je);Qe&&(lh(Qe,A,s),sh(A,!1,t,Qe))}var nn=xl(t,xe,W),Tn=Wc(A,nn);return Wd(A.kind===280?A:A.initializer,Tn)}else if(A.kind===281)if(r<f.length-1)wn(A,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{x<99&&Ll(A,4);var In=[];if(i)for(var it=0,pt=i;it<pt.length;it++){var St=pt[it];e.isSpreadAssignment(St)||In.push(St.name)}var Tn=jc(t,In,t.symbol);return df(i,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Wd(A.expression,Tn)}else wn(A,e.Diagnostics.Property_assignment_expected)}function Ek(n,t,r){var i=n.elements;x<2&&Ge.downlevelIteration&&Ll(n,512);for(var s=Kd(65,t,un,n)||ye,f=0;f<i.length;f++)lT(n,t,f,s,r);return t}function lT(n,t,r,i,s){var f=n.elements,A=f[r];if(A.kind!==214){if(A.kind!==212){var W=rs(r);if(xd(t)){var xe=Af(A)?8:0,je=Ed(t,W,Dd(A,W),xe)||ye,Qe=Af(A)?hs(je,524288):je,nn=Wc(A,Qe);return Wd(A,nn,s)}return Wd(A,i,s)}if(r<f.length-1)wn(A,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var Tn=A.expression;if(Tn.kind===208&&Tn.operatorToken.kind===62)wn(Tn.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer);else{df(n.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);var nn=Sf(t,Lo)?Ws(t,function(it){return sv(it,r)}):Os(i);return Wd(Tn,nn,s)}}}return}function Wd(n,t,r,i){var s;if(n.kind===280){var f=n;f.objectAssignmentInitializer&&(a&&!(kl(Pa(f.objectAssignmentInitializer))&32768)&&(t=hs(t,524288)),uT(f.name,f.equalsToken,f.objectAssignmentInitializer,r)),s=n.name}else s=n;return s.kind===208&&s.operatorToken.kind===62&&(cT(s,r),s=s.left),s.kind===192?bk(s,t,i):s.kind===191?Ek(s,t,r):Tk(s,t,r)}function Tk(n,t,r){var i=Pa(n,r),s=n.parent.kind===281?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,f=n.parent.kind===281?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 Ep(n,s,f)&&Vu(t,i,n,n),t}function um(n){n=e.skipParentheses(n);switch(n.kind){case 75:case 10:case 13:case 197:case 210:case 14:case 8:case 9:case 105:case 90:case 99:case 145:case 200:case 213:case 201:case 191:case 192:case 203:case 217:case 265:case 264:return!0;case 209:return um(n.whenTrue)&&um(n.whenFalse);case 208:return e.isAssignmentOperator(n.operatorToken.kind)?!1:um(n.left)&&um(n.right);case 206:case 207:switch(n.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 204:case 198:case 216:default:return!1}}function Ry(n,t){return(t.flags&98304)!==0||rf(n,t)}function cT(n,t){return e.isInJSFile(n)&&e.getAssignedExpandoInitializer(n)?Pa(n.right,t):(Sk(n),uT(n.left,n.operatorToken,n.right,t,n))}function Sk(n){var t=n.left,r=n.operatorToken,i=n.right;r.kind===60&&(e.isBinaryExpression(t)&&(t.operatorToken.kind===56||t.operatorToken.kind===55)&&ur(t,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(t.operatorToken.kind),e.tokenToString(r.kind)),e.isBinaryExpression(i)&&(i.operatorToken.kind===56||i.operatorToken.kind===55)&&ur(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(r.kind)))}function uT(n,t,r,i,s){var f=t.kind;if(f===62&&(n.kind===192||n.kind===191))return Wd(n,Pa(r,i),i,r.kind===103);var A;f===55||f===56||f===60?A=Rf(n,i):A=Pa(n,i);var W=Pa(r,i);switch(f){case 41:case 42:case 65:case 66:case 43:case 67:case 44:case 68:case 40:case 64:case 47:case 69:case 48:case 70:case 49:case 71:case 51:case 73:case 52:case 74:case 50:case 72:if(A===Ht||W===Ht)return Ht;A=Xl(A,n),W=Xl(W,r);var xe=void 0;if(A.flags&528&&W.flags&528&&(xe=lr(t.kind))!==void 0)return wn(s||t,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(t.kind),e.tokenToString(xe)),ot;var je=gh(n,A,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Qe=gh(r,W,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),nn;if(Jo(A,3)&&Jo(W,3)||!(wo(A,2112)||wo(W,2112)))nn=ot;else if(pt(A,W)){switch(f){case 49:case 71:Wa()}nn=ct}else Wa(pt),nn=ye;return je&&Qe&&Tr(nn),nn;case 39:case 63:if(A===Ht||W===Ht)return Ht;!Jo(A,132)&&!Jo(W,132)&&(A=Xl(A,n),W=Xl(W,r));var Tn=void 0;if(Jo(A,296,!0)&&Jo(W,296,!0)?Tn=ot:Jo(A,2112,!0)&&Jo(W,2112,!0)?Tn=ct:Jo(A,132,!0)||Jo(W,132,!0)?Tn=dt:(Bi(A)||Bi(W))&&(Tn=A===ye||W===ye?ye:oe),Tn&&!hr(f))return Tn;if(!Tn){var In=296|2112|132|3;return Wa(function(Sa,Ca){return Jo(Sa,In)&&Jo(Ca,In)}),oe}return f===63&&Tr(Tn),Tn;case 29:case 31:case 32:case 33:return hr(f)&&(A=Bl(Xl(A,n)),W=Bl(Xl(W,r)),Mr(function(Sa,Ca){return rf(Sa,Ca)||rf(Ca,Sa)||Hi(Sa,kt)&&Hi(Ca,kt)})),De;case 34:case 35:case 36:case 37:return Mr(function(Sa,Ca){return Ry(Sa,Ca)||Ry(Ca,Sa)}),De;case 97:return _k(n,r,A,W);case 96:return vk(n,r,A,W);case 55:return cd(A)&4194304?jr([fw(a?A:Bl(W)),W]):A;case 56:return cd(A)&8388608?jr([ib(A),W],2):A;case 60:return cd(A)&262144?jr([Wu(A),W],2):A;case 62:var it=e.isBinaryExpression(n.parent)?e.getAssignmentDeclarationKind(n.parent):0;return St(it,W),na(it)?((!(W.flags&524288)||it!==2&&it!==6&&!Uu(W)&&!Qg(W)&&!(e.getObjectFlags(W)&1))&&Tr(W),A):(Tr(W),bf(W));case 27:return!Ge.allowUnreachableCode&&um(n)&&!qt(r)&&wn(n,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),W;default:return e.Debug.fail()}function pt(Sa,Ca){return Jo(Sa,2112)&&Jo(Ca,2112)}function St(Sa,Ca){if(Sa===2)for(var Bt=0,An=_u(Ca);Bt<An.length;Bt++){var gn=An[Bt],At=Hn(gn);if(At.symbol&&At.symbol.flags&32){var Ct=gn.escapedName,Zt=co(gn.valueDeclaration,Ct,788968,void 0,Ct,!1);if(Zt&&Zt.declarations.some(e.isJSDocTypedefTag))return ur(Zt.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(Ct)),ur(gn.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(Ct))}}}function qt(Sa){return Sa.kind===75&&Sa.escapedText==="eval"}function hr(Sa){var Ca=wo(A,12288)?n:wo(W,12288)?r:void 0;return Ca?(wn(Ca,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(Sa)),!1):!0}function lr(Sa){switch(Sa){case 51:case 73:return 56;case 52:case 74:return 37;case 50:case 72:return 55;default:return}}function Tr(Sa){b&&e.isAssignmentOperator(f)&&(Ep(n,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&(!e.isIdentifier(n)||e.unescapeLeadingUnderscores(n.escapedText)!=="exports")&&Vu(Sa,A,n,r))}function na(Sa){switch(Sa){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var Ca=Yt(n),Bt=e.getAssignedExpandoInitializer(r);return Bt&&e.isObjectLiteralExpression(Bt)&&Ca&&e.hasEntries(Ca.exports);default:return!1}}function Mr(Sa){return Sa(A,W)?!1:(Wa(Sa),!0)}function Wa(Sa){var Ca,Bt=!1,An=s||t;if(Sa){var gn=hc(A),At=hc(W);Bt=!(gn===A&&At===W)&&!!(gn&&At)&&Sa(gn,At)}var Ct=A,Zt=W;!Bt&&Sa&&(Ca=xk(A,W,Sa),Ct=Ca[0],Zt=Ca[1]);var pr=bl(Ct,Zt),xr=pr[0],jt=pr[1];Zi(An,Bt,xr,jt)||Ho(An,Bt,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(t.kind),xr,jt)}function Zi(Sa,Ca,Bt,An){var gn;switch(t.kind){case 36:case 34:gn="false";break;case 37:case 35:gn="true"}return gn?Ho(Sa,Ca,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,gn,Bt,An):void 0}}function xk(n,t,r){var i=n,s=t,f=Bl(n),A=Bl(t);return r(f,A)||(i=f,s=A),[i,s]}function wk(n){for(var t=n,r=n.parent;r;){if(e.isFunctionLike(r)&&t===r.body)return!1;if(e.isClassLike(t))return!0;t=r,r=r.parent}return!1}function Ak(n){b&&((!(n.flags&8192)||wk(n))&&ls(n,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),sy(n)&&wn(n,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var t=e.getContainingFunction(n);if(!t)return oe;var r=e.getFunctionFlags(t);if(!(r&1))return oe;var i=(r&2)!==0;n.asteriskToken&&(i&&x<99&&Ll(n,53248),!i&&x<2&&Ge.downlevelIteration&&Ll(n,256));var s=Zd(t),f=s&&zT(s,i),A=f&&f.yieldType||oe,W=f&&f.nextType||oe,xe=i?hc(W)||oe:W,je=n.expression?Pa(n.expression):Mn,Qe=ZE(n,je,xe,i);if(s&&Qe&&Vu(Qe,A,n.expression||n,n.expression),n.asteriskToken){var nn=i?19:17;return GT(nn,1,je,n.expression)||oe}else if(s)return qd(2,s,i)||oe;return Jb(2,t)||oe}function kk(n,t){Rf(n.condition);var r=Pa(n.whenTrue,t),i=Pa(n.whenFalse,t);return jr([r,i],2)}function Ck(n){return e.forEach(n.templateSpans,function(t){wo(Pa(t.expression),12288)&&wn(t.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)}),dt}function Dk(n){return n.kind===272&&!e.isJsxSelfClosingElement(n.parent)?n.parent.parent:n}function Of(n,t,r,i){var s=Dk(n),f=s.contextualType,A=s.inferenceContext;s.contextualType=t,s.inferenceContext=r;var W=Pa(n,i|1|(r?2:0)),xe=wo(W,2944)&&dm(W,nh(t,n))?js(W):W;return s.contextualType=f,s.inferenceContext=A,xe}function as(n,t){var r=Ir(n);if(!r.resolvedType){if(t&&t!==0)return Pa(n,t);var i=Dr;Dr=da,r.resolvedType=Pa(n,t),Dr=i}return r.resolvedType}function dT(n){return n=e.skipParentheses(n),n.kind===198||n.kind===216}function _h(n){var t=e.getEffectiveInitializer(n),r=Dl(t,!0),i=e.isParameter(n)&&n.name.kind===189&&Lo(r)&&!r.target.hasRestElement&&vd(r)<n.name.elements.length?Lk(r,n.name):r,s=e.getCombinedNodeFlags(n)&2||e.isDeclarationReadonly(n)||dT(t)||dm(i,Qc(t))?i:wd(i);if(e.isInJSFile(n)){if(s.flags&98304)return ld(n,oe),oe;if(Ng(s))return ld(n,gi),gi}return s}function Lk(n,t){for(var r=t.elements,i=vd(n),s=i?_o(n).slice():[],f=i;f<r.length;f++){var A=r[f];(f<r.length-1||!(A.kind===190&&A.dotDotDotToken))&&(s.push(!e.isOmittedExpression(A)&&Af(A)?g(A,!1,!1):oe),!e.isOmittedExpression(A)&&!Af(A)&&ld(A,oe))}return Gu(s,n.target.minLength,!1,n.target.readonly)}function dm(n,t){if(t){if(t.flags&3145728){var r=t.types;return e.some(r,function(s){return dm(n,s)})}if(t.flags&58982400){var i=cl(t)||mn;return wo(i,4)&&wo(n,128)||wo(i,8)&&wo(n,256)||wo(i,64)&&wo(n,2048)||wo(i,4096)&&wo(n,8192)||dm(n,i)}return!!(t.flags&(128|4194304)&&wo(n,128)||t.flags&256&&wo(n,256)||t.flags&2048&&wo(n,2048)||t.flags&512&&wo(n,512)||t.flags&8192&&wo(n,8192))}return!1}function Tp(n){var t=n.parent;return e.isAssertionExpression(t)&&e.isConstTypeReference(t.type)||(e.isParenthesizedExpression(t)||e.isArrayLiteralExpression(t)||e.isSpreadElement(t))&&Tp(t)||(e.isPropertyAssignment(t)||e.isShorthandPropertyAssignment(t))&&Tp(t.parent)}function Pf(n,t,r,i){var s=Pa(n,t,i);return Tp(n)?js(s):dT(n)?s:Pg(s,nh(arguments.length===2?Qc(n):r,n))}function fT(n,t){return n.name.kind===153&&Ku(n.name),Pf(n.initializer,t)}function pT(n,t){CS(n),n.name.kind===153&&Ku(n.name);var r=tT(n,t);return mT(n,r,t)}function mT(n,t,r){if(r&&r&(2|8)){var i=gp(t,0,!0),s=gp(t,1,!0),f=i||s;if(f&&f.typeParameters){var A=Hu(n,2);if(A){var W=gp(Wu(A),i?0:1,!1);if(W&&!W.typeParameters){if(r&8)return hT(n,r),vt;var xe=mp(n),je=xe.signature&&Fi(xe.signature),Qe=je&&DE(je);if(Qe&&!Qe.typeParameters&&!e.every(xe.inferences,Hd)){var nn=Ok(xe,f.typeParameters),Tn=rg(f,nn),In=e.map(xe.inferences,function(it){return Kg(it.typeParameter)});if(jg(Tn,W,function(it,pt){Dc(In,it,pt,0,!0)}),e.some(In,Hd)&&(Wg(Tn,W,function(it,pt){Dc(In,it,pt)}),!Ik(xe.inferences,In)))return Nk(xe.inferences,In),xe.inferredTypeParameters=e.concatenate(xe.inferredTypeParameters,nn),Qf(Tn)}return Qf(LE(f,W,xe))}}}}return t}function hT(n,t){if(t&2){var r=mp(n);r.flags|=4}}function Hd(n){return!!(n.candidates||n.contraCandidates)}function Ik(n,t){for(var r=0;r<n.length;r++)if(Hd(n[r])&&Hd(t[r]))return!0;return!1}function Nk(n,t){for(var r=0;r<n.length;r++)!Hd(n[r])&&Hd(t[r])&&(n[r]=t[r])}function Ok(n,t){for(var r=[],i,s,f=0,A=t;f<A.length;f++){var W=A[f],xe=W.symbol.escapedName;if(Fy(n.inferredTypeParameters,xe)||Fy(r,xe)){var je=Pk(e.concatenate(n.inferredTypeParameters,r),xe),Qe=Va(262144,je),nn=il(Qe);nn.target=W,i=e.append(i,W),s=e.append(s,nn),r.push(nn)}else r.push(W)}if(s)for(var Tn=wl(i,s),In=0,it=s;In<it.length;In++){var W=it[In];W.mapper=Tn}return r}function Fy(n,t){return e.some(n,function(r){return r.symbol.escapedName===t})}function Pk(n,t){for(var r=t.length;r>1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var i=t.slice(0,r),s=1;;s++){var f=i+s;if(!Fy(n,f))return f}}function gT(n){var t=jd(n);if(t&&!t.typeParameters)return Fi(t)}function Mk(n){var t=Pa(n.expression),r=Yp(t,n.expression),i=gT(t);return i&&Bg(i,n,r!==t)}function Dl(n,t){var r=e.skipParentheses(n);if(e.isCallExpression(r)&&r.expression.kind!==101&&!e.isRequireCall(r,!0)&&!WE(r)){var i=e.isCallChain(r)?Mk(r):gT(Cf(r.expression));if(i)return i}else if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return ja(r.type);return t?as(n):Pa(n)}function yT(n){var t=Ir(n);if(t.contextFreeType)return t.contextFreeType;var r=n.contextualType;n.contextualType=oe;var i=t.contextFreeType=Pa(n,4);return n.contextualType=r,i}function Pa(n,t,r){var i=Ae;Ae=n,Ce=0;var s=Gk(n,t,r),f=mT(n,s,t);return Py(f)&&Rk(n,f),Ae=i,f}function Rk(n,t){var r=n.parent.kind===193&&n.parent.expression===n||n.parent.kind===194&&n.parent.expression===n||(n.kind===75||n.kind===152)&&Nh(n)||n.parent.kind===171&&n.parent.exprName===n||n.parent.kind===261;if(r||wn(n,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),Ge.isolatedModules){e.Debug.assert(!!(t.symbol.flags&128));var i=t.symbol.valueDeclaration;i.flags&8388608&&wn(n,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}function Fk(n,t){var r=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return r?JE(r,r.typeExpression.type,n.expression,t):Pa(n.expression,t)}function Gk(n,t,r){var i=n.kind;if(T)switch(i){case 213:case 200:case 201:T.throwIfCancellationRequested()}switch(i){case 75:return hA(n);case 103:return Vb(n);case 101:return jb(n);case 99:return ut;case 14:case 10:return ef(rs(n.text));case 8:return m_(n),ef(rs(+n.text));case 9:return JD(n),ef(sx(n));case 105:return qn;case 90:return wt;case 210:return Ck(n);case 13:return hi;case 191:return eE(n,t,r);case 192:return zA(n,t);case 193:return yE(n);case 152:return _E(n);case 194:return w2(n);case 195:if(n.expression.kind===95)return $2(n);case 196:return Z2(n,t);case 197:return ek(n);case 199:return Fk(n,t);case 213:return JC(n);case 200:case 201:return tT(n,t);case 203:return pk(n);case 198:case 216:return nk(n);case 217:return tk(n);case 218:return rk(n);case 202:return fk(n);case 204:return mk(n);case 205:return hk(n);case 206:return gk(n);case 207:return yk(n);case 208:return cT(n,t);case 209:return kk(n,t);case 212:return qA(n,t);case 214:return Mn;case 211:return Ak(n);case 219:return n.type;case 274:return s2(n,t);case 264:return ZA(n,t);case 265:return YA(n,t);case 268:return $A(n);case 272:return n2(n,t);case 266:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return ye}function _T(n){n.expression&&ls(n.expression,e.Diagnostics.Type_expected),Di(n.constraint),Di(n.default);var t=Rd(Yt(n));cl(t),o1(t)||wn(n.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,zt(t));var r=ll(t),i=Yd(t);r&&i&&Al(i,Jl(Si(r,_f(t,i)),i),n.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),b&&Ff(n.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function vT(n){eu(n),Ah(n);var t=e.getContainingFunction(n);e.hasModifier(n,92)&&(t.kind===161&&e.nodeIsPresent(t.body)||wn(n,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),n.questionToken&&e.isBindingPattern(n.name)&&t.body&&wn(n,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&e.isIdentifier(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(t.parameters.indexOf(n)!==0&&wn(n,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(t.kind===161||t.kind===165||t.kind===170)&&wn(n,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),t.kind===201&&wn(n,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter)),n.dotDotDotToken&&!e.isBindingPattern(n.name)&&!Hi(Hn(n.symbol),tn)&&wn(n,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function Bk(n){var t=Vk(n);if(!t){wn(n,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}var r=pc(t),i=ul(r);if(!i)return;Di(n.type);var s=n.parameterName;if(i.kind===0||i.kind===2)Fm(s);else if(i.parameterIndex>=0){if(L(r)&&i.parameterIndex===r.parameters.length-1)wn(s,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else if(i.type){var f=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)};Al(i.type,Hn(r.parameters[i.parameterIndex]),n.type,void 0,f)}}else if(s){for(var A=!1,W=0,xe=t.parameters;W<xe.length;W++){var je=xe[W].name;if(e.isBindingPattern(je)&&bT(je,s,i.parameterName)){A=!0;break}}A||wn(n.parameterName,e.Diagnostics.Cannot_find_parameter_0,i.parameterName)}}function Vk(n){switch(n.parent.kind){case 201:case 164:case 243:case 200:case 169:case 160:case 159:var t=n.parent;if(n===t.type)return t}}function bT(n,t,r){for(var i=0,s=n.elements;i<s.length;i++){var f=s[i];if(e.isOmittedExpression(f))continue;var A=f.name;if(A.kind===75&&A.escapedText===r)return wn(t,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,r),!0;if((A.kind===189||A.kind===188)&&bT(A,t,r))return!0}}function Sp(n){n.kind===166?bD(n):(n.kind===169||n.kind===243||n.kind===170||n.kind===164||n.kind===161||n.kind===165)&&Mh(n);var t=e.getFunctionFlags(n);if(t&4||((t&3)===3&&x<99&&Ll(n,12288),(t&3)===2&&x<4&&Ll(n,64),(t&3)!==0&&x<2&&Ll(n,128)),Ch(n.typeParameters),e.forEach(n.parameters,vT),n.type&&Di(n.type),b){vC(n);var r=e.getEffectiveReturnTypeNode(n);if(ae&&!r)switch(n.kind){case 165:wn(n,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 164:wn(n,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(r){var i=e.getFunctionFlags(n);if((i&(4|1))===1){var s=ja(r);if(s===_t)wn(r,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var f=qd(0,s,(i&2)!==0)||oe,A=qd(1,s,(i&2)!==0)||f,W=qd(2,s,(i&2)!==0)||mn,xe=QE(f,A,W,!!(i&2));Al(xe,s,r)}}else(i&3)===2&&oC(n,r)}n.kind!==166&&n.kind!==298&&ku(n)}}function Uk(n){for(var t=e.createUnderscoreEscapedMap(),r=e.createUnderscoreEscapedMap(),i=0,s=n.members;i<s.length;i++){var f=s[i];if(f.kind===161)for(var A=0,W=f.parameters;A<W.length;A++){var xe=W[A];e.isParameterPropertyDeclaration(xe,f)&&!e.isBindingPattern(xe.name)&&In(t,xe.name,xe.name.escapedText,3)}else{var je=e.hasModifier(f,32),Qe=je?r:t,nn=f.name,Tn=nn&&e.getPropertyNameForPropertyNameNode(nn);if(nn&&Tn)switch(f.kind){case 162:In(Qe,nn,Tn,1);break;case 163:In(Qe,nn,Tn,2);break;case 158:In(Qe,nn,Tn,3);break;case 160:In(Qe,nn,Tn,8);break}}}function In(it,pt,St,qt){var hr=it.get(St);hr?hr&8?qt!==8&&wn(pt,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(pt)):hr&qt?wn(pt,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(pt)):it.set(St,hr|qt):it.set(St,qt)}}function jk(n){for(var t=0,r=n.members;t<r.length;t++){var i=r[t],s=i.name,f=e.hasModifier(i,32);if(f&&s){var A=e.getPropertyNameForPropertyNameNode(s);switch(A){case"name":case"length":case"caller":case"arguments":case"prototype":var W=e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,xe=Vs(Yt(n));wn(s,W,A,xe);break}}}}function ET(n){for(var t=e.createMap(),r=0,i=n.members;r<i.length;r++){var s=i[r];if(s.kind===157){var f=void 0,A=s.name;switch(A.kind){case 10:case 8:f=A.text;break;case 75:f=e.idText(A);break;default:continue}t.get(f)?(wn(e.getNameOfDeclaration(s.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,f),wn(s.name,e.Diagnostics.Duplicate_identifier_0,f)):t.set(f,!0)}}}function Gy(n){if(n.kind===245){var t=Yt(n);if(t.declarations.length>0&&t.declarations[0]!==n)return}var r=W_(Yt(n));if(r)for(var i=!1,s=!1,f=0,A=r.declarations;f<A.length;f++){var W=A[f],xe=W;if(xe.parameters.length===1&&xe.parameters[0].type)switch(xe.parameters[0].type.kind){case 142:s?wn(xe,e.Diagnostics.Duplicate_string_index_signature):s=!0;break;case 139:i?wn(xe,e.Diagnostics.Duplicate_number_index_signature):i=!0;break}}}function Wk(n){!eu(n)&&!jD(n)&&Rh(n.name),Ah(n)}function Hk(n){CS(n)||Rh(n.name),DT(n),e.hasModifier(n,128)&&n.kind===160&&n.body&&wn(n,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(n.name))}function Kk(n){Sp(n),VD(n)||UD(n),Di(n.body);var t=Yt(n),r=e.getDeclarationOfKind(t,n.kind);if(n===r&&Uy(t),e.nodeIsMissing(n.body))return;if(!b)return;function i(In){return In.kind===158&&!e.hasModifier(In,32)&&!!In.initializer}var s=n.parent;if(e.getClassExtendsHeritageElement(s)){iy(n.parent,s);var f=Gb(s),A=Fb(n);if(A){f&&wn(A,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);var W=e.some(n.parent.members,i)||e.some(n.parameters,function(In){return e.hasModifier(In,92)});if(W){for(var xe=n.body.statements,je=void 0,Qe=0,nn=xe;Qe<nn.length;Qe++){var Tn=nn[Qe];if(Tn.kind===225&&e.isSuperCall(Tn.expression)){je=Tn;break}if(!e.isPrologueDirective(Tn))break}je||wn(n,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties)}}else f||wn(n,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}function TT(n){if(b){if(!Mh(n)&&!LD(n)&&Rh(n.name),pm(n),Sp(n),n.kind===162&&(!(n.flags&8388608)&&e.nodeIsPresent(n.body)&&n.flags&256&&(n.flags&512||wn(n.name,e.Diagnostics.A_get_accessor_must_return_a_value))),n.name.kind===153&&Ku(n.name),!$a(n)){var t=n.kind===162?163:162,r=e.getDeclarationOfKind(Yt(n),t);if(r){var i=e.getModifierFlags(n),s=e.getModifierFlags(r);(i&28)!==(s&28)&&wn(n.name,e.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),(i&128)!==(s&128)&&wn(n.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),ST(n,r,ra,e.Diagnostics.get_and_set_accessor_must_have_the_same_type),ST(n,r,q,e.Diagnostics.get_and_set_accessor_must_have_the_same_this_type)}}var f=dn(Yt(n));n.kind===162&&Ny(n,f)}Di(n.body)}function ST(n,t,r,i){var s=r(n),f=r(t);s&&f&&!Xc(s,f)&&wn(n,i)}function qk(n){pm(n)}function vh(n,t){return Gd(e.map(n.typeArguments,ja),t,vu(t),e.isInJSFile(n))}function xT(n,t){for(var r,i,s=!0,f=0;f<t.length;f++){var A=ll(t[f]);A&&(r||(r=vh(n,t),i=wl(t,r)),s=s&&Al(r[f],Si(A,i),n.typeArguments[f],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return s}function By(n){var t=Hp(n);if(t!==ye){var r=Ir(n).resolvedSymbol;if(r)return r.flags&524288&&ea(r).typeParameters||(e.getObjectFlags(t)&4?t.target.localTypeParameters:void 0)}return}function Vy(n){vm(n,n.typeArguments),n.kind===168&&n.typeName.jsdocDotPos!==void 0&&!e.isInJSFile(n)&&!e.isInJSDoc(n)&&Ju(n,n.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(n.typeArguments,Di);var t=Hp(n);if(t!==ye){if(n.typeArguments&&b){var r=By(n);r&&xT(n,r)}t.flags&32&&Ir(n).resolvedSymbol.flags&8&&wn(n,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,zt(t))}}function Jk(n){var t=e.tryCast(n.parent,e.isTypeReferenceType);if(!t)return;var r=By(t),i=ll(r[t.typeArguments.indexOf(n)]);return i&&Si(i,wl(r,vh(t,r)))}function zk(n){Q_(n)}function Xk(n){if(e.forEach(n.members,Di),b){var t=xv(n);$y(t),Gy(n),ET(n)}}function Yk(n){Di(n.elementType)}function Qk(n){for(var t=n.elementTypes,r=!1,i=0;i<t.length;i++){var s=t[i];if(s.kind===176){if(i!==t.length-1){ur(s,e.Diagnostics.A_rest_element_must_be_last_in_a_tuple_type);break}Ms(ja(s.type))||wn(s,e.Diagnostics.A_rest_element_type_must_be_an_array_type)}else if(s.kind===175)r=!0;else if(r){ur(s,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(n.elementTypes,Di)}function Zk(n){e.forEach(n.types,Di)}function wT(n,t){if(!(n.flags&8388608))return n;var r=n.objectType,i=n.indexType;if(Hi(i,zc(r,!1)))return t.kind===194&&e.isAssignmentTarget(t)&&e.getObjectFlags(r)&32&&Jc(r)&1&&wn(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,zt(r)),n;var s=ds(r);if(Xi(s,1)&&Jo(i,296))return n;if($d(r)){var f=hv(i,t);if(f){var A=lf(s,function(W){return Ji(W,f)});if(A&&e.getDeclarationModifierFlagsFromSymbol(A)&24)return wn(t,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(f)),ye}}return wn(t,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,zt(i),zt(r)),ye}function $k(n){Di(n.objectType),Di(n.indexType),wT(bv(n),n)}function eC(n){Di(n.typeParameter),Di(n.type),n.type||ld(n,oe);var t=hg(n),r=dc(t);Al(r,ba,e.getEffectiveConstraintOfTypeParameter(n.typeParameter))}function nC(n){Fm(n)}function tC(n){ND(n),Di(n.type)}function rC(n){e.forEachChild(n,Di)}function aC(n){e.findAncestor(n,function(t){return t.parent&&t.parent.kind===179&&t.parent.extendsType===t})||ur(n,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Di(n.typeParameter),ku(n)}function iC(n){Di(n.argument),ja(n)}function bh(n){return e.hasModifier(n,8)&&!!(n.flags&8388608)}function Eh(n,t){var r=e.getCombinedModifierFlags(n);return n.parent.kind!==245&&n.parent.kind!==244&&n.parent.kind!==213&&n.flags&8388608&&(!(r&2)&&!(e.isModuleBlock(n.parent)&&e.isModuleDeclaration(n.parent.parent)&&e.isGlobalScopeAugmentation(n.parent.parent))&&(r|=1),r|=2),r&t}function Uy(n){if(!b)return;function t(Ct,Zt){var pr=Zt!==void 0&&Zt.parent===Ct[0].parent;return pr?Zt:Ct[0]}function r(Ct,Zt,pr,xr,jt){var sa=xr^jt;if(sa!==0){var Ea=Eh(t(Ct,Zt),pr);e.forEach(Ct,function(Ma){var Li=Eh(Ma,pr)^Ea;Li&1?wn(e.getNameOfDeclaration(Ma),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):Li&2?wn(e.getNameOfDeclaration(Ma),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):Li&(8|16)?wn(e.getNameOfDeclaration(Ma)||Ma,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):Li&128&&wn(e.getNameOfDeclaration(Ma),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function i(Ct,Zt,pr,xr){if(pr!==xr){var jt=e.hasQuestionToken(t(Ct,Zt));e.forEach(Ct,function(sa){var Ea=e.hasQuestionToken(sa)!==jt;Ea&&wn(e.getNameOfDeclaration(sa),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}var s=1|2|8|16|128,f=0,A=s,W=!1,xe=!0,je=!1,Qe,nn,Tn,In=n.declarations,it=(n.flags&16384)!==0;function pt(Ct){if(Ct.name&&e.nodeIsMissing(Ct.name))return;var Zt=!1,pr=e.forEachChild(Ct.parent,function(Li){if(Zt)return Li;Zt=Li===Ct});if(pr&&pr.pos===Ct.end&&pr.kind===Ct.kind){var xr=pr.name||pr,jt=pr.name;if(Ct.name&&jt&&(e.isComputedPropertyName(Ct.name)&&e.isComputedPropertyName(jt)||!e.isComputedPropertyName(Ct.name)&&!e.isComputedPropertyName(jt)&&e.getEscapedTextOfIdentifierOrLiteral(Ct.name)===e.getEscapedTextOfIdentifierOrLiteral(jt))){var sa=(Ct.kind===160||Ct.kind===159)&&e.hasModifier(Ct,32)!==e.hasModifier(pr,32);if(sa){var Ea=e.hasModifier(Ct,32)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static;wn(xr,Ea)}return}else if(e.nodeIsPresent(pr.body)){wn(xr,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(Ct.name));return}}var Ma=Ct.name||Ct;it?wn(Ma,e.Diagnostics.Constructor_implementation_is_missing):e.hasModifier(Ct,128)?wn(Ma,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):wn(Ma,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}for(var St=!1,qt=!1,hr=!1,lr=0,Tr=In;lr<Tr.length;lr++){var na=Tr[lr],Mr=na,Wa=Mr.flags&8388608,Zi=Mr.parent.kind===245||Mr.parent.kind===172||Wa;if(Zi&&(Tn=void 0),(Mr.kind===244||Mr.kind===213)&&!Wa&&(hr=!0),Mr.kind===243||Mr.kind===160||Mr.kind===159||Mr.kind===161){var Sa=Eh(Mr,s);f|=Sa,A&=Sa,W=W||e.hasQuestionToken(Mr),xe=xe&&e.hasQuestionToken(Mr),e.nodeIsPresent(Mr.body)&&Qe?it?qt=!0:St=!0:Tn&&Tn.parent===Mr.parent&&Tn.end!==Mr.pos&&pt(Tn),e.nodeIsPresent(Mr.body)?Qe||(Qe=Mr):je=!0,Tn=Mr,Zi||(nn=Mr)}}if(qt&&e.forEach(In,function(Ct){wn(Ct,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),St&&e.forEach(In,function(Ct){wn(e.getNameOfDeclaration(Ct),e.Diagnostics.Duplicate_function_implementation)}),hr&&!it&&n.flags&16&&e.forEach(In,function(Ct){ya(e.getNameOfDeclaration(Ct)||Ct,e.Diagnostics.Duplicate_identifier_0,e.symbolName(n),e.filter(In,function(Zt){return Zt!==Ct}))}),nn&&!nn.body&&!e.hasModifier(nn,128)&&!nn.questionToken&&pt(nn),je&&(r(In,Qe,s,f,A),i(In,Qe,W,xe),Qe))for(var Ca=Qd(n),Bt=pc(Qe),An=0,gn=Ca;An<gn.length;An++){var At=gn[An];if(!qx(Bt,At)){e.addRelatedInfo(wn(At.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(Qe,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}function fm(n){if(!b)return;var t=n.localSymbol;if(!t&&(t=Yt(n),!t.exportSymbol))return;if(e.getDeclarationOfKind(t,n.kind)!==n)return;for(var r=0,i=0,s=0,f=0,A=t.declarations;f<A.length;f++){var W=A[f],xe=St(W),je=Eh(W,1|512);je&1?je&512?s|=xe:r|=xe:i|=xe}var Qe=r|i,nn=r&i,Tn=s&Qe;if(nn||Tn)for(var In=0,it=t.declarations;In<it.length;In++){var W=it[In],xe=St(W),pt=e.getNameOfDeclaration(W);xe&Tn?wn(pt,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(pt)):xe&nn&&wn(pt,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(pt))}function St(qt){var hr=qt;switch(hr.kind){case 245:case 246:case 315:case 308:case 309:return 2;case 248:return e.isAmbientModule(hr)||e.getModuleInstanceState(hr)!==0?4|1:4;case 244:case 247:return 2|1;case 288:return 2|1|4;case 258:if(!e.isEntityNameExpression(hr.expression))return 1;hr=hr.expression;case 252:case 255:case 254:var lr=0,Tr=M(Yt(hr));return e.forEach(Tr.declarations,function(na){lr|=St(na)}),lr;case 241:case 190:case 243:case 257:return 1;default:return e.Debug.failBadSyntaxKind(hr)}}}function xp(n,t,r,i){var s=wp(n,t);return s&&hc(s,t,r,i)}function wp(n,t){if(Bi(n))return;var r=n;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(pa(n,Pm(!1)))return r.promisedTypeOfPromise=_o(n)[0];var i=Zo(n,"then");if(Bi(i))return;var s=i?si(i,0):e.emptyArray;if(s.length===0){t&&wn(t,e.Diagnostics.A_promise_must_have_a_then_method);return}var f=hs(jr(e.map(s,Cy)),2097152);if(Bi(f))return;var A=si(f,0);if(A.length===0){t&&wn(t,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return r.promisedTypeOfPromise=jr(e.map(A,Cy),2)}function Ap(n,t,r,i){var s=hc(n,t,r,i);return s||ye}function hc(n,t,r,i){var s=n;if(s.awaitedTypeOfType)return s.awaitedTypeOfType;if(Bi(n))return s.awaitedTypeOfType=n;if(n.flags&1048576){for(var f=void 0,A=0,W=n.types;A<W.length;A++){var xe=W[A];f=e.append(f,hc(xe,t,r,i))}return f?s.awaitedTypeOfType=jr(f):void 0}var je=wp(n);if(je){if(n.id===je.id||ht.indexOf(je.id)>=0){t&&wn(t,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}ht.push(n.id);var Qe=hc(je,t,r,i);return ht.pop(),Qe?s.awaitedTypeOfType=Qe:void 0}var nn=Zo(n,"then");if(nn&&si(nn,0).length>0){if(t){if(!r)return e.Debug.fail();wn(t,r,i)}return}return s.awaitedTypeOfType=n}function oC(n,t){var r=ja(t);if(x>=2){if(r===ye)return;var i=Pm(!0);if(i!==yt&&!pa(r,i)){wn(t,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);return}}else{if(lC(t),r===ye)return;var s=e.getEntityNameFromTypeNode(t);if(s===void 0){wn(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,zt(r));return}var f=Dt(s,111551,!0),A=f?Hn(f):ye;if(A===ye){s.kind===75&&s.escapedText==="Promise"&&Ta(r)===Pm(!1)?wn(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):wn(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 W=D1(!0);if(W===jn){wn(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(!Al(A,W,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 xe=s&&e.getFirstIdentifier(s),je=Uo(n.locals,xe.escapedText,111551);if(je){wn(je.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(xe),e.entityNameToString(s));return}}Ap(r,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function sC(n){var t=If(n),r=Fi(t);if(r.flags&1)return;var i,s=UE(n),f;switch(n.parent.kind){case 244:var A=Yt(n.parent),W=Hn(A);i=jr([W,_t]);break;case 155:i=_t,f=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 158:i=_t,f=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 160:case 162:case 163:var xe=Gf(n.parent),je=iv(xe);i=jr([je,_t]);break;default:return e.Debug.fail()}Al(r,i,n,s,function(){return f})}function lC(n){AT(n&&e.getEntityNameFromTypeNode(n))}function AT(n){if(!n)return;var t=e.getFirstIdentifier(n),r=(n.kind===75?788968:1920)|2097152,i=co(t,t.escapedText,r,void 0,void 0,!0);i&&i.flags&2097152&&sr(i)&&!Lp(M(i))&&on(i)}function Mf(n){var t=jy(n);t&&e.isEntityName(t)&&AT(t)}function jy(n){if(n)switch(n.kind){case 178:case 177:return kT(n.types);case 179:return kT([n.trueType,n.falseType]);case 181:return jy(n.type);case 168:return n.typeName}}function kT(n){for(var t,r=0,i=n;r<i.length;r++){for(var s=i[r];s.kind===181;)s=s.type;if(s.kind===136)continue;if(!a&&(s.kind===99||s.kind===145))continue;var f=jy(s);if(!f)return;if(t){if(!e.isIdentifier(t)||!e.isIdentifier(f)||t.escapedText!==f.escapedText)return}else t=f}return t}function Th(n){var t=e.getEffectiveTypeAnnotationNode(n);return e.isRestParameter(n)?e.getRestParameterElementType(t):t}function pm(n){if(!n.decorators)return;if(!e.nodeCanBeDecorated(n,n.parent,n.parent.parent))return;Ge.experimentalDecorators||wn(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var t=n.decorators[0];if(Ll(t,8),n.kind===155&&Ll(t,32),Ge.emitDecoratorMetadata){Ll(t,16);switch(n.kind){case 244:var r=e.getFirstConstructorWithBody(n);if(r)for(var i=0,s=r.parameters;i<s.length;i++){var f=s[i];Mf(Th(f))}break;case 162:case 163:var A=n.kind===162?163:162,W=e.getDeclarationOfKind(Yt(n),A);Mf(Yr(n)||W&&Yr(W));break;case 160:for(var xe=0,je=n.parameters;xe<je.length;xe++){var f=je[xe];Mf(Th(f))}Mf(e.getEffectiveReturnTypeNode(n));break;case 158:Mf(e.getEffectiveTypeAnnotationNode(n));break;case 155:Mf(Th(n));for(var Qe=n.parent,nn=0,Tn=Qe.parameters;nn<Tn.length;nn++){var f=Tn[nn];Mf(Th(f))}break}}e.forEach(n.decorators,sC)}function cC(n){b&&(DT(n),d_(n),kp(n,n.name),Cp(n,n.name))}function uC(n){n.typeExpression||wn(n.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&Ff(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),Di(n.typeExpression)}function dC(n){Di(n.constraint);for(var t=0,r=n.typeParameters;t<r.length;t++){var i=r[t];Di(i)}}function fC(n){Di(n.typeExpression)}function pC(n){if(Di(n.typeExpression),!e.getParameterSymbolFromJSDoc(n)){var t=e.getHostSignatureFromJSDoc(n);if(t){var r=e.getJSDocTags(t).filter(e.isJSDocParameterTag).indexOf(n);if(r>-1&&r<t.parameters.length&&e.isBindingPattern(t.parameters[r].name))return;U_(t)?e.findLast(e.getJSDocTags(t),e.isJSDocParameterTag)===n&&n.typeExpression&&n.typeExpression.type&&!Ms(ja(n.typeExpression.type))&&wn(n.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(n.name.kind===152?n.name.right:n.name)):e.isQualifiedName(n.name)?wn(n.name,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(n.name),e.entityNameToString(n.name.left)):wn(n.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(n.name))}}}function mC(n){b&&!n.type&&!e.isJSDocConstructSignature(n)&&ld(n,oe),Sp(n)}function hC(n){var t=e.getJSDocHost(n);if(!e.isClassDeclaration(t)&&!e.isClassExpression(t)){wn(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName));return}var r=e.getJSDocTags(t).filter(e.isJSDocAugmentsTag);e.Debug.assert(r.length>0),r.length>1&&wn(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=CT(n.class.expression),s=e.getClassExtendsHeritageElement(t);if(s){var f=CT(s.expression);f&&i.escapedText!==f.escapedText&&wn(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(n.tagName),e.idText(i),e.idText(f))}}function CT(n){switch(n.kind){case 75:return n;case 193:return n.name;default:return}}function DT(n){pm(n),Sp(n);var t=e.getFunctionFlags(n);if(n.name&&n.name.kind===153&&Ku(n.name),!$a(n)){var r=Yt(n),i=n.localSymbol||r,s=e.find(i.declarations,function(W){return W.kind===n.kind&&!(W.flags&131072)});n===s&&Uy(i),r.parent&&(e.getDeclarationOfKind(r,n.kind)===n&&Uy(r))}var f=n.kind===159?void 0:n.body;if(Di(f),Ny(n,Zd(n)),b&&!e.getEffectiveReturnTypeNode(n)&&(e.nodeIsMissing(f)&&!bh(n)&&ld(n,oe),t&1&&e.nodeIsPresent(f)&&Fi(pc(n))),e.isInJSFile(n)){var A=e.getJSDocTypeTag(n);A&&A.typeExpression&&!dy(ja(A.typeExpression),n)&&wn(A,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function ku(n){if(b&&!(n.flags&8388608)){var t=e.getSourceFileOfNode(n),r=an.get(t.path);r||(r=[],an.set(t.path,r)),r.push(n)}}function LT(n,t){for(var r=0,i=n;r<i.length;r++){var s=i[r];switch(s.kind){case 244:case 213:gC(s,t),Hy(s,t);break;case 288:case 248:case 222:case 250:case 229:case 230:case 231:OT(s,t);break;case 161:case 200:case 243:case 201:case 160:case 162:case 163:s.body&&OT(s,t),Hy(s,t);break;case 159:case 164:case 165:case 169:case 170:case 246:case 245:Hy(s,t);break;case 180:yC(s,t);break;default:e.Debug.assertNever(s,"Node should not have been registered for unused identifiers check")}}}function IT(n,t,r){var i=e.getNameOfDeclaration(n)||n,s=Ih(n)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;r(n,0,e.createDiagnosticForNode(i,s,t))}function Wy(n){return e.isIdentifier(n)&&e.idText(n).charCodeAt(0)===95}function gC(n,t){for(var r=0,i=n.members;r<i.length;r++){var s=i[r];switch(s.kind){case 160:case 158:case 162:case 163:if(s.kind===163&&s.symbol.flags&32768)break;var f=Yt(s);!f.isReferenced&&e.hasModifier(s,8)&&t(s,0,e.createDiagnosticForNode(s.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,wa(f)));break;case 161:for(var A=0,W=s.parameters;A<W.length;A++){var xe=W[A];!xe.symbol.isReferenced&&e.hasModifier(xe,8)&&t(xe,0,e.createDiagnosticForNode(xe.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(xe.symbol)))}break;case 166:case 221:break;default:e.Debug.fail()}}}function yC(n,t){var r=n.typeParameter;Ky(r)&&t(n,1,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(r.name)))}function Hy(n,t){if(e.last(Yt(n).declarations)!==n)return;for(var r=e.getEffectiveTypeParameterDeclarations(n),i=new e.NodeSet,s=0,f=r;s<f.length;s++){var A=f[s];if(!Ky(A))continue;var W=e.idText(A.name),xe=A.parent;if(xe.kind!==180&&xe.typeParameters.every(Ky)){if(i.tryAdd(xe)){var je=e.isJSDocTemplateTag(xe)?e.rangeOfNode(xe):e.rangeOfTypeParameters(xe.typeParameters),Qe=r.length===1,nn=Qe?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,Tn=Qe?W:void 0;t(A,1,e.createFileDiagnostic(e.getSourceFileOfNode(xe),je.pos,je.end-je.pos,nn,Tn))}}else t(A,1,e.createDiagnosticForNode(A,e.Diagnostics._0_is_declared_but_its_value_is_never_read,W))}}function Ky(n){return!(zr(n.symbol).isReferenced&262144)&&!Wy(n.name)}function Sh(n,t,r,i){var s=String(i(t)),f=n.get(s);f?f[1].push(r):n.set(s,[t,[r]])}function NT(n){return e.tryCast(e.getRootDeclaration(n),e.isParameter)}function OT(n,t){if(n.flags&8388608)return;var r=e.createMap(),i=e.createMap(),s=e.createMap();n.locals.forEach(function(f){if(f.flags&262144?!(f.flags&3&&!(f.isReferenced&3)):f.isReferenced||f.exportSymbol)return;for(var A=0,W=f.declarations;A<W.length;A++){var xe=W[A];if(e.isAmbientModule(xe)||(e.isVariableDeclaration(xe)&&e.isForInOrOfStatement(xe.parent.parent)||PT(xe))&&Wy(xe.name))continue;if(PT(xe))Sh(r,_C(xe),xe,J);else if(e.isBindingElement(xe)&&e.isObjectBindingPattern(xe.parent)){var je=e.last(xe.parent.elements);(xe===je||!e.last(xe.parent.elements).dotDotDotToken)&&Sh(i,xe.parent,xe,J)}else if(e.isVariableDeclaration(xe))Sh(s,xe.parent,xe,J);else{var Qe=f.valueDeclaration&&NT(f.valueDeclaration),nn=f.valueDeclaration&&e.getNameOfDeclaration(f.valueDeclaration);Qe&&nn?!e.isParameterPropertyDeclaration(Qe,Qe.parent)&&!e.parameterIsThisKeyword(Qe)&&!Wy(nn)&&t(Qe,1,e.createDiagnosticForNode(nn,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(f))):IT(xe,e.symbolName(f),t)}}}),r.forEach(function(f){var A=f[0],W=f[1],xe=A.parent,je=(A.name?1:0)+(A.namedBindings?A.namedBindings.kind===255?1:A.namedBindings.elements.length:0);if(je===W.length)t(xe,0,W.length===1?e.createDiagnosticForNode(xe,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(W).name)):e.createDiagnosticForNode(xe,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var Qe=0,nn=W;Qe<nn.length;Qe++){var Tn=nn[Qe];IT(Tn,e.idText(Tn.name),t)}}),i.forEach(function(f){var A=f[0],W=f[1],xe=NT(A.parent)?1:0;if(A.elements.length===W.length)W.length===1&&A.parent.kind===241&&A.parent.parent.kind===242?Sh(s,A.parent.parent,A.parent,J):t(A,xe,W.length===1?e.createDiagnosticForNode(A,e.Diagnostics._0_is_declared_but_its_value_is_never_read,mm(e.first(W).name)):e.createDiagnosticForNode(A,e.Diagnostics.All_destructured_elements_are_unused));else for(var je=0,Qe=W;je<Qe.length;je++){var nn=Qe[je];t(nn,xe,e.createDiagnosticForNode(nn,e.Diagnostics._0_is_declared_but_its_value_is_never_read,mm(nn.name)))}}),s.forEach(function(f){var A=f[0],W=f[1];if(A.declarations.length===W.length)t(A,0,W.length===1?e.createDiagnosticForNode(e.first(W).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,mm(e.first(W).name)):e.createDiagnosticForNode(A.parent.kind===224?A.parent:A,e.Diagnostics.All_variables_are_unused));else for(var xe=0,je=W;xe<je.length;xe++){var Qe=je[xe];t(Qe,0,e.createDiagnosticForNode(Qe,e.Diagnostics._0_is_declared_but_its_value_is_never_read,mm(Qe.name)))}})}function mm(n){switch(n.kind){case 75:return e.idText(n);case 189:case 188:return mm(e.cast(e.first(n.elements),e.isBindingElement).name);default:return e.Debug.assertNever(n)}}function PT(n){return n.kind===254||n.kind===257||n.kind===255}function _C(n){return n.kind===254?n:n.kind===255?n.parent:n.parent.parent}function xh(n){if(n.kind===222&&Lc(n),e.isFunctionOrModuleBlock(n)){var t=to;e.forEach(n.statements,Di),to=t}else e.forEach(n.statements,Di);n.locals&&ku(n)}function vC(n){if(x>=2||Ge.noEmit||!e.hasRestParameter(n)||n.flags&8388608||e.nodeIsMissing(n.body))return;e.forEach(n.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===he.escapedName&&wn(t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function qy(n,t,r){if(!(t&&t.escapedText===r))return!1;if(n.kind===158||n.kind===157||n.kind===160||n.kind===159||n.kind===162||n.kind===163)return!1;if(n.flags&8388608)return!1;var i=e.getRootDeclaration(n);return!(i.kind===155&&e.nodeIsMissing(i.parent.body))}function bC(n){e.findAncestor(n,function(t){if(l_(t)&4){var r=n.kind!==75;return r?wn(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):wn(n,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1})}function EC(n){e.findAncestor(n,function(t){if(l_(t)&8){var r=n.kind!==75;return r?wn(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):wn(n,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1})}function kp(n,t){if(j>=e.ModuleKind.ES2015||Ge.noEmit)return;if(!qy(n,t,"require")&&!qy(n,t,"exports"))return;if(e.isModuleDeclaration(n)&&e.getModuleInstanceState(n)!==1)return;var r=sc(n);r.kind===288&&e.isExternalOrCommonJsModule(r)&&wn(t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(t),e.declarationNameToString(t))}function Cp(n,t){if(x>=4||Ge.noEmit||!qy(n,t,"Promise"))return;if(e.isModuleDeclaration(n)&&e.getModuleInstanceState(n)!==1)return;var r=sc(n);r.kind===288&&e.isExternalOrCommonJsModule(r)&&r.flags&2048&&wn(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 TC(n){if((e.getCombinedNodeFlags(n)&3)!==0||e.isParameterDeclaration(n))return;if(n.kind===241&&!n.initializer)return;var t=Yt(n);if(t.flags&1){if(!e.isIdentifier(n.name))return e.Debug.fail();var r=co(n,n.name.escapedText,3,void 0,void 0,!1);if(r&&r!==t&&r.flags&2&&yy(r)&3){var i=e.getAncestor(r.valueDeclaration,242),s=i.parent.kind===224&&i.parent.parent?i.parent.parent:void 0,f=s&&(s.kind===222&&e.isFunctionLike(s.parent)||s.kind===249||s.kind===248||s.kind===288);if(!f){var A=wa(r);wn(n,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,A,A)}}}}function wh(n){return n===kn?oe:n===ua?gi:n}function Ah(n){if(pm(n),e.isBindingElement(n)||Di(n.type),!n.name)return;if(n.name.kind===153&&(Ku(n.name),n.initializer&&as(n.initializer)),n.kind===190){n.parent.kind===188&&x<99&&Ll(n,4),n.propertyName&&n.propertyName.kind===153&&Ku(n.propertyName);var t=n.parent.parent,r=Ou(t),i=n.propertyName||n.name;if(r&&!e.isBindingPattern(i)){var s=bd(i);if(er(s)){var f=Po(s),A=Ji(r,f);A&&(lh(A,void 0,!1),sh(t,!!t.initializer&&t.initializer.kind===101,r,A))}}}if(e.isBindingPattern(n.name)&&(n.name.kind===189&&x<2&&Ge.downlevelIteration&&Ll(n,512),e.forEach(n.name.elements,Di)),n.initializer&&e.getRootDeclaration(n).kind===155&&e.nodeIsMissing(e.getContainingFunction(n).body)){wn(n,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(e.isBindingPattern(n.name)){var W=n.initializer&&n.parent.parent.kind!==230,xe=n.name.elements.length===0;if(W||xe){var je=rt(n);if(W){var Qe=as(n.initializer);a&&xe?gE(Qe,n):Vu(Qe,rt(n),n,n.initializer)}xe&&(e.isArrayBindingPattern(n.name)?Kd(65,je,un,n):a&&gE(je,n))}return}var nn=Yt(n),Tn=wh(Hn(nn));if(n===nn.valueDeclaration){var In=e.getEffectiveInitializer(n);if(In){var it=e.isInJSFile(n)&&e.isObjectLiteralExpression(In)&&(In.properties.length===0||e.isPrototypeAccess(n.name))&&e.hasEntries(nn.exports);!it&&n.parent.parent.kind!==230&&Vu(as(In),Tn,n,In,void 0)}nn.declarations.length>1&&(e.some(nn.declarations,function(St){return St!==n&&e.isVariableLike(St)&&!RT(St,n)})&&wn(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name)))}else{var pt=wh(rt(n));Tn!==ye&&pt!==ye&&!Xc(Tn,pt)&&!(nn.flags&67108864)&&MT(nn.valueDeclaration,Tn,n,pt),n.initializer&&Vu(as(n.initializer),pt,n,n.initializer,void 0),RT(n,nn.valueDeclaration)||wn(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}n.kind!==158&&n.kind!==157&&(fm(n),(n.kind===241||n.kind===190)&&TC(n),kp(n,n.name),Cp(n,n.name))}function MT(n,t,r,i){var s=e.getNameOfDeclaration(r),f=r.kind===158||r.kind===157?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,A=e.declarationNameToString(s),W=wn(s,f,A,zt(t),zt(i));n&&e.addRelatedInfo(W,e.createDiagnosticForNode(n,e.Diagnostics._0_was_also_declared_here,A))}function RT(n,t){if(n.kind===155&&t.kind===241||n.kind===241&&t.kind===155)return!0;if(e.hasQuestionToken(n)!==e.hasQuestionToken(t))return!1;var r=8|16|256|128|64|32;return e.getSelectedModifierFlags(n,r)===e.getSelectedModifierFlags(t,r)}function Jy(n){return FD(n),Ah(n)}function SC(n){return PD(n),Ah(n)}function xC(n){!eu(n)&&!p_(n.declarationList)&&GD(n),e.forEach(n.declarationList.declarations,Di)}function wC(n){Lc(n),Pa(n.expression)}function AC(n){Lc(n);var t=Rf(n.expression);kC(n,t),Di(n.thenStatement),n.thenStatement.kind===223&&wn(n.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Di(n.elseStatement)}function kC(n,t){if(!a)return;var r=e.isIdentifier(n.expression)?n.expression:e.isPropertyAccessExpression(n.expression)?n.expression.name:void 0;if(!r)return;var i=kl(t);if(i)return;var s=si(t,0);if(s.length===0)return;var f=ud(r);if(!f)return;var A=e.forEachChild(n.thenStatement,function W(xe){if(e.isIdentifier(xe)){var je=ud(xe);if(je&&je.id===f.id)return!0}return e.forEachChild(xe,W)});A||wn(n.expression,e.Diagnostics.This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead)}function CC(n){Lc(n),Di(n.statement),Rf(n.expression)}function DC(n){Lc(n),Rf(n.expression),Di(n.statement)}function Rf(n,t){var r=Pa(n,t);return r.flags&16384&&wn(n,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),r}function LC(n){Lc(n)||n.initializer&&n.initializer.kind===242&&p_(n.initializer),n.initializer&&(n.initializer.kind===242?e.forEach(n.initializer.declarations,Jy):Pa(n.initializer)),n.condition&&Rf(n.condition),n.incrementor&&Pa(n.incrementor),Di(n.statement),n.locals&&ku(n)}function IC(n){if(kS(n),n.awaitModifier){var t=e.getFunctionFlags(e.getContainingFunction(n));(t&(4|2))===2&&x<99&&Ll(n,32768)}else Ge.downlevelIteration&&x<2&&Ll(n,256);if(n.initializer.kind===242)FT(n);else{var r=n.initializer,i=hm(n.expression,n.awaitModifier);if(r.kind===191||r.kind===192)Wd(r,i||ye);else{var s=Pa(r);Ep(r,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),i&&Vu(i,s,r,n.expression)}}Di(n.statement),n.locals&&ku(n)}function NC(n){kS(n);var t=vy(Pa(n.expression));if(n.initializer.kind===242){var r=n.initializer.declarations[0];r&&e.isBindingPattern(r.name)&&wn(r.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),FT(n)}else{var i=n.initializer,s=Pa(i);i.kind===191||i.kind===192?wn(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Hi(lx(t),s)?Ep(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):wn(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(t===It||!Jo(t,67108864|58982400))&&wn(n.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,zt(t)),Di(n.statement),n.locals&&ku(n)}function FT(n){var t=n.initializer;if(t.declarations.length>=1){var r=t.declarations[0];Jy(r)}}function hm(n,t){var r=Cf(n),i=t?15:13;return Kd(i,r,un,n)}function Kd(n,t,r,i){return Bi(t)?t:zy(n,t,r,i,!0)||oe}function zy(n,t,r,i,s){var f=(n&2)!==0;if(t===It){Qy(i,t,f);return}var A=x>=2,W=!A&&Ge.downlevelIteration;if(A||W||f){var xe=kh(t,n,A?i:void 0);if(s&&xe){var je=n&8?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;je&&Al(r,xe.nextType,i,je)}if(xe||A)return xe&&xe.yieldType}var Qe=t,nn=!1,Tn=!1;if(n&4){if(Qe.flags&1048576){var In=t.types,it=e.filter(In,function(Tr){return!(Tr.flags&132)});it!==In&&(Qe=jr(it,2))}else Qe.flags&132&&(Qe=It);if(Tn=Qe!==t,Tn&&(x<1&&(i&&(wn(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),nn=!0)),Qe.flags&131072))return dt}if(!xd(Qe)){if(i&&!nn){var pt=GT(n,0,t,void 0),St=!(n&4)||Tn?W?[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:pt?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]:W?[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]:pt?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0],qt=St[0],hr=St[1];Ho(i,hr&&!!xp(Qe),qt,zt(Qe))}return Tn?dt:void 0}var lr=ms(Qe,1);return Tn&&lr?lr.flags&132?dt:jr([lr,dt],2):lr}function GT(n,t,r,i){if(Bi(r))return;var s=kh(r,n,i);return s&&s[y(t)]}function Cu(n,t,r){if(n===void 0&&(n=It),t===void 0&&(t=It),r===void 0&&(r=mn),n.flags&67359327&&t.flags&(1|131072|2|16384|32768)&&r.flags&(1|131072|2|16384|32768)){var i=bu([n,t,r]),s=Ia.get(i);return s||(s={yieldType:n,returnType:t,nextType:r},Ia.set(i,s)),s}return{yieldType:n,returnType:t,nextType:r}}function BT(n){for(var t,r,i,s=0,f=n;s<f.length;s++){var A=f[s];if(A===void 0||A===ca)continue;if(A===Ti)return Ti;t=e.append(t,A.yieldType),r=e.append(r,A.returnType),i=e.append(i,A.nextType)}return t||r||i?Cu(t&&jr(t),r&&jr(r),i&&Qi(i)):ca}function kh(n,t,r){if(Bi(n))return Ti;if(!(n.flags&1048576)){var i=UT(n,t,r);if(i===ca){r&&Qy(r,n,!!(t&2));return}return i}var s=t&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",f=n[s];if(f)return f===ca?void 0:f;for(var A,W=0,xe=n.types;W<xe.length;W++){var je=xe[W],Qe=UT(je,t,r);Qe===ca?r&&(Qy(r,n,!!(t&2)),r=void 0):A=e.append(A,Qe)}var nn=A?BT(A):ca;return n[s]=nn,nn===ca?void 0:nn}function VT(n,t){if(n===ca)return ca;if(n===Ti)return Ti;var r=n.yieldType,i=n.returnType,s=n.nextType;return Cu(hc(r,t)||oe,hc(i,t)||oe,s)}function UT(n,t,r){if(Bi(n))return Ti;if(t&2){var i=Xy(n,Ro)||WT(n,Ro);if(i)return i}if(t&1){var i=Xy(n,uo)||WT(n,uo);if(i)if(t&2){if(i!==ca)return n.iterationTypesOfAsyncIterable=VT(i,r)}else return i}if(t&2){var i=Yy(n,Ro,r);if(i!==ca)return i}if(t&1){var i=Yy(n,uo,r);if(i!==ca)return t&2?n.iterationTypesOfAsyncIterable=i?VT(i,r):ca:i}return ca}function Xy(n,t){return n[t.iterableCacheKey]}function jT(n,t){var r=Xy(n,t)||Yy(n,t,void 0);return r===ca?mo:r}function WT(n,t){var r;if(pa(n,r=t.getGlobalIterableType(!1))||pa(n,r=t.getGlobalIterableIteratorType(!1))){var i=_o(n)[0],s=jT(r,t),f=s.returnType,A=s.nextType;return n[t.iterableCacheKey]=Cu(i,f,A)}if(pa(n,t.getGlobalGeneratorType(!1))){var W=_o(n),i=W[0],f=W[1],A=W[2];return n[t.iterableCacheKey]=Cu(i,f,A)}}function Yy(n,t,r){var i=Ji(n,e.getPropertyNameForKnownSymbolName(t.iteratorSymbolName)),s=i&&!(i.flags&16777216)?Hn(i):void 0;if(Bi(s))return n[t.iterableCacheKey]=Ti;var f=s?si(s,0):void 0;if(!e.some(f))return n[t.iterableCacheKey]=ca;var A=jr(e.map(f,Fi),2),W=HT(A,t,r)||ca;return n[t.iterableCacheKey]=W}function Qy(n,t,r){var i=r?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;Ho(n,!!xp(t),i,zt(t))}function HT(n,t,r){if(Bi(n))return Ti;var i=KT(n,t)||OC(n,t)||JT(n,t,r);return i===ca?void 0:i}function KT(n,t){return n[t.iteratorCacheKey]}function OC(n,t){var r=t.getGlobalIterableIteratorType(!1);if(pa(n,r)){var i=_o(n)[0],s=KT(r,t)||JT(r,t,void 0),f=s===ca?mo:s,A=f.returnType,W=f.nextType;return n[t.iteratorCacheKey]=Cu(i,A,W)}if(pa(n,t.getGlobalIteratorType(!1))||pa(n,t.getGlobalGeneratorType(!1))){var xe=_o(n),i=xe[0],A=xe[1],W=xe[2];return n[t.iteratorCacheKey]=Cu(i,A,W)}}function qT(n,t){var r=Zo(n,"done")||wt;return Hi(t===0?wt:qn,r)}function PC(n){return qT(n,0)}function MC(n){return qT(n,1)}function RC(n){if(Bi(n))return Ti;var t=n.iterationTypesOfIteratorResult;if(t)return t;if(pa(n,F1(!1))){var r=_o(n)[0];return n.iterationTypesOfIteratorResult=Cu(r,void 0,void 0)}if(pa(n,G1(!1))){var i=_o(n)[0];return n.iterationTypesOfIteratorResult=Cu(void 0,i,void 0)}var s=gs(n,PC),f=s!==It?Zo(s,"value"):void 0,A=gs(n,MC),W=A!==It?Zo(A,"value"):void 0;return!f&&!W?n.iterationTypesOfIteratorResult=ca:n.iterationTypesOfIteratorResult=Cu(f,W||_t,void 0)}function Zy(n,t,r,i){var s=Ji(n,r);if(!s&&r!=="next")return;var f=s&&!(r==="next"&&s.flags&16777216)?r==="next"?Hn(s):hs(Hn(s),2097152):void 0;if(Bi(f))return r==="next"?Ti:Vo;var A=f?si(f,0):e.emptyArray;if(A.length===0){if(i){var W=r==="next"?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;wn(i,W,r)}return r==="next"?Ti:void 0}for(var xe,je,Qe=0,nn=A;Qe<nn.length;Qe++){var Tn=nn[Qe];r!=="throw"&&e.some(Tn.parameters)&&(xe=e.append(xe,Zs(Tn,0))),je=e.append(je,Fi(Tn))}var In,it;if(r!=="throw"){var pt=xe?jr(xe):mn;if(r==="next")it=pt;else if(r==="return"){var St=t.resolveIterationType(pt,i)||oe;In=e.append(In,St)}}var qt,hr=je?jr(je,2):It,lr=t.resolveIterationType(hr,i)||oe,Tr=RC(lr);return Tr===ca?(i&&wn(i,t.mustHaveAValueDiagnostic,r),qt=oe,In=e.append(In,oe)):(qt=Tr.yieldType,In=e.append(In,Tr.returnType)),Cu(qt,jr(In),it)}function JT(n,t,r){var i=BT([Zy(n,t,"next",r),Zy(n,t,"return",r),Zy(n,t,"throw",r)]);return n[t.iteratorCacheKey]=i}function qd(n,t,r){if(Bi(t))return;var i=zT(t,r);return i&&i[y(n)]}function zT(n,t){if(Bi(n))return Ti;var r=t?2:1,i=t?Ro:uo;return kh(n,r,void 0)||HT(n,i,void 0)}function FC(n){Lc(n)||OD(n)}function XT(n,t){var r=!!(t&1),i=!!(t&2);return r?qd(1,n,i)||ye:i?wp(n)||ye:n}function YT(n,t){var r=XT(t,e.getFunctionFlags(n));return!!r&&wo(r,16384|3)}function GC(n){if(Lc(n))return;var t=e.getContainingFunction(n);if(!t){ls(n,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);return}var r=pc(t),i=Fi(r),s=e.getFunctionFlags(t);if(a||n.expression||i.flags&131072){var f=n.expression?as(n.expression):un;if(t.kind===163)n.expression&&wn(n,e.Diagnostics.Setters_cannot_return_a_value);else if(t.kind===161)n.expression&&!Vu(f,i,n,n.expression)&&wn(n,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Zd(t)){var A=XT(i,s),W=s&2?Ap(f,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):f;A&&Vu(W,A,n,n.expression)}}else t.kind!==161&&Ge.noImplicitReturns&&!YT(t,i)&&wn(n,e.Diagnostics.Not_all_code_paths_return_a_value)}function BC(n){Lc(n)||n.flags&32768&&ls(n,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),Pa(n.expression);var t=e.getSourceFileOfNode(n);if(!Vf(t)){var r=e.getSpanOfTokenAtPosition(t,n.pos).start,i=n.statement.pos;Ju(t,r,i-r,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function VC(n){Lc(n);var t,r=!1,i=Pa(n.expression),s=sp(i);e.forEach(n.caseBlock.clauses,function(f){if(f.kind===276&&!r&&(t===void 0?t=f:(ur(f,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),r=!0)),b&&f.kind===275){var A=Pa(f.expression),W=sp(A),xe=i;(!W||!s)&&(A=W?Bl(A):A,xe=Bl(i)),Ry(xe,A)||Kv(A,xe,f.expression,void 0)}e.forEach(f.statements,Di),Ge.noFallthroughCasesInSwitch&&f.fallthroughFlowNode&&nm(f.fallthroughFlowNode)&&wn(f,e.Diagnostics.Fallthrough_case_in_switch)}),n.caseBlock.locals&&ku(n.caseBlock)}function UC(n){Lc(n)||e.findAncestor(n.parent,function(t){return e.isFunctionLike(t)?"quit":t.kind===237&&t.label.escapedText===n.label.escapedText?(ur(n.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(n.label)),!0):!1}),Di(n.statement)}function jC(n){Lc(n)||n.expression===void 0&&zD(n,e.Diagnostics.Line_break_not_permitted_here),n.expression&&Pa(n.expression)}function WC(n){Lc(n),xh(n.tryBlock);var t=n.catchClause;if(t){if(t.variableDeclaration)if(t.variableDeclaration.type)ls(t.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(t.variableDeclaration.initializer)ls(t.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var r=t.block.locals;r&&e.forEachKey(t.locals,function(i){var s=r.get(i);s&&(s.flags&2)!==0&&ur(s.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,i)})}xh(t.block)}n.finallyBlock&&xh(n.finallyBlock)}function $y(n){var t=ig(n.symbol,1),r=ig(n.symbol,0),i=ms(n,0),s=ms(n,1);if(i||s){e.forEach(_u(n),function(it){var pt=Hn(it);In(it,pt,n,r,i,0),In(it,pt,n,t,s,1)});var f=n.symbol.valueDeclaration;if(e.getObjectFlags(n)&1&&e.isClassLike(f))for(var A=0,W=f.members;A<W.length;A++){var xe=W[A];if(!e.hasModifier(xe,32)&&$a(xe)){var je=Yt(xe),Qe=Hn(je);In(je,Qe,n,r,i,0),In(je,Qe,n,t,s,1)}}}var nn;if(i&&s&&(nn=t||r,!nn&&e.getObjectFlags(n)&2)){var Tn=e.forEach(Tl(n),function(it){return ms(it,0)&&ms(it,1)});nn=Tn?void 0:n.symbol.declarations[0]}nn&&!Hi(s,i)&&wn(nn,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,zt(s),zt(i));function In(it,pt,St,qt,hr,lr){if(!hr||e.isKnownSymbol(it))return;var Tr=it.valueDeclaration,na=Tr&&e.getNameOfDeclaration(Tr);if(lr===1&&!(na?py(na):Cl(it.escapedName)))return;var Mr;if(Tr&&na&&(Tr.kind===208||na.kind===153||it.parent===St.symbol))Mr=Tr;else if(qt)Mr=qt;else if(e.getObjectFlags(St)&2){var Wa=e.forEach(Tl(St),function(Sa){return td(Sa,it.escapedName)&&ms(Sa,lr)});Mr=Wa?void 0:St.symbol.declarations[0]}if(Mr&&!Hi(pt,hr)){var Zi=lr===0?e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2;wn(Mr,Zi,wa(it),zt(pt),zt(hr))}}}function Ff(n,t){switch(n.escapedText){case"any":case"unknown":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":wn(n,t,n.escapedText)}}function HC(n){x===1&&n.escapedText==="Object"&&j!==e.ModuleKind.ES2015&&j!==e.ModuleKind.ESNext&&wn(n,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[j])}function Ch(n){if(n)for(var t=!1,r=0;r<n.length;r++){var i=n[r];if(_T(i),b){i.default?(t=!0,KC(i.default,n,r)):t&&wn(i,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var s=0;s<r;s++)n[s].symbol===i.symbol&&wn(i.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(i.name))}}}function KC(n,t,r){i(n);function i(s){if(s.kind===168){var f=Hp(s);if(f.flags&262144)for(var A=r;A<t.length;A++)f.symbol===Yt(t[A])&&wn(s,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(s,i)}}function QT(n){if(n.declarations.length===1)return;var t=ea(n);if(!t.typeParametersChecked){t.typeParametersChecked=!0;var r=QC(n);if(r.length<=1)return;var i=yo(n);if(!qC(r,i.localTypeParameters))for(var s=wa(n),f=0,A=r;f<A.length;f++){var W=A[f];wn(W.name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,s)}}}function qC(n,t){for(var r=e.length(t),i=vu(t),s=0,f=n;s<f.length;s++){var A=f[s],W=e.getEffectiveTypeParameterDeclarations(A),xe=W.length;if(xe<i||xe>r)return!1;for(var je=0;je<xe;je++){var Qe=W[je],nn=t[je];if(Qe.name.escapedText!==nn.symbol.escapedName)return!1;var Tn=e.getEffectiveConstraintOfTypeParameter(Qe),In=Tn&&ja(Tn),it=ll(nn);if(In&&it&&!Xc(In,it))return!1;var pt=Qe.default&&ja(Qe.default),St=Yd(nn);if(pt&&St&&!Xc(pt,St))return!1}}return!0}function JC(n){return ZT(n),ym(n),Hn(Yt(n))}function zC(n){e.forEach(n.members,Di),ku(n)}function XC(n){!n.name&&!e.hasModifier(n,512)&&ls(n,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),ZT(n),e.forEach(n.members,Di),ku(n)}function ZT(n){yD(n),pm(n),n.name&&(Ff(n.name,e.Diagnostics.Class_name_cannot_be_0),kp(n,n.name),Cp(n,n.name),n.flags&8388608||HC(n.name)),Ch(e.getEffectiveTypeParameterDeclarations(n)),fm(n);var t=Yt(n),r=yo(t),i=Jl(r),s=Hn(t);QT(t),Uk(n),n.flags&8388608||jk(n);var f=e.getEffectiveBaseTypeNode(n);if(f){e.forEach(f.typeArguments,Di),x<2&&Ll(f.parent,1);var A=e.getClassExtendsHeritageElement(n);A&&A!==f&&Pa(A.expression);var W=Tl(r);if(W.length&&b){var xe=W[0],je=uc(r),Qe=ds(je);if(YC(Qe,f),Di(f.expression),e.some(f.typeArguments)){e.forEach(f.typeArguments,Di);for(var nn=0,Tn=xo(Qe,f.typeArguments,f);nn<Tn.length;nn++){var In=Tn[nn];if(!xT(f,In.typeParameters))break}}var it=Jl(xe,r.thisType);if(Al(i,it,void 0)?Al(s,Bv(Qe),n.name||n,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):$T(n,i,it,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),je.flags&8650752&&!Rl(s)&&wn(n.name||n,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any),!(Qe.symbol&&Qe.symbol.flags&32)&&!(je.flags&8650752)){var pt=gu(Qe,f.typeArguments,f);e.forEach(pt,function(Mr){return!Zc(Mr.declaration)&&!Xc(Fi(Mr),xe)})&&wn(f.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}ZC(r,xe)}}var St=e.getClassImplementsHeritageClauseElements(n);if(St)for(var qt=0,hr=St;qt<hr.length;qt++){var lr=hr[qt];if(e.isEntityNameExpression(lr.expression)||wn(lr.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Vy(lr),b){var Tr=ja(lr);if(Tr!==ye)if(pf(Tr)){var na=Tr.symbol&&Tr.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,it=Jl(Tr,r.thisType);Al(i,it,void 0)||$T(n,i,it,na)}else wn(lr,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}b&&($y(r),Gy(n),e0(n))}function $T(n,t,r,i){for(var s=!1,f=function(Qe){if(e.hasStaticModifier(Qe))return"continue";var nn=Qe.name&&ud(Qe.name)||ud(Qe);if(nn){var Tn=Ji(t,nn.escapedName),In=Ji(r,nn.escapedName);if(Tn&&In){var it=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(nn),zt(t),zt(r))};Al(Hn(Tn),Hn(In),Qe.name||Qe,void 0,it)||(s=!0)}}},A=0,W=n.members;A<W.length;A++){var xe=W[A];f(xe)}s||Al(t,r,n.name||n,i)}function YC(n,t){var r=si(n,1);if(r.length){var i=r[0].declaration;if(i&&e.hasModifier(i,8)){var s=e.getClassLikeDeclarationOfSymbol(n.symbol);a_(t,s)||wn(t,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Wn(n.symbol))}}}function Dp(n){return e.getCheckFlags(n)&1?n.target:n}function QC(n){return e.filter(n.declarations,function(t){return t.kind===244||t.kind===245})}function ZC(n,t){var r=oo(t);e:for(var i=0,s=r;i<s.length;i++){var f=s[i],A=Dp(f);if(A.flags&4194304)continue;var W=Dp(td(n,A.escapedName)),xe=e.getDeclarationModifierFlagsFromSymbol(A);if(e.Debug.assert(!!W,"derived should point to something, even if it is the base class' declaration."),W===A){var je=e.getClassLikeDeclarationOfSymbol(n.symbol);if(xe&128&&(!je||!e.hasModifier(je,128))){for(var Qe=0,nn=Tl(n);Qe<nn.length;Qe++){var Tn=nn[Qe];if(Tn===t)continue;var In=td(Tn,A.escapedName),it=In&&Dp(In);if(it&&it!==A)continue e}je.kind===213?wn(je,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,wa(f),zt(t)):wn(je,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,zt(n),wa(f),zt(t))}}else{var pt=e.getDeclarationModifierFlagsFromSymbol(W);if(xe&8||pt&8)continue;var St=void 0,qt=A.flags&98308,hr=W.flags&98308;if(qt&&hr){if(!Ge.useDefineForClassFields||xe&128&&!(A.valueDeclaration&&e.isPropertyDeclaration(A.valueDeclaration)&&A.valueDeclaration.initializer)||A.valueDeclaration&&A.valueDeclaration.parent.kind===245||W.valueDeclaration&&e.isBinaryExpression(W.valueDeclaration))continue;if(qt!==4&&hr===4)St=e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_property;else if(qt===4&&hr!==4)St=e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_accessor;else{var lr=e.find(W.declarations,function(Wa){return Wa.kind===158&&!Wa.initializer});if(lr&&!(W.flags&33554432)&&!(xe&128)&&!(pt&128)&&!W.declarations.some(function(Wa){return Wa.flags&8388608})){var Tr=jo(e.getClassLikeDeclarationOfSymbol(n.symbol)),na=lr.name;if(lr.exclamationToken||!Tr||!e.isIdentifier(na)||!a||!nS(na,n,Tr)){var Mr=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;wn(e.getNameOfDeclaration(W.valueDeclaration)||W.valueDeclaration,Mr,wa(A),zt(t))}}continue}}else if(_y(A)){if(_y(W)||W.flags&4)continue;e.Debug.assert(!!(W.flags&98304)),St=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else A.flags&98304?St=e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:St=e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;wn(e.getNameOfDeclaration(W.valueDeclaration)||W.valueDeclaration,St,zt(t),wa(A),zt(n))}}}function $C(n,t){var r=Tl(n);if(r.length<2)return!0;var i=e.createUnderscoreEscapedMap();e.forEach(Ru(n).declaredProperties,function(qt){i.set(qt.escapedName,{prop:qt,containingType:n})});for(var s=!0,f=0,A=r;f<A.length;f++)for(var W=A[f],xe=oo(Jl(W,n.thisType)),je=0,Qe=xe;je<Qe.length;je++){var nn=Qe[je],Tn=i.get(nn.escapedName);if(!Tn)i.set(nn.escapedName,{prop:nn,containingType:W});else{var In=Tn.containingType!==n;if(In&&!tw(Tn.prop,nn)){s=!1;var it=zt(Tn.containingType),pt=zt(W),St=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,wa(nn),it,pt);St=e.chainDiagnosticMessages(St,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,zt(n),it,pt),Qn.add(e.createDiagnosticForNodeFromMessageChain(t,St))}}}return s}function e0(n){if(!a||!Xn||n.flags&8388608)return;for(var t=jo(n),r=0,i=n.members;r<i.length;r++){var s=i[r];if(e.getModifierFlags(s)&2)continue;if(eS(s)){var f=s.name;if(e.isIdentifier(f)){var A=Hn(Yt(s));A.flags&3||kl(A)&32768||(!t||!nS(f,A,t))&&wn(s.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(f))}}}}function eS(n){return n.kind===158&&!e.hasModifier(n,32|128)&&!n.exclamationToken&&!n.initializer}function nS(n,t,r){var i=e.createPropertyAccess(e.createThis(),n);i.expression.parent=i,i.parent=r,i.flowNode=r.returnFlowNode;var s=kd(i,t,wu(t));return!(kl(s)&32768)}function n0(n){if(eu(n)||AD(n),Ch(n.typeParameters),b){Ff(n.name,e.Diagnostics.Interface_name_cannot_be_0),fm(n);var t=Yt(n);QT(t);var r=e.getDeclarationOfKind(t,245);if(n===r){var i=yo(t),s=Jl(i);if($C(i,n.name)){for(var f=0,A=Tl(i);f<A.length;f++){var W=A[f];Al(s,Jl(W,i.thisType),n.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}$y(i)}}ET(n)}e.forEach(e.getInterfaceBaseTypeNodes(n),function(xe){e.isEntityNameExpression(xe.expression)||wn(xe.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Vy(xe)}),e.forEach(n.members,Di),b&&(Gy(n),ku(n))}function t0(n){eu(n),Ff(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),Ch(n.typeParameters),Di(n.type),ku(n)}function tS(n){var t=Ir(n);if(!(t.flags&16384)){t.flags|=16384;for(var r=0,i=0,s=n.members;i<s.length;i++){var f=s[i],A=r0(f,r);Ir(f).enumMemberValue=A,r=typeof A=="number"?A+1:void 0}}}function r0(n,t){if(Zu(n.name))wn(n.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var r=e.getTextOfPropertyName(n.name);Cl(r)&&!tE(r)&&wn(n.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return a0(n);if(n.parent.flags&8388608&&!e.isEnumConst(n.parent)&&Hf(Yt(n.parent))===0)return;if(t!==void 0)return t;wn(n.name,e.Diagnostics.Enum_member_must_have_initializer);return}function a0(n){var t=Hf(Yt(n.parent)),r=e.isEnumConst(n.parent),i=n.initializer,s=t===1&&!Am(n)?void 0:f(i);if(s!==void 0)r&&typeof s=="number"&&!isFinite(s)&&wn(i,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 wn(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;r?wn(i,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values):n.parent.flags&8388608?wn(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Al(Pa(i),yo(Yt(n.parent)),i,void 0)}return s;function f(W){switch(W.kind){case 206:var xe=f(W.operand);if(typeof xe=="number")switch(W.operator){case 39:return xe;case 40:return-xe;case 54:return~xe}break;case 208:var je=f(W.left),Qe=f(W.right);if(typeof je=="number"&&typeof Qe=="number")switch(W.operatorToken.kind){case 51:return je|Qe;case 50:return je&Qe;case 48:return je>>Qe;case 49:return je>>>Qe;case 47:return je<<Qe;case 52:return je^Qe;case 41:return je*Qe;case 43:return je/Qe;case 39:return je+Qe;case 40:return je-Qe;case 44:return je%Qe;case 42:return Math.pow(je,Qe)}else if(typeof je=="string"&&typeof Qe=="string"&&W.operatorToken.kind===39)return je+Qe;break;case 10:case 14:return W.text;case 8:return m_(W),+W.text;case 199:return f(W.expression);case 75:var nn=W;return tE(nn.escapedText)?+nn.escapedText:e.nodeIsMissing(W)?0:A(W,Yt(n.parent),nn.escapedText);case 194:case 193:var Tn=W;if(e_(Tn)){var In=Dl(Tn.expression);if(In.symbol&&In.symbol.flags&384){var it=void 0;return Tn.kind===193?it=Tn.name.escapedText:it=e.escapeLeadingUnderscores(e.cast(Tn.argumentExpression,e.isLiteralExpression).text),A(W,In.symbol,it)}}break}return}function A(W,xe,je){var Qe=xe.exports.get(je);if(Qe){var nn=Qe.valueDeclaration;if(nn!==n)return Qo(nn,n)?Ph(nn):(wn(W,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}return}}function e_(n){return n.kind===75||n.kind===193&&e_(n.expression)||n.kind===194&&e_(n.expression)&&e.isStringLiteralLike(n.argumentExpression)}function i0(n){if(!b)return;eu(n),Ff(n.name,e.Diagnostics.Enum_name_cannot_be_0),kp(n,n.name),Cp(n,n.name),fm(n),tS(n);var t=Yt(n),r=e.getDeclarationOfKind(t,n.kind);if(n===r){if(t.declarations.length>1){var i=e.isEnumConst(n);e.forEach(t.declarations,function(f){e.isEnumDeclaration(f)&&e.isEnumConst(f)!==i&&wn(e.getNameOfDeclaration(f),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var s=!1;e.forEach(t.declarations,function(f){if(f.kind!==247)return!1;var A=f;if(!A.members.length)return!1;var W=A.members[0];W.initializer||(s?wn(W.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):s=!0)})}}function o0(n){for(var t=n.declarations,r=0,i=t;r<i.length;r++){var s=i[r];if((s.kind===244||s.kind===243&&e.nodeIsPresent(s.body))&&!(s.flags&8388608))return s}return}function s0(n,t){var r=e.getEnclosingBlockScopeContainer(n),i=e.getEnclosingBlockScopeContainer(t);return To(r)?To(i):To(i)?!1:r===i}function l0(n){if(b){var t=e.isGlobalScopeAugmentation(n),r=n.flags&8388608;t&&!r&&wn(n.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var i=e.isAmbientModule(n),s=i?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module;if(gm(n,s))return;eu(n)||!r&&n.name.kind===10&&ur(n.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(n.name)&&(kp(n,n.name),Cp(n,n.name)),fm(n);var f=Yt(n);if(f.flags&512&&!r&&f.declarations.length>1&&R(n,!!Ge.preserveConstEnums||!!Ge.isolatedModules)){var A=o0(f);A&&(e.getSourceFileOfNode(n)!==e.getSourceFileOfNode(A)?wn(n.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos<A.pos&&wn(n.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var W=e.getDeclarationOfKind(f,244);W&&s0(n,W)&&(Ir(n).flags|=32768)}if(i)if(e.isExternalModuleAugmentation(n)){var xe=t||Yt(n).flags&33554432;if(xe&&n.body)for(var je=0,Qe=n.body.statements;je<Qe.length;je++){var nn=Qe[je];n_(nn,t)}}else To(n.parent)?t?wn(n.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(n.name))&&wn(n.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):t?wn(n.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):wn(n.name,e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}n.body&&(Di(n.body),e.isGlobalScopeAugmentation(n)||ku(n))}function n_(n,t){switch(n.kind){case 224:for(var r=0,i=n.declarationList.declarations;r<i.length;r++){var s=i[r];n_(s,t)}break;case 258:case 259:ls(n,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 252:case 253:ls(n,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 190:case 241:var f=n.name;if(e.isBindingPattern(f)){for(var A=0,W=f.elements;A<W.length;A++){var xe=W[A];n_(xe,t)}break}case 244:case 247:case 243:case 245:case 248:case 246:if(t)return;var je=Yt(n);if(je){var Qe=!(je.flags&33554432);Qe||(Qe=!!je.parent&&e.isExternalModuleAugmentation(je.parent.declarations[0]))}break}}function c0(n){switch(n.kind){case 75:return n;case 152:do n=n.left;while(n.kind!==75);return n;case 193:do{if(e.isModuleExportsAccessExpression(n.expression))return n.name;n=n.expression}while(n.kind!==75);return n}}function t_(n){var t=e.getExternalModuleName(n);if(!t||e.nodeIsMissing(t))return!1;if(!e.isStringLiteral(t))return wn(t,e.Diagnostics.String_literal_expected),!1;var r=n.parent.kind===249&&e.isAmbientModule(n.parent.parent);return n.parent.kind!==288&&!r?(wn(t,n.kind===259?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1):r&&e.isExternalModuleNameRelative(t.text)&&!Ra(n)?(wn(n,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1):!0}function rS(n){var t=Yt(n),r=M(t),i=t.flags&67108864;if(!i&&r!==pn){t=zr(t.exportSymbol||t);var s=(t.flags&(111551|1048576)?111551:0)|(t.flags&788968?788968:0)|(t.flags&1920?1920:0);if(r.flags&s){var f=n.kind===261?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;wn(n,f,wa(t))}Ge.isolatedModules&&n.kind===261&&!(r.flags&111551)&&!(n.flags&8388608)&&wn(n,e.Diagnostics.Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided)}}function Dh(n){kp(n,n.name),Cp(n,n.name),rS(n)}function u0(n){if(gm(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module))return;if(!eu(n)&&e.hasModifiers(n)&&ls(n,e.Diagnostics.An_import_declaration_cannot_have_modifiers),t_(n)){var t=n.importClause;if(t&&(t.name&&Dh(t),t.namedBindings))if(t.namedBindings.kind===255)Dh(t.namedBindings);else{var r=Hr(n,n.moduleSpecifier);r&&e.forEach(t.namedBindings.elements,Dh)}}}function d0(n){if(gm(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module))return;if(eu(n),e.isInternalModuleImportEqualsDeclaration(n)||t_(n))if(Dh(n),e.hasModifier(n,1)&&Me(n),n.moduleReference.kind!==263){var t=M(Yt(n));if(t!==pn){if(t.flags&111551){var r=e.getFirstIdentifier(n.moduleReference);Dt(r,111551|1920).flags&1920||wn(r,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(r))}t.flags&788968&&Ff(n.name,e.Diagnostics.Import_name_cannot_be_0)}}else j>=e.ModuleKind.ES2015&&!(n.flags&8388608)&&ur(n,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function f0(n){if(gm(n,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module))return;if(!eu(n)&&e.hasModifiers(n)&&ls(n,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!n.moduleSpecifier||t_(n))if(n.exportClause){e.forEach(n.exportClause.elements,p0);var t=n.parent.kind===249&&e.isAmbientModule(n.parent.parent),r=!t&&n.parent.kind===249&&!n.moduleSpecifier&&n.flags&8388608;n.parent.kind!==288&&!t&&!r&&wn(n,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=Hr(n,n.moduleSpecifier);i&&aa(i)&&wn(n.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,wa(i)),j!==e.ModuleKind.System&&j!==e.ModuleKind.ES2015&&j!==e.ModuleKind.ESNext&&Ll(n,65536)}}function gm(n,t){var r=n.parent.kind===288||n.parent.kind===249||n.parent.kind===248;return r||ls(n,t),!r}function p0(n){if(rS(n),e.getEmitDeclarations(Ge)&&Yu(n.propertyName||n.name,!0),!n.parent.parent.moduleSpecifier){var t=n.propertyName||n.name,r=co(t,t.escapedText,111551|788968|1920|2097152,void 0,void 0,!0);if(r&&(r===$e||r===sn||To(sc(r.declarations[0]))))wn(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(t));else{Me(n);var i=r&&(r.flags&2097152?M(r):r);(!i||i===pn||i.flags&111551)&&as(n.propertyName||n.name)}}}function m0(n){if(gm(n,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module))return;var t=n.parent.kind===288?n.parent:n.parent.parent;if(t.kind===248&&!e.isAmbientModule(t)){n.isExportEquals?wn(n,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):wn(n,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}if(!eu(n)&&e.hasModifiers(n)&&ls(n,e.Diagnostics.An_export_assignment_cannot_have_modifiers),n.expression.kind===75){var r=n.expression,i=Dt(r,67108863,!0,!0,n);if(i){Zm(i,r);var s=i.flags&2097152?M(i):i;(s===pn||s.flags&111551)&&as(n.expression)}e.getEmitDeclarations(Ge)&&Yu(n.expression,!0)}else as(n.expression);aS(t),n.flags&8388608&&!e.isEntityNameExpression(n.expression)&&ur(n.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&!(n.flags&8388608)&&(j>=e.ModuleKind.ES2015?ur(n,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):j===e.ModuleKind.System&&ur(n,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}function h0(n){return e.forEachEntry(n.exports,function(t,r){return r!=="export="})}function aS(n){var t=Yt(n),r=ea(t);if(!r.exportsChecked){var i=t.exports.get("export=");if(i&&h0(t)){var s=Ss(i)||i.valueDeclaration;!Ra(s)&&!e.isInJSFile(s)&&wn(s,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var f=ro(t);f&&f.forEach(function(A,W){var xe=A.declarations,je=A.flags;if(W==="__export")return;if(je&(1920|64|384))return;var Qe=e.countWhere(xe,Y);if(je&524288&&Qe<=2)return;if(Qe>1)for(var nn=0,Tn=xe;nn<Tn.length;nn++){var In=Tn[nn];Ee(In)&&Qn.add(e.createDiagnosticForNode(In,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(W)))}}),r.exportsChecked=!0}}function Di(n){if(n){var t=Ae;Ae=n,Ce=0,g0(n),Ae=t}}function g0(n){e.isInJSFile(n)&&e.forEach(n.jsDoc,function(r){var i=r.tags;return e.forEach(i,Di)});var t=n.kind;if(T)switch(t){case 248:case 244:case 245:case 243:T.throwIfCancellationRequested()}t>=224&&t<=240&&n.flowNode&&!nm(n.flowNode)&&Go(Ge.allowUnreachableCode===!1,n,e.Diagnostics.Unreachable_code_detected);switch(t){case 154:return _T(n);case 155:return vT(n);case 158:case 157:return Wk(n);case 169:case 170:case 164:case 165:case 166:return Sp(n);case 160:case 159:return Hk(n);case 161:return Kk(n);case 162:case 163:return TT(n);case 168:return Vy(n);case 167:return Bk(n);case 171:return zk(n);case 172:return Xk(n);case 173:return Yk(n);case 174:return Qk(n);case 177:case 178:return Zk(n);case 181:case 175:case 176:return Di(n.type);case 182:return nC(n);case 183:return tC(n);case 179:return rC(n);case 180:return aC(n);case 187:return iC(n);case 305:return hC(n);case 315:case 308:case 309:return uC(n);case 314:return dC(n);case 313:return fC(n);case 310:return pC(n);case 298:mC(n);case 296:case 295:case 293:case 294:case 302:iS(n),e.forEachChild(n,Di);return;case 299:y0(n);return;case 292:return Di(n.type);case 184:return $k(n);case 185:return eC(n);case 243:return cC(n);case 222:case 249:return xh(n);case 224:return xC(n);case 225:return wC(n);case 226:return AC(n);case 227:return CC(n);case 228:return DC(n);case 229:return LC(n);case 230:return NC(n);case 231:return IC(n);case 232:case 233:return FC(n);case 234:return GC(n);case 235:return BC(n);case 236:return VC(n);case 237:return UC(n);case 238:return jC(n);case 239:return WC(n);case 241:return Jy(n);case 190:return SC(n);case 244:return XC(n);case 245:return n0(n);case 246:return t0(n);case 247:return i0(n);case 248:return l0(n);case 253:return u0(n);case 252:return d0(n);case 259:return f0(n);case 258:return m0(n);case 223:case 240:Lc(n);return;case 262:return qk(n)}}function iS(n){e.isInJSFile(n)||ur(n,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function y0(n){iS(n),Di(n.type);var t=n.parent;if(e.isParameter(t)&&e.isJSDocFunctionType(t.parent)){e.last(t.parent.parameters)!==t&&wn(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);return}e.isJSDocTypeExpression(t)||wn(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var r=n.parent.parent;if(!e.isJSDocParameterTag(r)){wn(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}var i=e.getParameterSymbolFromJSDoc(r);if(!i)return;var s=e.getHostSignatureFromJSDoc(r);(!s||e.last(s.parameters).symbol!==i)&&wn(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}function _0(n){var t=ja(n.type),r=n.parent,i=n.parent.parent;if(e.isJSDocTypeExpression(n.parent)&&e.isJSDocParameterTag(i)){var s=e.getHostSignatureFromJSDoc(i);if(s){var f=e.lastOrUndefined(s.parameters),A=e.getParameterSymbolFromJSDoc(i);if(!f||A&&f.symbol===A&&e.isRestParameter(f))return Os(t)}}return e.isParameter(r)&&e.isJSDocFunctionType(r.parent)?Os(t):ol(t)}function ym(n){var t=e.getSourceFileOfNode(n),r=Ir(t);if(!(r.flags&1)){r.deferredNodes=r.deferredNodes||e.createMap();var i=""+J(n);r.deferredNodes.set(i,n)}}function v0(n){var t=Ir(n);t.deferredNodes&&t.deferredNodes.forEach(b0)}function b0(n){var t=Ae;Ae=n,Ce=0;switch(n.kind){case 200:case 201:case 160:case 159:uk(n);break;case 162:case 163:TT(n);break;case 213:zC(n);break;case 265:XA(n);break;case 264:QA(n);break}Ae=t}function r_(n){e.performance.mark("beforeCheck"),E0(n),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck")}function Lh(n){switch(n){case 0:return!!Ge.noUnusedLocals;case 1:return!!Ge.noUnusedParameters;default:return e.Debug.assertNever(n)}}function oS(n){return an.get(n.path)||e.emptyArray}function E0(n){var t=Ir(n);if(!(t.flags&1)){if(e.skipTypeChecking(n,Ge,_))return;KD(n),e.clear(Fn),e.clear($n),e.forEach(n.statements,Di),Di(n.endOfFileToken),v0(n),e.isExternalOrCommonJsModule(n)&&ku(n),!n.isDeclarationFile&&(Ge.noUnusedLocals||Ge.noUnusedParameters)&&LT(oS(n),function(r,i,s){!e.containsParseError(r)&&Lh(i)&&Qn.add(s)}),e.isExternalOrCommonJsModule(n)&&aS(n),Fn.length&&(e.forEach(Fn,bC),e.clear(Fn)),$n.length&&(e.forEach($n,EC),e.clear($n)),t.flags|=1}}function sS(n,t){try{return T=t,T0(n)}finally{T=void 0}}function T0(n){if(lS(),n){var t=Qn.getGlobalDiagnostics(),r=t.length;r_(n);var i=Qn.getDiagnostics(n.fileName),s=Qn.getGlobalDiagnostics();if(s!==t){var f=e.relativeComplement(t,s,e.compareDiagnostics);return e.concatenate(f,i)}else if(r===0&&s.length>0)return e.concatenate(s,i);return i}return e.forEach(_.getSourceFiles(),r_),Qn.getDiagnostics()}function S0(){return lS(),Qn.getGlobalDiagnostics()}function lS(){if(!b)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function x0(n,t){if(n.flags&16777216)return[];var r=e.createSymbolTable(),i=!1;return s(),r.delete("this"),G_(r);function s(){for(;n;){n.locals&&!To(n)&&A(n.locals,t);switch(n.kind){case 288:if(!e.isExternalOrCommonJsModule(n))break;case 248:A(Yt(n).exports,t&2623475);break;case 247:A(Yt(n).exports,t&8);break;case 213:var W=n.name;W&&f(n.symbol,t);case 244:case 245:i||A(yu(Yt(n)),t&788968);break;case 200:var xe=n.name;xe&&f(n.symbol,t);break}e.introducesArgumentsExoticObject(n)&&f(he,t),i=e.hasModifier(n,32),n=n.parent}A(cn,t)}function f(W,xe){if(e.getCombinedLocalAndExportSymbolFlags(W)&xe){var je=W.escapedName;r.has(je)||r.set(je,W)}}function A(W,xe){xe&&W.forEach(function(je){f(je,xe)})}}function w0(n){return n.kind===75&&Ih(n.parent)&&n.parent.name===n}function Ih(n){switch(n.kind){case 154:case 244:case 245:case 246:case 247:return!0;default:return!1}}function cS(n){for(;n.parent.kind===152;)n=n.parent;return n.parent.kind===168}function A0(n){for(;n.parent.kind===193;)n=n.parent;return n.parent.kind===215}function uS(n,t){for(var r;!(n=e.getContainingClass(n),!n);)if(r=t(n))break;return r}function k0(n){return!!e.findAncestor(n,function(t){return e.isConstructorDeclaration(t)&&e.nodeIsPresent(t.body)||e.isPropertyDeclaration(t)?!0:e.isClassLike(t)||e.isFunctionLikeDeclaration(t)?"quit":!1})}function a_(n,t){return!!uS(n,function(r){return r===t})}function C0(n){for(;n.parent.kind===152;)n=n.parent;return n.parent.kind===252?n.parent.moduleReference===n?n.parent:void 0:n.parent.kind===258&&n.parent.expression===n?n.parent:void 0}function Nh(n){return C0(n)!==void 0}function D0(n){var t=e.getAssignmentDeclarationKind(n.parent.parent);switch(t){case 1:case 3:return Yt(n.parent);case 4:case 2:case 5:return Yt(n.parent.parent)}}function L0(n){for(var t=n.parent;e.isQualifiedName(t);)n=t,t=t.parent;return t&&t.kind===187&&t.qualifier===n?t:void 0}function dS(n){if(e.isDeclarationName(n))return Yt(n.parent);if(e.isInJSFile(n)&&n.parent.kind===193&&n.parent===n.parent.parent.left){var t=D0(n);if(t)return t}if(n.parent.kind===258&&e.isEntityNameExpression(n)){var r=Dt(n,111551|788968|1920|2097152,!0);if(r&&r!==pn)return r}else if(!e.isPropertyAccessExpression(n)&&Nh(n)){var i=e.getAncestor(n,252);return e.Debug.assert(i!==void 0),fn(n,!0)}if(!e.isPropertyAccessExpression(n)){var s=L0(n);if(s){ja(s);var f=Ir(n).resolvedSymbol;return f===pn?void 0:f}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(n);)n=n.parent;if(A0(n)){var A=0;n.parent.kind===215?(A=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)&&(A|=111551)):A=1920,A|=2097152;var W=e.isEntityNameExpression(n)?Dt(n,A):void 0;if(W)return W}if(n.parent.kind===310)return e.getParameterSymbolFromJSDoc(n.parent);if(n.parent.kind===154&&n.parent.parent.kind===314){e.Debug.assert(!e.isInJSFile(n));var xe=e.getTypeParameterFromJsDoc(n.parent);return xe&&xe.symbol}if(e.isExpressionNode(n)){if(e.nodeIsMissing(n))return;if(n.kind===75){if(e.isJSXTagName(n)&&hp(n)){var je=my(n.parent);return je===pn?void 0:je}return Dt(n,111551,!1,!0)}else if(n.kind===193||n.kind===152){var Qe=Ir(n);return Qe.resolvedSymbol||(n.kind===193?yE(n):_E(n)),Qe.resolvedSymbol}}else if(cS(n)){var A=n.parent.kind===168?788968:1920;return Dt(n,A,!1,!0)}return n.parent.kind===167?Dt(n,1):void 0}function ud(n){if(n.kind===288)return e.isExternalModule(n)?zr(n.symbol):void 0;var t=n.parent,r=t.parent;if(n.flags&16777216)return;if(B(n)){var i=Yt(t);return e.isImportOrExportSpecifier(n.parent)&&n.parent.propertyName===n?aE(i):i}else if(e.isLiteralComputedPropertyDeclarationName(n))return Yt(t.parent);if(n.kind===75){if(Nh(n))return dS(n);if(t.kind===190&&r.kind===188&&n===t.propertyName){var s=Gf(r),f=Ji(s,n.escapedText);if(f)return f}}switch(n.kind){case 75:case 193:case 152:return dS(n);case 103:var A=e.getThisContainer(n,!1);if(e.isFunctionLike(A)){var W=pc(A);if(W.thisParameter)return W.thisParameter}if(e.isInExpressionContext(n))return Pa(n).symbol;case 182:return Fm(n).symbol;case 101:return Pa(n).symbol;case 128:var xe=n.parent;return xe&&xe.kind===161?xe.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n||(n.parent.kind===253||n.parent.kind===259)&&n.parent.moduleSpecifier===n||e.isInJSFile(n)&&e.isRequireCall(n.parent,!1)||e.isImportCall(n.parent)||e.isLiteralTypeNode(n.parent)&&e.isLiteralImportTypeNode(n.parent.parent)&&n.parent.parent.argument===n.parent)return Hr(n,n);if(e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&t.arguments[1]===n)return Yt(t);case 8:var je=e.isElementAccessExpression(t)?t.argumentExpression===n?Dl(t.expression):void 0:e.isLiteralTypeNode(t)&&e.isIndexedAccessTypeNode(r)?ja(r.objectType):void 0;return je&&Ji(je,e.escapeLeadingUnderscores(n.text));case 83:case 93:case 38:case 79:return Yt(n.parent);case 187:return e.isLiteralImportTypeNode(n)?ud(n.argument.literal):void 0;case 88:return e.isExportAssignment(n.parent)?e.Debug.assertDefined(n.parent.symbol):void 0;default:return}}function I0(n){return n&&n.kind===280?Dt(n.name,111551|2097152):void 0}function N0(n){return n.parent.parent.moduleSpecifier?Gc(n.parent.parent,n):Dt(n.propertyName||n.name,111551|788968|1920|2097152)}function Gf(n){if(n.flags&16777216)return ye;var t=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(n),r=t&&sl(Yt(t.class));if(e.isPartOfTypeNode(n)){var i=ja(n);return r?Jl(i,r.thisType):i}if(e.isExpressionNode(n))return fS(n);if(r&&!t.isImplements){var s=e.firstOrUndefined(Tl(r));return s?Jl(s,r.thisType):ye}if(Ih(n)){var f=Yt(n);return yo(f)}if(w0(n)){var f=ud(n);return f?yo(f):ye}if(e.isDeclaration(n)){var f=Yt(n);return Hn(f)}if(B(n)){var f=ud(n);return f?Hn(f):ye}if(e.isBindingPattern(n))return nd(n.parent,!0)||ye;if(Nh(n)){var f=ud(n);if(f){var A=yo(f);return A!==ye?A:Hn(f)}}return ye}function Oh(n){if(e.Debug.assert(n.kind===192||n.kind===191),n.parent.kind===231){var t=hm(n.parent.expression,n.parent.awaitModifier);return Wd(n,t||ye)}if(n.parent.kind===208){var t=Dl(n.parent.right);return Wd(n,t||ye)}if(n.parent.kind===279){var r=e.cast(n.parent.parent,e.isObjectLiteralExpression),i=Oh(r)||ye,s=e.indexOfNode(r.properties,n.parent);return sT(r,i,s)}var f=e.cast(n.parent,e.isArrayLiteralExpression),A=Oh(f)||ye,W=Kd(65,A,un,n.parent)||ye;return lT(f,A,f.elements.indexOf(n),W)}function O0(n){var t=Oh(e.cast(n.parent.parent,e.isAssignmentPattern));return t&&Ji(t,n.escapedText)}function fS(n){return e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),js(Dl(n))}function P0(n){var t=Yt(n.parent);return e.hasModifier(n,32)?Hn(t):yo(t)}function M0(n){var t=n.name;switch(t.kind){case 75:return rs(e.idText(t));case 8:case 10:return rs(t.text);case 153:var r=Ku(t);return Jo(r,12288)?r:dt;default:return e.Debug.fail("Unsupported property name.")}}function i_(n){n=ds(n);var t=e.createSymbolTable(oo(n)),r=si(n,0).length?xt:si(n,1).length?Kt:void 0;return r&&e.forEach(oo(r),function(i){t.has(i.escapedName)||t.set(i.escapedName,i)}),ws(t)}function o_(n){return e.typeHasCallOrConstructSignatures(n,c)}function pS(n){var t=R0(n);return t?e.flatMap(t,pS):[n]}function R0(n){if(e.getCheckFlags(n)&6)return e.mapDefined(ea(n).containingType.types,function(f){return Ji(f,n.escapedName)});if(n.flags&33554432){var t=n,r=t.leftSpread,i=t.rightSpread,s=t.syntheticOrigin;return r?[r,i]:s?[s]:e.singleElementArray(F0(n))}return}function F0(n){for(var t,r=n;r=ea(r).target;)t=r;return t}function G0(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=t.parent.kind===193&&t.parent.name===t;return!r&&_m(t)===he}}return!1}function B0(n){var t=Hr(n.parent,n);if(!t||e.isShorthandAmbientModuleSymbol(t))return!0;var r=aa(t);t=ti(t);var i=ea(t);return i.exportsSomeValue===void 0&&(i.exportsSomeValue=r?!!(t.flags&111551):e.forEachEntry(ro(t),s)),i.exportsSomeValue;function s(f){return f=E(f),f&&!!(f.flags&111551)}}function V0(n){return e.isModuleOrEnumDeclaration(n.parent)&&n===n.parent.name}function U0(n,t){var r=e.getParseTreeNode(n,e.isIdentifier);if(r){var i=_m(r,V0(r));if(i){if(i.flags&1048576){var s=zr(i.exportSymbol);if(!t&&s.flags&944&&!(s.flags&3))return;i=s}var f=xs(i);if(f){if(f.flags&512&&f.valueDeclaration.kind===288){var A=f.valueDeclaration,W=e.getSourceFileOfNode(r),xe=A!==W;return xe?void 0:A}return e.findAncestor(r.parent,function(je){return e.isModuleOrEnumDeclaration(je)&&Yt(je)===f})}}}}function j0(n){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=_m(t);if(l(r,111551))return Ss(r)}return}function W0(n){return e.isBindingElement(n.valueDeclaration)&&e.walkUpBindingElementsAndPatterns(n.valueDeclaration).parent.kind===278}function mS(n){if(n.flags&418&&!e.isSourceFile(n.valueDeclaration)){var t=ea(n);if(t.isDeclarationWithCollidingName===void 0){var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration);if(e.isStatementWithLocals(r)||W0(n)){var i=Ir(n.valueDeclaration);if(co(r.parent,n.escapedName,111551,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(i.flags&262144){var s=i.flags&524288,f=e.isIterationStatement(r,!1),A=r.kind===222&&e.isIterationStatement(r.parent,!1);t.isDeclarationWithCollidingName=!e.isBlockScopedContainerTopLevel(r)&&(!s||!f&&!A)}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function H0(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=_m(t);if(r&&mS(r))return r.valueDeclaration}}return}function K0(n){var t=e.getParseTreeNode(n,e.isDeclaration);if(t){var r=Yt(t);if(r)return mS(r)}return!1}function hS(n){switch(n.kind){case 252:case 254:case 255:case 257:case 261:return s_(Yt(n)||pn);case 259:var t=n.exportClause;return!!t&&e.some(t.elements,hS);case 258:return n.expression&&n.expression.kind===75?s_(Yt(n)||pn):!0}return!1}function q0(n){var t=e.getParseTreeNode(n,e.isImportEqualsDeclaration);if(t===void 0||t.parent.kind!==288||!e.isInternalModuleImportEqualsDeclaration(t))return!1;var r=s_(Yt(t));return r&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function s_(n){var t=M(n);return t===pn?!0:!!(t.flags&111551)&&(Ge.preserveConstEnums||!Lp(t))}function Lp(n){return My(n)||!!n.constEnumOnlyModule}function gS(n,t){if(e.isAliasSymbolDeclaration(n)){var r=Yt(n);if(r&&ea(r).referenced)return!0;var i=ea(r).target;if(i&&e.getModifierFlags(n)&1&&i.flags&111551&&(Ge.preserveConstEnums||!Lp(i)))return!0}return t?!!e.forEachChild(n,function(s){return gS(s,t)}):!1}function yS(n){if(e.nodeIsPresent(n.body)){if(e.isGetAccessor(n)||e.isSetAccessor(n))return!1;var t=Yt(n),r=Qd(t);return r.length>1||r.length===1&&r[0].declaration!==n}return!1}function _S(n){return!!a&&!Fp(n)&&!e.isJSDocParameterTag(n)&&!!n.initializer&&!e.hasModifier(n,92)}function J0(n){return a&&Fp(n)&&!n.initializer&&e.hasModifier(n,92)}function z0(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return!1;var r=Yt(t);return!r||!(r.flags&16)?!1:!!e.forEachEntry(ri(r),function(i){return i.flags&111551&&i.valueDeclaration&&e.isPropertyAccessExpression(i.valueDeclaration)})}function X0(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return e.emptyArray;var r=Yt(t);return r&&oo(Hn(r))||e.emptyArray}function l_(n){return Ir(n).flags||0}function Ph(n){return tS(n.parent),Ir(n).enumMemberValue}function vS(n){switch(n.kind){case 282:case 193:case 194:return!0}return!1}function c_(n){if(n.kind===282)return Ph(n);var t=Ir(n).resolvedSymbol;if(t&&t.flags&8){var r=t.valueDeclaration;if(e.isEnumConst(r.parent))return Ph(r)}return}function bS(n){return!!(n.flags&524288)&&si(n,0).length>0}function Y0(n,t){var r=e.getParseTreeNode(n,e.isEntityName);if(!r)return e.TypeReferenceSerializationKind.Unknown;if(t&&(t=e.getParseTreeNode(t),!t))return e.TypeReferenceSerializationKind.Unknown;var i=Dt(r,111551,!0,!1,t),s=Dt(r,788968,!0,!1,t);if(i&&i===s){var f=tv(!1);if(f&&i===f)return e.TypeReferenceSerializationKind.Promise;var A=Hn(i);if(A&&Ac(A))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!s)return e.TypeReferenceSerializationKind.Unknown;var W=yo(s);return W===ye?e.TypeReferenceSerializationKind.Unknown:W.flags&3?e.TypeReferenceSerializationKind.ObjectType:Jo(W,16384|98304|131072)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Jo(W,528)?e.TypeReferenceSerializationKind.BooleanType:Jo(W,296)?e.TypeReferenceSerializationKind.NumberLikeType:Jo(W,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:Jo(W,132)?e.TypeReferenceSerializationKind.StringLikeType:Lo(W)?e.TypeReferenceSerializationKind.ArrayLikeType:Jo(W,12288)?e.TypeReferenceSerializationKind.ESSymbolType:bS(W)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Ms(W)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function Q0(n,t,r,i,s){var f=e.getParseTreeNode(n,e.isVariableLikeOrAccessor);if(!f)return e.createToken(124);var A=Yt(f),W=A&&!(A.flags&(2048|131072))?wd(Hn(A)):ye;return W.flags&8192&&W.symbol===A&&(r|=1048576),s&&(W=wu(W)),Ue.typeToTypeNode(W,t,r|1024,i)}function Z0(n,t,r,i){var s=e.getParseTreeNode(n,e.isFunctionLike);if(!s)return e.createToken(124);var f=pc(s);return Ue.typeToTypeNode(Fi(f),t,r|1024,i)}function $0(n,t,r,i){var s=e.getParseTreeNode(n,e.isExpression);if(!s)return e.createToken(124);var f=Ps(fS(s));return Ue.typeToTypeNode(f,t,r|1024,i)}function eD(n){return cn.has(e.escapeLeadingUnderscores(n))}function _m(n,t){var r=Ir(n).resolvedSymbol;if(r)return r;var i=n;if(t){var s=n.parent;e.isDeclaration(s)&&n===s.name&&(i=sc(s))}return co(i,n.escapedText,111551|1048576|2097152,void 0,void 0,!0)}function nD(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=_m(t);if(r)return nc(r).valueDeclaration}}return}function tD(n){return e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n)?Bu(Hn(Yt(n))):!1}function rD(n,t,r){var i=n.flags&1024?Ue.symbolToExpression(n.symbol,111551,t,void 0,r):n===qn?e.createTrue():n===wt&&e.createFalse();return i||e.createLiteral(n.value)}function aD(n,t){var r=Hn(Yt(n));return rD(r,n,t)}function iD(){var n=_.getResolvedTypeReferenceDirectives(),t;return n&&(t=e.createMap(),n.forEach(function(W,xe){if(!W||!W.resolvedFileName)return;var je=_.getSourceFile(W.resolvedFileName);A(je,xe)})),{getReferencedExportContainer:U0,getReferencedImportDeclaration:j0,getReferencedDeclarationWithCollidingName:H0,isDeclarationWithCollidingName:K0,isValueAliasDeclaration:function(xe){return xe=e.getParseTreeNode(xe),xe?hS(xe):!0},hasGlobalName:eD,isReferencedAliasDeclaration:function(xe,je){return xe=e.getParseTreeNode(xe),xe?gS(xe,je):!0},getNodeCheckFlags:function(xe){return xe=e.getParseTreeNode(xe),xe?l_(xe):0},isTopLevelValueImportEqualsWithEntityName:q0,isDeclarationVisible:ns,isImplementationOfOverload:yS,isRequiredInitializedParameter:_S,isOptionalUninitializedParameterProperty:J0,isExpandoFunctionDeclaration:z0,getPropertiesOfContainerFunction:X0,createTypeOfDeclaration:Q0,createReturnTypeOfSignatureDeclaration:Z0,createTypeOfExpression:$0,createLiteralConstValue:aD,isSymbolAccessible:xc,isEntityNameVisible:Ol,getConstantValue:function(xe){var je=e.getParseTreeNode(xe,vS);return je?c_(je):void 0},collectLinkedAliases:Yu,getReferencedValueDeclaration:nD,getTypeReferenceSerializationKind:Y0,isOptionalParameter:Fp,moduleExportsSomeValue:B0,isArgumentsLocalBinding:G0,getExternalModuleFileFromDeclaration:ES,getTypeReferenceDirectivesForEntityName:i,getTypeReferenceDirectivesForSymbol:s,isLiteralConstDeclaration:tD,isLateBound:function(xe){var je=e.getParseTreeNode(xe,e.isDeclaration),Qe=je&&Yt(je);return!!(Qe&&e.getCheckFlags(Qe)&4096)},getJsxFactoryEntity:function(xe){return xe?(pi(xe),e.getSourceFileOfNode(xe).localJsxFactory||kr):kr},getAllAccessorDeclarations:function(xe){xe=e.getParseTreeNode(xe,e.isGetOrSetAccessorDeclaration);var je=xe.kind===163?162:163,Qe=e.getDeclarationOfKind(Yt(xe),je),nn=Qe&&Qe.pos<xe.pos?Qe:xe,Tn=Qe&&Qe.pos<xe.pos?xe:Qe,In=xe.kind===163?xe:Qe,it=xe.kind===162?xe:Qe;return{firstAccessor:nn,secondAccessor:Tn,setAccessor:In,getAccessor:it}},getSymbolOfExternalModuleSpecifier:function(xe){return ha(xe,xe,void 0)},isBindingCapturedByNode:function(xe,je){var Qe=e.getParseTreeNode(xe),nn=e.getParseTreeNode(je);return!!Qe&&!!nn&&(e.isVariableDeclaration(nn)||e.isBindingElement(nn))&&vA(Qe,nn)},getDeclarationStatementsForSourceFile:function(xe,je,Qe,nn){var Tn=e.getParseTreeNode(xe);e.Debug.assert(Tn&&Tn.kind===288,"Non-sourcefile node passed into getDeclarationsForSourceFile");var In=Yt(xe);return In?In.exports?Ue.symbolTableToDeclarationStatements(In.exports,xe,je,Qe,nn):[]:xe.locals?Ue.symbolTableToDeclarationStatements(xe.locals,xe,je,Qe,nn):[]}};function r(W){return W.parent&&W.parent.kind===215&&W.parent.parent&&W.parent.parent.kind===277}function i(W){if(!t)return;var xe=788968|1920;(W.kind===75&&cp(W)||W.kind===193&&!r(W))&&(xe=111551|1048576);var je=Dt(W,xe,!0);return je&&je!==pn?s(je,xe):void 0}function s(W,xe){if(!t)return;if(!f(W))return;for(var je,Qe=0,nn=W.declarations;Qe<nn.length;Qe++){var Tn=nn[Qe];if(Tn.symbol&&Tn.symbol.flags&xe){var In=e.getSourceFileOfNode(Tn),it=t.get(In.path);if(it)(je||(je=[])).push(it);else return}}return je}function f(W){if(!W.declarations)return!1;for(var xe=W;;){var je=xs(xe);if(je)xe=je;else break}if(xe.valueDeclaration&&xe.valueDeclaration.kind===288&&xe.flags&512)return!1;for(var Qe=0,nn=W.declarations;Qe<nn.length;Qe++){var Tn=nn[Qe],In=e.getSourceFileOfNode(Tn);if(t.has(In.path))return!0}return!1}function A(W,xe){if(t.has(W.path))return;t.set(W.path,xe);for(var je=0,Qe=W.referencedFiles;je<Qe.length;je++){var nn=Qe[je].fileName,Tn=e.resolveTripleslashReference(nn,W.originalFileName),In=_.getSourceFile(Tn);In&&A(In,xe)}}}function ES(n){var t=n.kind===248?e.tryCast(n.name,e.isStringLiteral):e.getExternalModuleName(n),r=ha(t,t,void 0);return r?e.getDeclarationOfKind(r,288):void 0}function oD(){for(var n=0,t=_.getSourceFiles();n<t.length;n++){var r=t[n];e.bindSourceFile(r,Ge)}ui=e.createMap();for(var i,s=0,f=_.getSourceFiles();s<f.length;s++){var r=f[s];if(r.redirectInfo)continue;if(!e.isExternalOrCommonJsModule(r)){var A=r.locals.get("globalThis");if(A)for(var W=0,xe=A.declarations;W<xe.length;W++){var je=xe[W];Qn.add(e.createDiagnosticForNode(je,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}za(cn,r.locals)}if(r.jsGlobalAugmentations&&za(cn,r.jsGlobalAugmentations),r.patternAmbientModules&&r.patternAmbientModules.length&&(Fo=e.concatenate(Fo,r.patternAmbientModules)),r.moduleAugmentations.length&&(i||(i=[])).push(r.moduleAugmentations),r.symbol&&r.symbol.globalExports){var Qe=r.symbol.globalExports;Qe.forEach(function(Mr,Wa){cn.has(Wa)||cn.set(Wa,Mr)})}}if(i)for(var nn=0,Tn=i;nn<Tn.length;nn++)for(var In=Tn[nn],it=0,pt=In;it<pt.length;it++){var St=pt[it];if(!e.isGlobalScopeAugmentation(St.parent))continue;ki(St)}if(eo(cn,Eo,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),ea($e).type=Mn,ea(he).type=fs("IArguments",0,!0),ea(pn).type=ye,ea(sn).type=ss(16,sn),_r=fs("Array",1,!0),bo=fs("Object",0,!0),Ri=fs("Function",0,!0),xt=Pn&&fs("CallableFunction",0,!0)||Ri,Kt=Pn&&fs("NewableFunction",0,!0)||Ri,va=fs("String",0,!0),Na=fs("Number",0,!0),qr=fs("Boolean",0,!0),hi=fs("RegExp",0,!0),gi=Os(oe),ua=Os(kn),ua===jn&&(ua=Oo(void 0,We,e.emptyArray,e.emptyArray,void 0,void 0)),Jr=av("ReadonlyArray",1)||_r,tn=Jr?$f(Jr,[oe]):gi,Ii=av("ThisType",1),i)for(var qt=0,hr=i;qt<hr.length;qt++)for(var In=hr[qt],lr=0,Tr=In;lr<Tr.length;lr++){var St=Tr[lr];if(e.isGlobalScopeAugmentation(St.parent))continue;ki(St)}ui.forEach(function(na){var Mr=na.firstFile,Wa=na.secondFile,Zi=na.conflictingSymbols;if(Zi.size<8)Zi.forEach(function(Ca,Bt){for(var An=Ca.isBlockScoped,gn=Ca.firstFileLocations,At=Ca.secondFileLocations,Ct=An?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,Zt=0,pr=gn;Zt<pr.length;Zt++){var xr=pr[Zt];ya(xr,Ct,Bt,At)}for(var jt=0,sa=At;jt<sa.length;jt++){var xr=sa[jt];ya(xr,Ct,Bt,gn)}});else{var Sa=e.arrayFrom(Zi.keys()).join(", ");Qn.add(e.addRelatedInfo(e.createDiagnosticForNode(Mr,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,Sa),e.createDiagnosticForNode(Wa,e.Diagnostics.Conflicts_are_in_this_file))),Qn.add(e.addRelatedInfo(e.createDiagnosticForNode(Wa,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,Sa),e.createDiagnosticForNode(Mr,e.Diagnostics.Conflicts_are_in_this_file)))}}),ui=void 0}function Ll(n,t){if((Q&t)!==t&&Ge.importHelpers){var r=e.getSourceFileOfNode(n);if(e.isEffectiveExternalModule(r,Ge)&&!(n.flags&8388608)){var i=lD(r,n);if(i!==pn){for(var s=t&~Q,f=1;f<=131072;f<<=1)if(s&f){var A=sD(f),W=Uo(i.exports,e.escapeLeadingUnderscores(A),111551);W||wn(n,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,A)}}Q|=t}}}function sD(n){switch(n){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__spreadArrays";case 4096:return"__await";case 8192:return"__asyncGenerator";case 16384:return"__asyncDelegator";case 32768:return"__asyncValues";case 65536:return"__exportStar";case 131072:return"__makeTemplateObject";default:return e.Debug.fail("Unrecognized helper")}}function lD(n,t){return N||(N=ia(n,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||pn),N}function eu(n){return cD(n)||uD(n)}function cD(n){if(!n.decorators)return!1;if(e.nodeCanBeDecorated(n,n.parent,n.parent.parent)){if(n.kind===162||n.kind===163){var t=e.getAllAccessorDeclarations(n.parent.members,n);if(t.firstAccessor.decorators&&n===t.secondAccessor)return ls(n,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===160&&!e.nodeIsPresent(n.body)?ls(n,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):ls(n,e.Diagnostics.Decorators_are_not_valid_here);return!1}function uD(n){var t=dD(n);if(t!==void 0)return t;for(var r,i,s,f,A=0,W=0,xe=n.modifiers;W<xe.length;W++){var je=xe[W];if(je.kind!==137){if(n.kind===157||n.kind===159)return ur(je,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(je.kind));if(n.kind===166)return ur(je,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(je.kind))}switch(je.kind){case 80:if(n.kind!==247)return ur(n,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(80));break;case 118:case 117:case 116:var Qe=zi(e.modifierToFlag(je.kind));if(A&28)return ur(je,e.Diagnostics.Accessibility_modifier_already_seen);if(A&32)return ur(je,e.Diagnostics._0_modifier_must_precede_1_modifier,Qe,"static");if(A&64)return ur(je,e.Diagnostics._0_modifier_must_precede_1_modifier,Qe,"readonly");if(A&256)return ur(je,e.Diagnostics._0_modifier_must_precede_1_modifier,Qe,"async");if(n.parent.kind===249||n.parent.kind===288)return ur(je,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,Qe);if(A&128)return je.kind===116?ur(je,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,Qe,"abstract"):ur(je,e.Diagnostics._0_modifier_must_precede_1_modifier,Qe,"abstract");A|=e.modifierToFlag(je.kind);break;case 119:if(A&32)return ur(je,e.Diagnostics._0_modifier_already_seen,"static");if(A&64)return ur(je,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(A&256)return ur(je,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(n.parent.kind===249||n.parent.kind===288)return ur(je,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===155)return ur(je,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(A&128)return ur(je,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");A|=32,r=je;break;case 137:if(A&64)return ur(je,e.Diagnostics._0_modifier_already_seen,"readonly");if(n.kind!==158&&n.kind!==157&&n.kind!==166&&n.kind!==155)return ur(je,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);A|=64,f=je;break;case 88:if(A&1)return ur(je,e.Diagnostics._0_modifier_already_seen,"export");if(A&2)return ur(je,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(A&128)return ur(je,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(A&256)return ur(je,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(n.parent))return ur(je,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export");if(n.kind===155)return ur(je,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");A|=1;break;case 83:var nn=n.parent.kind===288?n.parent:n.parent.parent;if(nn.kind===248&&!e.isAmbientModule(nn))return ur(je,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);A|=512;break;case 129:if(A&2)return ur(je,e.Diagnostics._0_modifier_already_seen,"declare");if(A&256)return ur(je,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(e.isClassLike(n.parent)&&!e.isPropertyDeclaration(n))return ur(je,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare");if(n.kind===155)return ur(je,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(n.parent.flags&8388608&&n.parent.kind===249)return ur(je,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);A|=2,i=je;break;case 121:if(A&128)return ur(je,e.Diagnostics._0_modifier_already_seen,"abstract");if(n.kind!==244){if(n.kind!==160&&n.kind!==158&&n.kind!==162&&n.kind!==163)return ur(je,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===244&&e.hasModifier(n.parent,128)))return ur(je,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(A&32)return ur(je,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(A&8)return ur(je,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}A|=128;break;case 125:if(A&256)return ur(je,e.Diagnostics._0_modifier_already_seen,"async");if(A&2||n.parent.flags&8388608)return ur(je,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===155)return ur(je,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");A|=256,s=je;break}}return n.kind===161?A&32?ur(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):A&128?ur(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):A&256?ur(s,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):A&64?ur(f,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):!1:(n.kind===253||n.kind===252)&&A&2?ur(i,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===155&&A&92&&e.isBindingPattern(n.name)?ur(n,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===155&&A&92&&n.dotDotDotToken?ur(n,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):A&256?pD(n,s):!1}function dD(n){return n.modifiers?fD(n)?ls(n,e.Diagnostics.Modifiers_cannot_appear_here):void 0:!1}function fD(n){switch(n.kind){case 162:case 163:case 161:case 158:case 157:case 160:case 159:case 166:case 248:case 253:case 252:case 259:case 258:case 200:case 201:case 155:return!1;default:if(n.parent.kind===249||n.parent.kind===288)return!1;switch(n.kind){case 243:return u_(n,125);case 244:return u_(n,121);case 245:case 224:case 246:return!0;case 247:return u_(n,80);default:return e.Debug.fail(),!1}}}function u_(n,t){return n.modifiers.length>1||n.modifiers[0].kind!==t}function pD(n,t){switch(n.kind){case 160:case 243:case 200:case 201:return!1}return ur(t,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function df(n,t){return t===void 0&&(t=e.Diagnostics.Trailing_comma_not_allowed),n&&n.hasTrailingComma?Ju(n[0],n.end-",".length,",".length,t):!1}function TS(n,t){if(n&&n.length===0){var r=n.pos-"<".length,i=e.skipTrivia(t.text,n.end)+">".length;return Ju(t,r,i-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function mD(n){for(var t=!1,r=n.length,i=0;i<r;i++){var s=n[i];if(s.dotDotDotToken){if(i!==r-1)return ur(s.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(s.flags&8388608||df(n,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),s.questionToken)return ur(s.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(s.initializer)return ur(s.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(s.questionToken){if(t=!0,s.initializer)return ur(s.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!s.initializer)return ur(s.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}function hD(n){return e.filter(n,function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)})}function gD(n){if(x>=3){var t=n.body&&e.isBlock(n.body)&&e.findUseStrictPrologue(n.body.statements);if(t){var r=hD(n.parameters);if(e.length(r)){e.forEach(r,function(s){e.addRelatedInfo(wn(s,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(t,e.Diagnostics.use_strict_directive_used_here))});var i=r.map(function(s,f){return f===0?e.createDiagnosticForNode(s,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(s,e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,Or([wn(t,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],i)),!0}}}return!1}function Mh(n){var t=e.getSourceFileOfNode(n);return eu(n)||TS(n.typeParameters,t)||mD(n.parameters)||_D(n,t)||e.isFunctionLikeDeclaration(n)&&gD(n)}function yD(n){var t=e.getSourceFileOfNode(n);return wD(n)||TS(n.typeParameters,t)}function _D(n,t){if(!e.isArrowFunction(n))return!1;var r=n.equalsGreaterThanToken,i=e.getLineAndCharacterOfPosition(t,r.pos).line,s=e.getLineAndCharacterOfPosition(t,r.end).line;return i!==s&&ur(r,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}function vD(n){var t=n.parameters[0];if(n.parameters.length!==1)return ur(t?t.name:n,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(t.dotDotDotToken)return ur(t.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasModifiers(t))return ur(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return ur(t.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return ur(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return ur(t.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(t.type.kind!==142&&t.type.kind!==139){var r=ja(t.type);return r.flags&4||r.flags&8?ur(t.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,e.getTextOfNode(t.name),zt(r),zt(n.type?ja(n.type):oe)):r.flags&1048576&&yh(r,384,!0)?ur(t.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):ur(t.name,e.Diagnostics.An_index_signature_parameter_type_must_be_either_string_or_number)}return n.type?!1:ur(n,e.Diagnostics.An_index_signature_must_have_a_type_annotation)}function bD(n){return eu(n)||vD(n)}function ED(n,t){if(t&&t.length===0){var r=e.getSourceFileOfNode(n),i=t.pos-"<".length,s=e.skipTrivia(r.text,t.end)+">".length;return Ju(r,i,s-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}function vm(n,t){return df(t)||ED(n,t)}function TD(n){return n.questionDotToken||n.flags&32?ur(n.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function SD(n){if(n)for(var t=0,r=n;t<r.length;t++){var i=r[t];if(i.kind===214)return Ju(i,i.pos,0,e.Diagnostics.Argument_expression_expected)}return!1}function SS(n){return SD(n)}function xS(n){var t=n.types;if(df(t))return!0;if(t&&t.length===0){var r=e.tokenToString(n.token);return Ju(n,t.pos,0,e.Diagnostics._0_list_cannot_be_empty,r)}return e.some(t,xD)}function xD(n){return vm(n,n.typeArguments)}function wD(n){var t=!1,r=!1;if(!eu(n)&&n.heritageClauses)for(var i=0,s=n.heritageClauses;i<s.length;i++){var f=s[i];if(f.token===89){if(t)return ls(f,e.Diagnostics.extends_clause_already_seen);if(r)return ls(f,e.Diagnostics.extends_clause_must_precede_implements_clause);if(f.types.length>1)return ls(f.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(e.Debug.assert(f.token===112),r)return ls(f,e.Diagnostics.implements_clause_already_seen);r=!0}xS(f)}}function AD(n){var t=!1;if(n.heritageClauses)for(var r=0,i=n.heritageClauses;r<i.length;r++){var s=i[r];if(s.token===89){if(t)return ls(s,e.Diagnostics.extends_clause_already_seen);t=!0}else return e.Debug.assert(s.token===112),ls(s,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);xS(s)}return!1}function Rh(n){if(n.kind!==153)return!1;var t=n;return t.expression.kind===208&&t.expression.operatorToken.kind===27?ur(t.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function d_(n){if(n.asteriskToken){if(e.Debug.assert(n.kind===243||n.kind===200||n.kind===160),n.flags&8388608)return ur(n.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return ur(n.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function wS(n,t){return!!n&&ur(n,t)}function AS(n,t){return!!n&&ur(n,t)}function kD(n,t){for(var r=e.createUnderscoreEscapedMap(),i=0,s=n.properties;i<s.length;i++){var f=s[i];if(f.kind===281){if(t){var A=e.skipParentheses(f.expression);if(e.isArrayLiteralExpression(A)||e.isObjectLiteralExpression(A))return ur(f.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}continue}var W=f.name;if(W.kind===153&&Rh(W),f.kind===280&&!t&&f.objectAssignmentInitializer)return ur(f.equalsToken,e.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);if(f.modifiers)for(var xe=0,je=f.modifiers;xe<je.length;xe++){var Qe=je[xe];(Qe.kind!==125||f.kind!==160)&&ur(Qe,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(Qe))}var nn=void 0;switch(f.kind){case 280:AS(f.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 279:wS(f.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),W.kind===8&&m_(W),nn=4;break;case 160:nn=8;break;case 162:nn=1;break;case 163:nn=2;break;default:throw e.Debug.assertNever(f,"Unexpected syntax kind:"+f.kind)}var Tn=e.getPropertyNameForPropertyNameNode(W);if(Tn===void 0)continue;var In=r.get(Tn);if(!In)r.set(Tn,nn);else if(nn&12&&In&12)ur(W,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(W));else if(nn&3&&In&3)if(In!==3&&nn!==In)r.set(Tn,nn|In);else return ur(W,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return ur(W,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}function CD(n){vm(n,n.typeArguments);for(var t=e.createUnderscoreEscapedMap(),r=0,i=n.attributes.properties;r<i.length;r++){var s=i[r];if(s.kind===273)continue;var f=s.name,A=s.initializer;if(!t.get(f.escapedText))t.set(f.escapedText,!0);else return ur(f,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(A&&A.kind===274&&!A.expression)return ur(A,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function DD(n){if(n.expression&&e.isCommaSequence(n.expression))return ur(n.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function kS(n){if(Lc(n))return!0;if(n.kind===231&&n.awaitModifier&&(n.flags&32768)===0){var t=e.getSourceFileOfNode(n);if(!Vf(t)){var r=e.createDiagnosticForNode(n.awaitModifier,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator),i=e.getContainingFunction(n);if(i&&i.kind!==161){e.Debug.assert((e.getFunctionFlags(i)&2)===0,"Enclosing function should never be an async function.");var s=e.createDiagnosticForNode(i,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(r,s)}return Qn.add(r),!0}return!1}if(n.initializer.kind===242){var f=n.initializer;if(!p_(f)){var A=f.declarations;if(!A.length)return!1;if(A.length>1){var r=n.kind===230?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 ls(f.declarations[1],r)}var W=A[0];if(W.initializer){var r=n.kind===230?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 ur(W.name,r)}if(W.type){var r=n.kind===230?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 ur(W,r)}}}return!1}function LD(n){if(!(n.flags&8388608)){if(x<1)return ur(n.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(n.body===void 0&&!e.hasModifier(n,128))return Ju(n,n.end-1,";".length,e.Diagnostics._0_expected,"{")}if(n.body&&e.hasModifier(n,128))return ur(n,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(n.typeParameters)return ur(n.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!ID(n))return ur(n.name,n.kind===162?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===163){if(n.type)return ur(n.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var t=e.Debug.assertDefined(e.getSetAccessorValueParameter(n),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return ur(t.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return ur(t.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return ur(n.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function ID(n){return f_(n)||n.parameters.length===(n.kind===162?0:1)}function f_(n){if(n.parameters.length===(n.kind===162?1:2))return e.getThisParameter(n)}function ND(n){if(n.operator===146){if(n.type.kind!==143)return ur(n.type,e.Diagnostics._0_expected,e.tokenToString(143));var t=e.walkUpParenthesizedTypes(n.parent);switch(t.kind){case 241:var r=t;if(r.name.kind!==75)return ur(n,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(r))return ur(n,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(r.parent.flags&2))return ur(t.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 158:if(!e.hasModifier(t,32)||!e.hasModifier(t,64))return ur(t.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 157:if(!e.hasModifier(t,64))return ur(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 ur(n,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===137&&(n.type.kind!==173&&n.type.kind!==174))return ls(n,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(143))}function Bf(n,t){if(ao(n))return ur(n,t)}function CS(n){if(Mh(n))return!0;if(n.kind===160){if(n.parent.kind===192){if(n.modifiers&&!(n.modifiers.length===1&&e.first(n.modifiers).kind===125))return ls(n,e.Diagnostics.Modifiers_cannot_appear_here);if(wS(n.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(AS(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return Ju(n,n.end-1,";".length,e.Diagnostics._0_expected,"{")}if(d_(n))return!0}if(e.isClassLike(n.parent)){if(n.flags&8388608)return Bf(n.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.kind===160&&!n.body)return Bf(n.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(n.parent.kind===245)return Bf(n.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===172)return Bf(n.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function OD(n){for(var t=n;t;){if(e.isFunctionLike(t))return ur(n,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 237:if(n.label&&t.label.escapedText===n.label.escapedText){var r=n.kind===232&&!e.isIterationStatement(t.statement,!0);return r?ur(n,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1}break;case 236:if(n.kind===233&&!n.label)return!1;break;default:if(e.isIterationStatement(t,!1)&&!n.label)return!1;break}t=t.parent}if(n.label){var i=n.kind===233?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 ur(n,i)}else{var i=n.kind===233?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 ur(n,i)}}function PD(n){if(n.dotDotDotToken){var t=n.parent.elements;if(n!==e.last(t))return ur(n,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(df(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return ur(n.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name);if(n.initializer)return Ju(n,n.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function DS(n){return e.isStringOrNumericLiteralLike(n)||n.kind===206&&n.operator===40&&n.operand.kind===8}function MD(n){return n.kind===9||n.kind===206&&n.operator===40&&n.operand.kind===9}function RD(n){if((e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)&&DS(n.argumentExpression))&&e.isEntityNameExpression(n.expression))return!!(as(n).flags&1024)}function LS(n){var t=n.initializer;if(t){var r=!(DS(t)||RD(t)||t.kind===105||t.kind===90||MD(t)),i=e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n);if(i&&!n.type){if(r)return ur(t,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return ur(t,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(!i||r)return ur(t,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function FD(n){if(n.parent.parent.kind!==230&&n.parent.parent.kind!==231){if(n.flags&8388608)LS(n);else if(!n.initializer){if(e.isBindingPattern(n.name)&&!e.isBindingPattern(n.parent))return ur(n,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(n))return ur(n,e.Diagnostics.const_declarations_must_be_initialized)}}if(n.exclamationToken&&(n.parent.parent.kind!==224||!n.type||n.initializer||n.flags&8388608))return ur(n.exclamationToken,e.Diagnostics.Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation);Ge.module!==e.ModuleKind.ES2015&&Ge.module!==e.ModuleKind.ESNext&&Ge.module!==e.ModuleKind.System&&!Ge.noEmit&&!(n.parent.parent.flags&8388608)&&e.hasModifier(n.parent.parent,1)&&IS(n.name);var t=e.isLet(n)||e.isVarConst(n);return t&&NS(n.name)}function IS(n){if(n.kind===75){if(e.idText(n)==="__esModule")return ur(n,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var t=n.elements,r=0,i=t;r<i.length;r++){var s=i[r];if(!e.isOmittedExpression(s))return IS(s.name)}return!1}function NS(n){if(n.kind===75){if(n.originalKeywordKind===114)return ur(n,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var t=n.elements,r=0,i=t;r<i.length;r++){var s=i[r];e.isOmittedExpression(s)||NS(s.name)}return!1}function p_(n){var t=n.declarations;return df(n.declarations)?!0:n.declarations.length?!1:Ju(n,t.pos,t.end-t.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function OS(n){switch(n.kind){case 226:case 227:case 228:case 235:case 229:case 230:case 231:return!1;case 237:return OS(n.parent)}return!0}function GD(n){if(!OS(n.parent)){if(e.isLet(n.declarationList))return ur(n,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isVarConst(n.declarationList))return ur(n,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}function BD(n){var t=n.name.escapedText;switch(n.keywordToken){case 98:if(t!=="target")return ur(n.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,e.tokenToString(n.keywordToken),"target");break;case 95:if(t!=="meta")return ur(n.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,e.tokenToString(n.keywordToken),"meta");break}}function Vf(n){return n.parseDiagnostics.length>0}function ls(n,t,r,i,s){var f=e.getSourceFileOfNode(n);if(!Vf(f)){var A=e.getSpanOfTokenAtPosition(f,n.pos);return Qn.add(e.createFileDiagnostic(f,A.start,A.length,t,r,i,s)),!0}return!1}function Ju(n,t,r,i,s,f,A){var W=e.getSourceFileOfNode(n);return Vf(W)?!1:(Qn.add(e.createFileDiagnostic(W,t,r,i,s,f,A)),!0)}function ur(n,t,r,i,s){var f=e.getSourceFileOfNode(n);return Vf(f)?!1:(Qn.add(e.createDiagnosticForNode(n,t,r,i,s)),!0)}function VD(n){var t=e.isInJSFile(n)?e.getJSDocTypeParameterDeclarations(n):void 0,r=n.typeParameters||t&&e.firstOrUndefined(t);if(r){var i=r.pos===r.end?r.pos:e.skipTrivia(e.getSourceFileOfNode(n).text,r.pos);return Ju(n,i,r.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function UD(n){var t=e.getEffectiveReturnTypeNode(n);if(t)return ur(t,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function jD(n){if(e.isClassLike(n.parent)){if(e.isStringLiteral(n.name)&&n.name.text==="constructor")return ur(n.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(Bf(n.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0}else if(n.parent.kind===245){if(Bf(n.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(n.initializer)return ur(n.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(n.parent.kind===172){if(Bf(n.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(n.initializer)return ur(n.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&8388608&&LS(n),e.isPropertyDeclaration(n)&&n.exclamationToken&&(!e.isClassLike(n.parent)||!n.type||n.initializer||n.flags&8388608||e.hasModifier(n,32|128)))return ur(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)}function WD(n){return n.kind===245||n.kind===246||n.kind===253||n.kind===252||n.kind===259||n.kind===258||n.kind===251||e.hasModifier(n,2|1|512)?!1:ls(n,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function HD(n){for(var t=0,r=n.statements;t<r.length;t++){var i=r[t];if((e.isDeclaration(i)||i.kind===224)&&WD(i))return!0}return!1}function KD(n){return!!(n.flags&8388608)&&HD(n)}function Lc(n){if(n.flags&8388608){var t=Ir(n);if(!t.hasReportedStatementInAmbientContext&&(e.isFunctionLike(n.parent)||e.isAccessor(n.parent)))return Ir(n).hasReportedStatementInAmbientContext=ls(n,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===222||n.parent.kind===249||n.parent.kind===288){var r=Ir(n.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=ls(n,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function m_(n){if(n.numericLiteralFlags&32){var t=void 0;if(x>=1?t=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(n,186)?t=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(n,282)&&(t=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var r=e.isPrefixUnaryExpression(n.parent)&&n.parent.operator===40,i=(r?"-":"")+"0o"+n.text;return ur(r?n.parent:n,t,i)}}return qD(n),!1}function qD(n){if(n.numericLiteralFlags&16||n.text.length<=15||n.text.indexOf(".")!==-1)return;var t=+e.getTextOfNode(n);if(t<=Math.pow(2,53)-1&&t+1>t)return;$i(!1,e.createDiagnosticForNode(n,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function JD(n){var t=e.isLiteralTypeNode(n.parent)||e.isPrefixUnaryExpression(n.parent)&&e.isLiteralTypeNode(n.parent.parent);return!!(!t&&(x<99&&ur(n,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ESNext)))}function zD(n,t,r,i,s){var f=e.getSourceFileOfNode(n);if(!Vf(f)){var A=e.getSpanOfTokenAtPosition(f,n.pos);return Qn.add(e.createFileDiagnostic(f,e.textSpanEnd(A),0,t,r,i,s)),!0}return!1}function XD(){return ji||(ji=[],cn.forEach(function(n,t){o.test(t)&&ji.push(n)})),ji}function YD(n){if(j===e.ModuleKind.ES2015)return ur(n,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_commonjs_amd_system_or_umd);if(n.typeArguments)return ur(n,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var t=n.arguments;return t.length!==1?ur(n,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):(df(t),e.isSpreadElement(t[0])?ur(t[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element):!1)}}e.createTypeChecker=K;function z(_){return!e.isAccessor(_)}function Ee(_){return _.kind!==243&&_.kind!==160||!!_.body}function B(_){switch(_.parent.kind){case 257:case 261:return e.isIdentifier(_);default:return e.isDeclarationName(_)}}function V(_){switch(_.kind){case 254:case 252:case 255:case 257:return!0;case 75:return _.parent.kind===257;default:return!1}}var m;(function(_){_.JSX="JSX",_.IntrinsicElements="IntrinsicElements",_.ElementClass="ElementClass",_.ElementAttributesPropertyNameContainer="ElementAttributesProperty",_.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",_.Element="Element",_.IntrinsicAttributes="IntrinsicAttributes",_.IntrinsicClassAttributes="IntrinsicClassAttributes",_.LibraryManagedAttributes="LibraryManagedAttributes"})(m||(m={}));function y(_){switch(_){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function L(_){return!!(_.flags&1)}e.signatureHasRestParameter=L;function C(_){return!!(_.flags&2)}e.signatureHasLiteralTypes=C})(ln||(ln={}));var ln;(function(e){function o(g){var te=e.createNode(g,-1,-1);return te.flags|=8,te}function F(g,te){return g!==te&&(cc(g,te),Qs(g,te),e.aggregateTransformFlags(g)),g}e.updateNode=F;function qe(g,te){if(!g||g===e.emptyArray)g=[];else if(e.isNodeArray(g))return g;var Ve=g;return Ve.pos=-1,Ve.end=-1,Ve.hasTrailingComma=te,Ve}e.createNodeArray=qe;function Se(g){if(g===void 0)return g;var te=o(g.kind);te.flags|=g.flags,cc(te,g);for(var Ve in g){if(te.hasOwnProperty(Ve)||!g.hasOwnProperty(Ve))continue;te[Ve]=g[Ve]}return te}e.getSynthesizedClone=Se;function Fe(g,te){if(typeof g=="number")return He(g+"");if(typeof g=="object"&&"base10Value"in g)return ve(e.pseudoBigIntToString(g)+"n");if(typeof g=="boolean")return g?fe():R();if(e.isString(g)){var Ve=ie(g);return te&&(Ve.singleQuote=!0),Ve}return H(g)}e.createLiteral=Fe;function He(g,te){te===void 0&&(te=0);var Ve=o(8);return Ve.text=g,Ve.numericLiteralFlags=te,Ve}e.createNumericLiteral=He;function ve(g){var te=o(9);return te.text=g,te}e.createBigIntLiteral=ve;function ie(g){var te=o(10);return te.text=g,te}e.createStringLiteral=ie;function d(g){var te=o(13);return te.text=g,te}e.createRegularExpressionLiteral=d;function H(g){var te=ie(e.getTextOfIdentifierOrLiteral(g));return te.textSourceNode=g,te}function Pe(g,te){var Ve=o(75);return Ve.escapedText=e.escapeLeadingUnderscores(g),Ve.originalKeywordKind=g?e.stringToToken(g):0,Ve.autoGenerateFlags=0,Ve.autoGenerateId=0,te&&(Ve.typeArguments=qe(te)),Ve}e.createIdentifier=Pe;function I(g,te){return g.typeArguments!==te?F(Pe(e.idText(g),te),g):g}e.updateIdentifier=I;var _e=0;function re(g,te){var Ve=Pe("");return Ve.autoGenerateFlags=1,Ve.autoGenerateId=_e,_e++,g&&g(Ve),te&&(Ve.autoGenerateFlags|=8),Ve}e.createTempVariable=re;function se(){var g=Pe("");return g.autoGenerateFlags=2,g.autoGenerateId=_e,_e++,g}e.createLoopVariable=se;function w(g){var te=Pe(g);return te.autoGenerateFlags=3,te.autoGenerateId=_e,_e++,te}e.createUniqueName=w;function k(g){var te=Pe(g);return te.autoGenerateFlags=3|16,te.autoGenerateId=_e,_e++,te}e.createOptimisticUniqueName=k;function P(g){var te=k(g);return te.autoGenerateFlags|=32,te}e.createFileLevelUniqueName=P;function h(g,te){var Ve=Pe(g&&e.isIdentifier(g)?e.idText(g):"");return Ve.autoGenerateFlags=4|te,Ve.autoGenerateId=_e,Ve.original=g,_e++,Ve}e.getGeneratedNameForNode=h;function Y(g){return o(g)}e.createToken=Y;function ne(){return o(101)}e.createSuper=ne;function $(){return o(103)}e.createThis=$;function J(){return o(99)}e.createNull=J;function fe(){return o(105)}e.createTrue=fe;function R(){return o(90)}e.createFalse=R;function K(g){return Y(g)}e.createModifier=K;function z(g){var te=[];return g&1&&te.push(K(88)),g&2&&te.push(K(129)),g&512&&te.push(K(83)),g&2048&&te.push(K(80)),g&4&&te.push(K(118)),g&8&&te.push(K(116)),g&16&&te.push(K(117)),g&128&&te.push(K(121)),g&32&&te.push(K(119)),g&64&&te.push(K(137)),g&256&&te.push(K(125)),te}e.createModifiersFromModifierFlags=z;function Ee(g,te){var Ve=o(152);return Ve.left=g,Ve.right=zi(te),Ve}e.createQualifiedName=Ee;function B(g,te,Ve){return g.left!==te||g.right!==Ve?F(Ee(te,Ve),g):g}e.updateQualifiedName=B;function V(g){return e.isCommaSequence(g)?Gi(g):g}function m(g){var te=o(153);return te.expression=V(g),te}e.createComputedPropertyName=m;function y(g,te){return g.expression!==te?F(m(te),g):g}e.updateComputedPropertyName=y;function L(g,te,Ve){var Dn=o(154);return Dn.name=zi(g),Dn.constraint=te,Dn.default=Ve,Dn}e.createTypeParameterDeclaration=L;function C(g,te,Ve,Dn){return g.name!==te||g.constraint!==Ve||g.default!==Dn?F(L(te,Ve,Dn),g):g}e.updateTypeParameterDeclaration=C;function _(g,te,Ve,Dn,rt,p,Be){var Nn=o(155);return Nn.decorators=Ra(g),Nn.modifiers=Ra(te),Nn.dotDotDotToken=Ve,Nn.name=zi(Dn),Nn.questionToken=rt,Nn.type=p,Nn.initializer=Be?e.parenthesizeExpressionForList(Be):void 0,Nn}e.createParameter=_;function b(g,te,Ve,Dn,rt,p,Be,Nn){return g.decorators!==te||g.modifiers!==Ve||g.dotDotDotToken!==Dn||g.name!==rt||g.questionToken!==p||g.type!==Be||g.initializer!==Nn?F(_(te,Ve,Dn,rt,p,Be,Nn),g):g}e.updateParameter=b;function D(g){var te=o(156);return te.expression=e.parenthesizeForAccess(g),te}e.createDecorator=D;function T(g,te){return g.expression!==te?F(D(te),g):g}e.updateDecorator=T;function Q(g,te,Ve,Dn,rt){var p=o(157);return p.modifiers=Ra(g),p.name=zi(te),p.questionToken=Ve,p.type=Dn,p.initializer=rt,p}e.createPropertySignature=Q;function N(g,te,Ve,Dn,rt,p){return g.modifiers!==te||g.name!==Ve||g.questionToken!==Dn||g.type!==rt||g.initializer!==p?F(Q(te,Ve,Dn,rt,p),g):g}e.updatePropertySignature=N;function X(g,te,Ve,Dn,rt,p){var Be=o(158);return Be.decorators=Ra(g),Be.modifiers=Ra(te),Be.name=zi(Ve),Be.questionToken=Dn!==void 0&&Dn.kind===57?Dn:void 0,Be.exclamationToken=Dn!==void 0&&Dn.kind===53?Dn:void 0,Be.type=rt,Be.initializer=p,Be}e.createProperty=X;function pe(g,te,Ve,Dn,rt,p,Be){return g.decorators!==te||g.modifiers!==Ve||g.name!==Dn||g.questionToken!==(rt!==void 0&&rt.kind===57?rt:void 0)||g.exclamationToken!==(rt!==void 0&&rt.kind===53?rt:void 0)||g.type!==p||g.initializer!==Be?F(X(te,Ve,Dn,rt,p,Be),g):g}e.updateProperty=pe;function S(g,te,Ve,Dn,rt){var p=Je(159,g,te,Ve);return p.name=zi(Dn),p.questionToken=rt,p}e.createMethodSignature=S;function v(g,te,Ve,Dn,rt,p){return g.typeParameters!==te||g.parameters!==Ve||g.type!==Dn||g.name!==rt||g.questionToken!==p?F(S(te,Ve,Dn,rt,p),g):g}e.updateMethodSignature=v;function U(g,te,Ve,Dn,rt,p,Be,Nn,bt){var Sr=o(160);return Sr.decorators=Ra(g),Sr.modifiers=Ra(te),Sr.asteriskToken=Ve,Sr.name=zi(Dn),Sr.questionToken=rt,Sr.typeParameters=Ra(p),Sr.parameters=qe(Be),Sr.type=Nn,Sr.body=bt,Sr}e.createMethod=U;function de(g,te,Ve){return Pi(nt(g,zi(te)),void 0,Ve)}function Ce(g,te,Ve){return de(Pe(g),te,Ve)}function Z(g,te,Ve){return Ce("Object","defineProperty",[g,Hl(te),Ve])}e.createObjectDefinePropertyCall=Z;function Re(g,te,Ve){return Ve?(g.push(La(te,Ve)),!0):!1}function Ae(g,te){var Ve=[];Re(Ve,"enumerable",Hl(g.enumerable)),Re(Ve,"configurable",Hl(g.configurable));var Dn=Re(Ve,"writable",Hl(g.writable));Dn=Re(Ve,"value",g.value)||Dn;var rt=Re(Ve,"get",g.get);return rt=Re(Ve,"set",g.set)||rt,e.Debug.assert(!(Dn&&rt),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ke(Ve,!te)}e.createPropertyDescriptor=Ae;function We(g,te,Ve,Dn,rt,p,Be,Nn,bt,Sr){return g.decorators!==te||g.modifiers!==Ve||g.asteriskToken!==Dn||g.name!==rt||g.questionToken!==p||g.typeParameters!==Be||g.parameters!==Nn||g.type!==bt||g.body!==Sr?F(U(te,Ve,Dn,rt,p,Be,Nn,bt,Sr),g):g}e.updateMethod=We;function be(g,te,Ve,Dn){var rt=o(161);return rt.decorators=Ra(g),rt.modifiers=Ra(te),rt.typeParameters=void 0,rt.parameters=qe(Ve),rt.type=void 0,rt.body=Dn,rt}e.createConstructor=be;function Ge(g,te,Ve,Dn,rt){return g.decorators!==te||g.modifiers!==Ve||g.parameters!==Dn||g.body!==rt?F(be(te,Ve,Dn,rt),g):g}e.updateConstructor=Ge;function x(g,te,Ve,Dn,rt,p){var Be=o(162);return Be.decorators=Ra(g),Be.modifiers=Ra(te),Be.name=zi(Ve),Be.typeParameters=void 0,Be.parameters=qe(Dn),Be.type=rt,Be.body=p,Be}e.createGetAccessor=x;function j(g,te,Ve,Dn,rt,p,Be){return g.decorators!==te||g.modifiers!==Ve||g.name!==Dn||g.parameters!==rt||g.type!==p||g.body!==Be?F(x(te,Ve,Dn,rt,p,Be),g):g}e.updateGetAccessor=j;function Oe(g,te,Ve,Dn,rt){var p=o(163);return p.decorators=Ra(g),p.modifiers=Ra(te),p.name=zi(Ve),p.typeParameters=void 0,p.parameters=qe(Dn),p.body=rt,p}e.createSetAccessor=Oe;function a(g,te,Ve,Dn,rt,p){return g.decorators!==te||g.modifiers!==Ve||g.name!==Dn||g.parameters!==rt||g.body!==p?F(Oe(te,Ve,Dn,rt,p),g):g}e.updateSetAccessor=a;function en(g,te,Ve){return Je(164,g,te,Ve)}e.createCallSignature=en;function Pn(g,te,Ve,Dn){return Ze(g,te,Ve,Dn)}e.updateCallSignature=Pn;function Xn(g,te,Ve){return Je(165,g,te,Ve)}e.createConstructSignature=Xn;function ae(g,te,Ve,Dn){return Ze(g,te,Ve,Dn)}e.updateConstructSignature=ae;function ce(g,te,Ve,Dn){var rt=o(166);return rt.decorators=Ra(g),rt.modifiers=Ra(te),rt.parameters=qe(Ve),rt.type=Dn,rt}e.createIndexSignature=ce;function Le(g,te,Ve,Dn,rt){return g.parameters!==Dn||g.type!==rt||g.decorators!==te||g.modifiers!==Ve?F(ce(te,Ve,Dn,rt),g):g}e.updateIndexSignature=Le;function Je(g,te,Ve,Dn,rt){var p=o(g);return p.typeParameters=Ra(te),p.parameters=Ra(Ve),p.type=Dn,p.typeArguments=Ra(rt),p}e.createSignatureDeclaration=Je;function Ze(g,te,Ve,Dn){return g.typeParameters!==te||g.parameters!==Ve||g.type!==Dn?F(Je(g.kind,te,Ve,Dn),g):g}function Ue(g){return o(g)}e.createKeywordTypeNode=Ue;function cn(g,te){return $e(void 0,g,te)}e.createTypePredicateNode=cn;function $e(g,te,Ve){var Dn=o(167);return Dn.assertsModifier=g,Dn.parameterName=zi(te),Dn.type=Ve,Dn}e.createTypePredicateNodeWithModifier=$e;function sn(g,te,Ve){return he(g,g.assertsModifier,te,Ve)}e.updateTypePredicateNode=sn;function he(g,te,Ve,Dn){return g.assertsModifier!==te||g.parameterName!==Ve||g.type!==Dn?F($e(te,Ve,Dn),g):g}e.updateTypePredicateNodeWithModifier=he;function ke(g,te){var Ve=o(168);return Ve.typeName=zi(g),Ve.typeArguments=te&&e.parenthesizeTypeParameters(te),Ve}e.createTypeReferenceNode=ke;function G(g,te,Ve){return g.typeName!==te||g.typeArguments!==Ve?F(ke(te,Ve),g):g}e.updateTypeReferenceNode=G;function c(g,te,Ve){return Je(169,g,te,Ve)}e.createFunctionTypeNode=c;function O(g,te,Ve,Dn){return Ze(g,te,Ve,Dn)}e.updateFunctionTypeNode=O;function ee(g,te,Ve){return Je(170,g,te,Ve)}e.createConstructorTypeNode=ee;function Te(g,te,Ve,Dn){return Ze(g,te,Ve,Dn)}e.updateConstructorTypeNode=Te;function Ne(g){var te=o(171);return te.exprName=g,te}e.createTypeQueryNode=Ne;function ze(g,te){return g.exprName!==te?F(Ne(te),g):g}e.updateTypeQueryNode=ze;function bn(g){var te=o(172);return te.members=qe(g),te}e.createTypeLiteralNode=bn;function Sn(g,te){return g.members!==te?F(bn(te),g):g}e.updateTypeLiteralNode=Sn;function Kn(g){var te=o(173);return te.elementType=e.parenthesizeArrayTypeMember(g),te}e.createArrayTypeNode=Kn;function Xe(g,te){return g.elementType!==te?F(Kn(te),g):g}e.updateArrayTypeNode=Xe;function pn(g){var te=o(174);return te.elementTypes=qe(g),te}e.createTupleTypeNode=pn;function le(g,te){return g.elementTypes!==te?F(pn(te),g):g}e.updateTupleTypeNode=le;function oe(g){var te=o(175);return te.type=e.parenthesizeArrayTypeMember(g),te}e.createOptionalTypeNode=oe;function kn(g,te){return g.type!==te?F(oe(te),g):g}e.updateOptionalTypeNode=kn;function yn(g){var te=o(176);return te.type=g,te}e.createRestTypeNode=yn;function ye(g,te){return g.type!==te?F(yn(te),g):g}e.updateRestTypeNode=ye;function mn(g){return Vn(177,g)}e.createUnionTypeNode=mn;function un(g,te){return ut(g,te)}e.updateUnionTypeNode=un;function Mn(g){return Vn(178,g)}e.createIntersectionTypeNode=Mn;function tt(g,te){return ut(g,te)}e.updateIntersectionTypeNode=tt;function Vn(g,te){var Ve=o(g);return Ve.types=e.parenthesizeElementTypeMembers(te),Ve}e.createUnionOrIntersectionTypeNode=Vn;function ut(g,te){return g.types!==te?F(Vn(g.kind,te),g):g}function dt(g,te,Ve,Dn){var rt=o(179);return rt.checkType=e.parenthesizeConditionalTypeMember(g),rt.extendsType=e.parenthesizeConditionalTypeMember(te),rt.trueType=Ve,rt.falseType=Dn,rt}e.createConditionalTypeNode=dt;function ot(g,te,Ve,Dn,rt){return g.checkType!==te||g.extendsType!==Ve||g.trueType!==Dn||g.falseType!==rt?F(dt(te,Ve,Dn,rt),g):g}e.updateConditionalTypeNode=ot;function ct(g){var te=o(180);return te.typeParameter=g,te}e.createInferTypeNode=ct;function wt(g,te){return g.typeParameter!==te?F(ct(te),g):g}e.updateInferTypeNode=wt;function st(g,te,Ve,Dn){var rt=o(187);return rt.argument=g,rt.qualifier=te,rt.typeArguments=e.parenthesizeTypeParameters(Ve),rt.isTypeOf=Dn,rt}e.createImportTypeNode=st;function qn(g,te,Ve,Dn,rt){return g.argument!==te||g.qualifier!==Ve||g.typeArguments!==Dn||g.isTypeOf!==rt?F(st(te,Ve,Dn,rt),g):g}e.updateImportTypeNode=qn;function Ie(g){var te=o(181);return te.type=g,te}e.createParenthesizedType=Ie;function De(g,te){return g.type!==te?F(Ie(te),g):g}e.updateParenthesizedType=De;function _n(){return o(182)}e.createThisTypeNode=_n;function _t(g,te){var Ve=o(183);return Ve.operator=typeof g=="number"?g:133,Ve.type=e.parenthesizeElementTypeMember(typeof g=="number"?te:g),Ve}e.createTypeOperatorNode=_t;function It(g,te){return g.type!==te?F(_t(g.operator,te),g):g}e.updateTypeOperatorNode=It;function Ht(g,te){var Ve=o(184);return Ve.objectType=e.parenthesizeElementTypeMember(g),Ve.indexType=te,Ve}e.createIndexedAccessTypeNode=Ht;function nr(g,te,Ve){return g.objectType!==te||g.indexType!==Ve?F(Ht(te,Ve),g):g}e.updateIndexedAccessTypeNode=nr;function vr(g,te,Ve,Dn){var rt=o(185);return rt.readonlyToken=g,rt.typeParameter=te,rt.questionToken=Ve,rt.type=Dn,rt}e.createMappedTypeNode=vr;function Qr(g,te,Ve,Dn,rt){return g.readonlyToken!==te||g.typeParameter!==Ve||g.questionToken!==Dn||g.type!==rt?F(vr(te,Ve,Dn,rt),g):g}e.updateMappedTypeNode=Qr;function Wr(g){var te=o(186);return te.literal=g,te}e.createLiteralTypeNode=Wr;function gt(g,te){return g.literal!==te?F(Wr(te),g):g}e.updateLiteralTypeNode=gt;function ba(g){var te=o(188);return te.elements=qe(g),te}e.createObjectBindingPattern=ba;function kt(g,te){return g.elements!==te?F(ba(te),g):g}e.updateObjectBindingPattern=kt;function jn(g){var te=o(189);return te.elements=qe(g),te}e.createArrayBindingPattern=jn;function Ut(g,te){return g.elements!==te?F(jn(te),g):g}e.updateArrayBindingPattern=Ut;function ft(g,te,Ve,Dn){var rt=o(190);return rt.dotDotDotToken=g,rt.propertyName=zi(te),rt.name=zi(Ve),rt.initializer=Dn,rt}e.createBindingElement=ft;function Tt(g,te,Ve,Dn,rt){return g.propertyName!==Ve||g.dotDotDotToken!==te||g.name!==Dn||g.initializer!==rt?F(ft(te,Ve,Dn,rt),g):g}e.updateBindingElement=Tt;function yt(g,te){var Ve=o(191);return Ve.elements=e.parenthesizeListElements(qe(g)),te&&(Ve.multiLine=!0),Ve}e.createArrayLiteral=yt;function vt(g,te){return g.elements!==te?F(yt(te,g.multiLine),g):g}e.updateArrayLiteral=vt;function Ke(g,te){var Ve=o(192);return Ve.properties=qe(g),te&&(Ve.multiLine=!0),Ve}e.createObjectLiteral=Ke;function Rn(g,te){return g.properties!==te?F(Ke(te,g.multiLine),g):g}e.updateObjectLiteral=Rn;function nt(g,te){var Ve=o(193);return Ve.expression=e.parenthesizeForAccess(g),Ve.name=zi(te),oc(Ve,131072),Ve}e.createPropertyAccess=nt;function tr(g,te,Ve){return e.isOptionalChain(g)?Ba(g,te,g.questionDotToken,Ve):g.expression!==te||g.name!==Ve?F(oc(nt(te,Ve),e.getEmitFlags(g)),g):g}e.updatePropertyAccess=tr;function xa(g,te,Ve){var Dn=o(193);return Dn.flags|=32,Dn.expression=e.parenthesizeForAccess(g),Dn.questionDotToken=te,Dn.name=zi(Ve),oc(Dn,131072),Dn}e.createPropertyAccessChain=xa;function Ba(g,te,Ve,Dn){return e.Debug.assert(!!(g.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),g.expression!==te||g.questionDotToken!==Ve||g.name!==Dn?F(oc(xa(te,Ve,Dn),e.getEmitFlags(g)),g):g}e.updatePropertyAccessChain=Ba;function ai(g,te){var Ve=o(194);return Ve.expression=e.parenthesizeForAccess(g),Ve.argumentExpression=Hl(te),Ve}e.createElementAccess=ai;function wi(g,te,Ve){return e.isOptionalChain(g)?Ei(g,te,g.questionDotToken,Ve):g.expression!==te||g.argumentExpression!==Ve?F(ai(te,Ve),g):g}e.updateElementAccess=wi;function Ai(g,te,Ve){var Dn=o(194);return Dn.flags|=32,Dn.expression=e.parenthesizeForAccess(g),Dn.questionDotToken=te,Dn.argumentExpression=Hl(Ve),Dn}e.createElementAccessChain=Ai;function Ei(g,te,Ve,Dn){return e.Debug.assert(!!(g.flags&32),"Cannot update an ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),g.expression!==te||g.questionDotToken!==Ve||g.argumentExpression!==Dn?F(Ai(te,Ve,Dn),g):g}e.updateElementAccessChain=Ei;function Pi(g,te,Ve){var Dn=o(195);return Dn.expression=e.parenthesizeForAccess(g),Dn.typeArguments=Ra(te),Dn.arguments=e.parenthesizeListElements(qe(Ve)),Dn}e.createCall=Pi;function Xa(g,te,Ve,Dn){return e.isOptionalChain(g)?ca(g,te,g.questionDotToken,Ve,Dn):g.expression!==te||g.typeArguments!==Ve||g.arguments!==Dn?F(Pi(te,Ve,Dn),g):g}e.updateCall=Xa;function Ia(g,te,Ve,Dn){var rt=o(195);return rt.flags|=32,rt.expression=e.parenthesizeForAccess(g),rt.questionDotToken=te,rt.typeArguments=Ra(Ve),rt.arguments=e.parenthesizeListElements(qe(Dn)),rt}e.createCallChain=Ia;function ca(g,te,Ve,Dn,rt){return e.Debug.assert(!!(g.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),g.expression!==te||g.questionDotToken!==Ve||g.typeArguments!==Dn||g.arguments!==rt?F(Ia(te,Ve,Dn,rt),g):g}e.updateCallChain=ca;function Ti(g,te,Ve){var Dn=o(196);return Dn.expression=e.parenthesizeForNew(g),Dn.typeArguments=Ra(te),Dn.arguments=Ve?e.parenthesizeListElements(qe(Ve)):void 0,Dn}e.createNew=Ti;function Vo(g,te,Ve,Dn){return g.expression!==te||g.typeArguments!==Ve||g.arguments!==Dn?F(Ti(te,Ve,Dn),g):g}e.updateNew=Vo;function mo(g,te,Ve){var Dn=o(197);return Dn.tag=e.parenthesizeForAccess(g),Ve?(Dn.typeArguments=Ra(te),Dn.template=Ve):(Dn.typeArguments=void 0,Dn.template=te),Dn}e.createTaggedTemplate=mo;function Ro(g,te,Ve,Dn){return g.tag!==te||(Dn?g.typeArguments!==Ve||g.template!==Dn:g.typeArguments!==void 0||g.template!==Ve)?F(mo(te,Ve,Dn),g):g}e.updateTaggedTemplate=Ro;function uo(g,te){var Ve=o(198);return Ve.type=g,Ve.expression=e.parenthesizePrefixOperand(te),Ve}e.createTypeAssertion=uo;function ui(g,te,Ve){return g.type!==te||g.expression!==Ve?F(uo(te,Ve),g):g}e.updateTypeAssertion=ui;function Gi(g){var te=o(199);return te.expression=g,te}e.createParen=Gi;function ji(g,te){return g.expression!==te?F(Gi(te),g):g}e.updateParen=ji;function Fo(g,te,Ve,Dn,rt,p,Be){var Nn=o(200);return Nn.modifiers=Ra(g),Nn.asteriskToken=te,Nn.name=zi(Ve),Nn.typeParameters=Ra(Dn),Nn.parameters=qe(rt),Nn.type=p,Nn.body=Be,Nn}e.createFunctionExpression=Fo;function ko(g,te,Ve,Dn,rt,p,Be,Nn){return g.name!==Dn||g.modifiers!==te||g.asteriskToken!==Ve||g.typeParameters!==rt||g.parameters!==p||g.type!==Be||g.body!==Nn?F(Fo(te,Ve,Dn,rt,p,Be,Nn),g):g}e.updateFunctionExpression=ko;function bo(g,te,Ve,Dn,rt,p){var Be=o(201);return Be.modifiers=Ra(g),Be.typeParameters=Ra(te),Be.parameters=qe(Ve),Be.type=Dn,Be.equalsGreaterThanToken=rt||Y(38),Be.body=e.parenthesizeConciseBody(p),Be}e.createArrowFunction=bo;function Ri(g,te,Ve,Dn,rt,p,Be){return g.modifiers!==te||g.typeParameters!==Ve||g.parameters!==Dn||g.type!==rt||g.equalsGreaterThanToken!==p||g.body!==Be?F(bo(te,Ve,Dn,rt,p,Be),g):g}e.updateArrowFunction=Ri;function xt(g){var te=o(202);return te.expression=e.parenthesizePrefixOperand(g),te}e.createDelete=xt;function Kt(g,te){return g.expression!==te?F(xt(te),g):g}e.updateDelete=Kt;function _r(g){var te=o(203);return te.expression=e.parenthesizePrefixOperand(g),te}e.createTypeOf=_r;function Jr(g,te){return g.expression!==te?F(_r(te),g):g}e.updateTypeOf=Jr;function va(g){var te=o(204);return te.expression=e.parenthesizePrefixOperand(g),te}e.createVoid=va;function Na(g,te){return g.expression!==te?F(va(te),g):g}e.updateVoid=Na;function qr(g){var te=o(205);return te.expression=e.parenthesizePrefixOperand(g),te}e.createAwait=qr;function hi(g,te){return g.expression!==te?F(qr(te),g):g}e.updateAwait=hi;function Ii(g,te){var Ve=o(206);return Ve.operator=g,Ve.operand=e.parenthesizePrefixOperand(te),Ve}e.createPrefix=Ii;function gi(g,te){return g.operand!==te?F(Ii(g.operator,te),g):g}e.updatePrefix=gi;function ua(g,te){var Ve=o(207);return Ve.operand=e.parenthesizePostfixOperand(g),Ve.operator=te,Ve}e.createPostfix=ua;function tn(g,te){return g.operand!==te?F(ua(te,g.operator),g):g}e.updatePostfix=tn;function vn(g,te,Ve){var Dn=o(208),rt=wc(te),p=rt.kind;return Dn.left=e.parenthesizeBinaryOperand(p,g,!0,void 0),Dn.operatorToken=rt,Dn.right=e.parenthesizeBinaryOperand(p,Ve,!1,Dn.left),Dn}e.createBinary=vn;function Ln(g,te,Ve,Dn){return g.left!==te||g.right!==Ve?F(vn(te,Dn||g.operatorToken,Ve),g):g}e.updateBinary=Ln;function Bn(g,te,Ve,Dn,rt){var p=o(209);return p.condition=e.parenthesizeForConditionalHead(g),p.questionToken=rt?te:Y(57),p.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(rt?Ve:te),p.colonToken=rt?Dn:Y(58),p.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(rt||Ve),p}e.createConditional=Bn;function Pt(g,te,Ve,Dn,rt,p){return g.condition!==te||g.questionToken!==Ve||g.whenTrue!==Dn||g.colonToken!==rt||g.whenFalse!==p?F(Bn(te,Ve,Dn,rt,p),g):g}e.updateConditional=Pt;function rr(g,te){var Ve=o(210);return Ve.head=g,Ve.templateSpans=qe(te),Ve}e.createTemplateExpression=rr;function cr(g,te,Ve){return g.head!==te||g.templateSpans!==Ve?F(rr(te,Ve),g):g}e.updateTemplateExpression=cr;var Cr,Ya={};function Oa(g,te){Cr||(Cr=e.createScanner(99,!1,0));switch(g){case 14:Cr.setText("`"+te+"`");break;case 15:Cr.setText("`"+te+"${");break;case 16:Cr.setText("}"+te+"${");break;case 17:Cr.setText("}"+te+"`");break}var Ve=Cr.scan();if(Ve===23&&(Ve=Cr.reScanTemplateToken()),Cr.isUnterminated())return Cr.setText(void 0),Ya;var Dn;switch(Ve){case 14:case 15:case 16:case 17:Dn=Cr.getTokenValue();break}return Cr.scan()!==1?(Cr.setText(void 0),Ya):(Cr.setText(void 0),Dn)}function Ni(g,te,Ve){var Dn=o(g);if(Dn.text=te,Ve===void 0||te===Ve)Dn.rawText=Ve;else{var rt=Oa(g,Ve);if(typeof rt=="object")return e.Debug.fail("Invalid raw text");e.Debug.assert(te===rt,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'."),Dn.rawText=Ve}return Dn}function ii(g,te){var Ve=Ni(15,g,te);return Ve.text=g,Ve}e.createTemplateHead=ii;function _i(g,te){var Ve=Ni(16,g,te);return Ve.text=g,Ve}e.createTemplateMiddle=_i;function Ye(g,te){var Ve=Ni(17,g,te);return Ve.text=g,Ve}e.createTemplateTail=Ye;function zn(g,te){var Ve=Ni(14,g,te);return Ve}e.createNoSubstitutionTemplateLiteral=zn;function ge(g,te){var Ve=o(211);return Ve.asteriskToken=g&&g.kind===41?g:void 0,Ve.expression=g&&g.kind!==41?g:te,Ve}e.createYield=ge;function hn(g,te,Ve){return g.expression!==Ve||g.asteriskToken!==te?F(ge(te,Ve),g):g}e.updateYield=hn;function Jn(g){var te=o(212);return te.expression=e.parenthesizeExpressionForList(g),te}e.createSpread=Jn;function ue(g,te){return g.expression!==te?F(Jn(te),g):g}e.updateSpread=ue;function rn(g,te,Ve,Dn,rt){var p=o(213);return p.decorators=void 0,p.modifiers=Ra(g),p.name=zi(te),p.typeParameters=Ra(Ve),p.heritageClauses=Ra(Dn),p.members=qe(rt),p}e.createClassExpression=rn;function Cn(g,te,Ve,Dn,rt,p){return g.modifiers!==te||g.name!==Ve||g.typeParameters!==Dn||g.heritageClauses!==rt||g.members!==p?F(rn(te,Ve,Dn,rt,p),g):g}e.updateClassExpression=Cn;function Zn(){return o(214)}e.createOmittedExpression=Zn;function lt(g,te){var Ve=o(215);return Ve.expression=e.parenthesizeForAccess(te),Ve.typeArguments=Ra(g),Ve}e.createExpressionWithTypeArguments=lt;function Rt(g,te,Ve){return g.typeArguments!==te||g.expression!==Ve?F(lt(te,Ve),g):g}e.updateExpressionWithTypeArguments=Rt;function an(g,te){var Ve=o(216);return Ve.expression=g,Ve.type=te,Ve}e.createAsExpression=an;function Dr(g,te,Ve){return g.expression!==te||g.type!==Ve?F(an(te,Ve),g):g}e.updateAsExpression=Dr;function da(g){var te=o(217);return te.expression=e.parenthesizeForAccess(g),te}e.createNonNullExpression=da;function Ha(g,te){return g.expression!==te?F(da(te),g):g}e.updateNonNullExpression=Ha;function to(g,te){var Ve=o(218);return Ve.keywordToken=g,Ve.name=te,Ve}e.createMetaProperty=to;function ga(g,te){return g.name!==te?F(to(g.keywordToken,te),g):g}e.updateMetaProperty=ga;function Yo(g,te){var Ve=o(220);return Ve.expression=g,Ve.literal=te,Ve}e.createTemplateSpan=Yo;function Co(g,te,Ve){return g.expression!==te||g.literal!==Ve?F(Yo(te,Ve),g):g}e.updateTemplateSpan=Co;function Rs(){return o(221)}e.createSemicolonClassElement=Rs;function vs(g,te){var Ve=o(222);return Ve.statements=qe(g),te&&(Ve.multiLine=te),Ve}e.createBlock=vs;function ml(g,te){return g.statements!==te?F(vs(te,g.multiLine),g):g}e.updateBlock=ml;function Fs(g,te){var Ve=o(224);return Ve.decorators=void 0,Ve.modifiers=Ra(g),Ve.declarationList=e.isArray(te)?$i(te):te,Ve}e.createVariableStatement=Fs;function Il(g,te,Ve){return g.modifiers!==te||g.declarationList!==Ve?F(Fs(te,Ve),g):g}e.updateVariableStatement=Il;function es(){return o(223)}e.createEmptyStatement=es;function hl(g){var te=o(225);return te.expression=e.parenthesizeExpressionForExpressionStatement(g),te}e.createExpressionStatement=hl;function Ul(g,te){return g.expression!==te?F(hl(te),g):g}e.updateExpressionStatement=Ul,e.createStatement=hl,e.updateStatement=Ul;function gl(g,te,Ve){var Dn=o(226);return Dn.expression=g,Dn.thenStatement=us(te),Dn.elseStatement=us(Ve),Dn}e.createIf=gl;function ho(g,te,Ve,Dn){return g.expression!==te||g.thenStatement!==Ve||g.elseStatement!==Dn?F(gl(te,Ve,Dn),g):g}e.updateIf=ho;function Is(g,te){var Ve=o(227);return Ve.statement=us(g),Ve.expression=te,Ve}e.createDo=Is;function Ns(g,te,Ve){return g.statement!==te||g.expression!==Ve?F(Is(te,Ve),g):g}e.updateDo=Ns;function bs(g,te){var Ve=o(228);return Ve.expression=g,Ve.statement=us(te),Ve}e.createWhile=bs;function yl(g,te,Ve){return g.expression!==te||g.statement!==Ve?F(bs(te,Ve),g):g}e.updateWhile=yl;function Ks(g,te,Ve,Dn){var rt=o(229);return rt.initializer=g,rt.condition=te,rt.incrementor=Ve,rt.statement=us(Dn),rt}e.createFor=Ks;function qs(g,te,Ve,Dn,rt){return g.initializer!==te||g.condition!==Ve||g.incrementor!==Dn||g.statement!==rt?F(Ks(te,Ve,Dn,rt),g):g}e.updateFor=qs;function $s(g,te,Ve){var Dn=o(230);return Dn.initializer=g,Dn.expression=te,Dn.statement=us(Ve),Dn}e.createForIn=$s;function el(g,te,Ve,Dn){return g.initializer!==te||g.expression!==Ve||g.statement!==Dn?F($s(te,Ve,Dn),g):g}e.updateForIn=el;function nl(g,te,Ve,Dn){var rt=o(231);return rt.awaitModifier=g,rt.initializer=te,rt.expression=e.isCommaSequence(Ve)?Gi(Ve):Ve,rt.statement=us(Dn),rt}e.createForOf=nl;function Fn(g,te,Ve,Dn,rt){return g.awaitModifier!==te||g.initializer!==Ve||g.expression!==Dn||g.statement!==rt?F(nl(te,Ve,Dn,rt),g):g}e.updateForOf=Fn;function $n(g){var te=o(232);return te.label=zi(g),te}e.createContinue=$n;function ht(g,te){return g.label!==te?F($n(te),g):g}e.updateContinue=ht;function Qn(g){var te=o(233);return te.label=zi(g),te}e.createBreak=Qn;function Qt(g,te){return g.label!==te?F(Qn(te),g):g}e.updateBreak=Qt;function yr(g){var te=o(234);return te.expression=g,te}e.createReturn=yr;function Br(g,te){return g.expression!==te?F(yr(te),g):g}e.updateReturn=Br;function Lr(g,te){var Ve=o(235);return Ve.expression=g,Ve.statement=us(te),Ve}e.createWith=Lr;function kr(g,te,Ve){return g.expression!==te||g.statement!==Ve?F(Lr(te,Ve),g):g}e.updateWith=kr;function Pr(g,te){var Ve=o(236);return Ve.expression=e.parenthesizeExpressionForList(g),Ve.caseBlock=te,Ve}e.createSwitch=Pr;function Er(g,te,Ve){return g.expression!==te||g.caseBlock!==Ve?F(Pr(te,Ve),g):g}e.updateSwitch=Er;function fa(g,te){var Ve=o(237);return Ve.label=zi(g),Ve.statement=us(te),Ve}e.createLabel=fa;function Da(g,te,Ve){return g.label!==te||g.statement!==Ve?F(fa(te,Ve),g):g}e.updateLabel=Da;function Fa(g){var te=o(238);return te.expression=g,te}e.createThrow=Fa;function vi(g,te){return g.expression!==te?F(Fa(te),g):g}e.updateThrow=vi;function Eo(g,te,Ve){var Dn=o(239);return Dn.tryBlock=g,Dn.catchClause=te,Dn.finallyBlock=Ve,Dn}e.createTry=Eo;function pi(g,te,Ve,Dn){return g.tryBlock!==te||g.catchClause!==Ve||g.finallyBlock!==Dn?F(Eo(te,Ve,Dn),g):g}e.updateTry=pi;function Io(){return o(240)}e.createDebuggerStatement=Io;function qi(g,te,Ve){var Dn=o(241);return Dn.name=zi(g),Dn.type=te,Dn.initializer=Ve!==void 0?e.parenthesizeExpressionForList(Ve):void 0,Dn}e.createVariableDeclaration=qi;function wn(g,te,Ve,Dn){return g.name!==te||g.type!==Ve||g.initializer!==Dn?F(qi(te,Ve,Dn),g):g}e.updateVariableDeclaration=wn;function $i(g,te){te===void 0&&(te=0);var Ve=o(242);return Ve.flags|=te&3,Ve.declarations=qe(g),Ve}e.createVariableDeclarationList=$i;function Go(g,te){return g.declarations!==te?F($i(te,g.flags),g):g}e.updateVariableDeclarationList=Go;function Ho(g,te,Ve,Dn,rt,p,Be,Nn){var bt=o(243);return bt.decorators=Ra(g),bt.modifiers=Ra(te),bt.asteriskToken=Ve,bt.name=zi(Dn),bt.typeParameters=Ra(rt),bt.parameters=qe(p),bt.type=Be,bt.body=Nn,bt}e.createFunctionDeclaration=Ho;function Va(g,te,Ve,Dn,rt,p,Be,Nn,bt){return g.decorators!==te||g.modifiers!==Ve||g.asteriskToken!==Dn||g.name!==rt||g.typeParameters!==p||g.parameters!==Be||g.type!==Nn||g.body!==bt?F(Ho(te,Ve,Dn,rt,p,Be,Nn,bt),g):g}e.updateFunctionDeclaration=Va;function Es(g,te,Ve,Dn,rt,p){var Be=o(244);return Be.decorators=Ra(g),Be.modifiers=Ra(te),Be.name=zi(Ve),Be.typeParameters=Ra(Dn),Be.heritageClauses=Ra(rt),Be.members=qe(p),Be}e.createClassDeclaration=Es;function me(g,te,Ve,Dn,rt,p,Be){return g.decorators!==te||g.modifiers!==Ve||g.name!==Dn||g.typeParameters!==rt||g.heritageClauses!==p||g.members!==Be?F(Es(te,Ve,Dn,rt,p,Be),g):g}e.updateClassDeclaration=me;function En(g,te,Ve,Dn,rt,p){var Be=o(245);return Be.decorators=Ra(g),Be.modifiers=Ra(te),Be.name=zi(Ve),Be.typeParameters=Ra(Dn),Be.heritageClauses=Ra(rt),Be.members=qe(p),Be}e.createInterfaceDeclaration=En;function et(g,te,Ve,Dn,rt,p,Be){return g.decorators!==te||g.modifiers!==Ve||g.name!==Dn||g.typeParameters!==rt||g.heritageClauses!==p||g.members!==Be?F(En(te,Ve,Dn,rt,p,Be),g):g}e.updateInterfaceDeclaration=et;function Gt(g,te,Ve,Dn,rt){var p=o(246);return p.decorators=Ra(g),p.modifiers=Ra(te),p.name=zi(Ve),p.typeParameters=Ra(Dn),p.type=rt,p}e.createTypeAliasDeclaration=Gt;function br(g,te,Ve,Dn,rt,p){return g.decorators!==te||g.modifiers!==Ve||g.name!==Dn||g.typeParameters!==rt||g.type!==p?F(Gt(te,Ve,Dn,rt,p),g):g}e.updateTypeAliasDeclaration=br;function ya(g,te,Ve,Dn){var rt=o(247);return rt.decorators=Ra(g),rt.modifiers=Ra(te),rt.name=zi(Ve),rt.members=qe(Dn),rt}e.createEnumDeclaration=ya;function oi(g,te,Ve,Dn,rt){return g.decorators!==te||g.modifiers!==Ve||g.name!==Dn||g.members!==rt?F(ya(te,Ve,Dn,rt),g):g}e.updateEnumDeclaration=oi;function za(g,te,Ve,Dn,rt){rt===void 0&&(rt=0);var p=o(248);return p.flags|=rt&(16|4|1024),p.decorators=Ra(g),p.modifiers=Ra(te),p.name=Ve,p.body=Dn,p}e.createModuleDeclaration=za;function ki(g,te,Ve,Dn,rt){return g.decorators!==te||g.modifiers!==Ve||g.name!==Dn||g.body!==rt?F(za(te,Ve,Dn,rt,g.flags),g):g}e.updateModuleDeclaration=ki;function eo(g){var te=o(249);return te.statements=qe(g),te}e.createModuleBlock=eo;function ea(g,te){return g.statements!==te?F(eo(te),g):g}e.updateModuleBlock=ea;function Ir(g){var te=o(250);return te.clauses=qe(g),te}e.createCaseBlock=Ir;function To(g,te){return g.clauses!==te?F(Ir(te),g):g}e.updateCaseBlock=To;function Uo(g){var te=o(251);return te.name=zi(g),te}e.createNamespaceExportDeclaration=Uo;function tl(g,te){return g.name!==te?F(Uo(te),g):g}e.updateNamespaceExportDeclaration=tl;function Qo(g,te,Ve,Dn){var rt=o(252);return rt.decorators=Ra(g),rt.modifiers=Ra(te),rt.name=zi(Ve),rt.moduleReference=Dn,rt}e.createImportEqualsDeclaration=Qo;function co(g,te,Ve,Dn,rt){return g.decorators!==te||g.modifiers!==Ve||g.name!==Dn||g.moduleReference!==rt?F(Qo(te,Ve,Dn,rt),g):g}e.updateImportEqualsDeclaration=co;function Bs(g,te,Ve,Dn){var rt=o(253);return rt.decorators=Ra(g),rt.modifiers=Ra(te),rt.importClause=Ve,rt.moduleSpecifier=Dn,rt}e.createImportDeclaration=Bs;function Ts(g,te,Ve,Dn,rt){return g.decorators!==te||g.modifiers!==Ve||g.importClause!==Dn||g.moduleSpecifier!==rt?F(Bs(te,Ve,Dn,rt),g):g}e.updateImportDeclaration=Ts;function Nc(g,te){var Ve=o(254);return Ve.name=g,Ve.namedBindings=te,Ve}e.createImportClause=Nc;function _l(g,te,Ve){return g.name!==te||g.namedBindings!==Ve?F(Nc(te,Ve),g):g}e.updateImportClause=_l;function yc(g){var te=o(255);return te.name=g,te}e.createNamespaceImport=yc;function Ql(g,te){return g.name!==te?F(yc(te),g):g}e.updateNamespaceImport=Ql;function rl(g){var te=o(256);return te.elements=qe(g),te}e.createNamedImports=rl;function Js(g,te){return g.elements!==te?F(rl(te),g):g}e.updateNamedImports=Js;function Oc(g,te){var Ve=o(257);return Ve.propertyName=g,Ve.name=te,Ve}e.createImportSpecifier=Oc;function au(g,te,Ve){return g.propertyName!==te||g.name!==Ve?F(Oc(te,Ve),g):g}e.updateImportSpecifier=au;function Pc(g,te,Ve,Dn){var rt=o(258);return rt.decorators=Ra(g),rt.modifiers=Ra(te),rt.isExportEquals=Ve,rt.expression=Ve?e.parenthesizeBinaryOperand(62,Dn,!1,void 0):e.parenthesizeDefaultExpression(Dn),rt}e.createExportAssignment=Pc;function iu(g,te,Ve,Dn){return g.decorators!==te||g.modifiers!==Ve||g.expression!==Dn?F(Pc(te,Ve,g.isExportEquals,Dn),g):g}e.updateExportAssignment=iu;function Zl(g,te,Ve,Dn){var rt=o(259);return rt.decorators=Ra(g),rt.modifiers=Ra(te),rt.exportClause=Ve,rt.moduleSpecifier=Dn,rt}e.createExportDeclaration=Zl;function zs(g,te,Ve,Dn,rt){return g.decorators!==te||g.modifiers!==Ve||g.exportClause!==Dn||g.moduleSpecifier!==rt?F(Zl(te,Ve,Dn,rt),g):g}e.updateExportDeclaration=zs;function Mc(){return Zl(void 0,void 0,Nl([]),void 0)}e.createEmptyExports=Mc;function Nl(g){var te=o(260);return te.elements=qe(g),te}e.createNamedExports=Nl;function Ss(g,te){return g.elements!==te?F(Nl(te),g):g}e.updateNamedExports=Ss;function Rc(g,te){var Ve=o(261);return Ve.propertyName=zi(g),Ve.name=zi(te),Ve}e.createExportSpecifier=Rc;function $l(g,te,Ve){return g.propertyName!==te||g.name!==Ve?F(Rc(te,Ve),g):g}e.updateExportSpecifier=$l;function _c(g){var te=o(263);return te.expression=g,te}e.createExternalModuleReference=_c;function ou(g,te){return g.expression!==te?F(_c(te),g):g}e.updateExternalModuleReference=ou;function Iu(g){var te=o(292);return te.type=g,te}e.createJSDocTypeExpression=Iu;function su(g,te){var Ve=vc(313,"type");return Ve.typeExpression=g,Ve.comment=te,Ve}e.createJSDocTypeTag=su;function lu(g,te){var Ve=vc(311,"returns");return Ve.typeExpression=g,Ve.comment=te,Ve}e.createJSDocReturnTag=lu;function cu(g){var te=vc(312,"this");return te.typeExpression=g,te}e.createJSDocThisTag=cu;function Fc(g,te,Ve,Dn){var rt=vc(310,"param");return rt.typeExpression=Ve,rt.name=g,rt.isBracketed=te,rt.comment=Dn,rt}e.createJSDocParamTag=Fc;function Gc(g,te){var Ve=o(301);return Ve.comment=g,Ve.tags=te,Ve}e.createJSDocComment=Gc;function vc(g,te){var Ve=o(g);return Ve.tagName=Pe(te),Ve}function Bc(g,te,Ve){var Dn=o(264);return Dn.openingElement=g,Dn.children=qe(te),Dn.closingElement=Ve,Dn}e.createJsxElement=Bc;function uu(g,te,Ve,Dn){return g.openingElement!==te||g.children!==Ve||g.closingElement!==Dn?F(Bc(te,Ve,Dn),g):g}e.updateJsxElement=uu;function du(g,te,Ve){var Dn=o(265);return Dn.tagName=g,Dn.typeArguments=Ra(te),Dn.attributes=Ve,Dn}e.createJsxSelfClosingElement=du;function ec(g,te,Ve,Dn){return g.tagName!==te||g.typeArguments!==Ve||g.attributes!==Dn?F(du(te,Ve,Dn),g):g}e.updateJsxSelfClosingElement=ec;function Vc(g,te,Ve){var Dn=o(266);return Dn.tagName=g,Dn.typeArguments=Ra(te),Dn.attributes=Ve,Dn}e.createJsxOpeningElement=Vc;function al(g,te,Ve,Dn){return g.tagName!==te||g.typeArguments!==Ve||g.attributes!==Dn?F(Vc(te,Ve,Dn),g):g}e.updateJsxOpeningElement=al;function Xs(g){var te=o(267);return te.tagName=g,te}e.createJsxClosingElement=Xs;function l(g,te){return g.tagName!==te?F(Xs(te),g):g}e.updateJsxClosingElement=l;function E(g,te,Ve){var Dn=o(268);return Dn.openingFragment=g,Dn.children=qe(te),Dn.closingFragment=Ve,Dn}e.createJsxFragment=E;function M(g,te){var Ve=o(11);return Ve.text=g,Ve.containsOnlyTriviaWhiteSpaces=!!te,Ve}e.createJsxText=M;function Me(g,te,Ve){return g.text!==te||g.containsOnlyTriviaWhiteSpaces!==Ve?F(M(te,Ve),g):g}e.updateJsxText=Me;function on(){return o(269)}e.createJsxOpeningFragment=on;function fn(){return o(270)}e.createJsxJsxClosingFragment=fn;function Wn(g,te,Ve,Dn){return g.openingFragment!==te||g.children!==Ve||g.closingFragment!==Dn?F(E(te,Ve,Dn),g):g}e.updateJsxFragment=Wn;function Dt(g,te){var Ve=o(271);return Ve.name=g,Ve.initializer=te,Ve}e.createJsxAttribute=Dt;function Ft(g,te,Ve){return g.name!==te||g.initializer!==Ve?F(Dt(te,Ve),g):g}e.updateJsxAttribute=Ft;function Lt(g){var te=o(272);return te.properties=qe(g),te}e.createJsxAttributes=Lt;function mr(g,te){return g.properties!==te?F(Lt(te),g):g}e.updateJsxAttributes=mr;function fr(g){var te=o(273);return te.expression=g,te}e.createJsxSpreadAttribute=fr;function Hr(g,te){return g.expression!==te?F(fr(te),g):g}e.updateJsxSpreadAttribute=Hr;function ha(g,te){var Ve=o(274);return Ve.dotDotDotToken=g,Ve.expression=te,Ve}e.createJsxExpression=ha;function ia(g,te){return g.expression!==te?F(ha(g.dotDotDotToken,te),g):g}e.updateJsxExpression=ia;function Ka(g,te){var Ve=o(275);return Ve.expression=e.parenthesizeExpressionForList(g),Ve.statements=qe(te),Ve}e.createCaseClause=Ka;function ci(g,te,Ve){return g.expression!==te||g.statements!==Ve?F(Ka(te,Ve),g):g}e.updateCaseClause=ci;function ti(g){var te=o(276);return te.statements=qe(g),te}e.createDefaultClause=ti;function yi(g,te){return g.statements!==te?F(ti(te),g):g}e.updateDefaultClause=yi;function Xr(g,te){var Ve=o(277);return Ve.token=g,Ve.types=qe(te),Ve}e.createHeritageClause=Xr;function aa(g,te){return g.types!==te?F(Xr(g.token,te),g):g}e.updateHeritageClause=aa;function oa(g,te){var Ve=o(278);return Ve.variableDeclaration=e.isString(g)?qi(g):g,Ve.block=te,Ve}e.createCatchClause=oa;function ta(g,te,Ve){return g.variableDeclaration!==te||g.block!==Ve?F(oa(te,Ve),g):g}e.updateCatchClause=ta;function La(g,te){var Ve=o(279);return Ve.name=zi(g),Ve.questionToken=void 0,Ve.initializer=e.parenthesizeExpressionForList(te),Ve}e.createPropertyAssignment=La;function qa(g,te,Ve){return g.name!==te||g.initializer!==Ve?F(La(te,Ve),g):g}e.updatePropertyAssignment=qa;function ri(g,te){var Ve=o(280);return Ve.name=zi(g),Ve.objectAssignmentInitializer=te!==void 0?e.parenthesizeExpressionForList(te):void 0,Ve}e.createShorthandPropertyAssignment=ri;function ro(g,te,Ve){return g.name!==te||g.objectAssignmentInitializer!==Ve?F(ri(te,Ve),g):g}e.updateShorthandPropertyAssignment=ro;function Ja(g){var te=o(281);return te.expression=e.parenthesizeExpressionForList(g),te}e.createSpreadAssignment=Ja;function Ko(g,te){return g.expression!==te?F(Ja(te),g):g}e.updateSpreadAssignment=Ko;function zr(g,te){var Ve=o(282);return Ve.name=zi(g),Ve.initializer=te&&e.parenthesizeExpressionForList(te),Ve}e.createEnumMember=zr;function Yt(g,te,Ve){return g.name!==te||g.initializer!==Ve?F(zr(te,Ve),g):g}e.updateEnumMember=Yt;function xs(g,te,Ve,Dn,rt,p,Be){if(g.statements!==te||Ve!==void 0&&g.isDeclarationFile!==Ve||Dn!==void 0&&g.referencedFiles!==Dn||rt!==void 0&&g.typeReferenceDirectives!==rt||Be!==void 0&&g.libReferenceDirectives!==Be||p!==void 0&&g.hasNoDefaultLib!==p){var Nn=o(288);return Nn.flags|=g.flags,Nn.statements=qe(te),Nn.endOfFileToken=g.endOfFileToken,Nn.fileName=g.fileName,Nn.path=g.path,Nn.text=g.text,Nn.isDeclarationFile=Ve===void 0?g.isDeclarationFile:Ve,Nn.referencedFiles=Dn===void 0?g.referencedFiles:Dn,Nn.typeReferenceDirectives=rt===void 0?g.typeReferenceDirectives:rt,Nn.hasNoDefaultLib=p===void 0?g.hasNoDefaultLib:p,Nn.libReferenceDirectives=Be===void 0?g.libReferenceDirectives:Be,g.amdDependencies!==void 0&&(Nn.amdDependencies=g.amdDependencies),g.moduleName!==void 0&&(Nn.moduleName=g.moduleName),g.languageVariant!==void 0&&(Nn.languageVariant=g.languageVariant),g.renamedDependencies!==void 0&&(Nn.renamedDependencies=g.renamedDependencies),g.languageVersion!==void 0&&(Nn.languageVersion=g.languageVersion),g.scriptKind!==void 0&&(Nn.scriptKind=g.scriptKind),g.externalModuleIndicator!==void 0&&(Nn.externalModuleIndicator=g.externalModuleIndicator),g.commonJsModuleIndicator!==void 0&&(Nn.commonJsModuleIndicator=g.commonJsModuleIndicator),g.identifiers!==void 0&&(Nn.identifiers=g.identifiers),g.nodeCount!==void 0&&(Nn.nodeCount=g.nodeCount),g.identifierCount!==void 0&&(Nn.identifierCount=g.identifierCount),g.symbolCount!==void 0&&(Nn.symbolCount=g.symbolCount),g.parseDiagnostics!==void 0&&(Nn.parseDiagnostics=g.parseDiagnostics),g.bindDiagnostics!==void 0&&(Nn.bindDiagnostics=g.bindDiagnostics),g.bindSuggestionDiagnostics!==void 0&&(Nn.bindSuggestionDiagnostics=g.bindSuggestionDiagnostics),g.lineMap!==void 0&&(Nn.lineMap=g.lineMap),g.classifiableNames!==void 0&&(Nn.classifiableNames=g.classifiableNames),g.resolvedModules!==void 0&&(Nn.resolvedModules=g.resolvedModules),g.resolvedTypeReferenceDirectiveNames!==void 0&&(Nn.resolvedTypeReferenceDirectiveNames=g.resolvedTypeReferenceDirectiveNames),g.imports!==void 0&&(Nn.imports=g.imports),g.moduleAugmentations!==void 0&&(Nn.moduleAugmentations=g.moduleAugmentations),g.pragmas!==void 0&&(Nn.pragmas=g.pragmas),g.localJsxFactory!==void 0&&(Nn.localJsxFactory=g.localJsxFactory),g.localJsxNamespace!==void 0&&(Nn.localJsxNamespace=g.localJsxNamespace),F(Nn,g)}return g}e.updateSourceFileNode=xs;function zu(g){var te=Se(g);return te.pos=g.pos,te.end=g.end,te.parent=g.parent,te}e.getMutableClone=zu;function pd(g){var te=o(318);return te.original=g,Qs(te,g),te}e.createNotEmittedStatement=pd;function Nu(g){var te=o(322);return te.emitNode={},te.original=g,te}e.createEndOfDeclarationMarker=Nu;function bc(g){var te=o(321);return te.emitNode={},te.original=g,te}e.createMergeDeclarationMarker=bc;function nc(g,te){var Ve=o(319);return Ve.expression=g,Ve.original=te,Qs(Ve,te),Ve}e.createPartiallyEmittedExpression=nc;function sr(g,te){return g.expression!==te?F(nc(te,g.original),g):g}e.updatePartiallyEmittedExpression=sr;function jo(g){if(e.nodeIsSynthesized(g)&&!e.isParseTreeNode(g)&&!g.original&&!g.emitNode&&!g.id){if(g.kind===320)return g.elements;if(e.isBinaryExpression(g)&&g.operatorToken.kind===27)return[g.left,g.right]}return g}function _a(g){var te=o(320);return te.elements=qe(e.sameFlatMap(g,jo)),te}e.createCommaList=_a;function No(g,te){return g.elements!==te?F(_a(te),g):g}e.updateCommaList=No;function tc(g,te){var Ve=o(323);return Ve.expression=g,Ve.thisArg=te,Ve}e.createSyntheticReferenceExpression=tc;function ss(g,te,Ve){return g.expression!==te||g.thisArg!==Ve?F(tc(te,Ve),g):g}e.updateSyntheticReferenceExpression=ss;function ar(g,te){te===void 0&&(te=e.emptyArray);var Ve=e.createNode(289);return Ve.prepends=te,Ve.sourceFiles=g,Ve}e.createBundle=ar;var il;function Bo(){return il||(il=e.arrayToMap([e.valuesHelper,e.readHelper,e.spreadHelper,e.spreadArraysHelper,e.restHelper,e.decorateHelper,e.metadataHelper,e.paramHelper,e.awaiterHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.extendsHelper,e.templateObjectHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper],function(g){return g.name}))}function ws(){var g=e.createNode(290);return g.prologues=e.emptyArray,g.referencedFiles=e.emptyArray,g.libReferenceDirectives=e.emptyArray,g.getLineAndCharacterOfPosition=function(te){return e.getLineAndCharacterOfPosition(g,te)},g}function go(g,te,Ve){var Dn=ws(),rt,p;if(e.isString(g))Dn.fileName="",Dn.text=g,Dn.sourceMapPath=te,Dn.sourceMapText=Ve;else if(e.Debug.assert(te==="js"||te==="dts"),Dn.fileName=(te==="js"?g.javascriptPath:g.declarationPath)||"",Dn.sourceMapPath=te==="js"?g.javascriptMapPath:g.declarationMapPath,Object.defineProperties(Dn,{text:{get:function(){return te==="js"?g.javascriptText:g.declarationText}},sourceMapText:{get:function(){return te==="js"?g.javascriptMapText:g.declarationMapText}}}),g.buildInfo&&g.buildInfo.bundle&&(Dn.oldFileOfCurrentEmit=g.oldFileOfCurrentEmit,e.Debug.assert(Ve===void 0||typeof Ve=="boolean"),rt=Ve,p=te==="js"?g.buildInfo.bundle.js:g.buildInfo.bundle.dts,Dn.oldFileOfCurrentEmit))return Ec(Dn,e.Debug.assertDefined(p)),Dn;return e.Debug.assert(!Dn.oldFileOfCurrentEmit),Oo(Dn,p,rt),Dn}e.createUnparsedSourceFile=go;function Oo(g,te,Ve){for(var Dn,rt,p,Be,Nn,bt,Sr=0,Yr=te?te.sections:e.emptyArray;Sr<Yr.length;Sr++){var ra=Yr[Sr];switch(ra.kind){case"prologue":(Dn||(Dn=[])).push(As(ra,g));break;case"emitHelpers":(rt||(rt=[])).push(Bo().get(ra.data));break;case"no-default-lib":g.hasNoDefaultLib=!0;break;case"reference":(p||(p=[])).push({pos:-1,end:-1,fileName:ra.data});break;case"type":(Be||(Be=[])).push(ra.data);break;case"lib":(Nn||(Nn=[])).push({pos:-1,end:-1,fileName:ra.data});break;case"prepend":for(var mi=As(ra,g),q=void 0,dn=0,Un=ra.texts;dn<Un.length;dn++){var Et=Un[dn];(!Ve||Et.kind!=="internal")&&(q||(q=[])).push(As(Et,g))}mi.texts=q||e.emptyArray,(bt||(bt=[])).push(mi);break;case"internal":if(Ve){bt||(bt=[]);break}case"text":(bt||(bt=[])).push(As(ra,g));break;default:e.Debug.assertNever(ra)}}g.prologues=Dn||e.emptyArray,g.helpers=rt,g.referencedFiles=p||e.emptyArray,g.typeReferenceDirectives=Be,g.libReferenceDirectives=Nn||e.emptyArray,g.texts=bt||[As({kind:"text",pos:0,end:g.text.length},g)]}function Ec(g,te){e.Debug.assert(!!g.oldFileOfCurrentEmit);for(var Ve,Dn,rt=0,p=te.sections;rt<p.length;rt++){var Be=p[rt];switch(Be.kind){case"internal":case"text":(Ve||(Ve=[])).push(As(Be,g));break;case"no-default-lib":case"reference":case"type":case"lib":(Dn||(Dn=[])).push(fu(Be,g));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(Be)}}return g.texts=Ve||e.emptyArray,g.helpers=e.map(te.sources&&te.sources.helpers,function(Nn){return Bo().get(Nn)}),g.syntheticReferences=Dn,g}function ts(g){switch(g){case"prologue":return 283;case"prepend":return 284;case"internal":return 286;case"text":return 285;case"emitHelpers":case"no-default-lib":case"reference":case"type":case"lib":return e.Debug.fail("BundleFileSectionKind: "+g+" not yet mapped to SyntaxKind");default:return e.Debug.assertNever(g)}}function As(g,te){var Ve=e.createNode(ts(g.kind),g.pos,g.end);return Ve.parent=te,Ve.data=g.data,Ve}function fu(g,te){var Ve=e.createNode(287,g.pos,g.end);return Ve.parent=te,Ve.data=g.data,Ve.section=g,Ve}function jl(g,te,Ve,Dn,rt,p,Be,Nn,bt,Sr,Yr){var ra=e.createNode(291);if(e.isString(g))ra.javascriptText=g,ra.javascriptMapPath=Ve,ra.javascriptMapText=Dn,ra.declarationText=te,ra.declarationMapPath=rt,ra.declarationMapText=p,ra.javascriptPath=Be,ra.declarationPath=Nn,ra.buildInfoPath=bt,ra.buildInfo=Sr,ra.oldFileOfCurrentEmit=Yr;else{var mi=e.createMap(),q=function(Zr){if(Zr===void 0)return;var ka=mi.get(Zr);return ka===void 0&&(ka=g(Zr),mi.set(Zr,ka!==void 0?ka:!1)),ka!==!1?ka:void 0},dn=function(Zr){var ka=q(Zr);return ka!==void 0?ka:"/* Input file "+Zr+` was missing */\r
`},Un,Et=function(Zr){if(Un===void 0){var ka=Zr();Un=ka!==void 0?e.getBuildInfo(ka):!1}return Un||void 0};ra.javascriptPath=te,ra.javascriptMapPath=Ve,ra.declarationPath=e.Debug.assertDefined(Dn),ra.declarationMapPath=rt,ra.buildInfoPath=p,Object.defineProperties(ra,{javascriptText:{get:function(){return dn(te)}},javascriptMapText:{get:function(){return q(Ve)}},declarationText:{get:function(){return dn(e.Debug.assertDefined(Dn))}},declarationMapText:{get:function(){return q(rt)}},buildInfo:{get:function(){return Et(function(){return q(p)})}}})}return ra}e.createInputFiles=jl;function Uc(g,te,Ve){return Ve===void 0&&(Ve=e.emptyArray),g.sourceFiles!==te||g.prepends!==Ve?ar(te,Ve):g}e.updateBundle=Uc;function Tc(g,te,Ve){return Pi(Fo(void 0,void 0,void 0,void 0,te?[te]:[],void 0,vs(g,!0)),void 0,Ve?[Ve]:[])}e.createImmediatelyInvokedFunctionExpression=Tc;function Sc(g,te,Ve){return Pi(bo(void 0,void 0,te?[te]:[],void 0,void 0,vs(g,!0)),void 0,Ve?[Ve]:[])}e.createImmediatelyInvokedArrowFunction=Sc;function xc(g,te){return vn(g,27,te)}e.createComma=xc;function rc(g,te){return vn(g,29,te)}e.createLessThan=rc;function ac(g,te){return vn(g,62,te)}e.createAssignment=ac;function vl(g,te){return vn(g,36,te)}e.createStrictEquality=vl;function Ys(g,te){return vn(g,37,te)}e.createStrictInequality=Ys;function Ol(g,te){return vn(g,39,te)}e.createAdd=Ol;function wa(g,te){return vn(g,40,te)}e.createSubtract=wa;function Gs(g){return ua(g,45)}e.createPostfixIncrement=Gs;function zt(g,te){return vn(g,55,te)}e.createLogicalAnd=zt;function bl(g,te){return vn(g,56,te)}e.createLogicalOr=bl;function Do(g,te){return vn(g,60,te)}e.createNullishCoalesce=Do;function pu(g){return Ii(53,g)}e.createLogicalNot=pu;function ic(){return va(Fe(0))}e.createVoidZero=ic;function Wl(g){return Pc(void 0,void 0,!1,g)}e.createExportDefault=Wl;function Xu(g){return Zl(void 0,void 0,Nl([Rc(void 0,g)]))}e.createExternalModuleExport=Xu;function zi(g){return e.isString(g)?Pe(g):g}function Hl(g){return typeof g=="string"?ie(g):typeof g=="number"?He(""+g):typeof g=="boolean"?g?fe():R():g}function Ra(g){return g?qe(g):void 0}function wc(g){return typeof g=="number"?Y(g):g}function us(g){return g&&e.isNotEmittedStatement(g)?Qs(cc(es(),g),g):g}function Vs(g){g=e.getSourceFileOfNode(e.getParseTreeNode(g));var te=g&&g.emitNode,Ve=te&&te.annotatedNodes;if(Ve)for(var Dn=0,rt=Ve;Dn<rt.length;Dn++){var p=rt[Dn];p.emitNode=void 0}}e.disposeEmitNodes=Vs;function ns(g){if(!g.emitNode){if(e.isParseTreeNode(g)){if(g.kind===288)return g.emitNode={annotatedNodes:[g]};var te=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(g)));ns(te).annotatedNodes.push(g)}g.emitNode={}}return g.emitNode}e.getOrCreateEmitNode=ns;function Yu(g){var te=ns(g);return te.flags|=1536,te.leadingComments=void 0,te.trailingComments=void 0,g}e.removeAllComments=Yu;function Qs(g,te){return te&&(g.pos=te.pos,g.end=te.end),g}e.setTextRange=Qs;function oc(g,te){return ns(g).flags=te,g}e.setEmitFlags=oc;function md(g,te){var Ve=ns(g);return Ve.flags=Ve.flags|te,g}e.addEmitFlags=md;function Kl(g){var te=g.emitNode;return te&&te.sourceMapRange||g}e.getSourceMapRange=Kl;function sc(g,te){return ns(g).sourceMapRange=te,g}e.setSourceMapRange=sc;var Qu;function Zo(g,te,Ve){return new(Qu||(Qu=e.objectAllocator.getSourceMapSourceConstructor()))(g,te,Ve)}e.createSourceMapSource=Zo;function hd(g,te){var Ve=g.emitNode,Dn=Ve&&Ve.tokenSourceMapRanges;return Dn&&Dn[te]}e.getTokenSourceMapRange=hd;function Bi(g,te,Ve){var Dn=ns(g),rt=Dn.tokenSourceMapRanges||(Dn.tokenSourceMapRanges=[]);return rt[te]=Ve,g}e.setTokenSourceMapRange=Bi;function Ou(g){var te=g.emitNode;return te&&te.startsOnNewLine}e.getStartsOnNewLine=Ou;function Zu(g,te){return ns(g).startsOnNewLine=te,g}e.setStartsOnNewLine=Zu;function jc(g){var te=g.emitNode;return te&&te.commentRange||g}e.getCommentRange=jc;function Wc(g,te){return ns(g).commentRange=te,g}e.setCommentRange=Wc;function mu(g){var te=g.emitNode;return te&&te.leadingComments}e.getSyntheticLeadingComments=mu;function Hc(g,te){return ns(g).leadingComments=te,g}e.setSyntheticLeadingComments=Hc;function $u(g,te,Ve,Dn){return Hc(g,e.append(mu(g),{kind:te,pos:-1,end:-1,hasTrailingNewLine:Dn,text:Ve}))}e.addSyntheticLeadingComment=$u;function Pl(g){var te=g.emitNode;return te&&te.trailingComments}e.getSyntheticTrailingComments=Pl;function Ml(g,te){return ns(g).trailingComments=te,g}e.setSyntheticTrailingComments=Ml;function ql(g,te,Ve,Dn){return Ml(g,e.append(Pl(g),{kind:te,pos:-1,end:-1,hasTrailingNewLine:Dn,text:Ve}))}e.addSyntheticTrailingComment=ql;function lc(g,te){Hc(g,mu(te)),Ml(g,Pl(te));var Ve=ns(te);return Ve.leadingComments=void 0,Ve.trailingComments=void 0,g}e.moveSyntheticComments=lc;function Pu(g){var te=g.emitNode;return te&&te.constantValue}e.getConstantValue=Pu;function ol(g,te){var Ve=ns(g);return Ve.constantValue=te,g}e.setConstantValue=ol;function ed(g,te){var Ve=ns(g);return Ve.helpers=e.append(Ve.helpers,te),g}e.addEmitHelper=ed;function nd(g,te){if(e.some(te))for(var Ve=ns(g),Dn=0,rt=te;Dn<rt.length;Dn++){var p=rt[Dn];Ve.helpers=e.appendIfUnique(Ve.helpers,p)}return g}e.addEmitHelpers=nd;function hu(g,te){var Ve=g.emitNode;if(Ve){var Dn=Ve.helpers;if(Dn)return e.orderedRemoveItem(Dn,te)}return!1}e.removeEmitHelper=hu;function gd(g){var te=g.emitNode;return te&&te.helpers}e.getEmitHelpers=gd;function Od(g,te,Ve){var Dn=g.emitNode,rt=Dn&&Dn.helpers;if(!e.some(rt))return;for(var p=ns(te),Be=0,Nn=0;Nn<rt.length;Nn++){var bt=rt[Nn];Ve(bt)?(Be++,p.helpers=e.appendIfUnique(p.helpers,bt)):Be>0&&(rt[Nn-Be]=bt)}Be>0&&(rt.length-=Be)}e.moveEmitHelpers=Od;function Pd(g,te){return g===te||g.priority===te.priority?0:g.priority===void 0?1:te.priority===void 0?-1:e.compareValues(g.priority,te.priority)}e.compareEmitHelpers=Pd;function cc(g,te){if(g.original=te,te){var Ve=te.emitNode;Ve&&(g.emitNode=Md(Ve,g.emitNode))}return g}e.setOriginalNode=cc;function Md(g,te){var Ve=g.flags,Dn=g.leadingComments,rt=g.trailingComments,p=g.commentRange,Be=g.sourceMapRange,Nn=g.tokenSourceMapRanges,bt=g.constantValue,Sr=g.helpers,Yr=g.startsOnNewLine;return te||(te={}),Dn&&(te.leadingComments=e.addRange(Dn.slice(),te.leadingComments)),rt&&(te.trailingComments=e.addRange(rt.slice(),te.trailingComments)),Ve&&(te.flags=Ve),p&&(te.commentRange=p),Be&&(te.sourceMapRange=Be),Nn&&(te.tokenSourceMapRanges=Mu(Nn,te.tokenSourceMapRanges)),bt!==void 0&&(te.constantValue=bt),Sr&&(te.helpers=e.addRange(te.helpers,Sr)),Yr!==void 0&&(te.startsOnNewLine=Yr),te}function Mu(g,te){te||(te=[]);for(var Ve in g)te[Ve]=g[Ve];return te}})(ln||(ln={})),function(e){e.nullTransformationContext={enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:e.returnUndefined,getCompilerOptions:e.notImplemented,getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,addDiagnostic:e.noop};function o(Ie,De){return De==="undefined"?e.createStrictEquality(Ie,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(Ie),e.createLiteral(De))}e.createTypeCheck=o;function F(Ie,De,_n){if(e.isComputedPropertyName(De))return e.setTextRange(e.createElementAccess(Ie,De.expression),_n);var _t=e.setTextRange(e.isIdentifier(De)?e.createPropertyAccess(Ie,De):e.createElementAccess(Ie,De),De);return e.getOrCreateEmitNode(_t).flags|=64,_t}e.createMemberAccessForPropertyName=F;function qe(Ie,De,_n,_t){return e.setTextRange(e.createCall(e.createPropertyAccess(Ie,"call"),void 0,Or([De],_n)),_t)}e.createFunctionCall=qe;function Se(Ie,De,_n,_t){return e.setTextRange(e.createCall(e.createPropertyAccess(Ie,"apply"),void 0,[De,_n]),_t)}e.createFunctionApply=Se;function Fe(Ie,De){var _n=[];return De!==void 0&&_n.push(typeof De=="number"?e.createLiteral(De):De),e.createCall(e.createPropertyAccess(Ie,"slice"),void 0,_n)}e.createArraySlice=Fe;function He(Ie,De){return e.createCall(e.createPropertyAccess(Ie,"concat"),void 0,De)}e.createArrayConcat=He;function ve(Ie,De,_n){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[Ie,De]),_n)}e.createMathPow=ve;function ie(Ie,De){var _n=e.createIdentifier(Ie||"React");return _n.flags&=~8,_n.parent=e.getParseTreeNode(De),_n}function d(Ie,De){if(e.isQualifiedName(Ie)){var _n=d(Ie.left,De),_t=e.createIdentifier(e.idText(Ie.right));return _t.escapedText=Ie.right.escapedText,e.createPropertyAccess(_n,_t)}else return ie(e.idText(Ie),De)}function H(Ie,De,_n){return Ie?d(Ie,_n):e.createPropertyAccess(ie(De,_n),"createElement")}function Pe(Ie,De,_n,_t,It,Ht,nr){var vr=[_n];if(_t&&vr.push(_t),It&&It.length>0)if(_t||vr.push(e.createNull()),It.length>1)for(var Qr=0,Wr=It;Qr<Wr.length;Qr++){var gt=Wr[Qr];bn(gt),vr.push(gt)}else vr.push(It[0]);return e.setTextRange(e.createCall(H(Ie,De,Ht),void 0,vr),nr)}e.createExpressionForJsxElement=Pe;function I(Ie,De,_n,_t,It){var Ht=e.createPropertyAccess(ie(De,_t),"Fragment"),nr=[Ht];if(nr.push(e.createNull()),_n&&_n.length>0)if(_n.length>1)for(var vr=0,Qr=_n;vr<Qr.length;vr++){var Wr=Qr[vr];bn(Wr),nr.push(Wr)}else nr.push(_n[0]);return e.setTextRange(e.createCall(H(Ie,De,_t),void 0,nr),It)}e.createExpressionForJsxFragment=I;function _e(Ie){return e.setEmitFlags(e.createIdentifier(Ie),4096|2)}e.getUnscopedHelperName=_e,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.");
};`};function re(Ie,De,_n){return Ie.requestEmitHelper(e.valuesHelper),e.setTextRange(e.createCall(_e("__values"),void 0,[De]),_n)}e.createValuesHelper=re,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;
};`};function se(Ie,De,_n,_t){return Ie.requestEmitHelper(e.readHelper),e.setTextRange(e.createCall(_e("__read"),void 0,_n!==void 0?[De,e.createLiteral(_n)]:[De]),_t)}e.createReadHelper=se,e.spreadHelper={name:"typescript:spread",importName:"__spread",scoped:!1,text:`
var __spread = (this && this.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
};`};function w(Ie,De,_n){return Ie.requestEmitHelper(e.readHelper),Ie.requestEmitHelper(e.spreadHelper),e.setTextRange(e.createCall(_e("__spread"),void 0,De),_n)}e.createSpreadHelper=w,e.spreadArraysHelper={name:"typescript:spreadArrays",importName:"__spreadArrays",scoped:!1,text:`
var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};`};function k(Ie,De,_n){return Ie.requestEmitHelper(e.spreadArraysHelper),e.setTextRange(e.createCall(_e("__spreadArrays"),void 0,De),_n)}e.createSpreadArraysHelper=k;function P(Ie,De){if(e.isVariableDeclarationList(Ie)){var _n=e.first(Ie.declarations),_t=e.updateVariableDeclaration(_n,_n.name,void 0,De);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(Ie,[_t])),Ie)}else{var It=e.setTextRange(e.createAssignment(Ie,De),Ie);return e.setTextRange(e.createStatement(It),Ie)}}e.createForOfBindingStatement=P;function h(Ie,De){return e.isBlock(Ie)?e.updateBlock(Ie,e.setTextRange(e.createNodeArray(Or([De],Ie.statements)),Ie.statements)):e.createBlock(e.createNodeArray([Ie,De]),!0)}e.insertLeadingStatement=h;function Y(Ie,De,_n){if(!De)return Ie;var _t=e.updateLabel(De,De.label,De.statement.kind===237?Y(Ie,De.statement):Ie);return _n&&_n(De),_t}e.restoreEnclosingLabel=Y;function ne(Ie,De){var _n=e.skipParentheses(Ie);switch(_n.kind){case 75:return De;case 103:case 8:case 9:case 10:return!1;case 191:var _t=_n.elements;return!(_t.length===0);case 192:return _n.properties.length>0;default:return!0}}function $(Ie,De,_n,_t){_t===void 0&&(_t=!1);var It=O(Ie,7),Ht,nr;if(e.isSuperProperty(It))Ht=e.createThis(),nr=It;else if(It.kind===101)Ht=e.createThis(),nr=_n<2?e.setTextRange(e.createIdentifier("_super"),It):It;else if(e.getEmitFlags(It)&4096)Ht=e.createVoidZero(),nr=en(It);else switch(It.kind){case 193:{ne(It.expression,_t)?(Ht=e.createTempVariable(De),nr=e.createPropertyAccess(e.setTextRange(e.createAssignment(Ht,It.expression),It.expression),It.name),e.setTextRange(nr,It)):(Ht=It.expression,nr=It);break}case 194:{ne(It.expression,_t)?(Ht=e.createTempVariable(De),nr=e.createElementAccess(e.setTextRange(e.createAssignment(Ht,It.expression),It.expression),It.argumentExpression),e.setTextRange(nr,It)):(Ht=It.expression,nr=It);break}default:{Ht=e.createVoidZero(),nr=en(Ie);break}}return{target:nr,thisArg:Ht}}e.createCallBinding=$;function J(Ie){return Ie.length>10?e.createCommaList(Ie):e.reduceLeft(Ie,e.createComma)}e.inlineExpressions=J;function fe(Ie){if(e.isQualifiedName(Ie)){var De=fe(Ie.left),_n=e.getMutableClone(Ie.right);return e.setTextRange(e.createPropertyAccess(De,_n),Ie)}else return e.getMutableClone(Ie)}e.createExpressionFromEntityName=fe;function R(Ie){return e.isIdentifier(Ie)?e.createLiteral(Ie):e.isComputedPropertyName(Ie)?e.getMutableClone(Ie.expression):e.getMutableClone(Ie)}e.createExpressionForPropertyName=R;function K(Ie,De,_n){switch(De.kind){case 162:case 163:return z(Ie.properties,De,_n,!!Ie.multiLine);case 279:return Ee(De,_n);case 280:return B(De,_n);case 160:return V(De,_n)}}e.createExpressionForObjectLiteralElementLike=K;function z(Ie,De,_n,_t){var It=e.getAllAccessorDeclarations(Ie,De),Ht=It.firstAccessor,nr=It.getAccessor,vr=It.setAccessor;if(De===Ht){var Qr=[];if(nr){var Wr=e.createFunctionExpression(nr.modifiers,void 0,void 0,void 0,nr.parameters,void 0,nr.body);e.setTextRange(Wr,nr),e.setOriginalNode(Wr,nr);var gt=e.createPropertyAssignment("get",Wr);Qr.push(gt)}if(vr){var ba=e.createFunctionExpression(vr.modifiers,void 0,void 0,void 0,vr.parameters,void 0,vr.body);e.setTextRange(ba,vr),e.setOriginalNode(ba,vr);var kt=e.createPropertyAssignment("set",ba);Qr.push(kt)}Qr.push(e.createPropertyAssignment("enumerable",e.createTrue())),Qr.push(e.createPropertyAssignment("configurable",e.createTrue()));var jn=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[_n,R(De.name),e.createObjectLiteral(Qr,_t)]),Ht);return e.aggregateTransformFlags(jn)}return}function Ee(Ie,De){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(F(De,Ie.name,Ie.name),Ie.initializer),Ie),Ie))}function B(Ie,De){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(F(De,Ie.name,Ie.name),e.getSynthesizedClone(Ie.name)),Ie),Ie))}function V(Ie,De){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(F(De,Ie.name,Ie.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(Ie.modifiers,Ie.asteriskToken,void 0,void 0,Ie.parameters,void 0,Ie.body),Ie),Ie)),Ie),Ie))}function m(Ie,De,_n){return T(Ie,De,_n,16384|32768)}e.getInternalName=m;function y(Ie){return(e.getEmitFlags(Ie)&32768)!==0}e.isInternalName=y;function L(Ie,De,_n){return T(Ie,De,_n,16384)}e.getLocalName=L;function C(Ie){return(e.getEmitFlags(Ie)&16384)!==0}e.isLocalName=C;function _(Ie,De,_n){return T(Ie,De,_n,8192)}e.getExportName=_;function b(Ie){return(e.getEmitFlags(Ie)&8192)!==0}e.isExportName=b;function D(Ie,De,_n){return T(Ie,De,_n)}e.getDeclarationName=D;function T(Ie,De,_n,_t){_t===void 0&&(_t=0);var It=e.getNameOfDeclaration(Ie);if(It&&e.isIdentifier(It)&&!e.isGeneratedIdentifier(It)){var Ht=e.getMutableClone(It);return _t|=e.getEmitFlags(It),_n||(_t|=48),De||(_t|=1536),_t&&e.setEmitFlags(Ht,_t),Ht}return e.getGeneratedNameForNode(Ie)}function Q(Ie,De,_n,_t){return Ie&&e.hasModifier(De,1)?N(Ie,T(De),_n,_t):_(De,_n,_t)}e.getExternalModuleOrNamespaceExportName=Q;function N(Ie,De,_n,_t){var It=e.createPropertyAccess(Ie,e.nodeIsSynthesized(De)?De:e.getSynthesizedClone(De));e.setTextRange(It,De);var Ht=0;return _t||(Ht|=48),_n||(Ht|=1536),Ht&&e.setEmitFlags(It,Ht),It}e.getNamespaceMemberName=N;function X(Ie,De){return e.isBlock(Ie)?Ie:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(Ie),Ie)],De),Ie)}e.convertToFunctionBody=X;function pe(Ie){if(!Ie.body)return e.Debug.fail();var De=e.createFunctionExpression(Ie.modifiers,Ie.asteriskToken,Ie.name,Ie.typeParameters,Ie.parameters,Ie.type,Ie.body);return e.setOriginalNode(De,Ie),e.setTextRange(De,Ie),e.getStartsOnNewLine(Ie)&&e.setStartsOnNewLine(De,!0),e.aggregateTransformFlags(De),De}e.convertFunctionDeclarationToExpression=pe;function S(Ie){return e.isStringLiteral(Ie.expression)&&Ie.expression.text==="use strict"}function v(Ie,De,_n,_t){var It=U(Ie,De,_n);return de(Ie,De,It,_t)}e.addPrologue=v;function U(Ie,De,_n){e.Debug.assert(Ie.length===0,"Prologue directives should be at the first statement in the target statements array");for(var _t=!1,It=0,Ht=De.length;It<Ht;){var nr=De[It];if(e.isPrologueDirective(nr))S(nr)&&(_t=!0),Ie.push(nr);else break;It++}return _n&&!_t&&Ie.push(bn(e.createStatement(e.createLiteral("use strict")))),It}e.addStandardPrologue=U;function de(Ie,De,_n,_t){for(var It=De.length;_n!==void 0&&_n<It;){var Ht=De[_n];if(e.getEmitFlags(Ht)&1048576)e.append(Ie,_t?e.visitNode(Ht,_t,e.isStatement):Ht);else break;_n++}return _n}e.addCustomPrologue=de;function Ce(Ie){for(var De=0,_n=Ie;De<_n.length;De++){var _t=_n[De];if(e.isPrologueDirective(_t)){if(S(_t))return _t}else break}return}e.findUseStrictPrologue=Ce;function Z(Ie){var De=e.firstOrUndefined(Ie);return De!==void 0&&e.isPrologueDirective(De)&&S(De)}e.startsWithUseStrict=Z;function Re(Ie){var De=Ce(Ie);return De?Ie:e.setTextRange(e.createNodeArray(Or([bn(e.createStatement(e.createLiteral("use strict")))],Ie)),Ie)}e.ensureUseStrict=Re;function Ae(Ie,De,_n,_t){var It=e.skipPartiallyEmittedExpressions(De);return It.kind===199?De:We(Ie,De,_n,_t)?e.createParen(De):De}e.parenthesizeBinaryOperand=Ae;function We(Ie,De,_n,_t){var It=e.getOperatorPrecedence(208,Ie),Ht=e.getOperatorAssociativity(208,Ie),nr=e.skipPartiallyEmittedExpressions(De);if(!_n&&De.kind===201&&It>3)return!0;var vr=e.getExpressionPrecedence(nr);switch(e.compareValues(vr,It)){case-1:return!(!_n&&Ht===1&&De.kind===211);case 1:return!1;case 0:if(_n)return Ht===1;if(e.isBinaryExpression(nr)&&nr.operatorToken.kind===Ie){if(be(Ie))return!1;if(Ie===39){var Qr=_t?Ge(_t):0;if(e.isLiteralKind(Qr)&&Qr===Ge(nr))return!1}}var Wr=e.getExpressionAssociativity(nr);return Wr===0}}function be(Ie){return Ie===41||Ie===51||Ie===50||Ie===52}function Ge(Ie){if(Ie=e.skipPartiallyEmittedExpressions(Ie),e.isLiteralKind(Ie.kind))return Ie.kind;if(Ie.kind===208&&Ie.operatorToken.kind===39){if(Ie.cachedLiteralKind!==void 0)return Ie.cachedLiteralKind;var De=Ge(Ie.left),_n=e.isLiteralKind(De)&&De===Ge(Ie.right)?De:0;return Ie.cachedLiteralKind=_n,_n}return 0}function x(Ie){var De=e.getOperatorPrecedence(209,57),_n=e.skipPartiallyEmittedExpressions(Ie),_t=e.getExpressionPrecedence(_n);return e.compareValues(_t,De)!==1?e.createParen(Ie):Ie}e.parenthesizeForConditionalHead=x;function j(Ie){var De=e.skipPartiallyEmittedExpressions(Ie);return ke(De)?e.createParen(Ie):Ie}e.parenthesizeSubexpressionOfConditionalExpression=j;function Oe(Ie){var De=e.skipPartiallyEmittedExpressions(Ie),_n=ke(De);if(!_n)switch(sn(De,!1).kind){case 213:case 200:_n=!0}return _n?e.createParen(Ie):Ie}e.parenthesizeDefaultExpression=Oe;function a(Ie){var De=sn(Ie,!0);switch(De.kind){case 195:return e.createParen(Ie);case 196:return De.arguments?Ie:e.createParen(Ie)}return en(Ie)}e.parenthesizeForNew=a;function en(Ie){var De=e.skipPartiallyEmittedExpressions(Ie);return e.isLeftHandSideExpression(De)&&(De.kind!==196||De.arguments)?Ie:e.setTextRange(e.createParen(Ie),Ie)}e.parenthesizeForAccess=en;function Pn(Ie){return e.isLeftHandSideExpression(Ie)?Ie:e.setTextRange(e.createParen(Ie),Ie)}e.parenthesizePostfixOperand=Pn;function Xn(Ie){return e.isUnaryExpression(Ie)?Ie:e.setTextRange(e.createParen(Ie),Ie)}e.parenthesizePrefixOperand=Xn;function ae(Ie){for(var De,_n=0;_n<Ie.length;_n++){var _t=ce(Ie[_n]);(De!==void 0||_t!==Ie[_n])&&(De===void 0&&(De=Ie.slice(0,_n)),De.push(_t))}return De!==void 0?e.setTextRange(e.createNodeArray(De,Ie.hasTrailingComma),Ie):Ie}e.parenthesizeListElements=ae;function ce(Ie){var De=e.skipPartiallyEmittedExpressions(Ie),_n=e.getExpressionPrecedence(De),_t=e.getOperatorPrecedence(208,27);return _n>_t?Ie:e.setTextRange(e.createParen(Ie),Ie)}e.parenthesizeExpressionForList=ce;function Le(Ie){var De=e.skipPartiallyEmittedExpressions(Ie);if(e.isCallExpression(De)){var _n=De.expression,_t=e.skipPartiallyEmittedExpressions(_n).kind;if(_t===200||_t===201){var It=e.getMutableClone(De);return It.expression=e.setTextRange(e.createParen(_n),_n),ze(Ie,It,4)}}var Ht=sn(De,!1).kind;return Ht===192||Ht===200?e.setTextRange(e.createParen(Ie),Ie):Ie}e.parenthesizeExpressionForExpressionStatement=Le;function Je(Ie){return Ie.kind===179?e.createParenthesizedType(Ie):Ie}e.parenthesizeConditionalTypeMember=Je;function Ze(Ie){switch(Ie.kind){case 177:case 178:case 169:case 170:return e.createParenthesizedType(Ie)}return Je(Ie)}e.parenthesizeElementTypeMember=Ze;function Ue(Ie){switch(Ie.kind){case 171:case 183:case 180:return e.createParenthesizedType(Ie)}return Ze(Ie)}e.parenthesizeArrayTypeMember=Ue;function cn(Ie){return e.createNodeArray(e.sameMap(Ie,Ze))}e.parenthesizeElementTypeMembers=cn;function $e(Ie){if(e.some(Ie)){for(var De=[],_n=0;_n<Ie.length;++_n){var _t=Ie[_n];De.push(_n===0&&e.isFunctionOrConstructorTypeNode(_t)&&_t.typeParameters?e.createParenthesizedType(_t):_t)}return e.createNodeArray(De)}}e.parenthesizeTypeParameters=$e;function sn(Ie,De){for(;;){switch(Ie.kind){case 207:Ie=Ie.operand;continue;case 208:Ie=Ie.left;continue;case 209:Ie=Ie.condition;continue;case 197:Ie=Ie.tag;continue;case 195:if(De)return Ie;case 216:case 194:case 193:case 217:case 319:Ie=Ie.expression;continue}return Ie}}e.getLeftmostExpression=sn;function he(Ie){return!e.isBlock(Ie)&&(ke(Ie)||sn(Ie,!1).kind===192)?e.setTextRange(e.createParen(Ie),Ie):Ie}e.parenthesizeConciseBody=he;function ke(Ie){return Ie.kind===208&&Ie.operatorToken.kind===27||Ie.kind===320}e.isCommaSequence=ke;var G;(function(Ie){Ie[Ie.Parentheses=1]="Parentheses",Ie[Ie.Assertions=2]="Assertions",Ie[Ie.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",Ie[Ie.All=7]="All"})(G=e.OuterExpressionKinds||(e.OuterExpressionKinds={}));function c(Ie,De){De===void 0&&(De=7);switch(Ie.kind){case 199:return(De&1)!==0;case 198:case 216:case 217:return(De&2)!==0;case 319:return(De&4)!==0}return!1}e.isOuterExpression=c;function O(Ie,De){De===void 0&&(De=7);var _n;do _n=Ie,De&1&&(Ie=e.skipParentheses(Ie)),De&2&&(Ie=ee(Ie)),De&4&&(Ie=e.skipPartiallyEmittedExpressions(Ie));while(_n!==Ie);return Ie}e.skipOuterExpressions=O;function ee(Ie){for(;e.isAssertionExpression(Ie)||Ie.kind===217;)Ie=Ie.expression;return Ie}e.skipAssertions=ee;function Te(Ie,De){switch(Ie.kind){case 199:return e.updateParen(Ie,De);case 198:return e.updateTypeAssertion(Ie,Ie.type,De);case 216:return e.updateAsExpression(Ie,De,Ie.type);case 217:return e.updateNonNullExpression(Ie,De);case 319:return e.updatePartiallyEmittedExpression(Ie,De)}}function Ne(Ie){return Ie.kind===199&&e.nodeIsSynthesized(Ie)&&e.nodeIsSynthesized(e.getSourceMapRange(Ie))&&e.nodeIsSynthesized(e.getCommentRange(Ie))&&!e.some(e.getSyntheticLeadingComments(Ie))&&!e.some(e.getSyntheticTrailingComments(Ie))}function ze(Ie,De,_n){return _n===void 0&&(_n=7),Ie&&c(Ie,_n)&&!Ne(Ie)?Te(Ie,ze(Ie.expression,De)):De}e.recreateOuterExpressions=ze;function bn(Ie){return e.setStartsOnNewLine(Ie,!0)}e.startOnNewLine=bn;function Sn(Ie){var De=e.getOriginalNode(Ie,e.isSourceFile),_n=De&&De.emitNode;return _n&&_n.externalHelpersModuleName}e.getExternalHelpersModuleName=Sn;function Kn(Ie){var De=e.getOriginalNode(Ie,e.isSourceFile),_n=De&&De.emitNode;return!!_n&&(!!_n.externalHelpersModuleName||!!_n.externalHelpers)}e.hasRecordedExternalHelpers=Kn;function Xe(Ie,De,_n,_t,It){if(De.importHelpers&&e.isEffectiveExternalModule(Ie,De)){var Ht=void 0,nr=e.getEmitModuleKind(De);if(nr>=e.ModuleKind.ES2015&&nr<=e.ModuleKind.ESNext){var vr=e.getEmitHelpers(Ie);if(vr){for(var Qr=[],Wr=0,gt=vr;Wr<gt.length;Wr++){var ba=gt[Wr];if(!ba.scoped){var kt=ba.importName;kt&&e.pushIfUnique(Qr,kt)}}if(e.some(Qr)){Qr.sort(e.compareStringsCaseSensitive),Ht=e.createNamedImports(e.map(Qr,function(yt){return e.isFileLevelUniqueName(Ie,yt)?e.createImportSpecifier(void 0,e.createIdentifier(yt)):e.createImportSpecifier(e.createIdentifier(yt),_e(yt))}));var jn=e.getOriginalNode(Ie,e.isSourceFile),Ut=e.getOrCreateEmitNode(jn);Ut.externalHelpers=!0}}}else{var ft=pn(Ie,De,_n,_t||It);ft&&(Ht=e.createNamespaceImport(ft))}if(Ht){var Tt=e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,Ht),e.createLiteral(e.externalHelpersModuleNameText));return e.addEmitFlags(Tt,67108864),Tt}}}e.createExternalHelpersImportDeclarationIfNeeded=Xe;function pn(Ie,De,_n,_t){if(De.importHelpers&&e.isEffectiveExternalModule(Ie,De)){var It=Sn(Ie);if(It)return It;var Ht=e.getEmitModuleKind(De),nr=(_n||De.esModuleInterop&&_t)&&Ht!==e.ModuleKind.System&&Ht!==e.ModuleKind.ES2015&&Ht!==e.ModuleKind.ESNext;if(!nr){var vr=e.getEmitHelpers(Ie);if(vr)for(var Qr=0,Wr=vr;Qr<Wr.length;Qr++){var gt=Wr[Qr];if(!gt.scoped){nr=!0;break}}}if(nr){var ba=e.getOriginalNode(Ie,e.isSourceFile),kt=e.getOrCreateEmitNode(ba);return kt.externalHelpersModuleName||(kt.externalHelpersModuleName=e.createUniqueName(e.externalHelpersModuleNameText))}}}e.getOrCreateExternalHelpersModuleNameIfNeeded=pn;function le(Ie,De){var _n=e.getNamespaceDeclarationNode(Ie);if(_n&&!e.isDefaultImport(Ie)){var _t=_n.name;return e.isGeneratedIdentifier(_t)?_t:e.createIdentifier(e.getSourceTextOfNodeFromSourceFile(De,_t)||e.idText(_t))}return Ie.kind===253&&Ie.importClause||Ie.kind===259&&Ie.moduleSpecifier?e.getGeneratedNameForNode(Ie):void 0}e.getLocalNameForExternalImport=le;function oe(Ie,De,_n,_t,It){var Ht=e.getExternalModuleName(Ie);return Ht.kind===10?ye(Ie,_n,_t,It)||kn(Ht,De)||e.getSynthesizedClone(Ht):void 0}e.getExternalModuleNameLiteral=oe;function kn(Ie,De){var _n=De.renamedDependencies&&De.renamedDependencies.get(Ie.text);return _n&&e.createLiteral(_n)}function yn(Ie,De,_n){return Ie?Ie.moduleName?e.createLiteral(Ie.moduleName):!Ie.isDeclarationFile&&(_n.out||_n.outFile)?e.createLiteral(e.getExternalModuleNameFromPath(De,Ie.fileName)):void 0:void 0}e.tryGetModuleNameFromFile=yn;function ye(Ie,De,_n,_t){return yn(_n.getExternalModuleFileFromDeclaration(Ie),De,_t)}function mn(Ie){if(e.isDeclarationBindingElement(Ie))return Ie.initializer;if(e.isPropertyAssignment(Ie)){var De=Ie.initializer;return e.isAssignmentExpression(De,!0)?De.right:void 0}if(e.isShorthandPropertyAssignment(Ie))return Ie.objectAssignmentInitializer;if(e.isAssignmentExpression(Ie,!0))return Ie.right;if(e.isSpreadElement(Ie))return mn(Ie.expression)}e.getInitializerOfBindingOrAssignmentElement=mn;function un(Ie){if(e.isDeclarationBindingElement(Ie))return Ie.name;if(e.isObjectLiteralElementLike(Ie)){switch(Ie.kind){case 279:return un(Ie.initializer);case 280:return Ie.name;case 281:return un(Ie.expression)}return}return e.isAssignmentExpression(Ie,!0)?un(Ie.left):e.isSpreadElement(Ie)?un(Ie.expression):Ie}e.getTargetOfBindingOrAssignmentElement=un;function Mn(Ie){switch(Ie.kind){case 155:case 190:return Ie.dotDotDotToken;case 212:case 281:return Ie}return}e.getRestIndicatorOfBindingOrAssignmentElement=Mn;function tt(Ie){switch(Ie.kind){case 190:if(Ie.propertyName){var De=Ie.propertyName;return e.isComputedPropertyName(De)&&Vn(De.expression)?De.expression:De}break;case 279:if(Ie.name){var De=Ie.name;return e.isComputedPropertyName(De)&&Vn(De.expression)?De.expression:De}break;case 281:return Ie.name}var _n=un(Ie);if(_n&&e.isPropertyName(_n))return e.isComputedPropertyName(_n)&&Vn(_n.expression)?_n.expression:_n;e.Debug.fail("Invalid property name for binding element.")}e.getPropertyNameOfBindingOrAssignmentElement=tt;function Vn(Ie){var De=Ie.kind;return De===10||De===8}function ut(Ie){switch(Ie.kind){case 188:case 189:case 191:return Ie.elements;case 192:return Ie.properties}}e.getElementsOfBindingOrAssignmentPattern=ut;function dt(Ie){if(e.isBindingElement(Ie)){if(Ie.dotDotDotToken)return e.Debug.assertNode(Ie.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpread(Ie.name),Ie),Ie);var De=qn(Ie.name);return Ie.initializer?e.setOriginalNode(e.setTextRange(e.createAssignment(De,Ie.initializer),Ie),Ie):De}return e.Debug.assertNode(Ie,e.isExpression),Ie}e.convertToArrayAssignmentElement=dt;function ot(Ie){if(e.isBindingElement(Ie)){if(Ie.dotDotDotToken)return e.Debug.assertNode(Ie.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpreadAssignment(Ie.name),Ie),Ie);if(Ie.propertyName){var De=qn(Ie.name);return e.setOriginalNode(e.setTextRange(e.createPropertyAssignment(Ie.propertyName,Ie.initializer?e.createAssignment(De,Ie.initializer):De),Ie),Ie)}return e.Debug.assertNode(Ie.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createShorthandPropertyAssignment(Ie.name,Ie.initializer),Ie),Ie)}return e.Debug.assertNode(Ie,e.isObjectLiteralElementLike),Ie}e.convertToObjectAssignmentElement=ot;function ct(Ie){switch(Ie.kind){case 189:case 191:return st(Ie);case 188:case 192:return wt(Ie)}}e.convertToAssignmentPattern=ct;function wt(Ie){return e.isObjectBindingPattern(Ie)?e.setOriginalNode(e.setTextRange(e.createObjectLiteral(e.map(Ie.elements,ot)),Ie),Ie):(e.Debug.assertNode(Ie,e.isObjectLiteralExpression),Ie)}e.convertToObjectAssignmentPattern=wt;function st(Ie){return e.isArrayBindingPattern(Ie)?e.setOriginalNode(e.setTextRange(e.createArrayLiteral(e.map(Ie.elements,dt)),Ie),Ie):(e.Debug.assertNode(Ie,e.isArrayLiteralExpression),Ie)}e.convertToArrayAssignmentPattern=st;function qn(Ie){return e.isBindingPattern(Ie)?ct(Ie):(e.Debug.assertNode(Ie,e.isExpression),Ie)}e.convertToAssignmentElementTarget=qn}(ln||(ln={}));var ln;(function(e){var o=e.or(e.isTypeNode,e.isTypeParameterDeclaration);function F(d,H,Pe,I){if(d===void 0||H===void 0)return d;e.aggregateTransformFlags(d);var _e=H(d);if(_e===d)return d;var re;return _e===void 0?void 0:(e.isArray(_e)?re=(I||ie)(_e):re=_e,e.Debug.assertNode(re,Pe),e.aggregateTransformFlags(re),re)}e.visitNode=F;function qe(d,H,Pe,I,_e){if(d===void 0||H===void 0)return d;var re,se=d.length;(I===void 0||I<0)&&(I=0),(_e===void 0||_e>se-I)&&(_e=se-I),(I>0||_e<se)&&(re=e.createNodeArray([],d.hasTrailingComma&&I+_e===se));for(var w=0;w<_e;w++){var k=d[w+I];e.aggregateTransformFlags(k);var P=k!==void 0?H(k):void 0;if((re!==void 0||P===void 0||P!==k)&&(re===void 0&&(re=e.createNodeArray(d.slice(0,w),d.hasTrailingComma),e.setTextRange(re,d)),P))if(e.isArray(P))for(var h=0,Y=P;h<Y.length;h++){var ne=Y[h];e.Debug.assertNode(ne,Pe),e.aggregateTransformFlags(ne),re.push(ne)}else e.Debug.assertNode(P,Pe),e.aggregateTransformFlags(P),re.push(P)}return re||d}e.visitNodes=qe;function Se(d,H,Pe,I,_e){return Pe.startLexicalEnvironment(),d=qe(d,H,e.isStatement,I),_e&&(d=e.ensureUseStrict(d)),e.mergeLexicalEnvironment(d,Pe.endLexicalEnvironment())}e.visitLexicalEnvironment=Se;function Fe(d,H,Pe,I){I===void 0&&(I=qe),Pe.startLexicalEnvironment();var _e=I(d,H,e.isParameterDeclaration);return Pe.suspendLexicalEnvironment(),_e}e.visitParameterList=Fe;function He(d,H,Pe){Pe.resumeLexicalEnvironment();var I=F(d,H,e.isConciseBody),_e=Pe.endLexicalEnvironment();if(e.some(_e)){var re=e.convertToFunctionBody(I),se=e.mergeLexicalEnvironment(re.statements,_e);return e.updateBlock(re,se)}return I}e.visitFunctionBody=He;function ve(d,H,Pe,I,_e){if(I===void 0&&(I=qe),d===void 0)return;var re=d.kind;if(re>0&&re<=151||re===182)return d;switch(re){case 75:return e.updateIdentifier(d,I(d.typeArguments,H,o));case 152:return e.updateQualifiedName(d,F(d.left,H,e.isEntityName),F(d.right,H,e.isIdentifier));case 153:return e.updateComputedPropertyName(d,F(d.expression,H,e.isExpression));case 154:return e.updateTypeParameterDeclaration(d,F(d.name,H,e.isIdentifier),F(d.constraint,H,e.isTypeNode),F(d.default,H,e.isTypeNode));case 155:return e.updateParameter(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),F(d.dotDotDotToken,_e,e.isToken),F(d.name,H,e.isBindingName),F(d.questionToken,_e,e.isToken),F(d.type,H,e.isTypeNode),F(d.initializer,H,e.isExpression));case 156:return e.updateDecorator(d,F(d.expression,H,e.isExpression));case 157:return e.updatePropertySignature(d,I(d.modifiers,H,e.isToken),F(d.name,H,e.isPropertyName),F(d.questionToken,_e,e.isToken),F(d.type,H,e.isTypeNode),F(d.initializer,H,e.isExpression));case 158:return e.updateProperty(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),F(d.name,H,e.isPropertyName),F(d.questionToken||d.exclamationToken,_e,e.isToken),F(d.type,H,e.isTypeNode),F(d.initializer,H,e.isExpression));case 159:return e.updateMethodSignature(d,I(d.typeParameters,H,e.isTypeParameterDeclaration),I(d.parameters,H,e.isParameterDeclaration),F(d.type,H,e.isTypeNode),F(d.name,H,e.isPropertyName),F(d.questionToken,_e,e.isToken));case 160:return e.updateMethod(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),F(d.asteriskToken,_e,e.isToken),F(d.name,H,e.isPropertyName),F(d.questionToken,_e,e.isToken),I(d.typeParameters,H,e.isTypeParameterDeclaration),Fe(d.parameters,H,Pe,I),F(d.type,H,e.isTypeNode),He(d.body,H,Pe));case 161:return e.updateConstructor(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),Fe(d.parameters,H,Pe,I),He(d.body,H,Pe));case 162:return e.updateGetAccessor(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),F(d.name,H,e.isPropertyName),Fe(d.parameters,H,Pe,I),F(d.type,H,e.isTypeNode),He(d.body,H,Pe));case 163:return e.updateSetAccessor(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),F(d.name,H,e.isPropertyName),Fe(d.parameters,H,Pe,I),He(d.body,H,Pe));case 164:return e.updateCallSignature(d,I(d.typeParameters,H,e.isTypeParameterDeclaration),I(d.parameters,H,e.isParameterDeclaration),F(d.type,H,e.isTypeNode));case 165:return e.updateConstructSignature(d,I(d.typeParameters,H,e.isTypeParameterDeclaration),I(d.parameters,H,e.isParameterDeclaration),F(d.type,H,e.isTypeNode));case 166:return e.updateIndexSignature(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),I(d.parameters,H,e.isParameterDeclaration),F(d.type,H,e.isTypeNode));case 167:return e.updateTypePredicateNodeWithModifier(d,F(d.assertsModifier,H),F(d.parameterName,H),F(d.type,H,e.isTypeNode));case 168:return e.updateTypeReferenceNode(d,F(d.typeName,H,e.isEntityName),I(d.typeArguments,H,e.isTypeNode));case 169:return e.updateFunctionTypeNode(d,I(d.typeParameters,H,e.isTypeParameterDeclaration),I(d.parameters,H,e.isParameterDeclaration),F(d.type,H,e.isTypeNode));case 170:return e.updateConstructorTypeNode(d,I(d.typeParameters,H,e.isTypeParameterDeclaration),I(d.parameters,H,e.isParameterDeclaration),F(d.type,H,e.isTypeNode));case 171:return e.updateTypeQueryNode(d,F(d.exprName,H,e.isEntityName));case 172:return e.updateTypeLiteralNode(d,I(d.members,H,e.isTypeElement));case 173:return e.updateArrayTypeNode(d,F(d.elementType,H,e.isTypeNode));case 174:return e.updateTupleTypeNode(d,I(d.elementTypes,H,e.isTypeNode));case 175:return e.updateOptionalTypeNode(d,F(d.type,H,e.isTypeNode));case 176:return e.updateRestTypeNode(d,F(d.type,H,e.isTypeNode));case 177:return e.updateUnionTypeNode(d,I(d.types,H,e.isTypeNode));case 178:return e.updateIntersectionTypeNode(d,I(d.types,H,e.isTypeNode));case 179:return e.updateConditionalTypeNode(d,F(d.checkType,H,e.isTypeNode),F(d.extendsType,H,e.isTypeNode),F(d.trueType,H,e.isTypeNode),F(d.falseType,H,e.isTypeNode));case 180:return e.updateInferTypeNode(d,F(d.typeParameter,H,e.isTypeParameterDeclaration));case 187:return e.updateImportTypeNode(d,F(d.argument,H,e.isTypeNode),F(d.qualifier,H,e.isEntityName),qe(d.typeArguments,H,e.isTypeNode),d.isTypeOf);case 181:return e.updateParenthesizedType(d,F(d.type,H,e.isTypeNode));case 183:return e.updateTypeOperatorNode(d,F(d.type,H,e.isTypeNode));case 184:return e.updateIndexedAccessTypeNode(d,F(d.objectType,H,e.isTypeNode),F(d.indexType,H,e.isTypeNode));case 185:return e.updateMappedTypeNode(d,F(d.readonlyToken,_e,e.isToken),F(d.typeParameter,H,e.isTypeParameterDeclaration),F(d.questionToken,_e,e.isToken),F(d.type,H,e.isTypeNode));case 186:return e.updateLiteralTypeNode(d,F(d.literal,H,e.isExpression));case 188:return e.updateObjectBindingPattern(d,I(d.elements,H,e.isBindingElement));case 189:return e.updateArrayBindingPattern(d,I(d.elements,H,e.isArrayBindingElement));case 190:return e.updateBindingElement(d,F(d.dotDotDotToken,_e,e.isToken),F(d.propertyName,H,e.isPropertyName),F(d.name,H,e.isBindingName),F(d.initializer,H,e.isExpression));case 191:return e.updateArrayLiteral(d,I(d.elements,H,e.isExpression));case 192:return e.updateObjectLiteral(d,I(d.properties,H,e.isObjectLiteralElementLike));case 193:return d.flags&32?e.updatePropertyAccessChain(d,F(d.expression,H,e.isExpression),F(d.questionDotToken,H,e.isToken),F(d.name,H,e.isIdentifier)):e.updatePropertyAccess(d,F(d.expression,H,e.isExpression),F(d.name,H,e.isIdentifier));case 194:return d.flags&32?e.updateElementAccessChain(d,F(d.expression,H,e.isExpression),F(d.questionDotToken,H,e.isToken),F(d.argumentExpression,H,e.isExpression)):e.updateElementAccess(d,F(d.expression,H,e.isExpression),F(d.argumentExpression,H,e.isExpression));case 195:return d.flags&32?e.updateCallChain(d,F(d.expression,H,e.isExpression),F(d.questionDotToken,H,e.isToken),I(d.typeArguments,H,e.isTypeNode),I(d.arguments,H,e.isExpression)):e.updateCall(d,F(d.expression,H,e.isExpression),I(d.typeArguments,H,e.isTypeNode),I(d.arguments,H,e.isExpression));case 196:return e.updateNew(d,F(d.expression,H,e.isExpression),I(d.typeArguments,H,e.isTypeNode),I(d.arguments,H,e.isExpression));case 197:return e.updateTaggedTemplate(d,F(d.tag,H,e.isExpression),qe(d.typeArguments,H,e.isExpression),F(d.template,H,e.isTemplateLiteral));case 198:return e.updateTypeAssertion(d,F(d.type,H,e.isTypeNode),F(d.expression,H,e.isExpression));case 199:return e.updateParen(d,F(d.expression,H,e.isExpression));case 200:return e.updateFunctionExpression(d,I(d.modifiers,H,e.isModifier),F(d.asteriskToken,_e,e.isToken),F(d.name,H,e.isIdentifier),I(d.typeParameters,H,e.isTypeParameterDeclaration),Fe(d.parameters,H,Pe,I),F(d.type,H,e.isTypeNode),He(d.body,H,Pe));case 201:return e.updateArrowFunction(d,I(d.modifiers,H,e.isModifier),I(d.typeParameters,H,e.isTypeParameterDeclaration),Fe(d.parameters,H,Pe,I),F(d.type,H,e.isTypeNode),F(d.equalsGreaterThanToken,H,e.isToken),He(d.body,H,Pe));case 202:return e.updateDelete(d,F(d.expression,H,e.isExpression));case 203:return e.updateTypeOf(d,F(d.expression,H,e.isExpression));case 204:return e.updateVoid(d,F(d.expression,H,e.isExpression));case 205:return e.updateAwait(d,F(d.expression,H,e.isExpression));case 206:return e.updatePrefix(d,F(d.operand,H,e.isExpression));case 207:return e.updatePostfix(d,F(d.operand,H,e.isExpression));case 208:return e.updateBinary(d,F(d.left,H,e.isExpression),F(d.right,H,e.isExpression),F(d.operatorToken,H,e.isToken));case 209:return e.updateConditional(d,F(d.condition,H,e.isExpression),F(d.questionToken,H,e.isToken),F(d.whenTrue,H,e.isExpression),F(d.colonToken,H,e.isToken),F(d.whenFalse,H,e.isExpression));case 210:return e.updateTemplateExpression(d,F(d.head,H,e.isTemplateHead),I(d.templateSpans,H,e.isTemplateSpan));case 211:return e.updateYield(d,F(d.asteriskToken,_e,e.isToken),F(d.expression,H,e.isExpression));case 212:return e.updateSpread(d,F(d.expression,H,e.isExpression));case 213:return e.updateClassExpression(d,I(d.modifiers,H,e.isModifier),F(d.name,H,e.isIdentifier),I(d.typeParameters,H,e.isTypeParameterDeclaration),I(d.heritageClauses,H,e.isHeritageClause),I(d.members,H,e.isClassElement));case 215:return e.updateExpressionWithTypeArguments(d,I(d.typeArguments,H,e.isTypeNode),F(d.expression,H,e.isExpression));case 216:return e.updateAsExpression(d,F(d.expression,H,e.isExpression),F(d.type,H,e.isTypeNode));case 217:return e.updateNonNullExpression(d,F(d.expression,H,e.isExpression));case 218:return e.updateMetaProperty(d,F(d.name,H,e.isIdentifier));case 220:return e.updateTemplateSpan(d,F(d.expression,H,e.isExpression),F(d.literal,H,e.isTemplateMiddleOrTemplateTail));case 222:return e.updateBlock(d,I(d.statements,H,e.isStatement));case 224:return e.updateVariableStatement(d,I(d.modifiers,H,e.isModifier),F(d.declarationList,H,e.isVariableDeclarationList));case 225:return e.updateExpressionStatement(d,F(d.expression,H,e.isExpression));case 226:return e.updateIf(d,F(d.expression,H,e.isExpression),F(d.thenStatement,H,e.isStatement,e.liftToBlock),F(d.elseStatement,H,e.isStatement,e.liftToBlock));case 227:return e.updateDo(d,F(d.statement,H,e.isStatement,e.liftToBlock),F(d.expression,H,e.isExpression));case 228:return e.updateWhile(d,F(d.expression,H,e.isExpression),F(d.statement,H,e.isStatement,e.liftToBlock));case 229:return e.updateFor(d,F(d.initializer,H,e.isForInitializer),F(d.condition,H,e.isExpression),F(d.incrementor,H,e.isExpression),F(d.statement,H,e.isStatement,e.liftToBlock));case 230:return e.updateForIn(d,F(d.initializer,H,e.isForInitializer),F(d.expression,H,e.isExpression),F(d.statement,H,e.isStatement,e.liftToBlock));case 231:return e.updateForOf(d,F(d.awaitModifier,H,e.isToken),F(d.initializer,H,e.isForInitializer),F(d.expression,H,e.isExpression),F(d.statement,H,e.isStatement,e.liftToBlock));case 232:return e.updateContinue(d,F(d.label,H,e.isIdentifier));case 233:return e.updateBreak(d,F(d.label,H,e.isIdentifier));case 234:return e.updateReturn(d,F(d.expression,H,e.isExpression));case 235:return e.updateWith(d,F(d.expression,H,e.isExpression),F(d.statement,H,e.isStatement,e.liftToBlock));case 236:return e.updateSwitch(d,F(d.expression,H,e.isExpression),F(d.caseBlock,H,e.isCaseBlock));case 237:return e.updateLabel(d,F(d.label,H,e.isIdentifier),F(d.statement,H,e.isStatement,e.liftToBlock));case 238:return e.updateThrow(d,F(d.expression,H,e.isExpression));case 239:return e.updateTry(d,F(d.tryBlock,H,e.isBlock),F(d.catchClause,H,e.isCatchClause),F(d.finallyBlock,H,e.isBlock));case 241:return e.updateVariableDeclaration(d,F(d.name,H,e.isBindingName),F(d.type,H,e.isTypeNode),F(d.initializer,H,e.isExpression));case 242:return e.updateVariableDeclarationList(d,I(d.declarations,H,e.isVariableDeclaration));case 243:return e.updateFunctionDeclaration(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),F(d.asteriskToken,_e,e.isToken),F(d.name,H,e.isIdentifier),I(d.typeParameters,H,e.isTypeParameterDeclaration),Fe(d.parameters,H,Pe,I),F(d.type,H,e.isTypeNode),He(d.body,H,Pe));case 244:return e.updateClassDeclaration(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),F(d.name,H,e.isIdentifier),I(d.typeParameters,H,e.isTypeParameterDeclaration),I(d.heritageClauses,H,e.isHeritageClause),I(d.members,H,e.isClassElement));case 245:return e.updateInterfaceDeclaration(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),F(d.name,H,e.isIdentifier),I(d.typeParameters,H,e.isTypeParameterDeclaration),I(d.heritageClauses,H,e.isHeritageClause),I(d.members,H,e.isTypeElement));case 246:return e.updateTypeAliasDeclaration(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),F(d.name,H,e.isIdentifier),I(d.typeParameters,H,e.isTypeParameterDeclaration),F(d.type,H,e.isTypeNode));case 247:return e.updateEnumDeclaration(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),F(d.name,H,e.isIdentifier),I(d.members,H,e.isEnumMember));case 248:return e.updateModuleDeclaration(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),F(d.name,H,e.isIdentifier),F(d.body,H,e.isModuleBody));case 249:return e.updateModuleBlock(d,I(d.statements,H,e.isStatement));case 250:return e.updateCaseBlock(d,I(d.clauses,H,e.isCaseOrDefaultClause));case 251:return e.updateNamespaceExportDeclaration(d,F(d.name,H,e.isIdentifier));case 252:return e.updateImportEqualsDeclaration(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),F(d.name,H,e.isIdentifier),F(d.moduleReference,H,e.isModuleReference));case 253:return e.updateImportDeclaration(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),F(d.importClause,H,e.isImportClause),F(d.moduleSpecifier,H,e.isExpression));case 254:return e.updateImportClause(d,F(d.name,H,e.isIdentifier),F(d.namedBindings,H,e.isNamedImportBindings));case 255:return e.updateNamespaceImport(d,F(d.name,H,e.isIdentifier));case 256:return e.updateNamedImports(d,I(d.elements,H,e.isImportSpecifier));case 257:return e.updateImportSpecifier(d,F(d.propertyName,H,e.isIdentifier),F(d.name,H,e.isIdentifier));case 258:return e.updateExportAssignment(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),F(d.expression,H,e.isExpression));case 259:return e.updateExportDeclaration(d,I(d.decorators,H,e.isDecorator),I(d.modifiers,H,e.isModifier),F(d.exportClause,H,e.isNamedExports),F(d.moduleSpecifier,H,e.isExpression));case 260:return e.updateNamedExports(d,I(d.elements,H,e.isExportSpecifier));case 261:return e.updateExportSpecifier(d,F(d.propertyName,H,e.isIdentifier),F(d.name,H,e.isIdentifier));case 263:return e.updateExternalModuleReference(d,F(d.expression,H,e.isExpression));case 264:return e.updateJsxElement(d,F(d.openingElement,H,e.isJsxOpeningElement),I(d.children,H,e.isJsxChild),F(d.closingElement,H,e.isJsxClosingElement));case 265:return e.updateJsxSelfClosingElement(d,F(d.tagName,H,e.isJsxTagNameExpression),I(d.typeArguments,H,e.isTypeNode),F(d.attributes,H,e.isJsxAttributes));case 266:return e.updateJsxOpeningElement(d,F(d.tagName,H,e.isJsxTagNameExpression),I(d.typeArguments,H,e.isTypeNode),F(d.attributes,H,e.isJsxAttributes));case 267:return e.updateJsxClosingElement(d,F(d.tagName,H,e.isJsxTagNameExpression));case 268:return e.updateJsxFragment(d,F(d.openingFragment,H,e.isJsxOpeningFragment),I(d.children,H,e.isJsxChild),F(d.closingFragment,H,e.isJsxClosingFragment));case 271:return e.updateJsxAttribute(d,F(d.name,H,e.isIdentifier),F(d.initializer,H,e.isStringLiteralOrJsxExpression));case 272:return e.updateJsxAttributes(d,I(d.properties,H,e.isJsxAttributeLike));case 273:return e.updateJsxSpreadAttribute(d,F(d.expression,H,e.isExpression));case 274:return e.updateJsxExpression(d,F(d.expression,H,e.isExpression));case 275:return e.updateCaseClause(d,F(d.expression,H,e.isExpression),I(d.statements,H,e.isStatement));case 276:return e.updateDefaultClause(d,I(d.statements,H,e.isStatement));case 277:return e.updateHeritageClause(d,I(d.types,H,e.isExpressionWithTypeArguments));case 278:return e.updateCatchClause(d,F(d.variableDeclaration,H,e.isVariableDeclaration),F(d.block,H,e.isBlock));case 279:return e.updatePropertyAssignment(d,F(d.name,H,e.isPropertyName),F(d.initializer,H,e.isExpression));case 280:return e.updateShorthandPropertyAssignment(d,F(d.name,H,e.isIdentifier),F(d.objectAssignmentInitializer,H,e.isExpression));case 281:return e.updateSpreadAssignment(d,F(d.expression,H,e.isExpression));case 282:return e.updateEnumMember(d,F(d.name,H,e.isPropertyName),F(d.initializer,H,e.isExpression));case 288:return e.updateSourceFileNode(d,Se(d.statements,H,Pe));case 319:return e.updatePartiallyEmittedExpression(d,F(d.expression,H,e.isExpression));case 320:return e.updateCommaList(d,I(d.elements,H,e.isExpression));default:return d}}e.visitEachChild=ve;function ie(d){return e.Debug.assert(d.length<=1,"Too many nodes written to output."),e.singleOrUndefined(d)}})(ln||(ln={})),function(e){function o(I,_e,re){return I?_e(re,I):re}function F(I,_e,re){return I?_e(re,I):re}function qe(I,_e,re,se){if(I===void 0)return _e;var w=se?F:e.reduceLeft,k=se||re,P=I.kind;if(P>0&&P<=151)return _e;if(P>=167&&P<=186)return _e;var h=_e;switch(I.kind){case 221:case 223:case 214:case 240:case 318:break;case 152:h=o(I.left,re,h),h=o(I.right,re,h);break;case 153:h=o(I.expression,re,h);break;case 155:h=w(I.decorators,k,h),h=w(I.modifiers,k,h),h=o(I.name,re,h),h=o(I.type,re,h),h=o(I.initializer,re,h);break;case 156:h=o(I.expression,re,h);break;case 157:h=w(I.modifiers,k,h),h=o(I.name,re,h),h=o(I.questionToken,re,h),h=o(I.type,re,h),h=o(I.initializer,re,h);break;case 158:h=w(I.decorators,k,h),h=w(I.modifiers,k,h),h=o(I.name,re,h),h=o(I.type,re,h),h=o(I.initializer,re,h);break;case 160:h=w(I.decorators,k,h),h=w(I.modifiers,k,h),h=o(I.name,re,h),h=w(I.typeParameters,k,h),h=w(I.parameters,k,h),h=o(I.type,re,h),h=o(I.body,re,h);break;case 161:h=w(I.modifiers,k,h),h=w(I.parameters,k,h),h=o(I.body,re,h);break;case 162:h=w(I.decorators,k,h),h=w(I.modifiers,k,h),h=o(I.name,re,h),h=w(I.parameters,k,h),h=o(I.type,re,h),h=o(I.body,re,h);break;case 163:h=w(I.decorators,k,h),h=w(I.modifiers,k,h),h=o(I.name,re,h),h=w(I.parameters,k,h),h=o(I.body,re,h);break;case 188:case 189:h=w(I.elements,k,h);break;case 190:h=o(I.propertyName,re,h),h=o(I.name,re,h),h=o(I.initializer,re,h);break;case 191:h=w(I.elements,k,h);break;case 192:h=w(I.properties,k,h);break;case 193:h=o(I.expression,re,h),h=o(I.name,re,h);break;case 194:h=o(I.expression,re,h),h=o(I.argumentExpression,re,h);break;case 195:h=o(I.expression,re,h),h=w(I.typeArguments,k,h),h=w(I.arguments,k,h);break;case 196:h=o(I.expression,re,h),h=w(I.typeArguments,k,h),h=w(I.arguments,k,h);break;case 197:h=o(I.tag,re,h),h=w(I.typeArguments,k,h),h=o(I.template,re,h);break;case 198:h=o(I.type,re,h),h=o(I.expression,re,h);break;case 200:h=w(I.modifiers,k,h),h=o(I.name,re,h),h=w(I.typeParameters,k,h),h=w(I.parameters,k,h),h=o(I.type,re,h),h=o(I.body,re,h);break;case 201:h=w(I.modifiers,k,h),h=w(I.typeParameters,k,h),h=w(I.parameters,k,h),h=o(I.type,re,h),h=o(I.body,re,h);break;case 199:case 202:case 203:case 204:case 205:case 211:case 212:case 217:h=o(I.expression,re,h);break;case 206:case 207:h=o(I.operand,re,h);break;case 208:h=o(I.left,re,h),h=o(I.right,re,h);break;case 209:h=o(I.condition,re,h),h=o(I.whenTrue,re,h),h=o(I.whenFalse,re,h);break;case 210:h=o(I.head,re,h),h=w(I.templateSpans,k,h);break;case 213:h=w(I.modifiers,k,h),h=o(I.name,re,h),h=w(I.typeParameters,k,h),h=w(I.heritageClauses,k,h),h=w(I.members,k,h);break;case 215:h=o(I.expression,re,h),h=w(I.typeArguments,k,h);break;case 216:h=o(I.expression,re,h),h=o(I.type,re,h);break;case 220:h=o(I.expression,re,h),h=o(I.literal,re,h);break;case 222:h=w(I.statements,k,h);break;case 224:h=w(I.modifiers,k,h),h=o(I.declarationList,re,h);break;case 225:h=o(I.expression,re,h);break;case 226:h=o(I.expression,re,h),h=o(I.thenStatement,re,h),h=o(I.elseStatement,re,h);break;case 227:h=o(I.statement,re,h),h=o(I.expression,re,h);break;case 228:case 235:h=o(I.expression,re,h),h=o(I.statement,re,h);break;case 229:h=o(I.initializer,re,h),h=o(I.condition,re,h),h=o(I.incrementor,re,h),h=o(I.statement,re,h);break;case 230:case 231:h=o(I.initializer,re,h),h=o(I.expression,re,h),h=o(I.statement,re,h);break;case 234:case 238:h=o(I.expression,re,h);break;case 236:h=o(I.expression,re,h),h=o(I.caseBlock,re,h);break;case 237:h=o(I.label,re,h),h=o(I.statement,re,h);break;case 239:h=o(I.tryBlock,re,h),h=o(I.catchClause,re,h),h=o(I.finallyBlock,re,h);break;case 241:h=o(I.name,re,h),h=o(I.type,re,h),h=o(I.initializer,re,h);break;case 242:h=w(I.declarations,k,h);break;case 243:h=w(I.decorators,k,h),h=w(I.modifiers,k,h),h=o(I.name,re,h),h=w(I.typeParameters,k,h),h=w(I.parameters,k,h),h=o(I.type,re,h),h=o(I.body,re,h);break;case 244:h=w(I.decorators,k,h),h=w(I.modifiers,k,h),h=o(I.name,re,h),h=w(I.typeParameters,k,h),h=w(I.heritageClauses,k,h),h=w(I.members,k,h);break;case 247:h=w(I.decorators,k,h),h=w(I.modifiers,k,h),h=o(I.name,re,h),h=w(I.members,k,h);break;case 248:h=w(I.decorators,k,h),h=w(I.modifiers,k,h),h=o(I.name,re,h),h=o(I.body,re,h);break;case 249:h=w(I.statements,k,h);break;case 250:h=w(I.clauses,k,h);break;case 252:h=w(I.decorators,k,h),h=w(I.modifiers,k,h),h=o(I.name,re,h),h=o(I.moduleReference,re,h);break;case 253:h=w(I.decorators,k,h),h=w(I.modifiers,k,h),h=o(I.importClause,re,h),h=o(I.moduleSpecifier,re,h);break;case 254:h=o(I.name,re,h),h=o(I.namedBindings,re,h);break;case 255:h=o(I.name,re,h);break;case 256:case 260:h=w(I.elements,k,h);break;case 257:case 261:h=o(I.propertyName,re,h),h=o(I.name,re,h);break;case 258:h=e.reduceLeft(I.decorators,re,h),h=e.reduceLeft(I.modifiers,re,h),h=o(I.expression,re,h);break;case 259:h=e.reduceLeft(I.decorators,re,h),h=e.reduceLeft(I.modifiers,re,h),h=o(I.exportClause,re,h),h=o(I.moduleSpecifier,re,h);break;case 263:h=o(I.expression,re,h);break;case 264:h=o(I.openingElement,re,h),h=e.reduceLeft(I.children,re,h),h=o(I.closingElement,re,h);break;case 268:h=o(I.openingFragment,re,h),h=e.reduceLeft(I.children,re,h),h=o(I.closingFragment,re,h);break;case 265:case 266:h=o(I.tagName,re,h),h=w(I.typeArguments,re,h),h=o(I.attributes,re,h);break;case 272:h=w(I.properties,k,h);break;case 267:h=o(I.tagName,re,h);break;case 271:h=o(I.name,re,h),h=o(I.initializer,re,h);break;case 273:h=o(I.expression,re,h);break;case 274:h=o(I.expression,re,h);break;case 275:h=o(I.expression,re,h);case 276:h=w(I.statements,k,h);break;case 277:h=w(I.types,k,h);break;case 278:h=o(I.variableDeclaration,re,h),h=o(I.block,re,h);break;case 279:h=o(I.name,re,h),h=o(I.initializer,re,h);break;case 280:h=o(I.name,re,h),h=o(I.objectAssignmentInitializer,re,h);break;case 281:h=o(I.expression,re,h);break;case 282:h=o(I.name,re,h),h=o(I.initializer,re,h);break;case 288:h=w(I.statements,k,h);break;case 319:h=o(I.expression,re,h);break;case 320:h=w(I.elements,k,h);break;default:break}return h}e.reduceEachChild=qe;function Se(I,_e){return e.some(_e)?e.isNodeArray(I)?e.setTextRange(e.createNodeArray(e.insertStatementsAfterStandardPrologue(I.slice(),_e)),I):e.insertStatementsAfterStandardPrologue(I,_e):I}e.mergeLexicalEnvironment=Se;function Fe(I){return e.Debug.assert(e.every(I,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(I)||e.createBlock(I)}e.liftToBlock=Fe;function He(I){return ve(I),I}e.aggregateTransformFlags=He;function ve(I){if(I===void 0)return 0;if(I.transformFlags&536870912)return I.transformFlags&~e.getTransformFlagsSubtreeExclusions(I.kind);var _e=d(I);return e.computeTransformFlagsForNode(I,_e)}function ie(I){if(I===void 0)return 0;for(var _e=0,re=0,se=0,w=I;se<w.length;se++){var k=w[se];_e|=ve(k),re|=k.transformFlags&~536870912}return I.transformFlags=re|536870912,_e}function d(I){return e.hasModifier(I,2)||e.isTypeNode(I)&&I.kind!==215?0:qe(I,0,H,Pe)}function H(I,_e){return I|ve(_e)}function Pe(I,_e){return I|ie(_e)}}(ln||(ln={}));var ln;(function(e){function o($,J,fe,R,K){var z=K.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,Ee=z.enter,B=z.exit,V=[],m=[],y=e.createMap(),L,C=[],_,b="",D=0,T=0,Q=0,N=0,X=0,pe=0,S=!1,v=0,U=0,de=0,Ce=0,Z=0,Re=0,Ae=!1,We=!1,be=!1;return{getSources:function(){return V},addSource:Ge,setSourceContent:x,addName:j,addMapping:en,appendSourceMap:Pn,toJSON:ce,toString:function(){return JSON.stringify(ce())}};function Ge(Le){Ee();var Je=e.getRelativePathToDirectoryOrUrl(R,Le,$.getCurrentDirectory(),$.getCanonicalFileName,!0),Ze=y.get(Je);return Ze===void 0&&(Ze=m.length,m.push(Je),V.push(Le),y.set(Je,Ze)),B(),Ze}function x(Le,Je){if(Ee(),Je!==null){for(L||(L=[]);L.length<Le;)L.push(null);L[Le]=Je}B()}function j(Le){Ee(),_||(_=e.createMap());var Je=_.get(Le);return Je===void 0&&(Je=C.length,C.push(Le),_.set(Le,Je)),B(),Je}function Oe(Le,Je){return!Ae||v!==Le||U!==Je}function a(Le,Je,Ze){return Le!==void 0&&Je!==void 0&&Ze!==void 0&&de===Le&&(Ce>Je||Ce===Je&&Z>Ze)}function en(Le,Je,Ze,Ue,cn,$e){e.Debug.assert(Le>=v,"generatedLine cannot backtrack"),e.Debug.assert(Je>=0,"generatedCharacter cannot be negative"),e.Debug.assert(Ze===void 0||Ze>=0,"sourceIndex cannot be negative"),e.Debug.assert(Ue===void 0||Ue>=0,"sourceLine cannot be negative"),e.Debug.assert(cn===void 0||cn>=0,"sourceCharacter cannot be negative"),Ee(),(Oe(Le,Je)||a(Ze,Ue,cn))&&(ae(),v=Le,U=Je,We=!1,be=!1,Ae=!0),Ze!==void 0&&Ue!==void 0&&cn!==void 0&&(de=Ze,Ce=Ue,Z=cn,We=!0,$e!==void 0&&(Re=$e,be=!0)),B()}function Pn(Le,Je,Ze,Ue,cn,$e){e.Debug.assert(Le>=v,"generatedLine cannot backtrack"),e.Debug.assert(Je>=0,"generatedCharacter cannot be negative"),Ee();for(var sn=[],he,ke=d(Ze.mappings),G=ke.next();!G.done;G=ke.next()){var c=G.value;if($e&&(c.generatedLine>$e.line||c.generatedLine===$e.line&&c.generatedCharacter>$e.character))break;if(cn&&(c.generatedLine<cn.line||cn.line===c.generatedLine&&c.generatedCharacter<cn.character))continue;var O=void 0,ee=void 0,Te=void 0,Ne=void 0;if(c.sourceIndex!==void 0){if(O=sn[c.sourceIndex],O===void 0){var ze=Ze.sources[c.sourceIndex],bn=Ze.sourceRoot?e.combinePaths(Ze.sourceRoot,ze):ze,Sn=e.combinePaths(e.getDirectoryPath(Ue),bn);sn[c.sourceIndex]=O=Ge(Sn),Ze.sourcesContent&&typeof Ze.sourcesContent[c.sourceIndex]=="string"&&x(O,Ze.sourcesContent[c.sourceIndex])}ee=c.sourceLine,Te=c.sourceCharacter,Ze.names&&c.nameIndex!==void 0&&(he||(he=[]),Ne=he[c.nameIndex],Ne===void 0&&(he[c.nameIndex]=Ne=j(Ze.names[c.nameIndex])))}var Kn=c.generatedLine-(cn?cn.line:0),Xe=Kn+Le,pn=cn&&cn.line===c.generatedLine?c.generatedCharacter-cn.character:c.generatedCharacter,le=Kn===0?pn+Je:pn;en(Xe,le,O,ee,Te,Ne)}B()}function Xn(){return!S||D!==v||T!==U||Q!==de||N!==Ce||X!==Z||pe!==Re}function ae(){if(!Ae||!Xn())return;if(Ee(),D<v)do b+=";",D++,T=0;while(D<v);else e.Debug.assertEqual(D,v,"generatedLine cannot backtrack"),S&&(b+=",");b+=re(U-T),T=U,We&&(b+=re(de-Q),Q=de,b+=re(Ce-N),N=Ce,b+=re(Z-X),X=Z,be&&(b+=re(Re-pe),pe=Re)),S=!0,B()}function ce(){return ae(),{version:3,file:J,sourceRoot:fe,sources:m,names:C,mappings:b,sourcesContent:L}}}e.createSourceMapGenerator=o;var F=/^\/\/[@#] source[M]appingURL=(.+)\s*$/,qe=/^\s*(\/\/[@#] .*)?$/;function Se($,J){return{getLineCount:function(){return J.length},getLineText:function(R){return $.substring(J[R],J[R+1])}}}e.getLineInfo=Se;function Fe($){for(var J=$.getLineCount()-1;J>=0;J--){var fe=$.getLineText(J),R=F.exec(fe);if(R)return R[1];if(!fe.match(qe))break}}e.tryGetSourceMappingURL=Fe;function He($){return typeof $=="string"||$===null}function ve($){return $!==null&&typeof $=="object"&&$.version===3&&typeof $.file=="string"&&typeof $.mappings=="string"&&e.isArray($.sources)&&e.every($.sources,e.isString)&&($.sourceRoot===void 0||$.sourceRoot===null||typeof $.sourceRoot=="string")&&($.sourcesContent===void 0||$.sourcesContent===null||e.isArray($.sourcesContent)&&e.every($.sourcesContent,He))&&($.names===void 0||$.names===null||e.isArray($.names)&&e.every($.names,e.isString))}e.isRawSourceMap=ve;function ie($){try{var J=JSON.parse($);if(ve(J))return J}catch(fe){}return}e.tryParseRawSourceMap=ie;function d($){var J=!1,fe=0,R=0,K=0,z=0,Ee=0,B=0,V=0,m;return{get pos(){return fe},get error(){return m},get state(){return y(!0,!0)},next:function(){for(;!J&&fe<$.length;){var N=$.charCodeAt(fe);if(N===59){R++,K=0,fe++;continue}if(N===44){fe++;continue}var X=!1,pe=!1;if(K+=T(),b())return L();if(K<0)return _("Invalid generatedCharacter found");if(!D()){if(X=!0,z+=T(),b())return L();if(z<0)return _("Invalid sourceIndex found");if(D())return _("Unsupported Format: No entries after sourceIndex");if(Ee+=T(),b())return L();if(Ee<0)return _("Invalid sourceLine found");if(D())return _("Unsupported Format: No entries after sourceLine");if(B+=T(),b())return L();if(B<0)return _("Invalid sourceCharacter found");if(!D()){if(pe=!0,V+=T(),b())return L();if(V<0)return _("Invalid nameIndex found");if(!D())return _("Unsupported Error Format: Entries after nameIndex")}}return{value:y(X,pe),done:J}}return L()}};function y(Q,N){return{generatedLine:R,generatedCharacter:K,sourceIndex:Q?z:void 0,sourceLine:Q?Ee:void 0,sourceCharacter:Q?B:void 0,nameIndex:N?V:void 0}}function L(){return J=!0,{value:void 0,done:!0}}function C(Q){m===void 0&&(m=Q)}function _(Q){return C(Q),L()}function b(){return m!==void 0}function D(){return fe===$.length||$.charCodeAt(fe)===44||$.charCodeAt(fe)===59}function T(){for(var Q=!0,N=0,X=0;Q;fe++){if(fe>=$.length)return C("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var pe=_e($.charCodeAt(fe));if(pe===-1)return C("Invalid character in VLQ"),-1;Q=(pe&32)!==0,X=X|(pe&31)<<N,N+=5}return(X&1)===0?X=X>>1:(X=X>>1,X=-X),X}}e.decodeMappings=d;function H($,J){return $===J||$.generatedLine===J.generatedLine&&$.generatedCharacter===J.generatedCharacter&&$.sourceIndex===J.sourceIndex&&$.sourceLine===J.sourceLine&&$.sourceCharacter===J.sourceCharacter&&$.nameIndex===J.nameIndex}e.sameMapping=H;function Pe($){return $.sourceIndex!==void 0&&$.sourceLine!==void 0&&$.sourceCharacter!==void 0}e.isSourceMapping=Pe;function I($){return $>=0&&$<26?65+$:$>=26&&$<52?97+$-26:$>=52&&$<62?48+$-52:$===62?43:$===63?47:e.Debug.fail($+": not a base64 value")}function _e($){return $>=65&&$<=90?$-65:$>=97&&$<=122?$-97+26:$>=48&&$<=57?$-48+52:$===43?62:$===47?63:-1}function re($){$<0?$=(-$<<1)+1:$=$<<1;var J="";do{var fe=$&31;$=$>>5,$>0&&(fe=fe|32),J=J+String.fromCharCode(I(fe))}while($>0);return J}function se($){return $.sourceIndex!==void 0&&$.sourcePosition!==void 0}function w($,J){return $.generatedPosition===J.generatedPosition&&$.sourceIndex===J.sourceIndex&&$.sourcePosition===J.sourcePosition}function k($,J){return e.Debug.assert($.sourceIndex===J.sourceIndex),e.compareValues($.sourcePosition,J.sourcePosition)}function P($,J){return e.compareValues($.generatedPosition,J.generatedPosition)}function h($){return $.sourcePosition}function Y($){return $.generatedPosition}function ne($,J,fe){var R=e.getDirectoryPath(fe),K=J.sourceRoot?e.getNormalizedAbsolutePath(J.sourceRoot,R):R,z=e.getNormalizedAbsolutePath(J.file,R),Ee=$.getSourceFileLike(z),B=J.sources.map(function(N){return e.getNormalizedAbsolutePath(N,K)}),V=e.createMapFromEntries(B.map(function(N,X){return[$.getCanonicalFileName(N),X]})),m,y,L;return{getSourcePosition:Q,getGeneratedPosition:T};function C(N){var X=Ee!==void 0?e.getPositionOfLineAndCharacter(Ee,N.generatedLine,N.generatedCharacter,!0):-1,pe,S;if(Pe(N)){var v=$.getSourceFileLike(B[N.sourceIndex]);pe=J.sources[N.sourceIndex],S=v!==void 0?e.getPositionOfLineAndCharacter(v,N.sourceLine,N.sourceCharacter,!0):-1}return{generatedPosition:X,source:pe,sourceIndex:N.sourceIndex,sourcePosition:S,nameIndex:N.nameIndex}}function _(){if(m===void 0){var N=d(J.mappings),X=e.arrayFrom(N,C);N.error!==void 0?($.log&&$.log("Encountered error while decoding sourcemap: "+N.error),m=e.emptyArray):m=X}return m}function b(N){if(L===void 0){for(var X=[],pe=0,S=_();pe<S.length;pe++){var v=S[pe];if(!se(v))continue;var U=X[v.sourceIndex];U||(X[v.sourceIndex]=U=[]),U.push(v)}L=X.map(function(de){return e.sortAndDeduplicate(de,k,w)})}return L[N]}function D(){if(y===void 0){for(var N=[],X=0,pe=_();X<pe.length;X++){var S=pe[X];N.push(S)}y=e.sortAndDeduplicate(N,P,w)}return y}function T(N){var X=V.get($.getCanonicalFileName(N.fileName));if(X===void 0)return N;var pe=b(X);if(!e.some(pe))return N;var S=e.binarySearchKey(pe,N.pos,h,e.compareValues);S<0&&(S=~S);var v=pe[S];return v===void 0||v.sourceIndex!==X?N:{fileName:z,pos:v.generatedPosition}}function Q(N){var X=D();if(!e.some(X))return N;var pe=e.binarySearchKey(X,N.pos,Y,e.compareValues);pe<0&&(pe=~pe);var S=X[pe];return S===void 0||!se(S)?N:{fileName:B[S.sourceIndex],pos:S.sourcePosition}}}e.createDocumentPositionMapper=ne,e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}})(ln||(ln={}));var ln;(function(e){function o(k){return k=e.getOriginalNode(k),k?e.getNodeId(k):0}e.getOriginalNodeId=o;function F(k){return k&&e.isNamedImports(k)?e.some(k.elements,qe):!1}function qe(k){return k.propertyName!==void 0&&k.propertyName.escapedText==="default"}function Se(k){return P;function P(Y){return Y.kind===288?k(Y):h(Y)}function h(Y){return e.createBundle(e.map(Y.sourceFiles,k),Y.prepends)}}e.chainBundle=Se;function Fe(k){if(e.getNamespaceDeclarationNode(k))return!0;var P=k.importClause&&k.importClause.namedBindings;if(!P)return!1;if(!e.isNamedImports(P))return!1;for(var h=0,Y=0,ne=P.elements;Y<ne.length;Y++){var $=ne[Y];qe($)&&h++}return h>0&&h!==P.elements.length||!!(P.elements.length-h)&&e.isDefaultImport(k)}e.getImportNeedsImportStarHelper=Fe;function He(k){return!Fe(k)&&(e.isDefaultImport(k)||!!k.importClause&&e.isNamedImports(k.importClause.namedBindings)&&F(k.importClause.namedBindings))}e.getImportNeedsImportDefaultHelper=He;function ve(k,P,h){for(var Y=[],ne=e.createMultiMap(),$=[],J=e.createMap(),fe,R=!1,K,z=!1,Ee=!1,B=!1,V=0,m=k.statements;V<m.length;V++){var y=m[V];switch(y.kind){case 253:Y.push(y),!Ee&&Fe(y)&&(Ee=!0),!B&&He(y)&&(B=!0);break;case 252:y.moduleReference.kind===263&&Y.push(y);break;case 259:if(y.moduleSpecifier)y.exportClause?Y.push(y):(Y.push(y),z=!0);else for(var L=0,C=y.exportClause.elements;L<C.length;L++){var _=C[L];if(!J.get(e.idText(_.name))){var b=_.propertyName||_.name;ne.add(e.idText(b),_);var D=P.getReferencedImportDeclaration(b)||P.getReferencedValueDeclaration(b);D&&d($,o(D),_.name),J.set(e.idText(_.name),!0),fe=e.append(fe,_.name)}}break;case 258:y.isExportEquals&&!K&&(K=y);break;case 224:if(e.hasModifier(y,1))for(var T=0,Q=y.declarationList.declarations;T<Q.length;T++){var D=Q[T];fe=ie(D,J,fe)}break;case 243:if(e.hasModifier(y,1))if(e.hasModifier(y,512))R||(d($,o(y),e.getDeclarationName(y)),R=!0);else{var b=y.name;J.get(e.idText(b))||(d($,o(y),b),J.set(e.idText(b),!0),fe=e.append(fe,b))}break;case 244:if(e.hasModifier(y,1))if(e.hasModifier(y,512))R||(d($,o(y),e.getDeclarationName(y)),R=!0);else{var b=y.name;b&&!J.get(e.idText(b))&&(d($,o(y),b),J.set(e.idText(b),!0),fe=e.append(fe,b))}break}}var N=e.createExternalHelpersImportDeclarationIfNeeded(k,h,z,Ee,B);return N&&Y.unshift(N),{externalImports:Y,exportSpecifiers:ne,exportEquals:K,hasExportStarsToExportValues:z,exportedBindings:$,exportedNames:fe,externalHelpersImportDeclaration:N}}e.collectExternalModuleInfo=ve;function ie(k,P,h){if(e.isBindingPattern(k.name))for(var Y=0,ne=k.name.elements;Y<ne.length;Y++){var $=ne[Y];e.isOmittedExpression($)||(h=ie($,P,h))}else if(!e.isGeneratedIdentifier(k.name)){var J=e.idText(k.name);P.get(J)||(P.set(J,!0),h=e.append(h,k.name))}return h}function d(k,P,h){var Y=k[P];return Y?Y.push(h):k[P]=Y=[h],Y}function H(k){return e.isStringLiteralLike(k)||k.kind===8||e.isKeyword(k.kind)||e.isIdentifier(k)}e.isSimpleCopiableExpression=H;function Pe(k){return!e.isIdentifier(k)&&H(k)||e.isWellKnownSymbolSyntactically(k)}e.isSimpleInlineableExpression=Pe;function I(k,P,h){if(k.body){var Y=k.body.statements,ne=e.addPrologue(P,Y,!1,h);if(ne===Y.length)return ne;var $=Y[ne];return $.kind===225&&e.isSuperCall($.expression)?(P.push(e.visitNode($,h,e.isStatement)),ne+1):ne}return 0}e.addPrologueDirectivesAndInitialSuperCall=I;function _e(k){for(var P=[],h=1;h<arguments.length;h++)P[h-1]=arguments[h];return function(Y){for(var ne="",$=0;$<P.length;$++)ne+=k[$],ne+=Y(P[$]);return ne+=k[k.length-1],ne}}e.helperString=_e;function re(k,P,h){return e.filter(k.members,function(Y){return se(Y,P,h)})}e.getProperties=re;function se(k,P,h){return e.isPropertyDeclaration(k)&&(!!k.initializer||!P)&&e.hasStaticModifier(k)===h}function w(k,P){return e.isPropertyDeclaration(k)&&(!!k.initializer||!P)}e.isInitializedProperty=w})(ln||(ln={}));var ln;(function(e){var o;(function(h){h[h.All=0]="All",h[h.ObjectRest=1]="ObjectRest"})(o=e.FlattenLevel||(e.FlattenLevel={}));function F(h,Y,ne,$,J,fe){var R=h,K;if(e.isDestructuringAssignment(h))for(K=h.right;e.isEmptyArrayLiteral(h.left)||e.isEmptyObjectLiteral(h.left);)if(e.isDestructuringAssignment(K))R=h=K,K=h.right;else return e.visitNode(K,Y,e.isExpression);var z,Ee={context:ne,level:$,downlevelIteration:!!ne.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:B,emitBindingOrAssignment:V,createArrayBindingOrAssignmentPattern:_e,createObjectBindingOrAssignmentPattern:se,createArrayBindingOrAssignmentElement:k,visitor:Y};if(K&&(K=e.visitNode(K,Y,e.isExpression),e.isIdentifier(K)&&qe(h,K.escapedText)?K=Pe(Ee,K,!1,R):J?K=Pe(Ee,K,!0,R):e.nodeIsSynthesized(h)&&(R=K)),He(Ee,h,K,R,e.isDestructuringAssignment(h)),K&&J){if(!e.some(z))return K;z.push(K)}return e.aggregateTransformFlags(e.inlineExpressions(z))||e.createOmittedExpression();function B(m){e.setEmitFlags(m,64),e.aggregateTransformFlags(m),z=e.append(z,m)}function V(m,y,L,C){e.Debug.assertNode(m,fe?e.isIdentifier:e.isExpression);var _=fe?fe(m,y,L):e.setTextRange(e.createAssignment(e.visitNode(m,Y,e.isExpression),y),L);_.original=C,B(_)}}e.flattenDestructuringAssignment=F;function qe(h,Y){var ne=e.getTargetOfBindingOrAssignmentElement(h);return e.isBindingOrAssignmentPattern(ne)?Se(ne,Y):e.isIdentifier(ne)?ne.escapedText===Y:!1}function Se(h,Y){for(var ne=e.getElementsOfBindingOrAssignmentPattern(h),$=0,J=ne;$<J.length;$++){var fe=J[$];if(qe(fe,Y))return!0}return!1}function Fe(h,Y,ne,$,J,fe,R){fe===void 0&&(fe=!1);var K,z=[],Ee=[],B={context:ne,level:$,downlevelIteration:!!ne.getCompilerOptions().downlevelIteration,hoistTempVariables:fe,emitExpression:pe,emitBindingOrAssignment:S,createArrayBindingOrAssignmentPattern:I,createObjectBindingOrAssignmentPattern:re,createArrayBindingOrAssignmentElement:w,visitor:Y};if(e.isVariableDeclaration(h)){var V=e.getInitializerOfBindingOrAssignmentElement(h);V&&e.isIdentifier(V)&&qe(h,V.escapedText)&&(V=Pe(B,V,!1,V),h=e.updateVariableDeclaration(h,h.name,h.type,V))}if(He(B,h,J,h,R),K){var m=e.createTempVariable(void 0);if(fe){var y=e.inlineExpressions(K);K=void 0,S(m,y,void 0,void 0)}else{ne.hoistVariableDeclaration(m);var L=e.last(z);L.pendingExpressions=e.append(L.pendingExpressions,e.createAssignment(m,L.value)),e.addRange(L.pendingExpressions,K),L.value=m}}for(var C=0,_=z;C<_.length;C++){var b=_[C],D=b.pendingExpressions,T=b.name,y=b.value,Q=b.location,N=b.original,X=e.createVariableDeclaration(T,void 0,D?e.inlineExpressions(e.append(D,y)):y);X.original=N,e.setTextRange(X,Q),e.isIdentifier(T)&&e.setEmitFlags(X,64),e.aggregateTransformFlags(X),Ee.push(X)}return Ee;function pe(v){K=e.append(K,v)}function S(v,U,de,Ce){e.Debug.assertNode(v,e.isBindingName),K&&(U=e.inlineExpressions(e.append(K,U)),K=void 0),z.push({pendingExpressions:K,name:v,value:U,location:de,original:Ce})}}e.flattenDestructuringBinding=Fe;function He(h,Y,ne,$,J){if(!J){var fe=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(Y),h.visitor,e.isExpression);fe?ne=ne?d(h,ne,fe,$):fe:ne||(ne=e.createVoidZero())}var R=e.getTargetOfBindingOrAssignmentElement(Y);e.isObjectBindingOrAssignmentPattern(R)?ve(h,Y,R,ne,$):e.isArrayBindingOrAssignmentPattern(R)?ie(h,Y,R,ne,$):h.emitBindingOrAssignment(R,ne,$,Y)}function ve(h,Y,ne,$,J){var fe=e.getElementsOfBindingOrAssignmentPattern(ne),R=fe.length;if(R!==1){var K=!e.isDeclarationBindingElement(Y)||R!==0;$=Pe(h,$,K,J)}for(var z,Ee,B=0;B<R;B++){var V=fe[B];if(e.getRestIndicatorOfBindingOrAssignmentElement(V)){if(B===R-1){z&&(h.emitBindingOrAssignment(h.createObjectBindingOrAssignmentPattern(z),$,J,ne),z=void 0);var y=P(h.context,$,fe,Ee,ne);He(h,V,y,V)}}else{var m=e.getPropertyNameOfBindingOrAssignmentElement(V);if(h.level>=1&&!(V.transformFlags&(4096|8192))&&!(e.getTargetOfBindingOrAssignmentElement(V).transformFlags&(4096|8192))&&!e.isComputedPropertyName(m))z=e.append(z,V);else{z&&(h.emitBindingOrAssignment(h.createObjectBindingOrAssignmentPattern(z),$,J,ne),z=void 0);var y=H(h,$,m);e.isComputedPropertyName(m)&&(Ee=e.append(Ee,y.argumentExpression)),He(h,V,y,V)}}}z&&h.emitBindingOrAssignment(h.createObjectBindingOrAssignmentPattern(z),$,J,ne)}function ie(h,Y,ne,$,J){var fe=e.getElementsOfBindingOrAssignmentPattern(ne),R=fe.length;if(h.level<1&&h.downlevelIteration)$=Pe(h,e.createReadHelper(h.context,$,R>0&&e.getRestIndicatorOfBindingOrAssignmentElement(fe[R-1])?void 0:R,J),!1,J);else if(R!==1&&(h.level<1||R===0)||e.every(fe,e.isOmittedExpression)){var K=!e.isDeclarationBindingElement(Y)||R!==0;$=Pe(h,$,K,J)}for(var z,Ee,B=0;B<R;B++){var V=fe[B];if(h.level>=1)if(V.transformFlags&8192){var m=e.createTempVariable(void 0);h.hoistTempVariables&&h.context.hoistVariableDeclaration(m),Ee=e.append(Ee,[m,V]),z=e.append(z,h.createArrayBindingOrAssignmentElement(m))}else z=e.append(z,V);else{if(e.isOmittedExpression(V))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(V)){if(B===R-1){var y=e.createArraySlice($,B);He(h,V,y,V)}}else{var y=e.createElementAccess($,B);He(h,V,y,V)}}}if(z&&h.emitBindingOrAssignment(h.createArrayBindingOrAssignmentPattern(z),$,J,ne),Ee)for(var L=0,C=Ee;L<C.length;L++){var _=C[L],b=_[0],V=_[1];He(h,V,b,V)}}function d(h,Y,ne,$){return Y=Pe(h,Y,!0,$),e.createConditional(e.createTypeCheck(Y,"undefined"),ne,Y)}function H(h,Y,ne){if(e.isComputedPropertyName(ne)){var $=Pe(h,e.visitNode(ne.expression,h.visitor),!1,ne);return e.createElementAccess(Y,$)}else if(e.isStringOrNumericLiteralLike(ne)){var $=e.getSynthesizedClone(ne);return $.text=$.text,e.createElementAccess(Y,$)}else{var J=e.createIdentifier(e.idText(ne));return e.createPropertyAccess(Y,J)}}function Pe(h,Y,ne,$){if(e.isIdentifier(Y)&&ne)return Y;var J=e.createTempVariable(void 0);return h.hoistTempVariables?(h.context.hoistVariableDeclaration(J),h.emitExpression(e.setTextRange(e.createAssignment(J,Y),$))):h.emitBindingOrAssignment(J,Y,$,void 0),J}function I(h){return e.Debug.assertEachNode(h,e.isArrayBindingElement),e.createArrayBindingPattern(h)}function _e(h){return e.createArrayLiteral(e.map(h,e.convertToArrayAssignmentElement))}function re(h){return e.Debug.assertEachNode(h,e.isBindingElement),e.createObjectBindingPattern(h)}function se(h){return e.createObjectLiteral(e.map(h,e.convertToObjectAssignmentElement))}function w(h){return e.createBindingElement(void 0,void 0,h)}function k(h){return h}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;
};`};function P(h,Y,ne,$,J){h.requestEmitHelper(e.restHelper);for(var fe=[],R=0,K=0;K<ne.length-1;K++){var z=e.getPropertyNameOfBindingOrAssignmentElement(ne[K]);if(z)if(e.isComputedPropertyName(z)){var Ee=$[R];R++,fe.push(e.createConditional(e.createTypeCheck(Ee,"symbol"),Ee,e.createAdd(Ee,e.createLiteral(""))))}else fe.push(e.createLiteral(z))}return e.createCall(e.getUnscopedHelperName("__rest"),void 0,[Y,e.setTextRange(e.createArrayLiteral(fe),J)])}})(ln||(ln={}));var ln;(function(e){var o=!1,F;(function(ie){ie[ie.ClassAliases=1]="ClassAliases",ie[ie.NamespaceExports=2]="NamespaceExports",ie[ie.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"})(F||(F={}));var qe;(function(ie){ie[ie.None=0]="None",ie[ie.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",ie[ie.HasConstructorDecorators=2]="HasConstructorDecorators",ie[ie.HasMemberDecorators=4]="HasMemberDecorators",ie[ie.IsExportOfNamespace=8]="IsExportOfNamespace",ie[ie.IsNamedExternalExport=16]="IsNamedExternalExport",ie[ie.IsDefaultExternalExport=32]="IsDefaultExternalExport",ie[ie.IsDerivedClass=64]="IsDerivedClass",ie[ie.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",ie[ie.HasAnyDecorators=6]="HasAnyDecorators",ie[ie.NeedsName=5]="NeedsName",ie[ie.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",ie[ie.IsExported=56]="IsExported"})(qe||(qe={}));function Se(ie){var d=ie.startLexicalEnvironment,H=ie.resumeLexicalEnvironment,Pe=ie.endLexicalEnvironment,I=ie.hoistVariableDeclaration,_e=ie.getEmitResolver(),re=ie.getCompilerOptions(),se=e.getStrictOptionValue(re,"strictNullChecks"),w=e.getEmitScriptTarget(re),k=e.getEmitModuleKind(re),P=ie.onEmitNode,h=ie.onSubstituteNode;ie.onEmitNode=Cr,ie.onSubstituteNode=Ya,ie.enableSubstitution(193),ie.enableSubstitution(194);var Y,ne,$,J,fe,R,K,z,Ee,B;return V;function V(ue){return ue.kind===289?m(ue):y(ue)}function m(ue){return e.createBundle(ue.sourceFiles.map(y),e.mapDefined(ue.prepends,function(rn){return rn.kind===291?e.createUnparsedSourceFile(rn,"js"):rn}))}function y(ue){if(ue.isDeclarationFile)return ue;Y=ue;var rn=L(ue,de);return e.addEmitHelpers(rn,ie.readEmitHelpers()),Y=void 0,rn}function L(ue,rn){var Cn=J,Zn=fe,lt=R,Rt=K;C(ue);var an=rn(ue);return J!==Cn&&(R=lt),J=Cn,fe=Zn,K=Rt,an}function C(ue){switch(ue.kind){case 288:case 250:case 249:case 222:J=ue,fe=void 0,R=void 0;break;case 244:case 243:if(e.hasModifier(ue,2))break;ue.name?Ai(ue):e.Debug.assert(ue.kind===244||e.hasModifier(ue,512)),e.isClassDeclaration(ue)&&(fe=ue);break}}function _(ue){return L(ue,b)}function b(ue){return ue.transformFlags&1?U(ue):ue}function D(ue){return L(ue,T)}function T(ue){switch(ue.kind){case 253:case 252:case 258:case 259:return Q(ue);default:return b(ue)}}function Q(ue){var rn=e.getParseTreeNode(ue);if(rn!==ue)return ue.transformFlags&1?e.visitEachChild(ue,_,ie):ue;switch(ue.kind){case 253:return Vo(ue);case 252:return bo(ue);case 258:return ui(ue);case 259:return Gi(ue);default:e.Debug.fail("Unhandled ellided statement")}}function N(ue){return L(ue,X)}function X(ue){return ue.kind===259||ue.kind===253||ue.kind===254||ue.kind===252&&ue.moduleReference.kind===263?void 0:ue.transformFlags&1||e.hasModifier(ue,1)?U(ue):ue}function pe(ue){return L(ue,S)}function S(ue){switch(ue.kind){case 161:return Ie(ue);case 158:return qn(ue);case 166:case 162:case 163:case 160:return b(ue);case 221:return ue;default:return e.Debug.failBadSyntaxKind(ue)}}function v(ue){return e.modifierToFlag(ue.kind)&2270||ne&&ue.kind===88?void 0:ue}function U(ue){if(e.isStatement(ue)&&e.hasModifier(ue,2))return e.createNotEmittedStatement(ue);switch(ue.kind){case 88:case 83:return ne?void 0:ue;case 118:case 116:case 117:case 121:case 80:case 129:case 137:case 173:case 174:case 175:case 176:case 172:case 167:case 154:case 124:case 147:case 127:case 142:case 139:case 136:case 109:case 143:case 170:case 169:case 171:case 168:case 177:case 178:case 179:case 181:case 182:case 183:case 184:case 185:case 186:case 166:case 156:case 246:return;case 158:return qn(ue);case 251:return;case 161:return Ie(ue);case 245:return e.createNotEmittedStatement(ue);case 244:return be(ue);case 213:return j(ue);case 277:return ct(ue);case 215:return wt(ue);case 160:return _t(ue);case 162:return Ht(ue);case 163:return nr(ue);case 243:return vr(ue);case 200:return Qr(ue);case 201:return Wr(ue);case 155:return gt(ue);case 199:return Ut(ue);case 198:case 216:return ft(ue);case 195:return yt(ue);case 196:return vt(ue);case 197:return Ke(ue);case 217:return Tt(ue);case 247:return nt(ue);case 224:return ba(ue);case 241:return jn(ue);case 248:return Ia(ue);case 252:return bo(ue);default:return e.visitEachChild(ue,_,ie)}}function de(ue){var rn=e.getStrictOptionValue(re,"alwaysStrict")&&!(e.isExternalModule(ue)&&k>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(ue);return e.updateSourceFileNode(ue,e.visitLexicalEnvironment(ue.statements,D,ie,0,rn))}function Ce(ue){if(ue.decorators&&ue.decorators.length>0)return!0;var rn=e.getFirstConstructorWithBody(ue);return rn?e.forEach(rn.parameters,Z):!1}function Z(ue){return ue.decorators!==void 0&&ue.decorators.length>0}function Re(ue,rn){var Cn=0;e.some(rn)&&(Cn|=1);var Zn=e.getEffectiveBaseTypeNode(ue);return Zn&&e.skipOuterExpressions(Zn.expression).kind!==99&&(Cn|=64),Ce(ue)&&(Cn|=2),e.childIsDecorated(ue)&&(Cn|=4),Ri(ue)?Cn|=8:_r(ue)?Cn|=32:Kt(ue)&&(Cn|=16),w<=1&&Cn&7&&(Cn|=128),Cn}function Ae(ue){return!!(ue.transformFlags&1024)}function We(ue){return e.some(ue.decorators)||e.some(ue.typeParameters)||e.some(ue.heritageClauses,Ae)||e.some(ue.members,Ae)}function be(ue){if(!We(ue)&&!(ne&&e.hasModifier(ue,1)))return e.visitEachChild(ue,_,ie);var rn=e.getProperties(ue,!0,!0),Cn=Re(ue,rn);Cn&128&&ie.startLexicalEnvironment();var Zn=ue.name||(Cn&5?e.getGeneratedNameForNode(ue):void 0),lt=Cn&2?x(ue,Zn):Ge(ue,Zn,Cn),Rt=[lt];if($e(Rt,ue,!1),$e(Rt,ue,!0),ke(Rt,ue),Cn&128){var an=e.createTokenRange(e.skipTrivia(Y.text,ue.members.end),19),Dr=e.getInternalName(ue),da=e.createPartiallyEmittedExpression(Dr);da.end=an.end,e.setEmitFlags(da,1536);var Ha=e.createReturn(da);Ha.pos=an.pos,e.setEmitFlags(Ha,1536|384),Rt.push(Ha),e.insertStatementsAfterStandardPrologue(Rt,ie.endLexicalEnvironment());var to=e.createImmediatelyInvokedArrowFunction(Rt);e.setEmitFlags(to,33554432);var ga=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(ue,!1,!1),void 0,to)]));e.setOriginalNode(ga,ue),e.setCommentRange(ga,ue),e.setSourceMapRange(ga,e.moveRangePastDecorators(ue)),e.startOnNewLine(ga),Rt=[ga]}return Cn&8?va(Rt,ue):(Cn&128||Cn&2)&&(Cn&32?Rt.push(e.createExportDefault(e.getLocalName(ue,!1,!0))):Cn&16&&Rt.push(e.createExternalModuleExport(e.getLocalName(ue,!1,!0)))),Rt.length>1&&(Rt.push(e.createEndOfDeclarationMarker(ue)),e.setEmitFlags(lt,e.getEmitFlags(lt)|4194304)),e.singleOrMany(Rt)}function Ge(ue,rn,Cn){var Zn=Cn&128?void 0:e.visitNodes(ue.modifiers,v,e.isModifier),lt=e.createClassDeclaration(void 0,Zn,rn,void 0,e.visitNodes(ue.heritageClauses,_,e.isHeritageClause),Oe(ue)),Rt=e.getEmitFlags(ue);return Cn&1&&(Rt|=32),e.aggregateTransformFlags(lt),e.setTextRange(lt,ue),e.setOriginalNode(lt,ue),e.setEmitFlags(lt,Rt),lt}function x(ue,rn){var Cn=e.moveRangePastDecorators(ue),Zn=ua(ue),lt=e.getLocalName(ue,!1,!0),Rt=e.visitNodes(ue.heritageClauses,_,e.isHeritageClause),an=Oe(ue),Dr=e.createClassExpression(void 0,rn,void 0,Rt,an);e.aggregateTransformFlags(Dr),e.setOriginalNode(Dr,ue),e.setTextRange(Dr,Cn);var da=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(lt,void 0,Zn?e.createAssignment(Zn,Dr):Dr)],1));return e.setOriginalNode(da,ue),e.setTextRange(da,Cn),e.setCommentRange(da,ue),da}function j(ue){if(!We(ue))return e.visitEachChild(ue,_,ie);var rn=e.createClassExpression(void 0,ue.name,void 0,e.visitNodes(ue.heritageClauses,_,e.isHeritageClause),Oe(ue));return e.aggregateTransformFlags(rn),e.setOriginalNode(rn,ue),e.setTextRange(rn,ue),rn}function Oe(ue){var rn=[],Cn=e.getFirstConstructorWithBody(ue),Zn=Cn&&e.filter(Cn.parameters,function(Dr){return e.isParameterPropertyDeclaration(Dr,Cn)});if(Zn)for(var lt=0,Rt=Zn;lt<Rt.length;lt++){var an=Rt[lt];e.isIdentifier(an.name)&&rn.push(e.setOriginalNode(e.aggregateTransformFlags(e.createProperty(void 0,void 0,an.name,void 0,void 0,void 0)),an))}return e.addRange(rn,e.visitNodes(ue.members,pe,e.isClassElement)),e.setTextRange(e.createNodeArray(rn),ue.members)}function a(ue,rn){return e.filter(ue.members,rn?function(Cn){return en(Cn,ue)}:function(Cn){return Pn(Cn,ue)})}function en(ue,rn){return Xn(ue,!0,rn)}function Pn(ue,rn){return Xn(ue,!1,rn)}function Xn(ue,rn,Cn){return e.nodeOrChildIsDecorated(ue,Cn)&&rn===e.hasModifier(ue,32)}function ae(ue){var rn;if(ue)for(var Cn=ue.parameters,Zn=Cn.length>0&&e.parameterIsThisKeyword(Cn[0]),lt=Zn?1:0,Rt=Zn?Cn.length-1:Cn.length,an=0;an<Rt;an++){var Dr=Cn[an+lt];(rn||Dr.decorators)&&(rn||(rn=new Array(Rt)),rn[an]=Dr.decorators)}return rn}function ce(ue){var rn=ue.decorators,Cn=ae(e.getFirstConstructorWithBody(ue));return!rn&&!Cn?void 0:{decorators:rn,parameters:Cn}}function Le(ue,rn){switch(rn.kind){case 162:case 163:return Je(ue,rn);case 160:return Ze(rn);case 158:return Ue(rn);default:return}}function Je(ue,rn){if(!rn.body)return;var Cn=e.getAllAccessorDeclarations(ue.members,rn),Zn=Cn.firstAccessor,lt=Cn.secondAccessor,Rt=Cn.setAccessor,an=Zn.decorators?Zn:lt&&lt.decorators?lt:void 0;if(!an||rn!==an)return;var Dr=an.decorators,da=ae(Rt);return!Dr&&!da?void 0:{decorators:Dr,parameters:da}}function Ze(ue){if(!ue.body)return;var rn=ue.decorators,Cn=ae(ue);return!rn&&!Cn?void 0:{decorators:rn,parameters:Cn}}function Ue(ue){var rn=ue.decorators;return rn?{decorators:rn}:void 0}function cn(ue,rn,Cn){if(!Cn)return;var Zn=[];return e.addRange(Zn,e.map(Cn.decorators,c)),e.addRange(Zn,e.flatMap(Cn.parameters,O)),ee(ue,rn,Zn),Zn}function $e(ue,rn,Cn){e.addRange(ue,e.map(sn(rn,Cn),Jr))}function sn(ue,rn){for(var Cn=a(ue,rn),Zn,lt=0,Rt=Cn;lt<Rt.length;lt++){var an=Rt[lt],Dr=he(ue,an);Dr&&(Zn?Zn.push(Dr):Zn=[Dr])}return Zn}function he(ue,rn){var Cn=Le(ue,rn),Zn=cn(rn,ue,Cn);if(!Zn)return;var lt=vn(ue,rn),Rt=dt(rn,!0),an=w>0?rn.kind===158?e.createVoidZero():e.createNull():void 0,Dr=Fe(ie,Zn,lt,Rt,an,e.moveRangePastDecorators(rn));return e.setEmitFlags(Dr,1536),Dr}function ke(ue,rn){var Cn=G(rn);Cn&&ue.push(e.setOriginalNode(e.createExpressionStatement(Cn),rn))}function G(ue){var rn=ce(ue),Cn=cn(ue,ue,rn);if(!Cn)return;var Zn=Ee&&Ee[e.getOriginalNodeId(ue)],lt=e.getLocalName(ue,!1,!0),Rt=Fe(ie,Cn,lt),an=e.createAssignment(lt,Zn?e.createAssignment(Zn,Rt):Rt);return e.setEmitFlags(an,1536),e.setSourceMapRange(an,e.moveRangePastDecorators(ue)),an}function c(ue){return e.visitNode(ue.expression,_,e.isExpression)}function O(ue,rn){var Cn;if(ue){Cn=[];for(var Zn=0,lt=ue;Zn<lt.length;Zn++){var Rt=lt[Zn],an=ve(ie,c(Rt),rn,Rt.expression);e.setEmitFlags(an,1536),Cn.push(an)}}return Cn}function ee(ue,rn,Cn){o?Ne(ue,rn,Cn):Te(ue,rn,Cn)}function Te(ue,rn,Cn){re.emitDecoratorMetadata&&(ze(ue)&&Cn.push(He(ie,"design:type",Xe(ue))),Sn(ue)&&Cn.push(He(ie,"design:paramtypes",pn(ue,rn))),bn(ue)&&Cn.push(He(ie,"design:returntype",oe(ue))))}function Ne(ue,rn,Cn){if(re.emitDecoratorMetadata){var Zn=void 0;ze(ue)&&(Zn||(Zn=[])).push(e.createPropertyAssignment("type",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(38),Xe(ue)))),Sn(ue)&&(Zn||(Zn=[])).push(e.createPropertyAssignment("paramTypes",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(38),pn(ue,rn)))),bn(ue)&&(Zn||(Zn=[])).push(e.createPropertyAssignment("returnType",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(38),oe(ue)))),Zn&&Cn.push(He(ie,"design:typeinfo",e.createObjectLiteral(Zn,!0)))}}function ze(ue){var rn=ue.kind;return rn===160||rn===162||rn===163||rn===158}function bn(ue){return ue.kind===160}function Sn(ue){switch(ue.kind){case 244:case 213:return e.getFirstConstructorWithBody(ue)!==void 0;case 160:case 162:case 163:return!0}return!1}function Kn(ue){var rn=_e.getAllAccessorDeclarations(ue);return rn.setAccessor&&e.getSetAccessorTypeAnnotationNode(rn.setAccessor)||rn.getAccessor&&e.getEffectiveReturnTypeNode(rn.getAccessor)}function Xe(ue){switch(ue.kind){case 158:case 155:return kn(ue.type);case 163:case 162:return kn(Kn(ue));case 244:case 213:case 160:return e.createIdentifier("Function");default:return e.createVoidZero()}}function pn(ue,rn){var Cn=e.isClassLike(ue)?e.getFirstConstructorWithBody(ue):e.isFunctionLike(ue)&&e.nodeIsPresent(ue.body)?ue:void 0,Zn=[];if(Cn)for(var lt=le(Cn,rn),Rt=lt.length,an=0;an<Rt;an++){var Dr=lt[an];if(an===0&&e.isIdentifier(Dr.name)&&Dr.name.escapedText==="this")continue;Dr.dotDotDotToken?Zn.push(kn(e.getRestParameterElementType(Dr.type))):Zn.push(Xe(Dr))}return e.createArrayLiteral(Zn)}function le(ue,rn){if(rn&&ue.kind===162){var Cn=e.getAllAccessorDeclarations(rn.members,ue).setAccessor;if(Cn)return Cn.parameters}return ue.parameters}function oe(ue){return e.isFunctionLike(ue)&&ue.type?kn(ue.type):e.isAsyncFunction(ue)?e.createIdentifier("Promise"):e.createVoidZero()}function kn(ue){if(ue===void 0)return e.createIdentifier("Object");switch(ue.kind){case 109:case 145:case 99:case 136:return e.createVoidZero();case 181:return kn(ue.type);case 169:case 170:return e.createIdentifier("Function");case 173:case 174:return e.createIdentifier("Array");case 167:case 127:return e.createIdentifier("Boolean");case 142:return e.createIdentifier("String");case 140:return e.createIdentifier("Object");case 186:switch(ue.literal.kind){case 10:return e.createIdentifier("String");case 206:case 8:return e.createIdentifier("Number");case 9:return ut();case 105:case 90:return e.createIdentifier("Boolean");default:return e.Debug.failBadSyntaxKind(ue.literal)}case 139:return e.createIdentifier("Number");case 150:return ut();case 143:return w<2?Vn():e.createIdentifier("Symbol");case 168:return ye(ue);case 178:case 177:return yn(ue.types);case 179:return yn([ue.trueType,ue.falseType]);case 183:if(ue.operator===137)return kn(ue.type);break;case 171:case 184:case 185:case 172:case 124:case 147:case 182:case 187:break;default:return e.Debug.failBadSyntaxKind(ue)}return e.createIdentifier("Object")}function yn(ue){for(var rn,Cn=0,Zn=ue;Cn<Zn.length;Cn++){for(var lt=Zn[Cn];lt.kind===181;)lt=lt.type;if(lt.kind===136)continue;if(!se&&(lt.kind===99||lt.kind===145))continue;var Rt=kn(lt);if(e.isIdentifier(Rt)&&Rt.escapedText==="Object")return Rt;if(rn){if(!e.isIdentifier(rn)||!e.isIdentifier(Rt)||rn.escapedText!==Rt.escapedText)return e.createIdentifier("Object")}else rn=Rt}return rn||e.createVoidZero()}function ye(ue){var rn=_e.getTypeReferenceSerializationKind(ue.typeName,fe||J);switch(rn){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(ue,function(lt){return lt.parent&&e.isConditionalTypeNode(lt.parent)&&(lt.parent.trueType===lt||lt.parent.falseType===lt)}))return e.createIdentifier("Object");var Cn=un(ue.typeName),Zn=e.createTempVariable(I);return e.createConditional(e.createTypeCheck(e.createAssignment(Zn,Cn),"function"),Zn,e.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return Mn(ue.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return e.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return ut();case e.TypeReferenceSerializationKind.BooleanType:return e.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return e.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return e.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return e.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return w<2?Vn():e.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return e.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return e.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return e.createIdentifier("Object");default:return e.Debug.assertNever(rn)}}function mn(ue,rn){return e.createLogicalAnd(e.createStrictInequality(e.createTypeOf(ue),e.createLiteral("undefined")),rn)}function un(ue){if(ue.kind===75){var rn=Mn(ue);return mn(rn,rn)}if(ue.left.kind===75)return mn(Mn(ue.left),Mn(ue));var Cn=un(ue.left),Zn=e.createTempVariable(I);return e.createLogicalAnd(e.createLogicalAnd(Cn.left,e.createStrictInequality(e.createAssignment(Zn,Cn.right),e.createVoidZero())),e.createPropertyAccess(Zn,ue.right))}function Mn(ue){switch(ue.kind){case 75:var rn=e.getMutableClone(ue);return rn.flags&=~8,rn.original=void 0,rn.parent=e.getParseTreeNode(J),rn;case 152:return tt(ue)}}function tt(ue){return e.createPropertyAccess(Mn(ue.left),ue.right)}function Vn(){return e.createConditional(e.createTypeCheck(e.createIdentifier("Symbol"),"function"),e.createIdentifier("Symbol"),e.createIdentifier("Object"))}function ut(){return w<99?e.createConditional(e.createTypeCheck(e.createIdentifier("BigInt"),"function"),e.createIdentifier("BigInt"),e.createIdentifier("Object")):e.createIdentifier("BigInt")}function dt(ue,rn){var Cn=ue.name;return e.isComputedPropertyName(Cn)?rn&&!e.isSimpleInlineableExpression(Cn.expression)?e.getGeneratedNameForNode(Cn):Cn.expression:e.isIdentifier(Cn)?e.createLiteral(e.idText(Cn)):e.getSynthesizedClone(Cn)}function ot(ue){var rn=ue.name;if(e.isComputedPropertyName(rn)&&(!e.hasStaticModifier(ue)&&K||e.some(ue.decorators))){var Cn=e.visitNode(rn.expression,_,e.isExpression),Zn=e.skipPartiallyEmittedExpressions(Cn);if(!e.isSimpleInlineableExpression(Zn)){var lt=e.getGeneratedNameForNode(rn);return I(lt),e.updateComputedPropertyName(rn,e.createAssignment(lt,Cn))}}return e.visitNode(rn,_,e.isPropertyName)}function ct(ue){return ue.token===112?void 0:e.visitEachChild(ue,_,ie)}function wt(ue){return e.updateExpressionWithTypeArguments(ue,void 0,e.visitNode(ue.expression,_,e.isLeftHandSideExpression))}function st(ue){return!e.nodeIsMissing(ue.body)}function qn(ue){if(ue.flags&8388608)return;var rn=e.updateProperty(ue,void 0,e.visitNodes(ue.modifiers,_,e.isModifier),ot(ue),void 0,void 0,e.visitNode(ue.initializer,_));return rn!==ue&&(e.setCommentRange(rn,ue),e.setSourceMapRange(rn,e.moveRangePastDecorators(ue))),rn}function Ie(ue){return st(ue)?e.updateConstructor(ue,void 0,void 0,e.visitParameterList(ue.parameters,_,ie),De(ue.body,ue)):void 0}function De(ue,rn){var Cn=rn&&e.filter(rn.parameters,function(an){return e.isParameterPropertyDeclaration(an,rn)});if(!e.some(Cn))return e.visitFunctionBody(ue,_,ie);var Zn=[],lt=0;H(),lt=e.addPrologueDirectivesAndInitialSuperCall(rn,Zn,_),e.addRange(Zn,e.map(Cn,_n)),e.addRange(Zn,e.visitNodes(ue.statements,_,e.isStatement,lt)),Zn=e.mergeLexicalEnvironment(Zn,Pe());var Rt=e.createBlock(e.setTextRange(e.createNodeArray(Zn),ue.statements),!0);return e.setTextRange(Rt,ue),e.setOriginalNode(Rt,ue),Rt}function _n(ue){var rn=ue.name;if(!e.isIdentifier(rn))return;var Cn=e.getMutableClone(rn);e.setEmitFlags(Cn,1536|48);var Zn=e.getMutableClone(rn);return e.setEmitFlags(Zn,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(e.createExpressionStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),Cn),ue.name),Zn)),ue),e.moveRangePos(ue,-1))))}function _t(ue){if(!st(ue))return;var rn=e.updateMethod(ue,void 0,e.visitNodes(ue.modifiers,v,e.isModifier),ue.asteriskToken,ot(ue),void 0,void 0,e.visitParameterList(ue.parameters,_,ie),void 0,e.visitFunctionBody(ue.body,_,ie));return rn!==ue&&(e.setCommentRange(rn,ue),e.setSourceMapRange(rn,e.moveRangePastDecorators(ue))),rn}function It(ue){return!(e.nodeIsMissing(ue.body)&&e.hasModifier(ue,128))}function Ht(ue){if(!It(ue))return;var rn=e.updateGetAccessor(ue,void 0,e.visitNodes(ue.modifiers,v,e.isModifier),ot(ue),e.visitParameterList(ue.parameters,_,ie),void 0,e.visitFunctionBody(ue.body,_,ie)||e.createBlock([]));return rn!==ue&&(e.setCommentRange(rn,ue),e.setSourceMapRange(rn,e.moveRangePastDecorators(ue))),rn}function nr(ue){if(!It(ue))return;var rn=e.updateSetAccessor(ue,void 0,e.visitNodes(ue.modifiers,v,e.isModifier),ot(ue),e.visitParameterList(ue.parameters,_,ie),e.visitFunctionBody(ue.body,_,ie)||e.createBlock([]));return rn!==ue&&(e.setCommentRange(rn,ue),e.setSourceMapRange(rn,e.moveRangePastDecorators(ue))),rn}function vr(ue){if(!st(ue))return e.createNotEmittedStatement(ue);var rn=e.updateFunctionDeclaration(ue,void 0,e.visitNodes(ue.modifiers,v,e.isModifier),ue.asteriskToken,ue.name,void 0,e.visitParameterList(ue.parameters,_,ie),void 0,e.visitFunctionBody(ue.body,_,ie)||e.createBlock([]));if(Ri(ue)){var Cn=[rn];return va(Cn,ue),Cn}return rn}function Qr(ue){if(!st(ue))return e.createOmittedExpression();var rn=e.updateFunctionExpression(ue,e.visitNodes(ue.modifiers,v,e.isModifier),ue.asteriskToken,ue.name,void 0,e.visitParameterList(ue.parameters,_,ie),void 0,e.visitFunctionBody(ue.body,_,ie)||e.createBlock([]));return rn}function Wr(ue){var rn=e.updateArrowFunction(ue,e.visitNodes(ue.modifiers,v,e.isModifier),void 0,e.visitParameterList(ue.parameters,_,ie),void 0,ue.equalsGreaterThanToken,e.visitFunctionBody(ue.body,_,ie));return rn}function gt(ue){if(e.parameterIsThisKeyword(ue))return;var rn=e.updateParameter(ue,void 0,void 0,ue.dotDotDotToken,e.visitNode(ue.name,_,e.isBindingName),void 0,void 0,e.visitNode(ue.initializer,_,e.isExpression));return rn!==ue&&(e.setCommentRange(rn,ue),e.setTextRange(rn,e.moveRangePastModifiers(ue)),e.setSourceMapRange(rn,e.moveRangePastModifiers(ue)),e.setEmitFlags(rn.name,32)),rn}function ba(ue){if(Ri(ue)){var rn=e.getInitializedVariables(ue.declarationList);return rn.length===0?void 0:e.setTextRange(e.createExpressionStatement(e.inlineExpressions(e.map(rn,kt))),ue)}else return e.visitEachChild(ue,_,ie)}function kt(ue){var rn=ue.name;return e.isBindingPattern(rn)?e.flattenDestructuringAssignment(ue,_,ie,0,!1,qr):e.setTextRange(e.createAssignment(hi(rn),e.visitNode(ue.initializer,_,e.isExpression)),ue)}function jn(ue){return e.updateVariableDeclaration(ue,e.visitNode(ue.name,_,e.isBindingName),void 0,e.visitNode(ue.initializer,_,e.isExpression))}function Ut(ue){var rn=e.skipOuterExpressions(ue.expression,~2);if(e.isAssertionExpression(rn)){var Cn=e.visitNode(ue.expression,_,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(Cn,Y))?e.updateParen(ue,Cn):e.createPartiallyEmittedExpression(Cn,ue)}return e.visitEachChild(ue,_,ie)}function ft(ue){var rn=e.visitNode(ue.expression,_,e.isExpression);return e.createPartiallyEmittedExpression(rn,ue)}function Tt(ue){var rn=e.visitNode(ue.expression,_,e.isLeftHandSideExpression);return e.createPartiallyEmittedExpression(rn,ue)}function yt(ue){return e.updateCall(ue,e.visitNode(ue.expression,_,e.isExpression),void 0,e.visitNodes(ue.arguments,_,e.isExpression))}function vt(ue){return e.updateNew(ue,e.visitNode(ue.expression,_,e.isExpression),void 0,e.visitNodes(ue.arguments,_,e.isExpression))}function Ke(ue){return e.updateTaggedTemplate(ue,e.visitNode(ue.tag,_,e.isExpression),void 0,e.visitNode(ue.template,_,e.isExpression))}function Rn(ue){return!e.isEnumConst(ue)||re.preserveConstEnums||re.isolatedModules}function nt(ue){if(!Rn(ue))return e.createNotEmittedStatement(ue);var rn=[],Cn=2,Zn=Xa(rn,ue);Zn&&((k!==e.ModuleKind.System||J!==Y)&&(Cn|=512));var lt=Ii(ue),Rt=gi(ue),an=e.hasModifier(ue,1)?e.getExternalModuleOrNamespaceExportName($,ue,!1,!0):e.getLocalName(ue,!1,!0),Dr=e.createLogicalOr(an,e.createAssignment(an,e.createObjectLiteral()));if(wi(ue)){var da=e.getLocalName(ue,!1,!0);Dr=e.createAssignment(da,Dr)}var Ha=e.createExpressionStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,lt)],void 0,tr(ue,Rt)),void 0,[Dr]));return e.setOriginalNode(Ha,ue),Zn&&(e.setSyntheticLeadingComments(Ha,void 0),e.setSyntheticTrailingComments(Ha,void 0)),e.setTextRange(Ha,ue),e.addEmitFlags(Ha,Cn),rn.push(Ha),rn.push(e.createEndOfDeclarationMarker(ue)),rn}function tr(ue,rn){var Cn=$;$=rn;var Zn=[];d();var lt=e.map(ue.members,xa);return e.insertStatementsAfterStandardPrologue(Zn,Pe()),e.addRange(Zn,lt),$=Cn,e.createBlock(e.setTextRange(e.createNodeArray(Zn),ue.members),!0)}function xa(ue){var rn=dt(ue,!1),Cn=Ba(ue),Zn=e.createAssignment(e.createElementAccess($,rn),Cn),lt=Cn.kind===10?Zn:e.createAssignment(e.createElementAccess($,Zn),rn);return e.setTextRange(e.createExpressionStatement(e.setTextRange(lt,ue)),ue)}function Ba(ue){var rn=_e.getConstantValue(ue);return rn!==void 0?e.createLiteral(rn):(Ln(),ue.initializer?e.visitNode(ue.initializer,_,e.isExpression):e.createVoidZero())}function ai(ue){var rn=e.getParseTreeNode(ue,e.isModuleDeclaration);return rn?e.isInstantiatedModule(rn,!!re.preserveConstEnums||!!re.isolatedModules):!0}function wi(ue){return Ri(ue)||xt(ue)&&k!==e.ModuleKind.ES2015&&k!==e.ModuleKind.ESNext&&k!==e.ModuleKind.System}function Ai(ue){R||(R=e.createUnderscoreEscapedMap());var rn=Pi(ue);R.has(rn)||R.set(rn,ue)}function Ei(ue){if(R){var rn=Pi(ue);return R.get(rn)===ue}return!0}function Pi(ue){return e.Debug.assertNode(ue.name,e.isIdentifier),ue.name.escapedText}function Xa(ue,rn){var Cn=e.createVariableStatement(e.visitNodes(rn.modifiers,v,e.isModifier),e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(rn,!1,!0))],J.kind===288?0:1));if(e.setOriginalNode(Cn,rn),Ai(rn),Ei(rn))return rn.kind===247?e.setSourceMapRange(Cn.declarationList,rn):e.setSourceMapRange(Cn,rn),e.setCommentRange(Cn,rn),e.addEmitFlags(Cn,1024|4194304),ue.push(Cn),!0;var Zn=e.createMergeDeclarationMarker(Cn);return e.setEmitFlags(Zn,1536|4194304),ue.push(Zn),!1}function Ia(ue){if(!ai(ue))return e.createNotEmittedStatement(ue);e.Debug.assertNode(ue.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),Pt();var rn=[],Cn=2,Zn=Xa(rn,ue);Zn&&((k!==e.ModuleKind.System||J!==Y)&&(Cn|=512));var lt=Ii(ue),Rt=gi(ue),an=e.hasModifier(ue,1)?e.getExternalModuleOrNamespaceExportName($,ue,!1,!0):e.getLocalName(ue,!1,!0),Dr=e.createLogicalOr(an,e.createAssignment(an,e.createObjectLiteral()));if(wi(ue)){var da=e.getLocalName(ue,!1,!0);Dr=e.createAssignment(da,Dr)}var Ha=e.createExpressionStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,lt)],void 0,ca(ue,Rt)),void 0,[Dr]));return e.setOriginalNode(Ha,ue),Zn&&(e.setSyntheticLeadingComments(Ha,void 0),e.setSyntheticTrailingComments(Ha,void 0)),e.setTextRange(Ha,ue),e.addEmitFlags(Ha,Cn),rn.push(Ha),rn.push(e.createEndOfDeclarationMarker(ue)),rn}function ca(ue,rn){var Cn=$,Zn=ne,lt=R;$=rn,ne=ue,R=void 0;var Rt=[];d();var an,Dr,da=ue.body;if(da.kind===249)L(da,function(Yo){return e.addRange(Rt,e.visitNodes(Yo.statements,N,e.isStatement))}),an=da.statements,Dr=da;else{var Ha=Ia(da);Ha&&(e.isArray(Ha)?e.addRange(Rt,Ha):Rt.push(Ha));var to=Ti(ue).body;an=e.moveRangePos(to.statements,-1)}e.insertStatementsAfterStandardPrologue(Rt,Pe()),$=Cn,ne=Zn,R=lt;var ga=e.createBlock(e.setTextRange(e.createNodeArray(Rt),an),!0);return e.setTextRange(ga,Dr),da.kind!==249&&e.setEmitFlags(ga,e.getEmitFlags(ga)|1536),ga}function Ti(ue){if(ue.body.kind===248){var rn=Ti(ue.body);return rn||ue.body}}function Vo(ue){if(!ue.importClause)return ue;var rn=e.visitNode(ue.importClause,mo,e.isImportClause);return rn?e.updateImportDeclaration(ue,void 0,void 0,rn,ue.moduleSpecifier):void 0}function mo(ue){var rn=_e.isReferencedAliasDeclaration(ue)?ue.name:void 0,Cn=e.visitNode(ue.namedBindings,Ro,e.isNamedImportBindings);return rn||Cn?e.updateImportClause(ue,rn,Cn):void 0}function Ro(ue){if(ue.kind===255)return _e.isReferencedAliasDeclaration(ue)?ue:void 0;var rn=e.visitNodes(ue.elements,uo,e.isImportSpecifier);return e.some(rn)?e.updateNamedImports(ue,rn):void 0}function uo(ue){return _e.isReferencedAliasDeclaration(ue)?ue:void 0}function ui(ue){return _e.isValueAliasDeclaration(ue)?e.visitEachChild(ue,_,ie):void 0}function Gi(ue){if(!ue.exportClause)return re.isolatedModules||_e.moduleExportsSomeValue(ue.moduleSpecifier)?ue:void 0;if(!_e.isValueAliasDeclaration(ue))return;var rn=e.visitNode(ue.exportClause,ji,e.isNamedExports);return rn?e.updateExportDeclaration(ue,void 0,void 0,rn,ue.moduleSpecifier):void 0}function ji(ue){var rn=e.visitNodes(ue.elements,Fo,e.isExportSpecifier);return e.some(rn)?e.updateNamedExports(ue,rn):void 0}function Fo(ue){return _e.isValueAliasDeclaration(ue)?ue:void 0}function ko(ue){return _e.isReferencedAliasDeclaration(ue)||!e.isExternalModule(Y)&&_e.isTopLevelValueImportEqualsWithEntityName(ue)}function bo(ue){if(e.isExternalModuleImportEqualsDeclaration(ue))return _e.isReferencedAliasDeclaration(ue)?e.visitEachChild(ue,_,ie):void 0;if(!ko(ue))return;var rn=e.createExpressionFromEntityName(ue.moduleReference);return e.setEmitFlags(rn,1536|2048),Kt(ue)||!Ri(ue)?e.setOriginalNode(e.setTextRange(e.createVariableStatement(e.visitNodes(ue.modifiers,v,e.isModifier),e.createVariableDeclarationList([e.setOriginalNode(e.createVariableDeclaration(ue.name,void 0,rn),ue)])),ue),ue):e.setOriginalNode(Na(ue.name,rn,ue),ue)}function Ri(ue){return ne!==void 0&&e.hasModifier(ue,1)}function xt(ue){return ne===void 0&&e.hasModifier(ue,1)}function Kt(ue){return xt(ue)&&!e.hasModifier(ue,512)}function _r(ue){return xt(ue)&&e.hasModifier(ue,512)}function Jr(ue){return e.createExpressionStatement(ue)}function va(ue,rn){var Cn=e.createAssignment(e.getExternalModuleOrNamespaceExportName($,rn,!1,!0),e.getLocalName(rn));e.setSourceMapRange(Cn,e.createRange(rn.name?rn.name.pos:rn.pos,rn.end));var Zn=e.createExpressionStatement(Cn);e.setSourceMapRange(Zn,e.createRange(-1,rn.end)),ue.push(Zn)}function Na(ue,rn,Cn){return e.setTextRange(e.createExpressionStatement(e.createAssignment(e.getNamespaceMemberName($,ue,!1,!0),rn)),Cn)}function qr(ue,rn,Cn){return e.setTextRange(e.createAssignment(hi(ue),rn),Cn)}function hi(ue){return e.getNamespaceMemberName($,ue,!1,!0)}function Ii(ue){var rn=e.getGeneratedNameForNode(ue);return e.setSourceMapRange(rn,ue.name),rn}function gi(ue){return e.getGeneratedNameForNode(ue)}function ua(ue){if(_e.getNodeCheckFlags(ue)&16777216){Bn();var rn=e.createUniqueName(ue.name&&!e.isGeneratedIdentifier(ue.name)?e.idText(ue.name):"default");return Ee[e.getOriginalNodeId(ue)]=rn,I(rn),rn}}function tn(ue){return e.createPropertyAccess(e.getDeclarationName(ue),"prototype")}function vn(ue,rn){return e.hasModifier(rn,32)?e.getDeclarationName(ue):tn(ue)}function Ln(){(z&8)===0&&(z|=8,ie.enableSubstitution(75))}function Bn(){(z&1)===0&&(z|=1,ie.enableSubstitution(75),Ee=[])}function Pt(){(z&2)===0&&(z|=2,ie.enableSubstitution(75),ie.enableSubstitution(280),ie.enableEmitNotification(248))}function rr(ue){return e.getOriginalNode(ue).kind===248}function cr(ue){return e.getOriginalNode(ue).kind===247}function Cr(ue,rn,Cn){var Zn=B,lt=Y;e.isSourceFile(rn)&&(Y=rn),z&2&&rr(rn)&&(B|=2),z&8&&cr(rn)&&(B|=8),P(ue,rn,Cn),B=Zn,Y=lt}function Ya(ue,rn){return rn=h(ue,rn),ue===1?Ni(rn):e.isShorthandPropertyAssignment(rn)?Oa(rn):rn}function Oa(ue){if(z&2){var rn=ue.name,Cn=Ye(rn);if(Cn){if(ue.objectAssignmentInitializer){var Zn=e.createAssignment(Cn,ue.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(rn,Zn),ue)}return e.setTextRange(e.createPropertyAssignment(rn,Cn),ue)}}return ue}function Ni(ue){switch(ue.kind){case 75:return ii(ue);case 193:return zn(ue);case 194:return ge(ue)}return ue}function ii(ue){return _i(ue)||Ye(ue)||ue}function _i(ue){if(z&1&&_e.getNodeCheckFlags(ue)&33554432){var rn=_e.getReferencedValueDeclaration(ue);if(rn){var Cn=Ee[rn.id];if(Cn){var Zn=e.getSynthesizedClone(Cn);return e.setSourceMapRange(Zn,ue),e.setCommentRange(Zn,ue),Zn}}}return}function Ye(ue){if(z&B&&!e.isGeneratedIdentifier(ue)&&!e.isLocalName(ue)){var rn=_e.getReferencedExportContainer(ue,!1);if(rn&&rn.kind!==288){var Cn=B&2&&rn.kind===248||B&8&&rn.kind===247;if(Cn)return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(rn),ue),ue)}}return}function zn(ue){return hn(ue)}function ge(ue){return hn(ue)}function hn(ue){var rn=Jn(ue);if(rn!==void 0){e.setConstantValue(ue,rn);var Cn=e.createLiteral(rn);if(!re.removeComments){var Zn=e.getOriginalNode(ue,e.isAccessExpression),lt=e.isPropertyAccessExpression(Zn)?e.declarationNameToString(Zn.name):e.getTextOfNode(Zn.argumentExpression);e.addSyntheticTrailingComment(Cn,3," "+lt+" ")}return Cn}return ue}function Jn(ue){return re.isolatedModules?void 0:e.isPropertyAccessExpression(ue)||e.isElementAccessExpression(ue)?_e.getConstantValue(ue):void 0}}e.transformTypeScript=Se;function Fe(ie,d,H,Pe,I,_e){var re=[];return re.push(e.createArrayLiteral(d,!0)),re.push(H),Pe&&(re.push(Pe),I&&re.push(I)),ie.requestEmitHelper(e.decorateHelper),e.setTextRange(e.createCall(e.getUnscopedHelperName("__decorate"),void 0,re),_e)}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;
};`};function He(ie,d,H){return ie.requestEmitHelper(e.metadataHelper),e.createCall(e.getUnscopedHelperName("__metadata"),void 0,[e.createLiteral(d),H])}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);
};`};function ve(ie,d,H,Pe){return ie.requestEmitHelper(e.paramHelper),e.setTextRange(e.createCall(e.getUnscopedHelperName("__param"),void 0,[e.createLiteral(H),d]),Pe)}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); }
};`}})(ln||(ln={}));var ln;(function(e){var o;(function(qe){qe[qe.ClassAliases=1]="ClassAliases"})(o||(o={}));function F(qe){var Se=qe.hoistVariableDeclaration,Fe=qe.endLexicalEnvironment,He=qe.resumeLexicalEnvironment,ve=qe.getEmitResolver(),ie=qe.onSubstituteNode;qe.onSubstituteNode=Ee;var d,H,Pe,I;return e.chainBundle(_e);function _e(L){var C=qe.getCompilerOptions();if(L.isDeclarationFile||C.useDefineForClassFields&&C.target===99)return L;var _=e.visitEachChild(L,re,qe);return e.addEmitHelpers(_,qe.readEmitHelpers()),_}function re(L){if(!(L.transformFlags&1048576))return L;switch(L.kind){case 213:return Y(L);case 244:return h(L);case 224:return w(L)}return e.visitEachChild(L,re,qe)}function se(L){switch(L.kind){case 161:return;case 162:case 163:case 160:return e.visitEachChild(L,se,qe);case 158:return P(L);case 153:return k(L);case 221:return L;default:return re(L)}}function w(L){var C=I;I=[];var _=e.visitEachChild(L,re,qe),b=e.some(I)?Or([_],I):_;return I=C,b}function k(L){var C=e.visitEachChild(L,re,qe);if(e.some(Pe)){var _=Pe;_.push(L.expression),Pe=[],C=e.updateComputedPropertyName(C,e.inlineExpressions(_))}return C}function P(L){e.Debug.assert(!e.some(L.decorators));var C=y(L.name,!!L.initializer||!!qe.getCompilerOptions().useDefineForClassFields);C&&!e.isSimpleInlineableExpression(C)&&(Pe||(Pe=[])).push(C);return}function h(L){if(!e.forEach(L.members,e.isPropertyDeclaration))return e.visitEachChild(L,re,qe);var C=Pe;Pe=void 0;var _=e.getEffectiveBaseTypeNode(L),b=!!(_&&e.skipOuterExpressions(_.expression).kind!==99),D=[e.updateClassDeclaration(L,void 0,L.modifiers,L.name,void 0,e.visitNodes(L.heritageClauses,re,e.isHeritageClause),ne(L,b))];e.some(Pe)&&D.push(e.createExpressionStatement(e.inlineExpressions(Pe))),Pe=C;var T=e.getProperties(L,!0,!0);return e.some(T)&&fe(D,T,e.getInternalName(L)),D}function Y(L){if(!e.forEach(L.members,e.isPropertyDeclaration))return e.visitEachChild(L,re,qe);var C=Pe;Pe=void 0;var _=e.isClassDeclaration(e.getOriginalNode(L)),b=e.getProperties(L,!0,!0),D=e.getEffectiveBaseTypeNode(L),T=!!(D&&e.skipOuterExpressions(D.expression).kind!==99),Q=e.updateClassExpression(L,L.modifiers,L.name,void 0,e.visitNodes(L.heritageClauses,re,e.isHeritageClause),ne(L,T));if(e.some(b)||e.some(Pe)){if(_)return e.Debug.assertDefined(I,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),I&&Pe&&e.some(Pe)&&I.push(e.createExpressionStatement(e.inlineExpressions(Pe))),Pe=C,I&&e.some(b)&&fe(I,b,e.getInternalName(L)),Q;var N=[],X=ve.getNodeCheckFlags(L)&16777216,pe=e.createTempVariable(Se,!!X);if(X){z();var S=e.getSynthesizedClone(pe);S.autoGenerateFlags&=~8,H[e.getOriginalNodeId(L)]=S}return e.setEmitFlags(Q,65536|e.getEmitFlags(Q)),N.push(e.startOnNewLine(e.createAssignment(pe,Q))),e.addRange(N,e.map(Pe,e.startOnNewLine)),e.addRange(N,R(b,pe)),N.push(e.startOnNewLine(pe)),Pe=C,e.inlineExpressions(N)}return Pe=C,Q}function ne(L,C){var _=[],b=$(L,C);return b&&_.push(b),e.addRange(_,e.visitNodes(L.members,se,e.isClassElement)),e.setTextRange(e.createNodeArray(_),L.members)}function $(L,C){var _=e.visitNode(e.getFirstConstructorWithBody(L),re,e.isConstructorDeclaration),b=e.forEach(L.members,function(Q){return e.isInitializedProperty(Q,!qe.getCompilerOptions().useDefineForClassFields)});if(!b)return _;var D=e.visitParameterList(_?_.parameters:void 0,re,qe),T=J(L,_,C);return T?e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,D,T),_||L),_)):void 0}function J(L,C,_){var b,D=qe.getCompilerOptions().useDefineForClassFields,T=e.getProperties(L,!D,!1);if(!C&&!e.some(T))return e.visitFunctionBody(void 0,re,qe);He();var Q=0,N=[];if(!C&&_&&N.push(e.createExpressionStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))]))),C&&(Q=e.addPrologueDirectivesAndInitialSuperCall(C,N,re)),(b=C)===null||b===void 0?void 0:b.body){var X=e.findIndex(C.body.statements,function(pe){return!e.isParameterPropertyDeclaration(e.getOriginalNode(pe),C)},Q);X===-1&&(X=C.body.statements.length),X>Q&&(D||e.addRange(N,e.visitNodes(C.body.statements,re,e.isStatement,Q,X-Q)),Q=X)}return fe(N,T,e.createThis()),C&&e.addRange(N,e.visitNodes(C.body.statements,re,e.isStatement,Q)),N=e.mergeLexicalEnvironment(N,Fe()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(N),C?C.body.statements:L.members),!0),C?C.body:void 0)}function fe(L,C,_){for(var b=0,D=C;b<D.length;b++){var T=D[b],Q=e.createExpressionStatement(K(T,_));e.setSourceMapRange(Q,e.moveRangePastModifiers(T)),e.setCommentRange(Q,T),e.setOriginalNode(Q,T),L.push(Q)}}function R(L,C){for(var _=[],b=0,D=L;b<D.length;b++){var T=D[b],Q=K(T,C);e.startOnNewLine(Q),e.setSourceMapRange(Q,e.moveRangePastModifiers(T)),e.setCommentRange(Q,T),e.setOriginalNode(Q,T),_.push(Q)}return _}function K(L,C){var _=!qe.getCompilerOptions().useDefineForClassFields,b=e.isComputedPropertyName(L.name)&&!e.isSimpleInlineableExpression(L.name.expression)?e.updateComputedPropertyName(L.name,e.getGeneratedNameForNode(L.name)):L.name,D=L.initializer||_?e.visitNode(L.initializer,re,e.isExpression):e.hasModifier(e.getOriginalNode(L),92)&&e.isIdentifier(b)?b:e.createVoidZero();if(_){var T=e.createMemberAccessForPropertyName(C,b,b);return e.createAssignment(T,D)}else{var Q=e.isComputedPropertyName(b)?b.expression:e.isIdentifier(b)?e.createStringLiteral(e.unescapeLeadingUnderscores(b.escapedText)):b,N=e.createPropertyDescriptor({value:D,configurable:!0,writable:!0,enumerable:!0});return e.createObjectDefinePropertyCall(C,Q,N)}}function z(){(d&1)===0&&(d|=1,qe.enableSubstitution(75),H=[])}function Ee(L,C){return C=ie(L,C),L===1?B(C):C}function B(L){switch(L.kind){case 75:return V(L)}return L}function V(L){return m(L)||L}function m(L){if(d&1&&ve.getNodeCheckFlags(L)&33554432){var C=ve.getReferencedValueDeclaration(L);if(C){var _=H[C.id];if(_){var b=e.getSynthesizedClone(_);return e.setSourceMapRange(b,L),e.setCommentRange(b,L),b}}}return}function y(L,C){if(e.isComputedPropertyName(L)){var _=e.visitNode(L.expression,re,e.isExpression),b=e.skipPartiallyEmittedExpressions(_),D=e.isSimpleInlineableExpression(b),T=e.isAssignmentExpression(b)&&e.isGeneratedIdentifier(b.left);if(!T&&!D&&C){var Q=e.getGeneratedNameForNode(L);return Se(Q),e.createAssignment(Q,_)}return D||e.isIdentifier(b)?void 0:_}}}e.transformClassFields=F})(ln||(ln={}));var ln;(function(e){var o;(function(Fe){Fe[Fe.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(o||(o={}));function F(Fe){var He=Fe.resumeLexicalEnvironment,ve=Fe.endLexicalEnvironment,ie=Fe.hoistVariableDeclaration,d=Fe.getEmitResolver(),H=Fe.getCompilerOptions(),Pe=e.getEmitScriptTarget(H),I,_e=0,re,se,w,k=[],P,h=Fe.onEmitNode,Y=Fe.onSubstituteNode;return Fe.onEmitNode=Ce,Fe.onSubstituteNode=Z,e.chainBundle(ne);function ne(j){if(j.isDeclarationFile)return j;P=e.isEffectiveStrictModeSourceFile(j,H);var Oe=e.visitEachChild(j,fe,Fe);return e.addEmitHelpers(Oe,Fe.readEmitHelpers()),Oe}function $(j,Oe){if(P){P=!1;var a=j(Oe);return P=!0,a}return j(Oe)}function J(j){return e.visitEachChild(j,fe,Fe)}function fe(j){if((j.transformFlags&32)===0)return j;switch(j.kind){case 125:return;case 205:return m(j);case 160:return $(y,j);case 243:return $(L,j);case 200:return $(C,j);case 201:return _(j);case 193:return se&&e.isPropertyAccessExpression(j)&&j.expression.kind===101&&se.set(j.name.escapedText,!0),e.visitEachChild(j,fe,Fe);case 194:return se&&j.expression.kind===101&&(w=!0),e.visitEachChild(j,fe,Fe);case 162:case 163:case 161:case 244:case 213:return $(J,j);default:return e.visitEachChild(j,fe,Fe)}}function R(j){if(e.isNodeWithPossibleHoistedDeclaration(j))switch(j.kind){case 224:return z(j);case 229:return V(j);case 230:return Ee(j);case 231:return B(j);case 278:return K(j);case 222:case 236:case 250:case 275:case 276:case 239:case 227:case 228:case 226:case 235:case 237:return e.visitEachChild(j,R,Fe);default:return e.Debug.assertNever(j,"Unhandled node.")}return fe(j)}function K(j){var Oe=e.createUnderscoreEscapedMap();b(j.variableDeclaration,Oe);var a;if(Oe.forEach(function(Xn,ae){re.has(ae)&&(a||(a=e.cloneMap(re)),a.delete(ae))}),a){var en=re;re=a;var Pn=e.visitEachChild(j,R,Fe);return re=en,Pn}else return e.visitEachChild(j,R,Fe)}function z(j){if(D(j.declarationList)){var Oe=T(j.declarationList,!1);return Oe?e.createExpressionStatement(Oe):void 0}return e.visitEachChild(j,fe,Fe)}function Ee(j){return e.updateForIn(j,D(j.initializer)?T(j.initializer,!0):e.visitNode(j.initializer,fe,e.isForInitializer),e.visitNode(j.expression,fe,e.isExpression),e.visitNode(j.statement,R,e.isStatement,e.liftToBlock))}function B(j){return e.updateForOf(j,e.visitNode(j.awaitModifier,fe,e.isToken),D(j.initializer)?T(j.initializer,!0):e.visitNode(j.initializer,fe,e.isForInitializer),e.visitNode(j.expression,fe,e.isExpression),e.visitNode(j.statement,R,e.isStatement,e.liftToBlock))}function V(j){var Oe=j.initializer;return e.updateFor(j,D(Oe)?T(Oe,!1):e.visitNode(j.initializer,fe,e.isForInitializer),e.visitNode(j.condition,fe,e.isExpression),e.visitNode(j.incrementor,fe,e.isExpression),e.visitNode(j.statement,R,e.isStatement,e.liftToBlock))}function m(j){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(j.expression,fe,e.isExpression)),j),j)}function y(j){return e.updateMethod(j,void 0,e.visitNodes(j.modifiers,fe,e.isModifier),j.asteriskToken,j.name,void 0,void 0,e.visitParameterList(j.parameters,fe,Fe),void 0,e.getFunctionFlags(j)&2?S(j):e.visitFunctionBody(j.body,fe,Fe))}function L(j){return e.updateFunctionDeclaration(j,void 0,e.visitNodes(j.modifiers,fe,e.isModifier),j.asteriskToken,j.name,void 0,e.visitParameterList(j.parameters,fe,Fe),void 0,e.getFunctionFlags(j)&2?S(j):e.visitFunctionBody(j.body,fe,Fe))}function C(j){return e.updateFunctionExpression(j,e.visitNodes(j.modifiers,fe,e.isModifier),j.asteriskToken,j.name,void 0,e.visitParameterList(j.parameters,fe,Fe),void 0,e.getFunctionFlags(j)&2?S(j):e.visitFunctionBody(j.body,fe,Fe))}function _(j){return e.updateArrowFunction(j,e.visitNodes(j.modifiers,fe,e.isModifier),void 0,e.visitParameterList(j.parameters,fe,Fe),void 0,j.equalsGreaterThanToken,e.getFunctionFlags(j)&2?S(j):e.visitFunctionBody(j.body,fe,Fe))}function b(j,Oe){var a=j.name;if(e.isIdentifier(a))Oe.set(a.escapedText,!0);else for(var en=0,Pn=a.elements;en<Pn.length;en++){var Xn=Pn[en];e.isOmittedExpression(Xn)||b(Xn,Oe)}}function D(j){return!!j&&e.isVariableDeclarationList(j)&&!(j.flags&3)&&j.declarations.some(pe)}function T(j,Oe){Q(j);var a=e.getInitializedVariables(j);return a.length===0?Oe?e.visitNode(e.convertToAssignmentElementTarget(j.declarations[0].name),fe,e.isExpression):void 0:e.inlineExpressions(e.map(a,X))}function Q(j){e.forEach(j.declarations,N)}function N(j){var Oe=j.name;if(e.isIdentifier(Oe))ie(Oe);else for(var a=0,en=Oe.elements;a<en.length;a++){var Pn=en[a];e.isOmittedExpression(Pn)||N(Pn)}}function X(j){var Oe=e.setSourceMapRange(e.createAssignment(e.convertToAssignmentElementTarget(j.name),j.initializer),j);return e.visitNode(Oe,fe,e.isExpression)}function pe(j){var Oe=j.name;if(e.isIdentifier(Oe))return re.has(Oe.escapedText);for(var a=0,en=Oe.elements;a<en.length;a++){var Pn=en[a];if(!e.isOmittedExpression(Pn)&&pe(Pn))return!0}return!1}function S(j){He();var Oe=e.getOriginalNode(j,e.isFunctionLike),a=Oe.type,en=Pe<2?U(a):void 0,Pn=j.kind===201,Xn=(d.getNodeCheckFlags(j)&8192)!==0,ae=re;re=e.createUnderscoreEscapedMap();for(var ce=0,Le=j.parameters;ce<Le.length;ce++){var Je=Le[ce];b(Je,re)}var Ze=se,Ue=w;Pn||(se=e.createUnderscoreEscapedMap(),w=!1);var cn;if(Pn){var c=Se(Fe,!P,Xn,en,v(j.body)),O=ve();if(e.some(O)){var G=e.convertToFunctionBody(c);cn=e.updateBlock(G,e.setTextRange(e.createNodeArray(e.concatenate(O,G.statements)),G.statements))}else cn=c}else{var $e=[],sn=e.addPrologue($e,j.body.statements,!1,fe);$e.push(e.createReturn(Se(Fe,!P,Xn,en,v(j.body,sn)))),e.insertStatementsAfterStandardPrologue($e,ve());var he=Pe>=2&&d.getNodeCheckFlags(j)&(4096|2048);if(he&&(de(),e.hasEntries(se))){var ke=qe(d,j,se);k[e.getNodeId(ke)]=!0,e.insertStatementsAfterStandardPrologue($e,[ke])}var G=e.createBlock($e,!0);e.setTextRange(G,j.body),he&&w&&(d.getNodeCheckFlags(j)&4096?e.addEmitHelper(G,e.advancedAsyncSuperHelper):d.getNodeCheckFlags(j)&2048&&e.addEmitHelper(G,e.asyncSuperHelper)),cn=G}return re=ae,Pn||(se=Ze,w=Ue),cn}function v(j,Oe){return e.isBlock(j)?e.updateBlock(j,e.visitNodes(j.statements,R,e.isStatement,Oe)):e.convertToFunctionBody(e.visitNode(j,R,e.isConciseBody))}function U(j){var Oe=j&&e.getEntityNameFromTypeNode(j);if(Oe&&e.isEntityName(Oe)){var a=d.getTypeReferenceSerializationKind(Oe);if(a===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||a===e.TypeReferenceSerializationKind.Unknown)return Oe}return}function de(){(I&1)===0&&(I|=1,Fe.enableSubstitution(195),Fe.enableSubstitution(193),Fe.enableSubstitution(194),Fe.enableEmitNotification(244),Fe.enableEmitNotification(160),Fe.enableEmitNotification(162),Fe.enableEmitNotification(163),Fe.enableEmitNotification(161),Fe.enableEmitNotification(224))}function Ce(j,Oe,a){if(I&1&&Ge(Oe)){var en=d.getNodeCheckFlags(Oe)&(2048|4096);if(en!==_e){var Pn=_e;_e=en,h(j,Oe,a),_e=Pn;return}}else if(I&&k[e.getNodeId(Oe)]){var Pn=_e;_e=0,h(j,Oe,a),_e=Pn;return}h(j,Oe,a)}function Z(j,Oe){return Oe=Y(j,Oe),j===1&&_e?Re(Oe):Oe}function Re(j){switch(j.kind){case 193:return Ae(j);case 194:return We(j);case 195:return be(j)}return j}function Ae(j){return j.expression.kind===101?e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),j.name),j):j}function We(j){return j.expression.kind===101?x(j.argumentExpression,j):j}function be(j){var Oe=j.expression;if(e.isSuperProperty(Oe)){var a=e.isPropertyAccessExpression(Oe)?Ae(Oe):We(Oe);return e.createCall(e.createPropertyAccess(a,"call"),void 0,Or([e.createThis()],j.arguments))}return j}function Ge(j){var Oe=j.kind;return Oe===244||Oe===161||Oe===160||Oe===162||Oe===163}function x(j,Oe){return _e&4096?e.setTextRange(e.createPropertyAccess(e.createCall(e.createFileLevelUniqueName("_superIndex"),void 0,[j]),"value"),Oe):e.setTextRange(e.createCall(e.createFileLevelUniqueName("_superIndex"),void 0,[j]),Oe)}}e.transformES2017=F;function qe(Fe,He,ve){var ie=(Fe.getNodeCheckFlags(He)&4096)!==0,d=[];return ve.forEach(function(H,Pe){var I=e.unescapeLeadingUnderscores(Pe),_e=[];_e.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(e.createPropertyAccess(e.setEmitFlags(e.createSuper(),4),I),4)))),ie&&_e.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameter(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(e.setEmitFlags(e.createPropertyAccess(e.setEmitFlags(e.createSuper(),4),I),4),e.createIdentifier("v"))))),d.push(e.createPropertyAssignment(I,e.createObjectLiteral(_e)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_super"),void 0,e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteral(d,!0)]))],2))}e.createSuperAccessVariableStatement=qe,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());
});
};`};function Se(Fe,He,ve,ie,d){Fe.requestEmitHelper(e.awaiterHelper);var H=e.createFunctionExpression(void 0,e.createToken(41),void 0,void 0,[],void 0,d);return(H.emitNode||(H.emitNode={})).flags|=262144|524288,e.createCall(e.getUnscopedHelperName("__awaiter"),void 0,[He?e.createThis():e.createVoidZero(),ve?e.createIdentifier("arguments"):e.createVoidZero(),ie?e.createExpressionFromEntityName(ie):e.createVoidZero(),H])}e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:e.helperString(bi([`
const `," = name => super[name];"],[`
const `," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:e.helperString(bi([`
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")}})(ln||(ln={}));var ln;(function(e){var o;(function(ie){ie[ie.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(o||(o={}));function F(ie){var d=ie.resumeLexicalEnvironment,H=ie.endLexicalEnvironment,Pe=ie.hoistVariableDeclaration,I=ie.getEmitResolver(),_e=ie.getCompilerOptions(),re=e.getEmitScriptTarget(_e),se=ie.onEmitNode;ie.onEmitNode=Je;var w=ie.onSubstituteNode;ie.onSubstituteNode=Ze;var k=!1,P,h,Y=0,ne,$,J,fe=[];return e.chainBundle(R);function R(G){if(G.isDeclarationFile)return G;k=!1,ne=e.isEffectiveStrictModeSourceFile(G,_e);var c=e.visitEachChild(G,K,ie);return e.addEmitHelpers(c,ie.readEmitHelpers()),c}function K(G){return m(G,!1)}function z(G){return m(G,!0)}function Ee(G){return G.kind===125?void 0:G}function B(G,c){if(ne){ne=!1;var O=G(c);return ne=!0,O}return G(c)}function V(G){return e.visitEachChild(G,K,ie)}function m(G,c){if((G.transformFlags&16)===0)return G;switch(G.kind){case 205:return y(G);case 211:return L(G);case 234:return C(G);case 237:return _(G);case 192:return D(G);case 208:return N(G,c);case 278:return X(G);case 224:return pe(G);case 241:return S(G);case 231:return Ce(G,void 0);case 229:return U(G);case 204:return de(G);case 161:return B(Ge,G);case 160:return B(Oe,G);case 162:return B(x,G);case 163:return B(j,G);case 243:return B(a,G);case 200:return B(Pn,G);case 201:return en(G);case 155:return be(G);case 225:return T(G);case 199:return Q(G,c);case 193:return $&&e.isPropertyAccessExpression(G)&&G.expression.kind===101&&$.set(G.name.escapedText,!0),e.visitEachChild(G,K,ie);case 194:return $&&G.expression.kind===101&&(J=!0),e.visitEachChild(G,K,ie);case 244:case 213:return B(V,G);default:return e.visitEachChild(G,K,ie)}}function y(G){return h&2&&h&1?e.setOriginalNode(e.setTextRange(e.createYield(Se(ie,e.visitNode(G.expression,K,e.isExpression))),G),G):e.visitEachChild(G,K,ie)}function L(G){if(h&2&&h&1){if(G.asteriskToken){var c=e.visitNode(G.expression,K,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(Se(ie,e.updateYield(G,G.asteriskToken,He(ie,ve(ie,c,c),c)))),G),G)}return e.setOriginalNode(e.setTextRange(e.createYield(Ae(G.expression?e.visitNode(G.expression,K,e.isExpression):e.createVoidZero())),G),G)}return e.visitEachChild(G,K,ie)}function C(G){return h&2&&h&1?e.updateReturn(G,Ae(G.expression?e.visitNode(G.expression,K,e.isExpression):e.createVoidZero())):e.visitEachChild(G,K,ie)}function _(G){if(h&2){var c=e.unwrapInnermostStatementOfLabel(G);return c.kind===231&&c.awaitModifier?Ce(c,G):e.restoreEnclosingLabel(e.visitEachChild(c,K,ie),G)}return e.visitEachChild(G,K,ie)}function b(G){for(var c,O=[],ee=0,Te=G;ee<Te.length;ee++){var Ne=Te[ee];if(Ne.kind===281){c&&(O.push(e.createObjectLiteral(c)),c=void 0);var ze=Ne.expression;O.push(e.visitNode(ze,K,e.isExpression))}else c=e.append(c,Ne.kind===279?e.createPropertyAssignment(Ne.name,e.visitNode(Ne.initializer,K,e.isExpression)):e.visitNode(Ne,K,e.isObjectLiteralElementLike))}return c&&O.push(e.createObjectLiteral(c)),O}function D(G){if(G.transformFlags&8192){var c=b(G.properties);c.length&&c[0].kind!==192&&c.unshift(e.createObjectLiteral());var O=c[0];if(c.length>1){for(var ee=1;ee<c.length;ee++)O=qe(ie,[O,c[ee]]);return O}else return qe(ie,c)}return e.visitEachChild(G,K,ie)}function T(G){return e.visitEachChild(G,z,ie)}function Q(G,c){return e.visitEachChild(G,c?z:K,ie)}function N(G,c){return e.isDestructuringAssignment(G)&&G.left.transformFlags&8192?e.flattenDestructuringAssignment(G,K,ie,1,!c):G.operatorToken.kind===27?e.updateBinary(G,e.visitNode(G.left,z,e.isExpression),e.visitNode(G.right,c?z:K,e.isExpression)):e.visitEachChild(G,K,ie)}function X(G){if(G.variableDeclaration&&e.isBindingPattern(G.variableDeclaration.name)&&G.variableDeclaration.name.transformFlags&8192){var c=e.getGeneratedNameForNode(G.variableDeclaration.name),O=e.updateVariableDeclaration(G.variableDeclaration,G.variableDeclaration.name,void 0,c),ee=e.flattenDestructuringBinding(O,K,ie,1),Te=e.visitNode(G.block,K,e.isBlock);return e.some(ee)&&(Te=e.updateBlock(Te,Or([e.createVariableStatement(void 0,ee)],Te.statements))),e.updateCatchClause(G,e.updateVariableDeclaration(G.variableDeclaration,c,void 0,void 0),Te)}return e.visitEachChild(G,K,ie)}function pe(G){if(e.hasModifier(G,1)){var c=k;k=!0;var O=e.visitEachChild(G,K,ie);return k=c,O}return e.visitEachChild(G,K,ie)}function S(G){if(k){var c=k;k=!1;var O=v(G,!0);return k=c,O}return v(G,!1)}function v(G,c){return e.isBindingPattern(G.name)&&G.name.transformFlags&8192?e.flattenDestructuringBinding(G,K,ie,1,void 0,c):e.visitEachChild(G,K,ie)}function U(G){return e.updateFor(G,e.visitNode(G.initializer,z,e.isForInitializer),e.visitNode(G.condition,K,e.isExpression),e.visitNode(G.incrementor,K,e.isExpression),e.visitNode(G.statement,K,e.isStatement))}function de(G){return e.visitEachChild(G,z,ie)}function Ce(G,c){return G.initializer.transformFlags&8192&&(G=Z(G)),G.awaitModifier?We(G,c):e.restoreEnclosingLabel(e.visitEachChild(G,K,ie),c)}function Z(G){var c=e.skipParentheses(G.initializer);if(e.isVariableDeclarationList(c)||e.isAssignmentPattern(c)){var O=void 0,ee=void 0,Te=e.createTempVariable(void 0),Ne=[e.createForOfBindingStatement(c,Te)];return e.isBlock(G.statement)?(e.addRange(Ne,G.statement.statements),O=G.statement,ee=G.statement.statements):G.statement&&(e.append(Ne,G.statement),O=G.statement,ee=G.statement),e.updateForOf(G,G.awaitModifier,e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(Te),G.initializer)],1),G.initializer),G.expression,e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(Ne),ee),!0),O))}return G}function Re(G,c){var O=e.createForOfBindingStatement(G.initializer,c),ee,Te,Ne=[e.visitNode(O,K,e.isStatement)],ze=e.visitNode(G.statement,K,e.isStatement);return e.isBlock(ze)?(e.addRange(Ne,ze.statements),ee=ze,Te=ze.statements):Ne.push(ze),e.setEmitFlags(e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(Ne),Te),!0),ee),48|384)}function Ae(G){return h&1?e.createYield(void 0,Se(ie,G)):e.createAwait(G)}function We(G,c){var O=e.visitNode(G.expression,K,e.isExpression),ee=e.isIdentifier(O)?e.getGeneratedNameForNode(O):e.createTempVariable(void 0),Te=e.isIdentifier(O)?e.getGeneratedNameForNode(ee):e.createTempVariable(void 0),Ne=e.createUniqueName("e"),ze=e.getGeneratedNameForNode(Ne),bn=e.createTempVariable(void 0),Sn=ve(ie,O,G.expression),Kn=e.createCall(e.createPropertyAccess(ee,"next"),void 0,[]),Xe=e.createPropertyAccess(Te,"done"),pn=e.createPropertyAccess(Te,"value"),le=e.createFunctionCall(bn,ee,[]);Pe(Ne),Pe(bn);var oe=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(ee,void 0,Sn),G.expression),e.createVariableDeclaration(Te)]),G.expression),2097152),e.createComma(e.createAssignment(Te,Ae(Kn)),e.createLogicalNot(Xe)),void 0,Re(G,pn)),G),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(oe,c)]),e.createCatchClause(e.createVariableDeclaration(ze),e.setEmitFlags(e.createBlock([e.createExpressionStatement(e.createAssignment(Ne,e.createObjectLiteral([e.createPropertyAssignment("error",ze)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(Te,e.createLogicalNot(Xe)),e.createAssignment(bn,e.createPropertyAccess(ee,"return"))),e.createExpressionStatement(Ae(le))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(Ne,e.createThrow(e.createPropertyAccess(Ne,"error"))),1)]),1))]))}function be(G){return G.transformFlags&8192?e.updateParameter(G,void 0,void 0,G.dotDotDotToken,e.getGeneratedNameForNode(G),void 0,void 0,e.visitNode(G.initializer,K,e.isExpression)):e.visitEachChild(G,K,ie)}function Ge(G){var c=h;h=0;var O=e.updateConstructor(G,void 0,G.modifiers,e.visitParameterList(G.parameters,K,ie),ae(G));return h=c,O}function x(G){var c=h;h=0;var O=e.updateGetAccessor(G,void 0,G.modifiers,e.visitNode(G.name,K,e.isPropertyName),e.visitParameterList(G.parameters,K,ie),void 0,ae(G));return h=c,O}function j(G){var c=h;h=0;var O=e.updateSetAccessor(G,void 0,G.modifiers,e.visitNode(G.name,K,e.isPropertyName),e.visitParameterList(G.parameters,K,ie),ae(G));return h=c,O}function Oe(G){var c=h;h=e.getFunctionFlags(G);var O=e.updateMethod(G,void 0,h&1?e.visitNodes(G.modifiers,Ee,e.isModifier):G.modifiers,h&2?void 0:G.asteriskToken,e.visitNode(G.name,K,e.isPropertyName),e.visitNode(void 0,K,e.isToken),void 0,e.visitParameterList(G.parameters,K,ie),void 0,h&2&&h&1?Xn(G):ae(G));return h=c,O}function a(G){var c=h;h=e.getFunctionFlags(G);var O=e.updateFunctionDeclaration(G,void 0,h&1?e.visitNodes(G.modifiers,Ee,e.isModifier):G.modifiers,h&2?void 0:G.asteriskToken,G.name,void 0,e.visitParameterList(G.parameters,K,ie),void 0,h&2&&h&1?Xn(G):ae(G));return h=c,O}function en(G){var c=h;h=e.getFunctionFlags(G);var O=e.updateArrowFunction(G,G.modifiers,void 0,e.visitParameterList(G.parameters,K,ie),void 0,G.equalsGreaterThanToken,ae(G));return h=c,O}function Pn(G){var c=h;h=e.getFunctionFlags(G);var O=e.updateFunctionExpression(G,h&1?e.visitNodes(G.modifiers,Ee,e.isModifier):G.modifiers,h&2?void 0:G.asteriskToken,G.name,void 0,e.visitParameterList(G.parameters,K,ie),void 0,h&2&&h&1?Xn(G):ae(G));return h=c,O}function Xn(G){d();var c=[],O=e.addPrologue(c,G.body.statements,!1,K);ce(c,G);var ee=$,Te=J;$=e.createUnderscoreEscapedMap(),J=!1;var Ne=e.createReturn(Fe(ie,e.createFunctionExpression(void 0,e.createToken(41),G.name&&e.getGeneratedNameForNode(G.name),void 0,[],void 0,e.updateBlock(G.body,e.visitLexicalEnvironment(G.body.statements,K,ie,O))),!ne)),ze=re>=2&&I.getNodeCheckFlags(G)&(4096|2048);if(ze){Le();var bn=e.createSuperAccessVariableStatement(I,G,$);fe[e.getNodeId(bn)]=!0,e.insertStatementsAfterStandardPrologue(c,[bn])}c.push(Ne),e.insertStatementsAfterStandardPrologue(c,H());var Sn=e.updateBlock(G.body,c);return ze&&J&&(I.getNodeCheckFlags(G)&4096?e.addEmitHelper(Sn,e.advancedAsyncSuperHelper):I.getNodeCheckFlags(G)&2048&&e.addEmitHelper(Sn,e.asyncSuperHelper)),$=ee,J=Te,Sn}function ae(G){d();var c=0,O=[],ee=e.visitNode(G.body,K,e.isConciseBody);e.isBlock(ee)&&(c=e.addPrologue(O,ee.statements,!1,K)),e.addRange(O,ce(void 0,G));var Te=H();if(c>0||e.some(O)||e.some(Te)){var Ne=e.convertToFunctionBody(ee,!0);return e.insertStatementsAfterStandardPrologue(O,Te),e.addRange(O,Ne.statements.slice(c)),e.updateBlock(Ne,e.setTextRange(e.createNodeArray(O),Ne.statements))}return ee}function ce(G,c){for(var O=0,ee=c.parameters;O<ee.length;O++){var Te=ee[O];if(Te.transformFlags&8192){var Ne=e.getGeneratedNameForNode(Te),ze=e.flattenDestructuringBinding(Te,K,ie,1,Ne,!1,!0);if(e.some(ze)){var bn=e.createVariableStatement(void 0,e.createVariableDeclarationList(ze));e.setEmitFlags(bn,1048576),G=e.append(G,bn)}}}return G}function Le(){(P&1)===0&&(P|=1,ie.enableSubstitution(195),ie.enableSubstitution(193),ie.enableSubstitution(194),ie.enableEmitNotification(244),ie.enableEmitNotification(160),ie.enableEmitNotification(162),ie.enableEmitNotification(163),ie.enableEmitNotification(161),ie.enableEmitNotification(224))}function Je(G,c,O){if(P&1&&he(c)){var ee=I.getNodeCheckFlags(c)&(2048|4096);if(ee!==Y){var Te=Y;Y=ee,se(G,c,O),Y=Te;return}}else if(P&&fe[e.getNodeId(c)]){var Te=Y;Y=0,se(G,c,O),Y=Te;return}se(G,c,O)}function Ze(G,c){return c=w(G,c),G===1&&Y?Ue(c):c}function Ue(G){switch(G.kind){case 193:return cn(G);case 194:return $e(G);case 195:return sn(G)}return G}function cn(G){return G.expression.kind===101?e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),G.name),G):G}function $e(G){return G.expression.kind===101?ke(G.argumentExpression,G):G}function sn(G){var c=G.expression;if(e.isSuperProperty(c)){var O=e.isPropertyAccessExpression(c)?cn(c):$e(c);return e.createCall(e.createPropertyAccess(O,"call"),void 0,Or([e.createThis()],G.arguments))}return G}function he(G){var c=G.kind;return c===244||c===161||c===160||c===162||c===163}function ke(G,c){return Y&4096?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_superIndex"),void 0,[G]),"value"),c):e.setTextRange(e.createCall(e.createIdentifier("_superIndex"),void 0,[G]),c)}}e.transformES2018=F,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);
};`};function qe(ie,d){return ie.getCompilerOptions().target>=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,d):(ie.requestEmitHelper(e.assignHelper),e.createCall(e.getUnscopedHelperName("__assign"),void 0,d))}e.createAssignHelper=qe,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); }`};function Se(ie,d){return ie.requestEmitHelper(e.awaitHelper),e.createCall(e.getUnscopedHelperName("__await"),void 0,[d])}e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,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]); }
};`};function Fe(ie,d,H){return ie.requestEmitHelper(e.awaitHelper),ie.requestEmitHelper(e.asyncGeneratorHelper),(d.emitNode||(d.emitNode={})).flags|=262144,e.createCall(e.getUnscopedHelperName("__asyncGenerator"),void 0,[H?e.createThis():e.createVoidZero(),e.createIdentifier("arguments"),d])}e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,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; }
};`};function He(ie,d,H){return ie.requestEmitHelper(e.awaitHelper),ie.requestEmitHelper(e.asyncDelegator),e.setTextRange(e.createCall(e.getUnscopedHelperName("__asyncDelegator"),void 0,[d]),H)}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); }
};`};function ve(ie,d,H){return ie.requestEmitHelper(e.asyncValues),e.setTextRange(e.createCall(e.getUnscopedHelperName("__asyncValues"),void 0,[d]),H)}})(ln||(ln={}));var ln;(function(e){function o(F){return e.chainBundle(qe);function qe(He){return He.isDeclarationFile?He:e.visitEachChild(He,Se,F)}function Se(He){if((He.transformFlags&8)===0)return He;switch(He.kind){case 278:return Fe(He);default:return e.visitEachChild(He,Se,F)}}function Fe(He){return He.variableDeclaration?e.visitEachChild(He,Se,F):e.updateCatchClause(He,e.createVariableDeclaration(e.createTempVariable(void 0)),e.visitNode(He.block,Se,e.isBlock))}}e.transformES2019=o})(ln||(ln={}));var ln;(function(e){function o(F){var qe=F.hoistVariableDeclaration;return e.chainBundle(Se);function Se(se){return se.isDeclarationFile?se:e.visitEachChild(se,Fe,F)}function Fe(se){if((se.transformFlags&4)===0)return se;switch(se.kind){case 193:case 194:case 195:if(se.flags&32){var w=I(se,!1);return e.Debug.assertNotNode(w,e.isSyntheticReference),w}return e.visitEachChild(se,Fe,F);case 208:return se.operatorToken.kind===60?re(se):e.visitEachChild(se,Fe,F);default:return e.visitEachChild(se,Fe,F)}}function He(se){for(var w=[se];!se.questionDotToken&&!e.isTaggedTemplateExpression(se);)se=e.cast(se.expression,e.isOptionalChain),w.unshift(se);return{expression:se.expression,chain:w}}function ve(se,w){var k=Pe(se.expression,w);return e.isSyntheticReference(k)?e.createSyntheticReferenceExpression(e.updateParen(se,k.expression),k.thisArg):e.updateParen(se,k)}function ie(se,w){if(e.isOptionalChain(se))return I(se,w);var k=e.visitNode(se.expression,Fe,e.isExpression);e.Debug.assertNotNode(k,e.isSyntheticReference);var P;return w&&(P=e.createTempVariable(qe),k=e.createParen(e.createAssignment(P,k))),k=e.updatePropertyAccess(se,k,e.visitNode(se.name,Fe,e.isIdentifier)),P?e.createSyntheticReferenceExpression(k,P):k}function d(se,w){if(e.isOptionalChain(se))return I(se,w);var k=e.visitNode(se.expression,Fe,e.isExpression);e.Debug.assertNotNode(k,e.isSyntheticReference);var P;return w&&(P=e.createTempVariable(qe),k=e.createParen(e.createAssignment(P,k))),k=e.updateElementAccess(se,k,e.visitNode(se.argumentExpression,Fe,e.isExpression)),P?e.createSyntheticReferenceExpression(k,P):k}function H(se,w){return e.isOptionalChain(se)?I(se,w):e.visitEachChild(se,Fe,F)}function Pe(se,w){switch(se.kind){case 199:return ve(se,w);case 193:return ie(se,w);case 194:return d(se,w);case 195:return H(se,w);default:return e.visitNode(se,Fe,e.isExpression)}}function I(se,w){for(var k=He(se),P=k.expression,h=k.chain,Y=Pe(P,e.isCallChain(h[0])),ne=e.createTempVariable(qe),$=e.isSyntheticReference(Y)?Y.thisArg:void 0,J=e.isSyntheticReference(Y)?Y.expression:Y,fe=ne,R,K=0;K<h.length;K++){var z=h[K];switch(z.kind){case 193:K===h.length-1&&w&&(R=e.createTempVariable(qe),fe=e.createParen(e.createAssignment(R,fe))),fe=e.createPropertyAccess(fe,e.visitNode(z.name,Fe,e.isIdentifier));break;case 194:K===h.length-1&&w&&(R=e.createTempVariable(qe),fe=e.createParen(e.createAssignment(R,fe))),fe=e.createElementAccess(fe,e.visitNode(z.argumentExpression,Fe,e.isExpression));break;case 195:K===0&&$?fe=e.createFunctionCall(fe,$,e.visitNodes(z.arguments,Fe,e.isExpression)):fe=e.createCall(fe,void 0,e.visitNodes(z.arguments,Fe,e.isExpression));break}e.setOriginalNode(fe,z)}var Ee=e.createConditional(e.createLogicalOr(e.createStrictEquality(e.createAssignment(ne,J),e.createNull()),e.createStrictEquality(ne,e.createVoidZero())),e.createVoidZero(),fe);return R?e.createSyntheticReferenceExpression(Ee,R):Ee}function _e(se){return e.createBinary(e.createBinary(se,e.createToken(37),e.createNull()),e.createToken(55),e.createBinary(se,e.createToken(37),e.createVoidZero()))}function re(se){var w=[],k=e.visitNode(se.left,Fe,e.isExpression);if(!e.isIdentifier(k)){var P=e.createTempVariable(qe);w.push(e.createAssignment(P,k)),k=P}return w.push(e.createParen(e.createConditional(_e(k),k,e.visitNode(se.right,Fe,e.isExpression)))),e.inlineExpressions(w)}}e.transformESNext=o})(ln||(ln={}));var ln;(function(e){function o(qe){var Se=qe.getCompilerOptions(),Fe;return e.chainBundle(He);function He(K){if(K.isDeclarationFile)return K;Fe=K;var z=e.visitEachChild(K,ve,qe);return e.addEmitHelpers(z,qe.readEmitHelpers()),z}function ve(K){return K.transformFlags&2?ie(K):K}function ie(K){switch(K.kind){case 264:return H(K,!1);case 265:return Pe(K,!1);case 268:return I(K,!1);case 274:return R(K);default:return e.visitEachChild(K,ve,qe)}}function d(K){switch(K.kind){case 11:return P(K);case 274:return R(K);case 264:return H(K,!0);case 265:return Pe(K,!0);case 268:return I(K,!0);default:return e.Debug.failBadSyntaxKind(K)}}function H(K,z){return _e(K.openingElement,K.children,z,K)}function Pe(K,z){return _e(K,void 0,z,K)}function I(K,z){return re(K.openingFragment,K.children,z,K)}function _e(K,z,Ee,B){var V=J(K),m,y=K.attributes.properties;if(y.length===0)m=e.createNull();else{var L=e.flatten(e.spanMap(y,e.isJsxSpreadAttribute,function(_,b){return b?e.map(_,se):e.createObjectLiteral(e.map(_,w))}));e.isJsxSpreadAttribute(y[0])&&L.unshift(e.createObjectLiteral()),m=e.singleOrUndefined(L),m||(m=e.createAssignHelper(qe,L))}var C=e.createExpressionForJsxElement(qe.getEmitResolver().getJsxFactoryEntity(Fe),Se.reactNamespace,V,m,e.mapDefined(z,d),K,B);return Ee&&e.startOnNewLine(C),C}function re(K,z,Ee,B){var V=e.createExpressionForJsxFragment(qe.getEmitResolver().getJsxFactoryEntity(Fe),Se.reactNamespace,e.mapDefined(z,d),K,B);return Ee&&e.startOnNewLine(V),V}function se(K){return e.visitNode(K.expression,ve,e.isExpression)}function w(K){var z=fe(K),Ee=k(K.initializer);return e.createPropertyAssignment(z,Ee)}function k(K){if(K===void 0)return e.createTrue();if(K.kind===10){var z=e.createLiteral($(K.text)||K.text);return z.singleQuote=K.singleQuote!==void 0?K.singleQuote:!e.isStringDoubleQuoted(K,Fe),e.setTextRange(z,K)}else return K.kind===274?K.expression===void 0?e.createTrue():R(K):e.Debug.failBadSyntaxKind(K)}function P(K){var z=h(K.text);return z===void 0?void 0:e.createLiteral(z)}function h(K){for(var z,Ee=0,B=-1,V=0;V<K.length;V++){var m=K.charCodeAt(V);e.isLineBreak(m)?(Ee!==-1&&B!==-1&&(z=Y(z,K.substr(Ee,B-Ee+1))),Ee=-1):e.isWhiteSpaceSingleLine(m)||(B=V,Ee===-1&&(Ee=V))}return Ee!==-1?Y(z,K.substr(Ee)):z}function Y(K,z){var Ee=ne(z);return K===void 0?Ee:K+" "+Ee}function ne(K){return K.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(z,Ee,B,V,m,y,L){if(m)return String.fromCharCode(parseInt(m,10));if(y)return String.fromCharCode(parseInt(y,16));var C=F.get(L);return C?String.fromCharCode(C):z})}function $(K){var z=ne(K);return z===K?void 0:z}function J(K){if(K.kind===264)return J(K.openingElement);var z=K.tagName;return e.isIdentifier(z)&&e.isIntrinsicJsxName(z.escapedText)?e.createLiteral(e.idText(z)):e.createExpressionFromEntityName(z)}function fe(K){var z=K.name,Ee=e.idText(z);return/^[A-Za-z_]\w*$/.test(Ee)?z:e.createLiteral(Ee)}function R(K){return e.visitNode(K.expression,ve,e.isExpression)}}e.transformJsx=o;var F=e.createMapFromTemplate({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})})(ln||(ln={}));var ln;(function(e){function o(F){var qe=F.hoistVariableDeclaration;return e.chainBundle(Se);function Se(d){return d.isDeclarationFile?d:e.visitEachChild(d,Fe,F)}function Fe(d){if((d.transformFlags&64)===0)return d;switch(d.kind){case 208:return He(d);default:return e.visitEachChild(d,Fe,F)}}function He(d){switch(d.operatorToken.kind){case 66:return ve(d);case 42:return ie(d);default:return e.visitEachChild(d,Fe,F)}}function ve(d){var H,Pe,I=e.visitNode(d.left,Fe,e.isExpression),_e=e.visitNode(d.right,Fe,e.isExpression);if(e.isElementAccessExpression(I)){var re=e.createTempVariable(qe),se=e.createTempVariable(qe);H=e.setTextRange(e.createElementAccess(e.setTextRange(e.createAssignment(re,I.expression),I.expression),e.setTextRange(e.createAssignment(se,I.argumentExpression),I.argumentExpression)),I),Pe=e.setTextRange(e.createElementAccess(re,se),I)}else if(e.isPropertyAccessExpression(I)){var re=e.createTempVariable(qe);H=e.setTextRange(e.createPropertyAccess(e.setTextRange(e.createAssignment(re,I.expression),I.expression),I.name),I),Pe=e.setTextRange(e.createPropertyAccess(re,I.name),I)}else H=I,Pe=I;return e.setTextRange(e.createAssignment(H,e.createMathPow(Pe,_e,d)),d)}function ie(d){var H=e.visitNode(d.left,Fe,e.isExpression),Pe=e.visitNode(d.right,Fe,e.isExpression);return e.createMathPow(H,Pe,d)}}e.transformES2016=o})(ln||(ln={}));var ln;(function(e){var o;(function(d){d[d.CapturedThis=1]="CapturedThis",d[d.BlockScopedBindings=2]="BlockScopedBindings"})(o||(o={}));var F;(function(d){d[d.Body=1]="Body",d[d.Initializer=2]="Initializer"})(F||(F={}));var qe;(function(d){d[d.ToOriginal=0]="ToOriginal",d[d.ToOutParameter=1]="ToOutParameter"})(qe||(qe={}));var Se;(function(d){d[d.Break=2]="Break",d[d.Continue=4]="Continue",d[d.Return=8]="Return"})(Se||(Se={}));var Fe;(function(d){d[d.None=0]="None",d[d.Function=1]="Function",d[d.ArrowFunction=2]="ArrowFunction",d[d.AsyncFunctionBody=4]="AsyncFunctionBody",d[d.NonStaticClassElement=8]="NonStaticClassElement",d[d.CapturesThis=16]="CapturesThis",d[d.ExportedVariableStatement=32]="ExportedVariableStatement",d[d.TopLevel=64]="TopLevel",d[d.Block=128]="Block",d[d.IterationStatement=256]="IterationStatement",d[d.IterationStatementBlock=512]="IterationStatementBlock",d[d.IterationContainer=1024]="IterationContainer",d[d.ForStatement=2048]="ForStatement",d[d.ForInOrForOfStatement=4096]="ForInOrForOfStatement",d[d.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",d[d.AncestorFactsMask=16383]="AncestorFactsMask",d[d.BlockScopeIncludes=0]="BlockScopeIncludes",d[d.BlockScopeExcludes=7104]="BlockScopeExcludes",d[d.SourceFileIncludes=64]="SourceFileIncludes",d[d.SourceFileExcludes=8064]="SourceFileExcludes",d[d.FunctionIncludes=65]="FunctionIncludes",d[d.FunctionExcludes=16286]="FunctionExcludes",d[d.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",d[d.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",d[d.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",d[d.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",d[d.ConstructorIncludes=73]="ConstructorIncludes",d[d.ConstructorExcludes=16278]="ConstructorExcludes",d[d.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",d[d.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",d[d.ForStatementIncludes=3328]="ForStatementIncludes",d[d.ForStatementExcludes=5056]="ForStatementExcludes",d[d.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",d[d.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",d[d.BlockIncludes=128]="BlockIncludes",d[d.BlockExcludes=6976]="BlockExcludes",d[d.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",d[d.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",d[d.NewTarget=16384]="NewTarget",d[d.CapturedLexicalThis=32768]="CapturedLexicalThis",d[d.SubtreeFactsMask=-16384]="SubtreeFactsMask",d[d.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",d[d.FunctionSubtreeExcludes=49152]="FunctionSubtreeExcludes"})(Fe||(Fe={}));function He(d){var H=d.startLexicalEnvironment,Pe=d.resumeLexicalEnvironment,I=d.endLexicalEnvironment,_e=d.hoistVariableDeclaration,re=d.getCompilerOptions(),se=d.getEmitResolver(),w=d.onSubstituteNode,k=d.onEmitNode;d.onEmitNode=Bn,d.onSubstituteNode=cr;var P,h,Y,ne;function $(ge){ne=e.append(ne,e.createVariableDeclaration(ge))}var J,fe;return e.chainBundle(R);function R(ge){if(ge.isDeclarationFile)return ge;P=ge,h=ge.text;var hn=L(ge);return e.addEmitHelpers(hn,d.readEmitHelpers()),P=void 0,h=void 0,ne=void 0,Y=0,hn}function K(ge,hn){var Jn=Y;return Y=(Y&~ge|hn)&16383,Jn}function z(ge,hn,Jn){Y=(Y&~hn|Jn)&-16384|ge}function Ee(ge){return(Y&8192)!==0&&ge.kind===234&&!ge.expression}function B(ge){return(ge.transformFlags&128)!==0||J!==void 0||Y&8192&&(e.isStatement(ge)||ge.kind===222)||e.isIterationStatement(ge,!1)&&Ie(ge)||(e.getEmitFlags(ge)&33554432)!==0}function V(ge){return B(ge)?y(ge):ge}function m(ge){return ge.kind===101?vn(!0):V(ge)}function y(ge){switch(ge.kind){case 119:return;case 244:return X(ge);case 213:return pe(ge);case 155:return Ge(ge);case 243:return he(ge);case 201:return $e(ge);case 200:return sn(ge);case 241:return Xe(ge);case 75:return Q(ge);case 242:return ze(ge);case 236:return C(ge);case 250:return _(ge);case 222:return c(ge,!1);case 233:case 232:return N(ge);case 237:return oe(ge);case 227:case 228:return ye(ge,void 0);case 229:return mn(ge,void 0);case 230:return un(ge,void 0);case 231:return Mn(ge,void 0);case 225:return O(ge);case 192:return ot(ge);case 278:return wi(ge);case 280:return Xa(ge);case 153:return Ia(ge);case 191:return Ti(ge);case 195:return Vo(ge);case 196:return ui(ge);case 199:return ee(ge,!0);case 208:return Te(ge,!0);case 14:case 15:case 16:case 17:return Jr(ge);case 10:return va(ge);case 8:return Na(ge);case 197:return qr(ge);case 210:return Ii(ge);case 211:return ca(ge);case 212:return Kt(ge);case 101:return vn(!1);case 103:return T(ge);case 218:return Ln(ge);case 160:return Ei(ge);case 162:case 163:return Pi(ge);case 224:return Ne(ge);case 234:return D(ge);default:return e.visitEachChild(ge,V,d)}}function L(ge){var hn=K(8064,64),Jn=[],ue=[];H();var rn=e.addStandardPrologue(Jn,ge.statements,!1);return rn=e.addCustomPrologue(Jn,ge.statements,rn,V),e.addRange(ue,e.visitNodes(ge.statements,V,e.isStatement,rn)),ne&&ue.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(ne))),e.mergeLexicalEnvironment(Jn,I()),Xn(Jn,ge),z(hn,0,0),e.updateSourceFileNode(ge,e.setTextRange(e.createNodeArray(e.concatenate(Jn,ue)),ge.statements))}function C(ge){if(J!==void 0){var hn=J.allowedNonLabeledJumps;J.allowedNonLabeledJumps|=2;var Jn=e.visitEachChild(ge,V,d);return J.allowedNonLabeledJumps=hn,Jn}return e.visitEachChild(ge,V,d)}function _(ge){var hn=K(7104,0),Jn=e.visitEachChild(ge,V,d);return z(hn,0,0),Jn}function b(ge){return e.setOriginalNode(e.createReturn(e.createFileLevelUniqueName("_this")),ge)}function D(ge){return J?(J.nonLocalJumps|=8,Ee(ge)&&(ge=b(ge)),e.createReturn(e.createObjectLiteral([e.createPropertyAssignment(e.createIdentifier("value"),ge.expression?e.visitNode(ge.expression,V,e.isExpression):e.createVoidZero())]))):Ee(ge)?b(ge):e.visitEachChild(ge,V,d)}function T(ge){return Y&2&&(Y|=32768),J?Y&2?(J.containsLexicalThis=!0,ge):J.thisName||(J.thisName=e.createUniqueName("this")):ge}function Q(ge){return J?e.isGeneratedIdentifier(ge)||(ge.escapedText!=="arguments"||!se.isArgumentsLocalBinding(ge))?ge:J.argumentsName||(J.argumentsName=e.createUniqueName("arguments")):ge}function N(ge){if(J){var hn=ge.kind===233?2:4,Jn=ge.label&&J.labels&&J.labels.get(e.idText(ge.label))||!ge.label&&J.allowedNonLabeledJumps&hn;if(!Jn){var ue=void 0,rn=ge.label;rn?ge.kind===233?(ue="break-"+rn.escapedText,Ke(J,!0,e.idText(rn),ue)):(ue="continue-"+rn.escapedText,Ke(J,!1,e.idText(rn),ue)):ge.kind===233?(J.nonLocalJumps|=2,ue="break"):(J.nonLocalJumps|=4,ue="continue");var Cn=e.createLiteral(ue);if(J.loopOutParameters.length){for(var Zn=J.loopOutParameters,lt=void 0,Rt=0;Rt<Zn.length;Rt++){var an=ft(Zn[Rt],1);Rt===0?lt=an:lt=e.createBinary(lt,27,an)}Cn=e.createBinary(lt,27,Cn)}return e.createReturn(Cn)}}return e.visitEachChild(ge,V,d)}function X(ge){var hn=e.createVariableDeclaration(e.getLocalName(ge,!0),void 0,S(ge));e.setOriginalNode(hn,ge);var Jn=[],ue=e.createVariableStatement(void 0,e.createVariableDeclarationList([hn]));if(e.setOriginalNode(ue,ge),e.setTextRange(ue,ge),e.startOnNewLine(ue),Jn.push(ue),e.hasModifier(ge,1)){var rn=e.hasModifier(ge,512)?e.createExportDefault(e.getLocalName(ge)):e.createExternalModuleExport(e.getLocalName(ge));e.setOriginalNode(rn,ue),Jn.push(rn)}var Cn=e.getEmitFlags(ge);return(Cn&4194304)===0&&(Jn.push(e.createEndOfDeclarationMarker(ge)),e.setEmitFlags(ue,Cn|4194304)),e.singleOrMany(Jn)}function pe(ge){return S(ge)}function S(ge){ge.name&&Pt();var hn=e.getClassExtendsHeritageElement(ge),Jn=e.createFunctionExpression(void 0,void 0,void 0,void 0,hn?[e.createParameter(void 0,void 0,void 0,e.createFileLevelUniqueName("_super"))]:[],void 0,v(ge,hn));e.setEmitFlags(Jn,e.getEmitFlags(ge)&65536|524288);var ue=e.createPartiallyEmittedExpression(Jn);ue.end=ge.end,e.setEmitFlags(ue,1536);var rn=e.createPartiallyEmittedExpression(ue);rn.end=e.skipTrivia(h,ge.pos),e.setEmitFlags(rn,1536);var Cn=e.createParen(e.createCall(rn,void 0,hn?[e.visitNode(hn.expression,V,e.isExpression)]:[]));return e.addSyntheticLeadingComment(Cn,3,"* @class "),Cn}function v(ge,hn){var Jn=[];H(),U(Jn,ge,hn),de(Jn,ge,hn),Le(Jn,ge);var ue=e.createTokenRange(e.skipTrivia(h,ge.members.end),19),rn=e.getInternalName(ge),Cn=e.createPartiallyEmittedExpression(rn);Cn.end=ue.end,e.setEmitFlags(Cn,1536);var Zn=e.createReturn(Cn);Zn.pos=ue.pos,e.setEmitFlags(Zn,1536|384),Jn.push(Zn),e.insertStatementsAfterStandardPrologue(Jn,I());var lt=e.createBlock(e.setTextRange(e.createNodeArray(Jn),ge.members),!0);return e.setEmitFlags(lt,1536),lt}function U(ge,hn,Jn){Jn&&ge.push(e.setTextRange(e.createExpressionStatement(ve(d,e.getInternalName(hn))),Jn))}function de(ge,hn,Jn){var ue=J;J=void 0;var rn=K(16278,73),Cn=e.getFirstConstructorWithBody(hn),Zn=zn(Cn,Jn!==void 0),lt=e.createFunctionDeclaration(void 0,void 0,void 0,e.getInternalName(hn),void 0,Ce(Cn,Zn),void 0,Re(Cn,hn,Jn,Zn));e.setTextRange(lt,Cn||hn),Jn&&e.setEmitFlags(lt,8),ge.push(lt),z(rn,49152,0),J=ue}function Ce(ge,hn){return e.visitParameterList(ge&&!hn?ge.parameters:void 0,V,d)||[]}function Z(ge,hn){var Jn=[];Pe(),e.mergeLexicalEnvironment(Jn,I()),hn&&Jn.push(e.createReturn(be()));var ue=e.createNodeArray(Jn);e.setTextRange(ue,ge.members);var rn=e.createBlock(ue,!0);return e.setTextRange(rn,ge),e.setEmitFlags(rn,1536),rn}function Re(ge,hn,Jn,ue){var rn=!!Jn&&e.skipOuterExpressions(Jn.expression).kind!==99;if(!ge)return Z(hn,rn);var Cn=[],Zn=[];Pe();var lt=0;ue||(lt=e.addStandardPrologue(Cn,ge.body.statements,!1)),j(Zn,ge),Pn(Zn,ge,ue),ue||(lt=e.addCustomPrologue(Zn,ge.body.statements,lt,V));var Rt;if(ue)Rt=be();else if(rn&&lt<ge.body.statements.length){var an=ge.body.statements[lt];e.isExpressionStatement(an)&&e.isSuperCall(an.expression)&&(Rt=Ro(an.expression))}if(Rt&&(Y|=8192,lt++),e.addRange(Zn,e.visitNodes(ge.body.statements,V,e.isStatement,lt)),e.mergeLexicalEnvironment(Cn,I()),ce(Cn,ge,!1),rn)if(Rt&&lt===ge.body.statements.length&&!(ge.body.transformFlags&2048)){var Dr=e.cast(e.cast(Rt,e.isBinaryExpression).left,e.isCallExpression),da=e.createReturn(Rt);e.setCommentRange(da,e.getCommentRange(Dr)),e.setEmitFlags(Dr,1536),Zn.push(da)}else ae(Zn,ge,Rt||We()),Ae(ge.body)||Zn.push(e.createReturn(e.createFileLevelUniqueName("_this")));else Xn(Cn,ge);var Ha=e.createBlock(e.setTextRange(e.createNodeArray(e.concatenate(Cn,Zn)),ge.body.statements),!0);return e.setTextRange(Ha,ge.body),Ha}function Ae(ge){if(ge.kind===234)return!0;if(ge.kind===226){var hn=ge;if(hn.elseStatement)return Ae(hn.thenStatement)&&Ae(hn.elseStatement)}else if(ge.kind===222){var Jn=e.lastOrUndefined(ge.statements);if(Jn&&Ae(Jn))return!0}return!1}function We(){return e.setEmitFlags(e.createThis(),4)}function be(){return e.createLogicalOr(e.createLogicalAnd(e.createStrictInequality(e.createFileLevelUniqueName("_super"),e.createNull()),e.createFunctionApply(e.createFileLevelUniqueName("_super"),We(),e.createIdentifier("arguments"))),We())}function Ge(ge){return ge.dotDotDotToken?void 0:e.isBindingPattern(ge.name)?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,e.getGeneratedNameForNode(ge),void 0,void 0,void 0),ge),ge):ge.initializer?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,ge.name,void 0,void 0,void 0),ge),ge):ge}function x(ge){return ge.initializer!==void 0||e.isBindingPattern(ge.name)}function j(ge,hn){if(!e.some(hn.parameters,x))return!1;for(var Jn=!1,ue=0,rn=hn.parameters;ue<rn.length;ue++){var Cn=rn[ue],Zn=Cn.name,lt=Cn.initializer,Rt=Cn.dotDotDotToken;if(Rt)continue;e.isBindingPattern(Zn)?Jn=Oe(ge,Cn,Zn,lt)||Jn:lt&&(a(ge,Cn,Zn,lt),Jn=!0)}return Jn}function Oe(ge,hn,Jn,ue){return Jn.elements.length>0?(e.insertStatementAfterCustomPrologue(ge,e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(hn,V,d,0,e.getGeneratedNameForNode(hn)))),1048576)),!0):ue?(e.insertStatementAfterCustomPrologue(ge,e.setEmitFlags(e.createExpressionStatement(e.createAssignment(e.getGeneratedNameForNode(hn),e.visitNode(ue,V,e.isExpression))),1048576)),!0):!1}function a(ge,hn,Jn,ue){ue=e.visitNode(ue,V,e.isExpression);var rn=e.createIf(e.createTypeCheck(e.getSynthesizedClone(Jn),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createExpressionStatement(e.setEmitFlags(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(Jn),48),e.setEmitFlags(ue,48|e.getEmitFlags(ue)|1536)),hn),1536))]),hn),1|32|384|1536));e.startOnNewLine(rn),e.setTextRange(rn,hn),e.setEmitFlags(rn,384|32|1048576|1536),e.insertStatementAfterCustomPrologue(ge,rn)}function en(ge,hn){return!!(ge&&ge.dotDotDotToken&&!hn)}function Pn(ge,hn,Jn){var ue=[],rn=e.lastOrUndefined(hn.parameters);if(!en(rn,Jn))return!1;var Cn=rn.name.kind===75?e.getMutableClone(rn.name):e.createTempVariable(void 0);e.setEmitFlags(Cn,48);var Zn=rn.name.kind===75?e.getSynthesizedClone(rn.name):Cn,lt=hn.parameters.length-1,Rt=e.createLoopVariable();ue.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(Cn,void 0,e.createArrayLiteral([]))])),rn),1048576));var an=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(Rt,void 0,e.createLiteral(lt))]),rn),e.setTextRange(e.createLessThan(Rt,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),rn),e.setTextRange(e.createPostfixIncrement(Rt),rn),e.createBlock([e.startOnNewLine(e.setTextRange(e.createExpressionStatement(e.createAssignment(e.createElementAccess(Zn,lt===0?Rt:e.createSubtract(Rt,e.createLiteral(lt))),e.createElementAccess(e.createIdentifier("arguments"),Rt))),rn))]));return e.setEmitFlags(an,1048576),e.startOnNewLine(an),ue.push(an),rn.name.kind!==75&&ue.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(rn,V,d,0,Zn))),rn),1048576)),e.insertStatementsAfterCustomPrologue(ge,ue),!0}function Xn(ge,hn){return Y&32768&&hn.kind!==201?(ae(ge,hn,e.createThis()),!0):!1}function ae(ge,hn,Jn){rr();var ue=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_this"),void 0,Jn)]));e.setEmitFlags(ue,1536|1048576),e.setSourceMapRange(ue,hn),e.insertStatementAfterCustomPrologue(ge,ue)}function ce(ge,hn,Jn){if(Y&16384){var ue=void 0;switch(hn.kind){case 201:return ge;case 160:case 162:case 163:ue=e.createVoidZero();break;case 161:ue=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 243:case 200:ue=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),97,e.getLocalName(hn))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(hn)}var rn=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_newTarget"),void 0,ue)]));e.setEmitFlags(rn,1536|1048576),Jn&&(ge=ge.slice()),e.insertStatementAfterCustomPrologue(ge,rn)}return ge}function Le(ge,hn){for(var Jn=0,ue=hn.members;Jn<ue.length;Jn++){var rn=ue[Jn];switch(rn.kind){case 221:ge.push(Je(rn));break;case 160:ge.push(Ze(Ye(hn,rn),rn,hn));break;case 162:case 163:var Cn=e.getAllAccessorDeclarations(hn.members,rn);rn===Cn.firstAccessor&&ge.push(Ue(Ye(hn,rn),Cn,hn));break;case 161:break;default:e.Debug.failBadSyntaxKind(rn,P&&P.fileName);break}}}function Je(ge){return e.setTextRange(e.createEmptyStatement(),ge)}function Ze(ge,hn,Jn){var ue=e.getCommentRange(hn),rn=e.getSourceMapRange(hn),Cn=ke(hn,hn,void 0,Jn),Zn;if(d.getCompilerOptions().useDefineForClassFields){var lt=e.visitNode(hn.name,V,e.isPropertyName),Rt=e.isComputedPropertyName(lt)?lt.expression:e.isIdentifier(lt)?e.createStringLiteral(e.unescapeLeadingUnderscores(lt.escapedText)):lt;Zn=e.createObjectDefinePropertyCall(ge,Rt,e.createPropertyDescriptor({value:Cn,enumerable:!1,writable:!0,configurable:!0}))}else{var an=e.createMemberAccessForPropertyName(ge,e.visitNode(hn.name,V,e.isPropertyName),hn.name);Zn=e.createAssignment(an,Cn)}e.setEmitFlags(Cn,1536),e.setSourceMapRange(Cn,rn);var Dr=e.setTextRange(e.createExpressionStatement(Zn),hn);return e.setOriginalNode(Dr,hn),e.setCommentRange(Dr,ue),e.setEmitFlags(Dr,48),Dr}function Ue(ge,hn,Jn){var ue=e.createExpressionStatement(cn(ge,hn,Jn,!1));return e.setEmitFlags(ue,1536),e.setSourceMapRange(ue,e.getSourceMapRange(hn.firstAccessor)),ue}function cn(ge,hn,Jn,ue){var rn=hn.firstAccessor,Cn=hn.getAccessor,Zn=hn.setAccessor,lt=e.getMutableClone(ge);e.setEmitFlags(lt,1536|32),e.setSourceMapRange(lt,rn.name);var Rt=e.createExpressionForPropertyName(e.visitNode(rn.name,V,e.isPropertyName));e.setEmitFlags(Rt,1536|16),e.setSourceMapRange(Rt,rn.name);var an=[];if(Cn){var Dr=ke(Cn,void 0,void 0,Jn);e.setSourceMapRange(Dr,e.getSourceMapRange(Cn)),e.setEmitFlags(Dr,512);var da=e.createPropertyAssignment("get",Dr);e.setCommentRange(da,e.getCommentRange(Cn)),an.push(da)}if(Zn){var Ha=ke(Zn,void 0,void 0,Jn);e.setSourceMapRange(Ha,e.getSourceMapRange(Zn)),e.setEmitFlags(Ha,512);var to=e.createPropertyAssignment("set",Ha);e.setCommentRange(to,e.getCommentRange(Zn)),an.push(to)}an.push(e.createPropertyAssignment("enumerable",e.createTrue()),e.createPropertyAssignment("configurable",e.createTrue()));var ga=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[lt,Rt,e.createObjectLiteral(an,!0)]);return ue&&e.startOnNewLine(ga),ga}function $e(ge){ge.transformFlags&2048&&(Y|=32768);var hn=J;J=void 0;var Jn=K(15232,66),ue=e.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(ge.parameters,V,d),void 0,G(ge));return e.setTextRange(ue,ge),e.setOriginalNode(ue,ge),e.setEmitFlags(ue,8),Y&32768&&rr(),z(Jn,0,0),J=hn,ue}function sn(ge){var hn=e.getEmitFlags(ge)&262144?K(16278,69):K(16286,65),Jn=J;J=void 0;var ue=e.visitParameterList(ge.parameters,V,d),rn=G(ge),Cn=Y&16384?e.getLocalName(ge):ge.name;return z(hn,49152,0),J=Jn,e.updateFunctionExpression(ge,void 0,ge.asteriskToken,Cn,void 0,ue,void 0,rn)}function he(ge){var hn=J;J=void 0;var Jn=K(16286,65),ue=e.visitParameterList(ge.parameters,V,d),rn=G(ge),Cn=Y&16384?e.getLocalName(ge):ge.name;return z(Jn,49152,0),J=hn,e.updateFunctionDeclaration(ge,void 0,e.visitNodes(ge.modifiers,V,e.isModifier),ge.asteriskToken,Cn,void 0,ue,void 0,rn)}function ke(ge,hn,Jn,ue){var rn=J;J=void 0;var Cn=ue&&e.isClassLike(ue)&&!e.hasModifier(ge,32)?K(16286,65|8):K(16286,65),Zn=e.visitParameterList(ge.parameters,V,d),lt=G(ge);return Y&16384&&!Jn&&(ge.kind===243||ge.kind===200)&&(Jn=e.getGeneratedNameForNode(ge)),z(Cn,49152,0),J=rn,e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,ge.asteriskToken,Jn,void 0,Zn,void 0,lt),hn),ge)}function G(ge){var hn=!1,Jn=!1,ue,rn,Cn=[],Zn=[],lt=ge.body,Rt;if(Pe(),e.isBlock(lt)&&(Rt=e.addStandardPrologue(Cn,lt.statements,!1)),hn=j(Zn,ge)||hn,hn=Pn(Zn,ge,!1)||hn,e.isBlock(lt))Rt=e.addCustomPrologue(Zn,lt.statements,Rt,V),ue=lt.statements,e.addRange(Zn,e.visitNodes(lt.statements,V,e.isStatement,Rt)),!hn&&lt.multiLine&&(hn=!0);else{e.Debug.assert(ge.kind===201),ue=e.moveRangeEnd(lt,-1);var an=ge.equalsGreaterThanToken;!e.nodeIsSynthesized(an)&&!e.nodeIsSynthesized(lt)&&(e.rangeEndIsOnSameLineAsRangeStart(an,lt,P)?Jn=!0:hn=!0);var Dr=e.visitNode(lt,V,e.isExpression),da=e.createReturn(Dr);e.setTextRange(da,lt),e.moveSyntheticComments(da,lt),e.setEmitFlags(da,384|32|1024),Zn.push(da),rn=lt}if(e.mergeLexicalEnvironment(Cn,I()),ce(Cn,ge,!1),Xn(Cn,ge),e.some(Cn)&&(hn=!0),Zn.unshift.apply(Zn,Cn),e.isBlock(lt)&&e.arrayIsEqualTo(Zn,lt.statements))return lt;var Ha=e.createBlock(e.setTextRange(e.createNodeArray(Zn),ue),hn);return e.setTextRange(Ha,ge.body),!hn&&Jn&&e.setEmitFlags(Ha,1),rn&&e.setTokenSourceMapRange(Ha,19,rn),e.setOriginalNode(Ha,ge.body),Ha}function c(ge,hn){if(hn)return e.visitEachChild(ge,V,d);var Jn=Y&256?K(7104,512):K(6976,128),ue=e.visitEachChild(ge,V,d);return z(Jn,0,0),ue}function O(ge){switch(ge.expression.kind){case 199:return e.updateExpressionStatement(ge,ee(ge.expression,!1));case 208:return e.updateExpressionStatement(ge,Te(ge.expression,!1))}return e.visitEachChild(ge,V,d)}function ee(ge,hn){if(!hn)switch(ge.expression.kind){case 199:return e.updateParen(ge,ee(ge.expression,!1));case 208:return e.updateParen(ge,Te(ge.expression,!1))}return e.visitEachChild(ge,V,d)}function Te(ge,hn){return e.isDestructuringAssignment(ge)?e.flattenDestructuringAssignment(ge,V,d,0,hn):e.visitEachChild(ge,V,d)}function Ne(ge){var hn=K(0,e.hasModifier(ge,1)?32:0),Jn;if(J&&(ge.declarationList.flags&3)===0){for(var ue=void 0,rn=0,Cn=ge.declarationList.declarations;rn<Cn.length;rn++){var Zn=Cn[rn];if(_n(J,Zn),Zn.initializer){var lt=void 0;e.isBindingPattern(Zn.name)?lt=e.flattenDestructuringAssignment(Zn,V,d,0):(lt=e.createBinary(Zn.name,62,e.visitNode(Zn.initializer,V,e.isExpression)),e.setTextRange(lt,Zn)),ue=e.append(ue,lt)}}ue?Jn=e.setTextRange(e.createExpressionStatement(e.inlineExpressions(ue)),ge):Jn=void 0}else Jn=e.visitEachChild(ge,V,d);return z(hn,0,0),Jn}function ze(ge){if(ge.flags&3||ge.transformFlags&65536){ge.flags&3&&Pt();var hn=e.flatMap(ge.declarations,ge.flags&1?Kn:Xe),Jn=e.createVariableDeclarationList(hn);return e.setOriginalNode(Jn,ge),e.setTextRange(Jn,ge),e.setCommentRange(Jn,ge),ge.transformFlags&65536&&(e.isBindingPattern(ge.declarations[0].name)||e.isBindingPattern(e.last(ge.declarations).name))&&e.setSourceMapRange(Jn,bn(hn)),Jn}return e.visitEachChild(ge,V,d)}function bn(ge){for(var hn=-1,Jn=-1,ue=0,rn=ge;ue<rn.length;ue++){var Cn=rn[ue];hn=hn===-1?Cn.pos:Cn.pos===-1?hn:Math.min(hn,Cn.pos),Jn=Math.max(Jn,Cn.end)}return e.createRange(hn,Jn)}function Sn(ge){var hn=se.getNodeCheckFlags(ge),Jn=hn&262144,ue=hn&524288,rn=(Y&64)!==0||Jn&&ue&&(Y&512)!==0,Cn=!rn&&(Y&4096)===0&&(!se.isDeclarationWithCollidingName(ge)||ue&&!Jn&&(Y&(2048|4096))===0);return Cn}function Kn(ge){var hn=ge.name;if(e.isBindingPattern(hn))return Xe(ge);if(!ge.initializer&&Sn(ge)){var Jn=e.getMutableClone(ge);return Jn.initializer=e.createVoidZero(),Jn}return e.visitEachChild(ge,V,d)}function Xe(ge){var hn=K(32,0),Jn;return e.isBindingPattern(ge.name)?Jn=e.flattenDestructuringBinding(ge,V,d,0,void 0,(hn&32)!==0):Jn=e.visitEachChild(ge,V,d),z(hn,0,0),Jn}function pn(ge){J.labels.set(e.idText(ge.label),!0)}function le(ge){J.labels.set(e.idText(ge.label),!1)}function oe(ge){J&&!J.labels&&(J.labels=e.createMap());var hn=e.unwrapInnermostStatementOfLabel(ge,J&&pn);return e.isIterationStatement(hn,!1)?kn(hn,ge):e.restoreEnclosingLabel(e.visitNode(hn,V,e.isStatement,e.liftToBlock),ge,J&&le)}function kn(ge,hn){switch(ge.kind){case 227:case 228:return ye(ge,hn);case 229:return mn(ge,hn);case 230:return un(ge,hn);case 231:return Mn(ge,hn)}}function yn(ge,hn,Jn,ue,rn){var Cn=K(ge,hn),Zn=_t(Jn,ue,Cn,rn);return z(Cn,0,0),Zn}function ye(ge,hn){return yn(0,1280,ge,hn)}function mn(ge,hn){return yn(5056,3328,ge,hn)}function un(ge,hn){return yn(3008,5376,ge,hn)}function Mn(ge,hn){return yn(3008,5376,ge,hn,re.downlevelIteration?dt:ut)}function tt(ge,hn,Jn){var ue=[],rn=ge.initializer;if(e.isVariableDeclarationList(rn)){ge.initializer.flags&3&&Pt();var Cn=e.firstOrUndefined(rn.declarations);if(Cn&&e.isBindingPattern(Cn.name)){var Zn=e.flattenDestructuringBinding(Cn,V,d,0,hn),lt=e.setTextRange(e.createVariableDeclarationList(Zn),ge.initializer);e.setOriginalNode(lt,ge.initializer),e.setSourceMapRange(lt,e.createRange(Zn[0].pos,e.last(Zn).end)),ue.push(e.createVariableStatement(void 0,lt))}else ue.push(e.setTextRange(e.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(Cn?Cn.name:e.createTempVariable(void 0),void 0,hn)]),e.moveRangePos(rn,-1)),rn)),e.moveRangeEnd(rn,-1)))}else{var Rt=e.createAssignment(rn,hn);e.isDestructuringAssignment(Rt)?(e.aggregateTransformFlags(Rt),ue.push(e.createExpressionStatement(Te(Rt,!1)))):(Rt.end=rn.end,ue.push(e.setTextRange(e.createExpressionStatement(e.visitNode(Rt,V,e.isExpression)),e.moveRangeEnd(rn,-1))))}if(Jn)return Vn(e.addRange(ue,Jn));var an=e.visitNode(ge.statement,V,e.isStatement,e.liftToBlock);return e.isBlock(an)?e.updateBlock(an,e.setTextRange(e.createNodeArray(e.concatenate(ue,an.statements)),an.statements)):(ue.push(an),Vn(ue))}function Vn(ge){return e.setEmitFlags(e.createBlock(e.createNodeArray(ge),!0),48|384)}function ut(ge,hn,Jn){var ue=e.visitNode(ge.expression,V,e.isExpression),rn=e.createLoopVariable(),Cn=e.isIdentifier(ue)?e.getGeneratedNameForNode(ue):e.createTempVariable(void 0);e.setEmitFlags(ue,48|e.getEmitFlags(ue));var Zn=e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(rn,void 0,e.createLiteral(0)),e.moveRangePos(ge.expression,-1)),e.setTextRange(e.createVariableDeclaration(Cn,void 0,ue),ge.expression)]),ge.expression),2097152),e.setTextRange(e.createLessThan(rn,e.createPropertyAccess(Cn,"length")),ge.expression),e.setTextRange(e.createPostfixIncrement(rn),ge.expression),tt(ge,e.createElementAccess(Cn,rn),Jn)),ge);return e.setEmitFlags(Zn,256),e.setTextRange(Zn,ge),e.restoreEnclosingLabel(Zn,hn,J&&le)}function dt(ge,hn,Jn,ue){var rn=e.visitNode(ge.expression,V,e.isExpression),Cn=e.isIdentifier(rn)?e.getGeneratedNameForNode(rn):e.createTempVariable(void 0),Zn=e.isIdentifier(rn)?e.getGeneratedNameForNode(Cn):e.createTempVariable(void 0),lt=e.createUniqueName("e"),Rt=e.getGeneratedNameForNode(lt),an=e.createTempVariable(void 0),Dr=e.createValuesHelper(d,rn,ge.expression),da=e.createCall(e.createPropertyAccess(Cn,"next"),void 0,[]);_e(lt),_e(an);var Ha=ue&1024?e.inlineExpressions([e.createAssignment(lt,e.createVoidZero()),Dr]):Dr,to=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(Cn,void 0,Ha),ge.expression),e.createVariableDeclaration(Zn,void 0,da)]),ge.expression),2097152),e.createLogicalNot(e.createPropertyAccess(Zn,"done")),e.createAssignment(Zn,da),tt(ge,e.createPropertyAccess(Zn,"value"),Jn)),ge),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(to,hn,J&&le)]),e.createCatchClause(e.createVariableDeclaration(Rt),e.setEmitFlags(e.createBlock([e.createExpressionStatement(e.createAssignment(lt,e.createObjectLiteral([e.createPropertyAssignment("error",Rt)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(Zn,e.createLogicalNot(e.createPropertyAccess(Zn,"done"))),e.createAssignment(an,e.createPropertyAccess(Cn,"return"))),e.createExpressionStatement(e.createFunctionCall(an,Cn,[]))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(lt,e.createThrow(e.createPropertyAccess(lt,"error"))),1)]),1))]))}function ot(ge){for(var hn=ge.properties,Jn=hn.length,ue=Jn,rn=Jn,Cn=0;Cn<Jn;Cn++){var Zn=hn[Cn];if(Zn.transformFlags&131072&&Y&4&&Cn<rn&&(rn=Cn),Zn.name.kind===153){ue=Cn;break}}if(ue!==Jn){rn<ue&&(ue=rn);var lt=e.createTempVariable(_e),Rt=[],an=e.createAssignment(lt,e.setEmitFlags(e.createObjectLiteral(e.visitNodes(hn,V,e.isObjectLiteralElementLike,0,ue),ge.multiLine),65536));return ge.multiLine&&e.startOnNewLine(an),Rt.push(an),tr(Rt,ge,lt,ue),Rt.push(ge.multiLine?e.startOnNewLine(e.getMutableClone(lt)):lt),e.inlineExpressions(Rt)}return e.visitEachChild(ge,V,d)}function ct(ge){return(se.getNodeCheckFlags(ge)&131072)!==0}function wt(ge){return e.isForStatement(ge)&&!!ge.initializer&&ct(ge.initializer)}function st(ge){return e.isForStatement(ge)&&!!ge.condition&&ct(ge.condition)}function qn(ge){return e.isForStatement(ge)&&!!ge.incrementor&&ct(ge.incrementor)}function Ie(ge){return De(ge)||wt(ge)}function De(ge){return(se.getNodeCheckFlags(ge)&65536)!==0}function _n(ge,hn){ge.hoistedLocalVariables||(ge.hoistedLocalVariables=[]),Jn(hn.name);function Jn(ue){if(ue.kind===75)ge.hoistedLocalVariables.push(ue);else for(var rn=0,Cn=ue.elements;rn<Cn.length;rn++){var Zn=Cn[rn];e.isOmittedExpression(Zn)||Jn(Zn.name)}}}function _t(ge,hn,Jn,ue){if(!Ie(ge)){var rn=void 0;J&&(rn=J.allowedNonLabeledJumps,J.allowedNonLabeledJumps=2|4);var Cn=ue?ue(ge,hn,void 0,Jn):e.restoreEnclosingLabel(e.visitEachChild(ge,V,d),hn,J&&le);return J&&(J.allowedNonLabeledJumps=rn),Cn}var Zn=gt(ge),lt=[],Rt=J;J=Zn;var an=wt(ge)?jn(ge,Zn):void 0,Dr=De(ge)?Ut(ge,Zn,Rt):void 0;J=Rt,an&&lt.push(an.functionDeclaration),Dr&&lt.push(Dr.functionDeclaration),ba(lt,Zn,Rt),an&&lt.push(yt(an.functionName,an.containsYield));var da;if(Dr)if(ue)da=ue(ge,hn,Dr.part,Jn);else{var Ha=It(ge,an,e.createBlock(Dr.part,!0));e.aggregateTransformFlags(Ha),da=e.restoreEnclosingLabel(Ha,hn,J&&le)}else{var to=It(ge,an,e.visitNode(ge.statement,V,e.isStatement,e.liftToBlock));e.aggregateTransformFlags(to),da=e.restoreEnclosingLabel(to,hn,J&&le)}return lt.push(da),lt}function It(ge,hn,Jn){switch(ge.kind){case 229:return Ht(ge,hn,Jn);case 230:return vr(ge,Jn);case 231:return nr(ge,Jn);case 227:return Qr(ge,Jn);case 228:return Wr(ge,Jn);default:return e.Debug.failBadSyntaxKind(ge,"IterationStatement expected")}}function Ht(ge,hn,Jn){var ue=ge.condition&&ct(ge.condition),rn=ue||ge.incrementor&&ct(ge.incrementor);return e.updateFor(ge,e.visitNode(hn?hn.part:ge.initializer,V,e.isForInitializer),e.visitNode(ue?void 0:ge.condition,V,e.isExpression),e.visitNode(rn?void 0:ge.incrementor,V,e.isExpression),Jn)}function nr(ge,hn){return e.updateForOf(ge,void 0,e.visitNode(ge.initializer,V,e.isForInitializer),e.visitNode(ge.expression,V,e.isExpression),hn)}function vr(ge,hn){return e.updateForIn(ge,e.visitNode(ge.initializer,V,e.isForInitializer),e.visitNode(ge.expression,V,e.isExpression),hn)}function Qr(ge,hn){return e.updateDo(ge,hn,e.visitNode(ge.expression,V,e.isExpression))}function Wr(ge,hn){return e.updateWhile(ge,e.visitNode(ge.expression,V,e.isExpression),hn)}function gt(ge){var hn;switch(ge.kind){case 229:case 230:case 231:var Jn=ge.initializer;Jn&&Jn.kind===242&&(hn=Jn);break}var ue=[],rn=[];if(hn&&e.getCombinedNodeFlags(hn)&3)for(var Cn=wt(ge),Zn=0,lt=hn.declarations;Zn<lt.length;Zn++){var Rt=lt[Zn];nt(ge,Rt,ue,rn,Cn)}var an={loopParameters:ue,loopOutParameters:rn};return J&&(J.argumentsName&&(an.argumentsName=J.argumentsName),J.thisName&&(an.thisName=J.thisName),J.hoistedLocalVariables&&(an.hoistedLocalVariables=J.hoistedLocalVariables)),an}function ba(ge,hn,Jn){var ue;if(hn.argumentsName&&(Jn?Jn.argumentsName=hn.argumentsName:(ue||(ue=[])).push(e.createVariableDeclaration(hn.argumentsName,void 0,e.createIdentifier("arguments")))),hn.thisName&&(Jn?Jn.thisName=hn.thisName:(ue||(ue=[])).push(e.createVariableDeclaration(hn.thisName,void 0,e.createIdentifier("this")))),hn.hoistedLocalVariables)if(Jn)Jn.hoistedLocalVariables=hn.hoistedLocalVariables;else{ue||(ue=[]);for(var rn=0,Cn=hn.hoistedLocalVariables;rn<Cn.length;rn++){var Zn=Cn[rn];ue.push(e.createVariableDeclaration(Zn))}}if(hn.loopOutParameters.length){ue||(ue=[]);for(var lt=0,Rt=hn.loopOutParameters;lt<Rt.length;lt++){var an=Rt[lt];ue.push(e.createVariableDeclaration(an.outParamName))}}hn.conditionVariable&&(ue||(ue=[]),ue.push(e.createVariableDeclaration(hn.conditionVariable,void 0,e.createFalse()))),ue&&ge.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(ue)))}function kt(ge){return e.createVariableDeclaration(ge.originalName,void 0,ge.outParamName)}function jn(ge,hn){var Jn=e.createUniqueName("_loop_init"),ue=(ge.initializer.transformFlags&131072)!==0,rn=0;hn.containsLexicalThis&&(rn|=8),ue&&Y&4&&(rn|=262144);var Cn=[];Cn.push(e.createVariableStatement(void 0,ge.initializer)),Tt(hn.loopOutParameters,2,1,Cn);var Zn=e.createVariableStatement(void 0,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(Jn,void 0,e.setEmitFlags(e.createFunctionExpression(void 0,ue?e.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(e.createBlock(Cn,!0),V,e.isBlock)),rn))]),2097152)),lt=e.createVariableDeclarationList(e.map(hn.loopOutParameters,kt));return{functionName:Jn,containsYield:ue,functionDeclaration:Zn,part:lt}}function Ut(ge,hn,Jn){var ue=e.createUniqueName("_loop");H();var rn=e.visitNode(ge.statement,V,e.isStatement,e.liftToBlock),Cn=I(),Zn=[];(st(ge)||qn(ge))&&(hn.conditionVariable=e.createUniqueName("inc"),Zn.push(e.createIf(hn.conditionVariable,e.createStatement(e.visitNode(ge.incrementor,V,e.isExpression)),e.createStatement(e.createAssignment(hn.conditionVariable,e.createTrue())))),st(ge)&&Zn.push(e.createIf(e.createPrefix(53,e.visitNode(ge.condition,V,e.isExpression)),e.visitNode(e.createBreak(),V,e.isStatement)))),e.isBlock(rn)?e.addRange(Zn,rn.statements):Zn.push(rn),Tt(hn.loopOutParameters,1,1,Zn),e.insertStatementsAfterStandardPrologue(Zn,Cn);var lt=e.createBlock(Zn,!0);e.isBlock(rn)&&e.setOriginalNode(lt,rn);var Rt=(ge.statement.transformFlags&131072)!==0,an=0;hn.containsLexicalThis&&(an|=8),Rt&&(Y&4)!==0&&(an|=262144);var Dr=e.createVariableStatement(void 0,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(ue,void 0,e.setEmitFlags(e.createFunctionExpression(void 0,Rt?e.createToken(41):void 0,void 0,void 0,hn.loopParameters,void 0,lt),an))]),2097152)),da=vt(ue,hn,Jn,Rt);return{functionName:ue,containsYield:Rt,functionDeclaration:Dr,part:da}}function ft(ge,hn){var Jn=hn===0?ge.outParamName:ge.originalName,ue=hn===0?ge.originalName:ge.outParamName;return e.createBinary(ue,62,Jn)}function Tt(ge,hn,Jn,ue){for(var rn=0,Cn=ge;rn<Cn.length;rn++){var Zn=Cn[rn];Zn.flags&hn&&ue.push(e.createExpressionStatement(ft(Zn,Jn)))}}function yt(ge,hn){var Jn=e.createCall(ge,void 0,[]),ue=hn?e.createYield(e.createToken(41),e.setEmitFlags(Jn,8388608)):Jn;return e.createStatement(ue)}function vt(ge,hn,Jn,ue){var rn=[],Cn=!(hn.nonLocalJumps&~4)&&!hn.labeledNonLocalBreaks&&!hn.labeledNonLocalContinues,Zn=e.createCall(ge,void 0,e.map(hn.loopParameters,function(Ha){return Ha.name})),lt=ue?e.createYield(e.createToken(41),e.setEmitFlags(Zn,8388608)):Zn;if(Cn)rn.push(e.createExpressionStatement(lt)),Tt(hn.loopOutParameters,1,0,rn);else{var Rt=e.createUniqueName("state"),an=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(Rt,void 0,lt)]));if(rn.push(an),Tt(hn.loopOutParameters,1,0,rn),hn.nonLocalJumps&8){var Dr=void 0;Jn?(Jn.nonLocalJumps|=8,Dr=e.createReturn(Rt)):Dr=e.createReturn(e.createPropertyAccess(Rt,"value")),rn.push(e.createIf(e.createBinary(e.createTypeOf(Rt),36,e.createLiteral("object")),Dr))}if(hn.nonLocalJumps&2&&rn.push(e.createIf(e.createBinary(Rt,36,e.createLiteral("break")),e.createBreak())),hn.labeledNonLocalBreaks||hn.labeledNonLocalContinues){var da=[];Rn(hn.labeledNonLocalBreaks,!0,Rt,Jn,da),Rn(hn.labeledNonLocalContinues,!1,Rt,Jn,da),rn.push(e.createSwitch(Rt,e.createCaseBlock(da)))}}return rn}function Ke(ge,hn,Jn,ue){hn?(ge.labeledNonLocalBreaks||(ge.labeledNonLocalBreaks=e.createMap()),ge.labeledNonLocalBreaks.set(Jn,ue)):(ge.labeledNonLocalContinues||(ge.labeledNonLocalContinues=e.createMap()),ge.labeledNonLocalContinues.set(Jn,ue))}function Rn(ge,hn,Jn,ue,rn){if(!ge)return;ge.forEach(function(Cn,Zn){var lt=[];if(!ue||ue.labels&&ue.labels.get(Zn)){var Rt=e.createIdentifier(Zn);lt.push(hn?e.createBreak(Rt):e.createContinue(Rt))}else Ke(ue,hn,Zn,Cn),lt.push(e.createReturn(Jn));rn.push(e.createCaseClause(e.createLiteral(Cn),lt))})}function nt(ge,hn,Jn,ue,rn){var Cn=hn.name;if(e.isBindingPattern(Cn))for(var Zn=0,lt=Cn.elements;Zn<lt.length;Zn++){var Rt=lt[Zn];e.isOmittedExpression(Rt)||nt(ge,Rt,Jn,ue,rn)}else{Jn.push(e.createParameter(void 0,void 0,void 0,Cn));var an=se.getNodeCheckFlags(hn);if(an&4194304||rn){var Dr=e.createUniqueName("out_"+e.idText(Cn)),da=0;an&4194304&&(da|=1),e.isForStatement(ge)&&ge.initializer&&se.isBindingCapturedByNode(ge.initializer,hn)&&(da|=2),ue.push({flags:da,originalName:Cn,outParamName:Dr})}}}function tr(ge,hn,Jn,ue){for(var rn=hn.properties,Cn=rn.length,Zn=ue;Zn<Cn;Zn++){var lt=rn[Zn];switch(lt.kind){case 162:case 163:var Rt=e.getAllAccessorDeclarations(hn.properties,lt);lt===Rt.firstAccessor&&ge.push(cn(Jn,Rt,hn,!!hn.multiLine));break;case 160:ge.push(ai(lt,Jn,hn,hn.multiLine));break;case 279:ge.push(xa(lt,Jn,hn.multiLine));break;case 280:ge.push(Ba(lt,Jn,hn.multiLine));break;default:e.Debug.failBadSyntaxKind(hn);break}}}function xa(ge,hn,Jn){var ue=e.createAssignment(e.createMemberAccessForPropertyName(hn,e.visitNode(ge.name,V,e.isPropertyName)),e.visitNode(ge.initializer,V,e.isExpression));return e.setTextRange(ue,ge),Jn&&e.startOnNewLine(ue),ue}function Ba(ge,hn,Jn){var ue=e.createAssignment(e.createMemberAccessForPropertyName(hn,e.visitNode(ge.name,V,e.isPropertyName)),e.getSynthesizedClone(ge.name));return e.setTextRange(ue,ge),Jn&&e.startOnNewLine(ue),ue}function ai(ge,hn,Jn,ue){var rn=e.createAssignment(e.createMemberAccessForPropertyName(hn,e.visitNode(ge.name,V,e.isPropertyName)),ke(ge,ge,void 0,Jn));return e.setTextRange(rn,ge),ue&&e.startOnNewLine(rn),rn}function wi(ge){var hn=K(7104,0),Jn;if(e.Debug.assert(!!ge.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(ge.variableDeclaration.name)){var ue=e.createTempVariable(void 0),rn=e.createVariableDeclaration(ue);e.setTextRange(rn,ge.variableDeclaration);var Cn=e.flattenDestructuringBinding(ge.variableDeclaration,V,d,0,ue),Zn=e.createVariableDeclarationList(Cn);e.setTextRange(Zn,ge.variableDeclaration);var lt=e.createVariableStatement(void 0,Zn);Jn=e.updateCatchClause(ge,rn,Ai(ge.block,lt))}else Jn=e.visitEachChild(ge,V,d);return z(hn,0,0),Jn}function Ai(ge,hn){var Jn=e.visitNodes(ge.statements,V,e.isStatement);return e.updateBlock(ge,Or([hn],Jn))}function Ei(ge){e.Debug.assert(!e.isComputedPropertyName(ge.name));var hn=ke(ge,e.moveRangePos(ge,-1),void 0,void 0);return e.setEmitFlags(hn,512|e.getEmitFlags(hn)),e.setTextRange(e.createPropertyAssignment(ge.name,hn),ge)}function Pi(ge){e.Debug.assert(!e.isComputedPropertyName(ge.name));var hn=J;J=void 0;var Jn=K(16286,65),ue,rn=e.visitParameterList(ge.parameters,V,d),Cn=G(ge);return ge.kind===162?ue=e.updateGetAccessor(ge,ge.decorators,ge.modifiers,ge.name,rn,ge.type,Cn):ue=e.updateSetAccessor(ge,ge.decorators,ge.modifiers,ge.name,rn,Cn),z(Jn,49152,0),J=hn,ue}function Xa(ge){return e.setTextRange(e.createPropertyAssignment(ge.name,e.getSynthesizedClone(ge.name)),ge)}function Ia(ge){return e.visitEachChild(ge,V,d)}function ca(ge){return e.visitEachChild(ge,V,d)}function Ti(ge){return e.some(ge.elements,e.isSpreadElement)?Gi(ge.elements,!0,!!ge.multiLine,!!ge.elements.hasTrailingComma):e.visitEachChild(ge,V,d)}function Vo(ge){if(e.getEmitFlags(ge)&33554432)return mo(ge);var hn=e.skipOuterExpressions(ge.expression);return hn.kind===101||e.isSuperProperty(hn)||e.some(ge.arguments,e.isSpreadElement)?uo(ge,!0):e.updateCall(ge,e.visitNode(ge.expression,m,e.isExpression),void 0,e.visitNodes(ge.arguments,V,e.isExpression))}function mo(ge){var hn=e.cast(e.cast(e.skipOuterExpressions(ge.expression),e.isArrowFunction).body,e.isBlock),Jn=function(vs){return e.isVariableStatement(vs)&&!!e.first(vs.declarationList.declarations).initializer},ue=e.visitNodes(hn.statements,V,e.isStatement),rn=e.filter(ue,Jn),Cn=e.filter(ue,function(Rs){return!Jn(Rs)}),Zn=e.cast(e.first(rn),e.isVariableStatement),lt=Zn.declarationList.declarations[0],Rt=e.skipOuterExpressions(lt.initializer),an=e.tryCast(Rt,e.isAssignmentExpression),Dr=e.cast(an?e.skipOuterExpressions(an.right):Rt,e.isCallExpression),da=e.cast(e.skipOuterExpressions(Dr.expression),e.isFunctionExpression),Ha=da.body.statements,to=0,ga=-1,Yo=[];if(an){var Co=e.tryCast(Ha[to],e.isExpressionStatement);Co&&(Yo.push(Co),to++),Yo.push(Ha[to]),to++,Yo.push(e.createExpressionStatement(e.createAssignment(an.left,e.cast(lt.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(Ha,ga));)ga--;return e.addRange(Yo,Ha,to,ga),ga<-1&&e.addRange(Yo,Ha,ga+1),e.addRange(Yo,Cn),e.addRange(Yo,rn,1),e.recreateOuterExpressions(ge.expression,e.recreateOuterExpressions(lt.initializer,e.recreateOuterExpressions(an&&an.right,e.updateCall(Dr,e.recreateOuterExpressions(Dr.expression,e.updateFunctionExpression(da,void 0,void 0,void 0,void 0,da.parameters,void 0,e.updateBlock(da.body,Yo))),void 0,Dr.arguments))))}function Ro(ge){return uo(ge,!1)}function uo(ge,hn){if(ge.transformFlags&4096||ge.expression.kind===101||e.isSuperProperty(e.skipOuterExpressions(ge.expression))){var Jn=e.createCallBinding(ge.expression,_e),ue=Jn.target,rn=Jn.thisArg;ge.expression.kind===101&&e.setEmitFlags(rn,4);var Cn=void 0;if(ge.transformFlags&4096?Cn=e.createFunctionApply(e.visitNode(ue,m,e.isExpression),ge.expression.kind===101?rn:e.visitNode(rn,V,e.isExpression),Gi(ge.arguments,!1,!1,!1)):Cn=e.createFunctionCall(e.visitNode(ue,m,e.isExpression),ge.expression.kind===101?rn:e.visitNode(rn,V,e.isExpression),e.visitNodes(ge.arguments,V,e.isExpression),ge),ge.expression.kind===101){var Zn=e.createLogicalOr(Cn,We());Cn=hn?e.createAssignment(e.createFileLevelUniqueName("_this"),Zn):Zn}return e.setOriginalNode(Cn,ge)}return e.visitEachChild(ge,V,d)}function ui(ge){if(e.some(ge.arguments,e.isSpreadElement)){var hn=e.createCallBinding(e.createPropertyAccess(ge.expression,"bind"),_e),Jn=hn.target,ue=hn.thisArg;return e.createNew(e.createFunctionApply(e.visitNode(Jn,V,e.isExpression),ue,Gi(e.createNodeArray(Or([e.createVoidZero()],ge.arguments)),!1,!1,!1)),void 0,[])}return e.visitEachChild(ge,V,d)}function Gi(ge,hn,Jn,ue){var rn=ge.length,Cn=e.flatten(e.spanMap(ge,bo,function(lt,Rt,an,Dr){return Rt(lt,Jn,ue&&Dr===rn)}));if(re.downlevelIteration){if(Cn.length===1){var Zn=Cn[0];if(ko(Zn,"___spread"))return Cn[0]}return e.createSpreadHelper(d,Cn)}else{if(Cn.length===1){var Zn=Cn[0];if(!hn||Fo(Zn)||ko(Zn,"___spreadArrays"))return Cn[0]}return e.createSpreadArraysHelper(d,Cn)}}function ji(ge){return!e.isOmittedExpression(ge)}function Fo(ge){return e.isArrayLiteralExpression(ge)&&e.every(ge.elements,ji)}function ko(ge,hn){return e.isCallExpression(ge)&&e.isIdentifier(ge.expression)&&e.getEmitFlags(ge.expression)&4096&&ge.expression.escapedText===hn}function bo(ge){return e.isSpreadElement(ge)?Ri:xt}function Ri(ge){return e.map(ge,_r)}function xt(ge,hn,Jn){return e.createArrayLiteral(e.visitNodes(e.createNodeArray(ge,Jn),V,e.isExpression),hn)}function Kt(ge){return e.visitNode(ge.expression,V,e.isExpression)}function _r(ge){return e.visitNode(ge.expression,V,e.isExpression)}function Jr(ge){return e.setTextRange(e.createLiteral(ge.text),ge)}function va(ge){return ge.hasExtendedUnicodeEscape?e.setTextRange(e.createLiteral(ge.text),ge):ge}function Na(ge){return ge.numericLiteralFlags&384?e.setTextRange(e.createNumericLiteral(ge.text),ge):ge}function qr(ge){var hn=e.visitNode(ge.tag,V,e.isExpression),Jn=[void 0],ue=[],rn=[],Cn=ge.template;if(e.isNoSubstitutionTemplateLiteral(Cn))ue.push(e.createLiteral(Cn.text)),rn.push(hi(Cn));else{ue.push(e.createLiteral(Cn.head.text)),rn.push(hi(Cn.head));for(var Zn=0,lt=Cn.templateSpans;Zn<lt.length;Zn++){var Rt=lt[Zn];ue.push(e.createLiteral(Rt.literal.text)),rn.push(hi(Rt.literal)),Jn.push(e.visitNode(Rt.expression,V,e.isExpression))}}var an=ie(d,e.createArrayLiteral(ue),e.createArrayLiteral(rn));if(e.isExternalModule(P)){var Dr=e.createUniqueName("templateObject");$(Dr),Jn[0]=e.createLogicalOr(Dr,e.createAssignment(Dr,an))}else Jn[0]=an;return e.createCall(hn,void 0,Jn)}function hi(ge){var hn=ge.rawText;if(hn===void 0){hn=e.getSourceTextOfNodeFromSourceFile(P,ge);var Jn=ge.kind===14||ge.kind===17;hn=hn.substring(1,hn.length-(Jn?1:2))}return hn=hn.replace(/\r\n?/g,`
`),e.setTextRange(e.createLiteral(hn),ge)}function Ii(ge){var hn=[];ua(hn,ge),tn(hn,ge);var Jn=e.reduceLeft(hn,e.createAdd);return e.nodeIsSynthesized(Jn)&&(Jn.pos=ge.pos,Jn.end=ge.end),Jn}function gi(ge){return e.Debug.assert(ge.templateSpans.length!==0),ge.head.text.length!==0||ge.templateSpans[0].literal.text.length===0}function ua(ge,hn){if(!gi(hn))return;ge.push(e.createLiteral(hn.head.text))}function tn(ge,hn){for(var Jn=0,ue=hn.templateSpans;Jn<ue.length;Jn++){var rn=ue[Jn];ge.push(e.visitNode(rn.expression,V,e.isExpression)),rn.literal.text.length!==0&&ge.push(e.createLiteral(rn.literal.text))}}function vn(ge){return Y&8&&!ge?e.createPropertyAccess(e.createFileLevelUniqueName("_super"),"prototype"):e.createFileLevelUniqueName("_super")}function Ln(ge){return ge.keywordToken===98&&ge.name.escapedText==="target"?(Y|=16384,e.createFileLevelUniqueName("_newTarget")):ge}function Bn(ge,hn,Jn){if(fe&1&&e.isFunctionLike(hn)){var ue=K(16286,e.getEmitFlags(hn)&8?65|16:65);k(ge,hn,Jn),z(ue,0,0);return}k(ge,hn,Jn)}function Pt(){(fe&2)===0&&(fe|=2,d.enableSubstitution(75))}function rr(){(fe&1)===0&&(fe|=1,d.enableSubstitution(103),d.enableEmitNotification(161),d.enableEmitNotification(160),d.enableEmitNotification(162),d.enableEmitNotification(163),d.enableEmitNotification(201),d.enableEmitNotification(200),d.enableEmitNotification(243))}function cr(ge,hn){return hn=w(ge,hn),ge===1?Oa(hn):e.isIdentifier(hn)?Cr(hn):hn}function Cr(ge){if(fe&2&&!e.isInternalName(ge)){var hn=e.getParseTreeNode(ge,e.isIdentifier);if(hn&&Ya(hn))return e.setTextRange(e.getGeneratedNameForNode(hn),ge)}return ge}function Ya(ge){switch(ge.parent.kind){case 190:case 244:case 247:case 241:return ge.parent.name===ge&&se.isDeclarationWithCollidingName(ge.parent)}return!1}function Oa(ge){switch(ge.kind){case 75:return Ni(ge);case 103:return _i(ge)}return ge}function Ni(ge){if(fe&2&&!e.isInternalName(ge)){var hn=se.getReferencedDeclarationWithCollidingName(ge);if(hn&&!(e.isClassLike(hn)&&ii(hn,ge)))return e.setTextRange(e.getGeneratedNameForNode(e.getNameOfDeclaration(hn)),ge)}return ge}function ii(ge,hn){var Jn=e.getParseTreeNode(hn);if(!Jn||Jn===ge||Jn.end<=ge.pos||Jn.pos>=ge.end)return!1;for(var ue=e.getEnclosingBlockScopeContainer(ge);Jn;){if(Jn===ue||Jn===ge)return!1;if(e.isClassElement(Jn)&&Jn.parent===ge)return!0;Jn=Jn.parent}return!1}function _i(ge){return fe&1&&Y&16?e.setTextRange(e.createFileLevelUniqueName("_this"),ge):ge}function Ye(ge,hn){return e.hasModifier(hn,32)?e.getInternalName(ge):e.createPropertyAccess(e.getInternalName(ge),"prototype")}function zn(ge,hn){if(!ge||!hn)return!1;if(e.some(ge.parameters))return!1;var Jn=e.firstOrUndefined(ge.body.statements);if(!Jn||!e.nodeIsSynthesized(Jn)||Jn.kind!==225)return!1;var ue=Jn.expression;if(!e.nodeIsSynthesized(ue)||ue.kind!==195)return!1;var rn=ue.expression;if(!e.nodeIsSynthesized(rn)||rn.kind!==101)return!1;var Cn=e.singleOrUndefined(ue.arguments);if(!Cn||!e.nodeIsSynthesized(Cn)||Cn.kind!==212)return!1;var Zn=Cn.expression;return e.isIdentifier(Zn)&&Zn.escapedText==="arguments"}}e.transformES2015=He;function ve(d,H){return d.requestEmitHelper(e.extendsHelper),e.createCall(e.getUnscopedHelperName("__extends"),void 0,[H,e.createFileLevelUniqueName("_super")])}function ie(d,H,Pe){return d.requestEmitHelper(e.templateObjectHelper),e.createCall(e.getUnscopedHelperName("__makeTemplateObject"),void 0,[H,Pe])}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 (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
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;
};`}})(ln||(ln={}));var ln;(function(e){function o(F){var qe=F.getCompilerOptions(),Se,Fe;(qe.jsx===1||qe.jsx===3)&&(Se=F.onEmitNode,F.onEmitNode=ie,F.enableEmitNotification(266),F.enableEmitNotification(267),F.enableEmitNotification(265),Fe=[]);var He=F.onSubstituteNode;return F.onSubstituteNode=d,F.enableSubstitution(193),F.enableSubstitution(279),e.chainBundle(ve);function ve(_e){return _e}function ie(_e,re,se){switch(re.kind){case 266:case 267:case 265:var w=re.tagName;Fe[e.getOriginalNodeId(w)]=!0;break}Se(_e,re,se)}function d(_e,re){return re.id&&Fe&&Fe[re.id]?He(_e,re):(re=He(_e,re),e.isPropertyAccessExpression(re)?H(re):e.isPropertyAssignment(re)?Pe(re):re)}function H(_e){var re=I(_e.name);return re?e.setTextRange(e.createElementAccess(_e.expression,re),_e):_e}function Pe(_e){var re=e.isIdentifier(_e.name)&&I(_e.name);return re?e.updatePropertyAssignment(_e,re,_e.initializer):_e}function I(_e){var re=_e.originalKeywordKind||(e.nodeIsSynthesized(_e)?e.stringToToken(e.idText(_e)):void 0);return re!==void 0&&re>=76&&re<=111?e.setTextRange(e.createLiteral(_e),_e):void 0}}e.transformES5=o})(ln||(ln={}));var ln;(function(e){var o;(function(d){d[d.Nop=0]="Nop",d[d.Statement=1]="Statement",d[d.Assign=2]="Assign",d[d.Break=3]="Break",d[d.BreakWhenTrue=4]="BreakWhenTrue",d[d.BreakWhenFalse=5]="BreakWhenFalse",d[d.Yield=6]="Yield",d[d.YieldStar=7]="YieldStar",d[d.Return=8]="Return",d[d.Throw=9]="Throw",d[d.Endfinally=10]="Endfinally"})(o||(o={}));var F;(function(d){d[d.Open=0]="Open",d[d.Close=1]="Close"})(F||(F={}));var qe;(function(d){d[d.Exception=0]="Exception",d[d.With=1]="With",d[d.Switch=2]="Switch",d[d.Loop=3]="Loop",d[d.Labeled=4]="Labeled"})(qe||(qe={}));var Se;(function(d){d[d.Try=0]="Try",d[d.Catch=1]="Catch",d[d.Finally=2]="Finally",d[d.Done=3]="Done"})(Se||(Se={}));var Fe;(function(d){d[d.Next=0]="Next",d[d.Throw=1]="Throw",d[d.Return=2]="Return",d[d.Break=3]="Break",d[d.Yield=4]="Yield",d[d.YieldStar=5]="YieldStar",d[d.Catch=6]="Catch",d[d.Endfinally=7]="Endfinally"})(Fe||(Fe={}));function He(d){switch(d){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function ve(d){var H=d.resumeLexicalEnvironment,Pe=d.endLexicalEnvironment,I=d.hoistFunctionDeclaration,_e=d.hoistVariableDeclaration,re=d.getCompilerOptions(),se=e.getEmitScriptTarget(re),w=d.getEmitResolver(),k=d.onSubstituteNode;d.onSubstituteNode=Ie;var P,h,Y,ne,$,J,fe,R,K,z,Ee=1,B,V,m,y,L=0,C=0,_,b,D,T,Q,N,X,pe;return e.chainBundle(S);function S(Ye){if(Ye.isDeclarationFile||(Ye.transformFlags&256)===0)return Ye;var zn=e.visitEachChild(Ye,v,d);return e.addEmitHelpers(zn,d.readEmitHelpers()),zn}function v(Ye){var zn=Ye.transformFlags;return ne?U(Ye):Y?de(Ye):e.isFunctionLikeDeclaration(Ye)&&Ye.asteriskToken?Z(Ye):zn&256?e.visitEachChild(Ye,v,d):Ye}function U(Ye){switch(Ye.kind){case 227:return bn(Ye);case 228:return Kn(Ye);case 236:return ut(Ye);case 237:return ot(Ye);default:return de(Ye)}}function de(Ye){switch(Ye.kind){case 243:return Re(Ye);case 200:return Ae(Ye);case 162:case 163:return We(Ye);case 224:return Ge(Ye);case 229:return pn(Ye);case 230:return oe(Ye);case 233:return mn(Ye);case 232:return yn(Ye);case 234:return Mn(Ye);default:return Ye.transformFlags&131072?Ce(Ye):Ye.transformFlags&(256|262144)?e.visitEachChild(Ye,v,d):Ye}}function Ce(Ye){switch(Ye.kind){case 208:return x(Ye);case 209:return ae(Ye);case 211:return ce(Ye);case 191:return Le(Ye);case 192:return Ze(Ye);case 194:return Ue(Ye);case 195:return cn(Ye);case 196:return $e(Ye);default:return e.visitEachChild(Ye,v,d)}}function Z(Ye){switch(Ye.kind){case 243:return Re(Ye);case 200:return Ae(Ye);default:return e.Debug.failBadSyntaxKind(Ye)}}function Re(Ye){if(Ye.asteriskToken)Ye=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,Ye.modifiers,void 0,Ye.name,void 0,e.visitParameterList(Ye.parameters,v,d),void 0,be(Ye.body)),Ye),Ye);else{var zn=Y,ge=ne;Y=!1,ne=!1,Ye=e.visitEachChild(Ye,v,d),Y=zn,ne=ge}if(Y){I(Ye);return}else return Ye}function Ae(Ye){if(Ye.asteriskToken)Ye=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,Ye.name,void 0,e.visitParameterList(Ye.parameters,v,d),void 0,be(Ye.body)),Ye),Ye);else{var zn=Y,ge=ne;Y=!1,ne=!1,Ye=e.visitEachChild(Ye,v,d),Y=zn,ne=ge}return Ye}function We(Ye){var zn=Y,ge=ne;return Y=!1,ne=!1,Ye=e.visitEachChild(Ye,v,d),Y=zn,ne=ge,Ye}function be(Ye){var zn=[],ge=Y,hn=ne,Jn=$,ue=J,rn=fe,Cn=R,Zn=K,lt=z,Rt=Ee,an=B,Dr=V,da=m,Ha=y;Y=!0,ne=!1,$=void 0,J=void 0,fe=void 0,R=void 0,K=void 0,z=void 0,Ee=1,B=void 0,V=void 0,m=void 0,y=e.createTempVariable(void 0),H();var to=e.addPrologue(zn,Ye.statements,!1,v);sn(Ye.statements,to);var ga=va();return e.insertStatementsAfterStandardPrologue(zn,Pe()),zn.push(e.createReturn(ga)),Y=ge,ne=hn,$=Jn,J=ue,fe=rn,R=Cn,K=Zn,z=lt,Ee=Rt,B=an,V=Dr,m=da,y=Ha,e.setTextRange(e.createBlock(zn,Ye.multiLine),Ye)}function Ge(Ye){if(Ye.transformFlags&131072){ee(Ye.declarationList);return}else{if(e.getEmitFlags(Ye)&1048576)return Ye;for(var zn=0,ge=Ye.declarationList.declarations;zn<ge.length;zn++){var hn=ge[zn];_e(hn.name)}var Jn=e.getInitializedVariables(Ye.declarationList);return Jn.length===0?void 0:e.setSourceMapRange(e.createExpressionStatement(e.inlineExpressions(e.map(Jn,Te))),Ye)}}function x(Ye){var zn=e.getExpressionAssociativity(Ye);switch(zn){case 0:return en(Ye);case 1:return a(Ye);default:return e.Debug.assertNever(zn)}}function j(Ye){return Ye>=63&&Ye<=74}function Oe(Ye){switch(Ye){case 63:return 39;case 64:return 40;case 65:return 41;case 66:return 42;case 67:return 43;case 68:return 44;case 69:return 47;case 70:return 48;case 71:return 49;case 72:return 50;case 73:return 51;case 74:return 52}}function a(Ye){var zn=Ye.left,ge=Ye.right;if(st(ge)){var hn=void 0;switch(zn.kind){case 193:hn=e.updatePropertyAccess(zn,_t(e.visitNode(zn.expression,v,e.isLeftHandSideExpression)),zn.name);break;case 194:hn=e.updateElementAccess(zn,_t(e.visitNode(zn.expression,v,e.isLeftHandSideExpression)),_t(e.visitNode(zn.argumentExpression,v,e.isExpression)));break;default:hn=e.visitNode(zn,v,e.isExpression);break}var Jn=Ye.operatorToken.kind;return j(Jn)?e.setTextRange(e.createAssignment(hn,e.setTextRange(e.createBinary(_t(hn),Oe(Jn),e.visitNode(ge,v,e.isExpression)),Ye)),Ye):e.updateBinary(Ye,hn,e.visitNode(ge,v,e.isExpression))}return e.visitEachChild(Ye,v,d)}function en(Ye){if(st(Ye.right)){if(e.isLogicalOperator(Ye.operatorToken.kind))return Pn(Ye);if(Ye.operatorToken.kind===27)return Xn(Ye);var zn=e.getMutableClone(Ye);return zn.left=_t(e.visitNode(Ye.left,v,e.isExpression)),zn.right=e.visitNode(Ye.right,v,e.isExpression),zn}return e.visitEachChild(Ye,v,d)}function Pn(Ye){var zn=Ht(),ge=It();return Gi(ge,e.visitNode(Ye.left,v,e.isExpression),Ye.left),Ye.operatorToken.kind===55?ko(zn,ge,Ye.left):Fo(zn,ge,Ye.left),Gi(ge,e.visitNode(Ye.right,v,e.isExpression),Ye.right),nr(zn),ge}function Xn(Ye){var zn=[];return ge(Ye.left),ge(Ye.right),e.inlineExpressions(zn);function ge(hn){e.isBinaryExpression(hn)&&hn.operatorToken.kind===27?(ge(hn.left),ge(hn.right)):(st(hn)&&zn.length>0&&(Jr(1,[e.createExpressionStatement(e.inlineExpressions(zn))]),zn=[]),zn.push(e.visitNode(hn,v,e.isExpression)))}}function ae(Ye){if(st(Ye.whenTrue)||st(Ye.whenFalse)){var zn=Ht(),ge=Ht(),hn=It();return ko(zn,e.visitNode(Ye.condition,v,e.isExpression),Ye.condition),Gi(hn,e.visitNode(Ye.whenTrue,v,e.isExpression),Ye.whenTrue),ji(ge),nr(zn),Gi(hn,e.visitNode(Ye.whenFalse,v,e.isExpression),Ye.whenFalse),nr(ge),hn}return e.visitEachChild(Ye,v,d)}function ce(Ye){var zn=Ht(),ge=e.visitNode(Ye.expression,v,e.isExpression);if(Ye.asteriskToken){var hn=(e.getEmitFlags(Ye.expression)&8388608)===0?e.createValuesHelper(d,ge,Ye):ge;bo(hn,Ye)}else Ri(ge,Ye);return nr(zn),Ro(Ye)}function Le(Ye){return Je(Ye.elements,void 0,void 0,Ye.multiLine)}function Je(Ye,zn,ge,hn){var Jn=qn(Ye),ue;if(Jn>0){ue=It();var rn=e.visitNodes(Ye,v,e.isExpression,0,Jn);Gi(ue,e.createArrayLiteral(zn?Or([zn],rn):rn)),zn=void 0}var Cn=e.reduceLeft(Ye,Zn,[],Jn);return ue?e.createArrayConcat(ue,[e.createArrayLiteral(Cn,hn)]):e.setTextRange(e.createArrayLiteral(zn?Or([zn],Cn):Cn,hn),ge);function Zn(lt,Rt){if(st(Rt)&&lt.length>0){var an=ue!==void 0;ue||(ue=It()),Gi(ue,an?e.createArrayConcat(ue,[e.createArrayLiteral(lt,hn)]):e.createArrayLiteral(zn?Or([zn],lt):lt,hn)),zn=void 0,lt=[]}return lt.push(e.visitNode(Rt,v,e.isExpression)),lt}}function Ze(Ye){var zn=Ye.properties,ge=Ye.multiLine,hn=qn(zn),Jn=It();Gi(Jn,e.createObjectLiteral(e.visitNodes(zn,v,e.isObjectLiteralElementLike,0,hn),ge));var ue=e.reduceLeft(zn,rn,[],hn);return ue.push(ge?e.startOnNewLine(e.getMutableClone(Jn)):Jn),e.inlineExpressions(ue);function rn(Cn,Zn){st(Zn)&&Cn.length>0&&(ui(e.createExpressionStatement(e.inlineExpressions(Cn))),Cn=[]);var lt=e.createExpressionForObjectLiteralElementLike(Ye,Zn,Jn),Rt=e.visitNode(lt,v,e.isExpression);return Rt&&(ge&&e.startOnNewLine(Rt),Cn.push(Rt)),Cn}}function Ue(Ye){if(st(Ye.argumentExpression)){var zn=e.getMutableClone(Ye);return zn.expression=_t(e.visitNode(Ye.expression,v,e.isLeftHandSideExpression)),zn.argumentExpression=e.visitNode(Ye.argumentExpression,v,e.isExpression),zn}return e.visitEachChild(Ye,v,d)}function cn(Ye){if(!e.isImportCall(Ye)&&e.forEach(Ye.arguments,st)){var zn=e.createCallBinding(Ye.expression,_e,se,!0),ge=zn.target,hn=zn.thisArg;return e.setOriginalNode(e.createFunctionApply(_t(e.visitNode(ge,v,e.isLeftHandSideExpression)),hn,Je(Ye.arguments),Ye),Ye)}return e.visitEachChild(Ye,v,d)}function $e(Ye){if(e.forEach(Ye.arguments,st)){var zn=e.createCallBinding(e.createPropertyAccess(Ye.expression,"bind"),_e),ge=zn.target,hn=zn.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(_t(e.visitNode(ge,v,e.isExpression)),hn,Je(Ye.arguments,e.createVoidZero())),void 0,[]),Ye),Ye)}return e.visitEachChild(Ye,v,d)}function sn(Ye,zn){zn===void 0&&(zn=0);for(var ge=Ye.length,hn=zn;hn<ge;hn++)ke(Ye[hn])}function he(Ye){e.isBlock(Ye)?sn(Ye.statements):ke(Ye)}function ke(Ye){var zn=ne;ne||(ne=st(Ye)),G(Ye),ne=zn}function G(Ye){switch(Ye.kind){case 222:return c(Ye);case 225:return O(Ye);case 226:return Ne(Ye);case 227:return ze(Ye);case 228:return Sn(Ye);case 229:return Xe(Ye);case 230:return le(Ye);case 232:return kn(Ye);case 233:return ye(Ye);case 234:return un(Ye);case 235:return tt(Ye);case 236:return Vn(Ye);case 237:return dt(Ye);case 238:return ct(Ye);case 239:return wt(Ye);default:return ui(e.visitNode(Ye,v,e.isStatement))}}function c(Ye){st(Ye)?sn(Ye.statements):ui(e.visitNode(Ye,v,e.isStatement))}function O(Ye){ui(e.visitNode(Ye,v,e.isStatement))}function ee(Ye){for(var zn=0,ge=Ye.declarations;zn<ge.length;zn++){var hn=ge[zn],Jn=e.getSynthesizedClone(hn.name);e.setCommentRange(Jn,hn.name),_e(Jn)}for(var ue=e.getInitializedVariables(Ye),rn=ue.length,Cn=0,Zn=[];Cn<rn;){for(var lt=Cn;lt<rn;lt++){var hn=ue[lt];if(st(hn.initializer)&&Zn.length>0)break;Zn.push(Te(hn))}Zn.length&&(ui(e.createExpressionStatement(e.inlineExpressions(Zn))),Cn+=Zn.length,Zn=[])}return}function Te(Ye){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(Ye.name),Ye.name),e.visitNode(Ye.initializer,v,e.isExpression)),Ye)}function Ne(Ye){if(st(Ye))if(st(Ye.thenStatement)||st(Ye.elseStatement)){var zn=Ht(),ge=Ye.elseStatement?Ht():void 0;ko(Ye.elseStatement?ge:zn,e.visitNode(Ye.expression,v,e.isExpression),Ye.expression),he(Ye.thenStatement),Ye.elseStatement&&(ji(zn),nr(ge),he(Ye.elseStatement)),nr(zn)}else ui(e.visitNode(Ye,v,e.isStatement));else ui(e.visitNode(Ye,v,e.isStatement))}function ze(Ye){if(st(Ye)){var zn=Ht(),ge=Ht();vt(zn),nr(ge),he(Ye.statement),nr(zn),Fo(ge,e.visitNode(Ye.expression,v,e.isExpression)),Ke()}else ui(e.visitNode(Ye,v,e.isStatement))}function bn(Ye){return ne?(yt(),Ye=e.visitEachChild(Ye,v,d),Ke(),Ye):e.visitEachChild(Ye,v,d)}function Sn(Ye){if(st(Ye)){var zn=Ht(),ge=vt(zn);nr(zn),ko(ge,e.visitNode(Ye.expression,v,e.isExpression)),he(Ye.statement),ji(zn),Ke()}else ui(e.visitNode(Ye,v,e.isStatement))}function Kn(Ye){return ne?(yt(),Ye=e.visitEachChild(Ye,v,d),Ke(),Ye):e.visitEachChild(Ye,v,d)}function Xe(Ye){if(st(Ye)){var zn=Ht(),ge=Ht(),hn=vt(ge);if(Ye.initializer){var Jn=Ye.initializer;e.isVariableDeclarationList(Jn)?ee(Jn):ui(e.setTextRange(e.createExpressionStatement(e.visitNode(Jn,v,e.isExpression)),Jn))}nr(zn),Ye.condition&&ko(hn,e.visitNode(Ye.condition,v,e.isExpression)),he(Ye.statement),nr(ge),Ye.incrementor&&ui(e.setTextRange(e.createExpressionStatement(e.visitNode(Ye.incrementor,v,e.isExpression)),Ye.incrementor)),ji(zn),Ke()}else ui(e.visitNode(Ye,v,e.isStatement))}function pn(Ye){ne&&yt();var zn=Ye.initializer;if(zn&&e.isVariableDeclarationList(zn)){for(var ge=0,hn=zn.declarations;ge<hn.length;ge++){var Jn=hn[ge];_e(Jn.name)}var ue=e.getInitializedVariables(zn);Ye=e.updateFor(Ye,ue.length>0?e.inlineExpressions(e.map(ue,Te)):void 0,e.visitNode(Ye.condition,v,e.isExpression),e.visitNode(Ye.incrementor,v,e.isExpression),e.visitNode(Ye.statement,v,e.isStatement,e.liftToBlock))}else Ye=e.visitEachChild(Ye,v,d);return ne&&Ke(),Ye}function le(Ye){if(st(Ye)){var zn=It(),ge=It(),hn=e.createLoopVariable(),Jn=Ye.initializer;_e(hn),Gi(zn,e.createArrayLiteral()),ui(e.createForIn(ge,e.visitNode(Ye.expression,v,e.isExpression),e.createExpressionStatement(e.createCall(e.createPropertyAccess(zn,"push"),void 0,[ge])))),Gi(hn,e.createLiteral(0));var ue=Ht(),rn=Ht(),Cn=vt(rn);nr(ue),ko(Cn,e.createLessThan(hn,e.createPropertyAccess(zn,"length")));var Zn=void 0;if(e.isVariableDeclarationList(Jn)){for(var lt=0,Rt=Jn.declarations;lt<Rt.length;lt++){var an=Rt[lt];_e(an.name)}Zn=e.getSynthesizedClone(Jn.declarations[0].name)}else Zn=e.visitNode(Jn,v,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(Zn));Gi(Zn,e.createElementAccess(zn,hn)),he(Ye.statement),nr(rn),ui(e.createExpressionStatement(e.createPostfixIncrement(hn))),ji(ue),Ke()}else ui(e.visitNode(Ye,v,e.isStatement))}function oe(Ye){ne&&yt();var zn=Ye.initializer;if(e.isVariableDeclarationList(zn)){for(var ge=0,hn=zn.declarations;ge<hn.length;ge++){var Jn=hn[ge];_e(Jn.name)}Ye=e.updateForIn(Ye,zn.declarations[0].name,e.visitNode(Ye.expression,v,e.isExpression),e.visitNode(Ye.statement,v,e.isStatement,e.liftToBlock))}else Ye=e.visitEachChild(Ye,v,d);return ne&&Ke(),Ye}function kn(Ye){var zn=Ia(Ye.label?e.idText(Ye.label):void 0);zn>0?ji(zn,Ye):ui(Ye)}function yn(Ye){if(ne){var zn=Ia(Ye.label&&e.idText(Ye.label));if(zn>0)return Vo(zn,Ye)}return e.visitEachChild(Ye,v,d)}function ye(Ye){var zn=Xa(Ye.label?e.idText(Ye.label):void 0);zn>0?ji(zn,Ye):ui(Ye)}function mn(Ye){if(ne){var zn=Xa(Ye.label&&e.idText(Ye.label));if(zn>0)return Vo(zn,Ye)}return e.visitEachChild(Ye,v,d)}function un(Ye){xt(e.visitNode(Ye.expression,v,e.isExpression),Ye)}function Mn(Ye){return mo(e.visitNode(Ye.expression,v,e.isExpression),Ye)}function tt(Ye){st(Ye)?(ba(_t(e.visitNode(Ye.expression,v,e.isExpression))),he(Ye.statement),kt()):ui(e.visitNode(Ye,v,e.isStatement))}function Vn(Ye){if(st(Ye.caseBlock)){for(var zn=Ye.caseBlock,ge=zn.clauses.length,hn=nt(),Jn=_t(e.visitNode(Ye.expression,v,e.isExpression)),ue=[],rn=-1,Cn=0;Cn<ge;Cn++){var Zn=zn.clauses[Cn];ue.push(Ht()),Zn.kind===276&&rn===-1&&(rn=Cn)}for(var lt=0,Rt=[];lt<ge;){for(var an=0,Cn=lt;Cn<ge;Cn++){var Zn=zn.clauses[Cn];if(Zn.kind===275){if(st(Zn.expression)&&Rt.length>0)break;Rt.push(e.createCaseClause(e.visitNode(Zn.expression,v,e.isExpression),[Vo(ue[Cn],Zn.expression)]))}else an++}Rt.length&&(ui(e.createSwitch(Jn,e.createCaseBlock(Rt))),lt+=Rt.length,Rt=[]),an>0&&(lt+=an,an=0)}rn>=0?ji(ue[rn]):ji(hn);for(var Cn=0;Cn<ge;Cn++)nr(ue[Cn]),sn(zn.clauses[Cn].statements);tr()}else ui(e.visitNode(Ye,v,e.isStatement))}function ut(Ye){return ne&&Rn(),Ye=e.visitEachChild(Ye,v,d),ne&&tr(),Ye}function dt(Ye){st(Ye)?(Ba(e.idText(Ye.label)),he(Ye.statement),ai()):ui(e.visitNode(Ye,v,e.isStatement))}function ot(Ye){return ne&&xa(e.idText(Ye.label)),Ye=e.visitEachChild(Ye,v,d),ne&&ai(),Ye}function ct(Ye){Kt(e.visitNode(Ye.expression,v,e.isExpression),Ye)}function wt(Ye){st(Ye)?(jn(),he(Ye.tryBlock),Ye.catchClause&&(Ut(Ye.catchClause.variableDeclaration),he(Ye.catchClause.block)),Ye.finallyBlock&&(ft(),he(Ye.finallyBlock)),Tt()):ui(e.visitEachChild(Ye,v,d))}function st(Ye){return!!Ye&&(Ye.transformFlags&131072)!==0}function qn(Ye){for(var zn=Ye.length,ge=0;ge<zn;ge++)if(st(Ye[ge]))return ge;return-1}function Ie(Ye,zn){return zn=k(Ye,zn),Ye===1?De(zn):zn}function De(Ye){return e.isIdentifier(Ye)?_n(Ye):Ye}function _n(Ye){if(!e.isGeneratedIdentifier(Ye)&&P&&P.has(e.idText(Ye))){var zn=e.getOriginalNode(Ye);if(e.isIdentifier(zn)&&zn.parent){var ge=w.getReferencedValueDeclaration(zn);if(ge){var hn=h[e.getOriginalNodeId(ge)];if(hn){var Jn=e.getMutableClone(hn);return e.setSourceMapRange(Jn,Ye),e.setCommentRange(Jn,Ye),Jn}}}}return Ye}function _t(Ye){if(e.isGeneratedIdentifier(Ye)||e.getEmitFlags(Ye)&4096)return Ye;var zn=e.createTempVariable(_e);return Gi(zn,Ye,Ye),zn}function It(Ye){var zn=Ye?e.createUniqueName(Ye):e.createTempVariable(void 0);return _e(zn),zn}function Ht(){K||(K=[]);var Ye=Ee;return Ee++,K[Ye]=-1,Ye}function nr(Ye){e.Debug.assert(K!==void 0,"No labels were defined."),K[Ye]=B?B.length:0}function vr(Ye){$||($=[],fe=[],J=[],R=[]);var zn=fe.length;return fe[zn]=0,J[zn]=B?B.length:0,$[zn]=Ye,R.push(Ye),zn}function Qr(){var Ye=Wr();if(Ye===void 0)return e.Debug.fail("beginBlock was never called.");var zn=fe.length;return fe[zn]=1,J[zn]=B?B.length:0,$[zn]=Ye,R.pop(),Ye}function Wr(){return e.lastOrUndefined(R)}function gt(){var Ye=Wr();return Ye&&Ye.kind}function ba(Ye){var zn=Ht(),ge=Ht();nr(zn),vr({kind:1,expression:Ye,startLabel:zn,endLabel:ge})}function kt(){e.Debug.assert(gt()===1);var Ye=Qr();nr(Ye.endLabel)}function jn(){var Ye=Ht(),zn=Ht();return nr(Ye),vr({kind:0,state:0,startLabel:Ye,endLabel:zn}),uo(),zn}function Ut(Ye){e.Debug.assert(gt()===0);var zn;if(e.isGeneratedIdentifier(Ye.name))zn=Ye.name,_e(Ye.name);else{var ge=e.idText(Ye.name);zn=It(ge),P||(P=e.createMap(),h=[],d.enableSubstitution(75)),P.set(ge,!0),h[e.getOriginalNodeId(Ye)]=zn}var hn=Wr();e.Debug.assert(hn.state<1);var Jn=hn.endLabel;ji(Jn);var ue=Ht();nr(ue),hn.state=1,hn.catchVariable=zn,hn.catchLabel=ue,Gi(zn,e.createCall(e.createPropertyAccess(y,"sent"),void 0,[])),uo()}function ft(){e.Debug.assert(gt()===0);var Ye=Wr();e.Debug.assert(Ye.state<2);var zn=Ye.endLabel;ji(zn);var ge=Ht();nr(ge),Ye.state=2,Ye.finallyLabel=ge}function Tt(){e.Debug.assert(gt()===0);var Ye=Qr(),zn=Ye.state;zn<2?ji(Ye.endLabel):_r(),nr(Ye.endLabel),uo(),Ye.state=3}function yt(){vr({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function vt(Ye){var zn=Ht();return vr({kind:3,isScript:!1,breakLabel:zn,continueLabel:Ye}),zn}function Ke(){e.Debug.assert(gt()===3);var Ye=Qr(),zn=Ye.breakLabel;Ye.isScript||nr(zn)}function Rn(){vr({kind:2,isScript:!0,breakLabel:-1})}function nt(){var Ye=Ht();return vr({kind:2,isScript:!1,breakLabel:Ye}),Ye}function tr(){e.Debug.assert(gt()===2);var Ye=Qr(),zn=Ye.breakLabel;Ye.isScript||nr(zn)}function xa(Ye){vr({kind:4,isScript:!0,labelText:Ye,breakLabel:-1})}function Ba(Ye){var zn=Ht();vr({kind:4,isScript:!1,labelText:Ye,breakLabel:zn})}function ai(){e.Debug.assert(gt()===4);var Ye=Qr();Ye.isScript||nr(Ye.breakLabel)}function wi(Ye){return Ye.kind===2||Ye.kind===3}function Ai(Ye){return Ye.kind===4}function Ei(Ye){return Ye.kind===3}function Pi(Ye,zn){for(var ge=zn;ge>=0;ge--){var hn=R[ge];if(Ai(hn)){if(hn.labelText===Ye)return!0}else break}return!1}function Xa(Ye){if(R)if(Ye)for(var zn=R.length-1;zn>=0;zn--){var ge=R[zn];if(Ai(ge)&&ge.labelText===Ye)return ge.breakLabel;if(wi(ge)&&Pi(Ye,zn-1))return ge.breakLabel}else for(var zn=R.length-1;zn>=0;zn--){var ge=R[zn];if(wi(ge))return ge.breakLabel}return 0}function Ia(Ye){if(R)if(Ye)for(var zn=R.length-1;zn>=0;zn--){var ge=R[zn];if(Ei(ge)&&Pi(Ye,zn-1))return ge.continueLabel}else for(var zn=R.length-1;zn>=0;zn--){var ge=R[zn];if(Ei(ge))return ge.continueLabel}return 0}function ca(Ye){if(Ye!==void 0&&Ye>0){z===void 0&&(z=[]);var zn=e.createLiteral(-1);return z[Ye]===void 0?z[Ye]=[zn]:z[Ye].push(zn),zn}return e.createOmittedExpression()}function Ti(Ye){var zn=e.createLiteral(Ye);return e.addSyntheticTrailingComment(zn,3,He(Ye)),zn}function Vo(Ye,zn){return e.Debug.assertLessThan(0,Ye,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([Ti(3),ca(Ye)])),zn)}function mo(Ye,zn){return e.setTextRange(e.createReturn(e.createArrayLiteral(Ye?[Ti(2),Ye]:[Ti(2)])),zn)}function Ro(Ye){return e.setTextRange(e.createCall(e.createPropertyAccess(y,"sent"),void 0,[]),Ye)}function uo(){Jr(0)}function ui(Ye){Ye?Jr(1,[Ye]):uo()}function Gi(Ye,zn,ge){Jr(2,[Ye,zn],ge)}function ji(Ye,zn){Jr(3,[Ye],zn)}function Fo(Ye,zn,ge){Jr(4,[Ye,zn],ge)}function ko(Ye,zn,ge){Jr(5,[Ye,zn],ge)}function bo(Ye,zn){Jr(7,[Ye],zn)}function Ri(Ye,zn){Jr(6,[Ye],zn)}function xt(Ye,zn){Jr(8,[Ye],zn)}function Kt(Ye,zn){Jr(9,[Ye],zn)}function _r(){Jr(10)}function Jr(Ye,zn,ge){B===void 0&&(B=[],V=[],m=[]),K===void 0&&nr(Ht());var hn=B.length;B[hn]=Ye,V[hn]=zn,m[hn]=ge}function va(){L=0,C=0,_=void 0,b=!1,D=!1,T=void 0,Q=void 0,N=void 0,X=void 0,pe=void 0;var Ye=Na();return ie(d,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,y)],void 0,e.createBlock(Ye,Ye.length>0)),524288))}function Na(){if(B){for(var Ye=0;Ye<B.length;Ye++)Ln(Ye);hi(B.length)}else hi(0);if(T){var zn=e.createPropertyAccess(y,"label"),ge=e.createSwitch(zn,e.createCaseBlock(T));return[e.startOnNewLine(ge)]}return Q||[]}function qr(){if(!Q)return;gi(!b),b=!1,D=!1,C++}function hi(Ye){Ii(Ye)&&(ua(Ye),pe=void 0,cr(void 0,void 0)),Q&&T&&gi(!1),tn()}function Ii(Ye){if(!D)return!0;if(!K||!z)return!1;for(var zn=0;zn<K.length;zn++)if(K[zn]===Ye&&z[zn])return!0;return!1}function gi(Ye){if(T||(T=[]),Q){if(pe)for(var zn=pe.length-1;zn>=0;zn--){var ge=pe[zn];Q=[e.createWith(ge.expression,e.createBlock(Q))]}if(X){var hn=X.startLabel,Jn=X.catchLabel,ue=X.finallyLabel,rn=X.endLabel;Q.unshift(e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(y,"trys"),"push"),void 0,[e.createArrayLiteral([ca(hn),ca(Jn),ca(ue),ca(rn)])]))),X=void 0}Ye&&Q.push(e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(y,"label"),e.createLiteral(C+1))))}T.push(e.createCaseClause(e.createLiteral(C),Q||[])),Q=void 0}function ua(Ye){if(!K)return;for(var zn=0;zn<K.length;zn++)K[zn]===Ye&&(qr(),_===void 0&&(_=[]),_[C]===void 0?_[C]=[zn]:_[C].push(zn))}function tn(){if(z!==void 0&&_!==void 0)for(var Ye=0;Ye<_.length;Ye++){var zn=_[Ye];if(zn!==void 0)for(var ge=0,hn=zn;ge<hn.length;ge++){var Jn=hn[ge],ue=z[Jn];if(ue!==void 0)for(var rn=0,Cn=ue;rn<Cn.length;rn++){var Zn=Cn[rn];Zn.text=String(Ye)}}}}function vn(Ye){if($)for(;L<fe.length&&J[L]<=Ye;L++){var zn=$[L],ge=fe[L];switch(zn.kind){case 0:ge===0?(N||(N=[]),Q||(Q=[]),N.push(X),X=zn):ge===1&&(X=N.pop());break;case 1:ge===0?(pe||(pe=[]),pe.push(zn)):ge===1&&pe.pop();break}}}function Ln(Ye){if(ua(Ye),vn(Ye),b)return;b=!1,D=!1;var zn=B[Ye];if(zn===0)return;if(zn===10)return _i();var ge=V[Ye];if(zn===1)return Bn(ge[0]);var hn=m[Ye];switch(zn){case 2:return Pt(ge[0],ge[1],hn);case 3:return Cr(ge[0],hn);case 4:return Ya(ge[0],ge[1],hn);case 5:return Oa(ge[0],ge[1],hn);case 6:return Ni(ge[0],hn);case 7:return ii(ge[0],hn);case 8:return cr(ge[0],hn);case 9:return rr(ge[0],hn)}}function Bn(Ye){Ye&&(Q?Q.push(Ye):Q=[Ye])}function Pt(Ye,zn,ge){Bn(e.setTextRange(e.createExpressionStatement(e.createAssignment(Ye,zn)),ge))}function rr(Ye,zn){b=!0,D=!0,Bn(e.setTextRange(e.createThrow(Ye),zn))}function cr(Ye,zn){b=!0,D=!0,Bn(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(Ye?[Ti(2),Ye]:[Ti(2)])),zn),384))}function Cr(Ye,zn){b=!0,Bn(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([Ti(3),ca(Ye)])),zn),384))}function Ya(Ye,zn,ge){Bn(e.setEmitFlags(e.createIf(zn,e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([Ti(3),ca(Ye)])),ge),384)),1))}function Oa(Ye,zn,ge){Bn(e.setEmitFlags(e.createIf(e.createLogicalNot(zn),e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([Ti(3),ca(Ye)])),ge),384)),1))}function Ni(Ye,zn){b=!0,Bn(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(Ye?[Ti(4),Ye]:[Ti(4)])),zn),384))}function ii(Ye,zn){b=!0,Bn(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([Ti(5),Ye])),zn),384))}function _i(){b=!0,Bn(e.createReturn(e.createArrayLiteral([Ti(7)])))}}e.transformGenerators=ve;function ie(d,H){return d.requestEmitHelper(e.generatorHelper),e.createCall(e.getUnscopedHelperName("__generator"),void 0,[e.createThis(),H])}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 };
}
};`}})(ln||(ln={}));var ln;(function(e){function o(Fe){function He(c){switch(c){case e.ModuleKind.AMD:return K;case e.ModuleKind.UMD:return z;default:return R}}var ve=Fe.startLexicalEnvironment,ie=Fe.endLexicalEnvironment,d=Fe.hoistVariableDeclaration,H=Fe.getCompilerOptions(),Pe=Fe.getEmitResolver(),I=Fe.getEmitHost(),_e=e.getEmitScriptTarget(H),re=e.getEmitModuleKind(H),se=Fe.onSubstituteNode,w=Fe.onEmitNode;Fe.onSubstituteNode=Ue,Fe.onEmitNode=Ze,Fe.enableSubstitution(75),Fe.enableSubstitution(208),Fe.enableSubstitution(206),Fe.enableSubstitution(207),Fe.enableSubstitution(280),Fe.enableEmitNotification(288);var k=[],P=[],h,Y,ne,$;return e.chainBundle(J);function J(c){if(c.isDeclarationFile||!(e.isEffectiveExternalModule(c,H)||c.transformFlags&524288||e.isJsonSourceFile(c)&&e.hasJsonModuleEmitEnabled(H)&&(H.out||H.outFile)))return c;h=c,Y=e.collectExternalModuleInfo(c,Pe,H),k[e.getOriginalNodeId(c)]=Y;var O=He(re),ee=O(c);return h=void 0,Y=void 0,$=!1,e.aggregateTransformFlags(ee)}function fe(){return!!(!Y.exportEquals&&e.isExternalModule(h))}function R(c){ve();var O=[],ee=e.getStrictOptionValue(H,"alwaysStrict")||!H.noImplicitUseStrict&&e.isExternalModule(h),Te=e.addPrologue(O,c.statements,ee,y);fe()&&e.append(O,ae()),e.append(O,e.visitNode(Y.externalHelpersImportDeclaration,y,e.isStatement)),e.addRange(O,e.visitNodes(c.statements,y,e.isStatement,Te)),m(O,!1),e.insertStatementsAfterStandardPrologue(O,ie());var Ne=e.updateSourceFileNode(c,e.setTextRange(e.createNodeArray(O),c.statements));return Y.hasExportStarsToExportValues&&!H.importHelpers&&e.addEmitHelper(Ne,F),e.addEmitHelpers(Ne,Fe.readEmitHelpers()),Ne}function K(c){var O=e.createIdentifier("define"),ee=e.tryGetModuleNameFromFile(c,I,H),Te=e.isJsonSourceFile(c)&&c,Ne=Ee(c,!0),ze=Ne.aliasedModuleNames,bn=Ne.unaliasedModuleNames,Sn=Ne.importAliasNames,Kn=e.updateSourceFileNode(c,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(O,void 0,Or(ee?[ee]:[],[e.createArrayLiteral(Te?e.emptyArray:Or([e.createLiteral("require"),e.createLiteral("exports")],ze,bn)),Te?Te.statements.length?Te.statements[0].expression:e.createObjectLiteral():e.createFunctionExpression(void 0,void 0,void 0,void 0,Or([e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")],Sn),void 0,V(c))])))]),c.statements));return e.addEmitHelpers(Kn,Fe.readEmitHelpers()),Kn}function z(c){var O=Ee(c,!1),ee=O.aliasedModuleNames,Te=O.unaliasedModuleNames,Ne=O.importAliasNames,ze=e.tryGetModuleNameFromFile(c,I,H),bn=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createExpressionStatement(e.createCall(e.createIdentifier("define"),void 0,Or(ze?[ze]:[],[e.createArrayLiteral(Or([e.createLiteral("require"),e.createLiteral("exports")],ee,Te)),e.createIdentifier("factory")])))])))],!0),void 0)),Sn=e.updateSourceFileNode(c,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(bn,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,Or([e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")],Ne),void 0,V(c))]))]),c.statements));return e.addEmitHelpers(Sn,Fe.readEmitHelpers()),Sn}function Ee(c,O){for(var ee=[],Te=[],Ne=[],ze=0,bn=c.amdDependencies;ze<bn.length;ze++){var Sn=bn[ze];Sn.name?(ee.push(e.createLiteral(Sn.path)),Ne.push(e.createParameter(void 0,void 0,void 0,Sn.name))):Te.push(e.createLiteral(Sn.path))}for(var Kn=0,Xe=Y.externalImports;Kn<Xe.length;Kn++){var pn=Xe[Kn],le=e.getExternalModuleNameLiteral(pn,h,I,Pe,H),oe=e.getLocalNameForExternalImport(pn,h);le&&(O&&oe?(e.setEmitFlags(oe,4),ee.push(le),Ne.push(e.createParameter(void 0,void 0,void 0,oe))):Te.push(le))}return{aliasedModuleNames:ee,unaliasedModuleNames:Te,importAliasNames:Ne}}function B(c){if(e.isImportEqualsDeclaration(c)||e.isExportDeclaration(c)||!e.getExternalModuleNameLiteral(c,h,I,Pe,H))return;var O=e.getLocalNameForExternalImport(c,h),ee=N(c,O);return ee===O?void 0:e.createExpressionStatement(e.createAssignment(O,ee))}function V(c){ve();var O=[],ee=e.addPrologue(O,c.statements,!H.noImplicitUseStrict,y);fe()&&e.append(O,ae()),e.append(O,e.visitNode(Y.externalHelpersImportDeclaration,y,e.isStatement)),re===e.ModuleKind.AMD&&e.addRange(O,e.mapDefined(Y.externalImports,B)),e.addRange(O,e.visitNodes(c.statements,y,e.isStatement,ee)),m(O,!0),e.insertStatementsAfterStandardPrologue(O,ie());var Te=e.createBlock(O,!0);return Y.hasExportStarsToExportValues&&!H.importHelpers&&e.addEmitHelper(Te,F),$&&e.addEmitHelper(Te,Se),Te}function m(c,O){if(Y.exportEquals){var ee=e.visitNode(Y.exportEquals.expression,L);if(ee)if(O){var Te=e.createReturn(ee);e.setTextRange(Te,Y.exportEquals),e.setEmitFlags(Te,384|1536),c.push(Te)}else{var Te=e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),ee));e.setTextRange(Te,Y.exportEquals),e.setEmitFlags(Te,1536),c.push(Te)}}}function y(c){switch(c.kind){case 253:return X(c);case 252:return S(c);case 259:return v(c);case 258:return U(c);case 224:return Z(c);case 243:return de(c);case 244:return Ce(c);case 321:return We(c);case 322:return Ge(c);default:return e.visitEachChild(c,L,Fe)}}function L(c){return!(c.transformFlags&524288)&&!(c.transformFlags&512)?c:e.isImportCall(c)?b(c):e.isDestructuringAssignment(c)?_(c):e.visitEachChild(c,L,Fe)}function C(c){if(e.isObjectLiteralExpression(c))for(var O=0,ee=c.properties;O<ee.length;O++){var Te=ee[O];switch(Te.kind){case 279:if(C(Te.initializer))return!0;break;case 280:if(C(Te.name))return!0;break;case 281:if(C(Te.expression))return!0;break;case 160:case 162:case 163:return!1;default:e.Debug.assertNever(Te,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(c))for(var Ne=0,ze=c.elements;Ne<ze.length;Ne++){var Te=ze[Ne];if(e.isSpreadElement(Te)){if(C(Te.expression))return!0}else if(C(Te))return!0}else if(e.isIdentifier(c))return e.length(G(c))>(e.isExportName(c)?1:0);return!1}function _(c){return C(c.left)?e.flattenDestructuringAssignment(c,L,Fe,0,!1,Re):e.visitEachChild(c,L,Fe)}function b(c){var O=e.visitNode(e.firstOrUndefined(c.arguments),L),ee=!!(c.transformFlags&2048);switch(H.module){case e.ModuleKind.AMD:return T(O,ee);case e.ModuleKind.UMD:return D(O,ee);case e.ModuleKind.CommonJS:default:return Q(O,ee)}}function D(c,O){if($=!0,e.isSimpleCopiableExpression(c)){var ee=e.isGeneratedIdentifier(c)?c:e.isStringLiteral(c)?e.createLiteral(c):e.setEmitFlags(e.setTextRange(e.getSynthesizedClone(c),c),1536);return e.createConditional(e.createIdentifier("__syncRequire"),Q(c,O),T(ee,O))}else{var Te=e.createTempVariable(d);return e.createComma(e.createAssignment(Te,c),e.createConditional(e.createIdentifier("__syncRequire"),Q(Te,O),T(Te,O)))}}function T(c,O){var ee=e.createUniqueName("resolve"),Te=e.createUniqueName("reject"),Ne=[e.createParameter(void 0,void 0,void 0,ee),e.createParameter(void 0,void 0,void 0,Te)],ze=e.createBlock([e.createExpressionStatement(e.createCall(e.createIdentifier("require"),void 0,[e.createArrayLiteral([c||e.createOmittedExpression()]),ee,Te]))]),bn;_e>=2?bn=e.createArrowFunction(void 0,void 0,Ne,void 0,void 0,ze):(bn=e.createFunctionExpression(void 0,void 0,void 0,void 0,Ne,void 0,ze),O&&e.setEmitFlags(bn,8));var Sn=e.createNew(e.createIdentifier("Promise"),void 0,[bn]);return H.esModuleInterop?(Fe.requestEmitHelper(e.importStarHelper),e.createCall(e.createPropertyAccess(Sn,e.createIdentifier("then")),void 0,[e.getUnscopedHelperName("__importStar")])):Sn}function Q(c,O){var ee=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),Te=e.createCall(e.createIdentifier("require"),void 0,c?[c]:[]);H.esModuleInterop&&(Fe.requestEmitHelper(e.importStarHelper),Te=e.createCall(e.getUnscopedHelperName("__importStar"),void 0,[Te]));var Ne;return _e>=2?Ne=e.createArrowFunction(void 0,void 0,[],void 0,void 0,Te):(Ne=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(Te)])),O&&e.setEmitFlags(Ne,8)),e.createCall(e.createPropertyAccess(ee,"then"),void 0,[Ne])}function N(c,O){return!H.esModuleInterop||e.getEmitFlags(c)&67108864?O:e.getImportNeedsImportStarHelper(c)?(Fe.requestEmitHelper(e.importStarHelper),e.createCall(e.getUnscopedHelperName("__importStar"),void 0,[O])):e.getImportNeedsImportDefaultHelper(c)?(Fe.requestEmitHelper(e.importDefaultHelper),e.createCall(e.getUnscopedHelperName("__importDefault"),void 0,[O])):O}function X(c){var O,ee=e.getNamespaceDeclarationNode(c);if(re!==e.ModuleKind.AMD)if(c.importClause){var Te=[];ee&&!e.isDefaultImport(c)?Te.push(e.createVariableDeclaration(e.getSynthesizedClone(ee.name),void 0,N(c,pe(c)))):(Te.push(e.createVariableDeclaration(e.getGeneratedNameForNode(c),void 0,N(c,pe(c)))),ee&&e.isDefaultImport(c)&&Te.push(e.createVariableDeclaration(e.getSynthesizedClone(ee.name),void 0,e.getGeneratedNameForNode(c)))),O=e.append(O,e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(Te,_e>=2?2:0)),c),c))}else return e.setOriginalNode(e.setTextRange(e.createExpressionStatement(pe(c)),c),c);else ee&&e.isDefaultImport(c)&&(O=e.append(O,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(ee.name),void 0,e.getGeneratedNameForNode(c)),c),c)],_e>=2?2:0))));if(be(c)){var Ne=e.getOriginalNodeId(c);P[Ne]=x(P[Ne],c)}else O=x(O,c);return e.singleOrMany(O)}function pe(c){var O=e.getExternalModuleNameLiteral(c,h,I,Pe,H),ee=[];return O&&ee.push(O),e.createCall(e.createIdentifier("require"),void 0,ee)}function S(c){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(c),"import= for internal module references should be handled in an earlier transformer.");var O;if(re!==e.ModuleKind.AMD?e.hasModifier(c,1)?O=e.append(O,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(Le(c.name,pe(c))),c),c)):O=e.append(O,e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(c.name),void 0,pe(c))],_e>=2?2:0)),c),c)):e.hasModifier(c,1)&&(O=e.append(O,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(Le(e.getExportName(c),e.getLocalName(c))),c),c))),be(c)){var ee=e.getOriginalNodeId(c);P[ee]=j(P[ee],c)}else O=j(O,c);return e.singleOrMany(O)}function v(c){if(!c.moduleSpecifier)return;var O=e.getGeneratedNameForNode(c);if(c.exportClause){var ee=[];re!==e.ModuleKind.AMD&&ee.push(e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(O,void 0,pe(c))])),c),c));for(var Te=0,Ne=c.exportClause.elements;Te<Ne.length;Te++){var ze=Ne[Te],bn=e.createPropertyAccess(O,ze.propertyName||ze.name);ee.push(e.setOriginalNode(e.setTextRange(e.createExpressionStatement(Le(e.getExportName(ze),bn)),ze),ze))}return e.singleOrMany(ee)}else return e.setOriginalNode(e.setTextRange(e.createExpressionStatement(qe(Fe,re!==e.ModuleKind.AMD?pe(c):O)),c),c)}function U(c){if(c.isExportEquals)return;var O,ee=c.original;if(ee&&be(ee)){var Te=e.getOriginalNodeId(c);P[Te]=Xn(P[Te],e.createIdentifier("default"),e.visitNode(c.expression,L),c,!0)}else O=Xn(O,e.createIdentifier("default"),e.visitNode(c.expression,L),c,!0);return e.singleOrMany(O)}function de(c){var O;if(e.hasModifier(c,1)?O=e.append(O,e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,e.visitNodes(c.modifiers,Je,e.isModifier),c.asteriskToken,e.getDeclarationName(c,!0,!0),void 0,e.visitNodes(c.parameters,L),void 0,e.visitEachChild(c.body,L,Fe)),c),c)):O=e.append(O,e.visitEachChild(c,L,Fe)),be(c)){var ee=e.getOriginalNodeId(c);P[ee]=en(P[ee],c)}else O=en(O,c);return e.singleOrMany(O)}function Ce(c){var O;if(e.hasModifier(c,1)?O=e.append(O,e.setOriginalNode(e.setTextRange(e.createClassDeclaration(void 0,e.visitNodes(c.modifiers,Je,e.isModifier),e.getDeclarationName(c,!0,!0),void 0,e.visitNodes(c.heritageClauses,L),e.visitNodes(c.members,L)),c),c)):O=e.append(O,e.visitEachChild(c,L,Fe)),be(c)){var ee=e.getOriginalNodeId(c);P[ee]=en(P[ee],c)}else O=en(O,c);return e.singleOrMany(O)}function Z(c){var O,ee,Te;if(e.hasModifier(c,1)){for(var Ne=void 0,ze=0,bn=c.declarationList.declarations;ze<bn.length;ze++){var Sn=bn[ze];e.isIdentifier(Sn.name)&&e.isLocalName(Sn.name)?(Ne||(Ne=e.visitNodes(c.modifiers,Je,e.isModifier)),ee=e.append(ee,Sn)):Sn.initializer&&(Te=e.append(Te,Ae(Sn)))}ee&&(O=e.append(O,e.updateVariableStatement(c,Ne,e.updateVariableDeclarationList(c.declarationList,ee)))),Te&&(O=e.append(O,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(e.inlineExpressions(Te)),c),c)))}else O=e.append(O,e.visitEachChild(c,L,Fe));if(be(c)){var Kn=e.getOriginalNodeId(c);P[Kn]=Oe(P[Kn],c)}else O=Oe(O,c);return e.singleOrMany(O)}function Re(c,O,ee){var Te=G(c);if(Te){for(var Ne=e.isExportName(c)?O:e.createAssignment(c,O),ze=0,bn=Te;ze<bn.length;ze++){var Sn=bn[ze];e.setEmitFlags(Ne,4),Ne=Le(Sn,Ne,ee)}return Ne}return e.createAssignment(c,O)}function Ae(c){return e.isBindingPattern(c.name)?e.flattenDestructuringAssignment(e.visitNode(c,L),void 0,Fe,0,!1,Re):e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),c.name),c.name),e.visitNode(c.initializer,L))}function We(c){if(be(c)&&c.original.kind===224){var O=e.getOriginalNodeId(c);P[O]=Oe(P[O],c.original)}return c}function be(c){return(e.getEmitFlags(c)&4194304)!==0}function Ge(c){var O=e.getOriginalNodeId(c),ee=P[O];return ee?(delete P[O],e.append(ee,c)):c}function x(c,O){if(Y.exportEquals)return c;var ee=O.importClause;if(!ee)return c;ee.name&&(c=Pn(c,ee));var Te=ee.namedBindings;if(Te)switch(Te.kind){case 255:c=Pn(c,Te);break;case 256:for(var Ne=0,ze=Te.elements;Ne<ze.length;Ne++){var bn=ze[Ne];c=Pn(c,bn)}break}return c}function j(c,O){return Y.exportEquals?c:Pn(c,O)}function Oe(c,O){if(Y.exportEquals)return c;for(var ee=0,Te=O.declarationList.declarations;ee<Te.length;ee++){var Ne=Te[ee];c=a(c,Ne)}return c}function a(c,O){if(Y.exportEquals)return c;if(e.isBindingPattern(O.name))for(var ee=0,Te=O.name.elements;ee<Te.length;ee++){var Ne=Te[ee];e.isOmittedExpression(Ne)||(c=a(c,Ne))}else e.isGeneratedIdentifier(O.name)||(c=Pn(c,O));return c}function en(c,O){if(Y.exportEquals)return c;if(e.hasModifier(O,1)){var ee=e.hasModifier(O,512)?e.createIdentifier("default"):e.getDeclarationName(O);c=Xn(c,ee,e.getLocalName(O),O)}return O.name&&(c=Pn(c,O)),c}function Pn(c,O){var ee=e.getDeclarationName(O),Te=Y.exportSpecifiers.get(e.idText(ee));if(Te)for(var Ne=0,ze=Te;Ne<ze.length;Ne++){var bn=ze[Ne];c=Xn(c,bn.name,ee,bn.name)}return c}function Xn(c,O,ee,Te,Ne){return c=e.append(c,ce(O,ee,Te,Ne)),c}function ae(){var c;return _e===0?c=e.createExpressionStatement(Le(e.createIdentifier("__esModule"),e.createLiteral(!0))):c=e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[e.createIdentifier("exports"),e.createLiteral("__esModule"),e.createObjectLiteral([e.createPropertyAssignment("value",e.createLiteral(!0))])])),e.setEmitFlags(c,1048576),c}function ce(c,O,ee,Te){var Ne=e.setTextRange(e.createExpressionStatement(Le(c,O)),ee);return e.startOnNewLine(Ne),Te||e.setEmitFlags(Ne,1536),Ne}function Le(c,O,ee){return e.setTextRange(e.createAssignment(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(c)),O),ee)}function Je(c){switch(c.kind){case 88:case 83:return}return c}function Ze(c,O,ee){O.kind===288?(h=O,Y=k[e.getOriginalNodeId(h)],ne=[],w(c,O,ee),h=void 0,Y=void 0,ne=void 0):w(c,O,ee)}function Ue(c,O){return O=se(c,O),O.id&&ne[O.id]?O:c===1?$e(O):e.isShorthandPropertyAssignment(O)?cn(O):O}function cn(c){var O=c.name,ee=sn(O);if(ee!==O){if(c.objectAssignmentInitializer){var Te=e.createAssignment(ee,c.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(O,Te),c)}return e.setTextRange(e.createPropertyAssignment(O,ee),c)}return c}function $e(c){switch(c.kind){case 75:return sn(c);case 208:return he(c);case 207:case 206:return ke(c)}return c}function sn(c){if(e.getEmitFlags(c)&4096){var O=e.getExternalHelpersModuleName(h);return O?e.createPropertyAccess(O,c):c}if(!e.isGeneratedIdentifier(c)&&!e.isLocalName(c)){var ee=Pe.getReferencedExportContainer(c,e.isExportName(c));if(ee&&ee.kind===288)return e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(c)),c);var Te=Pe.getReferencedImportDeclaration(c);if(Te){if(e.isImportClause(Te))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(Te.parent),e.createIdentifier("default")),c);if(e.isImportSpecifier(Te)){var Ne=Te.propertyName||Te.name;return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(Te.parent.parent.parent),e.getSynthesizedClone(Ne)),c)}}}return c}function he(c){if(e.isAssignmentOperator(c.operatorToken.kind)&&e.isIdentifier(c.left)&&!e.isGeneratedIdentifier(c.left)&&!e.isLocalName(c.left)&&!e.isDeclarationNameOfEnumOrNamespace(c.left)){var O=G(c.left);if(O){for(var ee=c,Te=0,Ne=O;Te<Ne.length;Te++){var ze=Ne[Te];ne[e.getNodeId(ee)]=!0,ee=Le(ze,ee,c)}return ee}}return c}function ke(c){if((c.operator===45||c.operator===46)&&e.isIdentifier(c.operand)&&!e.isGeneratedIdentifier(c.operand)&&!e.isLocalName(c.operand)&&!e.isDeclarationNameOfEnumOrNamespace(c.operand)){var O=G(c.operand);if(O){for(var ee=c.kind===207?e.setTextRange(e.createBinary(c.operand,e.createToken(c.operator===45?63:64),e.createLiteral(1)),c):c,Te=0,Ne=O;Te<Ne.length;Te++){var ze=Ne[Te];ne[e.getNodeId(ee)]=!0,ee=Le(ze,ee)}return ee}}return c}function G(c){if(!e.isGeneratedIdentifier(c)){var O=Pe.getReferencedImportDeclaration(c)||Pe.getReferencedValueDeclaration(c);if(O)return Y&&Y.exportedBindings[e.getOriginalNodeId(O)]}}}e.transformModule=o;var F={name:"typescript:export-star",scoped:!0,text:`
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}`};function qe(Fe,He){var ve=Fe.getCompilerOptions();return ve.importHelpers?e.createCall(e.getUnscopedHelperName("__exportStar"),void 0,[He,e.createIdentifier("exports")]):e.createCall(e.createIdentifier("__export"),void 0,[He])}var Se={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,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 (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = 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 };
};`}})(ln||(ln={}));var ln;(function(e){function o(F){var qe=F.startLexicalEnvironment,Se=F.endLexicalEnvironment,Fe=F.hoistVariableDeclaration,He=F.getCompilerOptions(),ve=F.getEmitResolver(),ie=F.getEmitHost(),d=F.onSubstituteNode,H=F.onEmitNode;F.onSubstituteNode=Ne,F.onEmitNode=Te,F.enableSubstitution(75),F.enableSubstitution(280),F.enableSubstitution(208),F.enableSubstitution(206),F.enableSubstitution(207),F.enableSubstitution(218),F.enableEmitNotification(288);var Pe=[],I=[],_e=[],re=[],se=[],w,k,P,h,Y,ne,$;return e.chainBundle(J);function J(ye){if(ye.isDeclarationFile||!(e.isEffectiveExternalModule(ye,He)||ye.transformFlags&524288))return ye;var mn=e.getOriginalNodeId(ye);w=ye,ne=ye,k=Pe[mn]=e.collectExternalModuleInfo(ye,ve,He),P=e.createUniqueName("exports"),_e[mn]=P,h=se[mn]=e.createUniqueName("context");var un=fe(k.externalImports),Mn=R(ye,un),tt=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,P),e.createParameter(void 0,void 0,void 0,h)],void 0,Mn),Vn=e.tryGetModuleNameFromFile(ye,ie,He),ut=e.createArrayLiteral(e.map(un,function(ot){return ot.name})),dt=e.setEmitFlags(e.updateSourceFileNode(ye,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("System"),"register"),void 0,Vn?[Vn,ut,tt]:[ut,tt]))]),ye.statements)),1024);return He.outFile||He.out||e.moveEmitHelpers(dt,Mn,function(ot){return!ot.scoped}),$&&(re[mn]=$,$=void 0),w=void 0,k=void 0,P=void 0,h=void 0,Y=void 0,ne=void 0,e.aggregateTransformFlags(dt)}function fe(ye){for(var mn=e.createMap(),un=[],Mn=0,tt=ye;Mn<tt.length;Mn++){var Vn=tt[Mn],ut=e.getExternalModuleNameLiteral(Vn,w,ie,ve,He);if(ut){var dt=ut.text,ot=mn.get(dt);ot!==void 0?un[ot].externalImports.push(Vn):(mn.set(dt,un.length),un.push({name:ut,externalImports:[Vn]}))}}return un}function R(ye,mn){var un=[];qe();var Mn=e.getStrictOptionValue(He,"alwaysStrict")||!He.noImplicitUseStrict&&e.isExternalModule(w),tt=e.addPrologue(un,ye.statements,Mn,B);un.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("__moduleName",void 0,e.createLogicalAnd(h,e.createPropertyAccess(h,"id")))]))),e.visitNode(k.externalHelpersImportDeclaration,B,e.isStatement);var Vn=e.visitNodes(ye.statements,B,e.isStatement,tt);e.addRange(un,Y),e.insertStatementsAfterStandardPrologue(un,Se());var ut=K(un),dt=e.createObjectLiteral([e.createPropertyAssignment("setters",Ee(ut,mn)),e.createPropertyAssignment("execute",e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock(Vn,!0)))]);return dt.multiLine=!0,un.push(e.createReturn(dt)),e.createBlock(un,!0)}function K(ye){if(!k.hasExportStarsToExportValues)return;if(!k.exportedNames&&k.exportSpecifiers.size===0){for(var mn=!1,un=0,Mn=k.externalImports;un<Mn.length;un++){var tt=Mn[un];if(tt.kind===259&&tt.exportClause){mn=!0;break}}if(!mn){var Vn=z(void 0);return ye.push(Vn),Vn.name}}var ut=[];if(k.exportedNames)for(var dt=0,ot=k.exportedNames;dt<ot.length;dt++){var ct=ot[dt];if(ct.escapedText==="default")continue;ut.push(e.createPropertyAssignment(e.createLiteral(ct),e.createTrue()))}for(var wt=0,st=k.externalImports;wt<st.length;wt++){var tt=st[wt];if(tt.kind!==259)continue;if(!tt.exportClause)continue;for(var qn=0,Ie=tt.exportClause.elements;qn<Ie.length;qn++){var De=Ie[qn];ut.push(e.createPropertyAssignment(e.createLiteral(e.idText(De.name||De.propertyName)),e.createTrue()))}}var _n=e.createUniqueName("exportedNames");ye.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(_n,void 0,e.createObjectLiteral(ut,!0))])));var _t=z(_n);return ye.push(_t),_t.name}function z(ye){var mn=e.createUniqueName("exportStar"),un=e.createIdentifier("m"),Mn=e.createIdentifier("n"),tt=e.createIdentifier("exports"),Vn=e.createStrictInequality(Mn,e.createLiteral("default"));return ye&&(Vn=e.createLogicalAnd(Vn,e.createLogicalNot(e.createCall(e.createPropertyAccess(ye,"hasOwnProperty"),void 0,[Mn])))),e.createFunctionDeclaration(void 0,void 0,void 0,mn,void 0,[e.createParameter(void 0,void 0,void 0,un)],void 0,e.createBlock([e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(tt,void 0,e.createObjectLiteral([]))])),e.createForIn(e.createVariableDeclarationList([e.createVariableDeclaration(Mn,void 0)]),un,e.createBlock([e.setEmitFlags(e.createIf(Vn,e.createExpressionStatement(e.createAssignment(e.createElementAccess(tt,Mn),e.createElementAccess(un,Mn)))),1)])),e.createExpressionStatement(e.createCall(P,void 0,[tt]))],!0))}function Ee(ye,mn){for(var un=[],Mn=0,tt=mn;Mn<tt.length;Mn++){for(var Vn=tt[Mn],ut=e.forEach(Vn.externalImports,function(It){return e.getLocalNameForExternalImport(It,w)}),dt=ut?e.getGeneratedNameForNode(ut):e.createUniqueName(""),ot=[],ct=0,wt=Vn.externalImports;ct<wt.length;ct++){var st=wt[ct],qn=e.getLocalNameForExternalImport(st,w);switch(st.kind){case 253:if(!st.importClause)break;case 252:e.Debug.assert(qn!==void 0),ot.push(e.createExpressionStatement(e.createAssignment(qn,dt)));break;case 259:if(e.Debug.assert(qn!==void 0),st.exportClause){for(var Ie=[],De=0,_n=st.exportClause.elements;De<_n.length;De++){var _t=_n[De];Ie.push(e.createPropertyAssignment(e.createLiteral(e.idText(_t.name)),e.createElementAccess(dt,e.createLiteral(e.idText(_t.propertyName||_t.name)))))}ot.push(e.createExpressionStatement(e.createCall(P,void 0,[e.createObjectLiteral(Ie,!0)])))}else ot.push(e.createExpressionStatement(e.createCall(ye,void 0,[dt])));break}}un.push(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,dt)],void 0,e.createBlock(ot,!0)))}return e.createArrayLiteral(un,!0)}function B(ye){switch(ye.kind){case 253:return V(ye);case 252:return m(ye);case 259:return;case 258:return y(ye);default:return x(ye)}}function V(ye){var mn;if(ye.importClause&&Fe(e.getLocalNameForExternalImport(ye,w)),S(ye)){var un=e.getOriginalNodeId(ye);I[un]=U(I[un],ye)}else mn=U(mn,ye);return e.singleOrMany(mn)}function m(ye){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(ye),"import= for internal module references should be handled in an earlier transformer.");var mn;if(Fe(e.getLocalNameForExternalImport(ye,w)),S(ye)){var un=e.getOriginalNodeId(ye);I[un]=de(I[un],ye)}else mn=de(mn,ye);return e.singleOrMany(mn)}function y(ye){if(ye.isExportEquals)return;var mn=e.visitNode(ye.expression,ke,e.isExpression),un=ye.original;if(un&&S(un)){var Mn=e.getOriginalNodeId(ye);I[Mn]=We(I[Mn],e.createIdentifier("default"),mn,!0)}else return be(e.createIdentifier("default"),mn,!0)}function L(ye){if(e.hasModifier(ye,1)?Y=e.append(Y,e.updateFunctionDeclaration(ye,ye.decorators,e.visitNodes(ye.modifiers,ee,e.isModifier),ye.asteriskToken,e.getDeclarationName(ye,!0,!0),void 0,e.visitNodes(ye.parameters,ke,e.isParameterDeclaration),void 0,e.visitNode(ye.body,ke,e.isBlock))):Y=e.append(Y,e.visitEachChild(ye,ke,F)),S(ye)){var mn=e.getOriginalNodeId(ye);I[mn]=Re(I[mn],ye)}else Y=Re(Y,ye);return}function C(ye){var mn,un=e.getLocalName(ye);if(Fe(un),mn=e.append(mn,e.setTextRange(e.createExpressionStatement(e.createAssignment(un,e.setTextRange(e.createClassExpression(void 0,ye.name,void 0,e.visitNodes(ye.heritageClauses,ke,e.isHeritageClause),e.visitNodes(ye.members,ke,e.isClassElement)),ye))),ye)),S(ye)){var Mn=e.getOriginalNodeId(ye);I[Mn]=Re(I[Mn],ye)}else mn=Re(mn,ye);return e.singleOrMany(mn)}function _(ye){if(!D(ye.declarationList))return e.visitNode(ye,ke,e.isStatement);for(var mn,un=e.hasModifier(ye,1),Mn=S(ye),tt=0,Vn=ye.declarationList.declarations;tt<Vn.length;tt++){var ut=Vn[tt];ut.initializer?mn=e.append(mn,T(ut,un&&!Mn)):b(ut)}var dt;if(mn&&(dt=e.append(dt,e.setTextRange(e.createExpressionStatement(e.inlineExpressions(mn)),ye))),Mn){var ot=e.getOriginalNodeId(ye);I[ot]=Ce(I[ot],ye,un)}else dt=Ce(dt,ye,!1);return e.singleOrMany(dt)}function b(ye){if(e.isBindingPattern(ye.name))for(var mn=0,un=ye.name.elements;mn<un.length;mn++){var Mn=un[mn];e.isOmittedExpression(Mn)||b(Mn)}else Fe(e.getSynthesizedClone(ye.name))}function D(ye){return(e.getEmitFlags(ye)&2097152)===0&&(ne.kind===288||(e.getOriginalNode(ye).flags&3)===0)}function T(ye,mn){var un=mn?Q:N;return e.isBindingPattern(ye.name)?e.flattenDestructuringAssignment(ye,ke,F,0,!1,un):ye.initializer?un(ye.name,e.visitNode(ye.initializer,ke,e.isExpression)):ye.name}function Q(ye,mn,un){return X(ye,mn,un,!0)}function N(ye,mn,un){return X(ye,mn,un,!1)}function X(ye,mn,un,Mn){return Fe(e.getSynthesizedClone(ye)),Mn?Ge(ye,kn(e.setTextRange(e.createAssignment(ye,mn),un))):kn(e.setTextRange(e.createAssignment(ye,mn),un))}function pe(ye){if(S(ye)&&ye.original.kind===224){var mn=e.getOriginalNodeId(ye),un=e.hasModifier(ye.original,1);I[mn]=Ce(I[mn],ye.original,un)}return ye}function S(ye){return(e.getEmitFlags(ye)&4194304)!==0}function v(ye){var mn=e.getOriginalNodeId(ye),un=I[mn];if(un)return delete I[mn],e.append(un,ye);var Mn=e.getOriginalNode(ye);return e.isModuleOrEnumDeclaration(Mn)?e.append(Ae(un,Mn),ye):ye}function U(ye,mn){if(k.exportEquals)return ye;var un=mn.importClause;if(!un)return ye;un.name&&(ye=Ae(ye,un));var Mn=un.namedBindings;if(Mn)switch(Mn.kind){case 255:ye=Ae(ye,Mn);break;case 256:for(var tt=0,Vn=Mn.elements;tt<Vn.length;tt++){var ut=Vn[tt];ye=Ae(ye,ut)}break}return ye}function de(ye,mn){return k.exportEquals?ye:Ae(ye,mn)}function Ce(ye,mn,un){if(k.exportEquals)return ye;for(var Mn=0,tt=mn.declarationList.declarations;Mn<tt.length;Mn++){var Vn=tt[Mn];(Vn.initializer||un)&&(ye=Z(ye,Vn,un))}return ye}function Z(ye,mn,un){if(k.exportEquals)return ye;if(e.isBindingPattern(mn.name))for(var Mn=0,tt=mn.name.elements;Mn<tt.length;Mn++){var Vn=tt[Mn];e.isOmittedExpression(Vn)||(ye=Z(ye,Vn,un))}else if(!e.isGeneratedIdentifier(mn.name)){var ut=void 0;un&&(ye=We(ye,mn.name,e.getLocalName(mn)),ut=e.idText(mn.name)),ye=Ae(ye,mn,ut)}return ye}function Re(ye,mn){if(k.exportEquals)return ye;var un;if(e.hasModifier(mn,1)){var Mn=e.hasModifier(mn,512)?e.createLiteral("default"):mn.name;ye=We(ye,Mn,e.getLocalName(mn)),un=e.getTextOfIdentifierOrLiteral(Mn)}return mn.name&&(ye=Ae(ye,mn,un)),ye}function Ae(ye,mn,un){if(k.exportEquals)return ye;var Mn=e.getDeclarationName(mn),tt=k.exportSpecifiers.get(e.idText(Mn));if(tt)for(var Vn=0,ut=tt;Vn<ut.length;Vn++){var dt=ut[Vn];dt.name.escapedText!==un&&(ye=We(ye,dt.name,Mn))}return ye}function We(ye,mn,un,Mn){return ye=e.append(ye,be(mn,un,Mn)),ye}function be(ye,mn,un){var Mn=e.createExpressionStatement(Ge(ye,mn));return e.startOnNewLine(Mn),un||e.setEmitFlags(Mn,1536),Mn}function Ge(ye,mn){var un=e.isIdentifier(ye)?e.createLiteral(ye):ye;return e.setEmitFlags(mn,e.getEmitFlags(mn)|1536),e.setCommentRange(e.createCall(P,void 0,[un,mn]),mn)}function x(ye){switch(ye.kind){case 224:return _(ye);case 243:return L(ye);case 244:return C(ye);case 229:return j(ye);case 230:return Oe(ye);case 231:return a(ye);case 227:return Xn(ye);case 228:return ae(ye);case 237:return ce(ye);case 235:return Le(ye);case 236:return Je(ye);case 250:return Ze(ye);case 275:return Ue(ye);case 276:return cn(ye);case 239:return $e(ye);case 278:return sn(ye);case 222:return he(ye);case 321:return pe(ye);case 322:return v(ye);default:return ke(ye)}}function j(ye){var mn=ne;return ne=ye,ye=e.updateFor(ye,ye.initializer&&Pn(ye.initializer),e.visitNode(ye.condition,ke,e.isExpression),e.visitNode(ye.incrementor,ke,e.isExpression),e.visitNode(ye.statement,x,e.isStatement)),ne=mn,ye}function Oe(ye){var mn=ne;return ne=ye,ye=e.updateForIn(ye,Pn(ye.initializer),e.visitNode(ye.expression,ke,e.isExpression),e.visitNode(ye.statement,x,e.isStatement,e.liftToBlock)),ne=mn,ye}function a(ye){var mn=ne;return ne=ye,ye=e.updateForOf(ye,ye.awaitModifier,Pn(ye.initializer),e.visitNode(ye.expression,ke,e.isExpression),e.visitNode(ye.statement,x,e.isStatement,e.liftToBlock)),ne=mn,ye}function en(ye){return e.isVariableDeclarationList(ye)&&D(ye)}function Pn(ye){if(en(ye)){for(var mn=void 0,un=0,Mn=ye.declarations;un<Mn.length;un++){var tt=Mn[un];mn=e.append(mn,T(tt,!1)),tt.initializer||b(tt)}return mn?e.inlineExpressions(mn):e.createOmittedExpression()}else return e.visitEachChild(ye,x,F)}function Xn(ye){return e.updateDo(ye,e.visitNode(ye.statement,x,e.isStatement,e.liftToBlock),e.visitNode(ye.expression,ke,e.isExpression))}function ae(ye){return e.updateWhile(ye,e.visitNode(ye.expression,ke,e.isExpression),e.visitNode(ye.statement,x,e.isStatement,e.liftToBlock))}function ce(ye){return e.updateLabel(ye,ye.label,e.visitNode(ye.statement,x,e.isStatement,e.liftToBlock))}function Le(ye){return e.updateWith(ye,e.visitNode(ye.expression,ke,e.isExpression),e.visitNode(ye.statement,x,e.isStatement,e.liftToBlock))}function Je(ye){return e.updateSwitch(ye,e.visitNode(ye.expression,ke,e.isExpression),e.visitNode(ye.caseBlock,x,e.isCaseBlock))}function Ze(ye){var mn=ne;return ne=ye,ye=e.updateCaseBlock(ye,e.visitNodes(ye.clauses,x,e.isCaseOrDefaultClause)),ne=mn,ye}function Ue(ye){return e.updateCaseClause(ye,e.visitNode(ye.expression,ke,e.isExpression),e.visitNodes(ye.statements,x,e.isStatement))}function cn(ye){return e.visitEachChild(ye,x,F)}function $e(ye){return e.visitEachChild(ye,x,F)}function sn(ye){var mn=ne;return ne=ye,ye=e.updateCatchClause(ye,ye.variableDeclaration,e.visitNode(ye.block,x,e.isBlock)),ne=mn,ye}function he(ye){var mn=ne;return ne=ye,ye=e.visitEachChild(ye,x,F),ne=mn,ye}function ke(ye){return e.isDestructuringAssignment(ye)?c(ye):e.isImportCall(ye)?G(ye):ye.transformFlags&512||ye.transformFlags&524288?e.visitEachChild(ye,ke,F):ye}function G(ye){return e.createCall(e.createPropertyAccess(h,e.createIdentifier("import")),void 0,e.some(ye.arguments)?[e.visitNode(ye.arguments[0],ke)]:[])}function c(ye){return O(ye.left)?e.flattenDestructuringAssignment(ye,ke,F,0,!0):e.visitEachChild(ye,ke,F)}function O(ye){if(e.isAssignmentExpression(ye,!0))return O(ye.left);if(e.isSpreadElement(ye))return O(ye.expression);if(e.isObjectLiteralExpression(ye))return e.some(ye.properties,O);if(e.isArrayLiteralExpression(ye))return e.some(ye.elements,O);if(e.isShorthandPropertyAssignment(ye))return O(ye.name);if(e.isPropertyAssignment(ye))return O(ye.initializer);if(e.isIdentifier(ye)){var mn=ve.getReferencedExportContainer(ye);return mn!==void 0&&mn.kind===288}else return!1}function ee(ye){switch(ye.kind){case 88:case 83:return}return ye}function Te(ye,mn,un){if(mn.kind===288){var Mn=e.getOriginalNodeId(mn);w=mn,k=Pe[Mn],P=_e[Mn],$=re[Mn],h=se[Mn],$&&delete re[Mn],H(ye,mn,un),w=void 0,k=void 0,P=void 0,h=void 0,$=void 0}else H(ye,mn,un)}function Ne(ye,mn){return mn=d(ye,mn),yn(mn)?mn:ye===1?Sn(mn):ye===4?ze(mn):mn}function ze(ye){switch(ye.kind){case 280:return bn(ye)}return ye}function bn(ye){var mn=ye.name;if(!e.isGeneratedIdentifier(mn)&&!e.isLocalName(mn)){var un=ve.getReferencedImportDeclaration(mn);if(un){if(e.isImportClause(un))return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(mn),e.createPropertyAccess(e.getGeneratedNameForNode(un.parent),e.createIdentifier("default"))),ye);if(e.isImportSpecifier(un))return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(mn),e.createPropertyAccess(e.getGeneratedNameForNode(un.parent.parent.parent),e.getSynthesizedClone(un.propertyName||un.name))),ye)}}return ye}function Sn(ye){switch(ye.kind){case 75:return Kn(ye);case 208:return Xe(ye);case 206:case 207:return pn(ye);case 218:return le(ye)}return ye}function Kn(ye){if(e.getEmitFlags(ye)&4096){var mn=e.getExternalHelpersModuleName(w);return mn?e.createPropertyAccess(mn,ye):ye}if(!e.isGeneratedIdentifier(ye)&&!e.isLocalName(ye)){var un=ve.getReferencedImportDeclaration(ye);if(un){if(e.isImportClause(un))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(un.parent),e.createIdentifier("default")),ye);if(e.isImportSpecifier(un))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(un.parent.parent.parent),e.getSynthesizedClone(un.propertyName||un.name)),ye)}}return ye}function Xe(ye){if(e.isAssignmentOperator(ye.operatorToken.kind)&&e.isIdentifier(ye.left)&&!e.isGeneratedIdentifier(ye.left)&&!e.isLocalName(ye.left)&&!e.isDeclarationNameOfEnumOrNamespace(ye.left)){var mn=oe(ye.left);if(mn){for(var un=ye,Mn=0,tt=mn;Mn<tt.length;Mn++){var Vn=tt[Mn];un=Ge(Vn,kn(un))}return un}}return ye}function pn(ye){if((ye.operator===45||ye.operator===46)&&e.isIdentifier(ye.operand)&&!e.isGeneratedIdentifier(ye.operand)&&!e.isLocalName(ye.operand)&&!e.isDeclarationNameOfEnumOrNamespace(ye.operand)){var mn=oe(ye.operand);if(mn){for(var un=ye.kind===207?e.setTextRange(e.createPrefix(ye.operator,ye.operand),ye):ye,Mn=0,tt=mn;Mn<tt.length;Mn++){var Vn=tt[Mn];un=Ge(Vn,kn(un))}return ye.kind===207&&(un=ye.operator===45?e.createSubtract(kn(un),e.createLiteral(1)):e.createAdd(kn(un),e.createLiteral(1))),un}}return ye}function le(ye){return e.isImportMeta(ye)?e.createPropertyAccess(h,e.createIdentifier("meta")):ye}function oe(ye){var mn;if(!e.isGeneratedIdentifier(ye)){var un=ve.getReferencedImportDeclaration(ye)||ve.getReferencedValueDeclaration(ye);if(un){var Mn=ve.getReferencedExportContainer(ye,!1);Mn&&Mn.kind===288&&(mn=e.append(mn,e.getDeclarationName(un))),mn=e.addRange(mn,k&&k.exportedBindings[e.getOriginalNodeId(un)])}}return mn}function kn(ye){return $===void 0&&($=[]),$[e.getNodeId(ye)]=!0,ye}function yn(ye){return $&&ye.id&&$[ye.id]}}e.transformSystemModule=o})(ln||(ln={}));var ln;(function(e){function o(F){var qe=F.getCompilerOptions(),Se=F.onEmitNode,Fe=F.onSubstituteNode;F.onEmitNode=H,F.onSubstituteNode=Pe,F.enableEmitNotification(288),F.enableSubstitution(75);var He;return e.chainBundle(ve);function ve(_e){if(_e.isDeclarationFile)return _e;if(e.isExternalModule(_e)||qe.isolatedModules){var re=e.createExternalHelpersImportDeclarationIfNeeded(_e,qe);if(re){var se=[],w=e.addPrologue(se,_e.statements);return e.append(se,re),e.addRange(se,e.visitNodes(_e.statements,ie,e.isStatement,w)),e.updateSourceFileNode(_e,e.setTextRange(e.createNodeArray(se),_e.statements))}else return e.visitEachChild(_e,ie,F)}return _e}function ie(_e){switch(_e.kind){case 252:return;case 258:return d(_e)}return _e}function d(_e){return _e.isExportEquals?void 0:_e}function H(_e,re,se){e.isSourceFile(re)?(He=e.createMap(),Se(_e,re,se),He=void 0):Se(_e,re,se)}function Pe(_e,re){return re=Fe(_e,re),He&&e.isIdentifier(re)&&e.getEmitFlags(re)&4096?I(re):re}function I(_e){var re=e.idText(_e),se=He.get(re);return se||He.set(re,se=e.createFileLevelUniqueName(re)),se}}e.transformES2015Module=o})(ln||(ln={}));var ln;(function(e){function o(Se){return e.isVariableDeclaration(Se)||e.isPropertyDeclaration(Se)||e.isPropertySignature(Se)||e.isBindingElement(Se)||e.isSetAccessor(Se)||e.isGetAccessor(Se)||e.isConstructSignatureDeclaration(Se)||e.isCallSignatureDeclaration(Se)||e.isMethodDeclaration(Se)||e.isMethodSignature(Se)||e.isFunctionDeclaration(Se)||e.isParameter(Se)||e.isTypeParameterDeclaration(Se)||e.isExpressionWithTypeArguments(Se)||e.isImportEqualsDeclaration(Se)||e.isTypeAliasDeclaration(Se)||e.isConstructorDeclaration(Se)||e.isIndexSignatureDeclaration(Se)||e.isPropertyAccessExpression(Se)}e.canProduceDiagnostics=o;function F(Se){if(e.isSetAccessor(Se)||e.isGetAccessor(Se))return Fe;return e.isMethodSignature(Se)||e.isMethodDeclaration(Se)?ve:qe(Se);function Fe(d){var H=He(d);return H!==void 0?{diagnosticMessage:H,errorNode:Se,typeName:Se.name}:void 0}function He(d){return e.hasModifier(Se,32)?d.errorModuleName?d.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:Se.parent.kind===244?d.errorModuleName?d.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:d.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 ve(d){var H=ie(d);return H!==void 0?{diagnosticMessage:H,errorNode:Se,typeName:Se.name}:void 0}function ie(d){return e.hasModifier(Se,32)?d.errorModuleName?d.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:Se.parent.kind===244?d.errorModuleName?d.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:d.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 qe(Se){if(e.isVariableDeclaration(Se)||e.isPropertyDeclaration(Se)||e.isPropertySignature(Se)||e.isPropertyAccessExpression(Se)||e.isBindingElement(Se)||e.isConstructorDeclaration(Se))return He;return e.isSetAccessor(Se)||e.isGetAccessor(Se)?ve:e.isConstructSignatureDeclaration(Se)||e.isCallSignatureDeclaration(Se)||e.isMethodDeclaration(Se)||e.isMethodSignature(Se)||e.isFunctionDeclaration(Se)||e.isIndexSignatureDeclaration(Se)?ie:e.isParameter(Se)?e.isParameterPropertyDeclaration(Se,Se.parent)&&e.hasModifier(Se.parent,8)?He:d:e.isTypeParameterDeclaration(Se)?Pe:e.isExpressionWithTypeArguments(Se)?I:e.isImportEqualsDeclaration(Se)?_e:e.isTypeAliasDeclaration(Se)?re:e.Debug.assertNever(Se,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[Se.kind]);function Fe(se){if(Se.kind===241||Se.kind===190)return se.errorModuleName?se.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(Se.kind===158||Se.kind===193||Se.kind===157||Se.kind===155&&e.hasModifier(Se.parent,8))return e.hasModifier(Se,32)?se.errorModuleName?se.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:Se.parent.kind===244||Se.kind===155?se.errorModuleName?se.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:se.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 He(se){var w=Fe(se);return w!==void 0?{diagnosticMessage:w,errorNode:Se,typeName:Se.name}:void 0}function ve(se){var w;return Se.kind===163?e.hasModifier(Se,32)?w=se.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:w=se.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.hasModifier(Se,32)?w=se.errorModuleName?se.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:w=se.errorModuleName?se.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:w,errorNode:Se.name,typeName:Se.name}}function ie(se){var w;switch(Se.kind){case 165:w=se.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 164:w=se.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 166:w=se.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 160:case 159:e.hasModifier(Se,32)?w=se.errorModuleName?se.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:Se.parent.kind===244?w=se.errorModuleName?se.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:w=se.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 243:w=se.errorModuleName?se.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: "+Se.kind)}return{diagnosticMessage:w,errorNode:Se.name||Se}}function d(se){var w=H(se);return w!==void 0?{diagnosticMessage:w,errorNode:Se,typeName:Se.name}:void 0}function H(se){switch(Se.parent.kind){case 161:return se.errorModuleName?se.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 165:case 170:return se.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 164:return se.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 166:return se.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 160:case 159:return e.hasModifier(Se.parent,32)?se.errorModuleName?se.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:Se.parent.parent.kind===244?se.errorModuleName?se.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:se.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 243:case 169:return se.errorModuleName?se.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 163:case 162:return se.errorModuleName?se.accessibility===2?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: "+e.SyntaxKind[Se.parent.kind])}}function Pe(){var se;switch(Se.parent.kind){case 244:se=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 245:se=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 185:se=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 170:case 165:se=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 164:se=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 160:case 159:e.hasModifier(Se.parent,32)?se=e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:Se.parent.parent.kind===244?se=e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:se=e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 169:case 243:se=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 246:se=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: "+Se.parent.kind)}return{diagnosticMessage:se,errorNode:Se,typeName:Se.name}}function I(){var se;return Se.parent.parent.kind===244?se=e.isHeritageClause(Se.parent)&&Se.parent.token===112?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:se=e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:se,errorNode:Se,typeName:e.getNameOfDeclaration(Se.parent.parent)}}function _e(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:Se,typeName:Se.name}}function re(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Se.type,typeName:Se.name}}}e.createGetSymbolAccessibilityDiagnosticForNode=qe})(ln||(ln={}));var ln;(function(e){function o(_e,re,se){if(se&&e.isJsonSourceFile(se))return[];var w=_e.getCompilerOptions(),k=e.transformNodes(re,_e,w,se?[se]:e.filter(_e.getSourceFiles(),e.isSourceFileNotJson),[Fe],!1);return k.diagnostics}e.getDeclarationDiagnostics=o;function F(_e,re){var se=re.text.substring(_e.pos,_e.end);return e.stringContains(se,"@internal")}function qe(_e,re){var se=e.getParseTreeNode(_e);if(se&&se.kind===155){var w=se.parent.parameters.indexOf(se),k=w>0?se.parent.parameters[w-1]:void 0,P=re.text,h=k?e.concatenate(e.getTrailingCommentRanges(P,e.skipTrivia(P,k.end+1,!1,!0)),e.getLeadingCommentRanges(P,_e.pos)):e.getTrailingCommentRanges(P,e.skipTrivia(P,_e.pos,!1,!0));return h&&h.length&&F(e.last(h),re)}var Y=se&&e.getLeadingCommentRangesOfNode(se,re);return!!e.forEach(Y,function(ne){return F(ne,re)})}e.isInternalDeclaration=qe;var Se=1024|2048|4096|8|524288|4|1;function Fe(_e){var re=function(){return e.Debug.fail("Diagnostic emitted without context")},se=re,w=!0,k=!1,P=!1,h=!1,Y=!1,ne,$,J,fe,R,K,z=_e.getEmitHost(),Ee={trackSymbol:pe,reportInaccessibleThisError:U,reportInaccessibleUniqueSymbolError:v,reportPrivateInBaseOfClassExpression:S,reportLikelyUnsafeImportRequiredError:de,moduleResolverHost:z,trackReferencedAmbientModule:Q,trackExternalModuleSymbolOfImportTypeNode:X},B,V,m,y,L,C=_e.getEmitResolver(),_=_e.getCompilerOptions(),b=_.noResolve,D=_.stripInternal;return Z;function T(le){if(!le)return;$=$||e.createMap();for(var oe=0,kn=le;oe<kn.length;oe++){var yn=kn[oe];$.set(yn,!0)}}function Q(le,oe){var kn=C.getTypeReferenceDirectivesForSymbol(oe,67108863);if(e.length(kn))return T(kn);var yn=e.getSourceFileOfNode(le);m.set(""+e.getOriginalNodeId(yn),yn)}function N(le){if(le.accessibility===0){if(le&&le.aliasesToMakeVisible)if(!J)J=le.aliasesToMakeVisible;else for(var oe=0,kn=le.aliasesToMakeVisible;oe<kn.length;oe++){var yn=kn[oe];e.pushIfUnique(J,yn)}}else{var ye=se(le);ye&&(ye.typeName?_e.addDiagnostic(e.createDiagnosticForNode(le.errorNode||ye.errorNode,ye.diagnosticMessage,e.getTextOfNode(ye.typeName),le.errorSymbolName,le.errorModuleName)):_e.addDiagnostic(e.createDiagnosticForNode(le.errorNode||ye.errorNode,ye.diagnosticMessage,le.errorSymbolName,le.errorModuleName)))}}function X(le){k||(K||(K=[])).push(le)}function pe(le,oe,kn){if(le.flags&262144)return;N(C.isSymbolAccessible(le,oe,kn,!0)),T(C.getTypeReferenceDirectivesForSymbol(le,kn))}function S(le){B&&_e.addDiagnostic(e.createDiagnosticForNode(B,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,le))}function v(){B&&_e.addDiagnostic(e.createDiagnosticForNode(B,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(B),"unique symbol"))}function U(){B&&_e.addDiagnostic(e.createDiagnosticForNode(B,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(B),"this"))}function de(le){B&&_e.addDiagnostic(e.createDiagnosticForNode(B,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,e.declarationNameToString(B),le))}function Ce(le,oe){var kn=se;se=function(mn){return{diagnosticMessage:mn.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:mn.errorNode||le}};var yn=C.getDeclarationStatementsForSourceFile(le,Se,Ee,oe);return se=kn,yn}function Z(le){if(le.kind===288&&le.isDeclarationFile)return le;if(le.kind===289){k=!0,m=e.createMap(),y=e.createMap();var oe=!1,kn=e.createBundle(e.map(le.sourceFiles,function(st){if(st.isDeclarationFile)return;if(oe=oe||st.hasNoDefaultLib,V=st,ne=st,J=void 0,R=!1,fe=e.createMap(),se=re,h=!1,Y=!1,Re(st,m),Ae(st,y),e.isExternalOrCommonJsModule(st)||e.isJsonSourceFile(st)){P=!1,w=!1;var qn=e.isSourceFileJS(st)?e.createNodeArray(Ce(st,!0)):e.visitNodes(st.statements,he),Ie=e.updateSourceFileNode(st,[e.createModuleDeclaration([],[e.createModifier(129)],e.createLiteral(e.getResolvedExternalModuleName(_e.getEmitHost(),st)),e.createModuleBlock(e.setTextRange(e.createNodeArray(cn(qn)),st.statements)))],!0,[],[],!1,[]);return Ie}w=!0;var De=e.isSourceFileJS(st)?e.createNodeArray(Ce(st)):e.visitNodes(st.statements,he);return e.updateSourceFileNode(st,cn(De),!0,[],[],!1,[])}),e.mapDefined(le.prepends,function(st){if(st.kind===291){var qn=e.createUnparsedSourceFile(st,"dts",D);return oe=oe||!!qn.hasNoDefaultLib,Re(qn,m),T(qn.typeReferenceDirectives),Ae(qn,y),qn}return st}));kn.syntheticFileReferences=[],kn.syntheticTypeReferences=ot(),kn.syntheticLibReferences=dt(),kn.hasNoDefaultLib=oe;var yn=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(le,z,!0).declarationFilePath)),ye=wt(kn.syntheticFileReferences,yn);return m.forEach(ye),kn}w=!0,h=!1,Y=!1,ne=le,V=le,se=re,k=!1,P=!1,R=!1,J=void 0,fe=e.createMap(),$=void 0,m=Re(V,e.createMap()),y=Ae(V,e.createMap());var mn=[],un=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(le,z,!0).declarationFilePath)),Mn=wt(mn,un),tt;if(e.isSourceFileJS(V))tt=e.createNodeArray(Ce(le)),m.forEach(Mn),L=e.filter(tt,e.isAnyImportSyntax);else{var Vn=e.visitNodes(le.statements,he);tt=e.setTextRange(e.createNodeArray(cn(Vn)),le.statements),m.forEach(Mn),L=e.filter(tt,e.isAnyImportSyntax),e.isExternalModule(le)&&(!P||h&&!Y)&&(tt=e.setTextRange(e.createNodeArray(Or(tt,[e.createEmptyExports()])),tt))}var ut=e.updateSourceFileNode(le,tt,!0,mn,ot(),le.hasNoDefaultLib,dt());return ut.exportedModulesFromDeclarationEmit=K,ut;function dt(){return e.map(e.arrayFrom(y.keys()),function(st){return{fileName:st,pos:-1,end:-1}})}function ot(){return $?e.mapDefined(e.arrayFrom($.keys()),ct):[]}function ct(st){if(L)for(var qn=0,Ie=L;qn<Ie.length;qn++){var De=Ie[qn];if(e.isImportEqualsDeclaration(De)&&e.isExternalModuleReference(De.moduleReference)){var _n=De.moduleReference.expression;if(e.isStringLiteralLike(_n)&&_n.text===st)return}else if(e.isImportDeclaration(De)&&e.isStringLiteral(De.moduleSpecifier)&&De.moduleSpecifier.text===st)return}return{fileName:st,pos:-1,end:-1}}function wt(st,qn){return function(Ie){var De;if(Ie.isDeclarationFile)De=Ie.fileName;else{if(k&&e.contains(le.sourceFiles,Ie))return;var _n=e.getOutputPathsFor(Ie,z,!0);De=_n.declarationFilePath||_n.jsFilePath||Ie.fileName}if(De){var _t=e.moduleSpecifiers.getModuleSpecifier(ma(ma({},_),{baseUrl:_.baseUrl&&e.toPath(_.baseUrl,z.getCurrentDirectory(),z.getCanonicalFileName)}),V,e.toPath(qn,z.getCurrentDirectory(),z.getCanonicalFileName),e.toPath(De,z.getCurrentDirectory(),z.getCanonicalFileName),z,z.getSourceFiles(),void 0,z.redirectTargetsMap);if(!e.pathIsRelative(_t)){T([_t]);return}var It=e.getRelativePathToDirectoryOrUrl(qn,De,z.getCurrentDirectory(),z.getCanonicalFileName,!1);if(e.startsWith(It,"./")&&e.hasExtension(It)&&(It=It.substring(2)),e.startsWith(It,"node_modules/")||It.indexOf("/node_modules/")!==-1)return;st.push({pos:-1,end:-1,fileName:It})}}}}function Re(le,oe){return b||!e.isUnparsedSource(le)&&e.isSourceFileJS(le)||e.forEach(le.referencedFiles,function(kn){var yn=z.getSourceFileFromReference(le,kn);yn&&oe.set(""+e.getOriginalNodeId(yn),yn)}),oe}function Ae(le,oe){return e.forEach(le.libReferenceDirectives,function(kn){var yn=z.getLibFileFromReference(kn);yn&&oe.set(kn.fileName.toLocaleLowerCase(),!0)}),oe}function We(le){if(le.kind===75)return le;return le.kind===189?e.updateArrayBindingPattern(le,e.visitNodes(le.elements,oe)):e.updateObjectBindingPattern(le,e.visitNodes(le.elements,oe));function oe(kn){return kn.kind===214?kn:e.updateBindingElement(kn,kn.dotDotDotToken,kn.propertyName,We(kn.name),Ge(kn)?kn.initializer:void 0)}}function be(le,oe,kn){var yn;R||(yn=se,se=e.createGetSymbolAccessibilityDiagnosticForNode(le));var ye=e.updateParameter(le,void 0,ve(le,oe),le.dotDotDotToken,We(le.name),C.isOptionalParameter(le)?le.questionToken||e.createToken(57):void 0,j(le,kn||le.type,!0),x(le));return R||(se=yn),ye}function Ge(le){return H(le)&&C.isLiteralConstDeclaration(e.getParseTreeNode(le))}function x(le){return Ge(le)?C.createLiteralConstValue(e.getParseTreeNode(le),Ee):void 0}function j(le,oe,kn){if(!kn&&e.hasModifier(le,8))return;if(Ge(le))return;var yn=le.kind===155&&(C.isRequiredInitializedParameter(le)||C.isOptionalUninitializedParameterProperty(le));if(oe&&!yn)return e.visitNode(oe,$e);if(!e.getParseTreeNode(le))return oe?e.visitNode(oe,$e):e.createKeywordTypeNode(124);if(le.kind===163)return e.createKeywordTypeNode(124);B=le.name;var ye;if(R||(ye=se,se=e.createGetSymbolAccessibilityDiagnosticForNode(le)),le.kind===241||le.kind===190)return mn(C.createTypeOfDeclaration(le,ne,Se,Ee));if(le.kind===155||le.kind===158||le.kind===157)return le.initializer?mn(C.createTypeOfDeclaration(le,ne,Se,Ee,yn)||C.createTypeOfExpression(le.initializer,ne,Se,Ee)):mn(C.createTypeOfDeclaration(le,ne,Se,Ee,yn));return mn(C.createReturnTypeOfSignatureDeclaration(le,ne,Se,Ee));function mn(un){return B=void 0,R||(se=ye),un||e.createKeywordTypeNode(124)}}function Oe(le){le=e.getParseTreeNode(le);switch(le.kind){case 243:case 248:case 245:case 244:case 246:case 247:return!C.isDeclarationVisible(le);case 241:return!a(le);case 252:case 253:case 259:case 258:return!1}return!1}function a(le){return e.isOmittedExpression(le)?!1:e.isBindingPattern(le.name)?e.some(le.name.elements,a):C.isDeclarationVisible(le)}function en(le,oe,kn){if(e.hasModifier(le,8))return;var yn=e.map(oe,function(ye){return be(ye,kn)});return yn?e.createNodeArray(yn,oe.hasTrailingComma):void 0}function Pn(le,oe){var kn;if(!oe){var yn=e.getThisParameter(le);yn&&(kn=[be(yn)])}if(e.isSetAccessorDeclaration(le)){var ye=void 0;if(!oe){var mn=e.getSetAccessorValueParameter(le);if(mn){var un=Xe(le,C.getAllAccessorDeclarations(le));ye=be(mn,void 0,un)}}ye||(ye=e.createParameter(void 0,void 0,void 0,"value")),kn=e.append(kn,ye)}return e.createNodeArray(kn||e.emptyArray)}function Xn(le,oe){return e.hasModifier(le,8)?void 0:e.visitNodes(oe,$e)}function ae(le){return e.isSourceFile(le)||e.isTypeAliasDeclaration(le)||e.isModuleDeclaration(le)||e.isClassDeclaration(le)||e.isInterfaceDeclaration(le)||e.isFunctionLike(le)||e.isIndexSignatureDeclaration(le)||e.isMappedTypeNode(le)}function ce(le,oe){var kn=C.isEntityNameVisible(le,oe);N(kn),T(C.getTypeReferenceDirectivesForEntityName(le))}function Le(le,oe){return e.hasJSDocNodes(le)&&e.hasJSDocNodes(oe)&&(le.jsDoc=oe.jsDoc),e.setCommentRange(le,e.getCommentRange(oe))}function Je(le,oe){if(!oe)return;if(P=P||le.kind!==248&&le.kind!==187,e.isStringLiteralLike(oe))if(k){var kn=e.getExternalModuleNameFromDeclaration(_e.getEmitHost(),C,le);if(kn)return e.createLiteral(kn)}else{var yn=C.getSymbolOfExternalModuleSpecifier(oe);yn&&(K||(K=[])).push(yn)}return oe}function Ze(le){if(!C.isDeclarationVisible(le))return;if(le.moduleReference.kind===263){var oe=e.getExternalModuleImportEqualsDeclarationExpression(le);return e.updateImportEqualsDeclaration(le,void 0,le.modifiers,le.name,e.updateExternalModuleReference(le.moduleReference,Je(le,oe)))}else{var kn=se;return se=e.createGetSymbolAccessibilityDiagnosticForNode(le),ce(le.moduleReference,ne),se=kn,le}}function Ue(le){if(!le.importClause)return e.updateImportDeclaration(le,void 0,le.modifiers,le.importClause,Je(le,le.moduleSpecifier));var oe=le.importClause&&le.importClause.name&&C.isDeclarationVisible(le.importClause)?le.importClause.name:void 0;if(!le.importClause.namedBindings)return oe&&e.updateImportDeclaration(le,void 0,le.modifiers,e.updateImportClause(le.importClause,oe,void 0),Je(le,le.moduleSpecifier));if(le.importClause.namedBindings.kind===255){var kn=C.isDeclarationVisible(le.importClause.namedBindings)?le.importClause.namedBindings:void 0;return oe||kn?e.updateImportDeclaration(le,void 0,le.modifiers,e.updateImportClause(le.importClause,oe,kn),Je(le,le.moduleSpecifier)):void 0}var yn=e.mapDefined(le.importClause.namedBindings.elements,function(ye){return C.isDeclarationVisible(ye)?ye:void 0});if(yn&&yn.length||oe)return e.updateImportDeclaration(le,void 0,le.modifiers,e.updateImportClause(le.importClause,oe,yn&&yn.length?e.updateNamedImports(le.importClause.namedBindings,yn):void 0),Je(le,le.moduleSpecifier))}function cn(le){for(;e.length(J);){var oe=J.shift();if(!e.isLateVisibilityPaintedStatement(oe))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+(e.SyntaxKind?e.SyntaxKind[oe.kind]:oe.kind));var kn=w;w=oe.parent&&e.isSourceFile(oe.parent)&&!(e.isExternalModule(oe.parent)&&k);var yn=G(oe);w=kn,fe.set(""+e.getOriginalNodeId(oe),yn)}return e.visitNodes(le,ye);function ye(mn){if(e.isLateVisibilityPaintedStatement(mn)){var un=""+e.getOriginalNodeId(mn);if(fe.has(un)){var Mn=fe.get(un);return fe.delete(un),Mn&&((e.isArray(Mn)?e.some(Mn,e.needsScopeMarker):e.needsScopeMarker(Mn))&&(h=!0),e.isSourceFile(mn.parent)&&(e.isArray(Mn)?e.some(Mn,e.isExternalModuleIndicator):e.isExternalModuleIndicator(Mn))&&(P=!0)),Mn}}return mn}}function $e(le){if(Ne(le))return;if(e.isDeclaration(le)){if(Oe(le))return;if(e.hasDynamicName(le)&&!C.isLateBound(e.getParseTreeNode(le)))return}if(e.isFunctionLike(le)&&C.isImplementationOfOverload(le))return;if(e.isSemicolonClassElement(le))return;var oe;ae(le)&&(oe=ne,ne=le);var kn=se,yn=e.canProduceDiagnostics(le),ye=R,mn=(le.kind===172||le.kind===185)&&le.parent.kind!==246;if((e.isMethodDeclaration(le)||e.isMethodSignature(le))&&e.hasModifier(le,8))return le.symbol&&le.symbol.declarations&&le.symbol.declarations[0]!==le?void 0:qn(e.createProperty(void 0,Sn(le),le.name,void 0,void 0,void 0));if(yn&&!R&&(se=e.createGetSymbolAccessibilityDiagnosticForNode(le)),e.isTypeQueryNode(le)&&ce(le.exprName,ne),mn&&(R=!0),I(le))switch(le.kind){case 215:{(e.isEntityName(le.expression)||e.isEntityNameExpression(le.expression))&&ce(le.expression,ne);var un=e.visitEachChild(le,$e,_e);return qn(e.updateExpressionWithTypeArguments(un,e.parenthesizeTypeParameters(un.typeArguments),un.expression))}case 168:{ce(le.typeName,ne);var un=e.visitEachChild(le,$e,_e);return qn(e.updateTypeReferenceNode(un,un.typeName,e.parenthesizeTypeParameters(un.typeArguments)))}case 165:return qn(e.updateConstructSignature(le,Xn(le,le.typeParameters),en(le,le.parameters),j(le,le.type)));case 161:{var Mn=e.hasModifier(le,8),tt=e.createSignatureDeclaration(161,Mn?void 0:Xn(le,le.typeParameters),Mn?void 0:en(le,le.parameters,0),void 0);return tt.modifiers=e.createNodeArray(Sn(le)),qn(tt)}case 160:{var Vn=e.createSignatureDeclaration(159,Xn(le,le.typeParameters),en(le,le.parameters),j(le,le.type));return Vn.name=le.name,Vn.modifiers=e.createNodeArray(Sn(le)),Vn.questionToken=le.questionToken,qn(Vn)}case 162:{var Mn=e.hasModifier(le,8),ut=Xe(le,C.getAllAccessorDeclarations(le));return qn(e.updateGetAccessor(le,void 0,Sn(le),le.name,Pn(le,Mn),Mn?void 0:j(le,ut),void 0))}case 163:return qn(e.updateSetAccessor(le,void 0,Sn(le),le.name,Pn(le,e.hasModifier(le,8)),void 0));case 158:return qn(e.updateProperty(le,void 0,Sn(le),le.name,le.questionToken,e.hasModifier(le,8)?void 0:j(le,le.type),x(le)));case 157:return qn(e.updatePropertySignature(le,Sn(le),le.name,le.questionToken,e.hasModifier(le,8)?void 0:j(le,le.type),x(le)));case 159:return qn(e.updateMethodSignature(le,Xn(le,le.typeParameters),en(le,le.parameters),j(le,le.type),le.name,le.questionToken));case 164:return qn(e.updateCallSignature(le,Xn(le,le.typeParameters),en(le,le.parameters),j(le,le.type)));case 166:return qn(e.updateIndexSignature(le,void 0,Sn(le),en(le,le.parameters),e.visitNode(le.type,$e)||e.createKeywordTypeNode(124)));case 241:return e.isBindingPattern(le.name)?O(le.name):(mn=!0,R=!0,qn(e.updateVariableDeclaration(le,le.name,j(le,le.type),x(le))));case 154:return sn(le)&&(le.default||le.constraint)?qn(e.updateTypeParameterDeclaration(le,le.name,void 0,void 0)):qn(e.visitEachChild(le,$e,_e));case 179:{var dt=e.visitNode(le.checkType,$e),ot=e.visitNode(le.extendsType,$e),ct=ne;ne=le.trueType;var wt=e.visitNode(le.trueType,$e);ne=ct;var st=e.visitNode(le.falseType,$e);return qn(e.updateConditionalTypeNode(le,dt,ot,wt,st))}case 169:return qn(e.updateFunctionTypeNode(le,e.visitNodes(le.typeParameters,$e),en(le,le.parameters),e.visitNode(le.type,$e)));case 170:return qn(e.updateConstructorTypeNode(le,e.visitNodes(le.typeParameters,$e),en(le,le.parameters),e.visitNode(le.type,$e)));case 187:return e.isLiteralImportTypeNode(le)?qn(e.updateImportTypeNode(le,e.updateLiteralTypeNode(le.argument,Je(le,le.argument.literal)),le.qualifier,e.visitNodes(le.typeArguments,$e,e.isTypeNode),le.isTypeOf)):qn(le);default:e.Debug.assertNever(le,"Attempted to process unhandled node kind: "+e.SyntaxKind[le.kind])}return qn(e.visitEachChild(le,$e,_e));function qn(Ie){return Ie&&yn&&e.hasDynamicName(le)&&Te(le),ae(le)&&(ne=oe),yn&&!R&&(se=kn),mn&&(R=ye),Ie===le?Ie:Ie&&e.setOriginalNode(Le(Ie,le),le)}}function sn(le){return le.parent.kind===160&&e.hasModifier(le.parent,8)}function he(le){if(!Pe(le))return;if(Ne(le))return;switch(le.kind){case 259:return e.isSourceFile(le.parent)&&(P=!0),Y=!0,e.updateExportDeclaration(le,void 0,le.modifiers,le.exportClause,Je(le,le.moduleSpecifier));case 258:{if(e.isSourceFile(le.parent)&&(P=!0),Y=!0,le.expression.kind===75)return le;var oe=e.createOptimisticUniqueName("_default");se=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:le}};var kn=e.createVariableDeclaration(oe,C.createTypeOfExpression(le.expression,le,Se,Ee),void 0),yn=e.createVariableStatement(w?[e.createModifier(129)]:[],e.createVariableDeclarationList([kn],2));return[yn,e.updateExportAssignment(le,le.decorators,le.modifiers,oe)]}}var ye=G(le);return fe.set(""+e.getOriginalNodeId(le),ye),le}function ke(le){if(e.isImportEqualsDeclaration(le)||e.hasModifier(le,512))return le;var oe=e.getMutableClone(le),kn=e.createModifiersFromModifierFlags(e.getModifierFlags(le)&(3071^1));return oe.modifiers=kn.length?e.createNodeArray(kn):void 0,oe}function G(le){if(Ne(le))return;switch(le.kind){case 252:return Ze(le);case 253:return Ue(le)}if(e.isDeclaration(le)&&Oe(le))return;if(e.isFunctionLike(le)&&C.isImplementationOfOverload(le))return;var oe;ae(le)&&(oe=ne,ne=le);var kn=e.canProduceDiagnostics(le),yn=se;kn&&(se=e.createGetSymbolAccessibilityDiagnosticForNode(le));var ye=w;switch(le.kind){case 246:return Tt(e.updateTypeAliasDeclaration(le,void 0,Sn(le),le.name,e.visitNodes(le.typeParameters,$e,e.isTypeParameterDeclaration),e.visitNode(le.type,$e,e.isTypeNode)));case 245:return Tt(e.updateInterfaceDeclaration(le,void 0,Sn(le),le.name,Xn(le,le.typeParameters),pn(le.heritageClauses),e.visitNodes(le.members,$e)));case 243:{var mn=Tt(e.updateFunctionDeclaration(le,void 0,Sn(le),void 0,le.name,Xn(le,le.typeParameters),en(le,le.parameters),j(le,le.type),void 0));if(mn&&C.isExpandoFunctionDeclaration(le)){var un=C.getPropertiesOfContainerFunction(le),Mn=e.createModuleDeclaration(void 0,void 0,mn.name||e.createIdentifier("_default"),e.createModuleBlock([]),16);Mn.flags^=8,Mn.parent=ne,Mn.locals=e.createSymbolTable(un),Mn.symbol=un[0].parent;var tt=e.mapDefined(un,function(yt){if(!e.isPropertyAccessExpression(yt.valueDeclaration))return;se=e.createGetSymbolAccessibilityDiagnosticForNode(yt.valueDeclaration);var vt=C.createTypeOfDeclaration(yt.valueDeclaration,Mn,Se,Ee);se=yn;var Ke=e.createVariableDeclaration(e.unescapeLeadingUnderscores(yt.escapedName),vt,void 0);return e.createVariableStatement(void 0,e.createVariableDeclarationList([Ke]))}),Vn=e.createModuleDeclaration(void 0,Sn(le),le.name,e.createModuleBlock(tt),16);if(!e.hasModifier(mn,512))return[mn,Vn];var ut=e.createModifiersFromModifierFlags(e.getModifierFlags(mn)&~513|2),dt=e.updateFunctionDeclaration(mn,void 0,ut,void 0,mn.name,mn.typeParameters,mn.parameters,mn.type,void 0),ot=e.updateModuleDeclaration(Vn,void 0,ut,Vn.name,Vn.body),ct=e.createExportAssignment(void 0,void 0,!1,Vn.name);return e.isSourceFile(le.parent)&&(P=!0),Y=!0,[dt,ot,ct]}else return mn}case 248:{w=!1;var wt=le.body;if(wt&&wt.kind===249){var st=h,qn=Y;Y=!1,h=!1;var Ie=e.visitNodes(wt.statements,he),De=cn(Ie);le.flags&8388608&&(h=!1),!e.isGlobalScopeAugmentation(le)&&!bn(De)&&!Y&&(h?De=e.createNodeArray(Or(De,[e.createEmptyExports()])):De=e.visitNodes(De,ke));var _n=e.updateModuleBlock(wt,De);w=ye,h=st,Y=qn;var _t=Sn(le);return Tt(e.updateModuleDeclaration(le,void 0,_t,e.isExternalModuleAugmentation(le)?Je(le,le.name):le.name,_n))}else{w=ye;var _t=Sn(le);w=!1,e.visitNode(wt,he);var It=""+e.getOriginalNodeId(wt),_n=fe.get(It);return fe.delete(It),Tt(e.updateModuleDeclaration(le,void 0,_t,le.name,_n))}}case 244:{var ut=e.createNodeArray(Sn(le)),Ht=Xn(le,le.typeParameters),nr=e.getFirstConstructorWithBody(le),vr=void 0;if(nr){var Qr=se;vr=e.compact(e.flatMap(nr.parameters,function(vt){if(!e.hasModifier(vt,92)||Ne(vt))return;if(se=e.createGetSymbolAccessibilityDiagnosticForNode(vt),vt.name.kind===75)return Le(e.createProperty(void 0,Sn(vt),vt.name,vt.questionToken,j(vt,vt.type),x(vt)),vt);return Ke(vt.name);function Ke(Rn){for(var nt,tr=0,xa=Rn.elements;tr<xa.length;tr++){var Ba=xa[tr];if(e.isOmittedExpression(Ba))continue;e.isBindingPattern(Ba.name)&&(nt=e.concatenate(nt,Ke(Ba.name))),nt=nt||[],nt.push(e.createProperty(void 0,Sn(vt),Ba.name,void 0,j(Ba,void 0),void 0))}return nt}})),se=Qr}var Wr=e.createNodeArray(e.concatenate(vr,e.visitNodes(le.members,$e))),gt=e.getEffectiveBaseTypeNode(le);if(gt&&!e.isEntityNameExpression(gt.expression)&&gt.expression.kind!==99){var ba=le.name?e.unescapeLeadingUnderscores(le.name.escapedText):"default",kt=e.createOptimisticUniqueName(ba+"_base");se=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:gt,typeName:le.name}};var jn=e.createVariableDeclaration(kt,C.createTypeOfExpression(gt.expression,le,Se,Ee),void 0),Ut=e.createVariableStatement(w?[e.createModifier(129)]:[],e.createVariableDeclarationList([jn],2)),ft=e.createNodeArray(e.map(le.heritageClauses,function(vt){if(vt.token===89){var Ke=se;se=e.createGetSymbolAccessibilityDiagnosticForNode(vt.types[0]);var Rn=e.updateHeritageClause(vt,e.map(vt.types,function(nt){return e.updateExpressionWithTypeArguments(nt,e.visitNodes(nt.typeArguments,$e),kt)}));return se=Ke,Rn}return e.updateHeritageClause(vt,e.visitNodes(e.createNodeArray(e.filter(vt.types,function(nt){return e.isEntityNameExpression(nt.expression)||nt.expression.kind===99})),$e))}));return[Ut,Tt(e.updateClassDeclaration(le,void 0,ut,le.name,Ht,ft,Wr))]}else{var ft=pn(le.heritageClauses);return Tt(e.updateClassDeclaration(le,void 0,ut,le.name,Ht,ft,Wr))}}case 224:return Tt(c(le));case 247:return Tt(e.updateEnumDeclaration(le,void 0,e.createNodeArray(Sn(le)),le.name,e.createNodeArray(e.mapDefined(le.members,function(yt){if(Ne(yt))return;var vt=C.getConstantValue(yt);return Le(e.updateEnumMember(yt,yt.name,vt!==void 0?e.createLiteral(vt):void 0),yt)}))))}return e.Debug.assertNever(le,"Unhandled top-level node in declaration emit: "+e.SyntaxKind[le.kind]);function Tt(yt){return ae(le)&&(ne=oe),kn&&(se=yn),le.kind===248&&(w=ye),yt===le?yt:yt&&e.setOriginalNode(Le(yt,le),le)}}function c(le){if(!e.forEach(le.declarationList.declarations,a))return;var oe=e.visitNodes(le.declarationList.declarations,$e);return e.length(oe)?e.updateVariableStatement(le,e.createNodeArray(Sn(le)),e.updateVariableDeclarationList(le.declarationList,oe)):void 0}function O(le){return e.flatten(e.mapDefined(le.elements,function(oe){return ee(oe)}))}function ee(le){if(le.kind===214)return;if(le.name)return a(le)?e.isBindingPattern(le.name)?O(le.name):e.createVariableDeclaration(le.name,j(le,void 0),void 0):void 0}function Te(le){var oe;R||(oe=se,se=e.createGetSymbolAccessibilityDiagnosticForNodeName(le)),B=le.name,e.Debug.assert(C.isLateBound(e.getParseTreeNode(le)));var kn=le,yn=kn.name.expression;ce(yn,ne),R||(se=oe),B=void 0}function Ne(le){return!!D&&!!le&&qe(le,V)}function ze(le){return e.isExportAssignment(le)||e.isExportDeclaration(le)}function bn(le){return e.some(le,ze)}function Sn(le){var oe=e.getModifierFlags(le),kn=Kn(le);return oe===kn?le.modifiers:e.createModifiersFromModifierFlags(kn)}function Kn(le){var oe=3071^(4|256),kn=w&&!He(le)?2:0,yn=le.parent.kind===288;return(!yn||k&&yn&&e.isExternalModule(le.parent))&&(oe^=2,kn=0),ie(le,oe,kn)}function Xe(le,oe){var kn=d(le);return!kn&&le!==oe.firstAccessor&&(kn=d(oe.firstAccessor),se=e.createGetSymbolAccessibilityDiagnosticForNode(oe.firstAccessor)),!kn&&oe.secondAccessor&&le!==oe.secondAccessor&&(kn=d(oe.secondAccessor),se=e.createGetSymbolAccessibilityDiagnosticForNode(oe.secondAccessor)),kn}function pn(le){return e.createNodeArray(e.filter(e.map(le,function(oe){return e.updateHeritageClause(oe,e.visitNodes(e.createNodeArray(e.filter(oe.types,function(kn){return e.isEntityNameExpression(kn.expression)||oe.token===89&&kn.expression.kind===99})),$e))}),function(oe){return oe.types&&!!oe.types.length}))}}e.transformDeclarations=Fe;function He(_e){return _e.kind===245}function ve(_e,re,se){return e.createModifiersFromModifierFlags(ie(_e,re,se))}function ie(_e,re,se){re===void 0&&(re=3071^4),se===void 0&&(se=0);var w=e.getModifierFlags(_e)&re|se;return w&512&&!(w&1)&&(w^=1),w&512&&w&2&&(w^=2),w}function d(_e){if(_e)return _e.kind===162?_e.type:_e.parameters.length>0?_e.parameters[0].type:void 0}function H(_e){switch(_e.kind){case 158:case 157:return!e.hasModifier(_e,8);case 155:case 241:return!0}return!1}function Pe(_e){switch(_e.kind){case 243:case 248:case 252:case 245:case 244:case 246:case 247:case 224:case 253:case 259:case 258:return!0}return!1}function I(_e){switch(_e.kind){case 165:case 161:case 160:case 162:case 163:case 158:case 157:case 159:case 164:case 166:case 241:case 154:case 215:case 168:case 179:case 169:case 170:case 187:return!0}return!1}})(ln||(ln={}));var ln;(function(e){function o(re){switch(re){case e.ModuleKind.ESNext:case e.ModuleKind.ES2015:return e.transformES2015Module;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}var F;(function(re){re[re.Uninitialized=0]="Uninitialized",re[re.Initialized=1]="Initialized",re[re.Completed=2]="Completed",re[re.Disposed=3]="Disposed"})(F||(F={}));var qe;(function(re){re[re.Substitution=1]="Substitution",re[re.EmitNotifications=2]="EmitNotifications"})(qe||(qe={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray};function Se(re,se,w){return{scriptTransformers:Fe(re,se,w),declarationTransformers:He(se)}}e.getTransformers=Se;function Fe(re,se,w){if(w)return e.emptyArray;var k=re.jsx,P=e.getEmitScriptTarget(re),h=e.getEmitModuleKind(re),Y=[];return e.addRange(Y,se&&e.map(se.before,d)),Y.push(e.transformTypeScript),Y.push(e.transformClassFields),k===2&&Y.push(e.transformJsx),P<99&&Y.push(e.transformESNext),P<6&&Y.push(e.transformES2019),P<5&&Y.push(e.transformES2018),P<4&&Y.push(e.transformES2017),P<3&&Y.push(e.transformES2016),P<2&&(Y.push(e.transformES2015),Y.push(e.transformGenerators)),Y.push(o(h)),P<1&&Y.push(e.transformES5),e.addRange(Y,se&&e.map(se.after,d)),Y}function He(re){var se=[];return se.push(e.transformDeclarations),e.addRange(se,re&&e.map(re.afterDeclarations,H)),se}function ve(re){return function(se){return e.isBundle(se)?re.transformBundle(se):re.transformSourceFile(se)}}function ie(re,se){return function(w){var k=re(w);return typeof k=="function"?se(k):ve(k)}}function d(re){return ie(re,e.chainBundle)}function H(re){return ie(re,e.identity)}function Pe(re,se){return se}e.noEmitSubstitution=Pe;function I(re,se,w){w(re,se)}e.noEmitNotification=I;function _e(re,se,w,k,P,h){for(var Y=new Array(324),ne,$,J=[],fe=[],R=0,K=!1,z,Ee=Pe,B=I,V=0,m=[],y={getCompilerOptions:function(){return w},getEmitResolver:function(){return re},getEmitHost:function(){return se},startLexicalEnvironment:Z,suspendLexicalEnvironment:Re,resumeLexicalEnvironment:Ae,endLexicalEnvironment:We,hoistVariableDeclaration:de,hoistFunctionDeclaration:Ce,requestEmitHelper:be,readEmitHelpers:Ge,enableSubstitution:N,enableEmitNotification:S,isSubstitutionEnabled:X,isEmitNotificationEnabled:v,get onSubstituteNode(){return Ee},set onSubstituteNode(j){e.Debug.assert(V<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(j!==void 0,"Value must not be 'undefined'"),Ee=j},get onEmitNode(){return B},set onEmitNode(j){e.Debug.assert(V<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(j!==void 0,"Value must not be 'undefined'"),B=j},addDiagnostic:function(Oe){m.push(Oe)}},L=0,C=k;L<C.length;L++){var _=C[L];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(_)))}e.performance.mark("beforeTransform");var b=P.map(function(j){return j(y)}),D=function(Oe){for(var a=0,en=b;a<en.length;a++){var Pn=en[a];Oe=Pn(Oe)}return Oe};V=1;var T=e.map(k,h?D:Q);return V=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:T,substituteNode:pe,emitNodeWithNotification:U,dispose:x,diagnostics:m};function Q(j){return j&&(!e.isSourceFile(j)||!j.isDeclarationFile)?D(j):j}function N(j){e.Debug.assert(V<2,"Cannot modify the transformation context after transformation has completed."),Y[j]|=1}function X(j){return(Y[j.kind]&1)!==0&&(e.getEmitFlags(j)&4)===0}function pe(j,Oe){return e.Debug.assert(V<3,"Cannot substitute a node after the result is disposed."),Oe&&X(Oe)&&Ee(j,Oe)||Oe}function S(j){e.Debug.assert(V<2,"Cannot modify the transformation context after transformation has completed."),Y[j]|=2}function v(j){return(Y[j.kind]&2)!==0||(e.getEmitFlags(j)&2)!==0}function U(j,Oe,a){e.Debug.assert(V<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Oe&&(v(Oe)?B(j,Oe,a):a(j,Oe))}function de(j){e.Debug.assert(V>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(V<2,"Cannot modify the lexical environment after transformation has completed.");var Oe=e.setEmitFlags(e.createVariableDeclaration(j),64);ne?ne.push(Oe):ne=[Oe]}function Ce(j){e.Debug.assert(V>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(V<2,"Cannot modify the lexical environment after transformation has completed."),$?$.push(j):$=[j]}function Z(){e.Debug.assert(V>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(V<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!K,"Lexical environment is suspended."),J[R]=ne,fe[R]=$,R++,ne=void 0,$=void 0}function Re(){e.Debug.assert(V>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(V<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!K,"Lexical environment is already suspended."),K=!0}function Ae(){e.Debug.assert(V>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(V<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(K,"Lexical environment is not suspended."),K=!1}function We(){e.Debug.assert(V>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(V<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!K,"Lexical environment is suspended.");var j;if((ne||$)&&($&&(j=Or($)),ne)){var Oe=e.createVariableStatement(void 0,e.createVariableDeclarationList(ne));e.setEmitFlags(Oe,1048576),j?j.push(Oe):j=[Oe]}return R--,ne=J[R],$=fe[R],R===0&&(J=[],fe=[]),j}function be(j){e.Debug.assert(V>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(V<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!j.scoped,"Cannot request a scoped emit helper."),z=e.append(z,j)}function Ge(){e.Debug.assert(V>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(V<2,"Cannot modify the transformation context after transformation has completed.");var j=z;return z=void 0,j}function x(){if(V<3){for(var j=0,Oe=k;j<Oe.length;j++){var a=Oe[j];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(a)))}ne=void 0,J=void 0,$=void 0,fe=void 0,Ee=void 0,B=void 0,z=void 0,V=3}}}e.transformNodes=_e})(ln||(ln={}));var ln;(function(e){var o=z(),F={pos:-1,end:-1};function qe(m){return e.fileExtensionIs(m,".tsbuildinfo")}e.isBuildInfoFile=qe;function Se(m,y,L,C,_,b){C===void 0&&(C=!1);var D=e.isArray(L)?L:e.getSourceFilesToEmit(m,L,C),T=m.getCompilerOptions();if(T.outFile||T.out){var Q=m.getPrependNodes();if(D.length||Q.length){var N=e.createBundle(D,Q),X=y(ve(N,m,C),N);if(X)return X}}else{if(!_)for(var pe=0,S=D;pe<S.length;pe++){var v=S[pe],X=y(ve(v,m,C),v);if(X)return X}if(b){var U=Fe(m.getCompilerOptions());if(U)return y({buildInfoPath:U},void 0)}}}e.forEachEmittedFile=Se;function Fe(m){var y=m.configFilePath;if(!e.isIncrementalCompilation(m))return;if(m.tsBuildInfoFile)return m.tsBuildInfoFile;var L=m.outFile||m.out,C;if(L)C=e.removeFileExtension(L);else{if(!y)return;var _=e.removeFileExtension(y);C=m.outDir?m.rootDir?e.resolvePath(m.outDir,e.getRelativePathFromDirectory(m.rootDir,_,!0)):e.combinePaths(m.outDir,e.getBaseFileName(_)):_}return C+".tsbuildinfo"}e.getTsBuildInfoEmitOutputFilePath=Fe;function He(m,y){var L=m.outFile||m.out,C=m.emitDeclarationOnly?void 0:L,_=C&&ie(C,m),b=y||e.getEmitDeclarations(m)?e.removeFileExtension(L)+".d.ts":void 0,D=b&&e.getAreDeclarationMapsEnabled(m)?b+".map":void 0,T=Fe(m);return{jsFilePath:C,sourceMapFilePath:_,declarationFilePath:b,declarationMapPath:D,buildInfoPath:T}}e.getOutputPathsForBundle=He;function ve(m,y,L){var C=y.getCompilerOptions();if(m.kind===289)return He(C,L);var _=e.getOwnEmitOutputFilePath(m.fileName,y,d(m,C)),b=e.isJsonSourceFile(m),D=b&&e.comparePaths(m.fileName,_,y.getCurrentDirectory(),!y.useCaseSensitiveFileNames())===0,T=C.emitDeclarationOnly||D?void 0:_,Q=!T||e.isJsonSourceFile(m)?void 0:ie(T,C),N=L||e.getEmitDeclarations(C)&&!b?e.getDeclarationEmitOutputFilePath(m.fileName,y):void 0,X=N&&e.getAreDeclarationMapsEnabled(C)?N+".map":void 0;return{jsFilePath:T,sourceMapFilePath:Q,declarationFilePath:N,declarationMapPath:X,buildInfoPath:void 0}}e.getOutputPathsFor=ve;function ie(m,y){return y.sourceMap&&!y.inlineSourceMap?m+".map":void 0}function d(m,y){if(e.isJsonSourceFile(m))return".json";if(y.jsx===1){if(e.isSourceFileJS(m)){if(e.fileExtensionIs(m.fileName,".jsx"))return".jsx"}else if(m.languageVariant===1)return".jsx"}return".js"}e.getOutputExtension=d;function H(m){return m.options.rootDir||e.getDirectoryPath(e.Debug.assertDefined(m.options.configFilePath))}function Pe(m,y,L,C){return C?e.resolvePath(C,e.getRelativePathFromDirectory(H(y),m,L)):m}function I(m,y,L){return e.Debug.assert(!e.fileExtensionIs(m,".d.ts")&&!e.fileExtensionIs(m,".json")),e.changeExtension(Pe(m,y,L,y.options.declarationDir||y.options.outDir),".d.ts")}e.getOutputDeclarationFileName=I;function _e(m,y,L){if(y.options.emitDeclarationOnly)return;var C=e.fileExtensionIs(m,".json"),_=e.changeExtension(Pe(m,y,L,y.options.outDir),C?".json":e.fileExtensionIs(m,".tsx")&&y.options.jsx===1?".jsx":".js");return!C||e.comparePaths(m,_,e.Debug.assertDefined(y.options.configFilePath),L)!==0?_:void 0}function re(){var m;return{addOutput:y,getOutputs:L};function y(C){C&&(m||(m=[])).push(C)}function L(){return m||e.emptyArray}}function se(m,y){var L=He(m.options,!1),C=L.jsFilePath,_=L.sourceMapFilePath,b=L.declarationFilePath,D=L.declarationMapPath,T=L.buildInfoPath;y(C),y(_),y(b),y(D),y(T)}function w(m,y,L,C){if(e.fileExtensionIs(y,".d.ts"))return;var _=_e(y,m,L);if(C(_),e.fileExtensionIs(y,".json"))return;if(_&&m.options.sourceMap&&C(_+".map"),e.getEmitDeclarations(m.options)){var b=I(y,m,L);C(b),m.options.declarationMap&&C(b+".map")}}function k(m,y){var L=re(),C=L.addOutput,_=L.getOutputs;if(m.options.outFile||m.options.out)se(m,C);else{for(var b=0,D=m.fileNames;b<D.length;b++){var T=D[b];w(m,T,y,C)}C(Fe(m.options))}return _()}e.getAllProjectOutputs=k;function P(m,y,L){y=e.normalizePath(y),e.Debug.assert(e.contains(m.fileNames,y),"Expected fileName to be present in command line");var C=re(),_=C.addOutput,b=C.getOutputs;return m.options.outFile||m.options.out?se(m,_):w(m,y,L,_),b()}e.getOutputFileNames=P;function h(m,y){if(m.options.outFile||m.options.out){var L=He(m.options,!1).jsFilePath;return e.Debug.assertDefined(L,"project "+m.options.configFilePath+" expected to have at least one output")}for(var C=0,_=m.fileNames;C<_.length;C++){var b=_[C];if(e.fileExtensionIs(b,".d.ts"))continue;var L=_e(b,m,y);if(L)return L;if(e.fileExtensionIs(b,".json"))continue;if(e.getEmitDeclarations(m.options))return I(b,m,y)}var D=Fe(m.options);return D||e.Debug.fail("project "+m.options.configFilePath+" expected to have at least one output")}e.getFirstProjectOutput=h;function Y(m,y,L,C,_,b,D){var T=C.scriptTransformers,Q=C.declarationTransformers,N=y.getCompilerOptions(),X=N.sourceMap||N.inlineSourceMap||e.getAreDeclarationMapsEnabled(N)?[]:void 0,pe=N.listEmittedFiles?[]:void 0,S=e.createDiagnosticCollection(),v=e.getNewLineCharacter(N,function(){return y.getNewLine()}),U=e.createTextWriter(v),de=e.performance.createTimer("printTime","beforePrint","afterPrint"),Ce=de.enter,Z=de.exit,Re,Ae=!1,We;return Ce(),Se(y,be,e.getSourceFilesToEmit(y,L,D),D,b,!L),Z(),{emitSkipped:Ae,diagnostics:S.getDiagnostics(),emittedFiles:pe,sourceMaps:X,exportedModulesFromDeclarationEmit:We};function be(ce,Le){var Je=ce.jsFilePath,Ze=ce.sourceMapFilePath,Ue=ce.declarationFilePath,cn=ce.declarationMapPath,$e=ce.buildInfoPath,sn;$e&&Le&&e.isBundle(Le)&&(sn=e.getDirectoryPath(e.getNormalizedAbsolutePath($e,y.getCurrentDirectory())),Re={commonSourceDirectory:he(y.getCommonSourceDirectory()),sourceFiles:Le.sourceFiles.map(function(ke){return he(e.getNormalizedAbsolutePath(ke.fileName,y.getCurrentDirectory()))})}),x(Le,Je,Ze,he),j(Le,Ue,cn,he),Ge(Re,$e),!Ae&&pe&&(_||(Je&&pe.push(Je),Ze&&pe.push(Ze),$e&&pe.push($e)),Ue&&pe.push(Ue),cn&&pe.push(cn));function he(ke){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(sn,ke,y.getCanonicalFileName))}}function Ge(ce,Le){if(!Le||L||Ae)return;var Je=y.getProgramBuildInfo();if(y.isEmitBlocked(Le)||N.noEmit){Ae=!0;return}e.writeFile(y,S,Le,ne({bundle:ce,program:Je,version:e.version}),!1)}function x(ce,Le,Je,Ze){if(!ce||_||!Le)return;if(Le&&y.isEmitBlocked(Le)||N.noEmit){Ae=!0;return}var Ue=e.transformNodes(m,y,N,[ce],T,!1),cn={removeComments:N.removeComments,newLine:N.newLine,noEmitHelpers:N.noEmitHelpers,module:N.module,target:N.target,sourceMap:N.sourceMap,inlineSourceMap:N.inlineSourceMap,inlineSources:N.inlineSources,extendedDiagnostics:N.extendedDiagnostics,writeBundleFileInfo:!!Re,relativeToBuildInfo:Ze},$e=K(cn,{hasGlobalName:m.hasGlobalName,onEmitNode:Ue.emitNodeWithNotification,substituteNode:Ue.substituteNode});e.Debug.assert(Ue.transformed.length===1,"Should only see one output from the transform"),a(Le,Je,Ue.transformed[0],$e,N),Ue.dispose(),Re&&(Re.js=$e.bundleFileInfo)}function j(ce,Le,Je,Ze){if(!ce)return;if(!Le){(_||N.emitDeclarationOnly)&&(Ae=!0);return}var Ue=e.isSourceFile(ce)?[ce]:ce.sourceFiles,cn=D?Ue:e.filter(Ue,e.isSourceFileNotJson),$e=N.outFile||N.out?[e.createBundle(cn,e.isSourceFile(ce)?void 0:ce.prepends)]:cn;_&&!e.getEmitDeclarations(N)&&cn.forEach(Oe);var sn=e.transformNodes(m,y,N,$e,Q,!1);if(e.length(sn.diagnostics))for(var he=0,ke=sn.diagnostics;he<ke.length;he++){var G=ke[he];S.add(G)}var c={removeComments:N.removeComments,newLine:N.newLine,noEmitHelpers:!0,module:N.module,target:N.target,sourceMap:N.sourceMap,inlineSourceMap:N.inlineSourceMap,extendedDiagnostics:N.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!Re,recordInternalSection:!!Re,relativeToBuildInfo:Ze},O=K(c,{hasGlobalName:m.hasGlobalName,onEmitNode:sn.emitNodeWithNotification,substituteNode:sn.substituteNode}),ee=!!sn.diagnostics&&!!sn.diagnostics.length||!!y.isEmitBlocked(Le)||!!N.noEmit;if(Ae=Ae||ee,(!ee||D)&&(e.Debug.assert(sn.transformed.length===1,"Should only see one output from the decl transform"),a(Le,Je,sn.transformed[0],O,{sourceMap:N.declarationMap,sourceRoot:N.sourceRoot,mapRoot:N.mapRoot,extendedDiagnostics:N.extendedDiagnostics}),D&&sn.transformed[0].kind===288)){var Te=sn.transformed[0];We=Te.exportedModulesFromDeclarationEmit}sn.dispose(),Re&&(Re.dts=O.bundleFileInfo)}function Oe(ce){if(e.isExportAssignment(ce)){ce.expression.kind===75&&m.collectLinkedAliases(ce.expression,!0);return}else if(e.isExportSpecifier(ce)){m.collectLinkedAliases(ce.propertyName||ce.name,!0);return}e.forEachChild(ce,Oe)}function a(ce,Le,Je,Ze,Ue){var cn=Je.kind===289?Je:void 0,$e=Je.kind===288?Je:void 0,sn=cn?cn.sourceFiles:[$e],he;if(en(Ue,Je)&&(he=e.createSourceMapGenerator(y,e.getBaseFileName(e.normalizeSlashes(ce)),Pn(Ue),Xn(Ue,ce,$e),Ue)),cn?Ze.writeBundle(cn,U,he):Ze.writeFile($e,U,he),he){X&&X.push({inputSourceFileNames:he.getSources(),sourceMap:he.toJSON()});var ke=ae(Ue,he,ce,Le,$e);if(ke&&(U.isAtStartOfLine()||U.rawWrite(v),U.writeComment("//# sourceMappingURL="+ke)),Le){var G=he.toString();e.writeFile(y,S,Le,G,!1,sn)}}else U.writeLine();e.writeFile(y,S,ce,U.getText(),!!N.emitBOM,sn),U.clear()}function en(ce,Le){return(ce.sourceMap||ce.inlineSourceMap)&&(Le.kind!==288||!e.fileExtensionIs(Le.fileName,".json"))}function Pn(ce){var Le=e.normalizeSlashes(ce.sourceRoot||"");return Le&&e.ensureTrailingDirectorySeparator(Le)}function Xn(ce,Le,Je){if(ce.sourceRoot)return y.getCommonSourceDirectory();if(ce.mapRoot){var Ze=e.normalizeSlashes(ce.mapRoot);return Je&&(Ze=e.getDirectoryPath(e.getSourceFilePathInNewDir(Je.fileName,y,Ze))),e.getRootLength(Ze)===0&&(Ze=e.combinePaths(y.getCommonSourceDirectory(),Ze)),Ze}return e.getDirectoryPath(e.normalizePath(Le))}function ae(ce,Le,Je,Ze,Ue){if(ce.inlineSourceMap){var cn=Le.toString(),$e=e.base64encode(e.sys,cn);return"data:application/json;base64,"+$e}var sn=e.getBaseFileName(e.normalizeSlashes(e.Debug.assertDefined(Ze)));if(ce.mapRoot){var he=e.normalizeSlashes(ce.mapRoot);return Ue&&(he=e.getDirectoryPath(e.getSourceFilePathInNewDir(Ue.fileName,y,he))),e.getRootLength(he)===0?(he=e.combinePaths(y.getCommonSourceDirectory(),he),e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(Je)),e.combinePaths(he,sn),y.getCurrentDirectory(),y.getCanonicalFileName,!0)):e.combinePaths(he,sn)}return sn}}e.emitFiles=Y;function ne(m){return JSON.stringify(m,void 0,2)}e.getBuildInfoText=ne;function $(m){return JSON.parse(m)}e.getBuildInfo=$,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,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented};function J(m,y,L){var C=m.sourceFiles.map(function(b){var D=e.createNode(288,0,0);return D.fileName=e.getRelativePathFromDirectory(L.getCurrentDirectory(),e.getNormalizedAbsolutePath(b,y),!L.useCaseSensitiveFileNames()),D.text="",D.statements=e.createNodeArray(),D}),_=e.Debug.assertDefined(m.js);return e.forEach(_.sources&&_.sources.prologues,function(b){var D=C[b.file];D.text=b.text,D.end=b.text.length,D.statements=e.createNodeArray(b.directives.map(function(T){var Q=e.createNode(225,T.pos,T.end);return Q.expression=e.createNode(10,T.expression.pos,T.expression.end),Q.expression.text=T.expression.text,Q}))}),C}function fe(m,y,L,C){var _=He(m.options,!1),b=_.buildInfoPath,D=_.jsFilePath,T=_.sourceMapFilePath,Q=_.declarationFilePath,N=_.declarationMapPath,X=y.readFile(e.Debug.assertDefined(b));if(!X)return b;var pe=y.readFile(e.Debug.assertDefined(D));if(!pe)return D;var S=T&&y.readFile(T);if(T&&!S||m.options.inlineSourceMap)return T||"inline sourcemap decoding";var v=Q&&y.readFile(Q);if(Q&&!v)return Q;var U=N&&y.readFile(N);if(N&&!U||m.options.inlineSourceMap)return N||"inline sourcemap decoding";var de=$(X);if(!de.bundle||!de.bundle.js||v&&!de.bundle.dts)return b;var Ce=e.getDirectoryPath(e.getNormalizedAbsolutePath(b,y.getCurrentDirectory())),Z=e.createInputFiles(pe,v,T,S,N,U,D,Q,b,de,!0),Re=[],Ae=e.createPrependNodes(m.projectReferences,L,function(Ge){return y.readFile(Ge)}),We=J(de.bundle,Ce,y),be={getPrependNodes:e.memoize(function(){return Or(Ae,[Z])}),getCanonicalFileName:y.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(de.bundle.commonSourceDirectory,Ce)},getCompilerOptions:function(){return m.options},getCurrentDirectory:function(){return y.getCurrentDirectory()},getNewLine:function(){return y.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return We},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(x,j,Oe){switch(x){case D:if(pe===j)return;break;case T:if(S===j)return;break;case b:var a=$(j);a.program=de.program;var en=de.bundle,Pn=en.js,Xn=en.dts,ae=en.sourceFiles;a.bundle.js.sources=Pn.sources,Xn&&(a.bundle.dts.sources=Xn.sources),a.bundle.sourceFiles=ae,Re.push({name:x,text:ne(a),writeByteOrderMark:Oe});return;case Q:if(v===j)return;break;case N:if(U===j)return;break;default:e.Debug.fail("Unexpected path: "+x)}Re.push({name:x,text:j,writeByteOrderMark:Oe})},isEmitBlocked:e.returnFalse,readFile:function(x){return y.readFile(x)},fileExists:function(x){return y.fileExists(x)},directoryExists:y.directoryExists&&function(Ge){return y.directoryExists(Ge)},useCaseSensitiveFileNames:function(){return y.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap()};return Y(e.notImplementedResolver,be,void 0,e.getTransformers(m.options,C)),Re}e.emitUsingBuildInfo=fe;var R;(function(m){m[m.Notification=0]="Notification",m[m.Substitution=1]="Substitution",m[m.Comments=2]="Comments",m[m.SourceMaps=3]="SourceMaps",m[m.Emit=4]="Emit"})(R||(R={}));function K(m,y){m===void 0&&(m={}),y===void 0&&(y={});var L=y.hasGlobalName,C=y.onEmitNode,_=C===void 0?e.noEmitNotification:C,b=y.substituteNode,D=b===void 0?e.noEmitSubstitution:b,T=y.onBeforeEmitNodeArray,Q=y.onAfterEmitNodeArray,N=y.onBeforeEmitToken,X=y.onAfterEmitToken,pe=!!m.extendedDiagnostics,S=e.getNewLineCharacter(m),v=e.getEmitModuleKind(m),U=e.createMap(),de,Ce,Z,Re,Ae,We,be,Ge,x,j,Oe=bc,a,en=m.writeBundleFileInfo?{sections:[]}:void 0,Pn=en?e.Debug.assertDefined(m.relativeToBuildInfo):void 0,Xn=m.recordInternalSection,ae=0,ce="text",Le=!0,Je,Ze,Ue=-1,cn=-1,$e=-1,sn=-1,he,ke,G=!1,c=!!m.removeComments,O,ee,Te=e.performance.createTimerIf(pe,"commentTime","beforeComment","afterComment"),Ne=Te.enter,ze=Te.exit;return st(),{printNode:bn,printList:Sn,printFile:Xe,printBundle:Kn,writeNode:le,writeList:oe,writeFile:Vn,writeBundle:Mn,bundleFileInfo:en};function bn(p,Be,Nn){switch(p){case 0:e.Debug.assert(e.isSourceFile(Be),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(Be),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(Be),"Expected an Expression node.");break}switch(Be.kind){case 288:return Xe(Be);case 289:return Kn(Be);case 290:return pn(Be)}return le(p,Be,Nn,ut()),dt()}function Sn(p,Be,Nn){return oe(p,Be,Nn,ut()),dt()}function Kn(p){return Mn(p,ut(),void 0),dt()}function Xe(p){return Vn(p,ut(),void 0),dt()}function pn(p){return tt(p,ut()),dt()}function le(p,Be,Nn,bt){var Sr=x;wt(bt,void 0),ot(p,Be,Nn),st(),x=Sr}function oe(p,Be,Nn,bt){var Sr=x;wt(bt,void 0),Nn&&ct(Nn),zr(F,Be,p),st(),x=Sr}function kn(){return x.getTextPosWithWriteLine?x.getTextPosWithWriteLine():x.getTextPos()}function yn(p,Be,Nn){var bt=e.lastOrUndefined(en.sections);bt&&bt.kind===Nn?bt.end=Be:en.sections.push({pos:p,end:Be,kind:Nn})}function ye(p){if(Xn&&en&&de&&(e.isDeclaration(p)||e.isVariableStatement(p))&&e.isInternalDeclaration(p,de)&&ce!=="internal"){var Be=ce;return un(x.getTextPos()),ae=kn(),ce="internal",Be}return}function mn(p){p&&(un(x.getTextPos()),ae=kn(),ce=p)}function un(p){return ae<p?(yn(ae,p,ce),!0):!1}function Mn(p,Be,Nn){var bt;a=!1;var Sr=x;wt(Be,Nn),Hr(p),mr(p),ba(p),M(p);for(var Yr=0,ra=p.prepends;Yr<ra.length;Yr++){var mi=ra[Yr];Bo();var q=x.getTextPos(),dn=en&&en.sections;if(dn&&(en.sections=[]),ot(4,mi,void 0),en){var Un=en.sections;en.sections=dn,mi.oldFileOfCurrentEmit?(bt=en.sections).push.apply(bt,Un):(Un.forEach(function(we){return e.Debug.assert(e.isBundleFileTextLike(we))}),en.sections.push({pos:q,end:x.getTextPos(),kind:"prepend",data:Pn(mi.fileName),texts:Un}))}}ae=kn();for(var Et=0,gr=p.sourceFiles;Et<gr.length;Et++){var Zr=gr[Et];ot(0,Zr,Zr)}if(en&&p.sourceFiles.length){var ka=x.getTextPos();if(un(ka)){var ps=fr(p);ps&&(en.sources||(en.sources={}),en.sources.prologues=ps);var u=gt(p);u&&(en.sources||(en.sources={}),en.sources.helpers=u)}}st(),x=Sr}function tt(p,Be){var Nn=x;wt(Be,void 0),ot(4,p,void 0),st(),x=Nn}function Vn(p,Be,Nn){a=!0;var bt=x;wt(Be,Nn),Hr(p),mr(p),ot(0,p,p),st(),x=bt}function ut(){return j||(j=e.createTextWriter(S))}function dt(){var p=j.getText();return j.clear(),p}function ot(p,Be,Nn){Nn&&ct(Nn),_t(p,Be)}function ct(p){de=p,he=void 0,ke=void 0,p&&Dn(p)}function wt(p,Be){p&&m.omitTrailingSemicolon&&(p=e.getTrailingSemicolonDeferringWriter(p)),x=p,Je=Be,Le=!x||!Je}function st(){Ce=[],Z=[],Re=e.createMap(),Ae=[],We=0,be=[],de=void 0,he=void 0,ke=void 0,O=void 0,ee=void 0,wt(void 0,void 0)}function qn(){return he||(he=e.getLineStarts(de))}function Ie(p){if(p===void 0)return;var Be=ye(p),Nn=_t(4,p);return mn(Be),Nn}function De(p){return p===void 0?void 0:_t(2,p)}function _n(p){return p===void 0?void 0:_t(1,p)}function _t(p,Be){var Nn=O,bt=ee;O=Be,ee=void 0;var Sr=It(0,Be);Sr(p,Be),e.Debug.assert(O===Be);var Yr=ee;return O=Nn,ee=bt,Yr||Be}function It(p,Be){switch(p){case 0:if(_!==e.noEmitNotification)return nr;case 1:if(D!==e.noEmitSubstitution)return Wr;case 2:if(!c&&Be.kind!==288)return Zo;case 3:if(!Le&&Be.kind!==288&&!e.isInJsonFile(Be))return Md;case 4:return vr;default:return e.Debug.assertNever(p)}}function Ht(p,Be){return It(p+1,Be)}function nr(p,Be){e.Debug.assert(O===Be);var Nn=Ht(0,Be);_(p,Be,Nn),e.Debug.assert(O===Be)}function vr(p,Be){if(e.Debug.assert(O===Be||ee===Be),p===0)return E(e.cast(Be,e.isSourceFile));if(p===2)return Ke(e.cast(Be,e.isIdentifier));if(p===3)return Qr(e.cast(Be,e.isTypeParameterDeclaration));if(p===5)return e.Debug.assertNode(Be,e.isEmptyStatement),Is(!0);if(p===4){if(e.isKeyword(Be.kind))return Ec(Be,_a);switch(Be.kind){case 15:case 16:case 17:return Ut(Be);case 290:case 284:return ft(Be);case 283:return Tt(Be);case 285:case 286:return yt(Be);case 287:return vt(Be);case 75:return Ke(Be);case 152:return Rn(Be);case 153:return tr(Be);case 154:return xa(Be);case 155:return Ba(Be);case 156:return ai(Be);case 157:return wi(Be);case 158:return Ai(Be);case 159:return Ei(Be);case 160:return Pi(Be);case 161:return Xa(Be);case 162:case 163:return Ia(Be);case 164:return ca(Be);case 165:return Ti(Be);case 166:return Vo(Be);case 167:return Ro(Be);case 168:return uo(Be);case 169:return ui(Be);case 298:return Gi(Be);case 170:return bo(Be);case 171:return Ri(Be);case 172:return xt(Be);case 173:return Kt(Be);case 174:return Jr(Be);case 175:return va(Be);case 177:return Na(Be);case 178:return qr(Be);case 179:return hi(Be);case 180:return Ii(Be);case 181:return gi(Be);case 215:return ml(Be);case 182:return ua();case 183:return tn(Be);case 184:return vn(Be);case 185:return Ln(Be);case 186:return Bn(Be);case 187:return Pt(Be);case 293:sr("*");return;case 294:sr("?");return;case 295:return ji(Be);case 296:return Fo(Be);case 297:return ko(Be);case 176:case 299:return _r(Be);case 188:return rr(Be);case 189:return cr(Be);case 190:return Cr(Be);case 220:return hl(Be);case 221:return mo();case 222:return Ul(Be);case 224:return ho(Be);case 223:return Is(!1);case 225:return Ns(Be);case 226:return bs(Be);case 227:return Ks(Be);case 228:return qs(Be);case 229:return $s(Be);case 230:return el(Be);case 231:return nl(Be);case 232:return $n(Be);case 233:return ht(Be);case 234:return Qt(Be);case 235:return yr(Be);case 236:return Br(Be);case 237:return Lr(Be);case 238:return kr(Be);case 239:return Pr(Be);case 240:return Er(Be);case 241:return fa(Be);case 242:return Da(Be);case 243:return Fa(Be);case 244:return Ho(Be);case 245:return Es(Be);case 246:return me(Be);case 247:return En(Be);case 248:return et(Be);case 249:return Gt(Be);case 250:return br(Be);case 251:return tl(Be);case 252:return ya(Be);case 253:return za(Be);case 254:return ki(Be);case 255:return eo(Be);case 256:return ea(Be);case 257:return Ir(Be);case 258:return To(Be);case 259:return Uo(Be);case 260:return Qo(Be);case 261:return co(Be);case 262:return;case 263:return Nc(Be);case 11:return Js(Be);case 266:case 269:return rl(Be);case 267:case 270:return Oc(Be);case 271:return Pc(Be);case 272:return au(Be);case 273:return iu(Be);case 274:return Zl(Be);case 275:return Mc(Be);case 276:return Nl(Be);case 277:return Rc(Be);case 278:return $l(Be);case 279:return _c(Be);case 280:return ou(Be);case 281:return Iu(Be);case 282:return su(Be);case 310:case 316:return Vc(Be);case 311:case 313:case 312:case 309:return cu(Be);case 305:return Fc(Be);case 314:return Gc(Be);case 315:return vc(Be);case 308:return Bc(Be);case 303:return ec(Be);case 302:return du(Be);case 307:case 304:return uu(Be);case 301:return lu(Be)}if(e.isExpression(Be))p=1,D!==e.noEmitSubstitution&&(ee=Be=D(p,Be));else if(e.isToken(Be))return Ec(Be,sr)}if(p===1)switch(Be.kind){case 8:case 9:return jn(Be);case 10:case 13:case 14:return Ut(Be);case 75:return Ke(Be);case 90:case 99:case 101:case 105:case 103:case 95:Ec(Be,_a);return;case 191:return Ya(Be);case 192:return Oa(Be);case 193:return Ni(Be);case 194:return _i(Be);case 195:return Ye(Be);case 196:return zn(Be);case 197:return ge(Be);case 198:return hn(Be);case 199:return Jn(Be);case 200:return ue(Be);case 201:return rn(Be);case 202:return Zn(Be);case 203:return lt(Be);case 204:return Rt(Be);case 205:return an(Be);case 206:return Dr(Be);case 207:return Ha(Be);case 208:return to(Be);case 209:return ga(Be);case 210:return Yo(Be);case 211:return Co(Be);case 212:return Rs(Be);case 213:return vs(Be);case 214:return;case 216:return Fs(Be);case 217:return Il(Be);case 218:return es(Be);case 264:return _l(Be);case 265:return yc(Be);case 268:return Ql(Be);case 319:return Wn(Be);case 320:return Dt(Be)}}function Qr(p){Ie(p.name),ar(),_a("in"),ar(),Ie(p.constraint)}function Wr(p,Be){e.Debug.assert(O===Be||ee===Be);var Nn=Ht(1,Be);ee=D(p,Be),Nn(p,ee),e.Debug.assert(O===Be||ee===Be)}function gt(p){var Be;if(v===e.ModuleKind.None||m.noEmitHelpers)return;for(var Nn=e.createMap(),bt=0,Sr=p.sourceFiles;bt<Sr.length;bt++){var Yr=Sr[bt],ra=e.getExternalHelpersModuleName(Yr)!==void 0,mi=kt(Yr);if(!mi)continue;for(var q=0,dn=mi;q<dn.length;q++){var Un=dn[q];!Un.scoped&&!ra&&!Nn.get(Un.name)&&(Nn.set(Un.name,!0),(Be||(Be=[])).push(Un.name))}}return Be}function ba(p){var Be=!1,Nn=p.kind===289?p:void 0;if(Nn&&v===e.ModuleKind.None)return;for(var bt=Nn?Nn.prepends.length:0,Sr=Nn?Nn.sourceFiles.length+bt:1,Yr=0;Yr<Sr;Yr++){var ra=Nn?Yr<bt?Nn.prepends[Yr]:Nn.sourceFiles[Yr-bt]:p,mi=e.isSourceFile(ra)?ra:e.isUnparsedSource(ra)?void 0:de,q=m.noEmitHelpers||!!mi&&e.hasRecordedExternalHelpers(mi),dn=(e.isSourceFile(ra)||e.isUnparsedSource(ra))&&!a,Un=e.isUnparsedSource(ra)?ra.helpers:kt(ra);if(Un)for(var Et=0,gr=Un;Et<gr.length;Et++){var Zr=gr[Et];if(Zr.scoped){if(Nn)continue}else{if(q)continue;if(dn){if(U.get(Zr.name))continue;U.set(Zr.name,!0)}}var ka=kn();typeof Zr.text=="string"?fu(Zr.text):fu(Zr.text(Vs)),en&&en.sections.push({pos:ka,end:x.getTextPos(),kind:"emitHelpers",data:Zr.name}),Be=!0}}return Be}function kt(p){var Be=e.getEmitHelpers(p);return Be&&e.stableSort(Be,e.compareEmitHelpers)}function jn(p){Ut(p)}function Ut(p){var Be=wa(p,m.neverAsciiEscape);(m.sourceMap||m.inlineSourceMap)&&(p.kind===10||e.isTemplateLiteralKind(p.kind))?pd(Be):Nu(Be)}function ft(p){for(var Be=0,Nn=p.texts;Be<Nn.length;Be++){var bt=Nn[Be];Bo(),Ie(bt)}}function Tt(p){x.rawWrite(p.parent.text.substring(p.pos,p.end))}function yt(p){var Be=kn();Tt(p),en&&yn(Be,x.getTextPos(),p.kind===285?"text":"internal")}function vt(p){var Be=kn();if(Tt(p),en){var Nn=e.clone(p.section);Nn.pos=Be,Nn.end=x.getTextPos(),en.sections.push(Nn)}}function Ke(p){var Be=p.symbol?nc:Oe;Be(Ol(p,!1),p.symbol),zr(p,p.typeArguments,53776)}function Rn(p){nt(p.left),sr("."),Ie(p.right)}function nt(p){p.kind===75?_n(p):Ie(p)}function tr(p){sr("["),_n(p.expression),sr("]")}function xa(p){Ie(p.name),p.constraint&&(ar(),_a("extends"),ar(),Ie(p.constraint)),p.default&&(ar(),No("="),ar(),Ie(p.default))}function Ba(p){ta(p,p.decorators),ia(p,p.modifiers),Ie(p.dotDotDotToken),ha(p.name,tc),Ie(p.questionToken),p.parent&&p.parent.kind===298&&!p.name?Ie(p.type):Ka(p.type),ci(p.initializer,p.type?p.type.end:p.questionToken?p.questionToken.end:p.name?p.name.end:p.modifiers?p.modifiers.end:p.decorators?p.decorators.end:p.pos,p)}function ai(p){sr("@"),_n(p.expression)}function wi(p){ta(p,p.decorators),ia(p,p.modifiers),ha(p.name,il),Ie(p.questionToken),Ka(p.type),jo()}function Ai(p){ta(p,p.decorators),ia(p,p.modifiers),Ie(p.name),Ie(p.questionToken),Ie(p.exclamationToken),Ka(p.type),ci(p.initializer,p.type?p.type.end:p.questionToken?p.questionToken.end:p.name.end,p),jo()}function Ei(p){Gs(p),ta(p,p.decorators),ia(p,p.modifiers),Ie(p.name),Ie(p.questionToken),qa(p,p.typeParameters),ri(p,p.parameters),Ka(p.type),jo(),zt(p)}function Pi(p){ta(p,p.decorators),ia(p,p.modifiers),Ie(p.asteriskToken),Ie(p.name),Ie(p.questionToken),pi(p,Io)}function Xa(p){ia(p,p.modifiers),_a("constructor"),pi(p,Io)}function Ia(p){ta(p,p.decorators),ia(p,p.modifiers),_a(p.kind===162?"get":"set"),ar(),Ie(p.name),pi(p,Io)}function ca(p){Gs(p),ta(p,p.decorators),ia(p,p.modifiers),qa(p,p.typeParameters),ri(p,p.parameters),Ka(p.type),jo(),zt(p)}function Ti(p){Gs(p),ta(p,p.decorators),ia(p,p.modifiers),_a("new"),ar(),qa(p,p.typeParameters),ri(p,p.parameters),Ka(p.type),jo(),zt(p)}function Vo(p){ta(p,p.decorators),ia(p,p.modifiers),Ko(p,p.parameters),Ka(p.type),jo()}function mo(){jo()}function Ro(p){p.assertsModifier&&(Ie(p.assertsModifier),ar()),Ie(p.parameterName),p.type&&(ar(),_a("is"),ar(),Ie(p.type))}function uo(p){Ie(p.typeName),La(p,p.typeArguments)}function ui(p){Gs(p),qa(p,p.typeParameters),Ja(p,p.parameters),ar(),sr("=>"),ar(),Ie(p.type),zt(p)}function Gi(p){_a("function"),ri(p,p.parameters),sr(":"),Ie(p.type)}function ji(p){sr("?"),Ie(p.type)}function Fo(p){sr("!"),Ie(p.type)}function ko(p){Ie(p.type),sr("=")}function bo(p){Gs(p),_a("new"),ar(),qa(p,p.typeParameters),ri(p,p.parameters),ar(),sr("=>"),ar(),Ie(p.type),zt(p)}function Ri(p){_a("typeof"),ar(),Ie(p.exprName)}function xt(p){sr("{");var Be=e.getEmitFlags(p)&1?768:32897;zr(p,p.members,Be|524288),sr("}")}function Kt(p){Ie(p.elementType),sr("["),sr("]")}function _r(p){sr("..."),Ie(p.type)}function Jr(p){sr("["),zr(p,p.elementTypes,528),sr("]")}function va(p){Ie(p.type),sr("?")}function Na(p){zr(p,p.types,516)}function qr(p){zr(p,p.types,520)}function hi(p){Ie(p.checkType),ar(),_a("extends"),ar(),Ie(p.extendsType),ar(),sr("?"),ar(),Ie(p.trueType),ar(),sr(":"),ar(),Ie(p.falseType)}function Ii(p){_a("infer"),ar(),Ie(p.typeParameter)}function gi(p){sr("("),Ie(p.type),sr(")")}function ua(){_a("this")}function tn(p){ts(p.operator,_a),ar(),Ie(p.type)}function vn(p){Ie(p.objectType),sr("["),Ie(p.indexType),sr("]")}function Ln(p){var Be=e.getEmitFlags(p);sr("{"),Be&1?ar():(Bo(),ws()),p.readonlyToken&&(Ie(p.readonlyToken),p.readonlyToken.kind!==137&&_a("readonly"),ar()),sr("["),_t(3,p.typeParameter),sr("]"),p.questionToken&&(Ie(p.questionToken),p.questionToken.kind!==57&&sr("?")),sr(":"),ar(),Ie(p.type),jo(),Be&1?ar():(Bo(),go()),sr("}")}function Bn(p){_n(p.literal)}function Pt(p){p.isTypeOf&&(_a("typeof"),ar()),_a("import"),sr("("),Ie(p.argument),sr(")"),p.qualifier&&(sr("."),Ie(p.qualifier)),La(p,p.typeArguments)}function rr(p){sr("{"),zr(p,p.elements,525136),sr("}")}function cr(p){sr("["),zr(p,p.elements,524880),sr("]")}function Cr(p){Ie(p.dotDotDotToken),p.propertyName&&(Ie(p.propertyName),sr(":"),ar()),Ie(p.name),ci(p.initializer,p.name.end,p)}function Ya(p){var Be=p.elements,Nn=p.multiLine?65536:0;Yt(p,Be,8914|Nn)}function Oa(p){e.forEach(p.properties,pu);var Be=e.getEmitFlags(p)&65536;Be&&ws();var Nn=p.multiLine?65536:0,bt=de.languageVersion>=1&&!e.isJsonSourceFile(de)?64:0;zr(p,p.properties,526226|bt|Nn),Be&&go()}function Ni(p){var Be=e.cast(_n(p.expression),e.isExpression),Nn=e.getDotOrQuestionDotToken(p),bt=ac(p,p.expression,Nn),Sr=ac(p,Nn,p.name);jl(bt,!1);var Yr=Nn.kind!==28&&ii(Be)&&!x.hasTrailingComment()&&!x.hasTrailingWhitespace();Yr&&sr("."),Qn(Nn.kind,p.expression.end,sr,p),jl(Sr,!1),Ie(p.name),Uc(bt,Sr)}function ii(p){if(p=e.skipPartiallyEmittedExpressions(p),e.isNumericLiteral(p)){var Be=wa(p,!0);return!p.numericLiteralFlags&&!e.stringContains(Be,e.tokenToString(24))}else if(e.isAccessExpression(p)){var Nn=e.getConstantValue(p);return typeof Nn=="number"&&isFinite(Nn)&&Math.floor(Nn)===Nn}}function _i(p){_n(p.expression),Ie(p.questionDotToken),Qn(22,p.expression.end,sr,p),_n(p.argumentExpression),Qn(23,p.argumentExpression.end,sr,p)}function Ye(p){_n(p.expression),Ie(p.questionDotToken),La(p,p.typeArguments),Yt(p,p.arguments,2576)}function zn(p){Qn(98,p.pos,_a,p),ar(),_n(p.expression),La(p,p.typeArguments),Yt(p,p.arguments,18960)}function ge(p){_n(p.tag),La(p,p.typeArguments),ar(),_n(p.template)}function hn(p){sr("<"),Ie(p.type),sr(">"),_n(p.expression)}function Jn(p){var Be=Qn(20,p.pos,sr,p);_n(p.expression),Qn(21,p.expression?p.expression.end:Be,sr,p)}function ue(p){ic(p.name),vi(p)}function rn(p){ta(p,p.decorators),ia(p,p.modifiers),pi(p,Cn)}function Cn(p){qa(p,p.typeParameters),Ja(p,p.parameters),Ka(p.type),ar(),Ie(p.equalsGreaterThanToken)}function Zn(p){Qn(84,p.pos,_a,p),ar(),_n(p.expression)}function lt(p){Qn(107,p.pos,_a,p),ar(),_n(p.expression)}function Rt(p){Qn(109,p.pos,_a,p),ar(),_n(p.expression)}function an(p){Qn(126,p.pos,_a,p),ar(),_n(p.expression)}function Dr(p){ts(p.operator,No),da(p)&&ar(),_n(p.operand)}function da(p){var Be=p.operand;return Be.kind===206&&(p.operator===39&&(Be.operator===39||Be.operator===45)||p.operator===40&&(Be.operator===40||Be.operator===46))}function Ha(p){_n(p.operand),ts(p.operator,No)}function to(p){var Be=p.operatorToken.kind!==27,Nn=ac(p,p.left,p.operatorToken),bt=ac(p,p.operatorToken,p.right);_n(p.left),jl(Nn,Be),Pl(p.operatorToken.pos),Ec(p.operatorToken,p.operatorToken.kind===96?_a:No),lc(p.operatorToken.end,!0),jl(bt,!0),_n(p.right),Uc(Nn,bt)}function ga(p){var Be=ac(p,p.condition,p.questionToken),Nn=ac(p,p.questionToken,p.whenTrue),bt=ac(p,p.whenTrue,p.colonToken),Sr=ac(p,p.colonToken,p.whenFalse);_n(p.condition),jl(Be,!0),Ie(p.questionToken),jl(Nn,!0),_n(p.whenTrue),Uc(Be,Nn),jl(bt,!0),Ie(p.colonToken),jl(Sr,!0),_n(p.whenFalse),Uc(bt,Sr)}function Yo(p){Ie(p.head),zr(p,p.templateSpans,262144)}function Co(p){Qn(120,p.pos,_a,p),Ie(p.asteriskToken),Xr(p.expression)}function Rs(p){Qn(25,p.pos,sr,p),_n(p.expression)}function vs(p){ic(p.name),Va(p)}function ml(p){_n(p.expression),La(p,p.typeArguments)}function Fs(p){_n(p.expression),p.type&&(ar(),_a("as"),ar(),Ie(p.type))}function Il(p){_n(p.expression),No("!")}function es(p){Oo(p.keywordToken,p.pos,sr),sr("."),Ie(p.name)}function hl(p){_n(p.expression),Ie(p.literal)}function Ul(p){gl(p,!p.multiLine&&vl(p))}function gl(p,Be){Qn(18,p.pos,sr,p);var Nn=Be||e.getEmitFlags(p)&1?768:129;zr(p,p.statements,Nn),Qn(19,p.statements.end,sr,p,!!(Nn&1))}function ho(p){ia(p,p.modifiers),Ie(p.declarationList),jo()}function Is(p){p?sr(";"):jo()}function Ns(p){_n(p.expression),(!e.isJsonSourceFile(de)||e.nodeIsSynthesized(p.expression))&&jo()}function bs(p){var Be=Qn(94,p.pos,_a,p);ar(),Qn(20,Be,sr,p),_n(p.expression),Qn(21,p.expression.end,sr,p),oa(p,p.thenStatement),p.elseStatement&&(As(p),Qn(86,p.thenStatement.end,_a,p),p.elseStatement.kind===226?(ar(),Ie(p.elseStatement)):oa(p,p.elseStatement))}function yl(p,Be){var Nn=Qn(110,Be,_a,p);ar(),Qn(20,Nn,sr,p),_n(p.expression),Qn(21,p.expression.end,sr,p)}function Ks(p){Qn(85,p.pos,_a,p),oa(p,p.statement),e.isBlock(p.statement)?ar():As(p),yl(p,p.statement.end),jo()}function qs(p){yl(p,p.pos),oa(p,p.statement)}function $s(p){var Be=Qn(92,p.pos,_a,p);ar();var Nn=Qn(20,Be,sr,p);Fn(p.initializer),Nn=Qn(26,p.initializer?p.initializer.end:Nn,sr,p),Xr(p.condition),Nn=Qn(26,p.condition?p.condition.end:Nn,sr,p),Xr(p.incrementor),Qn(21,p.incrementor?p.incrementor.end:Nn,sr,p),oa(p,p.statement)}function el(p){var Be=Qn(92,p.pos,_a,p);ar(),Qn(20,Be,sr,p),Fn(p.initializer),ar(),Qn(96,p.initializer.end,_a,p),ar(),_n(p.expression),Qn(21,p.expression.end,sr,p),oa(p,p.statement)}function nl(p){var Be=Qn(92,p.pos,_a,p);ar(),aa(p.awaitModifier),Qn(20,Be,sr,p),Fn(p.initializer),ar(),Qn(151,p.initializer.end,_a,p),ar(),_n(p.expression),Qn(21,p.expression.end,sr,p),oa(p,p.statement)}function Fn(p){p!==void 0&&(p.kind===242?Ie(p):_n(p))}function $n(p){Qn(81,p.pos,_a,p),yi(p.label),jo()}function ht(p){Qn(76,p.pos,_a,p),yi(p.label),jo()}function Qn(p,Be,Nn,bt,Sr){var Yr=e.getParseTreeNode(bt),ra=Yr&&Yr.kind===bt.kind,mi=Be;if(ra&&(Be=e.skipTrivia(de.text,Be)),Pl&&ra&&bt.pos!==mi){var q=Sr&&!e.positionsAreOnSameLine(mi,Be,de);q&&ws(),Pl(mi),q&&go()}return Be=ts(p,Nn,Be),lc&&ra&&bt.end!==Be&&lc(Be,!0),Be}function Qt(p){Qn(100,p.pos,_a,p),Xr(p.expression),jo()}function yr(p){var Be=Qn(111,p.pos,_a,p);ar(),Qn(20,Be,sr,p),_n(p.expression),Qn(21,p.expression.end,sr,p),oa(p,p.statement)}function Br(p){var Be=Qn(102,p.pos,_a,p);ar(),Qn(20,Be,sr,p),_n(p.expression),Qn(21,p.expression.end,sr,p),ar(),Ie(p.caseBlock)}function Lr(p){Ie(p.label),Qn(58,p.label.end,sr,p),ar(),Ie(p.statement)}function kr(p){Qn(104,p.pos,_a,p),Xr(p.expression),jo()}function Pr(p){Qn(106,p.pos,_a,p),ar(),Ie(p.tryBlock),p.catchClause&&(As(p),Ie(p.catchClause)),p.finallyBlock&&(As(p),Qn(91,(p.catchClause||p.tryBlock).end,_a,p),ar(),Ie(p.finallyBlock))}function Er(p){Oo(82,p.pos,_a),jo()}function fa(p){Ie(p.name),Ka(p.type),ci(p.initializer,p.type?p.type.end:p.name.end,p)}function Da(p){_a(e.isLet(p)?"let":e.isVarConst(p)?"const":"var"),ar(),zr(p,p.declarations,528)}function Fa(p){vi(p)}function vi(p){ta(p,p.decorators),ia(p,p.modifiers),_a("function"),Ie(p.asteriskToken),ar(),De(p.name),pi(p,Io)}function Eo(p,Be){wn(Be)}function pi(p,Be){var Nn=p.body;if(Nn)if(e.isBlock(Nn)){var bt=e.getEmitFlags(p)&65536;bt&&ws(),Gs(p),e.forEach(p.parameters,Do),Do(p.body),Be(p),_?_(4,Nn,Eo):wn(Nn),zt(p),bt&&go()}else Be(p),ar(),_n(Nn);else Be(p),jo()}function Io(p){qa(p,p.typeParameters),ri(p,p.parameters),Ka(p.type)}function qi(p){if(e.getEmitFlags(p)&1)return!0;if(p.multiLine)return!1;if(!e.nodeIsSynthesized(p)&&!e.rangeIsOnSingleLine(p,de))return!1;if(Tc(p,p.statements,2)||xc(p,p.statements,2))return!1;for(var Be,Nn=0,bt=p.statements;Nn<bt.length;Nn++){var Sr=bt[Nn];if(Sc(Be,Sr,2))return!1;Be=Sr}return!0}function wn(p){ar(),sr("{"),ws();var Be=qi(p)?$i:Go;jc?jc(p,p.statements,Be):Be(p),go(),Oo(19,p.statements.end,sr,p)}function $i(p){Go(p,!0)}function Go(p,Be){var Nn=Ft(p.statements),bt=x.getTextPos();ba(p),Nn===0&&bt===x.getTextPos()&&Be?(go(),zr(p,p.statements,768),ws()):zr(p,p.statements,1,Nn)}function Ho(p){Va(p)}function Va(p){e.forEach(p.members,pu),ta(p,p.decorators),ia(p,p.modifiers),_a("class"),p.name&&(ar(),De(p.name));var Be=e.getEmitFlags(p)&65536;Be&&ws(),qa(p,p.typeParameters),zr(p,p.heritageClauses,0),ar(),sr("{"),zr(p,p.members,129),sr("}"),Be&&go()}function Es(p){ta(p,p.decorators),ia(p,p.modifiers),_a("interface"),ar(),Ie(p.name),qa(p,p.typeParameters),zr(p,p.heritageClauses,512),ar(),sr("{"),zr(p,p.members,129),sr("}")}function me(p){ta(p,p.decorators),ia(p,p.modifiers),_a("type"),ar(),Ie(p.name),qa(p,p.typeParameters),ar(),sr("="),ar(),Ie(p.type),jo()}function En(p){ia(p,p.modifiers),_a("enum"),ar(),Ie(p.name),ar(),sr("{"),zr(p,p.members,145),sr("}")}function et(p){ia(p,p.modifiers),~p.flags&1024&&(_a(p.flags&16?"namespace":"module"),ar()),Ie(p.name);var Be=p.body;if(!Be)return jo();for(;Be.kind===248;)sr("."),Ie(Be.name),Be=Be.body;ar(),Ie(Be)}function Gt(p){Gs(p),e.forEach(p.statements,Do),gl(p,vl(p)),zt(p)}function br(p){Qn(18,p.pos,sr,p),zr(p,p.clauses,129),Qn(19,p.clauses.end,sr,p,!0)}function ya(p){ia(p,p.modifiers),Qn(95,p.modifiers?p.modifiers.end:p.pos,_a,p),ar(),Ie(p.name),ar(),Qn(62,p.name.end,sr,p),ar(),oi(p.moduleReference),jo()}function oi(p){p.kind===75?_n(p):Ie(p)}function za(p){ia(p,p.modifiers),Qn(95,p.modifiers?p.modifiers.end:p.pos,_a,p),ar(),p.importClause&&(Ie(p.importClause),ar(),Qn(148,p.importClause.end,_a,p),ar()),_n(p.moduleSpecifier),jo()}function ki(p){Ie(p.name),p.name&&p.namedBindings&&(Qn(27,p.name.end,sr,p),ar()),Ie(p.namedBindings)}function eo(p){var Be=Qn(41,p.pos,sr,p);ar(),Qn(122,Be,_a,p),ar(),Ie(p.name)}function ea(p){Bs(p)}function Ir(p){Ts(p)}function To(p){var Be=Qn(88,p.pos,_a,p);ar(),p.isExportEquals?Qn(62,Be,No,p):Qn(83,Be,_a,p),ar(),_n(p.expression),jo()}function Uo(p){var Be=Qn(88,p.pos,_a,p);if(ar(),p.exportClause?Ie(p.exportClause):Be=Qn(41,Be,sr,p),p.moduleSpecifier){ar();var Nn=p.exportClause?p.exportClause.end:Be;Qn(148,Nn,_a,p),ar(),_n(p.moduleSpecifier)}jo()}function tl(p){var Be=Qn(88,p.pos,_a,p);ar(),Be=Qn(122,Be,_a,p),ar(),Be=Qn(135,Be,_a,p),ar(),Ie(p.name),jo()}function Qo(p){Bs(p)}function co(p){Ts(p)}function Bs(p){sr("{"),zr(p,p.elements,525136),sr("}")}function Ts(p){p.propertyName&&(Ie(p.propertyName),ar(),Qn(122,p.propertyName.end,_a,p),ar()),Ie(p.name)}function Nc(p){_a("require"),sr("("),_n(p.expression),sr(")")}function _l(p){Ie(p.openingElement),zr(p,p.children,262144),Ie(p.closingElement)}function yc(p){sr("<"),zs(p.tagName),La(p,p.typeArguments),ar(),Ie(p.attributes),sr("/>")}function Ql(p){Ie(p.openingFragment),zr(p,p.children,262144),Ie(p.closingFragment)}function rl(p){sr("<"),e.isJsxOpeningElement(p)&&(zs(p.tagName),La(p,p.typeArguments),p.attributes.properties&&p.attributes.properties.length>0&&ar(),Ie(p.attributes)),sr(">")}function Js(p){x.writeLiteral(p.text)}function Oc(p){sr("</"),e.isJsxClosingElement(p)&&zs(p.tagName),sr(">")}function au(p){zr(p,p.properties,262656)}function Pc(p){Ie(p.name),ti("=",sr,p.initializer,Ie)}function iu(p){sr("{..."),_n(p.expression),sr("}")}function Zl(p){p.expression&&(sr("{"),Ie(p.dotDotDotToken),_n(p.expression),sr("}"))}function zs(p){p.kind===75?_n(p):Ie(p)}function Mc(p){Qn(77,p.pos,_a,p),ar(),_n(p.expression),Ss(p,p.statements,p.expression.end)}function Nl(p){var Be=Qn(83,p.pos,_a,p);Ss(p,p.statements,Be)}function Ss(p,Be,Nn){var bt=Be.length===1&&(e.nodeIsSynthesized(p)||e.nodeIsSynthesized(Be[0])||e.rangeStartPositionsAreOnSameLine(p,Be[0],de)),Sr=163969;bt?(Oo(58,Nn,sr,p),ar(),Sr&=~(1|128)):Qn(58,Nn,sr,p),zr(p,Be,Sr)}function Rc(p){ar(),ts(p.token,_a),ar(),zr(p,p.types,528)}function $l(p){var Be=Qn(78,p.pos,_a,p);ar(),p.variableDeclaration&&(Qn(20,Be,sr,p),Ie(p.variableDeclaration),Qn(21,p.variableDeclaration.end,sr,p),ar()),Ie(p.block)}function _c(p){Ie(p.name),sr(":"),ar();var Be=p.initializer;if(lc&&(e.getEmitFlags(Be)&512)===0){var Nn=e.getCommentRange(Be);lc(Nn.pos)}_n(Be)}function ou(p){Ie(p.name),p.objectAssignmentInitializer&&(ar(),sr("="),ar(),_n(p.objectAssignmentInitializer))}function Iu(p){p.expression&&(Qn(25,p.pos,sr,p),_n(p.expression))}function su(p){Ie(p.name),ci(p.initializer,p.name.end,p)}function lu(p){if(Oe("/**"),p.comment)for(var Be=p.comment.split(/\r\n?|\n/g),Nn=0,bt=Be;Nn<bt.length;Nn++){var Sr=bt[Nn];Bo(),ar(),sr("*"),ar(),Oe(Sr)}p.tags&&(p.tags.length===1&&p.tags[0].kind===313&&!p.comment?(ar(),Ie(p.tags[0])):zr(p,p.tags,33)),ar(),Oe("*/")}function cu(p){al(p.tagName),l(p.typeExpression),Xs(p.comment)}function Fc(p){al(p.tagName),ar(),sr("{"),Ie(p.class),sr("}"),Xs(p.comment)}function Gc(p){al(p.tagName),l(p.constraint),ar(),zr(p,p.typeParameters,528),Xs(p.comment)}function vc(p){al(p.tagName),p.typeExpression&&(p.typeExpression.kind===292?l(p.typeExpression):(ar(),sr("{"),Oe("Object"),p.typeExpression.isArrayType&&(sr("["),sr("]")),sr("}"))),p.fullName&&(ar(),Ie(p.fullName)),Xs(p.comment),p.typeExpression&&p.typeExpression.kind===302&&du(p.typeExpression)}function Bc(p){al(p.tagName),p.name&&(ar(),Ie(p.name)),Xs(p.comment),ec(p.typeExpression)}function uu(p){al(p.tagName),Xs(p.comment)}function du(p){zr(p,e.createNodeArray(p.jsDocPropertyTags),33)}function ec(p){p.typeParameters&&zr(p,e.createNodeArray(p.typeParameters),33),p.parameters&&zr(p,e.createNodeArray(p.parameters),33),p.type&&(Bo(),ar(),sr("*"),ar(),Ie(p.type))}function Vc(p){al(p.tagName),l(p.typeExpression),ar(),p.isBracketed&&sr("["),Ie(p.name),p.isBracketed&&sr("]"),Xs(p.comment)}function al(p){sr("@"),Ie(p)}function Xs(p){p&&(ar(),Oe(p))}function l(p){p&&(ar(),sr("{"),Ie(p.type),sr("}"))}function E(p){Bo();var Be=p.statements;if(jc){var Nn=Be.length===0||!e.isPrologueDirective(Be[0])||e.nodeIsSynthesized(Be[0]);if(Nn){jc(p,Be,fn);return}}fn(p)}function M(p){on(!!p.hasNoDefaultLib,p.syntheticFileReferences||[],p.syntheticTypeReferences||[],p.syntheticLibReferences||[]);for(var Be=0,Nn=p.prepends;Be<Nn.length;Be++){var bt=Nn[Be];if(e.isUnparsedSource(bt)&&bt.syntheticReferences)for(var Sr=0,Yr=bt.syntheticReferences;Sr<Yr.length;Sr++){var ra=Yr[Sr];Ie(ra),Bo()}}}function Me(p){p.isDeclarationFile&&on(p.hasNoDefaultLib,p.referencedFiles,p.typeReferenceDirectives,p.libReferenceDirectives)}function on(p,Be,Nn,bt){if(p){var Sr=x.getTextPos();ss('/// <reference no-default-lib="true"/>'),en&&en.sections.push({pos:Sr,end:x.getTextPos(),kind:"no-default-lib"}),Bo()}if(de&&de.moduleName&&(ss('/// <amd-module name="'+de.moduleName+'" />'),Bo()),de&&de.amdDependencies)for(var Yr=0,ra=de.amdDependencies;Yr<ra.length;Yr++){var mi=ra[Yr];mi.name?ss('/// <amd-dependency name="'+mi.name+'" path="'+mi.path+'" />'):ss('/// <amd-dependency path="'+mi.path+'" />'),Bo()}for(var q=0,dn=Be;q<dn.length;q++){var Un=dn[q],Sr=x.getTextPos();ss('/// <reference path="'+Un.fileName+'" />'),en&&en.sections.push({pos:Sr,end:x.getTextPos(),kind:"reference",data:Un.fileName}),Bo()}for(var Et=0,gr=Nn;Et<gr.length;Et++){var Un=gr[Et],Sr=x.getTextPos();ss('/// <reference types="'+Un.fileName+'" />'),en&&en.sections.push({pos:Sr,end:x.getTextPos(),kind:"type",data:Un.fileName}),Bo()}for(var Zr=0,ka=bt;Zr<ka.length;Zr++){var Un=ka[Zr],Sr=x.getTextPos();ss('/// <reference lib="'+Un.fileName+'" />'),en&&en.sections.push({pos:Sr,end:x.getTextPos(),kind:"lib",data:Un.fileName}),Bo()}}function fn(p){var Be=p.statements;Gs(p),e.forEach(p.statements,Do),ba(p);var Nn=e.findIndex(Be,function(bt){return!e.isPrologueDirective(bt)});Me(p),zr(p,Be,1,Nn===-1?Be.length:Nn),zt(p)}function Wn(p){_n(p.expression)}function Dt(p){Yt(p,p.elements,528)}function Ft(p,Be,Nn,bt){for(var Sr=!!Be,Yr=0;Yr<p.length;Yr++){var ra=p[Yr];if(e.isPrologueDirective(ra)){var mi=Nn?!Nn.has(ra.expression.text):!0;if(mi){Sr&&(Sr=!1,ct(Be)),Bo();var q=x.getTextPos();Ie(ra),bt&&en&&en.sections.push({pos:q,end:x.getTextPos(),kind:"prologue",data:ra.expression.text}),Nn&&Nn.set(ra.expression.text,!0)}}else return Yr}return p.length}function Lt(p,Be){for(var Nn=0,bt=p;Nn<bt.length;Nn++){var Sr=bt[Nn];if(!Be.has(Sr.data)){Bo();var Yr=x.getTextPos();Ie(Sr),en&&en.sections.push({pos:Yr,end:x.getTextPos(),kind:"prologue",data:Sr.data}),Be&&Be.set(Sr.data,!0)}}}function mr(p){if(e.isSourceFile(p))Ft(p.statements,p);else{for(var Be=e.createMap(),Nn=0,bt=p.prepends;Nn<bt.length;Nn++){var Sr=bt[Nn];Lt(Sr.prologues,Be)}for(var Yr=0,ra=p.sourceFiles;Yr<ra.length;Yr++){var mi=ra[Yr];Ft(mi.statements,mi,Be,!0)}ct(void 0)}}function fr(p){for(var Be=e.createMap(),Nn,bt=0;bt<p.sourceFiles.length;bt++){for(var Sr=p.sourceFiles[bt],Yr=void 0,ra=0,mi=0,q=Sr.statements;mi<q.length;mi++){var dn=q[mi];if(!e.isPrologueDirective(dn))break;if(Be.has(dn.expression.text))continue;Be.set(dn.expression.text,!0),(Yr||(Yr=[])).push({pos:dn.pos,end:dn.end,expression:{pos:dn.expression.pos,end:dn.expression.end,text:dn.expression.text}}),ra=ra<dn.end?dn.end:ra}Yr&&(Nn||(Nn=[])).push({file:bt,text:Sr.text.substring(0,ra),directives:Yr})}return Nn}function Hr(p){if(e.isSourceFile(p)||e.isUnparsedSource(p)){var Be=e.getShebang(p.text);if(Be)return ss(Be),Bo(),!0}else{for(var Nn=0,bt=p.prepends;Nn<bt.length;Nn++){var Sr=bt[Nn];if(e.Debug.assertNode(Sr,e.isUnparsedSource),Hr(Sr))return!0}for(var Yr=0,ra=p.sourceFiles;Yr<ra.length;Yr++){var mi=ra[Yr];if(Hr(mi))return!0}}}function ha(p,Be){if(!p)return;var Nn=Oe;Oe=Be,Ie(p),Oe=Nn}function ia(p,Be){Be&&Be.length&&(zr(p,Be,262656),ar())}function Ka(p){p&&(sr(":"),ar(),Ie(p))}function ci(p,Be,Nn){p&&(ar(),Qn(62,Be,No,Nn),ar(),_n(p))}function ti(p,Be,Nn,bt){Nn&&(Be(p),bt(Nn))}function yi(p){p&&(ar(),Ie(p))}function Xr(p){p&&(ar(),_n(p))}function aa(p){p&&(Ie(p),ar())}function oa(p,Be){e.isBlock(Be)||e.getEmitFlags(p)&1?(ar(),Ie(Be)):(Bo(),ws(),e.isEmptyStatement(Be)?_t(5,Be):Ie(Be),go())}function ta(p,Be){zr(p,Be,49153)}function La(p,Be){zr(p,Be,53776)}function qa(p,Be){if(e.isFunctionLike(p)&&p.typeArguments)return La(p,p.typeArguments);zr(p,Be,53776)}function ri(p,Be){zr(p,Be,2576)}function ro(p,Be){var Nn=e.singleOrUndefined(Be);return Nn&&Nn.pos===p.pos&&e.isArrowFunction(p)&&!p.type&&!e.some(p.decorators)&&!e.some(p.modifiers)&&!e.some(p.typeParameters)&&!e.some(Nn.decorators)&&!e.some(Nn.modifiers)&&!Nn.dotDotDotToken&&!Nn.questionToken&&!Nn.type&&!Nn.initializer&&e.isIdentifier(Nn.name)}function Ja(p,Be){ro(p,Be)?zr(p,Be,2576&~2048):ri(p,Be)}function Ko(p,Be){zr(p,Be,8848)}function zr(p,Be,Nn,bt,Sr){zu(Ie,p,Be,Nn,bt,Sr)}function Yt(p,Be,Nn,bt,Sr){zu(_n,p,Be,Nn,bt,Sr)}function xs(p){switch(p&60){case 0:break;case 16:sr(",");break;case 4:ar(),sr("|");break;case 32:ar(),sr("*"),ar();break;case 8:ar(),sr("&");break}}function zu(p,Be,Nn,bt,Sr,Yr){Sr===void 0&&(Sr=0),Yr===void 0&&(Yr=Nn?Nn.length-Sr:0);var ra=Nn===void 0;if(ra&&bt&16384)return;var mi=Nn===void 0||Sr>=Nn.length||Yr===0;if(mi&&bt&32768){T&&T(Nn),Q&&Q(Nn);return}if(bt&15360&&(sr(Ee(bt)),mi&&!ra&&lc(Nn.pos,!0)),T&&T(Nn),mi)bt&1?Bo():bt&256&&!(bt&524288)&&ar();else{var q=(bt&262144)===0,dn=q;Tc(Be,Nn,bt)?(Bo(),dn=!1):bt&256&&ar(),bt&128&&ws();for(var Un=void 0,Et=void 0,gr=!1,Zr=0;Zr<Yr;Zr++){var ka=Nn[Sr+Zr];if(bt&32?(Bo(),xs(bt)):Un&&(bt&60&&Un.end!==Be.end&&Pl(Un.end),xs(bt),mn(Et),Sc(Un,ka,bt)?((bt&(3|128))===0&&(ws(),gr=!0),Bo(),dn=!1):Un&&bt&512&&ar()),Et=ye(ka),dn){if(lc){var ps=e.getCommentRange(ka);lc(ps.pos)}}else dn=q;p(ka),gr&&(go(),gr=!1),Un=ka}var u=bt&64&&Nn.hasTrailingComma;bt&16&&u&&sr(","),Un&&bt&60&&Un.end!==Be.end&&!(e.getEmitFlags(Un)&1024)&&Pl(Un.end),bt&128&&go(),mn(Et),xc(Be,Nn,bt)?Bo():bt&256&&ar()}Q&&Q(Nn),bt&15360&&(mi&&!ra&&Pl(Nn.end),sr(B(bt)))}function pd(p){x.writeLiteral(p)}function Nu(p){x.writeStringLiteral(p)}function bc(p){x.write(p)}function nc(p,Be){x.writeSymbol(p,Be)}function sr(p){x.writePunctuation(p)}function jo(){x.writeTrailingSemicolon(";")}function _a(p){x.writeKeyword(p)}function No(p){x.writeOperator(p)}function tc(p){x.writeParameter(p)}function ss(p){x.writeComment(p)}function ar(){x.writeSpace(" ")}function il(p){x.writeProperty(p)}function Bo(){x.writeLine()}function ws(){x.increaseIndent()}function go(){x.decreaseIndent()}function Oo(p,Be,Nn,bt){return Le?ts(p,Nn,Be):Ve(bt,p,Nn,Be,ts)}function Ec(p,Be){N&&N(p),Be(e.tokenToString(p.kind)),X&&X(p)}function ts(p,Be,Nn){var bt=e.tokenToString(p);return Be(bt),Nn<0?Nn:Nn+bt.length}function As(p){e.getEmitFlags(p)&1?ar():Bo()}function fu(p){for(var Be=p.split(/\r\n?|\n/g),Nn=e.guessIndentation(Be),bt=0,Sr=Be;bt<Sr.length;bt++){var Yr=Sr[bt],ra=Nn?Yr.slice(Nn):Yr;ra.length&&(Bo(),Oe(ra))}}function jl(p,Be){p?(ws(),Bo()):Be&&ar()}function Uc(p,Be){p&&go(),Be&&go()}function Tc(p,Be,Nn){if(Nn&1)return!0;if(Nn&2){if(Nn&65536)return!0;var bt=Be[0];return bt===void 0?!e.rangeIsOnSingleLine(p,de):e.positionIsSynthesized(p.pos)||e.nodeIsSynthesized(bt)?rc(bt,Nn):!e.rangeStartPositionsAreOnSameLine(p,bt,de)}else return!1}function Sc(p,Be,Nn){return Nn&1?!0:Nn&2?p===void 0||Be===void 0?!1:e.nodeIsSynthesized(p)||e.nodeIsSynthesized(Be)?rc(p,Nn)||rc(Be,Nn):!e.rangeEndIsOnSameLineAsRangeStart(p,Be,de):e.getStartsOnNewLine(Be)}function xc(p,Be,Nn){if(Nn&1)return(Nn&131072)===0;if(Nn&2){if(Nn&65536)return!0;var bt=e.lastOrUndefined(Be);return bt===void 0?!e.rangeIsOnSingleLine(p,de):e.positionIsSynthesized(p.pos)||e.nodeIsSynthesized(bt)?rc(bt,Nn):!e.rangeEndPositionsAreOnSameLine(p,bt,de)}else return!1}function rc(p,Be){if(e.nodeIsSynthesized(p)){var Nn=e.getStartsOnNewLine(p);return Nn===void 0?(Be&65536)!==0:Nn}return(Be&65536)!==0}function ac(p,Be,Nn){return e.getEmitFlags(p)&131072?!1:(p=Ys(p),Be=Ys(Be),Nn=Ys(Nn),e.getStartsOnNewLine(Nn)?!0:!e.nodeIsSynthesized(p)&&!e.nodeIsSynthesized(Be)&&!e.nodeIsSynthesized(Nn)&&!e.rangeEndIsOnSameLineAsRangeStart(Be,Nn,de))}function vl(p){return p.statements.length===0&&e.rangeEndIsOnSameLineAsRangeStart(p,p,de)}function Ys(p){for(;p.kind===199&&e.nodeIsSynthesized(p);)p=p.expression;return p}function Ol(p,Be){return e.isGeneratedIdentifier(p)?Wl(p):e.isIdentifier(p)&&(e.nodeIsSynthesized(p)||!p.parent||!de||p.parent&&de&&e.getSourceFileOfNode(p)!==e.getOriginalNode(de))?e.idText(p):p.kind===10&&p.textSourceNode?Ol(p.textSourceNode,Be):e.isLiteralExpression(p)&&(e.nodeIsSynthesized(p)||!p.parent)?p.text:e.getSourceTextOfNodeFromSourceFile(de,p,Be)}function wa(p,Be){if(p.kind===10&&p.textSourceNode){var Nn=p.textSourceNode;return e.isIdentifier(Nn)?Be||e.getEmitFlags(p)&16777216?'"'+e.escapeString(Ol(Nn))+'"':'"'+e.escapeNonAsciiString(Ol(Nn))+'"':wa(Nn,Be)}return e.getLiteralText(p,de,Be)}function Gs(p){if(p&&e.getEmitFlags(p)&524288)return;Ae.push(We),We=0,be.push(Ge)}function zt(p){if(p&&e.getEmitFlags(p)&524288)return;We=Ae.pop(),Ge=be.pop()}function bl(p){(!Ge||Ge===e.lastOrUndefined(be))&&(Ge=e.createMap()),Ge.set(p,!0)}function Do(p){if(!p)return;switch(p.kind){case 222:e.forEach(p.statements,Do);break;case 237:case 235:case 227:case 228:Do(p.statement);break;case 226:Do(p.thenStatement),Do(p.elseStatement);break;case 229:case 231:case 230:Do(p.initializer),Do(p.statement);break;case 236:Do(p.caseBlock);break;case 250:e.forEach(p.clauses,Do);break;case 275:case 276:e.forEach(p.statements,Do);break;case 239:Do(p.tryBlock),Do(p.catchClause),Do(p.finallyBlock);break;case 278:Do(p.variableDeclaration),Do(p.block);break;case 224:Do(p.declarationList);break;case 242:e.forEach(p.declarations,Do);break;case 241:case 155:case 190:case 244:ic(p.name);break;case 243:ic(p.name),e.getEmitFlags(p)&524288&&(e.forEach(p.parameters,Do),Do(p.body));break;case 188:case 189:e.forEach(p.elements,Do);break;case 253:Do(p.importClause);break;case 254:ic(p.name),Do(p.namedBindings);break;case 255:ic(p.name);break;case 256:e.forEach(p.elements,Do);break;case 257:ic(p.propertyName||p.name);break}}function pu(p){if(!p)return;switch(p.kind){case 279:case 280:case 158:case 160:case 162:case 163:ic(p.name);break}}function ic(p){p&&(e.isGeneratedIdentifier(p)?Wl(p):e.isBindingPattern(p)&&Do(p))}function Wl(p){if((p.autoGenerateFlags&7)===4)return Xu(Qu(p),p.autoGenerateFlags);var Be=p.autoGenerateId;return Z[Be]||(Z[Be]=sc(p))}function Xu(p,Be){var Nn=e.getNodeId(p);return Ce[Nn]||(Ce[Nn]=Kl(p,Be))}function zi(p){return Hl(p)&&!Re.has(p)&&!(Ge&&Ge.has(p))}function Hl(p){return de?e.isFileLevelUniqueName(de,p,L):!0}function Ra(p,Be){for(var Nn=Be;e.isNodeDescendantOf(Nn,Be);Nn=Nn.nextContainer)if(Nn.locals){var bt=Nn.locals.get(e.escapeLeadingUnderscores(p));if(bt&&bt.flags&(111551|1048576|2097152))return!1}return!0}function wc(p,Be){if(p&&!(We&p)){var Nn=p===268435456?"_i":"_n";if(zi(Nn))return We|=p,Be&&bl(Nn),Nn}for(;;){var bt=We&268435455;if(We++,bt!==8&&bt!==13){var Nn=bt<26?"_"+String.fromCharCode(97+bt):"_"+(bt-26);if(zi(Nn))return Be&&bl(Nn),Nn}}}function us(p,Be,Nn,bt){if(Be===void 0&&(Be=zi),Nn&&Be(p))return bt?bl(p):Re.set(p,!0),p;p.charCodeAt(p.length-1)!==95&&(p+="_");for(var Sr=1;;){var Yr=p+Sr;if(Be(Yr))return bt?bl(Yr):Re.set(Yr,!0),Yr;Sr++}}function Vs(p){return us(p,Hl,!0)}function ns(p){var Be=Ol(p.name);return Ra(Be,p)?Be:us(Be)}function Yu(p){var Be=e.getExternalModuleName(p),Nn=e.isStringLiteral(Be)?e.makeIdentifierFromModuleName(Be.text):"module";return us(Nn)}function Qs(){return us("default")}function oc(){return us("class")}function md(p){return e.isIdentifier(p.name)?Xu(p.name):wc(0)}function Kl(p,Be){switch(p.kind){case 75:return us(Ol(p),zi,!!(Be&16),!!(Be&8));case 248:case 247:return ns(p);case 253:case 259:return Yu(p);case 243:case 244:case 258:return Qs();case 213:return oc();case 160:case 162:case 163:return md(p);case 153:return wc(0,!0);default:return wc(0)}}function sc(p){switch(p.autoGenerateFlags&7){case 1:return wc(0,!!(p.autoGenerateFlags&8));case 2:return wc(268435456,!!(p.autoGenerateFlags&8));case 3:return us(e.idText(p),p.autoGenerateFlags&32?Hl:zi,!!(p.autoGenerateFlags&16),!!(p.autoGenerateFlags&8))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}function Qu(p){for(var Be=p.autoGenerateId,Nn=p,bt=Nn.original;bt&&!(Nn=bt,e.isIdentifier(Nn)&&!!(Nn.autoGenerateFlags&4)&&Nn.autoGenerateId!==Be);)bt=Nn.original;return Nn}function Zo(p,Be){e.Debug.assert(O===Be||ee===Be),Ne(),G=!1;var Nn=e.getEmitFlags(Be),bt=e.getCommentRange(Be),Sr=bt.pos,Yr=bt.end,ra=Be.kind!==318,mi=Sr<0||(Nn&512)!==0||Be.kind===11,q=Yr<0||(Nn&1024)!==0||Be.kind===11,dn=cn,Un=$e,Et=sn;(Sr>0||Yr>0)&&Sr!==Yr&&(mi||Wc(Sr,ra),(!mi||Sr>=0&&(Nn&512)!==0)&&(cn=Sr),(!q||Yr>=0&&(Nn&1024)!==0)&&($e=Yr,Be.kind===242&&(sn=Yr))),e.forEach(e.getSyntheticLeadingComments(Be),hd),ze();var gr=Ht(2,Be);Nn&2048?(c=!0,gr(p,Be),c=!1):gr(p,Be),Ne(),e.forEach(e.getSyntheticTrailingComments(Be),Bi),(Sr>0||Yr>0)&&Sr!==Yr&&(cn=dn,$e=Un,sn=Et,!q&&ra&&Ml(Yr)),ze(),e.Debug.assert(O===Be||ee===Be)}function hd(p){p.kind===2&&x.writeLine(),Ou(p),p.hasTrailingNewLine||p.kind===2?x.writeLine():x.writeSpace(" ")}function Bi(p){x.isAtStartOfLine()||x.writeSpace(" "),Ou(p),p.hasTrailingNewLine&&x.writeLine()}function Ou(p){var Be=Zu(p),Nn=p.kind===3?e.computeLineStarts(Be):void 0;e.writeCommentRange(Be,Nn,x,0,Be.length,S)}function Zu(p){return p.kind===3?"/*"+p.text+"*/":"//"+p.text}function jc(p,Be,Nn){Ne();var bt=Be.pos,Sr=Be.end,Yr=e.getEmitFlags(p),ra=bt<0||(Yr&512)!==0,mi=c||Sr<0||(Yr&1024)!==0;ra||gd(Be),ze(),Yr&2048&&!c?(c=!0,Nn(p),c=!1):Nn(p),Ne(),mi||(Wc(Be.end,!0),G&&!x.isAtStartOfLine()&&x.writeLine()),ze()}function Wc(p,Be){G=!1,Be?ol(p,$u):p===0&&ol(p,mu)}function mu(p,Be,Nn,bt,Sr){Pd(p,Be)&&$u(p,Be,Nn,bt,Sr)}function Hc(p,Be){return m.onlyPrintJsDocStyle?e.isJSDocLikeText(p,Be)||e.isPinnedComment(p,Be):!0}function $u(p,Be,Nn,bt,Sr){if(!Hc(de.text,p))return;G||(e.emitNewLineBeforeLeadingCommentOfPosition(qn(),x,Sr,p),G=!0),g(p),e.writeCommentRange(de.text,qn(),x,p,Be,S),g(Be),bt?x.writeLine():Nn===3&&x.writeSpace(" ")}function Pl(p){if(c||p===-1)return;Wc(p,!0)}function Ml(p){ed(p,ql)}function ql(p,Be,Nn,bt){if(!Hc(de.text,p))return;x.isAtStartOfLine()||x.writeSpace(" "),g(p),e.writeCommentRange(de.text,qn(),x,p,Be,S),g(Be),bt&&x.writeLine()}function lc(p,Be){if(c)return;Ne(),ed(p,Be?ql:Pu),ze()}function Pu(p,Be,Nn,bt){g(p),e.writeCommentRange(de.text,qn(),x,p,Be,S),g(Be),bt?x.writeLine():x.writeSpace(" ")}function ol(p,Be){de&&(cn===-1||p!==cn)&&(nd(p)?hu(Be):e.forEachLeadingCommentRange(de.text,p,Be,p))}function ed(p,Be){de&&($e===-1||p!==$e&&p!==sn)&&e.forEachTrailingCommentRange(de.text,p,Be)}function nd(p){return ke!==void 0&&e.last(ke).nodePos===p}function hu(p){var Be=e.last(ke).detachedCommentEndPos;ke.length-1?ke.pop():ke=void 0,e.forEachLeadingCommentRange(de.text,Be,p,Be)}function gd(p){var Be=e.emitDetachedComments(de.text,qn(),x,Od,p,S,c);Be&&(ke?ke.push(Be):ke=[Be])}function Od(p,Be,Nn,bt,Sr,Yr){if(!Hc(de.text,bt))return;g(bt),e.writeCommentRange(p,Be,Nn,bt,Sr,Yr),g(Sr)}function Pd(p,Be){return e.isRecognizedTripleSlashComment(de.text,p,Be)}function cc(p){return p.parsedSourceMap===void 0&&p.sourceMapText!==void 0&&(p.parsedSourceMap=e.tryParseRawSourceMap(p.sourceMapText)||!1),p.parsedSourceMap||void 0}function Md(p,Be){e.Debug.assert(O===Be||ee===Be);var Nn=Ht(3,Be);if(e.isUnparsedSource(Be)||e.isUnparsedPrepend(Be))Nn(p,Be);else if(e.isUnparsedNode(Be)){var bt=cc(Be.parent);bt&&Je&&Je.appendSourceMap(x.getLine(),x.getColumn(),bt,Be.parent.sourceMapPath,Be.parent.getLineAndCharacterOfPosition(Be.pos),Be.parent.getLineAndCharacterOfPosition(Be.end)),Nn(p,Be)}else{var Sr=e.getSourceMapRange(Be),Yr=Sr.pos,ra=Sr.end,mi=Sr.source,q=mi===void 0?Ze:mi,dn=e.getEmitFlags(Be);Be.kind!==318&&(dn&16)===0&&Yr>=0&&te(q,Mu(q,Yr)),dn&64?(Le=!0,Nn(p,Be),Le=!1):Nn(p,Be),Be.kind!==318&&(dn&32)===0&&ra>=0&&te(q,ra)}e.Debug.assert(O===Be||ee===Be)}function Mu(p,Be){return p.skipTrivia?p.skipTrivia(Be):e.skipTrivia(p.text,Be)}function g(p){if(Le||e.positionIsSynthesized(p)||rt(Ze))return;var Be=e.getLineAndCharacterOfPosition(Ze,p),Nn=Be.line,bt=Be.character;Je.addMapping(x.getLine(),x.getColumn(),Ue,Nn,bt,void 0)}function te(p,Be){if(p!==Ze){var Nn=Ze;Dn(p),g(Be),Dn(Nn)}else g(Be)}function Ve(p,Be,Nn,bt,Sr){if(Le||p&&e.isInJsonFile(p))return Sr(Be,Nn,bt);var Yr=p&&p.emitNode,ra=Yr&&Yr.flags||0,mi=Yr&&Yr.tokenSourceMapRanges&&Yr.tokenSourceMapRanges[Be],q=mi&&mi.source||Ze;return bt=Mu(q,mi?mi.pos:bt),(ra&128)===0&&bt>=0&&te(q,bt),bt=Sr(Be,Nn,bt),mi&&(bt=mi.end),(ra&256)===0&&bt>=0&&te(q,bt),bt}function Dn(p){if(Le)return;if(Ze=p,rt(p))return;Ue=Je.addSource(p.fileName),m.inlineSources&&Je.setSourceContent(Ue,p.text)}function rt(p){return e.fileExtensionIs(p.fileName,".json")}}e.createPrinter=K;function z(){var m=[];return m[1024]=["{","}"],m[2048]=["(",")"],m[4096]=["<",">"],m[8192]=["[","]"],m}function Ee(m){return o[m&15360][0]}function B(m){return o[m&15360][1]}var V;(function(m){m[m.Auto=0]="Auto",m[m.CountMask=268435455]="CountMask",m[m._i=268435456]="_i"})(V||(V={}))})(ln||(ln={}));var ln;(function(e){function o(k,P,h){if(!k.getDirectories||!k.readDirectory)return;var Y=e.createMap(),ne=e.createGetCanonicalFileName(h);return{useCaseSensitiveFileNames:h,fileExists:y,readFile:function(S,v){return k.readFile(S,v)},directoryExists:k.directoryExists&&L,getDirectories:_,readDirectory:b,createDirectory:k.createDirectory&&C,writeFile:k.writeFile&&m,addOrDeleteFileOrDirectory:T,addOrDeleteFile:Q,clearCache:X,realpath:k.realpath&&D};function $(pe){return e.toPath(pe,P,ne)}function J(pe){return Y.get(e.ensureTrailingDirectorySeparator(pe))}function fe(pe){return J(e.getDirectoryPath(pe))}function R(pe){return e.getBaseFileName(e.normalizePath(pe))}function K(pe,S){var v={files:e.map(k.readDirectory(pe,void 0,void 0,["*.*"]),R)||[],directories:k.getDirectories(pe)||[]};return Y.set(e.ensureTrailingDirectorySeparator(S),v),v}function z(pe,S){S=e.ensureTrailingDirectorySeparator(S);var v=J(S);if(v)return v;try{return K(pe,S)}catch(U){e.Debug.assert(!Y.has(e.ensureTrailingDirectorySeparator(S)));return}}function Ee(pe,S){return ne(pe)===ne(S)}function B(pe,S){return e.some(pe,function(v){return Ee(v,S)})}function V(pe,S,v){if(B(pe,S)){if(!v)return e.filterMutate(pe,function(U){return!Ee(U,S)})}else if(v)return pe.push(S)}function m(pe,S,v){var U=$(pe),de=fe(U);return de&&N(de,R(pe),!0),k.writeFile(pe,S,v)}function y(pe){var S=$(pe),v=fe(S);return v&&B(v.files,R(pe))||k.fileExists(pe)}function L(pe){var S=$(pe);return Y.has(e.ensureTrailingDirectorySeparator(S))||k.directoryExists(pe)}function C(pe){var S=$(pe),v=fe(S),U=R(pe);v&&V(v.directories,U,!0),k.createDirectory(pe)}function _(pe){var S=$(pe),v=z(pe,S);return v?v.directories.slice():k.getDirectories(pe)}function b(pe,S,v,U,de){var Ce=$(pe),Z=z(pe,Ce);if(Z)return e.matchFiles(pe,S,v,U,h,P,de,Re,D);return k.readDirectory(pe,S,v,U,de);function Re(Ae){var We=$(Ae);return We===Ce?Z:z(Ae,We)||e.emptyFileSystemEntries}}function D(pe){return k.realpath?k.realpath(pe):pe}function T(pe,S){var v=J(S);if(v){X();return}var U=fe(S);if(!U)return;if(!k.directoryExists){X();return}var de=R(pe),Ce={fileExists:k.fileExists(S),directoryExists:k.directoryExists(S)};return Ce.directoryExists||B(U.directories,de)?X():N(U,de,Ce.fileExists),Ce}function Q(pe,S,v){if(v===e.FileWatcherEventKind.Changed)return;var U=fe(S);U&&N(U,R(pe),v===e.FileWatcherEventKind.Created)}function N(pe,S,v){V(pe.files,S,v)}function X(){Y.clear()}}e.createCachedDirectoryStructureHost=o;var F;(function(k){k[k.None=0]="None",k[k.Partial=1]="Partial",k[k.Full=2]="Full"})(F=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}));function qe(k,P,h){var Y=k.getMissingFilePaths(),ne=e.arrayToSet(Y);e.mutateMap(P,ne,{createNewValue:h,onDeleteValue:e.closeFileWatcher})}e.updateMissingFilePathsWatch=qe;function Se(k,P,h){e.mutateMap(k,P,{createNewValue:Y,onDeleteValue:w,onExistingValue:ne});function Y($,J){return{watcher:h($,J),flags:J}}function ne($,J,fe){if($.flags===J)return;$.watcher.close(),k.set(fe,Y(fe,J))}}e.updateWatchingWildcardDirectories=Se;function Fe(k,P){return k?k.isEmittedFile(P):!1}e.isEmittedFileOfProgram=Fe;var He;(function(k){k[k.None=0]="None",k[k.TriggerOnly=1]="TriggerOnly",k[k.Verbose=2]="Verbose"})(He=e.WatchLogLevel||(e.WatchLogLevel={}));function ve(k,P,h){return ie(k,P,h,d,H)}e.getWatchFactory=ve;function ie(k,P,h,Y,ne){var $=Pe(k,Y),J=k===He.None?R:$,fe=Pe(k,ne);return k===He.Verbose&&e.sysLog===e.noop&&(e.sysLog=function(K){return P(K)}),{watchFile:function(z,Ee,B,V,m,y){return $(z,Ee,B,V,void 0,m,y,Y,P,"FileWatcher",h)},watchFilePath:function(z,Ee,B,V,m,y,L){return J(z,Ee,B,V,m,y,L,Y,P,"FileWatcher",h)},watchDirectory:function(z,Ee,B,V,m,y){return fe(z,Ee,B,V,void 0,m,y,ne,P,"DirectoryWatcher",h)}};function R(K,z,Ee,B,V){return Y(K,z,function(m,y){return Ee(m,y,V)},B)}}function d(k,P,h,Y){return k.watchFile(P,h,Y)}function H(k,P,h,Y){return k.watchDirectory(P,h,(Y&1)!==0)}function Pe(k,P){switch(k){case He.None:return P;case He.TriggerOnly:return re;case He.Verbose:return P===H?_e:I}}function I(k,P,h,Y,ne,$,J,fe,R,K,z){R(K+":: Added:: "+se(P,Y,$,J,z));var Ee=re(k,P,h,Y,ne,$,J,fe,R,K,z);return{close:function(){R(K+":: Close:: "+se(P,Y,$,J,z)),Ee.close()}}}function _e(k,P,h,Y,ne,$,J,fe,R,K,z){var Ee=K+":: Added:: "+se(P,Y,$,J,z);R(Ee);var B=e.timestamp(),V=re(k,P,h,Y,ne,$,J,fe,R,K,z),m=e.timestamp()-B;return R("Elapsed:: "+m+"ms "+Ee),{close:function(){var L=K+":: Close:: "+se(P,Y,$,J,z);R(L);var C=e.timestamp();V.close();var _=e.timestamp()-C;R("Elapsed:: "+_+"ms "+L)}}}function re(k,P,h,Y,ne,$,J,fe,R,K,z){return fe(k,P,function(Ee,B){var V=K+":: Triggered with "+Ee+" "+(B!==void 0?B:"")+":: "+se(P,Y,$,J,z);R(V);var m=e.timestamp();h(Ee,B,ne);var y=e.timestamp()-m;R("Elapsed:: "+y+"ms "+V)},Y)}function se(k,P,h,Y,ne){return"WatchInfo: "+k+" "+P+" "+(ne?ne(h,Y):Y===void 0?h:h+" "+Y)}function w(k){k.watcher.close()}e.closeFileWatcherOf=w})(ln||(ln={}));var ln;(function(e){var o=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;function F(b,D,T){return T===void 0&&(T="tsconfig.json"),e.forEachAncestorDirectory(b,function(Q){var N=e.combinePaths(Q,T);return D(N)?N:void 0})}e.findConfigFile=F;function qe(b,D){var T=e.getDirectoryPath(D),Q=e.isRootedDiskPath(b)?b:e.combinePaths(T,b);return e.normalizePath(Q)}e.resolveTripleslashReference=qe;function Se(b,D,T){var Q,N=e.forEach(b,function(X){var pe=e.getNormalizedPathComponents(X,D);if(pe.pop(),!Q){Q=pe;return}for(var S=Math.min(Q.length,pe.length),v=0;v<S;v++)if(T(Q[v])!==T(pe[v])){if(v===0)return!0;Q.length=v;break}pe.length<Q.length&&(Q.length=pe.length)});return N?"":Q?e.getPathFromPathComponents(Q):D}e.computeCommonSourceDirectoryOfFilenames=Se;function Fe(b,D){return He(b,D)}e.createCompilerHost=Fe;function He(b,D,T){T===void 0&&(T=e.sys);var Q=e.createMap(),N=e.createGetCanonicalFileName(T.useCaseSensitiveFileNames);function X(We,be,Ge){var x;try{e.performance.mark("beforeIORead"),x=Ae.readFile(We),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(j){Ge&&Ge(j.message),x=""}return x!==void 0?e.createSourceFile(We,x,be,D):void 0}function pe(We){return Q.has(We)?!0:T.directoryExists(We)?(Q.set(We,!0),!0):!1}function S(We){if(We.length>e.getRootLength(We)&&!pe(We)){var be=e.getDirectoryPath(We);S(be),Ae.createDirectory?Ae.createDirectory(We):T.createDirectory(We)}}var v;function U(We,be,Ge){v||(v=e.createMap());var x=T.createHash(be),j=T.getModifiedTime(We);if(j){var Oe=v.get(We);if(Oe&&Oe.byteOrderMark===Ge&&Oe.hash===x&&Oe.mtime.getTime()===j.getTime())return}T.writeFile(We,be,Ge);var a=T.getModifiedTime(We)||e.missingFileModifiedTime;v.set(We,{hash:x,byteOrderMark:Ge,mtime:a})}function de(We,be,Ge,x){try{e.performance.mark("beforeIOWrite"),S(e.getDirectoryPath(e.normalizePath(We))),e.isWatchSet(b)&&T.createHash&&T.getModifiedTime?U(We,be,Ge):T.writeFile(We,be,Ge),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(j){x&&x(j.message)}}function Ce(){return e.getDirectoryPath(e.normalizePath(T.getExecutingFilePath()))}var Z=e.getNewLineCharacter(b,function(){return T.newLine}),Re=T.realpath&&function(We){return T.realpath(We)},Ae={getSourceFile:X,getDefaultLibLocation:Ce,getDefaultLibFileName:function(be){return e.combinePaths(Ce(),e.getDefaultLibFileName(be))},writeFile:de,getCurrentDirectory:e.memoize(function(){return T.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return T.useCaseSensitiveFileNames},getCanonicalFileName:N,getNewLine:function(){return Z},fileExists:function(be){return T.fileExists(be)},readFile:function(be){return T.readFile(be)},trace:function(be){return T.write(be+Z)},directoryExists:function(be){return T.directoryExists(be)},getEnvironmentVariable:function(be){return T.getEnvironmentVariable?T.getEnvironmentVariable(be):""},getDirectories:function(be){return T.getDirectories(be)},realpath:Re,readDirectory:function(be,Ge,x,j,Oe){return T.readDirectory(be,Ge,x,j,Oe)},createDirectory:function(be){return T.createDirectory(be)},createHash:e.maybeBind(T,T.createHash)};return Ae}e.createCompilerHostWorker=He;function ve(b,D,T){var Q=b.readFile,N=b.fileExists,X=b.directoryExists,pe=b.createDirectory,S=b.writeFile,v=e.createMap(),U=e.createMap(),de=e.createMap(),Ce=e.createMap(),Z=function(be){var Ge=D(be),x=v.get(Ge);return x!==void 0?x!==!1?x:void 0:Re(Ge,be)},Re=function(be,Ge){var x=Q.call(b,Ge);return v.set(be,x!==void 0?x:!1),x};b.readFile=function(We){var be=D(We),Ge=v.get(be);return Ge!==void 0?Ge!==!1?Ge:void 0:!e.fileExtensionIs(We,".json")&&!e.isBuildInfoFile(We)?Q.call(b,We):Re(be,We)};var Ae=T?function(We,be,Ge,x){var j=D(We),Oe=Ce.get(j);if(Oe)return Oe;var a=T(We,be,Ge,x);return a&&(e.isDeclarationFileName(We)||e.fileExtensionIs(We,".json"))&&Ce.set(j,a),a}:void 0;return b.fileExists=function(We){var be=D(We),Ge=U.get(be);if(Ge!==void 0)return Ge;var x=N.call(b,We);return U.set(be,!!x),x},S&&(b.writeFile=function(We,be,Ge,x,j){var Oe=D(We);U.delete(Oe);var a=v.get(Oe);if(a!==void 0&&a!==be)v.delete(Oe),Ce.delete(Oe);else if(Ae){var en=Ce.get(Oe);en&&en.text!==be&&Ce.delete(Oe)}S.call(b,We,be,Ge,x,j)}),X&&pe&&(b.directoryExists=function(We){var be=D(We),Ge=de.get(be);if(Ge!==void 0)return Ge;var x=X.call(b,We);return de.set(be,!!x),x},b.createDirectory=function(We){var be=D(We);de.delete(be),pe.call(b,We)}),{originalReadFile:Q,originalFileExists:N,originalDirectoryExists:X,originalCreateDirectory:pe,originalWriteFile:S,getSourceFileWithCache:Ae,readFileWithCache:Z}}e.changeCompilerHostLikeToUseCache=ve;function ie(b,D,T){var Q=Or(b.getConfigFileParsingDiagnostics(),b.getOptionsDiagnostics(T),b.getSyntacticDiagnostics(D,T),b.getGlobalDiagnostics(T),b.getSemanticDiagnostics(D,T));return e.getEmitDeclarations(b.getCompilerOptions())&&e.addRange(Q,b.getDeclarationDiagnostics(D,T)),e.sortAndDeduplicateDiagnostics(Q)}e.getPreEmitDiagnostics=ie;function d(b,D){for(var T="",Q=0,N=b;Q<N.length;Q++){var X=N[Q];T+=H(X,D)}return T}e.formatDiagnostics=d;function H(b,D){var T=e.diagnosticCategoryName(b)+" TS"+b.code+": "+fe(b.messageText,D.getNewLine())+D.getNewLine();if(b.file){var Q=e.getLineAndCharacterOfPosition(b.file,b.start),N=Q.line,X=Q.character,pe=b.file.fileName,S=e.convertToRelativePath(pe,D.getCurrentDirectory(),function(v){return D.getCanonicalFileName(v)});return S+"("+(N+1)+","+(X+1)+"): "+T}return T}e.formatDiagnostic=H;var Pe;(function(b){b.Grey="",b.Red="",b.Yellow="",b.Blue="",b.Cyan=""})(Pe=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var I="",_e=" ",re="",se="...",w=" ",k=" ";function P(b){switch(b){case e.DiagnosticCategory.Error:return Pe.Red;case e.DiagnosticCategory.Warning:return Pe.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return Pe.Blue}}function h(b,D){return D+b+re}e.formatColorAndReset=h;function Y(b,D){for(;b.length<D;)b=" "+b;return b}function ne(b,D,T,Q,N,X){var pe=e.getLineAndCharacterOfPosition(b,D),S=pe.line,v=pe.character,U=e.getLineAndCharacterOfPosition(b,D+T),de=U.line,Ce=U.character,Z=e.getLineAndCharacterOfPosition(b,b.text.length).line,Re=de-S>=4,Ae=(de+1+"").length;Re&&(Ae=Math.max(se.length,Ae));for(var We="",be=S;be<=de;be++){We+=X.getNewLine(),Re&&S+1<be&&be<de-1&&(We+=Q+h(Y(se,Ae),I)+_e+X.getNewLine(),be=de-1);var Ge=e.getPositionOfLineAndCharacter(b,be,0),x=be<Z?e.getPositionOfLineAndCharacter(b,be+1,0):b.text.length,j=b.text.slice(Ge,x);if(j=j.replace(/\s+$/g,""),j=j.replace(" "," "),We+=Q+h(Y(be+1+"",Ae),I)+_e,We+=j+X.getNewLine(),We+=Q+h(Y("",Ae),I)+_e,We+=N,be===S){var Oe=be===de?Ce:void 0;We+=j.slice(0,v).replace(/\S/g," "),We+=j.slice(v,Oe).replace(/./g,"~")}else be===de?We+=j.slice(0,Ce).replace(/./g,"~"):We+=j.replace(/./g,"~");We+=re}return We}function $(b,D,T,Q){Q===void 0&&(Q=h);var N=e.getLineAndCharacterOfPosition(b,D),X=N.line,pe=N.character,S=T?e.convertToRelativePath(b.fileName,T.getCurrentDirectory(),function(U){return T.getCanonicalFileName(U)}):b.fileName,v="";return v+=Q(S,Pe.Cyan),v+=":",v+=Q(""+(X+1),Pe.Yellow),v+=":",v+=Q(""+(pe+1),Pe.Yellow),v}e.formatLocation=$;function J(b,D){for(var T="",Q=0,N=b;Q<N.length;Q++){var X=N[Q];if(X.file){var pe=X.file,S=X.start;T+=$(pe,S,D),T+=" - "}if(T+=h(e.diagnosticCategoryName(X),P(X.category)),T+=h(" TS"+X.code+": ",Pe.Grey),T+=fe(X.messageText,D.getNewLine()),X.file&&(T+=D.getNewLine(),T+=ne(X.file,X.start,X.length,"",P(X.category),D),X.relatedInformation)){T+=D.getNewLine();for(var v=0,U=X.relatedInformation;v<U.length;v++){var de=U[v],pe=de.file,S=de.start,Ce=de.length,Z=de.messageText;pe&&(T+=D.getNewLine(),T+=w+$(pe,S,D),T+=ne(pe,S,Ce,k,Pe.Cyan,D)),T+=D.getNewLine(),T+=k+fe(Z,D.getNewLine())}}T+=D.getNewLine()}return T}e.formatDiagnosticsWithColorAndContext=J;function fe(b,D,T){if(T===void 0&&(T=0),e.isString(b))return b;if(b===void 0)return"";var Q="";if(T){Q+=D;for(var N=0;N<T;N++)Q+=" "}if(Q+=b.messageText,T++,b.next)for(var X=0,pe=b.next;X<pe.length;X++){var S=pe[X];Q+=fe(S,D,T)}return Q}e.flattenDiagnosticMessageText=fe;function R(b,D,T,Q){if(b.length===0)return[];for(var N=[],X=e.createMap(),pe=0,S=b;pe<S.length;pe++){var v=S[pe],U=void 0;X.has(v)?U=X.get(v):X.set(v,U=Q(v,D,T)),N.push(U)}return N}e.loadWithLocalCache=R,e.inferredTypesContainingFile="__inferred type names__.ts";function K(b,D,T,Q,N,X,pe,S){if(!b||pe)return!1;if(b.getRootFileNames().length!==D.length)return!1;var v;if(!e.arrayIsEqualTo(b.getProjectReferences(),S,Z))return!1;if(b.getSourceFiles().some(de))return!1;if(b.getMissingFilePaths().some(N))return!1;var U=b.getCompilerOptions();if(!e.compareDataObjects(U,T))return!1;if(U.configFile&&T.configFile)return U.configFile.text===T.configFile.text;return!0;function de(Ae){return!Ce(Ae)||X(Ae.path)}function Ce(Ae){return Ae.version===Q(Ae.resolvedPath)}function Z(Ae,We,be){return e.projectReferenceIsEqualTo(Ae,We)?Re(b.getResolvedProjectReferences()[be],Ae):!1}function Re(Ae,We){return Ae?e.contains(v,Ae)?!0:Ce(Ae.sourceFile)?((v||(v=[])).push(Ae),!e.forEach(Ae.references,function(be,Ge){return!Re(be,Ae.commandLine.projectReferences[Ge])})):!1:!N(L(We))}}e.isProgramUptoDate=K;function z(b){return b.options.configFile?Or(b.options.configFile.parseDiagnostics,b.errors):b.errors}e.getConfigFileParsingDiagnostics=z;function Ee(b,D){if(!b)return!1;var T=b.getCompilerOptions();return!!e.sourceFileAffectingCompilerOptions.some(function(Q){return!e.isJsonEqual(e.getCompilerOptionValue(T,Q),e.getCompilerOptionValue(D,Q))})}function B(b,D,T,Q,N){return{rootNames:b,options:D,host:T,oldProgram:Q,configFileParsingDiagnostics:N}}function V(b,D,T,Q,N){var X=e.isArray(b)?B(b,D,T,Q,N):b,pe=X.rootNames,S=X.options,v=X.configFileParsingDiagnostics,U=X.projectReferences,de=X.oldProgram,Ce,Z,Re,Ae,We,be,Ge,x,j=e.createMap(),Oe,a={},en={},Pn=e.createMap(),Xn=e.createDiagnosticCollection(),ae=typeof S.maxNodeModuleJsDepth=="number"?S.maxNodeModuleJsDepth:0,ce=0,Le=e.createMap(),Je=e.createMap();e.performance.mark("beforeProgram");var Ze=X.host||Fe(S),Ue=m(Ze),cn=S.noLib,$e=e.memoize(function(){return Ze.getDefaultLibFileName(S)}),sn=Ze.getDefaultLibLocation?Ze.getDefaultLibLocation():e.getDirectoryPath($e()),he=e.createDiagnosticCollection(),ke=Ze.getCurrentDirectory(),G=e.getSupportedExtensions(S),c=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(S,G),O=e.createMap(),ee,Te,Ne,ze=Ze.hasInvalidatedResolution||e.returnFalse;if(Ze.resolveModuleNames)Ne=function($n,ht,Qn,Qt){return Ze.resolveModuleNames(e.Debug.assertEachDefined($n),ht,Qn,Qt,S).map(function(yr){if(!yr||yr.extension!==void 0)return yr;var Br=e.clone(yr);return Br.extension=e.extensionFromPath(yr.resolvedFileName),Br})};else{Te=e.createModuleResolutionCache(ke,function(Fn){return Ze.getCanonicalFileName(Fn)},S);var bn=function($n,ht,Qn){return e.resolveModuleName($n,ht,S,Ze,Te,Qn).resolvedModule};Ne=function($n,ht,Qn,Qt){return R(e.Debug.assertEachDefined($n),ht,Qt,bn)}}var Sn;if(Ze.resolveTypeReferenceDirectives)Sn=function($n,ht,Qn){return Ze.resolveTypeReferenceDirectives(e.Debug.assertEachDefined($n),ht,Qn,S)};else{var Kn=function($n,ht,Qn){return e.resolveTypeReferenceDirective($n,ht,S,Ze,Qn).resolvedTypeReferenceDirective};Sn=function($n,ht,Qn){return R(e.Debug.assertEachDefined($n),ht,Qn,Kn)}}var Xe=e.createMap(),pn=e.createMap(),le=e.createMultiMap(),oe=e.createMap(),kn,yn=Ze.useCaseSensitiveFileNames()?e.createMap():void 0,ye,mn,un,Mn,tt=!!Ze.useSourceOfProjectReferenceRedirect&&Ze.useSourceOfProjectReferenceRedirect(),Vn=Ee(de,S),ut;if(ut=xa(),ut!==2){if(Ce=[],Z=[],U&&(ye||(ye=U.map(vs)),Ze.setResolvedProjectReferenceCallbacks&&Ze.setResolvedProjectReferenceCallbacks({getSourceOfProjectReferenceRedirect:Cn,forEachResolvedProjectReference:rn}),pe.length))for(var dt=0,ot=ye;dt<ot.length;dt++){var ct=ot[dt];if(!ct)continue;var wt=ct.commandLine.options.outFile||ct.commandLine.options.out;if(tt){if(wt||e.getEmitModuleKind(ct.commandLine.options)===e.ModuleKind.None)for(var st=0,qn=ct.commandLine.fileNames;st<qn.length;st++){var Ie=qn[st];Oa(Ie,!1,!1,void 0)}}else if(wt)Oa(e.changeExtension(wt,".d.ts"),!1,!1,void 0);else if(e.getEmitModuleKind(ct.commandLine.options)===e.ModuleKind.None)for(var De=0,_n=ct.commandLine.fileNames;De<_n.length;De++){var Ie=_n[De];!e.fileExtensionIs(Ie,".d.ts")&&!e.fileExtensionIs(Ie,".json")&&Oa(e.getOutputDeclarationFileName(Ie,ct.commandLine,!Ze.useCaseSensitiveFileNames()),!1,!1,void 0)}}e.forEach(pe,function(Fn){return Ln(Fn,!1,!1)});var _t=pe.length?e.getAutomaticTypeDirectiveNames(S,Ze):e.emptyArray;if(_t.length)for(var It=S.configFilePath?e.getDirectoryPath(S.configFilePath):Ze.getCurrentDirectory(),Ht=e.combinePaths(It,e.inferredTypesContainingFile),nr=Sn(_t,Ht),vr=0;vr<_t.length;vr++)da(_t[vr],nr[vr]);if(pe.length&&!cn){var Qr=$e();!S.lib&&Qr?Ln(Qr,!0,!1):e.forEach(S.lib,function(Fn){Ln(e.combinePaths(sn,Fn),!0,!1)})}kn=e.arrayFrom(e.mapDefinedIterator(oe.entries(),function(Fn){var $n=Fn[0],ht=Fn[1];return ht===void 0?$n:void 0})),Re=e.stableSort(Ce,ft).concat(Z),Ce=void 0,Z=void 0}if(e.Debug.assert(!!kn),de&&Ze.onReleaseOldSourceFile){for(var Wr=de.getSourceFiles(),gt=0,ba=Wr;gt<ba.length;gt++){var kt=ba[gt],jn=ui(kt.resolvedPath);(Vn||!jn||kt.resolvedPath===kt.path&&jn.resolvedPath!==kt.path)&&Ze.onReleaseOldSourceFile(kt,de.getCompilerOptions(),!!ui(kt.path))}de.forEachResolvedProjectReference(function(Fn,$n){Fn&&!Rt($n)&&Ze.onReleaseOldSourceFile(Fn.sourceFile,de.getCompilerOptions(),!1)})}de=void 0;var Ut={getRootFileNames:function(){return pe},getSourceFile:uo,getSourceFileByPath:ui,getSourceFiles:function(){return Re},getMissingFilePaths:function(){return kn},getRefFileMap:function(){return Oe},getCompilerOptions:function(){return S},getSyntacticDiagnostics:ji,getOptionsDiagnostics:gi,getGlobalDiagnostics:tn,getSemanticDiagnostics:Fo,getSuggestionDiagnostics:_r,getDeclarationDiagnostics:ko,getTypeChecker:Ti,getClassifiableNames:Rn,getDiagnosticsProducingTypeChecker:Ia,getCommonSourceDirectory:Ke,emit:Vo,getCurrentDirectory:function(){return ke},getNodeCount:function(){return Ia().getNodeCount()},getIdentifierCount:function(){return Ia().getIdentifierCount()},getSymbolCount:function(){return Ia().getSymbolCount()},getTypeCount:function(){return Ia().getTypeCount()},getRelationCacheSizes:function(){return Ia().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return Xn},getResolvedTypeReferenceDirectives:function(){return Pn},isSourceFileFromExternalLibrary:Pi,isSourceFileDefaultLibrary:Xa,dropDiagnosticsProducingTypeChecker:ca,getSourceFileFromReference:Cr,getLibFileFromReference:cr,sourceFileToPackageName:pn,redirectTargetsMap:le,isEmittedFile:$s,getConfigFileParsingDiagnostics:vn,getResolvedModuleWithFailedLookupLocationsFromCache:yt,getProjectReferences:Ai,getResolvedProjectReferences:wi,getProjectReferenceRedirect:ge,getResolvedProjectReferenceToRedirect:ue,getResolvedProjectReferenceByPath:Rt,forEachResolvedProjectReference:rn,isSourceOfProjectReferenceRedirect:Zn,emitBuildInfo:ai,getProbableSymlinks:nl};return ml(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),Ut;function ft(Fn,$n){return e.compareValues(Tt(Fn),Tt($n))}function Tt(Fn){if(e.containsPath(sn,Fn.fileName,!1)){var $n=e.getBaseFileName(Fn.fileName);if($n==="lib.d.ts"||$n==="lib.es6.d.ts")return 0;var ht=e.removeSuffix(e.removePrefix($n,"lib."),".d.ts"),Qn=e.libs.indexOf(ht);if(Qn!==-1)return Qn+1}return e.libs.length+2}function yt(Fn,$n){return Te&&e.resolveModuleNameFromCache(Fn,$n,Te)}function vt(Fn){return e.toPath(Fn,ke,ga)}function Ke(){if(We===void 0){var Fn=e.filter(Re,function($n){return e.sourceFileMayBeEmitted($n,Ut)});S.rootDir&&Rs(Fn,S.rootDir)?We=e.getNormalizedAbsolutePath(S.rootDir,ke):S.composite&&S.configFilePath?(We=e.getDirectoryPath(e.normalizeSlashes(S.configFilePath)),Rs(Fn,We)):We=Co(Fn),We&&We[We.length-1]!==e.directorySeparator&&(We+=e.directorySeparator)}return We}function Rn(){if(!x){Ti(),x=e.createUnderscoreEscapedMap();for(var Fn=0,$n=Re;Fn<$n.length;Fn++){var ht=$n[Fn];e.copyEntries(ht.classifiableNames,x)}}return x}function nt(Fn,$n,ht){if(ut===0&&!ht.ambientModuleNames.length)return Ne(Fn,$n,void 0,ue(ht.originalFileName));var Qn=de&&de.getSourceFile($n);if(Qn!==ht&&ht.resolvedModules){for(var Qt=[],yr=0,Br=Fn;yr<Br.length;yr++){var Lr=Br[yr],kr=ht.resolvedModules.get(Lr);Qt.push(kr)}return Qt}for(var Pr,Er,fa,Da={},Fa=0;Fa<Fn.length;Fa++){var Lr=Fn[Fa];if(ht===Qn&&!ze(Qn.path)){var vi=Qn&&Qn.resolvedModules.get(Lr);if(vi){e.isTraceEnabled(S,Ze)&&e.trace(Ze,e.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,Lr,$n),(Er||(Er=new Array(Fn.length)))[Fa]=vi,(fa||(fa=[])).push(Lr);continue}}var Eo=!1;e.contains(ht.ambientModuleNames,Lr)?(Eo=!0,e.isTraceEnabled(S,Ze)&&e.trace(Ze,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,Lr,$n)):Eo=qi(Lr),Eo?(Er||(Er=new Array(Fn.length)))[Fa]=Da:(Pr||(Pr=[])).push(Lr)}var pi=Pr&&Pr.length?Ne(Pr,$n,fa,ue(ht.originalFileName)):e.emptyArray;if(!Er)return e.Debug.assert(pi.length===Fn.length),pi;for(var Io=0,Fa=0;Fa<Er.length;Fa++)Er[Fa]?Er[Fa]===Da&&(Er[Fa]=void 0):(Er[Fa]=pi[Io],Io++);return e.Debug.assert(Io===pi.length),Er;function qi(wn){var $i=e.getResolvedModule(Qn,wn),Go=$i&&de.getSourceFile($i.resolvedFileName);if($i&&Go)return!1;var Ho=j.get(wn);return Ho?(e.isTraceEnabled(S,Ze)&&e.trace(Ze,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,wn,Ho),!0):!1}}function tr(){return!lt(de.getProjectReferences(),de.getResolvedProjectReferences(),function(Fn,$n,ht){var Qn=(ht?ht.commandLine.projectReferences:U)[$n],Qt=vs(Qn);return Fn?!Qt||Qt.sourceFile!==Fn.sourceFile:Qt!==void 0},function(Fn,$n){var ht=$n?Rt($n.sourceFile.path).commandLine.projectReferences:U;return!e.arrayIsEqualTo(Fn,ht,e.projectReferenceIsEqualTo)})}function xa(){if(!de)return 0;var Fn=de.getCompilerOptions();if(e.changesAffectModuleResolution(Fn,S))return de.structureIsReused=0;e.Debug.assert(!(de.structureIsReused&(2|1)));var $n=de.getRootFileNames();if(!e.arrayIsEqualTo($n,pe))return de.structureIsReused=0;if(!e.arrayIsEqualTo(S.types,Fn.types))return de.structureIsReused=0;if(!tr())return de.structureIsReused=0;U&&(ye=U.map(vs),Ze.setResolvedProjectReferenceCallbacks&&Ze.setResolvedProjectReferenceCallbacks({getSourceOfProjectReferenceRedirect:Cn,forEachResolvedProjectReference:rn}));var ht=[],Qn=[];if(de.structureIsReused=2,de.getMissingFilePaths().some(function(Qo){return Ze.fileExists(Qo)}))return de.structureIsReused=0;var Qt=de.getSourceFiles(),yr;(function(Qo){Qo[Qo.Exists=0]="Exists",Qo[Qo.Modified=1]="Modified"})(yr||(yr={}));for(var Br=e.createMap(),Lr=0,kr=Qt;Lr<kr.length;Lr++){var Pr=kr[Lr],Er=Ze.getSourceFileByPath?Ze.getSourceFileByPath(Pr.fileName,Pr.resolvedPath,S.target,void 0,Vn):Ze.getSourceFile(Pr.fileName,S.target,void 0,Vn);if(!Er)return de.structureIsReused=0;e.Debug.assert(!Er.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var fa=void 0;if(Pr.redirectInfo){if(Er!==Pr.redirectInfo.unredirected)return de.structureIsReused=0;fa=!1,Er=Pr}else if(de.redirectTargetsMap.has(Pr.path)){if(Er!==Pr)return de.structureIsReused=0;fa=!1}else fa=Er!==Pr;Er.path=Pr.path,Er.originalFileName=Pr.originalFileName,Er.resolvedPath=Pr.resolvedPath,Er.fileName=Pr.fileName;var Da=de.sourceFileToPackageName.get(Pr.path);if(Da!==void 0){var Fa=Br.get(Da),vi=fa?1:0;if(Fa!==void 0&&vi===1||Fa===1)return de.structureIsReused=0;Br.set(Da,vi)}if(fa){if(!e.arrayIsEqualTo(Pr.libReferenceDirectives,Er.libReferenceDirectives,Bn))return de.structureIsReused=0;Pr.hasNoDefaultLib!==Er.hasNoDefaultLib&&(de.structureIsReused=1),e.arrayIsEqualTo(Pr.referencedFiles,Er.referencedFiles,Bn)||(de.structureIsReused=1),rr(Er),e.arrayIsEqualTo(Pr.imports,Er.imports,Pt)||(de.structureIsReused=1),e.arrayIsEqualTo(Pr.moduleAugmentations,Er.moduleAugmentations,Pt)||(de.structureIsReused=1),(Pr.flags&3145728)!==(Er.flags&3145728)&&(de.structureIsReused=1),e.arrayIsEqualTo(Pr.typeReferenceDirectives,Er.typeReferenceDirectives,Bn)||(de.structureIsReused=1),Qn.push({oldFile:Pr,newFile:Er})}else ze(Pr.path)&&(de.structureIsReused=1,Qn.push({oldFile:Pr,newFile:Er}));ht.push(Er)}if(de.structureIsReused!==2)return de.structureIsReused;for(var Eo=Qn.map(function(Qo){return Qo.oldFile}),pi=0,Io=Qt;pi<Io.length;pi++){var qi=Io[pi];if(!e.contains(Eo,qi))for(var wn=0,$i=qi.ambientModuleNames;wn<$i.length;wn++){var Go=$i[wn];j.set(Go,qi.fileName)}}for(var Ho=0,Va=Qn;Ho<Va.length;Ho++){var Es=Va[Ho],Pr=Es.oldFile,Er=Es.newFile,me=e.getNormalizedAbsolutePath(Er.originalFileName,ke),En=_(Er),et=nt(En,me,Er),Gt=e.hasChangesInResolutions(En,et,Pr.resolvedModules,e.moduleResolutionIsEqualTo);if(Gt?(de.structureIsReused=1,Er.resolvedModules=e.zipToMap(En,et)):Er.resolvedModules=Pr.resolvedModules,Sn){var br=e.map(Er.typeReferenceDirectives,function(Bs){return Bs.fileName.toLocaleLowerCase()}),ya=Sn(br,me,ue(Er.originalFileName)),oi=e.hasChangesInResolutions(br,ya,Pr.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo);oi?(de.structureIsReused=1,Er.resolvedTypeReferenceDirectiveNames=e.zipToMap(br,ya)):Er.resolvedTypeReferenceDirectiveNames=Pr.resolvedTypeReferenceDirectiveNames}}if(de.structureIsReused!==2)return de.structureIsReused;if(Ze.hasChangedAutomaticTypeDirectiveNames)return de.structureIsReused=1;kn=de.getMissingFilePaths(),Oe=de.getRefFileMap();for(var za=0,ki=ht;za<ki.length;za++){var Er=ki[za],eo=Er.path;if(zn(Er,eo,Er.resolvedPath),tt){var ea=hn(Er.fileName);if(ea&&!(ea.commandLine.options.outFile||ea.commandLine.options.out)){var Ir=Jn(ea,Er.fileName);zn(Er,vt(Ir),void 0)}}de.isSourceFileFromExternalLibrary(de.getSourceFileByPath(Er.resolvedPath))&&Je.set(eo,!0)}Re=ht,Xn=de.getFileProcessingDiagnostics();for(var To=0,Uo=Qn;To<Uo.length;To++){var tl=Uo[To];Xn.reattachFileDiagnostics(tl.newFile)}return Pn=de.getResolvedTypeReferenceDirectives(),pn=de.sourceFileToPackageName,le=de.redirectTargetsMap,de.structureIsReused=2}function Ba(Fn){return ma(ma({getPrependNodes:Ei,getCanonicalFileName:ga,getCommonSourceDirectory:Ut.getCommonSourceDirectory,getCompilerOptions:Ut.getCompilerOptions,getCurrentDirectory:function(){return ke},getNewLine:function(){return Ze.getNewLine()},getSourceFile:Ut.getSourceFile,getSourceFileByPath:Ut.getSourceFileByPath,getSourceFiles:Ut.getSourceFiles,getLibFileFromReference:Ut.getLibFileFromReference,isSourceFileFromExternalLibrary:Pi,getResolvedProjectReferenceToRedirect:ue,isSourceOfProjectReferenceRedirect:Zn,getProbableSymlinks:nl,writeFile:Fn||function($n,ht,Qn,Qt,yr){return Ze.writeFile($n,ht,Qn,Qt,yr)},isEmitBlocked:mo,readFile:function(ht){return Ze.readFile(ht)},fileExists:function(ht){var Qn=vt(ht);return ui(Qn)?!0:e.contains(kn,Qn)?!1:Ze.fileExists(ht)}},Ze.directoryExists?{directoryExists:function(ht){return Ze.directoryExists(ht)}}:{}),{useCaseSensitiveFileNames:function(){return Ze.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return Ut.getProgramBuildInfo&&Ut.getProgramBuildInfo()},getSourceFileFromReference:function(ht,Qn){return Ut.getSourceFileFromReference(ht,Qn)},redirectTargetsMap:le})}function ai(Fn){e.Debug.assert(!S.out&&!S.outFile),e.performance.mark("beforeEmit");var $n=e.emitFiles(e.notImplementedResolver,Ba(Fn),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),$n}function wi(){return ye}function Ai(){return U}function Ei(){return y(U,function(Fn,$n){return ye[$n].commandLine},function(Fn){var $n=vt(Fn),ht=ui($n);return ht?ht.text:oe.has($n)?void 0:Ze.readFile($n)})}function Pi(Fn){return!!Je.get(Fn.path)}function Xa(Fn){if(Fn.hasNoDefaultLib)return!0;if(!S.noLib)return!1;var $n=Ze.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return S.lib?e.some(S.lib,function(ht){return $n(Fn.fileName,e.combinePaths(sn,ht))}):$n(Fn.fileName,$e())}function Ia(){return be||(be=e.createTypeChecker(Ut,!0))}function ca(){be=void 0}function Ti(){return Ge||(Ge=e.createTypeChecker(Ut,!1))}function Vo(Fn,$n,ht,Qn,Qt,yr){return Ri(function(){return Ro(Ut,Fn,$n,ht,Qn,Qt,yr)})}function mo(Fn){return O.has(vt(Fn))}function Ro(Fn,$n,ht,Qn,Qt,yr,Br){var Lr=[];if(!Br){if(S.noEmit)return{diagnostics:Lr,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};if(S.noEmitOnError){var kr=Or(Fn.getOptionsDiagnostics(Qn),Fn.getSyntacticDiagnostics($n,Qn),Fn.getGlobalDiagnostics(Qn),Fn.getSemanticDiagnostics($n,Qn));if(kr.length===0&&e.getEmitDeclarations(Fn.getCompilerOptions())&&(Lr=Fn.getDeclarationDiagnostics(void 0,Qn)),kr.length>0||Lr.length>0)return{diagnostics:e.concatenate(kr,Lr),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}var Pr=Ia().getEmitResolver(S.outFile||S.out?void 0:$n,Qn);e.performance.mark("beforeEmit");var Er=e.emitFiles(Pr,Ba(ht),$n,e.getTransformers(S,yr,Qt),Qt,!1,Br);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),Er}function uo(Fn){return ui(vt(Fn))}function ui(Fn){return oe.get(Fn)||void 0}function Gi(Fn,$n,ht){return Fn?$n(Fn,ht):e.sortAndDeduplicateDiagnostics(e.flatMap(Ut.getSourceFiles(),function(Qn){return ht&&ht.throwIfCancellationRequested(),$n(Qn,ht)}))}function ji(Fn,$n){return Gi(Fn,bo,$n)}function Fo(Fn,$n){return Gi(Fn,xt,$n)}function ko(Fn,$n){var ht=Ut.getCompilerOptions();return!Fn||ht.out||ht.outFile?Na(Fn,$n):Gi(Fn,Ii,$n)}function bo(Fn){return e.isSourceFileJS(Fn)?(Fn.additionalSyntacticDiagnostics||(Fn.additionalSyntacticDiagnostics=va(Fn)),e.concatenate(Fn.additionalSyntacticDiagnostics,Fn.parseDiagnostics)):Fn.parseDiagnostics}function Ri(Fn){try{return Fn()}catch($n){throw $n instanceof e.OperationCanceledException&&(Ge=void 0,be=void 0),$n}}function xt(Fn,$n){return hi(Fn,$n,a,Kt)}function Kt(Fn,$n){return Ri(function(){if(e.skipTypeChecking(Fn,S,Ut))return e.emptyArray;var ht=Ia();e.Debug.assert(!!Fn.bindDiagnostics);for(var Qn=e.isCheckJsEnabledForFile(Fn,S),Qt=!!Fn.checkJsDirective&&Fn.checkJsDirective.enabled===!1,yr=!Qt&&(Fn.scriptKind===3||Fn.scriptKind===4||Fn.scriptKind===5||Qn||Fn.scriptKind===7),Br=yr?Fn.bindDiagnostics:e.emptyArray,Lr=yr?ht.getDiagnostics(Fn,$n):e.emptyArray,kr=Xn.getDiagnostics(Fn.fileName),Pr=he.getDiagnostics(Fn.fileName),Er,fa=0,Da=[Br,Lr,kr,Pr,Qn?Fn.jsDocDiagnostics:void 0];fa<Da.length;fa++){var Fa=Da[fa];if(Fa)for(var vi=0,Eo=Fa;vi<Eo.length;vi++){var pi=Eo[vi];Jr(pi)&&(Er=e.append(Er,pi))}}return Er})}function _r(Fn,$n){return Ri(function(){return Ia().getSuggestionDiagnostics(Fn,$n)})}function Jr(Fn){var $n=Fn.file,ht=Fn.start;if($n)for(var Qn=e.getLineStarts($n),Qt=e.computeLineAndCharacterOfPosition(Qn,ht).line;Qt>0;){var yr=$n.text.slice(Qn[Qt-1],Qn[Qt]),Br=o.exec(yr);if(!Br)return!0;if(Br[3])return!1;Qt--}return!0}function va(Fn){return Ri(function(){var $n=[],ht=Fn;return Qn(Fn),$n;function Qn(kr){switch(ht.kind){case 155:case 158:case 160:if(ht.questionToken===kr){$n.push(Lr(kr,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));return}case 159:case 161:case 162:case 163:case 200:case 243:case 201:case 241:if(ht.type===kr){$n.push(Lr(kr,e.Diagnostics.types_can_only_be_used_in_a_ts_file));return}}switch(kr.kind){case 252:$n.push(Lr(kr,e.Diagnostics.import_can_only_be_used_in_a_ts_file));return;case 258:if(kr.isExportEquals){$n.push(Lr(kr,e.Diagnostics.export_can_only_be_used_in_a_ts_file));return}break;case 277:var Pr=kr;if(Pr.token===112){$n.push(Lr(kr,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));return}break;case 245:$n.push(Lr(kr,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));return;case 248:$n.push(Lr(kr,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));return;case 246:$n.push(Lr(kr,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));return;case 247:$n.push(Lr(kr,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));return;case 217:$n.push(Lr(kr,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));return;case 216:$n.push(Lr(kr.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));return;case 198:e.Debug.fail()}var Er=ht;ht=kr,e.forEachChild(kr,Qn,Qt),ht=Er}function Qt(kr){ht.decorators===kr&&!S.experimentalDecorators&&$n.push(Lr(ht,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning));switch(ht.kind){case 244:case 213:case 160:case 161:case 162:case 163:case 200:case 243:case 201:if(kr===ht.typeParameters){$n.push(Br(kr,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));return}case 224:if(kr===ht.modifiers)return yr(ht.modifiers,ht.kind===224);break;case 158:if(kr===ht.modifiers){for(var Pr=0,Er=kr;Pr<Er.length;Pr++){var fa=Er[Pr];fa.kind!==119&&$n.push(Lr(fa,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(fa.kind)))}return}break;case 155:if(kr===ht.modifiers){$n.push(Br(kr,e.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file));return}break;case 195:case 196:case 215:case 265:case 266:case 197:if(kr===ht.typeArguments){$n.push(Br(kr,e.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file));return}break}for(var Da=0,Fa=kr;Da<Fa.length;Da++){var vi=Fa[Da];Qn(vi)}}function yr(kr,Pr){for(var Er=0,fa=kr;Er<fa.length;Er++){var Da=fa[Er];switch(Da.kind){case 80:if(Pr)continue;case 118:case 116:case 117:case 137:case 129:case 121:$n.push(Lr(Da,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(Da.kind)));break;case 119:case 88:case 83:}}}function Br(kr,Pr,Er,fa,Da){var Fa=kr.pos;return e.createFileDiagnostic(Fn,Fa,kr.end-Fa,Pr,Er,fa,Da)}function Lr(kr,Pr,Er,fa,Da){return e.createDiagnosticForNodeInSourceFile(Fn,kr,Pr,Er,fa,Da)}})}function Na(Fn,$n){return hi(Fn,$n,en,qr)}function qr(Fn,$n){return Ri(function(){var ht=Ia().getEmitResolver(Fn,$n);return e.getDeclarationDiagnostics(Ba(e.noop),ht,Fn)})}function hi(Fn,$n,ht,Qn){var Qt=Fn?ht.perFile&&ht.perFile.get(Fn.path):ht.allDiagnostics;if(Qt)return Qt;var yr=Qn(Fn,$n)||e.emptyArray;return Fn?(ht.perFile||(ht.perFile=e.createMap()),ht.perFile.set(Fn.path,yr)):ht.allDiagnostics=yr,yr}function Ii(Fn,$n){return Fn.isDeclarationFile?[]:Na(Fn,$n)}function gi(){return e.sortAndDeduplicateDiagnostics(e.concatenate(Xn.getGlobalDiagnostics(),e.concatenate(he.getGlobalDiagnostics(),ua())))}function ua(){if(!S.configFile)return e.emptyArray;var Fn=he.getDiagnostics(S.configFile.fileName);return rn(function($n){$n&&(Fn=e.concatenate(Fn,he.getDiagnostics($n.sourceFile.fileName)))}),Fn}function tn(){return pe.length?e.sortAndDeduplicateDiagnostics(Ia().getGlobalDiagnostics().slice()):e.emptyArray}function vn(){return v||e.emptyArray}function Ln(Fn,$n,ht){Oa(e.normalizePath(Fn),$n,ht,void 0)}function Bn(Fn,$n){return Fn.fileName===$n.fileName}function Pt(Fn,$n){return Fn.kind===75?$n.kind===75&&Fn.escapedText===$n.escapedText:$n.kind===10&&Fn.text===$n.text}function rr(Fn){if(Fn.imports)return;var $n=e.isSourceFileJS(Fn),ht=e.isExternalModule(Fn),Qn,Qt,yr;if(S.importHelpers&&(S.isolatedModules||ht)&&!Fn.isDeclarationFile){var Br=e.createLiteral(e.externalHelpersModuleNameText),Lr=e.createImportDeclaration(void 0,void 0,void 0,Br);e.addEmitFlags(Lr,67108864),Br.parent=Lr,Lr.parent=Fn,Qn=[Br]}for(var kr=0,Pr=Fn.statements;kr<Pr.length;kr++){var Er=Pr[kr];fa(Er,!1)}(Fn.flags&1048576||$n)&&Da(Fn),Fn.imports=Qn||e.emptyArray,Fn.moduleAugmentations=Qt||e.emptyArray,Fn.ambientModuleNames=yr||e.emptyArray;return;function fa(vi,Eo){if(e.isAnyImportOrReExport(vi)){var pi=e.getExternalModuleName(vi);pi&&e.isStringLiteral(pi)&&pi.text&&(!Eo||!e.isExternalModuleNameRelative(pi.text))&&(Qn=e.append(Qn,pi))}else if(e.isModuleDeclaration(vi)&&(e.isAmbientModule(vi)&&(Eo||e.hasModifier(vi,2)||Fn.isDeclarationFile))){var Io=e.getTextOfIdentifierOrLiteral(vi.name);if(ht||Eo&&!e.isExternalModuleNameRelative(Io))(Qt||(Qt=[])).push(vi.name);else if(!Eo){Fn.isDeclarationFile&&(yr||(yr=[])).push(Io);var qi=vi.body;if(qi)for(var wn=0,$i=qi.statements;wn<$i.length;wn++){var Go=$i[wn];fa(Go,!0)}}}}function Da(vi){for(var Eo=/import|require/g;Eo.exec(vi.text)!==null;){var pi=Fa(vi,Eo.lastIndex);e.isRequireCall(pi,!0)||e.isImportCall(pi)&&pi.arguments.length===1&&e.isStringLiteralLike(pi.arguments[0])?Qn=e.append(Qn,pi.arguments[0]):e.isLiteralImportTypeNode(pi)&&(Qn=e.append(Qn,pi.argument.literal))}}function Fa(vi,Eo){for(var pi=vi,Io=function($i){if($i.pos<=Eo&&(Eo<$i.end||Eo===$i.end&&$i.kind===1))return $i};;){var qi=$n&&e.hasJSDocNodes(pi)&&e.forEach(pi.jsDoc,Io)||e.forEachChild(pi,Io);if(!qi)return pi;pi=qi}}}function cr(Fn){var $n=Fn.fileName.toLocaleLowerCase(),ht=e.libMap.get($n);if(ht)return uo(e.combinePaths(sn,ht))}function Cr(Fn,$n){return Ya(qe($n.fileName,Fn.fileName),function(ht){return oe.get(vt(ht))||void 0})}function Ya(Fn,$n,ht,Qn){if(e.hasExtension(Fn)){if(!S.allowNonTsExtensions&&!e.forEach(c,function(kr){return e.fileExtensionIs(Ze.getCanonicalFileName(Fn),kr)})){ht&&ht(e.Diagnostics.File_0_has_unsupported_extension_The_only_supported_extensions_are_1,Fn,"'"+G.join("', '")+"'");return}var Qt=$n(Fn);if(ht)if(Qt)Qn&&Ze.getCanonicalFileName(Fn)===Ze.getCanonicalFileName(Qn.fileName)&&ht(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var yr=ge(Fn);yr?ht(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,yr,Fn):ht(e.Diagnostics.File_0_not_found,Fn)}return Qt}else{var Br=S.allowNonTsExtensions&&$n(Fn);if(Br)return Br;if(ht&&S.allowNonTsExtensions){ht(e.Diagnostics.File_0_not_found,Fn);return}var Lr=e.forEach(G,function(kr){return $n(Fn+kr)});return ht&&!Lr&&ht(e.Diagnostics.File_0_not_found,Fn+".ts"),Lr}}function Oa(Fn,$n,ht,Qn,Qt){Ya(Fn,function(yr){return _i(yr,vt(yr),$n,ht,Qt,Qn)},function(yr){for(var Br=[],Lr=1;Lr<arguments.length;Lr++)Br[Lr-1]=arguments[Lr];return Xn.add(to.apply(void 0,Or([Qt,yr],Br)))},Qt&&Qt.file)}function Ni(Fn,$n,ht){Xn.add(to(ht,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,Fn,$n))}function ii(Fn,$n,ht,Qn,Qt,yr){var Br=Object.create(Fn);return Br.fileName=ht,Br.path=Qn,Br.resolvedPath=Qt,Br.originalFileName=yr,Br.redirectInfo={redirectTarget:Fn,unredirected:$n},Je.set(Qn,ce>0),Object.defineProperties(Br,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(kr){this.redirectInfo.redirectTarget.id=kr}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(kr){this.redirectInfo.redirectTarget.symbol=kr}}}),Br}function _i(Fn,$n,ht,Qn,Qt,yr){if(tt){var Br=Cn(Fn);if(!Br&&Ze.realpath&&S.preserveSymlinks&&e.isDeclarationFileName(Fn)&&e.stringContains(Fn,e.nodeModulesPathPart)){var Lr=Ze.realpath(Fn);Lr!==Fn&&(Br=Cn(Lr))}if(Br){var kr=e.isString(Br)?_i(Br,vt(Br),ht,Qn,Qt,yr):void 0;return kr&&zn(kr,$n,void 0),kr}}var Pr=Fn;if(oe.has($n)){var Er=oe.get($n);if(Er&&S.forceConsistentCasingInFileNames){var fa=Fn,Da=Er.fileName,Fa=vt(Da)!==vt(fa);Fa&&(fa=ge(Fn)||Fn);var vi=e.getNormalizedAbsolutePathWithoutRoot(Da,ke),Eo=e.getNormalizedAbsolutePathWithoutRoot(fa,ke);vi!==Eo&&Ni(fa,Da,Qt)}return Er&&Je.get(Er.path)&&ce===0?(Je.set(Er.path,!1),S.noResolve||(an(Er,ht),Dr(Er)),S.noLib||Ha(Er),Le.set(Er.path,!1),Yo(Er)):Er&&Le.get(Er.path)&&(ce<ae&&(Le.set(Er.path,!1),Yo(Er))),Ye(Er||void 0,Qt),Er||void 0}var pi;if(Qt&&!tt){var Io=hn(Fn);if(Io){if(Io.commandLine.options.outFile||Io.commandLine.options.out)return;var qi=Jn(Io,Fn);Fn=qi,pi=vt(qi)}}var wn=Ze.getSourceFile(Fn,S.target,function(me){return Xn.add(to(Qt,e.Diagnostics.Cannot_read_file_0_Colon_1,Fn,me))},Vn);if(yr){var $i=e.packageIdToString(yr),Go=Xe.get($i);if(Go){var Ho=ii(Go,wn,Fn,$n,vt(Fn),Pr);return le.add(Go.path,Fn),zn(Ho,$n,pi),pn.set($n,yr.name),Z.push(Ho),Ho}else wn&&(Xe.set($i,wn),pn.set($n,yr.name))}if(zn(wn,$n,pi),wn){if(Je.set($n,ce>0),wn.path=$n,wn.resolvedPath=vt(Fn),wn.originalFileName=Pr,Ze.useCaseSensitiveFileNames()){var Va=$n.toLowerCase(),Es=yn.get(Va);Es?Ni(Fn,Es.fileName,Qt):yn.set(Va,wn)}cn=cn||wn.hasNoDefaultLib&&!Qn,S.noResolve||(an(wn,ht),Dr(wn)),S.noLib||Ha(wn),Yo(wn),ht?Ce.push(wn):Z.push(wn)}return Ye(wn,Qt),wn}function Ye(Fn,$n){$n&&Fn&&(Oe||(Oe=e.createMultiMap())).add(Fn.path,{kind:$n.kind,index:$n.index,file:$n.file.path})}function zn(Fn,$n,ht){ht?(oe.set(ht,Fn),oe.set($n,Fn||!1)):oe.set($n,Fn)}function ge(Fn){var $n=hn(Fn);return $n&&Jn($n,Fn)}function hn(Fn){return!ye||!ye.length||e.fileExtensionIs(Fn,".d.ts")||e.fileExtensionIs(Fn,".json")?void 0:ue(Fn)}function Jn(Fn,$n){var ht=Fn.commandLine.options.outFile||Fn.commandLine.options.out;return ht?e.changeExtension(ht,".d.ts"):e.getOutputDeclarationFileName($n,Fn.commandLine,!Ze.useCaseSensitiveFileNames())}function ue(Fn){un===void 0&&(un=e.createMap(),rn(function(ht,Qn){ht&&vt(S.configFilePath)!==Qn&&ht.commandLine.fileNames.forEach(function(Qt){return un.set(vt(Qt),Qn)})}));var $n=un.get(vt(Fn));return $n&&Rt($n)}function rn(Fn){return lt(U,ye,function($n,ht,Qn){var Qt=(Qn?Qn.commandLine.projectReferences:U)[ht],yr=vt(L(Qt));return Fn($n,yr)})}function Cn(Fn){return e.isDeclarationFileName(Fn)?(Mn===void 0&&(Mn=e.createMap(),rn(function($n){if($n){var ht=$n.commandLine.options.outFile||$n.commandLine.options.out;if(ht){var Qn=e.changeExtension(ht,".d.ts");Mn.set(vt(Qn),!0)}else e.forEach($n.commandLine.fileNames,function(Qt){if(!e.fileExtensionIs(Qt,".d.ts")&&!e.fileExtensionIs(Qt,".json")){var yr=e.getOutputDeclarationFileName(Qt,$n.commandLine,Ze.useCaseSensitiveFileNames());Mn.set(vt(yr),Qt)}})}})),Mn.get(vt(Fn))):void 0}function Zn(Fn){return tt&&!!ue(Fn)}function lt(Fn,$n,ht,Qn){var Qt;return yr(Fn,$n,void 0,ht,Qn);function yr(Br,Lr,kr,Pr,Er){if(Er){var fa=Er(Br,kr);if(fa)return fa}return e.forEach(Lr,function(Da,Fa){if(e.contains(Qt,Da))return;var vi=Pr(Da,Fa,kr);return vi||(Da?((Qt||(Qt=[])).push(Da),yr(Da.commandLine.projectReferences,Da.references,Da,Pr,Er)):void 0)})}}function Rt(Fn){return mn&&mn.get(Fn)||void 0}function an(Fn,$n){e.forEach(Fn.referencedFiles,function(ht,Qn){var Qt=qe(ht.fileName,Fn.originalFileName);Oa(Qt,$n,!1,void 0,{kind:e.RefFileKind.ReferenceFile,index:Qn,file:Fn,pos:ht.pos,end:ht.end})})}function Dr(Fn){var $n=e.map(Fn.typeReferenceDirectives,function(Lr){return Lr.fileName.toLocaleLowerCase()});if(!$n)return;for(var ht=Sn($n,Fn.originalFileName,ue(Fn.originalFileName)),Qn=0;Qn<$n.length;Qn++){var Qt=Fn.typeReferenceDirectives[Qn],yr=ht[Qn],Br=Qt.fileName.toLocaleLowerCase();e.setResolvedTypeReferenceDirective(Fn,Br,yr),da(Br,yr,{kind:e.RefFileKind.TypeReferenceDirective,index:Qn,file:Fn,pos:Qt.pos,end:Qt.end})}}function da(Fn,$n,ht){var Qn=Pn.get(Fn);if(Qn&&Qn.primary)return;var Qt=!0;if($n){if($n.isExternalLibraryImport&&ce++,$n.primary)Oa($n.resolvedFileName,!1,!1,$n.packageId,ht);else if(Qn){if($n.resolvedFileName!==Qn.resolvedFileName){var yr=Ze.readFile($n.resolvedFileName);yr!==uo(Qn.resolvedFileName).text&&Xn.add(to(ht,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,Fn,$n.resolvedFileName,Qn.resolvedFileName))}Qt=!1}else Oa($n.resolvedFileName,!1,!1,$n.packageId,ht);$n.isExternalLibraryImport&&ce--}else Xn.add(to(ht,e.Diagnostics.Cannot_find_type_definition_file_for_0,Fn));Qt&&Pn.set(Fn,$n)}function Ha(Fn){e.forEach(Fn.libReferenceDirectives,function($n){var ht=$n.fileName.toLocaleLowerCase(),Qn=e.libMap.get(ht);if(Qn)Ln(e.combinePaths(sn,Qn),!0,!0);else{var Qt=e.removeSuffix(e.removePrefix(ht,"lib."),".d.ts"),yr=e.getSpellingSuggestion(Qt,e.libs,e.identity),Br=yr?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;Xn.add(e.createFileDiagnostic(Fn,$n.pos,$n.end-$n.pos,Br,ht,yr))}})}function to(Fn,$n){for(var ht=[],Qn=2;Qn<arguments.length;Qn++)ht[Qn-2]=arguments[Qn];return Fn?e.createFileDiagnostic.apply(void 0,Or([Fn.file,Fn.pos,Fn.end-Fn.pos,$n],ht)):e.createCompilerDiagnostic.apply(void 0,Or([$n],ht))}function ga(Fn){return Ze.getCanonicalFileName(Fn)}function Yo(Fn){if(rr(Fn),Fn.imports.length||Fn.moduleAugmentations.length){var $n=_(Fn),ht=nt($n,e.getNormalizedAbsolutePath(Fn.originalFileName,ke),Fn);e.Debug.assert(ht.length===$n.length);for(var Qn=0;Qn<$n.length;Qn++){var Qt=ht[Qn];if(e.setResolvedModule(Fn,$n[Qn],Qt),!Qt)continue;var yr=Qt.isExternalLibraryImport,Br=!e.resolutionExtensionIsTSOrJson(Qt.extension),Lr=yr&&Br,kr=Qt.resolvedFileName;yr&&ce++;var Pr=Lr&&ce>ae,Er=kr&&!C(S,Qt)&&!S.noResolve&&Qn<Fn.imports.length&&!Pr&&!(Br&&!S.allowJs)&&(e.isInJSFile(Fn.imports[Qn])||!(Fn.imports[Qn].flags&4194304));if(Pr)Le.set(Fn.path,!0);else if(Er){var fa=vt(kr),Da=e.skipTrivia(Fn.text,Fn.imports[Qn].pos);_i(kr,fa,!1,!1,{kind:e.RefFileKind.Import,index:Qn,file:Fn,pos:Da,end:Fn.imports[Qn].end},Qt.packageId)}yr&&ce--}}else Fn.resolvedModules=void 0}function Co(Fn){var $n=e.mapDefined(Fn,function(ht){return ht.isDeclarationFile?void 0:ht.fileName});return Se($n,ke,ga)}function Rs(Fn,$n){for(var ht=!0,Qn=Ze.getCanonicalFileName(e.getNormalizedAbsolutePath($n,ke)),Qt,yr=0,Br=Fn;yr<Br.length;yr++){var Lr=Br[yr];if(!Lr.isDeclarationFile){var kr=Ze.getCanonicalFileName(e.getNormalizedAbsolutePath(Lr.fileName,ke));kr.indexOf(Qn)!==0&&(Qt||(Qt=e.arrayToSet(pe,vt)),Fs(Lr,Qt,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,Lr.fileName,$n),ht=!1)}}return ht}function vs(Fn){mn||(mn=e.createMap());var $n=L(Fn),ht=vt($n),Qn=mn.get(ht);if(Qn!==void 0)return Qn||void 0;var Qt,yr;if(Ze.getParsedCommandLine){if(Qt=Ze.getParsedCommandLine($n),!Qt){zn(void 0,ht,void 0),mn.set(ht,!1);return}yr=e.Debug.assertDefined(Qt.options.configFile),e.Debug.assert(!yr.path||yr.path===ht),zn(yr,ht,void 0)}else{var Br=e.getNormalizedAbsolutePath(e.getDirectoryPath($n),Ze.getCurrentDirectory());if(yr=Ze.getSourceFile($n,100),zn(yr,ht,void 0),yr===void 0){mn.set(ht,!1);return}Qt=e.parseJsonSourceFileConfigFileContent(yr,Ue,Br,void 0,$n)}yr.path=ht,yr.resolvedPath=ht,yr.originalFileName=$n;var Lr={commandLine:Qt,sourceFile:yr};return mn.set(ht,Lr),Qt.projectReferences&&(Lr.references=Qt.projectReferences.map(vs)),Lr}function ml(){if(S.strictPropertyInitialization&&!e.getStrictOptionValue(S,"strictNullChecks")&&ho(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),S.isolatedModules&&(S.out&&ho(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),S.outFile&&ho(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),S.inlineSourceMap&&(S.sourceMap&&ho(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),S.mapRoot&&ho(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),S.paths&&S.baseUrl===void 0&&ho(e.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths"),S.composite&&(S.declaration===!1&&ho(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),S.incremental===!1&&ho(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration")),S.tsBuildInfoFile?e.isIncrementalCompilation(S)||ho(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):S.incremental&&!S.outFile&&!S.out&&!S.configFilePath&&he.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),Il(),S.composite)for(var Fn=e.arrayToSet(pe,vt),$n=0,ht=Re;$n<ht.length;$n++){var Qn=ht[$n];e.sourceFileMayBeEmitted(Qn,Ut)&&!Fn.has(Qn.path)&&Fs(Qn,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,Qn.fileName,S.configFilePath||"")}if(S.paths)for(var Qt in S.paths){if(!e.hasProperty(S.paths,Qt))continue;if(e.hasZeroOrOneAsteriskCharacter(Qt)||hl(!0,Qt,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,Qt),e.isArray(S.paths[Qt])){var yr=S.paths[Qt].length;yr===0&&hl(!1,Qt,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,Qt);for(var Br=0;Br<yr;Br++){var Lr=S.paths[Qt][Br],kr=typeof Lr;kr==="string"?e.hasZeroOrOneAsteriskCharacter(Lr)||es(Qt,Br,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,Lr,Qt):es(Qt,Br,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,Lr,Qt,kr)}}else hl(!1,Qt,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,Qt)}!S.sourceMap&&!S.inlineSourceMap&&(S.inlineSources&&ho(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),S.sourceRoot&&ho(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),S.out&&S.outFile&&ho(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),S.mapRoot&&!(S.sourceMap||S.declarationMap)&&ho(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),S.declarationDir&&(e.getEmitDeclarations(S)||ho(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),(S.out||S.outFile)&&ho(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",S.out?"out":"outFile")),S.declarationMap&&!e.getEmitDeclarations(S)&&ho(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),S.lib&&S.noLib&&ho(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),S.noImplicitUseStrict&&e.getStrictOptionValue(S,"alwaysStrict")&&ho(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var Pr=S.target||0,Er=S.outFile||S.out,fa=e.find(Re,function(qi){return e.isExternalModule(qi)&&!qi.isDeclarationFile});if(S.isolatedModules){S.module===e.ModuleKind.None&&Pr<2&&ho(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target");var Da=e.find(Re,function(qi){return!e.isExternalModule(qi)&&!e.isSourceFileJS(qi)&&!qi.isDeclarationFile&&qi.scriptKind!==6});if(Da){var Fa=e.getErrorSpanForNode(Da,Da);he.add(e.createFileDiagnostic(Da,Fa.start,Fa.length,e.Diagnostics.All_files_must_be_modules_when_the_isolatedModules_flag_is_provided))}}else if(fa&&Pr<2&&S.module===e.ModuleKind.None){var Fa=e.getErrorSpanForNode(fa,fa.externalModuleIndicator);he.add(e.createFileDiagnostic(fa,Fa.start,Fa.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Er&&!S.emitDeclarationOnly){if(S.module&&!(S.module===e.ModuleKind.AMD||S.module===e.ModuleKind.System))ho(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,S.out?"out":"outFile","module");else if(S.module===void 0&&fa){var Fa=e.getErrorSpanForNode(fa,fa.externalModuleIndicator);he.add(e.createFileDiagnostic(fa,Fa.start,Fa.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,S.out?"out":"outFile"))}}if(S.resolveJsonModule&&(e.getEmitModuleResolutionKind(S)!==e.ModuleResolutionKind.NodeJs?ho(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(S)||ho(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),S.outDir||S.sourceRoot||S.mapRoot){var vi=Ke();S.outDir&&vi===""&&Re.some(function(qi){return e.getRootLength(qi.fileName)>1})&&ho(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(S.useDefineForClassFields&&Pr===0&&ho(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),S.checkJs&&!S.allowJs&&he.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),S.emitDeclarationOnly&&(e.getEmitDeclarations(S)||ho(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),S.noEmit&&ho(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),S.emitDecoratorMetadata&&!S.experimentalDecorators&&ho(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),S.jsxFactory?(S.reactNamespace&&ho(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(S.jsxFactory,Pr)||Is("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,S.jsxFactory)):S.reactNamespace&&!e.isIdentifierText(S.reactNamespace,Pr)&&Is("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,S.reactNamespace),!S.noEmit&&!S.suppressOutputPathCheck){var Eo=Ba(),pi=e.createMap();e.forEachEmittedFile(Eo,function(qi){S.emitDeclarationOnly||Io(qi.jsFilePath,pi),Io(qi.declarationFilePath,pi)})}function Io(qi,wn){if(qi){var $i=vt(qi);if(oe.has($i)){var Go=void 0;S.configFilePath||(Go=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)),Go=e.chainDiagnosticMessages(Go,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,qi),qs(qi,e.createCompilerDiagnosticFromMessageChain(Go))}var Ho=Ze.useCaseSensitiveFileNames()?$i:$i.toLocaleLowerCase();wn.has(Ho)?qs(qi,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,qi)):wn.set(Ho,!0)}}}function Fs(Fn,$n,ht){for(var Qn,Qt,yr=[],Br=3;Br<arguments.length;Br++)yr[Br-3]=arguments[Br];var Lr=Oe&&Oe.get(Fn.path),kr=e.forEach(Lr,function(vi){return $n.has(vi.file)?vi:void 0})||e.elementAt(Lr,0);if(kr){var Pr=e.Debug.assertDefined(ui(kr.file)),Er=kr.kind,fa=kr.index,Da=void 0,Fa=void 0;switch(Er){case e.RefFileKind.Import:Da=e.skipTrivia(Pr.text,Pr.imports[fa].pos),Fa=Pr.imports[fa].end;break;case e.RefFileKind.ReferenceFile:Qn=Pr.referencedFiles[fa],Da=Qn.pos,Fa=Qn.end;break;case e.RefFileKind.TypeReferenceDirective:Qt=Pr.typeReferenceDirectives[fa],Da=Qt.pos,Fa=Qt.end;break;default:return e.Debug.assertNever(Er)}he.add(e.createFileDiagnostic.apply(void 0,Or([Pr,Da,Fa-Da,ht],yr)))}else he.add(e.createCompilerDiagnostic.apply(void 0,Or([ht],yr)))}function Il(){var Fn=!S.noEmit&&!S.suppressOutputPathCheck?e.getTsBuildInfoEmitOutputFilePath(S):void 0;lt(U,ye,function($n,ht,Qn){var Qt=(Qn?Qn.commandLine.projectReferences:U)[ht],yr=Qn&&Qn.sourceFile;if(!$n){Ns(yr,ht,e.Diagnostics.File_0_not_found,Qt.path);return}var Br=$n.commandLine.options;if(!Br.composite){var Lr=Qn?Qn.commandLine.fileNames:pe;Lr.length&&Ns(yr,ht,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,Qt.path)}if(Qt.prepend){var kr=Br.outFile||Br.out;kr?Ze.fileExists(kr)||Ns(yr,ht,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,kr,Qt.path):Ns(yr,ht,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,Qt.path)}!Qn&&Fn&&Fn===e.getTsBuildInfoEmitOutputFilePath(Br)&&(Ns(yr,ht,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Fn,Qt.path),O.set(vt(Fn),!0))})}function es(Fn,$n,ht,Qn,Qt,yr){for(var Br=!0,Lr=gl(),kr=0,Pr=Lr;kr<Pr.length;kr++){var Er=Pr[kr];if(e.isObjectLiteralExpression(Er.initializer))for(var fa=0,Da=e.getPropertyAssignment(Er.initializer,Fn);fa<Da.length;fa++){var Fa=Da[fa],vi=Fa.initializer;e.isArrayLiteralExpression(vi)&&vi.elements.length>$n&&(he.add(e.createDiagnosticForNodeInSourceFile(S.configFile,vi.elements[$n],ht,Qn,Qt,yr)),Br=!1)}}Br&&he.add(e.createCompilerDiagnostic(ht,Qn,Qt,yr))}function hl(Fn,$n,ht,Qn){for(var Qt=!0,yr=gl(),Br=0,Lr=yr;Br<Lr.length;Br++){var kr=Lr[Br];e.isObjectLiteralExpression(kr.initializer)&&Ks(kr.initializer,Fn,$n,void 0,ht,Qn)&&(Qt=!1)}Qt&&he.add(e.createCompilerDiagnostic(ht,Qn))}function Ul(Fn){var $n=yl();return $n?e.getPropertyAssignment($n,Fn):void 0}function gl(){return Ul("paths")||e.emptyArray}function ho(Fn,$n,ht,Qn){bs(!0,$n,ht,Fn,$n,ht,Qn)}function Is(Fn,$n,ht){bs(!1,Fn,void 0,$n,ht)}function Ns(Fn,$n,ht,Qn,Qt){var yr=e.firstDefined(e.getTsConfigPropArray(Fn||S.configFile,"references"),function(Br){return e.isArrayLiteralExpression(Br.initializer)?Br.initializer:void 0});yr&&yr.elements.length>$n?he.add(e.createDiagnosticForNodeInSourceFile(Fn||S.configFile,yr.elements[$n],ht,Qn,Qt)):he.add(e.createCompilerDiagnostic(ht,Qn,Qt))}function bs(Fn,$n,ht,Qn,Qt,yr,Br){var Lr=yl(),kr=!Lr||!Ks(Lr,Fn,$n,ht,Qn,Qt,yr,Br);kr&&he.add(e.createCompilerDiagnostic(Qn,Qt,yr,Br))}function yl(){if(ee===void 0){ee=null;var Fn=e.getTsConfigObjectLiteralExpression(S.configFile);if(Fn)for(var $n=0,ht=e.getPropertyAssignment(Fn,"compilerOptions");$n<ht.length;$n++){var Qn=ht[$n];if(e.isObjectLiteralExpression(Qn.initializer)){ee=Qn.initializer;break}}}return ee}function Ks(Fn,$n,ht,Qn,Qt,yr,Br,Lr){for(var kr=e.getPropertyAssignment(Fn,ht,Qn),Pr=0,Er=kr;Pr<Er.length;Pr++){var fa=Er[Pr];he.add(e.createDiagnosticForNodeInSourceFile(S.configFile,$n?fa.name:fa.initializer,Qt,yr,Br,Lr))}return!!kr.length}function qs(Fn,$n){O.set(vt(Fn),!0),he.add($n)}function $s(Fn){if(S.noEmit)return!1;var $n=vt(Fn);if(ui($n))return!1;var ht=S.outFile||S.out;if(ht)return el($n,ht)||el($n,e.removeFileExtension(ht)+".d.ts");if(S.declarationDir&&e.containsPath(S.declarationDir,$n,ke,!Ze.useCaseSensitiveFileNames()))return!0;if(S.outDir)return e.containsPath(S.outDir,$n,ke,!Ze.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf($n,e.supportedJSExtensions)||e.fileExtensionIs($n,".d.ts")){var Qn=e.removeFileExtension($n);return!!ui(Qn+".ts")||!!ui(Qn+".tsx")}return!1}function el(Fn,$n){return e.comparePaths(Fn,$n,ke,!Ze.useCaseSensitiveFileNames())===0}function nl(){return Ze.getSymlinks?Ze.getSymlinks():Ae||(Ae=e.discoverProbableSymlinks(Re,ga,Ze.getCurrentDirectory()))}}e.createProgram=V;function m(b,D){return D===void 0&&(D=b),{fileExists:function(Q){return D.fileExists(Q)},readDirectory:function(Q,N,X,pe,S){return e.Debug.assertDefined(D.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),D.readDirectory(Q,N,X,pe,S)},readFile:function(Q){return D.readFile(Q)},useCaseSensitiveFileNames:b.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return b.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:b.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:b.trace?function(T){return b.trace(T)}:void 0}}e.parseConfigHostFromCompilerHostLike=m;function y(b,D,T){if(!b)return e.emptyArray;for(var Q,N=0;N<b.length;N++){var X=b[N],pe=D(X,N);if(X.prepend&&pe&&pe.options){var S=pe.options.outFile||pe.options.out;if(!S)continue;var v=e.getOutputPathsForBundle(pe.options,!0),U=v.jsFilePath,de=v.sourceMapFilePath,Ce=v.declarationFilePath,Z=v.declarationMapPath,Re=v.buildInfoPath,Ae=e.createInputFiles(T,U,de,Ce,Z,Re);(Q||(Q=[])).push(Ae)}}return Q||e.emptyArray}e.createPrependNodes=y;function L(b,D){var T=D||b;return e.resolveConfigFileProjectName(T.path)}e.resolveProjectReferencePath=L;function C(b,D){var T=D.extension;switch(T){case".ts":case".d.ts":return;case".tsx":return Q();case".jsx":return Q()||N();case".js":return N();case".json":return X()}function Q(){return b.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function N(){return b.allowJs||!e.getStrictOptionValue(b,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function X(){return b.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}}e.getResolutionDiagnostic=C;function _(b){for(var D=b.imports,T=b.moduleAugmentations,Q=D.map(function(S){return S.text}),N=0,X=T;N<X.length;N++){var pe=X[N];pe.kind===10&&Q.push(pe.text)}return Q}})(ln||(ln={}));var ln;(function(e){function o(qe,Se,Fe,He,ve,ie){var d=[],H=qe.emit(Se,Pe,He,Fe,ve,ie);return{outputFiles:d,emitSkipped:H.emitSkipped,exportedModulesFromDeclarationEmit:H.exportedModulesFromDeclarationEmit};function Pe(I,_e,re){d.push({name:I,writeByteOrderMark:re,text:_e})}}e.getFileEmitOutput=o;function F(qe){return qe?e.cloneMap(qe):void 0}e.cloneMapOrUndefined=F})(ln||(ln={})),function(e){var o;(function(F){function qe(R){if(R.declarations&&R.declarations[0]){var K=e.getSourceFileOfNode(R.declarations[0]);return K&&K.resolvedPath}}function Se(R,K){var z=R.getSymbolAtLocation(K);return z&&qe(z)}function Fe(R,K,z,Ee){return e.toPath(R.getProjectReferenceRedirect(K)||K,z,Ee)}function He(R,K,z){var Ee;if(K.imports&&K.imports.length>0)for(var B=R.getTypeChecker(),V=0,m=K.imports;V<m.length;V++){var y=m[V],L=Se(B,y);L&&Ce(L)}var C=e.getDirectoryPath(K.path);if(K.referencedFiles&&K.referencedFiles.length>0)for(var _=0,b=K.referencedFiles;_<b.length;_++){var D=b[_],T=Fe(R,D.fileName,C,z);Ce(T)}if(K.resolvedTypeReferenceDirectiveNames&&K.resolvedTypeReferenceDirectiveNames.forEach(function(Z){if(!Z)return;var Re=Z.resolvedFileName,Ae=Fe(R,Re,C,z);Ce(Ae)}),K.moduleAugmentations.length)for(var B=R.getTypeChecker(),Q=0,N=K.moduleAugmentations;Q<N.length;Q++){var X=N[Q];if(!e.isStringLiteral(X))continue;var pe=B.getSymbolAtLocation(X);if(!pe)continue;de(pe)}for(var S=0,v=R.getTypeChecker().getAmbientModules();S<v.length;S++){var U=v[S];U.declarations.length>1&&de(U)}return Ee;function de(Z){for(var Re=0,Ae=Z.declarations;Re<Ae.length;Re++){var We=Ae[Re],be=e.getSourceFileOfNode(We);be&&be!==K&&Ce(be.resolvedPath)}}function Ce(Z){Ee||(Ee=e.createMap()),Ee.set(Z,!0)}}function ve(R,K){return K&&!K.referencedMap===!R}F.canReuseOldState=ve;function ie(R,K,z){for(var Ee=e.createMap(),B=R.getCompilerOptions().module!==e.ModuleKind.None?e.createMap():void 0,V=B?e.createMap():void 0,m=e.createMap(),y=ve(B,z),L=0,C=R.getSourceFiles();L<C.length;L++){var _=C[L],b=e.Debug.assertDefined(_.version,"Program intended to be used with Builder should have source files with versions set"),D=y?z.fileInfos.get(_.path):void 0;if(B){var T=He(R,_,K);if(T&&B.set(_.path,T),y){var Q=z.exportedModulesMap.get(_.path);Q&&V.set(_.path,Q)}}Ee.set(_.path,{version:b,signature:D&&D.signature})}return{fileInfos:Ee,referencedMap:B,exportedModulesMap:V,hasCalledUpdateShapeSignature:m}}F.create=ie;function d(R){R.allFilesExcludingDefaultLibraryFile=void 0,R.allFileNames=void 0}F.releaseCache=d;function H(R){var K=e.createMap();return R.fileInfos.forEach(function(z,Ee){K.set(Ee,ma({},z))}),{fileInfos:K,referencedMap:e.cloneMapOrUndefined(R.referencedMap),exportedModulesMap:e.cloneMapOrUndefined(R.exportedModulesMap),hasCalledUpdateShapeSignature:e.cloneMap(R.hasCalledUpdateShapeSignature)}}F.clone=H;function Pe(R,K,z,Ee,B,V,m){var y=V||e.createMap(),L=K.getSourceFileByPath(z);if(!L)return e.emptyArray;if(!_e(R,K,L,y,Ee,B,m))return[L];var C=(R.referencedMap?fe:J)(R,K,L,y,Ee,B,m);return V||I(R,y),C}F.getFilesAffectedBy=Pe;function I(R,K){K.forEach(function(z,Ee){R.fileInfos.get(Ee).signature=z,R.hasCalledUpdateShapeSignature.set(Ee,!0)})}F.updateSignaturesFromCache=I;function _e(R,K,z,Ee,B,V,m){if(e.Debug.assert(!!z),e.Debug.assert(!m||!!R.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),R.hasCalledUpdateShapeSignature.has(z.path)||Ee.has(z.path))return!1;var y=R.fileInfos.get(z.path);if(!y)return e.Debug.fail();var L=y.signature,C;if(z.isDeclarationFile){if(C=z.version,m&&C!==L){var _=R.referencedMap?R.referencedMap.get(z.path):void 0;m.set(z.path,_||!1)}}else{var b=e.getFileEmitOutput(K,z,!0,B,void 0,!0),D=b.outputFiles&&K.getCompilerOptions().declarationMap?b.outputFiles.length>1?b.outputFiles[1]:void 0:b.outputFiles.length>0?b.outputFiles[0]:void 0;D?(e.Debug.assert(e.fileExtensionIs(D.name,".d.ts"),"File extension for signature expected to be dts",function(){return"Found: "+e.getAnyExtensionFromPath(D.name)+" for "+D.name+":: All output files: "+JSON.stringify(b.outputFiles.map(function(T){return T.name}))}),C=V(D.text),m&&C!==L&&re(z,b.exportedModulesFromDeclarationEmit,m)):C=L}return Ee.set(z.path,C),!L||C!==L}F.updateShapeSignature=_e;function re(R,K,z){if(!K){z.set(R.path,!1);return}var Ee;K.forEach(function(V){return B(qe(V))}),z.set(R.path,Ee||!1);function B(V){V&&(Ee||(Ee=e.createMap()),Ee.set(V,!0))}}function se(R,K){K&&(e.Debug.assert(!!R.exportedModulesMap),K.forEach(function(z,Ee){z?R.exportedModulesMap.set(Ee,z):R.exportedModulesMap.delete(Ee)}))}F.updateExportedFilesMapFromCache=se;function w(R,K,z){var Ee=K.getCompilerOptions();if(Ee.outFile||Ee.out)return k(R,K);if(!R.referencedMap||ne(z))return k(R,K);for(var B=e.createMap(),V=[z.path];V.length;){var m=V.pop();if(!B.has(m)){B.set(m,!0);var y=R.referencedMap.get(m);if(y)for(var L=y.keys(),C=L.next();!C.done;C=L.next())V.push(C.value)}}return e.arrayFrom(e.mapDefinedIterator(B.keys(),function(_){var b=K.getSourceFileByPath(_);return b?b.fileName:_}))}F.getAllDependencies=w;function k(R,K){if(!R.allFileNames){var z=K.getSourceFiles();R.allFileNames=z===e.emptyArray?e.emptyArray:z.map(function(Ee){return Ee.fileName})}return R.allFileNames}function P(R,K){return e.arrayFrom(e.mapDefinedIterator(R.referencedMap.entries(),function(z){var Ee=z[0],B=z[1];return B.has(K)?Ee:void 0}))}F.getReferencedByPaths=P;function h(R){for(var K=0,z=R.statements;K<z.length;K++){var Ee=z[K];if(!e.isModuleWithStringLiteralName(Ee))return!1}return!0}function Y(R){return e.some(R.moduleAugmentations,function(K){return e.isGlobalScopeAugmentation(K.parent)})}function ne(R){return Y(R)||!e.isExternalModule(R)&&!h(R)}function $(R,K,z){if(R.allFilesExcludingDefaultLibraryFile)return R.allFilesExcludingDefaultLibraryFile;var Ee;y(z);for(var B=0,V=K.getSourceFiles();B<V.length;B++){var m=V[B];m!==z&&y(m)}return R.allFilesExcludingDefaultLibraryFile=Ee||e.emptyArray,R.allFilesExcludingDefaultLibraryFile;function y(L){K.isSourceFileDefaultLibrary(L)||(Ee||(Ee=[])).push(L)}}function J(R,K,z){var Ee=K.getCompilerOptions();return Ee&&(Ee.out||Ee.outFile)?[z]:$(R,K,z)}function fe(R,K,z,Ee,B,V,m){if(ne(z))return $(R,K,z);var y=K.getCompilerOptions();if(y&&(y.isolatedModules||y.out||y.outFile))return[z];var L=e.createMap();L.set(z.path,z);for(var C=P(R,z.resolvedPath);C.length>0;){var _=C.pop();if(!L.has(_)){var b=K.getSourceFileByPath(_);L.set(_,b),b&&_e(R,K,b,Ee,B,V,m)&&C.push.apply(C,P(R,b.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(L.values(),function(D){return D}))}})(o=e.BuilderState||(e.BuilderState={}))}(ln||(ln={}));var ln;(function(e){var o;(function(C){C[C.DtsOnly=0]="DtsOnly",C[C.Full=1]="Full"})(o=e.BuilderFileEmit||(e.BuilderFileEmit={}));function F(C,_){return C===_||C!==void 0&&_!==void 0&&C.size===_.size&&!e.forEachKey(C,function(b){return!_.has(b)})}function qe(C,_,b){var D=e.BuilderState.create(C,_,b);D.program=C;var T=C.getCompilerOptions();D.compilerOptions=T,!T.outFile&&!T.out&&(D.semanticDiagnosticsPerFile=e.createMap()),D.changedFilesSet=e.createMap();var Q=e.BuilderState.canReuseOldState(D.referencedMap,b),N=Q?b.compilerOptions:void 0,X=Q&&b.semanticDiagnosticsPerFile&&!!D.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(T,N);if(Q){if(!b.currentChangedFilePath){var pe=b.currentAffectedFilesSignatures;e.Debug.assert(!b.affectedFiles&&(!pe||!pe.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var S=b.changedFilesSet;X&&e.Debug.assert(!S||!e.forEachKey(S,function(Z){return b.semanticDiagnosticsPerFile.has(Z)}),"Semantic diagnostics shouldnt be available for changed files"),S&&e.copyEntries(S,D.changedFilesSet),!T.outFile&&!T.out&&b.affectedFilesPendingEmit&&(D.affectedFilesPendingEmit=b.affectedFilesPendingEmit.slice(),D.affectedFilesPendingEmitKind=e.cloneMapOrUndefined(b.affectedFilesPendingEmitKind),D.affectedFilesPendingEmitIndex=b.affectedFilesPendingEmitIndex)}var v=D.referencedMap,U=Q?b.referencedMap:void 0,de=X&&!T.skipLibCheck===!N.skipLibCheck,Ce=de&&!T.skipDefaultLibCheck===!N.skipDefaultLibCheck;return D.fileInfos.forEach(function(Z,Re){var Ae,We;if(!Q||!(Ae=b.fileInfos.get(Re))||Ae.version!==Z.version||!F(We=v&&v.get(Re),U&&U.get(Re))||We&&e.forEachKey(We,function(x){return!D.fileInfos.has(x)&&b.fileInfos.has(x)}))D.changedFilesSet.set(Re,!0);else if(X){var be=C.getSourceFileByPath(Re);if(be.isDeclarationFile&&!de)return;if(be.hasNoDefaultLib&&!Ce)return;var Ge=b.semanticDiagnosticsPerFile.get(Re);Ge&&(D.semanticDiagnosticsPerFile.set(Re,b.hasReusableDiagnostic?Se(Ge,C,_):Ge),D.semanticDiagnosticsFromOldState||(D.semanticDiagnosticsFromOldState=e.createMap()),D.semanticDiagnosticsFromOldState.set(Re,!0))}}),N&&e.compilerOptionsAffectEmit(T,N)&&(C.getSourceFiles().forEach(function(Z){return V(D,Z.path,1)}),e.Debug.assert(D.seenAffectedFiles===void 0),D.seenAffectedFiles=e.createMap()),D.emittedBuildInfo=!D.changedFilesSet.size&&!D.affectedFilesPendingEmit,D}function Se(C,_,b){if(!C.length)return e.emptyArray;var D=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(_.getCompilerOptions()),_.getCurrentDirectory()));return C.map(function(Q){var N=Fe(Q,_,T);N.reportsUnnecessary=Q.reportsUnnecessary,N.source=Q.source;var X=Q.relatedInformation;return N.relatedInformation=X?X.length?X.map(function(pe){return Fe(pe,_,T)}):e.emptyArray:void 0,N});function T(Q){return e.toPath(Q,D,b)}}function Fe(C,_,b){var D=C.file;return ma(ma({},C),{file:D?_.getSourceFileByPath(b(D)):void 0})}function He(C){e.BuilderState.releaseCache(C),C.program=void 0}function ve(C){var _=e.BuilderState.clone(C);return _.semanticDiagnosticsPerFile=e.cloneMapOrUndefined(C.semanticDiagnosticsPerFile),_.changedFilesSet=e.cloneMap(C.changedFilesSet),_.affectedFiles=C.affectedFiles,_.affectedFilesIndex=C.affectedFilesIndex,_.currentChangedFilePath=C.currentChangedFilePath,_.currentAffectedFilesSignatures=e.cloneMapOrUndefined(C.currentAffectedFilesSignatures),_.currentAffectedFilesExportedModulesMap=e.cloneMapOrUndefined(C.currentAffectedFilesExportedModulesMap),_.seenAffectedFiles=e.cloneMapOrUndefined(C.seenAffectedFiles),_.cleanedDiagnosticsOfLibFiles=C.cleanedDiagnosticsOfLibFiles,_.semanticDiagnosticsFromOldState=e.cloneMapOrUndefined(C.semanticDiagnosticsFromOldState),_.program=C.program,_.compilerOptions=C.compilerOptions,_.affectedFilesPendingEmit=C.affectedFilesPendingEmit&&C.affectedFilesPendingEmit.slice(),_.affectedFilesPendingEmitKind=e.cloneMapOrUndefined(C.affectedFilesPendingEmitKind),_.affectedFilesPendingEmitIndex=C.affectedFilesPendingEmitIndex,_.seenEmittedFiles=e.cloneMapOrUndefined(C.seenEmittedFiles),_.programEmitComplete=C.programEmitComplete,_}function ie(C,_){e.Debug.assert(!_||!C.affectedFiles||C.affectedFiles[C.affectedFilesIndex-1]!==_||!C.semanticDiagnosticsPerFile.has(_.path))}function d(C,_,b){for(;;){var D=C.affectedFiles;if(D){for(var T=C.seenAffectedFiles,Q=C.affectedFilesIndex;Q<D.length;){var N=D[Q];if(!T.has(N.path))return C.affectedFilesIndex=Q,Pe(C,N,_,b),N;Q++}C.changedFilesSet.delete(C.currentChangedFilePath),C.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(C,C.currentAffectedFilesSignatures),C.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(C,C.currentAffectedFilesExportedModulesMap),C.affectedFiles=void 0}var X=C.changedFilesSet.keys().next();if(X.done)return;var pe=e.Debug.assertDefined(C.program),S=pe.getCompilerOptions();if(S.outFile||S.out)return e.Debug.assert(!C.semanticDiagnosticsPerFile),pe;C.currentAffectedFilesSignatures=C.currentAffectedFilesSignatures||e.createMap(),C.exportedModulesMap&&(C.currentAffectedFilesExportedModulesMap=C.currentAffectedFilesExportedModulesMap||e.createMap()),C.affectedFiles=e.BuilderState.getFilesAffectedBy(C,pe,X.value,_,b,C.currentAffectedFilesSignatures,C.currentAffectedFilesExportedModulesMap),C.currentChangedFilePath=X.value,C.affectedFilesIndex=0,C.seenAffectedFiles=C.seenAffectedFiles||e.createMap()}}function H(C){var _=C.affectedFilesPendingEmit;if(_){for(var b=C.seenEmittedFiles||(C.seenEmittedFiles=e.createMap()),D=C.affectedFilesPendingEmitIndex;D<_.length;D++){var T=e.Debug.assertDefined(C.program).getSourceFileByPath(_[D]);if(T){var Q=b.get(T.path),N=e.Debug.assertDefined(e.Debug.assertDefined(C.affectedFilesPendingEmitKind).get(T.path));if(Q===void 0||Q<N)return C.affectedFilesPendingEmitIndex=D,{affectedFile:T,emitKind:N}}}C.affectedFilesPendingEmit=void 0,C.affectedFilesPendingEmitKind=void 0,C.affectedFilesPendingEmitIndex=void 0}return}function Pe(C,_,b,D){if(_e(C,_.path),C.allFilesExcludingDefaultLibraryFile===C.affectedFiles){if(!C.cleanedDiagnosticsOfLibFiles){C.cleanedDiagnosticsOfLibFiles=!0;var T=e.Debug.assertDefined(C.program),Q=T.getCompilerOptions();e.forEach(T.getSourceFiles(),function(N){return T.isSourceFileDefaultLibrary(N)&&!e.skipTypeChecking(N,Q,T)&&_e(C,N.path)})}return}se(C,_,function(N,X){return I(N,X,b,D)})}function I(C,_,b,D){if(_e(C,_),!C.changedFilesSet.has(_)){var T=e.Debug.assertDefined(C.program),Q=T.getSourceFileByPath(_);Q&&(e.BuilderState.updateShapeSignature(C,T,Q,e.Debug.assertDefined(C.currentAffectedFilesSignatures),b,D,C.currentAffectedFilesExportedModulesMap),e.getEmitDeclarations(C.compilerOptions)&&V(C,_,0))}return!1}function _e(C,_){return C.semanticDiagnosticsFromOldState?(C.semanticDiagnosticsFromOldState.delete(_),C.semanticDiagnosticsPerFile.delete(_),!C.semanticDiagnosticsFromOldState.size):!0}function re(C,_){var b=e.Debug.assertDefined(C.currentAffectedFilesSignatures).get(_),D=e.Debug.assertDefined(C.fileInfos.get(_)).signature;return b!==D}function se(C,_,b){if(!C.exportedModulesMap||!C.changedFilesSet.has(_.path))return;if(!re(C,_.path))return;if(C.compilerOptions.isolatedModules){var D=e.createMap();D.set(_.path,!0);for(var T=e.BuilderState.getReferencedByPaths(C,_.resolvedPath);T.length>0;){var Q=T.pop();if(!D.has(Q)){D.set(Q,!0);var N=b(C,Q);if(N&&re(C,Q)){var X=e.Debug.assertDefined(C.program).getSourceFileByPath(Q);T.push.apply(T,e.BuilderState.getReferencedByPaths(C,X.resolvedPath))}}}}e.Debug.assert(!!C.currentAffectedFilesExportedModulesMap);var pe=e.createMap();if(e.forEachEntry(C.currentAffectedFilesExportedModulesMap,function(S,v){return S&&S.has(_.path)&&w(C,v,pe,b)}))return;e.forEachEntry(C.exportedModulesMap,function(S,v){return!C.currentAffectedFilesExportedModulesMap.has(v)&&S.has(_.path)&&w(C,v,pe,b)})}function w(C,_,b,D){return e.forEachEntry(C.referencedMap,function(T,Q){return T.has(_)&&k(C,Q,b,D)})}function k(C,_,b,D){return e.addToSeen(b,_)?D(C,_)?!0:(e.Debug.assert(!!C.currentAffectedFilesExportedModulesMap),e.forEachEntry(C.currentAffectedFilesExportedModulesMap,function(T,Q){return T&&T.has(_)&&k(C,Q,b,D)})||e.forEachEntry(C.exportedModulesMap,function(T,Q){return!C.currentAffectedFilesExportedModulesMap.has(Q)&&T.has(_)&&k(C,Q,b,D)})?!0:!!e.forEachEntry(C.referencedMap,function(T,Q){return T.has(_)&&!b.has(Q)&&D(C,Q)})):!1}function P(C,_,b,D,T){T?C.emittedBuildInfo=!0:_===C.program?(C.changedFilesSet.clear(),C.programEmitComplete=!0):(C.seenAffectedFiles.set(_.path,!0),b!==void 0&&(C.seenEmittedFiles||(C.seenEmittedFiles=e.createMap())).set(_.path,b),D?C.affectedFilesPendingEmitIndex++:C.affectedFilesIndex++)}function h(C,_,b){return P(C,b),{result:_,affected:b}}function Y(C,_,b,D,T,Q){return P(C,b,D,T,Q),{result:_,affected:b}}function ne(C,_,b){var D=_.path;if(C.semanticDiagnosticsPerFile){var T=C.semanticDiagnosticsPerFile.get(D);if(T)return T}var Q=e.Debug.assertDefined(C.program).getSemanticDiagnostics(_,b);return C.semanticDiagnosticsPerFile&&C.semanticDiagnosticsPerFile.set(D,Q),Q}function $(C,_){if(C.compilerOptions.outFile||C.compilerOptions.out)return;var b=e.Debug.assertDefined(C.program).getCurrentDirectory(),D=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(C.compilerOptions),b)),T={};C.fileInfos.forEach(function(U,de){var Ce=C.currentAffectedFilesSignatures&&C.currentAffectedFilesSignatures.get(de);T[v(de)]=Ce===void 0?U:{version:U.version,signature:Ce}});var Q={fileInfos:T,options:J(C.compilerOptions,S)};if(C.referencedMap){var N={};C.referencedMap.forEach(function(U,de){N[v(de)]=e.arrayFrom(U.keys(),v)}),Q.referencedMap=N}if(C.exportedModulesMap){var X={};C.exportedModulesMap.forEach(function(U,de){var Ce=C.currentAffectedFilesExportedModulesMap&&C.currentAffectedFilesExportedModulesMap.get(de);Ce===void 0?X[v(de)]=e.arrayFrom(U.keys(),v):Ce&&(X[v(de)]=e.arrayFrom(Ce.keys(),v))}),Q.exportedModulesMap=X}if(C.semanticDiagnosticsPerFile){var pe=[];C.semanticDiagnosticsPerFile.forEach(function(U,de){return pe.push(U.length?[v(de),C.hasReusableDiagnostic?U:R(U,v)]:v(de))}),Q.semanticDiagnosticsPerFile=pe}return Q;function S(U){return v(e.getNormalizedAbsolutePath(U,b))}function v(U){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(D,U,_))}}function J(C,_){var b={},D=e.getOptionNameMap().optionNameMap;for(var T in C)e.hasProperty(C,T)&&(b[T]=fe(D.get(T.toLowerCase()),C[T],_));return b.configFilePath&&(b.configFilePath=_(b.configFilePath)),b}function fe(C,_,b){if(C){if(C.type==="list"){var D=_;if(C.element.isFilePath&&D.length)return D.map(b)}else if(C.isFilePath)return b(_)}return _}function R(C,_){return e.Debug.assert(!!C.length),C.map(function(b){var D=K(b,_);D.reportsUnnecessary=b.reportsUnnecessary,D.source=b.source;var T=b.relatedInformation;return D.relatedInformation=T?T.length?T.map(function(Q){return K(Q,_)}):e.emptyArray:void 0,D})}function K(C,_){var b=C.file;return ma(ma({},C),{file:b?_(b.path):void 0})}var z;(function(C){C[C.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",C[C.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"})(z=e.BuilderProgramKind||(e.BuilderProgramKind={}));function Ee(C,_,b,D,T,Q){var N,X,pe;return C===void 0?(e.Debug.assert(_===void 0),N=b,pe=D,e.Debug.assert(!!pe),X=pe.getProgram()):e.isArray(C)?(pe=D,X=e.createProgram({rootNames:C,options:_,host:b,oldProgram:pe&&pe.getProgramOrUndefined(),configFileParsingDiagnostics:T,projectReferences:Q}),N=b):(X=C,N=_,pe=b,T=D),{host:N,newProgram:X,oldProgram:pe,configFileParsingDiagnostics:T||e.emptyArray}}e.getBuilderCreationParameters=Ee;function B(C,_){var b=_.newProgram,D=_.host,T=_.oldProgram,Q=_.configFileParsingDiagnostics,N=T&&T.getState();if(N&&b===N.program&&Q===b.getConfigFileParsingDiagnostics())return b=void 0,N=void 0,T;var X=e.createGetCanonicalFileName(D.useCaseSensitiveFileNames()),pe=D.createHash||e.generateDjb2Hash,S=qe(b,X,N),v;b.getProgramBuildInfo=function(){return $(S,X)},b=void 0,T=void 0,N=void 0;var U=L(S,Q);return U.getState=function(){return S},U.backupState=function(){e.Debug.assert(v===void 0),v=ve(S)},U.restoreState=function(){S=e.Debug.assertDefined(v),v=void 0},U.getAllDependencies=function(Ae){return e.BuilderState.getAllDependencies(S,e.Debug.assertDefined(S.program),Ae)},U.getSemanticDiagnostics=Re,U.emit=Ce,U.releaseProgram=function(){He(S),v=void 0},C===z.SemanticDiagnosticsBuilderProgram?U.getSemanticDiagnosticsOfNextAffectedFile=Z:C===z.EmitAndSemanticDiagnosticsBuilderProgram?(U.getSemanticDiagnosticsOfNextAffectedFile=Z,U.emitNextAffectedFile=de):e.notImplemented(),U;function de(Ae,We,be,Ge){var x=d(S,We,pe),j=1,Oe=!1;if(!x)if(!S.compilerOptions.out&&!S.compilerOptions.outFile){var a=H(S);if(!a){if(S.emittedBuildInfo)return;var en=e.Debug.assertDefined(S.program);return Y(S,en.emitBuildInfo(Ae||e.maybeBind(D,D.writeFile),We),en,1,!1,!0)}x=a.affectedFile,j=a.emitKind,Oe=!0}else{var Pn=e.Debug.assertDefined(S.program);if(S.programEmitComplete||!e.some(Pn.getProjectReferences(),function(Xn){return!!Xn.prepend})){S.programEmitComplete=!0;return}x=Pn}return Y(S,e.Debug.assertDefined(S.program).emit(x===S.program?void 0:x,Ae||e.maybeBind(D,D.writeFile),We,be||j===0,Ge),x,j,Oe)}function Ce(Ae,We,be,Ge,x){if(C===z.EmitAndSemanticDiagnosticsBuilderProgram&&(ie(S,Ae),!Ae)){for(var j=[],Oe=!1,a=void 0,en=[],Pn=void 0;Pn=de(We,be,Ge,x);)Oe=Oe||Pn.result.emitSkipped,a=e.addRange(a,Pn.result.diagnostics),en=e.addRange(en,Pn.result.emittedFiles),j=e.addRange(j,Pn.result.sourceMaps);return{emitSkipped:Oe,diagnostics:a||e.emptyArray,emittedFiles:en,sourceMaps:j}}return e.Debug.assertDefined(S.program).emit(Ae,We||e.maybeBind(D,D.writeFile),be,Ge,x)}function Z(Ae,We){for(;;){var be=d(S,Ae,pe);if(be){if(be===S.program)return h(S,S.program.getSemanticDiagnostics(void 0,Ae),be)}else return;if(C===z.EmitAndSemanticDiagnosticsBuilderProgram&&V(S,be.path,1),We&&We(be)){P(S,be);continue}return h(S,ne(S,be,Ae),be)}}function Re(Ae,We){ie(S,Ae);var be=e.Debug.assertDefined(S.program).getCompilerOptions();if(be.outFile||be.out)return e.Debug.assert(!S.semanticDiagnosticsPerFile),e.Debug.assertDefined(S.program).getSemanticDiagnostics(Ae,We);if(Ae)return ne(S,Ae,We);for(;Z(We););for(var Ge,x=0,j=e.Debug.assertDefined(S.program).getSourceFiles();x<j.length;x++){var Oe=j[x];Ge=e.addRange(Ge,ne(S,Oe,We))}return Ge||e.emptyArray}}e.createBuilderProgram=B;function V(C,_,b){C.affectedFilesPendingEmit||(C.affectedFilesPendingEmit=[]),C.affectedFilesPendingEmitKind||(C.affectedFilesPendingEmitKind=e.createMap());var D=C.affectedFilesPendingEmitKind.get(_);C.affectedFilesPendingEmit.push(_),C.affectedFilesPendingEmitKind.set(_,D||b),C.affectedFilesPendingEmitIndex===void 0&&(C.affectedFilesPendingEmitIndex=0)}function m(C,_){if(!C)return;var b=e.createMap();for(var D in C)e.hasProperty(C,D)&&b.set(_(D),e.arrayToSet(C[D],_));return b}function y(C,_,b){var D=e.getDirectoryPath(e.getNormalizedAbsolutePath(_,b.getCurrentDirectory())),T=e.createGetCanonicalFileName(b.useCaseSensitiveFileNames()),Q=e.createMap();for(var N in C.fileInfos)e.hasProperty(C.fileInfos,N)&&Q.set(pe(N),C.fileInfos[N]);var X={fileInfos:Q,compilerOptions:e.convertToOptionsWithAbsolutePaths(C.options,S),referencedMap:m(C.referencedMap,pe),exportedModulesMap:m(C.exportedModulesMap,pe),semanticDiagnosticsPerFile:C.semanticDiagnosticsPerFile&&e.arrayToMap(C.semanticDiagnosticsPerFile,function(v){return pe(e.isString(v)?v:v[0])},function(v){return e.isString(v)?e.emptyArray:v[1]}),hasReusableDiagnostic:!0};return{getState:function(){return X},backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return X.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};function pe(v){return e.toPath(v,D,T)}function S(v){return e.getNormalizedAbsolutePath(v,D)}}e.createBuildProgramUsingProgramBuildInfo=y;function L(C,_){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:b,getProgramOrUndefined:function(){return C.program},releaseProgram:function(){return C.program=void 0},getCompilerOptions:function(){return C.compilerOptions},getSourceFile:function(T){return b().getSourceFile(T)},getSourceFiles:function(){return b().getSourceFiles()},getOptionsDiagnostics:function(T){return b().getOptionsDiagnostics(T)},getGlobalDiagnostics:function(T){return b().getGlobalDiagnostics(T)},getConfigFileParsingDiagnostics:function(){return _},getSyntacticDiagnostics:function(T,Q){return b().getSyntacticDiagnostics(T,Q)},getDeclarationDiagnostics:function(T,Q){return b().getDeclarationDiagnostics(T,Q)},getSemanticDiagnostics:function(T,Q){return b().getSemanticDiagnostics(T,Q)},emit:function(T,Q,N,X,pe){return b().emit(T,Q,N,X,pe)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return b().getCurrentDirectory()}};function b(){return e.Debug.assertDefined(C.program)}}e.createRedirectedBuilderProgram=L})(ln||(ln={})),function(e){function o(Se,Fe,He,ve,ie,d){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(Se,Fe,He,ve,ie,d))}e.createSemanticDiagnosticsBuilderProgram=o;function F(Se,Fe,He,ve,ie,d){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(Se,Fe,He,ve,ie,d))}e.createEmitAndSemanticDiagnosticsBuilderProgram=F;function qe(Se,Fe,He,ve,ie,d){var H=e.getBuilderCreationParameters(Se,Fe,He,ve,ie,d),Pe=H.newProgram,I=H.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram({program:Pe,compilerOptions:Pe.getCompilerOptions()},I)}e.createAbstractBuilder=qe}(ln||(ln={}));var ln;(function(e){function o(Se){return e.some(e.ignoredPaths,function(Fe){return e.stringContains(Se,Fe)})}e.isPathIgnored=o;function F(Se){var Fe=e.getRootLength(Se);if(Se.length===Fe)return!1;var He=Se.indexOf(e.directorySeparator,Fe);if(He===-1)return!1;var ve=Se.substring(Fe,He+1),ie=Fe>1||Se.charCodeAt(0)!==47;if(ie&&Se.search(/[a-zA-Z]:/)!==0&&ve.search(/[a-zA-z]\$\//)===0){if(He=Se.indexOf(e.directorySeparator,He+1),He===-1)return!1;ve=Se.substring(Fe+ve.length,He+1)}if(ie&&ve.search(/users\//i)!==0)return!0;for(var d=He+1,H=2;H>0;H--)if(d=Se.indexOf(e.directorySeparator,d)+1,d===0)return!1;return!0}e.canWatchDirectory=F,e.maxNumberOfFilesToIterateForInvalidation=256;function qe(Se,Fe,He){var ve,ie,d,H=!1,Pe=e.createMultiMap(),I=e.memoize(function(){return Se.getCurrentDirectory()}),_e=Se.getCachedDirectoryStructureHost(),re=e.createMap(),se=e.createCacheWithRedirects(),w=e.createCacheWithRedirects(),k=e.createModuleResolutionCacheWithMaps(se,w,I(),Se.getCanonicalFileName),P=e.createMap(),h=e.createCacheWithRedirects(),Y=[".ts",".tsx",".js",".jsx",".json"],ne=e.createMap(),$=e.createMap(),J=Fe&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(Fe,I())),fe=J&&Se.toPath(J),R=e.createMap();return{startRecordingFilesWithChangedResolutions:V,finishRecordingFilesWithChangedResolutions:m,startCachingPerDirectoryResolution:C,finishCachingPerDirectoryResolution:_,resolveModuleNames:Q,getResolvedModuleWithFailedLookupLocationsFromCache:N,resolveTypeReferenceDirectives:T,removeResolutionsFromProjectReferenceRedirects:j,removeResolutionsOfFile:Oe,invalidateResolutionOfFile:Xn,setFilesWithInvalidatedNonRelativeUnresolvedImports:ae,createHasInvalidatedResolution:L,updateTypeRootsWatch:Ue,closeTypeRootsWatch:Le,clear:B};function K($e){return $e.resolvedModule}function z($e){return $e.resolvedTypeReferenceDirective}function Ee($e,sn){return $e===void 0||sn.length<=$e.length?!1:e.startsWith(sn,$e)&&sn[$e.length]===e.directorySeparator}function B(){e.clearMap($,e.closeFileWatcherOf),ne.clear(),Pe.clear(),Le(),re.clear(),P.clear(),H=!1,C()}function V(){ve=[]}function m(){var $e=ve;return ve=void 0,$e}function y($e){if(!d)return!1;var sn=d.get($e);return!!sn&&!!sn.length}function L($e){if(H||$e)return ie=void 0,e.returnTrue;var sn=ie;return ie=void 0,function(he){return!!sn&&sn.has(he)||y(he)}}function C(){se.clear(),w.clear(),h.clear(),Pe.forEach(Re),Pe.clear()}function _(){H=!1,d=void 0,C(),$.forEach(function($e,sn){$e.refCount===0&&($.delete(sn),$e.watcher.close())})}function b($e,sn,he,ke,G){var c=e.resolveModuleName($e,sn,he,ke,k,G);if(!Se.getGlobalCache)return c;var O=Se.getGlobalCache();if(O!==void 0&&!e.isExternalModuleNameRelative($e)&&!(c.resolvedModule&&e.extensionIsTS(c.resolvedModule.extension))){var ee=e.loadModuleFromGlobalCache(e.Debug.assertDefined(Se.globalCacheResolutionModuleName)($e),Se.projectName,he,ke,O),Te=ee.resolvedModule,Ne=ee.failedLookupLocations;if(Te)return{resolvedModule:Te,failedLookupLocations:e.addRange(c.failedLookupLocations,Ne)}}return c}function D($e,sn,he,ke,G,c,O,ee,Te,Ne){var ze=Se.toPath(sn),bn=ke.get(ze)||ke.set(ze,e.createMap()).get(ze),Sn=e.getDirectoryPath(ze),Kn=G.getOrCreateMapOfCacheRedirects(he),Xe=Kn.get(Sn);Xe||(Xe=e.createMap(),Kn.set(Sn,Xe));for(var pn=[],le=Se.getCompilationSettings(),oe=Ne&&y(ze),kn=Se.getCurrentProgram(),yn=kn&&kn.getResolvedProjectReferenceToRedirect(sn),ye=yn?!he||he.sourceFile.path!==yn.sourceFile.path:!!he,mn=e.createMap(),un=0,Mn=$e;un<Mn.length;un++){var tt=Mn[un],Vn=bn.get(tt);if(!mn.has(tt)&&H||ye||!Vn||Vn.isInvalidated||oe&&!e.isExternalModuleNameRelative(tt)&&ee(Vn)){var ut=Vn,dt=Xe.get(tt);dt?Vn=dt:(Vn=c(tt,sn,le,Se,he),Xe.set(tt,Vn)),bn.set(tt,Vn),de(tt,Vn),ut&&We(ut),Ne&&ve&&!ot(ut,Vn)&&(ve.push(ze),Ne=!1)}e.Debug.assert(Vn!==void 0&&!Vn.isInvalidated),mn.set(tt,!0),pn.push(O(Vn))}return bn.forEach(function(ct,wt){!mn.has(wt)&&!e.contains(Te,wt)&&(We(ct),bn.delete(wt))}),pn;function ot(ct,wt){if(ct===wt)return!0;if(!ct||!wt)return!1;var st=O(ct),qn=O(wt);return st===qn?!0:!st||!qn?!1:st.resolvedFileName===qn.resolvedFileName}}function T($e,sn,he){return D($e,sn,he,P,h,e.resolveTypeReferenceDirective,z,function(ke){return ke.resolvedTypeReferenceDirective===void 0},void 0,!1)}function Q($e,sn,he,ke){return D($e,sn,ke,re,se,b,K,function(G){return!G.resolvedModule||!e.resolutionExtensionIsTSOrJson(G.resolvedModule.extension)},he,He)}function N($e,sn){var he=re.get(Se.toPath(sn));return he&&he.get($e)}function X($e){return e.endsWith($e,"/node_modules")}function pe($e){return e.endsWith($e,"/node_modules/@types")}function S($e,sn){if(Ee(fe,sn)){$e=e.isRootedDiskPath($e)?e.normalizePath($e):e.getNormalizedAbsolutePath($e,I()),e.Debug.assert($e.length===sn.length,"FailedLookup: "+$e+" failedLookupLocationPath: "+sn);var he=sn.indexOf(e.directorySeparator,fe.length+1);return he!==-1?{dir:$e.substr(0,he),dirPath:sn.substr(0,he)}:{dir:J,dirPath:fe,nonRecursive:!1}}return v(e.getDirectoryPath(e.getNormalizedAbsolutePath($e,I())),e.getDirectoryPath(sn))}function v($e,sn){for(;e.pathContainsNodeModules(sn);)$e=e.getDirectoryPath($e),sn=e.getDirectoryPath(sn);if(X(sn))return F(e.getDirectoryPath(sn))?{dir:$e,dirPath:sn}:void 0;var he=!0,ke,G;if(fe!==void 0)for(;!Ee(sn,fe);){var c=e.getDirectoryPath(sn);if(c===sn)break;he=!1,ke=sn,G=$e,sn=c,$e=e.getDirectoryPath($e)}return F(sn)?{dir:G||$e,dirPath:ke||sn,nonRecursive:he}:void 0}function U($e){return e.fileExtensionIsOneOf($e,Y)}function de($e,sn){sn.failedLookupLocations&&sn.failedLookupLocations.length&&(sn.refCount?sn.refCount++:(sn.refCount=1,e.isExternalModuleNameRelative($e)?Ce(sn):Pe.add($e,sn)))}function Ce($e){e.Debug.assert(!!$e.refCount);for(var sn=$e.failedLookupLocations,he=!1,ke=0,G=sn;ke<G.length;ke++){var c=G[ke],O=Se.toPath(c),ee=S(c,O);if(ee){var Te=ee.dir,Ne=ee.dirPath,ze=ee.nonRecursive;if(!U(O)){var bn=ne.get(O)||0;ne.set(O,bn+1)}Ne===fe?(e.Debug.assert(!ze),he=!0):Ae(Te,Ne,ze)}}he&&Ae(J,fe,!0)}function Z($e){$e.refCount=void 0}function Re($e,sn){var he=Se.getCurrentProgram(),ke=he&&he.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(sn)?Z:Ce;$e.forEach(ke)}function Ae($e,sn,he){var ke=$.get(sn);ke?(e.Debug.assert(!!he===!!ke.nonRecursive),ke.refCount++):$.set(sn,{watcher:Ge($e,sn,he),refCount:1,nonRecursive:he})}function We($e){if(!$e.refCount)return;if($e.refCount--,$e.refCount)return;for(var sn=$e.failedLookupLocations,he=!1,ke=0,G=sn;ke<G.length;ke++){var c=G[ke],O=Se.toPath(c),ee=S(c,O);if(ee){var Te=ee.dirPath,Ne=ne.get(O);Ne&&(Ne===1?ne.delete(O):(e.Debug.assert(Ne>1),ne.set(O,Ne-1))),Te===fe?he=!0:be(Te)}}he&&be(fe)}function be($e){var sn=$.get($e);sn.refCount--}function Ge($e,sn,he){return Se.watchDirectoryOfFailedLookupLocation($e,function(ke){var G=Se.toPath(ke);_e&&_e.addOrDeleteFileOrDirectory(ke,G),!H&&ce(G,sn===G)&&Se.onInvalidatedResolution()},he?0:1)}function x($e,sn){var he=$e.get(sn);he&&(he.forEach(We),$e.delete(sn))}function j($e){if(!e.fileExtensionIs($e,".json"))return;var sn=Se.getCurrentProgram();if(!sn)return;var he=sn.getResolvedProjectReferenceByPath($e);if(!he)return;he.commandLine.fileNames.forEach(function(ke){return Oe(Se.toPath(ke))})}function Oe($e){x(re,$e),x(P,$e)}function a($e,sn,he){var ke=e.createMap();$e.forEach(function(G,c){var O=e.getDirectoryPath(c),ee=ke.get(O);ee||(ee=e.createMap(),ke.set(O,ee)),G.forEach(function(Te,Ne){if(ee.has(Ne))return;ee.set(Ne,!0),!Te.isInvalidated&&sn(Te,he)&&(Te.isInvalidated=!0,(ie||(ie=e.createMap())).set(c,!0),c.endsWith(e.inferredTypesContainingFile)&&Se.onChangedAutomaticTypeDirectiveNames())})})}function en(){var $e=Se.maxNumberOfFilesToIterateForInvalidation||e.maxNumberOfFilesToIterateForInvalidation;return re.size>$e||P.size>$e}function Pn($e){if(en()){H=!0;return}a(re,$e,K),a(P,$e,z)}function Xn($e){Oe($e),Pn(function(sn,he){var ke=he(sn);return!!ke&&Se.toPath(ke.resolvedFileName)===$e})}function ae($e){e.Debug.assert(d===$e||d===void 0),d=$e}function ce($e,sn){var he;if(sn)he=function(ee){return Ee($e,Se.toPath(ee))};else{if(o($e))return!1;if(Se.fileIsOpen($e))return!1;var ke=e.getDirectoryPath($e);if(pe($e)||X($e)||pe(ke)||X(ke))he=function(ee){var Te=Se.toPath(ee);return Te===$e||e.startsWith(Se.toPath(ee),$e)};else{if(!U($e)&&!ne.has($e))return!1;if(e.isEmittedFileOfProgram(Se.getCurrentProgram(),$e))return!1;he=function(ee){return Se.toPath(ee)===$e}}}var G=function(ee){return e.some(ee.failedLookupLocations,he)},c=ie&&ie.size;return Pn(G),H||ie&&ie.size!==c}function Le(){e.clearMap(R,e.closeFileWatcher)}function Je($e,sn){if(H)return;if(Ee(fe,sn))return fe;var he=v($e,sn);return he&&$.has(he.dirPath)?he.dirPath:void 0}function Ze($e,sn){return Se.watchTypeRootsDirectory(sn,function(he){var ke=Se.toPath(he);_e&&_e.addOrDeleteFileOrDirectory(he,ke),Se.onChangedAutomaticTypeDirectiveNames();var G=Je(sn,$e);G&&ce(ke,G===ke)&&Se.onInvalidatedResolution()},1)}function Ue(){var $e=Se.getCompilationSettings();if($e.types){Le();return}var sn=e.getEffectiveTypeRoots($e,{directoryExists:cn,getCurrentDirectory:I});sn?e.mutateMap(R,e.arrayToMap(sn,function(he){return Se.toPath(he)}),{createNewValue:Ze,onDeleteValue:e.closeFileWatcher}):Le()}function cn($e){var sn=e.getDirectoryPath(e.getDirectoryPath($e)),he=Se.toPath(sn);return he===fe||F(he)}}e.createResolutionCache=qe})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe;(function(V){V[V.Relative=0]="Relative",V[V.NonRelative=1]="NonRelative",V[V.Auto=2]="Auto"})(qe||(qe={}));var Se;(function(V){V[V.Minimal=0]="Minimal",V[V.Index=1]="Index",V[V.JsExtension=2]="JsExtension"})(Se||(Se={}));function Fe(V,m,y){var L=V.importModuleSpecifierPreference,C=V.importModuleSpecifierEnding;return{relativePreference:L==="relative"?0:L==="non-relative"?1:2,ending:_()};function _(){switch(C){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return se(y)?2:e.getEmitModuleResolutionKind(m)!==e.ModuleResolutionKind.NodeJs?1:0}}}function He(V,m){return{relativePreference:e.isExternalModuleNameRelative(m)?0:1,ending:e.hasJSOrJsonFileExtension(m)?2:e.getEmitModuleResolutionKind(V)!==e.ModuleResolutionKind.NodeJs||e.endsWith(m,"index")?1:0}}function ve(V,m,y,L,C,_,b){var D=H(V,m,y,L,C,_,He(V,b));return D===b?void 0:D}F.updateModuleSpecifier=ve;function ie(V,m,y,L,C,_,b,D){return b===void 0&&(b={}),H(V,y,L,C,_,D,Fe(b,V,m))}F.getModuleSpecifier=ie;function d(V,m,y,L,C,_){var b=I(m,L),D=P(C,m,y,b.getCanonicalFileName,L,_);return e.firstDefined(D,function(T){return $(T,b,L,V,!0)})}F.getNodeModulesPackageName=d;function H(V,m,y,L,C,_,b){var D=I(m,L),T=P(C,m,y,D.getCanonicalFileName,L,_);return e.firstDefined(T,function(Q){return $(Q,D,L,V)})||_e(y,D,V,b)}function Pe(V,m,y,L,C,_,b){var D=h(V);if(D)return[D];var T=I(y.path,L),Q=e.getSourceFileOfNode(V.valueDeclaration||e.getNonAugmentationDeclaration(V)),N=P(C,y.path,Q.originalFileName,T.getCanonicalFileName,L,b),X=Fe(_,m,y),pe=e.mapDefined(N,function(S){return $(S,T,L,m)});return pe.length?pe:N.map(function(S){return _e(S,T,m,X)})}F.getModuleSpecifiers=Pe;function I(V,m){var y=e.createGetCanonicalFileName(m.useCaseSensitiveFileNames?m.useCaseSensitiveFileNames():!0),L=e.getDirectoryPath(V);return{getCanonicalFileName:y,sourceDirectory:L}}function _e(V,m,y,L){var C=m.getCanonicalFileName,_=m.sourceDirectory,b=L.ending,D=L.relativePreference,T=y.baseUrl,Q=y.paths,N=y.rootDirs,X=N&&ne(N,V,_,C,b,y)||K(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(_,V,C)),b,y);if(!T||D===0)return X;var pe=Ee(V,T,C);if(!pe)return X;var S=K(pe,b,y),v=Q&&Y(e.removeFileExtension(pe),S,Q),U=v===void 0?S:v;return D===1?U:(D!==2&&e.Debug.assertNever(D),B(U)||re(X)<re(U)?X:U)}function re(V){for(var m=0,y=e.startsWith(V,"./")?2:0;y<V.length;y++)V.charCodeAt(y)===47&&m++;return m}F.countPathComponents=re;function se(V){var m=V.imports;return e.firstDefined(m,function(y){var L=y.text;return e.pathIsRelative(L)?e.hasJSOrJsonFileExtension(L):void 0})||!1}function w(V){var m=V.match(/\//g);return m?m.length:0}function k(V,m){return e.compareValues(w(V),w(m))}function P(V,m,y,L,C,_){var b=_.get(y),D=b?Or(b,[y]):[y],T=C.getCurrentDirectory?C.getCurrentDirectory():"",Q=D.map(function(Ae){return e.getNormalizedAbsolutePath(Ae,T)}),N=C.getProbableSymlinks?C.getProbableSymlinks(V):e.discoverProbableSymlinks(V,L,T),X=[],pe=!C.useCaseSensitiveFileNames||C.useCaseSensitiveFileNames()?e.compareStringsCaseSensitive:e.compareStringsCaseInsensitive;if(N.forEach(function(Ae,We){if(e.startsWithDirectory(m,Ae,L))return;var be=e.find(Q,function(j){return pe(j.slice(0,Ae.length+1),Ae+"/")===0});if(be===void 0)return;var Ge=e.getRelativePathFromDirectory(Ae,be,L),x=e.resolvePath(We,Ge);(!C.fileExists||C.fileExists(x))&&X.push(x)}),X.push.apply(X,Q),X.length<2)return X;for(var S=e.arrayToMap(X,e.identity,L),v=[],U=function(We){var be=e.ensureTrailingDirectorySeparator(We),Ge;S.forEach(function(j,Oe){e.startsWith(j,be)&&((Ge||(Ge=[])).push(Oe),S.delete(Oe))}),Ge&&(Ge.length>1&&Ge.sort(k),v.push.apply(v,Ge));var x=e.getDirectoryPath(We);if(x===We)return de=We,"break";We=x,de=We},de,Ce=e.getDirectoryPath(e.toPath(m,T,L));S.size!==0;){var Z=U(Ce);if(Ce=de,Z==="break")break}if(S.size){var Re=e.arrayFrom(S.values());Re.length>1&&Re.sort(k),v.push.apply(v,Re)}return v}function h(V){var m=e.find(V.declarations,function(y){return e.isNonGlobalAmbientModule(y)&&(!e.isExternalModuleAugmentation(y)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(y.name)))});if(m)return m.name.text}function Y(V,m,y){for(var L in y)for(var C=0,_=y[L];C<_.length;C++){var b=_[C],D=e.removeFileExtension(e.normalizePath(b)),T=D.indexOf("*");if(T!==-1){var Q=D.substr(0,T),N=D.substr(T+1);if(m.length>=Q.length+N.length&&e.startsWith(m,Q)&&e.endsWith(m,N)||!N&&m===e.removeTrailingDirectorySeparator(Q)){var X=m.substr(Q.length,m.length-N.length);return L.replace("*",X)}}else if(D===m||D===V)return L}}function ne(V,m,y,L,C,_){var b=R(m,V,L);if(b===void 0)return;var D=R(y,V,L),T=D!==void 0?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(D,b,L)):b;return e.getEmitModuleResolutionKind(_)===e.ModuleResolutionKind.NodeJs?K(T,C,_):e.removeFileExtension(T)}function $(V,m,y,L,C){var _=m.getCanonicalFileName,b=m.sourceDirectory;if(!y.fileExists||!y.readFile)return;var D=fe(V);if(!D)return;var T,Q=V.substring(0,D.packageRootIndex);if(!C){var N=e.combinePaths(Q,"package.json");T=y.fileExists(N)?JSON.parse(y.readFile(N)):void 0;var X=T&&T.typesVersions?e.getPackageJsonTypesVersionsPaths(T.typesVersions):void 0;if(X){var pe=V.slice(D.packageRootIndex+1),S=Y(e.removeFileExtension(pe),K(pe,0,L),X.paths);S!==void 0&&(V=e.combinePaths(V.slice(0,D.packageRootIndex),S))}}var v=C?V:Re(V),U=y.getGlobalTypingsCacheLocation&&y.getGlobalTypingsCacheLocation(),de=_(v.substring(0,D.topLevelNodeModulesIndex));if(!(e.startsWith(b,de)||U&&e.startsWith(_(U),de)))return;var Ce=v.substring(D.topLevelPackageNameIndex+1),Z=e.getPackageNameFromTypesPackageName(Ce);return e.getEmitModuleResolutionKind(L)!==e.ModuleResolutionKind.NodeJs&&Z===Ce?void 0:Z;function Re(Ae){if(T){var We=T.typings||T.types||T.main;if(We){var be=e.toPath(We,Q,_);if(e.removeFileExtension(be)===e.removeFileExtension(_(Ae)))return Q}}var Ge=e.removeFileExtension(Ae);return _(Ge.substring(D.fileNameIndex))==="/index"&&!J(y,Ge.substring(0,D.fileNameIndex))?Ge.substring(0,D.fileNameIndex):Ge}}function J(V,m){if(!V.fileExists)return;for(var y=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),L=0,C=y;L<C.length;L++){var _=C[L],b=m+_;if(V.fileExists(b))return b}}function fe(V){var m=0,y=0,L=0,C=0,_;(function(Q){Q[Q.BeforeNodeModules=0]="BeforeNodeModules",Q[Q.NodeModules=1]="NodeModules",Q[Q.Scope=2]="Scope",Q[Q.PackageContent=3]="PackageContent"})(_||(_={}));for(var b=0,D=0,T=0;D>=0;){b=D,D=V.indexOf("/",b+1);switch(T){case 0:V.indexOf(e.nodeModulesPathPart,b)===b&&(m=b,y=D,T=1);break;case 1:case 2:T===1&&V.charAt(b+1)==="@"?T=2:(L=D,T=3);break;case 3:V.indexOf(e.nodeModulesPathPart,b)===b?T=1:T=3;break}}return C=b,T>1?{topLevelNodeModulesIndex:m,topLevelPackageNameIndex:y,packageRootIndex:L,fileNameIndex:C}:void 0}function R(V,m,y){return e.firstDefined(m,function(L){var C=Ee(V,L,y);return B(C)?void 0:C})}function K(V,m,y){if(e.fileExtensionIs(V,".json"))return V;var L=e.removeFileExtension(V);switch(m){case 0:return e.removeSuffix(L,"/index");case 1:return L;case 2:return L+z(V,y);default:return e.Debug.assertNever(m)}}function z(V,m){var y=e.extensionFromPath(V);switch(y){case".ts":case".d.ts":return".js";case".tsx":return m.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return y;case".tsbuildinfo":return e.Debug.fail("Extension .tsbuildinfo is unsupported:: FileName:: "+V);default:return e.Debug.assertNever(y)}}function Ee(V,m,y){var L=e.getRelativePathToDirectoryOrUrl(m,V,m,y,!1);return e.isRootedDiskPath(L)?void 0:L}function B(V){return e.startsWith(V,"..")}})(o=e.moduleSpecifiers||(e.moduleSpecifiers={}))})(ln||(ln={}));var ln;(function(e){var o=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function F(R,K){var z=R===e.sys?o:{getCurrentDirectory:function(){return R.getCurrentDirectory()},getNewLine:function(){return R.newLine},getCanonicalFileName:e.createGetCanonicalFileName(R.useCaseSensitiveFileNames)};if(!K)return function(B){return R.write(e.formatDiagnostic(B,z))};var Ee=new Array(1);return function(B){Ee[0]=B,R.write(e.formatDiagnosticsWithColorAndContext(Ee,z)+z.getNewLine()),Ee[0]=void 0}}e.createDiagnosticReporter=F;function qe(R,K,z){return R.clearScreen&&!z.preserveWatchOutput&&!z.extendedDiagnostics&&!z.diagnostics&&e.contains(e.screenStartingMessageCodes,K.code)?(R.clearScreen(),!0):!1}e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code];function Se(R,K){return e.contains(e.screenStartingMessageCodes,R.code)?K+K:K}function Fe(R){return R.now?R.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):new Date().toLocaleTimeString()}e.getLocaleTimeString=Fe;function He(R,K){return K?function(z,Ee,B){qe(R,z,B);var V="["+e.formatColorAndReset(Fe(R),e.ForegroundColorEscapeSequences.Grey)+"] ";V+=""+e.flattenDiagnosticMessageText(z.messageText,R.newLine)+(Ee+Ee),R.write(V)}:function(z,Ee,B){var V="";qe(R,z,B)||(V+=Ee),V+=Fe(R)+" - ",V+=""+e.flattenDiagnosticMessageText(z.messageText,R.newLine)+Se(z,Ee),R.write(V)}}e.createWatchStatusReporter=He;function ve(R,K,z,Ee){var B=z;B.onUnRecoverableConfigFileDiagnostic=function(m){return ne(z,Ee,m)};var V=e.getParsedCommandLineOfConfigFile(R,K,B);return B.onUnRecoverableConfigFileDiagnostic=void 0,V}e.parseConfigFileWithSystem=ve;function ie(R){return e.countWhere(R,function(K){return K.category===e.DiagnosticCategory.Error})}e.getErrorCountForSummary=ie;function d(R){return R===1?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}e.getWatchErrorSummaryDiagnosticMessage=d;function H(R,K){if(R===0)return"";var z=e.createCompilerDiagnostic(R===1?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,R);return""+K+e.flattenDiagnosticMessageText(z.messageText,K)+K+K}e.getErrorSummaryText=H;function Pe(R,K){(R.getCompilerOptions().listFiles||R.getCompilerOptions().listFilesOnly)&&e.forEach(R.getSourceFiles(),function(z){K(z.fileName)})}e.listFiles=Pe;function I(R,K,z,Ee,B,V,m,y){var L=!!R.getCompilerOptions().listFilesOnly,C=R.getConfigFileParsingDiagnostics().slice(),_=C.length;e.addRange(C,R.getSyntacticDiagnostics(void 0,V)),C.length===_&&(e.addRange(C,R.getOptionsDiagnostics(V)),L||(e.addRange(C,R.getGlobalDiagnostics(V)),C.length===_&&e.addRange(C,R.getSemanticDiagnostics(void 0,V))));var b=L?{emitSkipped:!0,diagnostics:e.emptyArray}:R.emit(void 0,B,V,m,y),D=b.emittedFiles,T=b.diagnostics;if(e.addRange(C,T),e.sortAndDeduplicateDiagnostics(C).forEach(K),z){var Q=R.getCurrentDirectory();e.forEach(D,function(N){var X=e.getNormalizedAbsolutePath(N,Q);z("TSFILE: "+X)}),Pe(R,z)}return Ee&&Ee(ie(C)),{emitResult:b,diagnostics:C}}e.emitFilesAndReportErrors=I;function _e(R,K,z,Ee,B,V,m,y){var L=I(R,K,z,Ee,B,V,m,y),C=L.emitResult,_=L.diagnostics;return C.emitSkipped&&_.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:_.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.emitFilesAndReportErrorsAndGetExitStatus=_e,e.noopFileWatcher={close:e.noop};function re(R,K){R===void 0&&(R=e.sys);var z=K||He(R);return{onWatchStatusChange:z,watchFile:e.maybeBind(R,R.watchFile)||function(){return e.noopFileWatcher},watchDirectory:e.maybeBind(R,R.watchDirectory)||function(){return e.noopFileWatcher},setTimeout:e.maybeBind(R,R.setTimeout)||e.noop,clearTimeout:e.maybeBind(R,R.clearTimeout)||e.noop}}e.createWatchHost=re;var se;(function(R){R.ConfigFile="Config file",R.SourceFile="Source file",R.MissingFile="Missing file",R.WildcardDirectory="Wild card directory",R.FailedLookupLocations="Failed Lookup Locations",R.TypeRoots="Type roots"})(se=e.WatchType||(e.WatchType={}));function w(R,K){var z=R.trace?K.extendedDiagnostics?e.WatchLogLevel.Verbose:K.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,Ee=z!==e.WatchLogLevel.None?function(V){return R.trace(V)}:e.noop,B=e.getWatchFactory(z,Ee);return B.writeLog=Ee,B}e.createWatchFactory=w;function k(R,K,z){z===void 0&&(z=R);var Ee=R.useCaseSensitiveFileNames(),B=e.memoize(function(){return R.getNewLine()});return{getSourceFile:function(L,C,_){var b;try{e.performance.mark("beforeIORead"),b=R.readFile(L,K().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(D){_&&_(D.message),b=""}return b!==void 0?e.createSourceFile(L,b,C):void 0},getDefaultLibLocation:e.maybeBind(R,R.getDefaultLibLocation),getDefaultLibFileName:function(L){return R.getDefaultLibFileName(L)},writeFile:m,getCurrentDirectory:e.memoize(function(){return R.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return Ee},getCanonicalFileName:e.createGetCanonicalFileName(Ee),getNewLine:function(){return e.getNewLineCharacter(K(),B)},fileExists:function(L){return R.fileExists(L)},readFile:function(L){return R.readFile(L)},trace:e.maybeBind(R,R.trace),directoryExists:e.maybeBind(z,z.directoryExists),getDirectories:e.maybeBind(z,z.getDirectories),realpath:e.maybeBind(R,R.realpath),getEnvironmentVariable:e.maybeBind(R,R.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(R,R.createHash),readDirectory:e.maybeBind(R,R.readDirectory)};function V(y){if(y.length>e.getRootLength(y)&&!R.directoryExists(y)){var L=e.getDirectoryPath(y);V(L),R.createDirectory&&R.createDirectory(y)}}function m(y,L,C,_){try{e.performance.mark("beforeIOWrite"),V(e.getDirectoryPath(e.normalizePath(y))),R.writeFile(y,L,C),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(b){_&&_(b.message)}}}e.createCompilerHostFromProgramHost=k;function P(R,K){var z=R.getSourceFile,Ee=K.createHash||e.generateDjb2Hash;R.getSourceFile=function(){for(var B=[],V=0;V<arguments.length;V++)B[V]=arguments[V];var m=z.call.apply(z,Or([R],B));return m&&(m.version=Ee.call(K,m.text)),m}}e.setGetSourceFileAsHashVersioned=P;function h(R,K){var z=e.memoize(function(){return e.getDirectoryPath(e.normalizePath(R.getExecutingFilePath()))}),Ee=R;return{useCaseSensitiveFileNames:function(){return R.useCaseSensitiveFileNames},getNewLine:function(){return R.newLine},getCurrentDirectory:e.memoize(function(){return R.getCurrentDirectory()}),getDefaultLibLocation:z,getDefaultLibFileName:function(V){return e.combinePaths(z(),e.getDefaultLibFileName(V))},fileExists:function(V){return R.fileExists(V)},readFile:function(V,m){return R.readFile(V,m)},directoryExists:function(V){return R.directoryExists(V)},getDirectories:function(V){return R.getDirectories(V)},readDirectory:function(V,m,y,L,C){return R.readDirectory(V,m,y,L,C)},realpath:e.maybeBind(R,R.realpath),getEnvironmentVariable:e.maybeBind(R,R.getEnvironmentVariable),trace:function(V){return R.write(V+R.newLine)},createDirectory:function(V){return R.createDirectory(V)},writeFile:function(V,m,y){return R.writeFile(V,m,y)},onCachedDirectoryStructureHostCreate:function(V){return Ee=V||R},createHash:e.maybeBind(R,R.createHash),createProgram:K||e.createEmitAndSemanticDiagnosticsBuilderProgram}}e.createProgramHost=h;function Y(R,K,z,Ee){R===void 0&&(R=e.sys);var B=function(y){return R.write(y+R.newLine)},V=h(R,K);return e.copyProperties(V,re(R,Ee)),V.afterProgramCreate=function(m){var y=m.getCompilerOptions(),L=e.getNewLineCharacter(y,function(){return R.newLine});I(m,z,B,function(C){return V.onWatchStatusChange(e.createCompilerDiagnostic(d(C),C),L,y,C)})},V}function ne(R,K,z){K(z),R.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}function $(R,K,z,Ee,B,V){var m=B||F(z),y=Y(z,Ee,m,V);return y.onUnRecoverableConfigFileDiagnostic=function(L){return ne(z,m,L)},y.configFileName=R,y.optionsToExtend=K,y}e.createWatchCompilerHostOfConfigFile=$;function J(R,K,z,Ee,B,V,m){var y=Y(z,Ee,B||F(z),V);return y.rootFiles=R,y.options=K,y.projectReferences=m,y}e.createWatchCompilerHostOfFilesAndCompilerOptions=J;function fe(R){var K=R.system||e.sys,z=R.host||(R.host=e.createIncrementalCompilerHost(R.options,K)),Ee=e.createIncrementalProgram(R),B=_e(Ee,R.reportDiagnostic||F(K),function(V){return z.trace&&z.trace(V)},R.reportErrorSummary||R.options.pretty?function(V){return K.write(H(V,K.newLine))}:void 0);return R.afterProgramEmitAndDiagnostics&&R.afterProgramEmitAndDiagnostics(Ee),B}e.performIncrementalCompilation=fe})(ln||(ln={})),function(e){function o(He,ve){if(He.out||He.outFile)return;var ie=e.getTsBuildInfoEmitOutputFilePath(He);if(!ie)return;var d=ve.readFile(ie);if(!d)return;var H=e.getBuildInfo(d);return H.version!==e.version?void 0:H.program?e.createBuildProgramUsingProgramBuildInfo(H.program,ie,ve):void 0}e.readBuilderProgram=o;function F(He,ve){ve===void 0&&(ve=e.sys);var ie=e.createCompilerHostWorker(He,void 0,ve);return ie.createHash=e.maybeBind(ve,ve.createHash),e.setGetSourceFileAsHashVersioned(ie,ve),e.changeCompilerHostLikeToUseCache(ie,function(d){return e.toPath(d,ie.getCurrentDirectory(),ie.getCanonicalFileName)}),ie}e.createIncrementalCompilerHost=F;function qe(He){var ve=He.rootNames,ie=He.options,d=He.configFileParsingDiagnostics,H=He.projectReferences,Pe=He.host,I=He.createProgram;Pe=Pe||F(ie),I=I||e.createEmitAndSemanticDiagnosticsBuilderProgram;var _e=o(ie,Pe);return I(ve,ie,Pe,_e,d,H)}e.createIncrementalProgram=qe;function Se(He,ve,ie,d,H,Pe,I){return e.isArray(He)?e.createWatchCompilerHostOfFilesAndCompilerOptions(He,ve,ie,d,H,Pe,I):e.createWatchCompilerHostOfConfigFile(He,ve,ie,d,H,Pe)}e.createWatchCompilerHost=Se;function Fe(He){var ve,ie,d,H,Pe,I=e.createMap(),_e,re=!1,se=!1,w=He.useCaseSensitiveFileNames(),k=He.getCurrentDirectory(),P=He.configFileName,h=He.optionsToExtend,Y=h===void 0?{}:h,ne=He.createProgram,$=He.rootFiles,J=He.options,fe=He.projectReferences,R,K,z=!1,Ee=!1,B=P===void 0?void 0:e.createCachedDirectoryStructureHost(He,k,w);B&&He.onCachedDirectoryStructureHostCreate&&He.onCachedDirectoryStructureHostCreate(B);var V=B||He,m=e.parseConfigHostFromCompilerHostLike(He,V),y=Ae();P&&He.configFileParsingResult&&(Ue(He.configFileParsingResult),y=Ae()),Pn(e.Diagnostics.Starting_compilation_in_watch_mode),P&&!He.configFileParsingResult&&(y=e.getNewLineCharacter(Y,function(){return He.getNewLine()}),e.Debug.assert(!$),Ze(),y=Ae());var L=e.createWatchFactory(He,J),C=L.watchFile,_=L.watchFilePath,b=L.watchDirectory,D=L.writeLog,T=e.createGetCanonicalFileName(w);D("Current directory: "+k+" CaseSensitiveFileNames: "+w);var Q;P&&(Q=C(He,P,ae,e.PollingInterval.High,"Config file"));var N=e.createCompilerHostFromProgramHost(He,function(){return J},V);e.setGetSourceFileAsHashVersioned(N,He);var X=N.getSourceFile;N.getSourceFile=function(c){for(var O=[],ee=1;ee<arguments.length;ee++)O[ee-1]=arguments[ee];return j.apply(void 0,Or([c,We(c)],O))},N.getSourceFileByPath=j,N.getNewLine=function(){return y},N.fileExists=x,N.onReleaseOldSourceFile=en,N.toPath=We,N.getCompilationSettings=function(){return J},N.watchDirectoryOfFailedLookupLocation=function(c,O,ee){return b(He,c,O,ee,"Failed Lookup Locations")},N.watchTypeRootsDirectory=function(c,O,ee){return b(He,c,O,ee,"Type roots")},N.getCachedDirectoryStructureHost=function(){return B},N.onInvalidatedResolution=Xn,N.onChangedAutomaticTypeDirectiveNames=function(){se=!0,Xn()},N.fileIsOpen=e.returnFalse,N.maxNumberOfFilesToIterateForInvalidation=He.maxNumberOfFilesToIterateForInvalidation,N.getCurrentProgram=de,N.writeLog=D;var pe=e.createResolutionCache(N,P?e.getDirectoryPath(e.getNormalizedAbsolutePath(P,k)):k,!1);N.resolveModuleNames=He.resolveModuleNames?function(){for(var c=[],O=0;O<arguments.length;O++)c[O]=arguments[O];return He.resolveModuleNames.apply(He,c)}:function(c,O,ee,Te){return pe.resolveModuleNames(c,O,ee,Te)},N.resolveTypeReferenceDirectives=He.resolveTypeReferenceDirectives?function(){for(var c=[],O=0;O<arguments.length;O++)c[O]=arguments[O];return He.resolveTypeReferenceDirectives.apply(He,c)}:function(c,O,ee){return pe.resolveTypeReferenceDirectives(c,O,ee)};var S=!!He.resolveModuleNames||!!He.resolveTypeReferenceDirectives;return ve=o(J,N),Ce(),ke(),P?{getCurrentProgram:U,getProgram:Ce,close:v}:{getCurrentProgram:U,getProgram:Ce,updateRootFileNames:Re,close:v};function v(){pe.clear(),e.clearMap(I,function(c){c&&c.fileWatcher&&(c.fileWatcher.close(),c.fileWatcher=void 0)}),Q&&(Q.close(),Q=void 0),H&&(e.clearMap(H,e.closeFileWatcherOf),H=void 0),d&&(e.clearMap(d,e.closeFileWatcher),d=void 0)}function U(){return ve}function de(){return ve&&ve.getProgramOrUndefined()}function Ce(){D("Synchronizing program");var c=U();re&&(y=Ae(),c&&e.changesAffectModuleResolution(c.getCompilerOptions(),J)&&pe.clear());var O=pe.createHasInvalidatedResolution(S);return e.isProgramUptoDate(de(),$,J,a,x,O,se,fe)?Ee&&(ve=ne(void 0,void 0,N,ve,K,fe),Ee=!1):Z(O),He.afterProgramCreate&&He.afterProgramCreate(ve),ve}function Z(c){D("CreatingProgramWith::"),D(" roots: "+JSON.stringify($)),D(" options: "+JSON.stringify(J));var O=re||!de();if(re=!1,Ee=!1,pe.startCachingPerDirectoryResolution(),N.hasInvalidatedResolution=c,N.hasChangedAutomaticTypeDirectiveNames=se,ve=ne($,J,N,ve,K,fe),pe.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(ve.getProgram(),d||(d=e.createMap()),sn),O&&pe.updateTypeRootsWatch(),_e){for(var ee=0,Te=_e;ee<Te.length;ee++){var Ne=Te[ee];d.has(Ne)||I.delete(Ne)}_e=void 0}}function Re(c){e.Debug.assert(!P,"Cannot update root file names with config file watch mode"),$=c,Xn()}function Ae(){return e.getNewLineCharacter(J||Y,function(){return He.getNewLine()})}function We(c){return e.toPath(c,k,T)}function be(c){return typeof c=="boolean"}function Ge(c){return typeof c.version=="boolean"}function x(c){var O=We(c);return be(I.get(O))?!0:V.fileExists(c)}function j(c,O,ee,Te,Ne){var ze=I.get(O);if(be(ze))return;if(ze===void 0||Ne||Ge(ze)){var bn=X(c,ee,Te);if(ze)bn?(ze.sourceFile=bn,ze.version=bn.version,ze.fileWatcher||(ze.fileWatcher=_(He,c,cn,e.PollingInterval.Low,O,"Source file"))):(ze.fileWatcher&&ze.fileWatcher.close(),I.set(O,!1));else if(bn){var Sn=_(He,c,cn,e.PollingInterval.Low,O,"Source file");I.set(O,{sourceFile:bn,version:bn.version,fileWatcher:Sn})}else I.set(O,!1);return bn}return ze.sourceFile}function Oe(c){var O=I.get(c);O!==void 0&&(be(O)?I.set(c,{version:!1}):O.version=!1)}function a(c){var O=I.get(c);return!O||!O.version?void 0:O.version}function en(c,O,ee){var Te=I.get(c.resolvedPath);Te!==void 0&&(be(Te)?(_e||(_e=[])).push(c.path):Te.sourceFile===c&&(Te.fileWatcher&&Te.fileWatcher.close(),I.delete(c.resolvedPath),ee||pe.removeResolutionsOfFile(c.path)))}function Pn(c){He.onWatchStatusChange&&He.onWatchStatusChange(e.createCompilerDiagnostic(c),y,J||Y)}function Xn(){if(!He.setTimeout||!He.clearTimeout)return;Pe&&He.clearTimeout(Pe),D("Scheduling update"),Pe=He.setTimeout(ce,250)}function ae(){e.Debug.assert(!!P),ie=e.ConfigFileProgramReloadLevel.Full,Xn()}function ce(){Pe=void 0,Pn(e.Diagnostics.File_change_detected_Starting_incremental_compilation);switch(ie){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),Le();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),Je();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),Ce();break}e.perfLogger.logStopUpdateProgram("Done")}function Le(){D("Reloading new file names and options");var c=e.getFileNamesFromConfigSpecs(R,e.getDirectoryPath(P),J,m);e.updateErrorForNoInputFiles(c,P,R,K,z)&&(Ee=!0),$=c.fileNames,Ce()}function Je(){D("Reloading config file: "+P),ie=e.ConfigFileProgramReloadLevel.None,B&&B.clearCache(),Ze(),re=!0,Ce(),ke()}function Ze(){Ue(e.getParsedCommandLineOfConfigFile(P,Y,m))}function Ue(c){$=c.fileNames,J=c.options,R=c.configFileSpecs,fe=c.projectReferences,K=e.getConfigFileParsingDiagnostics(c).slice(),z=e.canJsonReportNoInutFiles(c.raw),Ee=!0}function cn(c,O,ee){$e(c,ee,O),O===e.FileWatcherEventKind.Deleted&&I.has(ee)&&pe.invalidateResolutionOfFile(ee),pe.removeResolutionsFromProjectReferenceRedirects(ee),Oe(ee),Xn()}function $e(c,O,ee){B&&B.addOrDeleteFile(c,O,ee)}function sn(c){return _(He,c,he,e.PollingInterval.Medium,c,"Missing file")}function he(c,O,ee){$e(c,ee,O),O===e.FileWatcherEventKind.Created&&d.has(ee)&&(d.get(ee).close(),d.delete(ee),Oe(ee),Xn())}function ke(){R?e.updateWatchingWildcardDirectories(H||(H=e.createMap()),e.createMapFromTemplate(R.wildcardDirectories),G):H&&e.clearMap(H,e.closeFileWatcherOf)}function G(c,O){return b(He,c,function(ee){e.Debug.assert(!!P);var Te=We(ee);if(B&&B.addOrDeleteFileOrDirectory(ee,Te),Oe(Te),e.isPathIgnored(Te))return;if(Te!==c&&e.hasExtension(Te)&&!e.isSupportedSourceFileName(ee,J)){D("Project: "+P+" Detected file add/remove of non supported extension: "+ee);return}ie!==e.ConfigFileProgramReloadLevel.Full&&(ie=e.ConfigFileProgramReloadLevel.Partial,Xn())},O,"Wild card directory")}}e.createWatchProgram=Fe}(ln||(ln={}));var ln;(function(e){var o;(function(qe){qe[qe.Unbuildable=0]="Unbuildable",qe[qe.UpToDate=1]="UpToDate",qe[qe.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",qe[qe.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",qe[qe.OutputMissing=4]="OutputMissing",qe[qe.OutOfDateWithSelf=5]="OutOfDateWithSelf",qe[qe.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",qe[qe.UpstreamOutOfDate=7]="UpstreamOutOfDate",qe[qe.UpstreamBlocked=8]="UpstreamBlocked",qe[qe.ComputingUpstream=9]="ComputingUpstream",qe[qe.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",qe[qe.ContainerOnly=11]="ContainerOnly"})(o=e.UpToDateStatusType||(e.UpToDateStatusType={}));function F(qe){return e.fileExtensionIs(qe,".json")?qe:e.combinePaths(qe,"tsconfig.json")}e.resolveConfigFileProjectName=F})(ln||(ln={})),function(e){var o=new Date(-864e13),F=new Date(864e13),qe;(function(c){c[c.None=0]="None",c[c.Success=1]="Success",c[c.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",c[c.ConfigFileErrors=4]="ConfigFileErrors",c[c.SyntaxErrors=8]="SyntaxErrors",c[c.TypeErrors=16]="TypeErrors",c[c.DeclarationEmitErrors=32]="DeclarationEmitErrors",c[c.EmitErrors=64]="EmitErrors",c[c.AnyErrors=124]="AnyErrors"})(qe||(qe={}));function Se(){return e.createMap()}function Fe(c,O,ee){var Te=c.get(O),Ne;return Te||(Ne=ee(),c.set(O,Ne)),Te||Ne}function He(c,O){return Fe(c,O,e.createMap)}function ve(c,O){return O>c?O:c}function ie(c){return e.fileExtensionIs(c,".d.ts")}function d(c){return!!c&&!!c.buildOrder}e.isCircularBuildOrder=d;function H(c){return d(c)?c.buildOrder:c}e.getBuildOrderFromAnyBuildOrder=H;function Pe(c,O){return function(ee){var Te=O?"["+e.formatColorAndReset(e.getLocaleTimeString(c),e.ForegroundColorEscapeSequences.Grey)+"] ":e.getLocaleTimeString(c)+" - ";Te+=""+e.flattenDiagnosticMessageText(ee.messageText,c.newLine)+(c.newLine+c.newLine),c.write(Te)}}e.createBuilderStatusReporter=Pe;function I(c,O,ee,Te){var Ne=e.createProgramHost(c,O);return Ne.getModifiedTime=c.getModifiedTime?function(ze){return c.getModifiedTime(ze)}:e.returnUndefined,Ne.setModifiedTime=c.setModifiedTime?function(ze,bn){return c.setModifiedTime(ze,bn)}:e.noop,Ne.deleteFile=c.deleteFile?function(ze){return c.deleteFile(ze)}:e.noop,Ne.reportDiagnostic=ee||e.createDiagnosticReporter(c),Ne.reportSolutionBuilderStatus=Te||Pe(c),Ne}function _e(c,O,ee,Te,Ne){c===void 0&&(c=e.sys);var ze=I(c,O,ee,Te);return ze.reportErrorSummary=Ne,ze}e.createSolutionBuilderHost=_e;function re(c,O,ee,Te,Ne){c===void 0&&(c=e.sys);var ze=I(c,O,ee,Te),bn=e.createWatchHost(c,Ne);return e.copyProperties(ze,bn),ze}e.createSolutionBuilderWithWatchHost=re;function se(c){var O={};return e.commonOptionsWithBuild.forEach(function(ee){e.hasProperty(c,ee.name)&&(O[ee.name]=c[ee.name])}),O}function w(c,O,ee){return ce(!1,c,O,ee)}e.createSolutionBuilder=w;function k(c,O,ee){return ce(!0,c,O,ee)}e.createSolutionBuilderWithWatch=k;function P(c,O,ee,Te){var Ne=O,ze=O,bn=Ne.getCurrentDirectory(),Sn=e.createGetCanonicalFileName(Ne.useCaseSensitiveFileNames()),Kn=se(Te),Xe=e.createCompilerHostFromProgramHost(Ne,function(){return un.projectCompilerOptions});e.setGetSourceFileAsHashVersioned(Xe,Ne),Xe.getParsedCommandLine=function(Mn){return $(un,Mn,Y(un,Mn))},Xe.resolveModuleNames=e.maybeBind(Ne,Ne.resolveModuleNames),Xe.resolveTypeReferenceDirectives=e.maybeBind(Ne,Ne.resolveTypeReferenceDirectives);var pn=Xe.resolveModuleNames?void 0:e.createModuleResolutionCache(bn,Sn);if(!Xe.resolveModuleNames){var le=function(tt,Vn,ut){return e.resolveModuleName(tt,Vn,un.projectCompilerOptions,Xe,pn,ut).resolvedModule};Xe.resolveModuleNames=function(Mn,tt,Vn,ut){return e.loadWithLocalCache(e.Debug.assertEachDefined(Mn),tt,ut,le)}}var oe=e.createWatchFactory(ze,Te),kn=oe.watchFile,yn=oe.watchFilePath,ye=oe.watchDirectory,mn=oe.writeLog,un={host:Ne,hostWithWatch:ze,currentDirectory:bn,getCanonicalFileName:Sn,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(Ne),writeFileName:Ne.trace?function(Mn){return Ne.trace(Mn)}:void 0,options:Te,baseCompilerOptions:Kn,rootNames:ee,resolvedConfigFilePaths:e.createMap(),configFileCache:Se(),projectStatus:Se(),buildInfoChecked:Se(),extendedConfigCache:e.createMap(),builderPrograms:Se(),diagnostics:Se(),projectPendingBuild:Se(),projectErrorsReported:Se(),compilerHost:Xe,moduleResolutionCache:pn,buildOrder:void 0,readFileWithCache:function(tt){return Ne.readFile(tt)},projectCompilerOptions:Kn,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:c,currentInvalidatedProject:void 0,watch:c,allWatchedWildcardDirectories:Se(),allWatchedInputFiles:Se(),allWatchedConfigFiles:Se(),timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:kn,watchFilePath:yn,watchDirectory:ye,writeLog:mn};return un}function h(c,O){return e.toPath(O,c.currentDirectory,c.getCanonicalFileName)}function Y(c,O){var ee=c.resolvedConfigFilePaths,Te=ee.get(O);if(Te!==void 0)return Te;var Ne=h(c,O);return ee.set(O,Ne),Ne}function ne(c){return!!c.options}function $(c,O,ee){var Te=c.configFileCache,Ne=Te.get(ee);if(Ne)return ne(Ne)?Ne:void 0;var ze,bn=c.parseConfigFileHost,Sn=c.baseCompilerOptions,Kn=c.extendedConfigCache,Xe=c.host,pn;return Xe.getParsedCommandLine?(pn=Xe.getParsedCommandLine(O),pn||(ze=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,O))):(bn.onUnRecoverableConfigFileDiagnostic=function(le){return ze=le},pn=e.getParsedCommandLineOfConfigFile(O,Sn,bn,Kn),bn.onUnRecoverableConfigFileDiagnostic=e.noop),Te.set(ee,pn||ze),pn}function J(c,O){return e.resolveConfigFileProjectName(e.resolvePath(c.currentDirectory,O))}function fe(c,O){for(var ee=e.createMap(),Te=e.createMap(),Ne=[],ze,bn,Sn=0,Kn=O;Sn<Kn.length;Sn++){var Xe=Kn[Sn];pn(Xe)}return bn?{buildOrder:ze||e.emptyArray,circularDiagnostics:bn}:ze||e.emptyArray;function pn(le,oe){var kn=Y(c,le);if(Te.has(kn))return;if(ee.has(kn)){oe||(bn||(bn=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,Ne.join(`\r
`)));return}ee.set(kn,!0),Ne.push(le);var yn=$(c,le,kn);if(yn&&yn.projectReferences)for(var ye=0,mn=yn.projectReferences;ye<mn.length;ye++){var un=mn[ye],Mn=J(c,un.path);pn(Mn,oe||un.circular)}Ne.pop(),Te.set(kn,!0),(ze||(ze=[])).push(le)}}function R(c){return c.buildOrder||K(c)}function K(c){var O=fe(c,c.rootNames.map(function(Ne){return J(c,Ne)}));c.resolvedConfigFilePaths.clear();var ee=e.arrayToSet(H(O),function(Ne){return Y(c,Ne)}),Te={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(c.configFileCache,ee,Te),e.mutateMapSkippingNewValues(c.projectStatus,ee,Te),e.mutateMapSkippingNewValues(c.buildInfoChecked,ee,Te),e.mutateMapSkippingNewValues(c.builderPrograms,ee,Te),e.mutateMapSkippingNewValues(c.diagnostics,ee,Te),e.mutateMapSkippingNewValues(c.projectPendingBuild,ee,Te),e.mutateMapSkippingNewValues(c.projectErrorsReported,ee,Te),c.watch&&(e.mutateMapSkippingNewValues(c.allWatchedConfigFiles,ee,{onDeleteValue:e.closeFileWatcher}),e.mutateMapSkippingNewValues(c.allWatchedWildcardDirectories,ee,{onDeleteValue:function(ze){return ze.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(c.allWatchedInputFiles,ee,{onDeleteValue:function(ze){return ze.forEach(e.closeFileWatcher)}})),c.buildOrder=O}function z(c,O,ee){var Te=O&&J(c,O),Ne=R(c);if(d(Ne))return Ne;if(Te){var ze=Y(c,Te),bn=e.findIndex(Ne,function(Kn){return Y(c,Kn)===ze});if(bn===-1)return}var Sn=Te?fe(c,[Te]):Ne;return e.Debug.assert(!d(Sn)),e.Debug.assert(!ee||Te!==void 0),e.Debug.assert(!ee||Sn[Sn.length-1]===Te),ee?Sn.slice(0,Sn.length-1):Sn}function Ee(c){c.cache&&B(c);var O=c.compilerHost,ee=c.host,Te=c.readFileWithCache,Ne=O.getSourceFile,ze=e.changeCompilerHostLikeToUseCache(ee,function(kn){return h(c,kn)},function(){for(var kn=[],yn=0;yn<arguments.length;yn++)kn[yn]=arguments[yn];return Ne.call.apply(Ne,Or([O],kn))}),bn=ze.originalReadFile,Sn=ze.originalFileExists,Kn=ze.originalDirectoryExists,Xe=ze.originalCreateDirectory,pn=ze.originalWriteFile,le=ze.getSourceFileWithCache,oe=ze.readFileWithCache;c.readFileWithCache=oe,O.getSourceFile=le,c.cache={originalReadFile:bn,originalFileExists:Sn,originalDirectoryExists:Kn,originalCreateDirectory:Xe,originalWriteFile:pn,originalReadFileWithCache:Te,originalGetSourceFile:Ne}}function B(c){if(!c.cache)return;var O=c.cache,ee=c.host,Te=c.compilerHost,Ne=c.extendedConfigCache,ze=c.moduleResolutionCache;ee.readFile=O.originalReadFile,ee.fileExists=O.originalFileExists,ee.directoryExists=O.originalDirectoryExists,ee.createDirectory=O.originalCreateDirectory,ee.writeFile=O.originalWriteFile,Te.getSourceFile=O.originalGetSourceFile,c.readFileWithCache=O.originalReadFileWithCache,Ne.clear(),ze&&(ze.directoryToModuleNameMap.clear(),ze.moduleNameToDirectoryMap.clear()),c.cache=void 0}function V(c,O){c.projectStatus.delete(O),c.diagnostics.delete(O)}function m(c,O,ee){var Te=c.projectPendingBuild,Ne=Te.get(O);(Ne===void 0||Ne<ee)&&Te.set(O,ee)}function y(c,O){if(!c.allProjectBuildPending)return;c.allProjectBuildPending=!1,c.options.watch&&Ze(c,e.Diagnostics.Starting_compilation_in_watch_mode),Ee(c);var ee=H(R(c));ee.forEach(function(Te){return c.projectPendingBuild.set(Y(c,Te),e.ConfigFileProgramReloadLevel.None)}),O&&O.throwIfCancellationRequested()}var L;(function(c){c[c.Build=0]="Build",c[c.UpdateBundle=1]="UpdateBundle",c[c.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"})(L=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={}));function C(c,O){return c.projectPendingBuild.delete(O),c.currentInvalidatedProject=void 0,c.diagnostics.has(O)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function _(c,O,ee,Te,Ne){var ze=!0;return{kind:L.UpdateOutputFileStamps,project:O,projectPath:ee,buildOrder:Ne,getCompilerOptions:function(){return Te.options},getCurrentDirectory:function(){return c.currentDirectory},updateOutputFileStatmps:function(){Z(c,Te,ee),ze=!1},done:function(){return ze&&Z(c,Te,ee),C(c,ee)}}}function b(c,O,ee,Te,Ne,ze,bn){var Sn;(function(ot){ot[ot.CreateProgram=0]="CreateProgram",ot[ot.SyntaxDiagnostics=1]="SyntaxDiagnostics",ot[ot.SemanticDiagnostics=2]="SemanticDiagnostics",ot[ot.Emit=3]="Emit",ot[ot.EmitBundle=4]="EmitBundle",ot[ot.BuildInvalidatedProjectOfBundle=5]="BuildInvalidatedProjectOfBundle",ot[ot.QueueReferencingProjects=6]="QueueReferencingProjects",ot[ot.Done=7]="Done"})(Sn||(Sn={}));var Kn=c===L.Build?Sn.CreateProgram:Sn.EmitBundle,Xe,pn,le;return c===L.Build?{kind:c,project:ee,projectPath:Te,buildOrder:bn,getCompilerOptions:function(){return ze.options},getCurrentDirectory:function(){return O.currentDirectory},getBuilderProgram:function(){return kn(e.identity)},getProgram:function(){return kn(function(ct){return ct.getProgramOrUndefined()})},getSourceFile:function(ct){return kn(function(wt){return wt.getSourceFile(ct)})},getSourceFiles:function(){return yn(function(ct){return ct.getSourceFiles()})},getOptionsDiagnostics:function(ct){return yn(function(wt){return wt.getOptionsDiagnostics(ct)})},getGlobalDiagnostics:function(ct){return yn(function(wt){return wt.getGlobalDiagnostics(ct)})},getConfigFileParsingDiagnostics:function(){return yn(function(ct){return ct.getConfigFileParsingDiagnostics()})},getSyntacticDiagnostics:function(ct,wt){return yn(function(st){return st.getSyntacticDiagnostics(ct,wt)})},getAllDependencies:function(ct){return yn(function(wt){return wt.getAllDependencies(ct)})},getSemanticDiagnostics:function(ct,wt){return yn(function(st){return st.getSemanticDiagnostics(ct,wt)})},getSemanticDiagnosticsOfNextAffectedFile:function(ct,wt){return kn(function(st){return st.getSemanticDiagnosticsOfNextAffectedFile&&st.getSemanticDiagnosticsOfNextAffectedFile(ct,wt)})},emit:function(ct,wt,st,qn,Ie){return ct||qn?kn(function(De){return De.emit(ct,wt,st,qn,Ie)}):(dt(Sn.SemanticDiagnostics,st),Kn!==Sn.Emit?void 0:tt(wt,st,Ie))},done:oe}:{kind:c,project:ee,projectPath:Te,buildOrder:bn,getCompilerOptions:function(){return ze.options},getCurrentDirectory:function(){return O.currentDirectory},emit:function(ct,wt){return Kn!==Sn.EmitBundle?le:ut(ct,wt)},done:oe};function oe(ot,ct,wt){return dt(Sn.Done,ot,ct,wt),C(O,Te)}function kn(ot){return dt(Sn.CreateProgram),Xe&&ot(Xe)}function yn(ot){return kn(ot)||e.emptyArray}function ye(){if(e.Debug.assert(Xe===void 0),O.options.dry){Je(O,e.Diagnostics.A_non_dry_build_would_build_project_0,ee),pn=qe.Success,Kn=Sn.QueueReferencingProjects;return}if(O.options.verbose&&Je(O,e.Diagnostics.Building_project_0,ee),ze.fileNames.length===0){cn(O,Te,ze.errors),pn=qe.None,Kn=Sn.QueueReferencingProjects;return}var ot=O.host,ct=O.compilerHost;O.projectCompilerOptions=ze.options,S(O,ee,ze),Xe=ot.createProgram(ze.fileNames,ze.options,ct,N(O,Te,ze),ze.errors,ze.projectReferences),Kn++}function mn(ot,ct,wt){ot.length?(pn=pe(O,Te,Xe,ot,ct,wt),Kn=Sn.QueueReferencingProjects):Kn++}function un(ot){e.Debug.assertDefined(Xe),mn(Or(Xe.getConfigFileParsingDiagnostics(),Xe.getOptionsDiagnostics(ot),Xe.getGlobalDiagnostics(ot),Xe.getSyntacticDiagnostics(void 0,ot)),qe.SyntaxErrors,"Syntactic")}function Mn(ot){mn(e.Debug.assertDefined(Xe).getSemanticDiagnostics(void 0,ot),qe.TypeErrors,"Semantic")}function tt(ot,ct,wt){e.Debug.assertDefined(Xe),e.Debug.assert(Kn===Sn.Emit),Xe.backupState();var st,qn=function(gt){return(st||(st=[])).push(gt)},Ie=[],De=e.emitFilesAndReportErrors(Xe,qn,void 0,void 0,function(Wr,gt,ba){return Ie.push({name:Wr,text:gt,writeByteOrderMark:ba})},ct,!1,wt).emitResult;if(st)return Xe.restoreState(),pn=pe(O,Te,Xe,st,qe.DeclarationEmitErrors,"Declaration file"),Kn=Sn.QueueReferencingProjects,{emitSkipped:!0,diagnostics:De.diagnostics};var _n=O.host,_t=O.compilerHost,It=qe.DeclarationOutputUnchanged,Ht=o,nr=!1,vr=e.createDiagnosticCollection(),Qr=e.createMap();return Ie.forEach(function(Wr){var gt=Wr.name,ba=Wr.text,kt=Wr.writeByteOrderMark,jn;!nr&&ie(gt)&&(_n.fileExists(gt)&&O.readFileWithCache(gt)===ba?jn=_n.getModifiedTime(gt):(It&=~qe.DeclarationOutputUnchanged,nr=!0)),Qr.set(h(O,gt),gt),e.writeFile(ot?{writeFile:ot}:_t,vr,gt,ba,kt),jn!==void 0&&(Ht=ve(jn,Ht))}),Vn(vr,Qr,Ht,nr,Ie.length?Ie[0].name:e.getFirstProjectOutput(ze,!_n.useCaseSensitiveFileNames()),It),De}function Vn(ot,ct,wt,st,qn,Ie){var De=ot.getDiagnostics();if(De.length)return pn=pe(O,Te,Xe,De,qe.EmitErrors,"Emit"),Kn=Sn.QueueReferencingProjects,De;O.writeFileName&&(ct.forEach(function(_t){return Q(O,ze,_t)}),Xe&&e.listFiles(Xe,O.writeFileName));var _n=Ce(O,ze,wt,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,ct);return O.diagnostics.delete(Te),O.projectStatus.set(Te,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:st?F:_n,oldestOutputFileName:qn}),Xe&&X(O,Te,Xe),O.projectCompilerOptions=O.baseCompilerOptions,Kn=Sn.QueueReferencingProjects,pn=Ie,De}function ut(ot,ct){if(e.Debug.assert(c===L.UpdateBundle),O.options.dry){Je(O,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,ee),pn=qe.Success,Kn=Sn.QueueReferencingProjects;return}O.options.verbose&&Je(O,e.Diagnostics.Updating_output_of_project_0,ee);var wt=O.compilerHost;O.projectCompilerOptions=ze.options;var st=e.emitUsingBuildInfo(ze,wt,function(_n){var _t=J(O,_n.path);return $(O,_t,Y(O,_t))},ct);if(e.isString(st))return Je(O,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,ee,Le(O,st)),Kn=Sn.BuildInvalidatedProjectOfBundle,le=b(L.Build,O,ee,Te,Ne,ze,bn);e.Debug.assert(!!st.length);var qn=e.createDiagnosticCollection(),Ie=e.createMap();st.forEach(function(_n){var _t=_n.name,It=_n.text,Ht=_n.writeByteOrderMark;Ie.set(h(O,_t),_t),e.writeFile(ot?{writeFile:ot}:wt,qn,_t,It,Ht)});var De=Vn(qn,Ie,o,!1,st[0].name,qe.DeclarationOutputUnchanged);return{emitSkipped:!1,diagnostics:De}}function dt(ot,ct,wt,st){for(;Kn<=ot&&Kn<Sn.Done;){var qn=Kn;switch(Kn){case Sn.CreateProgram:ye();break;case Sn.SyntaxDiagnostics:un(ct);break;case Sn.SemanticDiagnostics:Mn(ct);break;case Sn.Emit:tt(wt,ct,st);break;case Sn.EmitBundle:ut(wt,st);break;case Sn.BuildInvalidatedProjectOfBundle:e.Debug.assertDefined(le).done(ct),Kn=Sn.Done;break;case Sn.QueueReferencingProjects:Re(O,ee,Te,Ne,ze,bn,e.Debug.assertDefined(pn)),Kn++;break;case Sn.Done:default:e.assertType(Kn)}e.Debug.assert(Kn>qn)}}}function D(c,O,ee){var Te=c.options;return O.type!==e.UpToDateStatusType.OutOfDateWithPrepend||Te.force?!0:ee.fileNames.length===0||!!ee.errors.length||!e.isIncrementalCompilation(ee.options)}function T(c,O,ee){if(!c.projectPendingBuild.size)return;if(d(O))return;if(c.currentInvalidatedProject)return e.arrayIsEqualTo(c.currentInvalidatedProject.buildOrder,O)?c.currentInvalidatedProject:void 0;for(var Te=c.options,Ne=c.projectPendingBuild,ze=0;ze<O.length;ze++){var bn=O[ze],Sn=Y(c,bn),Kn=c.projectPendingBuild.get(Sn);if(Kn===void 0)continue;ee&&(ee=!1,he(c,O));var Xe=$(c,bn,Sn);if(!Xe){$e(c,Sn),Ne.delete(Sn);continue}if(Kn===e.ConfigFileProgramReloadLevel.Full)Oe(c,bn,Sn),Pn(c,bn,Sn,Xe),Xn(c,bn,Sn,Xe);else if(Kn===e.ConfigFileProgramReloadLevel.Partial){var pn=e.getFileNamesFromConfigSpecs(Xe.configFileSpecs,e.getDirectoryPath(bn),Xe.options,c.parseConfigFileHost);e.updateErrorForNoInputFiles(pn,bn,Xe.configFileSpecs,Xe.errors,e.canJsonReportNoInutFiles(Xe.raw)),Xe.fileNames=pn.fileNames,Xn(c,bn,Sn,Xe)}var le=de(c,Xe,Sn);if(G(c,bn,le),!Te.force){if(le.type===e.UpToDateStatusType.UpToDate){cn(c,Sn,Xe.errors),Ne.delete(Sn),Te.dry&&Je(c,e.Diagnostics.Project_0_is_up_to_date,bn);continue}if(le.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return cn(c,Sn,Xe.errors),_(c,bn,Sn,Xe,O)}if(le.type===e.UpToDateStatusType.UpstreamBlocked){cn(c,Sn,Xe.errors),Ne.delete(Sn),Te.verbose&&Je(c,le.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,bn,le.upstreamProjectName);continue}if(le.type===e.UpToDateStatusType.ContainerOnly){cn(c,Sn,Xe.errors),Ne.delete(Sn);continue}return b(D(c,le,Xe)?L.Build:L.UpdateBundle,c,bn,Sn,ze,Xe,O)}return}function Q(c,O,ee){var Te=c.writeFileName;Te&&O.options.listEmittedFiles&&Te("TSFILE: "+ee)}function N(c,O,ee){var Te=c.options,Ne=c.builderPrograms,ze=c.compilerHost;if(Te.force)return;var bn=Ne.get(O);return bn||e.readBuilderProgram(ee.options,ze)}function X(c,O,ee){var Te=c.host,Ne=c.watch,ze=c.builderPrograms;Te.afterProgramEmitAndDiagnostics&&Te.afterProgramEmitAndDiagnostics(ee),Ne&&(ee.releaseProgram(),ze.set(O,ee))}function pe(c,O,ee,Te,Ne,ze){return cn(c,O,Te),ee&&c.writeFileName&&e.listFiles(ee,c.writeFileName),c.projectStatus.set(O,{type:e.UpToDateStatusType.Unbuildable,reason:ze+" errors"}),ee&&X(c,O,ee),c.projectCompilerOptions=c.baseCompilerOptions,Ne}function S(c,O,ee){if(!c.moduleResolutionCache)return;var Te=c.moduleResolutionCache,Ne=h(c,O);if(Te.directoryToModuleNameMap.redirectsMap.size===0)e.Debug.assert(Te.moduleNameToDirectoryMap.redirectsMap.size===0),Te.directoryToModuleNameMap.redirectsMap.set(Ne,Te.directoryToModuleNameMap.ownMap),Te.moduleNameToDirectoryMap.redirectsMap.set(Ne,Te.moduleNameToDirectoryMap.ownMap);else{e.Debug.assert(Te.moduleNameToDirectoryMap.redirectsMap.size>0);var ze={sourceFile:ee.options.configFile,commandLine:ee};Te.directoryToModuleNameMap.setOwnMap(Te.directoryToModuleNameMap.getOrCreateMapOfCacheRedirects(ze)),Te.moduleNameToDirectoryMap.setOwnMap(Te.moduleNameToDirectoryMap.getOrCreateMapOfCacheRedirects(ze))}Te.directoryToModuleNameMap.setOwnOptions(ee.options),Te.moduleNameToDirectoryMap.setOwnOptions(ee.options)}function v(c,O,ee,Te){var Ne=c.host.getModifiedTime(O)||e.missingFileModifiedTime;if(ee<Ne)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:Te,newerInputFileName:O}}function U(c,O,ee){for(var Te=void 0,Ne=o,ze=c.host,bn=0,Sn=O.fileNames;bn<Sn.length;bn++){var Kn=Sn[bn];if(!ze.fileExists(Kn))return{type:e.UpToDateStatusType.Unbuildable,reason:Kn+" does not exist"};var Xe=ze.getModifiedTime(Kn)||e.missingFileModifiedTime;Xe>Ne&&(Te=Kn,Ne=Xe)}if(!O.fileNames.length&&!e.canJsonReportNoInutFiles(O.raw))return{type:e.UpToDateStatusType.ContainerOnly};for(var pn=e.getAllProjectOutputs(O,!ze.useCaseSensitiveFileNames()),le="(none)",oe=F,kn="(none)",yn=o,ye,mn=o,un=!1,Mn=0,tt=pn;Mn<tt.length;Mn++){var Vn=tt[Mn];if(!ze.fileExists(Vn)){ye=Vn;break}var ut=ze.getModifiedTime(Vn)||e.missingFileModifiedTime;if(ut<oe&&(oe=ut,le=Vn),ut<Ne){un=!0;break}if(ut>yn&&(yn=ut,kn=Vn),ie(Vn)){var dt=ze.getModifiedTime(Vn)||e.missingFileModifiedTime;mn=ve(mn,dt)}}var ot=!1,ct=!1,wt;if(O.projectReferences){c.projectStatus.set(ee,{type:e.UpToDateStatusType.ComputingUpstream});for(var st=0,qn=O.projectReferences;st<qn.length;st++){var Ie=qn[st];ct=ct||!!Ie.prepend;var De=e.resolveProjectReferencePath(Ie),_n=Y(c,De),_t=de(c,$(c,De,_n),_n);if(_t.type===e.UpToDateStatusType.ComputingUpstream||_t.type===e.UpToDateStatusType.ContainerOnly)continue;if(_t.type===e.UpToDateStatusType.Unbuildable||_t.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:Ie.path,upstreamProjectBlocked:_t.type===e.UpToDateStatusType.UpstreamBlocked};if(_t.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:Ie.path};if(!ye){if(_t.newestInputFileTime&&_t.newestInputFileTime<=oe)continue;if(_t.newestDeclarationFileContentChangedTime&&_t.newestDeclarationFileContentChangedTime<=oe){ot=!0,wt=Ie.path;continue}return e.Debug.assert(le!==void 0,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:le,newerProjectName:Ie.path}}}}if(ye!==void 0)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:ye};if(un)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:le,newerInputFileName:Te};var It=v(c,O.options.configFilePath,oe,le);if(It)return It;var Ht=e.forEach(O.options.configFile.extendedSourceFiles||e.emptyArray,function(Wr){return v(c,Wr,oe,le)});if(Ht)return Ht;if(!c.buildInfoChecked.has(ee)){c.buildInfoChecked.set(ee,!0);var nr=e.getTsBuildInfoEmitOutputFilePath(O.options);if(nr){var vr=c.readFileWithCache(nr),Qr=vr&&e.getBuildInfo(vr);if(Qr&&(Qr.bundle||Qr.program)&&Qr.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:Qr.version}}}return ct&&ot?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:le,newerProjectName:wt}:{type:ot?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:mn,newestInputFileTime:Ne,newestOutputFileTime:yn,newestInputFileName:Te,newestOutputFileName:kn,oldestOutputFileName:le}}function de(c,O,ee){if(O===void 0)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var Te=c.projectStatus.get(ee);if(Te!==void 0)return Te;var Ne=U(c,O,ee);return c.projectStatus.set(ee,Ne),Ne}function Ce(c,O,ee,Te,Ne){var ze=c.host,bn=e.getAllProjectOutputs(O,!ze.useCaseSensitiveFileNames());if(!Ne||bn.length!==Ne.size)for(var Sn=!!c.options.verbose,Kn=ze.now?ze.now():new Date,Xe=0,pn=bn;Xe<pn.length;Xe++){var le=pn[Xe];if(Ne&&Ne.has(h(c,le)))continue;Sn&&(Sn=!1,Je(c,Te,O.options.configFilePath)),ie(le)&&(ee=ve(ee,ze.getModifiedTime(le)||e.missingFileModifiedTime)),ze.setModifiedTime(le,Kn),Q(c,O,le)}return ee}function Z(c,O,ee){if(c.options.dry)return Je(c,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,O.options.configFilePath);var Te=Ce(c,O,o,e.Diagnostics.Updating_output_timestamps_of_project_0);c.projectStatus.set(ee,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:Te,oldestOutputFileName:e.getFirstProjectOutput(O,!c.host.useCaseSensitiveFileNames())})}function Re(c,O,ee,Te,Ne,ze,bn){if(bn&qe.AnyErrors)return;if(!Ne.options.composite)return;for(var Sn=Te+1;Sn<ze.length;Sn++){var Kn=ze[Sn],Xe=Y(c,Kn);if(c.projectPendingBuild.has(Xe))continue;var pn=$(c,Kn,Xe);if(!pn||!pn.projectReferences)continue;for(var le=0,oe=pn.projectReferences;le<oe.length;le++){var kn=oe[le],yn=J(c,kn.path);if(Y(c,yn)!==ee)continue;var ye=c.projectStatus.get(Xe);if(ye)switch(ye.type){case e.UpToDateStatusType.UpToDate:if(bn&qe.DeclarationOutputUnchanged){kn.prepend?c.projectStatus.set(Xe,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:ye.oldestOutputFileName,newerProjectName:O}):ye.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:bn&qe.DeclarationOutputUnchanged||c.projectStatus.set(Xe,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:ye.type===e.UpToDateStatusType.OutOfDateWithPrepend?ye.outOfDateOutputFileName:ye.oldestOutputFileName,newerProjectName:O});break;case e.UpToDateStatusType.UpstreamBlocked:Y(c,J(c,ye.upstreamProjectName))===ee&&V(c,Xe);break}m(c,Xe,e.ConfigFileProgramReloadLevel.None);break}}}function Ae(c,O,ee,Te){var Ne=z(c,O,Te);if(!Ne)return e.ExitStatus.InvalidProject_OutputsSkipped;y(c,ee);for(var ze=!0,bn=0;;){var Sn=T(c,Ne,ze);if(!Sn)break;ze=!1,Sn.done(ee),c.diagnostics.has(Sn.projectPath)||bn++}return B(c),sn(c,Ne),ae(c,Ne),d(Ne)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:Ne.some(function(Kn){return c.diagnostics.has(Y(c,Kn))})?bn?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function We(c,O,ee){var Te=z(c,O,ee);if(!Te)return e.ExitStatus.InvalidProject_OutputsSkipped;if(d(Te))return Ue(c,Te.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var Ne=c.options,ze=c.host,bn=Ne.dry?[]:void 0,Sn=0,Kn=Te;Sn<Kn.length;Sn++){var Xe=Kn[Sn],pn=Y(c,Xe),le=$(c,Xe,pn);if(le===void 0){$e(c,pn);continue}for(var oe=e.getAllProjectOutputs(le,!ze.useCaseSensitiveFileNames()),kn=0,yn=oe;kn<yn.length;kn++){var ye=yn[kn];ze.fileExists(ye)&&(bn?bn.push(ye):(ze.deleteFile(ye),be(c,pn,e.ConfigFileProgramReloadLevel.None)))}}return bn&&Je(c,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,bn.map(function(mn){return`\r
* `+mn}).join("")),e.ExitStatus.Success}function be(c,O,ee){c.host.getParsedCommandLine&&ee===e.ConfigFileProgramReloadLevel.Partial&&(ee=e.ConfigFileProgramReloadLevel.Full),ee===e.ConfigFileProgramReloadLevel.Full&&(c.configFileCache.delete(O),c.buildOrder=void 0),c.needsSummary=!0,V(c,O),m(c,O,ee),Ee(c)}function Ge(c,O,ee){c.reportFileChangeDetected=!0,be(c,O,ee),x(c)}function x(c){var O=c.hostWithWatch;if(!O.setTimeout||!O.clearTimeout)return;c.timerToBuildInvalidatedProject&&O.clearTimeout(c.timerToBuildInvalidatedProject),c.timerToBuildInvalidatedProject=O.setTimeout(j,250,c)}function j(c){c.timerToBuildInvalidatedProject=void 0,c.reportFileChangeDetected&&(c.reportFileChangeDetected=!1,c.projectErrorsReported.clear(),Ze(c,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var O=R(c),ee=T(c,O,!1);if(ee&&(ee.done(),c.projectPendingBuild.size)){c.watch&&!c.timerToBuildInvalidatedProject&&x(c);return}B(c),sn(c,O)}function Oe(c,O,ee){if(!c.watch||c.allWatchedConfigFiles.has(ee))return;c.allWatchedConfigFiles.set(ee,c.watchFile(c.hostWithWatch,O,function(){Ge(c,ee,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,"Config file",O))}function a(c,O,ee){return e.comparePaths(O,ee,c.currentDirectory,!c.host.useCaseSensitiveFileNames())===0}function en(c,O,ee){if(ee.options.noEmit)return!1;if(!e.fileExtensionIs(O,".d.ts")&&(e.fileExtensionIs(O,".ts")||e.fileExtensionIs(O,".tsx")))return!1;var Te=ee.options.outFile||ee.options.out;return Te&&(a(c,O,Te)||a(c,O,e.removeFileExtension(Te)+".d.ts"))||(ee.options.declarationDir&&e.containsPath(ee.options.declarationDir,O,c.currentDirectory,!c.host.useCaseSensitiveFileNames())||ee.options.outDir&&e.containsPath(ee.options.outDir,O,c.currentDirectory,!c.host.useCaseSensitiveFileNames()))?!0:!e.forEach(ee.fileNames,function(Ne){return a(c,O,Ne)})}function Pn(c,O,ee,Te){if(!c.watch)return;e.updateWatchingWildcardDirectories(He(c.allWatchedWildcardDirectories,ee),e.createMapFromTemplate(Te.configFileSpecs.wildcardDirectories),function(Ne,ze){return c.watchDirectory(c.hostWithWatch,Ne,function(bn){var Sn=h(c,bn);if(Sn!==h(c,Ne)&&e.hasExtension(Sn)&&!e.isSupportedSourceFileName(bn,Te.options)){c.writeLog("Project: "+O+" Detected file add/remove of non supported extension: "+bn);return}if(en(c,bn,Te)){c.writeLog(bn+" is output file");return}Ge(c,ee,e.ConfigFileProgramReloadLevel.Partial)},ze,"Wild card directory",O)})}function Xn(c,O,ee,Te){if(!c.watch)return;e.mutateMap(He(c.allWatchedInputFiles,ee),e.arrayToMap(Te.fileNames,function(Ne){return h(c,Ne)}),{createNewValue:function(ze,bn){return c.watchFilePath(c.hostWithWatch,bn,function(){return Ge(c,ee,e.ConfigFileProgramReloadLevel.None)},e.PollingInterval.Low,ze,"Source file",O)},onDeleteValue:e.closeFileWatcher})}function ae(c,O){if(!c.watchAllProjectsPending)return;c.watchAllProjectsPending=!1;for(var ee=0,Te=H(O);ee<Te.length;ee++){var Ne=Te[ee],ze=Y(c,Ne);Oe(c,Ne,ze);var bn=$(c,Ne,ze);bn&&(Pn(c,Ne,ze,bn),Xn(c,Ne,ze,bn))}}function ce(c,O,ee,Te){var Ne=P(c,O,ee,Te);return{build:function(bn,Sn){return Ae(Ne,bn,Sn)},clean:function(bn){return We(Ne,bn)},buildReferences:function(bn,Sn){return Ae(Ne,bn,Sn,!0)},cleanReferences:function(bn){return We(Ne,bn,!0)},getNextInvalidatedProject:function(bn){return y(Ne,bn),T(Ne,R(Ne),!1)},getBuildOrder:function(){return R(Ne)},getUpToDateStatusOfProject:function(bn){var Sn=J(Ne,bn),Kn=Y(Ne,Sn);return de(Ne,$(Ne,Sn,Kn),Kn)},invalidateProject:function(bn,Sn){return be(Ne,bn,Sn||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return j(Ne)},getAllParsedConfigs:function(){return e.arrayFrom(e.mapDefinedIterator(Ne.configFileCache.values(),function(bn){return ne(bn)?bn:void 0}))}}}function Le(c,O){return e.convertToRelativePath(O,c.currentDirectory,function(ee){return c.getCanonicalFileName(ee)})}function Je(c,O){for(var ee=[],Te=2;Te<arguments.length;Te++)ee[Te-2]=arguments[Te];c.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,Or([O],ee)))}function Ze(c,O){for(var ee=[],Te=2;Te<arguments.length;Te++)ee[Te-2]=arguments[Te];c.hostWithWatch.onWatchStatusChange&&c.hostWithWatch.onWatchStatusChange(e.createCompilerDiagnostic.apply(void 0,Or([O],ee)),c.host.getNewLine(),c.baseCompilerOptions)}function Ue(c,O){var ee=c.host;O.forEach(function(Te){return ee.reportDiagnostic(Te)})}function cn(c,O,ee){Ue(c,ee),c.projectErrorsReported.set(O,!0),ee.length&&c.diagnostics.set(O,ee)}function $e(c,O){cn(c,O,[c.configFileCache.get(O)])}function sn(c,O){if(!c.needsSummary)return;c.needsSummary=!1;var ee=c.watch||!!c.host.reportErrorSummary,Te=c.diagnostics,Ne=0;d(O)?(he(c,O.buildOrder),Ue(c,O.circularDiagnostics),ee&&(Ne+=e.getErrorCountForSummary(O.circularDiagnostics))):(O.forEach(function(ze){var bn=Y(c,ze);c.projectErrorsReported.has(bn)||Ue(c,Te.get(bn)||e.emptyArray)}),ee&&Te.forEach(function(ze){return Ne+=e.getErrorCountForSummary(ze)})),c.watch?Ze(c,e.getWatchErrorSummaryDiagnosticMessage(Ne),Ne):c.host.reportErrorSummary&&c.host.reportErrorSummary(Ne)}function he(c,O){c.options.verbose&&Je(c,e.Diagnostics.Projects_in_this_build_Colon_0,O.map(function(ee){return`\r
* `+Le(c,ee)}).join(""))}function ke(c,O,ee){switch(ee.type){case e.UpToDateStatusType.OutOfDateWithSelf:return Je(c,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Le(c,O),Le(c,ee.outOfDateOutputFileName),Le(c,ee.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return Je(c,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Le(c,O),Le(c,ee.outOfDateOutputFileName),Le(c,ee.newerProjectName));case e.UpToDateStatusType.OutputMissing:return Je(c,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Le(c,O),Le(c,ee.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if(ee.newestInputFileTime!==void 0)return Je(c,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,Le(c,O),Le(c,ee.newestInputFileName||""),Le(c,ee.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return Je(c,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Le(c,O),Le(c,ee.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return Je(c,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Le(c,O));case e.UpToDateStatusType.UpstreamOutOfDate:return Je(c,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Le(c,O),Le(c,ee.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return Je(c,ee.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,Le(c,O),Le(c,ee.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return Je(c,e.Diagnostics.Failed_to_parse_file_0_Colon_1,Le(c,O),ee.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return Je(c,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Le(c,O),ee.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(ee)}}function G(c,O,ee){c.options.verbose&&ke(c,O,ee)}}(ln||(ln={}));var ln;(function(e){var o;(function(F){F.ActionSet="action::set",F.ActionInvalidate="action::invalidate",F.ActionPackageInstalled="action::packageInstalled",F.EventTypesRegistry="event::typesRegistry",F.EventBeginInstallTypes="event::beginInstallTypes",F.EventEndInstallTypes="event::endInstallTypes",F.EventInitializationFailed="event::initializationFailed";var qe;(function(ve){ve.GlobalCacheLocation="--globalTypingsCacheLocation",ve.LogFile="--logFile",ve.EnableTelemetry="--enableTelemetry",ve.TypingSafeListLocation="--typingSafeListLocation",ve.TypesMapLocation="--typesMapLocation",ve.NpmLocation="--npmLocation",ve.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(qe=F.Arguments||(F.Arguments={}));function Se(ve){return e.sys.args.indexOf(ve)>=0}F.hasArgument=Se;function Fe(ve){var ie=e.sys.args.indexOf(ve);return ie>=0&&ie<e.sys.args.length-1?e.sys.args[ie+1]:void 0}F.findArgument=Fe;function He(){var ve=new Date;return ve.getHours()+":"+ve.getMinutes()+":"+ve.getSeconds()+"."+ve.getMilliseconds()}F.nowString=He})(o=e.server||(e.server={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){function qe(re,se){var w=new e.Version(e.getProperty(se,"ts"+e.versionMajorMinor)||e.getProperty(se,"latest"));return w.compareTo(re.version)<=0}F.isTypingUpToDate=qe,F.nodeCoreModuleList=["assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","http2","inspector","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"],F.nodeCoreModules=e.arrayToSet(F.nodeCoreModuleList);function Se(re){return F.nodeCoreModules.has(re)?"node":re}F.nonRelativeModuleNameForTypingCache=Se;function Fe(re,se){var w=e.readConfigFile(se,function(k){return re.readFile(k)});return e.createMapFromTemplate(w.config)}F.loadSafeList=Fe;function He(re,se){var w=e.readConfigFile(se,function(k){return re.readFile(k)});return w.config?e.createMapFromTemplate(w.config.simpleMap):void 0}F.loadTypesMap=He;function ve(re,se,w,k,P,h,Y,ne,$){if(!Y||!Y.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var J=e.createMap();w=e.mapDefined(w,function(N){var X=e.normalizePath(N);if(e.hasJSFileExtension(X))return X});var fe=[];Y.include&&b(Y.include,"Explicitly included types");var R=Y.exclude||[],K=e.arrayToSet(w,e.getDirectoryPath);if(K.set(k,!0),K.forEach(function(N,X){var pe=e.combinePaths(X,"package.json");D(pe,fe);var S=e.combinePaths(X,"bower.json");D(S,fe);var v=e.combinePaths(X,"bower_components");Q(v,fe);var U=e.combinePaths(X,"node_modules");Q(U,fe)}),T(w),ne){var z=e.deduplicate(ne.map(Se),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive);b(z,"Inferred typings from unresolved imports")}h.forEach(function(N,X){var pe=$.get(X);J.has(X)&&J.get(X)===void 0&&pe!==void 0&&qe(N,pe)&&J.set(X,N.typingLocation)});for(var Ee=0,B=R;Ee<B.length;Ee++){var V=B[Ee],m=J.delete(V);m&&se&&se("Typing for "+V+" is in exclude list, will be ignored.")}var y=[],L=[];J.forEach(function(N,X){N!==void 0?L.push(N):y.push(X)});var C={cachedTypingPaths:L,newTypingNames:y,filesToWatch:fe};return se&&se("Result: "+JSON.stringify(C)),C;function _(N){J.has(N)||J.set(N,void 0)}function b(N,X){se&&se(X+": "+JSON.stringify(N)),e.forEach(N,_)}function D(N,X){if(!re.fileExists(N))return;X.push(N);var pe=e.readConfigFile(N,function(v){return re.readFile(v)}).config,S=e.flatMap([pe.dependencies,pe.devDependencies,pe.optionalDependencies,pe.peerDependencies],e.getOwnKeys);b(S,"Typing names in '"+N+"' dependencies")}function T(N){var X=e.mapDefined(N,function(S){if(!e.hasJSFileExtension(S))return;var v=e.removeFileExtension(e.getBaseFileName(S.toLowerCase())),U=e.removeMinAndVersionNumbers(v);return P.get(U)});X.length&&b(X,"Inferred typings from file names");var pe=e.some(N,function(S){return e.fileExtensionIs(S,".jsx")});pe&&(se&&se("Inferred 'react' typings due to presence of '.jsx' extension"),_("react"))}function Q(N,X){if(X.push(N),!re.directoryExists(N))return;var pe=re.readDirectory(N,[".json"],void 0,void 0,2);se&&se("Searching for typing names in "+N+"; all files: "+JSON.stringify(pe));for(var S=[],v=0,U=pe;v<U.length;v++){var de=U[v],Ce=e.normalizePath(de),Z=e.getBaseFileName(Ce);if(Z!=="package.json"&&Z!=="bower.json")continue;var Re=e.readConfigFile(Ce,function(Ge){return re.readFile(Ge)}),Ae=Re.config;if(Z==="package.json"&&Ae._requiredBy&&e.filter(Ae._requiredBy,function(Ge){return Ge[0]==="#"||Ge==="/"}).length===0)continue;if(!Ae.name)continue;var We=Ae.types||Ae.typings;if(We){var be=e.getNormalizedAbsolutePath(We,e.getDirectoryPath(Ce));se&&se(" Package '"+Ae.name+"' provides its own types."),J.set(Ae.name,be)}else S.push(Ae.name)}b(S," Found package names")}}F.discoverTypings=ve;var ie;(function(re){re[re.Ok=0]="Ok",re[re.EmptyName=1]="EmptyName",re[re.NameTooLong=2]="NameTooLong",re[re.NameStartsWithDot=3]="NameStartsWithDot",re[re.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",re[re.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters"})(ie=F.NameValidationResult||(F.NameValidationResult={}));var d=214;function H(re){return Pe(re,!0)}F.validatePackageName=H;function Pe(re,se){if(!re)return 1;if(re.length>d)return 2;if(re.charCodeAt(0)===46)return 3;if(re.charCodeAt(0)===95)return 4;if(se){var w=/^@([^/]+)\/([^/]+)$/.exec(re);if(w){var k=Pe(w[1],!1);if(k!==0)return{name:w[1],isScopeName:!0,result:k};var P=Pe(w[2],!1);return P!==0?{name:w[2],isScopeName:!1,result:P}:0}}return encodeURIComponent(re)!==re?5:0}function I(re,se){return typeof re=="object"?_e(se,re.result,re.name,re.isScopeName):_e(se,re,se,!1)}F.renderPackageNameValidationFailure=I;function _e(re,se,w,k){var P=k?"Scope":"Package";switch(se){case 1:return"'"+re+"':: "+P+" name '"+w+"' cannot be empty";case 2:return"'"+re+"':: "+P+" name '"+w+"' should be less than "+d+" characters";case 3:return"'"+re+"':: "+P+" name '"+w+"' cannot start with '.'";case 4:return"'"+re+"':: "+P+" name '"+w+"' cannot start with '_'";case 5:return"'"+re+"':: "+P+" name '"+w+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(se)}}})(o=e.JsTyping||(e.JsTyping={}))})(ln||(ln={}));var ln;(function(e){var o;(function(w){var k=function(){function h(Y){this.text=Y}return h.prototype.getText=function(Y,ne){return Y===0&&ne===this.text.length?this.text:this.text.substring(Y,ne)},h.prototype.getLength=function(){return this.text.length},h.prototype.getChangeRange=function(){return},h}();function P(h){return new k(h)}w.fromString=P})(o=e.ScriptSnapshot||(e.ScriptSnapshot={}));var F;(function(w){w[w.Dependencies=1]="Dependencies",w[w.DevDependencies=2]="DevDependencies",w[w.PeerDependencies=4]="PeerDependencies",w[w.OptionalDependencies=8]="OptionalDependencies",w[w.All=15]="All"})(F=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={})),e.emptyOptions={};var qe;(function(w){w.none="none",w.definition="definition",w.reference="reference",w.writtenReference="writtenReference"})(qe=e.HighlightSpanKind||(e.HighlightSpanKind={}));var Se;(function(w){w[w.None=0]="None",w[w.Block=1]="Block",w[w.Smart=2]="Smart"})(Se=e.IndentStyle||(e.IndentStyle={}));var Fe;(function(w){w.Ignore="ignore",w.Insert="insert",w.Remove="remove"})(Fe=e.SemicolonPreference||(e.SemicolonPreference={}));function He(w){return{indentSize:4,tabSize:4,newLineCharacter:w||`
`,convertTabsToSpaces:!0,indentStyle:Se.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:Fe.Ignore}}e.getDefaultFormatCodeSettings=He,e.testFormatSettings=He(`
`);var ve;(function(w){w[w.aliasName=0]="aliasName",w[w.className=1]="className",w[w.enumName=2]="enumName",w[w.fieldName=3]="fieldName",w[w.interfaceName=4]="interfaceName",w[w.keyword=5]="keyword",w[w.lineBreak=6]="lineBreak",w[w.numericLiteral=7]="numericLiteral",w[w.stringLiteral=8]="stringLiteral",w[w.localName=9]="localName",w[w.methodName=10]="methodName",w[w.moduleName=11]="moduleName",w[w.operator=12]="operator",w[w.parameterName=13]="parameterName",w[w.propertyName=14]="propertyName",w[w.punctuation=15]="punctuation",w[w.space=16]="space",w[w.text=17]="text",w[w.typeParameterName=18]="typeParameterName",w[w.enumMemberName=19]="enumMemberName",w[w.functionName=20]="functionName",w[w.regularExpressionLiteral=21]="regularExpressionLiteral"})(ve=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}));var ie;(function(w){w.Comment="comment",w.Region="region",w.Code="code",w.Imports="imports"})(ie=e.OutliningSpanKind||(e.OutliningSpanKind={}));var d;(function(w){w[w.JavaScript=0]="JavaScript",w[w.SourceMap=1]="SourceMap",w[w.Declaration=2]="Declaration"})(d=e.OutputFileType||(e.OutputFileType={}));var H;(function(w){w[w.None=0]="None",w[w.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",w[w.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",w[w.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",w[w.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",w[w.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",w[w.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"})(H=e.EndOfLineState||(e.EndOfLineState={}));var Pe;(function(w){w[w.Punctuation=0]="Punctuation",w[w.Keyword=1]="Keyword",w[w.Operator=2]="Operator",w[w.Comment=3]="Comment",w[w.Whitespace=4]="Whitespace",w[w.Identifier=5]="Identifier",w[w.NumberLiteral=6]="NumberLiteral",w[w.BigIntLiteral=7]="BigIntLiteral",w[w.StringLiteral=8]="StringLiteral",w[w.RegExpLiteral=9]="RegExpLiteral"})(Pe=e.TokenClass||(e.TokenClass={}));var I;(function(w){w.unknown="",w.warning="warning",w.keyword="keyword",w.scriptElement="script",w.moduleElement="module",w.classElement="class",w.localClassElement="local class",w.interfaceElement="interface",w.typeElement="type",w.enumElement="enum",w.enumMemberElement="enum member",w.variableElement="var",w.localVariableElement="local var",w.functionElement="function",w.localFunctionElement="local function",w.memberFunctionElement="method",w.memberGetAccessorElement="getter",w.memberSetAccessorElement="setter",w.memberVariableElement="property",w.constructorImplementationElement="constructor",w.callSignatureElement="call",w.indexSignatureElement="index",w.constructSignatureElement="construct",w.parameterElement="parameter",w.typeParameterElement="type parameter",w.primitiveType="primitive type",w.label="label",w.alias="alias",w.constElement="const",w.letElement="let",w.directory="directory",w.externalModuleName="external module name",w.jsxAttribute="JSX attribute",w.string="string"})(I=e.ScriptElementKind||(e.ScriptElementKind={}));var _e;(function(w){w.none="",w.publicMemberModifier="public",w.privateMemberModifier="private",w.protectedMemberModifier="protected",w.exportedModifier="export",w.ambientModifier="declare",w.staticModifier="static",w.abstractModifier="abstract",w.optionalModifier="optional",w.dtsModifier=".d.ts",w.tsModifier=".ts",w.tsxModifier=".tsx",w.jsModifier=".js",w.jsxModifier=".jsx",w.jsonModifier=".json"})(_e=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={}));var re;(function(w){w.comment="comment",w.identifier="identifier",w.keyword="keyword",w.numericLiteral="number",w.bigintLiteral="bigint",w.operator="operator",w.stringLiteral="string",w.whiteSpace="whitespace",w.text="text",w.punctuation="punctuation",w.className="class name",w.enumName="enum name",w.interfaceName="interface name",w.moduleName="module name",w.typeParameterName="type parameter name",w.typeAliasName="type alias name",w.parameterName="parameter name",w.docCommentTagName="doc comment tag name",w.jsxOpenTagName="jsx open tag name",w.jsxCloseTagName="jsx close tag name",w.jsxSelfClosingTagName="jsx self closing tag name",w.jsxAttribute="jsx attribute",w.jsxText="jsx text",w.jsxAttributeStringLiteralValue="jsx attribute string literal value"})(re=e.ClassificationTypeNames||(e.ClassificationTypeNames={}));var se;(function(w){w[w.comment=1]="comment",w[w.identifier=2]="identifier",w[w.keyword=3]="keyword",w[w.numericLiteral=4]="numericLiteral",w[w.operator=5]="operator",w[w.stringLiteral=6]="stringLiteral",w[w.regularExpressionLiteral=7]="regularExpressionLiteral",w[w.whiteSpace=8]="whiteSpace",w[w.text=9]="text",w[w.punctuation=10]="punctuation",w[w.className=11]="className",w[w.enumName=12]="enumName",w[w.interfaceName=13]="interfaceName",w[w.moduleName=14]="moduleName",w[w.typeParameterName=15]="typeParameterName",w[w.typeAliasName=16]="typeAliasName",w[w.parameterName=17]="parameterName",w[w.docCommentTagName=18]="docCommentTagName",w[w.jsxOpenTagName=19]="jsxOpenTagName",w[w.jsxCloseTagName=20]="jsxCloseTagName",w[w.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",w[w.jsxAttribute=22]="jsxAttribute",w[w.jsxText=23]="jsxText",w[w.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",w[w.bigintLiteral=25]="bigintLiteral"})(se=e.ClassificationType||(e.ClassificationType={}))})(ln||(ln={}));var ln;(function(e){e.scanner=e.createScanner(99,!0);var o;(function(Ke){Ke[Ke.None=0]="None",Ke[Ke.Value=1]="Value",Ke[Ke.Type=2]="Type",Ke[Ke.Namespace=4]="Namespace",Ke[Ke.All=7]="All"})(o=e.SemanticMeaning||(e.SemanticMeaning={}));function F(Ke){switch(Ke.kind){case 241:return e.isInJSFile(Ke)&&e.getJSDocEnumTag(Ke)?7:1;case 155:case 190:case 158:case 157:case 279:case 280:case 160:case 159:case 161:case 162:case 163:case 243:case 200:case 201:case 278:case 271:return 1;case 154:case 245:case 246:case 172:return 2;case 315:return Ke.name===void 0?1|2:2;case 282:case 244:return 1|2;case 248:return e.isAmbientModule(Ke)||e.getModuleInstanceState(Ke)===1?4|1:4;case 247:case 256:case 257:case 252:case 253:case 258:case 259:return 7;case 288:return 4|1}return 7}e.getMeaningFromDeclaration=F;function qe(Ke){return Ke.kind===288?1:Ke.parent.kind===258||Ke.parent.kind===263?7:Fe(Ke)?Se(Ke):e.isDeclarationName(Ke)?F(Ke.parent):d(Ke)?2:He(Ke)?4:e.isTypeParameterDeclaration(Ke.parent)?(e.Debug.assert(e.isJSDocTemplateTag(Ke.parent.parent)),2):e.isLiteralTypeNode(Ke.parent)?2|1:1}e.getMeaningFromLocation=qe;function Se(Ke){var Rn=Ke.kind===152?Ke:e.isQualifiedName(Ke.parent)&&Ke.parent.right===Ke?Ke.parent:void 0;return Rn&&Rn.parent.kind===252?7:4}function Fe(Ke){for(;Ke.parent.kind===152;)Ke=Ke.parent;return e.isInternalModuleImportEqualsDeclaration(Ke.parent)&&Ke.parent.moduleReference===Ke}e.isInRightSideOfInternalImportEqualsDeclaration=Fe;function He(Ke){return ve(Ke)||ie(Ke)}function ve(Ke){var Rn=Ke,nt=!0;if(Rn.parent.kind===152){for(;Rn.parent&&Rn.parent.kind===152;)Rn=Rn.parent;nt=Rn.right===Ke}return Rn.parent.kind===168&&!nt}function ie(Ke){var Rn=Ke,nt=!0;if(Rn.parent.kind===193){for(;Rn.parent&&Rn.parent.kind===193;)Rn=Rn.parent;nt=Rn.name===Ke}if(!nt&&Rn.parent.kind===215&&Rn.parent.parent.kind===277){var tr=Rn.parent.parent.parent;return tr.kind===244&&Rn.parent.parent.token===112||tr.kind===245&&Rn.parent.parent.token===89}return!1}function d(Ke){e.isRightSideOfQualifiedNameOrPropertyAccess(Ke)&&(Ke=Ke.parent);switch(Ke.kind){case 103:return!e.isExpressionNode(Ke);case 182:return!0}switch(Ke.parent.kind){case 168:return!0;case 187:return!Ke.parent.isTypeOf;case 215:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(Ke.parent)}return!1}function H(Ke){return _e(Ke,e.isCallExpression)}e.isCallExpressionTarget=H;function Pe(Ke){return _e(Ke,e.isNewExpression)}e.isNewExpressionTarget=Pe;function I(Ke){return _e(Ke,e.isCallOrNewExpression)}e.isCallOrNewExpressionTarget=I;function _e(Ke,Rn){var nt=re(Ke);return!!nt&&!!nt.parent&&Rn(nt.parent)&&nt.parent.expression===nt}function re(Ke){return $(Ke)?Ke.parent:Ke}e.climbPastPropertyAccess=re;function se(Ke,Rn){for(;Ke;){if(Ke.kind===237&&Ke.label.escapedText===Rn)return Ke.label;Ke=Ke.parent}return}e.getTargetLabel=se;function w(Ke,Rn){return e.isPropertyAccessExpression(Ke.expression)?Ke.expression.name.text===Rn:!1}e.hasPropertyAccessExpressionWithName=w;function k(Ke){return Ke.kind===75&&e.isBreakOrContinueStatement(Ke.parent)&&Ke.parent.label===Ke}e.isJumpStatementTarget=k;function P(Ke){return Ke.kind===75&&e.isLabeledStatement(Ke.parent)&&Ke.parent.label===Ke}e.isLabelOfLabeledStatement=P;function h(Ke){return P(Ke)||k(Ke)}e.isLabelName=h;function Y(Ke){return e.isJSDocTag(Ke.parent)&&Ke.parent.tagName===Ke}e.isTagName=Y;function ne(Ke){return Ke.parent.kind===152&&Ke.parent.right===Ke}e.isRightSideOfQualifiedName=ne;function $(Ke){return Ke&&Ke.parent&&Ke.parent.kind===193&&Ke.parent.name===Ke}e.isRightSideOfPropertyAccess=$;function J(Ke){return Ke.parent.kind===248&&Ke.parent.name===Ke}e.isNameOfModuleDeclaration=J;function fe(Ke){return Ke.kind===75&&e.isFunctionLike(Ke.parent)&&Ke.parent.name===Ke}e.isNameOfFunctionDeclaration=fe;function R(Ke){switch(Ke.parent.kind){case 158:case 157:case 279:case 282:case 160:case 159:case 162:case 163:case 248:return e.getNameOfDeclaration(Ke.parent)===Ke;case 194:return Ke.parent.argumentExpression===Ke;case 153:return!0;case 186:return Ke.parent.parent.kind===184;default:return!1}}e.isLiteralNameOfPropertyDeclarationOrIndexAccess=R;function K(Ke){return e.isExternalModuleImportEqualsDeclaration(Ke.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(Ke.parent.parent)===Ke}e.isExpressionOfExternalModuleImportEqualsDeclaration=K;function z(Ke){for(e.isJSDocTypeAlias(Ke)&&(Ke=Ke.parent.parent);;){if(Ke=Ke.parent,!Ke)return;switch(Ke.kind){case 288:case 160:case 159:case 243:case 200:case 162:case 163:case 244:case 245:case 247:case 248:return Ke}}}e.getContainerNode=z;function Ee(Ke){switch(Ke.kind){case 288:return e.isExternalModule(Ke)?"module":"script";case 248:return"module";case 244:case 213:return"class";case 245:return"interface";case 246:case 308:case 315:return"type";case 247:return"enum";case 241:return Ba(Ke);case 190:return Ba(e.getRootDeclaration(Ke));case 201:case 243:case 200:return"function";case 162:return"getter";case 163:return"setter";case 160:case 159:return"method";case 279:var Rn=Ke.initializer;return e.isFunctionLike(Rn)?"method":"property";case 158:case 157:case 280:case 281:return"property";case 166:return"index";case 165:return"construct";case 164:return"call";case 161:return"constructor";case 154:return"type parameter";case 282:return"enum member";case 155:return e.hasModifier(Ke,92)?"property":"parameter";case 252:case 257:case 261:case 255:return"alias";case 208:var nt=e.getAssignmentDeclarationKind(Ke),tr=Ke.right;switch(nt){case 7:case 8:case 9:case 0:return"";case 1:case 2:var xa=Ee(tr);return xa===""?"const":xa;case 3:return e.isFunctionExpression(tr)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(tr)?"method":"property";case 6:return"local class";default:return e.assertType(nt),""}case 75:return e.isImportClause(Ke.parent)?"alias":"";default:return""}function Ba(ai){return e.isVarConst(ai)?"const":e.isLet(ai)?"let":"var"}}e.getNodeKind=Ee;function B(Ke){switch(Ke.kind){case 103:return!0;case 75:return e.identifierIsThisKeyword(Ke)&&Ke.parent.kind===155;default:return!1}}e.isThis=B;var V=/^\/\/\/\s*</;function m(Ke,Rn){var nt=e.getLineStarts(Rn),tr=Rn.getLineAndCharacterOfPosition(Ke).line;return nt[tr]}e.getLineStartPositionForPosition=m;function y(Ke,Rn){return b(Ke.pos,Ke.end,Rn)}e.rangeContainsRange=y;function L(Ke,Rn){return _(Ke,Rn.pos)&&_(Ke,Rn.end)}e.rangeContainsRangeExclusive=L;function C(Ke,Rn){return Ke.pos<=Rn&&Rn<=Ke.end}e.rangeContainsPosition=C;function _(Ke,Rn){return Ke.pos<Rn&&Rn<Ke.end}e.rangeContainsPositionExclusive=_;function b(Ke,Rn,nt){return Ke<=nt.pos&&Rn>=nt.end}e.startEndContainsRange=b;function D(Ke,Rn,nt){return Ke.pos<=Rn&&Ke.end>=nt}e.rangeContainsStartEnd=D;function T(Ke,Rn,nt){return N(Ke.pos,Ke.end,Rn,nt)}e.rangeOverlapsWithStartEnd=T;function Q(Ke,Rn,nt,tr){return N(Ke.getStart(Rn),Ke.end,nt,tr)}e.nodeOverlapsWithStartEnd=Q;function N(Ke,Rn,nt,tr){var xa=Math.max(Ke,nt),Ba=Math.min(Rn,tr);return xa<Ba}e.startEndOverlapsWithStartEnd=N;function X(Ke,Rn,nt){return e.Debug.assert(Ke.pos<=Rn),Rn<Ke.end||!pe(Ke,nt)}e.positionBelongsToNode=X;function pe(Ke,Rn){if(Ke===void 0||e.nodeIsMissing(Ke))return!1;switch(Ke.kind){case 244:case 245:case 247:case 192:case 188:case 172:case 222:case 249:case 250:case 256:case 260:return S(Ke,19,Rn);case 278:return pe(Ke.block,Rn);case 196:if(!Ke.arguments)return!0;case 195:case 199:case 181:return S(Ke,21,Rn);case 169:case 170:return pe(Ke.type,Rn);case 161:case 162:case 163:case 243:case 200:case 160:case 159:case 165:case 164:case 201:return Ke.body?pe(Ke.body,Rn):Ke.type?pe(Ke.type,Rn):U(Ke,21,Rn);case 248:return!!Ke.body&&pe(Ke.body,Rn);case 226:return Ke.elseStatement?pe(Ke.elseStatement,Rn):pe(Ke.thenStatement,Rn);case 225:return pe(Ke.expression,Rn)||U(Ke,26,Rn);case 191:case 189:case 194:case 153:case 174:return S(Ke,23,Rn);case 166:return Ke.type?pe(Ke.type,Rn):U(Ke,23,Rn);case 275:case 276:return!1;case 229:case 230:case 231:case 228:return pe(Ke.statement,Rn);case 227:return U(Ke,110,Rn)?S(Ke,21,Rn):pe(Ke.statement,Rn);case 171:return pe(Ke.exprName,Rn);case 203:case 202:case 204:case 211:case 212:var nt=Ke;return pe(nt.expression,Rn);case 197:return pe(Ke.template,Rn);case 210:var tr=e.lastOrUndefined(Ke.templateSpans);return pe(tr,Rn);case 220:return e.nodeIsPresent(Ke.literal);case 259:case 253:return e.nodeIsPresent(Ke.moduleSpecifier);case 206:return pe(Ke.operand,Rn);case 208:return pe(Ke.right,Rn);case 209:return pe(Ke.whenFalse,Rn);default:return!0}}function S(Ke,Rn,nt){var tr=Ke.getChildren(nt);if(tr.length){var xa=e.last(tr);if(xa.kind===Rn)return!0;if(xa.kind===26&&tr.length!==1)return tr[tr.length-2].kind===Rn}return!1}function v(Ke){var Rn=Ce(Ke);if(!Rn)return;var nt=Rn.getChildren(),tr=e.indexOfNode(nt,Ke);return{listItemIndex:tr,list:Rn}}e.findListItemInfo=v;function U(Ke,Rn,nt){return!!de(Ke,Rn,nt)}e.hasChildOfKind=U;function de(Ke,Rn,nt){return e.find(Ke.getChildren(nt),function(tr){return tr.kind===Rn})}e.findChildOfKind=de;function Ce(Ke){var Rn=e.find(Ke.parent.getChildren(),function(nt){return e.isSyntaxList(nt)&&y(nt,Ke)});return e.Debug.assert(!Rn||e.contains(Rn.getChildren(),Ke)),Rn}e.findContainingList=Ce;function Z(Ke,Rn){return Re(Ke,Rn,function(nt){return e.isPropertyNameLiteral(nt)||e.isKeyword(nt.kind)})}e.getTouchingPropertyName=Z;function Re(Ke,Rn,nt){return We(Ke,Rn,!1,nt,!1)}e.getTouchingToken=Re;function Ae(Ke,Rn){return We(Ke,Rn,!0,void 0,!1)}e.getTokenAtPosition=Ae;function We(Ke,Rn,nt,tr,xa){var Ba=Ke;e:for(;;){for(var ai=0,wi=Ba.getChildren(Ke);ai<wi.length;ai++){var Ai=wi[ai],Ei=nt?Ai.getFullStart():Ai.getStart(Ke,!0);if(Ei>Rn)break;var Pi=Ai.getEnd();if(Rn<Pi||Rn===Pi&&(Ai.kind===1||xa)){Ba=Ai;continue e}else if(tr&&Pi===Rn){var Xa=x(Rn,Ke,Ai);if(Xa&&tr(Xa))return Xa}}return Ba}}function be(Ke,Rn){var nt=Ae(Ke,Rn);return e.isToken(nt)&&Rn>nt.getStart(Ke)&&Rn<nt.getEnd()?nt:x(Rn,Ke)}e.findTokenOnLeftOfPosition=be;function Ge(Ke,Rn,nt){return tr(Rn);function tr(xa){return e.isToken(xa)&&xa.pos===Ke.end?xa:e.firstDefined(xa.getChildren(nt),function(Ba){var ai=Ba.pos<=Ke.pos&&Ba.end>Ke.end||Ba.pos===Ke.end;return ai&&he(Ba,nt)?tr(Ba):void 0})}}e.findNextToken=Ge;function x(Ke,Rn,nt,tr){var xa=Ba(nt||Rn);return e.Debug.assert(!(xa&&Xn(xa))),xa;function Ba(ai){if(j(ai)&&ai.kind!==1)return ai;for(var wi=ai.getChildren(Rn),Ai=0;Ai<wi.length;Ai++){var Ei=wi[Ai];if(Ke<Ei.end){var Pi=Ei.getStart(Rn,!tr),Xa=Pi>=Ke||!he(Ei,Rn)||Xn(Ei);if(Xa){var Ia=a(wi,Ai,Rn);return Ia&&Oe(Ia,Rn)}else return Ba(Ei)}}e.Debug.assert(nt!==void 0||ai.kind===288||ai.kind===1||e.isJSDocCommentContainingNode(ai));var ca=a(wi,wi.length,Rn);return ca&&Oe(ca,Rn)}}e.findPrecedingToken=x;function j(Ke){return e.isToken(Ke)&&!Xn(Ke)}function Oe(Ke,Rn){if(j(Ke))return Ke;var nt=Ke.getChildren(Rn),tr=a(nt,nt.length,Rn);return tr&&Oe(tr,Rn)}function a(Ke,Rn,nt){for(var tr=Rn-1;tr>=0;tr--){var xa=Ke[tr];if(Xn(xa))e.Debug.assert(tr>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(he(Ke[tr],nt))return Ke[tr]}}function en(Ke,Rn,nt){if(nt===void 0&&(nt=x(Rn,Ke)),nt&&e.isStringTextContainingNode(nt)){var tr=nt.getStart(Ke),xa=nt.getEnd();if(tr<Rn&&Rn<xa)return!0;if(Rn===xa)return!!nt.isUnterminated}return!1}e.isInString=en;function Pn(Ke,Rn){var nt=Ae(Ke,Rn);return nt?nt.kind===11||(nt.kind===29&&nt.parent.kind===11||(nt.kind===29&&nt.parent.kind===274||nt&&nt.kind===19&&nt.parent.kind===274))?!0:nt.kind===29&&nt.parent.kind===267:!1}e.isInsideJsxElementOrAttribute=Pn;function Xn(Ke){return e.isJsxText(Ke)&&Ke.containsOnlyTriviaWhiteSpaces}function ae(Ke,Rn){var nt=Ae(Ke,Rn);return e.isTemplateLiteralKind(nt.kind)&&Rn>nt.getStart(Ke)}e.isInTemplateString=ae;function ce(Ke,Rn){var nt=Ae(Ke,Rn);return e.isJsxText(nt)||nt.kind===18&&e.isJsxExpression(nt.parent)&&e.isJsxElement(nt.parent.parent)?!0:!!(nt.kind===29&&e.isJsxOpeningLikeElement(nt.parent)&&e.isJsxElement(nt.parent.parent))}e.isInJSXText=ce;function Le(Ke,Rn,nt){for(var tr=Ke.kind,xa=0;;){var Ba=x(Ke.getFullStart(),nt);if(!Ba)return;if(Ke=Ba,Ke.kind===Rn){if(xa===0)return Ke;xa--}else Ke.kind===tr&&xa++}}e.findPrecedingMatchingToken=Le;function Je(Ke,Rn,nt){return Rn?Ke.getNonNullableType():nt?Ke.getNonOptionalType():Ke}e.removeOptionality=Je;function Ze(Ke,Rn,nt){var tr=cn(Ke,Rn);return tr!==void 0&&(e.isPartOfTypeNode(tr.called)||Ue(tr.called,tr.nTypeArguments,nt).length!==0||Ze(tr.called,Rn,nt))}e.isPossiblyTypeArgumentPosition=Ze;function Ue(Ke,Rn,nt){var tr=nt.getTypeAtLocation(Ke);e.isOptionalChain(Ke.parent)&&(tr=Je(tr,!!Ke.parent.questionDotToken,!0));var xa=e.isNewExpression(Ke.parent)?tr.getConstructSignatures():tr.getCallSignatures();return xa.filter(function(Ba){return!!Ba.typeParameters&&Ba.typeParameters.length>=Rn})}e.getPossibleGenericSignatures=Ue;function cn(Ke,Rn){for(var nt=Ke,tr=0,xa=0;nt;){switch(nt.kind){case 29:if(nt=x(nt.getFullStart(),Rn),nt&&nt.kind===28&&(nt=x(nt.getFullStart(),Rn)),!nt||!e.isIdentifier(nt))return;if(!tr)return e.isDeclarationName(nt)?void 0:{called:nt,nTypeArguments:xa};tr--;break;case 49:tr=3;break;case 48:tr=2;break;case 31:tr++;break;case 19:if(nt=Le(nt,18,Rn),!nt)return;break;case 21:if(nt=Le(nt,20,Rn),!nt)return;break;case 23:if(nt=Le(nt,22,Rn),!nt)return;break;case 27:xa++;break;case 38:case 75:case 10:case 8:case 9:case 105:case 90:case 107:case 89:case 133:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(nt))break;return}nt=x(nt.getFullStart(),Rn)}return}e.getPossibleTypeArgumentsInfo=cn;function $e(Ke,Rn,nt){return e.formatting.getRangeOfEnclosingComment(Ke,Rn,void 0,nt)}e.isInComment=$e;function sn(Ke,Rn){var nt=Ae(Ke,Rn);return!!e.findAncestor(nt,e.isJSDoc)}e.hasDocComment=sn;function he(Ke,Rn){return Ke.kind===1?!!Ke.jsDoc:Ke.getWidth(Rn)!==0}function ke(Ke){var Rn=e.isDeclaration(Ke)?e.getCombinedModifierFlags(Ke):0,nt=[];return Rn&8&&nt.push("private"),Rn&16&&nt.push("protected"),Rn&4&&nt.push("public"),Rn&32&&nt.push("static"),Rn&128&&nt.push("abstract"),Rn&1&&nt.push("export"),Ke.flags&8388608&&nt.push("declare"),nt.length>0?nt.join(","):""}e.getNodeModifiers=ke;function G(Ke){return Ke.kind===168||Ke.kind===195?Ke.typeArguments:e.isFunctionLike(Ke)||Ke.kind===244||Ke.kind===245?Ke.typeParameters:void 0}e.getTypeArgumentOrTypeParameterList=G;function c(Ke){return Ke===2||Ke===3}e.isComment=c;function O(Ke){return!!(Ke===10||Ke===13||e.isTemplateLiteralKind(Ke))}e.isStringOrRegularExpressionOrTemplateLiteral=O;function ee(Ke){return 18<=Ke&&Ke<=74}e.isPunctuation=ee;function Te(Ke,Rn,nt){return e.isTemplateLiteralKind(Ke.kind)&&Ke.getStart(nt)<Rn&&Rn<Ke.end||!!Ke.isUnterminated&&Rn===Ke.end}e.isInsideTemplateLiteral=Te;function Ne(Ke){switch(Ke){case 118:case 116:case 117:return!0}return!1}e.isAccessibilityModifier=Ne;function ze(Ke){var Rn=e.clone(Ke);return e.setConfigFileInOptions(Rn,Ke&&Ke.configFile),Rn}e.cloneCompilerOptions=ze;function bn(Ke){if(Ke.kind===191||Ke.kind===192){if(Ke.parent.kind===208&&Ke.parent.left===Ke&&Ke.parent.operatorToken.kind===62)return!0;if(Ke.parent.kind===231&&Ke.parent.initializer===Ke)return!0;if(bn(Ke.parent.kind===279?Ke.parent.parent:Ke.parent))return!0}return!1}e.isArrayLiteralOrObjectLiteralDestructuringPattern=bn;function Sn(Ke,Rn){return Xe(Ke,Rn,!0)}e.isInReferenceComment=Sn;function Kn(Ke,Rn){return Xe(Ke,Rn,!1)}e.isInNonReferenceComment=Kn;function Xe(Ke,Rn,nt){var tr=$e(Ke,Rn,void 0);return!!tr&&nt===V.test(Ke.text.substring(tr.pos,tr.end))}function pn(Ke,Rn,nt){return e.createTextSpanFromBounds(Ke.getStart(Rn),(nt||Ke).getEnd())}e.createTextSpanFromNode=pn;function le(Ke,Rn){return e.createRange(Ke.getStart(Rn),Ke.end)}e.createTextRangeFromNode=le;function oe(Ke){return e.createTextSpanFromBounds(Ke.pos,Ke.end)}e.createTextSpanFromRange=oe;function kn(Ke){return e.createRange(Ke.start,Ke.start+Ke.length)}e.createTextRangeFromSpan=kn;function yn(Ke,Rn,nt){return ye(e.createTextSpan(Ke,Rn),nt)}e.createTextChangeFromStartLength=yn;function ye(Ke,Rn){return{span:Ke,newText:Rn}}e.createTextChange=ye,e.typeKeywords=[124,150,127,90,133,136,99,139,140,137,142,143,105,109,145,146,147];function mn(Ke){return e.contains(e.typeKeywords,Ke)}e.isTypeKeyword=mn;function un(Ke){return!!(Ke.flags&1536)&&Ke.name.charCodeAt(0)===34}e.isExternalModuleSymbol=un;function Mn(){var Ke=[];return function(Rn){var nt=e.getNodeId(Rn);return!Ke[nt]&&(Ke[nt]=!0)}}e.nodeSeenTracker=Mn;function tt(Ke){return Ke.getText(0,Ke.getLength())}e.getSnapshotText=tt;function Vn(Ke,Rn){for(var nt="",tr=0;tr<Rn;tr++)nt+=Ke;return nt}e.repeatString=Vn;function ut(Ke){return Ke.isTypeParameter()&&Ke.getConstraint()||Ke}e.skipConstraint=ut;function dt(Ke){return Ke.kind===153?e.isStringOrNumericLiteralLike(Ke.expression)?Ke.expression.text:void 0:e.getTextOfIdentifierOrLiteral(Ke)}e.getNameFromPropertyName=dt;function ot(Ke){return Ke.getSourceFiles().some(function(Rn){return!Rn.isDeclarationFile&&!Ke.isSourceFileFromExternalLibrary(Rn)&&!!Rn.externalModuleIndicator})}e.programContainsEs6Modules=ot;function ct(Ke){return!!Ke.module||Ke.target>=2||!!Ke.noEmit}e.compilerOptionsIndicateEs6Modules=ct;function wt(Ke){return Ke.useCaseSensitiveFileNames?Ke.useCaseSensitiveFileNames():!1}e.hostUsesCaseSensitiveFileNames=wt;function st(Ke){return e.createGetCanonicalFileName(wt(Ke))}e.hostGetCanonicalFileName=st;function qn(Ke,Rn,nt,tr){return Ke||Rn&&Rn.length?Ie(Ke,Rn,nt,tr):void 0}e.makeImportIfNecessary=qn;function Ie(Ke,Rn,nt,tr){return e.createImportDeclaration(void 0,void 0,Ke||Rn?e.createImportClause(Ke,Rn&&Rn.length?e.createNamedImports(Rn):void 0):void 0,typeof nt=="string"?De(nt,tr):nt)}e.makeImport=Ie;function De(Ke,Rn){return e.createLiteral(Ke,Rn===0)}e.makeStringLiteral=De;var _n;(function(Ke){Ke[Ke.Single=0]="Single",Ke[Ke.Double=1]="Double"})(_n=e.QuotePreference||(e.QuotePreference={}));function _t(Ke,Rn){return e.isStringDoubleQuoted(Ke,Rn)?1:0}e.quotePreferenceFromString=_t;function It(Ke,Rn){if(Rn.quotePreference&&Rn.quotePreference!=="auto")return Rn.quotePreference==="single"?0:1;var nt=Ke.imports&&e.find(Ke.imports,e.isStringLiteral);return nt?_t(nt,Ke):1}e.getQuotePreference=It;function Ht(Ke){switch(Ke){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(Ke)}}e.getQuoteFromPreference=Ht;function nr(Ke){var Rn=vr(Ke);return Rn===void 0?void 0:e.unescapeLeadingUnderscores(Rn)}e.symbolNameNoDefault=nr;function vr(Ke){return Ke.escapedName!=="default"?Ke.escapedName:e.firstDefined(Ke.declarations,function(Rn){var nt=e.getNameOfDeclaration(Rn);return nt&&nt.kind===75?nt.escapedText:void 0})}e.symbolEscapedNameNoDefault=vr;function Qr(Ke){return e.isBindingElement(Ke)&&e.isObjectBindingPattern(Ke.parent)&&e.isIdentifier(Ke.name)&&!Ke.propertyName}e.isObjectBindingElementWithoutPropertyName=Qr;function Wr(Ke,Rn){var nt=Ke.getTypeAtLocation(Rn.parent);return nt&&Ke.getPropertyOfType(nt,Rn.name.text)}e.getPropertySymbolFromBindingElement=Wr;function gt(Ke,Rn,nt,tr){var xa=e.createMap();return Ba(Ke);function Ba(ai){return!(ai.flags&(32|64))||!e.addToSeen(xa,e.getSymbolId(ai))?void 0:e.firstDefined(ai.declarations,function(wi){return e.firstDefined(e.getAllSuperTypeNodes(wi),function(Ai){var Ei=nt.getTypeAtLocation(Ai),Pi=Ei&&Ei.symbol&&nt.getPropertyOfType(Ei,Rn);return Ei&&Pi&&(e.firstDefined(nt.getRootSymbols(Pi),tr)||Ba(Ei.symbol))})})}}e.getPropertySymbolsFromBaseTypes=gt;function ba(Ke,Rn){return gt(Ke.parent,Ke.name,Rn,function(nt){return!0})||!1}e.isMemberSymbolInBaseType=ba;function kt(Ke,Rn,nt){if(!Ke)return;for(;Ke.parent;){if(e.isSourceFile(Ke.parent)||!jn(nt,Ke.parent,Rn))return Ke;Ke=Ke.parent}}e.getParentNodeInSpan=kt;function jn(Ke,Rn,nt){return e.textSpanContainsPosition(Ke,Rn.getStart(nt))&&Rn.getEnd()<=e.textSpanEnd(Ke)}function Ut(Ke,Rn){return Ke.modifiers&&e.find(Ke.modifiers,function(nt){return nt.kind===Rn})}e.findModifier=Ut;function ft(Ke,Rn,nt){var tr=e.findLast(Rn.statements,e.isAnyImportSyntax);tr?Ke.insertNodeAfter(Rn,tr,nt):Ke.insertNodeAtTopOfFile(Rn,nt,!0)}e.insertImport=ft;function Tt(Ke,Rn){return!!Ke&&!!Rn&&Ke.start===Rn.start&&Ke.length===Rn.length}e.textSpansEqual=Tt;function yt(Ke,Rn){return Ke.fileName===Rn.fileName&&Tt(Ke.textSpan,Rn.textSpan)}e.documentSpansEqual=yt;function vt(Ke,Rn){if(Ke){for(var nt=0;nt<Ke.length;nt++)if(Ke.indexOf(Ke[nt])===nt){var tr=Rn(Ke[nt],nt);if(tr)return tr}}return}e.forEachUnique=vt})(ln||(ln={})),function(e){function o(he){return he.declarations&&he.declarations.length>0&&he.declarations[0].kind===155}e.isFirstDeclarationOfSymbolParameter=o;var F=qe();function qe(){var he=e.defaultMaximumTruncationLength*10,ke,G,c,O;Sn();var ee=function(Xe){return Ne(Xe,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var Xe=ke.length&&ke[ke.length-1].text;return O>he&&Xe&&Xe!=="..."&&(e.isWhiteSpaceLike(Xe.charCodeAt(Xe.length-1))||ke.push(Fe(" ",e.SymbolDisplayPartKind.space)),ke.push(Fe("...",e.SymbolDisplayPartKind.punctuation))),ke},writeKeyword:function(Xe){return Ne(Xe,e.SymbolDisplayPartKind.keyword)},writeOperator:function(Xe){return Ne(Xe,e.SymbolDisplayPartKind.operator)},writePunctuation:function(Xe){return Ne(Xe,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(Xe){return Ne(Xe,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(Xe){return Ne(Xe,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(Xe){return Ne(Xe,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(Xe){return Ne(Xe,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(Xe){return Ne(Xe,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(Xe){return Ne(Xe,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:ze,writeLine:bn,write:ee,writeComment:ee,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 c},increaseIndent:function(){c++},decreaseIndent:function(){c--},clear:Sn,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function Te(){if(O>he)return;if(G){var Kn=e.getIndentString(c);Kn&&(O+=Kn.length,ke.push(Fe(Kn,e.SymbolDisplayPartKind.space))),G=!1}}function Ne(Kn,Xe){if(O>he)return;Te(),O+=Kn.length,ke.push(Fe(Kn,Xe))}function ze(Kn,Xe){if(O>he)return;Te(),O+=Kn.length,ke.push(Se(Kn,Xe))}function bn(){if(O>he)return;O+=1,ke.push(re()),G=!0}function Sn(){ke=[],G=!0,c=0,O=0}}function Se(he,ke){return Fe(he,G(ke));function G(c){var O=c.flags;return O&3?o(c)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:O&4||(O&32768||O&65536)?e.SymbolDisplayPartKind.propertyName:O&8?e.SymbolDisplayPartKind.enumMemberName:O&16?e.SymbolDisplayPartKind.functionName:O&32?e.SymbolDisplayPartKind.className:O&64?e.SymbolDisplayPartKind.interfaceName:O&384?e.SymbolDisplayPartKind.enumName:O&1536?e.SymbolDisplayPartKind.moduleName:O&8192?e.SymbolDisplayPartKind.methodName:O&262144?e.SymbolDisplayPartKind.typeParameterName:O&524288||O&2097152?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}}e.symbolPart=Se;function Fe(he,ke){return{text:he,kind:e.SymbolDisplayPartKind[ke]}}e.displayPart=Fe;function He(){return Fe(" ",e.SymbolDisplayPartKind.space)}e.spacePart=He;function ve(he){return Fe(e.tokenToString(he),e.SymbolDisplayPartKind.keyword)}e.keywordPart=ve;function ie(he){return Fe(e.tokenToString(he),e.SymbolDisplayPartKind.punctuation)}e.punctuationPart=ie;function d(he){return Fe(e.tokenToString(he),e.SymbolDisplayPartKind.operator)}e.operatorPart=d;function H(he){var ke=e.stringToToken(he);return ke===void 0?Pe(he):ve(ke)}e.textOrKeywordPart=H;function Pe(he){return Fe(he,e.SymbolDisplayPartKind.text)}e.textPart=Pe;var I=`\r
`;function _e(he,ke){return ke&&ke.newLineCharacter||he.getNewLine&&he.getNewLine()||I}e.getNewLineOrDefaultFromHost=_e;function re(){return Fe(`
`,e.SymbolDisplayPartKind.lineBreak)}e.lineBreakPart=re;function se(he){try{return he(F),F.displayParts()}finally{F.clear()}}e.mapToDisplayParts=se;function w(he,ke,G,c){return c===void 0&&(c=0),se(function(O){he.writeType(ke,G,c|1024|16384,O)})}e.typeToDisplayParts=w;function k(he,ke,G,c,O){return O===void 0&&(O=0),se(function(ee){he.writeSymbol(ke,G,c,O|8,ee)})}e.symbolToDisplayParts=k;function P(he,ke,G,c){return c===void 0&&(c=0),c|=16384|1024|32|8192,se(function(O){he.writeSignature(ke,G,c,void 0,O)})}e.signatureToDisplayParts=P;function h(he){return!!he.parent&&e.isImportOrExportSpecifier(he.parent)&&he.parent.propertyName===he}e.isImportOrExportSpecifierName=h;function Y(he,ke){for(var G=[],c=2;c<arguments.length;c++)G[c-2]=arguments[c];var O=ne(he,ke);return e.some(G,function(ee){return ee===O})}e.scriptKindIs=Y;function ne(he,ke){return e.ensureScriptKind(he,ke&&ke.getScriptKind&&ke.getScriptKind(he))}e.getScriptKind=ne;function $(he,ke){for(var G=he;fe(G)||J(G)&&G.target;)J(G)&&G.target?G=G.target:G=e.skipAlias(G,ke);return G}e.getSymbolTarget=$;function J(he){return(he.flags&33554432)!==0}function fe(he){return(he.flags&2097152)!==0}function R(he,ke){return e.getSymbolId(e.skipAlias(he,ke))}e.getUniqueSymbolId=R;function K(he,ke){for(;e.isWhiteSpaceLike(he.charCodeAt(ke));)ke+=1;return ke}e.getFirstNonSpaceCharacterPosition=K;function z(he,ke){for(;ke>-1&&e.isWhiteSpaceSingleLine(he.charCodeAt(ke));)ke-=1;return ke+1}e.getPrecedingNonSpaceCharacterPosition=z;function Ee(he,ke){ke===void 0&&(ke=!0);var G=he&&V(he);return G&&!ke&&y(G),G}e.getSynthesizedDeepClone=Ee;function B(he,ke,G,c,O){ke===void 0&&(ke=!0);var ee;if(G&&c&&e.isBindingElement(he)&&e.isIdentifier(he.name)&&e.isObjectBindingPattern(he.parent)){var Te=c.getSymbolAtLocation(he.name),Ne=Te&&G.get(String(e.getSymbolId(Te)));Ne&&Ne.text!==(he.name||he.propertyName).getText()&&(ee=e.createBindingElement(he.dotDotDotToken,he.propertyName||he.name,Ne,he.initializer))}else if(G&&c&&e.isIdentifier(he)){var Te=c.getSymbolAtLocation(he),Ne=Te&&G.get(String(e.getSymbolId(Te)));Ne&&(ee=e.createIdentifier(Ne.text))}return ee||(ee=V(he,G,c,O)),ee&&!ke&&y(ee),O&&ee&&O(he,ee),ee}e.getSynthesizedDeepCloneWithRenames=B;function V(he,ke,G,c){var O=ke||G||c?e.visitEachChild(he,Te,e.nullTransformationContext):e.visitEachChild(he,Ee,e.nullTransformationContext);if(O===he){var ee=e.getSynthesizedClone(he);return e.isStringLiteral(ee)?ee.textSourceNode=he:e.isNumericLiteral(ee)&&(ee.numericLiteralFlags=he.numericLiteralFlags),e.setTextRange(ee,he)}return O.parent=void 0,O;function Te(Ne){return B(Ne,!0,ke,G,c)}}function m(he,ke){return ke===void 0&&(ke=!0),he&&e.createNodeArray(he.map(function(G){return Ee(G,ke)}),he.hasTrailingComma)}e.getSynthesizedDeepClones=m;function y(he){L(he),C(he)}e.suppressLeadingAndTrailingTrivia=y;function L(he){_(he,512,b)}e.suppressLeadingTrivia=L;function C(he){_(he,1024,e.getLastChild)}e.suppressTrailingTrivia=C;function _(he,ke,G){e.addEmitFlags(he,ke);var c=G(he);c&&_(c,ke,G)}function b(he){return he.forEachChild(function(ke){return ke})}function D(he,ke){for(var G=he,c=1;!e.isFileLevelUniqueName(ke,G);c++)G=he+"_"+c;return G}e.getUniqueName=D;function T(he,ke,G,c){for(var O=0,ee=-1,Te=0,Ne=he;Te<Ne.length;Te++){var ze=Ne[Te],bn=ze.fileName,Sn=ze.textChanges;e.Debug.assert(bn===ke);for(var Kn=0,Xe=Sn;Kn<Xe.length;Kn++){var pn=Xe[Kn],le=pn.span,oe=pn.newText,kn=S(oe,G);if(kn!==-1&&(ee=le.start+O+kn,!c))return ee;O+=oe.length-le.length}}return e.Debug.assert(c),e.Debug.assert(ee>=0),ee}e.getRenameLocation=T;function Q(he,ke,G,c,O){e.forEachLeadingCommentRange(G.text,he.pos,pe(ke,G,c,O,e.addSyntheticLeadingComment))}e.copyLeadingComments=Q;function N(he,ke,G,c,O){e.forEachTrailingCommentRange(G.text,he.end,pe(ke,G,c,O,e.addSyntheticTrailingComment))}e.copyTrailingComments=N;function X(he,ke,G,c,O){e.forEachTrailingCommentRange(G.text,he.pos,pe(ke,G,c,O,e.addSyntheticLeadingComment))}e.copyTrailingAsLeadingComments=X;function pe(he,ke,G,c,O){return function(ee,Te,Ne,ze){Ne===3?(ee+=2,Te-=2):ee+=2,O(he,G||Ne,ke.text.slice(ee,Te),c!==void 0?c:ze)}}function S(he,ke){if(e.startsWith(he,ke))return 0;var G=he.indexOf(" "+ke);return G===-1&&(G=he.indexOf("."+ke)),G===-1&&(G=he.indexOf('"'+ke)),G===-1?-1:G+1}function v(he,ke){var G=he.parent;switch(G.kind){case 196:return ke.getContextualType(G);case 208:{var c=G,O=c.left,ee=c.operatorToken,Te=c.right;return de(ee.kind)?ke.getTypeAtLocation(he===Te?O:Te):ke.getContextualType(he)}case 275:return G.expression===he?Re(G,ke):void 0;default:return ke.getContextualType(he)}}e.getContextualTypeFromParent=v;function U(he,ke){if(/^\d+$/.test(he))return he;var G=ke.quotePreference||"auto",c=JSON.stringify(he);switch(G){case"auto":case"double":return c;case"single":return"'"+e.stripQuotes(c).replace("'","\\'").replace('\\"','"')+"'";default:return e.Debug.assertNever(G)}}e.quote=U;function de(he){switch(he){case 36:case 34:case 37:case 35:return!0;default:return!1}}e.isEqualityOperatorKind=de;function Ce(he){switch(he.kind){case 10:case 14:case 210:case 197:return!0;default:return!1}}e.isStringLiteralOrTemplate=Ce;function Z(he){return!!he.getStringIndexType()||!!he.getNumberIndexType()}e.hasIndexSignature=Z;function Re(he,ke){return ke.getTypeAtLocation(he.parent.parent.expression)}e.getSwitchedType=Re;function Ae(he,ke,G,c){var O=G.getTypeChecker(),ee=!0,Te=function(){ee=!1},Ne=O.typeToTypeNode(he,ke,void 0,{trackSymbol:function(bn,Sn,Kn){ee=ee&&O.isSymbolAccessible(bn,Sn,Kn,!1).accessibility===0},reportInaccessibleThisError:Te,reportPrivateInBaseOfClassExpression:Te,reportInaccessibleUniqueSymbolError:Te,moduleResolverHost:{readFile:c.readFile,fileExists:c.fileExists,directoryExists:c.directoryExists,getSourceFiles:G.getSourceFiles,getCurrentDirectory:G.getCurrentDirectory,getCommonSourceDirectory:G.getCommonSourceDirectory}});return ee?Ne:void 0}e.getTypeNodeIfAccessible=Ae;function We(he){return he===164||he===165||he===166||he===157||he===159}e.syntaxRequiresTrailingCommaOrSemicolonOrASI=We;function be(he){return he===243||he===161||he===160||he===162||he===163}e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=be;function Ge(he){return he===248}e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Ge;function x(he){return he===224||he===225||he===227||he===232||he===233||he===234||he===238||he===240||he===158||he===246||he===253||he===252||he===259||he===251||he===258}e.syntaxRequiresTrailingSemicolonOrASI=x,e.syntaxMayBeASICandidate=e.or(We,be,Ge,x);function j(he,ke){var G=he.getLastToken(ke);if(G&&G.kind===26)return!1;if(We(he.kind)){if(G&&G.kind===27)return!1}else if(Ge(he.kind)){var c=e.last(he.getChildren(ke));if(c&&e.isModuleBlock(c))return!1}else if(be(he.kind)){var c=e.last(he.getChildren(ke));if(c&&e.isFunctionBlock(c))return!1}else if(!x(he.kind))return!1;if(he.kind===227)return!0;var O=e.findAncestor(he,function(ze){return!ze.parent}),ee=e.findNextToken(he,O,ke);if(!ee||ee.kind===19)return!0;var Te=ke.getLineAndCharacterOfPosition(he.getEnd()).line,Ne=ke.getLineAndCharacterOfPosition(ee.getStart(ke)).line;return Te!==Ne}e.isASICandidate=j;function Oe(he){var ke=0,G=0,c=5;return e.forEachChild(he,function O(ee){if(x(ee.kind)){var Te=ee.getLastToken(he);Te&&Te.kind===26?ke++:G++}return ke+G>=c?!0:e.forEachChild(ee,O)}),ke===0&&G<=1?!0:ke/G>1/c}e.probablyUsesSemicolons=Oe;function a(he,ke){return ce(he,he.getDirectories,ke)||[]}e.tryGetDirectories=a;function en(he,ke,G,c,O){return ce(he,he.readDirectory,ke,G,c,O)||e.emptyArray}e.tryReadDirectory=en;function Pn(he,ke){return ce(he,he.fileExists,ke)}e.tryFileExists=Pn;function Xn(he,ke){return ae(function(){return e.directoryProbablyExists(ke,he)})||!1}e.tryDirectoryExists=Xn;function ae(he){try{return he()}catch(ke){return}}e.tryAndIgnoreErrors=ae;function ce(he,ke){for(var G=[],c=2;c<arguments.length;c++)G[c-2]=arguments[c];return ae(function(){return ke&&ke.apply(he,G)})}e.tryIOAndConsumeErrors=ce;function Le(he,ke,G){var c=[];return e.forEachAncestorDirectory(he,function(O){if(O===G)return!0;var ee=e.combinePaths(O,"package.json");Pn(ke,ee)&&c.push(ee)}),c}e.findPackageJsons=Le;function Je(he,ke){var G;return e.forEachAncestorDirectory(he,function(c){if(c==="node_modules")return!0;if(G=e.findConfigFile(c,function(O){return Pn(ke,O)},"package.json"),G)return!0}),G}e.findPackageJson=Je;function Ze(he,ke){if(!ke.fileExists)return[];var G=[];return e.forEachAncestorDirectory(e.getDirectoryPath(he),function(c){var O=e.combinePaths(c,"package.json");if(ke.fileExists(O)){var ee=Ue(O,ke);ee&&G.push(ee)}}),G}e.getPackageJsonsVisibleToFile=Ze;function Ue(he,ke){if(!ke.readFile)return;var G=["dependencies","devDependencies","optionalDependencies","peerDependencies"],c=ke.readFile(he);if(!c)return;var O=cn(c);if(!O)return!1;for(var ee={},Te=0,Ne=G;Te<Ne.length;Te++){var ze=Ne[Te],bn=O[ze];if(!bn)continue;var Sn=e.createMap();for(var Kn in bn)Sn.set(Kn,bn[Kn]);ee[ze]=Sn}var Xe=[[1,ee.dependencies],[2,ee.devDependencies],[8,ee.optionalDependencies],[4,ee.peerDependencies]];return ma(ma({},ee),{fileName:he,get:pn,has:function(oe,kn){return!!pn(oe,kn)}});function pn(le,oe){oe===void 0&&(oe=15);for(var kn=0,yn=Xe;kn<yn.length;kn++){var ye=yn[kn],mn=ye[0],un=ye[1];if(un&&oe&mn){var Mn=un.get(le);if(Mn!==void 0)return Mn}}}}e.createPackageJsonInfo=Ue;function cn(he){try{return JSON.parse(he)}catch(ke){return}}function $e(he){return e.some(he.imports,function(ke){var G=ke.text;return e.JsTyping.nodeCoreModules.has(G)})}e.consumesNodeCoreModules=$e;function sn(he){return e.contains(e.getPathComponents(he),"node_modules")}e.isInsideNodeModules=sn}(ln||(ln={}));var ln;(function(e){function o(){var ne=e.createScanner(99,!1);function $(fe,R,K){return Fe(J(fe,R,K),fe)}function J(fe,R,K){var z=0,Ee=0,B=[],V=ie(R),m=V.prefix,y=V.pushTemplate;fe=m+fe;var L=m.length;y&&B.push(15),ne.setText(fe);var C=0,_=[],b=0;do{z=ne.scan(),e.isTrivia(z)||(Q(),Ee=z);var D=ne.getTextPos();if(Se(ne.getTokenPos(),D,L,Pe(z),_),D>=fe.length){var T=qe(ne,z,e.lastOrUndefined(B));T!==void 0&&(C=T)}}while(z!==1);function Q(){switch(z){case 43:case 67:!F[Ee]&&ne.reScanSlashToken()===13&&(z=13);break;case 29:Ee===75&&b++;break;case 31:b>0&&b--;break;case 124:case 142:case 139:case 127:case 143:b>0&&!K&&(z=75);break;case 15:B.push(z);break;case 18:B.length>0&&B.push(z);break;case 19:if(B.length>0){var N=e.lastOrUndefined(B);N===15?(z=ne.reScanTemplateToken(),z===17?B.pop():e.Debug.assertEqual(z,16,"Should have been a template middle.")):(e.Debug.assertEqual(N,18,"Should have been an open brace"),B.pop())}break;default:if(!e.isKeyword(z))break;(Ee===24||e.isKeyword(Ee)&&e.isKeyword(z)&&!ve(Ee,z))&&(z=75)}}return{endOfLineState:C,spans:_}}return{getClassificationsForLine:$,getEncodedLexicalClassifications:J}}e.createClassifier=o;var F=e.arrayToNumericMap([75,10,8,9,13,103,45,46,21,23,19,105,90],function(ne){return ne},function(){return!0});function qe(ne,$,J){switch($){case 10:{if(!ne.isUnterminated())return;for(var fe=ne.getTokenText(),R=fe.length-1,K=0;fe.charCodeAt(R-K)===92;)K++;return(K&1)===0?void 0:fe.charCodeAt(0)===34?3:2}case 3:return ne.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind($)){if(!ne.isUnterminated())return;switch($){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+$)}}return J===15?6:void 0}}function Se(ne,$,J,fe,R){if(fe===8)return;ne===0&&J>0&&(ne+=J);var K=$-ne;K>0&&R.push(ne-J,K,fe)}function Fe(ne,$){for(var J=[],fe=ne.spans,R=0,K=0;K<fe.length;K+=3){var z=fe[K],Ee=fe[K+1],B=fe[K+2];if(R>=0){var V=z-R;V>0&&J.push({length:V,classification:e.TokenClass.Whitespace})}J.push({length:Ee,classification:He(B)}),R=z+Ee}var m=$.length-R;return m>0&&J.push({length:m,classification:e.TokenClass.Whitespace}),{entries:J,finalLexState:ne.endOfLineState}}function He(ne){switch(ne){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 ve(ne,$){if(!e.isAccessibilityModifier(ne))return!0;switch($){case 130:case 141:case 128:case 119:return!0;default:return!1}}function ie(ne){switch(ne){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(ne)}}function d(ne){switch(ne){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 97:case 96:case 122:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 73:case 72:case 74:case 69:case 70:case 71:case 63:case 64:case 65:case 67:case 68:case 62:case 27:case 60:return!0;default:return!1}}function H(ne){switch(ne){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function Pe(ne){if(e.isKeyword(ne))return 3;if(d(ne)||H(ne))return 5;if(ne>=18&&ne<=74)return 10;switch(ne){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 75:default:return e.isTemplateLiteralKind(ne)?6:2}}function I(ne,$,J,fe,R){return P(re(ne,$,J,fe,R))}e.getSemanticClassifications=I;function _e(ne,$){switch($){case 248:case 244:case 245:case 243:ne.throwIfCancellationRequested()}}function re(ne,$,J,fe,R){var K=[];return J.forEachChild(function Ee(B){if(!B||!e.textSpanIntersectsWith(R,B.pos,B.getFullWidth()))return;if(_e($,B.kind),e.isIdentifier(B)&&!e.nodeIsMissing(B)&&fe.has(B.escapedText)){var V=ne.getSymbolAtLocation(B),m=V&&se(V,e.getMeaningFromLocation(B),ne);m&&z(B.getStart(J),B.getEnd(),m)}B.forEachChild(Ee)}),{spans:K,endOfLineState:0};function z(Ee,B,V){var m=B-Ee;e.Debug.assert(m>0,"Classification had non-positive length of "+m),K.push(Ee),K.push(m),K.push(V)}}e.getEncodedSemanticClassifications=re;function se(ne,$,J){var fe=ne.getFlags();return(fe&2885600)===0?void 0:fe&32?11:fe&384?12:fe&524288?16:fe&1536?$&4||$&1&&w(ne)?14:void 0:fe&2097152?se(J.getAliasedSymbol(ne),$,J):$&2?fe&64?13:fe&262144?15:void 0:void 0}function w(ne){return e.some(ne.declarations,function($){return e.isModuleDeclaration($)&&e.getModuleInstanceState($)===1})}function k(ne){switch(ne){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 P(ne){e.Debug.assert(ne.spans.length%3===0);for(var $=ne.spans,J=[],fe=0;fe<$.length;fe+=3)J.push({textSpan:e.createTextSpan($[fe],$[fe+1]),classificationType:k($[fe+2])});return J}function h(ne,$,J){return P(Y(ne,$,J))}e.getSyntacticClassifications=h;function Y(ne,$,J){var fe=J.start,R=J.length,K=e.createScanner(99,!1,$.languageVariant,$.text),z=e.createScanner(99,!1,$.languageVariant,$.text),Ee=[];return X($),{spans:Ee,endOfLineState:0};function B(pe,S,v){Ee.push(pe),Ee.push(S),Ee.push(v)}function V(pe){for(K.setTextPos(pe.pos);;){var S=K.getTextPos();if(!e.couldStartTrivia($.text,S))return S;var v=K.scan(),U=K.getTextPos(),de=U-S;if(!e.isTrivia(v))return S;switch(v){case 4:case 5:continue;case 2:case 3:m(pe,v,S,de),K.setTextPos(U);continue;case 7:var Ce=$.text,Z=Ce.charCodeAt(S);if(Z===60||Z===62){B(S,de,1);continue}e.Debug.assert(Z===124||Z===61),b(Ce,S,U);break;case 6:break;default:e.Debug.assertNever(v)}}}function m(pe,S,v,U){if(S===3){var de=e.parseIsolatedJSDocComment($.text,v,U);if(de&&de.jsDoc){de.jsDoc.parent=pe,L(de.jsDoc);return}}else if(S===2&&C(v,U))return;y(v,U)}function y(pe,S){B(pe,S,1)}function L(pe){var S=pe.pos;if(pe.tags)for(var v=0,U=pe.tags;v<U.length;v++){var de=U[v];de.pos!==S&&y(S,de.pos-S),B(de.pos,1,10),B(de.tagName.pos,de.tagName.end-de.tagName.pos,18),S=de.tagName.end;switch(de.kind){case 310:Ce(de);break;case 314:_(de),S=de.end;break;case 313:X(de.typeExpression),S=de.end;break;case 311:X(de.typeExpression),S=de.end;break}}S!==pe.end&&y(S,pe.end-S);return;function Ce(Z){Z.isNameFirst&&(y(S,Z.name.pos-S),B(Z.name.pos,Z.name.end-Z.name.pos,17),S=Z.name.end),Z.typeExpression&&(y(S,Z.typeExpression.pos-S),X(Z.typeExpression),S=Z.typeExpression.end),Z.isNameFirst||(y(S,Z.name.pos-S),B(Z.name.pos,Z.name.end-Z.name.pos,17),S=Z.name.end)}}function C(pe,S){var v=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,U=/(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,de=$.text.substr(pe,S),Ce=v.exec(de);if(!Ce)return!1;if(!Ce[3]||!(Ce[3]in e.commentPragmas))return!1;var Z=pe;y(Z,Ce[1].length),Z+=Ce[1].length,B(Z,Ce[2].length,10),Z+=Ce[2].length,B(Z,Ce[3].length,21),Z+=Ce[3].length;for(var Re=Ce[4],Ae=Z;;){var We=U.exec(Re);if(!We)break;var be=Z+We.index;be>Ae&&(y(Ae,be-Ae),Ae=be),B(Ae,We[1].length,22),Ae+=We[1].length,We[2].length&&(y(Ae,We[2].length),Ae+=We[2].length),B(Ae,We[3].length,5),Ae+=We[3].length,We[4].length&&(y(Ae,We[4].length),Ae+=We[4].length),B(Ae,We[5].length,24),Ae+=We[5].length}Z+=Ce[4].length,Z>Ae&&y(Ae,Z-Ae),Ce[5]&&(B(Z,Ce[5].length,10),Z+=Ce[5].length);var Ge=pe+S;return Z<Ge&&y(Z,Ge-Z),!0}function _(pe){for(var S=0,v=pe.getChildren();S<v.length;S++){var U=v[S];X(U)}}function b(pe,S,v){var U;for(U=S;U<v&&!e.isLineBreak(pe.charCodeAt(U));U++);for(B(S,U-S,1),z.setTextPos(U);z.getTextPos()<v;)D()}function D(){var pe=z.getTextPos(),S=z.scan(),v=z.getTextPos(),U=N(S);U&&B(pe,v-pe,U)}function T(pe){if(e.isJSDoc(pe))return!0;if(e.nodeIsMissing(pe))return!0;var S=Q(pe);if(!e.isToken(pe)&&pe.kind!==11&&S===void 0)return!1;var v=pe.kind===11?pe.pos:V(pe),U=pe.end-v;if(e.Debug.assert(U>=0),U>0){var de=S||N(pe.kind,pe);de&&B(v,U,de)}return!0}function Q(pe){switch(pe.parent&&pe.parent.kind){case 266:if(pe.parent.tagName===pe)return 19;break;case 267:if(pe.parent.tagName===pe)return 20;break;case 265:if(pe.parent.tagName===pe)return 21;break;case 271:if(pe.parent.name===pe)return 22;break}return}function N(pe,S){if(e.isKeyword(pe))return 3;if((pe===29||pe===31)&&(S&&e.getTypeArgumentOrTypeParameterList(S.parent)))return 10;if(e.isPunctuation(pe)){if(S){var v=S.parent;if(pe===62&&(v.kind===241||v.kind===158||v.kind===155||v.kind===271))return 5;if(v.kind===208||v.kind===206||v.kind===207||v.kind===209)return 5}return 10}else{if(pe===8)return 4;if(pe===9)return 25;if(pe===10)return S&&S.parent.kind===271?24:6;if(pe===13)return 6;if(e.isTemplateLiteralKind(pe))return 6;if(pe===11)return 23;if(pe===75){if(S)switch(S.parent.kind){case 244:return S.parent.name===S?11:void 0;case 154:return S.parent.name===S?15:void 0;case 245:return S.parent.name===S?13:void 0;case 247:return S.parent.name===S?12:void 0;case 248:return S.parent.name===S?14:void 0;case 155:return S.parent.name===S?e.isThisIdentifier(S)?3:17:void 0}return 2}}}function X(pe){if(!pe)return;if(e.decodedTextSpanIntersectsWith(fe,R,pe.pos,pe.getFullWidth())){_e(ne,pe.kind);for(var S=0,v=pe.getChildren($);S<v.length;S++){var U=v[S];T(U)||X(U)}}}}e.getEncodedSyntacticClassifications=Y})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe;(function(Se){function Fe(v,U,de,Ce,Z,Re,Ae,We){if(e.isInReferenceComment(v,U)){var be=b(v,U,Z,Re);return be&&d(be)}if(e.isInString(v,U,de))return!de||!e.isStringLiteralLike(de)?void 0:He(I(v,de,U,Ce,Z,Re),v,Ce,Ae,We)}Se.getStringLiteralCompletions=Fe;function He(v,U,de,Ce,Z){if(v===void 0)return;switch(v.kind){case 0:return d(v.paths);case 1:{var Re=[];return F.getCompletionEntriesFromSymbols(v.symbols,Re,U,U,de,99,Ce,4,Z),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:v.hasIndexSignature,entries:Re}}case 2:{var Re=v.types.map(function(We){return{name:We.value,kindModifiers:"",kind:"string",sortText:"0"}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:v.isNewIdentifier,entries:Re}}default:return e.Debug.assertNever(v)}}function ve(v,U,de,Ce,Z,Re,Ae,We){if(!Ce||!e.isStringLiteralLike(Ce))return;var be=I(U,Ce,de,Z,Re,Ae);return be&&ie(v,Ce,be,U,Z,We)}Se.getStringLiteralCompletionDetails=ve;function ie(v,U,de,Ce,Z,Re){switch(de.kind){case 0:{var Ae=e.find(de.paths,function(We){return We.name===v});return Ae&&F.createCompletionDetails(v,H(Ae.extension),Ae.kind,[e.textPart(v)])}case 1:{var Ae=e.find(de.symbols,function(be){return be.name===v});return Ae&&F.createCompletionDetailsForSymbol(Ae,Z,Ce,U,Re)}case 2:return e.find(de.types,function(We){return We.value===v})?F.createCompletionDetails(v,"","type",[e.textPart(v)]):void 0;default:return e.Debug.assertNever(de)}}function d(v){var U=!1,de=!0,Ce=v.map(function(Z){var Re=Z.name,Ae=Z.kind,We=Z.span,be=Z.extension;return{name:Re,kind:Ae,kindModifiers:H(be),sortText:F.SortText.LocationPriority,replacementSpan:We}});return{isGlobalCompletion:U,isMemberCompletion:!1,isNewIdentifierLocation:de,entries:Ce}}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".tsbuildinfo":return e.Debug.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return e.Debug.assertNever(v)}}var Pe;(function(v){v[v.Paths=0]="Paths",v[v.Properties=1]="Properties",v[v.Types=2]="Types"})(Pe||(Pe={}));function I(v,U,de,Ce,Z,Re){var Ae=U.parent;switch(Ae.kind){case 186:switch(Ae.parent.kind){case 168:return{kind:2,types:w(Ce.getTypeArgumentConstraint(Ae)),isNewIdentifier:!1};case 184:return se(Ce.getTypeFromTypeNode(Ae.parent.objectType));case 187:return{kind:0,paths:Y(v,U,Z,Re,Ce)};case 177:{if(!e.isTypeReferenceNode(Ae.parent.parent))return;var We=_e(Ae.parent,Ae),be=w(Ce.getTypeArgumentConstraint(Ae.parent)).filter(function(en){return!e.contains(We,en.value)});return{kind:2,types:be,isNewIdentifier:!1}}default:return}case 279:return e.isObjectLiteralExpression(Ae.parent)&&Ae.name===U?se(Ce.getContextualType(Ae.parent)):a();case 194:{var Ge=Ae,x=Ge.expression,j=Ge.argumentExpression;return U===j?se(Ce.getTypeAtLocation(x)):void 0}case 195:case 196:if(!e.isRequireCall(Ae,!1)&&!e.isImportCall(Ae)){var Oe=e.SignatureHelp.getArgumentInfoForCompletions(U,de,v);return Oe?re(Oe,Ce):a()}case 253:case 259:case 263:return{kind:0,paths:Y(v,U,Z,Re,Ce)};default:return a()}function a(){return{kind:2,types:w(e.getContextualTypeFromParent(U,Ce)),isNewIdentifier:!1}}}function _e(v,U){return e.mapDefined(v.types,function(de){return de!==U&&e.isLiteralTypeNode(de)&&e.isStringLiteral(de.literal)?de.literal.text:void 0})}function re(v,U){var de=!1,Ce=e.createMap(),Z=[];U.getResolvedSignature(v.invocation,Z,v.argumentCount);var Re=e.flatMap(Z,function(Ae){if(!e.signatureHasRestParameter(Ae)&&v.argumentCount>Ae.parameters.length)return;var We=U.getParameterType(Ae,v.argumentIndex);return de=de||!!(We.flags&4),w(We,Ce)});return{kind:2,types:Re,isNewIdentifier:de}}function se(v){return v&&{kind:1,symbols:v.getApparentProperties(),hasIndexSignature:e.hasIndexSignature(v)}}function w(v,U){return U===void 0&&(U=e.createMap()),v?(v=e.skipConstraint(v),v.isUnion()?e.flatMap(v.types,function(de){return w(de,U)}):v.isStringLiteral()&&!(v.flags&1024)&&e.addToSeen(U,v.value)?[v]:e.emptyArray):e.emptyArray}function k(v,U,de){return{name:v,kind:U,extension:de}}function P(v){return k(v,"directory",void 0)}function h(v,U,de){var Ce=Q(v,U);return de.map(function(Z){var Re=Z.name,Ae=Z.kind,We=Z.extension;return{name:Re,kind:Ae,extension:We,span:Ce}})}function Y(v,U,de,Ce,Z){return h(U.text,U.getStart(v)+1,ne(v,U,de,Ce,Z))}function ne(v,U,de,Ce,Z){var Re=e.normalizeSlashes(U.text),Ae=v.path,We=e.getDirectoryPath(Ae);return N(Re)||!de.baseUrl&&(e.isRootedDiskPath(Re)||e.isUrl(Re))?J(Re,We,de,Ce,Ae):B(Re,We,de,Ce,Z)}function $(v,U){return U===void 0&&(U=!1),{extensions:fe(v),includeExtensions:U}}function J(v,U,de,Ce,Z){var Re=$(de);return de.rootDirs?K(de.rootDirs,v,U,Re,de,Ce,Z):z(v,U,Re,Ce,Z)}function fe(v){var U=e.getSupportedExtensions(v);return v.resolveJsonModule&&e.getEmitModuleResolutionKind(v)===e.ModuleResolutionKind.NodeJs?U.concat(".json"):U}function R(v,U,de,Ce){v=v.map(function(Re){return e.normalizePath(e.isRootedDiskPath(Re)?Re:e.combinePaths(U,Re))});var Z=e.firstDefined(v,function(Re){return e.containsPath(Re,de,U,Ce)?de.substr(Re.length):void 0});return e.deduplicate(Or(v.map(function(Re){return e.combinePaths(Re,Z)}),[de]),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function K(v,U,de,Ce,Z,Re,Ae){var We=Z.project||Re.getCurrentDirectory(),be=!(Re.useCaseSensitiveFileNames&&Re.useCaseSensitiveFileNames()),Ge=R(v,We,de,be);return e.flatMap(Ge,function(x){return z(U,x,Ce,Re,Ae)})}function z(v,U,de,Ce,Z,Re){var Ae=de.extensions,We=de.includeExtensions;Re===void 0&&(Re=[]),v===void 0&&(v=""),v=e.normalizeSlashes(v),e.hasTrailingDirectorySeparator(v)||(v=e.getDirectoryPath(v)),v===""&&(v="."+e.directorySeparator),v=e.ensureTrailingDirectorySeparator(v);var be=e.resolvePath(U,v),Ge=e.hasTrailingDirectorySeparator(be)?be:e.getDirectoryPath(be),x=!(Ce.useCaseSensitiveFileNames&&Ce.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(Ce,Ge))return Re;var j=e.tryReadDirectory(Ce,Ge,Ae,void 0,["./*"]);if(j){for(var Oe=e.createMap(),a=0,en=j;a<en.length;a++){var Pn=en[a];if(Pn=e.normalizePath(Pn),Z&&e.comparePaths(Pn,Z,U,x)===0)continue;var Xn=We||e.fileExtensionIs(Pn,".json")?e.getBaseFileName(Pn):e.removeFileExtension(e.getBaseFileName(Pn));Oe.set(Xn,e.tryGetExtensionFromPath(Pn))}Oe.forEach(function(G,c){Re.push(k(c,"script",G))})}var ae=e.tryGetDirectories(Ce,Ge);if(ae)for(var ce=0,Le=ae;ce<Le.length;ce++){var Je=Le[ce],Ze=e.getBaseFileName(e.normalizePath(Je));Ze!=="@types"&&Re.push(P(Ze))}var Ue=e.findPackageJson(Ge,Ce);if(Ue){var cn=e.readJson(Ue,Ce),$e=cn.typesVersions;if(typeof $e=="object"){var sn=e.getPackageJsonTypesVersionsPaths($e),he=sn&&sn.paths,ke=be.slice(e.ensureTrailingDirectorySeparator(Ge).length);he&&Ee(Re,ke,Ge,Ae,he,Ce)}}return Re}function Ee(v,U,de,Ce,Z,Re){for(var Ae in Z){if(!e.hasProperty(Z,Ae))continue;var We=Z[Ae];if(We)for(var be=function(Xn,ae,ce){v.some(function(Le){return Le.name===Xn})||v.push(k(Xn,ae,ce))},Ge=0,x=m(Ae,We,U,de,Ce,Re);Ge<x.length;Ge++){var j=x[Ge],Oe=j.name,a=j.kind,en=j.extension;be(Oe,a,en)}}}function B(v,U,de,Ce,Z){var Re=de.baseUrl,Ae=de.paths,We=[],be=$(de);if(Re){var Ge=de.project||Ce.getCurrentDirectory(),x=e.normalizePath(e.combinePaths(Ge,Re));z(v,x,be,Ce,void 0,We),Ae&&Ee(We,v,x,be.extensions,Ae,Ce)}for(var j=V(v),Oe=0,a=_(v,j,Z);Oe<a.length;Oe++){var en=a[Oe];We.push(k(en,"external module name",void 0))}if(D(Ce,de,U,j,be,We),e.getEmitModuleResolutionKind(de)===e.ModuleResolutionKind.NodeJs){var Pn=!1;if(j===void 0)for(var Xn=function(Ze){We.some(function(Ue){return Ue.name===Ze})||(Pn=!0,We.push(k(Ze,"external module name",void 0)))},ae=0,ce=T(Ce,U);ae<ce.length;ae++){var Le=ce[ae];Xn(Le)}Pn||e.forEachAncestorDirectory(U,function(Je){var Ze=e.combinePaths(Je,"node_modules");e.tryDirectoryExists(Ce,Ze)&&z(v,Ze,be,Ce,void 0,We)})}return We}function V(v){return S(v)?e.hasTrailingDirectorySeparator(v)?v:e.getDirectoryPath(v):void 0}function m(v,U,de,Ce,Z,Re){if(!e.endsWith(v,"*"))return e.stringContains(v,"*")?e.emptyArray:be(v);var Ae=v.slice(0,v.length-1),We=e.tryRemovePrefix(de,Ae);return We===void 0?be(Ae):e.flatMap(U,function(Ge){return y(We,Ce,Ge,Z,Re)});function be(Ge){return e.startsWith(Ge,de)?[P(Ge)]:e.emptyArray}}function y(v,U,de,Ce,Z){if(!Z.readDirectory)return;var Re=e.hasZeroOrOneAsteriskCharacter(de)?e.tryParsePattern(de):void 0;if(!Re)return;var Ae=e.resolvePath(Re.prefix),We=e.hasTrailingDirectorySeparator(Re.prefix)?Ae:e.getDirectoryPath(Ae),be=e.hasTrailingDirectorySeparator(Re.prefix)?"":e.getBaseFileName(Ae),Ge=S(v),x=Ge?e.hasTrailingDirectorySeparator(v)?v:e.getDirectoryPath(v):void 0,j=Ge?e.combinePaths(We,be+x):We,Oe=e.normalizePath(Re.suffix),a=e.normalizePath(e.combinePaths(U,j)),en=Ge?a:e.ensureTrailingDirectorySeparator(a)+be,Pn=Oe?"**/*":"./*",Xn=e.mapDefined(e.tryReadDirectory(Z,a,Ce,void 0,[Pn]),function(Le){var Je=e.tryGetExtensionFromPath(Le),Ze=ce(Le);return Ze===void 0?void 0:k(e.removeFileExtension(Ze),"script",Je)}),ae=e.mapDefined(e.tryGetDirectories(Z,a).map(function(Le){return e.combinePaths(a,Le)}),function(Le){var Je=ce(Le);return Je===void 0?void 0:P(Je)});return Or(Xn,ae);function ce(Le){var Je=L(e.normalizePath(Le),en,Oe);return Je===void 0?void 0:C(Je)}}function L(v,U,de){return e.startsWith(v,U)&&e.endsWith(v,de)?v.slice(U.length,v.length-de.length):void 0}function C(v){return v[0]===e.directorySeparator?v.slice(1):v}function _(v,U,de){var Ce=de.getAmbientModules().map(function(Ae){return e.stripQuotes(Ae.name)}),Z=Ce.filter(function(Ae){return e.startsWith(Ae,v)});if(U!==void 0){var Re=e.ensureTrailingDirectorySeparator(U);return Z.map(function(Ae){return e.removePrefix(Ae,Re)})}return Z}function b(v,U,de,Ce){var Z=e.getTokenAtPosition(v,U),Re=e.getLeadingCommentRanges(v.text,Z.pos),Ae=Re&&e.find(Re,function(en){return U>=en.pos&&U<=en.end});if(!Ae)return;var We=v.text.slice(Ae.pos,U),be=X.exec(We);if(!be)return;var Ge=be[1],x=be[2],j=be[3],Oe=e.getDirectoryPath(v.path),a=x==="path"?z(j,Oe,$(de,!0),Ce,v.path):x==="types"?D(Ce,de,Oe,V(j),$(de)):e.Debug.fail();return h(j,Ae.pos+Ge.length,a)}function D(v,U,de,Ce,Z,Re){Re===void 0&&(Re=[]);for(var Ae=e.createMap(),We=e.tryAndIgnoreErrors(function(){return e.getEffectiveTypeRoots(U,v)})||e.emptyArray,be=0,Ge=We;be<Ge.length;be++){var x=Ge[be];Pn(x)}for(var j=0,Oe=e.findPackageJsons(de,v);j<Oe.length;j++){var a=Oe[j],en=e.combinePaths(e.getDirectoryPath(a),"node_modules/@types");Pn(en)}return Re;function Pn(Xn){if(!e.tryDirectoryExists(v,Xn))return;for(var ae=0,ce=e.tryGetDirectories(v,Xn);ae<ce.length;ae++){var Le=ce[ae],Je=e.unmangleScopedPackageName(Le);if(U.types&&!e.contains(U.types,Je))continue;if(Ce===void 0)Ae.has(Je)||(Re.push(k(Je,"external module name",void 0)),Ae.set(Je,!0));else{var Ze=e.combinePaths(Xn,Le),Ue=e.tryRemoveDirectoryPrefix(Ce,Je,e.hostGetCanonicalFileName(v));Ue!==void 0&&z(Ue,Ze,Z,v,void 0,Re)}}}}function T(v,U){if(!v.readFile||!v.fileExists)return e.emptyArray;for(var de=[],Ce=0,Z=e.findPackageJsons(U,v);Ce<Z.length;Ce++)for(var Re=Z[Ce],Ae=e.readJson(Re,v),We=0,be=pe;We<be.length;We++){var Ge=be[We],x=Ae[Ge];if(!x)continue;for(var j in x)x.hasOwnProperty(j)&&!e.startsWith(j,"@types/")&&de.push(j)}return de}function Q(v,U){var de=Math.max(v.lastIndexOf(e.directorySeparator),v.lastIndexOf("\\")),Ce=de!==-1?de+1:0,Z=v.length-Ce;return Z===0||e.isIdentifierText(v.substr(Ce,Z),99)?void 0:e.createTextSpan(U+Ce,Z)}function N(v){if(v&&v.length>=2&&v.charCodeAt(0)===46){var U=v.length>=3&&v.charCodeAt(1)===46?2:1,de=v.charCodeAt(U);return de===47||de===92}return!1}var X=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,pe=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function S(v){return e.stringContains(v,e.directorySeparator)}})(qe=F.StringCompletions||(F.StringCompletions={}))})(o=e.Completions||(e.Completions={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe;(function(ae){ae.LocationPriority="0",ae.OptionalMember="1",ae.MemberDeclaredBySpreadAssignment="2",ae.SuggestedClassMembers="3",ae.GlobalsOrKeywords="4",ae.AutoImportSuggestions="5",ae.JavascriptIdentifiers="6"})(qe=F.SortText||(F.SortText={}));var Se;(function(ae){ae[ae.ThisType=1]="ThisType",ae[ae.SymbolMember=2]="SymbolMember",ae[ae.Export=4]="Export",ae[ae.Promise=8]="Promise",ae[ae.Nullable=16]="Nullable",ae[ae.SymbolMemberNoExport=2]="SymbolMemberNoExport",ae[ae.SymbolMemberExport=6]="SymbolMemberExport"})(Se||(Se={}));function Fe(ae){return!!(ae.kind&1)}function He(ae){return!!(ae.kind&2)}function ve(ae){return!!(ae.kind&4)}function ie(ae){return!!(ae.kind&8)}function d(ae){return!!(ae.kind&16)}var H;(function(ae){ae[ae.None=0]="None",ae[ae.All=1]="All",ae[ae.ClassElementKeywords=2]="ClassElementKeywords",ae[ae.InterfaceElementKeywords=3]="InterfaceElementKeywords",ae[ae.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",ae[ae.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",ae[ae.TypeAssertionKeywords=6]="TypeAssertionKeywords",ae[ae.TypeKeywords=7]="TypeKeywords",ae[ae.Last=7]="Last"})(H||(H={}));var Pe;(function(ae){ae[ae.Continue=0]="Continue",ae[ae.Success=1]="Success",ae[ae.Fail=2]="Fail"})(Pe||(Pe={}));function I(){var ae,ce,Le;return{isEmpty:function(){return!ae},clear:function(){ae=void 0,Le=void 0,ce=void 0},set:function(Ze,Ue,cn){ae=Ue,Le=Ze,cn&&(ce=cn)},get:function(Ze,Ue,cn){return Ze!==Le?void 0:cn?ce===cn?ae:void 0:(e.forEach(ae,function($e){$e.symbol.declarations&&($e.symbol=Ue.getMergedSymbol($e.origin.isDefaultExport&&$e.symbol.declarations[0].localSymbol||$e.symbol.declarations[0].symbol)),$e.origin.moduleSymbol.declarations&&($e.origin.moduleSymbol=Ue.getMergedSymbol($e.origin.moduleSymbol.declarations[0].symbol))}),ae)}}}F.createImportSuggestionsForFileCache=I;function _e(ae,ce,Le,Je,Ze,Ue,cn){var $e=ce.getTypeChecker(),sn=ce.getCompilerOptions(),he=e.findPrecedingToken(Ze,Je);if(cn&&!e.isInString(Je,Ze,he)&&!en(Je,cn,he,Ze))return;var ke=F.StringCompletions.getStringLiteralCompletions(Je,Ze,he,$e,sn,ae,Le,Ue);if(ke)return ke;if(he&&e.isBreakOrContinueStatement(he.parent)&&(he.kind===76||he.kind===81||he.kind===75))return K(he.parent);var G=pe(ce,Le,Je,w(Je,sn),Ze,Ue,void 0,ae);if(!G)return;switch(G.kind){case 0:return se(Je,$e,sn,Le,G,Ue);case 1:return re(e.JsDoc.getJSDocTagNameCompletions());case 2:return re(e.JsDoc.getJSDocTagCompletions());case 3:return re(e.JsDoc.getJSDocParameterNameCompletions(G.tag));default:return e.Debug.assertNever(G)}}F.getCompletionsAtPosition=_e;function re(ae){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:ae}}function se(ae,ce,Le,Je,Ze,Ue){var cn=Ze.symbols,$e=Ze.completionKind,sn=Ze.isInSnippetScope,he=Ze.isNewIdentifierLocation,ke=Ze.location,G=Ze.propertyAccessToConvert,c=Ze.keywordFilters,O=Ze.literals,ee=Ze.symbolToOriginInfoMap,Te=Ze.recommendedCompletion,Ne=Ze.isJsxInitializer,ze=Ze.insideJsDocTagTypeExpression,bn=Ze.symbolToSortTextMap;if(ke&&ke.parent&&e.isJsxClosingElement(ke.parent)){var Sn=ke.parent.parent.openingElement.tagName,Kn=!!e.findChildOfKind(ke.parent,31,ae),Xe={name:Sn.getFullText(ae)+(Kn?"":">"),kind:"class",kindModifiers:void 0,sortText:qe.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[Xe]}}var pn=[];if(w(ae,Le)){var le=R(cn,pn,ke,ae,ce,Le.target,Je,$e,Ue,G,Ne,Te,ee,bn);P(ae,ke.pos,le,Le.target,pn)}else{if(!he&&(!cn||cn.length===0)&&c===0)return;R(cn,pn,ke,ae,ce,Le.target,Je,$e,Ue,G,Ne,Te,ee,bn)}if(c!==0)for(var oe=e.arrayToSet(pn,function(tt){return tt.name}),kn=0,yn=de(c,!ze&&e.isSourceFileJS(ae));kn<yn.length;kn++){var ye=yn[kn];oe.has(ye.name)||pn.push(ye)}for(var mn=0,un=O;mn<un.length;mn++){var Mn=un[mn];pn.push(Y(Mn))}return{isGlobalCompletion:sn,isMemberCompletion:k($e),isNewIdentifierLocation:he,entries:pn}}function w(ae,ce){return e.isSourceFileJS(ae)&&!e.isCheckJsEnabledForFile(ae,ce)}function k(ae){switch(ae){case 0:case 3:case 2:return!0;default:return!1}}function P(ae,ce,Le,Je,Ze){e.getNameTable(ae).forEach(function(Ue,cn){if(Ue===ce)return;var $e=e.unescapeLeadingUnderscores(cn);e.addToSeen(Le,$e)&&e.isIdentifierText($e,Je)&&Ze.push({name:$e,kind:"warning",kindModifiers:"",sortText:qe.JavascriptIdentifiers})})}var h=function(ce){return typeof ce=="object"?e.pseudoBigIntToString(ce)+"n":JSON.stringify(ce)};function Y(ae){return{name:h(ae),kind:"string",kindModifiers:"",sortText:qe.LocationPriority}}function ne(ae,ce,Le,Je,Ze,Ue,cn,$e,sn,he,ke,G){var c,O,ee=$e&&d($e),Te=$e&&He($e)||cn;if($e&&Fe($e))c=cn?"this"+(ee?"?.":"")+"["+e.quote(Ue,G)+"]":"this"+(ee?"?.":".")+Ue;else if((Te||ee)&&he){c=Te?cn?"["+e.quote(Ue,G)+"]":"["+Ue+"]":Ue,(ee||he.questionDotToken)&&(c="?."+c);var Ne=e.findChildOfKind(he,24,Je)||e.findChildOfKind(he,28,Je);if(!Ne)return;var ze=e.startsWith(Ue,he.name.text)?he.name.end:Ne.end;O=e.createTextSpanFromBounds(Ne.getStart(Je),ze)}if(ke&&(c===void 0&&(c=Ue),c="{"+c+"}",typeof ke!="boolean"&&(O=e.createTextSpanFromNode(ke,Je))),$e&&ie($e)&&he){c===void 0&&(c=Ue);var bn="(await "+he.expression.getText()+")";c=cn?""+bn+c:""+bn+(ee?"?.":".")+c,O=e.createTextSpanFromBounds(he.getStart(Je),he.end)}return c!==void 0&&!G.includeCompletionsWithInsertText?void 0:{name:Ue,kind:e.SymbolDisplay.getSymbolKind(Ze,ae,Le),kindModifiers:e.SymbolDisplay.getSymbolModifiers(ae),sortText:ce,source:fe($e),hasAction:J(!!$e&&ve($e)),isRecommended:J($(ae,sn,Ze)),insertText:c,replacementSpan:O}}function $(ae,ce,Le){return ae===ce||!!(ae.flags&1048576)&&Le.getExportSymbolOfSymbol(ae)===ce}function J(ae){return ae?!0:void 0}function fe(ae){return ae&&ve(ae)?e.stripQuotes(ae.moduleSymbol.name):void 0}function R(ae,ce,Le,Je,Ze,Ue,cn,$e,sn,he,ke,G,c,O){for(var ee=e.timestamp(),Te=e.createMap(),Ne=0,ze=ae;Ne<ze.length;Ne++){var bn=ze[Ne],Sn=c?c[e.getSymbolId(bn)]:void 0,Kn=S(bn,Ue,Sn,$e);if(!Kn)continue;var Xe=Kn.name,pn=Kn.needsConvertPropertyAccess;if(Te.has(Xe))continue;var le=ne(bn,O&&O[e.getSymbolId(bn)]||qe.LocationPriority,Le,Je,Ze,Xe,pn,Sn,G,he,ke,sn);if(!le)continue;!Sn&&!(bn.parent===void 0&&!e.some(bn.declarations,function(oe){return oe.getSourceFile()===Le.getSourceFile()}))&&Te.set(Xe,!0),ce.push(le)}return cn("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-ee)),Te}F.getCompletionEntriesFromSymbols=R;function K(ae){var ce=z(ae);if(ce.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:ce}}function z(ae){for(var ce=[],Le=e.createMap(),Je=ae;Je&&!e.isFunctionLike(Je);){if(e.isLabeledStatement(Je)){var Ze=Je.label.text;Le.has(Ze)||(Le.set(Ze,!0),ce.push({name:Ze,kindModifiers:"",kind:"label",sortText:qe.LocationPriority}))}Je=Je.parent}return ce}function Ee(ae,ce,Le,Je,Ze,Ue){var cn=ae.getCompilerOptions(),$e=pe(ae,ce,Le,w(Le,cn),Je,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},Ze,Ue);if(!$e)return{type:"none"};if($e.kind!==0)return{type:"request",request:$e};var sn=$e.symbols,he=$e.literals,ke=$e.location,G=$e.completionKind,c=$e.symbolToOriginInfoMap,O=$e.previousToken,ee=$e.isJsxInitializer,Te=e.find(he,function(Ne){return h(Ne)===Ze.name});return Te!==void 0?{type:"literal",literal:Te}:e.firstDefined(sn,function(Ne){var ze=c[e.getSymbolId(Ne)],bn=S(Ne,cn.target,ze,G);return bn&&bn.name===Ze.name&&fe(ze)===Ze.source?{type:"symbol",symbol:Ne,location:ke,symbolToOriginInfoMap:c,previousToken:O,isJsxInitializer:ee}:void 0})||{type:"none"}}function B(ae,ce,Le){return ce&&ve(ce)&&(ce.isDefaultExport&&ae.escapedName==="default"||ae.escapedName==="export=")?e.firstDefined(ae.declarations,function(Je){return e.isExportAssignment(Je)&&e.isIdentifier(Je.expression)?Je.expression.text:void 0})||e.codefix.moduleSymbolToValidIdentifier(ce.moduleSymbol,Le):ae.name}function V(ae,ce,Le,Je,Ze,Ue,cn,$e,sn){var he=ae.getTypeChecker(),ke=ae.getCompilerOptions(),G=Ze.name,c=e.findPrecedingToken(Je,Le);if(e.isInString(Le,Je,c))return F.StringCompletions.getStringLiteralCompletionDetails(G,Le,Je,c,he,ke,Ue,sn);var O=Ee(ae,ce,Le,Je,Ze,Ue);switch(O.type){case"request":{var ee=O.request;switch(ee.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(G);case 2:return e.JsDoc.getJSDocTagCompletionDetails(G);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(G);default:return e.Debug.assertNever(ee)}}case"symbol":{var Te=O.symbol,Ne=O.location,ze=O.symbolToOriginInfoMap,bn=O.previousToken,Sn=C(ze,Te,ae,he,Ue,ke,Le,Je,bn,cn,$e),Kn=Sn.codeActions,Xe=Sn.sourceDisplay;return y(Te,he,Le,Ne,sn,Kn,Xe)}case"literal":{var pn=O.literal;return m(h(pn),"string",typeof pn=="string"?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral)}case"none":return U().some(function(le){return le.name===G})?m(G,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(O)}}F.getCompletionEntryDetails=V;function m(ae,ce,Le){return L(ae,"",ce,[e.displayPart(ae,Le)])}function y(ae,ce,Le,Je,Ze,Ue,cn){var $e=ce.runWithCancellationToken(Ze,function(c){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(c,ae,Le,Je,Je,7)}),sn=$e.displayParts,he=$e.documentation,ke=$e.symbolKind,G=$e.tags;return L(ae.name,e.SymbolDisplay.getSymbolModifiers(ae),ke,sn,he,G,Ue,cn)}F.createCompletionDetailsForSymbol=y;function L(ae,ce,Le,Je,Ze,Ue,cn,$e){return{name:ae,kindModifiers:ce,kind:Le,displayParts:Je,documentation:Ze,tags:Ue,codeActions:cn,source:$e}}F.createCompletionDetails=L;function C(ae,ce,Le,Je,Ze,Ue,cn,$e,sn,he,ke){var G=ae[e.getSymbolId(ce)];if(!G||!ve(G))return{codeActions:void 0,sourceDisplay:void 0};var c=G.moduleSymbol,O=Je.getMergedSymbol(e.skipAlias(ce.exportSymbol||ce,Je)),ee=e.codefix.getImportCompletionAction(O,c,cn,B(ce,G,Ue.target),Ze,Le,he,sn&&e.isIdentifier(sn)?sn.getStart(cn):$e,ke),Te=ee.moduleSpecifier,Ne=ee.codeAction;return{sourceDisplay:[e.textPart(Te)],codeActions:[Ne]}}function _(ae,ce,Le,Je,Ze,Ue){var cn=Ee(ae,ce,Le,Je,Ze,Ue);return cn.type==="symbol"?cn.symbol:void 0}F.getCompletionEntrySymbol=_;var b;(function(ae){ae[ae.Data=0]="Data",ae[ae.JsDocTagName=1]="JsDocTagName",ae[ae.JsDocTag=2]="JsDocTag",ae[ae.JsDocParameterName=3]="JsDocParameterName"})(b||(b={}));var D;(function(ae){ae[ae.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",ae[ae.Global=1]="Global",ae[ae.PropertyAccess=2]="PropertyAccess",ae[ae.MemberLike=3]="MemberLike",ae[ae.String=4]="String",ae[ae.None=5]="None"})(D=F.CompletionKind||(F.CompletionKind={}));function T(ae,ce,Le){return e.firstDefined(ce&&(ce.isUnion()?ce.types:[ce]),function(Je){var Ze=Je&&Je.symbol;return Ze&&Ze.flags&(8|384|32)&&!e.isAbstractConstructorSymbol(Ze)?N(Ze,ae,Le):void 0})}function Q(ae,ce,Le,Je){var Ze=ae.parent;switch(ae.kind){case 75:return e.getContextualTypeFromParent(ae,Je);case 62:switch(Ze.kind){case 241:return Je.getContextualType(Ze.initializer);case 208:return Je.getTypeAtLocation(Ze.left);case 271:return Je.getContextualTypeForJsxAttribute(Ze);default:return}case 98:return Je.getContextualType(Ze);case 77:return e.getSwitchedType(e.cast(Ze,e.isCaseClause),Je);case 18:return e.isJsxExpression(Ze)&&Ze.parent.kind!==264?Je.getContextualTypeForJsxAttribute(Ze.parent):void 0;default:var Ue=e.SignatureHelp.getArgumentInfoForCompletions(ae,ce,Le);return Ue?Je.getContextualTypeForArgumentAtIndex(Ue.invocation,Ue.argumentIndex+(ae.kind===27?1:0)):e.isEqualityOperatorKind(ae.kind)&&e.isBinaryExpression(Ze)&&e.isEqualityOperatorKind(Ze.operatorToken.kind)?Je.getTypeAtLocation(Ze.left):Je.getContextualType(ae)}}function N(ae,ce,Le){var Je=Le.getAccessibleSymbolChain(ae,ce,67108863,!1);return Je?e.first(Je):ae.parent&&(X(ae.parent)?ae:N(ae.parent,ce,Le))}function X(ae){return ae.declarations.some(function(ce){return ce.kind===288})}function pe(ae,ce,Le,Je,Ze,Ue,cn,$e){var sn=ae.getTypeChecker(),he=e.timestamp(),ke=e.getTokenAtPosition(Le,Ze);ce("getCompletionData: Get current token: "+(e.timestamp()-he)),he=e.timestamp();var G=e.isInComment(Le,Ze,ke);ce("getCompletionData: Is inside comment: "+(e.timestamp()-he));var c=!1,O=!1;if(G){if(e.hasDocComment(Le,Ze)){if(Le.text.charCodeAt(Ze-1)===64)return{kind:1};var ee=e.getLineStartPositionForPosition(Ze,Le);if(!Le.text.substring(ee,Ze).match(/[^\*|\s|(/\*\*)]/))return{kind:2}}var Te=Ge(ke,Ze);if(Te){if(Te.tagName.pos<=Ze&&Ze<=Te.tagName.end)return{kind:1};if(_n(Te)&&Te.typeExpression&&Te.typeExpression.kind===292&&(ke=e.getTokenAtPosition(Le,Ze),(!ke||!e.isDeclarationName(ke)&&(ke.parent.kind!==316||ke.parent.name!==ke))&&(c=Ri(Te.typeExpression))),e.isJSDocParameterTag(Te)&&(e.nodeIsMissing(Te.name)||Te.name.pos<=Ze&&Ze<=Te.name.end))return{kind:3,tag:Te}}if(!c){ce("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}he=e.timestamp();var Ne=e.findPrecedingToken(Ze,Le,void 0);ce("getCompletionData: Get previous token 1: "+(e.timestamp()-he));var ze=Ne;if(ze&&Ze<=ze.end&&(e.isIdentifier(ze)||e.isKeyword(ze.kind))){var bn=e.timestamp();ze=e.findPrecedingToken(ze.getFullStart(),Le,void 0),ce("getCompletionData: Get previous token 2: "+(e.timestamp()-bn))}var Sn=ke,Kn,Xe=!1,pn=!1,le=!1,oe=!1,kn=!1,yn=e.getTouchingPropertyName(Le,Ze);if(ze){if(xa(ze)){ce("Returning an empty list because completion was requested in an invalid position.");return}var ye=ze.parent;if(ze.kind===24||ze.kind===28){Xe=ze.kind===24,pn=ze.kind===28;switch(ye.kind){case 193:if(Kn=ye,Sn=Kn.expression,Sn.end===ze.pos&&e.isCallExpression(Sn)&&Sn.getChildCount(Le)&&e.last(Sn.getChildren(Le)).kind!==21)return;break;case 152:Sn=ye.left;break;case 248:Sn=ye.name;break;case 187:case 218:Sn=ye;break;default:return}}else if(Le.languageVariant===1){if(ye&&ye.kind===193&&(ze=ye,ye=ye.parent),ke.parent===yn)switch(ke.kind){case 31:(ke.parent.kind===264||ke.parent.kind===266)&&(yn=ke);break;case 43:ke.parent.kind===265&&(yn=ke);break}switch(ye.kind){case 267:ze.kind===43&&(oe=!0,yn=ze);break;case 208:if(!Pn(ye))break;case 265:case 264:case 266:ze.kind===29&&(le=!0,yn=ze);break;case 271:switch(Ne.kind){case 62:kn=!0;break;case 75:ye!==Ne.parent&&!ye.initializer&&e.findChildOfKind(ye,62,Le)&&(kn=Ne)}break}}}var mn=e.timestamp(),un=5,Mn=!1,tt=0,Vn=[],ut=[],dt=[],ot=$e.getImportSuggestionsCache&&$e.getImportSuggestionsCache();if(Xe||pn)_t();else if(le){var ct=e.Debug.assertEachDefined(sn.getJsxIntrinsicTagNamesAt(yn),"getJsxIntrinsicTagNames() should all be defined");vr(),Vn=ct.concat(Vn),un=3,tt=0}else if(oe){var wt=ze.parent.parent.openingElement.tagName,st=sn.getSymbolAtLocation(wt);st&&(Vn=[st]),un=3,tt=0}else if(!vr())return;ce("getCompletionData: Semantic work: "+(e.timestamp()-mn));var qn=Ne&&Q(Ne,Ze,Le,sn),Ie=e.mapDefined(qn&&(qn.isUnion()?qn.types:[qn]),function(xt){return xt.isLiteral()?xt.value:void 0}),De=Ne&&qn&&T(Ne,qn,sn);return{kind:0,symbols:Vn,completionKind:un,isInSnippetScope:O,propertyAccessToConvert:Kn,isNewIdentifierLocation:Mn,location:yn,keywordFilters:tt,literals:Ie,symbolToOriginInfoMap:ut,recommendedCompletion:De,previousToken:Ne,isJsxInitializer:kn,insideJsDocTagTypeExpression:c,symbolToSortTextMap:dt};function _n(xt){switch(xt.kind){case 310:case 316:case 311:case 313:case 315:return!0;default:return!1}}function _t(){un=2;var xt=e.isLiteralImportTypeNode(Sn),Kt=c||xt&&!Sn.isTypeOf||e.isPartOfTypeNode(Sn.parent)||e.isPossiblyTypeArgumentPosition(ze,Le,sn),_r=e.isInRightSideOfInternalImportEqualsDeclaration(Sn);if(e.isEntityName(Sn)||xt){var Jr=e.isModuleDeclaration(Sn.parent);Jr&&(Mn=!0);var va=sn.getSymbolAtLocation(Sn);if(va&&(va=e.skipAlias(va,sn),va.flags&(1536|384))){for(var Na=e.Debug.assertEachDefined(sn.getExportsOfModule(va),"getExportsOfModule() should all be defined"),qr=function(cr){return sn.isValidPropertyAccess(xt?Sn:Sn.parent,cr.name)},hi=function(cr){return vt(cr)},Ii=Jr?function(rr){return!!(rr.flags&1920)&&!rr.declarations.every(function(cr){return cr.parent===Sn.parent})}:_r?function(rr){return hi(rr)||qr(rr)}:Kt?hi:qr,gi=0,ua=Na;gi<ua.length;gi++){var tn=ua[gi];Ii(tn)&&Vn.push(tn)}if(!Kt&&va.declarations&&va.declarations.some(function(rr){return rr.kind!==288&&rr.kind!==248&&rr.kind!==247})){var vn=sn.getTypeOfSymbolAtLocation(va,Sn).getNonOptionalType(),Ln=!1;if(vn.isNullableType()){var Bn=Xe&&!pn&&Ue.includeAutomaticOptionalChainCompletions!==!1;(Bn||pn)&&(vn=vn.getNonNullableType(),Bn&&(Ln=!0))}It(vn,!!(Sn.flags&32768),Ln)}return}}if(e.isMetaProperty(Sn)&&(Sn.keywordToken===98||Sn.keywordToken===95)){var Pt=Sn.keywordToken===98?"target":"meta";Vn.push(sn.createSymbol(4,e.escapeLeadingUnderscores(Pt)));return}if(!Kt){var vn=sn.getTypeAtLocation(Sn).getNonOptionalType(),Ln=!1;if(vn.isNullableType()){var Bn=Xe&&!pn&&Ue.includeAutomaticOptionalChainCompletions!==!1;(Bn||pn)&&(vn=vn.getNonNullableType(),Bn&&(Ln=!0))}It(vn,!!(Sn.flags&32768),Ln)}}function It(xt,Kt,_r){Mn=!!xt.getStringIndexType(),pn&&e.some(xt.getCallSignatures())&&(Mn=!0);var Jr=Sn.kind===187?Sn:Sn.parent;if(Je)Vn.push.apply(Vn,j(xt,sn));else for(var va=0,Na=xt.getApparentProperties();va<Na.length;va++){var qr=Na[va];sn.isValidPropertyAccessForCompletions(Jr,xt,qr)&&Ht(qr,!1,_r)}if(Kt&&Ue.includeCompletionsWithInsertText){var hi=sn.getPromisedTypeOfPromise(xt);if(hi)for(var Ii=0,gi=hi.getApparentProperties();Ii<gi.length;Ii++){var qr=gi[Ii];sn.isValidPropertyAccessForCompletions(Jr,hi,qr)&&Ht(qr,!0,_r)}}}function Ht(xt,Kt,_r){var Jr=e.firstDefined(xt.declarations,function(ua){return e.tryCast(e.getNameOfDeclaration(ua),e.isComputedPropertyName)});if(Jr){var va=nr(Jr.expression),Na=va&&sn.getSymbolAtLocation(va),qr=Na&&N(Na,ze,sn);if(qr&&!ut[e.getSymbolId(qr)]){Vn.push(qr);var hi=qr.parent;ut[e.getSymbolId(qr)]=!hi||!e.isExternalModuleSymbol(hi)?{kind:gi(2)}:{kind:gi(6),moduleSymbol:hi,isDefaultExport:!1}}else Ue.includeCompletionsWithInsertText&&(Ii(xt),Vn.push(xt))}else Ii(xt),Vn.push(xt);function Ii(ua){Ue.includeCompletionsWithInsertText&&(Kt&&!ut[e.getSymbolId(ua)]?ut[e.getSymbolId(ua)]={kind:gi(8)}:_r&&(ut[e.getSymbolId(ua)]={kind:16}))}function gi(ua){return _r?ua|16:ua}}function nr(xt){return e.isIdentifier(xt)?xt:e.isPropertyAccessExpression(xt)?nr(xt.expression):void 0}function vr(){var xt=Ai()||Ei()||Qr()||Pi()||Wr()||(gt(),1);return xt===1}function Qr(){return ca(ze)?(un=5,Mn=!0,tt=4,1):0}function Wr(){var xt=Vo(ze),Kt=xt&&sn.getContextualType(xt.attributes);return Kt?(Vn=bo(x(Kt,xt.attributes,sn),xt.attributes.properties),ji(),un=3,Mn=!1,1):0}function gt(){tt=Ti(ze)?5:1,un=1,Mn=ai(ze),Ne!==ze&&e.Debug.assert(!!Ne,"Expected 'contextToken' to be defined when different from 'previousToken'.");var xt=Ne!==ze?Ne.getStart():Ze,Kt=tr(ze,xt,Le)||Le;O=kt(Kt);var _r=ft(),Jr=(_r?0:111551)|788968|1920|2097152;Vn=e.Debug.assertEachDefined(sn.getSymbolsInScope(Kt,Jr),"getSymbolsInScope() should all be defined");for(var va=0,Na=Vn;va<Na.length;va++){var qr=Na[va];!sn.isArgumentsSymbol(qr)&&!e.some(qr.declarations,function(vn){return vn.getSourceFile()===Le})&&(dt[e.getSymbolId(qr)]=qe.GlobalsOrKeywords)}if(Ue.includeCompletionsWithInsertText&&Kt.kind!==288){var hi=sn.tryGetThisTypeAt(Kt,!1);if(hi)for(var Ii=0,gi=j(hi,sn);Ii<gi.length;Ii++){var qr=gi[Ii];ut[e.getSymbolId(qr)]={kind:1},Vn.push(qr),dt[e.getSymbolId(qr)]=qe.SuggestedClassMembers}}if(ba()){var ua=Ne&&e.isIdentifier(Ne)?Ne.text.toLowerCase():"",tn=Ke(ae.getCompilerOptions().target,$e);!cn&&ot&&ot.set(Le.fileName,tn,$e.getProjectVersion&&$e.getProjectVersion()),tn.forEach(function(vn){var Ln=vn.symbol,Bn=vn.symbolName,Pt=vn.skipFilter,rr=vn.origin;if(cn){if(cn.source&&e.stripQuotes(rr.moduleSymbol.name)!==cn.source)return}else if(!Pt&&!nt(Bn.toLowerCase(),ua))return;var cr=e.getSymbolId(Ln);Vn.push(Ln),ut[cr]=rr,dt[cr]=qe.AutoImportSuggestions})}jn(Vn)}function ba(){return Ue.includeCompletionsForModuleExports?Le.externalModuleIndicator?!0:Le.commonJsModuleIndicator?!1:e.compilerOptionsIndicateEs6Modules(ae.getCompilerOptions())?!0:e.programContainsEs6Modules(ae):!1}function kt(xt){switch(xt.kind){case 288:case 210:case 274:case 222:return!0;default:return e.isStatement(xt)}}function jn(xt){var Kt=ft();Kt&&(tt=Ut()?6:7),e.filterMutate(xt,function(_r){if(!e.isSourceFile(yn)){if(e.isExportAssignment(yn.parent))return!0;if(_r=e.skipAlias(_r,sn),e.isInRightSideOfInternalImportEqualsDeclaration(yn))return!!(_r.flags&1920);if(Kt)return vt(_r)}return!!(e.getCombinedLocalAndExportSymbolFlags(_r)&111551)})}function Ut(){return e.isAssertionExpression(ze.parent)}function ft(){return c||!Tt(ze)&&(e.isPossiblyTypeArgumentPosition(ze,Le,sn)||e.isPartOfTypeNode(yn)||yt(ze))}function Tt(xt){return xt&&xt.kind===107&&(xt.parent.kind===171||e.isTypeOfExpression(xt.parent))}function yt(xt){if(xt){var Kt=xt.parent.kind;switch(xt.kind){case 58:return Kt===158||Kt===157||Kt===155||Kt===241||e.isFunctionLikeKind(Kt);case 62:return Kt===246;case 122:return Kt===216;case 29:return Kt===168||Kt===198;case 89:return Kt===154}}return!1}function vt(xt,Kt){Kt===void 0&&(Kt=e.createMap());var _r=e.skipAlias(xt.exportSymbol||xt,sn);return!!(_r.flags&788968)||!!(_r.flags&1536)&&e.addToSeen(Kt,e.getSymbolId(_r))&&sn.getExportsOfModule(_r).some(function(Jr){return vt(Jr,Kt)})}function Ke(xt,Kt){var _r=ot&&ot.get(Le.fileName,sn,cn&&Kt.getProjectVersion?Kt.getProjectVersion():void 0);if(_r)return ce("getSymbolsFromOtherSourceFileExports: Using cached list"),_r;var Jr=e.timestamp();ce("getSymbolsFromOtherSourceFileExports: Recomputing list"+(cn?" for details entry":""));var va=e.createMap(),Na=e.createMap(),qr=e.createMap(),hi=[],Ii=e.createMap();return e.codefix.forEachExternalModuleToImportFrom(ae,Kt,Le,!cn,function(ua){if(cn&&cn.source&&e.stripQuotes(ua.name)!==cn.source)return;var tn=sn.resolveExternalModuleSymbol(ua);if(!e.addToSeen(va,e.getSymbolId(tn)))return;tn!==ua&&e.every(tn.declarations,function(Oa){return!!Oa.getSourceFile().externalModuleIndicator&&!e.findAncestor(Oa,e.isGlobalScopeAugmentation)})&&gi(tn,ua,!0);for(var vn=0,Ln=sn.getExportsOfModule(ua);vn<Ln.length;vn++){var Bn=Ln[vn];if(e.some(Bn.declarations,function(Oa){return e.isExportSpecifier(Oa)&&!!Oa.propertyName&&e.isIdentifierANonContextualKeyword(Oa.name)}))continue;var Pt=e.getSymbolId(Bn).toString(),rr=sn.getMergedSymbol(Bn.parent)!==tn;if(rr||e.some(Bn.declarations,function(Oa){return e.isExportSpecifier(Oa)&&!Oa.propertyName&&!!Oa.parent.parent.moduleSpecifier})){var cr=rr?Bn:Rn(Bn);if(!cr)continue;var Cr=e.getSymbolId(cr).toString(),Ya=Ii.has(Cr)||Na.has(Cr);Ya?e.addToSeen(Na,Pt):(qr.set(Cr,{alias:Bn,moduleSymbol:ua}),Na.set(Pt,!0))}else qr.delete(Pt),gi(Bn,ua)}}),qr.forEach(function(ua){var tn=ua.alias,vn=ua.moduleSymbol;return gi(tn,vn)}),ce("getSymbolsFromOtherSourceFileExports: "+(e.timestamp()-Jr)),hi;function gi(ua,tn,vn){vn===void 0&&(vn=!1);var Ln=ua.escapedName==="default";Ln&&(ua=e.getLocalSymbolForExportDefault(ua)||ua),e.addToSeen(Ii,e.getSymbolId(ua));var Bn={kind:4,moduleSymbol:tn,isDefaultExport:Ln};hi.push({symbol:ua,symbolName:B(ua,Bn,xt),origin:Bn,skipFilter:vn})}}function Rn(xt){return Xn(sn,xt,function(Kt){return e.some(Kt.declarations,function(_r){return e.isExportSpecifier(_r)||!!_r.localSymbol})})}function nt(xt,Kt){if(Kt.length===0)return!0;for(var _r=0,Jr=0;Jr<xt.length;Jr++)if(xt.charCodeAt(Jr)===Kt.charCodeAt(_r)&&(_r++,_r===Kt.length))return!0;return!1}function tr(xt,Kt,_r){for(var Jr=xt;Jr&&!e.positionBelongsToNode(Jr,Kt,_r);)Jr=Jr.parent;return Jr}function xa(xt){var Kt=e.timestamp(),_r=wi(xt)||mo(xt)||uo(xt)||Ba(xt);return ce("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-Kt)),_r}function Ba(xt){if(xt.kind===11)return!0;if(xt.kind===31&&xt.parent){if(xt.parent.kind===266)return!0;if(xt.parent.kind===267||xt.parent.kind===265)return!!xt.parent.parent&&xt.parent.parent.kind===264}return!1}function ai(xt){if(xt){var Kt=xt.parent.kind;switch(be(xt)){case 27:return Kt===195||Kt===161||Kt===196||Kt===191||Kt===208||Kt===169;case 20:return Kt===195||Kt===161||Kt===196||Kt===199||Kt===181;case 22:return Kt===191||Kt===166||Kt===153;case 134:case 135:return!0;case 24:return Kt===248;case 18:return Kt===244;case 62:return Kt===241||Kt===208;case 15:return Kt===210;case 16:return Kt===220;case 118:case 116:case 117:return Kt===158}}return!1}function wi(xt){return(e.isRegularExpressionLiteral(xt)||e.isStringTextContainingNode(xt))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(xt)),Ze)||Ze===xt.end&&(!!xt.isUnterminated||e.isRegularExpressionLiteral(xt)))}function Ai(){var xt=Xa(ze);if(!xt)return 0;un=0;var Kt,_r;if(xt.kind===192){var Jr=sn.getContextualType(xt,4);if(!Jr)return 2;Mn=e.hasIndexSignature(Jr),Kt=x(Jr,xt,sn),_r=xt.properties}else{e.Debug.assert(xt.kind===188),Mn=!1;var va=e.getRootDeclaration(xt.parent);if(!e.isVariableLike(va))return e.Debug.fail("Root declaration is not variable-like.");var Na=e.hasInitializer(va)||e.hasType(va)||va.parent.parent.kind===231;if(!Na&&va.kind===155&&(e.isExpression(va.parent)?Na=!!sn.getContextualType(va.parent):(va.parent.kind===160||va.parent.kind===163)&&(Na=e.isExpression(va.parent.parent)&&!!sn.getContextualType(va.parent.parent))),Na){var Jr=sn.getTypeAtLocation(xt);if(!Jr)return 2;Kt=sn.getPropertiesOfType(Jr).filter(function(hi){return!(e.getDeclarationModifierFlagsFromSymbol(hi)&24)}),_r=xt.elements}}return Kt&&Kt.length>0&&(Vn=ui(Kt,e.Debug.assertDefined(_r))),ji(),1}function Ei(){var xt=ze&&(ze.kind===18||ze.kind===27)?e.tryCast(ze.parent,e.isNamedImportsOrExports):void 0;if(!xt)return 0;var Kt=(xt.kind===256?xt.parent.parent:xt.parent).moduleSpecifier,_r=sn.getSymbolAtLocation(Kt);if(!_r)return 2;un=3,Mn=!1;var Jr=sn.getExportsAndPropertiesOfModule(_r),va=e.arrayToSet(xt.elements,function(Na){return Ri(Na)?void 0:(Na.propertyName||Na.name).escapedText});return Vn=Jr.filter(function(Na){return Na.escapedName!=="default"&&!va.get(Na.escapedName)}),1}function Pi(){var xt=Oe(Le,ze,yn,Ze);if(!xt)return 0;if(un=3,Mn=!0,tt=ze.kind===41?0:e.isClassLike(xt)?2:3,!e.isClassLike(xt))return 1;var Kt=ze.kind===26?ze.parent.parent:ze.parent,_r=e.isClassElement(Kt)?e.getModifierFlags(Kt):0;if(ze.kind===75&&!Ri(ze))switch(ze.getText()){case"private":_r=_r|8;break;case"static":_r=_r|32;break}if(!(_r&8)){var Jr=e.flatMap(e.getAllSuperTypeNodes(xt),function(va){var Na=sn.getTypeAtLocation(va);return Na&&sn.getPropertiesOfType(_r&32?sn.getTypeOfSymbolAtLocation(Na.symbol,xt):Na)});Vn=ko(Jr,xt.members,_r)}return 1}function Xa(xt){if(xt){var Kt=xt.parent;switch(xt.kind){case 18:case 27:if(e.isObjectLiteralExpression(Kt)||e.isObjectBindingPattern(Kt))return Kt;break;case 41:return e.isMethodDeclaration(Kt)?e.tryCast(Kt.parent,e.isObjectLiteralExpression):void 0;case 75:return xt.text==="async"&&e.isShorthandPropertyAssignment(xt.parent)?xt.parent.parent:void 0}}return}function Ia(xt){return!!xt.parent&&e.isParameter(xt.parent)&&e.isConstructorDeclaration(xt.parent.parent)&&(e.isParameterPropertyModifier(xt.kind)||e.isDeclarationName(xt))}function ca(xt){if(xt){var Kt=xt.parent;switch(xt.kind){case 20:case 27:return e.isConstructorDeclaration(xt.parent)?xt.parent:void 0;default:if(Ia(xt))return Kt.parent}}return}function Ti(xt){if(xt){var Kt,_r=e.findAncestor(xt.parent,function(Jr){return e.isClassLike(Jr)?"quit":e.isFunctionLikeDeclaration(Jr)&&Kt===Jr.body?!0:(Kt=Jr,!1)});return _r&&_r}}function Vo(xt){if(xt){var Kt=xt.parent;switch(xt.kind){case 31:case 30:case 43:case 75:case 193:case 272:case 271:case 273:if(Kt&&(Kt.kind===265||Kt.kind===266)){if(xt.kind===31){var _r=e.findPrecedingToken(xt.pos,Le,void 0);if(!Kt.typeArguments||_r&&_r.kind===43)break}return Kt}else if(Kt.kind===271)return Kt.parent.parent;break;case 10:if(Kt&&(Kt.kind===271||Kt.kind===273))return Kt.parent.parent;break;case 19:if(Kt&&Kt.kind===274&&Kt.parent&&Kt.parent.kind===271)return Kt.parent.parent.parent;if(Kt&&Kt.kind===273)return Kt.parent.parent;break}}return}function mo(xt){var Kt=xt.parent,_r=Kt.kind;switch(xt.kind){case 27:return _r===241||_r===242||_r===224||_r===247||Ro(_r)||_r===245||_r===189||_r===246||e.isClassLike(Kt)&&!!Kt.typeParameters&&Kt.typeParameters.end>=xt.pos;case 24:return _r===189;case 58:return _r===190;case 22:return _r===189;case 20:return _r===278||Ro(_r);case 18:return _r===247;case 29:return _r===244||_r===213||_r===245||_r===246||e.isFunctionLikeKind(_r);case 119:return _r===158&&!e.isClassLike(Kt.parent);case 25:return _r===155||!!Kt.parent&&Kt.parent.kind===189;case 118:case 116:case 117:return _r===155&&!e.isConstructorDeclaration(Kt.parent);case 122:return _r===257||_r===261||_r===255;case 130:case 141:return!a(xt);case 79:case 87:case 113:case 93:case 108:case 95:case 114:case 80:case 120:case 144:return!0;case 41:return e.isFunctionLike(xt.parent)&&!e.isMethodDeclaration(xt.parent)}if(Ae(be(xt))&&a(xt))return!1;if(Ia(xt)&&(!e.isIdentifier(xt)||e.isParameterPropertyModifier(be(xt))||Ri(xt)))return!1;switch(be(xt)){case 121:case 79:case 80:case 129:case 87:case 93:case 113:case 114:case 116:case 117:case 118:case 119:case 108:case 120:return!0;case 125:return e.isPropertyDeclaration(xt.parent)}return e.isDeclarationName(xt)&&!e.isJsxAttribute(xt.parent)&&!(e.isClassLike(xt.parent)&&(xt!==Ne||Ze>Ne.end))}function Ro(xt){return e.isFunctionLikeKind(xt)&&xt!==161}function uo(xt){if(xt.kind===8){var Kt=xt.getFullText();return Kt.charAt(Kt.length-1)==="."}return!1}function ui(xt,Kt){if(Kt.length===0)return xt;for(var _r=e.createMap(),Jr=e.createUnderscoreEscapedMap(),va=0,Na=Kt;va<Na.length;va++){var qr=Na[va];if(qr.kind!==279&&qr.kind!==280&&qr.kind!==190&&qr.kind!==160&&qr.kind!==162&&qr.kind!==163&&qr.kind!==281)continue;if(Ri(qr))continue;var hi=void 0;if(e.isSpreadAssignment(qr))Gi(qr,_r);else if(e.isBindingElement(qr)&&qr.propertyName)qr.propertyName.kind===75&&(hi=qr.propertyName.escapedText);else{var Ii=e.getNameOfDeclaration(qr);hi=Ii&&e.isPropertyNameLiteral(Ii)?e.getEscapedTextOfIdentifierOrLiteral(Ii):void 0}Jr.set(hi,!0)}var gi=xt.filter(function(ua){return!Jr.get(ua.escapedName)});return Fo(_r,gi),gi}function Gi(xt,Kt){var _r=xt.expression,Jr=sn.getSymbolAtLocation(_r),va=Jr&&sn.getTypeOfSymbolAtLocation(Jr,_r),Na=va&&va.properties;Na&&Na.forEach(function(qr){Kt.set(qr.name,!0)})}function ji(){Vn.forEach(function(xt){xt.flags&16777216&&(dt[e.getSymbolId(xt)]=dt[e.getSymbolId(xt)]||qe.OptionalMember)})}function Fo(xt,Kt){if(xt.size===0)return;for(var _r=0,Jr=Kt;_r<Jr.length;_r++){var va=Jr[_r];xt.has(va.name)&&(dt[e.getSymbolId(va)]=qe.MemberDeclaredBySpreadAssignment)}}function ko(xt,Kt,_r){for(var Jr=e.createUnderscoreEscapedMap(),va=0,Na=Kt;va<Na.length;va++){var qr=Na[va];if(qr.kind!==158&&qr.kind!==160&&qr.kind!==162&&qr.kind!==163)continue;if(Ri(qr))continue;if(e.hasModifier(qr,8))continue;if(e.hasModifier(qr,32)!==!!(_r&32))continue;var hi=e.getPropertyNameForPropertyNameNode(qr.name);hi&&Jr.set(hi,!0)}return xt.filter(function(Ii){return!Jr.has(Ii.escapedName)&&!!Ii.declarations&&!(e.getDeclarationModifierFlagsFromSymbol(Ii)&8)})}function bo(xt,Kt){for(var _r=e.createUnderscoreEscapedMap(),Jr=e.createMap(),va=0,Na=Kt;va<Na.length;va++){var qr=Na[va];if(Ri(qr))continue;qr.kind===271?_r.set(qr.name.escapedText,!0):e.isJsxSpreadAttribute(qr)&&Gi(qr,Jr)}var hi=xt.filter(function(Ii){return!_r.get(Ii.escapedName)});return Fo(Jr,hi),hi}function Ri(xt){return xt.getStart(Le)<=Ze&&Ze<=xt.getEnd()}}function S(ae,ce,Le,Je){var Ze=B(ae,Le,ce);if(Ze===void 0||ae.flags&1536&&e.isSingleOrDoubleQuote(Ze.charCodeAt(0))||e.isKnownSymbol(ae))return;var Ue={name:Ze,needsConvertPropertyAccess:!1};if(e.isIdentifierText(Ze,ce))return Ue;switch(Je){case 3:return;case 0:return{name:JSON.stringify(Ze),needsConvertPropertyAccess:!1};case 2:case 1:return Ze.charCodeAt(0)===32?void 0:{name:Ze,needsConvertPropertyAccess:!0};case 5:case 4:return Ue;default:e.Debug.assertNever(Je)}}var v=[],U=e.memoize(function(){for(var ae=[],ce=76;ce<=151;ce++)ae.push({name:e.tokenToString(ce),kind:"keyword",kindModifiers:"",sortText:qe.GlobalsOrKeywords});return ae});function de(ae,ce){if(!ce)return Ce(ae);var Le=ae+7+1;return v[Le]||(v[Le]=Ce(ae).filter(function(Je){return!Z(e.stringToToken(Je.name))}))}function Ce(ae){return v[ae]||(v[ae]=U().filter(function(ce){var Le=e.stringToToken(ce.name);switch(ae){case 0:return!1;case 1:return We(Le)||Le===129||Le===134||Le===144||Le===135||e.isTypeKeyword(Le)&&Le!==145;case 5:return We(Le);case 2:return Ae(Le);case 3:return Re(Le);case 4:return e.isParameterPropertyModifier(Le);case 6:return e.isTypeKeyword(Le)||Le===80;case 7:return e.isTypeKeyword(Le);default:return e.Debug.assertNever(ae)}}))}function Z(ae){switch(ae){case 121:case 124:case 150:case 127:case 129:case 87:case 149:case 112:case 131:case 113:case 132:case 133:case 134:case 135:case 136:case 139:case 140:case 116:case 117:case 118:case 137:case 142:case 143:case 144:case 146:case 147:return!0;default:return!1}}function Re(ae){return ae===137}function Ae(ae){switch(ae){case 121:case 128:case 130:case 141:case 125:return!0;default:return e.isClassMemberModifier(ae)}}function We(ae){return ae===125||ae===126||!e.isContextualKeyword(ae)&&!Ae(ae)}function be(ae){return e.isIdentifier(ae)?ae.originalKeywordKind||0:ae.kind}function Ge(ae,ce){var Le=e.findAncestor(ae,e.isJSDoc);return Le&&Le.tags&&(e.rangeContainsPosition(Le,ce)?e.findLast(Le.tags,function(Je){return Je.pos<ce}):void 0)}function x(ae,ce,Le){return ae.isUnion()?Le.getAllPossiblePropertiesOfTypes(ae.types.filter(function(Je){return!(Je.flags&131068||Le.isArrayLikeType(Je)||e.typeHasCallOrConstructSignatures(Je,Le)||Le.isTypeInvalidDueToUnionDiscriminant(Je,ce))})):ae.getApparentProperties()}function j(ae,ce){return ae.isUnion()?e.Debug.assertEachDefined(ce.getAllPossiblePropertiesOfTypes(ae.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.assertEachDefined(ae.getApparentProperties(),"getApparentProperties() should all be defined")}function Oe(ae,ce,Le,Je){switch(Le.kind){case 317:return e.tryCast(Le.parent,e.isObjectTypeDeclaration);case 1:var Ze=e.tryCast(e.lastOrUndefined(e.cast(Le.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(Ze&&!e.findChildOfKind(Ze,19,ae))return Ze;break;case 75:if(a(Le))return e.findAncestor(Le,e.isObjectTypeDeclaration)}if(!ce)return;switch(ce.kind){case 26:case 19:return a(Le)&&Le.parent.name===Le?Le.parent.parent:e.tryCast(Le,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(ce.parent,e.isObjectTypeDeclaration);default:if(!a(ce))return e.getLineAndCharacterOfPosition(ae,ce.getEnd()).line!==e.getLineAndCharacterOfPosition(ae,Je).line&&e.isObjectTypeDeclaration(Le)?Le:void 0;var Ue=e.isClassLike(ce.parent.parent)?Ae:Re;return Ue(ce.kind)||ce.kind===41||e.isIdentifier(ce)&&Ue(e.stringToToken(ce.text))?ce.parent.parent:void 0}}function a(ae){return ae.parent&&e.isClassOrTypeElement(ae.parent)&&e.isObjectTypeDeclaration(ae.parent.parent)}function en(ae,ce,Le,Je){switch(ce){case".":case"@":return!0;case'"':case"'":case"`":return!!Le&&e.isStringLiteralOrTemplate(Le)&&Je===Le.getStart(ae)+1;case"<":return!!Le&&Le.kind===29&&(!e.isBinaryExpression(Le.parent)||Pn(Le.parent));case"/":return!!Le&&(e.isStringLiteralLike(Le)?!!e.tryGetImportFromModuleSpecifier(Le):Le.kind===43&&e.isJsxClosingElement(Le.parent));default:return e.Debug.assertNever(ce)}}function Pn(ae){var ce=ae.left;return e.nodeIsMissing(ce)}function Xn(ae,ce,Le){for(var Je=ce;Je.flags&2097152&&(Je=ae.getImmediateAliasedSymbol(Je));)if(Le(Je))return Je}})(o=e.Completions||(e.Completions={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){function qe(B,V,m,y,L){var C=e.getTouchingPropertyName(m,y);if(C.parent&&(e.isJsxOpeningElement(C.parent)&&C.parent.tagName===C||e.isJsxClosingElement(C.parent))){var _=C.parent.parent,b=_.openingElement,D=_.closingElement,T=[b,D].map(function(Q){var N=Q.tagName;return Se(N,m)});return[{fileName:m.fileName,highlightSpans:T}]}return Fe(y,C,B,V,L)||He(C,m)}F.getDocumentHighlights=qe;function Se(B,V){return{fileName:V.fileName,textSpan:e.createTextSpanFromNode(B,V),kind:"none"}}function Fe(B,V,m,y,L){var C=e.arrayToSet(L,function(D){return D.fileName}),_=e.FindAllReferences.getReferenceEntriesForNode(B,V,m,L,y,void 0,C);if(!_)return;var b=e.arrayToMultiMap(_.map(e.FindAllReferences.toHighlightSpan),function(D){return D.fileName},function(D){return D.span});return e.arrayFrom(b.entries(),function(D){var T=D[0],Q=D[1];if(!C.has(T)){e.Debug.assert(m.redirectTargetsMap.has(T));var N=m.getSourceFile(T),X=e.find(L,function(pe){return!!pe.redirectInfo&&pe.redirectInfo.redirectTarget===N});T=X.fileName,e.Debug.assert(C.has(T))}return{fileName:T,highlightSpans:Q}})}function He(B,V){var m=ve(B,V);return m&&[{fileName:V.fileName,highlightSpans:m}]}function ve(B,V){switch(B.kind){case 94:case 86:return e.isIfStatement(B.parent)?K(B.parent,V):void 0;case 100:return L(B.parent,e.isReturnStatement,$);case 104:return L(B.parent,e.isThrowStatement,ne);case 106:case 78:case 91:var m=B.kind===78?B.parent.parent:B.parent;return L(m,e.isTryStatement,Y);case 102:return L(B.parent,e.isSwitchStatement,h);case 77:case 83:return L(B.parent.parent.parent,e.isSwitchStatement,h);case 76:case 81:return L(B.parent,e.isBreakOrContinueStatement,P);case 92:case 110:case 85:return L(B.parent,function(_){return e.isIterationStatement(_,!0)},k);case 128:return y(e.isConstructorDeclaration,[128]);case 130:case 141:return y(e.isAccessor,[130,141]);case 126:return L(B.parent,e.isAwaitExpression,J);case 125:return C(J(B));case 120:return C(fe(B));default:return e.isModifierKind(B.kind)&&(e.isDeclaration(B.parent)||e.isVariableStatement(B.parent))?C(re(B.kind,B.parent)):void 0}function y(_,b){return L(B.parent,_,function(D){return e.mapDefined(D.symbol.declarations,function(T){return _(T)?e.find(T.getChildren(V),function(Q){return e.contains(b,Q.kind)}):void 0})})}function L(_,b,D){return b(_)?C(D(_,V)):void 0}function C(_){return _&&_.map(function(b){return Se(b,V)})}}function ie(B){return e.isThrowStatement(B)?[B]:e.isTryStatement(B)?e.concatenate(B.catchClause?ie(B.catchClause):B.tryBlock&&ie(B.tryBlock),B.finallyBlock&&ie(B.finallyBlock)):e.isFunctionLike(B)?void 0:Pe(B,ie)}function d(B){for(var V=B;V.parent;){var m=V.parent;if(e.isFunctionBlock(m)||m.kind===288)return m;if(e.isTryStatement(m)&&m.tryBlock===V&&m.catchClause)return V;V=m}return}function H(B){return e.isBreakOrContinueStatement(B)?[B]:e.isFunctionLike(B)?void 0:Pe(B,H)}function Pe(B,V){var m=[];return B.forEachChild(function(y){var L=V(y);L!==void 0&&m.push.apply(m,e.toArray(L))}),m}function I(B,V){var m=_e(V);return!!m&&m===B}function _e(B){return e.findAncestor(B,function(V){switch(V.kind){case 236:if(B.kind===232)return!1;case 229:case 230:case 231:case 228:case 227:return!B.label||Ee(V,B.label.escapedText);default:return e.isFunctionLike(V)&&"quit"}})}function re(B,V){return e.mapDefined(se(V,e.modifierToFlag(B)),function(m){return e.findModifier(m,B)})}function se(B,V){var m=B.parent;switch(m.kind){case 249:case 288:case 222:case 275:case 276:return V&128&&e.isClassDeclaration(B)?Or(B.members,[B]):m.statements;case 161:case 160:case 243:return Or(m.parameters,e.isClassLike(m.parent)?m.parent.members:[]);case 244:case 213:case 245:case 172:var y=m.members;if(V&(28|64)){var L=e.find(m.members,e.isConstructorDeclaration);if(L)return Or(y,L.parameters)}else if(V&128)return Or(y,[m]);return y;default:e.Debug.assertNever(m,"Invalid container kind.")}}function w(B,V){for(var m=[],y=2;y<arguments.length;y++)m[y-2]=arguments[y];return V&&e.contains(m,V.kind)?(B.push(V),!0):!1}function k(B){var V=[];if(w(V,B.getFirstToken(),92,110,85)&&B.kind===227)for(var m=B.getChildren(),y=m.length-1;y>=0&&!w(V,m[y],110);y--);return e.forEach(H(B.statement),function(L){I(B,L)&&w(V,L.getFirstToken(),76,81)}),V}function P(B){var V=_e(B);if(V)switch(V.kind){case 229:case 230:case 231:case 227:case 228:return k(V);case 236:return h(V)}return}function h(B){var V=[];return w(V,B.getFirstToken(),102),e.forEach(B.caseBlock.clauses,function(m){w(V,m.getFirstToken(),77,83),e.forEach(H(m),function(y){I(B,y)&&w(V,y.getFirstToken(),76)})}),V}function Y(B,V){var m=[];if(w(m,B.getFirstToken(),106),B.catchClause&&w(m,B.catchClause.getFirstToken(),78),B.finallyBlock){var y=e.findChildOfKind(B,91,V);w(m,y,91)}return m}function ne(B,V){var m=d(B);if(!m)return;var y=[];return e.forEach(ie(m),function(L){y.push(e.findChildOfKind(L,104,V))}),e.isFunctionBlock(m)&&e.forEachReturnStatement(m,function(L){y.push(e.findChildOfKind(L,100,V))}),y}function $(B,V){var m=e.getContainingFunction(B);if(!m)return;var y=[];return e.forEachReturnStatement(e.cast(m.body,e.isBlock),function(L){y.push(e.findChildOfKind(L,100,V))}),e.forEach(ie(m.body),function(L){y.push(e.findChildOfKind(L,104,V))}),y}function J(B){var V=e.getContainingFunction(B);if(!V)return;var m=[];return V.modifiers&&V.modifiers.forEach(function(y){w(m,y,125)}),e.forEachChild(V,function(y){R(y,function(L){e.isAwaitExpression(L)&&w(m,L.getFirstToken(),126)})}),m}function fe(B){var V=e.getContainingFunction(B);if(!V)return;var m=[];return e.forEachChild(V,function(y){R(y,function(L){e.isYieldExpression(L)&&w(m,L.getFirstToken(),120)})}),m}function R(B,V){V(B),!e.isFunctionLike(B)&&!e.isClassLike(B)&&!e.isInterfaceDeclaration(B)&&!e.isModuleDeclaration(B)&&!e.isTypeAliasDeclaration(B)&&!e.isTypeNode(B)&&e.forEachChild(B,function(m){return R(m,V)})}function K(B,V){for(var m=z(B,V),y=[],L=0;L<m.length;L++){if(m[L].kind===86&&L<m.length-1){for(var C=m[L],_=m[L+1],b=!0,D=_.getStart(V)-1;D>=C.end;D--)if(!e.isWhiteSpaceSingleLine(V.text.charCodeAt(D))){b=!1;break}if(b){y.push({fileName:V.fileName,textSpan:e.createTextSpanFromBounds(C.getStart(),_.end),kind:"reference"}),L++;continue}}y.push(Se(m[L],V))}return y}function z(B,V){for(var m=[];e.isIfStatement(B.parent)&&B.parent.elseStatement===B;)B=B.parent;for(;;){var y=B.getChildren(V);w(m,y[0],94);for(var L=y.length-1;L>=0&&!w(m,y[L],86);L--);if(!B.elseStatement||!e.isIfStatement(B.elseStatement))break;B=B.elseStatement}return m}function Ee(B,V){return!!e.findAncestor(B.parent,function(m){return e.isLabeledStatement(m)?m.label.escapedText===V:"quit"})}})(o=e.DocumentHighlights||(e.DocumentHighlights={}))})(ln||(ln={}));var ln;(function(e){function o(Se,Fe){return F(Se,Fe)}e.createDocumentRegistry=o;function F(Se,Fe,He){Fe===void 0&&(Fe="");var ve=e.createMap(),ie=e.createGetCanonicalFileName(!!Se);function d(){var P=e.arrayFrom(ve.keys()).filter(function(h){return h&&h.charAt(0)==="_"}).map(function(h){var Y=ve.get(h),ne=[];return Y.forEach(function($,J){ne.push({name:J,refCount:$.languageServiceRefCount})}),ne.sort(function($,J){return J.refCount-$.refCount}),{bucket:h,sourceFiles:ne}});return JSON.stringify(P,void 0,2)}function H(P,h,Y,ne,$){var J=e.toPath(P,Fe,ie),fe=qe(h);return Pe(P,J,h,fe,Y,ne,$)}function Pe(P,h,Y,ne,$,J,fe){return re(P,h,Y,ne,$,J,!0,fe)}function I(P,h,Y,ne,$){var J=e.toPath(P,Fe,ie),fe=qe(h);return _e(P,J,h,fe,Y,ne,$)}function _e(P,h,Y,ne,$,J,fe){return re(P,h,Y,ne,$,J,!1,fe)}function re(P,h,Y,ne,$,J,fe,R){var K=e.getOrUpdate(ve,ne,e.createMap),z=K.get(h),Ee=R===6?100:Y.target||1;if(!z&&He){var B=He.getDocument(ne,h);B&&(e.Debug.assert(fe),z={sourceFile:B,languageServiceRefCount:0},K.set(h,z))}if(z)z.sourceFile.version!==J&&(z.sourceFile=e.updateLanguageServiceSourceFile(z.sourceFile,$,J,$.getChangeRange(z.sourceFile.scriptSnapshot)),He&&He.setDocument(ne,h,z.sourceFile)),fe&&z.languageServiceRefCount++;else{var B=e.createLanguageServiceSourceFile(P,$,Ee,J,!1,R);He&&He.setDocument(ne,h,B),z={sourceFile:B,languageServiceRefCount:1},K.set(h,z)}return e.Debug.assert(z.languageServiceRefCount!==0),z.sourceFile}function se(P,h){var Y=e.toPath(P,Fe,ie),ne=qe(h);return w(Y,ne)}function w(P,h){var Y=e.Debug.assertDefined(ve.get(h)),ne=Y.get(P);ne.languageServiceRefCount--,e.Debug.assert(ne.languageServiceRefCount>=0),ne.languageServiceRefCount===0&&Y.delete(P)}function k(P){return e.arrayFrom(ve.entries(),function(h){var Y=h[0],ne=h[1],$=ne.get(P);return[Y,$&&$.languageServiceRefCount]})}return{acquireDocument:H,acquireDocumentWithKey:Pe,updateDocument:I,updateDocumentWithKey:_e,releaseDocument:se,releaseDocumentWithKey:w,getLanguageServiceRefCounts:k,reportStats:d,getKeyForCompilationSettings:qe}}e.createDocumentRegistryInternal=F;function qe(Se){return e.sourceFileAffectingCompilerOptions.map(function(Fe){return e.getCompilerOptionValue(Se,Fe)}).join("|")}})(ln||(ln={}));var ln;(function(e){var o;(function(F){function qe(J,fe,R,K){var z=H(J,R,K);return function(Ee,B,V){var m=He(J,fe,z,B,R,K),y=m.directImports,L=m.indirectUsers;return ma({indirectUsers:L},ve(y,Ee,B.exportKind,R,V))}}F.createImportTracker=qe;var Se;(function(J){J[J.Named=0]="Named",J[J.Default=1]="Default",J[J.ExportEquals=2]="ExportEquals"})(Se=F.ExportKind||(F.ExportKind={}));var Fe;(function(J){J[J.Import=0]="Import",J[J.Export=1]="Export"})(Fe=F.ImportExport||(F.ImportExport={}));function He(J,fe,R,K,z,Ee){var B=K.exportingModuleSymbol,V=K.exportKind,m=e.nodeSeenTracker(),y=e.nodeSeenTracker(),L=[],C=!!B.globalExports,_=C?void 0:[];return D(B),{directImports:L,indirectUsers:b()};function b(){if(C)return J;for(var pe=0,S=B.declarations;pe<S.length;pe++){var v=S[pe];e.isExternalModuleAugmentation(v)&&fe.has(v.getSourceFile().fileName)&&Q(v)}return _.map(e.getSourceFileOfNode)}function D(pe){var S=X(pe);if(S)for(var v=0,U=S;v<U.length;v++){var de=U[v];if(!m(de))continue;Ee&&Ee.throwIfCancellationRequested();switch(de.kind){case 195:if(!C){var Ce=de.parent;if(V===2&&Ce.kind===241){var Z=Ce.name;if(Z.kind===75){L.push(Z);break}}Q(de.getSourceFile())}break;case 75:break;case 252:T(de,de.name,e.hasModifier(de,1),!1);break;case 253:L.push(de);var Re=de.importClause&&de.importClause.namedBindings;Re&&Re.kind===255?T(de,Re.name,!1,!0):!C&&e.isDefaultImport(de)&&Q(Y(de));break;case 259:de.exportClause?L.push(de):D(h(de,z));break;case 187:L.push(de);break;default:e.Debug.failBadSyntaxKind(de,"Unexpected import kind.")}}}function T(pe,S,v,U){if(V===2)U||L.push(pe);else if(!C){var de=Y(pe);e.Debug.assert(de.kind===288||de.kind===248),v||ie(de,S,z)?N(de):Q(de)}}function Q(pe){e.Debug.assert(!C);var S=y(pe);return S&&_.push(pe),S}function N(pe){if(!Q(pe))return;var S=z.getMergedSymbol(pe.symbol);e.Debug.assert(!!(S.flags&1536));var v=X(S);if(v)for(var U=0,de=v;U<de.length;U++){var Ce=de[U];N(Y(Ce))}}function X(pe){return R.get(e.getSymbolId(pe).toString())}}function ve(J,fe,R,K,z){var Ee=[],B=[];function V(T,Q){Ee.push([T,Q])}if(J)for(var m=0,y=J;m<y.length;m++){var L=y[m];C(L)}return{importSearches:Ee,singleReferences:B};function C(T){if(T.kind===252){$(T)&&_(T.name);return}if(T.kind===75){_(T);return}if(T.kind===187){T.qualifier?e.isIdentifier(T.qualifier)&&T.qualifier.escapedText===e.symbolName(fe)&&B.push(T.qualifier):R===2&&B.push(T.argument.literal);return}if(T.moduleSpecifier.kind!==10)return;if(T.kind===259){b(T.exportClause);return}var Q=T.importClause||{name:void 0,namedBindings:void 0},N=Q.name,X=Q.namedBindings;if(X)switch(X.kind){case 255:_(X.name);break;case 256:(R===0||R===1)&&b(X);break;default:e.Debug.assertNever(X)}if(N&&(R===1||R===2)&&(!z||N.escapedText===e.symbolEscapedNameNoDefault(fe))){var pe=K.getSymbolAtLocation(N);V(N,pe)}}function _(T){R===2&&(!z||D(T.escapedText))&&V(T,K.getSymbolAtLocation(T))}function b(T){if(!T)return;for(var Q=0,N=T.elements;Q<N.length;Q++){var X=N[Q],pe=X.name,S=X.propertyName;if(!D((S||pe).escapedText))continue;if(S)B.push(S),(!z||pe.escapedText===fe.escapedName)&&V(pe,K.getSymbolAtLocation(pe));else{var v=X.kind===261&&X.propertyName?K.getExportSpecifierLocalTargetSymbol(X):K.getSymbolAtLocation(pe);V(pe,v)}}}function D(T){return T===fe.escapedName||R!==0&&T==="default"}}function ie(J,fe,R){var K=R.getSymbolAtLocation(fe);return!!Pe(J,function(z){if(!e.isExportDeclaration(z))return;var Ee=z.exportClause,B=z.moduleSpecifier;return!B&&Ee&&Ee.elements.some(function(V){return R.getExportSpecifierLocalTargetSymbol(V)===K})})}function d(J,fe,R){for(var K=[],z=J.getTypeChecker(),Ee=0,B=fe;Ee<B.length;Ee++){var V=B[Ee],m=R.valueDeclaration;if(m.kind===288){for(var y=0,L=V.referencedFiles;y<L.length;y++){var C=L[y];J.getSourceFileFromReference(V,C)===m&&K.push({kind:"reference",referencingFile:V,ref:C})}for(var _=0,b=V.typeReferenceDirectives;_<b.length;_++){var C=b[_],D=J.getResolvedTypeReferenceDirectives().get(C.fileName);D!==void 0&&D.resolvedFileName===m.fileName&&K.push({kind:"reference",referencingFile:V,ref:C})}}I(V,function(T,Q){var N=z.getSymbolAtLocation(Q);N===R&&K.push({kind:"import",literal:Q})})}return K}F.findModuleReferences=d;function H(J,fe,R){for(var K=e.createMap(),z=0,Ee=J;z<Ee.length;z++){var B=Ee[z];R&&R.throwIfCancellationRequested(),I(B,function(V,m){var y=fe.getSymbolAtLocation(m);if(y){var L=e.getSymbolId(y).toString(),C=K.get(L);C||K.set(L,C=[]),C.push(V)}})}return K}function Pe(J,fe){return e.forEach(J.kind===288?J.statements:J.body.statements,function(R){return fe(R)||ne(R)&&e.forEach(R.body&&R.body.statements,fe)})}function I(J,fe){if(J.externalModuleIndicator||J.imports!==void 0)for(var R=0,K=J.imports;R<K.length;R++){var z=K[R];fe(e.importFromModuleSpecifier(z),z)}else Pe(J,function(Ee){switch(Ee.kind){case 259:case 253:{var B=Ee;B.moduleSpecifier&&e.isStringLiteral(B.moduleSpecifier)&&fe(B,B.moduleSpecifier);break}case 252:{var B=Ee;$(B)&&fe(B,B.moduleReference.expression);break}}})}function _e(J,fe,R,K){return K?z():z()||Ee();function z(){var m=J.parent,y=m.parent;if(fe.exportSymbol)return m.kind===193?fe.declarations.some(function(D){return D===m})&&e.isBinaryExpression(y)?b(y,!1):void 0:B(fe.exportSymbol,V(m));var L=se(m,J);if(L&&e.hasModifier(L,1))if(e.isImportEqualsDeclaration(L)&&L.moduleReference===J){if(K)return;var C=R.getSymbolAtLocation(L.name);return{kind:0,symbol:C}}else return B(fe,V(L));else{if(e.isExportAssignment(m))return _(m);if(e.isExportAssignment(y))return _(y);if(e.isBinaryExpression(m))return b(m,!0);if(e.isBinaryExpression(y))return b(y,!0);if(e.isJSDocTypedefTag(m))return B(fe,0)}function _(D){var T=e.Debug.assertDefined(D.symbol.parent,"Expected export symbol to have a parent"),Q=D.isExportEquals?2:1;return{kind:1,symbol:fe,exportInfo:{exportingModuleSymbol:T,exportKind:Q}}}function b(D,T){var Q;switch(e.getAssignmentDeclarationKind(D)){case 1:Q=0;break;case 2:Q=2;break;default:return}var N=T?R.getSymbolAtLocation(e.cast(D.left,e.isPropertyAccessExpression).name):fe;return N&&!(R.getMergedSymbol(N.parent).flags&1536)&&e.Debug.fail("Special property assignment kind does not have a module as its parent. Assignment is "+e.Debug.formatSymbol(N)+", parent is "+e.Debug.formatSymbol(N.parent)),N&&B(N,Q)}}function Ee(){var m=w(J);if(!m)return;var y=R.getImmediateAliasedSymbol(fe);if(!y)return;y=P(y,R),y.escapedName==="export="&&(y=re(y,R));var L=e.symbolEscapedNameNoDefault(y);if(L===void 0||L==="default"||L===fe.escapedName)return{kind:0,symbol:y}}function B(m,y){var L=k(m,y,R);return L&&{kind:1,symbol:m,exportInfo:L}}function V(m){return e.hasModifier(m,512)?1:0}}F.getImportOrExportSymbol=_e;function re(J,fe){if(J.flags&2097152)return e.Debug.assertDefined(fe.getImmediateAliasedSymbol(J));var R=J.valueDeclaration;return e.isExportAssignment(R)?e.Debug.assertDefined(R.expression.symbol):e.isBinaryExpression(R)?e.Debug.assertDefined(R.right.symbol):e.isSourceFile(R)?e.Debug.assertDefined(R.symbol):e.Debug.fail()}function se(J,fe){var R=e.isVariableDeclaration(J)?J:e.isBindingElement(J)?e.walkUpBindingElementsAndPatterns(J):void 0;return R?J.name!==fe||e.isCatchClause(R.parent)?void 0:e.isVariableStatement(R.parent.parent)?R.parent.parent:void 0:J}function w(J){var fe=J.parent;switch(fe.kind){case 252:return fe.name===J&&$(fe);case 257:return!fe.propertyName;case 254:case 255:return e.Debug.assert(fe.name===J),!0;default:return!1}}function k(J,fe,R){var K=J.parent;if(!K)return;var z=R.getMergedSymbol(K);return e.isExternalModuleSymbol(z)?{exportingModuleSymbol:z,exportKind:fe}:void 0}F.getExportInfo=k;function P(J,fe){if(J.declarations)for(var R=0,K=J.declarations;R<K.length;R++){var z=K[R];if(e.isExportSpecifier(z)&&!z.propertyName&&!z.parent.parent.moduleSpecifier)return fe.getExportSpecifierLocalTargetSymbol(z)}return J}function h(J,fe){return fe.getMergedSymbol(Y(J).symbol)}function Y(J){if(J.kind===195)return J.getSourceFile();var fe=J.parent;return fe.kind===288?fe:(e.Debug.assert(fe.kind===249),e.cast(fe.parent,ne))}function ne(J){return J.kind===248&&J.name.kind===10}function $(J){return J.moduleReference.kind===263&&J.moduleReference.expression.kind===10}})(o=e.FindAllReferences||(e.FindAllReferences={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe;(function(B){B[B.Symbol=0]="Symbol",B[B.Label=1]="Label",B[B.Keyword=2]="Keyword",B[B.This=3]="This",B[B.String=4]="String"})(qe=F.DefinitionKind||(F.DefinitionKind={}));var Se;(function(B){B[B.Span=0]="Span",B[B.Node=1]="Node",B[B.StringLiteral=2]="StringLiteral",B[B.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",B[B.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"})(Se=F.EntryKind||(F.EntryKind={}));function Fe(B,V){return V===void 0&&(V=1),{kind:V,node:B.name||B,context:ve(B)}}F.nodeEntry=Fe;function He(B){return B&&B.kind===void 0}F.isContextWithStartAndEndNode=He;function ve(B){if(e.isDeclaration(B))return ie(B);if(!B.parent)return;if(!e.isDeclaration(B.parent)&&!e.isExportAssignment(B.parent)){if(e.isInJSFile(B)){var V=e.isBinaryExpression(B.parent)?B.parent:e.isAccessExpression(B.parent)&&e.isBinaryExpression(B.parent.parent)&&B.parent.parent.left===B.parent?B.parent.parent:void 0;if(V&&e.getAssignmentDeclarationKind(V)!==0)return ie(V)}if(e.isJsxOpeningElement(B.parent)||e.isJsxClosingElement(B.parent))return B.parent.parent;if(e.isJsxSelfClosingElement(B.parent)||e.isLabeledStatement(B.parent)||e.isBreakOrContinueStatement(B.parent))return B.parent;if(e.isStringLiteralLike(B)){var m=e.tryGetImportFromModuleSpecifier(B);if(m){var y=e.findAncestor(m,function(C){return e.isDeclaration(C)||e.isStatement(C)||e.isJSDocTag(C)});return e.isDeclaration(y)?ie(y):y}}var L=e.findAncestor(B,e.isComputedPropertyName);return L?ie(L.parent):void 0}return B.parent.name===B||e.isConstructorDeclaration(B.parent)||e.isExportAssignment(B.parent)||(e.isImportOrExportSpecifier(B.parent)||e.isBindingElement(B.parent))&&B.parent.propertyName===B||B.kind===83&&e.hasModifier(B.parent,513)?ie(B.parent):void 0}function ie(B){if(!B)return;switch(B.kind){case 241:return!e.isVariableDeclarationList(B.parent)||B.parent.declarations.length!==1?B:e.isVariableStatement(B.parent.parent)?B.parent.parent:e.isForInOrOfStatement(B.parent.parent)?ie(B.parent.parent):B.parent;case 190:return ie(B.parent.parent);case 257:return B.parent.parent.parent;case 261:case 255:return B.parent.parent;case 254:return B.parent;case 208:return e.isExpressionStatement(B.parent)?B.parent:B;case 231:case 230:return{start:B.initializer,end:B.expression};case 279:case 280:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(B.parent)?ie(e.findAncestor(B.parent,function(V){return e.isBinaryExpression(V)||e.isForInOrOfStatement(V)})):B;default:return B}}F.getContextNode=ie;function d(B,V,m){if(!m)return;var y=He(m)?R(m.start,V,m.end):R(m,V);return y.start!==B.start||y.length!==B.length?{contextSpan:y}:void 0}F.toContextSpan=d;function H(B,V,m,y,L){var C=e.getTouchingPropertyName(y,L),_=F.Core.getReferencedSymbolsForNode(L,C,B,m,V),b=B.getTypeChecker();return!_||!_.length?void 0:e.mapDefined(_,function(D){var T=D.definition,Q=D.references;return T&&{definition:b.runWithCancellationToken(V,function(N){return w(T,N,C)}),references:Q.map(h)}})}F.findReferencedSymbols=H;function Pe(B,V,m,y,L){var C=e.getTouchingPropertyName(y,L),_=I(B,V,m,C,L),b=B.getTypeChecker();return e.map(_,function(D){return $(D,b)})}F.getImplementationsAtPosition=Pe;function I(B,V,m,y,L){if(y.kind===288)return;var C=B.getTypeChecker();if(y.parent.kind===280){var _=[];return F.Core.getReferenceEntriesForShorthandPropertyAssignment(y,C,function(D){return _.push(Fe(D))}),_}else if(y.kind===101||e.isSuperProperty(y.parent)){var b=C.getSymbolAtLocation(y);return b.valueDeclaration&&[Fe(b.valueDeclaration)]}else return re(L,y,B,m,V,{implementations:!0})}function _e(B,V,m,y,L,C,_){return e.map(se(F.Core.getReferencedSymbolsForNode(L,y,B,m,V,C)),function(b){return _(b,y,B.getTypeChecker())})}F.findReferenceOrRenameEntries=_e;function re(B,V,m,y,L,C,_){return C===void 0&&(C={}),_===void 0&&(_=e.arrayToSet(y,function(b){return b.fileName})),se(F.Core.getReferencedSymbolsForNode(B,V,m,y,L,C,_))}F.getReferenceEntriesForNode=re;function se(B){return B&&e.flatMap(B,function(V){return V.references})}function w(B,V,m){var y=function(){switch(B.type){case 0:{var N=B.symbol,X=k(N,V,m),pe=X.displayParts,S=X.kind,v=pe.map(function(be){return be.text}).join(""),U=N.declarations?e.first(N.declarations):void 0;return{node:U?e.getNameOfDeclaration(U)||U:m,name:v,kind:S,displayParts:pe,context:ie(U)}}case 1:{var de=B.node;return{node:de,name:de.text,kind:"label",displayParts:[e.displayPart(de.text,e.SymbolDisplayPartKind.text)]}}case 2:{var Ce=B.node,Z=e.tokenToString(Ce.kind);return{node:Ce,name:Z,kind:"keyword",displayParts:[{text:Z,kind:"keyword"}]}}case 3:{var Re=B.node,N=V.getSymbolAtLocation(Re),Ae=N&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(V,N,Re.getSourceFile(),e.getContainerNode(Re),Re).displayParts||[e.textPart("this")];return{node:Re,name:"this",kind:"var",displayParts:Ae}}case 4:{var We=B.node;return{node:We,name:We.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(We),e.SymbolDisplayPartKind.stringLiteral)]}}default:return e.Debug.assertNever(B)}}(),L=y.node,C=y.name,_=y.kind,b=y.displayParts,D=y.context,T=L.getSourceFile(),Q=R(e.isComputedPropertyName(L)?L.expression:L,T);return ma({containerKind:"",containerName:"",fileName:T.fileName,kind:_,name:C,textSpan:Q,displayParts:b},d(Q,T,D))}function k(B,V,m){var y=F.Core.getIntersectingMeaningFromDeclarations(m,B),L=B.declarations&&e.firstOrUndefined(B.declarations)||m,C=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(V,B,L.getSourceFile(),L,L,y),_=C.displayParts,b=C.symbolKind;return{displayParts:_,kind:b}}function P(B,V,m,y){return ma(ma({},Y(B)),y&&ne(B,V,m))}F.toRenameLocation=P;function h(B){var V=Y(B);if(B.kind===0)return ma(ma({},V),{isWriteAccess:!1,isDefinition:!1});var m=B.kind,y=B.node;return ma(ma({},V),{isWriteAccess:z(y),isDefinition:y.kind===83||!!e.getDeclarationFromName(y)||e.isLiteralComputedPropertyDeclarationName(y),isInString:m===2?!0:void 0})}F.toReferenceEntry=h;function Y(B){if(B.kind===0)return{textSpan:B.textSpan,fileName:B.fileName};var V=B.node.getSourceFile(),m=R(B.node,V);return ma({textSpan:m,fileName:V.fileName},d(m,V,B.context))}function ne(B,V,m){if(B.kind!==0&&e.isIdentifier(V)){var y=B.node,L=B.kind,C=V.text,_=e.isShorthandPropertyAssignment(y.parent);if(_||e.isObjectBindingElementWithoutPropertyName(y.parent)){var b={prefixText:C+": "},D={suffixText:": "+C};return L===3?b:L===4||_?D:b}else if(e.isImportSpecifier(B.node.parent)&&!B.node.parent.propertyName){var T=e.isExportSpecifier(V.parent)?m.getExportSpecifierLocalTargetSymbol(V.parent):m.getSymbolAtLocation(V);return e.contains(T.declarations,B.node.parent)?{prefixText:C+" as "}:e.emptyOptions}else if(e.isExportSpecifier(B.node.parent)&&!B.node.parent.propertyName)return V===B.node?{prefixText:C+" as "}:{suffixText:" as "+C}}return e.emptyOptions}function $(B,V){var m=Y(B);if(B.kind!==0){var y=B.node;return ma(ma({},m),J(y,V))}else return ma(ma({},m),{kind:"",displayParts:[]})}function J(B,V){var m=V.getSymbolAtLocation(e.isDeclaration(B)&&B.name?B.name:B);return m?k(m,V,B):B.kind===192?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:B.kind===213?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(B),displayParts:[]}}function fe(B){var V=Y(B);if(B.kind===0)return{fileName:V.fileName,span:{textSpan:V.textSpan,kind:"reference"}};var m=z(B.node),y=ma({textSpan:V.textSpan,kind:m?"writtenReference":"reference",isInString:B.kind===2?!0:void 0},V.contextSpan&&{contextSpan:V.contextSpan});return{fileName:V.fileName,span:y}}F.toHighlightSpan=fe;function R(B,V,m){var y=B.getStart(V),L=(m||B).getEnd();return e.isStringLiteralLike(B)&&(e.Debug.assert(m===void 0),y+=1,L-=1),e.createTextSpanFromBounds(y,L)}function K(B){return B.kind===0?B.textSpan:R(B.node,B.node.getSourceFile())}F.getTextSpanOfEntry=K;function z(B){var V=e.getDeclarationFromName(B);return!!V&&Ee(V)||B.kind===83||e.isWriteAccess(B)}function Ee(B){if(B.flags&8388608)return!0;switch(B.kind){case 208:case 190:case 244:case 213:case 83:case 247:case 282:case 261:case 254:case 252:case 257:case 245:case 308:case 315:case 271:case 248:case 251:case 255:case 155:case 280:case 246:case 154:return!0;case 279:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(B.parent);case 243:case 200:case 161:case 160:case 162:case 163:return!!B.body;case 241:case 158:return!!B.initializer||e.isCatchClause(B.parent);case 159:case 157:case 316:case 310:return!1;default:return e.Debug.failBadSyntaxKind(B)}}})(o=e.FindAllReferences||(e.FindAllReferences={}))})(ln||(ln={})),function(e){var o;(function(F){var qe;(function(Se){function Fe(he,ke,G,c,O,ee,Te){if(ee===void 0&&(ee={}),Te===void 0&&(Te=e.arrayToSet(c,function(kn){return kn.fileName})),e.isSourceFile(ke)){var Ne=e.GoToDefinition.getReferenceAtPosition(ke,he,G),ze=Ne&&G.getTypeChecker().getMergedSymbol(Ne.file.symbol);return ze&&H(G,ze,!1,c,Te)}if(!ee.implementations){var bn=I(ke,c,O);if(bn)return bn}var Sn=G.getTypeChecker(),Kn=Sn.getSymbolAtLocation(ke);if(!Kn)return!ee.implementations&&e.isStringLiteral(ke)?Pn(ke,c,O):void 0;if(Kn.escapedName==="export=")return H(G,Kn.parent,!1,c,Te);var Xe=ve(Kn,G,c,O,ee,Te);if(Xe&&!(Kn.flags&33554432))return Xe;var pn=He(ke,Kn,Sn),le=pn&&ve(pn,G,c,O,ee,Te),oe=_e(Kn,ke,c,Te,Sn,O,ee);return ie(G,Xe,oe,le)}Se.getReferencedSymbolsForNode=Fe;function He(he,ke,G){if(he.parent&&e.isNamespaceExportDeclaration(he.parent)){var c=G.getAliasedSymbol(ke),O=G.getMergedSymbol(c);if(c!==O)return O}return}function ve(he,ke,G,c,O,ee){var Te=he.flags&1536?e.find(he.declarations,e.isSourceFile):void 0;if(!Te)return;var Ne=he.exports.get("export="),ze=H(ke,he,!!Ne,G,ee);if(!Ne||!ee.has(Te.fileName))return ze;var bn=ke.getTypeChecker();return he=e.skipAlias(Ne,bn),ie(ke,ze,_e(he,void 0,G,ee,bn,c,O))}function ie(he){for(var ke=[],G=1;G<arguments.length;G++)ke[G-1]=arguments[G];for(var c,O=0,ee=ke;O<ee.length;O++){var Te=ee[O];if(!Te||!Te.length)continue;if(!c){c=Te;continue}for(var Ne=function(Xe){if(!Xe.definition||Xe.definition.type!==0)return c.push(Xe),"continue";var pn=Xe.definition.symbol,le=e.findIndex(c,function(kn){return!!kn.definition&&kn.definition.type===0&&kn.definition.symbol===pn});if(le===-1)return c.push(Xe),"continue";var oe=c[le];c[le]={definition:oe.definition,references:oe.references.concat(Xe.references).sort(function(kn,yn){var ye=d(he,kn),mn=d(he,yn);if(ye!==mn)return e.compareValues(ye,mn);var un=F.getTextSpanOfEntry(kn),Mn=F.getTextSpanOfEntry(yn);return un.start!==Mn.start?e.compareValues(un.start,Mn.start):e.compareValues(un.length,Mn.length)})}},ze=0,bn=Te;ze<bn.length;ze++){var Sn=bn[ze];Ne(Sn)}}return c}function d(he,ke){var G=ke.kind===0?he.getSourceFile(ke.fileName):ke.node.getSourceFile();return he.getSourceFiles().indexOf(G)}function H(he,ke,G,c,O){e.Debug.assert(!!ke.valueDeclaration);for(var ee=e.mapDefined(F.findModuleReferences(he,c,ke),function(le){if(le.kind==="import"){var oe=le.literal.parent;if(e.isLiteralTypeNode(oe)){var kn=e.cast(oe.parent,e.isImportTypeNode);if(G&&!kn.qualifier)return}return F.nodeEntry(le.literal)}else return{kind:0,fileName:le.referencingFile.fileName,textSpan:e.createTextSpanFromRange(le.ref)}}),Te=0,Ne=ke.declarations;Te<Ne.length;Te++){var ze=Ne[Te];switch(ze.kind){case 288:break;case 248:O.has(ze.getSourceFile().fileName)&&ee.push(F.nodeEntry(ze.name));break;default:e.Debug.assert(!!(ke.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var bn=ke.exports.get("export=");if(bn)for(var Sn=0,Kn=bn.declarations;Sn<Kn.length;Sn++){var ze=Kn[Sn],Xe=ze.getSourceFile();if(O.has(Xe.fileName)){var pn=e.isBinaryExpression(ze)&&e.isPropertyAccessExpression(ze.left)?ze.left.expression:e.isExportAssignment(ze)?e.Debug.assertDefined(e.findChildOfKind(ze,88,Xe)):e.getNameOfDeclaration(ze)||ze;ee.push(F.nodeEntry(pn))}}return ee.length?[{definition:{type:0,symbol:ke},references:ee}]:e.emptyArray}function Pe(he){return he.kind===137&&e.isTypeOperatorNode(he.parent)&&he.parent.operator===137}function I(he,ke,G){if(e.isTypeKeyword(he.kind))return he.kind===137&&!Pe(he)?void 0:C(ke,he.kind,G,he.kind===137?Pe:void 0);if(e.isJumpStatementTarget(he)){var c=e.getTargetLabel(he.parent,he.text);return c&&y(c.parent,c)}else if(e.isLabelOfLabeledStatement(he))return y(he.parent,he);return e.isThis(he)?en(he,ke,G):he.kind===101?Oe(he):void 0}function _e(he,ke,G,c,O,ee,Te){var Ne=ke&&w(he,ke,O,!sn(Te))||he,ze=ke?Le(ke,Ne):7,bn=[],Sn=new h(G,c,ke?se(ke):0,O,ee,ze,Te,bn),Kn=sn(Te)?e.find(Ne.declarations,e.isExportSpecifier):void 0;if(Kn)Q(Kn.name,Ne,Kn,Sn.createSearch(ke,he,void 0),Sn,!0,!0);else if(ke&&ke.kind===83)v(ke,Ne,Sn),Y(ke,Ne,{exportingModuleSymbol:e.Debug.assertDefined(Ne.parent,"Expected export symbol to have a parent"),exportKind:1},Sn);else{var Xe=Sn.createSearch(ke,Ne,void 0,{allSearchSymbols:ke?Xn(Ne,ke,O,!!Te.isForRename,!!Te.providePrefixAndSuffixTextForRename,!!Te.implementations):[Ne]});re(Ne,Sn,Xe)}return bn}function re(he,ke,G){var c=K(he);if(c)b(c,c.getSourceFile(),G,ke,!(e.isSourceFile(c)&&!e.contains(ke.sourceFiles,c)));else for(var O=0,ee=ke.sourceFiles;O<ee.length;O++){var Te=ee[O];ke.cancellationToken.throwIfCancellationRequested(),fe(Te,G,ke)}}function se(he){switch(he.kind){case 128:return 1;case 75:if(e.isClassLike(he.parent))return e.Debug.assert(he.parent.name===he),2;default:return 0}}function w(he,ke,G,c){var O=ke.parent;return e.isExportSpecifier(O)&&c?N(ke,he,O,G):e.firstDefined(he.declarations,function(ee){if(!ee.parent){if(he.flags&33554432)return;e.Debug.fail("Unexpected symbol at "+e.Debug.formatSyntaxKind(ke.kind)+": "+e.Debug.formatSymbol(he))}return e.isTypeLiteralNode(ee.parent)&&e.isUnionTypeNode(ee.parent.parent)?G.getPropertyOfType(G.getTypeFromTypeNode(ee.parent.parent),he.name):void 0})}var k;(function(he){he[he.None=0]="None",he[he.Constructor=1]="Constructor",he[he.Class=2]="Class"})(k||(k={}));function P(he){if(!(he.flags&(1536|33554432)))return;var ke=he.declarations&&e.find(he.declarations,function(G){return!e.isSourceFile(G)&&!e.isModuleDeclaration(G)});return ke&&ke.symbol}var h=function(){function he(ke,G,c,O,ee,Te,Ne,ze){this.sourceFiles=ke,this.sourceFilesSet=G,this.specialSearchKind=c,this.checker=O,this.cancellationToken=ee,this.searchMeaning=Te,this.options=Ne,this.result=ze,this.inheritsFromCache=e.createMap(),this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return he.prototype.includesSourceFile=function(ke){return this.sourceFilesSet.has(ke.fileName)},he.prototype.getImportSearches=function(ke,G){return this.importTracker||(this.importTracker=F.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(ke,G,!!this.options.isForRename)},he.prototype.createSearch=function(ke,G,c,O){O===void 0&&(O={});var ee=O.text,Te=ee===void 0?e.stripQuotes(e.unescapeLeadingUnderscores((e.getLocalSymbolForExportDefault(G)||P(G)||G).escapedName)):ee,Ne=O.allSearchSymbols,ze=Ne===void 0?[G]:Ne,bn=e.escapeLeadingUnderscores(Te),Sn=this.options.implementations&&ke?$e(ke,G,this.checker):void 0;return{symbol:G,comingFrom:c,text:Te,escapedText:bn,parents:Sn,allSearchSymbols:ze,includes:function(Xe){return e.contains(ze,Xe)}}},he.prototype.referenceAdder=function(ke){var G=e.getSymbolId(ke),c=this.symbolIdToReferences[G];return c||(c=this.symbolIdToReferences[G]=[],this.result.push({definition:{type:0,symbol:ke},references:c})),function(O,ee){return c.push(F.nodeEntry(O,ee))}},he.prototype.addStringOrCommentReference=function(ke,G){this.result.push({definition:void 0,references:[{kind:0,fileName:ke,textSpan:G}]})},he.prototype.markSearchedSymbols=function(ke,G){for(var c=e.getNodeId(ke),O=this.sourceFileToSeenSymbols[c]||(this.sourceFileToSeenSymbols[c]=e.createMap()),ee=!1,Te=0,Ne=G;Te<Ne.length;Te++){var ze=Ne[Te];ee=e.addToSeen(O,e.getSymbolId(ze))||ee}return ee},he}();function Y(he,ke,G,c){var O=c.getImportSearches(ke,G),ee=O.importSearches,Te=O.singleReferences,Ne=O.indirectUsers;if(Te.length)for(var ze=c.referenceAdder(ke),bn=0,Sn=Te;bn<Sn.length;bn++){var Kn=Sn[bn];$(Kn,c)&&ze(Kn)}for(var Xe=0,pn=ee;Xe<pn.length;Xe++){var le=pn[Xe],oe=le[0],kn=le[1];_(oe.getSourceFile(),c.createSearch(oe,kn,1),c)}if(Ne.length){var yn=void 0;switch(G.exportKind){case 0:yn=c.createSearch(he,ke,1);break;case 1:yn=c.options.isForRename?void 0:c.createSearch(he,ke,1,{text:"default"});break;case 2:break}if(yn)for(var ye=0,mn=Ne;ye<mn.length;ye++){var un=mn[ye];fe(un,yn,c)}}}function ne(he,ke,G,c,O,ee,Te,Ne){for(var ze=F.createImportTracker(he,e.arrayToSet(he,function(Mn){return Mn.fileName}),ke,G),bn=ze(c,{exportKind:Te?1:0,exportingModuleSymbol:O},!1),Sn=bn.importSearches,Kn=bn.indirectUsers,Xe=0,pn=Sn;Xe<pn.length;Xe++){var le=pn[Xe][0];Ne(le)}for(var oe=0,kn=Kn;oe<kn.length;oe++)for(var yn=kn[oe],ye=0,mn=V(yn,Te?"default":ee);ye<mn.length;ye++){var un=mn[ye];e.isIdentifier(un)&&!e.isImportOrExportSpecifier(un.parent)&&ke.getSymbolAtLocation(un)===c&&Ne(un)}}Se.eachExportReference=ne;function $(he,ke){return D(he,ke)?ke.options.isForRename?e.isIdentifier(he)?!(e.isImportOrExportSpecifier(he.parent)&&he.escapedText==="default"):!1:!0:!1}function J(he,ke){for(var G=0,c=he.declarations;G<c.length;G++){var O=c[G],ee=O.getSourceFile();_(ee,ke.createSearch(O,he,0),ke,ke.includesSourceFile(ee))}}function fe(he,ke,G){e.getNameTable(he).get(ke.escapedText)!==void 0&&_(he,ke,G)}function R(he,ke){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(he.parent.parent)?ke.getPropertySymbolOfDestructuringAssignment(he):void 0}function K(he){var ke=he.declarations,G=he.flags,c=he.parent,O=he.valueDeclaration;if(O&&(O.kind===200||O.kind===213))return O;if(!ke)return;if(G&(4|8192)){var ee=e.find(ke,function(Xe){return e.hasModifier(Xe,8)});return ee?e.getAncestor(ee,244):void 0}if(ke.some(e.isObjectBindingElementWithoutPropertyName))return;var Te=c&&!(he.flags&262144);if(Te&&!(e.isExternalModuleSymbol(c)&&!c.globalExports))return;for(var Ne,ze=0,bn=ke;ze<bn.length;ze++){var Sn=bn[ze],Kn=e.getContainerNode(Sn);if(Ne&&Ne!==Kn)return;if(!Kn||Kn.kind===288&&!e.isExternalOrCommonJsModule(Kn))return;Ne=Kn}return Te?Ne.getSourceFile():Ne}function z(he,ke,G){return Ee(he,ke,G,function(){return!0})||!1}Se.isSymbolReferencedInFile=z;function Ee(he,ke,G,c){var O=e.isParameterPropertyDeclaration(he.parent,he.parent.parent)?e.first(ke.getSymbolsOfParameterPropertyDeclaration(he.parent,he.text)):ke.getSymbolAtLocation(he);if(!O)return;for(var ee=0,Te=V(G,O.name);ee<Te.length;ee++){var Ne=Te[ee];if(!e.isIdentifier(Ne)||Ne===he||Ne.escapedText!==he.escapedText)continue;var ze=ke.getSymbolAtLocation(Ne);if(ze===O||ke.getShorthandAssignmentValueSymbol(Ne.parent)===O||e.isExportSpecifier(Ne.parent)&&N(Ne,ze,Ne.parent,ke)===O){var bn=c(Ne);if(bn)return bn}}}Se.eachSymbolReferenceInFile=Ee;function B(he,ke,G,c){if(!he.name||!e.isIdentifier(he.name))return;for(var O=e.Debug.assertDefined(G.getSymbolAtLocation(he.name)),ee=0,Te=ke;ee<Te.length;ee++)for(var Ne=Te[ee],ze=0,bn=V(Ne,O.name);ze<bn.length;ze++){var Sn=bn[ze];if(!e.isIdentifier(Sn)||Sn===he.name||Sn.escapedText!==he.name.escapedText)continue;var Kn=e.climbPastPropertyAccess(Sn),Xe=Kn.parent;if(!e.isCallExpression(Xe)||Xe.expression!==Kn)continue;var pn=G.getSymbolAtLocation(Sn);pn&&G.getRootSymbols(pn).some(function(le){return le===O})&&c(Xe)}}Se.eachSignatureCall=B;function V(he,ke,G){return G===void 0&&(G=he),m(he,ke,G).map(function(c){return e.getTouchingPropertyName(he,c)})}function m(he,ke,G){G===void 0&&(G=he);var c=[];if(!ke||!ke.length)return c;for(var O=he.text,ee=O.length,Te=ke.length,Ne=O.indexOf(ke,G.pos);Ne>=0&&!(Ne>G.end);){var ze=Ne+Te;(Ne===0||!e.isIdentifierPart(O.charCodeAt(Ne-1),99))&&(ze===ee||!e.isIdentifierPart(O.charCodeAt(ze),99))&&c.push(Ne),Ne=O.indexOf(ke,Ne+Te+1)}return c}function y(he,ke){var G=he.getSourceFile(),c=ke.text,O=e.mapDefined(V(G,c,he),function(ee){return ee===ke||e.isJumpStatementTarget(ee)&&e.getTargetLabel(ee,c)===ke?F.nodeEntry(ee):void 0});return[{definition:{type:1,node:ke},references:O}]}function L(he,ke){switch(he.kind){case 75:return he.text.length===ke.length;case 14:case 10:{var G=he;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(G)||e.isNameOfModuleDeclaration(he)||e.isExpressionOfExternalModuleImportEqualsDeclaration(he)||e.isCallExpression(he.parent)&&e.isBindableObjectDefinePropertyCall(he.parent)&&he.parent.arguments[1]===he)&&G.text.length===ke.length}case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(he)&&he.text.length===ke.length;case 83:return"default".length===ke.length;default:return!1}}function C(he,ke,G,c){var O=e.flatMap(he,function(ee){return G.throwIfCancellationRequested(),e.mapDefined(V(ee,e.tokenToString(ke),ee),function(Te){if(Te.kind===ke&&(!c||c(Te)))return F.nodeEntry(Te)})});return O.length?[{definition:{type:2,node:O[0].node},references:O}]:void 0}function _(he,ke,G,c){return c===void 0&&(c=!0),G.cancellationToken.throwIfCancellationRequested(),b(he,he,ke,G,c)}function b(he,ke,G,c,O){if(!c.markSearchedSymbols(ke,G.allSearchSymbols))return;for(var ee=0,Te=m(ke,G.text,he);ee<Te.length;ee++){var Ne=Te[ee];T(ke,Ne,G,c,O)}}function D(he,ke){return!!(e.getMeaningFromLocation(he)&ke.searchMeaning)}function T(he,ke,G,c,O){var ee=e.getTouchingPropertyName(he,ke);if(!L(ee,G.text)){!c.options.implementations&&(c.options.findInStrings&&e.isInString(he,ke)||c.options.findInComments&&e.isInNonReferenceComment(he,ke))&&c.addStringOrCommentReference(he.fileName,e.createTextSpan(ke,G.text.length));return}if(!D(ee,c))return;var Te=c.checker.getSymbolAtLocation(ee);if(!Te)return;var Ne=ee.parent;if(e.isImportSpecifier(Ne)&&Ne.propertyName===ee)return;if(e.isExportSpecifier(Ne)){e.Debug.assert(ee.kind===75),Q(ee,Te,Ne,G,c,O);return}var ze=ce(G,Te,ee,c);if(!ze){S(Te,G,c);return}switch(c.specialSearchKind){case 0:O&&v(ee,ze,c);break;case 1:U(ee,he,G,c);break;case 2:de(ee,G,c);break;default:e.Debug.assertNever(c.specialSearchKind)}pe(ee,Te,G,c)}function Q(he,ke,G,c,O,ee,Te){e.Debug.assert(!Te||!!O.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var Ne=G.parent,ze=G.propertyName,bn=G.name,Sn=Ne.parent,Kn=N(he,ke,G,O.checker);if(!Te&&!c.includes(Kn))return;if(ze?he===ze?(Sn.moduleSpecifier||yn(),ee&&!O.options.isForRename&&O.markSeenReExportRHS(bn)&&v(bn,e.Debug.assertDefined(G.symbol),O)):O.markSeenReExportRHS(he)&&yn():O.options.isForRename&&bn.escapedText==="default"||yn(),!sn(O.options)||Te){var Xe=he.originalKeywordKind===83||G.name.originalKeywordKind===83,pn=Xe?1:0,le=e.Debug.assertDefined(G.symbol),oe=F.getExportInfo(le,pn,O.checker);oe&&Y(he,le,oe,O)}if(c.comingFrom!==1&&Sn.moduleSpecifier&&!ze&&!sn(O.options)){var kn=O.checker.getExportSpecifierLocalTargetSymbol(G);kn&&J(kn,O)}function yn(){ee&&v(he,Kn,O)}}function N(he,ke,G,c){return X(he,G)&&c.getExportSpecifierLocalTargetSymbol(G)||ke}function X(he,ke){var G=ke.parent,c=ke.propertyName,O=ke.name;return e.Debug.assert(c===he||O===he),c?c===he:!G.parent.moduleSpecifier}function pe(he,ke,G,c){var O=F.getImportOrExportSymbol(he,ke,c.checker,G.comingFrom===1);if(!O)return;var ee=O.symbol;O.kind===0?sn(c.options)||J(ee,c):Y(he,ee,O.exportInfo,c)}function S(he,ke,G){var c=he.flags,O=he.valueDeclaration,ee=G.checker.getShorthandAssignmentValueSymbol(O),Te=O&&e.getNameOfDeclaration(O);!(c&33554432)&&Te&&ke.includes(ee)&&v(Te,ee,G)}function v(he,ke,G){var c="kind"in ke?ke:{kind:void 0,symbol:ke},O=c.kind,ee=c.symbol,Te=G.referenceAdder(ee);G.options.implementations?be(he,Te,G):Te(he,O)}function U(he,ke,G,c){e.isNewExpressionTarget(he)&&v(he,G.symbol,c);var O=function(){return c.referenceAdder(G.symbol)};if(e.isClassLike(he.parent))e.Debug.assert(he.kind===83||he.parent.name===he),Ce(G.symbol,ke,O());else{var ee=cn(he);ee&&(Re(ee,O()),We(ee,c))}}function de(he,ke,G){v(he,ke.symbol,G);var c=he.parent;if(G.options.isForRename||!e.isClassLike(c))return;e.Debug.assert(c.name===he);for(var O=G.referenceAdder(ke.symbol),ee=0,Te=c.members;ee<Te.length;ee++){var Ne=Te[ee];if(!(e.isMethodOrAccessor(Ne)&&e.hasModifier(Ne,32)))continue;Ne.body&&Ne.body.forEachChild(function ze(bn){bn.kind===103?O(bn):!e.isFunctionLike(bn)&&!e.isClassLike(bn)&&bn.forEachChild(ze)})}}function Ce(he,ke,G){var c=Z(he);if(c)for(var O=0,ee=c.declarations;O<ee.length;O++){var Te=ee[O],Ne=e.findChildOfKind(Te,128,ke);e.Debug.assert(Te.kind===161&&!!Ne),G(Ne)}he.exports&&he.exports.forEach(function(ze){var bn=ze.valueDeclaration;if(bn&&bn.kind===160){var Sn=bn.body;Sn&&Ue(Sn,103,function(Kn){e.isNewExpressionTarget(Kn)&&G(Kn)})}})}function Z(he){return he.members&&he.members.get("__constructor")}function Re(he,ke){var G=Z(he.symbol);if(!G)return;for(var c=0,O=G.declarations;c<O.length;c++){var ee=O[c];e.Debug.assert(ee.kind===161);var Te=ee.body;Te&&Ue(Te,101,function(Ne){e.isCallExpressionTarget(Ne)&&ke(Ne)})}}function Ae(he){return!!Z(he.symbol)}function We(he,ke){if(Ae(he))return;var G=he.symbol,c=ke.createSearch(void 0,G,void 0);re(G,ke,c)}function be(he,ke,G){if(e.isDeclarationName(he)&&Je(he.parent)){ke(he);return}if(he.kind!==75)return;he.parent.kind===280&&Ze(he,G.checker,ke);var c=Ge(he);if(c){ke(c);return}var O=e.findAncestor(he,function(ze){return!e.isQualifiedName(ze.parent)&&!e.isTypeNode(ze.parent)&&!e.isTypeElement(ze.parent)}),ee=O.parent;if(e.hasType(ee)&&ee.type===O&&G.markSeenContainingTypeReference(ee))if(e.hasInitializer(ee))Ne(ee.initializer);else if(e.isFunctionLike(ee)&&ee.body){var Te=ee.body;Te.kind===222?e.forEachReturnStatement(Te,function(ze){ze.expression&&Ne(ze.expression)}):Ne(Te)}else e.isAssertionExpression(ee)&&Ne(ee.expression);function Ne(ze){x(ze)&&ke(ze)}}function Ge(he){return e.isIdentifier(he)||e.isPropertyAccessExpression(he)?Ge(he.parent):e.isExpressionWithTypeArguments(he)?e.tryCast(he.parent.parent,e.isClassLike):void 0}function x(he){switch(he.kind){case 199:return x(he.expression);case 201:case 200:case 192:case 213:case 191:return!0;default:return!1}}function j(he,ke,G,c){if(he===ke)return!0;var O=e.getSymbolId(he)+","+e.getSymbolId(ke),ee=G.get(O);if(ee!==void 0)return ee;G.set(O,!1);var Te=he.declarations.some(function(Ne){return e.getAllSuperTypeNodes(Ne).some(function(ze){var bn=c.getTypeAtLocation(ze);return!!bn&&!!bn.symbol&&j(bn.symbol,ke,G,c)})});return G.set(O,Te),Te}function Oe(he){var ke=e.getSuperContainer(he,!1);if(!ke)return;var G=32;switch(ke.kind){case 158:case 157:case 160:case 159:case 161:case 162:case 163:G&=e.getModifierFlags(ke),ke=ke.parent;break;default:return}var c=ke.getSourceFile(),O=e.mapDefined(V(c,"super",ke),function(ee){if(ee.kind!==101)return;var Te=e.getSuperContainer(ee,!1);return Te&&(32&e.getModifierFlags(Te))===G&&Te.parent.symbol===ke.symbol?F.nodeEntry(ee):void 0});return[{definition:{type:0,symbol:ke.symbol},references:O}]}function a(he){return he.kind===75&&he.parent.kind===155&&he.parent.name===he}function en(he,ke,G){var c=e.getThisContainer(he,!1),O=32;switch(c.kind){case 160:case 159:if(e.isObjectLiteralMethod(c))break;case 158:case 157:case 161:case 162:case 163:O&=e.getModifierFlags(c),c=c.parent;break;case 288:if(e.isExternalModule(c)||a(he))return;case 243:case 200:break;default:return}var ee=e.flatMap(c.kind===288?ke:[c.getSourceFile()],function(Ne){return G.throwIfCancellationRequested(),V(Ne,"this",e.isSourceFile(c)?Ne:c).filter(function(ze){if(!e.isThis(ze))return!1;var bn=e.getThisContainer(ze,!1);switch(c.kind){case 200:case 243:return c.symbol===bn.symbol;case 160:case 159:return e.isObjectLiteralMethod(c)&&c.symbol===bn.symbol;case 213:case 244:return bn.parent&&c.symbol===bn.parent.symbol&&(e.getModifierFlags(bn)&32)===O;case 288:return bn.kind===288&&!e.isExternalModule(bn)&&!a(ze)}})}).map(function(Ne){return F.nodeEntry(Ne)}),Te=e.firstDefined(ee,function(Ne){return e.isParameter(Ne.node.parent)?Ne.node:void 0});return[{definition:{type:3,node:Te||he},references:ee}]}function Pn(he,ke,G){var c=e.flatMap(ke,function(O){return G.throwIfCancellationRequested(),e.mapDefined(V(O,he.text),function(ee){return e.isStringLiteral(ee)&&ee.text===he.text?F.nodeEntry(ee,2):void 0})});return[{definition:{type:4,node:he},references:c}]}function Xn(he,ke,G,c,O,ee){var Te=[];return ae(he,ke,G,c,!(c&&O),function(Ne,ze,bn){Te.push(bn||ze||Ne)},function(){return!ee}),Te}function ae(he,ke,G,c,O,ee,Te){var Ne=e.getContainingObjectLiteralElement(ke);if(Ne){var ze=G.getShorthandAssignmentValueSymbol(ke.parent);if(ze&&c)return ee(ze,void 0,void 0,3);var bn=G.getContextualType(Ne.parent),Sn=bn&&e.firstDefined(e.getPropertySymbolsFromContextualType(Ne,G,bn,!0),function(tt){return un(tt,4)});if(Sn)return Sn;var Kn=R(ke,G),Xe=Kn&&ee(Kn,void 0,void 0,4);if(Xe)return Xe;var pn=ze&&ee(ze,void 0,void 0,3);if(pn)return pn}var le=He(ke,he,G);if(le){var oe=ee(le,void 0,void 0,1);if(oe)return oe}var kn=un(he);if(kn)return kn;if(he.valueDeclaration&&e.isParameterPropertyDeclaration(he.valueDeclaration,he.valueDeclaration.parent)){var yn=G.getSymbolsOfParameterPropertyDeclaration(e.cast(he.valueDeclaration,e.isParameter),he.name);return e.Debug.assert(yn.length===2&&!!(yn[0].flags&1)&&!!(yn[1].flags&4)),un(he.flags&1?yn[1]:yn[0])}if(!c){var ye=void 0;return O?ye=e.isObjectBindingElementWithoutPropertyName(ke.parent)?e.getPropertySymbolFromBindingElement(G,ke.parent):void 0:ye=Mn(he,G),ye&&un(ye,4)}e.Debug.assert(c);var mn=O;if(mn){var ye=Mn(he,G);return ye&&un(ye,4)}function un(tt,Vn){return e.firstDefined(G.getRootSymbols(tt),function(ut){return ee(tt,ut,void 0,Vn)||(ut.parent&&ut.parent.flags&(32|64)&&Te(ut)?e.getPropertySymbolsFromBaseTypes(ut.parent,ut.name,G,function(dt){return ee(tt,ut,dt,Vn)}):void 0)})}function Mn(tt,Vn){var ut=e.getDeclarationOfKind(tt,190);if(ut&&e.isObjectBindingElementWithoutPropertyName(ut))return e.getPropertySymbolFromBindingElement(Vn,ut)}}function ce(he,ke,G,c){var O=c.checker;return ae(ke,G,O,!1,!c.options.isForRename||!!c.options.providePrefixAndSuffixTextForRename,function(ee,Te,Ne,ze){return he.includes(Ne||Te||ee)?{symbol:Te&&!(e.getCheckFlags(ee)&6)?Te:ee,kind:ze}:void 0},function(ee){return!(he.parents&&!he.parents.some(function(Te){return j(ee.parent,Te,c.inheritsFromCache,O)}))})}function Le(he,ke){var G=e.getMeaningFromLocation(he),c=ke.declarations;if(c){var O=void 0;do{O=G;for(var ee=0,Te=c;ee<Te.length;ee++){var Ne=Te[ee],ze=e.getMeaningFromDeclaration(Ne);ze&G&&(G|=ze)}}while(G!==O)}return G}Se.getIntersectingMeaningFromDeclarations=Le;function Je(he){return he.flags&8388608?!(e.isInterfaceDeclaration(he)||e.isTypeAliasDeclaration(he)):e.isVariableLike(he)?e.hasInitializer(he):e.isFunctionLikeDeclaration(he)?!!he.body:e.isClassLike(he)||e.isModuleOrEnumDeclaration(he)}function Ze(he,ke,G){var c=ke.getSymbolAtLocation(he),O=ke.getShorthandAssignmentValueSymbol(c.valueDeclaration);if(O)for(var ee=0,Te=O.getDeclarations();ee<Te.length;ee++){var Ne=Te[ee];e.getMeaningFromDeclaration(Ne)&1&&G(Ne)}}Se.getReferenceEntriesForShorthandPropertyAssignment=Ze;function Ue(he,ke,G){e.forEachChild(he,function(c){c.kind===ke&&G(c),Ue(c,ke,G)})}function cn(he){return e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(he).parent)}function $e(he,ke,G){var c=e.isRightSideOfPropertyAccess(he)?he.parent:void 0,O=c&&G.getTypeAtLocation(c.expression),ee=e.mapDefined(O&&(O.isUnionOrIntersection()?O.types:O.symbol===ke.parent?void 0:[O]),function(Te){return Te.symbol&&Te.symbol.flags&(32|64)?Te.symbol:void 0});return ee.length===0?void 0:ee}function sn(he){return he.isForRename&&he.providePrefixAndSuffixTextForRename}})(qe=F.Core||(F.Core={}))})(o=e.FindAllReferences||(e.FindAllReferences={}))}(ln||(ln={}));var ln;(function(e){function o(_e,re,se,w,k,P,h){var Y=e.hostUsesCaseSensitiveFileNames(w),ne=e.createGetCanonicalFileName(Y),$=F(re,se,ne,h),J=F(se,re,ne,h);return e.textChanges.ChangeTracker.with({host:w,formatContext:k,preferences:P},function(fe){Se(_e,fe,$,re,se,w.getCurrentDirectory(),Y),Fe(_e,fe,$,J,w,ne)})}e.getEditsForFileRename=o;function F(_e,re,se,w){var k=se(_e);return function(h){var Y=w&&w.tryGetSourcePosition({fileName:h,pos:0}),ne=P(Y?Y.fileName:h);return Y?ne===void 0?void 0:qe(Y.fileName,ne,h,se):ne};function P(h){if(se(h)===k)return re;var Y=e.tryRemoveDirectoryPrefix(h,k,se);return Y===void 0?void 0:re+"/"+Y}}e.getPathUpdater=F;function qe(_e,re,se,w){var k=e.getRelativePathFromFile(_e,re,w);return ve(e.getDirectoryPath(se),k)}function Se(_e,re,se,w,k,P,h){var Y=_e.getCompilerOptions().configFile;if(!Y)return;var ne=e.getDirectoryPath(Y.fileName),$=e.getTsConfigObjectLiteralExpression(Y);if(!$)return;I($,function(K,z){switch(z){case"files":case"include":case"exclude":{var Ee=J(K);if(!Ee&&z==="include"&&e.isArrayLiteralExpression(K.initializer)){var B=e.mapDefined(K.initializer.elements,function(m){return e.isStringLiteral(m)?m.text:void 0}),V=e.getFileMatcherPatterns(ne,[],B,h,P);e.getRegexFromPattern(e.Debug.assertDefined(V.includeFilePattern),h).test(w)&&!e.getRegexFromPattern(e.Debug.assertDefined(V.includeFilePattern),h).test(k)&&re.insertNodeAfter(Y,e.last(K.initializer.elements),e.createStringLiteral(R(k)))}break}case"compilerOptions":I(K.initializer,function(m,y){var L=e.getOptionFromName(y);L&&(L.isFilePath||L.type==="list"&&L.element.isFilePath)?J(m):y==="paths"&&I(m.initializer,function(C){if(!e.isArrayLiteralExpression(C.initializer))return;for(var _=0,b=C.initializer.elements;_<b.length;_++){var D=b[_];fe(D)}})});break}});function J(K){for(var z=e.isArrayLiteralExpression(K.initializer)?K.initializer.elements:[K.initializer],Ee=!1,B=0,V=z;B<V.length;B++){var m=V[B];Ee=fe(m)||Ee}return Ee}function fe(K){if(!e.isStringLiteral(K))return!1;var z=ve(ne,K.text),Ee=se(z);return Ee!==void 0?(re.replaceRangeWithText(Y,Pe(K,Y),R(Ee)),!0):!1}function R(K){return e.getRelativePathFromDirectory(ne,K,!h)}}function Fe(_e,re,se,w,k,P){for(var h=_e.getSourceFiles(),Y=function(R){var K=se(R.path),z=K!==void 0?K:R.path,Ee=e.getDirectoryPath(z),B=w(R.fileName),V=B||R.fileName,m=e.getDirectoryPath(V),y=K!==void 0||B!==void 0;H(R,re,function(L){if(!e.pathIsRelative(L))return;var C=ve(m,L),_=se(C);return _===void 0?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(Ee,_,P))},function(L){var C=_e.getTypeChecker().getSymbolAtLocation(L);if(C&&C.declarations.some(function(b){return e.isAmbientModule(b)}))return;var _=B!==void 0?d(e.resolveModuleName(L.text,V,_e.getCompilerOptions(),k),se):ie(C,L,R,_e,k,se);return _!==void 0&&(_.updated||y&&e.pathIsRelative(L.text))?e.moduleSpecifiers.updateModuleSpecifier(_e.getCompilerOptions(),z,_.newFileName,k,h,_e.redirectTargetsMap,L.text):void 0})},ne=0,$=h;ne<$.length;ne++){var J=$[ne];Y(J)}}function He(_e,re){return e.normalizePath(e.combinePaths(_e,re))}function ve(_e,re){return e.ensurePathIsNonModuleName(He(_e,re))}function ie(_e,re,se,w,k,P){if(_e){var h=e.find(_e.declarations,e.isSourceFile).fileName,Y=P(h);return Y===void 0?{newFileName:h,updated:!1}:{newFileName:Y,updated:!0}}else{var ne=k.resolveModuleNames?k.getResolvedModuleWithFailedLookupLocationsFromCache&&k.getResolvedModuleWithFailedLookupLocationsFromCache(re.text,se.fileName):w.getResolvedModuleWithFailedLookupLocationsFromCache(re.text,se.fileName);return d(ne,P)}}function d(_e,re){if(!_e)return;if(_e.resolvedModule){var se=P(_e.resolvedModule.resolvedFileName);if(se)return se}var w=e.forEach(_e.failedLookupLocations,k);if(w)return w;return _e.resolvedModule&&{newFileName:_e.resolvedModule.resolvedFileName,updated:!1};function k(h){return e.endsWith(h,"/package.json")?void 0:P(h)}function P(h){var Y=re(h);return Y&&{newFileName:Y,updated:!0}}}function H(_e,re,se,w){for(var k=0,P=_e.referencedFiles||e.emptyArray;k<P.length;k++){var h=P[k],Y=se(h.fileName);Y!==void 0&&Y!==_e.text.slice(h.pos,h.end)&&re.replaceRangeWithText(_e,h,Y)}for(var ne=0,$=_e.imports;ne<$.length;ne++){var J=$[ne],Y=w(J);Y!==void 0&&Y!==J.text&&re.replaceRangeWithText(_e,Pe(J,_e),Y)}}function Pe(_e,re){return e.createRange(_e.getStart(re)+1,_e.end-1)}function I(_e,re){if(!e.isObjectLiteralExpression(_e))return;for(var se=0,w=_e.properties;se<w.length;se++){var k=w[se];e.isPropertyAssignment(k)&&e.isStringLiteral(k.name)&&re(k,k.name.text)}}})(ln||(ln={}));var ln;(function(e){var o;(function(F){function qe(J,fe,R){var K=Fe(fe,R,J);if(K)return[P(K.fileName,K.file.fileName)];var z=e.getTouchingPropertyName(fe,R);if(z===fe)return;var Ee=z.parent;if(e.isJumpStatementTarget(z)){var B=e.getTargetLabel(z.parent,z.text);return B?[se(B,"label",z.text,void 0)]:void 0}var V=J.getTypeChecker(),m=Pe(z,V);if(!m)return H(z,V);var y=ne(V,z);if(y&&!(e.isJsxOpeningLikeElement(z.parent)&&$(y))){var L=w(V,y);if(V.getRootSymbols(m).some(function(N){return Se(N,y)})||m.declarations&&m.declarations.some(function(N){return e.isVariableDeclaration(N)&&!!N.initializer&&e.isRequireCall(N.initializer,!1)}))return[L];var C=_e(V,m,z,y)||e.emptyArray;return z.kind===101?Or([L],C):Or(C,[L])}if(z.parent.kind===280){var _=V.getShorthandAssignmentValueSymbol(m.valueDeclaration);return _?_.declarations.map(function(N){return re(N,V,_,z)}):[]}if(e.isPropertyName(z)&&e.isBindingElement(Ee)&&e.isObjectBindingPattern(Ee.parent)&&z===(Ee.propertyName||Ee.name)){var b=e.getNameFromPropertyName(z),D=V.getTypeAtLocation(Ee.parent);return b===void 0?e.emptyArray:e.flatMap(D.isUnion()?D.types:[D],function(N){var X=N.getProperty(b);return X&&_e(V,X,z)})}var T=e.getContainingObjectLiteralElement(z);if(T){var Q=T&&V.getContextualType(T.parent);if(Q)return e.flatMap(e.getPropertySymbolsFromContextualType(T,V,Q,!1),function(N){return _e(V,N,z)})}return _e(V,m,z)}F.getDefinitionAtPosition=qe;function Se(J,fe){return J===fe.symbol||J===fe.symbol.parent||!e.isCallLikeExpression(fe.parent)&&J===fe.parent.symbol}function Fe(J,fe,R){var K=k(J.referencedFiles,fe);if(K){var z=R.getSourceFileFromReference(J,K);return z&&{fileName:K.fileName,file:z}}var Ee=k(J.typeReferenceDirectives,fe);if(Ee){var B=R.getResolvedTypeReferenceDirectives().get(Ee.fileName),z=B&&R.getSourceFile(B.resolvedFileName);return z&&{fileName:Ee.fileName,file:z}}var V=k(J.libReferenceDirectives,fe);if(V){var z=R.getLibFileFromReference(V);return z&&{fileName:V.fileName,file:z}}return}F.getReferenceAtPosition=Fe;function He(J,fe,R){var K=e.getTouchingPropertyName(fe,R);if(K===fe)return;var z=J.getSymbolAtLocation(K);if(!z)return;var Ee=J.getTypeOfSymbolAtLocation(z,K),B=ie(z,Ee,J),V=B&&ve(B,J,K);return V&&V.length!==0?V:ve(Ee,J,K)}F.getTypeDefinitionAtPosition=He;function ve(J,fe,R){return e.flatMap(J.isUnion()&&!(J.flags&32)?J.types:[J],function(K){return K.symbol&&_e(fe,K.symbol,R)})}function ie(J,fe,R){if(fe.symbol===J||J.valueDeclaration&&fe.symbol&&e.isVariableDeclaration(J.valueDeclaration)&&J.valueDeclaration.initializer===fe.symbol.valueDeclaration){var K=fe.getCallSignatures();if(K.length===1)return R.getReturnTypeOfSignature(e.first(K))}return}function d(J,fe,R){var K=qe(J,fe,R);if(!K||K.length===0)return;var z=k(fe.referencedFiles,R)||k(fe.typeReferenceDirectives,R)||k(fe.libReferenceDirectives,R);if(z)return{definitions:K,textSpan:e.createTextSpanFromRange(z)};var Ee=e.getTouchingPropertyName(fe,R),B=e.createTextSpan(Ee.getStart(),Ee.getWidth());return{definitions:K,textSpan:B}}F.getDefinitionAndBoundSpan=d;function H(J,fe){if(!e.isPropertyAccessExpression(J.parent)||J.parent.name!==J)return;var R=fe.getTypeAtLocation(J.parent.expression);return e.mapDefined(R.isUnionOrIntersection()?R.types:[R],function(K){var z=fe.getIndexInfoOfType(K,0);return z&&z.declaration&&w(fe,z.declaration)})}function Pe(J,fe){var R=fe.getSymbolAtLocation(J);if(R&&R.flags&2097152&&I(J,R.declarations[0])){var K=fe.getAliasedSymbol(R);if(K.declarations)return K}return R}function I(J,fe){if(J.kind!==75)return!1;if(J.parent===fe)return!0;switch(fe.kind){case 254:case 252:return!0;case 257:return fe.parent.kind===256;default:return!1}}function _e(J,fe,R,K){var z=e.filter(fe.declarations,function(m){return m!==K&&(!e.isAssignmentDeclaration(m)||m===fe.valueDeclaration)})||void 0;return Ee()||B()||e.map(z,function(m){return re(m,J,fe,R)});function Ee(){if(fe.flags&32&&!(fe.flags&16)&&(e.isNewExpressionTarget(R)||R.kind===128)){var m=e.find(z,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration");return V(m.members,!0)}}function B(){return e.isCallOrNewExpressionTarget(R)||e.isNameOfFunctionDeclaration(R)?V(z,!1):void 0}function V(m,y){if(!m)return;var L=m.filter(y?e.isConstructorDeclaration:e.isFunctionLike),C=L.filter(function(_){return!!_.body});return L.length?C.length!==0?C.map(function(_){return re(_,J,fe,R)}):[re(e.last(L),J,fe,R)]:void 0}}function re(J,fe,R,K){var z=fe.symbolToString(R),Ee=e.SymbolDisplay.getSymbolKind(fe,R,K),B=R.parent?fe.symbolToString(R.parent,K):"";return se(J,Ee,z,B)}function se(J,fe,R,K){var z=e.getNameOfDeclaration(J)||J,Ee=z.getSourceFile(),B=e.createTextSpanFromNode(z,Ee);return ma({fileName:Ee.fileName,textSpan:B,kind:fe,name:R,containerKind:void 0,containerName:K},e.FindAllReferences.toContextSpan(B,Ee,e.FindAllReferences.getContextNode(J)))}function w(J,fe){return re(fe,J,fe.symbol,fe)}function k(J,fe){return e.find(J,function(R){return e.textRangeContainsPositionInclusive(R,fe)})}F.findReferenceInPosition=k;function P(J,fe){return{fileName:fe,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:J,containerName:void 0,containerKind:void 0}}function h(J){var fe=Y(J),R=fe.parent;return R&&e.isCallLikeExpression(R)&&e.getInvokedExpression(R)===fe?R:void 0}function Y(J){return e.isRightSideOfPropertyAccess(J)?Y(J.parent):J}function ne(J,fe){var R=h(fe),K=R&&J.getResolvedSignature(R);return e.tryCast(K&&K.declaration,function(z){return e.isFunctionLike(z)&&!e.isFunctionTypeNode(z)})}function $(J){switch(J.kind){case 161:case 170:case 165:return!0;default:return!1}}})(o=e.GoToDefinition||(e.GoToDefinition={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe=["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","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"],Se,Fe;function He(ne){var $=[];return e.forEachUnique(ne,function(J){for(var fe=0,R=ve(J);fe<R.length;fe++){var K=R[fe].comment;if(K===void 0)continue;$.length&&$.push(e.lineBreakPart()),$.push(e.textPart(K))}}),$}F.getJsDocCommentsFromDeclarations=He;function ve(ne){switch(ne.kind){case 310:case 316:return[ne];case 308:case 315:return[ne,ne.parent];default:return e.getJSDocCommentsAndTags(ne)}}function ie(ne){var $=[];return e.forEachUnique(ne,function(J){for(var fe=0,R=e.getJSDocTags(J);fe<R.length;fe++){var K=R[fe];$.push({name:K.tagName.text,text:d(K)})}}),$}F.getJsDocTagsFromDeclarations=ie;function d(ne){var $=ne.comment;switch(ne.kind){case 305:return fe(ne.class);case 314:return R(ne.typeParameters);case 313:return fe(ne.typeExpression);case 315:case 308:case 316:case 310:var J=ne.name;return J?fe(J):$;default:return $}function fe(z){return K(z.getText())}function R(z){return K(z.map(function(Ee){return Ee.getText()}).join(", "))}function K(z){return $===void 0?z:z+" "+$}}function H(){return Se||(Se=e.map(qe,function(ne){return{name:ne,kind:"keyword",kindModifiers:"",sortText:"0"}}))}F.getJSDocTagNameCompletions=H,F.getJSDocTagNameCompletionDetails=I;function Pe(){return Fe||(Fe=e.map(qe,function(ne){return{name:"@"+ne,kind:"keyword",kindModifiers:"",sortText:"0"}}))}F.getJSDocTagCompletions=Pe;function I(ne){return{name:ne,kind:"",kindModifiers:"",displayParts:[e.textPart(ne)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}F.getJSDocTagCompletionDetails=I;function _e(ne){if(!e.isIdentifier(ne.name))return e.emptyArray;var $=ne.name.text,J=ne.parent,fe=J.parent;return e.isFunctionLike(fe)?e.mapDefined(fe.parameters,function(R){if(!e.isIdentifier(R.name))return;var K=R.name.text;return J.tags.some(function(z){return z!==ne&&e.isJSDocParameterTag(z)&&e.isIdentifier(z.name)&&z.name.escapedText===K})||$!==void 0&&!e.startsWith(K,$)?void 0:{name:K,kind:"parameter",kindModifiers:"",sortText:"0"}}):[]}F.getJSDocParameterNameCompletions=_e;function re(ne){return{name:ne,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(ne)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}F.getJSDocParameterNameCompletionDetails=re;function se(ne,$,J){var fe=e.getTokenAtPosition($,J),R=e.findAncestor(fe,e.isJSDoc);if(R&&(R.comment!==void 0||e.length(R.tags)))return;var K=fe.getStart($);if(!R&&K<J)return;var z=P(fe);if(!z)return;var Ee=z.commentOwner,B=z.parameters;if(Ee.getStart($)<J)return;if(!B||B.length===0){var V="/** */";return{newText:V,caretOffset:3}}var m=w($,J),y="/**"+ne+m+" * ",L=y+ne+k(B,e.hasJSFileExtension($.fileName),m,ne)+m+" */"+(K===J?ne+m:"");return{newText:L,caretOffset:y.length}}F.getDocCommentTemplateAtPosition=se;function w(ne,$){for(var J=ne.text,fe=e.getLineStartPositionForPosition($,ne),R=fe;R<=$&&e.isWhiteSpaceSingleLine(J.charCodeAt(R));R++);return J.slice(fe,R)}function k(ne,$,J,fe){return ne.map(function(R,K){var z=R.name,Ee=R.dotDotDotToken,B=z.kind===75?z.text:"param"+K,V=$?Ee?"{...any} ":"{any} ":"";return J+" * @param "+V+B+fe}).join("")}function P(ne){return e.forEachAncestor(ne,h)}function h(ne){switch(ne.kind){case 243:case 200:case 160:case 161:case 159:var $=ne.parameters;return{commentOwner:ne,parameters:$};case 279:return h(ne.initializer);case 244:case 245:case 157:case 247:case 282:case 246:return{commentOwner:ne};case 224:{var J=ne,fe=J.declarationList.declarations,R=fe.length===1&&fe[0].initializer?Y(fe[0].initializer):void 0;return{commentOwner:ne,parameters:R}}case 288:return"quit";case 248:return ne.parent.kind===248?void 0:{commentOwner:ne};case 208:{var K=ne;if(e.getAssignmentDeclarationKind(K)===0)return"quit";var z=e.isFunctionLike(K.right)?K.right.parameters:e.emptyArray;return{commentOwner:ne,parameters:z}}}}function Y(ne){for(;ne.kind===199;)ne=ne.expression;switch(ne.kind){case 200:case 201:return ne.parameters;case 213:{var $=e.find(ne.members,e.isConstructorDeclaration);return $?$.parameters:e.emptyArray}}return e.emptyArray}})(o=e.JsDoc||(e.JsDoc={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){function qe(I,_e,re,se,w,k){var P=e.createPatternMatcher(se);if(!P)return e.emptyArray;for(var h=[],Y=function(R){if(re.throwIfCancellationRequested(),k&&R.isDeclarationFile)return"continue";R.getNamedDeclarations().forEach(function(K,z){Se(P,z,K,_e,R.fileName,h)})},ne=0,$=I;ne<$.length;ne++){var J=$[ne];Y(J)}return h.sort(H),(w===void 0?h:h.slice(0,w)).map(Pe)}F.getNavigateToItems=qe;function Se(I,_e,re,se,w,k){var P=I.getMatchForLastSegmentOfPattern(_e);if(!P)return;for(var h=0,Y=re;h<Y.length;h++){var ne=Y[h];if(!Fe(ne,se))continue;if(I.patternContainsDots){var $=I.getFullMatch(d(ne),_e);$&&k.push({name:_e,fileName:w,matchKind:$.kind,isCaseSensitive:$.isCaseSensitive,declaration:ne})}else k.push({name:_e,fileName:w,matchKind:P.kind,isCaseSensitive:P.isCaseSensitive,declaration:ne})}}function Fe(I,_e){switch(I.kind){case 254:case 257:case 252:var re=_e.getSymbolAtLocation(I.name),se=_e.getAliasedSymbol(re);return re.escapedName!==se.escapedName;default:return!0}}function He(I,_e){var re=e.getNameOfDeclaration(I);return!!re&&(ie(re,_e)||re.kind===153&&ve(re.expression,_e))}function ve(I,_e){return ie(I,_e)||e.isPropertyAccessExpression(I)&&(_e.push(I.name.text),!0)&&ve(I.expression,_e)}function ie(I,_e){return e.isPropertyNameLiteral(I)&&(_e.push(e.getTextOfIdentifierOrLiteral(I)),!0)}function d(I){var _e=[],re=e.getNameOfDeclaration(I);if(re&&re.kind===153&&!ve(re.expression,_e))return e.emptyArray;_e.shift();for(var se=e.getContainerNode(I);se;){if(!He(se,_e))return e.emptyArray;se=e.getContainerNode(se)}return _e.reverse()}function H(I,_e){return e.compareValues(I.matchKind,_e.matchKind)||e.compareStringsCaseSensitiveUI(I.name,_e.name)}function Pe(I){var _e=I.declaration,re=e.getContainerNode(_e),se=re&&e.getNameOfDeclaration(re);return{name:I.name,kind:e.getNodeKind(_e),kindModifiers:e.getNodeModifiers(_e),matchKind:e.PatternMatchKind[I.matchKind],isCaseSensitive:I.isCaseSensitive,fileName:I.fileName,textSpan:e.createTextSpanFromNode(_e),containerName:se?se.text:"",containerKind:se?e.getNodeKind(re):""}}})(o=e.NavigateTo||(e.NavigateTo={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe,Se=/\s+/g,Fe=150,He,ve,ie=[],d,H=[],Pe,I=[];function _e(x,j){He=j,ve=x;try{return e.map(X(h(x)),S)}finally{se()}}F.getNavigationBarItems=_e;function re(x,j){He=j,ve=x;try{return pe(h(x))}finally{se()}}F.getNavigationTree=re;function se(){ve=void 0,He=void 0,ie=[],d=void 0,I=[]}function w(x){return Ge(x.getText(ve))}function k(x){return x.node.kind}function P(x,j){x.children?x.children.push(j):x.children=[j]}function h(x){e.Debug.assert(!ie.length);var j={node:x,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};d=j;for(var Oe=0,a=x.statements;Oe<a.length;Oe++){var en=a[Oe];Ee(en)}return K(),e.Debug.assert(!d&&!ie.length),j}function Y(x,j){P(d,ne(x,j))}function ne(x,j){return{node:x,name:j||(e.isDeclaration(x)||e.isExpression(x)?e.getNameOfDeclaration(x):void 0),additionalNodes:void 0,parent:d,children:void 0,indent:d.indent+1}}function $(x){Pe||(Pe=e.createMap()),Pe.set(x,!0)}function J(x){for(var j=0;j<x;j++)K()}function fe(x,j){for(var Oe=[];!e.isPropertyNameLiteral(j);){var a=e.getNameOrArgument(j),en=e.getElementOrPropertyAccessName(j);if(j=j.expression,en==="prototype")continue;Oe.push(a)}Oe.push(j);for(var Pn=Oe.length-1;Pn>0;Pn--){var a=Oe[Pn];R(x,a)}return[Oe.length-1,Oe[0]]}function R(x,j){var Oe=ne(x,j);P(d,Oe),ie.push(d),H.push(Pe),d=Oe}function K(){d.children&&(B(d.children,d),D(d.children)),d=ie.pop(),Pe=H.pop()}function z(x,j,Oe){R(x,Oe),Ee(j),K()}function Ee(x){var j;if(He.throwIfCancellationRequested(),!x||e.isToken(x))return;switch(x.kind){case 161:var Oe=x;z(Oe,Oe.body);for(var a=0,en=Oe.parameters;a<en.length;a++){var Pn=en[a];e.isParameterPropertyDeclaration(Pn,Oe)&&Y(Pn)}break;case 160:case 162:case 163:case 159:e.hasDynamicName(x)||z(x,x.body);break;case 158:case 157:e.hasDynamicName(x)||Y(x);break;case 254:var Xn=x;Xn.name&&Y(Xn.name);var ae=Xn.namedBindings;if(ae)if(ae.kind===255)Y(ae);else for(var ce=0,Le=ae.elements;ce<Le.length;ce++){var Je=Le[ce];Y(Je)}break;case 280:z(x,x.name);break;case 281:var Ze=x.expression;e.isIdentifier(Ze)?Y(x,Ze):Y(x);break;case 190:case 279:case 241:var Ue=x,cn=Ue.name,$e=Ue.initializer;e.isBindingPattern(cn)?Ee(cn):$e&&be($e)?(R(x),e.forEachChild($e,Ee),K()):z(x,$e);break;case 243:var sn=x.name;sn&&e.isIdentifier(sn)&&$(sn.text),z(x,x.body);break;case 201:case 200:z(x,x.body);break;case 247:R(x);for(var he=0,ke=x.members;he<ke.length;he++){var G=ke[he];Ce(G)||Y(G)}K();break;case 244:case 213:case 245:R(x);for(var c=0,O=x.members;c<O.length;c++){var G=O[c];Ee(G)}K();break;case 248:z(x,de(x).body);break;case 261:case 252:case 166:case 164:case 165:case 246:Y(x);break;case 195:case 208:{var ee=e.getAssignmentDeclarationKind(x);switch(ee){case 1:case 2:z(x,x.right);return;case 6:case 3:{var Te=x,Ne=Te.left,ze=ee===3?Ne.expression:Ne,bn=0,Sn=void 0;e.isIdentifier(ze.expression)?($(ze.expression.text),Sn=ze.expression):(j=fe(Te,ze.expression),bn=j[0],Sn=j[1]),ee===6?e.isObjectLiteralExpression(Te.right)&&(Te.right.properties.length>0&&(R(Te,Sn),e.forEachChild(Te.right,Ee),K())):e.isFunctionExpression(Te.right)||e.isArrowFunction(Te.right)?z(x,Te.right,Sn):(R(Te,Sn),z(x,Te.right,Ne.name),K()),J(bn);return}case 7:case 9:{var Kn=x,Sn=ee===7?Kn.arguments[0]:Kn.arguments[0].expression,Xe=Kn.arguments[1],pn=fe(x,Sn),bn=pn[0],le=pn[1];R(x,le),R(x,e.setTextRange(e.createIdentifier(Xe.text),Xe)),Ee(x.arguments[2]),K(),K(),J(bn);return}case 5:{var Te=x,Ne=Te.left,oe=Ne.expression;if(e.isIdentifier(oe)&&e.getElementOrPropertyAccessName(Ne)!=="prototype"&&Pe&&Pe.has(oe.text)){e.isFunctionExpression(Te.right)||e.isArrowFunction(Te.right)?z(x,Te.right,oe):e.isBindableStaticAccessExpression(Ne)&&(R(Te,oe),z(Te.left,Te.right,e.getNameOrArgument(Ne)),K());return}break}case 4:case 0:case 8:break;default:e.Debug.assertNever(ee)}}default:e.hasJSDocNodes(x)&&e.forEach(x.jsDoc,function(kn){e.forEach(kn.tags,function(yn){e.isJSDocTypeAlias(yn)&&Y(yn)})}),e.forEachChild(x,Ee)}}function B(x,j){var Oe=e.createMap();e.filterMutate(x,function(a,en){var Pn=a.name||e.getNameOfDeclaration(a.node),Xn=Pn&&w(Pn);if(!Xn)return!0;var ae=Oe.get(Xn);if(!ae)return Oe.set(Xn,a),!0;if(ae instanceof Array){for(var ce=0,Le=ae;ce<Le.length;ce++){var Je=Le[ce];if(y(Je,a,en,j))return!1}return ae.push(a),!0}else{var Je=ae;return y(Je,a,en,j)?!1:(Oe.set(Xn,[Je,a]),!0)}})}var V=(qe={},qe[5]=!0,qe[3]=!0,qe[7]=!0,qe[9]=!0,qe[0]=!1,qe[1]=!1,qe[2]=!1,qe[8]=!1,qe[6]=!0,qe[4]=!1,qe);function m(x,j,Oe,a){function en(Ue){return e.isFunctionExpression(Ue)||e.isFunctionDeclaration(Ue)||e.isVariableDeclaration(Ue)}var Pn=e.isBinaryExpression(j.node)||e.isCallExpression(j.node)?e.getAssignmentDeclarationKind(j.node):0,Xn=e.isBinaryExpression(x.node)||e.isCallExpression(x.node)?e.getAssignmentDeclarationKind(x.node):0;if(V[Pn]&&V[Xn]||en(x.node)&&V[Pn]||en(j.node)&&V[Xn]||e.isClassDeclaration(x.node)&&V[Pn]||e.isClassDeclaration(j.node)&&V[Xn]||e.isClassDeclaration(x.node)&&en(j.node)||e.isClassDeclaration(j.node)&&en(x.node)){var ae=x.additionalNodes&&e.lastOrUndefined(x.additionalNodes)||x.node;if(!e.isClassDeclaration(x.node)&&!e.isClassDeclaration(j.node)||en(x.node)||en(j.node)){var ce=en(x.node)?x.node:en(j.node)?j.node:void 0;if(ce!==void 0){var Le=e.setTextRange(e.createConstructor(void 0,void 0,[],void 0),ce),Je=ne(Le);Je.indent=x.indent+1,Je.children=x.node===ce?x.children:j.children,x.children=x.node===ce?e.concatenate([Je],j.children||[j]):e.concatenate(x.children||[x],[Je])}else(x.children||j.children)&&(x.children=e.concatenate(x.children||[x],j.children||[j]),x.children&&(B(x.children,x),D(x.children)));ae=x.node=e.setTextRange(e.createClassDeclaration(void 0,void 0,x.name||e.createIdentifier("__class__"),void 0,void 0,[]),x.node)}else x.children=e.concatenate(x.children,j.children),x.children&&B(x.children,x);var Ze=j.node;return a.children[Oe-1].node.end===ae.end?e.setTextRange(ae,{pos:ae.pos,end:Ze.end}):(x.additionalNodes||(x.additionalNodes=[]),x.additionalNodes.push(e.setTextRange(e.createClassDeclaration(void 0,void 0,x.name||e.createIdentifier("__class__"),void 0,void 0,[]),j.node))),!0}return!(Pn===0)}function y(x,j,Oe,a){return m(x,j,Oe,a)?!0:L(x.node,j.node,a)?(b(x,j),!0):!1}function L(x,j,Oe){if(x.kind!==j.kind||x.parent!==j.parent&&!(C(x,Oe)&&C(j,Oe)))return!1;switch(x.kind){case 158:case 160:case 162:case 163:return e.hasModifier(x,32)===e.hasModifier(j,32);case 248:return _(x,j);default:return!0}}function C(x,j){var Oe=e.isModuleBlock(x.parent)?x.parent.parent:x.parent;return Oe===j.node||e.contains(j.additionalNodes,Oe)}function _(x,j){return x.body.kind===j.body.kind&&(x.body.kind!==248||_(x.body,j.body))}function b(x,j){var Oe;x.additionalNodes=x.additionalNodes||[],x.additionalNodes.push(j.node),j.additionalNodes&&(Oe=x.additionalNodes).push.apply(Oe,j.additionalNodes),x.children=e.concatenate(x.children,j.children),x.children&&(B(x.children,x),D(x.children))}function D(x){x.sort(T)}function T(x,j){return e.compareStringsCaseSensitiveUI(Q(x.node),Q(j.node))||e.compareValues(k(x),k(j))}function Q(x){if(x.kind===248)return U(x);var j=e.getNameOfDeclaration(x);if(j&&e.isPropertyName(j)){var Oe=e.getPropertyNameForPropertyNameNode(j);return Oe&&e.unescapeLeadingUnderscores(Oe)}switch(x.kind){case 200:case 201:case 213:return Ae(x);default:return}}function N(x,j){if(x.kind===248)return Ge(U(x));if(j){var Oe=e.isIdentifier(j)?j.text:e.isElementAccessExpression(j)?"["+w(j.argumentExpression)+"]":w(j);if(Oe.length>0)return Ge(Oe)}switch(x.kind){case 288:var a=x;return e.isExternalModule(a)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(a.fileName))))+'"':"<global>";case 201:case 243:case 200:case 244:case 213:return e.getModifierFlags(x)&512?"default":Ae(x);case 161:return"constructor";case 165:return"new()";case 164:return"()";case 166:return"[]";default:return"<unknown>"}}function X(x){var j=[];function Oe(en){if(a(en)&&(j.push(en),en.children))for(var Pn=0,Xn=en.children;Pn<Xn.length;Pn++){var ae=Xn[Pn];Oe(ae)}}return Oe(x),j;function a(en){if(en.children)return!0;switch(k(en)){case 244:case 213:case 247:case 245:case 248:case 288:case 246:case 315:case 308:return!0;case 201:case 243:case 200:return Pn(en);default:return!1}function Pn(Xn){if(!Xn.node.body)return!1;switch(k(Xn.parent)){case 249:case 288:case 160:case 161:return!0;default:return!1}}}}function pe(x){return{text:N(x.node,x.name),kind:e.getNodeKind(x.node),kindModifiers:Re(x.node),spans:v(x),nameSpan:x.name&&Z(x.name),childItems:e.map(x.children,pe)}}function S(x){return{text:N(x.node,x.name),kind:e.getNodeKind(x.node),kindModifiers:Re(x.node),spans:v(x),childItems:e.map(x.children,j)||I,indent:x.indent,bolded:!1,grayed:!1};function j(Oe){return{text:N(Oe.node,Oe.name),kind:e.getNodeKind(Oe.node),kindModifiers:e.getNodeModifiers(Oe.node),spans:v(Oe),childItems:I,indent:0,bolded:!1,grayed:!1}}}function v(x){var j=[Z(x.node)];if(x.additionalNodes)for(var Oe=0,a=x.additionalNodes;Oe<a.length;Oe++){var en=a[Oe];j.push(Z(en))}return j}function U(x){if(e.isAmbientModule(x))return e.getTextOfNode(x.name);var j=[];for(j.push(e.getTextOfIdentifierOrLiteral(x.name));x.body&&x.body.kind===248;)x=x.body,j.push(e.getTextOfIdentifierOrLiteral(x.name));return j.join(".")}function de(x){return x.body&&e.isModuleDeclaration(x.body)?de(x.body):x}function Ce(x){return!x.name||x.name.kind===153}function Z(x){return x.kind===288?e.createTextSpanFromRange(x):e.createTextSpanFromNode(x,ve)}function Re(x){return x.parent&&x.parent.kind===241&&(x=x.parent),e.getNodeModifiers(x)}function Ae(x){var j=x.parent;if(x.name&&e.getFullWidth(x.name)>0)return Ge(e.declarationNameToString(x.name));if(e.isVariableDeclaration(j))return Ge(e.declarationNameToString(j.name));if(e.isBinaryExpression(j)&&j.operatorToken.kind===62)return w(j.left).replace(Se,"");if(e.isPropertyAssignment(j))return w(j.name);if(e.getModifierFlags(x)&512)return"default";if(e.isClassLike(x))return"<class>";if(e.isCallExpression(j)){var Oe=We(j.expression);if(Oe!==void 0){if(Oe=Ge(Oe),Oe.length>Fe)return Oe+" callback";var a=Ge(e.mapDefined(j.arguments,function(en){return e.isStringLiteralLike(en)?en.getText(ve):void 0}).join(", "));return Oe+"("+a+") callback"}}return"<function>"}function We(x){if(e.isIdentifier(x))return x.text;if(e.isPropertyAccessExpression(x)){var j=We(x.expression),Oe=x.name.text;return j===void 0?Oe:j+"."+Oe}else return}function be(x){switch(x.kind){case 201:case 200:case 213:return!0;default:return!1}}function Ge(x){return x=x.length>Fe?x.substring(0,Fe)+"...":x,x.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(o=e.NavigationBar||(e.NavigationBar={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){function qe(_e,re,se,w,k){var P=e.textChanges.ChangeTracker.fromContext({host:se,formatContext:re,preferences:k}),h=function(B){return ve(Se(B,_e,w))},Y=_e.statements.filter(e.isImportDeclaration);z(Y,h);var ne=_e.statements.filter(e.isExportDeclaration);z(ne,ie);for(var $=0,J=_e.statements.filter(e.isAmbientModule);$<J.length;$++){var fe=J[$];if(!fe.body)continue;var R=fe.body.statements.filter(e.isImportDeclaration);z(R,h);var K=fe.body.statements.filter(e.isExportDeclaration);z(K,ie)}return P.getChanges();function z(Ee,B){if(e.length(Ee)===0)return;e.suppressLeadingTrivia(Ee[0]);var V=e.group(Ee,function(C){return He(C.moduleSpecifier)}),m=e.stableSort(V,function(C,_){return Pe(C[0].moduleSpecifier,_[0].moduleSpecifier)}),y=e.flatMap(m,function(C){return He(C[0].moduleSpecifier)?B(C):C});y.length===0?P.delete(_e,Ee[0]):P.replaceNodeWithNodes(_e,Ee[0],y,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(se,re.options)});for(var L=1;L<Ee.length;L++)P.delete(_e,Ee[L])}}F.organizeImports=qe;function Se(_e,re,se){for(var w=se.getTypeChecker(),k=w.getJsxNamespace(re),P=!!(re.transformFlags&2),h=[],Y=0,ne=_e;Y<ne.length;Y++){var $=ne[Y],J=$.importClause,fe=$.moduleSpecifier;if(!J){h.push($);continue}var R=J.name,K=J.namedBindings;if(R&&!Ee(R)&&(R=void 0),K)if(e.isNamespaceImport(K))Ee(K.name)||(K=void 0);else{var z=K.elements.filter(function(B){return Ee(B.name)});z.length<K.elements.length&&(K=z.length?e.updateNamedImports(K,z):void 0)}R||K?h.push(d($,R,K)):Fe(re,fe)&&(re.isDeclarationFile?h.push(e.createImportDeclaration($.decorators,$.modifiers,void 0,fe)):h.push($))}return h;function Ee(B){return P&&B.text===k||e.FindAllReferences.Core.isSymbolReferencedInFile(B,w,re)}}function Fe(_e,re){var se=e.isStringLiteral(re)&&re.text;return e.isString(se)&&e.some(_e.moduleAugmentations,function(w){return e.isStringLiteral(w)&&w.text===se})}function He(_e){return _e!==void 0&&e.isStringLiteralLike(_e)?_e.text:void 0}function ve(_e){if(_e.length===0)return _e;var re=y(_e),se=re.importWithoutClause,w=re.defaultImports,k=re.namespaceImports,P=re.namedImports,h=[];if(se&&h.push(se),w.length===1&&k.length===1&&P.length===0){var Y=w[0];return h.push(d(Y,Y.importClause.name,k[0].importClause.namedBindings)),h}for(var ne=e.stableSort(k,function(L,C){return I(L.importClause.namedBindings.name,C.importClause.namedBindings.name)}),$=0,J=ne;$<J.length;$++){var fe=J[$];h.push(d(fe,void 0,fe.importClause.namedBindings))}if(w.length===0&&P.length===0)return h;var R,K=[];if(w.length===1)R=w[0].importClause.name;else for(var z=0,Ee=w;z<Ee.length;z++){var Y=Ee[z];K.push(e.createImportSpecifier(e.createIdentifier("default"),Y.importClause.name))}K.push.apply(K,e.flatMap(P,function(L){return L.importClause.namedBindings.elements}));var B=H(K),V=w.length>0?w[0]:P[0],m=B.length===0?R?void 0:e.createNamedImports(e.emptyArray):P.length===0?e.createNamedImports(B):e.updateNamedImports(P[0].importClause.namedBindings,B);return h.push(d(V,R,m)),h;function y(L){for(var C,_=[],b=[],D=[],T=0,Q=L;T<Q.length;T++){var N=Q[T];if(N.importClause===void 0){C=C||N;continue}var X=N.importClause,pe=X.name,S=X.namedBindings;pe&&_.push(N),S&&(e.isNamespaceImport(S)?b.push(N):D.push(N))}return{importWithoutClause:C,defaultImports:_,namespaceImports:b,namedImports:D}}}F.coalesceImports=ve;function ie(_e){if(_e.length===0)return _e;var re=ne(_e),se=re.exportWithoutClause,w=re.namedExports,k=[];if(se&&k.push(se),w.length===0)return k;var P=[];P.push.apply(P,e.flatMap(w,function($){return $.exportClause.elements}));var h=H(P),Y=w[0];return k.push(e.updateExportDeclaration(Y,Y.decorators,Y.modifiers,e.updateNamedExports(Y.exportClause,h),Y.moduleSpecifier)),k;function ne($){for(var J,fe=[],R=0,K=$;R<K.length;R++){var z=K[R];z.exportClause===void 0?J=J||z:fe.push(z)}return{exportWithoutClause:J,namedExports:fe}}}F.coalesceExports=ie;function d(_e,re,se){return e.updateImportDeclaration(_e,_e.decorators,_e.modifiers,e.updateImportClause(_e.importClause,re,se),_e.moduleSpecifier)}function H(_e){return e.stableSort(_e,function(re,se){return I(re.propertyName||re.name,se.propertyName||se.name)||I(re.name,se.name)})}function Pe(_e,re){var se=He(_e),w=He(re);return e.compareBooleans(se===void 0,w===void 0)||e.compareBooleans(e.isExternalModuleNameRelative(se),e.isExternalModuleNameRelative(w))||e.compareStringsCaseInsensitive(se,w)}F.compareModuleSpecifiers=Pe;function I(_e,re){return e.compareStringsCaseInsensitive(_e.text,re.text)}})(o=e.OrganizeImports||(e.OrganizeImports={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){function qe(re,se){var w=[];return Se(re,se,w),Fe(re,w),w.sort(function(k,P){return k.textSpan.start-P.textSpan.start})}F.collectElements=qe;function Se(re,se,w){for(var k=40,P=0,h=re.statements,Y=h.length;P<Y;){for(;P<Y&&!e.isAnyImportSyntax(h[P]);)J(h[P]),P++;if(P===Y)break;for(var ne=P;P<Y&&e.isAnyImportSyntax(h[P]);)ie(h[P],re,se,w),P++;var $=P-1;$!==ne&&w.push(d(e.findChildOfKind(h[ne],95,re).getStart(re),h[$].getEnd(),"imports"))}function J(R){if(k===0)return;se.throwIfCancellationRequested(),e.isDeclaration(R)&&ie(R,re,se,w),fe(R)&&ie(R.parent.parent.parent,re,se,w);var K=H(R,re);K&&w.push(K),k--,e.isIfStatement(R)&&R.elseStatement&&e.isIfStatement(R.elseStatement)?(J(R.expression),J(R.thenStatement),k++,J(R.elseStatement),k--):R.forEachChild(J),k++}function fe(R){if(!e.isFunctionExpression(R)&&!e.isArrowFunction(R))return!1;var K=e.findAncestor(R,e.isVariableStatement);return!!K&&e.getSingleInitializerOfVariableStatementOrPropertyDeclaration(K)===R}}function Fe(re,se){for(var w=[],k=re.getLineStarts(),P=0,h=k;P<h.length;P++){var Y=h[P],ne=re.getLineEndOfPosition(Y),$=re.text.substring(Y,ne),J=ve($);if(!J||e.isInComment(re,Y))continue;if(J[1]){var R=w.pop();R&&(R.textSpan.length=ne-R.textSpan.start,R.hintSpan.length=ne-R.textSpan.start,se.push(R))}else{var fe=e.createTextSpanFromBounds(re.text.indexOf("//",Y),ne);w.push(_e(fe,"region",fe,!1,J[2]||"#region"))}}}var He=/^\s*\/\/\s*#(end)?region(?:\s+(.*))?(?:\r)?$/;function ve(re){return He.exec(re)}function ie(re,se,w,k){var P=e.getLeadingCommentRangesOfNode(re,se);if(!P)return;for(var h=-1,Y=-1,ne=0,$=se.getFullText(),J=0,fe=P;J<fe.length;J++){var R=fe[J],K=R.kind,z=R.pos,Ee=R.end;w.throwIfCancellationRequested();switch(K){case 2:var B=$.slice(z,Ee);if(ve(B)){V(),ne=0;break}ne===0&&(h=z),Y=Ee,ne++;break;case 3:V(),k.push(d(z,Ee,"comment")),ne=0;break;default:e.Debug.assertNever(K)}}V();function V(){ne>1&&k.push(d(h,Y,"comment"))}}function d(re,se,w){return _e(e.createTextSpanFromBounds(re,se),w)}function H(re,se){switch(re.kind){case 222:if(e.isFunctionLike(re.parent))return Pe(re.parent,re,se);switch(re.parent.kind){case 227:case 230:case 231:case 229:case 226:case 228:case 235:case 278:return ne(re.parent);case 239:var w=re.parent;if(w.tryBlock===re)return ne(re.parent);if(w.finallyBlock===re)return ne(e.findChildOfKind(w,91,se));default:return _e(e.createTextSpanFromNode(re,se),"code")}case 249:return ne(re.parent);case 244:case 213:case 245:case 247:case 250:return ne(re);case 192:return Y(re);case 191:return Y(re,22);case 264:return k(re);case 268:return P(re);case 265:case 266:return h(re.attributes)}function k($){var J=e.createTextSpanFromBounds($.openingElement.getStart(se),$.closingElement.getEnd()),fe=$.openingElement.tagName.getText(se),R="<"+fe+">...</"+fe+">";return _e(J,"code",J,!1,R)}function P($){var J=e.createTextSpanFromBounds($.openingFragment.getStart(se),$.closingFragment.getEnd()),fe="<>...</>";return _e(J,"code",J,!1,fe)}function h($){return $.properties.length===0?void 0:d($.getStart(se),$.getEnd(),"code")}function Y($,J){return J===void 0&&(J=18),ne($,!1,!e.isArrayLiteralExpression($.parent)&&!e.isCallExpression($.parent),J)}function ne($,J,fe,R,K){J===void 0&&(J=!1),fe===void 0&&(fe=!0),R===void 0&&(R=18),K===void 0&&(K=R===18?19:23);var z=e.findChildOfKind(re,R,se),Ee=e.findChildOfKind(re,K,se);return z&&Ee&&I(z,Ee,$,se,J,fe)}}function Pe(re,se,w){var k=e.isNodeArrayMultiLine(re.parameters,w)?e.findChildOfKind(re,20,w):e.findChildOfKind(se,18,w),P=e.findChildOfKind(se,19,w);return k&&P&&I(k,P,re,w,re.kind!==201)}function I(re,se,w,k,P,h){P===void 0&&(P=!1),h===void 0&&(h=!0);var Y=e.createTextSpanFromBounds(h?re.getFullStart():re.getStart(k),se.getEnd());return _e(Y,"code",e.createTextSpanFromNode(w,k),P)}function _e(re,se,w,k,P){return w===void 0&&(w=re),k===void 0&&(k=!1),P===void 0&&(P="..."),{textSpan:re,kind:se,hintSpan:w,bannerText:P,autoCollapse:k}}})(o=e.OutliningElementsCollector||(e.OutliningElementsCollector={}))})(ln||(ln={}));var ln;(function(e){var o;(function(m){m[m.exact=0]="exact",m[m.prefix=1]="prefix",m[m.substring=2]="substring",m[m.camelCase=3]="camelCase"})(o=e.PatternMatchKind||(e.PatternMatchKind={}));function F(m,y){return{kind:m,isCaseSensitive:y}}function qe(m){var y=e.createMap(),L=m.trim().split(".").map(function(C){return _e(C.trim())});return L.some(function(C){return!C.subWordTextChunks.length})?void 0:{getFullMatch:function(_,b){return Se(_,b,L,y)},getMatchForLastSegmentOfPattern:function(_){return ve(_,e.last(L),y)},patternContainsDots:L.length>1}}e.createPatternMatcher=qe;function Se(m,y,L,C){var _=ve(y,e.last(L),C);if(!_)return;if(L.length-1>m.length)return;for(var b,D=L.length-2,T=m.length-1;D>=0;D-=1,T-=1)b=ie(b,ve(m[T],L[D],C));return b}function Fe(m,y){var L=y.get(m);return L||y.set(m,L=J(m)),L}function He(m,y,L){var C=w(m,y.textLowerCase);if(C===0)return F(y.text.length===m.length?o.exact:o.prefix,e.startsWith(m,y.text));if(y.isLowerCase){if(C===-1)return;for(var _=Fe(m,L),b=0,D=_;b<D.length;b++){var T=D[b];if(H(m,T,y.text,!0))return F(o.substring,H(m,T,y.text,!1))}if(y.text.length<m.length&&re(m.charCodeAt(C)))return F(o.substring,!1)}else{if(m.indexOf(y.text)>0)return F(o.substring,!0);if(y.characterSpans.length>0){var Q=Fe(m,L),N=I(m,Q,y,!1)?!0:I(m,Q,y,!0)?!1:void 0;if(N!==void 0)return F(o.camelCase,N)}}}function ve(m,y,L){if(V(y.totalTextChunk.text,function(N){return N!==32&&N!==42})){var C=He(m,y.totalTextChunk,L);if(C)return C}for(var _=y.subWordTextChunks,b,D=0,T=_;D<T.length;D++){var Q=T[D];b=ie(b,He(m,Q,L))}return b}function ie(m,y){return e.min(m,y,d)}function d(m,y){return m===void 0?1:y===void 0?-1:e.compareValues(m.kind,y.kind)||e.compareBooleans(!m.isCaseSensitive,!y.isCaseSensitive)}function H(m,y,L,C,_){return _===void 0&&(_={start:0,length:L.length}),_.length<=y.length&&B(0,_.length,function(b){return Pe(L.charCodeAt(_.start+b),m.charCodeAt(y.start+b),C)})}function Pe(m,y,L){return L?k(m)===k(y):m===y}function I(m,y,L,C){for(var _=L.characterSpans,b=0,D=0,T,Q;;){if(D===_.length)return!0;if(b===y.length)return!1;for(var N=y[b],X=!1;D<_.length;D++){var pe=_[D];if(X&&(!re(L.text.charCodeAt(_[D-1].start))||!re(L.text.charCodeAt(_[D].start))))break;if(!H(m,N,L.text,C,pe))break;X=!0,T=T===void 0?b:T,Q=Q===void 0?!0:Q,N=e.createTextSpan(N.start+pe.length,N.length-pe.length)}!X&&Q!==void 0&&(Q=!1),b++}}function _e(m){return{totalTextChunk:ne(m),subWordTextChunks:Y(m)}}function re(m){if(m>=65&&m<=90)return!0;if(m<127||!e.isUnicodeIdentifierStart(m,99))return!1;var y=String.fromCharCode(m);return y===y.toUpperCase()}function se(m){if(m>=97&&m<=122)return!0;if(m<127||!e.isUnicodeIdentifierStart(m,99))return!1;var y=String.fromCharCode(m);return y===y.toLowerCase()}function w(m,y){for(var L=m.length-y.length,C=function(T){if(V(y,function(Q,N){return k(m.charCodeAt(N+T))===Q}))return{value:T}},_=0;_<=L;_++){var b=C(_);if(typeof b=="object")return b.value}return-1}function k(m){return m>=65&&m<=90?97+(m-65):m<127?m:String.fromCharCode(m).toLowerCase().charCodeAt(0)}function P(m){return m>=48&&m<=57}function h(m){return re(m)||se(m)||P(m)||m===95||m===36}function Y(m){for(var y=[],L=0,C=0,_=0;_<m.length;_++){var b=m.charCodeAt(_);h(b)?(C===0&&(L=_),C++):C>0&&(y.push(ne(m.substr(L,C))),C=0)}return C>0&&y.push(ne(m.substr(L,C))),y}function ne(m){var y=m.toLowerCase();return{text:m,textLowerCase:y,isLowerCase:m===y,characterSpans:$(m)}}function $(m){return fe(m,!1)}e.breakIntoCharacterSpans=$;function J(m){return fe(m,!0)}e.breakIntoWordSpans=J;function fe(m,y){for(var L=[],C=0,_=1;_<m.length;_++){var b=P(m.charCodeAt(_-1)),D=P(m.charCodeAt(_)),T=Ee(m,y,_),Q=y&&z(m,_,C);(R(m.charCodeAt(_-1))||R(m.charCodeAt(_))||b!==D||T||Q)&&(K(m,C,_)||L.push(e.createTextSpan(C,_-C)),C=_)}return K(m,C,m.length)||L.push(e.createTextSpan(C,m.length-C)),L}function R(m){switch(m){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 K(m,y,L){return V(m,function(C){return R(C)&&C!==95},y,L)}function z(m,y,L){return y!==L&&y+1<m.length&&re(m.charCodeAt(y))&&se(m.charCodeAt(y+1))&&V(m,re,L,y)}function Ee(m,y,L){var C=re(m.charCodeAt(L-1)),_=re(m.charCodeAt(L));return _&&(!y||!C)}function B(m,y,L){for(var C=m;C<y;C++)if(!L(C))return!1;return!0}function V(m,y,L,C){return L===void 0&&(L=0),C===void 0&&(C=m.length),B(L,C,function(_){return y(m.charCodeAt(_),_)})}})(ln||(ln={}));var ln;(function(e){function o(F,qe,Se){qe===void 0&&(qe=!0),Se===void 0&&(Se=!1);var Fe={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},He=[],ve,ie,d,H=0,Pe=!1;function I(){return ie=d,d=e.scanner.scan(),d===18?H++:d===19&&H--,d}function _e(){var B=e.scanner.getTokenValue(),V=e.scanner.getTokenPos();return{fileName:B,pos:V,end:V+B.length}}function re(){ve||(ve=[]),ve.push({ref:_e(),depth:H})}function se(){He.push(_e()),w()}function w(){H===0&&(Pe=!0)}function k(){var B=e.scanner.getToken();return B===129?(B=I(),B===134&&(B=I(),B===10&&re()),!0):!1}function P(){if(ie===24)return!1;var B=e.scanner.getToken();if(B===95){if(B=I(),B===20){if(B=I(),B===10)return se(),!0}else{if(B===10)return se(),!0;if(B===75||e.isKeyword(B))if(B=I(),B===148){if(B=I(),B===10)return se(),!0}else if(B===62){if(Y(!0))return!0}else if(B===27)B=I();else return!0;if(B===18){for(B=I();B!==19&&B!==1;)B=I();B===19&&(B=I(),B===148&&(B=I(),B===10&&se()))}else B===41&&(B=I(),B===122&&(B=I(),(B===75||e.isKeyword(B))&&(B=I(),B===148&&(B=I(),B===10&&se()))))}return!0}return!1}function h(){var B=e.scanner.getToken();if(B===88){if(w(),B=I(),B===18){for(B=I();B!==19&&B!==1;)B=I();B===19&&(B=I(),B===148&&(B=I(),B===10&&se()))}else if(B===41)B=I(),B===148&&(B=I(),B===10&&se());else if(B===95&&(B=I(),(B===75||e.isKeyword(B))&&(B=I(),B===62&&Y(!0))))return!0;return!0}return!1}function Y(B){var V=B?I():e.scanner.getToken();return V===138?(V=I(),V===20&&(V=I(),V===10&&se()),!0):!1}function ne(){var B=e.scanner.getToken();if(B===75&&e.scanner.getTokenValue()==="define"){if(B=I(),B!==20)return!0;if(B=I(),B===10)if(B=I(),B===27)B=I();else return!0;if(B!==22)return!0;for(B=I();B!==23&&B!==1;)B===10&&se(),B=I();return!0}return!1}function $(){for(e.scanner.setText(F),I();!(e.scanner.getToken()===1);){if(k()||P()||h()||Se&&(Y(!1)||ne()))continue;I()}e.scanner.setText(void 0)}if(qe&&$(),e.processCommentPragmas(Fe,F),e.processPragmasIntoFields(Fe,e.noop),Pe){if(ve)for(var J=0,fe=ve;J<fe.length;J++){var R=fe[J];He.push(R.ref)}return{referencedFiles:Fe.referencedFiles,typeReferenceDirectives:Fe.typeReferenceDirectives,libReferenceDirectives:Fe.libReferenceDirectives,importedFiles:He,isLibFile:!!Fe.hasNoDefaultLib,ambientExternalModules:void 0}}else{var K=void 0;if(ve)for(var z=0,Ee=ve;z<Ee.length;z++){var R=Ee[z];R.depth===0?(K||(K=[]),K.push(R.ref.fileName)):He.push(R.ref)}return{referencedFiles:Fe.referencedFiles,typeReferenceDirectives:Fe.typeReferenceDirectives,libReferenceDirectives:Fe.libReferenceDirectives,importedFiles:He,isLibFile:!!Fe.hasNoDefaultLib,ambientExternalModules:K}}}e.preProcessFile=o})(ln||(ln={}));var ln;(function(e){var o;(function(F){function qe(H,Pe,I,_e){var re=e.getTouchingPropertyName(Pe,I),se=re&&d(re)?Se(re,H.getTypeChecker(),Pe,function(w){return H.isSourceFileDefaultLibrary(w.getSourceFile())},_e):void 0;return se||ve(e.Diagnostics.You_cannot_rename_this_element)}F.getRenameInfo=qe;function Se(H,Pe,I,_e,re){var se=Pe.getSymbolAtLocation(H);if(!se)return;var w=se.declarations;if(!w||w.length===0)return;if(w.some(_e))return ve(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(e.isIdentifier(H)&&H.originalKeywordKind===83&&se.parent.flags&1536)return;if(e.isStringLiteralLike(H)&&e.tryGetImportFromModuleSpecifier(H))return re&&re.allowRenameOfImportPath?Fe(H,I,se):void 0;var k=e.SymbolDisplay.getSymbolKind(Pe,se,H),P=e.isImportOrExportSpecifierName(H)||e.isStringOrNumericLiteralLike(H)&&H.parent.kind===153?e.stripQuotes(e.getTextOfIdentifierOrLiteral(H)):void 0,h=P||Pe.symbolToString(se),Y=P||Pe.getFullyQualifiedName(se);return He(h,Y,k,e.SymbolDisplay.getSymbolModifiers(se),H,I)}function Fe(H,Pe,I){if(!e.isExternalModuleNameRelative(H.text))return ve(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var _e=e.find(I.declarations,e.isSourceFile);if(!_e)return;var re=e.endsWith(H.text,"/index")||e.endsWith(H.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(_e.fileName),"/index"),se=re===void 0?_e.fileName:re,w=re===void 0?"module":"directory",k=H.text.lastIndexOf("/")+1,P=e.createTextSpan(H.getStart(Pe)+1+k,H.text.length-k);return{canRename:!0,fileToRename:se,kind:w,displayName:se,fullDisplayName:se,kindModifiers:"",triggerSpan:P}}function He(H,Pe,I,_e,re,se){return{canRename:!0,fileToRename:void 0,kind:I,displayName:H,fullDisplayName:Pe,kindModifiers:_e,triggerSpan:ie(re,se)}}function ve(H){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(H)}}function ie(H,Pe){var I=H.getStart(Pe),_e=H.getWidth(Pe);return e.isStringLiteralLike(H)&&(I+=1,_e-=2),e.createTextSpan(I,_e)}function d(H){switch(H.kind){case 75:case 10:case 14:case 103:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(H);default:return!1}}})(o=e.Rename||(e.Rename={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){function qe(I,_e){var re={textSpan:e.createTextSpanFromBounds(_e.getFullStart(),_e.getEnd())},se=_e;e:for(;;){var w=He(se);if(!w.length)break;for(var k=0;k<w.length;k++){var P=w[k-1],h=w[k],Y=w[k+1];if(h.getStart(_e)>I)break e;if(Se(_e,I,h)){if(e.isBlock(h)||e.isTemplateSpan(h)||e.isTemplateHead(h)||e.isTemplateTail(h)||P&&e.isTemplateHead(P)||e.isVariableDeclarationList(h)&&e.isVariableStatement(se)||e.isSyntaxList(h)&&e.isVariableDeclarationList(se)||e.isVariableDeclaration(h)&&e.isSyntaxList(se)&&w.length===1){se=h;break}if(e.isTemplateSpan(se)&&Y&&e.isTemplateMiddleOrTemplateTail(Y)){var ne=h.getFullStart()-"${".length,$=Y.getStart()+"}".length;z(ne,$)}var J=e.isSyntaxList(h)&&H(P)&&Pe(Y)&&!e.positionsAreOnSameLine(P.getStart(),Y.getStart(),_e),fe=e.hasJSDocNodes(h)&&h.jsDoc[0].getStart(),R=J?P.getEnd():h.getStart(),K=J?Y.getStart():h.getEnd();e.isNumber(fe)&&z(fe,K),z(R,K),(e.isStringLiteral(h)||e.isTemplateLiteral(h))&&z(R+1,K-1),se=h;break}if(k===w.length-1)break e}}return re;function z(Ee,B){if(Ee!==B){var V=e.createTextSpanFromBounds(Ee,B);(!re||!e.textSpansEqual(V,re.textSpan)&&e.textSpanIntersectsWithPosition(V,I))&&(re=ma({textSpan:V},re&&{parent:re}))}}}F.getSmartSelectionRange=qe;function Se(I,_e,re){if(e.Debug.assert(re.pos<=_e),_e<re.end)return!0;var se=re.getEnd();return se===_e?e.getTouchingPropertyName(I,_e).pos<re.end:!1}var Fe=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function He(I){if(e.isSourceFile(I))return ve(I.getChildAt(0).getChildren(),Fe);if(e.isMappedTypeNode(I)){var _e=I.getChildren(),re=_e[0],se=_e.slice(1),w=e.Debug.assertDefined(se.pop());e.Debug.assertEqual(re.kind,18),e.Debug.assertEqual(w.kind,19);var k=ve(se,function(ne){return ne===I.readonlyToken||ne.kind===137||ne===I.questionToken||ne.kind===57}),P=ve(k,function(ne){var $=ne.kind;return $===22||$===154||$===23});return[re,d(ie(P,function(ne){var $=ne.kind;return $===58})),w]}if(e.isPropertySignature(I)){var se=ve(I.getChildren(),function($){return $===I.name||e.contains(I.modifiers,$)});return ie(se,function($){var J=$.kind;return J===58})}if(e.isParameter(I)){var h=ve(I.getChildren(),function(ne){return ne===I.dotDotDotToken||ne===I.name}),Y=ve(h,function(ne){return ne===h[0]||ne===I.questionToken});return ie(Y,function(ne){var $=ne.kind;return $===62})}return e.isBindingElement(I)?ie(I.getChildren(),function(ne){var $=ne.kind;return $===62}):I.getChildren()}function ve(I,_e){for(var re=[],se,w=0,k=I;w<k.length;w++){var P=k[w];_e(P)?(se=se||[],se.push(P)):(se&&(re.push(d(se)),se=void 0),re.push(P))}return se&&re.push(d(se)),re}function ie(I,_e,re){if(re===void 0&&(re=!0),I.length<2)return I;var se=e.findIndex(I,_e);if(se===-1)return I;var w=I.slice(0,se),k=I[se],P=e.last(I),h=re&&P.kind===26,Y=I.slice(se+1,h?I.length-1:void 0),ne=e.compact([w.length?d(w):void 0,k,Y.length?d(Y):void 0]);return h?ne.concat(P):ne}function d(I){e.Debug.assertGreaterThanOrEqual(I.length,1);var _e=e.createNode(317,I[0].pos,e.last(I).end);return _e._children=I,_e}function H(I){var _e=I&&I.kind;return _e===18||_e===22||_e===20||_e===266}function Pe(I){var _e=I&&I.kind;return _e===19||_e===23||_e===21||_e===267}})(o=e.SmartSelectionRange||(e.SmartSelectionRange={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe;(function(X){X[X.Call=0]="Call",X[X.TypeArgs=1]="TypeArgs",X[X.Contextual=2]="Contextual"})(qe||(qe={}));function Se(X,pe,S,v,U){var de=X.getTypeChecker(),Ce=e.findTokenOnLeftOfPosition(pe,S);if(!Ce)return;var Z=!!v&&v.kind==="characterTyped";if(Z&&(e.isInString(pe,S,Ce)||e.isInComment(pe,S)))return;var Re=!!v&&v.kind==="invoked",Ae=K(Ce,S,pe,de,Re);if(!Ae)return;U.throwIfCancellationRequested();var We=He(Ae,de,pe,Ce,Z);return U.throwIfCancellationRequested(),We?de.runWithCancellationToken(U,function(be){return We.kind===0?m(We.candidates,We.resolvedSignature,Ae,pe,be):y(We.symbol,Ae,pe,be)}):e.isSourceFileJS(pe)?ie(Ae,X,U):void 0}F.getSignatureHelpItems=Se;var Fe;(function(X){X[X.Candidate=0]="Candidate",X[X.Type=1]="Type"})(Fe||(Fe={}));function He(X,pe,S,v,U){var de=X.invocation,Ce=X.argumentCount;switch(de.kind){case 0:{if(U&&!ve(v,de.node,S))return;var Z=[],Re=pe.getResolvedSignatureForSignatureHelp(de.node,Z,Ce);return Z.length===0?void 0:{kind:0,candidates:Z,resolvedSignature:Re}}case 1:{var Ae=de.called;if(U&&!d(v,S,e.isIdentifier(Ae)?Ae.parent:Ae))return;var Z=e.getPossibleGenericSignatures(Ae,Ce,pe);if(Z.length!==0)return{kind:0,candidates:Z,resolvedSignature:e.first(Z)};var We=pe.getSymbolAtLocation(Ae);return We&&{kind:1,symbol:We}}case 2:return{kind:0,candidates:[de.signature],resolvedSignature:de.signature};default:return e.Debug.assertNever(de)}}function ve(X,pe,S){if(!e.isCallOrNewExpression(pe))return!1;var v=pe.getChildren(S);switch(X.kind){case 20:return e.contains(v,X);case 27:{var U=e.findContainingList(X);return!!U&&e.contains(v,U)}case 29:return d(X,S,pe.expression);default:return!1}}function ie(X,pe,S){if(X.invocation.kind===2)return;var v=Ee(X.invocation),U=e.isIdentifier(v)?v.text:e.isPropertyAccessExpression(v)?v.name.text:void 0,de=pe.getTypeChecker();return U===void 0?void 0:e.firstDefined(pe.getSourceFiles(),function(Ce){return e.firstDefined(Ce.getNamedDeclarations().get(U),function(Z){var Re=Z.symbol&&de.getTypeOfSymbolAtLocation(Z.symbol,Z),Ae=Re&&Re.getCallSignatures();if(Ae&&Ae.length)return de.runWithCancellationToken(S,function(We){return m(Ae,Ae[0],X,Ce,We)})})})}function d(X,pe,S){for(var v=X.getFullStart(),U=X.parent;U;){var de=e.findPrecedingToken(v,pe,U,!0);if(de)return e.rangeContainsRange(S,de);U=U.parent}return e.Debug.fail("Could not find preceding token")}function H(X,pe,S){var v=_e(X,pe,S);return!v||v.isTypeParameterList||v.invocation.kind!==0?void 0:{invocation:v.invocation.node,argumentCount:v.argumentCount,argumentIndex:v.argumentIndex}}F.getArgumentInfoForCompletions=H;function Pe(X,pe){var S=I(X,pe);if(!S)return;var v=S.list,U=S.argumentIndex,de=ne(v);U!==0&&e.Debug.assertLessThan(U,de);var Ce=fe(v,pe);return{list:v,argumentIndex:U,argumentCount:de,argumentsSpan:Ce}}function I(X,pe){if(X.kind===29||X.kind===20)return{list:z(X.parent,X,pe),argumentIndex:0};var S=e.findContainingList(X);return S&&{list:S,argumentIndex:Y(S,X)}}function _e(X,pe,S){var v=X.parent;if(e.isCallOrNewExpression(v)){var U=v,de=Pe(X,S);if(!de)return;var Ce=de.list,Z=de.argumentIndex,Re=de.argumentCount,Ae=de.argumentsSpan,We=!!v.typeArguments&&v.typeArguments.pos===Ce.pos;return{isTypeParameterList:We,invocation:{kind:0,node:U},argumentsSpan:Ae,argumentIndex:Z,argumentCount:Re}}else{if(e.isNoSubstitutionTemplateLiteral(X)&&e.isTaggedTemplateExpression(v))return e.isInsideTemplateLiteral(X,pe,S)?J(v,0,S):void 0;if(e.isTemplateHead(X)&&v.parent.kind===197){var be=v,Ge=be.parent;e.Debug.assert(be.kind===210);var Z=e.isInsideTemplateLiteral(X,pe,S)?0:1;return J(Ge,Z,S)}else if(e.isTemplateSpan(v)&&e.isTaggedTemplateExpression(v.parent.parent)){var x=v,Ge=v.parent.parent;if(e.isTemplateTail(X)&&!e.isInsideTemplateLiteral(X,pe,S))return;var j=x.parent.templateSpans.indexOf(x),Z=$(j,X,pe,S);return J(Ge,Z,S)}else if(e.isJsxOpeningLikeElement(v)){var Oe=v.attributes.pos,a=e.skipTrivia(S.text,v.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:v},argumentsSpan:e.createTextSpan(Oe,a-Oe),argumentIndex:0,argumentCount:1}}else{var en=e.getPossibleTypeArgumentsInfo(X,S);if(en){var Pn=en.called,Xn=en.nTypeArguments,U={kind:1,called:Pn},Ae=e.createTextSpanFromBounds(Pn.getStart(S),X.end);return{isTypeParameterList:!0,invocation:U,argumentsSpan:Ae,argumentIndex:Xn,argumentCount:Xn+1}}return}}}function re(X,pe,S,v){return k(X,pe,S,v)||_e(X,pe,S)}function se(X){return e.isBinaryExpression(X.parent)?se(X.parent):X}function w(X){return e.isBinaryExpression(X.left)?w(X.left)+1:2}function k(X,pe,S,v){var U=P(X,S,v);if(!U)return;var de=U.contextualType,Ce=U.argumentIndex,Z=U.argumentCount,Re=U.argumentsSpan,Ae=de.getCallSignatures();if(Ae.length!==1)return;var We={kind:2,signature:e.first(Ae),node:X,symbol:h(de.symbol)};return{isTypeParameterList:!1,invocation:We,argumentsSpan:Re,argumentIndex:Ce,argumentCount:Z}}function P(X,pe,S){if(X.kind!==20&&X.kind!==27)return;var v=X.parent;switch(v.kind){case 199:case 160:case 200:case 201:var U=Pe(X,pe);if(!U)return;var de=U.argumentIndex,Ce=U.argumentCount,Z=U.argumentsSpan,Re=e.isMethodDeclaration(v)?S.getContextualTypeForObjectLiteralElement(v):S.getContextualType(v);return Re&&{contextualType:Re,argumentIndex:de,argumentCount:Ce,argumentsSpan:Z};case 208:{var Ae=se(v),We=S.getContextualType(Ae),be=X.kind===20?0:w(v)-1,Ge=w(Ae);return We&&{contextualType:We,argumentIndex:be,argumentCount:Ge,argumentsSpan:e.createTextSpanFromNode(v)}}default:return}}function h(X){return X.name==="__type"&&e.firstDefined(X.declarations,function(pe){return e.isFunctionTypeNode(pe)?pe.parent.symbol:void 0})||X}function Y(X,pe){for(var S=0,v=0,U=X.getChildren();v<U.length;v++){var de=U[v];if(de===pe)break;de.kind!==27&&S++}return S}function ne(X){var pe=X.getChildren(),S=e.countWhere(pe,function(v){return v.kind!==27});return pe.length>0&&e.last(pe).kind===27&&S++,S}function $(X,pe,S,v){return e.Debug.assert(S>=pe.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(pe)?e.isInsideTemplateLiteral(pe,S,v)?0:X+2:X+1}function J(X,pe,S){var v=e.isNoSubstitutionTemplateLiteral(X.template)?1:X.template.templateSpans.length+1;return pe!==0&&e.Debug.assertLessThan(pe,v),{isTypeParameterList:!1,invocation:{kind:0,node:X},argumentsSpan:R(X,S),argumentIndex:pe,argumentCount:v}}function fe(X,pe){var S=X.getFullStart(),v=e.skipTrivia(pe.text,X.getEnd(),!1);return e.createTextSpan(S,v-S)}function R(X,pe){var S=X.template,v=S.getStart(),U=S.getEnd();if(S.kind===210){var de=e.last(S.templateSpans);de.literal.getFullWidth()===0&&(U=e.skipTrivia(pe.text,U,!1))}return e.createTextSpan(v,U-v)}function K(X,pe,S,v,U){for(var de=function(Ae){e.Debug.assert(e.rangeContainsRange(Ae.parent,Ae),"Not a subspan",function(){return"Child: "+e.Debug.formatSyntaxKind(Ae.kind)+", parent: "+e.Debug.formatSyntaxKind(Ae.parent.kind)});var We=re(Ae,pe,S,v);if(We)return{value:We}},Ce=X;!e.isSourceFile(Ce)&&(U||!e.isBlock(Ce));Ce=Ce.parent){var Z=de(Ce);if(typeof Z=="object")return Z.value}return}function z(X,pe,S){var v=X.getChildren(S),U=v.indexOf(pe);return e.Debug.assert(U>=0&&v.length>U+1),v[U+1]}function Ee(X){return X.kind===0?e.getInvokedExpression(X.node):X.called}function B(X){return X.kind===0?X.node:X.kind===1?X.called:X.node}var V=8192|70221824|16384;function m(X,pe,S,v,U){var de=S.isTypeParameterList,Ce=S.argumentCount,Z=S.argumentsSpan,Re=S.invocation,Ae=S.argumentIndex,We=B(Re),be=Re.kind===2?Re.symbol:U.getSymbolAtLocation(Ee(Re)),Ge=be?e.symbolToDisplayParts(U,be,void 0,void 0):e.emptyArray,x=X.map(function(Oe){return _(Oe,Ge,de,U,We,v)});Ae!==0&&e.Debug.assertLessThan(Ae,Ce);var j=X.indexOf(pe);return e.Debug.assert(j!==-1),{items:x,applicableSpan:Z,selectedItemIndex:j,argumentIndex:Ae,argumentCount:Ce}}function y(X,pe,S,v){var U=pe.argumentCount,de=pe.argumentsSpan,Ce=pe.invocation,Z=pe.argumentIndex,Re=v.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(X);if(!Re)return;var Ae=[L(X,Re,v,B(Ce),S)];return{items:Ae,applicableSpan:de,selectedItemIndex:0,argumentIndex:Z,argumentCount:U}}function L(X,pe,S,v,U){var de=e.symbolToDisplayParts(S,X),Ce=e.createPrinter({removeComments:!0}),Z=pe.map(function(be){return N(be,S,v,U,Ce)}),Re=X.getDocumentationComment(S),Ae=X.getJsDocTags(),We=Or(de,[e.punctuationPart(29)]);return{isVariadic:!1,prefixDisplayParts:We,suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:C,parameters:Z,documentation:Re,tags:Ae}}var C=[e.punctuationPart(27),e.spacePart()];function _(X,pe,S,v,U,de){var Ce=(S?D:T)(X,v,U,de),Z=Ce.isVariadic,Re=Ce.parameters,Ae=Ce.prefix,We=Ce.suffix,be=Or(pe,Ae),Ge=Or(We,b(X,U,v)),x=X.getDocumentationComment(v),j=X.getJsDocTags();return{isVariadic:Z,prefixDisplayParts:be,suffixDisplayParts:Ge,separatorDisplayParts:C,parameters:Re,documentation:x,tags:j}}function b(X,pe,S){return e.mapToDisplayParts(function(v){v.writePunctuation(":"),v.writeSpace(" ");var U=S.getTypePredicateOfSignature(X);U?S.writeTypePredicate(U,pe,void 0,v):S.writeType(S.getReturnTypeOfSignature(X),pe,void 0,v)})}function D(X,pe,S,v){var U=(X.target||X).typeParameters,de=e.createPrinter({removeComments:!0}),Ce=(U||e.emptyArray).map(function(Re){return N(Re,pe,S,v,de)}),Z=e.mapToDisplayParts(function(Re){var Ae=X.thisParameter?[pe.symbolToParameterDeclaration(X.thisParameter,S,V)]:[],We=e.createNodeArray(Or(Ae,pe.getExpandedParameters(X).map(function(be){return pe.symbolToParameterDeclaration(be,S,V)})));de.writeList(2576,We,v,Re)});return{isVariadic:!1,parameters:Ce,prefix:[e.punctuationPart(29)],suffix:Or([e.punctuationPart(31)],Z)}}function T(X,pe,S,v){var U=pe.hasEffectiveRestParameter(X),de=e.createPrinter({removeComments:!0}),Ce=e.mapToDisplayParts(function(Re){if(X.typeParameters&&X.typeParameters.length){var Ae=e.createNodeArray(X.typeParameters.map(function(We){return pe.typeParameterToDeclaration(We,S)}));de.writeList(53776,Ae,v,Re)}}),Z=pe.getExpandedParameters(X).map(function(Re){return Q(Re,pe,S,v,de)});return{isVariadic:U,parameters:Z,prefix:Or(Ce,[e.punctuationPart(20)]),suffix:[e.punctuationPart(21)]}}function Q(X,pe,S,v,U){var de=e.mapToDisplayParts(function(Z){var Re=pe.symbolToParameterDeclaration(X,S,V);U.writeNode(4,Re,v,Z)}),Ce=pe.isOptionalParameter(X.valueDeclaration);return{name:X.name,documentation:X.getDocumentationComment(pe),displayParts:de,isOptional:Ce}}function N(X,pe,S,v,U){var de=e.mapToDisplayParts(function(Ce){var Z=pe.typeParameterToDeclaration(X,S);U.writeNode(4,Z,v,Ce)});return{name:X.symbol.name,documentation:X.symbol.getDocumentationComment(pe),displayParts:de,isOptional:!1}}})(o=e.SignatureHelp||(e.SignatureHelp={}))})(ln||(ln={}));var ln;(function(e){var o=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function F(He){var ve=e.createGetCanonicalFileName(He.useCaseSensitiveFileNames()),ie=He.getCurrentDirectory(),d=e.createMap(),H=e.createMap();return{tryGetSourcePosition:_e,tryGetGeneratedPosition:re,toLineColumnOffset:P,clearCache:h};function Pe(Y){return e.toPath(Y,ie,ve)}function I(Y,ne){var $=Pe(Y),J=H.get($);if(J)return J;var fe;if(He.getDocumentPositionMapper)fe=He.getDocumentPositionMapper(Y,ne);else if(He.readFile){var R=k(Y);fe=R&&e.getDocumentPositionMapper({getSourceFileLike:k,getCanonicalFileName:ve,log:function(z){return He.log(z)}},Y,e.getLineInfo(R.text,e.getLineStarts(R)),function(K){return!He.fileExists||He.fileExists(K)?He.readFile(K):void 0})}return H.set($,fe||e.identitySourceMapConsumer),fe||e.identitySourceMapConsumer}function _e(Y){if(!e.isDeclarationFileName(Y.fileName))return;var ne=se(Y.fileName);if(!ne)return;var $=I(Y.fileName).getSourcePosition(Y);return!$||$===Y?void 0:_e($)||$}function re(Y){if(e.isDeclarationFileName(Y.fileName))return;var ne=se(Y.fileName);if(!ne)return;var $=He.getProgram();if($.isSourceOfProjectReferenceRedirect(ne.fileName))return;var J=$.getCompilerOptions(),fe=J.outFile||J.out,R=fe?e.removeFileExtension(fe)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(Y.fileName,$.getCompilerOptions(),ie,$.getCommonSourceDirectory(),ve);if(R===void 0)return;var K=I(R,Y.fileName).getGeneratedPosition(Y);return K===Y?void 0:K}function se(Y){var ne=He.getProgram();if(!ne)return;var $=Pe(Y),J=ne.getSourceFileByPath($);return J&&J.resolvedPath===$?J:void 0}function w(Y){var ne=Pe(Y),$=d.get(ne);if($!==void 0)return $||void 0;if(!He.readFile||He.fileExists&&!He.fileExists(ne)){d.set(ne,!1);return}var J=He.readFile(ne),fe=J?Fe(J):!1;return d.set(ne,fe),fe||void 0}function k(Y){return He.getSourceFileLike?He.getSourceFileLike(Y):se(Y)||w(Y)}function P(Y,ne){var $=k(Y);return $.getLineAndCharacterOfPosition(ne)}function h(){d.clear(),H.clear()}}e.getSourceMapper=F;function qe(He,ve,ie,d){var H=e.tryGetSourceMappingURL(ie);if(H){var Pe=o.exec(H);if(Pe){if(Pe[1]){var I=Pe[1];return Se(He,e.base64decode(e.sys,I),ve)}H=void 0}}var _e=[];H&&_e.push(H),_e.push(ve+".map");for(var re=H&&e.getNormalizedAbsolutePath(H,e.getDirectoryPath(ve)),se=0,w=_e;se<w.length;se++){var k=w[se],P=e.getNormalizedAbsolutePath(k,e.getDirectoryPath(ve)),h=d(P,re);if(e.isString(h))return Se(He,h,P);if(h!==void 0)return h||void 0}return}e.getDocumentPositionMapper=qe;function Se(He,ve,ie){var d=e.tryParseRawSourceMap(ve);return!d||!d.sources||!d.file||!d.mappings?void 0:e.createDocumentPositionMapper(He,d,ie)}function Fe(He,ve){return{text:He,lineMap:ve,getLineAndCharacterOfPosition:function(d){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),d)}}}})(ln||(ln={}));var ln;(function(e){var o=e.createMap();function F(w,k,P){k.getSemanticDiagnostics(w,P);var h=[],Y=k.getTypeChecker();w.commonJsModuleIndicator&&(e.programContainsEs6Modules(k)||e.compilerOptionsIndicateEs6Modules(k.getCompilerOptions()))&&qe(w)&&h.push(e.createDiagnosticForNode(d(w.commonJsModuleIndicator),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var ne=e.isSourceFileJS(w);if(o.clear(),B(w),e.getAllowSyntheticDefaultImports(k.getCompilerOptions()))for(var $=0,J=w.imports;$<J.length;$++){var fe=J[$],R=e.importFromModuleSpecifier(fe),K=Fe(R);if(!K)continue;var z=e.getResolvedModule(w,fe.text),Ee=z&&k.getSourceFile(z.resolvedFileName);Ee&&Ee.externalModuleIndicator&&e.isExportAssignment(Ee.externalModuleIndicator)&&Ee.externalModuleIndicator.isExportEquals&&h.push(e.createDiagnosticForNode(K,e.Diagnostics.Import_may_be_converted_to_a_default_import))}return e.addRange(h,w.bindSuggestionDiagnostics),e.addRange(h,k.getSuggestionDiagnostics(w,P)),h.sort(function(V,m){return V.start-m.start});function B(V){if(ne)switch(V.kind){case 200:var m=e.getDeclarationOfExpando(V);if(m){var y=m.symbol;if(y&&(y.exports&&y.exports.size||y.members&&y.members.size)){h.push(e.createDiagnosticForNode(e.isVariableDeclaration(V.parent)?V.parent.name:V,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));break}}case 243:var L=V.symbol;L.members&&L.members.size>0&&h.push(e.createDiagnosticForNode(e.isVariableDeclaration(V.parent)?V.parent.name:V,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));break}else{if(e.isVariableStatement(V)&&V.parent===w&&V.declarationList.flags&2&&V.declarationList.declarations.length===1){var C=V.declarationList.declarations[0].initializer;C&&e.isRequireCall(C,!0)&&h.push(e.createDiagnosticForNode(C,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(V)&&h.push(e.createDiagnosticForNode(V.name||V,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}e.isFunctionLikeDeclaration(V)&&He(V,Y,h),V.forEachChild(B)}}e.computeSuggestionDiagnostics=F;function qe(w){return w.statements.some(function(k){switch(k.kind){case 224:return k.declarationList.declarations.some(function(Y){return!!Y.initializer&&e.isRequireCall(Se(Y.initializer),!0)});case 225:{var P=k.expression;if(!e.isBinaryExpression(P))return e.isRequireCall(P,!0);var h=e.getAssignmentDeclarationKind(P);return h===1||h===2}default:return!1}})}function Se(w){return e.isPropertyAccessExpression(w)?Se(w.expression):w}function Fe(w){switch(w.kind){case 253:var k=w.importClause,P=w.moduleSpecifier;return k&&!k.name&&k.namedBindings&&k.namedBindings.kind===255&&e.isStringLiteral(P)?k.namedBindings.name:void 0;case 252:return w.name;default:return}}function He(w,k,P){ve(w,k)&&!o.has(se(w))&&P.push(e.createDiagnosticForNode(!w.name&&e.isVariableDeclaration(w.parent)&&e.isIdentifier(w.parent.name)?w.parent.name:w,e.Diagnostics.This_may_be_converted_to_an_async_function))}function ve(w,k){return!e.isAsyncFunction(w)&&w.body&&e.isBlock(w.body)&&H(w.body)&&ie(w,k)}function ie(w,k){var P=k.getTypeAtLocation(w),h=k.getSignaturesOfType(P,0),Y=h.length?k.getReturnTypeOfSignature(h[0]):void 0;return!!Y&&!!k.getPromisedTypeOfPromise(Y)}function d(w){return e.isBinaryExpression(w)?w.left:w}function H(w){return!!e.forEachReturnStatement(w,Pe)}function Pe(w){return e.isReturnStatement(w)&&!!w.expression&&I(w.expression)}e.isReturnStatementWithFixablePromiseHandler=Pe;function I(w){if(!_e(w)||!w.arguments.every(re))return!1;for(var k=w.expression;_e(k)||e.isPropertyAccessExpression(k);){if(e.isCallExpression(k)&&!k.arguments.every(re))return!1;k=k.expression}return!0}e.isFixablePromiseHandler=I;function _e(w){return e.isCallExpression(w)&&(e.hasPropertyAccessExpressionWithName(w,"then")||e.hasPropertyAccessExpressionWithName(w,"catch"))}function re(w){switch(w.kind){case 243:case 200:case 201:o.set(se(w),!0);case 99:case 75:return!0;default:return!1}}function se(w){return w.pos.toString()+":"+w.end.toString()}})(ln||(ln={}));var ln;(function(e){var o;(function(F){function qe(ie,d,H){var Pe=Se(ie,d,H);if(Pe!=="")return Pe;var I=e.getCombinedLocalAndExportSymbolFlags(d);return I&32?e.getDeclarationOfKind(d,213)?"local class":"class":I&384?"enum":I&524288?"type":I&64?"interface":I&262144||I&262144?"type parameter":I&8?"enum member":I&2097152?"alias":I&1536?"module":Pe}F.getSymbolKind=qe;function Se(ie,d,H){var Pe=ie.getRootSymbols(d);if(Pe.length===1&&e.first(Pe).flags&8192&&ie.getTypeOfSymbolAtLocation(d,H).getNonNullableType().getCallSignatures().length!==0)return"method";if(ie.isUndefinedSymbol(d))return"var";if(ie.isArgumentsSymbol(d))return"local var";if(H.kind===103&&e.isExpression(H))return"parameter";var I=e.getCombinedLocalAndExportSymbolFlags(d);if(I&3)return e.isFirstDeclarationOfSymbolParameter(d)?"parameter":d.valueDeclaration&&e.isVarConst(d.valueDeclaration)?"const":e.forEach(d.declarations,e.isLet)?"let":ve(d)?"local var":"var";if(I&16)return ve(d)?"local function":"function";if(I&32768)return"getter";if(I&65536)return"setter";if(I&8192)return"method";if(I&16384)return"constructor";if(I&4){if(I&33554432&&d.checkFlags&6){var _e=e.forEach(ie.getRootSymbols(d),function(se){var w=se.getFlags();if(w&(98308|3))return"property";e.Debug.assert(!!(w&(8192|16)))});if(!_e){var re=ie.getTypeOfSymbolAtLocation(d,H);return re.getCallSignatures().length?"method":"property"}return _e}switch(H.parent&&H.parent.kind){case 266:case 264:case 265:return H.kind===75?"property":"JSX attribute";case 271:return"JSX attribute";default:return"property"}}return""}function Fe(ie){var d=ie&&ie.declarations&&ie.declarations.length>0?e.getNodeModifiers(ie.declarations[0]):"",H=ie&&ie.flags&16777216?"optional":"";return d&&H?d+","+H:d||H}F.getSymbolModifiers=Fe;function He(ie,d,H,Pe,I,_e,re){_e===void 0&&(_e=e.getMeaningFromLocation(I));var se=[],w,k,P=e.getCombinedLocalAndExportSymbolFlags(d),h=_e&1?Se(ie,d,I):"",Y=!1,ne=I.kind===103&&e.isInExpressionContext(I),$,J,fe,R;if(I.kind===103&&!ne)return{displayParts:[e.keywordPart(103)],documentation:[],symbolKind:"primitive type",tags:void 0};if(h!==""||P&32||P&2097152){(h==="getter"||h==="setter")&&(h="property");var K=void 0;if($=ne?ie.getTypeAtLocation(I):ie.getTypeOfSymbolAtLocation(d.exportSymbol||d,I),I.parent&&I.parent.kind===193){var z=I.parent.name;(z===I||z&&z.getFullWidth()===0)&&(I=I.parent)}var Ee=void 0;if(e.isCallOrNewExpression(I)?Ee=I:(e.isCallExpressionTarget(I)||e.isNewExpressionTarget(I)||I.parent&&e.isJsxOpeningLikeElement(I.parent)&&e.isFunctionLike(d.valueDeclaration))&&(Ee=I.parent),Ee){K=ie.getResolvedSignature(Ee);var B=Ee.kind===196||e.isCallExpression(Ee)&&Ee.expression.kind===101,V=B?$.getConstructSignatures():$.getCallSignatures();if(!e.contains(V,K.target)&&!e.contains(V,K)&&(K=V.length?V[0]:void 0),K){B&&P&32?(h="constructor",be($.symbol,h)):P&2097152?(h="alias",Ge(h),se.push(e.spacePart()),B&&(se.push(e.keywordPart(98)),se.push(e.spacePart())),We(d)):be(d,h);switch(h){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":se.push(e.punctuationPart(58)),se.push(e.spacePart()),!(e.getObjectFlags($)&16)&&$.symbol&&(e.addRange(se,e.symbolToDisplayParts(ie,$.symbol,Pe,void 0,4|1)),se.push(e.lineBreakPart())),B&&(se.push(e.keywordPart(98)),se.push(e.spacePart())),x(K,V,262144);break;default:x(K,V)}Y=!0}}else if(e.isNameOfFunctionDeclaration(I)&&!(P&98304)||I.kind===128&&I.parent.kind===161){var m=I.parent,y=d.declarations&&e.find(d.declarations,function(Oe){return Oe===(I.kind===128?m.parent:m)});if(y){var V=m.kind===161?$.getNonNullableType().getConstructSignatures():$.getNonNullableType().getCallSignatures();ie.isImplementationOfOverload(m)?K=V[0]:K=ie.getSignatureFromDeclaration(m),m.kind===161?(h="constructor",be($.symbol,h)):be(m.kind===164&&!($.symbol.flags&2048||$.symbol.flags&4096)?$.symbol:d,h),x(K,V),Y=!0}}}if(P&32&&!Y&&!ne&&(Re(),e.getDeclarationOfKind(d,213)?Ge("local class"):se.push(e.keywordPart(79)),se.push(e.spacePart()),We(d),j(d,H)),P&64&&_e&2&&(Z(),se.push(e.keywordPart(113)),se.push(e.spacePart()),We(d),j(d,H)),P&524288&&_e&2&&(Z(),se.push(e.keywordPart(144)),se.push(e.spacePart()),We(d),j(d,H),se.push(e.spacePart()),se.push(e.operatorPart(62)),se.push(e.spacePart()),e.addRange(se,e.typeToDisplayParts(ie,ie.getDeclaredTypeOfSymbol(d),Pe,8388608))),P&384&&(Z(),e.some(d.declarations,function(Oe){return e.isEnumDeclaration(Oe)&&e.isEnumConst(Oe)})&&(se.push(e.keywordPart(80)),se.push(e.spacePart())),se.push(e.keywordPart(87)),se.push(e.spacePart()),We(d)),P&1536&&!ne){Z();var L=e.getDeclarationOfKind(d,248),C=L&&L.name&&L.name.kind===75;se.push(e.keywordPart(C?135:134)),se.push(e.spacePart()),We(d)}if(P&262144&&_e&2)if(Z(),se.push(e.punctuationPart(20)),se.push(e.textPart("type parameter")),se.push(e.punctuationPart(21)),se.push(e.spacePart()),We(d),d.parent)Ae(),We(d.parent,Pe),j(d.parent,Pe);else{var _=e.getDeclarationOfKind(d,154);if(_===void 0)return e.Debug.fail();var L=_.parent;if(L)if(e.isFunctionLikeKind(L.kind)){Ae();var K=ie.getSignatureFromDeclaration(L);L.kind===165?(se.push(e.keywordPart(98)),se.push(e.spacePart())):L.kind!==164&&L.name&&We(L.symbol),e.addRange(se,e.signatureToDisplayParts(ie,K,H,32))}else L.kind===246&&(Ae(),se.push(e.keywordPart(144)),se.push(e.spacePart()),We(L.symbol),j(L.symbol,H))}if(P&8){h="enum member",be(d,"enum member");var L=d.declarations[0];if(L.kind===282){var b=ie.getConstantValue(L);b!==void 0&&(se.push(e.spacePart()),se.push(e.operatorPart(62)),se.push(e.spacePart()),se.push(e.displayPart(e.getTextOfConstantValue(b),typeof b=="number"?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(P&2097152){if(Z(),!Y){var D=ie.getAliasedSymbol(d);if(D!==d&&D.declarations&&D.declarations.length>0){var T=D.declarations[0],Q=e.getNameOfDeclaration(T);if(Q){var N=e.isModuleWithStringLiteralName(T)&&e.hasModifier(T,2),X=d.name!=="default"&&!N,pe=He(ie,D,e.getSourceFileOfNode(T),T,Q,_e,X?d:D);se.push.apply(se,pe.displayParts),se.push(e.lineBreakPart()),fe=pe.documentation,R=pe.tags}}}switch(d.declarations[0].kind){case 251:se.push(e.keywordPart(88)),se.push(e.spacePart()),se.push(e.keywordPart(135));break;case 258:se.push(e.keywordPart(88)),se.push(e.spacePart()),se.push(e.keywordPart(d.declarations[0].isExportEquals?62:83));break;case 261:se.push(e.keywordPart(88));break;default:se.push(e.keywordPart(95))}se.push(e.spacePart()),We(d),e.forEach(d.declarations,function(Oe){if(Oe.kind===252){var a=Oe;if(e.isExternalModuleImportEqualsDeclaration(a))se.push(e.spacePart()),se.push(e.operatorPart(62)),se.push(e.spacePart()),se.push(e.keywordPart(138)),se.push(e.punctuationPart(20)),se.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(a)),e.SymbolDisplayPartKind.stringLiteral)),se.push(e.punctuationPart(21));else{var en=ie.getSymbolAtLocation(a.moduleReference);en&&(se.push(e.spacePart()),se.push(e.operatorPart(62)),se.push(e.spacePart()),We(en,Pe))}return!0}})}if(!Y)if(h!==""){if($){if(ne?(Z(),se.push(e.keywordPart(103))):be(d,h),h==="property"||h==="JSX attribute"||P&3||h==="local var"||ne)if(se.push(e.punctuationPart(58)),se.push(e.spacePart()),$.symbol&&$.symbol.flags&262144){var S=e.mapToDisplayParts(function(Oe){var a=ie.typeParameterToDeclaration($,Pe);Ce().writeNode(4,a,e.getSourceFileOfNode(e.getParseTreeNode(Pe)),Oe)});e.addRange(se,S)}else e.addRange(se,e.typeToDisplayParts(ie,$,Pe));else if(P&16||P&8192||P&16384||P&131072||P&98304||h==="method"){var V=$.getNonNullableType().getCallSignatures();V.length&&x(V[0],V)}}}else h=qe(ie,d,I);if(!w&&(w=d.getDocumentationComment(ie),k=d.getJsDocTags(),w.length===0&&P&4&&(d.parent&&e.forEach(d.parent.declarations,function(Oe){return Oe.kind===288}))))for(var v=0,U=d.declarations;v<U.length;v++){var L=U[v];if(!L.parent||L.parent.kind!==208)continue;var de=ie.getSymbolAtLocation(L.parent.right);if(!de)continue;if(w=de.getDocumentationComment(ie),k=de.getJsDocTags(),w.length>0)break}return w.length===0&&fe&&(w=fe),k.length===0&&R&&(k=R),{displayParts:se,documentation:w,symbolKind:h,tags:k.length===0?void 0:k};function Ce(){return J||(J=e.createPrinter({removeComments:!0})),J}function Z(){se.length&&se.push(e.lineBreakPart()),Re()}function Re(){re&&(Ge("alias"),se.push(e.spacePart()))}function Ae(){se.push(e.spacePart()),se.push(e.keywordPart(96)),se.push(e.spacePart())}function We(Oe,a){re&&Oe===d&&(Oe=re);var en=e.symbolToDisplayParts(ie,Oe,a||H,void 0,1|2|4);e.addRange(se,en),d.flags&16777216&&se.push(e.punctuationPart(57))}function be(Oe,a){Z(),a&&(Ge(a),Oe&&!e.some(Oe.declarations,function(en){return e.isArrowFunction(en)||(e.isFunctionExpression(en)||e.isClassExpression(en))&&!en.name})&&(se.push(e.spacePart()),We(Oe)))}function Ge(Oe){switch(Oe){case"var":case"function":case"let":case"const":case"constructor":se.push(e.textOrKeywordPart(Oe));return;default:se.push(e.punctuationPart(20)),se.push(e.textOrKeywordPart(Oe)),se.push(e.punctuationPart(21));return}}function x(Oe,a,en){en===void 0&&(en=0),e.addRange(se,e.signatureToDisplayParts(ie,Oe,Pe,en|32)),a.length>1&&(se.push(e.spacePart()),se.push(e.punctuationPart(20)),se.push(e.operatorPart(39)),se.push(e.displayPart((a.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),se.push(e.spacePart()),se.push(e.textPart(a.length===2?"overload":"overloads")),se.push(e.punctuationPart(21)));var Pn=Oe.getDocumentationComment(ie);w=Pn.length===0?void 0:Pn,k=Oe.getJsDocTags()}function j(Oe,a){var en=e.mapToDisplayParts(function(Pn){var Xn=ie.symbolToTypeParameterDeclarations(Oe,a);Ce().writeList(53776,Xn,e.getSourceFileOfNode(e.getParseTreeNode(a)),Pn)});e.addRange(se,en)}}F.getSymbolDisplayPartsDocumentationAndSymbolKind=He;function ve(ie){return ie.parent?!1:e.forEach(ie.declarations,function(d){if(d.kind===200)return!0;if(d.kind!==241&&d.kind!==243)return!1;for(var H=d.parent;!e.isFunctionBlock(H);H=H.parent)if(H.kind===288||H.kind===249)return!1;return!0})}})(o=e.SymbolDisplay||(e.SymbolDisplay={}))})(ln||(ln={}));var ln;(function(e){function o(Fe,He){var ve=[],ie=He.compilerOptions?Se(He.compilerOptions,ve):{},d=e.getDefaultCompilerOptions();for(var H in d)e.hasProperty(d,H)&&ie[H]===void 0&&(ie[H]=d[H]);for(var Pe=0,I=e.transpileOptionValueCompilerOptions;Pe<I.length;Pe++){var _e=I[Pe];ie[_e.name]=_e.transpileOptionValue}ie.suppressOutputPathCheck=!0,ie.allowNonTsExtensions=!0;var re=He.fileName||(He.compilerOptions&&He.compilerOptions.jsx?"module.tsx":"module.ts"),se=e.createSourceFile(re,Fe,ie.target);He.moduleName&&(se.moduleName=He.moduleName),He.renamedDependencies&&(se.renamedDependencies=e.createMapFromTemplate(He.renamedDependencies));var w=e.getNewLineCharacter(ie),k,P,h={getSourceFile:function($){return $===e.normalizePath(re)?se:void 0},writeFile:function($,J){e.fileExtensionIs($,".map")?(e.Debug.assertEqual(P,void 0,"Unexpected multiple source map outputs, file:",$),P=J):(e.Debug.assertEqual(k,void 0,"Unexpected multiple outputs, file:",$),k=J)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function($){return $},getCurrentDirectory:function(){return""},getNewLine:function(){return w},fileExists:function($){return $===re},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},Y=e.createProgram([re],ie,h);return He.reportDiagnostics&&(e.addRange(ve,Y.getSyntacticDiagnostics(se)),e.addRange(ve,Y.getOptionsDiagnostics())),Y.emit(void 0,void 0,void 0,void 0,He.transformers),k===void 0?e.Debug.fail("Output generation failed"):{outputText:k,diagnostics:ve,sourceMapText:P}}e.transpileModule=o;function F(Fe,He,ve,ie,d){var H=o(Fe,{compilerOptions:He,fileName:ve,reportDiagnostics:!!ie,moduleName:d});return e.addRange(ie,H.diagnostics),H.outputText}e.transpile=F;var qe;function Se(Fe,He){qe=qe||e.filter(e.optionDeclarations,function(Pe){return typeof Pe.type=="object"&&!e.forEachEntry(Pe.type,function(I){return typeof I!="number"})}),Fe=e.cloneCompilerOptions(Fe);for(var ve=function(I){if(!e.hasProperty(Fe,I.name))return"continue";var _e=Fe[I.name];e.isString(_e)?Fe[I.name]=e.parseCustomTypeOption(I,_e,He):e.forEachEntry(I.type,function(re){return re===_e})||He.push(e.createCompilerDiagnosticForInvalidCustomType(I))},ie=0,d=qe;ie<d.length;ie++){var H=d[ie];ve(H)}return Fe}e.fixupCompilerOptions=Se})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe;(function(Fe){Fe[Fe.FormatDocument=0]="FormatDocument",Fe[Fe.FormatSelection=1]="FormatSelection",Fe[Fe.FormatOnEnter=2]="FormatOnEnter",Fe[Fe.FormatOnSemicolon=3]="FormatOnSemicolon",Fe[Fe.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",Fe[Fe.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"})(qe=F.FormattingRequestKind||(F.FormattingRequestKind={}));var Se=function(){function Fe(He,ve,ie){this.sourceFile=He,this.formattingRequestKind=ve,this.options=ie}return Fe.prototype.updateContext=function(He,ve,ie,d,H){this.currentTokenSpan=e.Debug.assertDefined(He),this.currentTokenParent=e.Debug.assertDefined(ve),this.nextTokenSpan=e.Debug.assertDefined(ie),this.nextTokenParent=e.Debug.assertDefined(d),this.contextNode=e.Debug.assertDefined(H),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},Fe.prototype.ContextNodeAllOnSameLine=function(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},Fe.prototype.NextNodeAllOnSameLine=function(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},Fe.prototype.TokensAreOnSameLine=function(){if(this.tokensAreOnSameLine===void 0){var He=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,ve=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=He===ve}return this.tokensAreOnSameLine},Fe.prototype.ContextNodeBlockIsOnOneLine=function(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},Fe.prototype.NextNodeBlockIsOnOneLine=function(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},Fe.prototype.NodeIsOnOneLine=function(He){var ve=this.sourceFile.getLineAndCharacterOfPosition(He.getStart(this.sourceFile)).line,ie=this.sourceFile.getLineAndCharacterOfPosition(He.getEnd()).line;return ve===ie},Fe.prototype.BlockIsOnOneLine=function(He){var ve=e.findChildOfKind(He,18,this.sourceFile),ie=e.findChildOfKind(He,19,this.sourceFile);if(ve&&ie){var d=this.sourceFile.getLineAndCharacterOfPosition(ve.getEnd()).line,H=this.sourceFile.getLineAndCharacterOfPosition(ie.getStart(this.sourceFile)).line;return d===H}return!1},Fe}();F.FormattingContext=Se})(o=e.formatting||(e.formatting={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe=e.createScanner(99,!1,0),Se=e.createScanner(99,!1,1),Fe;(function(ve){ve[ve.Scan=0]="Scan",ve[ve.RescanGreaterThanToken=1]="RescanGreaterThanToken",ve[ve.RescanSlashToken=2]="RescanSlashToken",ve[ve.RescanTemplateToken=3]="RescanTemplateToken",ve[ve.RescanJsxIdentifier=4]="RescanJsxIdentifier",ve[ve.RescanJsxText=5]="RescanJsxText"})(Fe||(Fe={}));function He(ve,ie,d,H,Pe){var I=ie===1?Se:qe;I.setText(ve),I.setTextPos(d);var _e=!0,re,se,w,k,P,h=Pe({advance:Y,readTokenInfo:z,readEOFTokenRange:B,isOnToken:V,isOnEOF:m,getCurrentLeadingTrivia:function(){return re},lastTrailingTriviaWasNewLine:function(){return _e},skipToEndOf:L});return P=void 0,I.setText(void 0),h;function Y(){P=void 0;var C=I.getStartPos()!==d;C?_e=!!se&&e.last(se).kind===4:I.scan(),re=void 0,se=void 0;for(var _=I.getStartPos();_<H;){var b=I.getToken();if(!e.isTrivia(b))break;I.scan();var D={pos:_,end:I.getStartPos(),kind:b};_=I.getStartPos(),re=e.append(re,D)}w=I.getStartPos()}function ne(C){switch(C.kind){case 33:case 70:case 71:case 49:case 48:return!0}return!1}function $(C){if(C.parent)switch(C.parent.kind){case 271:case 266:case 267:case 265:return e.isKeyword(C.kind)||C.kind===75}return!1}function J(C){return C.kind===11}function fe(C){return C.kind===13}function R(C){return C.kind===16||C.kind===17}function K(C){return C===43||C===67}function z(C){e.Debug.assert(V());var _=ne(C)?1:fe(C)?2:R(C)?3:$(C)?4:J(C)?5:0;if(P&&_===k)return y(P,C);I.getStartPos()!==w&&(e.Debug.assert(P!==void 0),I.setTextPos(w),I.scan());var b=Ee(C,_),D=F.createTextRangeWithKind(I.getStartPos(),I.getTextPos(),b);for(se&&(se=void 0);I.getStartPos()<H&&!(b=I.scan(),!e.isTrivia(b));){var T=F.createTextRangeWithKind(I.getStartPos(),I.getTextPos(),b);if(se||(se=[]),se.push(T),b===4){I.scan();break}}return P={leadingTrivia:re,trailingTrivia:se,token:D},y(P,C)}function Ee(C,_){var b=I.getToken();k=0;switch(_){case 1:if(b===31){k=1;var D=I.reScanGreaterToken();return e.Debug.assert(C.kind===D),D}break;case 2:if(K(b)){k=2;var D=I.reScanSlashToken();return e.Debug.assert(C.kind===D),D}break;case 3:if(b===19)return k=3,I.reScanTemplateToken();break;case 4:return k=4,I.scanJsxIdentifier();case 5:return k=5,I.reScanJsxToken();case 0:break;default:e.Debug.assertNever(_)}return b}function B(){return e.Debug.assert(m()),F.createTextRangeWithKind(I.getStartPos(),I.getTextPos(),1)}function V(){var C=P?P.token.kind:I.getToken(),_=P?P.token.pos:I.getStartPos();return _<H&&C!==1&&!e.isTrivia(C)}function m(){var C=P?P.token.kind:I.getToken();return C===1}function y(C,_){return e.isToken(_)&&C.token.kind!==_.kind&&(C.token.kind=_.kind),C}function L(C){I.setTextPos(C.end),w=I.getStartPos(),k=void 0,P=void 0,_e=!1,re=void 0,se=void 0}}F.getFormattingScanner=He})(o=e.formatting||(e.formatting={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){F.anyContext=e.emptyArray;var qe;(function(Fe){Fe[Fe.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",Fe[Fe.StopProcessingTokenActions=2]="StopProcessingTokenActions",Fe[Fe.InsertSpace=4]="InsertSpace",Fe[Fe.InsertNewLine=8]="InsertNewLine",Fe[Fe.DeleteSpace=16]="DeleteSpace",Fe[Fe.DeleteToken=32]="DeleteToken",Fe[Fe.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",Fe[Fe.StopAction=3]="StopAction",Fe[Fe.ModifySpaceAction=28]="ModifySpaceAction",Fe[Fe.ModifyTokenAction=96]="ModifyTokenAction"})(qe=F.RuleAction||(F.RuleAction={}));var Se;(function(Fe){Fe[Fe.None=0]="None",Fe[Fe.CanDeleteNewLines=1]="CanDeleteNewLines"})(Se=F.RuleFlags||(F.RuleFlags={}))})(o=e.formatting||(e.formatting={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){function qe(){for(var Ue=[],cn=0;cn<=151;cn++)cn!==1&&Ue.push(cn);function $e(){for(var mn=[],un=0;un<arguments.length;un++)mn[un]=arguments[un];return{tokens:Ue.filter(function(Mn){return!mn.some(function(tt){return tt===Mn})}),isSpecific:!1}}var sn={tokens:Ue,isSpecific:!1},he=Fe(Or(Ue,[3])),ke=Fe(Or(Ue,[1])),G=ve(76,151),c=ve(29,74),O=[96,97,151,122,132],ee=[45,46,54,53],Te=[8,9,75,20,22,18,103,98],Ne=[75,20,103,98],ze=[75,21,23,98],bn=[75,20,103,98],Sn=[75,21,23,98],Kn=[2,3],Xe=Or([75],e.typeKeywords),pn=he,le=Fe([75,3,79,88,95]),oe=Fe([21,3,85,106,91,86]),kn=[Se("IgnoreBeforeComment",sn,Kn,F.anyContext,1),Se("IgnoreAfterLineComment",2,sn,F.anyContext,1),Se("NotSpaceBeforeColon",sn,58,[v,k,P],16),Se("SpaceAfterColon",58,sn,[v,k],4),Se("NoSpaceBeforeQuestionMark",sn,57,[v,k],16),Se("SpaceAfterQuestionMarkInConditionalOperator",57,sn,[v,Y],4),Se("NoSpaceAfterQuestionMark",57,sn,[v],16),Se("NoSpaceBeforeDot",sn,[24,28],[v],16),Se("NoSpaceAfterDot",[24,28],sn,[v],16),Se("NoSpaceBetweenImportParenInImportType",95,20,[v,S],16),Se("NoSpaceAfterUnaryPrefixOperator",ee,Te,[v,k],16),Se("NoSpaceAfterUnaryPreincrementOperator",45,Ne,[v],16),Se("NoSpaceAfterUnaryPredecrementOperator",46,bn,[v],16),Se("NoSpaceBeforeUnaryPostincrementOperator",ze,45,[v],16),Se("NoSpaceBeforeUnaryPostdecrementOperator",Sn,46,[v],16),Se("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[v,w],4),Se("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[v,w],4),Se("SpaceAfterAddWhenFollowedByPreincrement",39,45,[v,w],4),Se("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[v,w],4),Se("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[v,w],4),Se("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[v,w],4),Se("NoSpaceAfterCloseBrace",19,[27,26],[v],16),Se("NewLineBeforeCloseBraceInBlockContext",he,19,[fe],8),Se("SpaceAfterCloseBrace",19,$e(21),[v,C],4),Se("SpaceBetweenCloseBraceAndElse",19,86,[v],4),Se("SpaceBetweenCloseBraceAndWhile",19,110,[v],4),Se("NoSpaceBetweenEmptyBraceBrackets",18,19,[v,b],16),Se("SpaceAfterConditionalClosingParen",21,22,[_],4),Se("NoSpaceBetweenFunctionKeywordAndStar",93,41,[m],16),Se("SpaceAfterStarInGeneratorDeclaration",41,75,[m],4),Se("SpaceAfterFunctionInFuncDecl",93,sn,[B],4),Se("NewLineAfterOpenBraceInBlockContext",18,sn,[fe],8),Se("SpaceAfterGetSetInMember",[130,141],75,[B],4),Se("NoSpaceBetweenYieldKeywordAndStar",120,41,[v,ce],16),Se("SpaceBetweenYieldOrYieldStarAndOperand",[120,41],sn,[v,ce],4),Se("NoSpaceBetweenReturnAndSemicolon",100,26,[v],16),Se("SpaceAfterCertainKeywords",[108,104,98,84,100,107,126],sn,[v],4),Se("SpaceAfterLetConstInVariableDeclaration",[114,80],sn,[v,Ge],4),Se("NoSpaceBeforeOpenParenInFuncCall",sn,20,[v,Q,N],16),Se("SpaceBeforeBinaryKeywordOperator",sn,O,[v,w],4),Se("SpaceAfterBinaryKeywordOperator",O,sn,[v,w],4),Se("SpaceAfterVoidOperator",109,sn,[v,ae],4),Se("SpaceBetweenAsyncAndOpenParen",125,20,[pe,v],4),Se("SpaceBetweenAsyncAndFunctionKeyword",125,93,[v],4),Se("NoSpaceBetweenTagAndTemplateString",[75,21],[14,15],[v],16),Se("SpaceBeforeJsxAttribute",sn,75,[Ce,v],4),Se("SpaceBeforeSlashInJsxOpeningElement",sn,43,[Re,v],4),Se("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[Re,v],16),Se("NoSpaceBeforeEqualInJsxAttribute",sn,62,[Z,v],16),Se("NoSpaceAfterEqualInJsxAttribute",62,sn,[Z,v],16),Se("NoSpaceAfterModuleImport",[134,138],20,[v],16),Se("SpaceAfterCertainTypeScriptKeywords",[121,79,129,83,87,88,89,130,112,95,113,134,135,116,118,117,137,141,119,144,148,133,131],sn,[v],4),Se("SpaceBeforeCertainTypeScriptKeywords",sn,[89,112,148],[v],4),Se("SpaceAfterModuleName",10,18,[j],4),Se("SpaceBeforeArrow",sn,38,[v],4),Se("SpaceAfterArrow",38,sn,[v],4),Se("NoSpaceAfterEllipsis",25,75,[v],16),Se("NoSpaceAfterOptionalParameters",57,[21,27],[v,k],16),Se("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[v,Oe],16),Se("NoSpaceBeforeOpenAngularBracket",Xe,29,[v,Pn],16),Se("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[v,Pn],16),Se("NoSpaceAfterOpenAngularBracket",29,sn,[v,Pn],16),Se("NoSpaceBeforeCloseAngularBracket",sn,31,[v,Pn],16),Se("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[v,Pn,V],16),Se("SpaceBeforeAt",[21,75],59,[v],4),Se("NoSpaceAfterAt",59,sn,[v],16),Se("SpaceAfterDecorator",sn,[121,75,88,83,79,119,118,116,117,130,141,22,41],[We],4),Se("NoSpaceBeforeNonNullAssertionOperator",sn,53,[v,Le],16),Se("NoSpaceAfterNewKeywordOnConstructorSignature",98,20,[v,a],16),Se("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[v],4)],yn=[Se("SpaceAfterConstructor",128,20,[d("insertSpaceAfterConstructor"),v],4),Se("NoSpaceAfterConstructor",128,20,[Pe("insertSpaceAfterConstructor"),v],16),Se("SpaceAfterComma",27,sn,[d("insertSpaceAfterCommaDelimiter"),v,U,X],4),Se("NoSpaceAfterComma",27,sn,[Pe("insertSpaceAfterCommaDelimiter"),v,U],16),Se("SpaceAfterAnonymousFunctionKeyword",[93,41],20,[d("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),B],4),Se("NoSpaceAfterAnonymousFunctionKeyword",[93,41],20,[Pe("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),B],16),Se("SpaceAfterKeywordInControl",G,20,[d("insertSpaceAfterKeywordsInControlFlowStatements"),_],4),Se("NoSpaceAfterKeywordInControl",G,20,[Pe("insertSpaceAfterKeywordsInControlFlowStatements"),_],16),Se("SpaceAfterOpenParen",20,sn,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),v],4),Se("SpaceBeforeCloseParen",sn,21,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),v],4),Se("SpaceBetweenOpenParens",20,20,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),v],4),Se("NoSpaceBetweenParens",20,21,[v],16),Se("NoSpaceAfterOpenParen",20,sn,[Pe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),v],16),Se("NoSpaceBeforeCloseParen",sn,21,[Pe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),v],16),Se("SpaceAfterOpenBracket",22,sn,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),v],4),Se("SpaceBeforeCloseBracket",sn,23,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),v],4),Se("NoSpaceBetweenBrackets",22,23,[v],16),Se("NoSpaceAfterOpenBracket",22,sn,[Pe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),v],16),Se("NoSpaceBeforeCloseBracket",sn,23,[Pe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),v],16),Se("SpaceAfterOpenBrace",18,sn,[_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),$],4),Se("SpaceBeforeCloseBrace",sn,19,[_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),$],4),Se("NoSpaceBetweenEmptyBraceBrackets",18,19,[v,b],16),Se("NoSpaceAfterOpenBrace",18,sn,[H("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),v],16),Se("NoSpaceBeforeCloseBrace",sn,19,[H("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),v],16),Se("SpaceAfterTemplateHeadAndMiddle",[15,16],sn,[d("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),v],4),Se("SpaceBeforeTemplateMiddleAndTail",sn,[16,17],[d("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),v],4),Se("NoSpaceAfterTemplateHeadAndMiddle",[15,16],sn,[Pe("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),v],16),Se("NoSpaceBeforeTemplateMiddleAndTail",sn,[16,17],[Pe("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),v],16),Se("SpaceAfterOpenBraceInJsxExpression",18,sn,[d("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),v,de],4),Se("SpaceBeforeCloseBraceInJsxExpression",sn,19,[d("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),v,de],4),Se("NoSpaceAfterOpenBraceInJsxExpression",18,sn,[Pe("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),v,de],16),Se("NoSpaceBeforeCloseBraceInJsxExpression",sn,19,[Pe("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),v,de],16),Se("SpaceAfterSemicolonInFor",26,sn,[d("insertSpaceAfterSemicolonInForStatements"),v,re],4),Se("NoSpaceAfterSemicolonInFor",26,sn,[Pe("insertSpaceAfterSemicolonInForStatements"),v,re],16),Se("SpaceBeforeBinaryOperator",sn,c,[d("insertSpaceBeforeAndAfterBinaryOperators"),v,w],4),Se("SpaceAfterBinaryOperator",c,sn,[d("insertSpaceBeforeAndAfterBinaryOperators"),v,w],4),Se("NoSpaceBeforeBinaryOperator",sn,c,[Pe("insertSpaceBeforeAndAfterBinaryOperators"),v,w],16),Se("NoSpaceAfterBinaryOperator",c,sn,[Pe("insertSpaceBeforeAndAfterBinaryOperators"),v,w],16),Se("SpaceBeforeOpenParenInFuncDecl",sn,20,[d("insertSpaceBeforeFunctionParenthesis"),v,B],4),Se("NoSpaceBeforeOpenParenInFuncDecl",sn,20,[Pe("insertSpaceBeforeFunctionParenthesis"),v,B],16),Se("NewLineBeforeOpenBraceInControl",oe,18,[d("placeOpenBraceOnNewLineForControlBlocks"),_,J],8,1),Se("NewLineBeforeOpenBraceInFunction",pn,18,[d("placeOpenBraceOnNewLineForFunctions"),B,J],8,1),Se("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",le,18,[d("placeOpenBraceOnNewLineForFunctions"),y,J],8,1),Se("SpaceAfterTypeAssertion",31,sn,[d("insertSpaceAfterTypeAssertion"),v,Xn],4),Se("NoSpaceAfterTypeAssertion",31,sn,[Pe("insertSpaceAfterTypeAssertion"),v,Xn],16),Se("SpaceBeforeTypeAnnotation",sn,58,[d("insertSpaceBeforeTypeAnnotation"),v,h],4),Se("NoSpaceBeforeTypeAnnotation",sn,58,[Pe("insertSpaceBeforeTypeAnnotation"),v,h],16),Se("NoOptionalSemicolon",26,ke,[ie("semicolons",e.SemicolonPreference.Remove),Je],32),Se("OptionalSemicolon",sn,ke,[ie("semicolons",e.SemicolonPreference.Insert),Ze],64)],ye=[Se("NoSpaceBeforeSemicolon",sn,26,[v],16),Se("SpaceBeforeOpenBraceInControl",oe,18,[I("placeOpenBraceOnNewLineForControlBlocks"),_,x,ne],4,1),Se("SpaceBeforeOpenBraceInFunction",pn,18,[I("placeOpenBraceOnNewLineForFunctions"),B,z,x,ne],4,1),Se("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",le,18,[I("placeOpenBraceOnNewLineForFunctions"),y,x,ne],4,1),Se("NoSpaceBeforeComma",sn,27,[v],16),Se("NoSpaceBeforeOpenBracket",$e(125,77),22,[v],16),Se("NoSpaceAfterCloseBracket",23,sn,[v,Ae],16),Se("SpaceAfterSemicolon",26,sn,[v],4),Se("SpaceBetweenForAndAwaitKeyword",92,126,[v],4),Se("SpaceBetweenStatements",[21,85,86,77],sn,[v,U,se],4),Se("SpaceAfterTryFinally",[106,91],18,[v],4)];return Or(kn,yn,ye)}F.getAllRules=qe;function Se(Ue,cn,$e,sn,he,ke){return ke===void 0&&(ke=0),{leftTokenRange:He(cn),rightTokenRange:He($e),rule:{debugName:Ue,context:sn,action:he,flags:ke}}}function Fe(Ue){return{tokens:Ue,isSpecific:!0}}function He(Ue){return typeof Ue=="number"?Fe([Ue]):e.isArray(Ue)?Fe(Ue):Ue}function ve(Ue,cn,$e){$e===void 0&&($e=[]);for(var sn=[],he=Ue;he<=cn;he++)e.contains($e,he)||sn.push(he);return Fe(sn)}function ie(Ue,cn){return function($e){return $e.options&&$e.options[Ue]===cn}}function d(Ue){return function(cn){return cn.options&&cn.options.hasOwnProperty(Ue)&&!!cn.options[Ue]}}function H(Ue){return function(cn){return cn.options&&cn.options.hasOwnProperty(Ue)&&!cn.options[Ue]}}function Pe(Ue){return function(cn){return!cn.options||!cn.options.hasOwnProperty(Ue)||!cn.options[Ue]}}function I(Ue){return function(cn){return!cn.options||!cn.options.hasOwnProperty(Ue)||!cn.options[Ue]||cn.TokensAreOnSameLine()}}function _e(Ue){return function(cn){return!cn.options||!cn.options.hasOwnProperty(Ue)||!!cn.options[Ue]}}function re(Ue){return Ue.contextNode.kind===229}function se(Ue){return!re(Ue)}function w(Ue){switch(Ue.contextNode.kind){case 208:case 209:case 179:case 216:case 261:case 257:case 167:case 177:case 178:return!0;case 190:case 246:case 252:case 241:case 155:case 282:case 158:case 157:return Ue.currentTokenSpan.kind===62||Ue.nextTokenSpan.kind===62;case 230:case 154:return Ue.currentTokenSpan.kind===96||Ue.nextTokenSpan.kind===96||Ue.currentTokenSpan.kind===62||Ue.nextTokenSpan.kind===62;case 231:return Ue.currentTokenSpan.kind===151||Ue.nextTokenSpan.kind===151}return!1}function k(Ue){return!w(Ue)}function P(Ue){return!h(Ue)}function h(Ue){var cn=Ue.contextNode.kind;return cn===158||cn===157||cn===155||cn===241||e.isFunctionLikeKind(cn)}function Y(Ue){return Ue.contextNode.kind===209||Ue.contextNode.kind===179}function ne(Ue){return Ue.TokensAreOnSameLine()||z(Ue)}function $(Ue){return Ue.contextNode.kind===188||Ue.contextNode.kind===185||R(Ue)}function J(Ue){return z(Ue)&&!(Ue.NextNodeAllOnSameLine()||Ue.NextNodeBlockIsOnOneLine())}function fe(Ue){return K(Ue)&&!(Ue.ContextNodeAllOnSameLine()||Ue.ContextNodeBlockIsOnOneLine())}function R(Ue){return K(Ue)&&(Ue.ContextNodeAllOnSameLine()||Ue.ContextNodeBlockIsOnOneLine())}function K(Ue){return Ee(Ue.contextNode)}function z(Ue){return Ee(Ue.nextTokenParent)}function Ee(Ue){if(L(Ue))return!0;switch(Ue.kind){case 222:case 250:case 192:case 249:return!0}return!1}function B(Ue){switch(Ue.contextNode.kind){case 243:case 160:case 159:case 162:case 163:case 164:case 200:case 161:case 201:case 245:return!0}return!1}function V(Ue){return!B(Ue)}function m(Ue){return Ue.contextNode.kind===243||Ue.contextNode.kind===200}function y(Ue){return L(Ue.contextNode)}function L(Ue){switch(Ue.kind){case 244:case 213:case 245:case 247:case 172:case 248:case 259:case 260:case 253:case 256:return!0}return!1}function C(Ue){switch(Ue.currentTokenParent.kind){case 244:case 248:case 247:case 278:case 249:case 236:return!0;case 222:{var cn=Ue.currentTokenParent.parent;if(!cn||cn.kind!==201&&cn.kind!==200)return!0}}return!1}function _(Ue){switch(Ue.contextNode.kind){case 226:case 236:case 229:case 230:case 231:case 228:case 239:case 227:case 235:case 278:return!0;default:return!1}}function b(Ue){return Ue.contextNode.kind===192}function D(Ue){return Ue.contextNode.kind===195}function T(Ue){return Ue.contextNode.kind===196}function Q(Ue){return D(Ue)||T(Ue)}function N(Ue){return Ue.currentTokenSpan.kind!==27}function X(Ue){return Ue.nextTokenSpan.kind!==23}function pe(Ue){return Ue.contextNode.kind===201}function S(Ue){return Ue.contextNode.kind===187}function v(Ue){return Ue.TokensAreOnSameLine()&&Ue.contextNode.kind!==11}function U(Ue){return Ue.contextNode.kind!==264&&Ue.contextNode.kind!==268}function de(Ue){return Ue.contextNode.kind===274||Ue.contextNode.kind===273}function Ce(Ue){return Ue.nextTokenParent.kind===271}function Z(Ue){return Ue.contextNode.kind===271}function Re(Ue){return Ue.contextNode.kind===265}function Ae(Ue){return!B(Ue)&&!z(Ue)}function We(Ue){return Ue.TokensAreOnSameLine()&&!!Ue.contextNode.decorators&&be(Ue.currentTokenParent)&&!be(Ue.nextTokenParent)}function be(Ue){for(;e.isExpressionNode(Ue);)Ue=Ue.parent;return Ue.kind===156}function Ge(Ue){return Ue.currentTokenParent.kind===242&&Ue.currentTokenParent.getStart(Ue.sourceFile)===Ue.currentTokenSpan.pos}function x(Ue){return Ue.formattingRequestKind!==2}function j(Ue){return Ue.contextNode.kind===248}function Oe(Ue){return Ue.contextNode.kind===172}function a(Ue){return Ue.contextNode.kind===165}function en(Ue,cn){if(Ue.kind!==29&&Ue.kind!==31)return!1;switch(cn.kind){case 168:case 198:case 246:case 244:case 213:case 245:case 243:case 200:case 201:case 160:case 159:case 164:case 165:case 195:case 196:case 215:return!0;default:return!1}}function Pn(Ue){return en(Ue.currentTokenSpan,Ue.currentTokenParent)||en(Ue.nextTokenSpan,Ue.nextTokenParent)}function Xn(Ue){return Ue.contextNode.kind===198}function ae(Ue){return Ue.currentTokenSpan.kind===109&&Ue.currentTokenParent.kind===204}function ce(Ue){return Ue.contextNode.kind===211&&Ue.contextNode.expression!==void 0}function Le(Ue){return Ue.contextNode.kind===217}function Je(Ue){var cn=Ue.nextTokenSpan.kind,$e=Ue.nextTokenSpan.pos;if(e.isTrivia(cn)){var sn=Ue.nextTokenParent===Ue.currentTokenParent?e.findNextToken(Ue.currentTokenParent,e.findAncestor(Ue.currentTokenParent,function(G){return!G.parent}),Ue.sourceFile):Ue.nextTokenParent.getFirstToken(Ue.sourceFile);if(!sn)return!0;cn=sn.kind,$e=sn.getStart(Ue.sourceFile)}var he=Ue.sourceFile.getLineAndCharacterOfPosition(Ue.currentTokenSpan.pos).line,ke=Ue.sourceFile.getLineAndCharacterOfPosition($e).line;return he===ke?cn===19||cn===1:cn===221||cn===26?!1:Ue.contextNode.kind===245||Ue.contextNode.kind===246?!e.isPropertySignature(Ue.currentTokenParent)||!!Ue.currentTokenParent.type||cn!==20:e.isPropertyDeclaration(Ue.currentTokenParent)?!Ue.currentTokenParent.initializer:Ue.currentTokenParent.kind!==229&&Ue.currentTokenParent.kind!==223&&Ue.currentTokenParent.kind!==221&&cn!==22&&cn!==20&&cn!==39&&cn!==40&&cn!==43&&cn!==13&&cn!==27&&cn!==210&&cn!==15&&cn!==14&&cn!==24}function Ze(Ue){var cn=e.findAncestor(Ue.currentTokenParent,function($e){return $e.end!==Ue.currentTokenSpan.end?"quit":e.syntaxMayBeASICandidate($e.kind)});return!!cn&&e.isASICandidate(cn,Ue.sourceFile)}})(o=e.formatting||(e.formatting={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){function qe(k){return{options:k,getRules:Fe()}}F.getFormatContext=qe;var Se;function Fe(){return Se===void 0&&(Se=ve(F.getAllRules())),Se}function He(k){var P=0;return k&1&&(P|=28),k&2&&(P|=96),k&28&&(P|=28),k&96&&(P|=96),P}function ve(k){var P=ie(k);return function(h){var Y=P[d(h.currentTokenSpan.kind,h.nextTokenSpan.kind)];if(Y){for(var ne=[],$=0,J=0,fe=Y;J<fe.length;J++){var R=fe[J],K=~He($);R.action&K&&e.every(R.context,function(z){return z(h)})&&(ne.push(R),$|=R.action)}if(ne.length)return ne}}}function ie(k){for(var P=new Array(I*I),h=new Array(P.length),Y=0,ne=k;Y<ne.length;Y++)for(var $=ne[Y],J=$.leftTokenRange.isSpecific&&$.rightTokenRange.isSpecific,fe=0,R=$.leftTokenRange.tokens;fe<R.length;fe++)for(var K=R[fe],z=0,Ee=$.rightTokenRange.tokens;z<Ee.length;z++){var B=Ee[z],V=d(K,B),m=P[V];m===void 0&&(m=P[V]=[]),re(m,$.rule,J,h,V)}return P}function d(k,P){return e.Debug.assert(k<=151&&P<=151,"Must compute formatting context from tokens"),k*I+P}var H=5,Pe=31,I=151+1,_e;(function(k){k[k.StopRulesSpecific=0]="StopRulesSpecific",k[k.StopRulesAny=H*1]="StopRulesAny",k[k.ContextRulesSpecific=H*2]="ContextRulesSpecific",k[k.ContextRulesAny=H*3]="ContextRulesAny",k[k.NoContextRulesSpecific=H*4]="NoContextRulesSpecific",k[k.NoContextRulesAny=H*5]="NoContextRulesAny"})(_e||(_e={}));function re(k,P,h,Y,ne){var $=P.action&3?h?_e.StopRulesSpecific:_e.StopRulesAny:P.context!==F.anyContext?h?_e.ContextRulesSpecific:_e.ContextRulesAny:h?_e.NoContextRulesSpecific:_e.NoContextRulesAny,J=Y[ne]||0;k.splice(se(J,$),0,P),Y[ne]=w(J,$)}function se(k,P){for(var h=0,Y=0;Y<=P;Y+=H)h+=k&Pe,k>>=H;return h}function w(k,P){var h=(k>>P&Pe)+1;return e.Debug.assert((h&Pe)===h,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),k&~(Pe<<P)|h<<P}})(o=e.formatting||(e.formatting={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){function qe(V,m,y){var L={pos:V,end:m,kind:y};return e.Debug.isDebugging&&Object.defineProperty(L,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(y)}}),L}F.createTextRangeWithKind=qe;var Se;(function(V){V[V.Unknown=-1]="Unknown"})(Se||(Se={}));function Fe(V,m,y){var L=m.getLineAndCharacterOfPosition(V).line;if(L===0)return[];for(var C=e.getEndLinePosition(L,m);e.isWhiteSpaceSingleLine(m.text.charCodeAt(C));)C--;e.isLineBreak(m.text.charCodeAt(C))&&C--;var _={pos:e.getStartPositionOfLine(L-1,m),end:C+1};return Y(_,m,y,2)}F.formatOnEnter=Fe;function He(V,m,y){var L=Pe(V,26,m);return h(I(L),m,y,3)}F.formatOnSemicolon=He;function ve(V,m,y){var L=Pe(V,18,m);if(!L)return[];var C=L.parent,_=I(C),b={pos:e.getLineStartPositionForPosition(_.getStart(m),m),end:V};return Y(b,m,y,4)}F.formatOnOpeningCurly=ve;function ie(V,m,y){var L=Pe(V,19,m);return h(I(L),m,y,5)}F.formatOnClosingCurly=ie;function d(V,m){var y={pos:0,end:V.text.length};return Y(y,V,m,0)}F.formatDocument=d;function H(V,m,y,L){var C={pos:e.getLineStartPositionForPosition(V,y),end:m};return Y(C,y,L,1)}F.formatSelection=H;function Pe(V,m,y){var L=e.findPrecedingToken(V,y);return L&&L.kind===m&&V===L.getEnd()?L:void 0}function I(V){for(var m=V;m&&m.parent&&m.parent.end===V.end&&!_e(m.parent,m);)m=m.parent;return m}function _e(V,m){switch(V.kind){case 244:case 245:return e.rangeContainsRange(V.members,m);case 248:var y=V.body;return!!y&&y.kind===249&&e.rangeContainsRange(y.statements,m);case 288:case 222:case 249:return e.rangeContainsRange(V.statements,m);case 278:return e.rangeContainsRange(V.block.statements,m)}return!1}function re(V,m){return y(m);function y(L){var C=e.forEachChild(L,function(b){return e.startEndContainsRange(b.getStart(m),b.end,V)&&b});if(C){var _=y(C);if(_)return _}return L}}function se(V,m){if(!V.length)return C;var y=V.filter(function(_){return e.rangeOverlapsWithStartEnd(m,_.start,_.start+_.length)}).sort(function(_,b){return _.start-b.start});if(!y.length)return C;var L=0;return function(_){for(;;){if(L>=y.length)return!1;var b=y[L];if(_.end<=b.start)return!1;if(e.startEndOverlapsWithStartEnd(_.pos,_.end,b.start,b.start+b.length))return!0;L++}};function C(){return!1}}function w(V,m,y){var L=V.getStart(y);if(L===m.pos&&V.end===m.end)return L;var C=e.findPrecedingToken(m.pos,y);return C?C.end>=m.pos?V.pos:C.end:V.pos}function k(V,m,y){for(var L=-1,C;V;){var _=y.getLineAndCharacterOfPosition(V.getStart(y)).line;if(L!==-1&&_!==L)break;if(F.SmartIndenter.shouldIndentChildNode(m,V,C,y))return m.indentSize;L=_,C=V,V=V.parent}return 0}function P(V,m,y,L,C,_){var b={pos:0,end:m.text.length};return F.getFormattingScanner(m.text,y,b.pos,b.end,function(D){return ne(b,V,L,C,D,_,1,function(T){return!1},m)})}F.formatNodeGivenIndentation=P;function h(V,m,y,L){if(!V)return[];var C={pos:e.getLineStartPositionForPosition(V.getStart(m),m),end:V.end};return Y(C,m,y,L)}function Y(V,m,y,L){var C=re(V,m);return F.getFormattingScanner(m.text,m.languageVariant,w(C,V,m),V.end,function(_){return ne(V,C,F.SmartIndenter.getIndentationForNode(C,V,m,y.options),k(C,y.options,m),_,y,L,se(m.parseDiagnostics,V),m)})}function ne(V,m,y,L,C,_,b,D,T){var Q=_.options,N=_.getRules,X=new F.FormattingContext(T,b,Q),pe,S,v,U,de=-1,Ce=[];if(C.advance(),C.isOnToken()){var Z=T.getLineAndCharacterOfPosition(m.getStart(T)).line,Re=Z;m.decorators&&(Re=T.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(m,T)).line),j(m,m,Z,Re,y,L)}if(!C.isOnToken()){var Ae=C.getCurrentLeadingTrivia();Ae&&(Oe(Ae,y,!1,function(ke){return en(ke,T.getLineAndCharacterOfPosition(ke.pos),m,m,void 0)}),Ue())}return Ce;function We(ke,G,c,O,ee){if(e.rangeOverlapsWithStartEnd(O,ke,G)||e.rangeContainsStartEnd(O,ke,G)){if(ee!==-1)return ee}else{var Te=T.getLineAndCharacterOfPosition(ke).line,Ne=e.getLineStartPositionForPosition(ke,T),ze=F.SmartIndenter.findFirstNonWhitespaceColumn(Ne,ke,T,Q);if(Te!==c||ke===ze){var bn=F.SmartIndenter.getBaseIndentation(Q);return bn>ze?bn:ze}}return-1}function be(ke,G,c,O,ee,Te){var Ne=F.SmartIndenter.shouldIndentChildNode(Q,ke)?Q.indentSize:0;return Te===G?{indentation:G===U?de:ee.getIndentation(),delta:Math.min(Q.indentSize,ee.getDelta(ke)+Ne)}:c===-1?ke.kind===20&&G===U?{indentation:de,delta:ee.getDelta(ke)}:F.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(O,ke,G,T)?{indentation:ee.getIndentation(),delta:Ne}:F.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(O,ke,G,T)?{indentation:ee.getIndentation(),delta:Ne}:{indentation:ee.getIndentation()+ee.getDelta(ke),delta:Ne}:{indentation:c,delta:Ne}}function Ge(ke){if(ke.modifiers&&ke.modifiers.length)return ke.modifiers[0].kind;switch(ke.kind){case 244:return 79;case 245:return 113;case 243:return 93;case 247:return 247;case 162:return 130;case 163:return 141;case 160:if(ke.asteriskToken)return 41;case 158:case 155:var G=e.getNameOfDeclaration(ke);if(G)return G.kind}}function x(ke,G,c,O){return{getIndentationForComment:function(ze,bn,Sn){switch(ze){case 19:case 23:case 21:return c+Te(Sn)}return bn!==-1?bn:c},getIndentationForToken:function(ze,bn,Sn,Kn){return!Kn&&ee(ze,bn,Sn)?c+Te(Sn):c},getIndentation:function(){return c},getDelta:Te,recomputeIndentation:function(ze){ke.parent&&F.SmartIndenter.shouldIndentChildNode(Q,ke.parent,ke,T)&&(c+=ze?Q.indentSize:-Q.indentSize,O=F.SmartIndenter.shouldIndentChildNode(Q,ke)?Q.indentSize:0)}};function ee(Ne,ze,bn){switch(ze){case 18:case 19:case 21:case 86:case 110:case 59:return!1;case 43:case 31:switch(bn.kind){case 266:case 267:case 265:return!1}break;case 22:case 23:if(bn.kind!==185)return!1;break}return G!==Ne&&!(ke.decorators&&ze===Ge(ke))}function Te(Ne){return F.SmartIndenter.nodeWillIndentChild(Q,ke,Ne,T,!0)?O:0}}function j(ke,G,c,O,ee,Te){if(!e.rangeOverlapsWithStartEnd(V,ke.getStart(T),ke.getEnd()))return;var Ne=x(ke,c,ee,Te),ze=G;for(e.forEachChild(ke,function(le){Kn(le,-1,ke,Ne,c,O,!1)},function(le){Xe(le,ke,c,Ne)});C.isOnToken();){var bn=C.readTokenInfo(ke);if(bn.token.end>ke.end)break;pn(bn,ke,Ne,ke)}if(!ke.parent&&C.isOnEOF()){var Sn=C.readEOFTokenRange();Sn.end<=ke.end&&pe&&Pn(Sn,T.getLineAndCharacterOfPosition(Sn.pos).line,ke,pe,v,S,G,Ne)}function Kn(le,oe,kn,yn,ye,mn,un,Mn){var tt=le.getStart(T),Vn=T.getLineAndCharacterOfPosition(tt).line,ut=Vn;le.decorators&&(ut=T.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(le,T)).line);var dt=-1;if(un&&e.rangeContainsRange(V,kn)&&(dt=We(tt,le.end,ye,V,oe),dt!==-1&&(oe=dt)),!e.rangeOverlapsWithStartEnd(V,le.pos,le.end))return le.end<V.pos&&C.skipToEndOf(le),oe;if(le.getFullWidth()===0)return oe;for(;C.isOnToken();){var ot=C.readTokenInfo(ke);if(ot.token.end>tt)break;pn(ot,ke,yn,ke)}if(!C.isOnToken())return oe;if(e.isToken(le)&&le.kind!==11){var ot=C.readTokenInfo(le);return e.Debug.assert(ot.token.end===le.end,"Token end is child end"),pn(ot,ke,yn,le),oe}var ct=le.kind===156?Vn:mn,wt=be(le,Vn,dt,ke,yn,ct);if(j(le,ze,Vn,ut,wt.indentation,wt.delta),le.kind===11){var st={pos:le.getStart(),end:le.getEnd()};Le(st,wt.indentation,!0,!1)}return ze=ke,Mn&&kn.kind===191&&oe===-1&&(oe=wt.indentation),oe}function Xe(le,oe,kn,yn){e.Debug.assert(e.isNodeArray(le));var ye=fe(oe,le),mn=yn,un=kn;if(ye!==0)for(;C.isOnToken();){var Mn=C.readTokenInfo(oe);if(Mn.token.end>le.pos)break;if(Mn.token.kind===ye){un=T.getLineAndCharacterOfPosition(Mn.token.pos).line,pn(Mn,oe,yn,oe);var tt=void 0;if(de!==-1)tt=de;else{var Vn=e.getLineStartPositionForPosition(Mn.token.pos,T);tt=F.SmartIndenter.findFirstNonWhitespaceColumn(Vn,Mn.token.pos,T,Q)}mn=x(oe,kn,tt,Q.indentSize)}else pn(Mn,oe,yn,oe)}for(var ut=-1,dt=0;dt<le.length;dt++){var ot=le[dt];ut=Kn(ot,ut,ke,mn,un,un,!0,dt===0)}var ct=R(ye);if(ct!==0&&C.isOnToken()){var Mn=C.readTokenInfo(oe);Mn.token.kind===27&&e.isCallLikeExpression(oe)&&(C.advance(),Mn=C.isOnToken()?C.readTokenInfo(oe):void 0),Mn&&Mn.token.kind===ct&&e.rangeContainsRange(oe,Mn.token)&&pn(Mn,oe,mn,oe,!0)}}function pn(le,oe,kn,yn,ye){e.Debug.assert(e.rangeContainsRange(oe,le.token));var mn=C.lastTrailingTriviaWasNewLine(),un=!1;le.leadingTrivia&&a(le.leadingTrivia,oe,ze,kn);var Mn=0,tt=e.rangeContainsRange(V,le.token),Vn=T.getLineAndCharacterOfPosition(le.token.pos);if(tt){var ut=D(le.token),dt=pe;if(Mn=en(le.token,Vn,oe,ze,kn),!ut)if(Mn===0){var ot=dt&&T.getLineAndCharacterOfPosition(dt.end).line;un=mn&&Vn.line!==ot}else un=Mn===1}if(le.trailingTrivia&&a(le.trailingTrivia,oe,ze,kn),un){var ct=tt&&!D(le.token)?kn.getIndentationForToken(Vn.line,le.token.kind,yn,!!ye):-1,wt=!0;if(le.leadingTrivia){var st=kn.getIndentationForComment(le.token.kind,ct,yn);wt=Oe(le.leadingTrivia,st,wt,function(qn){return Xn(qn.pos,st,!1)})}ct!==-1&&wt&&(Xn(le.token.pos,ct,Mn===1),U=Vn.line,de=ct)}C.advance(),ze=oe}}function Oe(ke,G,c,O){for(var ee=0,Te=ke;ee<Te.length;ee++){var Ne=Te[ee],ze=e.rangeContainsRange(V,Ne);switch(Ne.kind){case 3:ze&&Le(Ne,G,!c),c=!1;break;case 2:c&&ze&&O(Ne),c=!1;break;case 4:c=!0;break}}return c}function a(ke,G,c,O){for(var ee=0,Te=ke;ee<Te.length;ee++){var Ne=Te[ee];if(e.isComment(Ne.kind)&&e.rangeContainsRange(V,Ne)){var ze=T.getLineAndCharacterOfPosition(Ne.pos);en(Ne,ze,G,c,O)}}}function en(ke,G,c,O,ee){var Te=D(ke),Ne=0;if(!Te)if(pe)Ne=Pn(ke,G.line,c,pe,v,S,O,ee);else{var ze=T.getLineAndCharacterOfPosition(V.pos);Je(ze.line,G.line)}return pe=ke,S=c,v=G.line,Ne}function Pn(ke,G,c,O,ee,Te,Ne,ze){X.updateContext(O,Te,ke,c,Ne);var bn=N(X),Sn=!1,Kn=0;return bn?e.forEachRight(bn,function(Xe){Kn=he(Xe,O,ee,ke,G);switch(Kn){case 2:c.getStart(T)===ke.pos&&ze.recomputeIndentation(!1);break;case 1:c.getStart(T)===ke.pos&&ze.recomputeIndentation(!0);break;default:e.Debug.assert(Kn===0)}Sn=!(Xe.action&16)&&Xe.flags!==1}):Sn=ke.kind!==1,G!==ee&&Sn&&Je(ee,G,O),Kn}function Xn(ke,G,c){var O=B(G,Q);if(c)$e(ke,0,O);else{var ee=T.getLineAndCharacterOfPosition(ke),Te=e.getStartPositionOfLine(ee.line,T);(G!==ae(Te,ee.character)||ce(O,Te))&&$e(Te,ee.character,O)}}function ae(ke,G){for(var c=0,O=0;O<G;O++)T.text.charCodeAt(ke+O)===9?c+=Q.tabSize-c%Q.tabSize:c++;return c}function ce(ke,G){return ke!==T.text.substr(G,ke.length)}function Le(ke,G,c,O){O===void 0&&(O=!0);var ee=T.getLineAndCharacterOfPosition(ke.pos).line,Te=T.getLineAndCharacterOfPosition(ke.end).line;if(ee===Te){c||Xn(ke.pos,G,!1);return}for(var Ne=[],ze=ke.pos,bn=ee;bn<Te;bn++){var Sn=e.getEndLinePosition(bn,T);Ne.push({pos:ze,end:Sn}),ze=e.getStartPositionOfLine(bn+1,T)}if(O&&Ne.push({pos:ze,end:ke.end}),Ne.length===0)return;var Kn=e.getStartPositionOfLine(ee,T),Xe=F.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(Kn,Ne[0].pos,T,Q);if(G===Xe.column)return;var pn=0;c&&(pn=1,ee++);for(var le=G-Xe.column,oe=pn;oe<Ne.length;oe++,ee++){var kn=e.getStartPositionOfLine(ee,T),yn=oe===0?Xe:F.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(Ne[oe].pos,Ne[oe].end,T,Q),ye=yn.column+le;if(ye>0){var mn=B(ye,Q);$e(kn,yn.character,mn)}else cn(kn,yn.character)}}function Je(ke,G,c){for(var O=ke;O<G;O++){var ee=e.getStartPositionOfLine(O,T),Te=e.getEndLinePosition(O,T);if(c&&(e.isComment(c.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(c.kind))&&c.pos<=Te&&c.end>Te)continue;var Ne=Ze(ee,Te);Ne!==-1&&(e.Debug.assert(Ne===ee||!e.isWhiteSpaceSingleLine(T.text.charCodeAt(Ne-1))),cn(Ne,Te+1-Ne))}}function Ze(ke,G){for(var c=G;c>=ke&&e.isWhiteSpaceSingleLine(T.text.charCodeAt(c));)c--;return c!==G?c+1:-1}function Ue(){var ke=pe?pe.end:V.pos,G=T.getLineAndCharacterOfPosition(ke).line,c=T.getLineAndCharacterOfPosition(V.end).line;Je(G,c+1,pe)}function cn(ke,G){G&&Ce.push(e.createTextChangeFromStartLength(ke,G,""))}function $e(ke,G,c){(G||c)&&Ce.push(e.createTextChangeFromStartLength(ke,G,c))}function sn(ke,G){G&&Ce.push(e.createTextChangeFromStartLength(ke,0,G))}function he(ke,G,c,O,ee){var Te=ee!==c;switch(ke.action){case 1:return 0;case 16:if(G.end!==O.pos)return cn(G.end,O.pos-G.end),Te?2:0;break;case 32:cn(G.pos,G.end-G.pos);break;case 8:if(ke.flags!==1&&c!==ee)return 0;var Ne=ee-c;if(Ne!==1)return $e(G.end,O.pos-G.end,Q.newLineCharacter),Te?0:1;break;case 4:if(ke.flags!==1&&c!==ee)return 0;var ze=O.pos-G.end;if(ze!==1||T.text.charCodeAt(G.end)!==32)return $e(G.end,O.pos-G.end," "),Te?2:0;break;case 64:sn(G.end,";")}return 0}}var $;(function(V){V[V.None=0]="None",V[V.LineAdded=1]="LineAdded",V[V.LineRemoved=2]="LineRemoved"})($||($={}));function J(V,m,y,L){L===void 0&&(L=e.getTokenAtPosition(V,m));var C=e.findAncestor(L,e.isJSDoc);C&&(L=C.parent);var _=L.getStart(V);if(_<=m&&m<L.getEnd())return;y=y===null?void 0:y===void 0?e.findPrecedingToken(m,V):y;var b=y&&e.getTrailingCommentRanges(V.text,y.end),D=e.getLeadingCommentRangesOfNode(L,V),T=e.concatenate(b,D);return T&&e.find(T,function(Q){return e.rangeContainsPositionExclusive(Q,m)||m===Q.end&&(Q.kind===2||m===V.getFullWidth())})}F.getRangeOfEnclosingComment=J;function fe(V,m){switch(V.kind){case 161:case 243:case 200:case 160:case 159:case 201:if(V.typeParameters===m)return 29;if(V.parameters===m)return 20;break;case 195:case 196:if(V.typeArguments===m)return 29;if(V.arguments===m)return 20;break;case 168:if(V.typeArguments===m)return 29;break;case 172:return 18}return 0}function R(V){switch(V){case 20:return 21;case 29:return 31;case 18:return 19}return 0}var K,z,Ee;function B(V,m){var y=!K||K.tabSize!==m.tabSize||K.indentSize!==m.indentSize;if(y&&(K={tabSize:m.tabSize,indentSize:m.indentSize},z=Ee=void 0),m.convertTabsToSpaces){var b=void 0,D=Math.floor(V/m.indentSize),T=V%m.indentSize;return Ee||(Ee=[]),Ee[D]===void 0?(b=e.repeatString(" ",m.indentSize*D),Ee[D]=b):b=Ee[D],T?b+e.repeatString(" ",T):b}else{var L=Math.floor(V/m.tabSize),C=V-L*m.tabSize,_=void 0;return z||(z=[]),z[L]===void 0?z[L]=_=e.repeatString(" ",L):_=z[L],C?_+e.repeatString(" ",C):_}}F.getIndentationString=B})(o=e.formatting||(e.formatting={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe;(function(Se){var Fe;(function(b){b[b.Unknown=-1]="Unknown"})(Fe||(Fe={}));function He(b,D,T,Q){if(Q===void 0&&(Q=!1),b>D.text.length)return Pe(T);if(T.indentStyle===e.IndentStyle.None)return 0;var N=e.findPrecedingToken(b,D,void 0,!0),X=F.getRangeOfEnclosingComment(D,b,N||null);if(X&&X.kind===3)return ve(D,b,T,X);if(!N)return Pe(T);var pe=e.isStringOrRegularExpressionOrTemplateLiteral(N.kind);if(pe&&N.getStart(D)<=b&&b<N.end)return 0;var S=D.getLineAndCharacterOfPosition(b).line;if(T.indentStyle===e.IndentStyle.Block)return ie(D,b,T);if(N.kind===27&&N.parent.kind!==208){var v=re(N,D,T);if(v!==-1)return v}var U=J(b,N.parent,D);return U&&!e.rangeContainsRange(U,N)?K(U,D,T)+T.indentSize:d(D,b,N,S,Q,T)}Se.getIndentation=He;function ve(b,D,T,Q){var N=e.getLineAndCharacterOfPosition(b,D).line-1,X=e.getLineAndCharacterOfPosition(b,Q.pos).line;if(e.Debug.assert(X>=0),N<=X)return m(e.getStartPositionOfLine(X,b),D,b,T);var pe=e.getStartPositionOfLine(N,b),S=V(pe,D,b,T),v=S.column,U=S.character;if(v===0)return v;var de=b.text.charCodeAt(pe+U);return de===42?v-1:v}function ie(b,D,T){for(var Q=D;Q>0;){var N=b.text.charCodeAt(Q);if(!e.isWhiteSpaceLike(N))break;Q--}var X=e.getLineStartPositionForPosition(Q,b);return m(X,Q,b,T)}function d(b,D,T,Q,N,X){for(var pe,S=T;S;){if(e.positionBelongsToNode(S,D,b)&&C(X,S,pe,b,!0)){var v=P(S,b),U=k(T,S,Q,b),de=U!==0?N&&U===2?X.indentSize:0:Q!==v.line?X.indentSize:0;return I(S,v,void 0,de,b,!0,X)}var Ce=z(S,b,X,!0);if(Ce!==-1)return Ce;pe=S,S=S.parent}return Pe(X)}function H(b,D,T,Q){var N=T.getLineAndCharacterOfPosition(b.getStart(T));return I(b,N,D,0,T,!1,Q)}Se.getIndentationForNode=H;function Pe(b){return b.baseIndentSize||0}Se.getBaseIndentation=Pe;function I(b,D,T,Q,N,X,pe){for(var S=b.parent;S;){var v=!0;if(T){var U=b.getStart(N);v=U<T.pos||U>T.end}var de=_e(S,b,N),Ce=de.line===D.line||Y(S,b,D.line,N);if(v){var Z=z(b,N,pe,!Ce);if(Z!==-1)return Z+Q;if(Z=se(b,S,D,Ce,N,pe),Z!==-1)return Z+Q}C(pe,S,b,N,X)&&!Ce&&(Q+=pe.indentSize);var Re=h(S,b,D.line,N);b=S,S=b.parent,D=Re?N.getLineAndCharacterOfPosition(b.getStart(N)):de}return Q+Pe(pe)}function _e(b,D,T){var Q=$(D,T),N=Q?Q.pos:b.getStart(T);return T.getLineAndCharacterOfPosition(N)}function re(b,D,T){var Q=e.findListItemInfo(b);return Q&&Q.listItemIndex>0?Ee(Q.list.getChildren(),Q.listItemIndex-1,D,T):-1}function se(b,D,T,Q,N,X){var pe=(e.isDeclaration(b)||e.isStatementButNotDeclaration(b))&&(D.kind===288||!Q);return pe?B(T,N,X):-1}var w;(function(b){b[b.Unknown=0]="Unknown",b[b.OpenBrace=1]="OpenBrace",b[b.CloseBrace=2]="CloseBrace"})(w||(w={}));function k(b,D,T,Q){var N=e.findNextToken(b,D,Q);if(!N)return 0;if(N.kind===18)return 1;if(N.kind===19){var X=P(N,Q).line;return T===X?2:0}return 0}function P(b,D){return D.getLineAndCharacterOfPosition(b.getStart(D))}function h(b,D,T,Q){if(!(e.isCallExpression(b)&&e.contains(b.arguments,D)))return!1;var N=b.expression.getEnd(),X=e.getLineAndCharacterOfPosition(Q,N).line;return X===T}Se.isArgumentAndStartLineOverlapsExpressionBeingCalled=h;function Y(b,D,T,Q){if(b.kind===226&&b.elseStatement===D){var N=e.findChildOfKind(b,86,Q);e.Debug.assert(N!==void 0);var X=P(N,Q).line;return X===T}return!1}Se.childStartsOnTheSameLineWithElseInIfStatement=Y;function ne(b,D,T,Q){if(e.isCallOrNewExpression(b)){if(!b.arguments)return!1;var N=e.find(b.arguments,function(v){return v.pos===D.pos});if(!N)return!1;var X=b.arguments.indexOf(N);if(X===0)return!1;var pe=b.arguments[X-1],S=e.getLineAndCharacterOfPosition(Q,pe.getEnd()).line;if(T===S)return!0}return!1}Se.argumentStartsOnSameLineAsPreviousArgument=ne;function $(b,D){return b.parent&&fe(b.getStart(D),b.getEnd(),b.parent,D)}Se.getContainingList=$;function J(b,D,T){return D&&fe(b,b,D,T)}function fe(b,D,T,Q){switch(T.kind){case 168:return N(T.typeArguments);case 192:return N(T.properties);case 191:return N(T.elements);case 172:return N(T.members);case 243:case 200:case 201:case 160:case 159:case 164:case 161:case 170:case 165:return N(T.typeParameters)||N(T.parameters);case 244:case 213:case 245:case 246:case 314:return N(T.typeParameters);case 196:case 195:return N(T.typeArguments)||N(T.arguments);case 242:return N(T.declarations);case 256:case 260:return N(T.elements);case 188:case 189:return N(T.elements)}function N(X){return X&&e.rangeContainsStartEnd(R(T,X,Q),b,D)?X:void 0}}function R(b,D,T){for(var Q=b.getChildren(T),N=1;N<Q.length-1;N++)if(Q[N].pos===D.pos&&Q[N].end===D.end)return{pos:Q[N-1].end,end:Q[N+1].getStart(T)};return D}function K(b,D,T){return b?B(D.getLineAndCharacterOfPosition(b.pos),D,T):-1}function z(b,D,T,Q){if(b.parent&&b.parent.kind===242)return-1;var N=$(b,D);if(N){var X=N.indexOf(b);if(X!==-1){var pe=Ee(N,X,D,T);if(pe!==-1)return pe}return K(N,D,T)+(Q?T.indentSize:0)}return-1}function Ee(b,D,T,Q){e.Debug.assert(D>=0&&D<b.length);for(var N=b[D],X=P(N,T),pe=D-1;pe>=0;pe--){if(b[pe].kind===27)continue;var S=T.getLineAndCharacterOfPosition(b[pe].end).line;if(S!==X.line)return B(X,T,Q);X=P(b[pe],T)}return-1}function B(b,D,T){var Q=D.getPositionOfLineAndCharacter(b.line,0);return m(Q,Q+b.character,D,T)}function V(b,D,T,Q){for(var N=0,X=0,pe=b;pe<D;pe++){var S=T.text.charCodeAt(pe);if(!e.isWhiteSpaceSingleLine(S))break;S===9?X+=Q.tabSize+X%Q.tabSize:X++,N++}return{column:X,character:N}}Se.findFirstNonWhitespaceCharacterAndColumn=V;function m(b,D,T,Q){return V(b,D,T,Q).column}Se.findFirstNonWhitespaceColumn=m;function y(b,D,T,Q,N){var X=T?T.kind:0;switch(D.kind){case 225:case 244:case 213:case 245:case 247:case 246:case 191:case 222:case 249:case 192:case 172:case 185:case 174:case 250:case 276:case 275:case 199:case 193:case 195:case 196:case 224:case 258:case 234:case 209:case 189:case 188:case 266:case 269:case 265:case 274:case 159:case 164:case 165:case 155:case 169:case 170:case 181:case 197:case 205:case 260:case 256:case 261:case 257:case 158:return!0;case 241:case 279:case 208:if(!b.indentMultiLineObjectLiteralBeginningOnBlankLine&&Q&&X===192)return _(Q,T);if(D.kind!==208)return!0;break;case 227:case 228:case 230:case 231:case 229:case 226:case 243:case 200:case 160:case 201:case 161:case 162:case 163:return X!==222;case 259:return X!==260;case 253:return X!==254||!!T.namedBindings&&T.namedBindings.kind!==256;case 264:return X!==267;case 268:return X!==270;case 178:case 177:if(X===172)return!1}return N}Se.nodeWillIndentChild=y;function L(b,D){switch(b){case 234:case 238:case 232:case 233:return D.kind!==222;default:return!1}}function C(b,D,T,Q,N){return N===void 0&&(N=!1),y(b,D,T,Q,!1)&&!(N&&T&&L(T.kind,D))}Se.shouldIndentChildNode=C;function _(b,D){var T=e.skipTrivia(b.text,D.pos),Q=b.getLineAndCharacterOfPosition(T).line,N=b.getLineAndCharacterOfPosition(D.end).line;return Q===N}})(qe=F.SmartIndenter||(F.SmartIndenter={}))})(o=e.formatting||(e.formatting={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){function qe(b){var D=b.__pos;return e.Debug.assert(typeof D=="number"),D}function Se(b,D){e.Debug.assert(typeof D=="number"),b.__pos=D}function Fe(b){var D=b.__end;return e.Debug.assert(typeof D=="number"),D}function He(b,D){e.Debug.assert(typeof D=="number"),b.__end=D}var ve;(function(b){b[b.Exclude=0]="Exclude",b[b.IncludeAll=1]="IncludeAll"})(ve=F.LeadingTriviaOption||(F.LeadingTriviaOption={}));var ie;(function(b){b[b.Exclude=0]="Exclude",b[b.Include=1]="Include"})(ie=F.TrailingTriviaOption||(F.TrailingTriviaOption={}));function d(b,D){return e.skipTrivia(b,D,!1,!0)}function H(b,D){for(var T=D;T<b.length;){var Q=b.charCodeAt(T);if(e.isWhiteSpaceSingleLine(Q)){T++;continue}return Q===47}return!1}var Pe={leadingTriviaOption:ve.Exclude,trailingTriviaOption:ie.Exclude},I;(function(b){b[b.Remove=0]="Remove",b[b.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",b[b.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",b[b.Text=3]="Text"})(I||(I={}));function _e(b,D,T,Q){return{pos:re(b,D,Q),end:se(b,T,Q)}}function re(b,D,T){var Q=T.leadingTriviaOption;if(Q===ve.Exclude)return D.getStart(b);var N=D.getFullStart(),X=D.getStart(b);if(N===X)return X;var pe=e.getLineStartPositionForPosition(N,b),S=e.getLineStartPositionForPosition(X,b);if(S===pe)return Q===ve.IncludeAll?N:X;var v=N>0?1:0,U=e.getStartPositionOfLine(e.getLineOfLocalPosition(b,pe)+v,b);return U=d(b.text,U),e.getStartPositionOfLine(e.getLineOfLocalPosition(b,U),b)}function se(b,D,T){var Q=D.end,N=T.trailingTriviaOption;if(N===ie.Exclude||e.isExpression(D)&&N!==ie.Include)return Q;var X=e.skipTrivia(b.text,Q,!0);return X!==Q&&(N===ie.Include||e.isLineBreak(b.text.charCodeAt(X-1)))?X:Q}function w(b,D){return!!D&&!!b.parent&&(D.kind===27||D.kind===26&&b.parent.kind===192)}function k(b){for(var D="",T=0;T<b;T++)D+=" ";return D}function P(b){return e.isFunctionExpression(b)||e.isFunctionDeclaration(b)}F.isThisTypeAnnotatable=P;var h=function(){function b(D,T){this.newLineCharacter=D,this.formatContext=T,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=e.createMap(),this.deletedNodes=[]}return b.fromContext=function(D){return new b(e.getNewLineOrDefaultFromHost(D.host,D.formatContext.options),D.formatContext)},b.with=function(D,T){var Q=b.fromContext(D);return T(Q),Q.getChanges()},b.prototype.pushRaw=function(D,T){e.Debug.assertEqual(D.fileName,T.fileName);for(var Q=0,N=T.textChanges;Q<N.length;Q++){var X=N[Q];this.changes.push({kind:I.Text,sourceFile:D,text:X.newText,range:e.createTextRangeFromSpan(X.span)})}},b.prototype.deleteRange=function(D,T){this.changes.push({kind:I.Remove,sourceFile:D,range:T})},b.prototype.delete=function(D,T){this.deletedNodes.push({sourceFile:D,node:T})},b.prototype.deleteModifier=function(D,T){this.deleteRange(D,{pos:T.getStart(D),end:e.skipTrivia(D.text,T.end,!0)})},b.prototype.deleteNodeRange=function(D,T,Q,N){N===void 0&&(N={leadingTriviaOption:ve.IncludeAll});var X=re(D,T,N),pe=se(D,Q,N);this.deleteRange(D,{pos:X,end:pe})},b.prototype.deleteNodeRangeExcludingEnd=function(D,T,Q,N){N===void 0&&(N={leadingTriviaOption:ve.IncludeAll});var X=re(D,T,N),pe=Q===void 0?D.text.length:re(D,Q,N);this.deleteRange(D,{pos:X,end:pe})},b.prototype.replaceRange=function(D,T,Q,N){N===void 0&&(N={}),this.changes.push({kind:I.ReplaceWithSingleNode,sourceFile:D,range:T,options:N,node:Q})},b.prototype.replaceNode=function(D,T,Q,N){N===void 0&&(N=Pe),this.replaceRange(D,_e(D,T,T,N),Q,N)},b.prototype.replaceNodeRange=function(D,T,Q,N,X){X===void 0&&(X=Pe),this.replaceRange(D,_e(D,T,Q,X),N,X)},b.prototype.replaceRangeWithNodes=function(D,T,Q,N){N===void 0&&(N={}),this.changes.push({kind:I.ReplaceWithMultipleNodes,sourceFile:D,range:T,options:N,nodes:Q})},b.prototype.replaceNodeWithNodes=function(D,T,Q,N){N===void 0&&(N=Pe),this.replaceRangeWithNodes(D,_e(D,T,T,N),Q,N)},b.prototype.replaceNodeWithText=function(D,T,Q){this.replaceRangeWithText(D,_e(D,T,T,Pe),Q)},b.prototype.replaceNodeRangeWithNodes=function(D,T,Q,N,X){X===void 0&&(X=Pe),this.replaceRangeWithNodes(D,_e(D,T,Q,X),N,X)},b.prototype.nextCommaToken=function(D,T){var Q=e.findNextToken(T,T.parent,D);return Q&&Q.kind===27?Q:void 0},b.prototype.replacePropertyAssignment=function(D,T,Q){var N=this.nextCommaToken(D,T)?"":","+this.newLineCharacter;this.replaceNode(D,T,Q,{suffix:N})},b.prototype.insertNodeAt=function(D,T,Q,N){N===void 0&&(N={}),this.replaceRange(D,e.createRange(T),Q,N)},b.prototype.insertNodesAt=function(D,T,Q,N){N===void 0&&(N={}),this.replaceRangeWithNodes(D,e.createRange(T),Q,N)},b.prototype.insertNodeAtTopOfFile=function(D,T,Q){var N=V(D);this.insertNodeAt(D,N,T,{prefix:N===0?void 0:this.newLineCharacter,suffix:(e.isLineBreak(D.text.charCodeAt(N))?"":this.newLineCharacter)+(Q?this.newLineCharacter:"")})},b.prototype.insertNodeBefore=function(D,T,Q,N){N===void 0&&(N=!1),this.insertNodeAt(D,re(D,T,{}),Q,this.getOptionsForInsertNodeBefore(T,N))},b.prototype.insertModifierBefore=function(D,T,Q){var N=Q.getStart(D);this.insertNodeAt(D,N,e.createToken(T),{suffix:" "})},b.prototype.insertLastModifierBefore=function(D,T,Q){if(!Q.modifiers){this.insertModifierBefore(D,T,Q);return}var N=Q.modifiers.end;this.insertNodeAt(D,N,e.createToken(T),{prefix:" "})},b.prototype.insertCommentBeforeLine=function(D,T,Q,N){var X=e.getStartPositionOfLine(T,D),pe=e.getFirstNonSpaceCharacterPosition(D.text,X),S=m(D,pe),v=e.getTouchingToken(D,S?pe:Q),U=D.text.slice(X,pe),de=(S?"":this.newLineCharacter)+"//"+N+this.newLineCharacter+U;this.insertText(D,v.getStart(D),de)},b.prototype.insertJsdocCommentBefore=function(D,T,Q){var N=T.getStart(D);if(T.jsDoc)for(var X=0,pe=T.jsDoc;X<pe.length;X++){var S=pe[X];this.deleteRange(D,{pos:e.getLineStartPositionForPosition(S.getStart(D),D),end:se(D,S,{})})}var v=e.getPrecedingNonSpaceCharacterPosition(D.text,N-1),U=D.text.slice(v,N);this.insertNodeAt(D,N,Q,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+U})},b.prototype.replaceRangeWithText=function(D,T,Q){this.changes.push({kind:I.Text,sourceFile:D,range:T,text:Q})},b.prototype.insertText=function(D,T,Q){this.replaceRangeWithText(D,e.createRange(T),Q)},b.prototype.tryInsertTypeAnnotation=function(D,T,Q){var N;if(e.isFunctionLike(T)){if(N=e.findChildOfKind(T,21,D),!N){if(!e.isArrowFunction(T))return!1;N=e.first(T.parameters)}}else N=T.kind!==241&&T.questionToken?T.questionToken:T.name;return this.insertNodeAt(D,N.end,Q,{prefix:": "}),!0},b.prototype.tryInsertThisTypeAnnotation=function(D,T,Q){var N=e.findChildOfKind(T,20,D).getStart(D)+1,X=T.parameters.length?", ":"";this.insertNodeAt(D,N,Q,{prefix:"this: ",suffix:X})},b.prototype.insertTypeParameters=function(D,T,Q){var N=(e.findChildOfKind(T,20,D)||e.first(T.parameters)).getStart(D);this.insertNodesAt(D,N,Q,{prefix:"<",suffix:">"})},b.prototype.getOptionsForInsertNodeBefore=function(D,T){return e.isStatement(D)||e.isClassElement(D)?{suffix:T?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(D)?{suffix:", "}:e.isParameter(D)?{}:e.isStringLiteral(D)&&e.isImportDeclaration(D.parent)||e.isNamedImports(D)?{suffix:", "}:e.Debug.failBadSyntaxKind(D)},b.prototype.insertNodeAtConstructorStart=function(D,T,Q){var N=e.firstOrUndefined(T.body.statements);!N||!T.body.multiLine?this.replaceConstructorBody(D,T,Or([Q],T.body.statements)):this.insertNodeBefore(D,N,Q)},b.prototype.insertNodeAtConstructorEnd=function(D,T,Q){var N=e.lastOrUndefined(T.body.statements);!N||!T.body.multiLine?this.replaceConstructorBody(D,T,Or(T.body.statements,[Q])):this.insertNodeAfter(D,N,Q)},b.prototype.replaceConstructorBody=function(D,T,Q){this.replaceNode(D,T.body,e.createBlock(Q,!0))},b.prototype.insertNodeAtEndOfScope=function(D,T,Q){var N=re(D,T.getLastToken(),{});this.insertNodeAt(D,N,Q,{prefix:e.isLineBreak(D.text.charCodeAt(T.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},b.prototype.insertNodeAtClassStart=function(D,T,Q){this.insertNodeAtStartWorker(D,T,Q)},b.prototype.insertNodeAtObjectStart=function(D,T,Q){this.insertNodeAtStartWorker(D,T,Q)},b.prototype.insertNodeAtStartWorker=function(D,T,Q){var N=T.getStart(D),X=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(N,D),N,D,this.formatContext.options)+this.formatContext.options.indentSize;this.insertNodeAt(D,$(T).pos,Q,ma({indentation:X},this.getInsertNodeAtStartPrefixSuffix(D,T)))},b.prototype.getInsertNodeAtStartPrefixSuffix=function(D,T){var Q=e.isObjectLiteralExpression(T)?",":"";if($(T).length===0)if(e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(T),{node:T,sourceFile:D})){var N=e.positionsAreOnSameLine.apply(void 0,Or(ne(T,D),[D]));return{prefix:this.newLineCharacter,suffix:Q+(N?this.newLineCharacter:"")}}else return{prefix:"",suffix:Q+this.newLineCharacter};else return{prefix:this.newLineCharacter,suffix:Q}},b.prototype.insertNodeAfterComma=function(D,T,Q){var N=this.insertNodeAfterWorker(D,this.nextCommaToken(D,T)||T,Q);this.insertNodeAt(D,N,Q,this.getInsertNodeAfterOptions(D,T))},b.prototype.insertNodeAfter=function(D,T,Q){var N=this.insertNodeAfterWorker(D,T,Q);this.insertNodeAt(D,N,Q,this.getInsertNodeAfterOptions(D,T))},b.prototype.insertNodeAtEndOfList=function(D,T,Q){this.insertNodeAt(D,T.end,Q,{prefix:", "})},b.prototype.insertNodesAfter=function(D,T,Q){var N=this.insertNodeAfterWorker(D,T,e.first(Q));this.insertNodesAt(D,N,Q,this.getInsertNodeAfterOptions(D,T))},b.prototype.insertNodeAfterWorker=function(D,T,Q){y(T,Q)&&(D.text.charCodeAt(T.end-1)!==59&&this.replaceRange(D,e.createRange(T.end),e.createToken(26)));var N=se(D,T,{});return N},b.prototype.getInsertNodeAfterOptions=function(D,T){var Q=this.getInsertNodeAfterOptionsWorker(T);return ma(ma({},Q),{prefix:T.end===D.end&&e.isStatement(T)?Q.prefix?`
`+Q.prefix:`
`:Q.prefix})},b.prototype.getInsertNodeAfterOptionsWorker=function(D){switch(D.kind){case 244:case 248:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 241:case 10:case 75:return{prefix:", "};case 279:return{suffix:","+this.newLineCharacter};case 88:return{prefix:" "};case 155:return{};default:return e.Debug.assert(e.isStatement(D)||e.isClassOrTypeElement(D)),{suffix:this.newLineCharacter}}},b.prototype.insertName=function(D,T,Q){if(e.Debug.assert(!T.name),T.kind===201){var N=e.findChildOfKind(T,38,D),X=e.findChildOfKind(T,20,D);X?(this.insertNodesAt(D,X.getStart(D),[e.createToken(93),e.createIdentifier(Q)],{joiner:" "}),C(this,D,N)):(this.insertText(D,e.first(T.parameters).getStart(D),"function "+Q+"("),this.replaceRange(D,N,e.createToken(21))),T.body.kind!==222&&(this.insertNodesAt(D,T.body.getStart(D),[e.createToken(18),e.createToken(100)],{joiner:" ",suffix:" "}),this.insertNodesAt(D,T.body.end,[e.createToken(26),e.createToken(19)],{joiner:" "}))}else{var pe=e.findChildOfKind(T,T.kind===200?93:79,D).end;this.insertNodeAt(D,pe,e.createIdentifier(Q),{prefix:" "})}},b.prototype.insertExportModifier=function(D,T){this.insertText(D,T.getStart(D),"export ")},b.prototype.insertNodeInListAfter=function(D,T,Q,N){if(N===void 0&&(N=e.formatting.SmartIndenter.getContainingList(T,D)),!N){e.Debug.fail("node is not a list element");return}var X=e.indexOfNode(N,T);if(X<0)return;var pe=T.getEnd();if(X!==N.length-1){var S=e.getTokenAtPosition(D,T.end);if(S&&w(T,S)){var v=e.getLineAndCharacterOfPosition(D,d(D.text,N[X+1].getFullStart())),U=e.getLineAndCharacterOfPosition(D,S.end),de=void 0,Ce=void 0;U.line===v.line?(Ce=S.end,de=k(v.character-U.character)):Ce=e.getStartPositionOfLine(v.line,D);var Z=""+e.tokenToString(S.kind)+D.text.substring(S.end,N[X+1].getStart(D));this.replaceRange(D,e.createRange(Ce,N[X+1].getStart(D)),Q,{prefix:de,suffix:Z})}}else{var Re=T.getStart(D),Ae=e.getLineStartPositionForPosition(Re,D),We=void 0,be=!1;if(N.length===1)We=27;else{var Ge=e.findPrecedingToken(T.pos,D);We=w(T,Ge)?Ge.kind:27;var x=e.getLineStartPositionForPosition(N[X-1].getStart(D),D);be=x!==Ae}if(H(D.text,T.end)&&(be=!0),be){this.replaceRange(D,e.createRange(pe),e.createToken(We));var j=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(Ae,Re,D,this.formatContext.options),Oe=e.skipTrivia(D.text,pe,!0,!1);Oe!==pe&&e.isLineBreak(D.text.charCodeAt(Oe-1))&&Oe--,this.replaceRange(D,e.createRange(Oe),Q,{indentation:j,prefix:this.newLineCharacter})}else this.replaceRange(D,e.createRange(pe),Q,{prefix:e.tokenToString(We)+" "})}},b.prototype.parenthesizeExpression=function(D,T){this.replaceRange(D,e.rangeOfNode(T),e.createParen(T))},b.prototype.finishClassesWithNodesInsertedAtStart=function(){var D=this;this.classesWithNodesInsertedAtStart.forEach(function(T){var Q=T.node,N=T.sourceFile,X=ne(Q,N),pe=X[0],S=X[1];e.positionsAreOnSameLine(pe,S,N)&&pe!==S-1&&D.deleteRange(N,e.createRange(pe,S-1))})},b.prototype.finishDeleteDeclarations=function(){for(var D=this,T=new e.NodeSet,Q=function(Ce,Z){N.deletedNodes.some(function(Re){return Re.sourceFile===Ce&&e.rangeContainsRangeExclusive(Re.node,Z)})||(e.isArray(Z)?N.deleteRange(Ce,e.rangeOfTypeParameters(Z)):L.deleteDeclaration(N,T,Ce,Z))},N=this,X=0,pe=this.deletedNodes;X<pe.length;X++){var S=pe[X],v=S.sourceFile,U=S.node;Q(v,U)}T.forEach(function(de){var Ce=de.getSourceFile(),Z=e.formatting.SmartIndenter.getContainingList(de,Ce);if(de!==e.last(Z))return;var Re=e.findLastIndex(Z,function(Ae){return!T.has(Ae)},Z.length-2);Re!==-1&&D.deleteRange(Ce,{pos:Z[Re].end,end:Y(Ce,Z[Re+1])})})},b.prototype.getChanges=function(D){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var T=fe.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,D),Q=0,N=this.newFiles;Q<N.length;Q++){var X=N[Q],pe=X.oldFile,S=X.fileName,v=X.statements;T.push(fe.newFileChanges(pe,S,v,this.newLineCharacter,this.formatContext))}return T},b.prototype.createNewFile=function(D,T,Q){this.newFiles.push({oldFile:D,fileName:T,statements:Q})},b}();F.ChangeTracker=h;function Y(b,D){return e.skipTrivia(b.text,re(b,D,{leadingTriviaOption:ve.IncludeAll}),!1,!0)}function ne(b,D){return[e.findChildOfKind(b,18,D).end,e.findChildOfKind(b,19,D).end]}function $(b){return e.isObjectLiteralExpression(b)?b.properties:b.members}function J(b,D,T,Q){return fe.newFileChangesWorker(void 0,D,b,T,Q)}F.getNewFileText=J;var fe;(function(b){function D(v,U,de,Ce){return e.group(v,function(Z){return Z.sourceFile.path}).map(function(Z){for(var Re=Z[0].sourceFile,Ae=e.stableSort(Z,function(x,j){return x.range.pos-j.range.pos||x.range.end-j.range.end}),We=function(j){e.Debug.assert(Ae[j].range.end<=Ae[j+1].range.pos,"Changes overlap",function(){return JSON.stringify(Ae[j].range)+" and "+JSON.stringify(Ae[j+1].range)})},be=0;be<Ae.length-1;be++)We(be);var Ge=Ae.map(function(x){return e.createTextChange(e.createTextSpanFromRange(x.range),N(x,Re,U,de,Ce))});return{fileName:Re.fileName,textChanges:Ge}})}b.getTextChangesFromChanges=D;function T(v,U,de,Ce,Z){var Re=Q(v,e.getScriptKindFromFileName(U),de,Ce,Z);return{fileName:U,textChanges:[e.createTextChange(e.createTextSpan(0,0),Re)],isNewFile:!0}}b.newFileChanges=T;function Q(v,U,de,Ce,Z){var Re=de.map(function(be){return S(be,v,Ce).text}).join(Ce),Ae=e.createSourceFile("any file name",Re,99,!0,U),We=e.formatting.formatDocument(Ae,Z);return R(Re,We)+Ce}b.newFileChangesWorker=Q;function N(v,U,de,Ce,Z){if(v.kind===I.Remove)return"";if(v.kind===I.Text)return v.text;var Re=v.options,Ae=Re===void 0?{}:Re,We=v.range.pos,be=function(Oe){return pe(Oe,U,We,Ae,de,Ce,Z)},Ge=v.kind===I.ReplaceWithMultipleNodes?v.nodes.map(function(j){return e.removeSuffix(be(j),de)}).join(v.options.joiner||de):be(v.node),x=Ae.preserveLeadingWhitespace||Ae.indentation!==void 0||e.getLineStartPositionForPosition(We,U)===We?Ge:Ge.replace(/^\s+/,"");return(Ae.prefix||"")+x+(Ae.suffix||"")}function X(v,U){var de=v.options,Ce=!de.semicolons||de.semicolons===e.SemicolonPreference.Ignore,Z=de.semicolons===e.SemicolonPreference.Remove||Ce&&!e.probablyUsesSemicolons(U);return ma(ma({},de),{semicolons:Z?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}function pe(v,U,de,Ce,Z,Re,Ae){var We=Ce.indentation,be=Ce.prefix,Ge=Ce.delta,x=S(v,U,Z),j=x.node,Oe=x.text;Ae&&Ae(j,Oe);var a=X(Re,U),en=We!==void 0?We:e.formatting.SmartIndenter.getIndentation(de,U,a,be===Z||e.getLineStartPositionForPosition(de,U)===de);Ge===void 0&&(Ge=e.formatting.SmartIndenter.shouldIndentChildNode(a,v)&&a.indentSize||0);var Pn={text:Oe,getLineAndCharacterOfPosition:function(ce){return e.getLineAndCharacterOfPosition(this,ce)}},Xn=e.formatting.formatNodeGivenIndentation(j,Pn,U.languageVariant,en,Ge,ma(ma({},Re),{options:a}));return R(Oe,Xn)}function S(v,U,de){var Ce=B(de),Z=de===`
`?1:0;return e.createPrinter({newLine:Z,neverAsciiEscape:!0},Ce).writeNode(4,v,U,Ce),{text:Ce.getText(),node:z(v)}}b.getNonformattedText=S})(fe||(fe={}));function R(b,D){for(var T=D.length-1;T>=0;T--){var Q=D[T],N=Q.span,X=Q.newText;b=""+b.substring(0,N.start)+X+b.substring(e.textSpanEnd(N))}return b}F.applyChanges=R;function K(b){return e.skipTrivia(b,0)===b.length}function z(b){var D=e.visitEachChild(b,z,e.nullTransformationContext,Ee,z),T=e.nodeIsSynthesized(D)?D:Object.create(D);return T.pos=qe(b),T.end=Fe(b),T}function Ee(b,D,T,Q,N){var X=e.visitNodes(b,D,T,Q,N);if(!X)return X;var pe=X===b?e.createNodeArray(X.slice(0)):X;return pe.pos=qe(b),pe.end=Fe(b),pe}function B(b){var D=0,T=e.createTextWriter(b),Q=function(sn,he,ke){he&&Se(he,D),ke(sn,he),he&&He(he,D)},N=function(sn){sn&&Se(sn,D)},X=function(sn){sn&&He(sn,D)},pe=function(sn){sn&&Se(sn,D)},S=function(sn){sn&&He(sn,D)};function v($e,sn){if(sn||!K($e)){D=T.getTextPos();for(var he=0;e.isWhiteSpaceLike($e.charCodeAt($e.length-he-1));)he++;D-=he}}function U($e){T.write($e),v($e,!1)}function de($e){T.writeComment($e)}function Ce($e){T.writeKeyword($e),v($e,!1)}function Z($e){T.writeOperator($e),v($e,!1)}function Re($e){T.writePunctuation($e),v($e,!1)}function Ae($e){T.writeTrailingSemicolon($e),v($e,!1)}function We($e){T.writeParameter($e),v($e,!1)}function be($e){T.writeProperty($e),v($e,!1)}function Ge($e){T.writeSpace($e),v($e,!1)}function x($e){T.writeStringLiteral($e),v($e,!1)}function j($e,sn){T.writeSymbol($e,sn),v($e,!1)}function Oe(){T.writeLine()}function a(){T.increaseIndent()}function en(){T.decreaseIndent()}function Pn(){return T.getText()}function Xn($e){T.rawWrite($e),v($e,!1)}function ae($e){T.writeLiteral($e),v($e,!0)}function ce(){return T.getTextPos()}function Le(){return T.getLine()}function Je(){return T.getColumn()}function Ze(){return T.getIndent()}function Ue(){return T.isAtStartOfLine()}function cn(){T.clear(),D=0}return{onEmitNode:Q,onBeforeEmitNodeArray:N,onAfterEmitNodeArray:X,onBeforeEmitToken:pe,onAfterEmitToken:S,write:U,writeComment:de,writeKeyword:Ce,writeOperator:Z,writePunctuation:Re,writeTrailingSemicolon:Ae,writeParameter:We,writeProperty:be,writeSpace:Ge,writeStringLiteral:x,writeSymbol:j,writeLine:Oe,increaseIndent:a,decreaseIndent:en,getText:Pn,rawWrite:Xn,writeLiteral:ae,getTextPos:ce,getLine:Le,getColumn:Je,getIndent:Ze,isAtStartOfLine:Ue,hasTrailingComment:function(){return T.hasTrailingComment()},hasTrailingWhitespace:function(){return T.hasTrailingWhitespace()},clear:cn}}function V(b){for(var D,T=0,Q=b.statements;T<Q.length;T++){var N=Q[T];if(e.isPrologueDirective(N))D=N;else break}var X=0,pe=b.text;if(D)return X=D.end,Z(),X;var S=e.getShebang(pe);S!==void 0&&(X=S.length,Z());var v=e.getLeadingCommentRanges(pe,X);if(!v)return X;v.length&&v[0].kind===3&&e.isPinnedComment(pe,v[0].pos)&&(X=v[0].end,Z(),v=v.slice(1));for(var U=0,de=v;U<de.length;U++){var Ce=de[U];if(Ce.kind===2&&e.isRecognizedTripleSlashComment(pe,Ce.pos,Ce.end)){X=Ce.end,Z();continue}break}return X;function Z(){if(X<pe.length){var Re=pe.charCodeAt(X);e.isLineBreak(Re)&&(X++,X<pe.length&&Re===13&&pe.charCodeAt(X)===10&&X++)}}}function m(b,D){return!e.isInComment(b,D)&&!e.isInString(b,D)&&!e.isInTemplateString(b,D)&&!e.isInJSXText(b,D)}F.isValidLocationToAddComment=m;function y(b,D){return(e.isPropertySignature(b)||e.isPropertyDeclaration(b))&&e.isClassOrTypeElement(D)&&D.name.kind===153||e.isStatementButNotDeclaration(b)&&e.isStatementButNotDeclaration(D)}var L;(function(b){function D(X,pe,S,v){switch(v.kind){case 155:{var U=v.parent;e.isArrowFunction(U)&&U.parameters.length===1&&!e.findChildOfKind(U,20,S)?X.replaceNodeWithText(S,v,"()"):_(X,pe,S,v);break}case 253:C(X,S,v,v===S.imports[0].parent?{leadingTriviaOption:ve.Exclude}:void 0);break;case 190:var de=v.parent,Ce=de.kind===189&&v!==e.last(de.elements);Ce?C(X,S,v):_(X,pe,S,v);break;case 241:N(X,pe,S,v);break;case 154:_(X,pe,S,v);break;case 257:var Z=v.parent;Z.elements.length===1?Q(X,S,Z):_(X,pe,S,v);break;case 255:Q(X,S,v);break;default:e.isImportClause(v.parent)&&v.parent.name===v?T(X,S,v.parent):e.isCallLikeExpression(v.parent)?_(X,pe,S,v):C(X,S,v,v.kind===26?{trailingTriviaOption:ie.Exclude}:void 0)}}b.deleteDeclaration=D;function T(X,pe,S){if(!S.namedBindings)C(X,pe,S.parent);else{var v=S.name.getStart(pe),U=e.getTokenAtPosition(pe,S.name.end);if(U&&U.kind===27){var de=e.skipTrivia(pe.text,U.end,!1,!0);X.deleteRange(pe,{pos:v,end:de})}else C(X,pe,S.name)}}function Q(X,pe,S){if(S.parent.name){var v=e.Debug.assertDefined(e.getTokenAtPosition(pe,S.pos-1));X.deleteRange(pe,{pos:v.getStart(pe),end:S.end})}else{var U=e.getAncestor(S,253);C(X,pe,U)}}function N(X,pe,S,v){var U=v.parent;if(U.kind===278){X.deleteNodeRange(S,e.findChildOfKind(U,20,S),e.findChildOfKind(U,21,S));return}if(U.declarations.length!==1){_(X,pe,S,v);return}var de=U.parent;switch(de.kind){case 231:case 230:X.replaceNode(S,v,e.createObjectLiteral());break;case 229:C(X,S,U);break;case 224:C(X,S,de);break;default:e.Debug.assertNever(de)}}})(L||(L={}));function C(b,D,T,Q){Q===void 0&&(Q={leadingTriviaOption:ve.IncludeAll});var N=re(D,T,Q),X=se(D,T,Q);b.deleteRange(D,{pos:N,end:X})}F.deleteNode=C;function _(b,D,T,Q){var N=e.Debug.assertDefined(e.formatting.SmartIndenter.getContainingList(Q,T)),X=e.indexOfNode(N,Q);if(e.Debug.assert(X!==-1),N.length===1){C(b,T,Q);return}e.Debug.assert(!D.has(Q),"Deleting a node twice"),D.add(Q),b.deleteRange(T,{pos:Y(T,Q),end:X===N.length-1?se(T,Q,{}):Y(T,N[X+1])})}})(o=e.textChanges||(e.textChanges={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe=e.createMultiMap(),Se=e.createMap();function Fe(k){return e.isArray(k)?e.formatStringFromArgs(e.getLocaleSpecificMessage(k[0]),k.slice(1)):e.getLocaleSpecificMessage(k)}function He(k,P,h){return ie(k,Fe(h),P,void 0,void 0)}F.createCodeFixActionNoFixId=He;function ve(k,P,h,Y,ne,$){return ie(k,Fe(h),P,Y,Fe(ne),$)}F.createCodeFixAction=ve;function ie(k,P,h,Y,ne,$){return{fixName:k,description:P,changes:h,fixId:Y,fixAllDescription:ne,commands:$?[$]:void 0}}function d(k){for(var P=0,h=k.errorCodes;P<h.length;P++){var Y=h[P];qe.add(String(Y),k)}if(k.fixIds)for(var ne=0,$=k.fixIds;ne<$.length;ne++){var J=$[ne];e.Debug.assert(!Se.has(J)),Se.set(J,k)}}F.registerCodeFix=d;function H(){return e.arrayFrom(qe.keys())}F.getSupportedErrorCodes=H;function Pe(k){return e.flatMap(qe.get(String(k.errorCode))||e.emptyArray,function(P){return P.getCodeActions(k)})}F.getFixes=Pe;function I(k){return Se.get(e.cast(k.fixId,e.isString)).getAllCodeActions(k)}F.getAllFixes=I;function _e(k,P){return{changes:k,commands:P}}F.createCombinedCodeActions=_e;function re(k,P){return{fileName:k,textChanges:P}}F.createFileTextChanges=re;function se(k,P,h){var Y=[],ne=e.textChanges.ChangeTracker.with(k,function($){return w(k,P,function(J){return h($,J,Y)})});return _e(ne,Y.length===0?void 0:Y)}F.codeFixAll=se;function w(k,P,h){for(var Y=k.program,ne=k.sourceFile,$=k.cancellationToken,J=0,fe=Y.getSemanticDiagnostics(ne,$).concat(e.computeSuggestionDiagnostics(ne,Y,$));J<fe.length;J++){var R=fe[J];e.contains(P,R.code)&&h(R)}}F.eachDiagnostic=w})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(qe){var Se=e.createMap();function Fe(ie,d){Se.set(ie,d)}qe.registerRefactor=Fe;function He(ie){return e.arrayFrom(e.flatMapIterator(Se.values(),function(d){return ie.cancellationToken&&ie.cancellationToken.isCancellationRequested()?void 0:d.getAvailableActions(ie)}))}qe.getApplicableRefactors=He;function ve(ie,d,H){var Pe=Se.get(d);return Pe&&Pe.getEditsForAction(ie,H)}qe.getEditsForRefactor=ve})(o=e.refactor||(e.refactor={}));function F(qe){var Se=qe.startPosition,Fe=qe.endPosition;return e.createTextSpanFromBounds(Se,Fe===void 0?Se:Fe)}e.getRefactorContextSpan=F})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="addConvertToUnknownForNonOverlappingTypes",Se=[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];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ve){var ie=e.textChanges.ChangeTracker.with(ve,function(d){return Fe(d,ve.sourceFile,ve.span.start)});return[F.createCodeFixAction(qe,ie,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,qe,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[qe],getAllCodeActions:function(ve){return F.codeFixAll(ve,Se,function(ie,d){return Fe(ie,d.file,d.start)})}});function Fe(He,ve,ie){var d=e.getTokenAtPosition(ve,ie),H=e.Debug.assertDefined(e.findAncestor(d,function(I){return e.isAsExpression(I)||e.isTypeAssertion(I)}),"Expected to find an assertion expression"),Pe=e.isAsExpression(H)?e.createAsExpression(H.expression,e.createKeywordTypeNode(147)):e.createTypeAssertion(e.createKeywordTypeNode(147),H.expression);He.replaceNode(ve,H.expression,Pe)}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="addMissingAwait",Se=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,Fe=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],He=Or([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.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,Se],Fe);F.registerCodeFix({fixIds:[qe],errorCodes:He,getCodeActions:function(k){var P=k.sourceFile,h=k.errorCode,Y=k.span,ne=k.cancellationToken,$=k.program,J=H(P,h,Y,ne,$);if(!J)return;var fe=k.program.getTypeChecker(),R=function(z){return e.textChanges.ChangeTracker.with(k,z)};return e.compact([ve(k,J,h,fe,R),ie(k,J,h,fe,R)])},getAllCodeActions:function(k){var P=k.sourceFile,h=k.program,Y=k.cancellationToken,ne=k.program.getTypeChecker(),$=e.createMap();return F.codeFixAll(k,He,function(J,fe){var R=H(P,fe.code,fe,Y,h);if(!R)return;var K=function(Ee){return Ee(J),[]};return ve(k,R,fe.code,ne,K,$)||ie(k,R,fe.code,ne,K,$)})}});function ve(w,k,P,h,Y,ne){var $=w.sourceFile,J=w.program,fe=w.cancellationToken,R=Pe(k,$,fe,J,h);if(R){var K=Y(function(z){e.forEach(R.initializers,function(Ee){var B=Ee.expression;return se(z,P,$,h,B,ne)}),ne&&R.needsSecondPassForFixAll&&se(z,P,$,h,k,ne)});return F.createCodeFixActionNoFixId("addMissingAwaitToInitializer",K,R.initializers.length===1?[e.Diagnostics.Add_await_to_initializer_for_0,R.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function ie(w,k,P,h,Y,ne){var $=Y(function(J){return se(J,P,w.sourceFile,h,k,ne)});return F.createCodeFixAction(qe,$,e.Diagnostics.Add_await,qe,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function d(w,k,P,h,Y){var ne=Y.getDiagnosticsProducingTypeChecker(),$=ne.getDiagnostics(w,h);return e.some($,function(J){var fe=J.start,R=J.length,K=J.relatedInformation,z=J.code;return e.isNumber(fe)&&e.isNumber(R)&&e.textSpansEqual({start:fe,length:R},P)&&z===k&&!!K&&e.some(K,function(Ee){return Ee.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}function H(w,k,P,h,Y){var ne=e.getTokenAtPosition(w,P.start),$=e.findAncestor(ne,function(J){return J.getStart(w)<P.start||J.getEnd()>e.textSpanEnd(P)?"quit":e.isExpression(J)&&e.textSpansEqual(P,e.createTextSpanFromNode(J,w))});return $&&d(w,k,P,h,Y)&&re($)?$:void 0}function Pe(w,k,P,h,Y){var ne=I(w,Y);if(!ne)return;for(var $=ne.isCompleteFix,J,fe=function(B){var V=Y.getSymbolAtLocation(B);if(!V)return"continue";var m=e.tryCast(V.valueDeclaration,e.isVariableDeclaration),y=m&&e.tryCast(m.name,e.isIdentifier),L=e.getAncestor(m,224);if(!m||!L||m.type||!m.initializer||L.getSourceFile()!==k||e.hasModifier(L,1)||!y||!re(m.initializer))return $=!1,"continue";var C=h.getSemanticDiagnostics(k,P),_=e.FindAllReferences.Core.eachSymbolReferenceInFile(y,Y,k,function(b){return B!==b&&!_e(b,C,k,Y)});if(_)return $=!1,"continue";(J||(J=[])).push({expression:m.initializer,declarationSymbol:V})},R=0,K=ne.identifiers;R<K.length;R++){var z=K[R];fe(z)}return J&&{initializers:J,needsSecondPassForFixAll:!$}}function I(w,k){if(e.isPropertyAccessExpression(w.parent)&&e.isIdentifier(w.parent.expression))return{identifiers:[w.parent.expression],isCompleteFix:!0};if(e.isIdentifier(w))return{identifiers:[w],isCompleteFix:!0};if(e.isBinaryExpression(w)){for(var P=void 0,h=!0,Y=0,ne=[w.left,w.right];Y<ne.length;Y++){var $=ne[Y],J=k.getTypeAtLocation($);if(k.getPromisedTypeOfPromise(J)){if(!e.isIdentifier($)){h=!1;continue}(P||(P=[])).push($)}}return P&&{identifiers:P,isCompleteFix:h}}}function _e(w,k,P,h){var Y=e.isPropertyAccessExpression(w.parent)?w.parent.name:e.isBinaryExpression(w.parent)?w.parent:w,ne=e.find(k,function($){return $.start===Y.getStart(P)&&$.start+$.length===Y.getEnd()});return ne&&e.contains(He,ne.code)||h.getTypeAtLocation(Y).flags&1}function re(w){return w.kind&32768||!!e.findAncestor(w,function(k){return k.parent&&e.isArrowFunction(k.parent)&&k.parent.body===k||e.isBlock(k)&&(k.parent.kind===243||k.parent.kind===200||k.parent.kind===201||k.parent.kind===160)})}function se(w,k,P,h,Y,ne){if(e.isBinaryExpression(Y))for(var $=0,J=[Y.left,Y.right];$<J.length;$++){var fe=J[$];if(ne&&e.isIdentifier(fe)){var R=h.getSymbolAtLocation(fe);if(R&&ne.has(e.getSymbolId(R).toString()))continue}var K=h.getTypeAtLocation(fe),z=h.getPromisedTypeOfPromise(K)?e.createAwait(fe):fe;w.replaceNode(P,fe,z)}else if(k===Se&&e.isPropertyAccessExpression(Y.parent)){if(ne&&e.isIdentifier(Y.parent.expression)){var R=h.getSymbolAtLocation(Y.parent.expression);if(R&&ne.has(e.getSymbolId(R).toString()))return}w.replaceNode(P,Y.parent.expression,e.createParen(e.createAwait(Y.parent.expression)))}else if(e.contains(Fe,k)&&e.isCallOrNewExpression(Y.parent)){if(ne&&e.isIdentifier(Y)){var R=h.getSymbolAtLocation(Y);if(R&&ne.has(e.getSymbolId(R).toString()))return}w.replaceNode(P,Y,e.createParen(e.createAwait(Y)))}else{if(ne&&e.isVariableDeclaration(Y.parent)&&e.isIdentifier(Y.parent.name)){var R=h.getSymbolAtLocation(Y.parent.name);if(R&&!e.addToSeen(ne,e.getSymbolId(R)))return}w.replaceNode(P,Y,e.createAwait(Y))}}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="addMissingConst",Se=[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];F.registerCodeFix({errorCodes:Se,getCodeActions:function(I){var _e=e.textChanges.ChangeTracker.with(I,function(re){return Fe(re,I.sourceFile,I.span.start,I.program)});if(_e.length>0)return[F.createCodeFixAction(qe,_e,e.Diagnostics.Add_const_to_unresolved_variable,qe,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[qe],getAllCodeActions:function(I){var _e=new e.NodeSet;return F.codeFixAll(I,Se,function(re,se){return Fe(re,se.file,se.start,I.program,_e)})}});function Fe(Pe,I,_e,re,se){var w=e.getTokenAtPosition(I,_e),k=e.findAncestor(w,function($){return e.isForInOrOfStatement($.parent)?$.parent.initializer===$:ve($)?!1:"quit"});if(k)return He(Pe,k,I,se);var P=w.parent;if(e.isBinaryExpression(P)&&e.isExpressionStatement(P.parent))return He(Pe,w,I,se);if(e.isArrayLiteralExpression(P)){var h=re.getTypeChecker();return e.every(P.elements,function($){return ie($,h)})?He(Pe,P,I,se):void 0}var Y=e.findAncestor(w,function($){return e.isExpressionStatement($.parent)?!0:d($)?!1:"quit"});if(Y){var ne=re.getTypeChecker();return H(Y,ne)?He(Pe,Y,I,se):void 0}}function He(Pe,I,_e,re){(!re||re.tryAdd(I))&&Pe.insertModifierBefore(_e,80,I)}function ve(Pe){switch(Pe.kind){case 75:case 191:case 192:case 279:case 280:return!0;default:return!1}}function ie(Pe,I){var _e=e.isIdentifier(Pe)?Pe:e.isAssignmentExpression(Pe,!0)&&e.isIdentifier(Pe.left)?Pe.left:void 0;return!!_e&&!I.getSymbolAtLocation(_e)}function d(Pe){switch(Pe.kind){case 75:case 208:case 27:return!0;default:return!1}}function H(Pe,I){return e.isBinaryExpression(Pe)?Pe.operatorToken.kind===27?e.every([Pe.left,Pe.right],function(_e){return H(_e,I)}):e.isIdentifier(Pe.left)&&!I.getSymbolAtLocation(Pe.left):!1}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="addMissingDeclareProperty",Se=[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];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ve){var ie=e.textChanges.ChangeTracker.with(ve,function(d){return Fe(d,ve.sourceFile,ve.span.start)});if(ie.length>0)return[F.createCodeFixAction(qe,ie,e.Diagnostics.Prefix_with_declare,qe,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[qe],getAllCodeActions:function(ve){var ie=new e.NodeSet;return F.codeFixAll(ve,Se,function(d,H){return Fe(d,H.file,H.start,ie)})}});function Fe(He,ve,ie,d){var H=e.getTokenAtPosition(ve,ie);if(!e.isIdentifier(H))return;var Pe=H.parent;Pe.kind===158&&(!d||d.tryAdd(Pe))&&He.insertModifierBefore(ve,129,Pe)}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="addMissingInvocationForDecorator",Se=[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];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ve){var ie=e.textChanges.ChangeTracker.with(ve,function(d){return Fe(d,ve.sourceFile,ve.span.start)});return[F.createCodeFixAction(qe,ie,e.Diagnostics.Call_decorator_expression,qe,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[qe],getAllCodeActions:function(ve){return F.codeFixAll(ve,Se,function(ie,d){return Fe(ie,d.file,d.start)})}});function Fe(He,ve,ie){var d=e.getTokenAtPosition(ve,ie),H=e.findAncestor(d,e.isDecorator);e.Debug.assert(!!H,"Expected position to be owned by a decorator.");var Pe=e.createCall(H.expression,void 0,void 0);He.replaceNode(ve,H.expression,Pe)}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="addNameToNamelessParameter",Se=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ve){var ie=e.textChanges.ChangeTracker.with(ve,function(d){return Fe(d,ve.sourceFile,ve.span.start)});return[F.createCodeFixAction(qe,ie,e.Diagnostics.Add_parameter_name,qe,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[qe],getAllCodeActions:function(ve){return F.codeFixAll(ve,Se,function(ie,d){return Fe(ie,d.file,d.start)})}});function Fe(He,ve,ie){var d=e.getTokenAtPosition(ve,ie);if(!e.isIdentifier(d))return e.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+e.Debug.formatSyntaxKind(d.kind));var H=d.parent;if(!e.isParameter(H))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(d.kind));var Pe=H.parent.parameters.indexOf(H);e.Debug.assert(!H.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(Pe>-1,"Parameter not found in parent parameter list.");var I=e.createParameter(void 0,H.modifiers,H.dotDotDotToken,"arg"+Pe,H.questionToken,e.createTypeReferenceNode(d,void 0),H.initializer);He.replaceNode(ve,d,I)}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="annotateWithTypeFromJSDoc",Se=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(h){var Y=Fe(h.sourceFile,h.span.start);if(!Y)return;var ne=e.textChanges.ChangeTracker.with(h,function($){return ie($,h.sourceFile,Y)});return[F.createCodeFixAction(qe,ne,e.Diagnostics.Annotate_with_type_from_JSDoc,qe,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]},fixIds:[qe],getAllCodeActions:function(h){return F.codeFixAll(h,Se,function(Y,ne){var $=Fe(ne.file,ne.start);$&&ie(Y,ne.file,$)})}});function Fe(P,h){var Y=e.getTokenAtPosition(P,h);return e.tryCast(e.isParameter(Y.parent)?Y.parent.parent:Y.parent,He)}function He(P){return d(P)&&ve(P)}F.parameterShouldGetTypeFromJSDoc=He;function ve(P){return e.isFunctionLikeDeclaration(P)?P.parameters.some(ve)||!P.type&&!!e.getJSDocReturnType(P):!P.type&&!!e.getJSDocType(P)}function ie(P,h,Y){if(e.isFunctionLikeDeclaration(Y)&&(e.getJSDocReturnType(Y)||Y.parameters.some(function(B){return!!e.getJSDocType(B)}))){if(!Y.typeParameters){var ne=e.getJSDocTypeParameterDeclarations(Y);ne.length&&P.insertTypeParameters(h,Y,ne)}var $=e.isArrowFunction(Y)&&!e.findChildOfKind(Y,20,h);$&&P.insertNodeBefore(h,e.first(Y.parameters),e.createToken(20));for(var J=0,fe=Y.parameters;J<fe.length;J++){var R=fe[J];if(!R.type){var K=e.getJSDocType(R);K&&P.tryInsertTypeAnnotation(h,R,H(K))}}if($&&P.insertNodeAfter(h,e.last(Y.parameters),e.createToken(21)),!Y.type){var z=e.getJSDocReturnType(Y);z&&P.tryInsertTypeAnnotation(h,Y,H(z))}}else{var Ee=e.Debug.assertDefined(e.getJSDocType(Y),"A JSDocType for this declaration should exist");e.Debug.assert(!Y.type,"The JSDocType decl should have a type"),P.tryInsertTypeAnnotation(h,Y,H(Ee))}}function d(P){return e.isFunctionLikeDeclaration(P)||P.kind===241||P.kind===157||P.kind===158}function H(P){switch(P.kind){case 293:case 294:return e.createTypeReferenceNode("any",e.emptyArray);case 297:return Pe(P);case 296:return H(P.type);case 295:return I(P);case 299:return _e(P);case 298:return re(P);case 168:return w(P);default:var h=e.visitEachChild(P,H,void 0);return e.setEmitFlags(h,1),h}}function Pe(P){return e.createUnionTypeNode([e.visitNode(P.type,H),e.createTypeReferenceNode("undefined",e.emptyArray)])}function I(P){return e.createUnionTypeNode([e.visitNode(P.type,H),e.createTypeReferenceNode("null",e.emptyArray)])}function _e(P){return e.createArrayTypeNode(e.visitNode(P.type,H))}function re(P){return e.createFunctionTypeNode(e.emptyArray,P.parameters.map(se),P.type)}function se(P){var h=P.parent.parameters.indexOf(P),Y=P.type.kind===299&&h===P.parent.parameters.length-1,ne=P.name||(Y?"rest":"arg"+h),$=Y?e.createToken(25):P.dotDotDotToken;return e.createParameter(P.decorators,P.modifiers,$,ne,P.questionToken,e.visitNode(P.type,H),P.initializer)}function w(P){var h=P.typeName,Y=P.typeArguments;if(e.isIdentifier(P.typeName)){if(e.isJSDocIndexSignature(P))return k(P);var ne=P.typeName.text;switch(P.typeName.text){case"String":case"Boolean":case"Object":case"Number":ne=ne.toLowerCase();break;case"array":case"date":case"promise":ne=ne[0].toUpperCase()+ne.slice(1);break}h=e.createIdentifier(ne),(ne==="Array"||ne==="Promise")&&!P.typeArguments?Y=e.createNodeArray([e.createTypeReferenceNode("any",e.emptyArray)]):Y=e.visitNodes(P.typeArguments,H)}return e.createTypeReferenceNode(h,Y)}function k(P){var h=e.createParameter(void 0,void 0,void 0,P.typeArguments[0].kind===139?"n":"s",void 0,e.createTypeReferenceNode(P.typeArguments[0].kind===139?"number":"string",[]),void 0),Y=e.createTypeLiteralNode([e.createIndexSignature(void 0,void 0,[h],P.typeArguments[1])]);return e.setEmitFlags(Y,1),Y}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="inferFromUsage",Se=[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];F.registerCodeFix({errorCodes:Se,getCodeActions:function(R){var K=R.sourceFile,z=R.program,Ee=R.span.start,B=R.errorCode,V=R.cancellationToken,m=R.host,y=R.formatContext,L=R.preferences,C=e.getTokenAtPosition(K,Ee),_,b=e.textChanges.ChangeTracker.with(R,function(T){_=ve(T,K,C,B,z,V,e.returnTrue,m,y,L)}),D=_&&e.getNameOfDeclaration(_);return!D||b.length===0?void 0:[F.createCodeFixAction(qe,b,[Fe(B,C),D.getText(K)],qe,e.Diagnostics.Infer_all_types_from_usage)]},fixIds:[qe],getAllCodeActions:function(R){var K=R.sourceFile,z=R.program,Ee=R.cancellationToken,B=R.host,V=R.formatContext,m=R.preferences,y=e.nodeSeenTracker();return F.codeFixAll(R,Se,function(L,C){ve(L,K,e.getTokenAtPosition(C.file,C.start),C.code,z,Ee,y,B,V,m)})}});function Fe(fe,R){switch(fe){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(R))?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 He(fe){switch(fe){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 fe}function ve(fe,R,K,z,Ee,B,V,m,y,L){if(!e.isParameterPropertyModifier(K.kind)&&K.kind!==75&&K.kind!==25&&K.kind!==103)return;var C=K.parent;z=He(z);switch(z){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(C)&&V(C)||e.isPropertyDeclaration(C)||e.isPropertySignature(C))return ie(fe,R,C,Ee,m,B,y,L),C;if(e.isPropertyAccessExpression(C)){var _=Y(C.name,Ee,B),b=e.getTypeNodeIfAccessible(_,C,Ee,m);if(b){var D=e.createJSDocTypeTag(e.createJSDocTypeExpression(b),"");w(fe,R,e.cast(C.parent.parent,e.isExpressionStatement),[D])}return C}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:{var T=Ee.getTypeChecker().getSymbolAtLocation(K);return T&&T.valueDeclaration&&e.isVariableDeclaration(T.valueDeclaration)&&V(T.valueDeclaration)?(ie(fe,R,T.valueDeclaration,Ee,m,B,y,L),T.valueDeclaration):void 0}}var Q=e.getContainingFunction(K);if(Q===void 0)return;switch(z){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(Q))return I(fe,R,Q,Ee,m,B,y,L),Q;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(V(Q)){var N=e.cast(C,e.isParameter);return d(fe,R,N,Q,Ee,m,B,y,L),N}return;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:return e.isGetAccessorDeclaration(Q)&&e.isIdentifier(Q.name)?(_e(fe,R,Q,Y(Q.name,Ee,B),Ee,m,y,L),Q):void 0;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:return e.isSetAccessorDeclaration(Q)?(I(fe,R,Q,Ee,m,B,y,L),Q):void 0;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.textChanges.isThisTypeAnnotatable(Q)&&V(Q)?(H(fe,R,Q,Ee,m,B),Q):void 0;default:return e.Debug.fail(String(z))}}function ie(fe,R,K,z,Ee,B,V,m){e.isIdentifier(K.name)&&_e(fe,R,K,Y(K.name,z,B),z,Ee,V,m)}function d(fe,R,K,z,Ee,B,V,m,y){if(!e.isIdentifier(K.name))return;var L=ne(z,R,Ee,V);if(e.Debug.assert(z.parameters.length===L.length,"Parameter count and inference count should match"),e.isInJSFile(z))se(fe,R,L,Ee,B);else{var C=e.isArrowFunction(z)&&!e.findChildOfKind(z,20,R);C&&fe.insertNodeBefore(R,e.first(z.parameters),e.createToken(20));for(var _=0,b=L;_<b.length;_++){var D=b[_],T=D.declaration,Q=D.type;T&&!T.type&&!T.initializer&&_e(fe,R,T,Q,Ee,B,m,y)}C&&fe.insertNodeAfter(R,e.last(z.parameters),e.createToken(21))}}function H(fe,R,K,z,Ee,B){var V=$(K,R,z,B);if(!V||!V.length)return;var m=J(z,V,B).thisParameter(),y=e.getTypeNodeIfAccessible(m,K,z,Ee);if(!y)return;e.isInJSFile(K)?Pe(fe,R,K,y):fe.tryInsertThisTypeAnnotation(R,K,y)}function Pe(fe,R,K,z){w(fe,R,K,[e.createJSDocThisTag(e.createJSDocTypeExpression(z))])}function I(fe,R,K,z,Ee,B,V,m){var y=e.firstOrUndefined(K.parameters);if(y&&e.isIdentifier(K.name)&&e.isIdentifier(y.name)){var L=Y(K.name,z,B);L===z.getTypeChecker().getAnyType()&&(L=Y(y.name,z,B)),e.isInJSFile(K)?se(fe,R,[{declaration:y,type:L}],z,Ee):_e(fe,R,y,L,z,Ee,V,m)}}function _e(fe,R,K,z,Ee,B,V,m){var y=e.getTypeNodeIfAccessible(z,K,Ee,B);if(y)if(e.isInJSFile(R)&&K.kind!==157){var L=e.isVariableDeclaration(K)?e.tryCast(K.parent.parent,e.isVariableStatement):K;if(!L)return;var C=e.createJSDocTypeExpression(y),_=e.isGetAccessorDeclaration(K)?e.createJSDocReturnTag(C,""):e.createJSDocTypeTag(C,"");w(fe,R,L,[_])}else re(y,fe,R,K,z,Ee,B,V,m)||fe.tryInsertTypeAnnotation(R,K,y)}function re(fe,R,K,z,Ee,B,V,m,y){var L;if(e.isLiteralImportTypeNode(fe)&&fe.qualifier&&Ee.symbol){var C=(L=e.find(Ee.symbol.declarations,function(X){return!!X.getSourceFile().externalModuleIndicator}))===null||L===void 0?void 0:L.getSourceFile().symbol;if(C){var _=e.getFirstIdentifier(fe.qualifier).symbol,b=F.getImportCompletionAction(_,C,K,_.name,V,B,m,z.pos,y);if(b.codeAction.changes.length&&R.tryInsertTypeAnnotation(K,z,e.createTypeReferenceNode(fe.qualifier,fe.typeArguments))){for(var D=0,T=b.codeAction.changes;D<T.length;D++){var Q=T[D],N=K.fileName===Q.fileName?K:e.Debug.assertDefined(B.getSourceFile(Q.fileName));R.pushRaw(N,Q)}return!0}}}return!1}function se(fe,R,K,z,Ee){var B=K.length&&K[0].declaration.parent;if(!B)return;var V=e.mapDefined(K,function(m){var y=m.declaration;if(y.initializer||e.getJSDocType(y)||!e.isIdentifier(y.name))return;var L=m.type&&e.getTypeNodeIfAccessible(m.type,y,z,Ee),C=e.getSynthesizedClone(y.name);return e.setEmitFlags(C,1536|2048),L&&e.createJSDocParamTag(C,!!m.isOptional,e.createJSDocTypeExpression(L),"")});w(fe,R,B,V)}function w(fe,R,K,z){var Ee=e.mapDefined(K.jsDoc,function(L){return L.comment}),B=e.flatMapToMutable(K.jsDoc,function(L){return L.tags}),V=z.filter(function(L){return!B||!B.some(function(C,_){var b=P(C,L);return b&&(B[_]=b),!!b})}),m=e.createJSDocComment(Ee.join(`
`),e.createNodeArray(Or(B||e.emptyArray,V))),y=K.kind===201?k(K):K;y.jsDoc=K.jsDoc,y.jsDocCache=K.jsDocCache,fe.insertJsdocCommentBefore(R,y,m)}function k(fe){return fe.parent.kind===158?fe.parent:fe.parent.parent}function P(fe,R){if(fe.kind!==R.kind)return;switch(fe.kind){case 310:{var K=fe,z=R;return e.isIdentifier(K.name)&&e.isIdentifier(z.name)&&K.name.escapedText===z.name.escapedText?e.createJSDocParamTag(z.name,z.isBracketed,z.typeExpression,K.comment):void 0}case 311:return e.createJSDocReturnTag(R.typeExpression,fe.comment)}}function h(fe,R,K){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,fe,R,R.getSourceFiles(),K),function(z){return z.kind!==0?e.tryCast(z.node,e.isIdentifier):void 0})}function Y(fe,R,K){var z=h(fe,R,K);return J(R,z,K).single()}function ne(fe,R,K,z){var Ee=$(fe,R,K,z);return Ee&&J(K,Ee,z).parameters(fe)||fe.parameters.map(function(B){return{declaration:B,type:e.isIdentifier(B.name)?Y(B.name,K,z):K.getTypeChecker().getAnyType()}})}function $(fe,R,K,z){var Ee;switch(fe.kind){case 161:Ee=e.findChildOfKind(fe,128,R);break;case 201:case 200:var B=fe.parent;Ee=e.isVariableDeclaration(B)&&e.isIdentifier(B.name)?B.name:fe.name;break;case 243:case 160:Ee=fe.name;break}return Ee?h(Ee,K,z):void 0}function J(fe,R,K){var z=fe.getTypeChecker(),Ee={string:function(){return z.getStringType()},number:function(){return z.getNumberType()},Array:function(ce){return z.createArrayType(ce)},Promise:function(ce){return z.createPromiseType(ce)}},B=[z.getStringType(),z.getNumberType(),z.createArrayType(z.getAnyType()),z.createPromiseType(z.getAnyType())];return{single:y,parameters:L,thisParameter:C};function V(){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 m(ae){for(var ce=e.createUnderscoreEscapedMap(),Le=0,Je=ae;Le<Je.length;Le++){var Ze=Je[Le];Ze.properties&&Ze.properties.forEach(function(cn,$e){ce.has($e)||ce.set($e,[]),ce.get($e).push(cn)})}var Ue=e.createUnderscoreEscapedMap();return ce.forEach(function(cn,$e){Ue.set($e,m(cn))}),{isNumber:ae.some(function(cn){return cn.isNumber}),isString:ae.some(function(cn){return cn.isString}),isNumberOrString:ae.some(function(cn){return cn.isNumberOrString}),candidateTypes:e.flatMap(ae,function(cn){return cn.candidateTypes}),properties:Ue,calls:e.flatMap(ae,function(cn){return cn.calls}),constructs:e.flatMap(ae,function(cn){return cn.constructs}),numberIndex:e.forEach(ae,function(cn){return cn.numberIndex}),stringIndex:e.forEach(ae,function(cn){return cn.stringIndex}),candidateThisTypes:e.flatMap(ae,function(cn){return cn.candidateThisTypes}),inferredTypes:void 0}}function y(){return Z(_(R))}function L(ae){if(R.length===0||!ae.parameters)return;for(var ce=V(),Le=0,Je=R;Le<Je.length;Le++){var Ze=Je[Le];K.throwIfCancellationRequested(),b(Ze,ce)}var Ue=Or(ce.constructs||[],ce.calls||[]);return ae.parameters.map(function(cn,$e){for(var sn=[],he=e.isRestParameter(cn),ke=!1,G=0,c=Ue;G<c.length;G++){var O=c[G];if(O.argumentTypes.length<=$e)ke=e.isInJSFile(ae),sn.push(z.getUndefinedType());else if(he)for(var ee=$e;ee<O.argumentTypes.length;ee++)sn.push(z.getBaseTypeOfLiteralType(O.argumentTypes[ee]));else sn.push(z.getBaseTypeOfLiteralType(O.argumentTypes[$e]))}if(e.isIdentifier(cn.name)){var Te=_(h(cn.name,fe,K));sn.push.apply(sn,he?e.mapDefined(Te,z.getElementTypeOfArrayType):Te)}var Ne=Z(sn);return{type:he?z.createArrayType(Ne):Ne,isOptional:ke&&!he,declaration:cn}})}function C(){for(var ae=V(),ce=0,Le=R;ce<Le.length;ce++){var Je=Le[ce];K.throwIfCancellationRequested(),b(Je,ae)}return Z(ae.candidateThisTypes||e.emptyArray)}function _(ae){for(var ce=V(),Le=0,Je=ae;Le<Je.length;Le++){var Ze=Je[Le];K.throwIfCancellationRequested(),b(Ze,ce)}return Ae(ce)}function b(ae,ce){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(ae);)ae=ae.parent;switch(ae.parent.kind){case 225:Pn(ce,z.getVoidType());break;case 207:ce.isNumber=!0;break;case 206:T(ae.parent,ce);break;case 208:Q(ae,ae.parent,ce);break;case 275:case 276:N(ae.parent,ce);break;case 195:case 196:ae.parent.expression===ae?X(ae.parent,ce):D(ae,ce);break;case 193:pe(ae.parent,ce);break;case 194:S(ae.parent,ae,ce);break;case 279:case 280:v(ae.parent,ce);break;case 158:U(ae.parent,ce);break;case 241:{var Le=ae.parent,Je=Le.name,Ze=Le.initializer;if(ae===Je){Ze&&Pn(ce,z.getTypeAtLocation(Ze));break}}default:return D(ae,ce)}}function D(ae,ce){e.isExpressionNode(ae)&&Pn(ce,z.getContextualType(ae))}function T(ae,ce){switch(ae.operator){case 45:case 46:case 40:case 54:ce.isNumber=!0;break;case 39:ce.isNumberOrString=!0;break}}function Q(ae,ce,Le){switch(ce.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 64:case 66:case 65:case 67:case 68:case 72:case 73:case 74:case 69:case 71:case 70:case 40:case 29:case 32:case 31:case 33:var Je=z.getTypeAtLocation(ce.left===ae?ce.right:ce.left);Je.flags&1056?Pn(Le,Je):Le.isNumber=!0;break;case 63:case 39:var Ze=z.getTypeAtLocation(ce.left===ae?ce.right:ce.left);Ze.flags&1056?Pn(Le,Ze):Ze.flags&296?Le.isNumber=!0:Ze.flags&132?Le.isString=!0:Ze.flags&1||(Le.isNumberOrString=!0);break;case 62:case 34:case 36:case 37:case 35:Pn(Le,z.getTypeAtLocation(ce.left===ae?ce.right:ce.left));break;case 96:ae===ce.left&&(Le.isString=!0);break;case 56:case 60:ae===ce.left&&(ae.parent.parent.kind===241||e.isAssignmentExpression(ae.parent.parent,!0))&&Pn(Le,z.getTypeAtLocation(ce.right));break;case 55:case 27:case 97:break}}function N(ae,ce){Pn(ce,z.getTypeAtLocation(ae.parent.parent.expression))}function X(ae,ce){var Le={argumentTypes:[],return_:V()};if(ae.arguments)for(var Je=0,Ze=ae.arguments;Je<Ze.length;Je++){var Ue=Ze[Je];Le.argumentTypes.push(z.getTypeAtLocation(Ue))}b(ae,Le.return_),ae.kind===195?(ce.calls||(ce.calls=[])).push(Le):(ce.constructs||(ce.constructs=[])).push(Le)}function pe(ae,ce){var Le=e.escapeLeadingUnderscores(ae.name.text);ce.properties||(ce.properties=e.createUnderscoreEscapedMap());var Je=ce.properties.get(Le)||V();b(ae,Je),ce.properties.set(Le,Je)}function S(ae,ce,Le){if(ce===ae.argumentExpression){Le.isNumberOrString=!0;return}else{var Je=z.getTypeAtLocation(ae.argumentExpression),Ze=V();b(ae,Ze),Je.flags&296?Le.numberIndex=Ze:Le.stringIndex=Ze}}function v(ae,ce){var Le=e.isVariableDeclaration(ae.parent.parent)?ae.parent.parent:ae.parent;Xn(ce,z.getTypeAtLocation(Le))}function U(ae,ce){Xn(ce,z.getTypeAtLocation(ae.parent))}function de(ae,ce){for(var Le=[],Je=0,Ze=ae;Je<Ze.length;Je++)for(var Ue=Ze[Je],cn=0,$e=ce;cn<$e.length;cn++){var sn=$e[cn],he=sn.high,ke=sn.low;he(Ue)&&(e.Debug.assert(!ke(Ue),"Priority can't have both low and high"),Le.push(ke))}return ae.filter(function(G){return Le.every(function(c){return!c(G)})})}function Ce(ae){return Z(Ae(ae))}function Z(ae){if(!ae.length)return z.getAnyType();var ce=z.getUnionType([z.getStringType(),z.getNumberType()]),Le=[{high:function(cn){return cn===z.getStringType()||cn===z.getNumberType()},low:function(cn){return cn===ce}},{high:function(cn){return!(cn.flags&(1|16384))},low:function(cn){return!!(cn.flags&(1|16384))}},{high:function(cn){return!(cn.flags&(98304|1|16384))&&!(z.getObjectFlags(cn)&16)},low:function(cn){return!!(z.getObjectFlags(cn)&16)}}],Je=de(ae,Le),Ze=Je.filter(function(Ue){return z.getObjectFlags(Ue)&16});return Ze.length&&(Je=Je.filter(function(Ue){return!(z.getObjectFlags(Ue)&16)}),Je.push(Re(Ze))),z.getWidenedType(z.getUnionType(Je.map(z.getBaseTypeOfLiteralType),2))}function Re(ae){if(ae.length===1)return ae[0];for(var ce=[],Le=[],Je=[],Ze=[],Ue=!1,cn=!1,$e=e.createMultiMap(),sn=0,he=ae;sn<he.length;sn++){for(var ke=he[sn],G=0,c=z.getPropertiesOfType(ke);G<c.length;G++){var O=c[G];$e.add(O.name,z.getTypeOfSymbolAtLocation(O,O.valueDeclaration))}ce.push.apply(ce,z.getSignaturesOfType(ke,0)),Le.push.apply(Le,z.getSignaturesOfType(ke,1)),ke.stringIndexInfo&&(Je.push(ke.stringIndexInfo.type),Ue=Ue||ke.stringIndexInfo.isReadonly),ke.numberIndexInfo&&(Ze.push(ke.numberIndexInfo.type),cn=cn||ke.numberIndexInfo.isReadonly)}var ee=e.mapEntries($e,function(Te,Ne){var ze=Ne.length<ae.length?16777216:0,bn=z.createSymbol(4|ze,Te);return bn.type=z.getUnionType(Ne),[Te,bn]});return z.createAnonymousType(ae[0].symbol,ee,ce,Le,Je.length?z.createIndexInfo(z.getUnionType(Je),Ue):void 0,Ze.length?z.createIndexInfo(z.getUnionType(Ze),cn):void 0)}function Ae(ae){var ce=[];return ae.isNumber&&ce.push(z.getNumberType()),ae.isString&&ce.push(z.getStringType()),ae.isNumberOrString&&ce.push(z.getUnionType([z.getStringType(),z.getNumberType()])),ae.numberIndex&&ce.push(z.createArrayType(Ce(ae.numberIndex))),(ae.properties&&ae.properties.size||ae.calls&&ae.calls.length||ae.constructs&&ae.constructs.length||ae.stringIndex)&&ce.push(We(ae)),ce.push.apply(ce,(ae.candidateTypes||[]).map(function(Le){return z.getBaseTypeOfLiteralType(Le)})),ce.push.apply(ce,be(ae)),ce}function We(ae){var ce=e.createUnderscoreEscapedMap();ae.properties&&ae.properties.forEach(function(Ue,cn){var $e=z.createSymbol(4,cn);$e.type=Ce(Ue),ce.set(cn,$e)});var Le=ae.calls?[en(ae.calls)]:[],Je=ae.constructs?[en(ae.constructs)]:[],Ze=ae.stringIndex&&z.createIndexInfo(Ce(ae.stringIndex),!1);return z.createAnonymousType(void 0,ce,Le,Je,Ze,void 0)}function be(ae){if(!ae.properties||!ae.properties.size)return[];var ce=B.filter(function(Le){return Ge(Le,ae)});return 0<ce.length&&ce.length<3?ce.map(function(Le){return x(Le,ae)}):[]}function Ge(ae,ce){return ce.properties?!e.forEachEntry(ce.properties,function(Le,Je){var Ze=z.getTypeOfPropertyOfType(ae,Je);if(!Ze)return!0;if(Le.calls){var Ue=z.getSignaturesOfType(Ze,0);return!Ue.length||!z.isTypeAssignableTo(Ze,a(Le.calls))}else return!z.isTypeAssignableTo(Ze,Ce(Le))}):!1}function x(ae,ce){if(!(e.getObjectFlags(ae)&4)||!ce.properties)return ae;var Le=ae.target,Je=e.singleOrUndefined(Le.typeParameters);if(!Je)return ae;var Ze=[];return ce.properties.forEach(function(Ue,cn){var $e=z.getTypeOfPropertyOfType(Le,cn);e.Debug.assert(!!$e,"generic should have all the properties of its reference."),Ze.push.apply(Ze,j($e,Ce(Ue),Je))}),Ee[ae.symbol.escapedName](Z(Ze))}function j(ae,ce,Le){if(ae===Le)return[ce];if(ae.flags&3145728)return e.flatMap(ae.types,function(he){return j(he,ce,Le)});if(e.getObjectFlags(ae)&4&&e.getObjectFlags(ce)&4){var Je=z.getTypeArguments(ae),Ze=z.getTypeArguments(ce),Ue=[];if(Je&&Ze)for(var cn=0;cn<Je.length;cn++)Ze[cn]&&Ue.push.apply(Ue,j(Je[cn],Ze[cn],Le));return Ue}var $e=z.getSignaturesOfType(ae,0),sn=z.getSignaturesOfType(ce,0);return $e.length===1&&sn.length===1?Oe($e[0],sn[0],Le):[]}function Oe(ae,ce,Le){for(var Je=[],Ze=0;Ze<ae.parameters.length;Ze++){var Ue=ae.parameters[Ze],cn=ce.parameters[Ze],$e=ae.declaration&&e.isRestParameter(ae.declaration.parameters[Ze]);if(!cn)break;var sn=z.getTypeOfSymbolAtLocation(Ue,Ue.valueDeclaration),he=$e&&z.getElementTypeOfArrayType(sn);he&&(sn=he);var ke=cn.type||z.getTypeOfSymbolAtLocation(cn,cn.valueDeclaration);Je.push.apply(Je,j(sn,ke,Le))}var G=z.getReturnTypeOfSignature(ae),c=z.getReturnTypeOfSignature(ce);return Je.push.apply(Je,j(G,c,Le)),Je}function a(ae){return z.createAnonymousType(void 0,e.createSymbolTable(),[en(ae)],e.emptyArray,void 0,void 0)}function en(ae){for(var ce=[],Le=Math.max.apply(Math,ae.map(function(cn){return cn.argumentTypes.length})),Je=function($e){var sn=z.createSymbol(1,e.escapeLeadingUnderscores("arg"+$e));sn.type=Z(ae.map(function(he){return he.argumentTypes[$e]||z.getUndefinedType()})),ae.some(function(he){return he.argumentTypes[$e]===void 0})&&(sn.flags|=16777216),ce.push(sn)},Ze=0;Ze<Le;Ze++)Je(Ze);var Ue=Ce(m(ae.map(function(cn){return cn.return_})));return z.createSignature(void 0,void 0,void 0,ce,Ue,void 0,Le,0)}function Pn(ae,ce){ce&&!(ce.flags&1)&&!(ce.flags&131072)&&(ae.candidateTypes||(ae.candidateTypes=[])).push(ce)}function Xn(ae,ce){ce&&!(ce.flags&1)&&!(ce.flags&131072)&&(ae.candidateThisTypes||(ae.candidateThisTypes=[])).push(ce)}}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="convertFunctionToEs6Class",Se=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ie){var d=e.textChanges.ChangeTracker.with(ie,function(H){return Fe(H,ie.sourceFile,ie.span.start,ie.program.getTypeChecker())});return[F.createCodeFixAction(qe,d,e.Diagnostics.Convert_function_to_an_ES2015_class,qe,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[qe],getAllCodeActions:function(ie){return F.codeFixAll(ie,Se,function(d,H){return Fe(d,H.file,H.start,ie.program.getTypeChecker())})}});function Fe(ve,ie,d,H){var Pe=H.getSymbolAtLocation(e.getTokenAtPosition(ie,d));if(!Pe||!(Pe.flags&(16|3)))return;var I=Pe.valueDeclaration,_e,re;switch(I.kind){case 243:_e=I,ve.delete(ie,I),re=k(I);break;case 241:_e=I.parent.parent,re=w(I),I.parent.declarations.length===1?(e.copyLeadingComments(_e,re,ie),ve.delete(ie,_e)):ve.delete(ie,I);break}if(!re)return;e.copyLeadingComments(I,re,ie),ve.insertNodeAfter(ie,_e,re);function se(P){var h=[];return P.members&&P.members.forEach(function($){var J=ne($,void 0);J&&h.push(J)}),P.exports&&P.exports.forEach(function($){var J=ne($,[e.createToken(119)]);J&&h.push(J)}),h;function Y($,J){return e.isFunctionLike(J)}function ne($,J){if(!($.flags&8192))return;var fe=$.valueDeclaration,R=fe.parent;if(!Y(fe,R.right))return;var K=R.parent&&R.parent.kind===225?R.parent:R;if(ve.delete(ie,K),!R.right)return e.createProperty([],J,$.name,void 0,void 0,void 0);switch(R.right.kind){case 200:{var z=R.right,Ee=e.concatenate(J,He(z,125)),B=e.createMethod(void 0,Ee,void 0,fe.name,void 0,void 0,z.parameters,void 0,z.body);return e.copyLeadingComments(R,B,ie),B}case 201:{var V=R.right,m=V.body,y=void 0;m.kind===222?y=m:y=e.createBlock([e.createReturn(m)]);var Ee=e.concatenate(J,He(V,125)),B=e.createMethod(void 0,Ee,void 0,fe.name,void 0,void 0,V.parameters,void 0,y);return e.copyLeadingComments(R,B,ie),B}default:{if(e.isSourceFileJS(ie))return;var L=e.createProperty(void 0,J,fe.name,void 0,void 0,R.right);return e.copyLeadingComments(R.parent,L,ie),L}}}}function w(P){var h=P.initializer;if(!h||h.kind!==200)return;if(P.name.kind!==75)return;var Y=se(P.symbol);h.body&&Y.unshift(e.createConstructor(void 0,void 0,h.parameters,h.body));var ne=He(_e,88),$=e.createClassDeclaration(void 0,ne,P.name,void 0,void 0,Y);return $}function k(P){var h=se(Pe);P.body&&h.unshift(e.createConstructor(void 0,void 0,P.parameters,P.body));var Y=He(P,88),ne=e.createClassDeclaration(void 0,Y,P.name,void 0,void 0,h);return ne}}function He(ve,ie){return e.filter(ve.modifiers,function(d){return d.kind===ie})}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="convertToAsyncFunction",Se=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],Fe=!0;F.registerCodeFix({errorCodes:Se,getCodeActions:function(b){Fe=!0;var D=e.textChanges.ChangeTracker.with(b,function(T){return ve(T,b.sourceFile,b.span.start,b.program.getTypeChecker(),b)});return Fe?[F.createCodeFixAction(qe,D,e.Diagnostics.Convert_to_async_function,qe,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[qe],getAllCodeActions:function(b){return F.codeFixAll(b,Se,function(D,T){return ve(D,T.file,T.start,b.program.getTypeChecker(),b)})}});var He;(function(_){_[_.Identifier=0]="Identifier",_[_.BindingPattern=1]="BindingPattern"})(He||(He={}));function ve(_,b,D,T,Q){var N=e.getTokenAtPosition(b,D),X;if(e.isIdentifier(N)&&e.isVariableDeclaration(N.parent)&&N.parent.initializer&&e.isFunctionLikeDeclaration(N.parent.initializer)?X=N.parent.initializer:X=e.tryCast(e.getContainingFunction(e.getTokenAtPosition(b,D)),e.isFunctionLikeDeclaration),!X)return;var pe=e.createMap(),S=e.createMap(),v=[],U=e.isInJSFile(X),de=H(X,T),Ce=_e(X,T,pe,Q,de,S,v),Z=d(pe),Re=Ce.body&&e.isBlock(Ce.body)?ie(Ce.body):e.emptyArray,Ae={checker:T,synthNamesMap:pe,allVarNames:v,setOfExpressionsToReturn:de,constIdentifiers:Z,originalTypeMap:S,isInJSFile:U};if(!Re.length)return;_.insertLastModifierBefore(b,125,X);function We(Oe,a){var en=w(Oe,Ae,Oe);_.replaceNodeWithNodes(b,a,en)}for(var be=function(a){e.forEachChild(a,function en(Pn){e.isCallExpression(Pn)?We(Pn,a):e.isFunctionLike(Pn)||e.forEachChild(Pn,en)})},Ge=0,x=Re;Ge<x.length;Ge++){var j=x[Ge];be(j)}}function ie(_){var b=[];return e.forEachReturnStatement(_,function(D){e.isReturnStatementWithFixablePromiseHandler(D)&&b.push(D)}),b}function d(_){var b=[];return _.forEach(function(D){D.numberOfAssignmentsOriginal===0&&b.push(D.identifier)}),b}function H(_,b){if(!_.body)return e.createMap();var D=e.createMap();return e.forEachChild(_.body,function T(Q){Pe(Q,b,"then")?(D.set(e.getNodeId(Q).toString(),!0),e.forEach(Q.arguments,T)):Pe(Q,b,"catch")?(D.set(e.getNodeId(Q).toString(),!0),e.forEachChild(Q,T)):Pe(Q,b)?D.set(e.getNodeId(Q).toString(),!0):e.forEachChild(Q,T)}),D}function Pe(_,b,D){var T=D?e.isCallExpression(_):e.isExpression(_),Q=T&&(!D||e.hasPropertyAccessExpressionWithName(_,D)),N=Q&&b.getTypeAtLocation(_);return!!(N&&b.getPromisedTypeOfPromise(N))}function I(_,b){return _.valueDeclaration&&_.valueDeclaration.getSourceFile()===b}function _e(_,b,D,T,Q,N,X){var pe=e.createMap(),S=e.createMap();return e.forEachChild(_,function de(Ce){if(!e.isIdentifier(Ce)){e.forEachChild(Ce,de);return}var Z=b.getSymbolAtLocation(Ce),Re=Z&&I(Z,T.sourceFile);if(Z&&Re){var Ae=b.getTypeAtLocation(Ce),We=R(Ae,b),be=e.getSymbolId(Z).toString();if(We&&!e.isFunctionLikeDeclaration(Ce.parent)&&!D.has(be)){var Ge=e.firstOrUndefined(We.parameters),x=Ge&&e.isParameter(Ge.valueDeclaration)&&e.tryCast(Ge.valueDeclaration.name,e.isIdentifier)||e.createOptimisticUniqueName("result"),j=se(x,S);D.set(be,j),X.push({identifier:j.identifier,symbol:Z}),re(S,x.text,Z)}else if(Ce.parent&&(e.isParameter(Ce.parent)||e.isVariableDeclaration(Ce.parent)||e.isBindingElement(Ce.parent))){var Oe=Ce.text,a=S.get(Oe);if(a&&a.some(function(Xn){return Xn!==Z})){var en=se(Ce,S);pe.set(be,en.identifier),D.set(be,en),X.push({identifier:en.identifier,symbol:Z}),re(S,Oe,Z)}else{var Pn=e.getSynthesizedDeepClone(Ce);pe.set(be,Pn),D.set(be,m(Pn,[],X.filter(function(Xn){return Xn.identifier.text===Ce.text}).length)),(e.isParameter(Ce.parent)&&v(Ce.parent.parent)||e.isVariableDeclaration(Ce.parent))&&(X.push({identifier:Pn,symbol:Z}),re(S,Oe,Z))}}}}),e.getSynthesizedDeepCloneWithRenames(_,!0,pe,b,U);function v(de){var Ce=de.parent;if(e.isCallExpression(Ce)||e.isIdentifier(Ce)&&!Q.get(e.getNodeId(Ce).toString())){var Z=b.getTypeAtLocation(Ce),Re=Z&&b.getPromisedTypeOfPromise(Z);return!!Re}return!1}function U(de,Ce){if(e.isIdentifier(de)){var Z=b.getSymbolAtLocation(de),Re=Z&&e.getSymbolId(Z).toString(),Ae=Z&&D.get(Re);if(Ae){var We=b.getTypeAtLocation(de);N.set(e.getNodeId(Ce).toString(),We)}}var be=Q.get(e.getNodeId(de).toString());be!==void 0&&(Q.delete(e.getNodeId(de).toString()),Q.set(e.getNodeId(Ce).toString(),be))}}function re(_,b,D){_.has(b)?_.get(b).push(D):_.set(b,[D])}function se(_,b){var D=(b.get(_.text)||e.emptyArray).length,T=0,Q=D===0?_:e.createIdentifier(_.text+"_"+D);return m(Q,[],T)}function w(_,b,D,T){if(!_)return e.emptyArray;var Q=e.isIdentifier(_)&&b.originalTypeMap.get(e.getNodeId(_).toString()),N=Q||b.checker.getTypeAtLocation(_);return e.isCallExpression(_)&&e.hasPropertyAccessExpressionWithName(_,"then")&&N&&!!b.checker.getPromisedTypeOfPromise(N)?Y(_,b,D,T):e.isCallExpression(_)&&e.hasPropertyAccessExpressionWithName(_,"catch")&&N&&!!b.checker.getPromisedTypeOfPromise(N)?k(_,b,T):e.isPropertyAccessExpression(_)?w(_.expression,b,D,T):N&&b.checker.getPromisedTypeOfPromise(N)?$(_,b,T):(Fe=!1,e.emptyArray)}function k(_,b,D){var T=_.arguments[0],Q=Ee(T,b),N=b.setOfExpressionsToReturn.get(e.getNodeId(_).toString()),X;D&&!N&&(L(D)?(X=D,b.synthNamesMap.forEach(function(j,Oe){if(j.identifier.text===D.identifier.text){var a=h(D);b.synthNamesMap.set(Oe,a)}})):X=m(e.createOptimisticUniqueName("result"),D.types),X.numberOfAssignmentsOriginal=2,b.constIdentifiers.some(function(j){return j.text===X.identifier.text})&&b.constIdentifiers.push(h(X).identifier));var pe=e.createBlock(w(_.expression,b,_,X)),S=fe(T,X,Q,_,b),v=Q?L(Q)?Q.identifier.text:Q.bindingPattern:"e",U=e.createVariableDeclaration(v),de=e.createCatchClause(U,e.createBlock(S)),Ce,Z;if(X&&!N){Z=e.getSynthesizedDeepClone(X.identifier);var Re=X.types,Ae=b.checker.getUnionType(Re,2),We=b.isInJSFile?void 0:b.checker.typeToTypeNode(Ae),be=[e.createVariableDeclaration(Z,We)];Ce=e.createVariableStatement(void 0,e.createVariableDeclarationList(be,1))}var Ge=e.createTry(pe,de,void 0),x=D&&Z&&C(D)&&e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepCloneWithRenames(D.bindingPattern),void 0,Z)],2));return e.compact([Ce,Ge,x])}function P(_){return e.isIdentifier(_)?[_.text]:e.flatMap(_.elements,function(b){return e.isOmittedExpression(b)?[]:P(b.name)})}function h(_){var b=e.createOptimisticUniqueName(_.identifier.text);return m(b)}function Y(_,b,D,T){var Q=_.arguments,N=Q[0],X=Q[1];if(!N)return w(_.expression,b,D);var pe=Ee(N,b),S=fe(N,T,pe,_,b);if(X){var v=Ee(X,b),U=e.createBlock(w(_.expression,b,_,pe).concat(S)),de=fe(X,T,v,_,b),Ce=v?L(v)?v.identifier.text:v.bindingPattern:"e",Z=e.createVariableDeclaration(Ce),Re=e.createCatchClause(Z,e.createBlock(de));return[e.createTry(U,Re,void 0)]}return w(_.expression,b,_,pe).concat(S)}function ne(_,b){var D=P(V(_)),T=b.some(function(Q){return e.contains(D,Q.text)});return T?2:1}function $(_,b,D){var T=b.setOfExpressionsToReturn.get(e.getNodeId(_).toString()),Q=_.original?_.original.parent:_.parent;return D&&!T&&(!Q||e.isPropertyAccessExpression(Q))?J(D,e.createAwait(_),b):!D&&!T&&(!Q||e.isPropertyAccessExpression(Q))?[e.createStatement(e.createAwait(_))]:[e.createReturn(e.getSynthesizedDeepClone(_))]}function J(_,b,D){return!_||B(_)?[e.createStatement(b)]:L(_)&&_.types.length<_.numberOfAssignmentsOriginal?[e.createStatement(e.createAssignment(e.getSynthesizedDeepClone(_.identifier),b))]:[e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(V(_)),void 0,b)],ne(_,D.constIdentifiers)))]}function fe(_,b,D,T,Q){var N=Q.setOfExpressionsToReturn.get(e.getNodeId(T).toString());switch(_.kind){case 99:break;case 75:if(!D)break;var X=e.createCall(e.getSynthesizedDeepClone(_),void 0,L(D)?[D.identifier]:[]);if(N)return[e.createReturn(X)];var pe=Q.originalTypeMap.get(e.getNodeId(_).toString())||Q.checker.getTypeAtLocation(_),S=Q.checker.getSignaturesOfType(pe,0);if(!S.length){Fe=!1;break}var v=S[0].getReturnType(),U=J(b,e.createAwait(X),Q);return b&&b.types.push(v),U;case 200:case 201:{var de=_.body;if(e.isBlock(de)){for(var Ce=[],Z=!1,Re=0,Ae=de.statements;Re<Ae.length;Re++){var We=Ae[Re];e.isReturnStatement(We)&&(Z=!0),e.isReturnStatementWithFixablePromiseHandler(We)?Ce=Ce.concat(z(Q,[We],b)):Ce.push(We)}return N?Ce.map(function(Pn){return e.getSynthesizedDeepClone(Pn)}):K(Ce,b,Q,Z)}else{var be=e.isFixablePromiseHandler(de)?[e.createReturn(de)]:e.emptyArray,Ge=z(Q,be,b);if(Ge.length>0)return Ge;var x=Q.checker.getTypeAtLocation(_),j=R(x,Q.checker).getReturnType(),Oe=e.getSynthesizedDeepClone(de),a=Q.checker.getPromisedTypeOfPromise(j)?e.createAwait(Oe):Oe;if(N)return[e.createReturn(a)];var en=J(b,a,Q);return b&&b.types.push(j),en}}default:Fe=!1;break}return e.emptyArray}function R(_,b){var D=b.getSignaturesOfType(_,0);return e.lastOrUndefined(D)}function K(_,b,D,T){for(var Q=[],N=0,X=_;N<X.length;N++){var pe=X[N];if(e.isReturnStatement(pe)){if(pe.expression){var S=Pe(pe.expression,D.checker)?e.createAwait(pe.expression):pe.expression;b===void 0?Q.push(e.createExpressionStatement(S)):Q.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(V(b),void 0,S)],ne(b,D.constIdentifiers))))}}else Q.push(e.getSynthesizedDeepClone(pe))}return!T&&b!==void 0&&Q.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(V(b),void 0,e.createIdentifier("undefined"))],ne(b,D.constIdentifiers)))),Q}function z(_,b,D){for(var T=[],Q=0,N=b;Q<N.length;Q++){var X=N[Q];e.forEachChild(X,function pe(S){if(e.isCallExpression(S)){var v=w(S,_,S,D);if(T=T.concat(v),T.length>0)return}else e.isFunctionLike(S)||e.forEachChild(S,pe)})}return T}function Ee(_,b){var D=0,T=[],Q;if(e.isFunctionLikeDeclaration(_)){if(_.parameters.length>0){var N=_.parameters[0].name;Q=X(N)}}else e.isIdentifier(_)&&(Q=pe(_));if(!Q||"identifier"in Q&&Q.identifier.text==="undefined")return;return Q;function X(U){if(e.isIdentifier(U))return pe(U);var de=e.flatMap(U.elements,function(Ce){return e.isOmittedExpression(Ce)?[]:[X(Ce.name)]});return y(U,de)}function pe(U){var de=v(U),Ce=S(de);if(!Ce)return m(U,T,D);var Z=b.synthNamesMap.get(e.getSymbolId(Ce).toString());return Z||m(U,T,D)}function S(U){return U.symbol?U.symbol:b.checker.getSymbolAtLocation(U)}function v(U){return U.original?U.original:U}}function B(_){return _?L(_)?!_.identifier.text:e.every(_.elements,B):!0}function V(_){return L(_)?_.identifier:_.bindingPattern}function m(_,b,D){return b===void 0&&(b=[]),D===void 0&&(D=0),{kind:0,identifier:_,types:b,numberOfAssignmentsOriginal:D}}function y(_,b,D){return b===void 0&&(b=e.emptyArray),D===void 0&&(D=[]),{kind:1,bindingPattern:_,elements:b,types:D}}function L(_){return _.kind===0}function C(_){return _.kind===1}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){F.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(y){var L=y.sourceFile,C=y.program,_=y.preferences,b=e.textChanges.ChangeTracker.with(y,function(D){var T=Se(L,C.getTypeChecker(),D,C.getCompilerOptions().target,e.getQuotePreference(L,_));if(T)for(var Q=0,N=C.getSourceFiles();Q<N.length;Q++){var X=N[Q];qe(X,L,D,e.getQuotePreference(X,_))}});return[F.createCodeFixActionNoFixId("convertToEs6Module",b,e.Diagnostics.Convert_to_ES6_module)]}});function qe(m,y,L,C){for(var _=0,b=m.imports;_<b.length;_++){var D=b[_],T=e.getResolvedModule(m,D.text);if(!T||T.resolvedFileName!==y.fileName)continue;var Q=e.importFromModuleSpecifier(D);switch(Q.kind){case 252:L.replaceNode(m,Q,e.makeImport(Q.name,void 0,D,C));break;case 195:e.isRequireCall(Q,!1)&&L.replaceNode(m,Q,e.createPropertyAccess(e.getSynthesizedDeepClone(Q),"default"));break}}}function Se(m,y,L,C,_){var b={original:$(m),additional:e.createMap()},D=Fe(m,y,b);He(m,D,L);for(var T=!1,Q=0,N=m.statements;Q<N.length;Q++){var X=N[Q],pe=ie(m,X,y,L,b,C,D,_);T=T||pe}return T}function Fe(m,y,L){var C=e.createMap();return ve(m,function(_){var b=_.name,D=b.text,T=b.originalKeywordKind;!C.has(D)&&(T!==void 0&&e.isNonContextualKeyword(T)||y.resolveName(_.name.text,_,111551,!0))&&C.set(D,ne("_"+D,L))}),C}function He(m,y,L){ve(m,function(C,_){if(_)return;var b=C.name.text;L.replaceNode(m,C,e.createIdentifier(y.get(b)||b))})}function ve(m,y){m.forEachChild(function L(C){if(e.isPropertyAccessExpression(C)&&e.isExportsOrModuleExportsOrAlias(m,C.expression)){var _=C.parent;y(C,e.isBinaryExpression(_)&&_.left===C&&_.operatorToken.kind===62)}C.forEachChild(L)})}function ie(m,y,L,C,_,b,D,T){switch(y.kind){case 224:return d(m,y,C,L,_,b,T),!1;case 225:{var Q=y.expression;switch(Q.kind){case 195:return e.isRequireCall(Q,!0)&&C.replaceNode(m,y,e.makeImport(void 0,void 0,Q.arguments[0],T)),!1;case 208:{var N=Q.operatorToken;return N.kind===62&&Pe(m,L,Q,C,D)}}}default:return!1}}function d(m,y,L,C,_,b,D){var T=y.declarationList,Q=!1,N=e.flatMap(T.declarations,function(X){var pe=X.name,S=X.initializer;if(S){if(e.isExportsOrModuleExportsOrAlias(m,S))return Q=!0,[];if(e.isRequireCall(S,!0))return Q=!0,h(m,pe,S.arguments[0],L,C,_,b,D);if(e.isPropertyAccessExpression(S)&&e.isRequireCall(S.expression,!0))return Q=!0,H(pe,S.name.text,S.expression.arguments[0],_,D)}return e.createVariableStatement(void 0,e.createVariableDeclarationList([X],T.flags))});Q&&L.replaceNodeWithNodes(m,y,N)}function H(m,y,L,C,_){switch(m.kind){case 188:case 189:{var b=ne(y,C);return[z(b,y,L,_),B(void 0,m,e.createIdentifier(b))]}case 75:return[z(m.text,y,L,_)];default:return e.Debug.assertNever(m,"Convert to ES6 module got invalid syntax form "+m.kind)}}function Pe(m,y,L,C,_){var b=L.left,D=L.right;if(!e.isPropertyAccessExpression(b))return!1;if(e.isExportsOrModuleExportsOrAlias(m,b))if(e.isExportsOrModuleExportsOrAlias(m,D))C.delete(m,L.parent);else{var T=e.isObjectLiteralExpression(D)?I(D):e.isRequireCall(D,!0)?re(D.arguments[0],y):void 0;return T?(C.replaceNodeWithNodes(m,L.parent,T[0]),T[1]):(C.replaceRangeWithText(m,e.createRange(b.getStart(m),D.pos),"export default"),!0)}else e.isExportsOrModuleExportsOrAlias(m,b.expression)&&_e(m,L,C,_);return!1}function I(m){var y=e.mapAllOrFail(m.properties,function(L){switch(L.kind){case 162:case 163:case 280:case 281:return;case 279:return e.isIdentifier(L.name)?P(L.name.text,L.initializer):void 0;case 160:return e.isIdentifier(L.name)?R(L.name.text,[e.createToken(88)],L):void 0;default:e.Debug.assertNever(L,"Convert to ES6 got invalid prop kind "+L.kind)}});return y&&[y,!1]}function _e(m,y,L,C){var _=y.left.name.text,b=C.get(_);if(b!==void 0){var D=[B(void 0,b,y.right),V([e.createExportSpecifier(b,_)])];L.replaceNodeWithNodes(m,y.parent,D)}else k(y,m,L)}function re(m,y){var L=m.text,C=y.getSymbolAtLocation(m),_=C?C.exports:e.emptyUnderscoreEscapedMap;return _.has("export=")?[[w(L)],!0]:_.has("default")?_.size>1?[[se(L),w(L)],!0]:[[w(L)],!0]:[[se(L)],!1]}function se(m){return V(void 0,m)}function w(m){return V([e.createExportSpecifier(void 0,"default")],m)}function k(m,y,L){var C=m.left,_=m.right,b=m.parent,D=C.name.text;if((e.isFunctionExpression(_)||e.isArrowFunction(_)||e.isClassExpression(_))&&(!_.name||_.name.text===D)){L.replaceRange(y,{pos:C.getStart(y),end:_.getStart(y)},e.createToken(88),{suffix:" "}),_.name||L.insertName(y,_,D);var T=e.findChildOfKind(b,26,y);T&&L.delete(y,T)}else L.replaceNodeRangeWithNodes(y,C.expression,e.findChildOfKind(C,24,y),[e.createToken(88),e.createToken(80)],{joiner:" ",suffix:" "})}function P(m,y){var L=[e.createToken(88)];switch(y.kind){case 200:{var C=y.name;if(C&&C.text!==m)return _()}case 201:return R(m,L,y);case 213:return K(m,L,y);default:return _()}function _(){return B(L,e.createIdentifier(m),y)}}function h(m,y,L,C,_,b,D,T){switch(y.kind){case 188:{var Q=e.mapAllOrFail(y.elements,function(X){return X.dotDotDotToken||X.initializer||X.propertyName&&!e.isIdentifier(X.propertyName)||!e.isIdentifier(X.name)?void 0:Ee(X.propertyName&&X.propertyName.text,X.name.text)});if(Q)return[e.makeImport(void 0,Q,L,T)]}case 189:{var N=ne(F.moduleSpecifierToValidIdentifier(L.text,D),b);return[e.makeImport(e.createIdentifier(N),void 0,L,T),B(void 0,e.getSynthesizedDeepClone(y),e.createIdentifier(N))]}case 75:return Y(m,y,L,C,_,b,T);default:return e.Debug.assertNever(y,"Convert to ES6 module got invalid name kind "+y.kind)}}function Y(m,y,L,C,_,b,D){for(var T=_.getSymbolAtLocation(y),Q=e.createMap(),N=!1,X=0,pe=b.original.get(y.text);X<pe.length;X++){var S=pe[X];if(_.getSymbolAtLocation(S)!==T||S===y)continue;var v=S.parent;if(e.isPropertyAccessExpression(v)){var U=v.expression,de=v.name.text;e.Debug.assert(U===S,"Didn't expect expression === use");var Ce=Q.get(de);Ce===void 0&&(Ce=ne(de,b),Q.set(de,Ce)),C.replaceNode(m,v,e.createIdentifier(Ce))}else N=!0}var Z=Q.size===0?void 0:e.arrayFrom(e.mapIterator(Q.entries(),function(Re){var Ae=Re[0],We=Re[1];return e.createImportSpecifier(Ae===We?void 0:e.createIdentifier(Ae),e.createIdentifier(We))}));return Z||(N=!0),[e.makeImport(N?e.getSynthesizedDeepClone(y):void 0,Z,L,D)]}function ne(m,y){for(;y.original.has(m)||y.additional.has(m);)m="_"+m;return y.additional.set(m,!0),m}function $(m){var y=e.createMultiMap();return J(m,function(L){return y.add(L.text,L)}),y}function J(m,y){e.isIdentifier(m)&&fe(m)&&y(m),m.forEachChild(function(L){return J(L,y)})}function fe(m){var y=m.parent;switch(y.kind){case 193:return y.name!==m;case 190:return y.propertyName!==m;case 257:return y.propertyName!==m;default:return!0}}function R(m,y,L){return e.createFunctionDeclaration(e.getSynthesizedDeepClones(L.decorators),e.concatenate(y,e.getSynthesizedDeepClones(L.modifiers)),e.getSynthesizedDeepClone(L.asteriskToken),m,e.getSynthesizedDeepClones(L.typeParameters),e.getSynthesizedDeepClones(L.parameters),e.getSynthesizedDeepClone(L.type),e.convertToFunctionBody(e.getSynthesizedDeepClone(L.body)))}function K(m,y,L){return e.createClassDeclaration(e.getSynthesizedDeepClones(L.decorators),e.concatenate(y,e.getSynthesizedDeepClones(L.modifiers)),m,e.getSynthesizedDeepClones(L.typeParameters),e.getSynthesizedDeepClones(L.heritageClauses),e.getSynthesizedDeepClones(L.members))}function z(m,y,L,C){return y==="default"?e.makeImport(e.createIdentifier(m),void 0,L,C):e.makeImport(void 0,[Ee(y,m)],L,C)}function Ee(m,y){return e.createImportSpecifier(m!==void 0&&m!==y?e.createIdentifier(m):void 0,e.createIdentifier(y))}function B(m,y,L){return e.createVariableStatement(m,e.createVariableDeclarationList([e.createVariableDeclaration(y,void 0,L)],2))}function V(m,y){return e.createExportDeclaration(void 0,void 0,m&&e.createNamedExports(m),y===void 0?void 0:e.createLiteral(y))}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="correctQualifiedNameToIndexedAccessType",Se=[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];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ie){var d=Fe(ie.sourceFile,ie.span.start);if(!d)return;var H=e.textChanges.ChangeTracker.with(ie,function(I){return He(I,ie.sourceFile,d)}),Pe=d.left.text+'["'+d.right.text+'"]';return[F.createCodeFixAction(qe,H,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,Pe],qe,e.Diagnostics.Rewrite_all_as_indexed_access_types)]},fixIds:[qe],getAllCodeActions:function(ie){return F.codeFixAll(ie,Se,function(d,H){var Pe=Fe(H.file,H.start);Pe&&He(d,H.file,Pe)})}});function Fe(ve,ie){var d=e.findAncestor(e.getTokenAtPosition(ve,ie),e.isQualifiedName);return e.Debug.assert(!!d,"Expected position to be owned by a qualified name."),e.isIdentifier(d.left)?d:void 0}function He(ve,ie,d){var H=d.right.text,Pe=e.createIndexedAccessTypeNode(e.createTypeReferenceNode(d.left,void 0),e.createLiteralTypeNode(e.createLiteral(H)));ve.replaceNode(ie,d,Pe)}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe=[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],Se="fixClassIncorrectlyImplementsInterface";F.registerCodeFix({errorCodes:qe,getCodeActions:function(H){var Pe=H.sourceFile,I=H.span,_e=Fe(Pe,I.start);return e.mapDefined(e.getClassImplementsHeritageClauseElements(_e),function(re){var se=e.textChanges.ChangeTracker.with(H,function(w){return ve(H,re,Pe,_e,w,H.preferences)});return se.length===0?void 0:F.createCodeFixAction(Se,se,[e.Diagnostics.Implement_interface_0,re.getText(Pe)],Se,e.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[Se],getAllCodeActions:function(H){var Pe=e.createMap();return F.codeFixAll(H,qe,function(I,_e){var re=Fe(_e.file,_e.start);if(e.addToSeen(Pe,e.getNodeId(re)))for(var se=0,w=e.getClassImplementsHeritageClauseElements(re);se<w.length;se++){var k=w[se];ve(H,k,_e.file,re,I,H.preferences)}})}});function Fe(d,H){return e.Debug.assertDefined(e.getContainingClass(e.getTokenAtPosition(d,H)),"There should be a containing class")}function He(d){return!(e.getModifierFlags(d.valueDeclaration)&8)}function ve(d,H,Pe,I,_e,re){var se=d.program.getTypeChecker(),w=ie(I,se),k=se.getTypeAtLocation(H),P=se.getPropertiesOfType(k),h=P.filter(e.and(He,function($){return!w.has($.escapedName)})),Y=se.getTypeAtLocation(I);Y.getNumberIndexType()||ne(k,1),Y.getStringIndexType()||ne(k,0),F.createMissingMemberNodes(I,h,d,re,function($){return _e.insertNodeAtClassStart(Pe,I,$)});function ne($,J){var fe=se.getIndexInfoOfType($,J);fe&&_e.insertNodeAtClassStart(Pe,I,se.indexInfoToIndexSignatureDeclaration(fe,J,I,void 0,F.getNoopSymbolTrackerWithResolver(d)))}}function ie(d,H){var Pe=e.getEffectiveBaseTypeNode(d);if(!Pe)return e.createSymbolTable();var I=H.getTypeAtLocation(Pe),_e=H.getPropertiesOfType(I);return e.createSymbolTable(_e.filter(He))}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){F.importFixId="fixMissingImport";var qe=[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];F.registerCodeFix({errorCodes:qe,getCodeActions:function(U){var de=U.errorCode,Ce=U.preferences,Z=U.sourceFile,Re=U.span,Ae=P(U,de,Re.start);if(!Ae)return;var We=Ae.fixes,be=Ae.symbolName,Ge=e.getQuotePreference(Z,Ce);return We.map(function(x){return B(U,Z,be,x,Ge)})},fixIds:[F.importFixId],getAllCodeActions:function(U){var de=U.sourceFile,Ce=U.preferences,Z=[],Re=[],Ae=e.createMap(),We=e.createMap();return F.eachDiagnostic(U,qe,function(be){var Ge=P(U,be.code,be.start);if(!Ge||!Ge.fixes.length)return;var x=Ge.fixes,j=Ge.symbolName,Oe=e.first(x);switch(Oe.kind){case 0:Z.push(Oe);break;case 1:Re.push(Oe);break;case 2:{var a=Oe.importClause,en=Oe.importKind,Pn=String(e.getNodeId(a)),Xn=Ae.get(Pn);Xn||Ae.set(Pn,Xn={importClause:a,defaultImport:void 0,namedImports:[]}),en===0?e.pushIfUnique(Xn.namedImports,j):(e.Debug.assert(Xn.defaultImport===void 0||Xn.defaultImport===j,"(Add to Existing) Default import should be missing or match symbolName"),Xn.defaultImport=j);break}case 3:{var ae=Oe.moduleSpecifier,en=Oe.importKind,Xn=We.get(ae);Xn||We.set(ae,Xn={defaultImport:void 0,namedImports:[],namespaceLikeImport:void 0});switch(en){case 1:e.Debug.assert(Xn.defaultImport===void 0||Xn.defaultImport===j,"(Add new) Default import should be missing or match symbolName"),Xn.defaultImport=j;break;case 0:e.pushIfUnique(Xn.namedImports,j);break;case 3:case 2:e.Debug.assert(Xn.namespaceLikeImport===void 0||Xn.namespaceLikeImport.name===j,"Namespacelike import shoudl be missing or match symbolName"),Xn.namespaceLikeImport={importKind:en,name:j};break}break}default:e.Debug.assertNever(Oe,"fix wasn't never - got kind "+Oe.kind)}}),F.createCombinedCodeActions(e.textChanges.ChangeTracker.with(U,function(be){for(var Ge=e.getQuotePreference(de,Ce),x=0,j=Z;x<j.length;x++){var Oe=j[x];y(be,de,Oe)}for(var a=0,en=Re;a<en.length;a++){var Oe=en[a];L(be,de,Oe,Ge)}Ae.forEach(function(Pn){var Xn=Pn.importClause,ae=Pn.defaultImport,ce=Pn.namedImports;m(be,de,Xn,ae,ce)}),We.forEach(function(Pn,Xn){_(be,de,Xn,Ge,Pn)})}))}});var Se;(function(v){v[v.UseNamespace=0]="UseNamespace",v[v.ImportType=1]="ImportType",v[v.AddToExisting=2]="AddToExisting",v[v.AddNew=3]="AddNew"})(Se||(Se={}));var Fe;(function(v){v[v.Named=0]="Named",v[v.Default=1]="Default",v[v.Namespace=2]="Namespace",v[v.Equals=3]="Equals",v[v.ConstEquals=4]="ConstEquals"})(Fe||(Fe={}));function He(v,U,de,Ce,Z,Re,Ae,We,be){var Ge=ie(de,v,U,Ce,de,Re.getCompilerOptions(),Re.getTypeChecker(),Re.getSourceFiles());e.Debug.assert(Ge.some(function(Oe){return Oe.moduleSymbol===U}),"Some exportInfo should match the specified moduleSymbol");var x=e.first(se(Re,de,We,Ge,Z,be)).moduleSpecifier,j=e.first(H(Ge,Ce,We,Re,de,Z,be));return{moduleSpecifier:x,codeAction:ve(B({host:Z,formatContext:Ae,preferences:be},de,Ce,j,e.getQuotePreference(de,be)))}}F.getImportCompletionAction=He;function ve(v){var U=v.description,de=v.changes,Ce=v.commands;return{description:U,changes:de,commands:Ce}}function ie(v,U,de,Ce,Z,Re,Ae,We){var be=[];return Q(Ae,We,function(Ge,x){if(x&&Ge!==de&&e.startsWith(Z.fileName,e.getDirectoryPath(x.fileName)))return;var j=fe(v,Ge,Ae,Re);j&&j.name===Ce&&e.skipAlias(j.symbol,Ae)===U&&be.push({moduleSymbol:Ge,importKind:j.kind,exportedSymbolIsTypeOnly:d(j.symbol,Ae)});for(var Oe=0,a=Ae.getExportsOfModule(Ge);Oe<a.length;Oe++){var en=a[Oe];en.name===Ce&&e.skipAlias(en,Ae)===U&&be.push({moduleSymbol:Ge,importKind:0,exportedSymbolIsTypeOnly:d(en,Ae)})}}),be}function d(v,U){return!(e.skipAlias(v,U).flags&111551)}function H(v,U,de,Ce,Z,Re,Ae){var We=Ce.getTypeChecker(),be=e.flatMap(v,function(Oe){return re(Oe,We,Z)}),Ge=de===void 0?void 0:Pe(be,U,de,We),x=I(be),j=x?[x]:w(v,be,Ce,Z,de,Re,Ae);return Or(Ge?[Ge]:e.emptyArray,j)}function Pe(v,U,de,Ce){return e.firstDefined(v,function(Z){var Re=Z.declaration,Ae=_e(Re);if(Ae){var We=Ce.getAliasedSymbol(Ce.getSymbolAtLocation(Ae));if(We&&We.exports.has(e.escapeLeadingUnderscores(U)))return{kind:0,namespacePrefix:Ae.text,position:de}}})}function I(v){return e.firstDefined(v,function(U){var de=U.declaration,Ce=U.importKind;if(de.kind!==253)return;var Z=de.importClause;if(!Z)return;var Re=Z.name,Ae=Z.namedBindings;return Ce===1&&!Re||Ce===0&&(!Ae||Ae.kind===256)?{kind:2,importClause:Z,importKind:Ce}:void 0})}function _e(v){if(v.kind===253){var U=v.importClause&&e.isImportClause(v.importClause)&&v.importClause.namedBindings;return U&&U.kind===255?U.name:void 0}else return v.name}function re(v,U,de){var Ce=v.moduleSymbol,Z=v.importKind,Re=v.exportedSymbolIsTypeOnly;return Re&&e.isSourceFileJS(de)?e.emptyArray:e.mapDefined(de.imports,function(Ae){var We=e.importFromModuleSpecifier(Ae);return(We.kind===253||We.kind===252)&&U.getSymbolAtLocation(Ae)===Ce?{declaration:We,importKind:Z}:void 0})}function se(v,U,de,Ce,Z,Re){var Ae=e.isSourceFileJS(U),We=S(U,v,Z).allowsImportingSpecifier,be=e.flatMap(Ce,function(Ge){var x=Ge.moduleSymbol,j=Ge.importKind,Oe=Ge.exportedSymbolIsTypeOnly;return e.moduleSpecifiers.getModuleSpecifiers(x,v.getCompilerOptions(),U,Z,v.getSourceFiles(),Re,v.redirectTargetsMap).map(function(a){return Oe&&Ae?{kind:1,moduleSpecifier:a,position:e.Debug.assertDefined(de,"position should be defined")}:{kind:3,moduleSpecifier:a,importKind:j}})});return e.sort(be,function(Ge,x){var j=We(Ge.moduleSpecifier),Oe=We(x.moduleSpecifier);return j&&!Oe?-1:Oe&&!j?1:Ge.moduleSpecifier.length-x.moduleSpecifier.length})}function w(v,U,de,Ce,Z,Re,Ae){var We=e.firstDefined(U,k);return We?[We]:se(de,Ce,Z,v,Re,Ae)}function k(v){var U=v.declaration,de=v.importKind,Ce=U.kind===253?U.moduleSpecifier:U.moduleReference.kind===263?U.moduleReference.expression:void 0;return Ce&&e.isStringLiteral(Ce)?{kind:3,moduleSpecifier:Ce.text,importKind:de}:void 0}function P(v,U,de){var Ce=e.getTokenAtPosition(v.sourceFile,de),Z=U===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?h(v,Ce):e.isIdentifier(Ce)?$(v,Ce):void 0;return Z&&ma(ma({},Z),{fixes:e.sort(Z.fixes,function(Re,Ae){return Re.kind-Ae.kind})})}function h(v,U){var de=v.sourceFile,Ce=v.program,Z=v.host,Re=v.preferences,Ae=Ce.getTypeChecker(),We=Y(U,Ae);if(!We)return;var be=Ae.getAliasedSymbol(We),Ge=We.name,x=[{moduleSymbol:be,importKind:ne(de,Ce.getCompilerOptions()),exportedSymbolIsTypeOnly:!1}],j=H(x,Ge,e.isIdentifier(U)?U.getStart(de):void 0,Ce,de,Z,Re);return{fixes:j,symbolName:Ge}}function Y(v,U){var de=e.isIdentifier(v)?U.getSymbolAtLocation(v):void 0;if(e.isUMDExportSymbol(de))return de;var Ce=v.parent;return e.isJsxOpeningLikeElement(Ce)&&Ce.tagName===v||e.isJsxOpeningFragment(Ce)?e.tryCast(U.resolveName(U.getJsxNamespace(Ce),e.isJsxOpeningLikeElement(Ce)?v:Ce,111551,!1),e.isUMDExportSymbol):void 0}function ne(v,U){if(e.getAllowSyntheticDefaultImports(U))return 1;var de=e.getEmitModuleKind(U);switch(de){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(v)?e.isExternalModule(v)?2:4:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;default:return e.Debug.assertNever(de,"Unexpected moduleKind "+de)}}function $(v,U){var de=v.sourceFile,Ce=v.program,Z=v.cancellationToken,Re=v.host,Ae=v.preferences,We=Ce.getTypeChecker(),be=e.isJsxOpeningLikeElement(U.parent)&&U.parent.tagName===U&&(e.isIntrinsicJsxName(U.text)||We.resolveName(U.text,U,67108863,!1))?We.getJsxNamespace(de):U.text;e.Debug.assert(be!=="default","'default' isn't a legal identifier and couldn't occur here");var Ge=J(be,e.getMeaningFromLocation(U),Z,de,We,Ce,Re),x=e.arrayFrom(e.flatMapIterator(Ge.entries(),function(j){var Oe=j[0],a=j[1];return H(a,be,U.getStart(de),Ce,de,Re,Ae)}));return{fixes:x,symbolName:be}}function J(v,U,de,Ce,Z,Re,Ae){var We=e.createMultiMap();function be(Ge,x,j){We.add(e.getUniqueSymbolId(x,Z).toString(),{moduleSymbol:Ge,importKind:j,exportedSymbolIsTypeOnly:d(x,Z)})}return T(Re,Ae,Ce,!0,function(Ge){de.throwIfCancellationRequested();var x=fe(Ce,Ge,Z,Re.getCompilerOptions());x&&x.name===v&&D(x.symbolForMeaning,U)&&be(Ge,x.symbol,x.kind);var j=Z.tryGetMemberInModuleExportsAndProperties(v,Ge);j&&D(j,U)&&be(Ge,j,0)}),We}function fe(v,U,de,Ce){var Z=R(v,U,de,Ce);if(!Z)return;var Re=Z.symbol,Ae=Z.kind,We=z(Re,U,de,Ce);return We&&ma({symbol:Re,kind:Ae},We)}function R(v,U,de,Ce){var Z=de.tryGetMemberInModuleExports("default",U);if(Z)return{symbol:Z,kind:1};var Re=de.resolveExternalModuleSymbol(U);return Re===U?void 0:{symbol:Re,kind:K(v,Ce,de)}}function K(v,U,de){if(e.getAllowSyntheticDefaultImports(U)&&e.getEmitModuleKind(U)>=e.ModuleKind.ES2015)return 1;if(e.isInJSFile(v))return e.isExternalModule(v)?1:4;for(var Ce=0,Z=v.statements;Ce<Z.length;Ce++){var Re=Z[Ce];if(e.isImportEqualsDeclaration(Re))return 3;if(e.isImportDeclaration(Re)&&Re.importClause&&Re.importClause.name){var Ae=de.getImmediateAliasedSymbol(Re.importClause.symbol);if(Ae&&Ae.name!=="default")return 1}}return 3}function z(v,U,de,Ce){var Z=e.getLocalSymbolForExportDefault(v);if(Z)return{symbolForMeaning:Z,name:Z.name};var Re=Ee(v);if(Re!==void 0)return{symbolForMeaning:v,name:Re};if(v.flags&2097152){var Ae=de.getImmediateAliasedSymbol(v);return Ae&&z(Ae,e.Debug.assertDefined(Ae.parent,"Alias targets of default exports must have a parent"),de,Ce)}return v.escapedName!=="default"&&v.escapedName!=="export="?{symbolForMeaning:v,name:v.getName()}:{symbolForMeaning:v,name:X(U,Ce.target)}}function Ee(v){return v.declarations&&e.firstDefined(v.declarations,function(U){if(e.isExportAssignment(U)){if(e.isIdentifier(U.expression))return U.expression.text}else if(e.isExportSpecifier(U))return e.Debug.assert(U.name.text==="default","Expected the specifier to be a default export"),U.propertyName&&U.propertyName.text})}function B(v,U,de,Ce,Z){var Re,Ae=e.textChanges.ChangeTracker.with(v,function(We){Re=V(We,U,de,Ce,Z)});return F.createCodeFixAction("import",Ae,Re,F.importFixId,e.Diagnostics.Add_all_missing_imports)}function V(v,U,de,Ce,Z){switch(Ce.kind){case 0:return y(v,U,Ce),[e.Diagnostics.Change_0_to_1,de,Ce.namespacePrefix+"."+de];case 1:return L(v,U,Ce,Z),[e.Diagnostics.Change_0_to_1,de,C(Ce.moduleSpecifier,Z)+de];case 2:{var Re=Ce.importClause,Ae=Ce.importKind;m(v,U,Re,Ae===1?de:void 0,Ae===0?[de]:e.emptyArray);var We=e.stripQuotes(Re.parent.moduleSpecifier.getText());return[Ae===1?e.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:e.Diagnostics.Add_0_to_existing_import_declaration_from_1,de,We]}case 3:{var Ae=Ce.importKind,be=Ce.moduleSpecifier;return _(v,U,be,Z,Ae===1?{defaultImport:de,namedImports:e.emptyArray,namespaceLikeImport:void 0}:Ae===0?{defaultImport:void 0,namedImports:[de],namespaceLikeImport:void 0}:{defaultImport:void 0,namedImports:e.emptyArray,namespaceLikeImport:{importKind:Ae,name:de}}),[Ae===1?e.Diagnostics.Import_default_0_from_module_1:e.Diagnostics.Import_0_from_module_1,de,be]}default:return e.Debug.assertNever(Ce,"Unexpected fix kind "+Ce.kind)}}function m(v,U,de,Ce,Z){if(Ce&&(e.Debug.assert(!de.name,"Default imports can't have names"),v.insertNodeAt(U,de.getStart(U),e.createIdentifier(Ce),{suffix:", "})),Z.length){var Re=Z.map(function(x){return e.createImportSpecifier(void 0,e.createIdentifier(x))});if(de.namedBindings&&e.cast(de.namedBindings,e.isNamedImports).elements.length)for(var Ae=0,We=Re;Ae<We.length;Ae++){var be=We[Ae];v.insertNodeInListAfter(U,e.last(e.cast(de.namedBindings,e.isNamedImports).elements),be)}else if(Re.length){var Ge=e.createNamedImports(Re);de.namedBindings?v.replaceNode(U,de.namedBindings,Ge):v.insertNodeAfter(U,e.Debug.assertDefined(de.name,"Named import specifiers must have names"),Ge)}}}function y(v,U,de){var Ce=de.namespacePrefix,Z=de.position;v.insertText(U,Z,Ce+".")}function L(v,U,de,Ce){var Z=de.moduleSpecifier,Re=de.position;v.insertText(U,Re,C(Z,Ce))}function C(v,U){var de=e.getQuoteFromPreference(U);return"import("+de+v+de+")."}function _(v,U,de,Ce,Z){var Re=Z.defaultImport,Ae=Z.namedImports,We=Z.namespaceLikeImport,be=e.makeStringLiteral(de,Ce);(Re!==void 0||Ae.length)&&e.insertImport(v,U,e.makeImport(Re===void 0?void 0:e.createIdentifier(Re),Ae.map(function(Ge){return e.createImportSpecifier(void 0,e.createIdentifier(Ge))}),de,Ce)),We&&e.insertImport(v,U,We.importKind===3?e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(We.name),e.createExternalModuleReference(be)):We.importKind===4?b(We.name,be):e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(We.name))),be))}function b(v,U){return e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createIdentifier(v),void 0,e.createCall(e.createIdentifier("require"),void 0,[U]))],2))}function D(v,U){var de=v.declarations;return e.some(de,function(Ce){return!!(e.getMeaningFromDeclaration(Ce)&U)})}function T(v,U,de,Ce,Z){var Re=0,Ae=Ce&&S(de,v,U),We=v.getSourceFiles(),be=U.getGlobalTypingsCacheLocation&&U.getGlobalTypingsCacheLocation();Q(v.getTypeChecker(),We,function(Ge,x){x===void 0?!Ae||Ae.allowsImportingAmbientModule(Ge,We)?Z(Ge):Ae&&Re++:x&&x!==de&&N(de.fileName,x.fileName,e.hostGetCanonicalFileName(U),be)&&(!Ae||Ae.allowsImportingSourceFile(x,We)?Z(Ge):Ae&&Re++)}),U.log&&U.log("forEachExternalModuleToImportFrom: filtered out "+Re+" modules by package.json contents")}F.forEachExternalModuleToImportFrom=T;function Q(v,U,de){for(var Ce=0,Z=v.getAmbientModules();Ce<Z.length;Ce++){var Re=Z[Ce];de(Re,void 0)}for(var Ae=0,We=U;Ae<We.length;Ae++){var be=We[Ae];e.isExternalOrCommonJsModule(be)&&de(v.getMergedSymbol(be.symbol),be)}}function N(v,U,de,Ce){var Z=e.forEachAncestorDirectory(U,function(Ae){return e.getBaseFileName(Ae)==="node_modules"?Ae:void 0}),Re=Z&&e.getDirectoryPath(de(Z));return Re===void 0||e.startsWith(de(v),Re)||!!Ce&&e.startsWith(de(Ce),Re)}function X(v,U){return pe(e.removeFileExtension(e.stripQuotes(v.name)),U)}F.moduleSymbolToValidIdentifier=X;function pe(v,U){var de=e.getBaseFileName(e.removeSuffix(v,"/index")),Ce="",Z=!0,Re=de.charCodeAt(0);e.isIdentifierStart(Re,U)?Ce+=String.fromCharCode(Re):Z=!1;for(var Ae=1;Ae<de.length;Ae++){var We=de.charCodeAt(Ae),be=e.isIdentifierPart(We,U);if(be){var Ge=String.fromCharCode(We);Z||(Ge=Ge.toUpperCase()),Ce+=Ge}Z=be}return e.isStringANonContextualKeyword(Ce)?"_"+Ce:Ce||"_"}F.moduleSpecifierToValidIdentifier=pe;function S(v,U,de){var Ce=de.getPackageJsonsVisibleToFile&&de.getPackageJsonsVisibleToFile(v.fileName)||e.getPackageJsonsVisibleToFile(v.fileName,de),Z=1|2|8,Re={directoryExists:e.maybeBind(de,de.directoryExists),fileExists:e.maybeBind(de,de.fileExists),getCurrentDirectory:e.maybeBind(de,de.getCurrentDirectory),readFile:e.maybeBind(de,de.readFile),useCaseSensitiveFileNames:e.maybeBind(de,de.useCaseSensitiveFileNames),getProbableSymlinks:e.maybeBind(de,de.getProbableSymlinks)||U.getProbableSymlinks,getGlobalTypingsCacheLocation:e.maybeBind(de,de.getGlobalTypingsCacheLocation)},Ae;return{allowsImportingAmbientModule:be,allowsImportingSourceFile:Ge,allowsImportingSpecifier:x};function We(en){for(var Pn=a(en),Xn=0,ae=Ce;Xn<ae.length;Xn++){var ce=ae[Xn];if(ce.has(Pn,Z)||ce.has(e.getTypesPackageName(Pn),Z))return!0}return!1}function be(en,Pn){if(!Ce.length)return!0;var Xn=en.valueDeclaration.getSourceFile(),ae=Oe(Xn.fileName,Pn);if(typeof ae=="undefined")return!0;var ce=e.stripQuotes(en.getName());return j(ce)?!0:We(ae)||We(ce)}function Ge(en,Pn){if(!Ce.length)return!0;var Xn=Oe(en.fileName,Pn);return Xn?We(Xn):!0}function x(en){return!Ce.length||j(en)||(e.pathIsRelative(en)||e.isRootedDiskPath(en))?!0:We(en)}function j(en){return!!(e.isSourceFileJS(v)&&e.JsTyping.nodeCoreModules.has(en)&&(Ae===void 0&&(Ae=e.consumesNodeCoreModules(v)),Ae))}function Oe(en,Pn){if(!e.stringContains(en,"node_modules"))return;var Xn=e.moduleSpecifiers.getNodeModulesPackageName(de.getCompilationSettings(),v.path,en,Re,Pn,U.redirectTargetsMap);if(!Xn)return;if(!e.pathIsRelative(Xn)&&!e.isRootedDiskPath(Xn))return a(Xn)}function a(en){var Pn=e.getPathComponents(e.getPackageNameFromTypesPackageName(en)).slice(1);return e.startsWith(Pn[0],"@")?Pn[0]+"/"+Pn[1]:Pn[0]}}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="fixSpelling",Se=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.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.Module_0_has_no_exported_member_1_Did_you_mean_2.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(H){var Pe=H.sourceFile,I=Fe(Pe,H.span.start,H);if(!I)return;var _e=I.node,re=I.suggestion,se=H.host.getCompilationSettings().target,w=e.textChanges.ChangeTracker.with(H,function(k){return He(k,Pe,_e,re,se)});return[F.createCodeFixAction("spelling",w,[e.Diagnostics.Change_spelling_to_0,re],qe,e.Diagnostics.Fix_all_detected_spelling_errors)]},fixIds:[qe],getAllCodeActions:function(H){return F.codeFixAll(H,Se,function(Pe,I){var _e=Fe(I.file,I.start,H),re=H.host.getCompilationSettings().target;_e&&He(Pe,H.sourceFile,_e.node,_e.suggestion,re)})}});function Fe(d,H,Pe){var I=e.getTokenAtPosition(d,H),_e=Pe.program.getTypeChecker(),re;if(e.isPropertyAccessExpression(I.parent)&&I.parent.name===I){e.Debug.assert(I.kind===75,"Expected an identifier for spelling (property access)");var se=_e.getTypeAtLocation(I.parent.expression);re=_e.getSuggestionForNonexistentProperty(I,se)}else if(e.isImportSpecifier(I.parent)&&I.parent.name===I){e.Debug.assert(I.kind===75,"Expected an identifier for spelling (import)");var w=e.findAncestor(I,e.isImportDeclaration),k=ie(d,Pe,w);k&&k.symbol&&(re=_e.getSuggestionForNonexistentExport(I,k.symbol))}else{var P=e.getMeaningFromLocation(I),h=e.getTextOfNode(I);e.Debug.assert(h!==void 0,"name should be defined"),re=_e.getSuggestionForNonexistentSymbol(I,h,ve(P))}return re===void 0?void 0:{node:I,suggestion:re}}function He(d,H,Pe,I,_e){!e.isIdentifierText(I,_e)&&e.isPropertyAccessExpression(Pe.parent)?d.replaceNode(H,Pe.parent,e.createElementAccess(Pe.parent.expression,e.createLiteral(I))):d.replaceNode(H,Pe,e.createIdentifier(I))}function ve(d){var H=0;return d&4&&(H|=1920),d&2&&(H|=788968),d&1&&(H|=111551),H}function ie(d,H,Pe){if(!Pe||!e.isStringLiteralLike(Pe.moduleSpecifier))return;var I=e.getResolvedModule(d,Pe.moduleSpecifier.text);return I?H.program.getSourceFile(I.resolvedFileName):void 0}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="addMissingMember",Se=[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],Fe="addMissingMember";F.registerCodeFix({errorCodes:Se,getCodeActions:function($){var J=ie($.sourceFile,$.span.start,$.program.getTypeChecker(),$.program);if(!J)return;if(J.kind===0){var fe=J.token,R=J.parentDeclaration,K=e.textChanges.ChangeTracker.with($,function(_){return Y(_,$.program.getTypeChecker(),fe,R)});return[F.createCodeFixAction(qe,K,[e.Diagnostics.Add_missing_enum_member_0,fe.text],Fe,e.Diagnostics.Add_all_missing_members)]}var z=J.parentDeclaration,Ee=J.declSourceFile,B=J.inJs,V=J.makeStatic,m=J.token,y=J.call,L=y&&P($,Ee,z,m,y,V,B,$.preferences),C=B&&!e.isInterfaceDeclaration(z)?e.singleElementArray(d($,Ee,z,m.text,V)):I($,Ee,z,m,V);return e.concatenate(e.singleElementArray(L),C)},fixIds:[Fe],getAllCodeActions:function($){var J=$.program,fe=$.preferences,R=J.getTypeChecker(),K=e.createMap(),z=new e.NodeMap;return F.createCombinedCodeActions(e.textChanges.ChangeTracker.with($,function(Ee){F.eachDiagnostic($,Se,function(B){var V=ie(B.file,B.start,R,$.program);if(!V||!e.addToSeen(K,e.getNodeId(V.parentDeclaration)+"#"+V.token.text))return;if(V.kind===0){var m=V.token,y=V.parentDeclaration;Y(Ee,R,m,y)}else{var y=V.parentDeclaration,L=V.token,C=z.getOrUpdate(y,function(){return[]});C.some(function(b){return b.token.text===L.text})||C.push(V)}}),z.forEach(function(B,V){for(var m=He(V,R),y=function(D){if(m.some(function(U){var de=z.get(U);return!!de&&de.some(function(Ce){var Z=Ce.token;return Z.text===D.token.text})}))return"continue";var T=D.parentDeclaration,Q=D.declSourceFile,N=D.inJs,X=D.makeStatic,pe=D.token,S=D.call;if(S)h($,Ee,Q,T,pe,S,X,N,fe);else if(N&&!e.isInterfaceDeclaration(T))H(Ee,Q,T,pe.text,X);else{var v=_e(J.getTypeChecker(),T,pe);se(Ee,Q,T,pe.text,v,X)}},L=0,C=B;L<C.length;L++){var _=C[L];y(_)}})}))}});function He(ne,$){for(var J=[];ne;){var fe=e.getClassExtendsHeritageElement(ne),R=fe&&$.getSymbolAtLocation(fe.expression),K=R&&e.find(R.declarations,e.isClassLike);K&&J.push(K),ne=K}return J}var ve;(function(ne){ne[ne.Enum=0]="Enum",ne[ne.ClassOrInterface=1]="ClassOrInterface"})(ve||(ve={}));function ie(ne,$,J,fe){var R=e.getTokenAtPosition(ne,$);if(!e.isIdentifier(R))return;var K=R.parent;if(!e.isPropertyAccessExpression(K))return;var z=e.skipConstraint(J.getTypeAtLocation(K.expression)),Ee=z.symbol;if(!Ee||!Ee.declarations)return;var B=e.find(Ee.declarations,e.isClassLike)||e.find(Ee.declarations,e.isInterfaceDeclaration);if(B&&!fe.isSourceFileFromExternalLibrary(B.getSourceFile())){var V=(z.target||z)!==J.getDeclaredTypeOfSymbol(Ee),m=B.getSourceFile(),y=e.isSourceFileJS(m),L=e.tryCast(K.parent,e.isCallExpression);return{kind:1,token:R,parentDeclaration:B,makeStatic:V,declSourceFile:m,inJs:y,call:L}}var C=e.find(Ee.declarations,e.isEnumDeclaration);return C&&!fe.isSourceFileFromExternalLibrary(C.getSourceFile())?{kind:0,token:R,parentDeclaration:C}:void 0}function d(ne,$,J,fe,R){var K=e.textChanges.ChangeTracker.with(ne,function(z){return H(z,$,J,fe,R)});return K.length===0?void 0:F.createCodeFixAction(qe,K,[R?e.Diagnostics.Initialize_static_property_0:e.Diagnostics.Initialize_property_0_in_the_constructor,fe],Fe,e.Diagnostics.Add_all_missing_members)}function H(ne,$,J,fe,R){if(R){if(J.kind===213)return;var K=J.name.getText(),z=Pe(e.createIdentifier(K),fe);ne.insertNodeAfter($,J,z)}else{var Ee=e.getFirstConstructorWithBody(J);if(!Ee)return;var B=Pe(e.createThis(),fe);ne.insertNodeAtConstructorEnd($,Ee,B)}}function Pe(ne,$){return e.createStatement(e.createAssignment(e.createPropertyAccess(ne,$),e.createIdentifier("undefined")))}function I(ne,$,J,fe,R){var K=_e(ne.program.getTypeChecker(),J,fe),z=re(ne,$,J,R,fe.text,K);return R?[z]:[z,k(ne,$,J,fe.text,K)]}function _e(ne,$,J){var fe;if(J.parent.parent.kind===208){var R=J.parent.parent,K=J.parent===R.left?R.right:R.left,z=ne.getWidenedType(ne.getBaseTypeOfLiteralType(ne.getTypeAtLocation(K)));fe=ne.typeToTypeNode(z,$)}else{var Ee=ne.getContextualType(J.parent);fe=Ee?ne.typeToTypeNode(Ee):void 0}return fe||e.createKeywordTypeNode(124)}function re(ne,$,J,fe,R,K){var z=e.textChanges.ChangeTracker.with(ne,function(Ee){return se(Ee,$,J,R,K,fe)});return F.createCodeFixAction(qe,z,[fe?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,R],Fe,e.Diagnostics.Add_all_missing_members)}function se(ne,$,J,fe,R,K){var z=e.createProperty(void 0,K?[e.createToken(119)]:void 0,fe,void 0,R,void 0),Ee=w(J);Ee?ne.insertNodeAfter($,Ee,z):ne.insertNodeAtClassStart($,J,z)}function w(ne){for(var $,J=0,fe=ne.members;J<fe.length;J++){var R=fe[J];if(!e.isPropertyDeclaration(R))break;$=R}return $}function k(ne,$,J,fe,R){var K=e.createKeywordTypeNode(142),z=e.createParameter(void 0,void 0,void 0,"x",void 0,K,void 0),Ee=e.createIndexSignature(void 0,void 0,[z],R),B=e.textChanges.ChangeTracker.with(ne,function(V){return V.insertNodeAtClassStart($,J,Ee)});return F.createCodeFixActionNoFixId(qe,B,[e.Diagnostics.Add_index_signature_for_property_0,fe])}function P(ne,$,J,fe,R,K,z,Ee){var B=e.textChanges.ChangeTracker.with(ne,function(V){return h(ne,V,$,J,fe,R,K,z,Ee)});return F.createCodeFixAction(qe,B,[K?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,fe.text],Fe,e.Diagnostics.Add_all_missing_members)}function h(ne,$,J,fe,R,K,z,Ee,B){var V=F.createMethodFromCallExpression(ne,K,R.text,Ee,z,B,fe),m=e.getAncestor(K,160);m&&m.parent===fe?$.insertNodeAfter(J,m,V):$.insertNodeAtClassStart(J,fe,V)}function Y(ne,$,J,fe){var R=e.some(fe.members,function(z){var Ee=$.getTypeAtLocation(z);return!!(Ee&&Ee.flags&132)}),K=e.createEnumMember(J,R?e.createStringLiteral(J.text):void 0);ne.replaceNode(fe.getSourceFile(),fe,e.updateEnumDeclaration(fe,fe.decorators,fe.modifiers,fe.name,e.concatenate(fe.members,e.singleElementArray(K))))}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="addMissingNewOperator",Se=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ie){var d=ie.sourceFile,H=ie.span,Pe=e.textChanges.ChangeTracker.with(ie,function(I){return Fe(I,d,H)});return[F.createCodeFixAction(qe,Pe,e.Diagnostics.Add_missing_new_operator_to_call,qe,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[qe],getAllCodeActions:function(ie){return F.codeFixAll(ie,Se,function(d,H){return Fe(d,ie.sourceFile,H)})}});function Fe(ve,ie,d){var H=e.cast(He(ie,d),e.isCallExpression),Pe=e.createNew(H.expression,H.typeArguments,H.arguments);ve.replaceNode(ie,H,Pe)}function He(ve,ie){for(var d=e.getTokenAtPosition(ve,ie.start),H=e.textSpanEnd(ie);d.end<H;)d=d.parent;return d}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="fixCannotFindModule",Se="installTypesPackage",Fe=e.Diagnostics.Cannot_find_module_0.code,He=[Fe,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];F.registerCodeFix({errorCodes:He,getCodeActions:function(Pe){var I=Pe.host,_e=Pe.sourceFile,re=Pe.span.start,se=ie(_e,re);if(se===void 0)return;var w=d(se,I,Pe.errorCode);return w===void 0?[]:[F.createCodeFixAction(qe,[],[e.Diagnostics.Install_0,w],Se,e.Diagnostics.Install_all_missing_types_packages,ve(_e.fileName,w))]},fixIds:[Se],getAllCodeActions:function(Pe){return F.codeFixAll(Pe,He,function(I,_e,re){var se=ie(_e.file,_e.start);if(se===void 0)return;switch(Pe.fixId){case Se:{var w=d(se,Pe.host,_e.code);w&&re.push(ve(_e.file.fileName,w));break}default:e.Debug.fail("Bad fixId: "+Pe.fixId)}})}});function ve(H,Pe){return{type:"install package",file:H,packageName:Pe}}function ie(H,Pe){var I=e.cast(e.getTokenAtPosition(H,Pe),e.isStringLiteral).text,_e=e.parsePackageName(I).packageName;return e.isExternalModuleNameRelative(_e)?void 0:_e}function d(H,Pe,I){return I===Fe?e.JsTyping.nodeCoreModules.has(H)?"@types/node":void 0:Pe.isKnownTypesPackageName(H)?e.getTypesPackageName(H):void 0}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe=[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],Se="fixClassDoesntImplementInheritedAbstractMember";F.registerCodeFix({errorCodes:qe,getCodeActions:function(d){var H=d.sourceFile,Pe=d.span,I=e.textChanges.ChangeTracker.with(d,function(_e){return He(Fe(H,Pe.start),H,d,_e,d.preferences)});return I.length===0?void 0:[F.createCodeFixAction(Se,I,e.Diagnostics.Implement_inherited_abstract_class,Se,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[Se],getAllCodeActions:function(d){var H=e.createMap();return F.codeFixAll(d,qe,function(Pe,I){var _e=Fe(I.file,I.start);e.addToSeen(H,e.getNodeId(_e))&&He(_e,d.sourceFile,d,Pe,d.preferences)})}});function Fe(ie,d){var H=e.getTokenAtPosition(ie,d);return e.cast(H.parent,e.isClassLike)}function He(ie,d,H,Pe,I){var _e=e.getEffectiveBaseTypeNode(ie),re=H.program.getTypeChecker(),se=re.getTypeAtLocation(_e),w=re.getPropertiesOfType(se).filter(ve);F.createMissingMemberNodes(ie,w,H,I,function(k){return Pe.insertNodeAtClassStart(d,ie,k)})}function ve(ie){var d=e.getModifierFlags(e.first(ie.getDeclarations()));return!(d&8)&&!!(d&128)}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="classSuperMustPrecedeThisAccess",Se=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(d){var H=d.sourceFile,Pe=d.span,I=He(H,Pe.start);if(!I)return;var _e=I.constructor,re=I.superCall,se=e.textChanges.ChangeTracker.with(d,function(w){return Fe(w,H,_e,re)});return[F.createCodeFixAction(qe,se,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,qe,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[qe],getAllCodeActions:function(d){var H=d.sourceFile,Pe=e.createMap();return F.codeFixAll(d,Se,function(I,_e){var re=He(_e.file,_e.start);if(!re)return;var se=re.constructor,w=re.superCall;e.addToSeen(Pe,e.getNodeId(se.parent))&&Fe(I,H,se,w)})}});function Fe(ie,d,H,Pe){ie.insertNodeAtConstructorStart(d,H,Pe),ie.delete(d,Pe)}function He(ie,d){var H=e.getTokenAtPosition(ie,d);if(H.kind!==103)return;var Pe=e.getContainingFunction(H),I=ve(Pe.body);return I&&!I.expression.arguments.some(function(_e){return e.isPropertyAccessExpression(_e)&&_e.expression===H})?{constructor:Pe,superCall:I}:void 0}function ve(ie){return e.isExpressionStatement(ie)&&e.isSuperCall(ie.expression)?ie:e.isFunctionLike(ie)?void 0:e.forEachChild(ie,ve)}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="constructorForDerivedNeedSuperCall",Se=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ie){var d=ie.sourceFile,H=ie.span,Pe=Fe(d,H.start),I=e.textChanges.ChangeTracker.with(ie,function(_e){return He(_e,d,Pe)});return[F.createCodeFixAction(qe,I,e.Diagnostics.Add_missing_super_call,qe,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[qe],getAllCodeActions:function(ie){return F.codeFixAll(ie,Se,function(d,H){return He(d,ie.sourceFile,Fe(H.file,H.start))})}});function Fe(ve,ie){var d=e.getTokenAtPosition(ve,ie);return e.Debug.assert(d.kind===128,"token should be at the constructor keyword"),d.parent}function He(ve,ie,d){var H=e.createStatement(e.createCall(e.createSuper(),void 0,e.emptyArray));ve.insertNodeAtConstructorStart(ie,d,H)}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="enableExperimentalDecorators",Se=[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];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ve){var ie=ve.program.getCompilerOptions().configFile;if(ie===void 0)return;var d=e.textChanges.ChangeTracker.with(ve,function(H){return Fe(H,ie)});return[F.createCodeFixActionNoFixId(qe,d,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]},fixIds:[qe],getAllCodeActions:function(ve){return F.codeFixAll(ve,Se,function(ie){var d=ve.program.getCompilerOptions().configFile;if(d===void 0)return;Fe(ie,d)})}});function Fe(He,ve){F.setJsonCompilerOptionValue(He,ve,"experimentalDecorators",e.createTrue())}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="fixEnableJsxFlag",Se=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ve){var ie=ve.program.getCompilerOptions().configFile;if(ie===void 0)return;var d=e.textChanges.ChangeTracker.with(ve,function(H){return Fe(H,ie)});return[F.createCodeFixActionNoFixId(qe,d,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[qe],getAllCodeActions:function(ve){return F.codeFixAll(ve,Se,function(ie){var d=ve.program.getCompilerOptions().configFile;if(d===void 0)return;Fe(ie,d)})}});function Fe(He,ve){F.setJsonCompilerOptionValue(He,ve,"jsx",e.createStringLiteral("react"))}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="extendsInterfaceBecomesImplements",Se=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ie){var d=ie.sourceFile,H=Fe(d,ie.span.start);if(!H)return;var Pe=H.extendsToken,I=H.heritageClauses,_e=e.textChanges.ChangeTracker.with(ie,function(re){return He(re,d,Pe,I)});return[F.createCodeFixAction(qe,_e,e.Diagnostics.Change_extends_to_implements,qe,e.Diagnostics.Change_all_extended_interfaces_to_implements)]},fixIds:[qe],getAllCodeActions:function(ie){return F.codeFixAll(ie,Se,function(d,H){var Pe=Fe(H.file,H.start);Pe&&He(d,H.file,Pe.extendsToken,Pe.heritageClauses)})}});function Fe(ve,ie){var d=e.getTokenAtPosition(ve,ie),H=e.getContainingClass(d).heritageClauses,Pe=H[0].getFirstToken();return Pe.kind===89?{extendsToken:Pe,heritageClauses:H}:void 0}function He(ve,ie,d,H){if(ve.replaceNode(ie,d,e.createToken(112)),H.length===2&&H[0].token===89&&H[1].token===112){var Pe=H[1].getFirstToken(),I=Pe.getFullStart();ve.replaceRange(ie,{pos:I,end:I},e.createToken(27));for(var _e=ie.text,re=Pe.end;re<_e.length&&e.isWhiteSpaceSingleLine(_e.charCodeAt(re));)re++;ve.deleteRange(ie,{pos:Pe.getStart(),end:re})}}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="forgottenThisPropertyAccess",Se=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Fe=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Se];F.registerCodeFix({errorCodes:Fe,getCodeActions:function(d){var H=d.sourceFile,Pe=He(H,d.span.start,d.errorCode);if(!Pe)return;var I=e.textChanges.ChangeTracker.with(d,function(_e){return ve(_e,H,Pe)});return[F.createCodeFixAction(qe,I,[e.Diagnostics.Add_0_to_unresolved_variable,Pe.className||"this"],qe,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[qe],getAllCodeActions:function(d){return F.codeFixAll(d,Fe,function(H,Pe){var I=He(Pe.file,Pe.start,Pe.code);I&&ve(H,d.sourceFile,I)})}});function He(ie,d,H){var Pe=e.getTokenAtPosition(ie,d);return e.isIdentifier(Pe)?{node:Pe,className:H===Se?e.getContainingClass(Pe).name.text:void 0}:void 0}function ve(ie,d,H){var Pe=H.node,I=H.className;e.suppressLeadingAndTrailingTrivia(Pe),ie.replaceNode(d,Pe,e.createPropertyAccess(I?e.createIdentifier(I):e.createThis(),Pe))}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="unusedIdentifier",Se="unusedIdentifier_prefix",Fe="unusedIdentifier_delete",He="unusedIdentifier_infer",ve=[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];F.registerCodeFix({errorCodes:ve,getCodeActions:function(J){var fe=J.errorCode,R=J.sourceFile,K=J.program,z=K.getTypeChecker(),Ee=K.getSourceFiles(),B=e.getTokenAtPosition(R,J.span.start);if(e.isJSDocTemplateTag(B))return[d(e.textChanges.ChangeTracker.with(J,function(T){return T.delete(R,B)}),e.Diagnostics.Remove_template_tag)];if(B.kind===29){var V=e.textChanges.ChangeTracker.with(J,function(T){return H(T,R,B)});return[d(V,e.Diagnostics.Remove_type_parameters)]}var m=Pe(B);if(m){var V=e.textChanges.ChangeTracker.with(J,function(Q){return Q.delete(R,m)});return[d(V,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(m)])]}var y=e.textChanges.ChangeTracker.with(J,function(T){return I(B,T,R,z,Ee,!1)});if(y.length)return[d(y,e.Diagnostics.Remove_destructuring)];var L=e.textChanges.ChangeTracker.with(J,function(T){return _e(R,B,T)});if(L.length)return[d(L,e.Diagnostics.Remove_variable_statement)];var C=[];if(B.kind===131){var V=e.textChanges.ChangeTracker.with(J,function(Q){return ie(Q,R,B)}),_=e.cast(B.parent,e.isInferTypeNode).typeParameter.name.text;C.push(F.createCodeFixAction(qe,V,[e.Diagnostics.Replace_infer_0_with_unknown,_],He,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var b=e.textChanges.ChangeTracker.with(J,function(T){return w(R,B,T,z,Ee,!1)});if(b.length){var _=e.isComputedPropertyName(B.parent)?B.parent:B;C.push(d(b,[e.Diagnostics.Remove_declaration_for_Colon_0,_.getText(R)]))}}var D=e.textChanges.ChangeTracker.with(J,function(T){return re(T,fe,R,B)});return D.length&&C.push(F.createCodeFixAction(qe,D,[e.Diagnostics.Prefix_0_with_an_underscore,B.getText(R)],Se,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),C},fixIds:[Se,Fe,He],getAllCodeActions:function(J){var fe=J.sourceFile,R=J.program,K=R.getTypeChecker(),z=R.getSourceFiles();return F.codeFixAll(J,ve,function(Ee,B){var V=e.getTokenAtPosition(fe,B.start);switch(J.fixId){case Se:re(Ee,B.code,fe,V);break;case Fe:{if(V.kind===131)break;var m=Pe(V);m?Ee.delete(fe,m):e.isJSDocTemplateTag(V)?Ee.delete(fe,V):V.kind===29?H(Ee,fe,V):!I(V,Ee,fe,K,z,!0)&&!_e(fe,V,Ee)&&w(fe,V,Ee,K,z,!0);break}case He:V.kind===131&&ie(Ee,fe,V);break;default:e.Debug.fail(JSON.stringify(J.fixId))}})}});function ie($,J,fe){$.replaceNode(J,fe.parent,e.createKeywordTypeNode(147))}function d($,J){return F.createCodeFixAction(qe,$,J,Fe,e.Diagnostics.Delete_all_unused_declarations)}function H($,J,fe){$.delete(J,e.Debug.assertDefined(e.cast(fe.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function Pe($){return $.kind===95?e.tryCast($.parent,e.isImportDeclaration):void 0}function I($,J,fe,R,K,z){if($.kind!==18||!e.isObjectBindingPattern($.parent))return!1;var Ee=$.parent.parent;return Ee.kind===155?h(J,fe,Ee,R,K,z):J.delete(fe,Ee),!0}function _e($,J,fe){var R=e.tryCast(J.parent,e.isVariableDeclarationList);return R&&R.getChildren($)[0]===J?(fe.delete($,R.parent.kind===224?R.parent:R),!0):!1}function re($,J,fe,R){if(J===e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code)return;R.kind===131&&(R=e.cast(R.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(R)&&se(R)&&$.replaceNode(fe,R,e.createIdentifier("_"+R.text))}function se($){switch($.parent.kind){case 155:case 154:return!0;case 241:{var J=$.parent;switch(J.parent.parent.kind){case 231:case 230:return!0}}}return!1}function w($,J,fe,R,K,z){P(J,fe,$,R,K,z),e.isIdentifier(J)&&k(fe,$,J,R)}function k($,J,fe,R){e.FindAllReferences.Core.eachSymbolReferenceInFile(fe,R,J,function(K){e.isPropertyAccessExpression(K.parent)&&K.parent.name===K&&(K=K.parent),e.isBinaryExpression(K.parent)&&e.isExpressionStatement(K.parent.parent)&&K.parent.left===K&&$.delete(J,K.parent.parent)})}function P($,J,fe,R,K,z){var Ee=$.parent;e.isParameter(Ee)?h(J,fe,Ee,R,K,z):J.delete(fe,e.isImportClause(Ee)?$:e.isComputedPropertyName(Ee)?Ee.parent:Ee)}function h($,J,fe,R,K,z){Y(fe,R,z)&&(fe.modifiers&&fe.modifiers.length>0&&(!e.isIdentifier(fe.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(fe.name,R,J))?fe.modifiers.forEach(function(Ee){$.deleteModifier(J,Ee)}):($.delete(J,fe),ne($,J,fe,K,R)))}function Y($,J,fe){var R=$.parent;switch(R.kind){case 160:var K=J.getSymbolAtLocation(R.name);if(e.isMemberSymbolInBaseType(K,J))return!1;case 161:case 243:return!0;case 200:case 201:{var z=R.parameters,Ee=z.indexOf($);return e.Debug.assert(Ee!==-1,"The parameter should already be in the list"),fe?z.slice(Ee+1).every(function(B){return B.name.kind===75&&!B.symbol.isReferenced}):Ee===z.length-1}case 163:return!1;default:return e.Debug.failBadSyntaxKind(R)}}function ne($,J,fe,R,K){e.FindAllReferences.Core.eachSignatureCall(fe.parent,R,K,function(z){var Ee=fe.parent.parameters.indexOf(fe);z.arguments.length>Ee&&$.delete(J,z.arguments[Ee])})}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="fixUnreachableCode",Se=[e.Diagnostics.Unreachable_code_detected.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ie){var d=e.textChanges.ChangeTracker.with(ie,function(H){return Fe(H,ie.sourceFile,ie.span.start,ie.span.length)});return[F.createCodeFixAction(qe,d,e.Diagnostics.Remove_unreachable_code,qe,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[qe],getAllCodeActions:function(ie){return F.codeFixAll(ie,Se,function(d,H){return Fe(d,H.file,H.start,H.length)})}});function Fe(ve,ie,d,H){var Pe=e.getTokenAtPosition(ie,d),I=e.findAncestor(Pe,e.isStatement);e.Debug.assert(I.getStart(ie)===Pe.getStart(ie),"token and statement should start at the same point");var _e=(e.isBlock(I.parent)?I.parent:I).parent;if(!e.isBlock(I.parent)||I===e.first(I.parent.statements))switch(_e.kind){case 226:if(_e.elseStatement){if(e.isBlock(I.parent))break;ve.replaceNode(ie,I,e.createBlock(e.emptyArray));return}case 228:case 229:ve.delete(ie,_e);return}if(e.isBlock(I.parent)){var re=d+H,se=e.Debug.assertDefined(He(e.sliceAfter(I.parent.statements,I),function(w){return w.pos<re}),"Some statement should be last");ve.deleteNodeRange(ie,I,se)}else ve.delete(ie,I)}function He(ve,ie){for(var d,H=0,Pe=ve;H<Pe.length;H++){var I=Pe[H];if(!ie(I))break;d=I}return d}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="fixUnusedLabel",Se=[e.Diagnostics.Unused_label.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ve){var ie=e.textChanges.ChangeTracker.with(ve,function(d){return Fe(d,ve.sourceFile,ve.span.start)});return[F.createCodeFixAction(qe,ie,e.Diagnostics.Remove_unused_label,qe,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[qe],getAllCodeActions:function(ve){return F.codeFixAll(ve,Se,function(ie,d){return Fe(ie,d.file,d.start)})}});function Fe(He,ve,ie){var d=e.getTokenAtPosition(ve,ie),H=e.cast(d.parent,e.isLabeledStatement),Pe=d.getStart(ve),I=H.statement.getStart(ve),_e=e.positionsAreOnSameLine(Pe,I,ve)?I:e.skipTrivia(ve.text,e.findChildOfKind(H,58,ve).end,!0);He.deleteRange(ve,{pos:Pe,end:_e})}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="fixJSDocTypes_plain",Se="fixJSDocTypes_nullable",Fe=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];F.registerCodeFix({errorCodes:Fe,getCodeActions:function(H){var Pe=H.sourceFile,I=H.program.getTypeChecker(),_e=ve(Pe,H.span.start,I);if(!_e)return;var re=_e.typeNode,se=_e.type,w=re.getText(Pe),k=[P(se,qe,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return re.kind===295&&k.push(P(I.getNullableType(se,32768),Se,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),k;function P(h,Y,ne){var $=e.textChanges.ChangeTracker.with(H,function(J){return He(J,Pe,re,h,I)});return F.createCodeFixAction("jdocTypes",$,[e.Diagnostics.Change_0_to_1,w,I.typeToString(h)],Y,ne)}},fixIds:[qe,Se],getAllCodeActions:function(H){var Pe=H.fixId,I=H.program,_e=H.sourceFile,re=I.getTypeChecker();return F.codeFixAll(H,Fe,function(se,w){var k=ve(w.file,w.start,re);if(!k)return;var P=k.typeNode,h=k.type,Y=P.kind===295&&Pe===Se?re.getNullableType(h,32768):h;He(se,_e,P,Y,re)})}});function He(d,H,Pe,I,_e){d.replaceNode(H,Pe,_e.typeToTypeNode(I,Pe))}function ve(d,H,Pe){var I=e.findAncestor(e.getTokenAtPosition(d,H),ie),_e=I&&I.type;return _e&&{typeNode:_e,type:Pe.getTypeFromTypeNode(_e)}}function ie(d){switch(d.kind){case 216:case 164:case 165:case 243:case 162:case 166:case 185:case 160:case 159:case 155:case 158:case 157:case 163:case 246:case 198:case 241:return!0;default:return!1}}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="fixAwaitInSyncFunction",Se=[e.Diagnostics.await_expression_is_only_allowed_within_an_async_function.code,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(d){var H=d.sourceFile,Pe=d.span,I=He(H,Pe.start);if(!I)return;var _e=e.textChanges.ChangeTracker.with(d,function(re){return ve(re,H,I)});return[F.createCodeFixAction(qe,_e,e.Diagnostics.Add_async_modifier_to_containing_function,qe,e.Diagnostics.Add_all_missing_async_modifiers)]},fixIds:[qe],getAllCodeActions:function(d){var H=e.createMap();return F.codeFixAll(d,Se,function(Pe,I){var _e=He(I.file,I.start);if(!_e||!e.addToSeen(H,e.getNodeId(_e.insertBefore)))return;ve(Pe,d.sourceFile,_e)})}});function Fe(ie){if(ie.type)return ie.type;if(e.isVariableDeclaration(ie.parent)&&ie.parent.type&&e.isFunctionTypeNode(ie.parent.type))return ie.parent.type.type}function He(ie,d){var H=e.getTokenAtPosition(ie,d),Pe=e.getContainingFunction(H);if(!Pe)return;var I;switch(Pe.kind){case 160:I=Pe.name;break;case 243:case 200:I=e.findChildOfKind(Pe,93,ie);break;case 201:I=e.findChildOfKind(Pe,20,ie)||e.first(Pe.parameters);break;default:return}return I&&{insertBefore:I,returnType:Fe(Pe)}}function ve(ie,d,H){var Pe=H.insertBefore,I=H.returnType;if(I){var _e=e.getEntityNameFromTypeNode(I);(!_e||_e.kind!==75||_e.text!=="Promise")&&ie.replaceNode(d,I,e.createTypeReferenceNode("Promise",e.createNodeArray([I])))}ie.insertModifierBefore(d,125,Pe)}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="disableJsDiagnostics",Se="disableJsDiagnostics",Fe=e.mapDefined(Object.keys(e.Diagnostics),function(ve){var ie=e.Diagnostics[ve];return ie.category===e.DiagnosticCategory.Error?ie.code:void 0});F.registerCodeFix({errorCodes:Fe,getCodeActions:function(ie){var d=ie.sourceFile,H=ie.program,Pe=ie.span,I=ie.host,_e=ie.formatContext;if(!e.isInJSFile(d)||!e.isCheckJsEnabledForFile(d,H.getCompilerOptions()))return;var re=[F.createCodeFixActionNoFixId(qe,[F.createFileTextChanges(d.fileName,[e.createTextChange(d.checkJsDirective?e.createTextSpanFromBounds(d.checkJsDirective.pos,d.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+e.getNewLineOrDefaultFromHost(I,_e.options))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(d,Pe.start)&&re.unshift(F.createCodeFixAction(qe,e.textChanges.ChangeTracker.with(ie,function(se){return He(se,d,Pe.start)}),e.Diagnostics.Ignore_this_error_message,Se,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),re},fixIds:[Se],getAllCodeActions:function(ie){var d=e.createMap();return F.codeFixAll(ie,Fe,function(H,Pe){e.textChanges.isValidLocationToAddComment(Pe.file,Pe.start)&&He(H,Pe.file,Pe.start,d)})}});function He(ve,ie,d,H){var Pe=e.getLineAndCharacterOfPosition(ie,d).line;(!H||e.addToSeen(H,Pe))&&ve.insertCommentBeforeLine(ie,Pe,d," @ts-ignore")}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){function qe(k,P,h,Y,ne){for(var $=k.symbol.members,J=0,fe=P;J<fe.length;J++){var R=fe[J];$.has(R.escapedName)||He(R,k,h,Y,ne)}}F.createMissingMemberNodes=qe;function Se(k){return{directoryExists:k.host.directoryExists?function(P){return k.host.directoryExists(P)}:void 0,fileExists:k.host.fileExists?function(P){return k.host.fileExists(P)}:void 0,getCurrentDirectory:k.host.getCurrentDirectory?function(){return k.host.getCurrentDirectory()}:void 0,readFile:k.host.readFile?function(P){return k.host.readFile(P)}:void 0,useCaseSensitiveFileNames:k.host.useCaseSensitiveFileNames?function(){return k.host.useCaseSensitiveFileNames()}:void 0,getSourceFiles:function(){return k.program.getSourceFiles()},getCommonSourceDirectory:function(){return k.program.getCommonSourceDirectory()}}}function Fe(k){return{trackSymbol:e.noop,moduleResolverHost:Se(k)}}F.getNoopSymbolTrackerWithResolver=Fe;function He(k,P,h,Y,ne){var $=k.getDeclarations();if(!($&&$.length))return;var J=h.program.getTypeChecker(),fe=$[0],R=e.getSynthesizedDeepClone(e.getNameOfDeclaration(fe),!1),K=_e(e.getModifierFlags(fe)),z=K?e.createNodeArray([K]):void 0,Ee=J.getWidenedType(J.getTypeOfSymbolAtLocation(k,P)),B=!!(k.flags&16777216),V=!!(P.flags&8388608);switch(fe.kind){case 157:case 158:var m=J.typeToTypeNode(Ee,P,void 0,Fe(h));ne(e.createProperty(void 0,z,R,B?e.createToken(57):void 0,m,void 0));break;case 162:case 163:{for(var y=e.getAllAccessorDeclarations($,fe),L=J.typeToTypeNode(Ee,P,void 0,Fe(h)),C=y.secondAccessor?[y.firstAccessor,y.secondAccessor]:[y.firstAccessor],_=0,b=C;_<b.length;_++){var D=b[_];if(e.isGetAccessorDeclaration(D))ne(e.createGetAccessor(void 0,z,R,e.emptyArray,L,V?void 0:I(Y)));else{e.Debug.assertNode(D,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var T=e.getSetAccessorValueParameter(D),Q=T&&e.isIdentifier(T.name)?e.idText(T.name):void 0;ne(e.createSetAccessor(void 0,z,R,d(1,[Q],[L],1,!1),V?void 0:I(Y)))}}break}case 159:case 160:var N=J.getSignaturesOfType(Ee,0);if(!e.some(N))break;if($.length===1){e.Debug.assert(N.length===1,"One declaration implies one signature");var X=N[0];v(X,z,R,V?void 0:I(Y));break}for(var pe=0,S=N;pe<S.length;pe++){var X=S[pe];v(X,e.getSynthesizedDeepClones(z,!1),e.getSynthesizedDeepClone(R,!1))}if(!V)if($.length>N.length){var X=J.getSignatureFromDeclaration($[$.length-1]);v(X,z,R,I(Y))}else e.Debug.assert($.length===N.length,"Declarations and signatures should match count"),ne(H(N,R,B,z,Y));break}function v(U,de,Ce,Z){var Re=ve(h,U,P,de,Ce,B,Z);Re&&ne(Re)}}function ve(k,P,h,Y,ne,$,J){var fe=k.program,R=fe.getTypeChecker().signatureToSignatureDeclaration(P,160,h,1|256,Fe(k));return R?(R.decorators=void 0,R.modifiers=Y,R.name=ne,R.questionToken=$?e.createToken(57):void 0,R.body=J,R):void 0}function ie(k,P,h,Y,ne,$,J){var fe=!e.isInterfaceDeclaration(J),R=P.typeArguments,K=P.arguments,z=P.parent,Ee=k.program.getTypeChecker(),B=Fe(k),V=e.map(K,function(C){return Ee.typeToTypeNode(Ee.getBaseTypeOfLiteralType(Ee.getTypeAtLocation(C)),J,void 0,B)}),m=e.map(K,function(C){return e.isIdentifier(C)?C.text:e.isPropertyAccessExpression(C)?C.name.text:void 0}),y=Ee.getContextualType(P),L=Y||!y?void 0:Ee.typeToTypeNode(y,J,void 0,B);return e.createMethod(void 0,ne?[e.createToken(119)]:void 0,e.isYieldExpression(z)?e.createToken(41):void 0,h,void 0,Y?void 0:e.map(R,function(C,_){return e.createTypeParameterDeclaration(84+R.length-1<=90?String.fromCharCode(84+_):"T"+_)}),d(K.length,m,V,void 0,Y),L,fe?I($):void 0)}F.createMethodFromCallExpression=ie;function d(k,P,h,Y,ne){for(var $=[],J=0;J<k;J++){var fe=e.createParameter(void 0,void 0,void 0,P&&P[J]||"arg"+J,Y!==void 0&&J>=Y?e.createToken(57):void 0,ne?void 0:h&&h[J]||e.createKeywordTypeNode(124),void 0);$.push(fe)}return $}function H(k,P,h,Y,ne){for(var $=k[0],J=k[0].minArgumentCount,fe=!1,R=0,K=k;R<K.length;R++){var z=K[R];J=Math.min(z.minArgumentCount,J),e.signatureHasRestParameter(z)&&(fe=!0),z.parameters.length>=$.parameters.length&&(!e.signatureHasRestParameter(z)||e.signatureHasRestParameter($))&&($=z)}var Ee=$.parameters.length-(e.signatureHasRestParameter($)?1:0),B=$.parameters.map(function(L){return L.name}),V=d(Ee,B,void 0,J,!1);if(fe){var m=e.createArrayTypeNode(e.createKeywordTypeNode(124)),y=e.createParameter(void 0,void 0,e.createToken(25),B[Ee]||"rest",Ee>=J?e.createToken(57):void 0,m,void 0);V.push(y)}return Pe(Y,P,h,void 0,V,void 0,ne)}function Pe(k,P,h,Y,ne,$,J){return e.createMethod(void 0,k,void 0,P,h?e.createToken(57):void 0,Y,ne,$,I(J))}function I(k){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.",k.quotePreference==="single")]))],!0)}function _e(k){return k&4?e.createToken(118):k&16?e.createToken(117):void 0}function re(k,P,h,Y){var ne=e.getTsConfigObjectLiteralExpression(P);if(!ne)return;var $=w(ne,"compilerOptions");if($===void 0){k.insertNodeAtObjectStart(P,ne,se("compilerOptions",e.createObjectLiteral([se(h,Y)])));return}var J=$.initializer;if(!e.isObjectLiteralExpression(J))return;var fe=w(J,h);fe===void 0?k.insertNodeAtObjectStart(P,J,se(h,Y)):k.replaceNode(P,fe.initializer,Y)}F.setJsonCompilerOptionValue=re;function se(k,P){return e.createPropertyAssignment(e.createStringLiteral(k),P)}F.createJsonPropertyAssignment=se;function w(k,P){return e.find(k.properties,function(h){return e.isPropertyAssignment(h)&&!!h.name&&e.isStringLiteral(h.name)&&h.name.text===P})}F.findJsonProperty=w})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="invalidImportSyntax";function Se(d,H){var Pe=e.getSourceFileOfNode(H),I=e.getNamespaceDeclarationNode(H),_e=d.program.getCompilerOptions(),re=[];return re.push(Fe(d,Pe,H,e.makeImport(I.name,void 0,H.moduleSpecifier,e.getQuotePreference(Pe,d.preferences)))),e.getEmitModuleKind(_e)===e.ModuleKind.CommonJS&&re.push(Fe(d,Pe,H,e.createImportEqualsDeclaration(void 0,void 0,I.name,e.createExternalModuleReference(H.moduleSpecifier)))),re}function Fe(d,H,Pe,I){var _e=e.textChanges.ChangeTracker.with(d,function(re){return re.replaceNode(H,Pe,I)});return F.createCodeFixActionNoFixId(qe,_e,[e.Diagnostics.Replace_import_with_0,_e[0].textChanges[0].newText])}F.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:He});function He(d){var H=d.sourceFile,Pe=e.Diagnostics.This_expression_is_not_callable.code===d.errorCode?195:196,I=e.findAncestor(e.getTokenAtPosition(H,d.span.start),function(re){return re.kind===Pe});if(!I)return[];var _e=I.expression;return ie(d,_e)}F.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_string_index_type_2.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2.code,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1.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:ve});function ve(d){var H=d.sourceFile,Pe=e.findAncestor(e.getTokenAtPosition(H,d.span.start),function(I){return I.getStart()===d.span.start&&I.getEnd()===d.span.start+d.span.length});return Pe?ie(d,Pe):[]}function ie(d,H){var Pe=d.program.getTypeChecker().getTypeAtLocation(H);if(!(Pe.symbol&&Pe.symbol.originatingImport))return[];var I=[],_e=Pe.symbol.originatingImport;if(e.isImportCall(_e)||e.addRange(I,Se(d,_e)),e.isExpression(H)&&!(e.isNamedDeclaration(H.parent)&&H.parent.name===H)){var re=d.sourceFile,se=e.textChanges.ChangeTracker.with(d,function(w){return w.replaceNode(re,H,e.createPropertyAccess(H,"default"),{})});I.push(F.createCodeFixActionNoFixId(qe,se,e.Diagnostics.Use_synthetic_default_member))}return I}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="strictClassInitialization",Se="addMissingPropertyDefiniteAssignmentAssertions",Fe="addMissingPropertyUndefinedType",He="addMissingPropertyInitializer",ve=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];F.registerCodeFix({errorCodes:ve,getCodeActions:function(P){var h=ie(P.sourceFile,P.span.start);if(!h)return;var Y=[Pe(P,h),d(P,h)];return e.append(Y,_e(P,h)),Y},fixIds:[Se,Fe,He],getAllCodeActions:function(P){return F.codeFixAll(P,ve,function(h,Y){var ne=ie(Y.file,Y.start);if(!ne)return;switch(P.fixId){case Se:H(h,Y.file,ne);break;case Fe:I(h,Y.file,ne);break;case He:var $=P.program.getTypeChecker(),J=se($,ne);if(!J)return;re(h,Y.file,ne,J);break;default:e.Debug.fail(JSON.stringify(P.fixId))}})}});function ie(k,P){var h=e.getTokenAtPosition(k,P);return e.isIdentifier(h)?e.cast(h.parent,e.isPropertyDeclaration):void 0}function d(k,P){var h=e.textChanges.ChangeTracker.with(k,function(Y){return H(Y,k.sourceFile,P)});return F.createCodeFixAction(qe,h,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,P.getText()],Se,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function H(k,P,h){var Y=e.updateProperty(h,h.decorators,h.modifiers,h.name,e.createToken(53),h.type,h.initializer);k.replaceNode(P,h,Y)}function Pe(k,P){var h=e.textChanges.ChangeTracker.with(k,function(Y){return I(Y,k.sourceFile,P)});return F.createCodeFixAction(qe,h,[e.Diagnostics.Add_undefined_type_to_property_0,P.name.getText()],Fe,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function I(k,P,h){var Y=e.createKeywordTypeNode(145),ne=h.type,$=e.isUnionTypeNode(ne)?ne.types.concat(Y):[ne,Y];k.replaceNode(P,ne,e.createUnionTypeNode($))}function _e(k,P){var h=k.program.getTypeChecker(),Y=se(h,P);if(!Y)return;var ne=e.textChanges.ChangeTracker.with(k,function($){return re($,k.sourceFile,P,Y)});return F.createCodeFixAction(qe,ne,[e.Diagnostics.Add_initializer_to_property_0,P.name.getText()],He,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}function re(k,P,h,Y){var ne=e.updateProperty(h,h.decorators,h.modifiers,h.name,h.questionToken,h.type,Y);k.replaceNode(P,h,ne)}function se(k,P){return w(k,k.getTypeFromTypeNode(P.type))}function w(k,P){if(P.flags&512)return P===k.getFalseType()||P===k.getFalseType(!0)?e.createFalse():e.createTrue();if(P.isLiteral())return e.createLiteral(P.value);if(P.isUnion())return e.firstDefined(P.types,function(ne){return w(k,ne)});if(P.isClass()){var h=e.getClassLikeDeclarationOfSymbol(P.symbol);if(!h||e.hasModifier(h,128))return;var Y=e.getFirstConstructorWithBody(h);return Y&&Y.parameters.length?void 0:e.createNew(e.createIdentifier(P.symbol.name),void 0,void 0)}else if(k.isArrayLikeType(P))return e.createArrayLiteral();return}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="requireInTs",Se=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ie){var d=e.textChanges.ChangeTracker.with(ie,function(H){return Fe(H,ie.sourceFile,ie.span.start,ie.program)});return[F.createCodeFixAction(qe,d,e.Diagnostics.Convert_require_to_import,qe,e.Diagnostics.Convert_all_require_to_import)]},fixIds:[qe],getAllCodeActions:function(ie){return F.codeFixAll(ie,Se,function(d,H){return Fe(d,H.file,H.start,ie.program)})}});function Fe(ve,ie,d,H){var Pe=He(ie,d),I=Pe.statement,_e=Pe.name,re=Pe.required;ve.replaceNode(ie,I,e.getAllowSyntheticDefaultImports(H.getCompilerOptions())?e.createImportDeclaration(void 0,void 0,e.createImportClause(_e,void 0),re):e.createImportEqualsDeclaration(void 0,void 0,_e,e.createExternalModuleReference(re)))}function He(ve,ie){var d=e.getTokenAtPosition(ve,ie).parent;if(!e.isRequireCall(d,!0))throw e.Debug.failBadSyntaxKind(d);var H=e.cast(d.parent,e.isVariableDeclaration);return{statement:e.cast(H.parent.parent,e.isVariableStatement),name:e.cast(H.name,e.isIdentifier),required:d.arguments[0]}}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="useDefaultImport",Se=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ie){var d=ie.sourceFile,H=ie.span.start,Pe=Fe(d,H);if(!Pe)return;var I=e.textChanges.ChangeTracker.with(ie,function(_e){return He(_e,d,Pe,ie.preferences)});return[F.createCodeFixAction(qe,I,e.Diagnostics.Convert_to_default_import,qe,e.Diagnostics.Convert_all_to_default_imports)]},fixIds:[qe],getAllCodeActions:function(ie){return F.codeFixAll(ie,Se,function(d,H){var Pe=Fe(H.file,H.start);Pe&&He(d,H.file,Pe,ie.preferences)})}});function Fe(ve,ie){var d=e.getTokenAtPosition(ve,ie);if(!e.isIdentifier(d))return;var H=d.parent;if(e.isImportEqualsDeclaration(H)&&e.isExternalModuleReference(H.moduleReference))return{importNode:H,name:d,moduleSpecifier:H.moduleReference.expression};if(e.isNamespaceImport(H)){var Pe=H.parent.parent;return{importNode:Pe,name:d,moduleSpecifier:Pe.moduleSpecifier}}}function He(ve,ie,d,H){ve.replaceNode(ie,d.importNode,e.makeImport(d.name,void 0,d.moduleSpecifier,e.getQuotePreference(ie,H)))}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="useBigintLiteral",Se=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ve){var ie=e.textChanges.ChangeTracker.with(ve,function(d){return Fe(d,ve.sourceFile,ve.span)});if(ie.length>0)return[F.createCodeFixAction(qe,ie,e.Diagnostics.Convert_to_a_bigint_numeric_literal,qe,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[qe],getAllCodeActions:function(ve){return F.codeFixAll(ve,Se,function(ie,d){return Fe(ie,d.file,d)})}});function Fe(He,ve,ie){var d=e.tryCast(e.getTokenAtPosition(ve,ie.start),e.isNumericLiteral);if(!d)return;var H=d.getText(ve)+"n";He.replaceNode(ve,d,e.createBigIntLiteral(H))}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="fixAddModuleReferTypeMissingTypeof",Se=qe,Fe=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];F.registerCodeFix({errorCodes:Fe,getCodeActions:function(d){var H=d.sourceFile,Pe=d.span,I=He(H,Pe.start),_e=e.textChanges.ChangeTracker.with(d,function(re){return ve(re,H,I)});return[F.createCodeFixAction(Se,_e,e.Diagnostics.Add_missing_typeof,Se,e.Diagnostics.Add_missing_typeof)]},fixIds:[Se],getAllCodeActions:function(d){return F.codeFixAll(d,Fe,function(H,Pe){return ve(H,d.sourceFile,He(Pe.file,Pe.start))})}});function He(ie,d){var H=e.getTokenAtPosition(ie,d);return e.Debug.assert(H.kind===95,"This token should be an ImportKeyword"),e.Debug.assert(H.parent.kind===187,"Token parent should be an ImportType"),H.parent}function ve(ie,d,H){var Pe=e.updateImportTypeNode(H,H.argument,H.qualifier,H.typeArguments,!0);ie.replaceNode(d,H,Pe)}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="fixConvertToMappedObjectType",Se=qe,Fe=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code];F.registerCodeFix({errorCodes:Fe,getCodeActions:function(H){var Pe=H.sourceFile,I=H.span,_e=He(Pe,I.start);if(!_e)return;var re=e.textChanges.ChangeTracker.with(H,function(w){return ie(w,Pe,_e)}),se=e.idText(_e.container.name);return[F.createCodeFixAction(Se,re,[e.Diagnostics.Convert_0_to_mapped_object_type,se],Se,[e.Diagnostics.Convert_0_to_mapped_object_type,se])]},fixIds:[Se],getAllCodeActions:function(H){return F.codeFixAll(H,Fe,function(Pe,I){var _e=He(I.file,I.start);_e&&ie(Pe,I.file,_e)})}});function He(d,H){var Pe=e.getTokenAtPosition(d,H),I=e.cast(Pe.parent.parent,e.isIndexSignatureDeclaration);if(e.isClassDeclaration(I.parent))return;var _e=e.isInterfaceDeclaration(I.parent)?I.parent:e.cast(I.parent.parent,e.isTypeAliasDeclaration);return{indexSignature:I,container:_e}}function ve(d,H){return e.createTypeAliasDeclaration(d.decorators,d.modifiers,d.name,d.typeParameters,H)}function ie(d,H,Pe){var I=Pe.indexSignature,_e=Pe.container,re=e.isInterfaceDeclaration(_e)?_e.members:_e.type.members,se=re.filter(function(Y){return!e.isIndexSignatureDeclaration(Y)}),w=e.first(I.parameters),k=e.createTypeParameterDeclaration(e.cast(w.name,e.isIdentifier),w.type),P=e.createMappedTypeNode(e.hasReadonlyModifier(I)?e.createModifier(137):void 0,k,I.questionToken,I.type),h=e.createIntersectionTypeNode(Or(e.getAllSuperTypeNodes(_e),[P],se.length?[e.createTypeLiteralNode(se)]:e.emptyArray));d.replaceNode(H,_e,ve(_e,h))}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="removeUnnecessaryAwait",Se=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ve){var ie=e.textChanges.ChangeTracker.with(ve,function(d){return Fe(d,ve.sourceFile,ve.span)});if(ie.length>0)return[F.createCodeFixAction(qe,ie,e.Diagnostics.Remove_unnecessary_await,qe,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[qe],getAllCodeActions:function(ve){return F.codeFixAll(ve,Se,function(ie,d){return Fe(ie,d.file,d)})}});function Fe(He,ve,ie){var d=e.tryCast(e.getTokenAtPosition(ve,ie.start),function(se){return se.kind===126}),H=d&&e.tryCast(d.parent,e.isAwaitExpression);if(!H)return;var Pe=H,I=e.isParenthesizedExpression(H.parent);if(I){var _e=e.getLeftmostExpression(H.expression,!1);if(e.isIdentifier(_e)){var re=e.findPrecedingToken(H.parent.pos,ve);re&&re.kind!==98&&(Pe=H.parent)}}He.replaceNode(ve,Pe,H.expression)}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="fixConvertConstToLet",Se=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];F.registerCodeFix({errorCodes:Se,getCodeActions:function(ie){var d=ie.sourceFile,H=ie.span,Pe=ie.program,I=Fe(d,H.start,Pe),_e=e.textChanges.ChangeTracker.with(ie,function(re){return He(re,d,I)});return[F.createCodeFixAction(qe,_e,e.Diagnostics.Convert_const_to_let,qe,e.Diagnostics.Convert_const_to_let)]},fixIds:[qe]});function Fe(ve,ie,d){var H=e.getTokenAtPosition(ve,ie),Pe=d.getTypeChecker(),I=Pe.getSymbolAtLocation(H);if(I)return I.valueDeclaration.parent.parent}function He(ve,ie,d){if(!d)return;var H=d.getStart();ve.replaceRangeWithText(ie,{pos:H,end:H+5},"let")}})(o=e.codefix||(e.codefix={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="Convert export",Se="Convert default export to named export",Fe="Convert named export to default export";F.registerRefactor(qe,{getAvailableActions:function(se){var w=He(se);if(!w)return e.emptyArray;var k=w.wasDefault?e.Diagnostics.Convert_default_export_to_named_export.message:e.Diagnostics.Convert_named_export_to_default_export.message,P=w.wasDefault?Se:Fe;return[{name:qe,description:k,actions:[{name:P,description:k}]}]},getEditsForAction:function(se,w){e.Debug.assert(w===Se||w===Fe,"Unexpected action name");var k=e.textChanges.ChangeTracker.with(se,function(P){return ve(se.file,se.program,e.Debug.assertDefined(He(se),"context must have info"),P,se.cancellationToken)});return{edits:k,renameFilename:void 0,renameLocation:void 0}}});function He(re){var se=re.file,w=e.getRefactorContextSpan(re),k=e.getTokenAtPosition(se,w.start),P=e.getParentNodeInSpan(k,se,w);if(!P||!e.isSourceFile(P.parent)&&!(e.isModuleBlock(P.parent)&&e.isAmbientModule(P.parent.parent)))return;var h=e.isSourceFile(P.parent)?P.parent.symbol:P.parent.parent.symbol,Y=e.getModifierFlags(P),ne=!!(Y&512);if(!(Y&1)||!ne&&h.exports.has("default"))return;switch(P.kind){case 243:case 244:case 245:case 247:case 246:case 248:{var $=P;return $.name&&e.isIdentifier($.name)?{exportNode:$,exportName:$.name,wasDefault:ne,exportingModuleSymbol:h}:void 0}case 224:{var J=P;if(!(J.declarationList.flags&2)||J.declarationList.declarations.length!==1)return;var fe=e.first(J.declarationList.declarations);return fe.initializer?(e.Debug.assert(!ne,"Can't have a default flag here"),e.isIdentifier(fe.name)?{exportNode:J,exportName:fe.name,wasDefault:ne,exportingModuleSymbol:h}:void 0):void 0}default:return}}function ve(re,se,w,k,P){ie(re,w,k,se.getTypeChecker()),d(se,w,k,P)}function ie(re,se,w,k){var P=se.wasDefault,h=se.exportNode,Y=se.exportName;if(P)w.delete(re,e.Debug.assertDefined(e.findModifier(h,83),"Should find a default keyword in modifier list"));else{var ne=e.Debug.assertDefined(e.findModifier(h,88),"Should find an export keyword in modifier list");switch(h.kind){case 243:case 244:case 245:w.insertNodeAfter(re,ne,e.createToken(83));break;case 224:if(!e.FindAllReferences.Core.isSymbolReferencedInFile(Y,k,re)){w.replaceNode(re,h,e.createExportDefault(e.Debug.assertDefined(e.first(h.declarationList.declarations).initializer,"Initializer was previously known to be present")));break}case 247:case 246:case 248:w.deleteModifier(re,ne),w.insertNodeAfter(re,h,e.createExportDefault(e.createIdentifier(Y.text)));break;default:e.Debug.assertNever(h,"Unexpected exportNode kind "+h.kind)}}}function d(re,se,w,k){var P=se.wasDefault,h=se.exportName,Y=se.exportingModuleSymbol,ne=re.getTypeChecker(),$=e.Debug.assertDefined(ne.getSymbolAtLocation(h),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(re.getSourceFiles(),ne,k,$,Y,h.text,P,function(J){var fe=J.getSourceFile();P?H(fe,J,w,h.text):Pe(fe,J,w)})}function H(re,se,w,k){var P=se.parent;switch(P.kind){case 193:w.replaceNode(re,se,e.createIdentifier(k));break;case 257:case 261:{var h=P;w.replaceNode(re,h,I(k,h.name.text));break}case 254:{var Y=P;e.Debug.assert(Y.name===se,"Import clause name should match provided ref");var h=I(k,se.text),ne=Y.namedBindings;if(!ne)w.replaceNode(re,se,e.createNamedImports([h]));else if(ne.kind===255){w.deleteRange(re,{pos:se.getStart(re),end:ne.getStart(re)});var $=e.isStringLiteral(Y.parent.moduleSpecifier)?e.quotePreferenceFromString(Y.parent.moduleSpecifier,re):1,J=e.makeImport(void 0,[I(k,se.text)],Y.parent.moduleSpecifier,$);w.insertNodeAfter(re,Y.parent,J)}else w.delete(re,se),w.insertNodeAtEndOfList(re,ne.elements,h);break}default:e.Debug.failBadSyntaxKind(P)}}function Pe(re,se,w){var k=se.parent;switch(k.kind){case 193:w.replaceNode(re,se,e.createIdentifier("default"));break;case 257:{var P=e.createIdentifier(k.name.text);k.parent.elements.length===1?w.replaceNode(re,k.parent,P):(w.delete(re,k),w.insertNodeBefore(re,k.parent,P));break}case 261:{w.replaceNode(re,k,_e("default",k.name.text));break}default:e.Debug.assertNever(k,"Unexpected parent kind "+k.kind)}}function I(re,se){return e.createImportSpecifier(re===se?void 0:e.createIdentifier(re),e.createIdentifier(se))}function _e(re,se){return e.createExportSpecifier(re===se?void 0:e.createIdentifier(re),e.createIdentifier(se))}})(o=e.refactor||(e.refactor={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="Convert import",Se="Convert namespace import to named imports",Fe="Convert named imports to namespace import";F.registerRefactor(qe,{getAvailableActions:function(I){var _e=He(I);if(!_e)return e.emptyArray;var re=_e.kind===255?e.Diagnostics.Convert_namespace_import_to_named_imports.message:e.Diagnostics.Convert_named_imports_to_namespace_import.message,se=_e.kind===255?Se:Fe;return[{name:qe,description:re,actions:[{name:se,description:re}]}]},getEditsForAction:function(I,_e){e.Debug.assert(_e===Se||_e===Fe,"Unexpected action name");var re=e.textChanges.ChangeTracker.with(I,function(se){return ve(I.file,I.program,se,e.Debug.assertDefined(He(I),"Context must provide an import to convert"))});return{edits:re,renameFilename:void 0,renameLocation:void 0}}});function He(Pe){var I=Pe.file,_e=e.getRefactorContextSpan(Pe),re=e.getTokenAtPosition(I,_e.start),se=e.getParentNodeInSpan(re,I,_e);if(!se||!e.isImportDeclaration(se))return;var w=se.importClause;return w&&w.namedBindings}function ve(Pe,I,_e,re){var se=I.getTypeChecker();re.kind===255?ie(Pe,se,_e,re,e.getAllowSyntheticDefaultImports(I.getCompilerOptions())):d(Pe,se,_e,re)}function ie(Pe,I,_e,re,se){var w=!1,k=[],P=e.createMap();e.FindAllReferences.Core.eachSymbolReferenceInFile(re.name,I,Pe,function(z){if(!e.isPropertyAccessExpression(z.parent))w=!0;else{var Ee=e.cast(z.parent,e.isPropertyAccessExpression),B=Ee.name.text;I.resolveName(B,z,67108863,!0)&&P.set(B,!0),e.Debug.assert(Ee.expression===z,"Parent expression should match id"),k.push(Ee)}});for(var h=e.createMap(),Y=0,ne=k;Y<ne.length;Y++){var $=ne[Y],J=$.name.text,fe=h.get(J);fe===void 0&&h.set(J,fe=P.has(J)?e.getUniqueName(J,Pe):J),_e.replaceNode(Pe,$,e.createIdentifier(fe))}var R=[];h.forEach(function(z,Ee){R.push(e.createImportSpecifier(z===Ee?void 0:e.createIdentifier(Ee),e.createIdentifier(z)))});var K=re.parent.parent;w&&!se?_e.insertNodeAfter(Pe,K,H(K,void 0,R)):_e.replaceNode(Pe,K,H(K,w?e.createIdentifier(re.name.text):void 0,R))}function d(Pe,I,_e,re){for(var se=re.parent.parent,w=se.moduleSpecifier,k=w&&e.isStringLiteral(w)?e.codefix.moduleSpecifierToValidIdentifier(w.text,99):"module",P=re.elements.some(function(R){return e.FindAllReferences.Core.eachSymbolReferenceInFile(R.name,I,Pe,function(K){return!!I.resolveName(k,K,67108863,!0)})||!1}),h=P?e.getUniqueName(k,Pe):k,Y=[],ne=function(K){var z=(K.propertyName||K.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(K.name,I,Pe,function(Ee){var B=e.createPropertyAccess(e.createIdentifier(h),z);e.isShorthandPropertyAssignment(Ee.parent)?_e.replaceNode(Pe,Ee.parent,e.createPropertyAssignment(Ee.text,B)):e.isExportSpecifier(Ee.parent)&&!Ee.parent.propertyName?Y.some(function(V){return V.name===K.name})||Y.push(e.createImportSpecifier(K.propertyName&&e.createIdentifier(K.propertyName.text),e.createIdentifier(K.name.text))):_e.replaceNode(Pe,Ee,B)})},$=0,J=re.elements;$<J.length;$++){var fe=J[$];ne(fe)}_e.replaceNode(Pe,re,e.createNamespaceImport(e.createIdentifier(h))),Y.length&&_e.insertNodeAfter(Pe,re.parent.parent,H(se,void 0,Y))}function H(Pe,I,_e){return e.createImportDeclaration(void 0,void 0,e.createImportClause(I,_e&&_e.length?e.createNamedImports(_e):void 0),Pe.moduleSpecifier)}})(o=e.refactor||(e.refactor={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe;(function(Se){var Fe="Extract Symbol";F.registerRefactor(Fe,{getAvailableActions:He,getEditsForAction:ve});function He(S){var v=H(S.file,e.getRefactorContextSpan(S)),U=v.targetRange;if(U===void 0)return e.emptyArray;var de=w(U,S);if(de===void 0)return e.emptyArray;for(var Ce=[],Z=e.createMap(),Re=[],Ae=e.createMap(),We=0,be=0,Ge=de;be<Ge.length;be++){var x=Ge[be],j=x.functionExtraction,Oe=x.constantExtraction;if(j.errors.length===0){var a=j.description;Z.has(a)||(Z.set(a,!0),Ce.push({description:a,name:"function_scope_"+We}))}if(Oe.errors.length===0){var a=Oe.description;Ae.has(a)||(Ae.set(a,!0),Re.push({description:a,name:"constant_scope_"+We}))}We++}var en=[];return Ce.length&&en.push({name:Fe,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:Ce}),Re.length&&en.push({name:Fe,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:Re}),en.length?en:e.emptyArray}Se.getAvailableActions=He;function ve(S,v){var U=H(S.file,e.getRefactorContextSpan(S)),de=U.targetRange,Ce=/^function_scope_(\d+)$/.exec(v);if(Ce){var Z=+Ce[1];return e.Debug.assert(isFinite(Z),"Expected to parse a finite number from the function scope index"),re(de,S,Z)}var Re=/^constant_scope_(\d+)$/.exec(v);if(Re){var Z=+Re[1];return e.Debug.assert(isFinite(Z),"Expected to parse a finite number from the constant scope index"),se(de,S,Z)}e.Debug.fail("Unrecognized action name")}Se.getEditsForAction=ve;var ie;(function(S){function v(U){return{message:U,code:0,category:e.DiagnosticCategory.Message,key:U}}S.cannotExtractRange=v("Cannot extract range."),S.cannotExtractImport=v("Cannot extract import statement."),S.cannotExtractSuper=v("Cannot extract super call."),S.cannotExtractJSDoc=v("Cannot extract JSDoc."),S.cannotExtractEmpty=v("Cannot extract empty range."),S.expressionExpected=v("expression expected."),S.uselessConstantType=v("No reason to extract constant of type."),S.statementOrExpressionExpected=v("Statement or expression expected."),S.cannotExtractRangeContainingConditionalBreakOrContinueStatements=v("Cannot extract range containing conditional break or continue statements."),S.cannotExtractRangeContainingConditionalReturnStatement=v("Cannot extract range containing conditional return statement."),S.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=v("Cannot extract range containing labeled break or continue with target outside of the range."),S.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=v("Cannot extract range containing writes to references located outside of the target range in generators."),S.typeWillNotBeVisibleInTheNewScope=v("Type will not visible in the new scope."),S.functionWillNotBeVisibleInTheNewScope=v("Function will not visible in the new scope."),S.cannotExtractIdentifier=v("Select more than a single identifier."),S.cannotExtractExportedEntity=v("Cannot extract exported declaration"),S.cannotWriteInExpression=v("Cannot write back side-effects when extracting an expression"),S.cannotExtractReadonlyPropertyInitializerOutsideConstructor=v("Cannot move initialization of read-only class property outside of the constructor"),S.cannotExtractAmbientBlock=v("Cannot extract code from ambient contexts"),S.cannotAccessVariablesFromNestedScopes=v("Cannot access variables from nested scopes"),S.cannotExtractToOtherFunctionLike=v("Cannot extract method to a function-like scope that is not a function"),S.cannotExtractToJSClass=v("Cannot extract constant to a class scope in JS"),S.cannotExtractToExpressionArrowFunction=v("Cannot extract constant to an arrow function without a block")})(ie=Se.Messages||(Se.Messages={}));var d;(function(S){S[S.None=0]="None",S[S.HasReturn=1]="HasReturn",S[S.IsGenerator=2]="IsGenerator",S[S.IsAsyncFunction=4]="IsAsyncFunction",S[S.UsesThis=8]="UsesThis",S[S.InStaticRegion=16]="InStaticRegion"})(d||(d={}));function H(S,v){var U=v.length;if(U===0)return{errors:[e.createFileDiagnostic(S,v.start,U,ie.cannotExtractEmpty)]};var de=e.getParentNodeInSpan(e.getTokenAtPosition(S,v.start),S,v),Ce=e.getParentNodeInSpan(e.findTokenOnLeftOfPosition(S,e.textSpanEnd(v)),S,v),Z=[],Re=d.None;if(!de||!Ce)return{errors:[e.createFileDiagnostic(S,v.start,U,ie.cannotExtractRange)]};if(de.parent!==Ce.parent)return{errors:[e.createFileDiagnostic(S,v.start,U,ie.cannotExtractRange)]};if(de!==Ce){if(!pe(de.parent))return{errors:[e.createFileDiagnostic(S,v.start,U,ie.cannotExtractRange)]};for(var Ae=[],We=de,be=0,Ge=We.parent.statements;be<Ge.length;be++){var x=Ge[be];if(x===de||Ae.length){var j=ae(x);if(j)return{errors:j};Ae.push(x)}if(x===Ce)break}return Ae.length?{targetRange:{range:Ae,facts:Re,declarations:Z}}:{errors:[e.createFileDiagnostic(S,v.start,U,ie.cannotExtractRange)]}}if(e.isJSDoc(de))return{errors:[e.createFileDiagnostic(S,v.start,U,ie.cannotExtractJSDoc)]};if(e.isReturnStatement(de)&&!de.expression)return{errors:[e.createFileDiagnostic(S,v.start,U,ie.cannotExtractRange)]};var Oe=en(de),a=Pn(Oe)||ae(Oe);if(a)return{errors:a};return{targetRange:{range:Pe(Oe),facts:Re,declarations:Z}};function en(ce){if(e.isReturnStatement(ce)){if(ce.expression)return ce.expression}else if(e.isVariableStatement(ce)){for(var Le=0,Je=void 0,Ze=0,Ue=ce.declarationList.declarations;Ze<Ue.length;Ze++){var cn=Ue[Ze];cn.initializer&&(Le++,Je=cn.initializer)}if(Le===1)return Je}else if(e.isVariableDeclaration(ce)&&ce.initializer)return ce.initializer;return ce}function Pn(ce){return e.isIdentifier(e.isExpressionStatement(ce)?ce.expression:ce)?[e.createDiagnosticForNode(ce,ie.cannotExtractIdentifier)]:void 0}function Xn(ce,Le){for(var Je=ce;Je!==Le;){if(Je.kind===158){e.hasModifier(Je,32)&&(Re|=d.InStaticRegion);break}else if(Je.kind===155){var Ze=e.getContainingFunction(Je);Ze.kind===161&&(Re|=d.InStaticRegion);break}else Je.kind===160&&(e.hasModifier(Je,32)&&(Re|=d.InStaticRegion));Je=Je.parent}}function ae(ce){var Le;if(function(sn){sn[sn.None=0]="None",sn[sn.Break=1]="Break",sn[sn.Continue=2]="Continue",sn[sn.Return=4]="Return"}(Le||(Le={})),e.Debug.assert(ce.pos<=ce.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(ce.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!e.isStatement(ce)&&!(e.isExpressionNode(ce)&&X(ce)))return[e.createDiagnosticForNode(ce,ie.statementOrExpressionExpected)];if(ce.flags&8388608)return[e.createDiagnosticForNode(ce,ie.cannotExtractAmbientBlock)];var Je=e.getContainingClass(ce);Je&&Xn(ce,Je);var Ze,Ue=4,cn;return $e(ce),Ze;function $e(sn){if(Ze)return!0;if(e.isDeclaration(sn)){var he=sn.kind===241?sn.parent.parent:sn;if(e.hasModifier(he,1))return(Ze||(Ze=[])).push(e.createDiagnosticForNode(sn,ie.cannotExtractExportedEntity)),!0;Z.push(sn.symbol)}switch(sn.kind){case 253:return(Ze||(Ze=[])).push(e.createDiagnosticForNode(sn,ie.cannotExtractImport)),!0;case 101:if(sn.parent.kind===195){var ke=e.getContainingClass(sn);if(ke.pos<v.start||ke.end>=v.start+v.length)return(Ze||(Ze=[])).push(e.createDiagnosticForNode(sn,ie.cannotExtractSuper)),!0}else Re|=d.UsesThis;break}if(e.isFunctionLikeDeclaration(sn)||e.isClassLike(sn)){switch(sn.kind){case 243:case 244:e.isSourceFile(sn.parent)&&sn.parent.externalModuleIndicator===void 0&&(Ze||(Ze=[])).push(e.createDiagnosticForNode(sn,ie.functionWillNotBeVisibleInTheNewScope));break}return!1}var G=Ue;switch(sn.kind){case 226:Ue=0;break;case 239:Ue=0;break;case 222:sn.parent&&sn.parent.kind===239&&sn.parent.finallyBlock===sn&&(Ue=4);break;case 275:Ue|=1;break;default:e.isIterationStatement(sn,!1)&&(Ue|=1|2);break}switch(sn.kind){case 182:case 103:Re|=d.UsesThis;break;case 237:{var c=sn.label;(cn||(cn=[])).push(c.escapedText),e.forEachChild(sn,$e),cn.pop();break}case 233:case 232:{var c=sn.label;c?e.contains(cn,c.escapedText)||(Ze||(Ze=[])).push(e.createDiagnosticForNode(sn,ie.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):Ue&(sn.kind===233?1:2)||(Ze||(Ze=[])).push(e.createDiagnosticForNode(sn,ie.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 205:Re|=d.IsAsyncFunction;break;case 211:Re|=d.IsGenerator;break;case 234:Ue&4?Re|=d.HasReturn:(Ze||(Ze=[])).push(e.createDiagnosticForNode(sn,ie.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(sn,$e);break}Ue=G}}}Se.getRangeToExtract=H;function Pe(S){return e.isStatement(S)?[S]:e.isExpressionNode(S)?e.isExpressionStatement(S.parent)?[S.parent]:S:void 0}function I(S){return e.isFunctionLikeDeclaration(S)||e.isSourceFile(S)||e.isModuleBlock(S)||e.isClassLike(S)}function _e(S){var v=D(S.range)?e.first(S.range):S.range;if(S.facts&d.UsesThis){var U=e.getContainingClass(v);if(U){var de=e.findAncestor(v,e.isFunctionLikeDeclaration);return de?[de,U]:[U]}}for(var Ce=[];;)if(v=v.parent,v.kind===155&&(v=e.findAncestor(v,function(Z){return e.isFunctionLikeDeclaration(Z)}).parent),I(v)&&(Ce.push(v),v.kind===288))return Ce}function re(S,v,U){var de=k(S,v),Ce=de.scopes,Z=de.readsAndWrites,Re=Z.target,Ae=Z.usagesPerScope,We=Z.functionErrorsPerScope,be=Z.exposedVariableDeclarations;return e.Debug.assert(!We[U].length,"The extraction went missing? How?"),v.cancellationToken.throwIfCancellationRequested(),fe(Re,Ce[U],Ae[U],be,S,v)}function se(S,v,U){var de=k(S,v),Ce=de.scopes,Z=de.readsAndWrites,Re=Z.target,Ae=Z.usagesPerScope,We=Z.constantErrorsPerScope,be=Z.exposedVariableDeclarations;e.Debug.assert(!We[U].length,"The extraction went missing? How?"),e.Debug.assert(be.length===0,"Extract constant accepted a range containing a variable declaration?"),v.cancellationToken.throwIfCancellationRequested();var Ge=e.isExpression(Re)?Re:Re.statements[0].expression;return R(Ge,Ce[U],Ae[U],S.facts,v)}function w(S,v){var U=k(S,v),de=U.scopes,Ce=U.readsAndWrites,Z=Ce.functionErrorsPerScope,Re=Ce.constantErrorsPerScope,Ae=de.map(function(We,be){var Ge=P(We),x=h(We),j=e.isFunctionLikeDeclaration(We)?Y(We):e.isClassLike(We)?ne(We):$(We),Oe,a;return j===1?(Oe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[Ge,"global"]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[x,"global"])):j===0?(Oe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[Ge,"module"]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[x,"module"])):(Oe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[Ge,j]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[x,j])),be===0&&!e.isClassLike(We)&&(a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[x])),{functionExtraction:{description:Oe,errors:Z[be]},constantExtraction:{description:a,errors:Re[be]}}});return Ae}function k(S,v){var U=v.file,de=_e(S),Ce=T(S,U),Z=N(S,de,Ce,U,v.program.getTypeChecker(),v.cancellationToken);return{scopes:de,readsAndWrites:Z}}function P(S){return e.isFunctionLikeDeclaration(S)?"inner function":e.isClassLike(S)?"method":"function"}function h(S){return e.isClassLike(S)?"readonly field":"constant"}function Y(S){switch(S.kind){case 161:return"constructor";case 200:case 243:return S.name?"function '"+S.name.text+"'":"anonymous function";case 201:return"arrow function";case 160:return"method '"+S.name.getText()+"'";case 162:return"'get "+S.name.getText()+"'";case 163:return"'set "+S.name.getText()+"'";default:throw e.Debug.assertNever(S,"Unexpected scope kind "+S.kind)}}function ne(S){return S.kind===244?S.name?"class '"+S.name.text+"'":"anonymous class declaration":S.name?"class expression '"+S.name.text+"'":"anonymous class expression"}function $(S){return S.kind===249?"namespace '"+S.parent.name.getText()+"'":S.externalModuleIndicator?0:1}var J;(function(S){S[S.Module=0]="Module",S[S.Global=1]="Global"})(J||(J={}));function fe(S,v,U,de,Ce,Z){var Re=U.usages,Ae=U.typeParameterUsages,We=U.substitutions,be=Z.program.getTypeChecker(),Ge=v.getSourceFile(),x=e.getUniqueName(e.isClassLike(v)?"newMethod":"newFunction",Ge),j=e.isInJSFile(v),Oe=e.createIdentifier(x),a,en=[],Pn=[],Xn;Re.forEach(function(dt,ot){var ct;if(!j){var wt=be.getTypeOfSymbolAtLocation(dt.symbol,dt.node);wt=be.getBaseTypeOfLiteralType(wt),ct=be.typeToTypeNode(wt,v,1)}var st=e.createParameter(void 0,void 0,void 0,ot,void 0,ct);en.push(st),dt.usage===2&&(Xn||(Xn=[])).push(dt),Pn.push(e.createIdentifier(ot))});var ae=e.arrayFrom(Ae.values()).map(function(dt){return{type:dt,declaration:z(dt)}}),ce=ae.sort(Ee),Le=ce.length===0?void 0:ce.map(function(dt){return dt.declaration}),Je=Le!==void 0?Le.map(function(dt){return e.createTypeReferenceNode(dt.name,void 0)}):void 0;if(e.isExpression(S)&&!j){var Ze=be.getContextualType(S);a=be.typeToTypeNode(Ze,v,1)}var Ue=V(S,de,Xn,We,!!(Ce.facts&d.HasReturn)),cn=Ue.body,$e=Ue.returnValueProperty;e.suppressLeadingAndTrailingTrivia(cn);var sn;if(e.isClassLike(v)){var he=j?[]:[e.createToken(116)];Ce.facts&d.InStaticRegion&&he.push(e.createToken(119)),Ce.facts&d.IsAsyncFunction&&he.push(e.createToken(125)),sn=e.createMethod(void 0,he.length?he:void 0,Ce.facts&d.IsGenerator?e.createToken(41):void 0,Oe,void 0,Le,en,a,cn)}else sn=e.createFunctionDeclaration(void 0,Ce.facts&d.IsAsyncFunction?[e.createToken(125)]:void 0,Ce.facts&d.IsGenerator?e.createToken(41):void 0,Oe,Le,en,a,cn);var ke=e.textChanges.ChangeTracker.fromContext(Z),G=(D(Ce.range)?e.last(Ce.range):Ce.range).end,c=L(G,v);c?ke.insertNodeBefore(Z.file,c,sn,!0):ke.insertNodeAtEndOfScope(Z.file,v,sn);var O=[],ee=B(v,Ce,x),Te=e.createCall(ee,Je,Pn);if(Ce.facts&d.IsGenerator&&(Te=e.createYield(e.createToken(41),Te)),Ce.facts&d.IsAsyncFunction&&(Te=e.createAwait(Te)),de.length&&!Xn)if(e.Debug.assert(!$e,"Expected no returnValueProperty"),e.Debug.assert(!(Ce.facts&d.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),de.length===1){var Ne=de[0];O.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(Ne.name),e.getSynthesizedDeepClone(Ne.type),Te)],Ne.parent.flags)))}else{for(var ze=[],bn=[],Sn=de[0].parent.flags,Kn=!1,Xe=0,pn=de;Xe<pn.length;Xe++){var Ne=pn[Xe];ze.push(e.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(Ne.name)));var le=be.typeToTypeNode(be.getBaseTypeOfLiteralType(be.getTypeAtLocation(Ne)),v,1);bn.push(e.createPropertySignature(void 0,Ne.symbol.name,void 0,le,void 0)),Kn=Kn||Ne.type!==void 0,Sn=Sn&Ne.parent.flags}var oe=Kn?e.createTypeLiteralNode(bn):void 0;oe&&e.setEmitFlags(oe,1),O.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createObjectBindingPattern(ze),oe,Te)],Sn)))}else if(de.length||Xn){if(de.length)for(var kn=0,yn=de;kn<yn.length;kn++){var Ne=yn[kn],ye=Ne.parent.flags;ye&2&&(ye=ye&~2|1),O.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(Ne.symbol.name,ut(Ne.type))],ye)))}$e&&O.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration($e,ut(a))],1)));var mn=b(de,Xn);$e&&mn.unshift(e.createShorthandPropertyAssignment($e)),mn.length===1?(e.Debug.assert(!$e,"Shouldn't have returnValueProperty here"),O.push(e.createStatement(e.createAssignment(mn[0].name,Te))),Ce.facts&d.HasReturn&&O.push(e.createReturn())):(O.push(e.createStatement(e.createAssignment(e.createObjectLiteral(mn),Te))),$e&&O.push(e.createReturn(e.createIdentifier($e))))}else Ce.facts&d.HasReturn?O.push(e.createReturn(Te)):D(Ce.range)?O.push(e.createStatement(Te)):O.push(Te);D(Ce.range)?ke.replaceNodeRangeWithNodes(Z.file,e.first(Ce.range),e.last(Ce.range),O):ke.replaceNodeWithNodes(Z.file,Ce.range,O);var un=ke.getChanges(),Mn=D(Ce.range)?e.first(Ce.range):Ce.range,tt=Mn.getSourceFile().fileName,Vn=e.getRenameLocation(un,tt,x,!1);return{renameFilename:tt,renameLocation:Vn,edits:un};function ut(dt){if(dt===void 0)return;for(var ot=e.getSynthesizedDeepClone(dt),ct=ot;e.isParenthesizedTypeNode(ct);)ct=ct.type;return e.isUnionTypeNode(ct)&&e.find(ct.types,function(wt){return wt.kind===145})?ot:e.createUnionTypeNode([ot,e.createKeywordTypeNode(145)])}}function R(S,v,U,de,Ce){var Z,Re=U.substitutions,Ae=Ce.program.getTypeChecker(),We=v.getSourceFile(),be=e.getUniqueName(e.isClassLike(v)?"newProperty":"newLocal",We),Ge=e.isInJSFile(v),x=Ge||!Ae.isContextSensitive(S)?void 0:Ae.typeToTypeNode(Ae.getContextualType(S),v,1),j=m(S,Re);Z=$e(x,j),x=Z.variableType,j=Z.initializer,e.suppressLeadingAndTrailingTrivia(j);var Oe=e.textChanges.ChangeTracker.fromContext(Ce);if(e.isClassLike(v)){e.Debug.assert(!Ge,"Cannot extract to a JS class");var a=[];a.push(e.createToken(116)),de&d.InStaticRegion&&a.push(e.createToken(119)),a.push(e.createToken(137));var en=e.createProperty(void 0,a,be,void 0,x,j),Pn=e.createPropertyAccess(de&d.InStaticRegion?e.createIdentifier(v.name.getText()):e.createThis(),e.createIdentifier(be)),Xn=S.pos,ae=C(Xn,v);Oe.insertNodeBefore(Ce.file,ae,en,!0),Oe.replaceNode(Ce.file,S,Pn)}else{var ce=e.createVariableDeclaration(be,x,j),Le=K(S,v);if(Le){Oe.insertNodeBefore(Ce.file,Le,ce);var Pn=e.createIdentifier(be);Oe.replaceNode(Ce.file,S,Pn)}else if(S.parent.kind===225&&v===e.findAncestor(S,I)){var Je=e.createVariableStatement(void 0,e.createVariableDeclarationList([ce],2));Oe.replaceNode(Ce.file,S.parent,Je)}else{var Je=e.createVariableStatement(void 0,e.createVariableDeclarationList([ce],2)),ae=_(S,v);if(ae.pos===0?Oe.insertNodeAtTopOfFile(Ce.file,Je,!1):Oe.insertNodeBefore(Ce.file,ae,Je,!1),S.parent.kind===225)Oe.delete(Ce.file,S.parent);else{var Pn=e.createIdentifier(be);Oe.replaceNode(Ce.file,S,Pn)}}}var Ze=Oe.getChanges(),Ue=S.getSourceFile().fileName,cn=e.getRenameLocation(Ze,Ue,be,!0);return{renameFilename:Ue,renameLocation:cn,edits:Ze};function $e(sn,he){if(sn===void 0)return{variableType:sn,initializer:he};if(!e.isFunctionExpression(he)&&!e.isArrowFunction(he)||!!he.typeParameters)return{variableType:sn,initializer:he};var ke=Ae.getTypeAtLocation(S),G=e.singleOrUndefined(Ae.getSignaturesOfType(ke,0));if(!G)return{variableType:sn,initializer:he};if(G.getTypeParameters())return{variableType:sn,initializer:he};for(var c=[],O=!1,ee=0,Te=he.parameters;ee<Te.length;ee++){var Ne=Te[ee];if(Ne.type)c.push(Ne);else{var ze=Ae.getTypeAtLocation(Ne);ze===Ae.getAnyType()&&(O=!0),c.push(e.updateParameter(Ne,Ne.decorators,Ne.modifiers,Ne.dotDotDotToken,Ne.name,Ne.questionToken,Ne.type||Ae.typeToTypeNode(ze,v,1),Ne.initializer))}}if(O)return{variableType:sn,initializer:he};if(sn=void 0,e.isArrowFunction(he))he=e.updateArrowFunction(he,S.modifiers,he.typeParameters,c,he.type||Ae.typeToTypeNode(G.getReturnType(),v,1),he.equalsGreaterThanToken,he.body);else{if(G&&!!G.thisParameter){var bn=e.firstOrUndefined(c);if(!bn||e.isIdentifier(bn.name)&&bn.name.escapedText!=="this"){var Sn=Ae.getTypeOfSymbolAtLocation(G.thisParameter,S);c.splice(0,0,e.createParameter(void 0,void 0,void 0,"this",void 0,Ae.typeToTypeNode(Sn,v,1)))}}he=e.updateFunctionExpression(he,S.modifiers,he.asteriskToken,he.name,he.typeParameters,c,he.type||Ae.typeToTypeNode(G.getReturnType(),v,1),he.body)}return{variableType:sn,initializer:he}}}function K(S,v){for(var U;S!==void 0&&S!==v;){if(e.isVariableDeclaration(S)&&S.initializer===U&&e.isVariableDeclarationList(S.parent)&&S.parent.declarations.length>1)return S;U=S,S=S.parent}}function z(S){var v,U=S.symbol;if(U&&U.declarations)for(var de=0,Ce=U.declarations;de<Ce.length;de++){var Z=Ce[de];(v===void 0||Z.pos<v.pos)&&(v=Z)}return v}function Ee(S,v){var U=S.type,de=S.declaration,Ce=v.type,Z=v.declaration;return e.compareProperties(de,Z,"pos",e.compareValues)||e.compareStringsCaseSensitive(U.symbol?U.symbol.getName():"",Ce.symbol?Ce.symbol.getName():"")||e.compareValues(U.id,Ce.id)}function B(S,v,U){var de=e.createIdentifier(U);if(e.isClassLike(S)){var Ce=v.facts&d.InStaticRegion?e.createIdentifier(S.name.text):e.createThis();return e.createPropertyAccess(Ce,de)}else return de}function V(S,v,U,de,Ce){var Z=U!==void 0||v.length>0;if(e.isBlock(S)&&!Z&&de.size===0)return{body:e.createBlock(S.statements,!0),returnValueProperty:void 0};var Re,Ae=!1,We=e.createNodeArray(e.isBlock(S)?S.statements.slice(0):[e.isStatement(S)?S:e.createReturn(S)]);if(Z||de.size){var be=e.visitNodes(We,x).slice();if(Z&&!Ce&&e.isStatement(S)){var Ge=b(v,U);Ge.length===1?be.push(e.createReturn(Ge[0].name)):be.push(e.createReturn(e.createObjectLiteral(Ge)))}return{body:e.createBlock(be,!0),returnValueProperty:Re}}else return{body:e.createBlock(We,!0),returnValueProperty:void 0};function x(j){if(!Ae&&j.kind===234&&Z){var Oe=b(v,U);return j.expression&&(Re||(Re="__return"),Oe.unshift(e.createPropertyAssignment(Re,e.visitNode(j.expression,x)))),Oe.length===1?e.createReturn(Oe[0].name):e.createReturn(e.createObjectLiteral(Oe))}else{var a=Ae;Ae=Ae||e.isFunctionLikeDeclaration(j)||e.isClassLike(j);var en=de.get(e.getNodeId(j).toString()),Pn=en?e.getSynthesizedDeepClone(en):e.visitEachChild(j,x,e.nullTransformationContext);return Ae=a,Pn}}}function m(S,v){return v.size?U(S):S;function U(de){var Ce=v.get(e.getNodeId(de).toString());return Ce?e.getSynthesizedDeepClone(Ce):e.visitEachChild(de,U,e.nullTransformationContext)}}function y(S){if(e.isFunctionLikeDeclaration(S)){var v=S.body;if(e.isBlock(v))return v.statements}else{if(e.isModuleBlock(S)||e.isSourceFile(S))return S.statements;if(e.isClassLike(S))return S.members;e.assertType(S)}return e.emptyArray}function L(S,v){return e.find(y(v),function(U){return U.pos>=S&&e.isFunctionLikeDeclaration(U)&&!e.isConstructorDeclaration(U)})}function C(S,v){var U=v.members;e.Debug.assert(U.length>0,"Found no members");for(var de,Ce=!0,Z=0,Re=U;Z<Re.length;Z++){var Ae=Re[Z];if(Ae.pos>S)return de||U[0];if(Ce&&!e.isPropertyDeclaration(Ae)){if(de!==void 0)return Ae;Ce=!1}de=Ae}return de===void 0?e.Debug.fail():de}function _(S,v){e.Debug.assert(!e.isClassLike(v));for(var U,de=S;de!==v;de=de.parent)I(de)&&(U=de);for(var de=(U||S).parent;;de=de.parent){if(pe(de)){for(var Ce=void 0,Z=0,Re=de.statements;Z<Re.length;Z++){var Ae=Re[Z];if(Ae.pos>S.pos)break;Ce=Ae}return!Ce&&e.isCaseClause(de)?(e.Debug.assert(e.isSwitchStatement(de.parent.parent),"Grandparent isn't a switch statement"),de.parent.parent):e.Debug.assertDefined(Ce,"prevStatement failed to get set")}e.Debug.assert(de!==v,"Didn't encounter a block-like before encountering scope")}}function b(S,v){var U=e.map(S,function(Ce){return e.createShorthandPropertyAssignment(Ce.symbol.name)}),de=e.map(v,function(Ce){return e.createShorthandPropertyAssignment(Ce.symbol.name)});return U===void 0?de:de===void 0?U:U.concat(de)}function D(S){return e.isArray(S)}function T(S,v){return D(S.range)?{pos:e.first(S.range).getStart(v),end:e.last(S.range).getEnd()}:S.range}var Q;(function(S){S[S.Read=1]="Read",S[S.Write=2]="Write"})(Q||(Q={}));function N(S,v,U,de,Ce,Z){var Re=e.createMap(),Ae=[],We=[],be=[],Ge=[],x=[],j=e.createMap(),Oe=[],a,en=D(S.range)?S.range.length===1&&e.isExpressionStatement(S.range[0])?S.range[0].expression:void 0:S.range,Pn;if(en===void 0){var Xn=S.range,ae=e.first(Xn).getStart(),ce=e.last(Xn).end;Pn=e.createFileDiagnostic(de,ae,ce-ae,ie.expressionExpected)}else Ce.getTypeAtLocation(en).flags&(16384|131072)&&(Pn=e.createDiagnosticForNode(en,ie.uselessConstantType));for(var Le=0,Je=v;Le<Je.length;Le++){var Ze=Je[Le];Ae.push({usages:e.createMap(),typeParameterUsages:e.createMap(),substitutions:e.createMap()}),We.push(e.createMap()),be.push(e.isFunctionLikeDeclaration(Ze)&&Ze.kind!==243?[e.createDiagnosticForNode(Ze,ie.cannotExtractToOtherFunctionLike)]:[]);var Ue=[];Pn&&Ue.push(Pn),e.isClassLike(Ze)&&e.isInJSFile(Ze)&&Ue.push(e.createDiagnosticForNode(Ze,ie.cannotExtractToJSClass)),e.isArrowFunction(Ze)&&!e.isBlock(Ze.body)&&Ue.push(e.createDiagnosticForNode(Ze,ie.cannotExtractToExpressionArrowFunction)),Ge.push(Ue)}var cn=e.createMap(),$e=D(S.range)?e.createBlock(S.range):S.range,sn=D(S.range)?e.first(S.range):S.range,he=Xe(sn);if(le($e),he&&!D(S.range)){var ke=Ce.getContextualType(S.range);pn(ke)}if(Re.size>0){for(var G=e.createMap(),c=0,O=sn;O!==void 0&&c<v.length;O=O.parent)if(O===v[c]&&(G.forEach(function(un,Mn){Ae[c].typeParameterUsages.set(Mn,un)}),c++),e.isDeclarationWithTypeParameters(O))for(var ee=0,Te=e.getEffectiveTypeParameterDeclarations(O);ee<Te.length;ee++){var Ne=Te[ee],ze=Ce.getTypeAtLocation(Ne);Re.has(ze.id.toString())&&G.set(ze.id.toString(),ze)}e.Debug.assert(c===v.length,"Should have iterated all scopes")}if(x.length){var bn=e.isBlockScope(v[0],v[0].parent)?v[0]:e.getEnclosingBlockScopeContainer(v[0]);e.forEachChild(bn,yn)}for(var Sn=function(Mn){var tt=Ae[Mn];if(Mn>0&&(tt.usages.size>0||tt.typeParameterUsages.size>0)){var Vn=D(S.range)?S.range[0]:S.range;Ge[Mn].push(e.createDiagnosticForNode(Vn,ie.cannotAccessVariablesFromNestedScopes))}var ut=!1,dt;if(Ae[Mn].usages.forEach(function(ct){ct.usage===2&&(ut=!0,ct.symbol.flags&106500&&ct.symbol.valueDeclaration&&e.hasModifier(ct.symbol.valueDeclaration,64)&&(dt=ct.symbol.valueDeclaration))}),e.Debug.assert(D(S.range)||Oe.length===0,"No variable declarations expected if something was extracted"),ut&&!D(S.range)){var ot=e.createDiagnosticForNode(S.range,ie.cannotWriteInExpression);be[Mn].push(ot),Ge[Mn].push(ot)}else if(dt&&Mn>0){var ot=e.createDiagnosticForNode(dt,ie.cannotExtractReadonlyPropertyInitializerOutsideConstructor);be[Mn].push(ot),Ge[Mn].push(ot)}else if(a){var ot=e.createDiagnosticForNode(a,ie.cannotExtractExportedEntity);be[Mn].push(ot),Ge[Mn].push(ot)}},Kn=0;Kn<v.length;Kn++)Sn(Kn);return{target:$e,usagesPerScope:Ae,functionErrorsPerScope:be,constantErrorsPerScope:Ge,exposedVariableDeclarations:Oe};function Xe(un){return!!e.findAncestor(un,function(Mn){return e.isDeclarationWithTypeParameters(Mn)&&e.getEffectiveTypeParameterDeclarations(Mn).length!==0})}function pn(un){for(var Mn=Ce.getSymbolWalker(function(){return Z.throwIfCancellationRequested(),!0}),tt=Mn.walkType(un).visitedTypes,Vn=0,ut=tt;Vn<ut.length;Vn++){var dt=ut[Vn];dt.isTypeParameter()&&Re.set(dt.id.toString(),dt)}}function le(un,Mn){if(Mn===void 0&&(Mn=1),he){var tt=Ce.getTypeAtLocation(un);pn(tt)}if(e.isDeclaration(un)&&un.symbol&&x.push(un),e.isAssignmentExpression(un))le(un.left,2),le(un.right);else if(e.isUnaryExpressionWithWrite(un))le(un.operand,2);else if(e.isPropertyAccessExpression(un)||e.isElementAccessExpression(un))e.forEachChild(un,le);else if(e.isIdentifier(un)){if(!un.parent)return;if(e.isQualifiedName(un.parent)&&un!==un.parent.left)return;if(e.isPropertyAccessExpression(un.parent)&&un!==un.parent.expression)return;oe(un,Mn,e.isPartOfTypeNode(un))}else e.forEachChild(un,le)}function oe(un,Mn,tt){var Vn=kn(un,Mn,tt);if(Vn)for(var ut=0;ut<v.length;ut++){var dt=We[ut].get(Vn);dt&&Ae[ut].substitutions.set(e.getNodeId(un).toString(),dt)}}function kn(un,Mn,tt){var Vn=ye(un);if(!Vn)return;var ut=e.getSymbolId(Vn).toString(),dt=cn.get(ut);if(dt&&dt>=Mn)return ut;if(cn.set(ut,Mn),dt){for(var ot=0,ct=Ae;ot<ct.length;ot++){var wt=ct[ot],st=wt.usages.get(un.text);st&&wt.usages.set(un.text,{usage:Mn,symbol:Vn,node:un})}return ut}var qn=Vn.getDeclarations(),Ie=qn&&e.find(qn,function(ba){return ba.getSourceFile()===de});if(!Ie)return;if(e.rangeContainsStartEnd(U,Ie.getStart(),Ie.end))return;if(S.facts&d.IsGenerator&&Mn===2){for(var De=e.createDiagnosticForNode(un,ie.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),_n=0,_t=be;_n<_t.length;_n++){var It=_t[_n];It.push(De)}for(var Ht=0,nr=Ge;Ht<nr.length;Ht++){var It=nr[Ht];It.push(De)}}for(var vr=0;vr<v.length;vr++){var Qr=v[vr],Wr=Ce.resolveName(Vn.name,Qr,Vn.flags,!1);if(Wr===Vn)continue;if(!We[vr].has(ut)){var gt=mn(Vn.exportSymbol||Vn,Qr,tt);if(gt)We[vr].set(ut,gt);else if(tt){if(!(Vn.flags&262144)){var De=e.createDiagnosticForNode(un,ie.typeWillNotBeVisibleInTheNewScope);be[vr].push(De),Ge[vr].push(De)}}else Ae[vr].usages.set(un.text,{usage:Mn,symbol:Vn,node:un})}}return ut}function yn(un){if(un===S.range||D(S.range)&&S.range.indexOf(un)>=0)return;var Mn=e.isIdentifier(un)?ye(un):Ce.getSymbolAtLocation(un);if(Mn){var tt=e.find(x,function(ut){return ut.symbol===Mn});if(tt)if(e.isVariableDeclaration(tt)){var Vn=tt.symbol.id.toString();j.has(Vn)||(Oe.push(tt),j.set(Vn,!0))}else a=a||tt}e.forEachChild(un,yn)}function ye(un){return un.parent&&e.isShorthandPropertyAssignment(un.parent)&&un.parent.name===un?Ce.getShorthandAssignmentValueSymbol(un.parent):Ce.getSymbolAtLocation(un)}function mn(un,Mn,tt){if(!un)return;var Vn=un.getDeclarations();if(Vn&&Vn.some(function(dt){return dt.parent===Mn}))return e.createIdentifier(un.name);var ut=mn(un.parent,Mn,tt);return ut===void 0?void 0:tt?e.createQualifiedName(ut,e.createIdentifier(un.name)):e.createPropertyAccess(ut,un.name)}}function X(S){var v=S.parent;switch(v.kind){case 282:return!1}switch(S.kind){case 10:return v.kind!==253&&v.kind!==257;case 212:case 188:case 190:return!1;case 75:return v.kind!==190&&v.kind!==257&&v.kind!==261}return!0}function pe(S){switch(S.kind){case 222:case 288:case 249:case 275:return!0;default:return!1}}})(qe=F.extractSymbol||(F.extractSymbol={}))})(o=e.refactor||(e.refactor={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="Extract type",Se="Extract to type alias",Fe="Extract to interface",He="Extract to typedef";F.registerRefactor(qe,{getAvailableActions:function(se){var w=ve(se);return w?[{name:qe,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:w.isJS?[{name:He,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef)}]:e.append([{name:Se,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias)}],w.typeElements&&{name:Fe,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface)})}]:e.emptyArray},getEditsForAction:function(se,w){var k=se.file,P=e.Debug.assertDefined(ve(se),"Expected to find a range to extract"),h=e.getUniqueName("NewType",k),Y=e.textChanges.ChangeTracker.with(se,function(J){switch(w){case Se:return e.Debug.assert(!P.isJS,"Invalid actionName/JS combo"),Pe(J,k,h,P);case He:return e.Debug.assert(P.isJS,"Invalid actionName/JS combo"),_e(J,k,h,P);case Fe:return e.Debug.assert(!P.isJS&&!!P.typeElements,"Invalid actionName/JS combo"),I(J,k,h,P);default:e.Debug.fail("Unexpected action name")}}),ne=k.fileName,$=e.getRenameLocation(Y,ne,h,!1);return{edits:Y,renameFilename:ne,renameLocation:$}}});function ve(re){var se=re.file,w=re.startPosition,k=e.isSourceFileJS(se),P=e.getTokenAtPosition(se,w),h=e.createTextRangeFromSpan(e.getRefactorContextSpan(re)),Y=e.findAncestor(P,function(R){return R.parent&&d(h,R,se)&&!d(h,R.parent,se)});if(!Y||!e.isTypeNode(Y))return;var ne=re.program.getTypeChecker(),$=e.Debug.assertDefined(e.findAncestor(Y,e.isStatement),"Should find a statement"),J=H(ne,Y,$,se);if(!J)return;var fe=ie(ne,Y);return{isJS:k,selection:Y,firstStatement:$,typeParameters:J,typeElements:fe}}function ie(re,se){if(!se)return;if(e.isIntersectionTypeNode(se)){for(var w=[],k=e.createMap(),P=0,h=se.types;P<h.length;P++){var Y=h[P],ne=ie(re,Y);if(!ne||!ne.every(function($){return $.name&&e.addToSeen(k,e.getNameFromPropertyName($.name))}))return;e.addRange(w,ne)}return w}else{if(e.isParenthesizedTypeNode(se))return ie(re,se.type);if(e.isTypeLiteralNode(se))return se.members}return}function d(re,se,w){return e.rangeContainsStartEnd(re,e.skipTrivia(w.text,se.pos),se.end)}function H(re,se,w,k){var P=[];return h(se)?void 0:P;function h(Y){if(e.isTypeReferenceNode(Y)){if(e.isIdentifier(Y.typeName)){var ne=re.resolveName(Y.typeName.text,Y.typeName,262144,!0);if(ne){var $=e.cast(e.first(ne.declarations),e.isTypeParameterDeclaration);d(w,$,k)&&!d(se,$,k)&&P.push($)}}}else if(e.isInferTypeNode(Y)){var J=e.findAncestor(Y,function(R){return e.isConditionalTypeNode(R)&&d(R.extendsType,Y,k)});if(!J||!d(se,J,k))return!0}else if(e.isTypePredicateNode(Y)||e.isThisTypeNode(Y)){var fe=e.findAncestor(Y.parent,e.isFunctionLike);if(fe&&fe.type&&d(fe.type,Y,k)&&!d(se,fe,k))return!0}else if(e.isTypeQueryNode(Y)){if(e.isIdentifier(Y.exprName)){var ne=re.resolveName(Y.exprName.text,Y.exprName,111551,!1);if(ne&&d(w,ne.valueDeclaration,k)&&!d(se,ne.valueDeclaration,k))return!0}else if(e.isThisIdentifier(Y.exprName.left)&&!d(se,Y.parent,k))return!0}return e.forEachChild(Y,h)}}function Pe(re,se,w,k){var P=k.firstStatement,h=k.selection,Y=k.typeParameters,ne=e.createTypeAliasDeclaration(void 0,void 0,w,Y.map(function($){return e.updateTypeParameterDeclaration($,$.name,$.constraint,void 0)}),h);re.insertNodeBefore(se,P,ne,!0),re.replaceNode(se,h,e.createTypeReferenceNode(w,Y.map(function($){return e.createTypeReferenceNode($.name,void 0)})))}function I(re,se,w,k){var P=k.firstStatement,h=k.selection,Y=k.typeParameters,ne=k.typeElements,$=e.createInterfaceDeclaration(void 0,void 0,w,Y,void 0,ne);re.insertNodeBefore(se,P,$,!0),re.replaceNode(se,h,e.createTypeReferenceNode(w,Y.map(function(J){return e.createTypeReferenceNode(J.name,void 0)})))}function _e(re,se,w,k){var P=k.firstStatement,h=k.selection,Y=k.typeParameters,ne=e.createNode(315);ne.tagName=e.createIdentifier("typedef"),ne.fullName=e.createIdentifier(w),ne.name=ne.fullName,ne.typeExpression=e.createJSDocTypeExpression(h);var $=[];e.forEach(Y,function(J){var fe=e.getEffectiveConstraintOfTypeParameter(J),R=e.createNode(314);R.tagName=e.createIdentifier("template"),R.constraint=fe&&e.cast(fe,e.isJSDocTypeExpression);var K=e.createNode(154);K.name=J.name,R.typeParameters=e.createNodeArray([K]),$.push(R)}),re.insertNodeBefore(se,P,e.createJSDocComment(void 0,e.createNodeArray(e.concatenate($,[ne]))),!0),re.replaceNode(se,h,e.createTypeReferenceNode(w,Y.map(function(J){return e.createTypeReferenceNode(J.name,void 0)})))}})(o=e.refactor||(e.refactor={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe;(function(Se){var Fe="Generate 'get' and 'set' accessors",He=e.Diagnostics.Generate_get_and_set_accessors.message;F.registerRefactor(Fe,{getEditsForAction:ie,getAvailableActions:ve});function ve(J){return se(J)?[{name:Fe,description:He,actions:[{name:Fe,description:He}]}]:e.emptyArray}function ie(J,fe){var R=J.file,K=se(J);if(!K)return;var z=e.isSourceFileJS(R),Ee=e.textChanges.ChangeTracker.fromContext(J),B=K.isStatic,V=K.isReadonly,m=K.fieldName,y=K.accessorName,L=K.originalName,C=K.type,_=K.container,b=K.declaration,D=K.renameAccessor;e.suppressLeadingAndTrailingTrivia(m),e.suppressLeadingAndTrailingTrivia(b),e.suppressLeadingAndTrailingTrivia(_);var T=e.isClassLike(_),Q=e.getModifierFlags(b)&~64,N=T?!Q||Q&8?_e(z,B,118):e.createNodeArray(e.createModifiersFromModifierFlags(Q)):void 0,X=T?_e(z,B,116):void 0;Y(Ee,R,b,m,X);var pe=w(m,y,C,N,B,_);if(e.suppressLeadingAndTrailingTrivia(pe),ne(Ee,R,pe,b,_),V){var S=e.getFirstConstructorWithBody(_);S&&$(Ee,R,S,m.text,L)}else{var v=k(m,y,C,N,B,_);e.suppressLeadingAndTrailingTrivia(v),ne(Ee,R,v,b,_)}var U=Ee.getChanges(),de=R.fileName,Ce=D?y:m,Z=e.isIdentifier(Ce)?0:-1,Re=Z+e.getRenameLocation(U,de,Ce.text,e.isParameter(b));return{renameFilename:de,renameLocation:Re,edits:U}}function d(J){return e.isIdentifier(J)||e.isStringLiteral(J)}function H(J){return e.isParameterPropertyDeclaration(J,J.parent)||e.isPropertyDeclaration(J)||e.isPropertyAssignment(J)}function Pe(J,fe){return e.isIdentifier(fe)?e.createIdentifier(J):e.createLiteral(J)}function I(J,fe,R){var K=fe?R.name:e.createThis();return e.isIdentifier(J)?e.createPropertyAccess(K,J):e.createElementAccess(K,e.createLiteral(J))}function _e(J,fe,R){var K=e.append(J?void 0:[e.createToken(R)],fe?e.createToken(119):void 0);return K&&e.createNodeArray(K)}function re(J){return J.charCodeAt(0)===95}function se(J){var fe=J.file,R=J.startPosition,K=J.endPosition,z=e.getTokenAtPosition(fe,R),Ee=e.findAncestor(z.parent,H),B=28|32|64;if(!Ee||!e.nodeOverlapsWithStartEnd(Ee.name,fe,R,K)||!d(Ee.name)||(e.getModifierFlags(Ee)|B)!==B)return;var V=Ee.name.text,m=re(V),y=Pe(m?V:e.getUniqueName("_"+V,fe),Ee.name),L=Pe(m?e.getUniqueName(V.substring(1),fe):V,Ee.name);return{isStatic:e.hasStaticModifier(Ee),isReadonly:e.hasReadonlyModifier(Ee),type:e.getTypeAnnotationNode(Ee),container:Ee.kind===155?Ee.parent.parent:Ee.parent,originalName:Ee.name.text,declaration:Ee,fieldName:y,accessorName:L,renameAccessor:m}}function w(J,fe,R,K,z,Ee){return e.createGetAccessor(void 0,K,fe,void 0,R,e.createBlock([e.createReturn(I(J,z,Ee))],!0))}function k(J,fe,R,K,z,Ee){return e.createSetAccessor(void 0,K,fe,[e.createParameter(void 0,void 0,void 0,e.createIdentifier("value"),void 0,R)],e.createBlock([e.createStatement(e.createAssignment(I(J,z,Ee),e.createIdentifier("value")))],!0))}function P(J,fe,R,K,z){var Ee=e.updateProperty(R,R.decorators,z,K,R.questionToken||R.exclamationToken,R.type,R.initializer);J.replaceNode(fe,R,Ee)}function h(J,fe,R,K){var z=e.updatePropertyAssignment(R,K,R.initializer);J.replacePropertyAssignment(fe,R,z)}function Y(J,fe,R,K,z){e.isPropertyDeclaration(R)?P(J,fe,R,K,z):e.isPropertyAssignment(R)?h(J,fe,R,K):J.replaceNode(fe,R,e.updateParameter(R,R.decorators,z,R.dotDotDotToken,e.cast(K,e.isIdentifier),R.questionToken,R.type,R.initializer))}function ne(J,fe,R,K,z){e.isParameterPropertyDeclaration(K,K.parent)?J.insertNodeAtClassStart(fe,z,R):e.isPropertyAssignment(K)?J.insertNodeAfterComma(fe,K,R):J.insertNodeAfter(fe,K,R)}function $(J,fe,R,K,z){if(!R.body)return;R.body.forEachChild(function Ee(B){e.isElementAccessExpression(B)&&B.expression.kind===103&&e.isStringLiteral(B.argumentExpression)&&B.argumentExpression.text===z&&e.isWriteAccess(B)&&J.replaceNode(fe,B.argumentExpression,e.createStringLiteral(K)),e.isPropertyAccessExpression(B)&&B.expression.kind===103&&B.name.text===z&&e.isWriteAccess(B)&&J.replaceNode(fe,B.name,e.createIdentifier(K)),!e.isFunctionLike(B)&&!e.isClassLike(B)&&B.forEachChild(Ee)})}})(qe=F.generateGetAccessorAndSetAccessor||(F.generateGetAccessorAndSetAccessor={}))})(o=e.refactor||(e.refactor={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe="Move to a new file";F.registerRefactor(qe,{getAvailableActions:function(Ge){if(!Ge.preferences.allowTextChangesInNewFiles||He(Ge)===void 0)return e.emptyArray;var x=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file);return[{name:qe,description:x,actions:[{name:qe,description:x}]}]},getEditsForAction:function(Ge,x){e.Debug.assert(x===qe,"Wrong refactor invoked");var j=e.Debug.assertDefined(He(Ge)),Oe=e.textChanges.ChangeTracker.with(Ge,function(a){return Fe(Ge.file,Ge.program,j,a,Ge.host,Ge.preferences)});return{edits:Oe,renameFilename:void 0,renameLocation:void 0}}});function Se(be){var Ge=be.file,x=e.createTextRangeFromSpan(e.getRefactorContextSpan(be)),j=Ge.statements,Oe=e.findIndex(j,function(Pn){return Pn.end>x.pos});if(Oe===-1)return;var a=j[Oe];if(e.isNamedDeclaration(a)&&a.name&&e.rangeContainsRange(a.name,x))return{toMove:[j[Oe]],afterLast:j[Oe+1]};if(x.pos>a.getStart(Ge))return;var en=e.findIndex(j,function(Pn){return Pn.end>x.end},Oe);return en!==-1&&(en===0||j[en].getStart(Ge)<x.end)?void 0:{toMove:j.slice(Oe,en===-1?j.length:en),afterLast:en===-1?void 0:j[en]}}function Fe(be,Ge,x,j,Oe,a){var en=Ge.getTypeChecker(),Pn=B(be,x.all,en),Xn=e.getDirectoryPath(be.fileName),ae=e.extensionFromPath(be.fileName),ce=z(Ee(Pn.movedSymbols),ae,Xn,Oe),Le=ce+ae;j.createNewFile(be,e.combinePaths(Xn,Le),d(be,Pn,j,x,Ge,ce,a)),ie(Ge,j,be.fileName,Le,e.hostGetCanonicalFileName(Oe))}function He(be){var Ge=Se(be);if(Ge===void 0)return;var x=[],j=[],Oe=Ge.toMove,a=Ge.afterLast;return e.getRangesWhere(Oe,function(en){return!ve(en)},function(en,Pn){for(var Xn=en;Xn<Pn;Xn++)x.push(Oe[Xn]);j.push({first:Oe[en],afterLast:a})}),x.length===0?void 0:{all:x,ranges:j}}function ve(be){switch(be.kind){case 253:return!0;case 252:return!e.hasModifier(be,1);case 224:return be.declarationList.declarations.every(function(Ge){return!!Ge.initializer&&e.isRequireCall(Ge.initializer,!0)});default:return!1}}function ie(be,Ge,x,j,Oe){var a=be.getCompilerOptions().configFile;if(!a)return;var en=e.normalizePath(e.combinePaths(x,"..",j)),Pn=e.getRelativePathFromFile(a.fileName,en,Oe),Xn=a.statements[0]&&e.tryCast(a.statements[0].expression,e.isObjectLiteralExpression),ae=Xn&&e.find(Xn.properties,function(ce){return e.isPropertyAssignment(ce)&&e.isStringLiteral(ce.name)&&ce.name.text==="files"});ae&&e.isArrayLiteralExpression(ae.initializer)&&Ge.insertNodeInListAfter(a,e.last(ae.initializer.elements),e.createLiteral(Pn),ae.initializer.elements)}function d(be,Ge,x,j,Oe,a,en){var Pn=Oe.getTypeChecker();if(!be.externalModuleIndicator&&!be.commonJsModuleIndicator)return H(be,j.ranges,x),j.all;var Xn=!!be.externalModuleIndicator,ae=e.getQuotePreference(be,en),ce=P(Ge.oldFileImportsFromNewFile,a,Xn,ae);return ce&&e.insertImport(x,be,ce),Pe(be,j.all,x,Ge.unusedImportsFromOldFile,Pn),H(be,j.ranges,x),I(x,Oe,be,Ge.movedSymbols,a),Or(K(be,Ge.oldImportsNeededByNewFile,Ge.newFileImportsFromOldFile,x,Pn,Xn,ae),$(be,j.all,Ge.oldFileImportsFromNewFile,Xn))}function H(be,Ge,x){for(var j=0,Oe=Ge;j<Oe.length;j++){var a=Oe[j],en=a.first,Pn=a.afterLast;x.deleteNodeRangeExcludingEnd(be,en,Pn)}}function Pe(be,Ge,x,j,Oe){for(var a=0,en=be.statements;a<en.length;a++){var Pn=en[a];if(e.contains(Ge,Pn))continue;k(Pn,function(Xn){return J(be,Xn,x,function(ae){return j.has(Oe.getSymbolAtLocation(ae))})})}}function I(be,Ge,x,j,Oe){for(var a=Ge.getTypeChecker(),en=function(Le){if(Le===x)return"continue";for(var Je=function(sn){k(sn,function(he){if(a.getSymbolAtLocation(w(he))!==x.symbol)return;var ke=function(Te){var Ne=e.isBindingElement(Te.parent)?e.getPropertySymbolFromBindingElement(a,Te.parent):e.skipAlias(a.getSymbolAtLocation(Te),a);return!!Ne&&j.has(Ne)};J(Le,he,be,ke);var G=e.combinePaths(e.getDirectoryPath(w(he).text),Oe),c=y(he,e.createLiteral(G),ke);c&&be.insertNodeAfter(Le,sn,c);var O=_e(he);O&&re(be,Le,a,j,Oe,G,O,he)})},Ze=0,Ue=Le.statements;Ze<Ue.length;Ze++){var cn=Ue[Ze];Je(cn)}},Pn=0,Xn=Ge.getSourceFiles();Pn<Xn.length;Pn++){var ae=Xn[Pn];en(ae)}}function _e(be){switch(be.kind){case 253:return be.importClause&&be.importClause.namedBindings&&be.importClause.namedBindings.kind===255?be.importClause.namedBindings.name:void 0;case 252:return be.name;case 241:return e.tryCast(be.name,e.isIdentifier);default:return e.Debug.assertNever(be,"Unexpected node kind "+be.kind)}}function re(be,Ge,x,j,Oe,a,en,Pn){var Xn=e.codefix.moduleSpecifierToValidIdentifier(Oe,99),ae=!1,ce=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(en,x,Ge,function(cn){if(!e.isPropertyAccessExpression(cn.parent))return;ae=ae||!!x.resolveName(Xn,cn,67108863,!0),j.has(x.getSymbolAtLocation(cn.parent.name))&&ce.push(cn)}),ce.length){for(var Le=ae?e.getUniqueName(Xn,Ge):Xn,Je=0,Ze=ce;Je<Ze.length;Je++){var Ue=Ze[Je];be.replaceNode(Ge,Ue,e.createIdentifier(Le))}be.insertNodeAfter(Ge,Pn,se(Pn,Oe,a))}}function se(be,Ge,x){var j=e.createIdentifier(Ge),Oe=e.createLiteral(x);switch(be.kind){case 253:return e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(j)),Oe);case 252:return e.createImportEqualsDeclaration(void 0,void 0,j,e.createExternalModuleReference(Oe));case 241:return e.createVariableDeclaration(j,void 0,ne(Oe));default:return e.Debug.assertNever(be,"Unexpected node kind "+be.kind)}}function w(be){return be.kind===253?be.moduleSpecifier:be.kind===252?be.moduleReference.expression:be.initializer.arguments[0]}function k(be,Ge){if(e.isImportDeclaration(be))e.isStringLiteral(be.moduleSpecifier)&&Ge(be);else if(e.isImportEqualsDeclaration(be))e.isExternalModuleReference(be.moduleReference)&&e.isStringLiteralLike(be.moduleReference.expression)&&Ge(be);else if(e.isVariableStatement(be))for(var x=0,j=be.declarationList.declarations;x<j.length;x++){var Oe=j[x];Oe.initializer&&e.isRequireCall(Oe.initializer,!0)&&Ge(Oe)}}function P(be,Ge,x,j){var Oe,a=[];return be.forEach(function(en){en.escapedName==="default"?Oe=e.createIdentifier(e.symbolNameNoDefault(en)):a.push(en.name)}),h(Oe,a,Ge,x,j)}function h(be,Ge,x,j,Oe){if(x=e.ensurePathIsNonModuleName(x),j){var a=Ge.map(function(Pn){return e.createImportSpecifier(void 0,e.createIdentifier(Pn))});return e.makeImportIfNecessary(be,a,x,Oe)}else{e.Debug.assert(!be,"No default import should exist");var en=Ge.map(function(Pn){return e.createBindingElement(void 0,void 0,Pn)});return en.length?Y(e.createObjectBindingPattern(en),void 0,ne(e.createLiteral(x))):void 0}}function Y(be,Ge,x,j){return j===void 0&&(j=2),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(be,Ge,x)],j))}function ne(be){return e.createCall(e.createIdentifier("require"),void 0,[be])}function $(be,Ge,x,j){return e.flatMap(Ge,function(Oe){if(Q(Oe)&&!de(be,Oe,j)&&X(Oe,function(en){return x.has(e.Debug.assertDefined(en.symbol))})){var a=Ce(Oe,j);if(a)return a}return Oe})}function J(be,Ge,x,j){switch(Ge.kind){case 253:fe(be,Ge,x,j);break;case 252:j(Ge.name)&&x.delete(be,Ge);break;case 241:R(be,Ge,x,j);break;default:e.Debug.assertNever(Ge,"Unexpected import decl kind "+Ge.kind)}}function fe(be,Ge,x,j){if(!Ge.importClause)return;var Oe=Ge.importClause,a=Oe.name,en=Oe.namedBindings,Pn=!a||j(a),Xn=!en||(en.kind===255?j(en.name):en.elements.length!==0&&en.elements.every(function(Je){return j(Je.name)}));if(Pn&&Xn)x.delete(be,Ge);else if(a&&Pn&&x.delete(be,a),en){if(Xn)x.replaceNode(be,Ge.importClause,e.updateImportClause(Ge.importClause,a,void 0));else if(en.kind===256)for(var ae=0,ce=en.elements;ae<ce.length;ae++){var Le=ce[ae];j(Le.name)&&x.delete(be,Le)}}}function R(be,Ge,x,j){var Oe=Ge.name;switch(Oe.kind){case 75:j(Oe)&&x.delete(be,Oe);break;case 189:break;case 188:if(Oe.elements.every(function(Xn){return e.isIdentifier(Xn.name)&&j(Xn.name)}))x.delete(be,e.isVariableDeclarationList(Ge.parent)&&Ge.parent.declarations.length===1?Ge.parent.parent:Ge);else for(var a=0,en=Oe.elements;a<en.length;a++){var Pn=en[a];e.isIdentifier(Pn.name)&&j(Pn.name)&&x.delete(be,Pn.name)}break}}function K(be,Ge,x,j,Oe,a,en){for(var Pn=[],Xn=0,ae=be.statements;Xn<ae.length;Xn++){var ce=ae[Xn];k(ce,function(Ue){e.append(Pn,y(Ue,w(Ue),function(cn){return Ge.has(Oe.getSymbolAtLocation(cn))}))})}var Le,Je=[],Ze=e.nodeSeenTracker();return x.forEach(function(Ue){for(var cn=0,$e=Ue.declarations;cn<$e.length;cn++){var sn=$e[cn];if(!D(sn))continue;var he=S(sn);if(!he)continue;var ke=v(sn);Ze(ke)&&U(be,ke,j,a),e.hasModifier(sn,512)?Le=he:Je.push(he.text)}}),e.append(Pn,h(Le,Je,e.removeFileExtension(e.getBaseFileName(be.fileName)),a,en)),Pn}function z(be,Ge,x,j){for(var Oe=be,a=1;;a++){var en=e.combinePaths(x,Oe+Ge);if(!j.fileExists(en))return Oe;Oe=be+"."+a}}function Ee(be){return be.forEachEntry(e.symbolNameNoDefault)||"newFile"}function B(be,Ge,x){var j=new b,Oe=new b,a=new b,en=e.find(Ge,function(he){return!!(he.transformFlags&2)}),Pn=sn(en);Pn&&Oe.add(Pn);for(var Xn=0,ae=Ge;Xn<ae.length;Xn++){var ce=ae[Xn];X(ce,function(he){j.add(e.Debug.assertDefined(e.isExpressionStatement(he)?x.getSymbolAtLocation(he.expression.left):he.symbol,"Need a symbol here"))})}for(var Le=0,Je=Ge;Le<Je.length;Le++){var ce=Je[Le];_(ce,x,function(ke){if(!ke.declarations)return;for(var G=0,c=ke.declarations;G<c.length;G++){var O=c[G];V(O)?Oe.add(ke):D(O)&&T(O)===be&&!j.has(ke)&&a.add(ke)}})}for(var Ze=Oe.clone(),Ue=new b,cn=0,$e=be.statements;cn<$e.length;cn++){var ce=$e[cn];if(e.contains(Ge,ce))continue;Pn&&!!(ce.transformFlags&2)&&Ze.delete(Pn),_(ce,x,function(ke){j.has(ke)&&Ue.add(ke),Ze.delete(ke)})}return{movedSymbols:j,newFileImportsFromOldFile:a,oldFileImportsFromNewFile:Ue,oldImportsNeededByNewFile:Oe,unusedImportsFromOldFile:Ze};function sn(he){if(he===void 0)return;var ke=x.getJsxNamespace(he),G=x.resolveName(ke,he,1920,!0);return!!G&&e.some(G.declarations,V)?G:void 0}}function V(be){switch(be.kind){case 252:case 257:case 254:return!0;case 241:return m(be);case 190:return e.isVariableDeclaration(be.parent.parent)&&m(be.parent.parent);default:return!1}}function m(be){return e.isSourceFile(be.parent.parent.parent)&&!!be.initializer&&e.isRequireCall(be.initializer,!0)}function y(be,Ge,x){switch(be.kind){case 253:{var j=be.importClause;if(!j)return;var Oe=j.name&&x(j.name)?j.name:void 0,a=j.namedBindings&&L(j.namedBindings,x);return Oe||a?e.createImportDeclaration(void 0,void 0,e.createImportClause(Oe,a),Ge):void 0}case 252:return x(be.name)?be:void 0;case 241:{var en=C(be.name,x);return en?Y(en,be.type,ne(Ge),be.parent.flags):void 0}default:return e.Debug.assertNever(be,"Unexpected import kind "+be.kind)}}function L(be,Ge){if(be.kind===255)return Ge(be.name)?be:void 0;var x=be.elements.filter(function(j){return Ge(j.name)});return x.length?e.createNamedImports(x):void 0}function C(be,Ge){switch(be.kind){case 75:return Ge(be)?be:void 0;case 189:return be;case 188:{var x=be.elements.filter(function(j){return j.propertyName||!e.isIdentifier(j.name)||Ge(j.name)});return x.length?e.createObjectBindingPattern(x):void 0}}}function _(be,Ge,x){be.forEachChild(function j(Oe){if(e.isIdentifier(Oe)&&!e.isDeclarationName(Oe)){var a=Ge.getSymbolAtLocation(Oe);a&&x(a)}else Oe.forEachChild(j)})}var b=function(){function be(){this.map=e.createMap()}return be.prototype.add=function(Ge){this.map.set(String(e.getSymbolId(Ge)),Ge)},be.prototype.has=function(Ge){return this.map.has(String(e.getSymbolId(Ge)))},be.prototype.delete=function(Ge){this.map.delete(String(e.getSymbolId(Ge)))},be.prototype.forEach=function(Ge){this.map.forEach(Ge)},be.prototype.forEachEntry=function(Ge){return e.forEachEntry(this.map,Ge)},be.prototype.clone=function(){var Ge=new be;return e.copyEntries(this.map,Ge.map),Ge},be}();function D(be){return N(be)&&e.isSourceFile(be.parent)||e.isVariableDeclaration(be)&&e.isSourceFile(be.parent.parent.parent)}function T(be){return e.isVariableDeclaration(be)?be.parent.parent.parent:be.parent}function Q(be){return e.Debug.assert(e.isSourceFile(be.parent),"Node parent should be a SourceFile"),N(be)||e.isVariableStatement(be)}function N(be){switch(be.kind){case 243:case 244:case 248:case 247:case 246:case 245:case 252:return!0;default:return!1}}function X(be,Ge){switch(be.kind){case 243:case 244:case 248:case 247:case 246:case 245:case 252:return Ge(be);case 224:return e.firstDefined(be.declarationList.declarations,function(j){return pe(j.name,Ge)});case 225:{var x=be.expression;return e.isBinaryExpression(x)&&e.getAssignmentDeclarationKind(x)===1?Ge(be):void 0}}}function pe(be,Ge){switch(be.kind){case 75:return Ge(e.cast(be.parent,function(x){return e.isVariableDeclaration(x)||e.isBindingElement(x)}));case 189:case 188:return e.firstDefined(be.elements,function(x){return e.isOmittedExpression(x)?void 0:pe(x.name,Ge)});default:return e.Debug.assertNever(be,"Unexpected name kind "+be.kind)}}function S(be){return e.isExpressionStatement(be)?be.expression.left.name:e.tryCast(be.name,e.isIdentifier)}function v(be){switch(be.kind){case 241:return be.parent.parent;case 190:return v(e.cast(be.parent.parent,function(Ge){return e.isVariableDeclaration(Ge)||e.isBindingElement(Ge)}));default:return be}}function U(be,Ge,x,j){if(de(be,Ge,j))return;if(j)e.isExpressionStatement(Ge)||x.insertExportModifier(be,Ge);else{var Oe=Ae(Ge);Oe.length!==0&&x.insertNodesAfter(be,Ge,Oe.map(We))}}function de(be,Ge,x){return x?!e.isExpressionStatement(Ge)&&e.hasModifier(Ge,1):Ae(Ge).some(function(j){return be.symbol.exports.has(e.escapeLeadingUnderscores(j))})}function Ce(be,Ge){return Ge?[Z(be)]:Re(be)}function Z(be){var Ge=e.concatenate([e.createModifier(88)],be.modifiers);switch(be.kind){case 243:return e.updateFunctionDeclaration(be,be.decorators,Ge,be.asteriskToken,be.name,be.typeParameters,be.parameters,be.type,be.body);case 244:return e.updateClassDeclaration(be,be.decorators,Ge,be.name,be.typeParameters,be.heritageClauses,be.members);case 224:return e.updateVariableStatement(be,Ge,be.declarationList);case 248:return e.updateModuleDeclaration(be,be.decorators,Ge,be.name,be.body);case 247:return e.updateEnumDeclaration(be,be.decorators,Ge,be.name,be.members);case 246:return e.updateTypeAliasDeclaration(be,be.decorators,Ge,be.name,be.typeParameters,be.type);case 245:return e.updateInterfaceDeclaration(be,be.decorators,Ge,be.name,be.typeParameters,be.heritageClauses,be.members);case 252:return e.updateImportEqualsDeclaration(be,be.decorators,Ge,be.name,be.moduleReference);case 225:return e.Debug.fail();default:return e.Debug.assertNever(be,"Unexpected declaration kind "+be.kind)}}function Re(be){return Or([be],Ae(be).map(We))}function Ae(be){switch(be.kind){case 243:case 244:return[be.name.text];case 224:return e.mapDefined(be.declarationList.declarations,function(Ge){return e.isIdentifier(Ge.name)?Ge.name.text:void 0});case 248:case 247:case 246:case 245:case 252:return e.emptyArray;case 225:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(be,"Unexpected decl kind "+be.kind)}}function We(be){return e.createExpressionStatement(e.createBinary(e.createPropertyAccess(e.createIdentifier("exports"),e.createIdentifier(be)),62,e.createIdentifier(be)))}})(o=e.refactor||(e.refactor={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe;(function(Se){var Fe="Add or remove braces in an arrow function",He=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,ve="Add braces to arrow function",ie="Remove braces from arrow function",d=e.Diagnostics.Add_braces_to_arrow_function.message,H=e.Diagnostics.Remove_braces_from_arrow_function.message;F.registerRefactor(Fe,{getEditsForAction:I,getAvailableActions:Pe});function Pe(se){var w=se.file,k=se.startPosition,P=re(w,k);return P?[{name:Fe,description:He,actions:[P.addBraces?{name:ve,description:d}:{name:ie,description:H}]}]:e.emptyArray}function I(se,w){var k=se.file,P=se.startPosition,h=re(k,P);if(!h)return;var Y=h.expression,ne=h.returnStatement,$=h.func,J;if(w===ve){var fe=e.createReturn(Y);J=e.createBlock([fe],!0),e.suppressLeadingAndTrailingTrivia(J),e.copyLeadingComments(Y,fe,k,3,!0)}else if(w===ie&&ne){var R=Y||e.createVoidZero();J=_e(R)?e.createParen(R):R,e.suppressLeadingAndTrailingTrivia(J),e.copyLeadingComments(ne,J,k,3,!1)}else e.Debug.fail("invalid action");var K=e.textChanges.ChangeTracker.with(se,function(z){return z.replaceNode(k,$.body,J)});return{renameFilename:void 0,renameLocation:void 0,edits:K}}function _e(se){return e.isBinaryExpression(se)&&se.operatorToken.kind===27||e.isObjectLiteralExpression(se)}function re(se,w){var k=e.getTokenAtPosition(se,w),P=e.getContainingFunction(k);if(!P||!e.isArrowFunction(P)||!e.rangeContainsRange(P,k)||e.rangeContainsRange(P.body,k))return;if(e.isExpression(P.body))return{func:P,addBraces:!0,expression:P.body};if(P.body.statements.length===1){var h=e.first(P.body.statements);if(e.isReturnStatement(h))return{func:P,addBraces:!1,expression:h.expression,returnStatement:h}}return}})(qe=F.addOrRemoveBracesToArrowFunction||(F.addOrRemoveBracesToArrowFunction={}))})(o=e.refactor||(e.refactor={}))})(ln||(ln={}));var ln;(function(e){var o;(function(F){var qe;(function(Se){var Fe="Convert parameters to destructured object",He=2;F.registerRefactor(Fe,{getEditsForAction:ie,getAvailableActions:ve});function ve(_){var b=_.file,D=_.startPosition,T=e.isSourceFileJS(b);if(T)return e.emptyArray;var Q=w(b,D,_.program.getTypeChecker());if(!Q)return e.emptyArray;var N=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object);return[{name:Fe,description:N,actions:[{name:Fe,description:N}]}]}function ie(_,b){e.Debug.assert(b===Fe,"Unexpected action name");var D=_.file,T=_.startPosition,Q=_.program,N=_.cancellationToken,X=_.host,pe=w(D,T,Q.getTypeChecker());if(!pe||!N)return;var S=H(pe,Q,N);if(S.valid){var v=e.textChanges.ChangeTracker.with(_,function(U){return d(D,Q,X,U,pe,S)});return{renameFilename:void 0,renameLocation:void 0,edits:v}}return{edits:[]}}function d(_,b,D,T,Q,N){var X=e.map(B(Q,b,D),function(Ce){return e.getSynthesizedDeepClone(Ce)});T.replaceNodeRangeWithNodes(_,e.first(Q.parameters),e.last(Q.parameters),X,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include});for(var pe=e.sortAndDeduplicate(N.functionCalls,function(Ce,Z){return e.compareValues(Ce.pos,Z.pos)}),S=0,v=pe;S<v.length;S++){var U=v[S];if(U.arguments&&U.arguments.length){var de=e.getSynthesizedDeepClone(Ee(Q,U.arguments),!0);T.replaceNodeRange(e.getSourceFileOfNode(U),e.first(U.arguments),e.last(U.arguments),de,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}}function H(_,b,D){var T=C(_),Q=e.isConstructorDeclaration(_)?L(_):[],N=e.deduplicate(Or(T,Q),e.equateValues),X=b.getTypeChecker(),pe=e.flatMap(N,function(de){return e.FindAllReferences.getReferenceEntriesForNode(-1,de,b,b.getSourceFiles(),D)}),S=v(pe);return e.every(S.declarations,function(de){return e.contains(N,de)})||(S.valid=!1),S;function v(de){for(var Ce={accessExpressions:[],typeUsages:[]},Z={functionCalls:[],declarations:[],classReferences:Ce,valid:!0},Re=e.map(T,U),Ae=e.map(Q,U),We=e.isConstructorDeclaration(_),be=0,Ge=de;be<Ge.length;be++){var x=Ge[be];if(x.kind!==1){Z.valid=!1;continue}if(e.contains(Re,U(x.node))||e.isNewExpressionTarget(x.node)){var j=Pe(x);if(j)continue;var Oe=I(x);if(Oe){Z.declarations.push(Oe);continue}var a=_e(x);if(a){Z.functionCalls.push(a);continue}}if(We&&e.contains(Ae,U(x.node))){var j=Pe(x);if(j)continue;var Oe=I(x);if(Oe){Z.declarations.push(Oe);continue}var en=re(x);if(en){Ce.accessExpressions.push(en);continue}if(e.isClassDeclaration(_.parent)){var Pn=se(x);if(Pn){Ce.typeUsages.push(Pn);continue}}}Z.valid=!1}return Z}function U(de){var Ce=X.getSymbolAtLocation(de);return Ce&&e.getSymbolTarget(Ce,X)}}function Pe(_){var b=_.node;return e.isImportSpecifier(b.parent)||e.isImportClause(b.parent)||e.isImportEqualsDeclaration(b.parent)||e.isNamespaceImport(b.parent)||(e.isExportSpecifier(b.parent)||e.isExportAssignment(b.parent))?b:void 0}function I(_){return e.isDeclaration(_.node.parent)?_.node:void 0}function _e(_){if(_.node.parent){var b=_.node,D=b.parent;switch(D.kind){case 195:case 196:var T=e.tryCast(D,e.isCallOrNewExpression);if(T&&T.expression===b)return T;break;case 193:var Q=e.tryCast(D,e.isPropertyAccessExpression);if(Q&&Q.parent&&Q.name===b){var N=e.tryCast(Q.parent,e.isCallOrNewExpression);if(N&&N.expression===Q)return N}break;case 194:var X=e.tryCast(D,e.isElementAccessExpression);if(X&&X.parent&&X.argumentExpression===b){var pe=e.tryCast(X.parent,e.isCallOrNewExpression);if(pe&&pe.expression===X)return pe}break}}return}function re(_){if(_.node.parent){var b=_.node,D=b.parent;switch(D.kind){case 193:var T=e.tryCast(D,e.isPropertyAccessExpression);if(T&&T.expression===b)return T;break;case 194:var Q=e.tryCast(D,e.isElementAccessExpression);if(Q&&Q.expression===b)return Q;break}}return}function se(_){var b=_.node;return e.getMeaningFromLocation(b)===2||e.isExpressionWithTypeArgumentsInClassExtendsClause(b.parent)?b:void 0}function w(_,b,D){var T=e.getTouchingToken(_,b),Q=e.getContainingFunctionDeclaration(T);return k(T)?void 0:Q&&P(Q,D)&&e.rangeContainsRange(Q,T)&&!(Q.body&&e.rangeContainsRange(Q.body,T))?Q:void 0}function k(_){var b=e.findAncestor(_,e.isJSDocNode);if(b){var D=e.findAncestor(b,function(T){return!e.isJSDocNode(T)});return!!D&&e.isFunctionLikeDeclaration(D)}return!1}function P(_,b){if(!ne(_.parameters,b))return!1;switch(_.kind){case 243:return Y(_)&&h(_,b);case 160:return h(_,b);case 161:return e.isClassDeclaration(_.parent)?Y(_.parent)&&h(_,b):J(_.parent.parent)&&h(_,b);case 200:case 201:return J(_.parent)}return!1}function h(_,b){return!!_.body&&!b.isImplementationOfOverload(_)}function Y(_){if(!_.name){var b=e.findModifier(_,83);return!!b}return!0}function ne(_,b){return R(_)>=He&&e.every(_,function(D){return $(D,b)})}function $(_,b){if(e.isRestParameter(_)){var D=b.getTypeAtLocation(_);if(!b.isArrayType(D)&&!b.isTupleType(D))return!1}return!_.modifiers&&!_.decorators&&e.isIdentifier(_.name)}function J(_){return e.isVariableDeclaration(_)&&e.isVarConst(_)&&e.isIdentifier(_.name)&&!_.type}function fe(_){return _.length>0&&e.isThis(_[0].name)}function R(_){return fe(_)?_.length-1:_.length}function K(_){return fe(_)&&(_=e.createNodeArray(_.slice(1),_.hasTrailingComma)),_}function z(_,b){return e.isIdentifier(b)&&e.getTextOfIdentifierOrLiteral(b)===_?e.createShorthandPropertyAssignment(_):e.createPropertyAssignment(_,b)}function Ee(_,b){var D=K(_.parameters),T=e.isRestParameter(e.last(D)),Q=T?b.slice(0,D.length-1):b,N=e.map(Q,function(v,U){var de=y(D[U]),Ce=z(de,v);return e.suppressLeadingAndTrailingTrivia(Ce.name),e.isPropertyAssignment(Ce)&&e.suppressLeadingAndTrailingTrivia(Ce.initializer),V(v,Ce),Ce});if(T&&b.length>=D.length){var X=b.slice(D.length-1),pe=e.createPropertyAssignment(y(e.last(D)),e.createArrayLiteral(X));N.push(pe)}var S=e.createObjectLiteral(N,!1);return S}function B(_,b,D){var T=b.getTypeChecker(),Q=K(_.parameters),N=e.map(Q,Ce),X=e.createObjectBindingPattern(N),pe=Z(Q),S;e.every(Q,We)&&(S=e.createObjectLiteral());var v=e.createParameter(void 0,void 0,void 0,X,void 0,pe,S);if(fe(_.parameters)){var U=_.parameters[0],de=e.createParameter(void 0,void 0,void 0,U.name,void 0,U.type);return e.suppressLeadingAndTrailingTrivia(de.name),V(U.name,de.name),U.type&&(e.suppressLeadingAndTrailingTrivia(de.type),V(U.type,de.type)),e.createNodeArray([de,v])}return e.createNodeArray([v]);function Ce(be){var Ge=e.createBindingElement(void 0,void 0,y(be),e.isRestParameter(be)&&We(be)?e.createArrayLiteral():be.initializer);return e.suppressLeadingAndTrailingTrivia(Ge),be.initializer&&Ge.initializer&&V(be.initializer,Ge.initializer),Ge}function Z(be){var Ge=e.map(be,Re),x=e.addEmitFlags(e.createTypeLiteralNode(Ge),1);return x}function Re(be){var Ge=be.type;!Ge&&(be.initializer||e.isRestParameter(be))&&(Ge=Ae(be));var x=e.createPropertySignature(void 0,y(be),We(be)?e.createToken(57):be.questionToken,Ge,void 0);return e.suppressLeadingAndTrailingTrivia(x),V(be.name,x.name),be.type&&x.type&&V(be.type,x.type),x}function Ae(be){var Ge=T.getTypeAtLocation(be);return e.getTypeNodeIfAccessible(Ge,be,b,D)}function We(be){if(e.isRestParameter(be)){var Ge=T.getTypeAtLocation(be);return!T.isTupleType(Ge)}return T.isOptionalParameter(be)}}function V(_,b){var D=_.getSourceFile(),T=D.text;m(_,T)?e.copyLeadingComments(_,b,D):e.copyTrailingAsLeadingComments(_,b,D),e.copyTrailingComments(_,b,D)}function m(_,b){for(var D=_.getFullStart(),T=_.getStart(),Q=D;Q<T;Q++)if(b.charCodeAt(Q)===10)return!0;return!1}function y(_){return e.getTextOfIdentifierOrLiteral(_.name)}function L(_){switch(_.parent.kind){case 244:var b=_.parent;if(b.name)return[b.name];var D=e.Debug.assertDefined(e.findModifier(b,83),"Nameless class declaration should be a default export");return[D];case 213:var T=_.parent,Q=_.parent.parent,N=T.name;return N?[N,Q.name]:[Q.name]}}function C(_){switch(_.kind){case 243:if(_.name)return[_.name];var b=e.Debug.assertDefined(e.findModifier(_,83),"Nameless function declaration should be a default export");return[b];case 160:return[_.name];case 161:var D=e.Debug.assertDefined(e.findChildOfKind(_,128,_.getSourceFile()),"Constructor declaration should have constructor keyword");if(_.parent.kind===213){var T=_.parent.parent;return[T.name,D]}return[D];case 201:return[_.parent.name];case 200:return _.name?[_.name,_.parent.name]:[_.parent.name];default:return e.Debug.assertNever(_,"Unexpected function declaration kind "+_.kind)}}})(qe=F.convertParamsToDestructuredObject||(F.convertParamsToDestructuredObject={}))})(o=e.refactor||(e.refactor={}))})(ln||(ln={}));var ln;(function(e){e.servicesVersion="0.8";function o(N,X,pe,S){var v=e.isNodeKind(N)?new F(N,X,pe):N===75?new d(75,X,pe):new ie(N,X,pe);return v.parent=S,v.flags=S.flags&25358336,v}var F=function(){function N(X,pe,S){this.pos=pe,this.end=S,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=X}return N.prototype.assertHasRealPosition=function(X){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),X||"Node must have a real position for this operation")},N.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},N.prototype.getStart=function(X,pe){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,X,pe)},N.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},N.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},N.prototype.getWidth=function(X){return this.assertHasRealPosition(),this.getEnd()-this.getStart(X)},N.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},N.prototype.getLeadingTriviaWidth=function(X){return this.assertHasRealPosition(),this.getStart(X)-this.pos},N.prototype.getFullText=function(X){return this.assertHasRealPosition(),(X||this.getSourceFile()).text.substring(this.pos,this.end)},N.prototype.getText=function(X){return this.assertHasRealPosition(),X||(X=this.getSourceFile()),X.text.substring(this.getStart(X),this.getEnd())},N.prototype.getChildCount=function(X){return this.getChildren(X).length},N.prototype.getChildAt=function(X,pe){return this.getChildren(pe)[X]},N.prototype.getChildren=function(X){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=qe(this,X))},N.prototype.getFirstToken=function(X){this.assertHasRealPosition();var pe=this.getChildren(X);if(!pe.length)return;var S=e.find(pe,function(v){return v.kind<292||v.kind>316});return S.kind<152?S:S.getFirstToken(X)},N.prototype.getLastToken=function(X){this.assertHasRealPosition();var pe=this.getChildren(X),S=e.lastOrUndefined(pe);return S?S.kind<152?S:S.getLastToken(X):void 0},N.prototype.forEachChild=function(X,pe){return e.forEachChild(this,X,pe)},N}();function qe(N,X){if(!e.isNodeKind(N.kind))return e.emptyArray;var pe=[];if(e.isJSDocCommentContainingNode(N))return N.forEachChild(function(de){pe.push(de)}),pe;e.scanner.setText((X||N.getSourceFile()).text);var S=N.pos,v=function(Ce){Se(pe,S,Ce.pos,N),pe.push(Ce),S=Ce.end},U=function(Ce){Se(pe,S,Ce.pos,N),pe.push(Fe(Ce,N)),S=Ce.end};return e.forEach(N.jsDoc,v),S=N.pos,N.forEachChild(v,U),Se(pe,S,N.end,N),e.scanner.setText(void 0),pe}function Se(N,X,pe,S){for(e.scanner.setTextPos(X);X<pe;){var v=e.scanner.scan(),U=e.scanner.getTextPos();if(U<=pe&&(v===75&&e.Debug.fail("Did not expect "+e.Debug.formatSyntaxKind(S.kind)+" to have an Identifier in its trivia"),N.push(o(v,X,U,S))),X=U,v===1)break}}function Fe(N,X){var pe=o(317,N.pos,N.end,X);pe._children=[];for(var S=N.pos,v=0,U=N;v<U.length;v++){var de=U[v];Se(pe._children,S,de.pos,X),pe._children.push(de),S=de.end}return Se(pe._children,S,N.end,X),pe}var He=function(){function N(X,pe){this.pos=X,this.end=pe,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return N.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},N.prototype.getStart=function(X,pe){return e.getTokenPosOfNode(this,X,pe)},N.prototype.getFullStart=function(){return this.pos},N.prototype.getEnd=function(){return this.end},N.prototype.getWidth=function(X){return this.getEnd()-this.getStart(X)},N.prototype.getFullWidth=function(){return this.end-this.pos},N.prototype.getLeadingTriviaWidth=function(X){return this.getStart(X)-this.pos},N.prototype.getFullText=function(X){return(X||this.getSourceFile()).text.substring(this.pos,this.end)},N.prototype.getText=function(X){return X||(X=this.getSourceFile()),X.text.substring(this.getStart(X),this.getEnd())},N.prototype.getChildCount=function(){return 0},N.prototype.getChildAt=function(){return},N.prototype.getChildren=function(){return this.kind===1&&this.jsDoc||e.emptyArray},N.prototype.getFirstToken=function(){return},N.prototype.getLastToken=function(){return},N.prototype.forEachChild=function(){return},N}(),ve=function(){function N(X,pe){this.flags=X,this.escapedName=pe}return N.prototype.getFlags=function(){return this.flags},Object.defineProperty(N.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!0,configurable:!0}),N.prototype.getEscapedName=function(){return this.escapedName},N.prototype.getName=function(){return this.name},N.prototype.getDeclarations=function(){return this.declarations},N.prototype.getDocumentationComment=function(X){return this.documentationComment||(this.documentationComment=e.emptyArray,this.documentationComment=_e(this.declarations,X)),this.documentationComment},N.prototype.getJsDocTags=function(){return this.tags===void 0&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},N}(),ie=function(N){Mi(X,N);function X(pe,S,v){var U=N.call(this,S,v)||this;return U.kind=pe,U}return X}(He),d=function(N){Mi(X,N);function X(pe,S,v){var U=N.call(this,S,v)||this;return U.kind=75,U}return Object.defineProperty(X.prototype,"text",{get:function(){return e.idText(this)},enumerable:!0,configurable:!0}),X}(He);d.prototype.kind=75;var H=function(){function N(X,pe){this.checker=X,this.flags=pe}return N.prototype.getFlags=function(){return this.flags},N.prototype.getSymbol=function(){return this.symbol},N.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},N.prototype.getProperty=function(X){return this.checker.getPropertyOfType(this,X)},N.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},N.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},N.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},N.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},N.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},N.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},N.prototype.isNullableType=function(){return this.checker.isNullableType(this)},N.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},N.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},N.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},N.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},N.prototype.isUnion=function(){return!!(this.flags&1048576)},N.prototype.isIntersection=function(){return!!(this.flags&2097152)},N.prototype.isUnionOrIntersection=function(){return!!(this.flags&3145728)},N.prototype.isLiteral=function(){return!!(this.flags&384)},N.prototype.isStringLiteral=function(){return!!(this.flags&128)},N.prototype.isNumberLiteral=function(){return!!(this.flags&256)},N.prototype.isTypeParameter=function(){return!!(this.flags&262144)},N.prototype.isClassOrInterface=function(){return!!(e.getObjectFlags(this)&3)},N.prototype.isClass=function(){return!!(e.getObjectFlags(this)&1)},Object.defineProperty(N.prototype,"typeArguments",{get:function(){return e.getObjectFlags(this)&4?this.checker.getTypeArguments(this):void 0},enumerable:!0,configurable:!0}),N}(),Pe=function(){function N(X,pe){this.checker=X,this.flags=pe}return N.prototype.getDeclaration=function(){return this.declaration},N.prototype.getTypeParameters=function(){return this.typeParameters},N.prototype.getParameters=function(){return this.parameters},N.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},N.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=_e(e.singleElementArray(this.declaration),this.checker))},N.prototype.getJsDocTags=function(){return this.jsDocTags===void 0&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},N}();function I(N){return e.getJSDocTags(N).some(function(X){return X.tagName.text==="inheritDoc"})}function _e(N,X){if(!N)return e.emptyArray;var pe=e.JsDoc.getJsDocCommentsFromDeclarations(N);return(pe.length===0||N.some(I))&&e.forEachUnique(N,function(S){var v=re(S,S.symbol.name,X);v&&(pe=pe.length===0?v.slice():v.concat(e.lineBreakPart(),pe))}),pe}function re(N,X,pe){return e.firstDefined(N.parent?e.getAllSuperTypeNodes(N.parent):e.emptyArray,function(S){var v=pe.getTypeAtLocation(S),U=v&&pe.getPropertyOfType(v,X),de=U&&U.getDocumentationComment(pe);return de&&de.length?de:void 0})}var se=function(N){Mi(X,N);function X(pe,S,v){var U=N.call(this,pe,S,v)||this;return U.kind=288,U}return X.prototype.update=function(pe,S){return e.updateSourceFile(this,pe,S)},X.prototype.getLineAndCharacterOfPosition=function(pe){return e.getLineAndCharacterOfPosition(this,pe)},X.prototype.getLineStarts=function(){return e.getLineStarts(this)},X.prototype.getPositionOfLineAndCharacter=function(pe,S,v){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),pe,S,this.text,v)},X.prototype.getLineEndOfPosition=function(pe){var S=this.getLineAndCharacterOfPosition(pe).line,v=this.getLineStarts(),U;S+1>=v.length&&(U=this.getEnd()),U||(U=v[S+1]-1);var de=this.getFullText();return de[U]===`
`&&de[U-1]==="\r"?U-1:U},X.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},X.prototype.computeNamedDeclarations=function(){var pe=e.createMultiMap();return this.forEachChild(de),pe;function S(Ce){var Z=U(Ce);Z&&pe.add(Z,Ce)}function v(Ce){var Z=pe.get(Ce);return Z||pe.set(Ce,Z=[]),Z}function U(Ce){var Z=e.getNonAssignedNameOfDeclaration(Ce);return Z&&(e.isComputedPropertyName(Z)&&e.isPropertyAccessExpression(Z.expression)?Z.expression.name.text:e.isPropertyName(Z)?e.getNameFromPropertyName(Z):void 0)}function de(Ce){switch(Ce.kind){case 243:case 200:case 160:case 159:var Z=Ce,Re=U(Z);if(Re){var Ae=v(Re),We=e.lastOrUndefined(Ae);We&&Z.parent===We.parent&&Z.symbol===We.symbol?Z.body&&!We.body&&(Ae[Ae.length-1]=Z):Ae.push(Z)}e.forEachChild(Ce,de);break;case 244:case 213:case 245:case 246:case 247:case 248:case 252:case 261:case 257:case 254:case 255:case 162:case 163:case 172:S(Ce),e.forEachChild(Ce,de);break;case 155:if(!e.hasModifier(Ce,92))break;case 241:case 190:{var be=Ce;if(e.isBindingPattern(be.name)){e.forEachChild(be.name,de);break}be.initializer&&de(be.initializer)}case 282:case 158:case 157:S(Ce);break;case 259:Ce.exportClause&&e.forEach(Ce.exportClause.elements,de);break;case 253:var Ge=Ce.importClause;Ge&&(Ge.name&&S(Ge.name),Ge.namedBindings&&(Ge.namedBindings.kind===255?S(Ge.namedBindings):e.forEach(Ge.namedBindings.elements,de)));break;case 208:e.getAssignmentDeclarationKind(Ce)!==0&&S(Ce);default:e.forEachChild(Ce,de)}}},X}(F),w=function(){function N(X,pe,S){this.fileName=X,this.text=pe,this.skipTrivia=S}return N.prototype.getLineAndCharacterOfPosition=function(X){return e.getLineAndCharacterOfPosition(this,X)},N}();function k(){return{getNodeConstructor:function(){return F},getTokenConstructor:function(){return ie},getIdentifierConstructor:function(){return d},getSourceFileConstructor:function(){return se},getSymbolConstructor:function(){return ve},getTypeConstructor:function(){return H},getSignatureConstructor:function(){return Pe},getSourceMapSourceConstructor:function(){return w}}}function P(N){var X=!0;for(var pe in N)if(e.hasProperty(N,pe)&&!h(pe)){X=!1;break}if(X)return N;var S={};for(var pe in N)if(e.hasProperty(N,pe)){var v=h(pe)?pe:pe.charAt(0).toLowerCase()+pe.substr(1);S[v]=N[pe]}return S}e.toEditorSettings=P;function h(N){return!N.length||N.charAt(0)===N.charAt(0).toLowerCase()}function Y(N){return N?e.map(N,function(X){return X.text}).join(""):""}e.displayPartsToString=Y;function ne(){return{target:1,jsx:1}}e.getDefaultCompilerOptions=ne;function $(){return e.codefix.getSupportedErrorCodes()}e.getSupportedCodeFixes=$;var J=function(){function N(X,pe){this.host=X,this.currentDirectory=X.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var S=X.getScriptFileNames(),v=0,U=S;v<U.length;v++){var de=U[v];this.createEntry(de,e.toPath(de,this.currentDirectory,pe))}this._compilationSettings=X.getCompilationSettings()||ne()}return N.prototype.compilationSettings=function(){return this._compilationSettings},N.prototype.getProjectReferences=function(){return this.host.getProjectReferences&&this.host.getProjectReferences()},N.prototype.createEntry=function(X,pe){var S,v=this.host.getScriptSnapshot(X);return v?S={hostFileName:X,version:this.host.getScriptVersion(X),scriptSnapshot:v,scriptKind:e.getScriptKind(X,this.host)}:S=X,this.fileNameToEntry.set(pe,S),S},N.prototype.getEntryByPath=function(X){return this.fileNameToEntry.get(X)},N.prototype.getHostFileInformation=function(X){var pe=this.fileNameToEntry.get(X);return e.isString(pe)?void 0:pe},N.prototype.getOrCreateEntryByPath=function(X,pe){var S=this.getEntryByPath(pe)||this.createEntry(X,pe);return e.isString(S)?void 0:S},N.prototype.getRootFileNames=function(){var X=[];return this.fileNameToEntry.forEach(function(pe){e.isString(pe)?X.push(pe):pe.scriptKind!==6&&X.push(pe.hostFileName)}),X},N.prototype.getVersion=function(X){var pe=this.getHostFileInformation(X);return pe&&pe.version},N.prototype.getScriptSnapshot=function(X){var pe=this.getHostFileInformation(X);return pe&&pe.scriptSnapshot},N}(),fe=function(){function N(X){this.host=X}return N.prototype.getCurrentSourceFile=function(X){var pe=this.host.getScriptSnapshot(X);if(!pe)throw new Error("Could not find file: '"+X+"'.");var S=e.getScriptKind(X,this.host),v=this.host.getScriptVersion(X),U;if(this.currentFileName!==X)U=K(X,pe,99,v,!0,S);else if(this.currentFileVersion!==v){var de=pe.getChangeRange(this.currentFileScriptSnapshot);U=z(this.currentSourceFile,pe,v,de)}return U&&(this.currentFileVersion=v,this.currentFileName=X,this.currentFileScriptSnapshot=pe,this.currentSourceFile=U),this.currentSourceFile},N}();function R(N,X,pe){N.version=pe,N.scriptSnapshot=X}function K(N,X,pe,S,v,U){var de=e.createSourceFile(N,e.getSnapshotText(X),pe,v,U);return R(de,X,S),de}e.createLanguageServiceSourceFile=K,e.disableIncrementalParsing=!1;function z(N,X,pe,S,v){if(S&&(pe!==N.version&&!e.disableIncrementalParsing)){var U=void 0,de=S.span.start!==0?N.text.substr(0,S.span.start):"",Ce=e.textSpanEnd(S.span)!==N.text.length?N.text.substr(e.textSpanEnd(S.span)):"";if(S.newLength===0)U=de&&Ce?de+Ce:de||Ce;else{var Z=X.getText(S.span.start,S.span.start+S.newLength);U=de&&Ce?de+Z+Ce:de?de+Z:Z+Ce}var Re=e.updateSourceFile(N,U,S,v);return R(Re,X,pe),Re.nameTable=void 0,N!==Re&&N.scriptSnapshot&&(N.scriptSnapshot.dispose&&N.scriptSnapshot.dispose(),N.scriptSnapshot=void 0),Re}return K(N.fileName,X,N.languageVersion,pe,!0,N.scriptKind)}e.updateLanguageServiceSourceFile=z;var Ee=function(){function N(X){this.cancellationToken=X}return N.prototype.isCancellationRequested=function(){return!!this.cancellationToken&&this.cancellationToken.isCancellationRequested()},N.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},N}(),B=function(){function N(X,pe){pe===void 0&&(pe=20),this.hostCancellationToken=X,this.throttleWaitMilliseconds=pe,this.lastCancellationCheckTime=0}return N.prototype.isCancellationRequested=function(){var X=e.timestamp(),pe=Math.abs(X-this.lastCancellationCheckTime);return pe>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=X,this.hostCancellationToken.isCancellationRequested()):!1},N.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},N}();e.ThrottledCancellationToken=B;function V(N,X,pe){var S;X===void 0&&(X=e.createDocumentRegistry(N.useCaseSensitiveFileNames&&N.useCaseSensitiveFileNames(),N.getCurrentDirectory())),pe===void 0&&(pe=!1);var v=new fe(N),U,de,Ce=0,Z=new Ee(N.getCancellationToken&&N.getCancellationToken()),Re=N.getCurrentDirectory();!e.localizedDiagnosticMessages&&N.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=N.getLocalizedDiagnosticMessages());function Ae(ft){N.log&&N.log(ft)}var We=e.hostUsesCaseSensitiveFileNames(N),be=e.createGetCanonicalFileName(We),Ge=e.getSourceMapper({useCaseSensitiveFileNames:function(){return We},getCurrentDirectory:function(){return Re},getProgram:Oe,fileExists:e.maybeBind(N,N.fileExists),readFile:e.maybeBind(N,N.readFile),getDocumentPositionMapper:e.maybeBind(N,N.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(N,N.getSourceFileLike),log:Ae});function x(ft){var Tt=U.getSourceFile(ft);if(!Tt){var yt=new Error("Could not find source file: '"+ft+"'.");throw yt.ProgramFiles=U.getSourceFiles().map(function(vt){return vt.fileName}),yt}return Tt}function j(){if(e.Debug.assert(!pe),N.getProjectVersion){var ft=N.getProjectVersion();if(ft){if(de===ft&&!N.hasChangedAutomaticTypeDirectiveNames)return;de=ft}}var Tt=N.getTypeRootsVersion?N.getTypeRootsVersion():0;Ce!==Tt&&(Ae("TypeRoots version has changed; provide new program"),U=void 0,Ce=Tt);var yt=new J(N,be),vt=yt.getRootFileNames(),Ke=N.hasInvalidatedResolution||e.returnFalse,Rn=yt.getProjectReferences();if(e.isProgramUptoDate(U,vt,yt.compilationSettings(),function(Xa){return yt.getVersion(Xa)},ai,Ke,!!N.hasChangedAutomaticTypeDirectiveNames,Rn))return;var nt=yt.compilationSettings(),tr={getSourceFile:Ei,getSourceFileByPath:Pi,getCancellationToken:function(){return Z},getCanonicalFileName:be,useCaseSensitiveFileNames:function(){return We},getNewLine:function(){return e.getNewLineCharacter(nt,function(){return e.getNewLineOrDefaultFromHost(N)})},getDefaultLibFileName:function(Ia){return N.getDefaultLibFileName(Ia)},writeFile:e.noop,getCurrentDirectory:function(){return Re},fileExists:ai,readFile:wi,realpath:N.realpath&&function(Xa){return N.realpath(Xa)},directoryExists:function(Ia){return e.directoryProbablyExists(Ia,N)},getDirectories:function(Ia){return N.getDirectories?N.getDirectories(Ia):[]},readDirectory:function(Ia,ca,Ti,Vo,mo){return e.Debug.assertDefined(N.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),N.readDirectory(Ia,ca,Ti,Vo,mo)},onReleaseOldSourceFile:Ai,hasInvalidatedResolution:Ke,hasChangedAutomaticTypeDirectiveNames:N.hasChangedAutomaticTypeDirectiveNames};N.trace&&(tr.trace=function(Xa){return N.trace(Xa)}),N.resolveModuleNames&&(tr.resolveModuleNames=function(){for(var Xa=[],Ia=0;Ia<arguments.length;Ia++)Xa[Ia]=arguments[Ia];return N.resolveModuleNames.apply(N,Xa)}),N.resolveTypeReferenceDirectives&&(tr.resolveTypeReferenceDirectives=function(){for(var Xa=[],Ia=0;Ia<arguments.length;Ia++)Xa[Ia]=arguments[Ia];return N.resolveTypeReferenceDirectives.apply(N,Xa)}),N.setResolvedProjectReferenceCallbacks&&(tr.setResolvedProjectReferenceCallbacks=function(Xa){return N.setResolvedProjectReferenceCallbacks(Xa)}),N.useSourceOfProjectReferenceRedirect&&(tr.useSourceOfProjectReferenceRedirect=function(){return N.useSourceOfProjectReferenceRedirect()});var xa=X.getKeyForCompilationSettings(nt),Ba={rootNames:vt,options:nt,host:tr,oldProgram:U,projectReferences:Rn};U=e.createProgram(Ba),yt=void 0,Ge.clearCache(),U.getTypeChecker();return;function ai(Xa){var Ia=e.toPath(Xa,Re,be),ca=yt&&yt.getEntryByPath(Ia);return ca?!e.isString(ca):!!N.fileExists&&N.fileExists(Xa)}function wi(Xa){var Ia=e.toPath(Xa,Re,be),ca=yt&&yt.getEntryByPath(Ia);return ca?e.isString(ca)?void 0:e.getSnapshotText(ca.scriptSnapshot):N.readFile&&N.readFile(Xa)}function Ai(Xa,Ia){var ca=X.getKeyForCompilationSettings(Ia);X.releaseDocumentWithKey(Xa.resolvedPath,ca)}function Ei(Xa,Ia,ca,Ti){return Pi(Xa,e.toPath(Xa,Re,be),Ia,ca,Ti)}function Pi(Xa,Ia,ca,Ti,Vo){e.Debug.assert(yt!==void 0,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var mo=yt&&yt.getOrCreateEntryByPath(Xa,Ia);if(!mo)return;if(!Vo){var Ro=U&&U.getSourceFileByPath(Ia);if(Ro)return e.Debug.assertEqual(mo.scriptKind,Ro.scriptKind,"Registered script kind should match new script kind.",Ia),X.updateDocumentWithKey(Xa,Ia,nt,xa,mo.scriptSnapshot,mo.version,mo.scriptKind)}return X.acquireDocumentWithKey(Xa,Ia,nt,xa,mo.scriptSnapshot,mo.version,mo.scriptKind)}}function Oe(){if(pe){e.Debug.assert(U===void 0);return}return j(),U}function a(){U=void 0}function en(){U&&(e.forEach(U.getSourceFiles(),function(ft){return X.releaseDocument(ft.fileName,U.getCompilerOptions())}),U=void 0),N=void 0}function Pn(ft){return j(),U.getSyntacticDiagnostics(x(ft),Z).slice()}function Xn(ft){j();var Tt=x(ft),yt=U.getSemanticDiagnostics(Tt,Z);if(!e.getEmitDeclarations(U.getCompilerOptions()))return yt.slice();var vt=U.getDeclarationDiagnostics(Tt,Z);return Or(yt,vt)}function ae(ft){return j(),e.computeSuggestionDiagnostics(x(ft),U,Z)}function ce(){return j(),Or(U.getOptionsDiagnostics(Z),U.getGlobalDiagnostics(Z))}function Le(ft,Tt,yt){yt===void 0&&(yt=e.emptyOptions);var vt=ma(ma({},e.identity(yt)),{includeCompletionsForModuleExports:yt.includeCompletionsForModuleExports||yt.includeExternalModuleExports,includeCompletionsWithInsertText:yt.includeCompletionsWithInsertText||yt.includeInsertTextCompletions});return j(),e.Completions.getCompletionsAtPosition(N,U,Ae,x(ft),Tt,vt,yt.triggerCharacter)}function Je(ft,Tt,yt,vt,Ke,Rn){return Rn===void 0&&(Rn=e.emptyOptions),j(),e.Completions.getCompletionEntryDetails(U,Ae,x(ft),Tt,{name:yt,source:Ke},N,vt&&e.formatting.getFormatContext(vt),Rn,Z)}function Ze(ft,Tt,yt,vt){return j(),e.Completions.getCompletionEntrySymbol(U,Ae,x(ft),Tt,{name:yt,source:vt},N)}function Ue(ft,Tt){j();var yt=x(ft),vt=e.getTouchingPropertyName(yt,Tt);if(vt===yt)return;var Ke=U.getTypeChecker(),Rn=cn(vt),nt=b(Rn,Ke);if(!nt||Ke.isUnknownSymbol(nt)){var tr=$e(yt,Rn,Tt)?Ke.getTypeAtLocation(Rn):void 0;return tr&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(Rn,yt),displayParts:Ke.runWithCancellationToken(Z,function(Ei){return e.typeToDisplayParts(Ei,tr,e.getContainerNode(Rn))}),documentation:tr.symbol?tr.symbol.getDocumentationComment(Ke):void 0,tags:tr.symbol?tr.symbol.getJsDocTags():void 0}}var xa=Ke.runWithCancellationToken(Z,function(Ei){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(Ei,nt,yt,e.getContainerNode(Rn),Rn)}),Ba=xa.symbolKind,ai=xa.displayParts,wi=xa.documentation,Ai=xa.tags;return{kind:Ba,kindModifiers:e.SymbolDisplay.getSymbolModifiers(nt),textSpan:e.createTextSpanFromNode(Rn,yt),displayParts:ai,documentation:wi,tags:Ai}}function cn(ft){return e.isNewExpression(ft.parent)&&ft.pos===ft.parent.pos?ft.parent.expression:ft}function $e(ft,Tt,yt){switch(Tt.kind){case 75:return!e.isLabelName(Tt)&&!e.isTagName(Tt);case 193:case 152:return!e.isInComment(ft,yt);case 103:case 182:case 101:return!0;default:return!1}}function sn(ft,Tt){return j(),e.GoToDefinition.getDefinitionAtPosition(U,x(ft),Tt)}function he(ft,Tt){return j(),e.GoToDefinition.getDefinitionAndBoundSpan(U,x(ft),Tt)}function ke(ft,Tt){return j(),e.GoToDefinition.getTypeDefinitionAtPosition(U.getTypeChecker(),x(ft),Tt)}function G(ft,Tt){return j(),e.FindAllReferences.getImplementationsAtPosition(U,Z,U.getSourceFiles(),x(ft),Tt)}function c(ft,Tt){return e.flatMap(O(ft,Tt,[ft]),function(yt){return yt.highlightSpans.map(function(vt){return ma(ma({fileName:yt.fileName,textSpan:vt.textSpan,isWriteAccess:vt.kind==="writtenReference",isDefinition:!1},vt.isInString&&{isInString:!0}),vt.contextSpan&&{contextSpan:vt.contextSpan})})})}function O(ft,Tt,yt){var vt=e.normalizePath(ft);e.Debug.assert(yt.some(function(nt){return e.normalizePath(nt)===vt})),j();var Ke=e.mapDefined(yt,function(nt){return U.getSourceFile(nt)}),Rn=x(ft);return e.DocumentHighlights.getDocumentHighlights(U,Z,Rn,Tt,Ke)}function ee(ft,Tt,yt,vt,Ke){j();var Rn=x(ft),nt=e.getTouchingPropertyName(Rn,Tt);if(e.isIdentifier(nt)&&(e.isJsxOpeningElement(nt.parent)||e.isJsxClosingElement(nt.parent))&&e.isIntrinsicJsxName(nt.escapedText)){var tr=nt.parent.parent,xa=tr.openingElement,Ba=tr.closingElement;return[xa,Ba].map(function(ai){var wi=e.createTextSpanFromNode(ai.tagName,Rn);return ma({fileName:Rn.fileName,textSpan:wi},e.FindAllReferences.toContextSpan(wi,Rn,ai.parent))})}else return Ne(nt,Tt,{findInStrings:yt,findInComments:vt,providePrefixAndSuffixTextForRename:Ke,isForRename:!0},function(ai,wi,Ai){return e.FindAllReferences.toRenameLocation(ai,wi,Ai,Ke||!1)})}function Te(ft,Tt){return j(),Ne(e.getTouchingPropertyName(x(ft),Tt),Tt,{},e.FindAllReferences.toReferenceEntry)}function Ne(ft,Tt,yt,vt){j();var Ke=yt&&yt.isForRename?U.getSourceFiles().filter(function(Rn){return!U.isSourceFileDefaultLibrary(Rn)}):U.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(U,Z,Ke,ft,Tt,yt,vt)}function ze(ft,Tt){return j(),e.FindAllReferences.findReferencedSymbols(U,Z,U.getSourceFiles(),x(ft),Tt)}function bn(ft,Tt,yt,vt){vt===void 0&&(vt=!1),j();var Ke=yt?[x(yt)]:U.getSourceFiles();return e.NavigateTo.getNavigateToItems(Ke,U.getTypeChecker(),Z,ft,Tt,vt)}function Sn(ft,Tt,yt){j();var vt=x(ft),Ke=N.getCustomTransformers&&N.getCustomTransformers();return e.getFileEmitOutput(U,vt,!!Tt,Z,Ke,yt)}function Kn(ft,Tt,yt){var vt=(yt===void 0?e.emptyOptions:yt).triggerReason;j();var Ke=x(ft);return e.SignatureHelp.getSignatureHelpItems(U,Ke,Tt,vt,Z)}function Xe(ft){return v.getCurrentSourceFile(ft)}function pn(ft,Tt,yt){var vt=v.getCurrentSourceFile(ft),Ke=e.getTouchingPropertyName(vt,Tt);if(Ke===vt)return;switch(Ke.kind){case 193:case 152:case 10:case 90:case 105:case 99:case 101:case 103:case 182:case 75:break;default:return}for(var Rn=Ke;;)if(e.isRightSideOfPropertyAccess(Rn)||e.isRightSideOfQualifiedName(Rn))Rn=Rn.parent;else if(e.isNameOfModuleDeclaration(Rn))if(Rn.parent.parent.kind===248&&Rn.parent.parent.body===Rn.parent)Rn=Rn.parent.parent.name;else break;else break;return e.createTextSpanFromBounds(Rn.getStart(),Ke.getEnd())}function le(ft,Tt){var yt=v.getCurrentSourceFile(ft);return e.BreakpointResolver.spanInSourceFileAtLocation(yt,Tt)}function oe(ft){return e.NavigationBar.getNavigationBarItems(v.getCurrentSourceFile(ft),Z)}function kn(ft){return e.NavigationBar.getNavigationTree(v.getCurrentSourceFile(ft),Z)}function yn(ft){var Tt=e.getScriptKind(ft,N);return Tt===3||Tt===4}function ye(ft,Tt){return yn(ft)?(j(),e.getSemanticClassifications(U.getTypeChecker(),Z,x(ft),U.getClassifiableNames(),Tt)):[]}function mn(ft,Tt){return yn(ft)?(j(),e.getEncodedSemanticClassifications(U.getTypeChecker(),Z,x(ft),U.getClassifiableNames(),Tt)):{spans:[],endOfLineState:0}}function un(ft,Tt){return e.getSyntacticClassifications(Z,v.getCurrentSourceFile(ft),Tt)}function Mn(ft,Tt){return e.getEncodedSyntacticClassifications(Z,v.getCurrentSourceFile(ft),Tt)}function tt(ft){var Tt=v.getCurrentSourceFile(ft);return e.OutliningElementsCollector.collectElements(Tt,Z)}var Vn=e.createMapFromTemplate((S={},S[18]=19,S[20]=21,S[22]=23,S[31]=29,S));Vn.forEach(function(ft,Tt){return Vn.set(ft.toString(),Number(Tt))});function ut(ft,Tt){var yt=v.getCurrentSourceFile(ft),vt=e.getTouchingToken(yt,Tt),Ke=vt.getStart(yt)===Tt?Vn.get(vt.kind.toString()):void 0,Rn=Ke&&e.findChildOfKind(vt.parent,Ke,yt);return Rn?[e.createTextSpanFromNode(vt,yt),e.createTextSpanFromNode(Rn,yt)].sort(function(nt,tr){return nt.start-tr.start}):e.emptyArray}function dt(ft,Tt,yt){var vt=e.timestamp(),Ke=P(yt),Rn=v.getCurrentSourceFile(ft);Ae("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-vt)),vt=e.timestamp();var nt=e.formatting.SmartIndenter.getIndentation(Tt,Rn,Ke);return Ae("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-vt)),nt}function ot(ft,Tt,yt,vt){var Ke=v.getCurrentSourceFile(ft);return e.formatting.formatSelection(Tt,yt,Ke,e.formatting.getFormatContext(P(vt)))}function ct(ft,Tt){return e.formatting.formatDocument(v.getCurrentSourceFile(ft),e.formatting.getFormatContext(P(Tt)))}function wt(ft,Tt,yt,vt){var Ke=v.getCurrentSourceFile(ft),Rn=e.formatting.getFormatContext(P(vt));if(!e.isInComment(Ke,Tt))switch(yt){case"{":return e.formatting.formatOnOpeningCurly(Tt,Ke,Rn);case"}":return e.formatting.formatOnClosingCurly(Tt,Ke,Rn);case";":return e.formatting.formatOnSemicolon(Tt,Ke,Rn);case`
`:return e.formatting.formatOnEnter(Tt,Ke,Rn)}return[]}function st(ft,Tt,yt,vt,Ke,Rn){Rn===void 0&&(Rn=e.emptyOptions),j();var nt=x(ft),tr=e.createTextSpanFromBounds(Tt,yt),xa=e.formatting.getFormatContext(Ke);return e.flatMap(e.deduplicate(vt,e.equateValues,e.compareValues),function(Ba){return Z.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:Ba,sourceFile:nt,span:tr,program:U,host:N,cancellationToken:Z,formatContext:xa,preferences:Rn})})}function qn(ft,Tt,yt,vt){vt===void 0&&(vt=e.emptyOptions),j(),e.Debug.assert(ft.type==="file");var Ke=x(ft.fileName),Rn=e.formatting.getFormatContext(yt);return e.codefix.getAllFixes({fixId:Tt,sourceFile:Ke,program:U,host:N,cancellationToken:Z,formatContext:Rn,preferences:vt})}function Ie(ft,Tt,yt){yt===void 0&&(yt=e.emptyOptions),j(),e.Debug.assert(ft.type==="file");var vt=x(ft.fileName),Ke=e.formatting.getFormatContext(Tt);return e.OrganizeImports.organizeImports(vt,Ke,N,U,yt)}function De(ft,Tt,yt,vt){return vt===void 0&&(vt=e.emptyOptions),e.getEditsForFileRename(Oe(),ft,Tt,N,e.formatting.getFormatContext(yt),vt,Ge)}function _n(ft,Tt){var yt=typeof ft=="string"?Tt:ft;return e.isArray(yt)?Promise.all(yt.map(function(vt){return _t(vt)})):_t(yt)}function _t(ft){var Tt=function(vt){return e.toPath(vt,Re,be)};return e.Debug.assertEqual(ft.type,"install package"),N.installPackage?N.installPackage({fileName:Tt(ft.file),packageName:ft.packageName}):Promise.reject("Host does not implement `installPackage`")}function It(ft,Tt){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(N),v.getCurrentSourceFile(ft),Tt)}function Ht(ft,Tt,yt){if(yt===60)return!1;var vt=v.getCurrentSourceFile(ft);if(e.isInString(vt,Tt))return!1;if(e.isInsideJsxElementOrAttribute(vt,Tt))return yt===123;if(e.isInTemplateString(vt,Tt))return!1;switch(yt){case 39:case 34:case 96:return!e.isInComment(vt,Tt)}return!0}function nr(ft,Tt){var yt=v.getCurrentSourceFile(ft),vt=e.findPrecedingToken(Tt,yt);if(!vt)return;var Ke=vt.kind===31&&e.isJsxOpeningElement(vt.parent)?vt.parent.parent:e.isJsxText(vt)?vt.parent:void 0;if(Ke&&vr(Ke))return{newText:"</"+Ke.openingElement.tagName.getText(yt)+">"}}function vr(ft){var Tt=ft.openingElement,yt=ft.closingElement,vt=ft.parent;return!e.tagNamesAreEquivalent(Tt.tagName,yt.tagName)||e.isJsxElement(vt)&&e.tagNamesAreEquivalent(Tt.tagName,vt.openingElement.tagName)&&vr(vt)}function Qr(ft,Tt,yt){var vt=v.getCurrentSourceFile(ft),Ke=e.formatting.getRangeOfEnclosingComment(vt,Tt);return Ke&&(!yt||Ke.kind===3)?e.createTextSpanFromRange(Ke):void 0}function Wr(ft,Tt){j();var yt=x(ft);Z.throwIfCancellationRequested();var vt=yt.text,Ke=[];if(Tt.length>0&&!Ia(yt.fileName))for(var Rn=Pi(),nt=void 0;nt=Rn.exec(vt);){Z.throwIfCancellationRequested();var tr=3;e.Debug.assert(nt.length===Tt.length+tr);var xa=nt[1],Ba=nt.index+xa.length;if(!e.isInComment(yt,Ba))continue;for(var ai=void 0,wi=0;wi<Tt.length;wi++)nt[wi+tr]&&(ai=Tt[wi]);if(ai===void 0)return e.Debug.fail();if(Xa(vt.charCodeAt(Ba+ai.text.length)))continue;var Ai=nt[2];Ke.push({descriptor:ai,message:Ai,position:Ba})}return Ke;function Ei(ca){return ca.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Pi(){var ca=/(?:\/\/+\s*)/.source,Ti=/(?:\/\*+\s*)/.source,Vo=/(?:^(?:\s|\*)*)/.source,mo="("+Vo+"|"+ca+"|"+Ti+")",Ro="(?:"+e.map(Tt,function(Fo){return"("+Ei(Fo.text)+")"}).join("|")+")",uo=/(?:$|\*\/)/.source,ui=/(?:.*?)/.source,Gi="("+Ro+ui+")",ji=mo+Gi+uo;return new RegExp(ji,"gim")}function Xa(ca){return ca>=97&&ca<=122||ca>=65&&ca<=90||ca>=48&&ca<=57}function Ia(ca){return e.stringContains(ca,"/node_modules/")}}function gt(ft,Tt,yt){return j(),e.Rename.getRenameInfo(U,x(ft),Tt,yt)}function ba(ft,Tt,yt,vt){var Ke=typeof Tt=="number"?[Tt,void 0]:[Tt.pos,Tt.end],Rn=Ke[0],nt=Ke[1];return{file:ft,startPosition:Rn,endPosition:nt,program:Oe(),host:N,formatContext:e.formatting.getFormatContext(vt),cancellationToken:Z,preferences:yt}}function kt(ft,Tt){return e.SmartSelectionRange.getSmartSelectionRange(Tt,v.getCurrentSourceFile(ft))}function jn(ft,Tt,yt){yt===void 0&&(yt=e.emptyOptions),j();var vt=x(ft);return e.refactor.getApplicableRefactors(ba(vt,Tt,yt))}function Ut(ft,Tt,yt,vt,Ke,Rn){Rn===void 0&&(Rn=e.emptyOptions),j();var nt=x(ft);return e.refactor.getEditsForRefactor(ba(nt,yt,Rn,Tt),vt,Ke)}return{dispose:en,cleanupSemanticCache:a,getSyntacticDiagnostics:Pn,getSemanticDiagnostics:Xn,getSuggestionDiagnostics:ae,getCompilerOptionsDiagnostics:ce,getSyntacticClassifications:un,getSemanticClassifications:ye,getEncodedSyntacticClassifications:Mn,getEncodedSemanticClassifications:mn,getCompletionsAtPosition:Le,getCompletionEntryDetails:Je,getCompletionEntrySymbol:Ze,getSignatureHelpItems:Kn,getQuickInfoAtPosition:Ue,getDefinitionAtPosition:sn,getDefinitionAndBoundSpan:he,getImplementationAtPosition:G,getTypeDefinitionAtPosition:ke,getReferencesAtPosition:Te,findReferences:ze,getOccurrencesAtPosition:c,getDocumentHighlights:O,getNameOrDottedNameSpan:pn,getBreakpointStatementAtPosition:le,getNavigateToItems:bn,getRenameInfo:gt,getSmartSelectionRange:kt,findRenameLocations:ee,getNavigationBarItems:oe,getNavigationTree:kn,getOutliningSpans:tt,getTodoComments:Wr,getBraceMatchingAtPosition:ut,getIndentationAtPosition:dt,getFormattingEditsForRange:ot,getFormattingEditsForDocument:ct,getFormattingEditsAfterKeystroke:wt,getDocCommentTemplateAtPosition:It,isValidBraceCompletionAtPosition:Ht,getJsxClosingTagAtPosition:nr,getSpanOfEnclosingComment:Qr,getCodeFixesAtPosition:st,getCombinedCodeFix:qn,applyCodeActionCommand:_n,organizeImports:Ie,getEditsForFileRename:De,getEmitOutput:Sn,getNonBoundSourceFile:Xe,getProgram:Oe,getApplicableRefactors:jn,getEditsForRefactor:Ut,toLineColumnOffset:Ge.toLineColumnOffset,getSourceMapper:function(){return Ge}}}e.createLanguageService=V;function m(N){return N.nameTable||y(N),N.nameTable}e.getNameTable=m;function y(N){var X=N.nameTable=e.createUnderscoreEscapedMap();N.forEachChild(function pe(S){if(e.isIdentifier(S)&&!e.isTagName(S)&&S.escapedText||e.isStringOrNumericLiteralLike(S)&&L(S)){var v=e.getEscapedTextOfIdentifierOrLiteral(S);X.set(v,X.get(v)===void 0?S.pos:-1)}if(e.forEachChild(S,pe),e.hasJSDocNodes(S))for(var U=0,de=S.jsDoc;U<de.length;U++){var Ce=de[U];e.forEachChild(Ce,pe)}})}function L(N){return e.isDeclarationName(N)||N.parent.kind===263||T(N)||e.isLiteralComputedPropertyDeclarationName(N)}function C(N){var X=_(N);return X&&(e.isObjectLiteralExpression(X.parent)||e.isJsxAttributes(X.parent))?X:void 0}e.getContainingObjectLiteralElement=C;function _(N){switch(N.kind){case 10:case 14:case 8:if(N.parent.kind===153)return e.isObjectLiteralElement(N.parent.parent)?N.parent.parent:void 0;case 75:return e.isObjectLiteralElement(N.parent)&&(N.parent.parent.kind===192||N.parent.parent.kind===272)&&N.parent.name===N?N.parent:void 0}return}function b(N,X){var pe=C(N);if(pe){var S=X.getContextualType(pe.parent),v=S&&D(pe,X,S,!1);if(v&&v.length===1)return e.first(v)}return X.getSymbolAtLocation(N)}function D(N,X,pe,S){var v=e.getNameFromPropertyName(N.name);if(!v)return e.emptyArray;if(!pe.isUnion()){var U=pe.getProperty(v);return U?[U]:e.emptyArray}var de=e.mapDefined(pe.types,function(Ce){return e.isObjectLiteralExpression(N.parent)&&X.isTypeInvalidDueToUnionDiscriminant(Ce,N.parent)?void 0:Ce.getProperty(v)});if(S&&(de.length===0||de.length===pe.types.length)){var U=pe.getProperty(v);if(U)return[U]}return de.length===0?e.mapDefined(pe.types,function(Ce){return Ce.getProperty(v)}):de}e.getPropertySymbolsFromContextualType=D;function T(N){return N&&N.parent&&N.parent.kind===194&&N.parent.argumentExpression===N}function Q(N){return po+e.directorySeparator+e.getDefaultLibFileName(N)}e.getDefaultLibFilePath=Q,e.objectAllocator=k()})(ln||(ln={}));var ln;(function(e){var o;(function(F){function qe(Se,Fe){if(Se.isDeclarationFile)return;var He=e.getTokenAtPosition(Se,Fe),ve=Se.getLineAndCharacterOfPosition(Fe).line;if(Se.getLineAndCharacterOfPosition(He.getStart(Se)).line>ve){var ie=e.findPrecedingToken(He.pos,Se);if(!ie||Se.getLineAndCharacterOfPosition(ie.getEnd()).line!==ve)return;He=ie}if(He.flags&8388608)return;return se(He);function d(w,k){var P=w.decorators?e.skipTrivia(Se.text,w.decorators.end):w.getStart(Se);return e.createTextSpanFromBounds(P,(k||w).getEnd())}function H(w,k){return d(w,e.findNextToken(k,k.parent,Se))}function Pe(w,k){return w&&ve===Se.getLineAndCharacterOfPosition(w.getStart(Se)).line?se(w):se(k)}function I(w){return e.createTextSpanFromBounds(e.skipTrivia(Se.text,w.pos),w.end)}function _e(w){return se(e.findPrecedingToken(w.pos,Se))}function re(w){return se(e.findNextToken(w,w.parent,Se))}function se(w){if(w){var k=w.parent;switch(w.kind){case 224:return R(w.declarationList.declarations[0]);case 241:case 158:case 157:return R(w);case 155:return z(w);case 243:case 160:case 159:case 162:case 163:case 161:case 200:case 201:return B(w);case 222:if(e.isFunctionBlock(w))return V(w);case 249:return m(w);case 278:return m(w.block);case 225:return d(w.expression);case 234:return d(w.getChildAt(0),w.expression);case 228:return H(w,w.expression);case 227:return se(w.statement);case 240:return d(w.getChildAt(0));case 226:return H(w,w.expression);case 237:return se(w.statement);case 233:case 232:return d(w.getChildAt(0),w.label);case 229:return L(w);case 230:return H(w,w.expression);case 231:return y(w);case 236:return H(w,w.expression);case 275:case 276:return se(w.statements[0]);case 239:return m(w.tryBlock);case 238:return d(w,w.expression);case 258:return d(w,w.expression);case 252:return d(w,w.moduleReference);case 253:return d(w,w.moduleSpecifier);case 259:return d(w,w.moduleSpecifier);case 248:if(e.getModuleInstanceState(w)!==1)return;case 244:case 247:case 282:case 190:return d(w);case 235:return se(w.statement);case 156:return I(k.decorators);case 188:case 189:return C(w);case 245:case 246:return;case 26:case 1:return Pe(e.findPrecedingToken(w.pos,Se));case 27:return _e(w);case 18:return b(w);case 19:return D(w);case 23:return T(w);case 20:return Q(w);case 21:return N(w);case 58:return X(w);case 31:case 29:return pe(w);case 110:return S(w);case 86:case 78:case 91:return re(w);case 151:return v(w);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(w))return _(w);if((w.kind===75||w.kind===212||w.kind===279||w.kind===280)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(k))return d(w);if(w.kind===208){var P=w,h=P.left,Y=P.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(h))return _(h);if(Y.kind===62&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(w.parent))return d(w);if(Y.kind===27)return se(h)}if(e.isExpressionNode(w))switch(k.kind){case 227:return _e(w);case 156:return se(w.parent);case 229:case 231:return d(w);case 208:if(w.parent.operatorToken.kind===27)return d(w);break;case 201:if(w.parent.body===w)return d(w);break}switch(w.parent.kind){case 279:if(w.parent.name===w&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(w.parent.parent))return se(w.parent.initializer);break;case 198:if(w.parent.type===w)return re(w.parent.type);break;case 241:case 155:{var ne=w.parent,$=ne.initializer,J=ne.type;if($===w||J===w||e.isAssignmentOperator(w.kind))return _e(w);break}case 208:{var h=w.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(h)&&w!==h)return _e(w);break}default:if(e.isFunctionLike(w.parent)&&w.parent.type===w)return _e(w)}return se(w.parent)}}function fe(U){return e.isVariableDeclarationList(U.parent)&&U.parent.declarations[0]===U?d(e.findPrecedingToken(U.pos,Se,U.parent),U):d(U)}function R(U){if(U.parent.parent.kind===230)return se(U.parent.parent);var de=U.parent;if(e.isBindingPattern(U.name))return C(U.name);if(U.initializer||e.hasModifier(U,1)||de.parent.kind===231)return fe(U);if(e.isVariableDeclarationList(U.parent)&&U.parent.declarations[0]!==U)return se(e.findPrecedingToken(U.pos,Se,U.parent))}function K(U){return!!U.initializer||U.dotDotDotToken!==void 0||e.hasModifier(U,4|8)}function z(U){if(e.isBindingPattern(U.name))return C(U.name);if(K(U))return d(U);var de=U.parent,Ce=de.parameters.indexOf(U);return e.Debug.assert(Ce!==-1),Ce!==0?z(de.parameters[Ce-1]):se(de.body)}function Ee(U){return e.hasModifier(U,1)||U.parent.kind===244&&U.kind!==161}function B(U){return U.body?Ee(U)?d(U):se(U.body):void 0}function V(U){var de=U.statements.length?U.statements[0]:U.getLastToken();return Ee(U.parent)?Pe(U.parent,de):se(de)}function m(U){switch(U.parent.kind){case 248:if(e.getModuleInstanceState(U.parent)!==1)return;case 228:case 226:case 230:return Pe(U.parent,U.statements[0]);case 229:case 231:return Pe(e.findPrecedingToken(U.pos,Se,U.parent),U.statements[0])}return se(U.statements[0])}function y(U){if(U.initializer.kind===242){var de=U.initializer;if(de.declarations.length>0)return se(de.declarations[0])}else return se(U.initializer)}function L(U){if(U.initializer)return y(U);if(U.condition)return d(U.condition);if(U.incrementor)return d(U.incrementor)}function C(U){var de=e.forEach(U.elements,function(Ce){return Ce.kind!==214?Ce:void 0});return de?se(de):U.parent.kind===190?d(U.parent):fe(U.parent)}function _(U){e.Debug.assert(U.kind!==189&&U.kind!==188);var de=U.kind===191?U.elements:U.properties,Ce=e.forEach(de,function(Z){return Z.kind!==214?Z:void 0});return Ce?se(Ce):d(U.parent.kind===208?U.parent:U)}function b(U){switch(U.parent.kind){case 247:var de=U.parent;return Pe(e.findPrecedingToken(U.pos,Se,U.parent),de.members.length?de.members[0]:de.getLastToken(Se));case 244:var Ce=U.parent;return Pe(e.findPrecedingToken(U.pos,Se,U.parent),Ce.members.length?Ce.members[0]:Ce.getLastToken(Se));case 250:return Pe(U.parent.parent,U.parent.clauses[0])}return se(U.parent)}function D(U){switch(U.parent.kind){case 249:if(e.getModuleInstanceState(U.parent.parent)!==1)return;case 247:case 244:return d(U);case 222:if(e.isFunctionBlock(U.parent))return d(U);case 278:return se(e.lastOrUndefined(U.parent.statements));case 250:var de=U.parent,Ce=e.lastOrUndefined(de.clauses);return Ce?se(e.lastOrUndefined(Ce.statements)):void 0;case 188:var Z=U.parent;return se(e.lastOrUndefined(Z.elements)||Z);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(U.parent)){var Re=U.parent;return d(e.lastOrUndefined(Re.properties)||Re)}return se(U.parent)}}function T(U){switch(U.parent.kind){case 189:var de=U.parent;return d(e.lastOrUndefined(de.elements)||de);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(U.parent)){var Ce=U.parent;return d(e.lastOrUndefined(Ce.elements)||Ce)}return se(U.parent)}}function Q(U){return U.parent.kind===227||U.parent.kind===195||U.parent.kind===196?_e(U):U.parent.kind===199?re(U):se(U.parent)}function N(U){switch(U.parent.kind){case 200:case 243:case 201:case 160:case 159:case 162:case 163:case 161:case 228:case 227:case 229:case 231:case 195:case 196:case 199:return _e(U);default:return se(U.parent)}}function X(U){return e.isFunctionLike(U.parent)||U.parent.kind===279||U.parent.kind===155?_e(U):se(U.parent)}function pe(U){return U.parent.kind===198?re(U):se(U.parent)}function S(U){return U.parent.kind===227?H(U,U.parent.expression):se(U.parent)}function v(U){return U.parent.kind===231?re(U):se(U.parent)}}}F.spanInSourceFileAtLocation=qe})(o=e.BreakpointResolver||(e.BreakpointResolver={}))})(ln||(ln={}));var ln;(function(e){function o(F,qe,Se){var Fe=[];Se=e.fixupCompilerOptions(Se,Fe);var He=e.isArray(F)?F:[F],ve=e.transformNodes(void 0,void 0,Se,He,qe,!0);return ve.diagnostics=e.concatenate(ve.diagnostics,Fe),ve}e.transform=o})(ln||(ln={}));var Wo=function(){return this}(),ln;(function(e){function o(w,k){w&&w.log("*INTERNAL ERROR* - Exception in typescript services: "+k.message)}var F=function(){function w(k){this.scriptSnapshotShim=k}return w.prototype.getText=function(k,P){return this.scriptSnapshotShim.getText(k,P)},w.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},w.prototype.getChangeRange=function(k){var P=k,h=this.scriptSnapshotShim.getChangeRange(P.scriptSnapshotShim);if(h===null)return null;var Y=JSON.parse(h);return e.createTextChangeRange(e.createTextSpan(Y.span.start,Y.span.length),Y.newLength)},w.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},w}(),qe=function(){function w(k){var P=this;this.shimHost=k,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(h,Y){var ne=JSON.parse(P.shimHost.getModuleResolutionsForFile(Y));return e.map(h,function($){var J=e.getProperty(ne,$);return J?{resolvedFileName:J,extension:e.extensionFromPath(J),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(h){return P.shimHost.directoryExists(h)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(h,Y){var ne=JSON.parse(P.shimHost.getTypeReferenceDirectiveResolutionsForFile(Y));return e.map(h,function($){return e.getProperty(ne,$)})})}return w.prototype.log=function(k){this.loggingEnabled&&this.shimHost.log(k)},w.prototype.trace=function(k){this.tracingEnabled&&this.shimHost.trace(k)},w.prototype.error=function(k){this.shimHost.error(k)},w.prototype.getProjectVersion=function(){return this.shimHost.getProjectVersion?this.shimHost.getProjectVersion():void 0},w.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},w.prototype.useCaseSensitiveFileNames=function(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1},w.prototype.getCompilationSettings=function(){var k=this.shimHost.getCompilationSettings();if(k===null||k==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var P=JSON.parse(k);return P.allowNonTsExtensions=!0,P},w.prototype.getScriptFileNames=function(){var k=this.shimHost.getScriptFileNames();return JSON.parse(k)},w.prototype.getScriptSnapshot=function(k){var P=this.shimHost.getScriptSnapshot(k);return P&&new F(P)},w.prototype.getScriptKind=function(k){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(k):0},w.prototype.getScriptVersion=function(k){return this.shimHost.getScriptVersion(k)},w.prototype.getLocalizedDiagnosticMessages=function(){var k=this.shimHost.getLocalizedDiagnosticMessages();if(k===null||k==="")return null;try{return JSON.parse(k)}catch(P){return this.log(P.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},w.prototype.getCancellationToken=function(){var k=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(k)},w.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},w.prototype.getDirectories=function(k){return JSON.parse(this.shimHost.getDirectories(k))},w.prototype.getDefaultLibFileName=function(k){return this.shimHost.getDefaultLibFileName(JSON.stringify(k))},w.prototype.readDirectory=function(k,P,h,Y,ne){var $=e.getFileMatcherPatterns(k,h,Y,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(k,JSON.stringify(P),JSON.stringify($.basePaths),$.excludePattern,$.includeFilePattern,$.includeDirectoryPattern,ne))},w.prototype.readFile=function(k,P){return this.shimHost.readFile(k,P)},w.prototype.fileExists=function(k){return this.shimHost.fileExists(k)},w}();e.LanguageServiceShimHostAdapter=qe;var Se=function(){function w(k){var P=this;this.shimHost=k,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=function(h){return P.shimHost.directoryExists(h)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(h){return P.shimHost.realpath(h)}:this.realpath=void 0}return w.prototype.readDirectory=function(k,P,h,Y,ne){var $=e.getFileMatcherPatterns(k,h,Y,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(k,JSON.stringify(P),JSON.stringify($.basePaths),$.excludePattern,$.includeFilePattern,$.includeDirectoryPattern,ne))},w.prototype.fileExists=function(k){return this.shimHost.fileExists(k)},w.prototype.readFile=function(k){return this.shimHost.readFile(k)},w.prototype.getDirectories=function(k){return JSON.parse(this.shimHost.getDirectories(k))},w}();e.CoreServicesShimHostAdapter=Se;function Fe(w,k,P,h){var Y;h&&(w.log(k),Y=e.timestamp());var ne=P();if(h){var $=e.timestamp();if(w.log(k+" completed in "+($-Y)+" msec"),e.isString(ne)){var J=ne;J.length>128&&(J=J.substring(0,128)+"..."),w.log(" result.length="+J.length+", result='"+JSON.stringify(J)+"'")}}return ne}function He(w,k,P,h){return ve(w,k,!0,P,h)}function ve(w,k,P,h,Y){try{var ne=Fe(w,k,h,Y);return P?JSON.stringify({result:ne}):ne}catch($){return $ instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(o(w,$),$.description=k,JSON.stringify({error:$}))}}var ie=function(){function w(k){this.factory=k,k.registerShim(this)}return w.prototype.dispose=function(k){this.factory.unregisterShim(this)},w}();function d(w,k){return w.map(function(P){return H(P,k)})}e.realizeDiagnostics=d;function H(w,k){return{message:e.flattenDiagnosticMessageText(w.messageText,k),start:w.start,length:w.length,category:e.diagnosticCategoryName(w),code:w.code,reportsUnnecessary:w.reportsUnnecessary}}var Pe=function(w){Mi(k,w);function k(P,h,Y){var ne=w.call(this,P)||this;return ne.host=h,ne.languageService=Y,ne.logPerformance=!1,ne.logger=ne.host,ne}return k.prototype.forwardJSONCall=function(P,h){return He(this.logger,P,h,this.logPerformance)},k.prototype.dispose=function(P){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,Wo&&Wo.CollectGarbage&&(Wo.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,w.prototype.dispose.call(this,P)},k.prototype.refresh=function(P){this.forwardJSONCall("refresh("+P+")",function(){return null})},k.prototype.cleanupSemanticCache=function(){var P=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return P.languageService.cleanupSemanticCache(),null})},k.prototype.realizeDiagnostics=function(P){var h=e.getNewLineOrDefaultFromHost(this.host);return d(P,h)},k.prototype.getSyntacticClassifications=function(P,h,Y){var ne=this;return this.forwardJSONCall("getSyntacticClassifications('"+P+"', "+h+", "+Y+")",function(){return ne.languageService.getSyntacticClassifications(P,e.createTextSpan(h,Y))})},k.prototype.getSemanticClassifications=function(P,h,Y){var ne=this;return this.forwardJSONCall("getSemanticClassifications('"+P+"', "+h+", "+Y+")",function(){return ne.languageService.getSemanticClassifications(P,e.createTextSpan(h,Y))})},k.prototype.getEncodedSyntacticClassifications=function(P,h,Y){var ne=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+P+"', "+h+", "+Y+")",function(){return I(ne.languageService.getEncodedSyntacticClassifications(P,e.createTextSpan(h,Y)))})},k.prototype.getEncodedSemanticClassifications=function(P,h,Y){var ne=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+P+"', "+h+", "+Y+")",function(){return I(ne.languageService.getEncodedSemanticClassifications(P,e.createTextSpan(h,Y)))})},k.prototype.getSyntacticDiagnostics=function(P){var h=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+P+"')",function(){var Y=h.languageService.getSyntacticDiagnostics(P);return h.realizeDiagnostics(Y)})},k.prototype.getSemanticDiagnostics=function(P){var h=this;return this.forwardJSONCall("getSemanticDiagnostics('"+P+"')",function(){var Y=h.languageService.getSemanticDiagnostics(P);return h.realizeDiagnostics(Y)})},k.prototype.getSuggestionDiagnostics=function(P){var h=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+P+"')",function(){return h.realizeDiagnostics(h.languageService.getSuggestionDiagnostics(P))})},k.prototype.getCompilerOptionsDiagnostics=function(){var P=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var h=P.languageService.getCompilerOptionsDiagnostics();return P.realizeDiagnostics(h)})},k.prototype.getQuickInfoAtPosition=function(P,h){var Y=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+P+"', "+h+")",function(){return Y.languageService.getQuickInfoAtPosition(P,h)})},k.prototype.getNameOrDottedNameSpan=function(P,h,Y){var ne=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+P+"', "+h+", "+Y+")",function(){return ne.languageService.getNameOrDottedNameSpan(P,h,Y)})},k.prototype.getBreakpointStatementAtPosition=function(P,h){var Y=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+P+"', "+h+")",function(){return Y.languageService.getBreakpointStatementAtPosition(P,h)})},k.prototype.getSignatureHelpItems=function(P,h,Y){var ne=this;return this.forwardJSONCall("getSignatureHelpItems('"+P+"', "+h+")",function(){return ne.languageService.getSignatureHelpItems(P,h,Y)})},k.prototype.getDefinitionAtPosition=function(P,h){var Y=this;return this.forwardJSONCall("getDefinitionAtPosition('"+P+"', "+h+")",function(){return Y.languageService.getDefinitionAtPosition(P,h)})},k.prototype.getDefinitionAndBoundSpan=function(P,h){var Y=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+P+"', "+h+")",function(){return Y.languageService.getDefinitionAndBoundSpan(P,h)})},k.prototype.getTypeDefinitionAtPosition=function(P,h){var Y=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+P+"', "+h+")",function(){return Y.languageService.getTypeDefinitionAtPosition(P,h)})},k.prototype.getImplementationAtPosition=function(P,h){var Y=this;return this.forwardJSONCall("getImplementationAtPosition('"+P+"', "+h+")",function(){return Y.languageService.getImplementationAtPosition(P,h)})},k.prototype.getRenameInfo=function(P,h,Y){var ne=this;return this.forwardJSONCall("getRenameInfo('"+P+"', "+h+")",function(){return ne.languageService.getRenameInfo(P,h,Y)})},k.prototype.getSmartSelectionRange=function(P,h){var Y=this;return this.forwardJSONCall("getSmartSelectionRange('"+P+"', "+h+")",function(){return Y.languageService.getSmartSelectionRange(P,h)})},k.prototype.findRenameLocations=function(P,h,Y,ne,$){var J=this;return this.forwardJSONCall("findRenameLocations('"+P+"', "+h+", "+Y+", "+ne+", "+$+")",function(){return J.languageService.findRenameLocations(P,h,Y,ne,$)})},k.prototype.getBraceMatchingAtPosition=function(P,h){var Y=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+P+"', "+h+")",function(){return Y.languageService.getBraceMatchingAtPosition(P,h)})},k.prototype.isValidBraceCompletionAtPosition=function(P,h,Y){var ne=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+P+"', "+h+", "+Y+")",function(){return ne.languageService.isValidBraceCompletionAtPosition(P,h,Y)})},k.prototype.getSpanOfEnclosingComment=function(P,h,Y){var ne=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+P+"', "+h+")",function(){return ne.languageService.getSpanOfEnclosingComment(P,h,Y)})},k.prototype.getIndentationAtPosition=function(P,h,Y){var ne=this;return this.forwardJSONCall("getIndentationAtPosition('"+P+"', "+h+")",function(){var $=JSON.parse(Y);return ne.languageService.getIndentationAtPosition(P,h,$)})},k.prototype.getReferencesAtPosition=function(P,h){var Y=this;return this.forwardJSONCall("getReferencesAtPosition('"+P+"', "+h+")",function(){return Y.languageService.getReferencesAtPosition(P,h)})},k.prototype.findReferences=function(P,h){var Y=this;return this.forwardJSONCall("findReferences('"+P+"', "+h+")",function(){return Y.languageService.findReferences(P,h)})},k.prototype.getOccurrencesAtPosition=function(P,h){var Y=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+P+"', "+h+")",function(){return Y.languageService.getOccurrencesAtPosition(P,h)})},k.prototype.getDocumentHighlights=function(P,h,Y){var ne=this;return this.forwardJSONCall("getDocumentHighlights('"+P+"', "+h+")",function(){var $=ne.languageService.getDocumentHighlights(P,h,JSON.parse(Y)),J=e.normalizeSlashes(P).toLowerCase();return e.filter($,function(fe){return e.normalizeSlashes(fe.fileName).toLowerCase()===J})})},k.prototype.getCompletionsAtPosition=function(P,h,Y){var ne=this;return this.forwardJSONCall("getCompletionsAtPosition('"+P+"', "+h+", "+Y+")",function(){return ne.languageService.getCompletionsAtPosition(P,h,Y)})},k.prototype.getCompletionEntryDetails=function(P,h,Y,ne,$,J){var fe=this;return this.forwardJSONCall("getCompletionEntryDetails('"+P+"', "+h+", '"+Y+"')",function(){var R=ne===void 0?void 0:JSON.parse(ne);return fe.languageService.getCompletionEntryDetails(P,h,Y,R,$,J)})},k.prototype.getFormattingEditsForRange=function(P,h,Y,ne){var $=this;return this.forwardJSONCall("getFormattingEditsForRange('"+P+"', "+h+", "+Y+")",function(){var J=JSON.parse(ne);return $.languageService.getFormattingEditsForRange(P,h,Y,J)})},k.prototype.getFormattingEditsForDocument=function(P,h){var Y=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+P+"')",function(){var ne=JSON.parse(h);return Y.languageService.getFormattingEditsForDocument(P,ne)})},k.prototype.getFormattingEditsAfterKeystroke=function(P,h,Y,ne){var $=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+P+"', "+h+", '"+Y+"')",function(){var J=JSON.parse(ne);return $.languageService.getFormattingEditsAfterKeystroke(P,h,Y,J)})},k.prototype.getDocCommentTemplateAtPosition=function(P,h){var Y=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+P+"', "+h+")",function(){return Y.languageService.getDocCommentTemplateAtPosition(P,h)})},k.prototype.getNavigateToItems=function(P,h,Y){var ne=this;return this.forwardJSONCall("getNavigateToItems('"+P+"', "+h+", "+Y+")",function(){return ne.languageService.getNavigateToItems(P,h,Y)})},k.prototype.getNavigationBarItems=function(P){var h=this;return this.forwardJSONCall("getNavigationBarItems('"+P+"')",function(){return h.languageService.getNavigationBarItems(P)})},k.prototype.getNavigationTree=function(P){var h=this;return this.forwardJSONCall("getNavigationTree('"+P+"')",function(){return h.languageService.getNavigationTree(P)})},k.prototype.getOutliningSpans=function(P){var h=this;return this.forwardJSONCall("getOutliningSpans('"+P+"')",function(){return h.languageService.getOutliningSpans(P)})},k.prototype.getTodoComments=function(P,h){var Y=this;return this.forwardJSONCall("getTodoComments('"+P+"')",function(){return Y.languageService.getTodoComments(P,JSON.parse(h))})},k.prototype.getEmitOutput=function(P){var h=this;return this.forwardJSONCall("getEmitOutput('"+P+"')",function(){return h.languageService.getEmitOutput(P)})},k.prototype.getEmitOutputObject=function(P){var h=this;return ve(this.logger,"getEmitOutput('"+P+"')",!1,function(){return h.languageService.getEmitOutput(P)},this.logPerformance)},k}(ie);function I(w){return{spans:w.spans.join(","),endOfLineState:w.endOfLineState}}var _e=function(w){Mi(k,w);function k(P,h){var Y=w.call(this,P)||this;return Y.logger=h,Y.logPerformance=!1,Y.classifier=e.createClassifier(),Y}return k.prototype.getEncodedLexicalClassifications=function(P,h,Y){var ne=this;return Y===void 0&&(Y=!1),He(this.logger,"getEncodedLexicalClassifications",function(){return I(ne.classifier.getEncodedLexicalClassifications(P,h,Y))},this.logPerformance)},k.prototype.getClassificationsForLine=function(P,h,Y){Y===void 0&&(Y=!1);for(var ne=this.classifier.getClassificationsForLine(P,h,Y),$="",J=0,fe=ne.entries;J<fe.length;J++){var R=fe[J];$+=R.length+`
`,$+=R.classification+`
`}return $+=ne.finalLexState,$},k}(ie),re=function(w){Mi(k,w);function k(P,h,Y){var ne=w.call(this,P)||this;return ne.logger=h,ne.host=Y,ne.logPerformance=!1,ne}return k.prototype.forwardJSONCall=function(P,h){return He(this.logger,P,h,this.logPerformance)},k.prototype.resolveModuleName=function(P,h,Y){var ne=this;return this.forwardJSONCall("resolveModuleName('"+P+"')",function(){var $=JSON.parse(Y),J=e.resolveModuleName(h,e.normalizeSlashes(P),$,ne.host),fe=J.resolvedModule?J.resolvedModule.resolvedFileName:void 0;return J.resolvedModule&&J.resolvedModule.extension!==".ts"&&J.resolvedModule.extension!==".tsx"&&J.resolvedModule.extension!==".d.ts"&&(fe=void 0),{resolvedFileName:fe,failedLookupLocations:J.failedLookupLocations}})},k.prototype.resolveTypeReferenceDirective=function(P,h,Y){var ne=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+P+")",function(){var $=JSON.parse(Y),J=e.resolveTypeReferenceDirective(h,e.normalizeSlashes(P),$,ne.host);return{resolvedFileName:J.resolvedTypeReferenceDirective?J.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:J.resolvedTypeReferenceDirective?J.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:J.failedLookupLocations}})},k.prototype.getPreProcessedFileInfo=function(P,h){var Y=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+P+"')",function(){var ne=e.preProcessFile(e.getSnapshotText(h),!0,!0);return{referencedFiles:Y.convertFileReferences(ne.referencedFiles),importedFiles:Y.convertFileReferences(ne.importedFiles),ambientExternalModules:ne.ambientExternalModules,isLibFile:ne.isLibFile,typeReferenceDirectives:Y.convertFileReferences(ne.typeReferenceDirectives),libReferenceDirectives:Y.convertFileReferences(ne.libReferenceDirectives)}})},k.prototype.getAutomaticTypeDirectiveNames=function(P){var h=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+P+"')",function(){var Y=JSON.parse(P);return e.getAutomaticTypeDirectiveNames(Y,h.host)})},k.prototype.convertFileReferences=function(P){if(!P)return;for(var h=[],Y=0,ne=P;Y<ne.length;Y++){var $=ne[Y];h.push({path:e.normalizeSlashes($.fileName),position:$.pos,length:$.end-$.pos})}return h},k.prototype.getTSConfigFileInfo=function(P,h){var Y=this;return this.forwardJSONCall("getTSConfigFileInfo('"+P+"')",function(){var ne=e.parseJsonText(P,e.getSnapshotText(h)),$=e.normalizeSlashes(P),J=e.parseJsonSourceFileConfigFileContent(ne,Y.host,e.getDirectoryPath($),{},$);return{options:J.options,typeAcquisition:J.typeAcquisition,files:J.fileNames,raw:J.raw,errors:d(Or(ne.parseDiagnostics,J.errors),`\r
`)}})},k.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},k.prototype.discoverTypings=function(P){var h=this,Y=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var ne=JSON.parse(P);return h.safeList===void 0&&(h.safeList=e.JsTyping.loadSafeList(h.host,e.toPath(ne.safeListPath,ne.safeListPath,Y))),e.JsTyping.discoverTypings(h.host,function($){return h.logger.log($)},ne.fileNames,e.toPath(ne.projectRootPath,ne.projectRootPath,Y),h.safeList,ne.packageNameToTypingLocation,ne.typeAcquisition,ne.unresolvedImports,ne.typesRegistry)})},k}(ie),se=function(){function w(){this._shims=[]}return w.prototype.getServicesVersion=function(){return e.servicesVersion},w.prototype.createLanguageServiceShim=function(k){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(k.useCaseSensitiveFileNames&&k.useCaseSensitiveFileNames(),k.getCurrentDirectory()));var P=new qe(k),h=e.createLanguageService(P,this.documentRegistry,!1);return new Pe(this,k,h)}catch(Y){throw o(k,Y),Y}},w.prototype.createClassifierShim=function(k){try{return new _e(this,k)}catch(P){throw o(k,P),P}},w.prototype.createCoreServicesShim=function(k){try{var P=new Se(k);return new re(this,k,P)}catch(h){throw o(k,h),h}},w.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},w.prototype.registerShim=function(k){this._shims.push(k)},w.prototype.unregisterShim=function(k){for(var P=0;P<this._shims.length;P++)if(this._shims[P]===k){delete this._shims[P];return}throw new Error("Invalid operation")},w}();e.TypeScriptServicesFactory=se,os.exports&&(os.exports=e)})(ln||(ln={}));var Ls;(function(e){var o;(function(F){F.TypeScriptServicesFactory=ln.TypeScriptServicesFactory})(o=e.Services||(e.Services={}))})(Ls||(Ls={}));var pl=ln.versionMajorMinor,zo=ln.createClassifier,Aa=ln.createLanguageService,xi=ln.displayPartsToString,lo=ln.EndOfLineState,Xo=ln.flattenDiagnosticMessageText,Du=ln.IndentStyle,Nd=ln.ScriptKind,Lu=ln.ScriptTarget,Op=ln.TokenClass}).call(this,Yi("7vYp"),"/",Yi("Qz++")(ru))},"Qz++":function(ru,Ui){ru.exports=function(Yi){if(!Yi.webpackPolyfill){var ni=Object.create(Yi);ni.children||(ni.children=[]),Object.defineProperty(ni,"loaded",{enumerable:!0,get:function(){return ni.l}}),Object.defineProperty(ni,"id",{enumerable:!0,get:function(){return ni.i}}),Object.defineProperty(ni,"exports",{enumerable:!0}),ni.webpackPolyfill=1}return ni}},"S7i+":function(ru,Ui,Yi){"use strict";(function(ni,po){Yi.d(Ui,"c",function(){return Nd}),Yi.d(Ui,"b",function(){return o}),Yi.d(Ui,"a",function(){return Se});var os="en",Or=!1,ma=!1,Vr=!1,bi=!1,Mi=!1,ln=!1,Wo=void 0,Ls=os,pl=void 0,zo=void 0,Aa=typeof ni!="undefined"&&typeof ni.versions!="undefined"&&typeof ni.versions.electron!="undefined"&&ni.type==="renderer";if(typeof navigator=="object"&&!Aa)zo=navigator.userAgent,Or=zo.indexOf("Windows")>=0,ma=zo.indexOf("Macintosh")>=0,ln=zo.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Vr=zo.indexOf("Linux")>=0,Mi=!0,Wo=navigator.language,Ls=Wo;else if(typeof ni=="object"){Or=ni.platform==="win32",ma=ni.platform==="darwin",Vr=ni.platform==="linux",Wo=os,Ls=os;var xi=Object({NODE_ENV:"production"}).VSCODE_NLS_CONFIG;if(xi)try{var lo=JSON.parse(xi),Xo=lo.availableLanguages["*"];Wo=lo.locale,Ls=Xo||os,pl=lo._translationsConfigFile}catch(ve){}bi=!0}var Du=0;ma?Du=1:Or?Du=3:Vr&&(Du=2);var Nd=Or,Lu=ma,Op=Vr,e=bi,o=Mi,F=ln,qe=typeof self=="object"?self:typeof po=="object"?po:{},Se=qe,Fe=function(){if(Se.setImmediate)return Se.setImmediate.bind(Se);if(typeof Se.postMessage=="function"&&!Se.importScripts){var ie=[];Se.addEventListener("message",function(Pe){if(Pe.data&&Pe.data.vscodeSetImmediateId)for(var I=0,_e=ie.length;I<_e;I++){var re=ie[I];if(re.id===Pe.data.vscodeSetImmediateId){ie.splice(I,1),re.callback();return}}});var d=0;return function(Pe){var I=++d;ie.push({id:I,callback:Pe}),Se.postMessage({vscodeSetImmediateId:I},"*")}}if(typeof ni!="undefined"&&typeof ni.nextTick=="function")return ni.nextTick.bind(ni);var H=Promise.resolve();return function(Pe){return H.then(Pe)}}(),He=ma?2:Or?1:3}).call(this,Yi("7vYp"),Yi("UywP"))},UywP:function(ru,Ui){var Yi;Yi=function(){return this}();try{Yi=Yi||new Function("return this")()}catch(ni){typeof window=="object"&&(Yi=window)}ru.exports=Yi},YmYf:function(ru,Ui,Yi){(function(ni){function po(Vr,bi){for(var Mi=0,ln=Vr.length-1;ln>=0;ln--){var Wo=Vr[ln];Wo==="."?Vr.splice(ln,1):Wo===".."?(Vr.splice(ln,1),Mi++):Mi&&(Vr.splice(ln,1),Mi--)}if(bi)for(;Mi--;Mi)Vr.unshift("..");return Vr}Ui.resolve=function(){for(var Vr="",bi=!1,Mi=arguments.length-1;Mi>=-1&&!bi;Mi--){var ln=Mi>=0?arguments[Mi]:ni.cwd();if(typeof ln!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!ln)continue;Vr=ln+"/"+Vr,bi=ln.charAt(0)==="/"}return Vr=po(Or(Vr.split("/"),function(Wo){return!!Wo}),!bi).join("/"),(bi?"/":"")+Vr||"."},Ui.normalize=function(Vr){var bi=Ui.isAbsolute(Vr),Mi=ma(Vr,-1)==="/";return Vr=po(Or(Vr.split("/"),function(ln){return!!ln}),!bi).join("/"),!Vr&&!bi&&(Vr="."),Vr&&Mi&&(Vr+="/"),(bi?"/":"")+Vr},Ui.isAbsolute=function(Vr){return Vr.charAt(0)==="/"},Ui.join=function(){var Vr=Array.prototype.slice.call(arguments,0);return Ui.normalize(Or(Vr,function(bi,Mi){if(typeof bi!="string")throw new TypeError("Arguments to path.join must be strings");return bi}).join("/"))},Ui.relative=function(Vr,bi){Vr=Ui.resolve(Vr).substr(1),bi=Ui.resolve(bi).substr(1);function Mi(xi){for(var lo=0;lo<xi.length&&!(xi[lo]!=="");lo++);for(var Xo=xi.length-1;Xo>=0&&!(xi[Xo]!=="");Xo--);return lo>Xo?[]:xi.slice(lo,Xo-lo+1)}for(var ln=Mi(Vr.split("/")),Wo=Mi(bi.split("/")),Ls=Math.min(ln.length,Wo.length),pl=Ls,zo=0;zo<Ls;zo++)if(ln[zo]!==Wo[zo]){pl=zo;break}for(var Aa=[],zo=pl;zo<ln.length;zo++)Aa.push("..");return Aa=Aa.concat(Wo.slice(pl)),Aa.join("/")},Ui.sep="/",Ui.delimiter=":",Ui.dirname=function(Vr){if(typeof Vr!="string"&&(Vr=Vr+""),Vr.length===0)return".";for(var bi=Vr.charCodeAt(0),Mi=bi===47,ln=-1,Wo=!0,Ls=Vr.length-1;Ls>=1;--Ls)if(bi=Vr.charCodeAt(Ls),bi===47){if(!Wo){ln=Ls;break}}else Wo=!1;return ln===-1?Mi?"/":".":Mi&&ln===1?"/":Vr.slice(0,ln)};function os(Vr){typeof Vr!="string"&&(Vr=Vr+"");var bi=0,Mi=-1,ln=!0,Wo;for(Wo=Vr.length-1;Wo>=0;--Wo)if(Vr.charCodeAt(Wo)===47){if(!ln){bi=Wo+1;break}}else Mi===-1&&(ln=!1,Mi=Wo+1);return Mi===-1?"":Vr.slice(bi,Mi)}Ui.basename=function(Vr,bi){var Mi=os(Vr);return bi&&Mi.substr(-1*bi.length)===bi&&(Mi=Mi.substr(0,Mi.length-bi.length)),Mi},Ui.extname=function(Vr){typeof Vr!="string"&&(Vr=Vr+"");for(var bi=-1,Mi=0,ln=-1,Wo=!0,Ls=0,pl=Vr.length-1;pl>=0;--pl){var zo=Vr.charCodeAt(pl);if(zo===47){if(!Wo){Mi=pl+1;break}continue}ln===-1&&(Wo=!1,ln=pl+1),zo===46?bi===-1?bi=pl:Ls!==1&&(Ls=1):bi!==-1&&(Ls=-1)}return bi===-1||ln===-1||Ls===0||Ls===1&&bi===ln-1&&bi===Mi+1?"":Vr.slice(bi,ln)};function Or(Vr,bi){if(Vr.filter)return Vr.filter(bi);for(var Mi=[],ln=0;ln<Vr.length;ln++)bi(Vr[ln],ln,Vr)&&Mi.push(Vr[ln]);return Mi}var ma="ab".substr(-1)==="b"?function(Vr,bi,Mi){return Vr.substr(bi,Mi)}:function(Vr,bi,Mi){return bi<0&&(bi=Vr.length+bi),Vr.substr(bi,Mi)}}).call(this,Yi("7vYp"))},zh89:function(ru,Ui,Yi){(function(ni){/*!
Copyright (c) 2014 Taylor Hakes
Copyright (c) 2014 Forbes Lindesay
*/(function(po,os){os()})(this,function(){"use strict";function po(Aa){var xi=this.constructor;return this.then(function(lo){return xi.resolve(Aa()).then(function(){return lo})},function(lo){return xi.resolve(Aa()).then(function(){return xi.reject(lo)})})}var os=setTimeout;function Or(){}function ma(Aa,xi){return function(){Aa.apply(xi,arguments)}}function Vr(Aa){if(!(this instanceof Vr))throw new TypeError("Promises must be constructed via new");if(typeof Aa!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],pl(Aa,this)}function bi(Aa,xi){for(;Aa._state===3;)Aa=Aa._value;if(Aa._state===0){Aa._deferreds.push(xi);return}Aa._handled=!0,Vr._immediateFn(function(){var lo=Aa._state===1?xi.onFulfilled:xi.onRejected;if(lo===null){(Aa._state===1?Mi:ln)(xi.promise,Aa._value);return}var Xo;try{Xo=lo(Aa._value)}catch(Du){ln(xi.promise,Du);return}Mi(xi.promise,Xo)})}function Mi(Aa,xi){try{if(xi===Aa)throw new TypeError("A promise cannot be resolved with itself.");if(xi&&(typeof xi=="object"||typeof xi=="function")){var lo=xi.then;if(xi instanceof Vr){Aa._state=3,Aa._value=xi,Wo(Aa);return}else if(typeof lo=="function"){pl(ma(lo,xi),Aa);return}}Aa._state=1,Aa._value=xi,Wo(Aa)}catch(Xo){ln(Aa,Xo)}}function ln(Aa,xi){Aa._state=2,Aa._value=xi,Wo(Aa)}function Wo(Aa){Aa._state===2&&Aa._deferreds.length===0&&Vr._immediateFn(function(){Aa._handled||Vr._unhandledRejectionFn(Aa._value)});for(var xi=0,lo=Aa._deferreds.length;xi<lo;xi++)bi(Aa,Aa._deferreds[xi]);Aa._deferreds=null}function Ls(Aa,xi,lo){this.onFulfilled=typeof Aa=="function"?Aa:null,this.onRejected=typeof xi=="function"?xi:null,this.promise=lo}function pl(Aa,xi){var lo=!1;try{Aa(function(Xo){if(lo)return;lo=!0,Mi(xi,Xo)},function(Xo){if(lo)return;lo=!0,ln(xi,Xo)})}catch(Xo){if(lo)return;lo=!0,ln(xi,Xo)}}Vr.prototype.catch=function(Aa){return this.then(null,Aa)},Vr.prototype.then=function(Aa,xi){var lo=new this.constructor(Or);return bi(this,new Ls(Aa,xi,lo)),lo},Vr.prototype.finally=po,Vr.all=function(Aa){return new Vr(function(xi,lo){if(!Aa||typeof Aa.length=="undefined")throw new TypeError("Promise.all accepts an array");var Xo=Array.prototype.slice.call(Aa);if(Xo.length===0)return xi([]);var Du=Xo.length;function Nd(Op,e){try{if(e&&(typeof e=="object"||typeof e=="function")){var o=e.then;if(typeof o=="function"){o.call(e,function(F){Nd(Op,F)},lo);return}}Xo[Op]=e,--Du===0&&xi(Xo)}catch(F){lo(F)}}for(var Lu=0;Lu<Xo.length;Lu++)Nd(Lu,Xo[Lu])})},Vr.resolve=function(Aa){return Aa&&typeof Aa=="object"&&Aa.constructor===Vr?Aa:new Vr(function(xi){xi(Aa)})},Vr.reject=function(Aa){return new Vr(function(xi,lo){lo(Aa)})},Vr.race=function(Aa){return new Vr(function(xi,lo){for(var Xo=0,Du=Aa.length;Xo<Du;Xo++)Aa[Xo].then(xi,lo)})},Vr._immediateFn=typeof setImmediate=="function"&&function(Aa){setImmediate(Aa)}||function(Aa){os(Aa,0)},Vr._unhandledRejectionFn=function(xi){typeof console!="undefined"&&console&&console.warn("Possible Unhandled Promise Rejection:",xi)};var zo=function(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof ni!="undefined")return ni;throw new Error("unable to locate global object")}();"Promise"in zo?zo.Promise.prototype.finally||(zo.Promise.prototype.finally=po):zo.Promise=Vr})}).call(this,Yi("UywP"))}});